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.
1214 lines
2.5 MiB
1214 lines
2.5 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[9352],{10906:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Mt}});var ee=ce(14809),wt=ce(59301),Qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Zt=Qt,Ot=ce(7657),jt=function(St,kt){return wt.createElement(Ot.Z,(0,ee.Z)({},St,{ref:kt,icon:Zt}))},Ct=wt.forwardRef(jt),Mt=Ct},8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Cn,Gn){"use strict";Gn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720:function(){"use strict";function Cn(yt,et,tt,lt){tt===void 0&&(tt=0),lt===void 0&&(lt=1/0),this._name=yt,this._defaultValue=et,this._minimum=tt,this._maximum=lt}Object.defineProperty(Cn.prototype,"name",{get:function(){return this._name},set:function(yt){if(typeof yt!="string"||yt==="")throw new Error("Shape name must be a valid string.");this._name=yt}}),Object.defineProperty(Cn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(yt){if(typeof yt!="number"||isNaN(yt))throw new Error("The default value must be a real number, not: "+yt);this._defaultValue=yt}}),Object.defineProperty(Cn.prototype,"minimum",{get:function(){return this._minimum},set:function(yt){if(typeof yt!="number"||isNaN(yt))throw new Error("Minimum must be a real number, not: "+yt);this._minimum=yt}}),Object.defineProperty(Cn.prototype,"maximum",{get:function(){return this._maximum},set:function(yt){if(typeof yt!="number"||isNaN(yt))throw new Error("Maximum must be a real number, not: "+yt);this._maximum=yt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(yt,et){var tt=go.Shape._FigureParameters[yt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(yt,et,tt){if(!(tt instanceof Cn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValue<tt.minimum||tt.defaultValue>tt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var lt=go.Shape._FigureParameters[yt];lt||(lt=[],go.Shape._FigureParameters[yt]=lt),lt[et]=tt};var Gn=[];function ce(yt,et){var tt=Gn.pop();return tt===void 0?new go.Point(yt,et):(tt.x=yt,tt.y=et,tt)}function ee(){var yt=Gn.pop();return yt===void 0?new go.Point:yt}function wt(yt){Gn.push(yt)}function Qt(yt,et,tt,lt,ot,ut,ct,ft,gt){gt||(gt=new go.Point);var Lt=yt-tt,Rt=ot-ct,Ut=NaN,Nt=NaN;if(Lt===0)if(Rt===0)yt===tt&&(Ut=yt,Nt=et);else{var qt=(ut-ft)/Rt,te=ut-qt*ot;Ut=yt,Nt=qt*Ut+te}else if(Rt===0){var Vt=(et-lt)/Lt,de=et-Vt*yt;Ut=ot,Nt=Vt*Ut+de}else{var Vt=(et-lt)/Lt,qt=(ut-ft)/Rt,de=et-Vt*yt,te=ut-qt*ot;Ut=(te-de)/(Vt-qt),Nt=Vt*Ut+de}return gt.x=Ut,gt.y=Nt,gt}function Zt(yt,et,tt,lt,ot,ut,ct,ft,gt,Lt,Rt,Ut,Nt,qt){var te=1-gt,Vt=gt,de=yt*te+tt*Vt,ge=et*te+lt*Vt,be=tt*te+ot*Vt,Ne=lt*te+ut*Vt,Ge=ot*te+ct*Vt,Pe=ut*te+ft*Vt,ze=de*te+be*Vt,he=ge*te+Ne*Vt,Jt=be*te+Ge*Vt,re=Ne*te+Pe*Vt,se=ze*te+Jt*Vt,pe=he*te+re*Vt;Lt.x=de,Lt.y=ge,Rt.x=ze,Rt.y=he,Ut.x=se,Ut.y=pe,Nt.x=Jt,Nt.y=re,qt.x=Ge,qt.y=Pe}var Ot=new go.Spot(.156,.156),jt=new go.Spot(.844,.844),Ct=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Cn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=5),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var ot=lt*Ct,ut=new go.Geometry().add(new go.PathFigure(lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-ot,0,et,ot)).add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)).add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,tt-ot,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,lt,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,ot,tt,0,tt-ot)).add(new go.PathSegment(go.PathSegment.Line,0,lt)).add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,ot,ot,0).close()));return ot>1&&(ut.spot1=new go.Spot(0,0,ot,ot),ut.spot2=new go.Spot(1,1,-ot,-ot)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=tt/2,lt.endX=et,lt.endY=tt/2,lt}),go.Shape.defineFigureGenerator("LineV",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et/2,lt.startY=0,lt.endX=et/2,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(yt,et,tt){var lt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(lt*et,(1-lt)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(yt,et,tt){var lt=et/2,ot=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close()));return ot.spot1=Ot,ot.spot2=jt,ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Line1",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Line2",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et,lt.startY=0,lt.endX=0,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Curve1",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Ct*et,0,et,(1-Ct)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,Ct*tt,(1-Ct)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,Ct*tt,Ct*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-Ct)*et,0,0,(1-Ct)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Cn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)?lt=.1:lt<-1?lt=-1:lt>1&&(lt=1);var ot=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),ot<et/2&&ut.setSpots(ot/et,0,(et-ot)/et,1),ut}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Cn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et:lt>et&&(lt=et);var ot=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),ot<et/2&&ut.setSpots(ot/et,0,(et-ot)/et,1),ut}}),go.Shape.setFigureParameter("Trapezoid1",0,new Cn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.5?lt=-.5:lt>.5&&(lt=.5);var ot=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),ot<et/2&&ut.setSpots(ot/et,0,(et-ot)/et,1),ut}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Cn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)?lt=20:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var ot=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),ot<et/2&&ut.setSpots(ot/et,0,(et-ot)/et,1),ut}}),go.Shape.setFigureParameter("ManualOperation",0,new Cn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var ot=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())):ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),ot<et/2&&ut.setSpots(ot/et,0,(et-ot)/et,1),ut}});var Mt=[];function Bt(){var yt=Mt.pop();return yt===void 0?[]:yt}function St(yt){yt.length=0,Mt.push(yt)}function kt(yt){for(var et=Bt(),tt=.5,lt=.5,ot=Math.PI*1.5,ut=0,ct=0;ct<yt;ct++)ut=2*Math.PI/yt*ct+ot,et[ct]=new go.Point(lt+tt*Math.cos(ut),lt+tt*Math.sin(ut));return et.push(et[0]),et}function xt(yt){var et=Dt(yt),tt=Bt();tt[0]=et[0];for(var lt=1,ot=1;lt<et.length;lt+=2,ot+=3)tt[ot]=et[lt],tt[ot+1]=et[lt],tt[ot+2]=et[lt+1];return St(et),tt}function Dt(yt){for(var et=kt(yt),tt=Bt(),lt=Math.floor(et.length/2),ot=et.length-1,ut=yt%2===0?2:1,ct=0;ct<ot;ct++){var ft=et[ct],gt=et[ct+1],Lt=et[(lt+ct-1)%ot],Rt=et[(lt+ct+ut)%ot];tt[ct*2]=ft,tt[ct*2+1]=Qt(ft.x,ft.y,Lt.x,Lt.y,gt.x,gt.y,Rt.x,Rt.y,new go.Point)}return tt[tt.length]=tt[0],St(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(yt,et,tt){var lt=kt(5),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<5;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.2,.22),ot.spot2=new go.Spot(.8,.9),ot}),go.Shape.defineFigureGenerator("Hexagon",function(yt,et,tt){var lt=kt(6),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<6;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.07,.25),ot.spot2=new go.Spot(.93,.75),ot}),go.Shape.defineFigureGenerator("Heptagon",function(yt,et,tt){var lt=kt(7),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<7;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.2,.15),ot.spot2=new go.Spot(.8,.85),ot}),go.Shape.defineFigureGenerator("Octagon",function(yt,et,tt){var lt=kt(8),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<8;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.15,.15),ot.spot2=new go.Spot(.85,.85),ot}),go.Shape.defineFigureGenerator("Nonagon",function(yt,et,tt){var lt=kt(9),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<9;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.17,.13),ot.spot2=new go.Spot(.82,.82),ot}),go.Shape.defineFigureGenerator("Decagon",function(yt,et,tt){var lt=kt(10),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.16,.16),ot.spot2=new go.Spot(.84,.84),ot}),go.Shape.defineFigureGenerator("Dodecagon",function(yt,et,tt){var lt=kt(12),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.16,.16),ot.spot2=new go.Spot(.84,.84),ot}),go.Shape.defineFigureGenerator("FivePointedStar",function(yt,et,tt){var lt=Dt(5),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.266,.333),ot.spot2=new go.Spot(.733,.733),ot}),go.Shape.defineFigureGenerator("SixPointedStar",function(yt,et,tt){var lt=Dt(6),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.17,.25),ot.spot2=new go.Spot(.83,.75),ot}),go.Shape.defineFigureGenerator("SevenPointedStar",function(yt,et,tt){var lt=Dt(7),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<14;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.222,.277),ot.spot2=new go.Spot(.777,.666),ot}),go.Shape.defineFigureGenerator("EightPointedStar",function(yt,et,tt){var lt=Dt(8),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<16;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.25,.25),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("NinePointedStar",function(yt,et,tt){var lt=Dt(9),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<18;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.222,.277),ot.spot2=new go.Spot(.777,.666),ot}),go.Shape.defineFigureGenerator("TenPointedStar",function(yt,et,tt){var lt=Dt(10),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<20;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),ot.spot1=new go.Spot(.281,.261),ot.spot2=new go.Spot(.723,.748),ot}),go.Shape.defineFigureGenerator("FivePointedBurst",function(yt,et,tt){var lt=xt(5),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),St(lt),ot.spot1=new go.Spot(.222,.277),ot.spot2=new go.Spot(.777,.777),ot}),go.Shape.defineFigureGenerator("SixPointedBurst",function(yt,et,tt){var lt=xt(6),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),St(lt),ot.spot1=new go.Spot(.17,.222),ot.spot2=new go.Spot(.833,.777),ot}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(yt,et,tt){var lt=xt(7),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),St(lt),ot.spot1=new go.Spot(.222,.222),ot.spot2=new go.Spot(.777,.777),ot}),go.Shape.defineFigureGenerator("EightPointedBurst",function(yt,et,tt){var lt=xt(8),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),St(lt),ot.spot1=new go.Spot(.222,.222),ot.spot2=new go.Spot(.777,.777),ot}),go.Shape.defineFigureGenerator("NinePointedBurst",function(yt,et,tt){var lt=xt(9),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),St(lt),ot.spot1=new go.Spot(.222,.222),ot.spot2=new go.Spot(.777,.777),ot}),go.Shape.defineFigureGenerator("TenPointedBurst",function(yt,et,tt){var lt=xt(10),ot=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);ot.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),St(lt),ot.spot1=new go.Spot(.222,.222),ot.spot2=new go.Spot(.777,.777),ot}),go.Shape.setFigureParameter("FramedRectangle",0,new Cn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Cn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(yt,et,tt){var lt=yt?yt.parameter1:NaN,ot=yt?yt.parameter2:NaN;isNaN(lt)&&(lt=8),isNaN(ot)&&(ot=8);var ut=new go.Geometry,ct=new go.PathFigure(0,0,!0);return ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt<et/2&&ot<tt/2&&(ct.add(new go.PathSegment(go.PathSegment.Move,lt,ot)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt-ot)),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,tt-ot)),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,ot).close())),ut.setSpots(0,0,1,1,lt,ot,-lt,-ot),ut}),go.Shape.setFigureParameter("Ring",0,new Cn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=8);var ot=et/2,ut=new go.Geometry,ct=new go.PathFigure(et,et/2,!0);ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Arc,0,360,ot,ot,ot,ot).close());var ft=Math.max(ot-lt,0);return ft>0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+ft,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ot,ot,ft,ft).close())),ut.spot1=Ot,ut.spot2=jt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(yt,et,tt){var lt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(lt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close())).setSpots(lt/2,lt/2,1-lt/2,1-lt/2)}),go.Shape.setFigureParameter("Pie",0,new Cn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Cn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(yt,et,tt){var lt=yt?yt.parameter1:NaN,ot=yt?yt.parameter2:NaN;isNaN(lt)&&(lt=0),isNaN(ot)&&(ot=315);var ut=lt%360;ut<0&&(ut+=360);var ct=ot%360,ft=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(ft,ft).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,ft,ft,ft,ft).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(yt,et,tt){var lt=Ct/Math.SQRT2*.5,ot=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,ot*et,ut*tt,et,(1-lt)*tt,(ot+lt)*et,(ut+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30);var ot=Math.min(lt,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-ot,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+ot,0)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct-ot).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var ot=Math.min(lt,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-ot,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+ot,0)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct-ot).close()))}),go.Shape.setFigureParameter("ThickX",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;if((isNaN(lt)||lt<0)&&(lt=30),et===0||tt===0){var ot=new go.Geometry(go.Geometry.Rectangle);return ot.startX=0,ot.startY=0,ot.endX=et,ot.endY=tt,ot}else{var ut=et/2,ct=tt/2,ft=Math.atan2(tt,et),gt=lt-Math.min(Math.cos(ft)*lt/2,ut),Lt=lt-Math.min(Math.sin(ft)*lt/2,ct),ot=new go.Geometry,Rt=new go.PathFigure(gt,0,!0);return ot.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,et,Lt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Lt)),Rt.add(new go.PathSegment(go.PathSegment.Line,et-gt,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,gt,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Lt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,Lt).close()),ot}}),go.Shape.setFigureParameter("ThinX",0,new Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var ot=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),ot}),go.Shape.setFigureParameter("SquareIBeam",0,new Cn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.2);var ot=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),ot}),go.Shape.setFigureParameter("RoundedIBeam",0,new Cn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.5);var ot=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),ot}),go.Shape.defineFigureGenerator("HalfEllipse",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,Ct*et,0,et,(.5-Ct/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+Ct/2)*tt,Ct*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.4*et,.6*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ut=.2,ct=.3,ft=0,gt=ut*Ct;return ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+gt+ft)*tt,(.5-gt+ct)*et,(.5+ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+gt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-gt+ft)*tt,(.5+gt+ct)*et,(.5-ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-gt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct+.05)*et,(.5-gt+ft-.02)*tt)),ut=.2,ct=0,ft=-.3,gt=ut*Ct,ot.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+gt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-gt+ft)*tt,(.5+gt+ct)*et,(.5-ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-gt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+gt+ft)*tt,(.5-gt+ct)*et,(.5+ut+ft)*tt)),ut=.2,ct=-.3,ft=0,gt=ut*Ct,ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct-.05)*et,(.5-gt+ft-.02)*tt,(.5+gt+ct)*et,(.5-ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-gt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+gt+ft)*tt,(.5-gt+ct)*et,(.5+ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+gt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+gt+ft)*tt).close()),lt.setSpots(.06,.33,.93,.68),lt}),go.Shape.defineFigureGenerator("YinYang",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.5,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),ot.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),ot.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ut=.1,ct=.5,ft=.25;return ot.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,ft*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*ft,ut*et,ut*et).close()),ot=new go.PathFigure(et*.5,0,!1),lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),ft=.75,ot=new go.PathFigure((ct+ut)*et,ft*tt,!0),lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*ft,ut*et,ut*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(yt,et,tt){var lt=.8535533905932737,ot=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(ot,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ot,ut,ot,ut)).add(new go.PathSegment(go.PathSegment.Line,ot,tt)).add(new go.PathSegment(go.PathSegment.Move,ot,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,ot,ut)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=.5,ft=.5,gt=new go.PathFigure(ct*et,(ft-ut)*tt);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),ut=.4,ot=Ct*.4;var Lt=ee(),Rt=ee(),Ut=ee(),Nt=ee();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.42,Lt,Rt,Ut,Nt,Nt);var qt=ee(),te=ee(),Vt=ee();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.58,Nt,Nt,Vt,qt,te);var de=ee(),ge=ee(),be=ee();Zt(ct,ft+ut,ct-ot,ft+ut,ct-ut,ft+ot,ct-ut,ft,.42,de,ge,be,Nt,Nt);var Ne=ee(),Ge=ee(),Pe=ee();return Zt(ct,ft+ut,ct-ot,ft+ut,ct-ut,ft+ot,ct-ut,ft,.58,Nt,Nt,Pe,Ne,Ge),gt.add(new go.PathSegment(go.PathSegment.Move,Pe.x*et,Pe.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,Ne.x*et,Ne.y*tt,Ge.x*et,Ge.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Lt.x*et,Lt.y*tt,Rt.x*et,Rt.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,Pe.x*et,Pe.y*tt).close()),gt.add(new go.PathSegment(go.PathSegment.Move,be.x*et,be.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,Vt.x*et,Vt.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,qt.x*et,qt.y*tt,te.x*et,te.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,be.x*et,be.y*tt,de.x*et,de.y*tt,ge.x*et,ge.y*tt).close()),wt(Lt),wt(Rt),wt(Ut),wt(Nt),wt(qt),wt(te),wt(Vt),wt(de),wt(ge),wt(be),wt(Ne),wt(Ge),wt(Pe),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Fragile",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30),lt>et&&(lt=et);var ot=(et-lt)/2,ut=ot+lt;return new go.Geometry().add(new go.PathFigure(ut,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.4,ut=.4,ct=.5,ft=.5,gt=ee(),Lt=ee(),Rt=ee(),Ut=ee(),Nt=new go.PathFigure((ct-ut)*et,ft*tt,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.44,Rt,Ut,Lt,gt,gt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*et,Lt.y*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt));var qt=ce(Lt.x,Lt.y);Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.56,gt,gt,Lt,Rt,Ut);var te=ce(Lt.x,Lt.y);Nt.add(new go.PathSegment(go.PathSegment.Line,(qt.x*.1+.95*.9)*et,qt.y*.1*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*et,qt.y*.1*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,.15*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,(te.y*.1+.05*.9)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,te.x*et,te.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),ut=.35,ot=Ct*.35;var Vt=new go.PathFigure(ct*et,(ft-ut)*tt,!1);lt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt));var de=new go.PathFigure((ct-ut)*et,ft*tt,!1);return lt.add(de),wt(gt),wt(Lt),wt(Rt),wt(Ut),wt(qt),wt(te),lt.spot1=new go.Spot(.202,.257),lt.spot2=new go.Spot(.792,.739),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("GenderFemale",function(yt,et,tt){var lt=new go.Geometry,ot=.375,ut=0,ct=-.125,ft=ot*Ct,gt=new go.PathFigure((.525+ut)*et,(.5+ot+ct)*tt,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ot+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5+ot+ct)*tt,(.5+ot+ut)*et,(.5+ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-ot+ct)*tt,(1-.5+ot+ut)*et,(.5-ft+ct)*tt,(.5+ft+ut)*et,(.5-ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ot+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-ot+ct)*tt,(.5-ot+ut)*et,(.5-ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+ot+ct)*tt,(.5-ot+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,(.5+ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),ot=.325,ut=0,ct=-.125,ft=ot*Ct;var gt=new go.PathFigure((1-.5+ot+ut)*et,(.5+ct)*tt,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+ot+ct)*tt,(.5+ot+ut)*et,(.5+ft+ct)*tt,(.5+ft+ut)*et,(.5+ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ot+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5+ot+ct)*tt,(.5-ot+ut)*et,(.5+ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-ot+ct)*tt,(.5-ot+ut)*et,(.5-ft+ct)*tt,(.5-ft+ut)*et,(.5-ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ot+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5-ot+ct)*tt,(1-.5+ot+ut)*et,(.5-ft+ct)*tt));var gt=new go.PathFigure((.525+ut)*et,(.5+ot+ct)*tt,!1);return lt.add(gt),lt.spot1=new go.Spot(.232,.136),lt.spot2=new go.Spot(.682,.611),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicImplies",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(yt,et,tt){var lt=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicTruth",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(yt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(yt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Cn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Cn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.3);var ut=(1-lt)*et,ct=(.5-ot/2)*tt,ft=(.5+ot/2)*tt,gt=new go.Geometry,Lt=new go.PathFigure(0,ct,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),gt.spot1=new go.Spot(0,ct/tt);var Rt=Qt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,ee());return gt.spot2=new go.Spot(Rt.x,Rt.y),wt(Rt),gt}),go.Shape.setFigureParameter("Arrow2",0,new Cn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Cn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=30),lt>et&&(lt=et);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=30),ot=Math.min(ot,tt/2);var ut=et-lt,ct=(tt-ot)/2,ft=ct+ot,gt=new go.Geometry,Lt=new go.PathFigure(0,ct,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),gt.spot1=new go.Spot(0,ct/tt);var Rt=Qt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,ee());return gt.spot2=new go.Spot(Rt.x,Rt.y),wt(Rt),gt}),go.Shape.defineFigureGenerator("Chevron",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("DoubleArrow",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),lt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Cn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var gt=Qt(0,.5,.3,0,0,ot/tt,.1,ot/tt,ee());return ct.spot1=new go.Spot(gt.x,gt.y),gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,gt),ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Cn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Cn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=40);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=100);var ut=(tt-lt)/2,ct=ut+lt,ft=(tt-ot)/2,gt=ft+ot;(lt>tt||ot>tt)&&(ot>lt?(lt=lt*tt/ot,ut=(tt-lt)/2,ct=ut+lt,ft=0,gt=tt):(ut=0,ct=tt,ft=0,gt=tt));var Lt=new go.Geometry,Rt=new go.PathFigure(et,.5*tt,!0);Lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close());var Ut=Qt(0,.5,.3,ft/tt,0,ut/tt,1,ut/tt,ee());return Lt.spot1=new go.Spot(Ut.x,Ut.y),Ut=Qt(.7,gt/tt,1,.5,0,ct/tt,1,ct/tt,Ut),Lt.spot2=new go.Spot(Ut.x,Ut.y),wt(Ut),Lt}),go.Shape.setFigureParameter("IBeamArrow",0,new Cn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,ot/tt);var gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,ee());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new Cn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Cn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=40);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=100);var ut=(tt-lt)/2,ct=ut+lt,ft=(tt-ot)/2,gt=ft+ot;(lt>tt||ot>tt)&&(ot>lt?(lt=lt*tt/ot,ut=(tt-lt)/2,ct=ut+lt,ft=0,gt=tt):(ut=0,ct=tt,ft=0,gt=tt));var Lt=new go.Geometry,Rt=new go.PathFigure(et,.5*tt,!0);Lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close()),Lt.spot1=new go.Spot(0,ut/tt);var Ut=Qt(.7,gt/tt,1,.5,0,ct/tt,1,ct/tt,ee());return Lt.spot2=new go.Spot(Ut.x,Ut.y),wt(Ut),Lt}),go.Shape.setFigureParameter("Pointer",0,new Cn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.1);var ot=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ot.spot1=new go.Spot(lt,.35);var ct=Qt(.2,.65,1,.65,0,1,1,.5,ee());return ot.spot2=new go.Spot(ct.x,ct.y),wt(ct),ot}),go.Shape.setFigureParameter("RoundedPointer",0,new Cn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),ot.spot1=new go.Spot(lt,.35);var ct=Qt(0,.65,1,.65,0,1,1,.5,ee());return ot.spot2=new go.Spot(ct.x,ct.y),wt(ct),ot}),go.Shape.setFigureParameter("SplitEndArrow",0,new Cn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.4);var ot=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,ee());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Cn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=50);var ot=(tt-lt)/2,ut=ot+lt;lt>tt&&(ot=0,ut=tt);var ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,ot/tt);var gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,ee());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new Cn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.7);var ot=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(lt,1),ot}),go.Shape.defineFigureGenerator("Cone1",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.1,ct=new go.PathFigure(0,.9*tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-ot)*et,tt,0,(.9+ut)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.9*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ut=new go.PathFigure(0,.9*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.82),lt}),go.Shape.defineFigureGenerator("Cube1",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.5,.85),lt}),go.Shape.defineFigureGenerator("Cube2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.3*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ut=new go.PathFigure(0,.3*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.7,1),lt}),go.Shape.defineFigureGenerator("Cylinder1",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(0,lt,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ct*lt,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ut)*et,0,1*et,Ct*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-Ct*lt,(.5+ut)*et,1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,1*tt,0,tt-Ct*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,lt));var ft=new go.PathFigure(et,lt,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-Ct*lt,(.5+ut)*et,2*lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ut)*et,2*lt,0,2*lt-Ct*lt)),ot.spot1=new go.Spot(0,0,0,2*lt),ot.spot2=new go.Spot(1,1),ot}),go.Shape.defineFigureGenerator("Cylinder2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(0,tt-lt,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ct*lt,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ut)*et,0,et,Ct*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-Ct*lt,(.5+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,tt,0,tt-Ct*lt));var ft=new go.PathFigure(0,tt-lt,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-Ct*lt,(.5-ut)*et,tt-2*lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ut)*et,tt-2*lt,et,tt-lt-Ct*lt)),ot.spot1=new go.Spot(0,0),ot.spot2=new go.Spot(1,1,0,-2*lt),ot}),go.Shape.defineFigureGenerator("Cylinder3",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(lt,0,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Ct*lt,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-Ct*lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Ct*lt,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,Ct*lt,0));var ft=new go.PathFigure(lt,0,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+Ct*lt,0,2*lt,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ut)*tt,lt+Ct*lt,tt)),ot.spot1=new go.Spot(0,0,2*lt,0),ot.spot2=new go.Spot(1,1),ot}),go.Shape.defineFigureGenerator("Cylinder4",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(et-lt,0,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Ct*lt,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-Ct*lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Ct*lt,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,Ct*lt,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var ft=new go.PathFigure(et-lt,0,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-Ct*lt,0,et-2*lt,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ut)*tt,et-lt-Ct*lt,tt)),ot.spot1=new go.Spot(0,0),ot.spot2=new go.Spot(1,1,-2*lt,0),ot}),go.Shape.defineFigureGenerator("Prism1",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.25*et,.25*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.408,.172),lt.spot2=new go.Spot(.833,.662),lt}),go.Shape.defineFigureGenerator("Prism2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.25*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("Pyramid1",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Pyramid2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Actor",function(yt,et,tt){var lt=new go.Geometry,ot=.2,ut=.1,ct=Ct*ot,ft=Ct*ut,gt=.5,Lt=.1,Rt=new go.PathFigure(gt*et,(Lt+ut)*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ot)*et,Lt*tt,(gt-ct)*et,(Lt+ut)*tt,(gt-ot)*et,(Lt+ft)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ut)*tt,(gt-ot)*et,(Lt-ft)*tt,(gt-ct)*et,(Lt-ut)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ot)*et,Lt*tt,(gt+ct)*et,(Lt-ut)*tt,(gt+ot)*et,(Lt-ft)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ut)*tt,(gt+ot)*et,(Lt+ft)*tt,(gt+ct)*et,(Lt+ut)*tt));var Ut=.05,Nt=Ct*Ut;gt=.05,Lt=.25;var qt=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),gt=.95,Lt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+Ut)*et,Lt*tt,(gt+Nt)*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),Ut=.025,Nt=Ct*Ut,gt=.825,Lt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt,(gt+Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-Ut)*et,Lt*tt,(gt-Nt)*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),Ut=.05,Nt=Ct*Ut,gt=.5,Lt=.7,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt,(gt+Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-Ut)*et,Lt*tt,(gt-Nt)*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),Ut=.025,Nt=Ct*Ut,gt=.175,Lt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt,(gt+Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-Ut)*et,Lt*tt,(gt-Nt)*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Ut=.05,Nt=Ct*Ut,gt=.05,Lt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt,(gt-Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),lt.spot1=new go.Spot(.2,.2),lt.spot2=new go.Spot(.8,.65),lt}),go.Shape.setFigureParameter("Card",0,new Cn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.2);var ot=new go.Geometry,ut=new go.PathFigure(et,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),ot.spot1=new go.Spot(0,lt),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Collate",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ut=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,.25),lt}),go.Shape.defineFigureGenerator("CreateRequest",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,ot*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,ot*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-ot)*tt)),lt}),go.Shape.defineFigureGenerator("Database",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.1,ct=new go.PathFigure(et,.1*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-ot)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+ot)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+ot)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-ot)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+ot)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-ot)*et,.3*tt,0,(.2+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+ot)*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-ot)*et,.4*tt,0,(.3+ut)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),lt.spot1=new go.Spot(.226,0),lt.spot2=new go.Spot(.81,1),lt}),go.Shape.defineFigureGenerator("DiskStorage",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.1,ct=new go.PathFigure(et,.1*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-ot)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+ot)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+ot)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-ot)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+ot)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-ot)*et,.3*tt,0,(.2+ut)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.25*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("DividedEvent",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)?ot=.2:ot<.15&&(ot=.15);var ut=Ct*.2,ct=new go.PathFigure(0,.2*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var ft=new go.PathFigure(0,ot*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,ot*tt)),lt}),go.Shape.defineFigureGenerator("DividedProcess",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;(isNaN(ot)||ot<.1)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,ot*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,ot*tt)),lt}),go.Shape.defineFigureGenerator("Document",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(0,.7*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;(isNaN(ot)||ot<.2)&&(ot=.2);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(ot*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,ot*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,et,ot*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-ot)*tt)),lt}),go.Shape.defineFigureGenerator("ExternalProcess",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("File",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.75*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Interrupt",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ut=new go.PathFigure(et,.5*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var ct=new go.PathFigure(et,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("InternalStorage",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN,ut=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.1),isNaN(ut)&&(ut=.1);var ct=new go.PathFigure(0,0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ft=new go.PathFigure(ot*et,0,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(yt,et,tt){var lt=new go.Geometry,ot=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=Ct*.5,ft=.5,gt=new go.PathFigure(et,ft*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,tt,et,(ft+ct)*tt,(ft+ct)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*tt,(ft-ct)*et,tt,0,(ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-ct)*tt,(ft-ct)*et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*tt,(ft+ct)*et,0,et,(ft-ct)*tt));var Lt=new go.PathFigure((ut+ot)*et,(ut+ot)*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Lt.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,(ut+ot)*et,ut*tt)),lt}),go.Shape.defineFigureGenerator("LinedDocument",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(0,.7*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ut=new go.PathFigure(.1*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),lt.spot1=new go.Spot(.1,0),lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("LoopLimit",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MagneticTape",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=new go.PathFigure(.5*et,tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-ot)*et,tt,0,(ut+ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-ot)*tt,(ut-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+ot)*et,0,et,(ut-ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+ot)*tt,(ut+ot)*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.8),lt}),go.Shape.defineFigureGenerator("ManualInput",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MessageFromUser",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.7);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,ot*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.25);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,ot*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-ot)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("MultiDocument",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ut=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.8,.77),lt}),go.Shape.defineFigureGenerator("MultiProcess",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,.1*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ut=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),lt.spot1=new go.Spot(0,.2),lt.spot2=new go.Spot(.8,1),lt}),go.Shape.defineFigureGenerator("OfflineStorage",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=1-ot,ct=new go.PathFigure(0,0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var ft=new go.PathFigure(.5*ot*et,ot*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ot)*et,ot*tt)),lt}),go.Shape.defineFigureGenerator("OffPageConnector",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("Or",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+ot)*tt,(ut+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-ot)*et,tt,0,(ut+ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-ot)*tt,(ut-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+ot)*et,0,et,(ut-ot)*tt));var ft=new go.PathFigure(et,.5*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt}),go.Shape.defineFigureGenerator("PaperTape",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(0,.7*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=new go.Spot(0,.49),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN,ut=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN,ut=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure((1-ot)*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,ot*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),lt}),go.Shape.defineFigureGenerator("Process",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(ot*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Sort",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.5),lt}),go.Shape.defineFigureGenerator("Start",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.25);var ut=new go.PathFigure(ot*et,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var ct=new go.PathFigure(ot*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ot)*et,tt)),lt.spot1=new go.Spot(ot,0),lt.spot2=new go.Spot(1-ot,1),lt}),go.Shape.defineFigureGenerator("Terminator",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.25*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),lt.spot1=new go.Spot(.23,0),lt.spot2=new go.Spot(.77,1),lt}),go.Shape.defineFigureGenerator("TransmittalTape",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-ot)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+ot)*et,0,et,(.5-ot)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+ot)*tt,(.5+ot)*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.55,1),lt}),go.Shape.defineFigureGenerator("Buffer",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Clock",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+ot)*tt,(ut+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-ot)*et,tt,0,(ut+ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-ot)*tt,(ut-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+ot)*et,0,et,(ut-ot)*tt));var ft=new go.PathFigure(et,ut*tt,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var gt=new go.PathFigure(.8*et,.75*tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),lt}),go.Shape.defineFigureGenerator("Ground",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),lt}),go.Shape.defineFigureGenerator("Inverter",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.1,ut=.1,ct=.9,ft=.5,gt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Lt=new go.PathFigure((ct+ut)*et,ft*tt,!0);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.4,.75),lt}),go.Shape.defineFigureGenerator("NandGate",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.4,ct=Ct*.1,ft=.1,gt=.9,Lt=.5,Rt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+ot)*et,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+ot)*et,0,.8*et,(.5-ut)*tt));var Ut=new go.PathFigure((gt+ft)*et,Lt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ft)*tt,(gt+ft)*et,(Lt+ct)*tt,(gt+ct)*et,(Lt+ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et,Lt*tt,(gt-ct)*et,(Lt+ft)*tt,(gt-ft)*et,(Lt+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ft)*tt,(gt-ft)*et,(Lt-ct)*tt,(gt-ct)*et,(Lt-ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et,Lt*tt,(gt+ct)*et,(Lt-ft)*tt,(gt+ft)*et,(Lt-ct)*tt)),lt.spot1=new go.Spot(0,.05),lt.spot2=new go.Spot(.55,.95),lt}),go.Shape.defineFigureGenerator("NorGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=0,ft=.5,gt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-ot)*tt,.7*et,(ft-ut)*tt)),ot=.1,ut=Ct*.1,ct=.9,ft=.5;var Lt=new go.PathFigure((ct-ot)*et,ft*tt,!0);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.6,.75),lt}),go.Shape.defineFigureGenerator("OrGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=0,ft=.5,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(ft-ot)*tt,.8*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(ft+ut)*tt,(ct+ut+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("XnorGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=.2,ft=.5,gt=new go.PathFigure(.1*et,0,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Lt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-ot)*tt,.7*et,(ft-ut)*tt)),ot=.1,ut=Ct*.1,ct=.9,ft=.5;var Rt=new go.PathFigure((ct-ot)*et,ft*tt,!0);return lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.65,.75),lt}),go.Shape.defineFigureGenerator("XorGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=.2,ft=.5,gt=new go.PathFigure(.1*et,0,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Lt=new go.PathFigure(.2*et,0,!0);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(ft-ot)*tt,.9*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.8,.75),lt}),go.Shape.defineFigureGenerator("Capacitor",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Resistor",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Inductor",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.1,ut=.1,ct=.1,ft=.5,gt=new go.PathFigure((ct-ot*.5)*et,tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.3,gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.5,gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.7,gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.9,gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot*.5)*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=.5,ft=.5,gt=new go.PathFigure((ct-ut)*et,ft*tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,ft*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,ft*tt,ct*et,(ft-ut)*tt,ct*et,(ft+ut)*tt)),lt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.75*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Diode",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Wifi",function(yt,et,tt){var lt=new go.Geometry,ot=et,ut=tt;et=et*.38,tt=tt*.6;var ct=Ct*.8,ft=.8,gt=0,Lt=.5,Rt=(ot-et)/2,Ut=(ut-tt)/2,Nt=new go.PathFigure(gt*et+Rt,(Lt+ft)*tt+Ut,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et+Rt,Lt*tt+Ut,(gt-ct)*et+Rt,(Lt+ft)*tt+Ut,(gt-ft)*et+Rt,(Lt+ct)*tt+Ut)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft)*et+Rt,(Lt-ct)*tt+Ut,(gt-ct)*et+Rt,(Lt-ft)*tt+Ut)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft+ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt-ct)*tt+Ut)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt+ct)*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut).close()),ct=Ct*.4,ft=.4,gt=.2,Lt=.5;var qt=new go.PathFigure(gt*et+Rt,(Lt+ft)*tt+Ut,!0);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et+Rt,Lt*tt+Ut,(gt-ct)*et+Rt,(Lt+ft)*tt+Ut,(gt-ft)*et+Rt,(Lt+ct)*tt+Ut)),qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft)*et+Rt,(Lt-ct)*tt+Ut,(gt-ct)*et+Rt,(Lt-ft)*tt+Ut)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft+ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt-ct)*tt+Ut)),qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt+ct)*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut).close()),ct=Ct*.2,ft=.2,gt=.5,Lt=.5;var te=new go.PathFigure((gt-ft)*et+Rt,Lt*tt+Ut,!0);lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft)*et+Rt,(Lt-ct)*tt+Ut,(gt-ct)*et+Rt,(Lt-ft)*tt+Ut)),te.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et+Rt,Lt*tt+Ut,(gt+ct)*et+Rt,(Lt-ft)*tt+Ut,(gt+ft)*et+Rt,(Lt-ct)*tt+Ut)),te.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft)*et+Rt,(Lt+ct)*tt+Ut,(gt+ct)*et+Rt,(Lt+ft)*tt+Ut)),te.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et+Rt,Lt*tt+Ut,(gt-ct)*et+Rt,(Lt+ft)*tt+Ut,(gt-ft)*et+Rt,(Lt+ct)*tt+Ut)),ct=Ct*.4,ft=.4,gt=.8,Lt=.5;var Vt=new go.PathFigure(gt*et+Rt,(Lt-ft)*tt+Ut,!0);lt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et+Rt,Lt*tt+Ut,(gt+ct)*et+Rt,(Lt-ft)*tt+Ut,(gt+ft)*et+Rt,(Lt-ct)*tt+Ut)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft)*et+Rt,(Lt+ct)*tt+Ut,(gt+ct)*et+Rt,(Lt+ft)*tt+Ut)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft-ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt+ct)*tt+Ut)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt-ct)*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut).close()),ct=Ct*.8,ft=.8,gt=1,Lt=.5;var de=new go.PathFigure(gt*et+Rt,(Lt-ft)*tt+Ut,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et+Rt,Lt*tt+Ut,(gt+ct)*et+Rt,(Lt-ft)*tt+Ut,(gt+ft)*et+Rt,(Lt-ct)*tt+Ut)),de.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft)*et+Rt,(Lt+ct)*tt+Ut,(gt+ct)*et+Rt,(Lt+ft)*tt+Ut)),de.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft-ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt+ct)*tt+Ut)),de.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt-ct)*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut).close()),lt}),go.Shape.defineFigureGenerator("Email",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.35*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ut=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ct=new go.PathFigure(.6*et,tt,!0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var ft=new go.PathFigure(0,.5*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Power",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.4,ut=.4,ct=.5,ft=.5,gt=ee(),Lt=ee(),Rt=ee(),Ut=ee();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.5,gt,gt,Lt,Rt,Ut);var Nt=ce(Lt.x,Lt.y),qt=new go.PathFigure(Lt.x*et,Lt.y*tt,!0);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),Zt(ct-ut,ft,ct-ut,ft-ot,ct-ot,ft-ut,ct,ft-ut,.5,Rt,Ut,Lt,gt,gt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*et,Lt.y*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt)),ot=Ct*.3,ut=.3,Zt(ct-ut,ft,ct-ut,ft-ot,ct-ot,ft-ut,ct,ft-ut,.5,Rt,Ut,Lt,gt,gt),qt.add(new go.PathSegment(go.PathSegment.Line,Lt.x*et,Lt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,Ut.x*et,Ut.y*tt,Rt.x*et,Rt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.5,gt,gt,Lt,Rt,Ut),qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*et,Lt.y*tt,Ut.x*et,Ut.y*tt,Rt.x*et,Rt.y*tt).close());var qt=new go.PathFigure(.45*et,0,!0);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),wt(gt),wt(Lt),wt(Rt),wt(Ut),wt(Nt),lt.spot1=new go.Spot(.25,.45),lt.spot2=new go.Spot(.75,.8),lt}),go.Shape.defineFigureGenerator("Fallout",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt/2,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ut(ct,ft,gt){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+ft)*et,(.8+gt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+ft)*et,(.5+gt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+ft)*et,(.5+gt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+ft)*et,(.8+gt)*tt).close())}return ut(ot,0,0),ut(ot,.4,0),ut(ot,.2,-.3),lt}),go.Shape.defineFigureGenerator("IrritationHazard",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.2*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),lt.spot1=new go.Spot(.3,.3),lt.spot2=new go.Spot(.7,.7),lt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.37*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),lt}),go.Shape.defineFigureGenerator("FireHazard",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),lt.spot1=new go.Spot(.07,.445),lt.spot2=new go.Spot(.884,.958),lt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=0,ct=0,ft=ot*Ct,gt=.4*Math.SQRT2/2+.5,Lt=.5-.5*Math.SQRT2/2,Rt=1,Ut=.5,Nt=.5,qt=0,te=new go.PathFigure(gt*et,(1-Lt)*tt,!1);return lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,Ut*tt,Rt*et,.7*tt,Rt*et,Ut*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+ut)*et,(qt+ut)*tt,(.5+ot+ut)*et,(.5-ft+ut)*tt,(.5+ft+ut)*et,(.5-ot+ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ot+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-ot+ct)*tt,(.5-ot+ut)*et,(.5-ft+ct)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-ot+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var ct=new go.PathFigure(0,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.2*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var ot=new go.PathFigure(0,.2*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.7*et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ut=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var ct=.5-.285,ft=.5,gt=ct,Lt=Math.PI/4,Rt=4*(1-Math.cos(Lt))/(3*Math.sin(Lt)),Ut=Rt*.5,Nt=ct,qt=ct,te=Rt*Nt,Vt=Rt*qt;ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Nt)*et,gt*tt,(ft-(te+Nt)/2)*et,(gt+(qt+Vt)/2)*tt,(ft-Nt)*et,(gt+Vt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(gt-qt)*tt,(ft-Nt)*et,(gt-Vt)*tt,(ft-te)*et,(gt-qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft+Nt)*et,gt*tt,(ft+te)*et,(gt-qt)*tt,(ft+Nt)*et,(gt-Vt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(ft+Nt)*et,(gt+Vt)*tt,(ft+(te+Nt)/2)*et,(gt+(qt+Vt)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var de=new go.PathFigure(.2*et,tt,!1);lt.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var ge=new go.PathFigure(.8*et,tt,!1);return lt.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ut=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var ct=new go.PathFigure(.1*et,tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Caution",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.05*et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ut=.05;return ot.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),lt}),go.Shape.defineFigureGenerator("Recycle",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.45*et,.95*tt,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ut=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var ct=new go.PathFigure(.675*et,.575*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*.5,ct=new go.PathFigure(et,ot*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ot*et,tt,et,(ot+ut)*tt,(ot+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ot*tt,(ot-ut)*et,tt,0,(ot+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ot*et,0,0,(ot-ut)*tt,(ot-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ot*tt,(ot+ut)*et,0,et,(ot-ut)*tt));var ft=new go.PathFigure(ot*et,0,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,ot*et,.15*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,ot*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,ot*et,.85*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.15*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,ot*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,ot*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Package",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.15*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,.15*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),lt.spot1=new go.Spot(0,.1),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Class",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(0,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Component",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ut=new go.PathFigure(0,.2*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ct=new go.PathFigure(0,.6*tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),lt}),go.Shape.defineFigureGenerator("Boat Shipment",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.15*et,.6*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ut=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Workcell",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Supermarket",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt}),go.Shape.defineFigureGenerator("TruckShipment",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(et,.8*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var ct=.1,ft=Ct*.1,gt=.2,Lt=.9,Rt=new go.PathFigure((gt-ct)*et,Lt*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ct)*tt,(gt-ct)*et,(Lt-ft)*tt,(gt-ft)*et,(Lt-ct)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ct)*et,Lt*tt,(gt+ft)*et,(Lt-ct)*tt,(gt+ct)*et,(Lt-ft)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ct)*tt,(gt+ct)*et,(Lt+ft)*tt,(gt+ft)*et,(Lt+ct)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ct)*et,Lt*tt,(gt-ft)*et,(Lt+ct)*tt,(gt-ct)*et,(Lt+ft)*tt).close()),ct=.1,ft=Ct*.1,gt=.8,Lt=.9;var Ut=new go.PathFigure((gt-ct)*et,Lt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ct)*tt,(gt-ct)*et,(Lt-ft)*tt,(gt-ft)*et,(Lt-ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ct)*et,Lt*tt,(gt+ft)*et,(Lt-ct)*tt,(gt+ct)*et,(Lt-ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ct)*tt,(gt+ct)*et,(Lt+ft)*tt,(gt+ft)*et,(Lt+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ct)*et,Lt*tt,(gt-ft)*et,(Lt+ct)*tt,(gt-ct)*et,(Lt+ft)*tt).close()),lt}),go.Shape.defineFigureGenerator("KanbanPost",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.2*et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),lt}),go.Shape.defineFigureGenerator("Forklift",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0));var ut=new go.PathFigure(0,.5*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ct=new go.PathFigure(.5*et,.8*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var ft=new go.PathFigure(.5*et,.7*tt,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var gt=.1,Lt=Ct*.1,Rt=.1,Ut=.9,Nt=new go.PathFigure((Rt-gt)*et,Ut*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut-gt)*tt,(Rt-gt)*et,(Ut-Lt)*tt,(Rt-Lt)*et,(Ut-gt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+gt)*et,Ut*tt,(Rt+Lt)*et,(Ut-gt)*tt,(Rt+gt)*et,(Ut-Lt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut+gt)*tt,(Rt+gt)*et,(Ut+Lt)*tt,(Rt+Lt)*et,(Ut+gt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-gt)*et,Ut*tt,(Rt-Lt)*et,(Ut+gt)*tt,(Rt-gt)*et,(Ut+Lt)*tt)),gt=.1,Lt=Ct*.1,Rt=.4,Ut=.9;var qt=new go.PathFigure((Rt-gt)*et,Ut*tt,!0);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut-gt)*tt,(Rt-gt)*et,(Ut-Lt)*tt,(Rt-Lt)*et,(Ut-gt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+gt)*et,Ut*tt,(Rt+Lt)*et,(Ut-gt)*tt,(Rt+gt)*et,(Ut-Lt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut+gt)*tt,(Rt+gt)*et,(Ut+Lt)*tt,(Rt+Lt)*et,(Ut+gt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-gt)*et,Ut*tt,(Rt-Lt)*et,(Ut+gt)*tt,(Rt-gt)*et,(Ut+Lt)*tt)),lt}),go.Shape.defineFigureGenerator("RailShipment",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,.4*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ut=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var ct=new go.PathFigure(.55*et,.4*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Rt=.05,Ut=Ct*.05,Nt=.175,qt=.95,ft=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt));var Rt=.05,Ut=Ct*.05,Nt=.375,qt=.95,gt=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt));var Rt=.05,Ut=Ct*.05,Nt=.625,qt=.95,Lt=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt));var Rt=.05,Ut=Ct*.05,Nt=.825,qt=.95,te=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt).close());var Vt=new go.PathFigure(0,tt,!1);return lt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Warehouse",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(.15*et,tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var ft=.05,gt=Ct*.05,Lt=.35,Rt=.775,Ut=new go.PathFigure((Lt-ft)*et,Rt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,(Rt-ft)*tt,(Lt-ft)*et,(Rt-gt)*tt,(Lt-gt)*et,(Rt-ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+ft)*et,Rt*tt,(Lt+gt)*et,(Rt-ft)*tt,(Lt+ft)*et,(Rt-gt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,(Rt+ft)*tt,(Lt+ft)*et,(Rt+gt)*tt,(Lt+gt)*et,(Rt+ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-ft)*et,Rt*tt,(Lt-gt)*et,(Rt+ft)*tt,(Lt-ft)*et,(Rt+gt)*tt).close()),lt}),go.Shape.defineFigureGenerator("ControlCenter",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),lt}),go.Shape.defineFigureGenerator("Bluetooth",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.75*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Globe",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),lt}),go.Shape.defineFigureGenerator("Wave",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.25*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Operator",function(yt,et,tt){var lt=new go.Geometry,ot=.3,ut=Ct*.3,ct=.5,ft=.7,gt=new go.PathFigure((ct-ot)*et,ft*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt));var Lt=new go.PathFigure(0,.7*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),lt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt}),go.Shape.defineFigureGenerator("Battery",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ut=new go.PathFigure(0,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*.5,ct=.5,ft=.5,gt=new go.PathFigure((ct-ot)*et,ft*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt));var Lt=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Flag",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.1*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),lt}),go.Shape.defineFigureGenerator("Help",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*.5,ct=.5,ft=.5,gt=new go.PathFigure((ct-ot)*et,ft*tt,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt).close()),ot=.05,ut=Ct*.05,ct=.5,ft=.8;var Lt=new go.PathFigure((ct-ot)*et,ft*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt).close()),Lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),lt}),go.Shape.defineFigureGenerator("Location",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Map",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.2*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),ot.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("Eject",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ut=new go.PathFigure(0,tt*.6,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*1,tt*1,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),ot.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),ot.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ut=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var ct=new go.PathFigure(.402*et,.85*tt,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var ft=new go.PathFigure(.678*et,.85*tt,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var gt=new go.PathFigure(.5*et,.1*tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),lt}),go.Shape.defineFigureGenerator("Staircase",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt*1,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),lt}),go.Shape.defineFigureGenerator("5Bars",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt*1,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ut=new go.PathFigure(et*.204,tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var ct=new go.PathFigure(et*.408,tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var ft=new go.PathFigure(et*.612,tt,!0);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var gt=new go.PathFigure(et*.816,tt,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),lt}),go.Shape.defineFigureGenerator("PC",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ut=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var ct=new go.PathFigure(et*.055,.13*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var ft=new go.PathFigure(et*.055,.18*tt,!0);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var gt=new go.PathFigure(et*1,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),lt}),go.Shape.defineFigureGenerator("Plane",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.55*et,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),lt}),go.Shape.defineFigureGenerator("Key",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*1,tt*.5,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),ot.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),lt}),go.Shape.defineFigureGenerator("FilmTape",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ut=new go.PathFigure(0,0,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ct=new go.PathFigure(et*.11,tt*.1,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var ft=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var gt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),lt}),go.Shape.defineFigureGenerator("FloppyDisk",function(yt,et,tt){var lt=new go.Geometry,ot=8,ut=ot*Ct,ct=new go.PathFigure(ot,0,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-ot)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-ot,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,ot,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-ot,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,ut,ut,0).close());var ft=new go.PathFigure(et*.83,0,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var gt=new go.PathFigure(et*.83,tt*1,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Lt=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("SpeechBubble",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=15),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var ot=lt*Ct,ut=tt*.8,ct=new go.Geometry,ft=new go.PathFigure(lt,0,!0);return ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-ot,0,et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut-lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ut,et,ut-ot,et-ot,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-lt,ot,ut,0,ut-ot)),ft.add(new go.PathSegment(go.PathSegment.Line,0,lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,ot,ot,0).close()),ot>1?(ct.spot1=new go.Spot(0,0,ot,ot),ct.spot2=new go.Spot(1,.8,-ot,-ot)):(ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.8)),ct}),go.Shape.defineFigureGenerator("Repeat",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*.45,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ut=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*.1,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ut=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var ct=new go.PathFigure(et*.28,tt*.37,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),lt}),go.Shape.defineFigureGenerator("Beaker",function(yt,et,tt){var lt=new go.Geometry,ot=15,ut=ot*Ct,ct=new go.PathFigure(et*.62,tt*.475,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-ot)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-ot,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,ot,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-ot,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(lt.spot1=new go.Spot(0,0,ut,ut),lt.spot2=new go.Spot(1,1,-ut,-ut)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*1,!0);lt.add(ot);var ut=.1/.3;ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.4,tt*0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),lt}),go.Shape.defineFigureGenerator("Bin",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*1,!0);lt.add(ot);var ut=.1/.3;return ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*1,!0);lt.add(ot);var ut=.1/.3;ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.5,tt*0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("EmptyDrink",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.15,tt*0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),lt}),go.Shape.defineFigureGenerator("Drink",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.15,tt*0,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ut=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.5,tt*0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),lt}),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 Cn={},Gn="5.0",ce={},ee=null,wt=!1,Qt=!1,Zt=null,Ot=!1,jt=null,Ct=null,Mt=0;Mt<arguments.length;Mt++){var Bt=arguments[Mt];if(Bt!==null)switch(typeof Bt){case"number":Gn=Bt.toFixed(1);break;case"string":Bt.match(new RegExp("^[0-9]\\.[0-9]+$"))?Gn=Bt:Zt=Bt;break;case"object":typeof Bt.is3D!="undefined"?ee=Bt:ce=Bt;break;case"boolean":wt=Bt,Qt=!0;break}}ee===null&&(ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ce.material_id!==void 0&&!Qt&&(wt=!0)),Zt!==null&&ce.id===void 0&&(ce.id=Zt);var St="",kt="",xt=!1,Dt=null,yt=null,et=null,tt=!1,lt=null,ot=null,ut=null,ct=null,ft=null;ce.height!==void 0&&(ce.height=Math.round(ce.height)),ce.width!==void 0&&(ce.width=Math.round(ce.width));var gt=function(ue){return parseFloat(ue)>4?parseFloat(ue):5};Cn.setHTML5Codebase=function(ue,Re){Ct=ue,re(ue,Re)},Cn.setJavaCodebase=Cn.setJavaCodebaseVersion=Cn.isCompiledInstalled=Cn.setPreCompiledScriptPath=Cn.setPreCompiledResourcePath=function(){},Cn.setHTML5CodebaseVersion=function(ue,Re){var Fe=parseFloat(ue);if(Fe!==NaN&&Fe<5){console.log("The GeoGebra HTML5 codebase version "+Fe+" is deprecated. Using version latest instead.");return}jt=ue,Jt(ue,Re)},Cn.getHTML5CodebaseVersion=function(){return yt},Cn.getParameters=function(){return ce},Cn.setFontsCSSURL=function(ue){ct=ue},Cn.setGiacJSURL=function(ue){},Cn.setJNLPFile=function(ue){St=ue},Cn.setJNLPBaseDir=function(ue){},Cn.inject=function(){function ue(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Re="auto",Fe=ce.id,Qe,Ae=!1,_e=0;_e<arguments.length;_e++){var Le=arguments[_e];typeof Le=="string"?(Le=Le.toLowerCase(),Le.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Re=Le:Fe=arguments[_e]):typeof Le=="boolean"?Ae=Le:Le instanceof HTMLElement&&(Qe=Le)}Oe();function Oe(){if(!Ot){setTimeout(Oe,200);return}Re=ze(Re);var He=Qe||document.getElementById(Fe);if(!He){console.log("possibly bug on ajax loading? ");return}if(Cn.removeExistingApplet(He,!1),ce.width===void 0&&He.clientWidth&&(ce.width=He.clientWidth),ce.height===void 0&&He.clientHeight&&(ce.height=He.clientHeight),!(ce.width&&ce.height)&&Re==="html5"&&(delete ce.width,delete ce.height),Dt=Re,Re==="screenshot")ge(He,ce);else{var ie=!1;ce.hasOwnProperty("playButton")&&ce.playButton||ce.hasOwnProperty("clickToLoad")&&ce.clickToLoad?ie=!0:ce.hasOwnProperty("playButtonAutoDecide")&&ce.playButtonAutoDecide&&(ie=(!Lt()||ue())&&Rt()),ie?(Dt="screenshot",Ne(He,ce,Ae,Re)):de(He,ce,Ae)}}};function Lt(){try{return window.self!==window.top}catch(ue){return!0}}function Rt(){return ce.hasOwnProperty("screenshotGenerator")&&ce.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Cn.getViews=function(){return ee},Cn.isJavaInstalled=function(){return!1};var Ut=function(ue){var Re=function(_e){var Le=JSON.parse(_e),Oe=function(Tt){return Tt.type=="G"||Tt.type=="E"},He=Le.elements?Le.elements.filter(Oe)[0]:Le;if(!He||!He.url){Fe();return}ce.fileName=He.url,Nt(He.settings||{}),ee.is3D=!0;var ie="https://www.geogebra.org/images/";Cn.setPreviewImage(lt||He.previewUrl,ie+"GeoGebra_loading.png",ie+"applet_play.png"),ue()},Fe=function(){ce.onError&&ce.onError(),se("Error: Fetching material (id "+ce.material_id+") failed.",ce)},Qe=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ae="/materials/"+ce.material_id+"?scope=basic";qt("https://"+Qe+"/api/proxy.php?path="+encodeURIComponent(Ae),Re,Fe)};function Nt(ue){var Re=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Fe){ue[Fe]=!!ue[Fe]}),Re.forEach(function(Fe){ce[Fe]===void 0&&ue[Fe]!==void 0&&(ce[Fe]=ue[Fe])}),ce.showToolBarHelp===void 0&&(ce.showToolBarHelp=ce.showToolBar)}function qt(ue,Re,Fe){var Qe=new XMLHttpRequest;Qe.open("GET",ue),Qe.onload=function(){Re(Qe.responseText)},Qe.onerror=Fe,Qe.send()}Cn.isHTML5Installed=function(){return!0},Cn.getLoadedAppletType=function(){return Dt},Cn.setPreviewImage=function(ue,Re,Fe){lt=ue,ot=Re,ut=Fe},Cn.removeExistingApplet=function(ue,Re){var Fe;typeof ue=="string"&&(ue=document.getElementById(ue)),Dt=null;var Qe=null;for(Fe=0;Fe<ue.childNodes.length;Fe++){var Ae=ue.childNodes[Fe],_e=Ae.className;_e==="applet_screenshot"?Re?(Ae.style.display="block",Dt="screenshot"):Ae.style.display="none":_e!=="applet_scaler prerender"&&(ue.removeChild(Ae),Qe=_e&&_e.indexOf("appletParameters")!=-1?Ae.id:null,Fe--)}var Le=ce.id!==void 0?ce.id:Qe,Oe=window[Le];Oe&&typeof Oe.getBase64=="function"&&(Oe.remove(),window[Le]=null)},Cn.refreshHitPoints=function(){if(gt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ue=Cn.getAppletObject();return ue&&typeof ue.recalculateEnvironments=="function"?(ue.recalculateEnvironments(),!0):!1},Cn.startAnimation=function(){var ue=Cn.getAppletObject();return ue&&typeof ue.startAnimation=="function"?(ue.startAnimation(),!0):!1},Cn.stopAnimation=function(){var ue=Cn.getAppletObject();return ue&&typeof ue.stopAnimation=="function"?(ue.stopAnimation(),!0):!1},Cn.getAppletObject=function(){var ue=ce.id!==void 0?ce.id:"ggbApplet";return window[ue]},Cn.resize=function(){};var te=function(ue,Re,Fe){var Qe=document.createElement("param");Qe.setAttribute("name",Re),Qe.setAttribute("value",Fe),ue.appendChild(Qe)},Vt=function(ue){return ue&&ue!=="false"},de=function(ue,Re,Fe){gt(yt)<=4.2&&(Fe=!0);var Qe=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==yt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Qe=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ae=document.createElement("div");Ae.classList.add("appletParameters","notranslate");var _e=Re.width,Le=Re.height;if(Re.disableAutoScale=Re.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Re.disableAutoScale,Re.width!==void 0)if(gt(yt)<=4.4)Vt(Re.showToolBar)&&(Re.height-=7),Vt(Re.showAlgebraInput)&&(Re.height-=37),Re.width<605&&Vt(Re.showToolBar)&&(Re.width=605,_e=605);else{var Oe=100;(Vt(Re.showToolBar)||Vt(Re.showMenuBar))&&(Re.hasOwnProperty("customToolBar")&&(Re.customToolbar=Re.customToolBar),Oe=Vt(Re.showMenuBar)?245:155),_e<Oe&&(Re.width=Oe,_e=Oe)}Ae.style.border="none",Ae.style.display="inline-block";for(var He in Re)Re.hasOwnProperty(He)&&He!=="appletOnLoad"&&Ae.setAttribute("data-param-"+He,Re[He]);ct&&Ae.setAttribute("data-param-fontscssurl",ct),Cn.resize=function(){GGBAppletUtils.responsiveResize(ue,Re)},window.addEventListener("resize",function(le){Cn.resize()});var ie=typeof Re.appletOnLoad=="function"?Re.appletOnLoad:function(){};if(!Fe&&Re.width!==void 0){Re.hasOwnProperty("showSplash")||Ae.setAttribute("data-param-showSplash","false");var Tt=ue.querySelector(".applet_scaler.prerender"),At=Tt!==null;if(At)var Yt=Tt.querySelector(".ggb_preview");else{var Yt=Pe(_e,Le,Re.borderColor,!1);Tt=document.createElement("div"),Tt.className="applet_scaler",Tt.style.position="relative",Tt.style.display="block",Tt.style.width=_e+"px",Tt.style.height=Le+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tt,"66%"),gt(yt)>=5?(Re.appletOnLoad=function(le){var ye=ue.querySelector(".ggb_preview");ye&&ye.parentNode.removeChild(ye),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Tt),window.GGBT_wsf_view&&$(window).trigger("resize"),ie(le)},At||Tt.appendChild(Yt)):Ae.appendChild(Yt),Tt.appendChild(Ae),At||ue.appendChild(Tt),setTimeout(function(){Cn.resize()},1)}else{var oe=document.createElement("div");oe.className="applet_scaler",oe.style.position="relative",oe.style.display="block",oe.appendChild(Ae),ue.appendChild(oe),Re.appletOnLoad=function(le){Cn.resize(),ie(le)}}function _t(le,ye){ye&&typeof ye.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(le,ye.appletOnLoad):renderGGBElement(le),se("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ye)}function It(le,ye){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:le,params:ye}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ue){_t(Ue.article,Ue.params)}),html5AppletsToProcess=null)},gt(yt)<5&&(le.className+=" geogebraweb")):_t(le,ye)}if(Qe){scriptLoadStarted=!0;for(var Pt=0;Pt<Ae.childNodes.length;Pt++){var Et=Ae.childNodes[Pt].tagName;Et==="TABLE"&&(Ae.removeChild(Ae.childNodes[Pt]),Pt--)}if(ggbHTML5LoadedScript!==null){var $t=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');$t!=null&&$t.parentNode.removeChild($t)}var zt=document.createElement("script"),Gt=function(){It(Ae,Re)};zt.src=kt+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=yt,ggbHTML5LoadedScript=zt.src,se("GeoGebra HTML5 codebase loaded: '"+kt+"'.",Re),!Ct&&(!jt||jt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Gt()):kt.requirejs?__webpack_require__.e(7963).then(function(){var le=[__webpack_require__(87963)];Gt.apply(null,le)}.bind(this)).catch(__webpack_require__.oe):(zt.onload=Gt,ue.appendChild(zt))}else It(Ae,Re);Re.height=Le,Re.width=_e},ge=function(ue,Re,Fe){var Qe=Pe(Re.width,Re.height,Re.borderColor,Fe),Ae=document.createElement("div");Ae.style.position="relative",Ae.style.display="block",Ae.style.width=Re.width+"px",Ae.style.height=Re.height+"px",Ae.className="applet_screenshot applet_scaler"+(Fe?" applet_screenshot_play":""),Ae.appendChild(Qe);var _e=GGBAppletUtils.getScale(Re,ue,Fe);Fe?(ue.appendChild(Ge()),window.GGBT_wsf_view||(ue.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ae,"66%"),ue.appendChild(Ae),_e!==1&&!isNaN(_e)&&(GGBAppletUtils.scaleElement(Ae,_e),Ae.style.width=Re.width+"px",Ae.style.height=Re.height+"px",Ae.parentNode.style.width=Re.width*_e+"px",Ae.parentNode.style.height=Re.height*_e+"px"),Cn.resize=function(){be(ue,Qe,Ae,Fe)},window.addEventListener("resize",function(Le){Cn.resize()}),Cn.resize()};function be(ue,Re,Fe,Qe){if(ue.contains(Re)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ue.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}var Ae=GGBAppletUtils.getScale(ce,ue,Qe);Fe.parentNode!==null&&(!isNaN(Ae)&&Ae!==1?(GGBAppletUtils.scaleElement(Fe,Ae),Fe.parentNode.style.width=ce.width*Ae+"px",Fe.parentNode.style.height=ce.height*Ae+"px"):(GGBAppletUtils.scaleElement(Fe,1),Fe.parentNode.style.width=ce.width+"px",Fe.parentNode.style.height=ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ue),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Cn.onExitFullscreen=function(ue,Re){Re.appendChild(ue)};var Ne=function(ue,Re,Fe,Qe){ge(ue,Re,!0);for(var Ae=function(){var Oe=[];for(Le=0;Le<ue.childNodes.length;Le++)Oe.push(ue.childNodes[Le]);if(window.GGBT_wsf_view){var He=window.GGBT_wsf_view.renderFullScreen(ue,Re.id),ie=document.getElementById("fullscreencontainer"),Tt=jQuery(ue).find(".fullscreencontent");Tt.length>0?(He.remove(),Tt.attr("id","fullscreencontent").show(),jQuery(ie).append(Tt),window.dispatchEvent(new Event("resize"))):de(He,Re,!1),window.GGBT_wsf_view.launchFullScreen(ie)}else Dt=Qe,de(ue,Re,!1);if(!window.GGBT_wsf_view)for(Le=0;Le<Oe.length;Le++)ue.removeChild(Oe[Le])},_e=ue.getElementsByClassName("ggb_preview_play"),Le=0;Le<_e.length;Le++)_e[Le].addEventListener("click",Ae,!1),_e[Le].addEventListener("ontouchstart",Ae,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ue),Rt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ge=function(){var ue=document.createElement("div");if(ue.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Re='.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");}',Fe=document.createElement("style");Fe.styleSheet?Fe.styleSheet.cssText=Re:Fe.appendChild(document.createTextNode(Re)),document.getElementsByTagName("head")[0].appendChild(Fe)}return ue},Pe=function(ue,Re,Fe,Qe){var Ae=document.createElement("div");Ae.className="ggb_preview",Ae.style.position="absolute",Ae.style.zIndex="90",Ae.style.width=ue-2+"px",Ae.style.height=Re-2+"px",Ae.style.top="0px",Ae.style.left="0px",Ae.style.overflow="hidden",Ae.style.backgroundColor="white";var _e="lightgrey";Fe!==void 0&&(Fe==="none"?_e="transparent":_e=Fe),Ae.style.border="1px solid "+_e;var Le=document.createElement("img");if(Le.style.position="relative",Le.style.zIndex="1000",Le.style.top="-1px",Le.style.left="-1px",lt!==null&&Le.setAttribute("src",lt),Le.style.opacity=.7,ot!==null){var Oe,He,ie;if(!Qe){Oe=document.createElement("img"),Oe.style.position="absolute",Oe.style.zIndex="1001",Oe.style.opacity=1,Le.style.opacity=.3,He=360,He>ue/4*3&&(He=ue/4*3),ie=He/5.8,Oe.setAttribute("src",ot),Oe.setAttribute("width",He),Oe.setAttribute("height",ie);var Tt=(ue-He)/2,At=(Re-ie)/2;Oe.style.left=Tt+"px",Oe.style.top=At+"px",Ae.appendChild(Oe)}}return Ae.appendChild(Le),Ae},ze=function(ue){return ue=ue.toLowerCase(),ue==="html5"||ue==="screenshot"?ue:"html5"},he=["web","webSimple","web3d","tablet","tablet3d","phone"],Jt=function(ue,Re){if(yt=ue,Re){re(yt,!0);return}var Fe=!wt;if(Fe){var Qe=gt(yt);!isNaN(Qe)&&Qe<4.4&&(Fe=!1)}var Ae,_e;window.location.protocol.substr(0,4)==="http"?Ae=window.location.protocol:Ae="http:";var Le=yt.indexOf("//");Le>0?_e=yt:Le===0?_e=Ae+yt:_e="https://www.geogebra.org/apps/5.2.814.0/";for(var Oe in he)if(yt.slice(he[Oe].length*-1)===he[Oe]||yt.slice((he[Oe].length+1)*-1)===he[Oe]+"/"){re(_e,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Vt(ce.showToolBar)&&!Vt(ce.showMenuBar)&&!Vt(ce.showAlgebraInput)&&!Vt(ce.enableRightClick)&&(!ce.appName||ce.appName=="classic")?_e+="webSimple/":_e+="web3d/",re(_e,!1)},re=function(ue,Re){if(ue.requirejs){kt=ue;return}ue.slice(-1)!=="/"&&(ue+="/"),kt=ue,Re===null&&(Re=ue.indexOf("http")===-1),xt=Re,et="web.nocache.js",tt=!1;var Fe=kt.split("/");Fe.length>1&&(!Re&&Fe[Fe.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):he.indexOf(Fe[Fe.length-2])>=0&&(et=Fe[Fe.length-2]+".nocache.js")),Fe=ue.split("/"),yt=Fe[Fe.length-3],yt.substr(0,4)==="test"?yt=yt.substr(4,1)+"."+yt.substr(5,1):(yt.substr(0,3)==="war"||yt.substr(0,4)==="beta")&&(yt="5.0");var Qe=parseFloat(yt);Qe!==NaN&&Qe<5&&ue.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead."),Jt("5.0",Re))},se=function(ue,Re){window.console&&window.console.log&&(!Re||typeof Re.showLogging=="undefined"||Re.showLogging&&Re.showLogging!=="false")&&console.log(ue)};ce.material_id!==void 0?Ut(pe):pe();function pe(){var ue=Gn;jt!==null?ue=jt:parseFloat(ue)<5&&(ue="5.0"),Jt(ue,!1),Ct!==null&&re(Ct,xt),Ot=!0}return Cn},GGBAppletUtils=function(){"use strict";function Cn(){return window.GGBT_wsf_edit!==void 0}function Gn(Ot,jt){jt!=1?(Ot.style.transformOrigin="0% 0% 0px",Ot.style.webkitTransformOrigin="0% 0% 0px",Ot.style.transform="scale("+jt+","+jt+")",Ot.style.webkitTransform="scale("+jt+","+jt+")",Ot.style.maxWidth="initial",Ot.querySelector(".ggb_preview")!==null&&(Ot.querySelector(".ggb_preview").style.maxWidth="initial"),Ot.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ot.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ot.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ot.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ot.style.transform="none",Ot.style.webkitTransform="none")}function ce(Ot,jt,Ct,Mt,Bt,St){var kt=null;if(St!=null&&St!="")for(var xt=Ot.parentNode;xt!=null;)if((" "+xt.className+" ").indexOf(" "+St+" ")>-1){kt=xt;break}else xt=xt.parentNode;var Dt=0,yt=0,et=0,tt=0,lt=0,ot=0,ut=0;if(kt)Dt=kt.offsetWidth,yt=Math.max(Mt?kt.offsetWidth:0,kt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Dt=Math.min(window.innerWidth,document.documentElement.clientWidth),yt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Dt):(Dt=window.innerWidth,yt=window.innerHeight,et=window.innerWidth),Ot){var ct=Ot.getBoundingClientRect();ct.left>0&&ct.left<=Dt&&(Bt===void 0||!Bt)&&(document.dir==="rtl"?(lt=Dt-ct.width-ct.left,ot=et<=480?10:30):(ot=ct.left,lt=et<=480?10:30),tt=ot+lt)}if(Ot&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ft=Ot.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return Ot&&((Ct===void 0||!Ct)&&jt>0&&jt+tt<Dt?Dt=jt:Dt-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ct===void 0||!Ct)&&(yt-=ut)),{width:Dt,height:yt}}function ee(Ot,jt,Ct,Mt,Bt){if(Ot.isScreenshoGenerator)return 1;var St=Mt!==void 0&&Mt,kt=Ot.noScaleMargin!=null&&Ot.noScaleMargin,xt=function(ft){return ft&&ft!=="false"},Dt=xt(Ot.autoHeight),yt=ce(jt,Ot.width,Ct,Dt,St&&window.GGBT_wsf_view||kt,Bt),et=parseInt(yt.width),tt=Ot.width,lt=Ot.height;if(tt===void 0){var ot=jt.querySelector(".appletParameters");ot&&(tt=ot.offsetWidth,lt=ot.offsetHeight)}var ut=et/tt,ct=St?1:yt.height/lt;return Ct!==void 0&&!Ct&&(ut=Math.min(1,ut),ct=Math.min(1,ct)),Math.min(ut,ct)}function wt(Ot,jt,Ct){var Mt=1,Bt,St=!1;if(Ot.hasOwnProperty("allowUpscale")&&(St=Ot.allowUpscale),Ot.hasOwnProperty("scale")&&(Mt=parseFloat(Ot.scale),(isNaN(Mt)||Mt===null||Mt===0)&&(Mt=1),Mt>1&&(St=!0)),jt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(St=!0),!(Ot.hasOwnProperty("disableAutoScale")&&Ot.disableAutoScale))Bt=ee(Ot,jt,St,Ct,Ot.scaleContainerClass);else return Mt;return St&&(!Ot.hasOwnProperty("scale")||Mt===1)?Bt:Math.min(Mt,Bt)}function Qt(Ot){var jt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ct=Math.min(window.innerHeight,document.documentElement.clientHeight),Mt=Ot.getBoundingClientRect(),Bt=(jt-Mt.width)/2,St=(Ct-Mt.height)/2;St<0&&(St=0),Ot.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Bt<40?Ot.style.left="40px":Ot.style.left=Bt+"px",Ot.style.top=St+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(St<40?Ot.style.top="40px":Ot.style.top=St+"px",Ot.style.left=Bt+"px")}function Zt(Ot,jt){var Ct=Ot.querySelector(".appletParameters");if(Ct){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(jt.id!==Ct.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ot)}if(Ct.parentElement&&/fullscreen/.test(Ct.parentElement.className))return;var Mt=wt(jt,Ot);Cn()&&Ct.setAttribute("data-param-scale",Mt);for(var Bt=null,St=0;St<Ot.childNodes.length;St++)if(Ot.childNodes[St].className!==void 0&&Ot.childNodes[St].className.match(/^applet_scaler/)){Bt=Ot.childNodes[St];break}if(Bt!==null&&Bt.querySelector(".noscale")!==null)return;var kt=jt.id!==void 0?jt.id:"ggbApplet",xt=window[kt];(xt==null||!xt.recalculateEnvironments)&&Bt!==null&&!Bt.className.match(/fullscreen/)&&(Bt.parentNode.style.transform="",!isNaN(Mt)&&Mt!==1?(Bt.parentNode.style.width=jt.width*Mt+"px",Bt.parentNode.style.height=jt.height*Mt+"px",Gn(Bt,Mt)):(Gn(Bt,1),Bt.parentNode.style.width=jt.width+"px",Bt.parentNode.style.height=jt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Qt(Ot),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ct).parents(".content-added-content"))}}return{responsiveResize:Zt,isFlexibleWorksheetEditor:Cn,positionCenter:Qt,getScale:wt,scaleElement:Gn}}();__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 Cn=n.location.search;return Cn.indexOf(J)!=-1||Cn.indexOf(K)!=-1}function q(Cn,Gn){}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(Cn){var Gn=s[L].bindings;s[L].bindings=function(){for(var ce=Gn?Gn():{},ee=Cn[webModule.__softPermutationId],wt=O;wt<ee.length;wt++){var Qt=ee[wt];ce[Qt[O]]=Qt[P]}return ce}};var t;function u(){return v(),t}function v(){if(!t){var Cn=o.createElement(Q);if(Cn.id=L,Cn.style.cssText=R+S,Cn.tabIndex=-1,o.body.appendChild(Cn),t=Cn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Gn=document.compatMode==U?V:W;t.write(Gn+X),t.close()}}}function w(Cn){function Gn(ee){function wt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Qt=wt();if(Qt){ee();return}function Zt(){if(!Qt){if(!wt())return;Qt=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,Zt,!1),Ot&&clearInterval(Ot)}}o.addEventListener&&o.addEventListener(Z,Zt,!1);var Ot=setInterval(function(){Zt()},$)}function ce(ee){var wt=u(),Qt=wt.body,Zt=wt.createElement(_);Zt.language=ab,Zt.crossOrigin=W,Zt.src=ee,webModule.__errFn&&(Zt.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),Qt.appendChild(Zt)}Gn(function(){ce(Cn)})}webModule.__startLoadingFragment=function(Cn){return C(Cn)},webModule.__installRunAsyncCode=function(Cn){var Gn=u(),ce=Gn.body,ee=Gn.createElement(_);ee.language=ab,ee.text=Cn,ce.appendChild(ee),ce.removeChild(ee)};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(Cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Cn){var Gn=c[Cn];return Gn==null?null:Gn},r=d,webModule.__errFn=e}function B(){function Cn(Ot){var jt=Ot.lastIndexOf(rb);jt==-1&&(jt=Ot.length);var Ct=Ot.indexOf(sb);Ct==-1&&(Ct=Ot.length);var Mt=Ot.lastIndexOf(tb,Math.min(Ct,jt));return Mt>=O?Ot.substring(O,Mt+P):W}function Gn(Ot){if(!Ot.match(/^\w+:\/\//)){var jt=o.createElement(ub);jt.src=Ot+vb,Ot=Cn(jt.src)}return Ot}function ce(){var Ot=__gwt_getMetaProperty(wb);return Ot!=null?Ot:W}function ee(){for(var Ot=o.getElementsByTagName(_),jt=O;jt<Ot.length;++jt)if(Ot[jt].src.indexOf(xb)!=-1)return Cn(Ot[jt].src);return W}function wt(){var Ot=o.getElementsByTagName(yb);return Ot.length>O?Ot[Ot.length-P].href:W}function Qt(){var Ot=o.location;return Ot.href==Ot.protocol+zb+Ot.host+Ot.pathname+Ot.search+Ot.hash}var Zt=ce();return Zt==W&&(Zt=ee()),Zt==W&&(Zt=wt()),Zt==W&&Qt()&&(Zt=Cn(o.location.href)),Zt=Gn(Zt),Zt}function C(Cn){return Cn.match(/^\//)||Cn.match(/^[a-zA-Z]+:\/\//)?Cn:webModule.__moduleBase+Cn}function D(){var Cn=[],Gn=O,ce=[],ee=[];function wt(Ot){var jt=ee[Ot](),Ct=ce[Ot];if(jt in Ct)return jt;var Mt=[];for(var Bt in Ct)Mt[Ct[Bt]]=Bt;throw r&&r(Ot,Mt,jt),null}if(__gwt_isKnownPropertyValue=function(Ot,jt){return jt in ce[Ot]},webModule.__getPropMap=function(){var Ot={};for(var jt in ce)ce.hasOwnProperty(jt)&&(Ot[jt]=wt(jt));return Ot},webModule.__computePropValue=wt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Qt;try{Qt=Cb;var Zt=Qt.indexOf(Db);Zt!=-1&&(Gn=parseInt(Qt.substring(Zt+P),$),Qt=Qt.substring(O,Zt))}catch(Ot){}return webModule.__softPermutationId=Gn,C(Qt+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})()},11324:function(Cn,Gn,ce){"use strict";ce.d(Gn,{$Y:function(){return _e},A0:function(){return Re},EP:function(){return Ot},F_:function(){return Mt},Fk:function(){return _t},G9:function(){return Ct},GB:function(){return re},GR:function(){return ot},GW:function(){return Qe},Hh:function(){return It},Hp:function(){return Dt},Ir:function(){return wt},N$:function(){return se},NZ:function(){return be},Nv:function(){return oe},OA:function(){return Tt},OJ:function(){return Pe},QF:function(){return ye},RS:function(){return Lt},RY:function(){return Gt},Rj:function(){return Ne},SX:function(){return Nt},Tp:function(){return Le},Ui:function(){return ue},V1:function(){return he},Vn:function(){return Ut},dL:function(){return Yt},fo:function(){return te},gG:function(){return Vt},gK:function(){return lt},hK:function(){return yt},i3:function(){return St},ib:function(){return et},lS:function(){return tt},m5:function(){return jt},n4:function(){return ee},n_:function(){return kt},oP:function(){return Oe},p2:function(){return Fe},pl:function(){return ge},rM:function(){return ft},sM:function(){return xt},t2:function(){return Rt},tD:function(){return ut},u8:function(){return ct},um:function(){return le},vm:function(){return At},wQ:function(){return Bt},wj:function(){return ze},wt:function(){return de},yS:function(){return gt},yi:function(){return Qt},ym:function(){return Ge},z2:function(){return Zt}});const ee="FETCH_TASK_START",wt="FETCH_TASK_FAILURE",Qt="FETCH_TASK_SUCCESS",Zt="UPDATE_TASK_DATA",Ot="HIDE_EVALUATE_RESULT",jt="SHOW_EVALUATE_RESULT",Ct="UPDATE_TIMESTRAP",Mt="MOVE_X",Bt="MOVE_Y",St="TRIGGER_RIGHT_PANEL_MASK ",kt="SET_ACTIVE_INDEX",xt="GET_TASK_LIST",Dt="SHOW_TASK_LIST",yt="HIDE_TASK_LIST",et="SET_TASK_STAR",tt="TRIGGER_ENLARGE_UNITY3D ",lt="TRIGGER_TAB_FIXED ",ot="GET_DISCUSSES",ut="SHOW_DISCUSSES_LOADING",ct="TOP_OR_DOWN_DISCUSS",ft="PLUS_DISCUSS",gt="SET_ACTION_TYPE",Lt="SHOW_REWARD_DIALOG",Rt="CANCEL_REWARD_DIALOG",Ut="SET_REWARD",Nt="ACTIVE_DISCUSS_INDEX",qt="CREATE_DISCUSS",te="DISABLE_DISCUSS",Vt="CHANGE_PAGE",de="SHOW_ANSWER_LOADING",ge="FETCH_ANSWER_INFO",be="HIGH_TIP_MODAL",Ne="SHOW_TIP_MODAL",Ge="SELECT_UNLOCK_ANSWER",Pe="SET_CHOOSE_ANSWERS",ze="EVAL_CHOOSE_START",he="EVAL_CHOOSE_END",Jt="SHOW_REP_loading",re="FETCH_REP_CONTENT",se="EDIT_REP_CONTENT",pe="SET_REP_PATH",ue="SHOW_EVALUATE_LOADING",Re="HIDE_EVALUATE_LOADING",Fe="SET_EVALUATE_MESSAGE",Qe="SET_SHOW_DIR",Ae="SET_EDITOR_SETTING",_e="SET_EDITOR_THEME",Le="SET_EDITOR_FONTSIZE",Oe="SET_REPOS",He="SHOW_PATH_LIST",ie="HIDE_PATH_LIST",Tt="HIDE_PICTURE_VIEW",At="SHOW_PICTURE_VIEW",Yt="SHOW_NOTICE",oe="HIDE_NOTICE",_t="SHOW_CASE_NOTICE",It="HIDE_CASE_NOTICE",Pt="SET_TAB_INDEX",Et="SET_SSH_TABS",$t="SET_SSH_CONFIGDATA",zt="SET_SSH_CONFIGDATAARR",Gt="SET_VNC_LOADING ",le="ON_TAB_TO_SPACE ",ye="ON_AUTO_FORMAT "},46699:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Ax:function(){return Zt},Ds:function(){return Ot},KI:function(){return Ct},SI:function(){return Qt},f1:function(){return wt}});var ee=ce(346);function wt(Mt){let Bt=!0;if(Mt.length>0){for(let St=0;St<Mt.length;St++)if(Mt[St].compile_success==0||!Mt[St].compile_success){Bt=!1;break}}else Bt=!1;return Bt}function Qt(Mt,Bt=""){let St=[];for(let kt=0;kt<Mt.length;kt++){let xt=Mt[kt],Dt=Bt?`${Bt}/${xt.name}`:`${xt.name}`;St.push({title:xt.name,type:xt.type,isLeaf:xt.type!=="tree",key:Dt})}return St}function Zt(Mt,Bt,St){for(let kt=0;kt<Mt.length;kt++){let xt=Mt[kt];if(xt.key===Bt){xt.children=St;break}xt.children&&Zt(xt.children,Bt,St)}return Mt}function Ot(Mt,Bt,St){let kt;return function(){let xt=this,Dt=arguments,yt=function(){kt=null,St||Mt.apply(xt,Dt)},et=St&&!kt;clearTimeout(kt),kt=setTimeout(yt,Bt),et&&Mt.apply(xt,Dt)}}const jt=!0,Ct=ee.Z.API_SERVER},84842:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return yt}});var ee=ce(99571),wt=ce(59301),Qt=Object.defineProperty,Zt=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Bt=(et,tt,lt)=>tt in et?Qt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):et[tt]=lt,St=(et,tt)=>{for(var lt in tt||(tt={}))Ct.call(tt,lt)&&Bt(et,lt,tt[lt]);if(jt)for(var lt of jt(tt))Mt.call(tt,lt)&&Bt(et,lt,tt[lt]);return et},kt=(et,tt)=>Zt(et,Ot(tt)),xt=(et,tt)=>{var lt={};for(var ot in et)Ct.call(et,ot)&&tt.indexOf(ot)<0&&(lt[ot]=et[ot]);if(et!=null&&jt)for(var ot of jt(et))tt.indexOf(ot)<0&&Mt.call(et,ot)&&(lt[ot]=et[ot]);return lt},Dt=(et,tt,lt)=>new Promise((ot,ut)=>{var ct=Lt=>{try{gt(lt.next(Lt))}catch(Rt){ut(Rt)}},ft=Lt=>{try{gt(lt.throw(Lt))}catch(Rt){ut(Rt)}},gt=Lt=>Lt.done?ot(Lt.value):Promise.resolve(Lt.value).then(ct,ft);gt((lt=lt.apply(et,tt)).next())});const yt=et=>{var tt=et,{children:lt}=tt,ot=xt(tt,["children"]);const[ut,ct]=(0,wt.useState)(!1);return wt.createElement(ee.ZP,kt(St({},ot),{loading:ut,onClick:ft=>Dt(void 0,null,function*(){try{ct(!0),yield ot.onClick(ft),ct(!1)}catch(gt){console.error(gt),ct(!1)}})}),lt)}},30502:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return St}});var ee=ce(59301),wt=ce(99571),Qt=ce(6767),Zt=ce(14566),Ot=ce(32050),jt=ce(19248),Ct=ce(346),Mt={img:"img___BgL9D"},St=({value:kt,onChange:xt,getFileProgress:Dt})=>{const[yt,et]=(0,ee.useState)(!1),tt=ee.createElement(wt.ZP,{loading:yt,icon:ee.createElement(Ot.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),lt=()=>ee.createElement("div",{className:Mt.img},ee.createElement("img",{src:Ct.Z.API_SERVER+"/api/attachments/"+kt,alt:"avatar",style:{width:288}}),ee.createElement("div",null,ee.createElement(jt.Z,{onClick:()=>xt(""),style:{fontSize:"16px",color:"red"}}))),ot=ut=>{var ct,ft,gt,Lt,Rt,Ut;if(Dt&&Dt(ut),ut.file.status==="uploading"){et(!0);return}if(ut.file.status==="done"){if(et(!1),ut.file.status==="done"&&((ft=(ct=ut.file)==null?void 0:ct.response)==null?void 0:ft.status)===-1){Qt.ZP.error((Lt=(gt=ut.file)==null?void 0:gt.response)==null?void 0:Lt.message);return}xt((Ut=(Rt=ut==null?void 0:ut.file)==null?void 0:Rt.response)==null?void 0:Ut.id)}};return ee.createElement(ee.Fragment,null,kt?lt():ee.createElement("div",null,ee.createElement(Zt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${Ct.Z.API_SERVER}/api/attachments.json`,onChange:ot,accept:"image/*"},tt),ee.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),ee.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},9507:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return kt}});var ee=ce(59301),wt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Qt=ce(92310),Zt=ce.n(Qt),Ot=ce(29787),jt=ce(2859),Ct=ce(38986),Mt=ce(51257),Bt=(xt,Dt,yt)=>new Promise((et,tt)=>{var lt=ct=>{try{ut(yt.next(ct))}catch(ft){tt(ft)}},ot=ct=>{try{ut(yt.throw(ct))}catch(ft){tt(ft)}},ut=ct=>ct.done?et(ct.value):Promise.resolve(ct.value).then(lt,ot);ut((yt=yt.apply(xt,Dt)).next())}),kt=({data:xt,className:Dt,fullWidth:yt,style:et={},onClose:tt,onOk:lt,showFullTools:ot,noAssociationId:ut})=>{const ct=(0,ee.useRef)(null),ft=(0,ee.useRef)(null),gt=(0,ee.useRef)(null),Lt=(0,ee.useRef)(null),[Rt,Ut]=(0,ee.useState)(!1),[Nt,qt]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>(gt.current||(gt.current=document.createElement("style"),document.head.appendChild(gt.current)),xt!=null&&xt.visible?(document.body.setAttribute("data-custom","y-hidden"),gt.current.innerHTML=" html { overflow-y: hidden; }",xt!=null&&xt.src&&te()):(document.body.removeAttribute("data-custom"),gt.current&&(document.head.removeChild(gt.current),gt.current=null)),()=>{document.body.removeAttribute("data-custom"),gt.current&&(document.head.removeChild(gt.current),gt.current=null)}),[xt==null?void 0:xt.visible]);const te=()=>Bt(void 0,null,function*(){Ut(!0),qt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Mt.ZJ)(xt==null?void 0:xt.src);ct.current.src="",ct.current.src=be,ct.current.onload=function(){ge()},Ut(!1),qt("")}),Vt=be=>Bt(void 0,null,function*(){Ut(!0),qt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ne=yield(0,Ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:xt.title,file:be.dataUrl}});Ne!=null&&Ne.id&&!ut?(yield(0,Ct.ZP)(`/api/attachments/${xt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ne==null?void 0:Ne.id,settings:JSON.stringify(be.state)}})).status===0&<():Ne!=null&&Ne.id&<(Ne),Ut(!1),qt("")}),de=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.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(Ge=>{const Pe=document.querySelector(Ge.name);Pe&&Pe.setAttribute("title",Ge.title)})},ge=()=>{ft.current=new jt.hP(ct.current),ft.current.targetRoot=Lt.current,ft.current.addEventListener("render",Vt),ft.current.addEventListener("beforeclose",tt),ot&&(ft.current.availableMarkerTypes=ft.current.ALL_MARKER_TYPES,ft.current.uiStyleSettings.redoButtonVisible=!0,ft.current.uiStyleSettings.notesButtonVisible=!0,ft.current.uiStyleSettings.zoomButtonVisible=!0,ft.current.uiStyleSettings.zoomOutButtonVisible=!0,ft.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ft.current.uiStyleSettings,ft.current.show(),xt!=null&&xt.snapshotData&&ft.current.restoreState(xt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),de()},300)};return ee.createElement(ee.Fragment,null,(xt==null?void 0:xt.visible)&&ee.createElement(Ot.Z,{spinning:Rt,tip:Nt,style:{position:"absolute",width:"100vw"}},ee.createElement("div",{ref:Lt,className:Zt()(wt.imageDimensions,Dt,yt?wt.fullWidth:""),style:et},ee.createElement("img",{className:wt.img,ref:ct}))))}},76562:function(Cn,Gn,ce){"use strict";var ee=ce(59301),wt=ce(77019),Qt=ce(5269),Zt=ce(20554),Ot=ce(99571),jt=ce(76902),Ct=ce(99587),Mt=ce(48136),Bt=ce(59301);const St=(0,ee.forwardRef)(({callback:kt,showSaveButton:xt,value:Dt=""},yt)=>{const et=(0,ee.useRef)(),tt=[{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 "}]}]}],lt=[{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}`}]}]}],ot=ft=>{et.current.setValue(et.current.getValue()+" "+ft.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Bt.createElement(wt.Z,{className:Ct.Z.lists,gutter:[10,10]},tt.map((ft,gt)=>Bt.createElement(Qt.Z,{flex:"110px",className:Ct.Z.item},Bt.createElement("div",null,Bt.createElement(jt.Z,{value:`$$${ft.value}$$`}),ft.name),Bt.createElement("div",{className:Ct.Z.children},ft.children.map((Lt,Rt)=>Bt.createElement("div",{key:Rt},Bt.createElement("h1",null,Lt.name),Bt.createElement(wt.Z,{gutter:[10,10]},Lt.data.map((Ut,Nt)=>Bt.createElement(Qt.Z,{key:Nt,onClick:()=>ot(Ut),className:Ct.Z.diamond},Bt.createElement(jt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Bt.createElement(wt.Z,{className:Ct.Z.lists,gutter:[10,10]},lt.map((ft,gt)=>Bt.createElement(Qt.Z,{flex:"110px",className:Ct.Z.item},Bt.createElement("div",null,Bt.createElement(jt.Z,{value:"`$$"+ft.value+"$$`"}),ft.name),Bt.createElement("div",{className:Ct.Z.children},ft.children.map((Lt,Rt)=>Bt.createElement("div",{key:Rt},Lt.name&&Bt.createElement("h1",null,Lt.name),Bt.createElement(wt.Z,{gutter:[10,10]},Lt.data.map((Ut,Nt)=>Bt.createElement(Qt.Z,{key:Nt,onClick:()=>ot(Ut),className:Ct.Z.diamond},Bt.createElement(jt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))}],ct=()=>{var ft=document.createElement("div");ft.innerHTML=et.current.getValue();var gt=ft.innerText;return kt&&kt(gt),gt};return(0,ee.useImperativeHandle)(yt,()=>({getData:ct})),Bt.createElement("div",{className:Ct.Z.mathWrap},Bt.createElement(Zt.default,{defaultActiveKey:"1",items:ut}),Bt.createElement("math-field",{locale:"zh_cn",className:Ct.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Dt||""),xt&&Bt.createElement("div",{className:Ct.Z.button},Bt.createElement(Ot.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Gn.Z=St},96472:function(Cn,Gn,ce){"use strict";ce.d(Gn,{z:function(){return ze},Z:function(){return he}});var ee=ce(59301),wt=ce(14566),Qt=ce(6767),Zt=ce(62957),Ot=ce(99571),jt=ce(346),Ct=ce(51917),Mt=Object.defineProperty,Bt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,xt=(Jt,re,se)=>re in Jt?Mt(Jt,re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Jt[re]=se,Dt=(Jt,re)=>{for(var se in re||(re={}))St.call(re,se)&&xt(Jt,se,re[se]);if(Bt)for(var se of Bt(re))kt.call(re,se)&&xt(Jt,se,re[se]);return Jt},yt=(Jt,re,se)=>new Promise((pe,ue)=>{var Re=Ae=>{try{Qe(se.next(Ae))}catch(_e){ue(_e)}},Fe=Ae=>{try{Qe(se.throw(Ae))}catch(_e){ue(_e)}},Qe=Ae=>Ae.done?pe(Ae.value):Promise.resolve(Ae.value).then(Re,Fe);Qe((se=se.apply(Jt,re)).next())});const et="\u3000\u3000";function tt(Jt){var re=["Bytes","KB","MB","GB","TB"];if(Jt==0)return"0 Byte";var se=parseInt(""+Math.floor(Math.log(Jt)/Math.log(1024)),10);return(Jt/Math.pow(1024,se)).toFixed(1)+" "+re[se]}var lt=({value:Jt=[],action:re,onChange:se,className:pe,maxSize:ue=150,title:Re="\u6587\u4EF6\u4E0A\u4F20",accept:Fe=null})=>{const Qe={multiple:!1,fileList:Jt,accept:Fe,withCredentials:!0,beforeUpload:_e=>_e.size/1024/1024<ue?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ue}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(_e){var Le,Oe,He,ie;let Tt=[..._e.fileList];if(Tt=Tt.map(At=>(At.name.indexOf(et)===-1&&(At.name=`${At.name}${et}${tt(At.size)}`),Dt({},At))),_e.file.status==="done"&&((Oe=(Le=_e.file)==null?void 0:Le.response)==null?void 0:Oe.status)===-1){message.error((ie=(He=_e.file)==null?void 0:He.response)==null?void 0:ie.message),se([]);return}se(Tt)},onRemove:_e=>yt(void 0,null,function*(){const Le=_e.size/1024/1024;return _e.status==="uploading"?!0:Le<ue&&(_e.response?_e.response.id:_e.uid)?yield removeAttachment(_e.response?_e.response.id:_e.id):!0})};function Ae(_e){_e.preventDefault(),_e.stopPropagation()}return React.createElement("div",{className:`single-upload ${pe||""}`},React.createElement(Upload,Dt({},Qe),React.createElement(Button,{type:"primary",title:Jt.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Jt.length>0,ghost:!0},Re),React.createElement("span",{onClick:Ae,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",ue,"M)"," ")))},ot=ce(61481),ut=ce(89392),ct=Object.defineProperty,ft=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Rt=(Jt,re,se)=>re in Jt?ct(Jt,re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Jt[re]=se,Ut=(Jt,re)=>{for(var se in re||(re={}))gt.call(re,se)&&Rt(Jt,se,re[se]);if(ft)for(var se of ft(re))Lt.call(re,se)&&Rt(Jt,se,re[se]);return Jt};const Nt=Jt=>React.createElement("svg",Ut({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",te=Object.defineProperty,Vt=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,be=(Jt,re,se)=>re in Jt?te(Jt,re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Jt[re]=se,Ne=(Jt,re)=>{for(var se in re||(re={}))de.call(re,se)&&be(Jt,se,re[se]);if(Vt)for(var se of Vt(re))ge.call(re,se)&&be(Jt,se,re[se]);return Jt},Ge=(Jt,re,se)=>new Promise((pe,ue)=>{var Re=Ae=>{try{Qe(se.next(Ae))}catch(_e){ue(_e)}},Fe=Ae=>{try{Qe(se.throw(Ae))}catch(_e){ue(_e)}},Qe=Ae=>Ae.done?pe(Ae.value):Promise.resolve(Ae.value).then(Re,Fe);Qe((se=se.apply(Jt,re)).next())});const{Dragger:Pe}=wt.default;function ze(Jt){let re=[];return Jt&&Jt.length>0&&(re=Jt.map(se=>({uid:se.id,id:se.id,name:se.title+et+se.filesize,url:se.url,filesize:se.filesize,status:"done",response:{id:se.id}}))),re}var he=({value:Jt,onChange:re,action:se,data:pe,className:ue,maxSize:Re=150,title:Fe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Qe=!1,accept:Ae="",additionalText:_e,isDragger:Le,number:Oe=1e3,aloneClear:He=!1,realTimeRemove:ie=!0,uploadText:Tt,setFileProgress:At,showFileProgress:Yt})=>{const[oe,_t]=(0,ee.useState)(!1);let[It,Pt]=(0,ee.useState)(Jt||[]),[Et,$t]=(0,ee.useState)(1);(0,ee.useEffect)(()=>{Jt&&(Et===1&&Pt([...Jt]),$t(2),Oe===(Jt==null?void 0:Jt.length)&&_t(!0))},[Jt]);const zt=()=>{setTimeout(()=>{It.pop(),Pt([...It])},500)};Yt&&At(It.some(ye=>ye.status==="uploading"));const Gt={multiple:!0,disabled:oe,accept:Ae,withCredentials:!0,fileList:It,beforeUpload:(ye,Ue)=>{const We=ye.size/1024/1024;return It.concat(Ue).length>Oe?(It.pop(),Pt([...It]),Qt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Oe}\u4E2A\u6587\u4EF6`),He?Promise.reject():(zt(),!1)):We<Re?!0:(Qt.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Re}MB).`),He?Promise.reject():(zt(),!1))},data:pe,action:se||`${jt.Z.API_SERVER}/api/attachments.json`,onChange(ye){var Ue,We,Ee,Ze;if(ye.file.status==="removed"?It=ye.fileList:It=(0,ut.uniqBy)([...ye.fileList,...It],"uid"),ye.file.status==="done"&&((We=(Ue=ye.file)==null?void 0:Ue.response)==null?void 0:We.status)===-1){Qt.ZP.error((Ze=(Ee=ye.file)==null?void 0:Ee.response)==null?void 0:Ze.message);return}It.length>=Oe?_t(!0):_t(!1),Pt([...It]),It=It.map(on=>{var nn,qe;return(nn=on==null?void 0:on.response)!=null&&nn.id&&(on.url=(qe=on==null?void 0:on.response)==null?void 0:qe.url),on.name.indexOf(et)===-1&&(on.name=`${on.name}${et}${tt(on.size)}`),Ne({},on)}),console.log("info:",ye,It),re(It)},onRemove:ye=>Ge(void 0,null,function*(){if(!ie)return!0;const Ue=()=>Ge(void 0,null,function*(){if(ye.response?ye.response.id:ye.id){let Ee=yield(0,Ct.JZ)(ye.response?ye.response.id:ye.uid);return Promise.resolve(Ee)}else return!0});return Qe?new Promise((We,Ee)=>{Zt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ee.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ge(void 0,null,function*(){const Ze=yield Ue();Qt.ZP.success("\u5220\u9664\u6210\u529F"),We(!0)}),onCancel:()=>We(!1)})}):yield Ue()})};function le(ye){ye.preventDefault(),ye.stopPropagation()}return ee.createElement("div",{className:`multi-upload ${ue||""}`},Le&&ee.createElement(Pe,Ne({},Gt),ee.createElement("p",{className:"ant-upload-drag-icon"},ee.createElement(ot.Z,null)),ee.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ee.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Re,"MB)"," "),_e),!Le&&ee.createElement(wt.default,Ne({},Gt),ee.createElement(Ot.ZP,{disabled:oe,className:"upload_button"},ee.createElement("img",{className:"aBtn_img",src:qt}),Fe),ee.createElement("span",{onClick:le,className:"upload_text"},Tt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Re}MB)`)))}},28426:function(Cn,Gn,ce){"use strict";var ee=ce(59301),wt=ce(93314),Qt=ce(99571),Zt=Object.defineProperty,Ot=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,St=(yt,et,tt)=>et in yt?Zt(yt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):yt[et]=tt,kt=(yt,et)=>{for(var tt in et||(et={}))Mt.call(et,tt)&&St(yt,tt,et[tt]);if(Ct)for(var tt of Ct(et))Bt.call(et,tt)&&St(yt,tt,et[tt]);return yt},xt=(yt,et)=>Ot(yt,jt(et));const Dt=({img:yt,buttonProps:et={},styles:tt={},customText:lt,ButtonText:ot,ButtonClick:ut,Buttonclass:ct,ButtonTwo:ft,imgStyles:gt,loading:Lt=!1,className:Rt=""})=>ee.createElement("section",{className:`tc animated fadeIn ${Rt}`,style:kt({color:"#999",margin:"100px auto",visibility:Lt?"hidden":"visible"},tt)},ee.createElement("img",{src:yt||wt,style:xt(kt({},gt),{pointerEvents:"none",userSelect:"none"})}),ee.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ot&&ee.createElement(Qt.ZP,kt({className:ct,onClick:ut},et),ot),ft&&ft);Gn.Z=Dt},45677:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return ct}});var ee=ce(59301),wt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Qt=ce(99571),Zt=ce(70557),Ot=ce(75975),jt=ce(25399),Ct=ce(51257),Mt=ce(81722),Bt=ce(28426),St=ce(346),kt=ce(44203),xt=ce(59301),Dt=Object.defineProperty,yt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(ft,gt,Lt)=>gt in ft?Dt(ft,gt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):ft[gt]=Lt,ot=(ft,gt)=>{for(var Lt in gt||(gt={}))et.call(gt,Lt)&<(ft,Lt,gt[Lt]);if(yt)for(var Lt of yt(gt))tt.call(gt,Lt)&<(ft,Lt,gt[Lt]);return ft},ut=(ft,gt,Lt)=>new Promise((Rt,Ut)=>{var Nt=Vt=>{try{te(Lt.next(Vt))}catch(de){Ut(de)}},qt=Vt=>{try{te(Lt.throw(Vt))}catch(de){Ut(de)}},te=Vt=>Vt.done?Rt(Vt.value):Promise.resolve(Vt.value).then(Nt,qt);te((Lt=Lt.apply(ft,gt)).next())}),ct=({editOffice:ft="view",data:gt,issaver:Lt,onSaver:Rt,theme:Ut,type:Nt,filename:qt,monacoEditor:te,className:Vt,style:de,close:ge,onClose:be,hasMask:Ne,disabledDownload:Ge,onImgDimensions:Pe,showNodata:ze,recordInfo:he})=>{const[Jt,re]=(0,ee.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[se,pe]=(0,ee.useState)(""),[ue,Re]=(0,ee.useState)(),Fe=window.ENV==="build"?"/react/build":"",Qe=location.host.startsWith("localhost")?St.Z.PROXY_SERVER:St.Z.API_SERVER,_e=10*(1024*1024),Le=(0,ee.useRef)();gt!=null&>.startsWith("/api")&&Nt!=="txt"&&(gt=St.Z.API_SERVER+gt);const Oe=Yt=>Yt.substring(Yt.lastIndexOf("/")+1).split(".").pop();qt&&te&&(te.filename=qt),(0,ee.useEffect)(()=>{var Yt,oe;const _t=(oe=(Yt=document.cookie)==null?void 0:Yt.replace(/\s/g,""))==null?void 0:oe.split(";");_t==null||_t.map(It=>{let Pt=It.split("=");Pt[0]==="_educoder_session"&&pe(Pt[1])})},[]),(0,ee.useEffect)(()=>{Nt==="office"&&(gt.indexOf("bigfilescdn.")>-1||gt.indexOf("bigfiles1")>-1?Re({url:gt,fileType:Oe(gt),model:gt.indexOf("model=edit")?"edit":"view"}):ie())},[Nt,gt]);function He(Yt){return ut(this,null,function*(){Yt.data.type==="pdfdata"&&(Rt(Yt.data.data),window.removeEventListener("message",He,!1)),console.log("mess---:",Yt.data)})}const ie=()=>ut(void 0,null,function*(){console.log("data:",gt);let Yt=gt;gt.startsWith("http")||(Yt=location.origin+Yt);let oe=new URL(Yt).pathname.split("/").pop();const _t=yield(0,Mt.gJ)({attachment_id:oe});_t.url=Qe+_t.url,Re(_t)}),Tt=()=>{if(gt.startsWith("http")||gt.startsWith("blob:")){At();return}(0,Ct.Sv)(qt||"educoder",gt,qt)},At=()=>{he&&(0,kt.fc)({id:he==null?void 0:he.id,watch_type:1,course_id:he==null?void 0:he.course_id}),(0,Ct.Nd)(qt||"educoder",decodeURIComponent(gt))};return xt.createElement("div",{style:ot({},de||{}),className:`${Ne&&wt.bgBlack} ${Nt?wt.wrp:"hide"}`},ge&&xt.createElement("div",{className:wt.close,ref:Le},!!Pe&&xt.createElement(jt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Le.current},xt.createElement("span",{onClick:()=>{be(),Pe()}},xt.createElement("i",{className:"icon-yulanpizhu"}))),!Ge&&xt.createElement(jt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Le.current},xt.createElement("span",{onClick:At},xt.createElement("i",{className:"icon-quxiaozhiding"}))),Lt&&xt.createElement(jt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Le.current},xt.createElement("span",{className:"",onClick:()=>{const Yt=document.getElementById("pdfiframe");window.addEventListener("message",He,!1),setTimeout(()=>{Yt.contentWindow.postMessage("getData","*")},300)}},xt.createElement("i",{className:"icon-baocun"}))),xt.createElement(jt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Le.current},xt.createElement("span",{className:"",onClick:()=>{be()}},xt.createElement("i",{className:"icon-guanbi1"})))),xt.createElement("div",{className:`${wt[Vt]} ${Vt} ${wt.monaco} ${Nt==="txt"?"show":"hide"}`},Nt==="txt"&&xt.createElement(xt.Fragment,null,xt.createElement(Ot.ZP,ot({},te)))),Nt==="audio"&&xt.createElement("audio",{src:`${(gt==null?void 0:gt.indexOf("http://"))>-1||(gt==null?void 0:gt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${gt}`,autoPlay:!0}),Nt==="video"&&xt.createElement(xt.Fragment,null,(gt==null?void 0:gt.indexOf("http"))>-1?xt.createElement("video",{controls:!0,src:`${gt}`,autoPlay:!0}):xt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${gt}`,autoPlay:!0})),Nt==="office"&&ue&&xt.createElement("iframe",{src:`${Fe}/office.html?key=${ue.key}&url=${btoa(ue.url)}&callbackUrl=${Qe+(ue.callbackUrl||"")}&fileType=${ue.fileType}&title=${ue.title||""}&model=${ft}&officeServer=${St.Z.ONLYOFFICE}&disabledDownload=${!!Ge}`}),Nt==="html"&&xt.createElement("iframe",{src:gt+"&disposition=inline"}),Nt==="pdf"&&xt.createElement("iframe",{id:"pdfiframe",src:`${Fe}/js/pdfview/index.html?filename=${qt||"educoder.pdf"}&url=${encodeURIComponent(gt)}&disabledDownload=${!!Ge}&model=${ft}`}),Nt==="image"&&xt.createElement("img",{src:`${(gt==null?void 0:gt.indexOf("http://"))>-1||(gt==null?void 0:gt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${gt}`}),(Nt==="other"||Nt==="download")&&xt.createElement(xt.Fragment,null,ze?xt.createElement(Bt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xt.createElement(Qt.ZP,{icon:xt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Tt,disabled:Ge},"\u4E0B\u8F7D")}):xt.createElement(Qt.ZP,{type:"primary",size:"middle",onClick:Tt,disabled:Ge},xt.createElement(Zt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Cn,Gn,ce){"use strict";ce.d(Gn,{z:function(){return Ut},Z:function(){return Nt}});var ee=ce(59301),wt=ce(8944),Qt=ce(81428),Zt=ce(64018),Ot=ce(15360),jt=ce(346),Ct=ce(51257),Mt=ce(15342),Bt=ce(1012),St=ce(45677),kt=ce(59301),Dt=({html:qt})=>{const te=(0,ee.useRef)(null),Vt=(0,ee.useRef)(null),de=`.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,ee.useEffect)(()=>{const ge=te.current.attachShadow({mode:"open"});Vt.current=document.createElement("div"),Vt.current.className="markdown-body",Vt.current.innerHTML=qt,ge.appendChild(Vt.current);const be=document.createElement("style");return be.textContent=de,ge.appendChild(be),()=>{ge.innerHTML=""}},[]),(0,ee.useEffect)(()=>{Vt.current&&(Vt.current.innerHTML=qt)},[qt]),kt.createElement("div",{ref:te})};function yt(qt){const te=["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"],Vt=new RegExp(`\\b(${te.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return qt.replace(Vt,"").trim()}var et=Object.defineProperty,tt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,ut=(qt,te,Vt)=>te in qt?et(qt,te,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):qt[te]=Vt,ct=(qt,te)=>{for(var Vt in te||(te={}))lt.call(te,Vt)&&ut(qt,Vt,te[Vt]);if(tt)for(var Vt of tt(te))ot.call(te,Vt)&&ut(qt,Vt,te[Vt]);return qt};const ft="@\u2581\u2581@",gt="@\u2581@",Lt=/<pre[^>]*>/g;function Rt(qt){let te=document.createElement("div");return te.innerHTML=qt,te.childNodes.length===0?"":te.childNodes[0].nodeValue}const Ut=(qt,te)=>{qt=qt||"";const Vt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,de=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ge=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,be=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return te?qt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Vt,(Ne,Ge,Pe,ze,he,Jt,re)=>{const se=Ge||ze||Jt,pe=Pe||he||re||"?";return jt.Z.API_SERVER+"/api/attachments/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(qt=qt.replace(be,(Ne,Ge,Pe,ze,he,Jt,re)=>{const se=Ge||ze||Jt,pe=Pe||he||re||"?";return jt.Z.API_SERVER+"/attachments/download/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replace(Vt,(Ne,Ge,Pe,ze,he,Jt,re)=>{const se=Ge||ze||Jt,pe=Pe||he||re||"?";return jt.Z.API_SERVER+"/api/attachments/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replace(de,(Ne,Ge,Pe,ze,he)=>{const Jt=Ge||ze,re=Pe||he||"";return'"'+jt.Z.API_SERVER+"/api/attachments/"+Jt+re+Jt+re+"&t="+(0,Ct.Jn)(Jt,Date.now())}).replace(ge,(Ne,Ge,Pe,ze,he)=>{const Jt=Ge||ze,re=Pe||he||"";return"("+jt.Z.API_SERVER+"/files/uploads/"+Jt+re+Jt+re+"&t="+(0,Ct.Jn)(Jt,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,`
|
|
`),qt)};var Nt=({value:qt="",className:te,showTextOnly:Vt,showLines:de,style:ge={},stylesPrev:be={},highlightKeywords:Ne,showProgramFill:Ge,isProgramFill:Pe,disabledFill:ze=!1,programFillValue:he,onFillChange:Jt=pe=>{},onFillBlur:re=()=>{},onFillFocus:se=()=>{}})=>{let pe=yt(String(qt||""));const[ue,Re]=(0,ee.useState)(""),[Fe,Qe]=(0,ee.useState)("office"),[Ae,_e]=(0,ee.useState)([]),Le=(0,ee.useRef)("a"+(0,Bt.Z)()),Oe={},He=Gt=>/<style[\s\S]*?>/i.test(Gt||""),ie=(Gt,le,ye)=>{const Ue=document.createElement(Gt===gt?"input":"textarea");Ue.style.width="100%",Ue.style.height=Gt===gt?"40px":"151px",Ue.rows=5,Ue.spellcheck=!1,Ue.name="edu-program-fill",Ue.placeholder="\u8BF7\u8F93\u5165",Ue.dataset.id=le;const We=Object.keys(Oe).length;return Oe[We]=Ue,`<span class="edu-program-fill-wrap ${Gt===gt?"":"show"}" style="width:${Gt===gt?"400px":"100%"}" title=${ye||""}><span>${Ue.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Tt(Gt){return Gt=Gt.replace(/!\[.*?\]\(.*?\)/g,""),Gt=Gt.replace(/\[.*?\]\(.*?\)/g,""),Gt=Gt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Gt=Gt.replace(/<embed.*?>/g,""),Gt=Gt.replace(/<img.*?>/g,""),Gt=Gt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Gt=Gt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Gt=Gt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Gt=Gt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Gt}const At=Gt=>!Vt&&He(pe)?Gt:Gt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(le,ye){let Ue=ye.replace(/(\n|\r)/g,"").split("}"),We=[];return Ue.map(Ee=>{Ee!=""&&We.push(`.${Le.current} ${Ee}`)}),`<style>${We.join("}")}</style>`}),Yt=(0,ee.useMemo)(()=>{try{const Ue=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,We=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ee=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ze=/\(\/attachments\/download\//g;pe=pe.replace(Ze,"("+jt.Z.API_SERVER+"/attachments/download/").replace(Ue,"("+jt.Z.API_SERVER+"/api/attachments/").replace(We,'"'+jt.Z.API_SERVER+"/api/attachments/").replace(Ee,'"'+jt.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(Ue){}if(Ge){let Ue=-1;return pe=pe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(We,Ee,Ze){var on;return++Ue,ie(We,Ue,(on=he==null?void 0:he[Ue])==null?void 0:on.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${At(pe||"")}</pre>`}let Gt=At(pe);Gt=(0,Qt.ZP)(Gt);const le=(0,Qt.ez)();pe.match(/\[TOC\]/)&&(Gt=Gt.replace("<p>[TOC]</p>",(0,Qt.Qv)()),(0,Qt.Iy)()),Gt=Gt.replace(/(__special_katext_id_\d+__)/g,(Ue,We)=>{const{type:Ee,expression:Ze}=le[We];return(0,Mt.renderToString)(Rt(Ze)||"",{displayMode:Ee==="block",throwOnError:!1,output:"html"})}),Gt=Gt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Qt.AL)();const ye=document.createElement("div");if(ye.innerHTML=Gt,Vt)return ye.innerText;if(Ne){const Ue=Ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Pt(ye,Ue),ye.innerHTML}return setTimeout(()=>zt(),500),ye.innerHTML},[pe,Ne]);(0,ee.useEffect)(()=>{Et.current&&Et.current.querySelectorAll(["input","textarea"]).forEach(le=>{le.oninput=oe,le.onblur=_t,le.onfocus=It})},[Ae]),(0,ee.useEffect)(()=>{var Gt,le,ye,Ue,We;if(he!=null&&he.length)try{const Ee=Et.current.querySelectorAll(".edu-program-fill-score"),Ze=Et.current.querySelectorAll('[name="edu-program-fill"]');for(const[on,nn]of Ze.entries())nn.value=((Gt=he==null?void 0:he[on])==null?void 0:Gt.value)||"",((le=he==null?void 0:he[on])==null?void 0:le.type)==="warning"?nn.className="program-fill-warning":((ye=he==null?void 0:he[on])==null?void 0:ye.type)==="success"?nn.className="program-fill-success":nn.className="";for(const[on,nn]of Ee.entries())nn.innerHTML=(Ue=he==null?void 0:he[on])!=null&&Ue.score?`${(We=he==null?void 0:he[on])==null?void 0:We.score}\u5206`:"";_e(he)}catch(Ee){console.log(Ee,"error")}},[he]);const oe=Gt=>{Ae[Gt.target.dataset.id]=Ae[Gt.target.dataset.id]||{},Ae[Gt.target.dataset.id].value=Gt.target.value,_e([...Ae]),Jt(Ae,Gt.target.dataset.id)},_t=Gt=>{Ae[Gt.target.dataset.id]=Ae[Gt.target.dataset.id]||{},Ae[Gt.target.dataset.id].value=Gt.target.value,_e([...Ae]),re(Ae,Gt.target.dataset.id)},It=Gt=>{Ae[Gt.target.dataset.id]=Ae[Gt.target.dataset.id]||{},Ae[Gt.target.dataset.id].value=Gt.target.value,_e([...Ae]),se(Ae,Gt.target.dataset.id)};function Pt(Gt,le){return Gt.childNodes.forEach(ye=>{var Ue;if(ye.childNodes.length>0)Pt(ye,le);else if(ye.nodeName!=="IMG")if(ye.innerHTML)ye.innerHTML=(Ue=ye.innerHTML)==null?void 0:Ue.replace(new RegExp(le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const We=document.createElement("span");We.innerHTML=ye.textContent.replace(new RegExp(le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ye.replaceWith(We)}})}const Et=(0,ee.useRef)();Qt.jb.WebkitLineClamp=de,de&&(ge=ct(ct({},ge),Qt.jb));function $t(Gt){let le=Gt.target;if(le.tagName.toUpperCase()==="A"){let ye=le.getAttribute("href");if(ye.indexOf("office")>-1)Gt.preventDefault(),Re(ye),Qe("office");else if(ye.indexOf("application/pdf")>-1)Gt.preventDefault(),Re(ye),Qe("pdf");else if(ye.indexOf("text/html")>-1)Gt.preventDefault(),Re(ye),Qe("html");else if(ye.startsWith("#")){Gt.preventDefault();let Ue=document.getElementById(ye.replace("#",""));Ue&&Ue.scrollIntoView(!0)}}}const zt=()=>{var Gt;const le=(Gt=Et.current)==null?void 0:Gt.querySelectorAll("video");le==null||le.forEach(ye=>{if(ye.oncontextmenu=()=>!1,ye.src.indexOf(".m3u8")>-1&&!ye.canPlayType("application/vnd.apple.mpegurl")){if(Ot.ZP.isSupported()){var Ue=new Ot.ZP;Ue.loadSource(ye.src),Ue.attachMedia(ye)}}})};return(0,ee.useEffect)(()=>{if(Et.current&&Yt&&Yt.match(Lt)&&window.PR.prettyPrint(),Et.current)return Et.current.addEventListener("click",$t),()=>{var Gt;(Gt=Et.current)==null||Gt.removeEventListener("click",$t),(0,Qt.AL)(),(0,Qt.Iy)()}},[Yt,Et.current,$t]),(0,ee.useEffect)(()=>{var Gt;const le=ye=>{ye.preventDefault(),ye.clipboardData.setData("text",window.getSelection().toString())};return(Gt=Et.current)==null||Gt.addEventListener("copy",le),()=>{var ye;(ye=Et.current)==null||ye.removeEventListener("copy",le)}},[Et.current]),ee.createElement(ee.Fragment,null,Vt&&ee.createElement("div",{ref:Et},Yt),!Vt&&!He(Yt)&&ee.createElement("div",{ref:Et,style:ct({},ge),className:`${te||""} ${ze?"disabled-fill":""} markdown-body ${Le.current}`,dangerouslySetInnerHTML:{__html:Yt}}),!Vt&&He(Yt)&&ee.createElement(Dt,{html:Yt}),ee.createElement(St.Z,{close:!0,data:ue,type:ue!=null&&ue.length?Fe:"",style:ct({},be),onClose:()=>Re("")}))}},87320:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Zt}});var ee=ce(59301),wt=ce(49535),Qt=ce(90083),Zt=()=>{const[Ot,jt]=(0,ee.useState)(""),[Ct,Mt]=(0,ee.useState)(0);let[Bt,St]=(0,ee.useState)(),[kt,xt]=(0,ee.useState)();const[Dt,yt]=(0,ee.useState)(!1),et=(0,ee.useRef)("");(0,ee.useEffect)(()=>wt.Z.subscribe("preview-image",Nt=>{jt(Nt),console.log(Lt.current),document.body.style.overflow="hidden"}),[]),(0,ee.useEffect)(()=>(document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt)}),[]),(0,ee.useEffect)(()=>{et.current=Ot},[Ot]);function tt(Ut){Ut.keyCode==27&&et.current&<()}function lt(){document.body.style.overflow="auto",St(void 0),xt(void 0),Mt(0),jt("")}function ot(){Mt(Ct+90)}function ut(){Bt=Lt.current.width*1.1,kt=Lt.current.height*1.1,xt(kt),St(Bt)}function ct(){Bt=Lt.current.width/1.1,kt=Lt.current.height/1.1,xt(kt),St(Bt)}const ft=(0,ee.useRef)(),gt=(0,ee.useRef)(),Lt=(0,ee.useRef)(),Rt=Ut=>{(Ut.nativeEvent.target===ft.current||Ut.nativeEvent.target===gt.current)&<()};return ee.createElement(ee.Fragment,null,Ot?ee.createElement("div",null,ee.createElement("div",{className:"preview-wrp-group",ref:gt},ee.createElement(Qt.Z,{className:"image-preview",src:Ot,style:{display:"none"},preview:{visible:!0,src:Ot,onVisibleChange:Ut=>{jt("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},69720:function(Cn,Gn,ce){"use strict";ce.d(Gn,{h:function(){return ft}});var ee=ce(59301),wt=ce(82326),Qt=ce(28284),Zt=ce(99571),Ot=ce(89780),jt=ce.n(Ot),Ct=ce(8336),Mt=ce(12469),Bt=Object.defineProperty,St=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,et=(gt,Lt,Rt)=>Lt in gt?Bt(gt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):gt[Lt]=Rt,tt=(gt,Lt)=>{for(var Rt in Lt||(Lt={}))Dt.call(Lt,Rt)&&et(gt,Rt,Lt[Rt]);if(xt)for(var Rt of xt(Lt))yt.call(Lt,Rt)&&et(gt,Rt,Lt[Rt]);return gt},lt=(gt,Lt)=>St(gt,kt(Lt));const ot=wt.default.Option,ut={labelCol:{span:4},wrapperCol:{span:20}},ct={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"]};Gn.Z=({callback:gt,onCancel:Lt})=>{const[Rt,Ut]=(0,ee.useState)("python");function Nt(te){Ut(ct[te][1])}function qt(te){gt(te)}return ee.createElement(Qt.default,lt(tt({},ut),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:qt,style:{width:500}}),ee.createElement(Qt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(wt.default,{getPopupContainer:te=>te.parentNode,onChange:Nt},Object.keys(ct).map(te=>ee.createElement(ot,{key:te,value:te},ct[te][0])))),ee.createElement(Qt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(ft,{mode:Rt})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Zt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Zt.ZP,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))};function ft({value:gt,onChange:Lt,mode:Rt,options:Ut={}}){const Nt=(0,ee.useRef)(),[qt,te]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(qt){let Vt=function(de){const ge=de.getValue();Lt&&Lt(ge)};return qt.on("change",Vt),()=>{qt.off("change",Vt)}}},[qt,Lt]),(0,ee.useEffect)(()=>{qt&&qt.setOption("mode",Rt)},[qt,Rt]),(0,ee.useEffect)(()=>{qt&&(gt!==qt.getValue()||gt==="")&&setTimeout(()=>{qt.setValue(gt||"")},300)},[qt,gt]),(0,ee.useEffect)(()=>{if(Nt.current&&!qt){const Vt=jt().fromTextArea(Nt.current,tt({mode:Rt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ut));te(Vt)}},[Nt.current,qt]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:Nt}))}},39793:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return ki}});var ee=ce(59301),wt=ce(89780),Qt=ce.n(wt),Zt=ce(76374),Ot=ce(8336),jt=ce(6313),Ct=ce(25717),Mt=ce(99498),Bt=ce(25419),St=ce(67549),kt=ce(76902),xt=({value:Xe="",className:Je,showTextOnly:Ke,showLines:Hn,style:Jn={}})=>{const qn=(0,ee.useMemo)(()=>"",[Xe]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:qn}}))},Dt=ce(59301),yt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(Xe,Je,Ke)=>Je in Xe?yt(Xe,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Xe[Je]=Ke,ft=(Xe,Je)=>{for(var Ke in Je||(Je={}))ot.call(Je,Ke)&&ct(Xe,Ke,Je[Ke]);if(lt)for(var Ke of lt(Je))ut.call(Je,Ke)&&ct(Xe,Ke,Je[Ke]);return Xe},gt=(Xe,Je)=>et(Xe,tt(Je));let Lt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Rt({onActionCallback:Xe,title:Je,icon:Ke,actionName:Hn,className:Jn="",children:qn}){function pn(){Xe(Hn)}return Dt.createElement("a",{title:Je,className:Jn,onClick:pn},Dt.createElement("i",{className:`${Ke}`}),qn)}var Ut=({watch:Xe,showNullButton:Je,showNullProgramButton:Ke,onActionCallback:Hn,fullScreen:Jn,insertTemp:qn,hidetoolBar:pn,extraUse:Bn})=>{const hi=[...Lt,{title:`${Xe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Dt.createElement("ul",{className:"markdown-toolbar-container"},!pn&&hi.map((Ti,Di)=>Dt.createElement("li",{key:Di},Ti.actionName?Dt.createElement(Rt,gt(ft({},Ti),{onActionCallback:Hn})):Dt.createElement("span",{className:"v-line"}))),Je?Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ke?Dt.createElement(Dt.Fragment,null,Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,qn&&Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${qn}`,onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bn&&Dt.createElement("li",null,Bn),Dt.createElement("li",{className:"btn-full-screen"},Dt.createElement(Rt,{icon:`${Jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Hn})))},Nt=ce(91558),qt=ce(28284),te=ce(37568),Vt=ce(99571),de=Object.defineProperty,ge=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ze=(Xe,Je,Ke)=>Je in Xe?de(Xe,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Xe[Je]=Ke,he=(Xe,Je)=>{for(var Ke in Je||(Je={}))Ge.call(Je,Ke)&&ze(Xe,Ke,Je[Ke]);if(Ne)for(var Ke of Ne(Je))Pe.call(Je,Ke)&&ze(Xe,Ke,Je[Ke]);return Xe},Jt=(Xe,Je)=>ge(Xe,be(Je));const re={labelCol:{span:4},wrapperCol:{span:20}};var se=({callback:Xe,onCancel:Je})=>{function Ke(Hn){Xe(Hn)}return ee.createElement(qt.default,Jt(he({},re),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ke,style:{width:500}}),ee.createElement(qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(te.default,null)),ee.createElement(qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(te.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Vt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Vt.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))},pe=ce(69720),ue=ce(17077),Re=ce(62957),Fe=ce(77019),Qe=ce(9507),Ae=ce(59301),_e=({callback:Xe,onCancel:Je})=>{const Ke=document.createElement("canvas"),Hn=Ke.getContext("2d");Ke.width=1e3,Ke.height=800,Hn.fillStyle="#ffffff",Hn.fillRect(0,0,Ke.width,Ke.height);const Jn=Ke.toDataURL("image/png");return Ae.createElement(Re.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ae.createElement(Fe.Z,{style:{height:"100vh"}},Ae.createElement(Qe.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jn,visible:!0,title:String(Date.now())},onOk:qn=>{Xe({src:qn.url})},onClose:Je})))},Le=ce(12378);function Oe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Oe,go.CommandHandler),Oe.prototype.canAlignSelection=function(){var Xe=this.diagram;return!(Xe===null||Xe.isReadOnly||Xe.isModelReadOnly||Xe.selection.count<2)},Oe.prototype.alignLeft=function(){var Xe=this.diagram;Xe.startTransaction("aligning left");var Je=1/0;Xe.selection.each(function(Ke){Ke instanceof go.Link||(Je=Math.min(Ke.position.x,Je))}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Je,Ke.position.y))}),Xe.commitTransaction("aligning left")},Oe.prototype.alignRight=function(){var Xe=this.diagram;Xe.startTransaction("aligning right");var Je=-1/0;Xe.selection.each(function(Ke){if(!(Ke instanceof go.Link)){var Hn=Ke.actualBounds.x+Ke.actualBounds.width;Je=Math.max(Hn,Je)}}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Je-Ke.actualBounds.width,Ke.position.y))}),Xe.commitTransaction("aligning right")},Oe.prototype.alignTop=function(){var Xe=this.diagram;Xe.startTransaction("alignTop");var Je=1/0;Xe.selection.each(function(Ke){Ke instanceof go.Link||(Je=Math.min(Ke.position.y,Je))}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ke.position.x,Je))}),Xe.commitTransaction("alignTop")},Oe.prototype.alignBottom=function(){var Xe=this.diagram;Xe.startTransaction("aligning bottom");var Je=-1/0;Xe.selection.each(function(Ke){if(!(Ke instanceof go.Link)){var Hn=Ke.actualBounds.y+Ke.actualBounds.height;Je=Math.max(Hn,Je)}}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ke.actualBounds.x,Je-Ke.actualBounds.height))}),Xe.commitTransaction("aligning bottom")},Oe.prototype.alignCenterX=function(){var Xe=this.diagram,Je=Xe.selection.first();if(Je){Xe.startTransaction("aligning Center X");var Ke=Je.actualBounds.x+Je.actualBounds.width/2;Xe.selection.each(function(Hn){Hn instanceof go.Link||Hn.move(new go.Point(Ke-Hn.actualBounds.width/2,Hn.actualBounds.y))}),Xe.commitTransaction("aligning Center X")}},Oe.prototype.alignCenterY=function(){var Xe=this.diagram,Je=Xe.selection.first();if(Je){Xe.startTransaction("aligning Center Y");var Ke=Je.actualBounds.y+Je.actualBounds.height/2;Xe.selection.each(function(Hn){Hn instanceof go.Link||Hn.move(new go.Point(Hn.actualBounds.x,Ke-Hn.actualBounds.height/2))}),Xe.commitTransaction("aligning Center Y")}},Oe.prototype.alignColumn=function(Xe){var Je=this.diagram;Je.startTransaction("align Column"),Xe===void 0&&(Xe=0),Xe=parseFloat(Xe);var Ke=new Array;Je.selection.each(function(Bn){Bn instanceof go.Link||Ke.push(Bn)});for(var Hn=0;Hn<Ke.length-1;Hn++){var Jn=Ke[Hn],qn=Jn.actualBounds.y+Jn.actualBounds.height+Xe,pn=Ke[Hn+1];pn.move(new go.Point(Jn.actualBounds.x,qn))}Je.commitTransaction("align Column")},Oe.prototype.alignRow=function(Xe){Xe===void 0&&(Xe=0),Xe=parseFloat(Xe);var Je=this.diagram;Je.startTransaction("align Row");var Ke=new Array;Je.selection.each(function(Bn){Bn instanceof go.Link||Ke.push(Bn)});for(var Hn=0;Hn<Ke.length-1;Hn++){var Jn=Ke[Hn],qn=Jn.actualBounds.x+Jn.actualBounds.width+Xe,pn=Ke[Hn+1];pn.move(new go.Point(qn,Jn.actualBounds.y))}Je.commitTransaction("align Row")},Oe.prototype.canRotate=function(Xe){var Je=this.diagram;return!(Je===null||Je.isReadOnly||Je.isModelReadOnly||Je.selection.count<1)},Oe.prototype.rotate=function(Xe){Xe===void 0&&(Xe=90);var Je=this.diagram;Je.startTransaction("rotate "+Xe.toString());var Je=this.diagram;Je.selection.each(function(Ke){Ke instanceof go.Link||Ke instanceof go.Group||(Ke.angle+=Xe)}),Je.commitTransaction("rotate "+Xe.toString())},Oe.prototype.pullToFront=function(){var Xe=this.diagram;Xe.startTransaction("pullToFront");var Je=new go.Map;Xe.selection.each(function(Ke){Je.set(Ke.layer,0)}),Je.iteratorKeys.each(function(Ke){var Hn=0;Ke.parts.each(function(Jn){if(!Jn.isSelected){var qn=Jn.zOrder;isNaN(qn)?Jn.zOrder=0:Hn=Math.max(Hn,qn)}}),Je.set(Ke,Hn)}),Xe.selection.each(function(Ke){Oe._assignZOrder(Ke,Je.get(Ke.layer)+1)}),Xe.commitTransaction("pullToFront")},Oe.prototype.pushToBack=function(){var Xe=this.diagram;Xe.startTransaction("pushToBack");var Je=new go.Map;Xe.selection.each(function(Ke){Je.set(Ke.layer,0)}),Je.iteratorKeys.each(function(Ke){var Hn=0;Ke.parts.each(function(Jn){if(!Jn.isSelected){var qn=Jn.zOrder;isNaN(qn)?Jn.zOrder=0:Hn=Math.min(Hn,qn)}}),Je.set(Ke,Hn)}),Xe.selection.each(function(Ke){Oe._assignZOrder(Ke,Je.get(Ke.layer)-1-Oe._findGroupDepth(Ke))}),Xe.commitTransaction("pushToBack")},Oe._assignZOrder=function(Xe,Je,Ke){Ke===void 0&&(Ke=Xe),Xe.layer===Ke.layer&&(Xe.zOrder=Je),Xe instanceof go.Group&&Xe.memberParts.each(function(Hn){Oe._assignZOrder(Hn,Je+1,Ke)})},Oe._findGroupDepth=function(Xe){if(Xe instanceof go.Group){var Je=0;return Xe.memberParts.each(function(Ke){Je=Math.max(Je,Oe._findGroupDepth(Ke))}),Je+1}else return 0},Oe.prototype.doKeyDown=function(){var Xe=this.diagram;if(Xe!==null){var Je=Xe.lastInput;if(Je.key==="Up"||Je.key==="Down"||Je.key==="Left"||Je.key==="Right"){var Ke=this.arrowKeyBehavior;if(Ke==="none")return;if(Ke==="select"){this._arrowKeySelect();return}else if(Ke==="move"){this._arrowKeyMove();return}else if(Ke==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Oe.prototype._getAllParts=function(){var Xe=new Array;return this.diagram.nodes.each(function(Je){Xe.push(Je)}),this.diagram.parts.each(function(Je){Xe.push(Je)}),Xe},Oe.prototype._arrowKeyMove=function(){var Xe=this.diagram,Je=Xe.lastInput,Ke=0,Hn=0;if(Je.control||Je.meta)Ke=1,Hn=1;else if(Xe.grid!==null){var Jn=Xe.grid.gridCellSize;Hn=Jn.width,Ke=Jn.height}Xe.startTransaction("arrowKeyMove"),Xe.selection.each(function(qn){Je.key==="Up"?qn.move(new go.Point(qn.actualBounds.x,qn.actualBounds.y-Ke)):Je.key==="Down"?qn.move(new go.Point(qn.actualBounds.x,qn.actualBounds.y+Ke)):Je.key==="Left"?qn.move(new go.Point(qn.actualBounds.x-Hn,qn.actualBounds.y)):Je.key==="Right"&&qn.move(new go.Point(qn.actualBounds.x+Hn,qn.actualBounds.y))}),Xe.commitTransaction("arrowKeyMove")},Oe.prototype._arrowKeySelect=function(){var Xe=this.diagram,Je=Xe.lastInput,Ke=null;Je.key==="Up"?Ke=this._findNearestPartTowards(270):Je.key==="Down"?Ke=this._findNearestPartTowards(90):Je.key==="Left"?Ke=this._findNearestPartTowards(180):Je.key==="Right"&&(Ke=this._findNearestPartTowards(0)),Ke!==null&&(Je.shift?Ke.isSelected=!0:Je.control||Je.meta?Ke.isSelected=!Ke.isSelected:Xe.select(Ke))},Oe.prototype._findNearestPartTowards=function(Xe){var Je=this.diagram.selection.first();if(Je===null)return null;for(var Ke=Je.actualBounds.center,Hn=this._getAllParts(),Jn=1/0,qn=Je,pn=0;pn<Hn.length;pn++){var Bn=Hn[pn];if(Bn!==Je&&Bn.canSelect()){var hi=Bn.actualBounds.center,Ti=Ke.directionPoint(hi),Di=this._angleCloseness(Ti,Xe);if(Di<=45){var we=Ke.distanceSquaredPoint(hi);we*=1+Math.sin(Di*Math.PI/180),we<Jn&&(Jn=we,qn=Bn)}}}return qn},Oe.prototype._angleCloseness=function(Xe,Je){return Math.min(Math.abs(Je-Xe),Math.min(Math.abs(Je+360-Xe),Math.abs(Je-360-Xe)))},Oe.prototype._arrowKeyTree=function(){var Xe=this.diagram,Je=Xe.selection.first();if(Je instanceof go.Node){var Ke=Xe.lastInput;if(Ke.key==="Right"){if(!Je.isTreeLeaf)if(!Je.isTreeExpanded)Xe.commandHandler.canExpandTree(Je)&&Xe.commandHandler.expandTree(Je);else{var Hn=this._sortTreeChildrenByY(Je).first();Hn!==null&&Xe.select(Hn)}}else if(Ke.key==="Left")if(!Je.isTreeLeaf&&Je.isTreeExpanded)Xe.commandHandler.canCollapseTree(Je)&&Xe.commandHandler.collapseTree(Je);else{var Jn=Je.findTreeParentNode();Jn!==null&&Xe.select(Jn)}else if(Ke.key==="Up"){var Jn=Je.findTreeParentNode();if(Jn!==null){var qn=this._sortTreeChildrenByY(Jn),pn=qn.indexOf(Je);if(pn>0){for(var Bn=qn.elt(pn-1);Bn!==null&&Bn.isTreeExpanded&&!Bn.isTreeLeaf;){var hi=this._sortTreeChildrenByY(Bn);Bn=hi.last()}Bn!==null&&Xe.select(Bn)}else Xe.select(Jn)}}else if(Ke.key==="Down")if(Je.isTreeExpanded&&!Je.isTreeLeaf){var Hn=this._sortTreeChildrenByY(Je).first();Hn!==null&&Xe.select(Hn)}else for(;Je!==null;){var Jn=Je.findTreeParentNode();if(Jn===null)break;var qn=this._sortTreeChildrenByY(Jn),pn=qn.indexOf(Je);if(pn<qn.length-1){Xe.select(qn.elt(pn+1));break}else Je=Jn}var Ti=Xe.selection.first();Ti!==null&&Xe.scrollToRect(Ti.actualBounds)}},Oe.prototype._sortTreeChildrenByY=function(Xe){var Je=new go.List().addAll(Xe.findTreeChildrenNodes());return Je.sort(function(Ke,Hn){var Jn=Ke.location,qn=Hn.location;return Jn.y<qn.y?-1:Jn.y>qn.y?1:Jn.x<qn.x?-1:Jn.x>qn.x?1:0}),Je},Oe.prototype.copyToClipboard=function(Xe){go.CommandHandler.prototype.copyToClipboard.call(this,Xe),this._lastPasteOffset.set(this.pasteOffset)},Oe.prototype.pasteFromClipboard=function(){var Xe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Xe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Xe},Object.defineProperty(Oe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Xe){if(Xe!=="move"&&Xe!=="select"&&Xe!=="scroll"&&Xe!=="tree"&&Xe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Xe);this._arrowKeyBehavior=Xe}}),Object.defineProperty(Oe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Xe){if(!(Xe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Xe);this._pasteOffset.set(Xe)}});var He=Oe,ie=ce(63720),Tt=ce(5269),At=ce(38986),Yt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},oe=ce(48790),_t=ce(59301),It=(Xe,Je,Ke)=>new Promise((Hn,Jn)=>{var qn=hi=>{try{Bn(Ke.next(hi))}catch(Ti){Jn(Ti)}},pn=hi=>{try{Bn(Ke.throw(hi))}catch(Ti){Jn(Ti)}},Bn=hi=>hi.done?Hn(hi.value):Promise.resolve(hi.value).then(qn,pn);Bn((Ke=Ke.apply(Xe,Je)).next())});function Pt({onCancel:Xe,callback:Je}){let Ke=(0,ee.useRef)(),Hn=(0,ee.useRef)(),Jn=(0,ee.useRef)(),qn=(0,ee.useRef)(!1);const pn=(0,ee.useRef)(!1),[Bn,hi]=(0,ee.useState)(0);function Ti(){const we=Le.bx.make,je={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"};Ke.current=new Le.S0(Hn.current,{padding:20,grid:we(Le.s_,"Grid",we(Le.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),we(Le.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Dn=>{var ei=Dn.diagram.commandHandler.addTopLevelParts(Dn.diagram.selection,!0);ei||Dn.diagram.currentTool.doCancel()},commandHandler:we(He),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Dn=>{var ei=Dn.subject;ei.location=ei.location.copy().snapToGridPoint(Dn.diagram.grid.gridOrigin,Dn.diagram.grid.gridCellSize),setTimeout(()=>{Dn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Dn=>{var ei=Dn.subject;setTimeout(()=>{Dn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Dn=>{var ei=Dn.parameter.part;ei.invalidateConnectedLinks();var Qn=Dn.subject;Dn.diagram.toolManager.linkingTool.isForwards?Qn.toNode.invalidateConnectedLinks():Qn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ke.current.nodeTemplate=we(Le.NB,"Auto",{locationSpot:Le.z6.Center,locationObjectName:"SHAPE",desiredSize:new Le.$u(120,60),minSize:new Le.$u(40,40),resizable:!0,resizeCellSize:new Le.$u(10,10),rotatable:!0},new Le.KX("location","loc",Le.E9.parse).makeTwoWay(Le.E9.stringify),new Le.KX("desiredSize","size",Le.$u.parse).makeTwoWay(Le.$u.stringify),we(Le.bn,{name:"SHAPE",fill:je.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Le.z6.AllSides,toSpot:Le.z6.AllSides},new Le.KX("figure"),new Le.KX("fill"),new Le.KX("stroke","borderColor"),new Le.KX("strokeWidth","thickness"),new Le.KX("strokeDashArray","dash")),we(Le.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),we(Le.al,{margin:1,textAlign:"center",overflow:Le.al.OverflowEllipsis,editable:!0},new Le.KX("text").makeTwoWay(),new Le.KX("stroke","color"))),Ke.current.nodeTemplate.toolTip=we("ToolTip",we(Le.s_,"Vertical",{maxSize:new Le.$u(200,NaN)},we(Le.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Le.KX("text")),we(Le.al,{font:"10pt sans-serif",textAlign:"center"},new Le.KX("text","details"))));function An(Dn,ei){var Qn=(ri,Ci)=>{ri.handled=!0,ri.diagram.model.commit(Fi=>{var Ui=Ci.part.adornedPart,Qi=new Le.E9().setRectSpot(Ui.actualBounds,Dn);Qi.subtract(Ui.location),Qi.scale(2,2),Qi.x+=Math.sign(Qi.x)*130,Qi.y+=Math.sign(Qi.y)*130,Qi.add(Ui.location),Qi.snapToGridPoint(ri.diagram.grid.gridOrigin,ri.diagram.grid.gridCellSize);var sr=Fi.copyNodeData(Ui.data);Fi.setGroupKeyForNodeData(sr,Fi.getGroupKeyForNodeData(Ui.data)),Fi.addNodeData(sr);var cn={from:Ui.key,to:Fi.getKeyForNodeData(sr)};Fi.addLinkData(cn);var gr=ri.diagram.findNodeForData(sr);gr.location=Qi,ri.diagram.select(gr),setTimeout(()=>{ri.diagram.commandHandler.editTextBlock()},20)})};return we(Le.bn,{figure:ei,alignment:Dn,alignmentFocus:Dn.opposite(),width:Dn.equals(Le.z6.Top)||Dn.equals(Le.z6.Bottom)?25:18,height:Dn.equals(Le.z6.Top)||Dn.equals(Le.z6.Bottom)?18:25,fill:"orange",stroke:je.white,strokeWidth:4,mouseEnter:(ri,Ci)=>Ci.fill="dodgerblue",mouseLeave:(ri,Ci)=>Ci.fill="orange",isActionable:!0,click:Qn,contextClick:Qn})}function Nn(Dn){return we(Le.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:(ei,Qn)=>Qn.fill="dodgerblue",mouseLeave:(ei,Qn)=>Qn.fill="orange",click:(ei,Qn)=>{ei.diagram.commandHandler.showContextMenu(Qn.part.adornedPart)}},Dn||{})}Ke.current.nodeTemplate.selectionAdornmentTemplate=we(Le.uz,"Spot",we(Le.Vm,{padding:10}),An(Le.z6.Top,"TriangleUp"),An(Le.z6.Left,"TriangleLeft"),An(Le.z6.Right,"TriangleRight"),An(Le.z6.Bottom,"TriangleDown"),Nn({alignment:new Le.z6(.75,0)}));function tn(Dn,ei){return(Qn,ri)=>{Qn.handled=!0,Qn.diagram.model.commit(Ci=>{Ci.set(ri.part.adornedPart.data,Dn,ei)})}}function yn(Dn,ei){return ei||(ei="color"),we(Le.bn,{width:16,height:16,stroke:"lightgray",fill:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.stroke="dodgerblue",mouseLeave:(Qn,ri)=>ri.stroke="lightgray",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}function xn(){return[we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.white,"fill"),yn(je.beige,"fill"),yn(je.extralightblue,"fill"),yn(je.extralightred,"fill"))),we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.lightgray,"fill"),yn(je.lightgreen,"fill"),yn(je.lightblue,"fill"),yn(je.lightred,"fill")))]}function Sn(){return[we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.black),yn(je.green),yn(je.blue),yn(je.red))),we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.white),yn(je.magenta),yn(je.purple),yn(je.orange)))]}function Wn(Dn,ei){return ei||(ei="thickness"),we(Le.bn,"LineH",{width:16,height:16,strokeWidth:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}function Fn(Dn,ei){return ei||(ei="dash"),we(Le.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}function jn(){return[we("ContextMenuButton",we(Le.s_,"Horizontal",Wn(1),Wn(2),Wn(3),Wn(4))),we("ContextMenuButton",we(Le.s_,"Horizontal",Fn(null),Fn([2,4]),Fn([4,4])))]}function In(Dn,ei){return ei||(ei="figure"),we(Le.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.fill="dodgerblue",mouseLeave:(Qn,ri)=>ri.fill="lightgray",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}Ke.current.nodeTemplate.contextMenu=we("ContextMenu",we("ContextMenuButton",we(Le.s_,"Horizontal",In("Rectangle"),In("RoundedRectangle"),In("Ellipse"),In("Diamond"))),we("ContextMenuButton",we(Le.s_,"Horizontal",In("Parallelogram2"),In("ManualOperation"),In("Procedure"),In("Cylinder1"))),we("ContextMenuButton",we(Le.s_,"Horizontal",In("Terminator"),In("CreateRequest"),In("Document"),In("TriangleDown"))),xn(),Sn(),jn()),Ke.current.groupTemplate=we(Le.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Le.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Dn,ei)=>{var Qn=ei.addMembers(ei.diagram.selection,!0);Qn||ei.diagram.currentTool.doCancel()},avoidable:!1},new Le.KX("location","loc",Le.E9.parse).makeTwoWay(Le.E9.stringify),we(Le.s_,"Auto",{name:"BODY"},we(Le.bn,{parameter1:10,fill:je.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Le.z6.AllSides,toSpot:Le.z6.AllSides},new Le.KX("fill"),new Le.KX("stroke","color"),new Le.KX("strokeWidth","thickness"),new Le.KX("strokeDashArray","dash")),we(Le.Vm,{background:"transparent",margin:20})),we(Le.al,{alignment:Le.z6.Top,alignmentFocus:Le.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Le.KX("text"),new Le.KX("stroke","color"))),Ke.current.groupTemplate.selectionAdornmentTemplate=we(Le.uz,"Spot",we(Le.s_,"Auto",we(Le.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),we(Le.Vm,{margin:1.5})),Nn({alignment:Le.z6.TopRight,alignmentFocus:Le.z6.BottomRight})),Ke.current.groupTemplate.contextMenu=we("ContextMenu",xn(),Sn(),jn()),Ke.current.linkTemplate=we(Le.rU,{layerName:"Foreground",routing:Le.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Le.KX("fromSpot","fromSpot",Le.z6.parse),new Le.KX("toSpot","toSpot",Le.z6.parse),new Le.KX("fromShortLength","dir",Dn=>Dn>=1?10:0),new Le.KX("toShortLength","dir",Dn=>Dn>=1?10:0),new Le.KX("points").makeTwoWay(),we(Le.bn,{strokeWidth:2},new Le.KX("stroke","color"),new Le.KX("strokeWidth","thickness"),new Le.KX("strokeDashArray","dash")),we(Le.bn,{segmentIndex:0,segmentOffset:new Le.E9(15,0),segmentOrientation:Le.rU.OrientAlong,alignmentFocus:Le.z6.Right,figure:"circle",width:10,strokeWidth:0},new Le.KX("fill","color"),new Le.KX("visible","dir",Dn=>Dn===1)),we(Le.bn,{segmentIndex:-1,segmentOffset:new Le.E9(-10,6),segmentOrientation:Le.rU.OrientPlus90,alignmentFocus:Le.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Le.KX("fill","color"),new Le.KX("visible","dir",Dn=>Dn>=1),new Le.KX("width","thickness",Dn=>7+3*Dn),new Le.KX("height","thickness",Dn=>7+3*Dn),new Le.KX("segmentOffset","thickness",Dn=>new Le.E9(-15,4+1.5*Dn))),we(Le.bn,{segmentIndex:0,segmentOffset:new Le.E9(15,-6),segmentOrientation:Le.rU.OrientMinus90,alignmentFocus:Le.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Le.KX("fill","color"),new Le.KX("visible","dir",Dn=>Dn===2),new Le.KX("width","thickness",Dn=>7+3*Dn),new Le.KX("height","thickness",Dn=>7+3*Dn),new Le.KX("segmentOffset","thickness",Dn=>new Le.E9(-15,4+1.5*Dn))),we(Le.al,{alignmentFocus:new Le.z6(0,1,-4,0),editable:!0},new Le.KX("text").makeTwoWay(),new Le.KX("stroke","color"))),Ke.current.linkTemplate.selectionAdornmentTemplate=we(Le.uz,we(Le.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ai(2)},new Le.KX("pathPattern","thickness",Ai)),Nn({alignmentFocus:new Le.z6(0,0,-6,-4)}));function Ai(Dn){return we(Le.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Dn+4).toString()+" H3"})}function ai(Dn){var ei="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Dn===0?ei="M0 0 M16 16 M0 8 L16 8":Dn===2&&(ei="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),we(Le.bn,{geometryString:ei,margin:2,background:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:tn("dir",Dn),contextClick:tn("dir",Dn)})}function ci(Dn){var ei=(Qn,ri)=>{Qn.handled=!0,Qn.diagram.model.commit(Ci=>{var Fi=ri.part.adornedPart;Ci.set(Fi.data,Dn?"toSpot":"fromSpot",Le.z6.stringify(Le.z6.AllSides)),(Dn?Fi.toNode:Fi.fromNode).invalidateConnectedLinks()})};return we(Le.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:ei,contextClick:ei})}function rn(Dn,ei){var Qn=0,ri=Le.z6.RightSide;Dn.equals(Le.z6.Top)?(Qn=270,ri=Le.z6.TopSide):Dn.equals(Le.z6.Left)?(Qn=180,ri=Le.z6.LeftSide):Dn.equals(Le.z6.Bottom)&&(Qn=90,ri=Le.z6.BottomSide),ei||(Qn-=180);var Ci=(Fi,Ui)=>{Fi.handled=!0,Fi.diagram.model.commit(Qi=>{var sr=Ui.part.adornedPart;Qi.set(sr.data,ei?"toSpot":"fromSpot",Le.z6.stringify(ri)),(ei?sr.toNode:sr.fromNode).invalidateConnectedLinks()})};return we(Le.bn,{alignment:Dn,alignmentFocus:Dn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Qn,background:"transparent",mouseEnter:(Fi,Ui)=>Ui.background="dodgerblue",mouseLeave:(Fi,Ui)=>Ui.background="transparent",click:Ci,contextClick:Ci})}Ke.current.linkTemplate.contextMenu=we("ContextMenu",Sn(),jn(),we("ContextMenuButton",we(Le.s_,"Horizontal",ai(0),ai(1),ai(2))),we("ContextMenuButton",we(Le.s_,"Horizontal",we(Le.s_,"Spot",ci(!1),rn(Le.z6.Top,!1),rn(Le.z6.Left,!1),rn(Le.z6.Right,!1),rn(Le.z6.Bottom,!1)),we(Le.s_,"Spot",{margin:new Le.Zt(0,0,0,2)},ci(!0),rn(Le.z6.Top,!0),rn(Le.z6.Left,!0),rn(Le.z6.Right,!0),rn(Le.z6.Bottom,!0)))));const Ii=`{ "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 Xi=["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 vr(Dn){return console.log("shapeName:",Dn),Xi.indexOf(Dn)>=0}var an=new Le.YI(Jn.current,{maxSelectionCount:1,linkTemplate:we(Le.rU,{locationSpot:Le.z6.Center,selectionAdornmentTemplate:we(Le.uz,"Link",{locationSpot:Le.z6.Center},we(Le.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),we(Le.bn,{toArrow:"Standard",stroke:null}))},{routing:Le.rU.AvoidsNodes,curve:Le.rU.JumpOver,corner:5,toShortLength:4},new Le.KX("points"),we(Le.bn,{isPanelMain:!0,strokeWidth:2}),we(Le.bn,{toArrow:"Standard",stroke:null})),model:new Le.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Le.bn.getFigureGenerators().toArray().map(Dn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Dn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ke.current.addDiagramListener("TextEdited",function(Dn){var ei;const Qn=Dn.subject.part;var ri=(ei=document.activeElement)==null?void 0:ei.value;typeof ri=="string"&&ri.trim()===""&&Ke.current.model.commit(function(Ci){Ci.set(Qn.data,"text","\u672A\u547D\u540D"),Ke.current.commandHandler.stopCommand()},"increment")}),an.nodeTemplate=we(Le.NB,"Auto",{locationSpot:Le.z6.Center},new Le.KX("location","location",Le.E9.parse).makeTwoWay(Le.E9.stringify),we(Le.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 Le.KX("stroke").makeTwoWay(),new Le.KX("fill").makeTwoWay(),new Le.KX("figure")),we(Le.al,{margin:new Le.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Le.$u(16,16),maxSize:new Le.$u(10,NaN),textAlign:"center",editable:!0},new Le.KX("key").makeTwoWay())),setTimeout(()=>{Ke.current.grid=we(Le.s_,"Grid",we(Le.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),we(Le.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ke.current.grid.visible=!0,Ke.current.grid.gridCellStroke="darkgray",Ke.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ke.current,Ke.current}const Di=()=>It(this,null,function*(){var we,je=Ke.current.makeImage();const An=yield(0,At.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:je.src,file_data:JSON.stringify({login:(we=(0,oe.eY)())==null?void 0:we.login,data:JSON.parse(Ke.current.model.toJson())})}});Je({src:An.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{Ti()},500),hi(Bn+1),()=>{Ke.current=null}),[]),_t.createElement("div",{ref:pn,className:"body-overflow-initial"},_t.createElement(Re.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:_t.createElement(Fe.Z,null,_t.createElement(Tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),_t.createElement(Tt.Z,{onClick:()=>{var we,je,An=Ke.current.selection.first();if(qn.current=!qn.current,document.activeElement&&An){let Nn=(je=(we=document.activeElement)==null?void 0:we.value)==null?void 0:je.trim();typeof Nn=="string"&&Ke.current.model.commit(function(tn){tn.set(An.data,"text",Nn||"\u672A\u547D\u540D"),Ke.current.commandHandler.stopCommand()},"increment")}hi(Bn+1)}},_t.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Xe},_t.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:qn.current?"none":"block"},className:Yt.flowChartWrp},_t.createElement("div",{style:{display:"flex",height:"100%"}},_t.createElement("div",{style:{width:"300px",height:"100%"}},_t.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),_t.createElement("div",{style:{height:"calc(100% - 50px)"},className:Yt.myPaletteDiv,ref:Jn})),_t.createElement("div",{style:{flex:1,position:"relative"}},_t.createElement("div",{ref:Hn,style:{height:"80vh"}}))),_t.createElement("div",{className:"tr"},_t.createElement(Vt.ZP,{size:"large",onClick:Di,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Et=Pt,$t=ce(47889),zt=ce(71051);const Gt=$t.ZP.Group,le={margin:"0 8px"};var ye=({callback:Xe,onCancel:Je})=>{function Ke(Hn){Xe(Hn)}return ee.createElement(qt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ke},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:le},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:le},"\u884C\u6570"),ee.createElement(qt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(zt.Z,null)),ee.createElement("span",{style:le},"\u5217\u6570"),ee.createElement(qt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(zt.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:le},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(qt.default.Item,{name:"align"},ee.createElement(Gt,null,ee.createElement($t.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement($t.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement($t.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement($t.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Vt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Vt.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))},Ue=ce(71411),We=ce(43001),Ee=ce.n(We),on=(0,ee.forwardRef)(({use3d:Xe,width:Je,height:Ke,callback:Hn,showSaveButton:Jn},qn)=>{const pn=(0,ee.useRef)(),Bn=(0,ee.useRef)(),[hi,Ti]=(0,ee.useState)(!1),Di=(0,ee.useRef)({id:pn,appName:"graphing",width:Je||1e3,height:Ke||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{Bn.current=new(Ee())(Di.current,!0),window.onload=function(){Bn.current.inject("applet_container")}},[]);const we=()=>{var je=window.ggbApplet.getPNGBase64(1,!0,72);return Hn&&Hn(je),je};return(0,ee.useEffect)(()=>{Di.current.appName=hi?"3D":"graphing",Bn.current.inject("applet_container")},[hi]),(0,ee.useEffect)(()=>{Ti(Xe)},[Xe]),(0,ee.useImperativeHandle)(qn,()=>({getImgData:we})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:pn}),ee.createElement(Fe.Z,{align:"middle"},ee.createElement(Tt.Z,{flex:1},ee.createElement(Ue.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:hi,onChange:je=>Ti(je)})),ee.createElement(Tt.Z,null,ee.createElement(Vt.ZP,{size:"large",onClick:we,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),nn=ce(76562),qe=ce(6767);const En="link",fn="upload-image",Pn="add-flowchart",Mn="draw-image",ii="add-flowchart",Tn="code-block",oi="add-table",vi="------------",yi={default:vi,left:`:${vi}`,center:`:${vi}:`,right:`${vi}:`};var Zi=ce(37808);function Hi(){}let Yi=0;const zi=1e4,Pi="\u2581",Gi="@\u2581\u2581@",Kt="@\u2581@",zn=`
|
|
**\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`,Rn=["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 bn(Xe){return/^\d+$/.test(Xe)?`${Xe}px`:Xe}const Yn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xn={[Yn+"-B"]:"bold",[Yn+"-I"]:"italic"},Ri={[En]:"\u6DFB\u52A0\u94FE\u63A5",[Tn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[fn]:"\u6DFB\u52A0\u56FE\u7247",[Mn]:"\u6DFB\u52A0\u753B\u56FE",[Pn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[oi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ki=({defaultValue:Xe="",onChange:Je,width:Ke="100%",height:Hn=400,miniToolbar:Jn=!1,isFocus:qn=!1,watch:pn,insertTemp:Bn,mode:hi="markdown",id:Ti="markdown-editor-id",showResizeBar:Di=!1,noStorage:we=!1,showNullButton:je=!1,showNullProgramButton:An=!1,hidetoolBar:Nn=!1,fullScreen:tn=!1,onBlur:yn,onCMBeforeChange:xn,onFullScreen:Sn,className:Wn="",disablePaste:Fn=!1,disabled:jn=!1,disabledFill:In=!1,placeholder:Ai="",values:ai="",extraUse:ci})=>{const[rn,Ii]=(0,ee.useState)(null),[Xi,vr]=(0,ee.useState)(Xe),[an,Dn]=(0,ee.useState)(pn),[ei,Qn]=(0,ee.useState)(tn),[ri,Ci]=(0,ee.useState)(""),[Fi,Ui]=(0,ee.useState)(0),[Qi,sr]=(0,ee.useState)(Hn),[cn,gr]=(0,ee.useState)(!1),[hn,di]=(0,ee.useState)(0),[tr,Wi]=(0,ee.useState)(0),fr=(0,ee.useRef)(),rr=(0,ee.useRef)(),_i=(0,ee.useRef)(),Cr=(0,ee.useRef)();(0,ee.useEffect)(()=>{const bi=window.scrollY||window.pageYOffset;vr(ai),rn==null||rn.setValue(ai),window.scrollTo(0,bi)},[ai]),(0,ee.useEffect)(()=>{Sn==null||Sn(ei)},[ei]),(0,ee.useEffect)(()=>{if(fr.current){let bi=function(wn,Ei){var pr;if(Fn){Ei.preventDefault();return}const Ur=Ei.clipboardData;if(Ur){const Er=Ur.types.toString(),Jr=Ur.items;if(Er==="Files"||Ur.types.indexOf("Files")>-1){if(Ei.preventDefault(),hi=="stex")return;try{let yo=Jr[1];((pr=Jr[0])==null?void 0:pr.kind)==="file"&&(yo=Jr[0]);const Qr=yo.getAsFile(),Ao=Qr.name.split(".").pop();(0,ue.I)(Qr,So=>{var No,en,Uo;So.id?((No=Qr==null?void 0:Qr.type)==null?void 0:No.indexOf("image"))>-1?li.replaceSelection(`<img width="100%" src="/api/attachments/${So.id}?type=${So.content_type})" alt="" />`):((en=Qr==null?void 0:Qr.type)==null?void 0:en.indexOf("video"))>-1?li.replaceSelection(`<video width="100%" controls src="/api/attachments/${So.id}"></video>`):((Uo=Qr==null?void 0:Qr.type)==null?void 0:Uo.indexOf("pdf"))>-1?li.replaceSelection(`<a href="/api/attachments/${So.id}?type=${Qr.type}&disposition=inline" target="_blank">${Qr.name}</a>`):Rn.includes(Ao)?li.replaceSelection(`<a href="/api/attachments/${So.id}?type=office&disposition=inline" target="_blank">${Qr.name}</a>`):li.replaceSelection(`[${Qr.name}](/api/attachments/${So.id}?type=${So.content_type})`):(So==null?void 0:So.status)===401&&(document.location.href="/user/login")})}catch(yo){qe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const li=Qt().fromTextArea(fr.current,{mode:hi,lineNumbers:!Jn,lineWrapping:!0,value:Xe,autoCloseTags:!0,autoCloseBrackets:!0});return li.on("keyup",function(wn,Ei){Ei.keyCode===8&&(wn.getValue()==""?li.setOption("placeholder",Ai):li.setOption("placeholder",null))}),li.on("keydown",function(wn,Ei){if(Ei.keyCode===8){var pr=Rr(wn);pr&&Ei.preventDefault()}}),qn&&li.focus(),li.on("paste",bi),jn&&li.on("beforeChange",function(wn,Ei){(Ei.origin==="paste"||Ei.origin==="+input")&&Ei.cancel()}),Ii(li),()=>{li.off("paste",bi)}}},[]);const Mo=(0,ee.useCallback)(()=>{if(rr.current)try{}catch(bi){console.log(bi,"---- to set md editor body height")}},[Qi,rr,ei]);(0,ee.useEffect)(()=>{function bi(){let li=new Zt.Z(wn=>{for(let Ei of wn)(Ei.target.offsetHeight>0||Ei.target.offsetWidth>0)&&(Mo(),rn.setSize("100%","100%"),rn.refresh())});return li.observe(fr.current.parentElement),li}if(rn){const li=bi();return()=>{var wn,Ei;(wn=fr.current)!=null&&wn.parentElement&&li.unobserve((Ei=fr.current)==null?void 0:Ei.parentElement)}}},[rn,Mo]),(0,ee.useEffect)(()=>{if(rn){let bi=[];for(const[li,wn]of Object.entries(Xn)){let Ei={[li]:()=>{ti(wn)}};bi.push(Ei),rn.addKeyMap(Ei)}return()=>{for(let li of bi)rn.removeKeyMap(li)}}},[rn]),(0,ee.useEffect)(()=>{tn!==ei&&Qn(tn)},[tn]),(0,Zi.Z)(()=>{if(!we&&Fi>0){let bi=new Date().getTime(),li=window.sessionStorage.getItem(Ti);bi>=Fi+zi&&(!li||li!==Xi)&&(window.sessionStorage.setItem(Ti,Xi),gr(!0))}},zi),(0,ee.useEffect)(()=>{Dn(pn)},[rn,pn]),(0,ee.useEffect)(()=>{rn&&qn&&rn.focus()},[rn,qn]),(0,ee.useEffect)(()=>{if(an&&rn){let bi=function(wn){let Ei=wn.target;if(Cr.current){let pr=Ei.scrollTop/Ei.scrollHeight;Cr.current.scrollTop=Cr.current.scrollHeight*pr}};const li=rn.getScrollerElement();return li.addEventListener("scroll",bi),()=>{li.removeEventListener("scroll",bi)}}},[rn,an]),(0,ee.useEffect)(()=>{if(rn&&xn){let bi=function(li,wn){xn(li,wn)};return rn.on("beforeChange",bi),()=>{rn.off("beforeChange",bi)}}},[rn,xn]),(0,ee.useEffect)(()=>{if(rn&&yn){let bi=function(){yn(rn.getValue())};return rn.on("blur",bi),()=>{rn.off("blur",bi)}}},[rn,yn]);function Rr(bi,li){var wn=bi.getDoc(),Ei=wn.getCursor(),pr=wn.getLine(Ei.line),Ur=pr.charAt(Ei.ch-1),Er=pr.lastIndexOf("@\u2581@",Ei.ch),Jr=pr.lastIndexOf("@\u2581\u2581@",Ei.ch),yo=Er>Jr?Er:Jr,Qr=Er>Jr?3:4;if(Gi.indexOf(Ur)===-1)return null;if(console.log("change1:",li,bi,pr,Ei,yo,Er,Jr,Ur),yo>=0&&Ei.ch-yo<5){var Ao=yo+Qr;return wn.replaceRange("",{line:Ei.line,ch:yo},{line:Ei.line,ch:Ao}),{line:Ei.line,ch:Ao}}return null}(0,ee.useEffect)(()=>{if(rn){let bi=function(li,wn){const Ei=li.getValue();vr(Ei),Ui(new Date().getTime()),li.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Je&&(An?Je(Ei,Si(Ei)):Je(Ei))};return rn.on("change",bi),()=>{rn.off("change",bi)}}},[rn,Je]),(0,ee.useEffect)(()=>{if(rn)if(Xe==null)rn.setValue(""),vr("");else{const bi=window.scrollY||window.pageYOffset;Xe!==rn.getValue()&&(rn.setValue(Xe),vr(Xe),rn.setCursor(jn?1:rn.lineCount(),0),window.scrollTo(0,bi))}},[rn,Xe]);const ti=(0,ee.useCallback)(bi=>{const li=rn.getCursor(),wn=rn.getSelection();let Ei=wn.split(`
|
|
`);switch(bi){case"bold":return rn.replaceSelection("**"+wn+"**"),wn===""&&rn.setCursor(li.line,li.ch+2),rn.focus();case"italic":return rn.replaceSelection("*"+wn+"*"),wn===""&&rn.setCursor(li.line,li.ch+1),rn.focus();case"code":return rn.replaceSelection("`"+wn+"`"),wn===""&&rn.setCursor(li.line,li.ch+1),rn.focus();case"inline-latex":return Ci("inline-latex"),rn.focus();case"latex":return rn.replaceSelection("```latex\n"+wn+"\n```"),rn.setCursor(li.line+1,wn.length+1),rn.focus();case"line-break":return rn.replaceSelection(`<br/>
|
|
`),rn.focus();case"list-ul":return wn===""?rn.replaceSelection("- "+wn):rn.replaceSelection(Ei.map(pr=>pr===""?"":`- ${pr}`).join(`
|
|
`)),rn.focus();case"list-ol":return wn===""?rn.replaceSelection("1. "+wn):rn.replaceSelection(Ei.map((pr,Ur)=>pr===""?"":`${Ur+1}. ${pr}`).join(`
|
|
`)),rn.focus();case"add-null-ch":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(Pi),rn.focus();case"add-signal":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(Kt),rn.focus();case"add-multiple":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(Gi),rn.focus();case"inster-template-1":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(zn),rn.focus();case"eraser":return rn.setValue(""),rn.focus();case"trigger-watch":return Dn(!an),rn.focus();case"trigger-full-screen":return Qn(!ei),rn.focus();case En:Ci(En);return;case Tn:Ci(Tn);return;case fn:Ci(fn);return;case Mn:Ci(Mn);return;case"maths-latex":Ci("maths-latex");return;case Pn:Ci(Pn);return;case oi:Ci(oi);return;default:throw new Error}},[rn,an,ei]),xe=(0,ee.useCallback)((bi,li)=>{var wn,Ei,pr,Ur,Er,Jr;switch(Ci(""),ri){case En:const{title:No,link:en}=bi;return rn.replaceSelection(`[${No}](${en})`),rn.focus();case Tn:const{language:Uo,content:Qa}=bi;return rn.replaceSelection(["```"+Uo,Qa,"```"].join(`
|
|
`)),rn.focus();case"maths-latex":for(var yo=atob(bi),Qr=new Uint8Array(yo.length),Ao=0;Ao<yo.length;Ao++)Qr[Ao]=yo.charCodeAt(Ao);var So=new Blob([Qr],{type:"image/png"});(0,ue.I)(So,gs=>{gs.id?rn.replaceSelection(``):(gs==null?void 0:gs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":rn.replaceSelection("`$$"+bi+"$$`");break;case fn:case Mn:case ii:const{src:rs,alt:Fs}=bi,ro=li,ua=(pr=(Ei=(wn=ro==null?void 0:ro.name)==null?void 0:wn.split("."))==null?void 0:Ei.pop)==null?void 0:pr.call(Ei);return((Ur=ro==null?void 0:ro.type)==null?void 0:Ur.indexOf("image"))>-1||!(ro!=null&&ro.type)?ro!=null&&ro.align||ro!=null&&ro.width?rn.replaceSelection(`<p style="text-align:${ro.align||"initial"}"><img width="${ro.width?ro.width+"%":"initial"}" src="${rs}" alt="${Fs||""}" /></p>`):rn.replaceSelection(`<img width="100%" src="${rs}" alt="${Fs||""}" />`):((Er=ro==null?void 0:ro.type)==null?void 0:Er.indexOf("video"))>-1?rn.replaceSelection(`<video width="100%" controls src="${rs}"></video>`):((Jr=ro==null?void 0:ro.type)==null?void 0:Jr.indexOf("pdf"))>-1?rn.replaceSelection(`<a href="${rs}?type=${ro.type}&disposition=inline" target="_blank">${ro.name}</a>`):Rn.includes(ua)?rn.replaceSelection(`<a href="${rs}?type=office&disposition=inline" target="_blank">${ro.name}</a>`):rn.replaceSelection(`[${ro.name}](${rs})`),rn.focus();case oi:const{row:Wl,col:Tr,align:Wo}=bi;let Ll=`
|
|
`;for(let gs=0;gs<Wl;gs++){let uu=[],wa=[];for(let Bi=0;Bi<Tr;Bi++)gs===1&&wa.push(yi[Wo]),uu.push(" ");gs===1&&(Ll+=`| ${wa.join(" | ")} |
|
|
`),Ll+=`| ${uu.join(Tr===1?"":" | ")} |
|
|
`}return rn.replaceSelection(Ll+`
|
|
`),rn.focus();default:throw new Error}},[rn,ri]),Gr=(0,ee.useMemo)(()=>{switch(ri){case En:return ee.createElement(se,{callback:xe,onCancel:To});case Tn:return ee.createElement(pe.Z,{callback:xe,onCancel:To});case fn:return ee.createElement(ue.Z,{callback:xe,onCancel:To});case Pn:return ee.createElement(Et,{callback:xe,onCancel:To});case oi:return ee.createElement(ye,{callback:xe,onCancel:To});case"maths-latex":return ee.createElement(on,{showSaveButton:!0,callback:xe});case"inline-latex":return ee.createElement(nn.Z,{showSaveButton:!0,callback:xe});default:return null}},[ri]);function To(){Ci("")}(0,ee.useEffect)(()=>{if(_i.current){let bi=function(Er){pr=!0,Ur=Er.pageY},li=function(){pr=!1},wn=function(Er){if(pr){let Jr=Er.pageY-Ur;Jr<0&&(Jr=0),Jr>300&&(Jr=300);let yo=Hn+Jr+"px";sr(yo)}},Ei=_i.current,pr=!1,Ur=0;return Ei.addEventListener("mousedown",bi),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",li),()=>{Ei.removeEventListener("mousedown",bi),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",li)}}},[rn,_i]),(0,ee.useEffect)(()=>{sr(Hn)},[Hn]);const is=bn(Ke),vo=bn(Qi),xr={width:is,height:vo},ui=(0,ee.useMemo)(()=>{if(Fi){let bi=new Date(Fi),li=bi.getHours(),wn=bi.getMinutes(),Ei=bi.getSeconds();return li=li<10?"0"+li:li,wn=wn<10?"0"+wn:wn,Ei=Ei<10?"0"+Ei:Ei,`${li}:${wn}:${Ei}`}return 0},[Fi]),Si=bi=>{const li=[];if(An){let wn=-1;bi=bi.replace(/(@▁▁@|@▁@)/g,function(Ei,pr,Ur){li.push({multiLine:Ei!==Kt})})}return li};function er(){window.sessionStorage.removeItem(Ti),gr(!1),Ui(0)}function gi(){gr(!1),Ui(0),rn.setValue(window.sessionStorage.getItem(Ti))}(0,ee.useEffect)(()=>{Ri[ri]&&ri!==Mn&&ri!==Pn&&setTimeout(()=>{const bi=document.getElementsByClassName("markdown-popup-form")[0],li=window.innerWidth/2-bi.offsetWidth/2,wn=window.innerHeight/2-bi.offsetHeight/2;di(li),Wi(wn)},0)},[ri]);const Ji=bi=>{bi.preventDefault();const li=bi.clientX-hn,wn=bi.clientY-tr;document.body.onmousemove=Ei=>{let pr=Ei.clientX-li,Ur=Ei.clientY-wn;const Er=document.getElementsByClassName("markdown-popup-form")[0],Jr=window.innerWidth-Er.offsetWidth,yo=window.innerHeight-Er.offsetHeight;pr=Math.max(0,Math.min(pr,Jr)),Ur=Math.max(0,Math.min(Ur,yo)),Mr(Ei.clientX,Ei.clientY,li,wn)&&(di(pr),Wi(Ur))},document.body.onmouseup=function(){document.body.onmousemove=null}},Mr=(bi,li,wn,Ei)=>{const pr=document.body.clientHeight,Ur=document.body.clientWidth;return bi<20&&wn>bi||bi>Ur-20&&wn<bi||li<20&&Ei>li||li>pr-20&&Ei<li?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:rr},ee.createElement("div",{className:`markdown-editor-container ${Wn} ${an?"on-preview":""} ${Jn?"mini":""} ${ei?"full-screen":""}`,style:xr},ee.createElement(Ut,{insertTemp:Bn,watch:an,fullScreen:ei,showNullButton:je,showNullProgramButton:An,onActionCallback:ti,hidetoolBar:Nn,extraUse:ci}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:fr,placeholder:Ai})),an?ee.createElement("div",{ref:Cr,className:"preview-container"},hi==="stex"&&ee.createElement(xt,{value:Xi}),hi!=="stex"&&ee.createElement(kt.Z,{disabledFill:In,showProgramFill:An,value:Xi})):null))),Di?ee.createElement("a",{ref:_i,className:"editor-resize"}):null,ri===Mn&&ee.createElement(_e,{callback:xe,onCancel:To}),ri===Pn&&ee.createElement(Et,{callback:xe,onCancel:To}),ee.createElement(Nt.Z,null,Ri[ri]&&ri!==Mn&&ri!==Pn?ee.createElement(Re.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:hn,top:tr},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:Ji},Ri[ri]),open:!0,onCancel:To,footer:null,destroyOnClose:!0,width:ri===Pn?"1200px":null,height:ri===Pn?"80vh":null,className:"markdown-popup-form"},Gr):null))}},17077:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Lt},I:function(){return Ut}});var ee=ce(28284),wt=ce(6767),Qt=ce(37568),Zt=ce(77736),Ot=ce(71051),jt=ce(47889),Ct=ce(99571),Mt=ce(46699),Bt=ce(59301),St=ce(59301),kt=Object.defineProperty,xt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(Nt,qt,te)=>qt in Nt?kt(Nt,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Nt[qt]=te,ot=(Nt,qt)=>{for(var te in qt||(qt={}))et.call(qt,te)&<(Nt,te,qt[te]);if(yt)for(var te of yt(qt))tt.call(qt,te)&<(Nt,te,qt[te]);return Nt},ut=(Nt,qt)=>xt(Nt,Dt(qt));const{useForm:ct}=ee.default,ft={width:280,marginRight:10},gt={labelCol:{span:5},wrapperCol:{span:19}};var Lt=({callback:Nt,onCancel:qt})=>{const[te]=ct();let Vt=(0,Bt.useRef)();function de(Ne){Vt.current.width=te.getFieldValue("width"),Vt.current.align=te.getFieldValue("align"),Nt(Ne,Vt.current)}function ge(Ne,Ge){if(Ne.status===-1){wt.ZP.error(Ne.message);return}te.setFieldsValue({src:`/api/attachments/${Ne.id}`,type:Ge.type})}function be(Ne){let Ge=Ne.target.files[0];Vt.current=Ge,Ut(Ge,ge)}return St.createElement(ee.default,ut(ot({form:te},gt),{className:"upload-image-panel",onFinish:de,style:{width:470,overflow:"hidden"}}),St.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},St.createElement("div",{className:"flex-container"},St.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},St.createElement(Qt.default,{style:ft})),St.createElement(Rt,{onFileChange:be}))),St.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},St.createElement(Qt.default,{style:{width:264}})),St.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},St.createElement(Zt.Z,null,St.createElement(ee.default.Item,{name:"width",style:{margin:0}},St.createElement(Ot.Z,{style:{width:264}})),St.createElement("span",{className:"ml8"},"%"))),St.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},St.createElement(jt.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"}]})),St.createElement("aside",null,St.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},St.createElement(Ct.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(Ct.ZP,{type:"default",onClick:qt},"\u53D6\u6D88"))))};function Rt({onFileChange:Nt}){return St.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",St.createElement("input",{type:"file",onChange:Nt}))}function Ut(Nt,qt){if(!Nt)throw new String("\u6CA1\u6709\u6587\u4EF6");let te=new FormData;te.append("editormd-image-file",Nt),te.append("file_param_name","editormd-image-file"),te.append("byxhr","true");var Vt=new window.XMLHttpRequest;Vt.withCredentials=!0,Vt.addEventListener("load",function(de){qt(JSON.parse(de.target.responseText),Nt)},!1),Vt.addEventListener("error",function(de){console.error(de)},!1),Vt.open("POST",`${Mt.KI}/api/attachments.json`),Vt.send(te)}},91558:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Qt}});var ee=ce(59301),wt=ce(4676);class Qt extends ee.Component{constructor(Ot){super(Ot);const jt=window.document;this.node=jt.createElement("div"),jt.body.appendChild(this.node)}render(){const{children:Ot}=this.props;return(0,wt.createPortal)(Ot,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Cn,Gn,ce){"use strict";ce.d(Gn,{SV:function(){return Pt},ZP:function(){return It}});var ee=ce(59301),wt=ce(76374);const Qt={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"]},Zt={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"]},Ot={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(`
|
|
`)}]},jt={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(`
|
|
`)}]},Ct={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 Mt=ce(53184),Bt=ce.n(Mt),St=Object.defineProperty,kt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(Et,$t,zt)=>$t in Et?St(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[$t]=zt,lt=(Et,$t)=>{for(var zt in $t||($t={}))yt.call($t,zt)&&tt(Et,zt,$t[zt]);if(Dt)for(var zt of Dt($t))et.call($t,zt)&&tt(Et,zt,$t[zt]);return Et},ot=(Et,$t)=>kt(Et,xt($t)),ut=(Et,$t,zt)=>new Promise((Gt,le)=>{var ye=Ee=>{try{We(zt.next(Ee))}catch(Ze){le(Ze)}},Ue=Ee=>{try{We(zt.throw(Ee))}catch(Ze){le(Ze)}},We=Ee=>Ee.done?Gt(Ee.value):Promise.resolve(Ee.value).then(ye,Ue);We((zt=zt.apply(Et,$t)).next())});const ct={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"]}},ft=(Et,$t)=>$t.map(zt=>({label:zt,kind:Et.languages.CompletionItemKind.Keyword,insertText:zt})),gt=Et=>Object.keys(ct.tables).map($t=>({label:$t,kind:Et.languages.CompletionItemKind.Variable,insertText:$t})),Lt=(Et,$t)=>{const zt=ct.tables[Et];return zt?zt.map(Gt=>({label:Gt,kind:$t.languages.CompletionItemKind.Field,insertText:Gt})):[]};function Rt(Et,$t,zt,Gt,le){let ye=$t.getWordUntilPosition(zt),Ue={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:ye.startColumn,endColumn:ye.endColumn},We=Gt.map(Ee=>({label:Ee,kind:Et.languages.CompletionItemKind.Keyword,insertText:Ee,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}));return le.map(Ee=>{We.push(ot(lt({},Ee),{range:Ue}))}),We}var Ut=Et=>{ct.languages.map(le=>(Et.languages.registerDocumentFormattingEditProvider(le,{provideDocumentFormattingEdits(ye,Ue,We){return ut(this,null,function*(){const Ee=Bt()(ye.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:ye.getFullModelRange(),text:Ee}]})}}),le));const $t=Ot.quickKey.map(le=>({label:le.label,kind:Et.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),zt=jt.quickKey.map(le=>({label:le.label,kind:Et.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Gt=Zt.quickKey.map(le=>({label:le.label,kind:Et.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Et.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Ot.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Ot.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn};return{suggestions:[...Qt.keywords.map(Ee=>({label:Ee,kind:Et.languages.CompletionItemKind.Function,documentation:Ee,insertText:Ee,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Zt.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Zt.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Ct.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Ct.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...jt.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...jt.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}})};const Nt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var qt=Object.defineProperty,te=(Et,$t,zt)=>$t in Et?qt(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[$t]=zt,Vt=(Et,$t,zt)=>te(Et,typeof $t!="symbol"?$t+"":$t,zt);const de=class mx{constructor($t,zt,Gt){this.placeholder=$t,this.editor=zt,this.monaco=Gt,zt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Vt(de,"ID","editor.widget.placeholderHint");var be=de,Ne=ce(96236),Ge=ce(6767),Pe=ce(25399),ze=ce(89392),he=ce(49535),Jt=ce(56102),re=Object.defineProperty,se=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Qe=(Et,$t,zt)=>$t in Et?re(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[$t]=zt,Ae=(Et,$t)=>{for(var zt in $t||($t={}))Re.call($t,zt)&&Qe(Et,zt,$t[zt]);if(ue)for(var zt of ue($t))Fe.call($t,zt)&&Qe(Et,zt,$t[zt]);return Et},_e=(Et,$t)=>se(Et,pe($t)),Le=(Et,$t)=>{var zt={};for(var Gt in Et)Re.call(Et,Gt)&&$t.indexOf(Gt)<0&&(zt[Gt]=Et[Gt]);if(Et!=null&&ue)for(var Gt of ue(Et))$t.indexOf(Gt)<0&&Fe.call(Et,Gt)&&(zt[Gt]=Et[Gt]);return zt},Oe=(Et,$t,zt)=>new Promise((Gt,le)=>{var ye=Ee=>{try{We(zt.next(Ee))}catch(Ze){le(Ze)}},Ue=Ee=>{try{We(zt.throw(Ee))}catch(Ze){le(Ze)}},We=Ee=>Ee.done?Gt(Ee.value):Promise.resolve(Ee.value).then(ye,Ue);We((zt=zt.apply(Et,$t)).next())});function He(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}function ie(){}let Tt=!1;const At={"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 Yt(Et=[]){let $t=Et;if(Array.isArray(Et)){for(let zt=0;zt<Et.length;zt++){let Gt=At[Et[zt]];if(Gt)return Gt}return $t[0]}return At[$t]||$t}let oe=null;const _t=()=>Oe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Et){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Et)}});var It=Et=>{var $t=Et,{width:zt="100%",height:Gt="100%",value:le,language:ye="javascript",style:Ue={},options:We={},overrideServices:Ee={},theme:Ze="vs-dark",onEditBlur:on,isCopy:nn=!1,onSave:qe,autoHeight:En=!1,forbidCopy:fn=!1,onChange:Pn=ie,editorDidMount:Mn=ie,onFocus:ii=ie,onBreakPoint:Tn=ie,breakPointValue:oi=[],filename:vi="educoder.txt",errorLine:yi,errorContent:Zi="",highlightLine:Hi,openBreakPoint:Yi=!1,placeholder:zi="",showMiniMap:Pi=!0}=$t,Gi=Le($t,["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 Kt=(0,ee.useRef)(),zn=(0,ee.useRef)({}),Rn=(0,ee.useRef)(),bn=(0,ee.useRef)(),_n=(0,ee.useRef)([]),Yn=(0,ee.useRef)(!1),Xn=(0,ee.useRef)(),Ri=(0,ee.useRef)(),ki=(0,ee.useRef)(!1),[Xe,Je]=(0,ee.useState)(!1);function Ke(){let xn;return Kt.current&&(xn=new wt.Z(Sn=>{for(let Wn of Sn)(Wn.target.offsetHeight>0||Wn.target.offsetWidth>0)&&zn.current.instance.layout()}),xn.observe(Kt.current)),xn}function Hn(){Ge.ZP.warning({content:decodeURIComponent(Nt),key:"monaco-editor-tip"})}const Jn=()=>{let xn=zn.current.instance;if(le!=null&&xn&&Xe){const Sn=xn.getModel();Sn&&le!==Sn.getValue()&&(Tt=!0,Sn.setValue(le),xn.layout(),Tt=!1)}};(0,ee.useEffect)(()=>{const xn=he.Z.subscribe("formatDocument",Sn=>{var Wn;let Fn=zn.current.instance;(Wn=Fn==null?void 0:Fn.getAction)==null||Wn.call(Fn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Sn=>{Pn(Sn)},xn},[]),(0,ee.useEffect)(()=>{var xn;let Sn=zn.current.instance;bn.current&&clearTimeout(bn.current),bn.current=setTimeout(()=>{Jn()},500),le&&(le!=null&&le.length)&&((xn=Sn==null?void 0:Sn.updateOptions)==null||xn.call(Sn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(le.split(/\r\n|\r|\n/g).length))+3,5)}))},[le,Xe,zn.current]),(0,ee.useEffect)(()=>{if(yi&&zn.current&&zn.current.instance){let Sn=zn.current.instance;Sn.changeViewZones(function(Wn){var Fn=document.createElement("div");Fn.style.padding="10px 20px",Fn.style.width="calc(100% - 20px)",Fn.className="my-error-line-wrp",Fn.innerHTML=Zi,Wn.addZone({afterLineNumber:yi||11,heightInLines:3,domNode:Fn})});var xn={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}};Sn.addOverlayWidget(xn),Sn.revealPositionInCenter({lineNumber:20,column:1})}},[yi,zn.current,Xe]);const qn=(xn="",Sn)=>{if(!xn||xn.trim()==="")return!0;const Fn=zn.current.instance.getModel().getLineTokens(Sn);let jn=!1;for(let In=0;In<2;In++)Fn.getStandardTokenType(In)===1&&(jn=!0);return jn};(0,ee.useEffect)(()=>{var xn;const Sn=(xn=zn.current)==null?void 0:xn.instance;if(Sn&&Xe&&fn){const Wn=Sn.onDidBlurEditorWidget(()=>{ki.current=!1}),Fn=Sn.onDidFocusEditorText(()=>{ki.current=!0});return()=>{Wn.dispose(),Fn.dispose()}}},[zn.current,Xe,fn]),(0,ee.useEffect)(()=>{var xn;if((xn=zn.current)!=null&&xn.instance&&Xe&&Yi){let Sn=zn.current.instance,Wn=Sn.getModel();if(!Wn)return;(()=>{var Dn;let ei=[],Qn=[];const ri=Wn.getAllDecorations();for(let Fi of ri)Fi.options.className==="highlighted-line"&&(ei.push((Dn=Fi==null?void 0:Fi.range)==null?void 0:Dn.startLineNumber),Qn.push(Fi==null?void 0:Fi.id));if(Hi===ei[0])return;Wn.deltaDecorations(Qn,[]);const Ci=Wn.getLineCount();Hi&&Hi<=Ci&&(Sn.deltaDecorations([],[{range:new oe.Range(Hi,1,Hi,Wn.getLineMaxColumn(Hi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Sn.revealLineInCenter(Hi))})();const jn=(Dn=!1)=>{var ei;let Qn=[],ri=[];const Ci=Wn.getAllDecorations();for(let Fi of Ci)Fi.options.linesDecorationsClassName==="breakpoints-select"&&(Qn.push((ei=Fi==null?void 0:Fi.range)==null?void 0:ei.startLineNumber),ri.push(Fi==null?void 0:Fi.id));if(Dn)return{lines:Qn,ids:ri};Tn(Qn)},In=Dn=>Oe(void 0,null,function*(){let ei={range:new oe.Range(Dn,1,Dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Wn.deltaDecorations([],[ei]),jn()}),Ai=Dn=>Oe(void 0,null,function*(){let ei=[];const Qn=Sn.getLineDecorations(Dn);for(let ri of Qn)ri.options.linesDecorationsClassName==="breakpoints-select"&&ei.push(ri.id);yield Wn.deltaDecorations(ei,[]),jn()}),ai=Dn=>{let ei=Sn.getLineDecorations(Dn);for(let Qn of ei)if(Qn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ze.isEqual)(oi,jn(!0).lines)){Wn.deltaDecorations(jn(!0).ids,[]);const Dn=oi.map(ei=>({range:new oe.Range(ei,1,ei,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Wn.deltaDecorations([],Dn)}const ci=Sn.onDidChangeModelContent(Dn=>{let ei=Sn.getPosition();if(ei){let Qn=ei.lineNumber;clearTimeout(Ri.current),Ri.current=setTimeout(()=>{qn(Wn.getLineContent(Qn),Qn)?Ai(Qn):ai(Qn)?(Ai(Qn),In(Qn)):jn()},100)}}),rn=Sn.onMouseDown(Dn=>{var ei,Qn,ri;if(Dn.target.detail&&((ri=(Qn=(ei=Dn.target)==null?void 0:ei.element)==null?void 0:Qn.className)!=null&&ri.includes("line-numbers"))){let Ci=Dn.target.position.lineNumber;if(qn(Wn.getLineContent(Ci),Ci))return;ai(Ci)?Ai(Ci):In(Ci)}}),Ii=Dn=>{let ei={range:new oe.Range(Dn,1,Dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};_n.current=Sn.deltaDecorations(_n.current,[ei])},Xi=()=>{_n.current=Sn.deltaDecorations(_n.current,[])},vr=Sn.onMouseMove(Dn=>{var ei,Qn,ri;if(Xi(),Dn.target.detail&&((ri=(Qn=(ei=Dn.target)==null?void 0:ei.element)==null?void 0:Qn.className)!=null&&ri.includes("line-numbers"))){let Ci=Dn.target.position.lineNumber;if(qn(Wn.getLineContent(Ci),Ci))return;Ii(Ci)}}),an=Sn.onMouseLeave(()=>{Xi()});return()=>{ci.dispose(),rn.dispose(),vr.dispose(),an.dispose()}}},[zn.current,Xe,oi,Hi,Yi,ye]),(0,ee.useEffect)(()=>{var xn;(xn=zn.current)!=null&&xn.instance&&Yi&&zn.current.instance.setPosition({lineNumber:0,column:0})},[Hi]);function pn(){let xn=zn.current.instance;if(xn){const Sn=xn.getSelection(),Wn=zn.current.pastePos||{},Fn=new oe.Range(Wn.startLineNumber||Sn.endLineNumber,Wn.startColumn||Sn.endColumn,Wn.endLineNumber||Sn.endLineNumber,Wn.endColumn||Sn.endColumn);setTimeout(()=>{xn.executeEdits("",[{range:Fn,text:""}])},300)}}function Bn(xn){(window.navigator.platform.match("Mac")?xn.metaKey:xn.ctrlKey)&&xn.keyCode==83&&(xn.preventDefault(),qe())}const hi=()=>{if(En&&zn.current.instance){const xn=zn.current.instance.getContentHeight();tn(xn<Gt?Gt:xn)}else tn(Gt)};function Ti(xn){var Sn=document.createEvent("MouseEvents");Sn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),xn.dispatchEvent(Sn)}const Di=xn=>{if(!ki.current)return;const{keyCode:Sn,ctrlKey:Wn,metaKey:Fn,target:jn,type:In}=xn;return(In==="paste"||(Sn===67||Sn===86)&&(Fn||Wn))&&jn.nodeName==="TEXTAREA"&&(Hn(),xn.preventDefault()),!1};function we(xn,Sn){var Wn=window.URL||window.webkitURL||window,Fn=new Blob([Sn]),jn=document.createElementNS("http://www.w3.org/1999/xhtml","a");jn.href=Wn.createObjectURL(Fn),jn.download=xn,Ti(jn)}(0,ee.useEffect)(()=>{hi()},[hi]),(0,ee.useEffect)(()=>{Kt.current&&!Xe&&Promise.all([ce.e(8909),ce.e(6656)]).then(ce.bind(ce,71448)).then(xn=>{try{oe=xn,zn.current.instance=oe.editor.create(Kt.current,{value:le,language:Yt(ye),theme:Ze,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Pi||!1}},Ee);const Sn=zn.current.instance;let jn=[...Ne.BH._menuItems].find(ci=>ci[0]._debugName=="EditorContext")[1],In=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ai=(ci,rn)=>{var Ii,Xi;let vr=ci._first;do rn.includes((Xi=(Ii=vr.element)==null?void 0:Ii.command)==null?void 0:Xi.id)&&ci._remove(vr);while(vr=vr.next)};if(Mn(Sn,oe),setTimeout(()=>{hi(),zn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{we(vi||"educoder.txt",Sn.getValue())}})},500),zn.current.subscription=Sn.onDidChangeModelContent(ci=>{Yn.current?clearTimeout(Xn.current):(hi(),Pn(Sn.getValue(),ci)),Xn.current=setTimeout(()=>{Yn.current=!1},500)}),window.Monaco||Ut(oe,Yt(ye)),fn&&(Ai(jn,In),Kt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Di),window.removeEventListener("paste",Di),window.addEventListener("keydown",Di),window.addEventListener("paste",Di)),window.Monaco=oe,on&&Sn.onDidBlurEditorWidget(()=>{on(Sn.getValue())}),ii&&Sn.onDidFocusEditorText(()=>{fn&&_t(),ii(Sn.getValue())}),fn){_t();try{Sn.onDidPaste(ci=>{const rn=Sn.getSelection(),Ii=zn.current.pastePos||{},Xi=new oe.Range(Ii.startLineNumber||rn.endLineNumber,Ii.startColumn||rn.endColumn,Ii.endLineNumber||rn.endLineNumber,Ii.endColumn||rn.endColumn);Sn.executeEdits("",[{range:ci.range,text:""}])})}catch(ci){}}let ai=Ke();return zi&&typeof zi=="string"&&new be(zi,Sn,oe),Je(!0),()=>{const ci=zn.current.instance;ci.dispose();const rn=ci.getModel();rn&&rn.dispose(),zn.current.subscription&&zn.current.subscription.dispose(),ai.unobserve(Kt.current)}}catch(Sn){}})},[]),(0,ee.useEffect)(()=>{if(zn.current.instance&&Xe)return document.addEventListener("keydown",Bn,!1),()=>{document.removeEventListener("keydown",Bn)}},[qe,Xe]),(0,ee.useEffect)(()=>{let xn=zn.current.instance;if(xn&&Xe){let Sn=Yt(ye);oe.editor.setModelLanguage(xn.getModel(),Sn)}},[ye,Xe]),(0,ee.useEffect)(()=>{zn.current.instance&&Xe&&oe.editor.setTheme(Ze)},[Ze,Xe]),(0,ee.useEffect)(()=>{let xn=zn.current.instance;Rn.current=We,xn&&Xe&&(xn.updateOptions(Ae({},We)),setTimeout(()=>{xn.getModel().updateOptions(Ae({},We))},200))},[JSON.stringify(We),Xe]),(0,ee.useEffect)(()=>{let xn=zn.current.instance;xn&&Xe&&xn.layout()},[zt,Gt,Xe]);const[je,An]=(0,ee.useState)(He(zt)),[Nn,tn]=(0,ee.useState)(He(Gt)),yn=_e(Ae({},Ue),{width:je,height:Nn,position:"relative"});return ee.createElement("div",{className:"my-monaco-editor",ref:Kt,style:yn},nn&&ee.createElement(Jt.CopyToClipboard,{text:le,onCopy:()=>Ge.ZP.success("\u590D\u5236\u6210\u529F")},ee.createElement(Pe.Z,{title:"\u590D\u5236\u4EE3\u7801"},ee.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ee.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Pt({width:Et="100%",height:$t="100%",original:zt,modified:Gt,language:le,options:ye={}}){const Ue=(0,ee.useRef)(),[We,Ee]=(0,ee.useState)(null);function Ze(En){let fn;return Ue.current&&(fn=new wt.Z(Pn=>{for(let Mn of Pn)(Mn.target.offsetHeight>0||Mn.target.offsetWidth>0)&&En.layout()}),fn.observe(Ue.current)),fn}(0,ee.useEffect)(()=>(Ue.current&&Promise.all([ce.e(8909),ce.e(9404)]).then(ce.bind(ce,2550)).then(En=>{oe=En;const fn=oe.editor.createDiffEditor(Ue.current,_e(Ae({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},ye),{wordWrap:!0}));Ee(fn);let Pn=Ze(fn);return()=>{fn.dispose();const Mn=fn.getModel();Mn&&Mn.dispose(),Pn.unobserve(Ue.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ee.useEffect)(()=>{We&&We.setModel({original:oe.editor.createModel(zt,le),modified:oe.editor.createModel(Gt,le)})},[zt,Gt,le,We]);const on=He(Et),nn=He($t),qe={width:on,height:nn};return ee.createElement("div",{className:"my-diff-editor",ref:Ue,style:qe})}},10661:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return kt}});var ee={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"},wt=ce(29787),Qt=ce(25399),Zt=ce(92310),Ot=ce.n(Zt),jt=ce(51257),Ct=ce(28426),Mt=ce(48790),Bt=ce(59301),kt=({className:xt,dataSource:Dt=[],col:yt=4,right:et,bottom:tt=23,precision:lt=0,wrapWidth:ot=1200,trackEventItems:ut,loading:ct,onRemove:ft=()=>{},isCurrent:gt=!0,showAlias:Lt=!1})=>{const Rt=Math.floor((ot-(yt-1)*et)/yt),Ut=[{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 Bt.createElement(wt.Z,{spinning:ct},Bt.createElement("div",{className:Ot()(ee.list,xt)},!!(Dt!=null&&Dt.length)&&(Dt==null?void 0:Dt.map((Nt,qt)=>{var te;const{name:Vt,id:de,identifier:ge,featured:be,school_name:Ne,image_url:Ge,excellent:Pe,is_plan:ze}=Nt;return Bt.createElement("div",{key:de,className:ee.wrap,style:{width:Rt,marginRight:(1+qt)%yt===0?0:et+lt,marginBottom:tt}},Bt.createElement("a",{className:ee.li,onClick:he=>{he.preventDefault(),he.stopPropagation(),ut&&(0,jt.L9)([ut]),(0,jt.xg)(`/paths/${ge}`)}},Bt.createElement("div",{className:ee.img},Bt.createElement("img",{className:ee.cover,src:`${Ge}`}),gt&&(0,Mt.bg)()&&(Nt==null?void 0:Nt.studying)&&Bt.createElement("div",{className:`${ee.movebq} user-path-items`,onClick:he=>{he.stopPropagation(),ft(Nt)}},Bt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Bt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(te=Nt==null?void 0:Nt.subject_tags)==null?void 0:te.map((he,Jt)=>{var re,se;if(Jt===0){const ue=(re=Ut.find(Re=>Re.name==he))==null?void 0:re.swimg;return Bt.createElement("img",{className:ee.sign,src:ue,style:{left:"-4px"}})}const pe=(se=Ut.find(ue=>ue.name==he))==null?void 0:se.ptimg;return Bt.createElement("img",{className:ee.sign,src:pe,style:{left:`${48+52*(Jt-1)+2*Jt}px`}})}),Bt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Nt==null?void 0:Nt.excellent)&&Bt.createElement("div",{className:ee.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Bt.createElement("div",{className:ee.name},Bt.createElement(Qt.Z,{title:Lt&&(Nt!=null&&Nt.excellent_alias_name)?Bt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Vt}`,Bt.createElement("br",null),Bt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Nt==null?void 0:Nt.excellent_alias_name}`)):Vt},Bt.createElement("span",{className:ee.e},Lt&&(Nt==null?void 0:Nt.excellent_alias_name)||Vt))),Bt.createElement(Qt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ne}`},Bt.createElement("div",{className:ee.unit},Bt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ne)),Bt.createElement("div",{className:ee.tags},Bt.createElement("div",null,Bt.createElement(Qt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Bt.createElement("span",null,Bt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Bt.createElement("span",null,Nt.stages_count))),Bt.createElement(Qt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Bt.createElement("span",null,Bt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Bt.createElement("span",null,Nt.members_count)))))))})),!Dt.length&&Bt.createElement(Ct.Z,null)))}},9148:function(Cn,Gn,ce){"use strict";ce.d(Gn,{jL:function(){return Ot},w9:function(){return re},QD:function(){return on},cQ:function(){return Ge.Z},op:function(){return le},O5:function(){return Rn},_b:function(){return Mn},t7:function(){return ot},Gi:function(){return Qe},YG:function(){return Re},qp:function(){return kt},vr:function(){return En},qE:function(){return We},Je:function(){return ft},wb:function(){return Ne},cq:function(){return ie},tp:function(){return yt}});var ee=ce(59301),wt={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"},Qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQ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j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ot=({dataSource:bn=[],img:_n,imgWidth:Yn=346,title:Xn,sunTitle:Ri,bannerExtraContent:ki})=>ee.createElement("div",{className:wt.banner},ee.createElement("div",{className:wt.content},ee.createElement("aside",null,ee.createElement("p",null,ee.createElement("b",null,Xn),ee.createElement("span",null,Ri)),bn.length>0&&ee.createElement("div",{className:wt.btns},bn.map((Xe,Je)=>ee.createElement("div",{key:Je,onClick:Xe.click},Xe.name,Xe.sign?ee.createElement("img",{src:Qt,width:39}):null))),ki),_n&&ee.createElement("img",{style:{marginTop:33,marginRight:38},src:_n,width:Yn}))),jt={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"},Ct=ce(92310),Mt=ce.n(Ct),Bt=ce(89392),kt=({dataSource:bn=[],value:_n,onChange:Yn,onTitleChange:Xn,className:Ri,title:ki,titleWidth:Xe=41,style:Je={},fontColor:Ke="#6A7283",showCount:Hn})=>{const[Jn,qn]=(0,ee.useState)(0),[pn,Bn]=(0,ee.useState)(!1),hi=(0,ee.useRef)(null),Ti=(0,ee.useRef)(null);return(0,ee.useEffect)(()=>{var Di;bn.length!==0&&(((Di=hi==null?void 0:hi.current)==null?void 0:Di.clientHeight)>97?qn(1):qn(0)),bn.length===0&&qn(0),Bn(!1)},[bn]),ee.createElement("div",{className:Mt()(jt.row,Ri),style:Je},ee.createElement("div",{onClick:(0,Bt.throttle)(()=>Xn==null?void 0:Xn(),2e3),style:{width:Xe,marginTop:pn?12:4},className:`${jt.title} ${Xn?"current":""}`},ki),ee.createElement("div",{className:pn?`${jt.tagsWrap} ${jt.tagsBorderWrap}`:jt.tagsWrap},ee.createElement("div",{className:jt.bar,ref:Ti,style:Jn>0?{height:Jn===1?97:"auto",overflow:Jn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ee.createElement("div",{className:jt.tag,ref:hi},bn==null?void 0:bn.map(Di=>ee.createElement("span",{onClick:()=>Yn(Di.id),key:Di.id,style:{color:Ke},className:_n===Di.id?jt.active:""},ee.createElement("span",{title:Di.name,className:jt.name},Di.name),!!Hn&&ee.createElement("span",{className:jt.num},Di.count))))),!!Jn&&ee.createElement(ee.Fragment,null,Jn===1?ee.createElement("div",{onClick:()=>{var Di;qn(2),((Di=hi==null?void 0:hi.current)==null?void 0:Di.clientHeight)>245?Bn(!0):Bn(!1)},className:jt.action},"\u5C55\u5F00",ee.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ee.createElement("div",{onClick:()=>{Ti.current.scrollTop=0,qn(1),Bn(!1)},className:jt.action},"\u6536\u8D77",ee.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},xt={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"},yt=({dataSource:bn=[],value:_n,onChange:Yn,className:Xn,style:Ri={}})=>ee.createElement("div",{style:Ri,className:Mt()(xt.tabs,Xn)},bn.map(ki=>ee.createElement("span",{onClick:()=>Yn(ki.id),className:_n===ki.id?xt.active:"",key:ki.id},ki.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},tt=ce(37568),ot=({dataSource:bn=[],value:_n="",onChange:Yn,onInputChange:Xn=()=>{},className:Ri,style:ki={},placeholder:Xe,allowClear:Je=!1})=>{var Ke;const[Hn,Jn]=(0,ee.useState)(""),[qn,pn]=(0,ee.useState)("");(0,ee.useEffect)(()=>{var Ti;let Di=_n;(Ti=JSON.stringify(_n))!=null&&Ti.includes("{")&&(Jn(_n.id),Di=_n.value||"");try{pn(decodeURIComponent(Di||""))}catch(we){pn(decodeURIComponent(Di||""))}},[_n]);const Bn=()=>{Yn(encodeURIComponent(qn),Hn||null)},hi=Ti=>{Ti!==Hn&&(Jn(Ti),Yn(encodeURIComponent(qn),Ti))};return ee.createElement("div",{className:Mt()(et.input,Ri),style:ki},!!bn.length&&ee.createElement("div",{className:et.dropdown},ee.createElement("div",{className:et.text},(Ke=bn.find(Ti=>Ti.id===Hn))==null?void 0:Ke.name,ee.createElement("i",{className:"iconfont icon-zhankai4"}),ee.createElement("b",{className:et.b1}),ee.createElement("b",{className:et.b2})),ee.createElement("div",{className:et.menu},bn.map((Ti,Di)=>ee.createElement("div",{key:Di,onClick:()=>hi(Ti.id)},Ti.name)))),ee.createElement(tt.default,{onPressEnter:Bn,value:qn,onChange:Ti=>{pn(Ti.target.value),Xn(encodeURIComponent(Ti.target.value),Hn||null)},bordered:!1,placeholder:Xe}),ee.createElement("i",{onClick:Bn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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"},ft=({value:bn,onChange:_n,className:Yn,total:Xn,pageSize:Ri,style:ki={}})=>{const Xe=bn<2,Je=bn>=Math.ceil(Xn/Ri);return Xn<=Ri?ee.createElement(ee.Fragment,null):ee.createElement("div",{className:Mt()(ut.quickPager,Yn),style:ki},ee.createElement("div",{onClick:()=>{Xe||_n(bn-1,"prev")},className:Xe?ut.disabled:""},"\u4E0A\u4E00\u9875"),ee.createElement("div",{onClick:()=>{Je||_n(bn+1,"next")},className:Je?ut.disabled:""},"\u4E0B\u4E00\u9875"))},gt={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"},Lt=ce(29787),Rt=ce(25399),Ut=ce(58018),Nt=ce(346),qt=ce(51257),te=ce(96908),Vt=ce(57177),de=ce(81378),ge=ce(28426),Ne=({className:bn,dataSource:_n=[],col:Yn=4,right:Xn,bottom:Ri=23,precision:ki=0,wrapWidth:Xe=1200,trackEventItems:Je,loading:Ke})=>{const Hn=Math.floor((Xe-(Yn-1)*Xn)/Yn);return ee.createElement(Lt.Z,{spinning:Ke},ee.createElement("div",{className:Mt()(gt.list,bn)},!!_n.length&&_n.map((Jn,qn)=>{const{name:pn,id:Bn,identifier:hi,power:Ti,cover_image_id:Di,pic:we}=Jn;return ee.createElement("div",{className:gt.wrap,key:Bn,style:{width:Hn,marginRight:(1+qn)%Yn===0?0:Xn+ki,marginBottom:Ri}},ee.createElement("a",{target:"_blank",href:`/shixuns/${hi}/challenges`,className:gt.li,onClick:je=>{je.preventDefault(),Je&&(0,qt.L9)([Je]),Ti&&(0,qt.xg)(`/shixuns/${hi}/challenges`)}},ee.createElement("div",{className:gt.img},ee.createElement("img",{className:gt.cover,src:`${we}`}),Jn.is_jupyter&&ee.createElement("img",{className:gt.sign,src:te}),Jn.is_jupyter_lab&&ee.createElement("img",{className:gt.sign,src:Vt}),Jn.is_unity_3d&&ee.createElement("img",{className:gt.sign,src:de})),ee.createElement("div",{className:gt.name},ee.createElement(Rt.Z,{title:pn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ee.createElement("span",{className:gt.e},pn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ee.createElement("div",{className:gt.tags},ee.createElement(Rt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ee.createElement("span",null,Jn.challenges_count))),!!Jn.myshixuns_count&&ee.createElement(Rt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ee.createElement("span",null,Jn.myshixuns_count))),ee.createElement(Rt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ee.createElement("span",null,ee.createElement("span",null,Jn.level))),ee.createElement("div",{className:gt.rate},ee.createElement(Ut.Z,{allowHalf:!0,disabled:!0,defaultValue:Jn.score_info}),ee.createElement("span",null,"\xA0",Jn.score_info?`${Jn.score_info}\u5206`:"5\u5206")))),!Ti&&ee.createElement("div",{className:gt.lockWrap},ee.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!_n.length&&ee.createElement(ge.Z,null)))},Ge=ce(10661),Pe={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"},ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN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Zl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",he=ce(59301),re=({className:bn,dataSource:_n=[],col:Yn=4,right:Xn,bottom:Ri=23,precision:ki=0,wrapWidth:Xe=1200,trackEventItems:Je,loading:Ke,handleVery:Hn=()=>!0})=>{const Jn=Math.floor((Xe-(Yn-1)*Xn)/Yn);return he.createElement(Lt.Z,{spinning:Ke},he.createElement("div",{className:Mt()(Pe.list,bn)},!!_n.length&&_n.map((qn,pn)=>{const{subject_identifier:Bn,id:hi,identifier:Ti,power:Di}=qn,we=qn.is_public!=0&&qn.is_public;return he.createElement("div",{className:Pe.wrap,key:hi,style:{width:Jn,marginRight:(1+pn)%Yn===0?0:Xn+ki,marginBottom:Ri}},he.createElement("a",{className:Pe.li,onClick:je=>{je.preventDefault(),Hn(qn==null?void 0:qn.first_category_url)&&(Je&&(0,qt.L9)([Je]),(0,qt.xg)(qn.first_category_url))}},he.createElement("div",{className:Pe.top},he.createElement(Rt.Z,{title:qn.name},he.createElement("div",{className:Pe.name},qn.name)),he.createElement("img",{className:Pe.img,src:Nt.Z.IMG_SERVER+"/images/"+qn.avatar_url}),he.createElement("div",{className:Pe.text,title:qn.creator},qn.creator),Bn&&he.createElement("div",{className:Pe.btns},he.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),he.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),we&&he.createElement("div",{className:Pe.sign},"\u516C\u5F00")),he.createElement("div",{className:Pe.bottom},qn.visits>0&&he.createElement(Rt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-liulanyan"}),he.createElement("span",null,qn.visits))),qn.course_members_count>0&&he.createElement(Rt.Z,{title:"\u6210\u5458",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan"}),qn.course_members_count)),qn.tasks_count>0&&he.createElement(Rt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zuoye"}),qn.tasks_count)),qn.is_end?he.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):he.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!qn.is_accessible&&he.createElement("div",{className:Pe.lockWrap},he.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),he.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!_n.length&&he.createElement(ge.Z,null)))},se={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"},pe=ce(25690),Re=({dataSource:bn=[],value:_n,onChange:Yn,className:Xn,style:Ri={},tabBarExtraContent:ki})=>ee.createElement("div",{className:Mt()(se.tabs,Xn),style:Ri},ee.createElement("div",{className:se.tabsWrap},bn.map((Xe,Je)=>!(Xe!=null&&Xe.hide)&&ee.createElement("aside",{className:se.tab,onClick:()=>{Yn(Xe.id),Xe.link&&pe.history.push(Xe.link)},key:Je},ee.createElement("div",{className:_n===Xe.id?se.active:""},Xe.name),(Xe==null?void 0:Xe.resetCount)==null&&(Xe==null?void 0:Xe.total)!==void 0&&ee.createElement("span",null,"\uFF08",Xe==null?void 0:Xe.total,"\uFF09"),(Xe==null?void 0:Xe.resetCount)!==void 0&&(Xe==null?void 0:Xe.total)!==void 0&&ee.createElement(Rt.Z,{title:(Xe==null?void 0:Xe.tip)!=null?Xe==null?void 0:Xe.tip:""},ee.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ee.createElement("span",{style:{color:"#000"}},Xe==null?void 0:Xe.resetCount),"/",ee.createElement("span",null,Xe==null?void 0:Xe.total),"\uFF09"))))),ee.createElement("div",{className:se.tabBar},ki)),Qe=({className:bn,style:_n={},children:Yn})=>ee.createElement("div",{className:Mt()(bn),style:_n},Yn),Ae={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"},_e=ce(75727),Le=ce(93041);const Oe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ie=({sortValue:bn,dropValue:_n,className:Yn,onSort:Xn,onDrop:Ri,dataSource:ki=Oe})=>{var Xe;return ee.createElement("div",{className:Mt()(Ae.orderWrap,Yn)},ee.createElement(_e.Z,{dropdownRender:()=>ee.createElement(Le.default,null,ki.map((Je,Ke)=>ee.createElement(Le.default.Item,{key:Ke,onClick:()=>Ri(Je.id)},Je.name)))},ee.createElement("span",{className:Ae.orderTextWrap},(Xe=ki.find(Je=>_n===Je.id))==null?void 0:Xe.name)),ee.createElement("span",{className:Ae.orderIconWrap},ee.createElement("span",{className:Ae.orderAsc},ee.createElement("i",{className:bn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ae.cursorPointer} ${Ae.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ae.cursorPointer}`,onClick:()=>Xn(bn==="asc"?"desc":"asc")})),ee.createElement("span",{className:Ae.orderDesc},ee.createElement("i",{className:bn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ae.cursorPointer} ${Ae.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ae.cursorPointer}`,onClick:()=>Xn(bn==="asc"?"desc":"asc")}))))},Tt={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"},At=ce(99571),Yt=Object.defineProperty,oe=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Pt=(bn,_n,Yn)=>_n in bn?Yt(bn,_n,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):bn[_n]=Yn,Et=(bn,_n)=>{for(var Yn in _n||(_n={}))_t.call(_n,Yn)&&Pt(bn,Yn,_n[Yn]);if(oe)for(var Yn of oe(_n))It.call(_n,Yn)&&Pt(bn,Yn,_n[Yn]);return bn},$t=(bn,_n)=>{var Yn={};for(var Xn in bn)_t.call(bn,Xn)&&_n.indexOf(Xn)<0&&(Yn[Xn]=bn[Xn]);if(bn!=null&&oe)for(var Xn of oe(bn))_n.indexOf(Xn)<0&&It.call(bn,Xn)&&(Yn[Xn]=bn[Xn]);return Yn},zt=(bn,_n,Yn)=>new Promise((Xn,Ri)=>{var ki=Ke=>{try{Je(Yn.next(Ke))}catch(Hn){Ri(Hn)}},Xe=Ke=>{try{Je(Yn.throw(Ke))}catch(Hn){Ri(Hn)}},Je=Ke=>Ke.done?Xn(Ke.value):Promise.resolve(Ke.value).then(ki,Xe);Je((Yn=Yn.apply(bn,_n)).next())}),le=bn=>{var _n=bn,{className:Yn,style:Xn,children:Ri,loading:ki=!1,openLoading:Xe,onClick:Je=()=>{},size:Ke="middle",shape:Hn="round"}=_n,Jn=$t(_n,["className","style","children","loading","openLoading","onClick","size","shape"]);const[qn,pn]=(0,ee.useState)(!1);return ee.createElement(At.ZP,Et({onClick:(0,Bt.throttle)(Bn=>zt(void 0,null,function*(){Xe&&pn(!0);try{yield Je(Bn)}catch(hi){console.log("error",hi)}Xe&&pn(!1)}),2e3,{leading:!0,trailing:!1}),className:Mt()(Tt.btn,Tt[`${Ke}-${Hn}`],Yn),style:Xn,size:Ke,shape:Hn,loading:qn||ki},Jn),Ri)},ye={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"},We=({className:bn,style:_n,children:Yn=null,onClick:Xn,title:Ri})=>ee.createElement("div",{className:Mt()(ye.head,bn),style:_n},ee.createElement("span",{className:"primary-hover",onClick:Xn},ee.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ee.createElement("b",{title:Ri},Ri),ee.createElement("div",{className:ye.node},Yn)),Ee={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"},on=({confirmShow:bn=!0,confirmTitle:_n,confirmClick:Yn,cancelShow:Xn=!0,cancelTitle:Ri,cancelClick:ki,className:Xe,style:Je,confirmLoading:Ke=!1})=>ee.createElement("div",{className:Mt()(Ee.btns,Xe),style:Je},bn&&ee.createElement(At.ZP,{loading:Ke,onClick:Yn,type:"primary",className:Ee.confirm},_n),Xn&&ee.createElement(At.ZP,{onClick:ki,className:Ee.cancel},Ri)),nn={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"},En=({className:bn,style:_n={},LeftContent:Yn,children:Xn,RightContent:Ri})=>ee.createElement("div",{className:Mt()(nn.fixedBottom,bn),style:_n},ee.createElement("div",{className:nn.wrap},ee.createElement("div",{className:nn.left},Yn),ee.createElement("div",{className:nn.center},Xn),ee.createElement("div",{className:nn.right},Ri))),fn={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"},Mn=({className:bn,style:_n={},dataSource:Yn=[]})=>ee.createElement("div",{className:Mt()(fn.crumbs,bn),style:_n},Yn.map((Xn,Ri)=>Ri<Yn.length-1?ee.createElement(ee.Fragment,{key:Ri},Xn.path||Xn.onClick?ee.createElement("span",{className:fn.hover,onClick:Xn!=null&&Xn.onClick?Xn.onClick:()=>pe.history.push(Xn.path)},Xn.name):ee.createElement("span",null,Xn.name),ee.createElement("span",null,"\xA0",">","\xA0")):ee.createElement("span",{key:Ri,style:{color:"#5F6368"}},Xn.name))),ii=ce(11938),Tn=Object.defineProperty,oi=Object.defineProperties,vi=Object.getOwnPropertyDescriptors,yi=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,Yi=(bn,_n,Yn)=>_n in bn?Tn(bn,_n,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):bn[_n]=Yn,zi=(bn,_n)=>{for(var Yn in _n||(_n={}))Zi.call(_n,Yn)&&Yi(bn,Yn,_n[Yn]);if(yi)for(var Yn of yi(_n))Hi.call(_n,Yn)&&Yi(bn,Yn,_n[Yn]);return bn},Pi=(bn,_n)=>oi(bn,vi(_n)),Gi=(bn,_n)=>{var Yn={};for(var Xn in bn)Zi.call(bn,Xn)&&_n.indexOf(Xn)<0&&(Yn[Xn]=bn[Xn]);if(bn!=null&&yi)for(var Xn of yi(bn))_n.indexOf(Xn)<0&&Hi.call(bn,Xn)&&(Yn[Xn]=bn[Xn]);return Yn};const{Countdown:Kt}=ii.default;var Rn=bn=>{var _n=bn,{onChange:Yn}=_n,Xn=Gi(_n,["onChange"]);const[Ri,ki]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{typeof Ri=="number"&&Ri>=0&&Yn(Ri)},[Ri]);const Xe=Je=>{const Ke=Math.floor(Je/1e3);ki(Ke)};return ee.createElement(Kt,Pi(zi({},Xn),{onChange:Xe}))}},37808:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return wt}});var ee=ce(59301);function wt(Qt,Zt){const Ot=(0,ee.useRef)();(0,ee.useEffect)(()=>{Ot.current=Qt}),(0,ee.useEffect)(()=>{function jt(){Ot.current()}if(Zt!==null){let Ct=setInterval(jt,Zt);return()=>clearInterval(Ct)}},[Zt])}},51917:function(Cn,Gn,ce){"use strict";ce.d(Gn,{$J:function(){return Qt},JZ:function(){return Ot},bN:function(){return Ct},jP:function(){return jt},rO:function(){return Zt}});var ee=ce(38986),wt=(Mt,Bt,St)=>new Promise((kt,xt)=>{var Dt=tt=>{try{et(St.next(tt))}catch(lt){xt(lt)}},yt=tt=>{try{et(St.throw(tt))}catch(lt){xt(lt)}},et=tt=>tt.done?kt(tt.value):Promise.resolve(tt.value).then(Dt,yt);et((St=St.apply(Mt,Bt)).next())});function Qt(Mt){return(0,ee.U2)(`libraries/${Mt}.json`)}function Zt(){return(0,ee.U2)("library_tags.json")}function Ot(Mt){return wt(this,null,function*(){return(yield(0,ee.IV)(`attachments/${Mt}.json`)).status===0})}function jt(Mt){return(0,ee.v_)("libraries.json",Mt)}function Ct(Mt,Bt){return(0,ee.gz)(`libraries/${Mt}.json`,Bt)}},23019:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Ut}});var ee=ce(59301),wt=ce(25690),Qt=ce(37568),Zt=ce(28284),Ot=ce(6767),jt=ce(62957),Ct=ce(60242),Mt=ce(62673),Bt=ce(96599),St={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},kt=ce(67776),xt=ce(30502),Dt=ce(48790),yt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,ot=(Nt,qt,te)=>qt in Nt?yt(Nt,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Nt[qt]=te,ut=(Nt,qt)=>{for(var te in qt||(qt={}))tt.call(qt,te)&&ot(Nt,te,qt[te]);if(et)for(var te of et(qt))lt.call(qt,te)&&ot(Nt,te,qt[te]);return Nt},ct=(Nt,qt,te)=>new Promise((Vt,de)=>{var ge=Ge=>{try{Ne(te.next(Ge))}catch(Pe){de(Pe)}},be=Ge=>{try{Ne(te.throw(Ge))}catch(Pe){de(Pe)}},Ne=Ge=>Ge.done?Vt(Ge.value):Promise.resolve(Ge.value).then(ge,be);Ne((te=te.apply(Nt,qt)).next())});const{TextArea:ft}=Qt.default,gt=1024,Lt=(Nt,qt)=>{var te;const{uploadInfo:Vt={}}=qt.payload||{};switch(qt.type){case"addVideo":return{videoList:[...Nt.videoList,{name:Vt.file.name,size:Vt.file.size,type:Vt.file.type,fileHash:Vt.fileHash,state:Vt.state,videoId:Vt.videoId,loaded:Vt.loaded||0,title:""}]};case"removeVideo":return{videoList:Nt.videoList.filter(de=>de.name!==qt.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Nt.videoList.map(de=>de.name===qt.payload.uploadInfo.file.name?ut(ut({},de),{loaded:qt.payload.progressPercent,videoId:Vt.videoId,fileHash:Vt.fileHash}):de)};case"updateTitle":return{videoList:(te=Nt.videoList)==null?void 0:te.map(de=>de.name===qt.payload.item.name?ut(ut({},de),{title:qt.payload.title}):de)};default:return{videoList:[]}}},Rt=({user:Nt,globalSetting:qt,loading:te,dispatch:Vt,visible:de,editData:ge,onCancel:be=()=>{},onOk:Ne=()=>{},queryParams:Ge={}})=>{var Pe;const ze=(0,wt.useParams)(),[he]=Zt.default.useForm(),[Jt,re]=(0,ee.useReducer)(Lt,{videoList:[]}),[se,pe]=(0,ee.useState)(!1),ue=(0,ee.useRef)(),[Re,Fe]=(0,ee.useState)(),[Qe,Ae]=(0,ee.useState)(!1),[_e,Le]=(0,ee.useState)(!1),Oe=(0,Dt.Ny)()?3:1;(0,ee.useEffect)(()=>{var Gt,le,ye;de&&ge&&(Ae(ge.is_link),Fe(ge.link),!ge.is_link&&re({type:"addVideo",payload:{uploadInfo:{file:{name:ge.filename||""},videoId:ge.video_id,loaded:100}}}),Et(((Gt=ge==null?void 0:ge.tags)==null?void 0:Gt.map(Ue=>Ue==null?void 0:Ue.name))||[]),he.setFieldsValue({name:ge.name,description:ge.description,attachment_id:(le=ge==null?void 0:ge.video)==null?void 0:le.attachment_id,allow_skip:(ye=ge==null?void 0:ge.video_item)==null?void 0:ye.allow_skip}))},[ge,de]);const He=()=>{const Gt=document.getElementById("fileUpload");Gt.value=""},ie=Gt=>{var le;Ae(!1);const ye=Gt.target.files[0];if(!ye){He();return}const Ue=ye.name.toLowerCase();if(Ue&&Ue.indexOf(".avi")==-1&&Ue.indexOf(".flv")==-1&&Ue.indexOf(".f4v")==-1&&Ue.indexOf(".m4v")==-1&&Ue.indexOf(".mov")==-1&&Ue.indexOf(".mp4")==-1&&Ue.indexOf(".rmvb")==-1&&Ue.indexOf(".swf")==-1&&Ue.indexOf(".webm")==-1&&Ue.indexOf(".wmv")==-1){Ot.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),He();return}if(ye.size>gt*Oe*1024*1024){Ot.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Oe}G`),He();return}if((le=Jt.videoList)!=null&&le.find(We=>We.name===ye.name)){Ot.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),He();return}At(ye)},Tt=(Gt,le)=>{jt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ee.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",le?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{He(),re({type:"removeVideo",payload:{name:Gt}})}})},At=Gt=>{var le,ye='{"Vod":{}}';if(pe(!0),ue.current){ue.current.addFile(Gt,null,null,null,ye);return}(0,kt.o)((le=Nt.userInfo)==null?void 0:le.login,"",{create:!ue,addFileSuccess:Ue=>{re({type:"addVideo",payload:{uploadInfo:Ue}})},onUploadProgress:(Ue,We,Ee)=>{const Ze=Math.ceil(Ee*100);re({type:"updateProgress",payload:{uploadInfo:Ue,progressPercent:Ze}}),He()},onUploadFailed:Ue=>{Ot.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:Ue=>{pe(!1)},onUploadSucceed:Ue=>{pe(!1)},onUploadError:Ue=>{pe(!1)},gotUploader:Ue=>{Ue.addFile(Gt,null,null,null,ye),ue.current=Ue}})},Yt=()=>ct(void 0,null,function*(){var Gt,le;if(yield he.validateFields(),!Qe&&!((Gt=Jt.videoList)!=null&&Gt.length)||Qe&&!Re){Ot.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}Le(!0);const ye=Qe?{link:Re}:{video_id:(le=Jt.videoList)==null?void 0:le[0].videoId},Ue=yield Ne(ut(ut(ut({},ye),Ge),{name:he.getFieldValue("name"),attachment_id:he.getFieldValue("attachment_id"),description:he.getFieldValue("description"),tags:he.getFieldValue("tag"),allow_skip:he.getFieldValue("allow_skip")}));Le(!1),Ue!=null&&Ue.id&&oe()}),oe=()=>{he.resetFields(),re({type:"removeAll"}),Fe(null),Et([]),Ae(null)},_t=()=>{be(),oe()},It=()=>{var Gt,le,ye,Ue,We,Ee,Ze,on,nn,qe,En,fn;return ee.createElement(ee.Fragment,null,!Qe&&!!((Gt=Jt.videoList)!=null&&Gt.length)&&ee.createElement("div",{className:St.fileProgress},((ye=(le=Jt.videoList)==null?void 0:le[0])==null?void 0:ye.loaded)==100?ee.createElement("div",{className:`${St.videoName} font14`},(We=(Ue=Jt.videoList)==null?void 0:Ue[0])==null?void 0:We.name):ee.createElement(Ct.Z,{style:{width:"80%"},percent:(Ze=(Ee=Jt.videoList)==null?void 0:Ee[0])==null?void 0:Ze.loaded,status:((nn=(on=Jt.videoList)==null?void 0:on[0])==null?void 0:nn.loaded)==100?"normal":"active"}),ee.createElement("div",{className:St.fileCancel,onClick:()=>{var Pn,Mn,ii,Tn;return Tt((Mn=(Pn=Jt.videoList)==null?void 0:Pn[0])==null?void 0:Mn.name,((Tn=(ii=Jt.videoList)==null?void 0:ii[0])==null?void 0:Tn.loaded)==100)}},((En=(qe=Jt.videoList)==null?void 0:qe[0])==null?void 0:En.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((fn=Jt.videoList)!=null&&fn.length)&&ee.createElement("div",{className:St.uploadWrap},ee.createElement("label",{htmlFor:"fileUpload",className:St.upload},ee.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),ee.createElement("label",{className:`${St.upload} ${St.uploadLink}`,onClick:()=>Ae(!0)},ee.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),Qe&&ee.createElement(Qt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Re,onChange:Pn=>Fe(Pn.target.value)}))},[Pt,Et]=(0,ee.useState)([]),$t=Gt=>{if(Gt.key=="Enter"){const le=he.getFieldValue("tag");if(he.setFieldsValue({tag:""}),!le){Ot.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Pt.filter(ye=>ye===le).length>0){Ot.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Pt.push(le),Et([...Pt])}},zt=(Gt,le)=>{Gt.preventDefault(),Et([...Pt.filter(ye=>ye!=le)])};return ee.createElement(jt.default,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:ge?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:St.modal,open:de,confirmLoading:_e,onOk:Yt,onCancel:_t},ee.createElement(Zt.default,{form:he},ee.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:ie,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),ee.createElement(Zt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},ee.createElement(Qt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),ee.createElement(Zt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:St.contentItem},It()),ee.createElement(Zt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},ee.createElement(xt.Z,{getFileProgress:Gt=>{if(Gt.file.status==="uploading"){Le(!0);return}Gt.file.status==="done"&&Le(!1)}})),ee.createElement(Zt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},ee.createElement(ft,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),ee.createElement(Zt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},ee.createElement(Qt.default,{onKeyUp:$t})),ee.createElement(Zt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},ee.createElement(Mt.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),ee.createElement("div",{className:St["tagsList-content"]},Pt.map((Gt,le)=>ee.createElement(Bt.default,{key:le+Gt,closable:!0,onClose:ye=>{zt(ye,Gt)}},Gt))),ee.createElement("div",{className:"c-grey-999"},ee.createElement("div",null,"\u6CE8\u610F\uFF1A"),ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.createElement(wt.Link,{to:`/users/${(Pe=Nt.userInfo)==null?void 0:Pe.login}/videos/protocol`,target:"_blank",className:St.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Oe,"G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),ee.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};var Ut=(0,wt.connect)(({user:Nt,loading:qt,globalSetting:te})=>({user:Nt,globalSetting:te,loading:qt}))(Rt)},67776:function(Cn,Gn,ce){"use strict";ce.d(Gn,{o:function(){return Bt}});var ee=ce(38986),wt=ce(93125),Qt=ce.n(wt);let Zt="",Ot,jt="";function Ct(St){Mt(St)}function Mt(St){Ot=new(Qt()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(kt){console.log("addFileSuccess: "+kt.file.name),St.addFileSuccess&&St.addFileSuccess(kt),Ot.startUpload()},onUploadstarted:function(kt){const xt=kt.file.name;if(kt.videoId){var yt=`/api/users/${Zt}/video_auths.json`;(0,ee.ZP)(yt,{method:"put",body:{video_id:kt.videoId,title:xt,file_name:xt,virtual_classroom_id:jt}}).then(et=>{if(et.status==-1){St.onUploadError&&St.onUploadError(kt);return}const tt=et.data;var lt=tt.UploadAuth,ot=tt.UploadAddress,ut=tt.VideoId;Ot.setUploadAuthAndAddress(kt,lt,ot)}).catch(et=>{Ot.deleteFile(Ot._curIndex),Ot.nextUpload(),console.log(et)})}else{var Dt=`/api/users/${Zt}/video_auths.json`;const et="";(0,ee.ZP)(Dt,{method:"Post",body:{title:et+xt,file_name:et+xt,virtual_classroom_id:jt}}).then(tt=>{if(tt){const ct=tt.data;var lt=ct.UploadAuth,ot=ct.UploadAddress,ut=ct.VideoId;Ot.setUploadAuthAndAddress(kt,lt,ot,ut)}}).catch(tt=>{Ot.deleteFile(Ot._curIndex),Ot.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(kt){St.onUploadSucceed&&St.onUploadSucceed(kt),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(kt,xt,Dt){St.onUploadFailed&&St.onUploadFailed(kt),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(kt,xt,Dt){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(kt,xt,Dt){St.onUploadProgress&&St.onUploadProgress(kt,xt,Dt);var yt=Math.ceil(Dt*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(kt){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var xt=`/api/users/${Zt}/video_auths.json`;(0,ee.ZP)(xt,{method:"put",body:{video_id:kt.videoId}}).then(Dt=>{var et=Dt.data.UploadAuth;Ot.resumeUploadWithAuth(et)}).catch(Dt=>{console.log(Dt)})},onUploadEnd:function(kt){St.onUploadEnd&&St.onUploadEnd(kt),console.log("onUploadEnd: uploaded all the files")}}),St.gotUploader&&St.gotUploader(Ot)}function Bt(St,kt,xt){St&&(Zt=St),kt&&(jt=kt),Ct(xt)}},81428:function(Cn,Gn,ce){"use strict";ce.d(Gn,{AL:function(){return ft},Iy:function(){return kt},Qv:function(){return yt},ez:function(){return ct},jb:function(){return xt}});var ee=ce(32834),wt=ce.n(ee),Qt=ce(11690),Zt=ce.n(Qt);let Ot=1;function jt(Nt,qt){const te=Nt.match(/^(\s+)(?:```)/);if(te===null)return qt;const Vt=te[1];return qt.split(`
|
|
`).map(de=>{const ge=de.match(/^\s+/);if(ge===null)return de;const[be]=ge;return be.length>=Vt.length?de.slice(Vt.length):de}).join(`
|
|
`)}let Ct=[],Mt=["<ul>"];const Bt=new(wt()).Renderer,St=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function kt(){Ct.length=0,Mt=["<ul>"]}const xt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Dt(Nt,qt,te,Vt){if(qt>=Nt.length||Nt[qt].level<=te)return qt;var de=Nt[qt];Vt.push("<li><a href='#"+Ot+de.anchor+"'>"+de.text+"</a>"),qt++;var ge=[];return qt=Dt(Nt,qt,de.level,ge),ge.length>0&&(Vt.push("<ul>"),ge.forEach(function(be){Vt.push(be)}),Vt.push("</ul>")),Vt.push("</li>"),qt=Dt(Nt,qt,te,Vt),qt}function yt(){return Dt(Ct,0,0,Mt),Mt.push("</ul>"),Mt.join("")}const et={heading(Nt){const qt=St.exec(Nt);if(Ot+=1,qt)return{type:"heading",raw:qt[0],depth:qt[1].length,text:qt[2]}},fences(Nt){const qt=this.rules.block.fences.exec(Nt);if(qt){const te=qt[0];let Vt=jt(te,qt[3]||"");const de=qt[2]?qt[2].trim():qt[2];if(["latex","katex","math"].indexOf(de)>=0){const ge=ot(),be=Vt;Vt=ge,ut[ge]={type:"block",expression:be}}return{type:"code",raw:te,lang:de,text:Vt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const ot=()=>`__special_katext_id_${lt++}__`;let ut={};function ct(){return ut}function ft(){lt=0,ut={}}function gt(Nt){return Nt=Nt.replace(tt,(qt,te)=>{const Vt=ot();return ut[Vt]={type:"inline",expression:te},Vt}),Nt}const Lt=Bt.listitem;Bt.listitem=function(Nt){return Lt(gt(Nt))};const Rt=Bt.paragraph;Bt.paragraph=function(Nt){return Rt(gt(Nt))};const Ut=Bt.tablecell;Bt.tablecell=function(Nt,qt){return Ut(gt(Nt),qt)},Bt.code=function(Nt,qt,te){const Vt=(qt||"").match(/\S*/)[0];return Vt?["latex","katex","math"].indexOf(Vt)>=0?`<p class='editormd-tex'>${Nt}</p>`:`<pre class="prettyprint linenums"><code class="language-${qt}">${te?Nt:(0,Qt.escape)(Nt,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(te?Nt:(0,Qt.escape)(Nt,!0))+"</code></pre>"},Bt.heading=function(Nt,qt,te){let Vt=this.options.headerPrefix+te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ct.push({anchor:Vt,level:qt,text:Nt}),"<h"+qt+' id="'+Ot+Vt+'">'+Nt+"</h"+qt+">"},wt().setOptions({silent:!0,gfm:!0,pedantic:!1}),wt().use({tokenizer:et,renderer:Bt}),Gn.ZP=wt()},40197:function(Cn,Gn,ce){"use strict";ce.d(Gn,{rX:function(){return gt},pW:function(){return Lt},gy:function(){return Rt},xY:function(){return ft},O5:function(){return ct},hs:function(){return tt},tJ:function(){return yt},o1:function(){return et},Rd:function(){return ut}});var ee=ce(25690),wt=ce(62957),Qt=ce(37285),Zt=ce(6767),Ot=ce(48790),jt=ce(51257),Ct=ce(87169),Mt=ce(25510),Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG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iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",St=ce.p+"static/newqrcode.a8740efb.png",kt=ce(32637),xt=ce(59301),Dt=(Ut,Nt,qt)=>new Promise((te,Vt)=>{var de=Ne=>{try{be(qt.next(Ne))}catch(Ge){Vt(Ge)}},ge=Ne=>{try{be(qt.throw(Ne))}catch(Ge){Vt(Ge)}},be=Ne=>Ne.done?te(Ne.value):Promise.resolve(Ne.value).then(de,ge);be((qt=qt.apply(Ut,Nt)).next())});const yt=(Ut,Nt=!1,qt=!1,te="",Vt=!1)=>!!(et(Ut)&<(Ut,Nt,qt,te,Vt)),et=Ut=>(0,Ot.bg)()?!0:(Ut({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=Ut=>{var Nt,qt,te;const{user:Vt}=(0,ee.getDvaApp)()._store.getState();(0,Ot.bg)()&&!((qt=(Nt=Vt==null?void 0:Vt.userInfo)==null?void 0:Nt.course)!=null&&qt.course_public)&&!((te=Vt==null?void 0:Vt.userInfo)!=null&&te.profile_completed)&&Ut({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},lt=(Ut,Nt=!1,qt=!0,te="",Vt=!1)=>{var de;const{user:ge}=(0,ee.getDvaApp)()._store.getState();return(de=ge.userInfo)!=null&&de.profile_completed?!0:(qt?Ut({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:te,isCurrentPage:Vt}}):wt.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,jt.xg)("/account/profile/edit"),ot()}}),!1)},ot=()=>{wt.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()}})},ut=()=>{wt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:xt.createElement("div",{style:{textAlign:"center"}},xt.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"),xt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:kt}),xt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ct=()=>{var Ut;const{user:Nt}=(0,ee.getDvaApp)()._store.getState();return(Ut=Nt.userInfo)!=null&&Ut.professional_certification?!0:(wt.default.confirm({title:"\u63D0\u793A",centered:!0,content:xt.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,jt.xg)("/account/certification")}}),!1)},ft=()=>(0,Ot.V9)()?!0:(wt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:xt.createElement("div",{className:"tc",style:{marginLeft:-38}},xt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),xt.createElement("img",{src:St,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),gt=(Ut,Nt)=>Ut?!0:(wt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:xt.createElement("div",null,xt.createElement("p",null,Nt||"\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"),xt.createElement("div",{style:{marginLeft:"110px"}},xt.createElement("img",{src:Bt,width:200}),xt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,jt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Lt=Ut=>{wt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:xt.createElement("div",null,xt.createElement("div",null,xt.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"),xt.createElement(Qt.Z,null),xt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",xt.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 ",xt.createElement("a",null,Ut),"\u5929\u3002"),xt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",xt.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")),xt.createElement("div",{style:{textAlign:"center",marginTop:30}},xt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Mt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Rt=(Ut,Nt="")=>{const{shixunsDetail:{detail:qt}}=(0,ee.getDvaApp)()._store.getState();if((qt==null?void 0:qt.public)===2||(qt==null?void 0:qt.public)===1||(qt==null?void 0:qt.shixun_status)===3){let te="";return(qt==null?void 0:qt.public)===2&&(te="\u5DF2\u516C\u5F00"),(qt==null?void 0:qt.public)===1&&(te="\u5F85\u5BA1\u6838"),(qt==null?void 0:qt.shixun_status)===3&&(te="\u5DF2\u5173\u95ED"),wt.default.info({centered:!0,icon:xt.createElement(Ct.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:xt.createElement("div",{className:"tc",style:{marginLeft:-38}},xt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},xt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",te,"\uFF0C",Nt,"\u3002"),xt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),xt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Mt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(qt==null?void 0:qt.shixun_status)===2?(wt.default.confirm({centered:!0,icon:xt.createElement(Ct.Z,null),title:"\u63D0\u793A",content:xt.createElement("div",null,xt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Nt,"\u3002"),xt.createElement("br",null),xt.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:()=>{wt.default.confirm({width:440,centered:!0,icon:xt.createElement(Ct.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:()=>Dt(void 0,null,function*(){(yield Ut({type:"shixunsDetail/cancelRelease",payload:{id:qt==null?void 0:qt.identifier}})).status!==401&&(Zt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ut({type:"shixunsDetail/getShixunsDetail",payload:{id:qt==null?void 0:qt.identifier}}),Ut({type:"practiceSetting/getCommonData",payload:{id:qt==null?void 0:qt.identifier}}))})})}}),!0):!1}},93125:function(Cn,Gn,ce){(function(ee){if(1)window.OSS=ee(),Cn.exports=ee();else var wt})(function(){var ee;return function(){function wt(Qt,Zt,Ot){function jt(Bt,St){if(!Zt[Bt]){if(!Qt[Bt]){var kt=void 0;if(!St&&kt)return require(Bt,!0);if(Ct)return Ct(Bt,!0);var xt=new Error("Cannot find module '"+Bt+"'");throw xt.code="MODULE_NOT_FOUND",xt}var Dt=Zt[Bt]={exports:{}};Qt[Bt][0].call(Dt.exports,function(yt){return jt(Qt[Bt][1][yt]||yt)},Dt,Dt.exports,wt,Qt,Zt,Ot)}return Zt[Bt].exports}for(var Ct=void 0,Mt=0;Mt<Ot.length;Mt++)jt(Ot[Mt]);return jt}return wt}()({1:[function(wt,Qt,Zt){"use strict";var Ot=wt("./browser/client");Ot.Buffer=wt("buffer").Buffer,Ot.co=wt("co"),Ot.urllib=wt("../shims/xhr"),Ot.version=wt("./browser/version").version,Qt.exports=Ot},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(wt,Qt,Zt){(function(Ot,jt){"use strict";function Ct(Jt){return Jt&&Jt.__esModule?Jt:{default:Jt}}function Mt(Jt,re){return Jt[re]||Jt[re.toLowerCase()]}function Bt(Jt,re){var se=Nt.parse(Jt);if(!se.protocol){var pe=re?"https://":"http://";se=Nt.parse(pe+Jt)}if(se.protocol!=="http:"&&se.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return se}function St(Jt,re,se){var pe=se?"https://":"http://",ue=re?"-internal.aliyuncs.com":".aliyuncs.com";return Jt.substr(0,14)==="vpc100-oss-cn-"&&(ue=".aliyuncs.com"),Nt.parse(pe+Jt+ue)}function kt(){return document&&document.location&&document.location.protocol==="https:"}function xt(Jt,re){if(!(this instanceof xt))return new xt(Jt,re);Jt&&Jt.inited?this.options=Jt:this.options=xt.initOptions(Jt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=de,this.agent=this.options.agent||ze),this.ctx=re,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var Dt=wt("babel-runtime/regenerator"),yt=Ct(Dt),et=wt("babel-runtime/core-js/object/keys"),tt=Ct(et),lt=wt("debug")("ali-oss"),ot=wt("./../../shims/crypto/crypto.js"),ut=wt("path"),ct=wt("copy-to"),ft=wt("mime"),gt=wt("xml2js"),Lt=wt("humanize-ms"),Rt=wt("agentkeepalive"),Ut=wt("merge-descriptors"),Nt=wt("url"),qt=wt("is-type-of"),te=wt("platform"),Vt=wt("utility"),de=wt("urllib"),ge=wt("./version"),be=wt("dateformat"),Ne=wt("bowser"),Ge=wt("../common/signUtils"),Pe=wt("../common/utils"),ze=new Rt;Qt.exports=xt,xt.initOptions=function(Jt){if(!Jt||!Jt.accessKeyId||!Jt.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var re=kt(),se={region:"oss-cn-hangzhou",internal:!1,secure:re,bucket:null,endpoint:null,cname:!1};if((0,tt.default)(Jt).forEach(function(pe){Jt[pe]!==void 0&&(se[pe]=Jt[pe])}),se.accessKeyId=se.accessKeyId.trim(),se.accessKeySecret=se.accessKeySecret.trim(),se.timeout&&(se.timeout=Lt(se.timeout)),se.endpoint)se.endpoint=Bt(se.endpoint,se.secure);else{if(!se.region)throw new Error("require options.endpoint or options.region");se.endpoint=St(se.region,se.internal,se.secure)}return se.inited=!0,se};var he=xt.prototype;Ut(he,wt("./object")),Ut(he,wt("./managed_upload")),Ut(he,wt("../common/multipart")),Ut(he,wt("../common/thunkpool.js")),xt.Wrapper=wt("./wrapper"),he.signature=function(Jt){return lt("authorization stringToSign: %s",Jt),Ge.computeSignature(this.options.accessKeySecret,Jt)},he.authorization=function(Jt,re,se,pe){var ue=Ge.buildCanonicalString(Jt.toUpperCase(),re,{headers:pe,parameters:se});return Ge.authorization(this.options.accessKeyId,this.options.accessKeySecret,ue)},he.createRequest=function(Jt){var re={"x-oss-date":be(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(re["x-oss-security-token"]=this.options.stsToken),ct(Jt.headers).to(re),Mt(re,"Content-Type")||(Jt.mime===ft.default_type&&(Jt.mime=""),Jt.mime&&Jt.mime.indexOf("/")>0?re["Content-Type"]=Jt.mime:re["Content-Type"]=ft.getType(Jt.mime||ut.extname(Jt.object||""))||"application/octet-stream"),Jt.content&&(re["Content-Md5"]=ot.createHash("md5").update(new jt(Jt.content,"utf8")).digest("base64"),re["Content-Length"]||(re["Content-Length"]=Jt.content.length));var se=this._getResource(Jt);re.authorization=this.authorization(Jt.method,se,Jt.subres,re);var pe=this._getReqUrl(Jt);lt("request %s %s, with headers %j, !!stream: %s",Jt.method,pe,re,!!Jt.stream);var ue=Jt.timeout||this.options.timeout;return{url:pe,params:{agent:this.agent,method:Jt.method,content:Jt.content,stream:Jt.stream,headers:re,timeout:ue,writeStream:Jt.writeStream,customResponse:Jt.customResponse,ctx:Jt.ctx||this.ctx}}},he.request=yt.default.mark(function Jt(re){var se,pe,ue,Re;return yt.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return se=this.createRequest(re),pe=void 0,ue=void 0,Fe.prev=3,Fe.next=6,this.urllib.request(se.url,se.params);case 6:pe=Fe.sent,lt("response %s %s, got %s, headers: %j",re.method,se.url,pe.status,pe.headers),Fe.next=13;break;case 10:Fe.prev=10,Fe.t0=Fe.catch(3),ue=Fe.t0;case 13:if(Re=void 0,!pe||!re.successStatuses||re.successStatuses.indexOf(pe.status)!==-1){Fe.next=26;break}return Fe.next=17,this.requestError(pe);case 17:if(Re=Fe.sent,Re.code!=="RequestTimeTooSkewed"){Fe.next=23;break}return this.options.amendTimeSkewed=+new Date(Re.serverTime)-new Date,Fe.next=22,this.request(re);case 22:return Fe.abrupt("return",Fe.sent);case 23:Re.params=re,Fe.next=30;break;case 26:if(!ue){Fe.next=30;break}return Fe.next=29,this.requestError(ue);case 29:Re=Fe.sent;case 30:if(!Re){Fe.next=32;break}throw Re;case 32:if(!re.xmlResponse){Fe.next=36;break}return Fe.next=35,this.parseXML(pe.data);case 35:pe.data=Fe.sent;case 36:return Fe.abrupt("return",pe);case 37:case"end":return Fe.stop()}},Jt,this,[[3,10]])}),he._getResource=function(Jt){var re="/";return Jt.bucket&&(re+=Jt.bucket+"/"),Jt.object&&(re+=Jt.object),re},he._isIP=function(Jt){return Pe._isIP(Jt)},he._escape=function(Jt){return Vt.encodeURIComponent(Jt).replace(/%2F/g,"/")},he._getReqUrl=function(Jt){var re={};ct(this.options.endpoint).to(re);var se=this._isIP(re.hostname),pe=this.options.cname;!Jt.bucket||pe||se||(re.host=Jt.bucket+"."+re.host);var ue="/";Jt.bucket&&se&&(ue+=Jt.bucket+"/"),Jt.object&&(ue+=this._escape(Jt.object).replace(/\+/g,"%2B")),re.pathname=ue;var Re={};if(Jt.query&&Ut(Re,Jt.query),Jt.subres){var Fe={};qt.string(Jt.subres)?Fe[Jt.subres]="":qt.array(Jt.subres)?Jt.subres.forEach(function(Qe){Fe[Qe]=""}):Fe=Jt.subres,Ut(Re,Fe)}return re.query=Re,Nt.format(re)},he._getUserAgent=function(){var Jt=Ot&&Ot.browser?"js":"nodejs",re="aliyun-sdk-"+Jt+"/"+ge.version,se=te.description;return!se&&Ot&&(se="Node.js "+Ot.version.slice(1)+" on "+Ot.platform+" "+Ot.arch),this._checkUserAgent(re+" "+se)},he._checkUserAgent=function(Jt){return Jt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},he.checkBrowserAndVersion=function(Jt,re){return Ne.name===Jt&&Ne.version.split(".")[0]===re},he.parseXML=function(Jt){return function(re){jt.isBuffer(Jt)&&(Jt=Jt.toString()),gt.parseString(Jt,{explicitRoot:!1,explicitArray:!1},re)}},he.requestError=yt.default.mark(function Jt(re){var se,pe,ue,Re;return yt.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(se=null,re.data&&re.data.length){Fe.next=5;break}re.status===-1||re.status===-2?(se=new Error(re.message),se.name=re.name,se.status=re.status,se.code=re.name):(re.status===404?(se=new Error("Object not exists"),se.name="NoSuchKeyError",se.status=404,se.code="NoSuchKey"):re.status===412?(se=new Error("Pre condition failed"),se.name="PreconditionFailedError",se.status=412,se.code="PreconditionFailed"):(se=new Error("Unknow error, status: "+re.status),se.name="UnknowError",se.status=re.status),se.requestId=re.headers["x-oss-request-id"],se.host=""),Fe.next=30;break;case 5:return pe=String(re.data),lt("request response error data: %s",pe),ue=void 0,Fe.prev=8,Fe.next=11,this.parseXML(pe)||{};case 11:ue=Fe.sent,Fe.next=21;break;case 14:return Fe.prev=14,Fe.t0=Fe.catch(8),lt(pe),Fe.t0.message+=`
|
|
raw xml: `+pe,Fe.t0.status=re.status,Fe.t0.requestId=re.headers["x-oss-request-id"],Fe.abrupt("return",Fe.t0);case 21:Re=ue.Message||"unknow request error, status: "+re.status,ue.Condition&&(Re+=" (condition: "+ue.Condition+")"),se=new Error(Re),se.name=ue.Code?ue.Code+"Error":"UnknowError",se.status=re.status,se.code=ue.Code,se.requestId=ue.RequestId,se.hostId=ue.HostId,se.serverTime=ue.ServerTime;case 30:return lt("generate error %j",se),Fe.abrupt("return",se);case 32:case"end":return Fe.stop()}},Jt,this,[[8,14]])})}).call(this,wt("_process"),wt("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(ct){return ct&&ct.__esModule?ct:{default:ct}}function Ct(ct,ft){if(!(this instanceof Ct))return new Ct(ct,ft);ut.call(this,ft),this.file=ct,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Mt=wt("babel-runtime/core-js/array/from"),Bt=jt(Mt),St=wt("babel-runtime/regenerator"),kt=jt(St),xt=wt("is-type-of"),Dt=wt("util"),yt=wt("path"),et=wt("mime"),tt=wt("copy-to"),lt=Zt;lt.multipartUpload=kt.default.mark(function ct(ft,gt,Lt){var Rt,Ut,Nt,qt,te,Vt,de,ge,be;return kt.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(this.resetCancelFlag(),Lt=Lt||{},!Lt.checkpoint||!Lt.checkpoint.uploadId){Ne.next=6;break}return Ne.next=5,this._resumeMultipart(Lt.checkpoint,Lt);case 5:return Ne.abrupt("return",Ne.sent);case 6:return Rt=102400,Lt.mime||(xt.file(gt)?Lt.mime=et.getType(yt.extname(gt.name)):xt.blob(gt)?Lt.mime=gt.type:Lt.mime=et.getType(yt.extname(gt))),Lt.headers=Lt.headers||{},this._convertMetaToHeaders(Lt.meta,Lt.headers),Ne.next=12,this._getFileSize(gt);case 12:if(!((Ut=Ne.sent)<Rt)){Ne.next=25;break}return Nt=this._createStream(gt,0,Ut),Lt.contentLength=Ut,Ne.next=18,this.putStream(ft,Nt,Lt);case 18:if(qt=Ne.sent,!Lt||!Lt.progress){Ne.next=22;break}return Ne.next=22,Lt.progress(1);case 22:return te={res:qt.res,bucket:this.options.bucket,name:ft,etag:qt.res.headers.etag},(Lt.headers&&Lt.headers["x-oss-callback"]||Lt.callback)&&(te.data=qt.data),Ne.abrupt("return",te);case 25:if(!(Lt.partSize&&Lt.partSize<Rt)){Ne.next=27;break}throw new Error("partSize must not be smaller than "+Rt);case 27:return Ne.next=29,this.initMultipartUpload(ft,Lt);case 29:if(Vt=Ne.sent,de=Vt.uploadId,ge=this._getPartSize(Ut,Lt.partSize),be={file:gt,name:ft,fileSize:Ut,partSize:ge,uploadId:de,doneParts:[]},!Lt||!Lt.progress){Ne.next=36;break}return Ne.next=36,Lt.progress(0,be,Vt.res);case 36:return Ne.next=38,this._resumeMultipart(be,Lt);case 38:return Ne.abrupt("return",Ne.sent);case 39:case"end":return Ne.stop()}},ct,this)}),lt._resumeMultipart=kt.default.mark(function ct(ft,gt){var Lt,Rt,Ut,Nt,qt,te,Vt,de,ge,be,Ne,Ge,Pe,ze,he,Jt,re,se,pe,ue,Re;return kt.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!this.isCancel()){Fe.next=2;break}throw this._makeCancelEvent();case 2:if(Lt=ft.file,Rt=ft.fileSize,Ut=ft.partSize,Nt=ft.uploadId,qt=ft.doneParts,te=ft.name,Vt=[],qt.length>0&&tt(qt).to(Vt),de=this._divideParts(Rt,Ut),ge=de.length,be=!1,Ne=kt.default.mark(function Qe(Ae,_e){var Le,Oe,He;return kt.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(Ae.isCancel()){ie.next=21;break}return ie.prev=1,Le=de[_e-1],Oe={stream:Ae._createStream(Lt,Le.start,Le.end),size:Le.end-Le.start},ie.next=6,Ae._uploadPart(te,Nt,_e,Oe);case 6:if(He=ie.sent,Ae.isCancel()||be){ie.next=13;break}if(ft.doneParts.push({number:_e,etag:He.res.headers.etag}),Vt.push({number:_e,etag:He.res.headers.etag}),!gt||!gt.progress){ie.next=13;break}return ie.next=13,gt.progress(qt.length/ge,ft,He.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),Ae.isCancel()){ie.next=21;break}throw Ae.cancel(),ie.t0.partNum=_e,ie.t0;case 21:case"end":return ie.stop()}},Qe,this,[[1,15]])}),Ge=(0,Bt.default)(new Array(ge),function(Qe,Ae){return Ae+1}),Pe=Vt.map(function(Qe){return Qe.number}),ze=Ge.filter(function(Qe){return Pe.indexOf(Qe)<0}),he=5,Jt=gt.parallel||he,!this.checkBrowserAndVersion("Internet Explorer","10")&&Jt!==1){Fe.next=26;break}re=0;case 16:if(!(re<ze.length)){Fe.next=24;break}if(!this.isCancel()){Fe.next=19;break}throw this._makeCancelEvent();case 19:return Fe.next=21,Ne(this,ze[re]);case 21:re++,Fe.next=16;break;case 24:Fe.next=40;break;case 26:for(se=[],pe=0;pe<ze.length;pe++)se.push(Ne(this,ze[pe]));return Fe.next=30,this._thunkPool(se,Jt);case 30:if(ue=Fe.sent,be=!0,!(ue&&ue.length>0)){Fe.next=37;break}throw this.resetCancelFlag(),Re=ue[0],Re.message="Failed to upload some parts with error: "+Re.toString()+" part_num: "+Re.partNum,Re;case 37:if(!this.isCancel()){Fe.next=40;break}throw se=null,this._makeCancelEvent();case 40:return Fe.next=42,this.completeMultipartUpload(te,Nt,Vt,gt);case 42:return Fe.abrupt("return",Fe.sent);case 43:case"end":return Fe.stop()}},ct,this)}),xt.file=function(ct){return typeof File!="undefined"&&ct instanceof File},xt.blob=function(ct){return typeof Blob!="undefined"&&ct instanceof Blob},lt._getFileSize=kt.default.mark(function ct(ft){var gt;return kt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(!xt.buffer(ft)){Lt.next=4;break}return Lt.abrupt("return",ft.length);case 4:if(!xt.blob(ft)&&!xt.file(ft)){Lt.next=6;break}return Lt.abrupt("return",ft.size);case 6:if(!xt.string(ft)){Lt.next=11;break}return Lt.next=9,this._statFile(ft);case 9:return gt=Lt.sent,Lt.abrupt("return",gt.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Lt.stop()}},ct,this)});var ot=wt("stream"),ut=ot.Readable;Dt.inherits(Ct,ut),Ct.prototype.readFileAndPush=function(ct){if(this.fileBuffer)for(var ft=!0;ft&&this.fileBuffer&&this.start<this.fileBuffer.length;){var gt=this.start,Lt=gt+ct;Lt=Lt>this.fileBuffer.length?this.fileBuffer.length:Lt,this.start=Lt,ft=this.push(this.fileBuffer.slice(gt,Lt))}},Ct.prototype._read=function(ct){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);ct=ct||16384;var ft=this;this.reader.onload=function(gt){ft.fileBuffer=new Ot(new Uint8Array(gt.target.result)),ft.file=null,ft.readFileAndPush(ct)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ct)},lt._createStream=function(ct,ft,gt){if(xt.blob(ct)||xt.file(ct))return new Ct(ct.slice(ft,gt));throw new Error("_createStream requires File/String.")},lt._getPartSize=function(ct,ft){return ft?Math.max(Math.ceil(ct/1e4),ft):1048576},lt._divideParts=function(ct,ft){for(var gt=Math.ceil(ct/ft),Lt=[],Rt=0;Rt<gt;Rt++){var Ut=ft*Rt,Nt=Math.min(Ut+ft,ct);Lt.push({start:Ut,end:Nt})}return Lt},lt._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,wt("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(wt,Qt,Zt){"use strict";function Ot(ft){return ft&&ft.__esModule?ft:{default:ft}}var jt=wt("babel-runtime/core-js/object/keys"),Ct=Ot(jt),Mt=wt("babel-runtime/regenerator"),Bt=Ot(Mt),St=wt("debug")("ali-oss:object"),kt=wt("utility"),xt=wt("fs"),Dt=wt("is-type-of"),yt=wt("url"),et=wt("copy-to"),tt=wt("path"),lt=wt("mime"),ot=wt("../common/callback"),ut=wt("../common/signUtils"),ct=Zt;ct.append=Bt.default.mark(function ft(gt,Lt,Rt){var Ut;return Bt.default.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Rt=Rt||{},Rt.position===void 0&&(Rt.position="0"),Rt.subres={append:"",position:Rt.position},Rt.method="POST",Nt.next=6,this.put(gt,Lt,Rt);case 6:return Ut=Nt.sent,Ut.nextAppendPosition=Ut.res.headers["x-oss-next-append-position"],Nt.abrupt("return",Ut);case 9:case"end":return Nt.stop()}},ft,this)}),ct.put=Bt.default.mark(function ft(gt,Lt,Rt){var Ut,Nt,qt,te,Vt,de;return Bt.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(Ut=void 0,Rt=Rt||{},!Dt.buffer(Lt)){ge.next=6;break}Ut=Lt,ge.next=18;break;case 6:if(!Dt.blob(Lt)&&!Dt.file(Lt)){ge.next=17;break}return Rt.mime||(Dt.file(Lt)?Rt.mime=lt.getType(tt.extname(Lt.name)):Rt.mime=Lt.type),Nt=this._createStream(Lt,0,Lt.size),ge.next=11,this._getFileSize(Lt);case 11:return Rt.contentLength=ge.sent,ge.next=14,this.putStream(gt,Nt,Rt);case 14:return ge.abrupt("return",ge.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return Rt.headers=Rt.headers||{},this._convertMetaToHeaders(Rt.meta,Rt.headers),qt=Rt.method||"PUT",te=this._objectRequestParams(qt,gt,Rt),ot.encodeCallback(te,Rt),te.mime=Rt.mime,te.content=Ut,te.successStatuses=[200],ge.next=28,this.request(te);case 28:return Vt=ge.sent,de={name:gt,url:this._objectUrl(gt),res:Vt.res},te.headers&&te.headers["x-oss-callback"]&&(de.data=JSON.parse(Vt.data.toString())),ge.abrupt("return",de);case 32:case"end":return ge.stop()}},ft,this)}),ct.putStream=Bt.default.mark(function ft(gt,Lt,Rt){var Ut,Nt,qt,te;return Bt.default.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Rt=Rt||{},Rt.headers=Rt.headers||{},Rt.contentLength?Rt.headers["Content-Length"]=Rt.contentLength:Rt.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Rt.meta,Rt.headers),Ut=Rt.method||"PUT",Nt=this._objectRequestParams(Ut,gt,Rt),ot.encodeCallback(Nt,Rt),Nt.mime=Rt.mime,Nt.stream=Lt,Nt.successStatuses=[200],Vt.next=12,this.request(Nt);case 12:return qt=Vt.sent,te={name:gt,url:this._objectUrl(gt),res:qt.res},Nt.headers&&Nt.headers["x-oss-callback"]&&(te.data=JSON.parse(qt.data.toString())),Vt.abrupt("return",te);case 16:case"end":return Vt.stop()}},ft,this)}),ct.head=Bt.default.mark(function ft(gt,Lt){var Rt,Ut,Nt;return Bt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Rt=this._objectRequestParams("HEAD",gt,Lt),Rt.successStatuses=[200,304],qt.next=4,this.request(Rt);case 4:return Ut=qt.sent,Nt={meta:null,res:Ut.res,status:Ut.status},Ut.status===200&&(0,Ct.default)(Ut.headers).forEach(function(te){te.indexOf("x-oss-meta-")===0&&(Nt.meta||(Nt.meta={}),Nt.meta[te.substring(11)]=Ut.headers[te])}),qt.abrupt("return",Nt);case 8:case"end":return qt.stop()}},ft,this)}),ct.get=Bt.default.mark(function ft(gt,Lt,Rt){var Ut,Nt,qt,te;return Bt.default.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Ut=null,Nt=!1,Dt.writableStream(Lt)?Ut=Lt:Dt.string(Lt)?(Ut=xt.createWriteStream(Lt),Nt=!0):Rt=Lt,Rt=Rt||{},Rt.process&&(Rt.subres=Rt.subres||{},Rt.subres["x-oss-process"]=Rt.process),qt=void 0,Vt.prev=6,te=this._objectRequestParams("GET",gt,Rt),te.writeStream=Ut,te.successStatuses=[200,206,304],Vt.next=12,this.request(te);case 12:qt=Vt.sent,Nt&&Ut.destroy(),Vt.next=24;break;case 16:if(Vt.prev=16,Vt.t0=Vt.catch(6),!Nt){Vt.next=23;break}return Ut.destroy(),St("get error: %s, delete the exists file %s",Vt.t0,Lt),Vt.next=23,this._deleteFileSafe(Lt);case 23:throw Vt.t0;case 24:return Vt.abrupt("return",{res:qt.res,content:qt.data});case 25:case"end":return Vt.stop()}},ft,this,[[6,16]])}),ct.getStream=Bt.default.mark(function ft(gt,Lt){var Rt,Ut;return Bt.default.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Lt=Lt||{},Rt=this._objectRequestParams("GET",gt,Lt),Rt.customResponse=!0,Rt.successStatuses=[200,206,304],Nt.next=6,this.request(Rt);case 6:return Ut=Nt.sent,Nt.abrupt("return",{stream:Ut.res,res:{status:Ut.status,headers:Ut.headers}});case 8:case"end":return Nt.stop()}},ft,this)}),ct.delete=Bt.default.mark(function ft(gt,Lt){var Rt,Ut;return Bt.default.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Rt=this._objectRequestParams("DELETE",gt,Lt),Rt.successStatuses=[204],Nt.next=4,this.request(Rt);case 4:return Ut=Nt.sent,Nt.abrupt("return",{res:Ut.res});case 6:case"end":return Nt.stop()}},ft,this)}),ct.deleteMulti=Bt.default.mark(function ft(gt,Lt){var Rt,Ut,Nt,qt,te,Vt;return Bt.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:for(Lt=Lt||{},Rt=`<?xml version="1.0" encoding="UTF-8"?>
|
|
<Delete>
|
|
`,Lt.quiet?Rt+=` <Quiet>true</Quiet>
|
|
`:Rt+=` <Quiet>false</Quiet>
|
|
`,Ut=0;Ut<gt.length;Ut++)Rt+=" <Object><Key>"+kt.escape(this._objectName(gt[Ut]))+`</Key></Object>
|
|
`;return Rt+="</Delete>",St("delete multi objects: %s",Rt),Lt.subres="delete",Nt=this._objectRequestParams("POST","",Lt),Nt.mime="xml",Nt.content=Rt,Nt.xmlResponse=!0,Nt.successStatuses=[200],de.next=14,this.request(Nt);case 14:return qt=de.sent,te=qt.data,Vt=te&&te.Deleted||null,Vt&&(Array.isArray(Vt)||(Vt=[Vt]),Vt=Vt.map(function(ge){return ge.Key})),de.abrupt("return",{res:qt.res,deleted:Vt});case 19:case"end":return de.stop()}},ft,this)}),ct.copy=Bt.default.mark(function ft(gt,Lt,Rt){var Ut,Nt,qt;return Bt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Rt=Rt||{},Rt.headers=Rt.headers||{},(0,Ct.default)(Rt.headers).forEach(function(Vt){Rt.headers["x-oss-copy-source-"+Vt.toLowerCase()]=Rt.headers[Vt]}),Rt.meta&&(Rt.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Rt.meta,Rt.headers),Lt=Lt[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Lt):"/"+encodeURIComponent(Lt.slice(1)),Rt.headers["x-oss-copy-source"]=Lt,Ut=this._objectRequestParams("PUT",gt,Rt),Ut.xmlResponse=!0,Ut.successStatuses=[200,304],te.next=12,this.request(Ut);case 12:return Nt=te.sent,qt=Nt.data,qt&&(qt={etag:qt.ETag,lastModified:qt.LastModified}),te.abrupt("return",{data:qt,res:Nt.res});case 16:case"end":return te.stop()}},ft,this)}),ct.putMeta=Bt.default.mark(function ft(gt,Lt,Rt){return Bt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,this.copy(gt,gt,{meta:Lt||{},timeout:Rt&&Rt.timeout,ctx:Rt&&Rt.ctx});case 2:return Ut.abrupt("return",Ut.sent);case 3:case"end":return Ut.stop()}},ft,this)}),ct.list=Bt.default.mark(function ft(gt,Lt){var Rt,Ut,Nt,qt,te;return Bt.default.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Rt=this._objectRequestParams("GET","",Lt),Rt.query=gt,Rt.xmlResponse=!0,Rt.successStatuses=[200],Vt.next=6,this.request(Rt);case 6:return Ut=Vt.sent,Nt=Ut.data.Contents,qt=this,Nt&&(Array.isArray(Nt)||(Nt=[Nt]),Nt=Nt.map(function(de){return{name:de.Key,url:qt._objectUrl(de.Key),lastModified:de.LastModified,etag:de.ETag,type:de.Type,size:Number(de.Size),storageClass:de.StorageClass,owner:{id:de.Owner.ID,displayName:de.Owner.DisplayName}}})),te=Ut.data.CommonPrefixes||null,te&&(Array.isArray(te)||(te=[te]),te=te.map(function(de){return de.Prefix})),Vt.abrupt("return",{res:Ut.res,objects:Nt,prefixes:te,nextMarker:Ut.data.NextMarker||null,isTruncated:Ut.data.IsTruncated==="true"});case 13:case"end":return Vt.stop()}},ft,this)}),ct.putACL=Bt.default.mark(function ft(gt,Lt,Rt){var Ut,Nt;return Bt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Rt=Rt||{},Rt.subres="acl",Rt.headers=Rt.headers||{},Rt.headers["x-oss-object-acl"]=Lt,gt=this._objectName(gt),Ut=this._objectRequestParams("PUT",gt,Rt),Ut.successStatuses=[200],qt.next=9,this.request(Ut);case 9:return Nt=qt.sent,qt.abrupt("return",{res:Nt.res});case 11:case"end":return qt.stop()}},ft,this)}),ct.getACL=Bt.default.mark(function ft(gt,Lt){var Rt,Ut;return Bt.default.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Lt=Lt||{},Lt.subres="acl",gt=this._objectName(gt),Rt=this._objectRequestParams("GET",gt,Lt),Rt.successStatuses=[200],Rt.xmlResponse=!0,Nt.next=8,this.request(Rt);case 8:return Ut=Nt.sent,Nt.abrupt("return",{acl:Ut.data.AccessControlList.Grant,owner:{id:Ut.data.Owner.ID,displayName:Ut.data.Owner.DisplayName},res:Ut.res});case 10:case"end":return Nt.stop()}},ft,this)}),ct.restore=Bt.default.mark(function ft(gt,Lt){var Rt,Ut;return Bt.default.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Lt=Lt||{},Lt.subres="restore",Rt=this._objectRequestParams("POST",gt,Lt),Rt.successStatuses=[202],Nt.next=6,this.request(Rt);case 6:return Ut=Nt.sent,Nt.abrupt("return",{res:Ut.res});case 8:case"end":return Nt.stop()}},ft,this)}),ct.signatureUrl=function(ft,gt){gt=gt||{},ft=this._objectName(ft),gt.method=gt.method||"GET";var Lt=kt.timestamp()+(gt.expires||1800),Rt={bucket:this.options.bucket,object:ft},Ut=this._getResource(Rt);this.options.stsToken&&(gt["security-token"]=this.options.stsToken);var Nt=ut._signatureForURL(this.options.accessKeySecret,gt,Ut,Lt),qt=yt.parse(this._getReqUrl(Rt));return qt.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Lt,Signature:Nt.Signature},et(Nt.subResource).to(qt.query),qt.format()},ct.getObjectUrl=function(ft,gt){return gt?gt[gt.length-1]!=="/"&&(gt+="/"):gt=this.options.endpoint.format(),gt+this._escape(this._objectName(ft))},ct._objectUrl=function(ft){return this._getReqUrl({bucket:this.options.bucket,object:ft})},ct.generateObjectUrl=function(ft,gt){if(gt)gt[gt.length-1]!=="/"&&(gt+="/");else{gt=this.options.endpoint.format();var Lt=yt.parse(gt),Rt=this.options.bucket;Lt.hostname=Rt+"."+Lt.hostname,Lt.host=Rt+"."+Lt.host,gt=Lt.format()}return gt+this._escape(this._objectName(ft))},ct._objectRequestParams=function(ft,gt,Lt){if(!this.options.bucket)throw new Error("Please create a bucket first");Lt=Lt||{},gt=this._objectName(gt);var Rt={object:gt,bucket:this.options.bucket,method:ft,subres:Lt&&Lt.subres,timeout:Lt&&Lt.timeout,ctx:Lt&&Lt.ctx};return Lt.headers&&(Rt.headers={},et(Lt.headers).to(Rt.headers)),Rt},ct._objectName=function(ft){return ft.replace(/^\/+/,"")},ct._statFile=function(ft){return function(gt){xt.stat(ft,gt)}},ct._convertMetaToHeaders=function(ft,gt){ft&&(0,Ct.default)(ft).forEach(function(Lt){gt["x-oss-meta-"+Lt]=ft[Lt]})},ct._deleteFileSafe=function(ft){return function(gt){xt.exists(ft,function(Lt){Lt?xt.unlink(ft,function(Rt){Rt&&St("unlink %j error: %s",ft,Rt),gt()}):gt()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(wt,Qt,Zt){"use strict";Zt.version="5.3.1"},{}],6:[function(wt,Qt,Zt){"use strict";function Ot(tt){return tt&&tt.__esModule?tt:{default:tt}}function jt(tt){return tt&&typeof tt.next=="function"&&typeof tt.throw=="function"}function Ct(tt){if(!tt)return!1;var lt=tt.constructor;return!!lt&&(lt.name==="GeneratorFunction"||lt.displayName==="GeneratorFunction"||jt(lt.prototype)||jt(tt.prototype))}function Mt(tt,lt){var ot=new tt(lt),ut=(0,Dt.default)(ot),ct=(0,Dt.default)((0,kt.default)(ot));ut.concat(ct).forEach(function(ft){Ct(ot[ft])?this[ft]=yt.wrap(ot[ft]).bind(ot):this[ft]=ot[ft]},this)}function Bt(tt){if(!(this instanceof Bt))return new Bt(tt);Mt.call(this,et,tt)}var St=wt("babel-runtime/core-js/object/get-prototype-of"),kt=Ot(St),xt=wt("babel-runtime/core-js/object/keys"),Dt=Ot(xt),yt=wt("co"),et=wt("./client");Qt.exports=Bt,Bt.STS=function tt(lt){if(!(this instanceof tt))return new tt(lt);Mt.call(this,et.STS,lt)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(kt){return kt&&kt.__esModule?kt:{default:kt}}var Ct=wt("babel-runtime/core-js/object/keys"),Mt=jt(Ct),Bt=wt("babel-runtime/core-js/json/stringify"),St=jt(Bt);Zt.encodeCallback=function(kt,xt){if(kt.headers=kt.headers||{},!Object.prototype.hasOwnProperty.call(kt.headers,"x-oss-callback")&&xt.callback){var Dt={callbackUrl:encodeURI(xt.callback.url),callbackBody:xt.callback.body};xt.callback.host&&(Dt.callbackHost=xt.callback.host),xt.callback.contentType&&(Dt.callbackBodyType=xt.callback.contentType);var yt=new Ot((0,St.default)(Dt)).toString("base64");if(kt.headers["x-oss-callback"]=yt,xt.callback.customValue){var et={};(0,Mt.default)(xt.callback.customValue).forEach(function(tt){et["x:"+tt]=xt.callback.customValue[tt]}),kt.headers["x-oss-callback-var"]=new Ot((0,St.default)(et)).toString("base64")}}}}).call(this,wt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/regenerator"),jt=function(St){return St&&St.__esModule?St:{default:St}}(Ot),Ct=wt("copy-to"),Mt=wt("./callback"),Bt=Zt;Bt.listUploads=jt.default.mark(function St(kt,xt){var Dt,yt,et,tt;return jt.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return xt=xt||{},Dt={},Ct(xt).to(Dt),Dt.subres="uploads",yt=this._objectRequestParams("GET","",Dt),yt.query=kt,yt.xmlResponse=!0,yt.successStatuses=[200],lt.next=10,this.request(yt);case 10:return et=lt.sent,tt=et.data.Upload||[],Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(ot){return{name:ot.Key,uploadId:ot.UploadId,initiated:ot.Initiated}}),lt.abrupt("return",{res:et.res,uploads:tt,bucket:et.data.Bucket,nextKeyMarker:et.data.NextKeyMarker,nextUploadIdMarker:et.data.NextUploadIdMarker,isTruncated:et.data.IsTruncated==="true"});case 15:case"end":return lt.stop()}},St,this)}),Bt.listParts=jt.default.mark(function St(kt,xt,Dt,yt){var et,tt,lt;return jt.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return yt=yt||{},et={},Ct(yt).to(et),et.subres={uploadId:xt},tt=this._objectRequestParams("GET",kt,et),tt.query=Dt,tt.xmlResponse=!0,tt.successStatuses=[200],ot.next=10,this.request(tt);case 10:return lt=ot.sent,ot.abrupt("return",{res:lt.res,uploadId:lt.data.UploadId,bucket:lt.data.Bucket,name:lt.data.Key,partNumberMarker:lt.data.PartNumberMarker,nextPartNumberMarker:lt.data.NextPartNumberMarker,maxParts:lt.data.MaxParts,isTruncated:lt.data.IsTruncated,parts:lt.data.Part||[]});case 12:case"end":return ot.stop()}},St,this)}),Bt.abortMultipartUpload=jt.default.mark(function St(kt,xt,Dt){var yt,et,tt;return jt.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return this.cancel(),Dt=Dt||{},yt={},Ct(Dt).to(yt),yt.subres={uploadId:xt},et=this._objectRequestParams("DELETE",kt,yt),et.successStatuses=[204],lt.next=9,this.request(et);case 9:return tt=lt.sent,lt.abrupt("return",{res:tt.res});case 11:case"end":return lt.stop()}},St,this)}),Bt.initMultipartUpload=jt.default.mark(function St(kt,xt){var Dt,yt,et;return jt.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return xt=xt||{},Dt={},Ct(xt).to(Dt),Dt.headers=Dt.headers||{},this._convertMetaToHeaders(xt.meta,Dt.headers),Dt.subres="uploads",yt=this._objectRequestParams("POST",kt,Dt),yt.mime=xt.mime,yt.xmlResponse=!0,yt.successStatuses=[200],tt.next=12,this.request(yt);case 12:return et=tt.sent,tt.abrupt("return",{res:et.res,bucket:et.data.Bucket,name:et.data.Key,uploadId:et.data.UploadId});case 14:case"end":return tt.stop()}},St,this)}),Bt.uploadPart=jt.default.mark(function St(kt,xt,Dt,yt,et,tt,lt){var ot;return jt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ot={stream:this._createStream(yt,et,tt),size:tt-et},ut.next=3,this._uploadPart(kt,xt,Dt,ot,lt);case 3:return ut.abrupt("return",ut.sent);case 4:case"end":return ut.stop()}},St,this)}),Bt.completeMultipartUpload=jt.default.mark(function St(kt,xt,Dt,yt){var et,tt,lt,ot,ut,ct,ft,gt;return jt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:for(et=Dt.concat().sort(function(Rt,Ut){return Rt.number-Ut.number}).filter(function(Rt,Ut,Nt){return!Ut||Rt.number!==Nt[Ut-1].number}),tt=`<?xml version="1.0" encoding="UTF-8"?>
|
|
<CompleteMultipartUpload>
|
|
`,lt=0;lt<et.length;lt++)ot=et[lt],tt+=`<Part>
|
|
`,tt+="<PartNumber>"+ot.number+`</PartNumber>
|
|
`,tt+="<ETag>"+ot.etag+`</ETag>
|
|
`,tt+=`</Part>
|
|
`;return tt+="</CompleteMultipartUpload>",yt=yt||{},ut={},Ct(yt).to(ut),ut.subres={uploadId:xt},ct=this._objectRequestParams("POST",kt,ut),Mt.encodeCallback(ct,ut),ct.mime="xml",ct.content=tt,ct.headers&&ct.headers["x-oss-callback"]||(ct.xmlResponse=!0),ct.successStatuses=[200],Lt.next=16,this.request(ct);case 16:return ft=Lt.sent,gt={res:ft.res,bucket:ct.bucket,name:kt,etag:ft.res.headers.etag},ct.headers&&ct.headers["x-oss-callback"]&&(gt.data=JSON.parse(ft.data.toString())),Lt.abrupt("return",gt);case 20:case"end":return Lt.stop()}},St,this)}),Bt._uploadPart=jt.default.mark(function St(kt,xt,Dt,yt,et){var tt,lt,ot;return jt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return et=et||{},tt={},Ct(et).to(tt),tt.headers={"Content-Length":yt.size},tt.subres={partNumber:Dt,uploadId:xt},lt=this._objectRequestParams("PUT",kt,tt),lt.mime=tt.mime,lt.stream=yt.stream,lt.successStatuses=[200],ut.next=11,this.request(lt);case 11:return ot=ut.sent,yt.stream=null,lt.stream=null,ut.abrupt("return",{name:kt,etag:ot.res.headers.etag,res:ot.res});case 15:case"end":return ut.stop()}},St,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(Dt){return Dt&&Dt.__esModule?Dt:{default:Dt}}var Ct=wt("babel-runtime/core-js/json/stringify"),Mt=jt(Ct),Bt=wt("babel-runtime/core-js/object/keys"),St=jt(Bt),kt=wt("./../../shims/crypto/crypto.js"),xt=wt("is-type-of");Zt.buildCanonicalizedResource=function(Dt,yt){var et=""+Dt,tt="?";if(xt.string(yt)&&yt.trim()!=="")et+=tt+yt;else if(xt.array(yt))yt.sort(),et+=tt+yt.join("&");else if(yt){var lt=function(ut,ct){return ut[0]>ct[0]?1:ut[0]<ct[0]?-1:0},ot=function(ut){et+=tt+ut,yt[ut]&&(et+="="+yt[ut]),tt="&"};(0,St.default)(yt).sort(lt).forEach(ot)}return et},Zt.buildCanonicalString=function(Dt,yt,et,tt){et=et||{};var lt=et.headers||{},ot=[],ut={},ct=[Dt.toUpperCase(),lt["Content-Md5"]||"",lt["Content-Type"]||lt["Content-Type".toLowerCase()],tt||lt["x-oss-date"]];return(0,St.default)(lt).forEach(function(ft){var gt=ft.toLowerCase();gt.indexOf("x-oss-")===0&&(ut[gt]=String(lt[ft]).trim())}),(0,St.default)(ut).sort().forEach(function(ft){ot.push(ft+":"+ut[ft])}),ct=ct.concat(ot),ct.push(this.buildCanonicalizedResource(yt,et.parameters)),ct.join(`
|
|
`)},Zt.computeSignature=function(Dt,yt){return kt.createHmac("sha1",Dt).update(new Ot(yt,"utf8")).digest("base64")},Zt.authorization=function(Dt,yt,et){return"OSS "+Dt+":"+this.computeSignature(yt,et)},Zt._signatureForURL=function(Dt,yt,et,tt){var lt={},ot={};if(yt.process&&(ot["x-oss-process"]=yt.process),yt.response&&(0,St.default)(yt.response).forEach(function(gt){var Lt="response-"+gt.toLowerCase();ot[Lt]=yt.response[gt]}),(0,St.default)(yt).forEach(function(gt){var Lt=gt.toLowerCase(),Rt=yt[gt];Lt.indexOf("x-oss-")===0?lt[Lt]=Rt:Lt.indexOf("content-md5")===0||Lt.indexOf("content-type")===0?lt[gt]=Rt:Lt!=="expires"&&Lt!=="response"&&Lt!=="process"&&Lt!=="method"&&(ot[Lt]=Rt)}),Object.prototype.hasOwnProperty.call(yt,"security-token")&&(ot["security-token"]=yt["security-token"]),Object.prototype.hasOwnProperty.call(yt,"callback")){var ut={callbackUrl:encodeURI(yt.callback.url),callbackBody:yt.callback.body};if(yt.callback.host&&(ut.callbackHost=yt.callback.host),yt.callback.contentType&&(ut.callbackBodyType=yt.callback.contentType),ot.callback=new Ot((0,Mt.default)(ut)).toString("base64"),yt.callback.customValue){var ct={};(0,St.default)(yt.callback.customValue).forEach(function(gt){ct["x:"+gt]=yt.callback.customValue[gt]}),ot["callback-var"]=new Ot((0,Mt.default)(ct)).toString("base64")}}var ft=this.buildCanonicalString(yt.method,et,{headers:lt,parameters:ot},tt.toString());return{Signature:this.computeSignature(Dt,ft),subResource:ot}}}).call(this,wt("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/regenerator"),jt=function(kt){return kt&&kt.__esModule?kt:{default:kt}}(Ot),Ct=wt("co"),Mt=wt("co-priority-queue"),Bt=wt("any-promise"),St=Zt;St._thunkPool=function(kt,xt){function Dt(ot,ut){++tt===ot.length&&ut(lt)}function yt(ot,ut){function ct(){var Nt;return jt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:Nt=void 0;case 1:if(et.isCancel()){qt.next=9;break}return qt.next=4,Lt.next();case 4:return Nt=qt.sent,qt.next=7,Nt();case 7:qt.next=1;break;case 9:Rt+=1,Rt===ot&&(Lt.fns=[],Lt.buffer=[],ut(lt));case 11:case"end":return qt.stop()}},gt,this)}function ft(Nt){console.error(Nt.stack)}for(var gt=jt.default.mark(ct),Lt=new Mt,Rt=0,Ut=0;Ut<ot;Ut++)Ct(ct).catch(ft);return function(Nt,qt){return function(te){Lt.push(jt.default.mark(function Vt(){return jt.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.prev=0,de.t0=te,de.next=4,Nt;case 4:de.t1=de.sent,(0,de.t0)(null,de.t1),de.next=11;break;case 8:de.prev=8,de.t2=de.catch(0),te(de.t2);case 11:case"end":return de.stop()}},Vt,this,[[0,8]])}),qt)}}}var et=this,tt=0,lt=[];return new Bt(function(ot){function ut(Rt){return jt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,gt(kt[Rt]);case 2:Dt(kt,ot);case 3:case"end":return Ut.stop()}},ft,this)}function ct(Rt){lt.push(Rt),Dt(kt,ot)}for(var ft=jt.default.mark(ut),gt=new yt(xt,ot),Lt=0;Lt<kt.length;Lt++)Ct(ut(Lt)).catch(ct)})},St.cancel=function(){this.options.cancelFlag=!0},St.isCancel=function(){return this.options.cancelFlag},St.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(wt,Qt,Zt){"use strict";Zt._isIP=function(Ot){var jt=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,Ct=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return jt.test(Ot)||Ct.test(Ot)}},{}],12:[function(wt,Qt,Zt){function Ot(){}Qt.exports=Ot,Qt.exports.HttpsAgent=Ot},{}],13:[function(wt,Qt,Zt){Qt.exports=wt("./register")().Promise},{"./register":15}],14:[function(wt,Qt,Zt){"use strict";var Ot=null;Qt.exports=function(jt,Ct){return function(Mt,Bt){Mt=Mt||null,Bt=Bt||{};var St=Bt.global!==!1;if(Ot===null&&St&&(Ot=jt["@@any-promise/REGISTRATION"]||null),Ot!==null&&Mt!==null&&Ot.implementation!==Mt)throw new Error('any-promise already defined as "'+Ot.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return Ot===null&&(Ot=Mt!==null&&Bt.Promise!==void 0?{Promise:Bt.Promise,implementation:Mt}:Ct(Mt),St&&(jt["@@any-promise/REGISTRATION"]=Ot)),Ot}}},{}],15:[function(wt,Qt,Zt){"use strict";function Ot(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}Qt.exports=wt("./loader")(window,Ot)},{"./loader":14}],16:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(wt,Qt,Zt){Qt.exports={default:wt("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(wt,Qt,Zt){"use strict";Zt.__esModule=!0,Zt.default=function(Ot,jt){if(!(Ot instanceof jt))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(wt,Qt,Zt){"use strict";Zt.__esModule=!0;var Ot=wt("../core-js/object/define-property"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);Zt.default=function(){function Ct(Mt,Bt){for(var St=0;St<Bt.length;St++){var kt=Bt[St];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),(0,jt.default)(Mt,kt.key,kt)}}return function(Mt,Bt,St){return Bt&&Ct(Mt.prototype,Bt),St&&Ct(Mt,St),Mt}}()},{"../core-js/object/define-property":20}],32:[function(wt,Qt,Zt){"use strict";function Ot(kt){return kt&&kt.__esModule?kt:{default:kt}}Zt.__esModule=!0;var jt=wt("../core-js/symbol/iterator"),Ct=Ot(jt),Mt=wt("../core-js/symbol"),Bt=Ot(Mt),St=typeof Bt.default=="function"&&typeof Ct.default=="symbol"?function(kt){return typeof kt}:function(kt){return kt&&typeof Bt.default=="function"&&kt.constructor===Bt.default&&kt!==Bt.default.prototype?"symbol":typeof kt};Zt.default=typeof Bt.default=="function"&&St(Ct.default)==="symbol"?function(kt){return kt===void 0?"undefined":St(kt)}:function(kt){return kt&&typeof Bt.default=="function"&&kt.constructor===Bt.default&&kt!==Bt.default.prototype?"symbol":kt===void 0?"undefined":St(kt)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(wt,Qt,Zt){Qt.exports=wt("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(wt,Qt,Zt){"use strict";function Ot(ot){var ut=ot.length;if(ut%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ct=ot.indexOf("=");return ct===-1&&(ct=ut),[ct,ct===ut?0:4-ct%4]}function jt(ot){var ut=Ot(ot),ct=ut[0],ft=ut[1];return 3*(ct+ft)/4-ft}function Ct(ot,ut,ct){return 3*(ut+ct)/4-ct}function Mt(ot){for(var ut,ct=Ot(ot),ft=ct[0],gt=ct[1],Lt=new yt(Ct(ot,ft,gt)),Rt=0,Ut=gt>0?ft-4:ft,Nt=0;Nt<Ut;Nt+=4)ut=Dt[ot.charCodeAt(Nt)]<<18|Dt[ot.charCodeAt(Nt+1)]<<12|Dt[ot.charCodeAt(Nt+2)]<<6|Dt[ot.charCodeAt(Nt+3)],Lt[Rt++]=ut>>16&255,Lt[Rt++]=ut>>8&255,Lt[Rt++]=255&ut;return gt===2&&(ut=Dt[ot.charCodeAt(Nt)]<<2|Dt[ot.charCodeAt(Nt+1)]>>4,Lt[Rt++]=255&ut),gt===1&&(ut=Dt[ot.charCodeAt(Nt)]<<10|Dt[ot.charCodeAt(Nt+1)]<<4|Dt[ot.charCodeAt(Nt+2)]>>2,Lt[Rt++]=ut>>8&255,Lt[Rt++]=255&ut),Lt}function Bt(ot){return xt[ot>>18&63]+xt[ot>>12&63]+xt[ot>>6&63]+xt[63&ot]}function St(ot,ut,ct){for(var ft,gt=[],Lt=ut;Lt<ct;Lt+=3)ft=(ot[Lt]<<16&16711680)+(ot[Lt+1]<<8&65280)+(255&ot[Lt+2]),gt.push(Bt(ft));return gt.join("")}function kt(ot){for(var ut,ct=ot.length,ft=ct%3,gt=[],Lt=0,Rt=ct-ft;Lt<Rt;Lt+=16383)gt.push(St(ot,Lt,Lt+16383>Rt?Rt:Lt+16383));return ft===1?(ut=ot[ct-1],gt.push(xt[ut>>2]+xt[ut<<4&63]+"==")):ft===2&&(ut=(ot[ct-2]<<8)+ot[ct-1],gt.push(xt[ut>>10]+xt[ut>>4&63]+xt[ut<<2&63]+"=")),gt.join("")}Zt.byteLength=jt,Zt.toByteArray=Mt,Zt.fromByteArray=kt;for(var xt=[],Dt=[],yt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,lt=et.length;tt<lt;++tt)xt[tt]=et[tt],Dt[et.charCodeAt(tt)]=tt;Dt[45]=62,Dt[95]=63},{}],35:[function(wt,Qt,Zt){(function(Ot,jt,Ct){Qt!==void 0&&Qt.exports?Qt.exports=Ct():typeof ee=="function"&&ee.amd?ee("bowser",Ct):Ot.bowser=Ct()})(this,0,function(){function Ot(Dt){function yt(Jt){var re=Dt.match(Jt);return re&&re.length>1&&re[1]||""}function et(Jt){var re=Dt.match(Jt);return re&&re.length>1&&re[2]||""}var tt,lt=yt(/(ipod|iphone|ipad)/i).toLowerCase(),ot=/like android/i.test(Dt),ut=!ot&&/android/i.test(Dt),ct=/nexus\s*[0-6]\s*/i.test(Dt),ft=!ct&&/nexus\s*[0-9]+/i.test(Dt),gt=/CrOS/.test(Dt),Lt=/silk/i.test(Dt),Rt=/sailfish/i.test(Dt),Ut=/tizen/i.test(Dt),Nt=/(web|hpw)os/i.test(Dt),qt=/windows phone/i.test(Dt),te=(/SamsungBrowser/i.test(Dt),!qt&&/windows/i.test(Dt)),Vt=!lt&&!Lt&&/macintosh/i.test(Dt),de=!ut&&!Rt&&!Ut&&!Nt&&/linux/i.test(Dt),ge=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),be=yt(/version\/(\d+(\.\d+)?)/i),Ne=/tablet/i.test(Dt)&&!/tablet pc/i.test(Dt),Ge=!Ne&&/[^-]mobi/i.test(Dt),Pe=/xbox/i.test(Dt);/opera/i.test(Dt)?tt={name:"Opera",opera:kt,version:be||yt(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(Dt)?tt={name:"Opera",opera:kt,version:yt(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||be}:/SamsungBrowser/i.test(Dt)?tt={name:"Samsung Internet for Android",samsungBrowser:kt,version:be||yt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(Dt)?tt={name:"Opera Coast",coast:kt,version:be||yt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(Dt)?tt={name:"Yandex Browser",yandexbrowser:kt,version:be||yt(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(Dt)?tt={name:"UC Browser",ucbrowser:kt,version:yt(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(Dt)?tt={name:"Maxthon",maxthon:kt,version:yt(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(Dt)?tt={name:"Epiphany",epiphany:kt,version:yt(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(Dt)?tt={name:"Puffin",puffin:kt,version:yt(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(Dt)?tt={name:"Sleipnir",sleipnir:kt,version:yt(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(Dt)?tt={name:"K-Meleon",kMeleon:kt,version:yt(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:qt?(tt={name:"Windows Phone",osname:"Windows Phone",windowsphone:kt},ge?(tt.msedge=kt,tt.version=ge):(tt.msie=kt,tt.version=yt(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(Dt)?tt={name:"Internet Explorer",msie:kt,version:yt(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:gt?tt={name:"Chrome",osname:"Chrome OS",chromeos:kt,chromeBook:kt,chrome:kt,version:yt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(Dt)?tt={name:"Microsoft Edge",msedge:kt,version:ge}:/vivaldi/i.test(Dt)?tt={name:"Vivaldi",vivaldi:kt,version:yt(/vivaldi\/(\d+(\.\d+)?)/i)||be}:Rt?tt={name:"Sailfish",osname:"Sailfish OS",sailfish:kt,version:yt(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(Dt)?tt={name:"SeaMonkey",seamonkey:kt,version:yt(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(Dt)?(tt={name:"Firefox",firefox:kt,version:yt(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(Dt)&&(tt.firefoxos=kt,tt.osname="Firefox OS")):Lt?tt={name:"Amazon Silk",silk:kt,version:yt(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(Dt)?tt={name:"PhantomJS",phantom:kt,version:yt(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(Dt)?tt={name:"SlimerJS",slimer:kt,version:yt(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(Dt)||/rim\stablet/i.test(Dt)?tt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:kt,version:be||yt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Nt?(tt={name:"WebOS",osname:"WebOS",webos:kt,version:be||yt(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(Dt)&&(tt.touchpad=kt)):/bada/i.test(Dt)?tt={name:"Bada",osname:"Bada",bada:kt,version:yt(/dolfin\/(\d+(\.\d+)?)/i)}:Ut?tt={name:"Tizen",osname:"Tizen",tizen:kt,version:yt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||be}:/qupzilla/i.test(Dt)?tt={name:"QupZilla",qupzilla:kt,version:yt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||be}:/chromium/i.test(Dt)?tt={name:"Chromium",chromium:kt,version:yt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||be}:/chrome|crios|crmo/i.test(Dt)?tt={name:"Chrome",chrome:kt,version:yt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:be}:/safari|applewebkit/i.test(Dt)?(tt={name:"Safari",safari:kt},be&&(tt.version=be)):lt?(tt={name:lt=="iphone"?"iPhone":lt=="ipad"?"iPad":"iPod"},be&&(tt.version=be)):tt=/googlebot/i.test(Dt)?{name:"Googlebot",googlebot:kt,version:yt(/googlebot\/(\d+(\.\d+))/i)||be}:{name:yt(/^(.*)\/(.*) /),version:et(/^(.*)\/(.*) /)},!tt.msedge&&/(apple)?webkit/i.test(Dt)?(/(apple)?webkit\/537\.36/i.test(Dt)?(tt.name=tt.name||"Blink",tt.blink=kt):(tt.name=tt.name||"Webkit",tt.webkit=kt),!tt.version&&be&&(tt.version=be)):!tt.opera&&/gecko\//i.test(Dt)&&(tt.name=tt.name||"Gecko",tt.gecko=kt,tt.version=tt.version||yt(/gecko\/(\d+(\.\d+)?)/i)),tt.windowsphone||!ut&&!tt.silk?!tt.windowsphone&<?(tt[lt]=kt,tt.ios=kt,tt.osname="iOS"):Vt?(tt.mac=kt,tt.osname="macOS"):Pe?(tt.xbox=kt,tt.osname="Xbox"):te?(tt.windows=kt,tt.osname="Windows"):de&&(tt.linux=kt,tt.osname="Linux"):(tt.android=kt,tt.osname="Android");var ze="";tt.windows?ze=function(Jt){switch(Jt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(yt(/Windows ((NT|XP)( \d\d?.\d)?)/i)):tt.windowsphone?ze=yt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(ze=yt(/Mac OS X (\d+([_\.\s]\d+)*)/i),ze=ze.replace(/[_\s]/g,".")):lt?(ze=yt(/os (\d+([_\s]\d+)*) like mac os x/i),ze=ze.replace(/[_\s]/g,".")):ut?ze=yt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?ze=yt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?ze=yt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?ze=yt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(ze=yt(/tizen[\/\s](\d+(\.\d+)*)/i)),ze&&(tt.osversion=ze);var he=!tt.windows&&ze.split(".")[0];return Ne||ft||lt=="ipad"||ut&&(he==3||he>=4&&!Ge)||tt.silk?tt.tablet=kt:(Ge||lt=="iphone"||lt=="ipod"||ut||ct||tt.blackberry||tt.webos||tt.bada)&&(tt.mobile=kt),tt.msedge||tt.msie&&tt.version>=10||tt.yandexbrowser&&tt.version>=15||tt.vivaldi&&tt.version>=1||tt.chrome&&tt.version>=20||tt.samsungBrowser&&tt.version>=4||tt.firefox&&tt.version>=20||tt.safari&&tt.version>=6||tt.opera&&tt.version>=10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]>=6||tt.blackberry&&tt.version>=10.1||tt.chromium&&tt.version>=20?tt.a=kt:tt.msie&&tt.version<10||tt.chrome&&tt.version<20||tt.firefox&&tt.version<20||tt.safari&&tt.version<6||tt.opera&&tt.version<10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]<6||tt.chromium&&tt.version<20?tt.c=kt:tt.x=kt,tt}function jt(Dt){return Dt.split(".").length}function Ct(Dt,yt){var et,tt=[];if(Array.prototype.map)return Array.prototype.map.call(Dt,yt);for(et=0;et<Dt.length;et++)tt.push(yt(Dt[et]));return tt}function Mt(Dt){for(var yt=Math.max(jt(Dt[0]),jt(Dt[1])),et=Ct(Dt,function(tt){var lt=yt-jt(tt);return tt+=new Array(lt+1).join(".0"),Ct(tt.split("."),function(ot){return new Array(20-ot.length).join("0")+ot}).reverse()});--yt>=0;){if(et[0][yt]>et[1][yt])return 1;if(et[0][yt]!==et[1][yt])return-1;if(yt===0)return 0}}function Bt(Dt,yt,et){var tt=xt;typeof yt=="string"&&(et=yt,yt=void 0),yt===void 0&&(yt=!1),et&&(tt=Ot(et));var lt=""+tt.version;for(var ot in Dt)if(Dt.hasOwnProperty(ot)&&tt[ot]){if(typeof Dt[ot]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ot+": "+String(Dt));return Mt([lt,Dt[ot]])<0}return yt}function St(Dt,yt,et){return!Bt(Dt,yt,et)}var kt=!0,xt=Ot(typeof navigator!="undefined"&&navigator.userAgent||"");return xt.test=function(Dt){for(var yt=0;yt<Dt.length;++yt){var et=Dt[yt];if(typeof et=="string"&&et in xt)return!0}return!1},xt.isUnsupportedBrowser=Bt,xt.compareVersions=Mt,xt.check=St,xt._detect=Ot,xt.detect=Ot,xt})},{}],36:[function(wt,Qt,Zt){},{}],37:[function(wt,Qt,Zt){function Ot(xt){if(xt&&!St(xt))throw new Error("Unknown encoding: "+xt)}function jt(xt){return xt.toString(this.encoding)}function Ct(xt){this.charReceived=xt.length%2,this.charLength=this.charReceived?2:0}function Mt(xt){this.charReceived=xt.length%3,this.charLength=this.charReceived?3:0}var Bt=wt("buffer").Buffer,St=Bt.isEncoding||function(xt){switch(xt&&xt.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},kt=Zt.StringDecoder=function(xt){switch(this.encoding=(xt||"utf8").toLowerCase().replace(/[-_]/,""),Ot(xt),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Ct;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Mt;break;default:return void(this.write=jt)}this.charBuffer=new Bt(6),this.charReceived=0,this.charLength=0};kt.prototype.write=function(xt){for(var Dt="";this.charLength;){var yt=xt.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:xt.length;if(xt.copy(this.charBuffer,this.charReceived,0,yt),this.charReceived+=yt,this.charReceived<this.charLength)return"";xt=xt.slice(yt,xt.length),Dt=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var tt=Dt.charCodeAt(Dt.length-1);if(!(tt>=55296&&tt<=56319)){if(this.charReceived=this.charLength=0,xt.length===0)return Dt;break}this.charLength+=this.surrogateSize,Dt=""}this.detectIncompleteChar(xt);var et=xt.length;this.charLength&&(xt.copy(this.charBuffer,0,xt.length-this.charReceived,et),et-=this.charReceived),Dt+=xt.toString(this.encoding,0,et);var et=Dt.length-1,tt=Dt.charCodeAt(et);if(tt>=55296&&tt<=56319){var lt=this.surrogateSize;return this.charLength+=lt,this.charReceived+=lt,this.charBuffer.copy(this.charBuffer,lt,0,lt),xt.copy(this.charBuffer,0,0,lt),Dt.substring(0,et)}return Dt},kt.prototype.detectIncompleteChar=function(xt){for(var Dt=xt.length>=3?3:xt.length;Dt>0;Dt--){var yt=xt[xt.length-Dt];if(Dt==1&&yt>>5==6){this.charLength=2;break}if(Dt<=2&&yt>>4==14){this.charLength=3;break}if(Dt<=3&&yt>>3==30){this.charLength=4;break}}this.charReceived=Dt},kt.prototype.end=function(xt){var Dt="";if(xt&&xt.length&&(Dt=this.write(xt)),this.charReceived){var yt=this.charReceived,et=this.charBuffer,tt=this.encoding;Dt+=et.slice(0,yt).toString(tt)}return Dt}},{buffer:38}],38:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(){return Mt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ct(Pt,Et){if(jt()<Et)throw new RangeError("Invalid typed array length");return Mt.TYPED_ARRAY_SUPPORT?(Pt=new Uint8Array(Et),Pt.__proto__=Mt.prototype):(Pt===null&&(Pt=new Mt(Et)),Pt.length=Et),Pt}function Mt(Pt,Et,$t){if(!(Mt.TYPED_ARRAY_SUPPORT||this instanceof Mt))return new Mt(Pt,Et,$t);if(typeof Pt=="number"){if(typeof Et=="string")throw new Error("If encoding is specified then the first argument must be a string");return xt(this,Pt)}return Bt(this,Pt,Et,$t)}function Bt(Pt,Et,$t,zt){if(typeof Et=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Et instanceof ArrayBuffer?et(Pt,Et,$t,zt):typeof Et=="string"?Dt(Pt,Et,$t):tt(Pt,Et)}function St(Pt){if(typeof Pt!="number")throw new TypeError('"size" argument must be a number');if(Pt<0)throw new RangeError('"size" argument must not be negative')}function kt(Pt,Et,$t,zt){return St(Et),Et<=0?Ct(Pt,Et):$t!==void 0?typeof zt=="string"?Ct(Pt,Et).fill($t,zt):Ct(Pt,Et).fill($t):Ct(Pt,Et)}function xt(Pt,Et){if(St(Et),Pt=Ct(Pt,Et<0?0:0|lt(Et)),!Mt.TYPED_ARRAY_SUPPORT)for(var $t=0;$t<Et;++$t)Pt[$t]=0;return Pt}function Dt(Pt,Et,$t){if(typeof $t=="string"&&$t!==""||($t="utf8"),!Mt.isEncoding($t))throw new TypeError('"encoding" must be a valid string encoding');var zt=0|ut(Et,$t);Pt=Ct(Pt,zt);var Gt=Pt.write(Et,$t);return Gt!==zt&&(Pt=Pt.slice(0,Gt)),Pt}function yt(Pt,Et){var $t=Et.length<0?0:0|lt(Et.length);Pt=Ct(Pt,$t);for(var zt=0;zt<$t;zt+=1)Pt[zt]=255&Et[zt];return Pt}function et(Pt,Et,$t,zt){if(Et.byteLength,$t<0||Et.byteLength<$t)throw new RangeError("'offset' is out of bounds");if(Et.byteLength<$t+(zt||0))throw new RangeError("'length' is out of bounds");return Et=$t===void 0&&zt===void 0?new Uint8Array(Et):zt===void 0?new Uint8Array(Et,$t):new Uint8Array(Et,$t,zt),Mt.TYPED_ARRAY_SUPPORT?(Pt=Et,Pt.__proto__=Mt.prototype):Pt=yt(Pt,Et),Pt}function tt(Pt,Et){if(Mt.isBuffer(Et)){var $t=0|lt(Et.length);return Pt=Ct(Pt,$t),Pt.length===0||Et.copy(Pt,0,0,$t),Pt}if(Et){if(typeof ArrayBuffer!="undefined"&&Et.buffer instanceof ArrayBuffer||"length"in Et)return typeof Et.length!="number"||Tt(Et.length)?Ct(Pt,0):yt(Pt,Et);if(Et.type==="Buffer"&&oe(Et.data))return yt(Pt,Et.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function lt(Pt){if(Pt>=jt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jt().toString(16)+" bytes");return 0|Pt}function ot(Pt){return+Pt!=Pt&&(Pt=0),Mt.alloc(+Pt)}function ut(Pt,Et){if(Mt.isBuffer(Pt))return Pt.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Pt)||Pt instanceof ArrayBuffer))return Pt.byteLength;typeof Pt!="string"&&(Pt=""+Pt);var $t=Pt.length;if($t===0)return 0;for(var zt=!1;;)switch(Et){case"ascii":case"latin1":case"binary":return $t;case"utf8":case"utf-8":case void 0:return _e(Pt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$t;case"hex":return $t>>>1;case"base64":return He(Pt).length;default:if(zt)return _e(Pt).length;Et=(""+Et).toLowerCase(),zt=!0}}function ct(Pt,Et,$t){var zt=!1;if((Et===void 0||Et<0)&&(Et=0),Et>this.length||(($t===void 0||$t>this.length)&&($t=this.length),$t<=0)||($t>>>=0,Et>>>=0,$t<=Et))return"";for(Pt||(Pt="utf8");;)switch(Pt){case"hex":return Pe(this,Et,$t);case"utf8":case"utf-8":return ge(this,Et,$t);case"ascii":return Ne(this,Et,$t);case"latin1":case"binary":return Ge(this,Et,$t);case"base64":return de(this,Et,$t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ze(this,Et,$t);default:if(zt)throw new TypeError("Unknown encoding: "+Pt);Pt=(Pt+"").toLowerCase(),zt=!0}}function ft(Pt,Et,$t){var zt=Pt[Et];Pt[Et]=Pt[$t],Pt[$t]=zt}function gt(Pt,Et,$t,zt,Gt){if(Pt.length===0)return-1;if(typeof $t=="string"?(zt=$t,$t=0):$t>2147483647?$t=2147483647:$t<-2147483648&&($t=-2147483648),$t=+$t,isNaN($t)&&($t=Gt?0:Pt.length-1),$t<0&&($t=Pt.length+$t),$t>=Pt.length){if(Gt)return-1;$t=Pt.length-1}else if($t<0){if(!Gt)return-1;$t=0}if(typeof Et=="string"&&(Et=Mt.from(Et,zt)),Mt.isBuffer(Et))return Et.length===0?-1:Lt(Pt,Et,$t,zt,Gt);if(typeof Et=="number")return Et&=255,Mt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Gt?Uint8Array.prototype.indexOf.call(Pt,Et,$t):Uint8Array.prototype.lastIndexOf.call(Pt,Et,$t):Lt(Pt,[Et],$t,zt,Gt);throw new TypeError("val must be string, number or Buffer")}function Lt(Pt,Et,$t,zt,Gt){function le(qe,En){return ye===1?qe[En]:qe.readUInt16BE(En*ye)}var ye=1,Ue=Pt.length,We=Et.length;if(zt!==void 0&&((zt=String(zt).toLowerCase())==="ucs2"||zt==="ucs-2"||zt==="utf16le"||zt==="utf-16le")){if(Pt.length<2||Et.length<2)return-1;ye=2,Ue/=2,We/=2,$t/=2}var Ee;if(Gt){var Ze=-1;for(Ee=$t;Ee<Ue;Ee++)if(le(Pt,Ee)===le(Et,Ze===-1?0:Ee-Ze)){if(Ze===-1&&(Ze=Ee),Ee-Ze+1===We)return Ze*ye}else Ze!==-1&&(Ee-=Ee-Ze),Ze=-1}else for($t+We>Ue&&($t=Ue-We),Ee=$t;Ee>=0;Ee--){for(var on=!0,nn=0;nn<We;nn++)if(le(Pt,Ee+nn)!==le(Et,nn)){on=!1;break}if(on)return Ee}return-1}function Rt(Pt,Et,$t,zt){$t=Number($t)||0;var Gt=Pt.length-$t;zt?(zt=Number(zt))>Gt&&(zt=Gt):zt=Gt;var le=Et.length;if(le%2!=0)throw new TypeError("Invalid hex string");zt>le/2&&(zt=le/2);for(var ye=0;ye<zt;++ye){var Ue=parseInt(Et.substr(2*ye,2),16);if(isNaN(Ue))return ye;Pt[$t+ye]=Ue}return ye}function Ut(Pt,Et,$t,zt){return ie(_e(Et,Pt.length-$t),Pt,$t,zt)}function Nt(Pt,Et,$t,zt){return ie(Le(Et),Pt,$t,zt)}function qt(Pt,Et,$t,zt){return Nt(Pt,Et,$t,zt)}function te(Pt,Et,$t,zt){return ie(He(Et),Pt,$t,zt)}function Vt(Pt,Et,$t,zt){return ie(Oe(Et,Pt.length-$t),Pt,$t,zt)}function de(Pt,Et,$t){return Et===0&&$t===Pt.length?At.fromByteArray(Pt):At.fromByteArray(Pt.slice(Et,$t))}function ge(Pt,Et,$t){$t=Math.min(Pt.length,$t);for(var zt=[],Gt=Et;Gt<$t;){var le=Pt[Gt],ye=null,Ue=le>239?4:le>223?3:le>191?2:1;if(Gt+Ue<=$t){var We,Ee,Ze,on;switch(Ue){case 1:le<128&&(ye=le);break;case 2:We=Pt[Gt+1],(192&We)==128&&(on=(31&le)<<6|63&We)>127&&(ye=on);break;case 3:We=Pt[Gt+1],Ee=Pt[Gt+2],(192&We)==128&&(192&Ee)==128&&(on=(15&le)<<12|(63&We)<<6|63&Ee)>2047&&(on<55296||on>57343)&&(ye=on);break;case 4:We=Pt[Gt+1],Ee=Pt[Gt+2],Ze=Pt[Gt+3],(192&We)==128&&(192&Ee)==128&&(192&Ze)==128&&(on=(15&le)<<18|(63&We)<<12|(63&Ee)<<6|63&Ze)>65535&&on<1114112&&(ye=on)}}ye===null?(ye=65533,Ue=1):ye>65535&&(ye-=65536,zt.push(ye>>>10&1023|55296),ye=56320|1023&ye),zt.push(ye),Gt+=Ue}return be(zt)}function be(Pt){var Et=Pt.length;if(Et<=_t)return String.fromCharCode.apply(String,Pt);for(var $t="",zt=0;zt<Et;)$t+=String.fromCharCode.apply(String,Pt.slice(zt,zt+=_t));return $t}function Ne(Pt,Et,$t){var zt="";$t=Math.min(Pt.length,$t);for(var Gt=Et;Gt<$t;++Gt)zt+=String.fromCharCode(127&Pt[Gt]);return zt}function Ge(Pt,Et,$t){var zt="";$t=Math.min(Pt.length,$t);for(var Gt=Et;Gt<$t;++Gt)zt+=String.fromCharCode(Pt[Gt]);return zt}function Pe(Pt,Et,$t){var zt=Pt.length;(!Et||Et<0)&&(Et=0),(!$t||$t<0||$t>zt)&&($t=zt);for(var Gt="",le=Et;le<$t;++le)Gt+=Ae(Pt[le]);return Gt}function ze(Pt,Et,$t){for(var zt=Pt.slice(Et,$t),Gt="",le=0;le<zt.length;le+=2)Gt+=String.fromCharCode(zt[le]+256*zt[le+1]);return Gt}function he(Pt,Et,$t){if(Pt%1!=0||Pt<0)throw new RangeError("offset is not uint");if(Pt+Et>$t)throw new RangeError("Trying to access beyond buffer length")}function Jt(Pt,Et,$t,zt,Gt,le){if(!Mt.isBuffer(Pt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Et>Gt||Et<le)throw new RangeError('"value" argument is out of bounds');if($t+zt>Pt.length)throw new RangeError("Index out of range")}function re(Pt,Et,$t,zt){Et<0&&(Et=65535+Et+1);for(var Gt=0,le=Math.min(Pt.length-$t,2);Gt<le;++Gt)Pt[$t+Gt]=(Et&255<<8*(zt?Gt:1-Gt))>>>8*(zt?Gt:1-Gt)}function se(Pt,Et,$t,zt){Et<0&&(Et=4294967295+Et+1);for(var Gt=0,le=Math.min(Pt.length-$t,4);Gt<le;++Gt)Pt[$t+Gt]=Et>>>8*(zt?Gt:3-Gt)&255}function pe(Pt,Et,$t,zt,Gt,le){if($t+zt>Pt.length)throw new RangeError("Index out of range");if($t<0)throw new RangeError("Index out of range")}function ue(Pt,Et,$t,zt,Gt){return Gt||pe(Pt,Et,$t,4,34028234663852886e22,-34028234663852886e22),Yt.write(Pt,Et,$t,zt,23,4),$t+4}function Re(Pt,Et,$t,zt,Gt){return Gt||pe(Pt,Et,$t,8,17976931348623157e292,-17976931348623157e292),Yt.write(Pt,Et,$t,zt,52,8),$t+8}function Fe(Pt){if(Pt=Qe(Pt).replace(It,""),Pt.length<2)return"";for(;Pt.length%4!=0;)Pt+="=";return Pt}function Qe(Pt){return Pt.trim?Pt.trim():Pt.replace(/^\s+|\s+$/g,"")}function Ae(Pt){return Pt<16?"0"+Pt.toString(16):Pt.toString(16)}function _e(Pt,Et){Et=Et||1/0;for(var $t,zt=Pt.length,Gt=null,le=[],ye=0;ye<zt;++ye){if(($t=Pt.charCodeAt(ye))>55295&&$t<57344){if(!Gt){if($t>56319){(Et-=3)>-1&&le.push(239,191,189);continue}if(ye+1===zt){(Et-=3)>-1&&le.push(239,191,189);continue}Gt=$t;continue}if($t<56320){(Et-=3)>-1&&le.push(239,191,189),Gt=$t;continue}$t=65536+(Gt-55296<<10|$t-56320)}else Gt&&(Et-=3)>-1&&le.push(239,191,189);if(Gt=null,$t<128){if((Et-=1)<0)break;le.push($t)}else if($t<2048){if((Et-=2)<0)break;le.push($t>>6|192,63&$t|128)}else if($t<65536){if((Et-=3)<0)break;le.push($t>>12|224,$t>>6&63|128,63&$t|128)}else{if(!($t<1114112))throw new Error("Invalid code point");if((Et-=4)<0)break;le.push($t>>18|240,$t>>12&63|128,$t>>6&63|128,63&$t|128)}}return le}function Le(Pt){for(var Et=[],$t=0;$t<Pt.length;++$t)Et.push(255&Pt.charCodeAt($t));return Et}function Oe(Pt,Et){for(var $t,zt,Gt,le=[],ye=0;ye<Pt.length&&!((Et-=2)<0);++ye)$t=Pt.charCodeAt(ye),zt=$t>>8,Gt=$t%256,le.push(Gt),le.push(zt);return le}function He(Pt){return At.toByteArray(Fe(Pt))}function ie(Pt,Et,$t,zt){for(var Gt=0;Gt<zt&&!(Gt+$t>=Et.length||Gt>=Pt.length);++Gt)Et[Gt+$t]=Pt[Gt];return Gt}function Tt(Pt){return Pt!==Pt}var At=wt("base64-js"),Yt=wt("ieee754"),oe=wt("isarray");Zt.Buffer=Mt,Zt.SlowBuffer=ot,Zt.INSPECT_MAX_BYTES=50,Mt.TYPED_ARRAY_SUPPORT=Ot.TYPED_ARRAY_SUPPORT!==void 0?Ot.TYPED_ARRAY_SUPPORT:function(){try{var Pt=new Uint8Array(1);return Pt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Pt.foo()===42&&typeof Pt.subarray=="function"&&Pt.subarray(1,1).byteLength===0}catch(Et){return!1}}(),Zt.kMaxLength=jt(),Mt.poolSize=8192,Mt._augment=function(Pt){return Pt.__proto__=Mt.prototype,Pt},Mt.from=function(Pt,Et,$t){return Bt(null,Pt,Et,$t)},Mt.TYPED_ARRAY_SUPPORT&&(Mt.prototype.__proto__=Uint8Array.prototype,Mt.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Mt[Symbol.species]===Mt&&Object.defineProperty(Mt,Symbol.species,{value:null,configurable:!0})),Mt.alloc=function(Pt,Et,$t){return kt(null,Pt,Et,$t)},Mt.allocUnsafe=function(Pt){return xt(null,Pt)},Mt.allocUnsafeSlow=function(Pt){return xt(null,Pt)},Mt.isBuffer=function(Pt){return!(Pt==null||!Pt._isBuffer)},Mt.compare=function(Pt,Et){if(!Mt.isBuffer(Pt)||!Mt.isBuffer(Et))throw new TypeError("Arguments must be Buffers");if(Pt===Et)return 0;for(var $t=Pt.length,zt=Et.length,Gt=0,le=Math.min($t,zt);Gt<le;++Gt)if(Pt[Gt]!==Et[Gt]){$t=Pt[Gt],zt=Et[Gt];break}return $t<zt?-1:zt<$t?1:0},Mt.isEncoding=function(Pt){switch(String(Pt).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Mt.concat=function(Pt,Et){if(!oe(Pt))throw new TypeError('"list" argument must be an Array of Buffers');if(Pt.length===0)return Mt.alloc(0);var $t;if(Et===void 0)for(Et=0,$t=0;$t<Pt.length;++$t)Et+=Pt[$t].length;var zt=Mt.allocUnsafe(Et),Gt=0;for($t=0;$t<Pt.length;++$t){var le=Pt[$t];if(!Mt.isBuffer(le))throw new TypeError('"list" argument must be an Array of Buffers');le.copy(zt,Gt),Gt+=le.length}return zt},Mt.byteLength=ut,Mt.prototype._isBuffer=!0,Mt.prototype.swap16=function(){var Pt=this.length;if(Pt%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Et=0;Et<Pt;Et+=2)ft(this,Et,Et+1);return this},Mt.prototype.swap32=function(){var Pt=this.length;if(Pt%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Et=0;Et<Pt;Et+=4)ft(this,Et,Et+3),ft(this,Et+1,Et+2);return this},Mt.prototype.swap64=function(){var Pt=this.length;if(Pt%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Et=0;Et<Pt;Et+=8)ft(this,Et,Et+7),ft(this,Et+1,Et+6),ft(this,Et+2,Et+5),ft(this,Et+3,Et+4);return this},Mt.prototype.toString=function(){var Pt=0|this.length;return Pt===0?"":arguments.length===0?ge(this,0,Pt):ct.apply(this,arguments)},Mt.prototype.equals=function(Pt){if(!Mt.isBuffer(Pt))throw new TypeError("Argument must be a Buffer");return this===Pt||Mt.compare(this,Pt)===0},Mt.prototype.inspect=function(){var Pt="",Et=Zt.INSPECT_MAX_BYTES;return this.length>0&&(Pt=this.toString("hex",0,Et).match(/.{2}/g).join(" "),this.length>Et&&(Pt+=" ... ")),"<Buffer "+Pt+">"},Mt.prototype.compare=function(Pt,Et,$t,zt,Gt){if(!Mt.isBuffer(Pt))throw new TypeError("Argument must be a Buffer");if(Et===void 0&&(Et=0),$t===void 0&&($t=Pt?Pt.length:0),zt===void 0&&(zt=0),Gt===void 0&&(Gt=this.length),Et<0||$t>Pt.length||zt<0||Gt>this.length)throw new RangeError("out of range index");if(zt>=Gt&&Et>=$t)return 0;if(zt>=Gt)return-1;if(Et>=$t)return 1;if(Et>>>=0,$t>>>=0,zt>>>=0,Gt>>>=0,this===Pt)return 0;for(var le=Gt-zt,ye=$t-Et,Ue=Math.min(le,ye),We=this.slice(zt,Gt),Ee=Pt.slice(Et,$t),Ze=0;Ze<Ue;++Ze)if(We[Ze]!==Ee[Ze]){le=We[Ze],ye=Ee[Ze];break}return le<ye?-1:ye<le?1:0},Mt.prototype.includes=function(Pt,Et,$t){return this.indexOf(Pt,Et,$t)!==-1},Mt.prototype.indexOf=function(Pt,Et,$t){return gt(this,Pt,Et,$t,!0)},Mt.prototype.lastIndexOf=function(Pt,Et,$t){return gt(this,Pt,Et,$t,!1)},Mt.prototype.write=function(Pt,Et,$t,zt){if(Et===void 0)zt="utf8",$t=this.length,Et=0;else if($t===void 0&&typeof Et=="string")zt=Et,$t=this.length,Et=0;else{if(!isFinite(Et))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Et|=0,isFinite($t)?($t|=0,zt===void 0&&(zt="utf8")):(zt=$t,$t=void 0)}var Gt=this.length-Et;if(($t===void 0||$t>Gt)&&($t=Gt),Pt.length>0&&($t<0||Et<0)||Et>this.length)throw new RangeError("Attempt to write outside buffer bounds");zt||(zt="utf8");for(var le=!1;;)switch(zt){case"hex":return Rt(this,Pt,Et,$t);case"utf8":case"utf-8":return Ut(this,Pt,Et,$t);case"ascii":return Nt(this,Pt,Et,$t);case"latin1":case"binary":return qt(this,Pt,Et,$t);case"base64":return te(this,Pt,Et,$t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt(this,Pt,Et,$t);default:if(le)throw new TypeError("Unknown encoding: "+zt);zt=(""+zt).toLowerCase(),le=!0}},Mt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _t=4096;Mt.prototype.slice=function(Pt,Et){var $t=this.length;Pt=~~Pt,Et=Et===void 0?$t:~~Et,Pt<0?(Pt+=$t)<0&&(Pt=0):Pt>$t&&(Pt=$t),Et<0?(Et+=$t)<0&&(Et=0):Et>$t&&(Et=$t),Et<Pt&&(Et=Pt);var zt;if(Mt.TYPED_ARRAY_SUPPORT)zt=this.subarray(Pt,Et),zt.__proto__=Mt.prototype;else{var Gt=Et-Pt;zt=new Mt(Gt,void 0);for(var le=0;le<Gt;++le)zt[le]=this[le+Pt]}return zt},Mt.prototype.readUIntLE=function(Pt,Et,$t){Pt|=0,Et|=0,$t||he(Pt,Et,this.length);for(var zt=this[Pt],Gt=1,le=0;++le<Et&&(Gt*=256);)zt+=this[Pt+le]*Gt;return zt},Mt.prototype.readUIntBE=function(Pt,Et,$t){Pt|=0,Et|=0,$t||he(Pt,Et,this.length);for(var zt=this[Pt+--Et],Gt=1;Et>0&&(Gt*=256);)zt+=this[Pt+--Et]*Gt;return zt},Mt.prototype.readUInt8=function(Pt,Et){return Et||he(Pt,1,this.length),this[Pt]},Mt.prototype.readUInt16LE=function(Pt,Et){return Et||he(Pt,2,this.length),this[Pt]|this[Pt+1]<<8},Mt.prototype.readUInt16BE=function(Pt,Et){return Et||he(Pt,2,this.length),this[Pt]<<8|this[Pt+1]},Mt.prototype.readUInt32LE=function(Pt,Et){return Et||he(Pt,4,this.length),(this[Pt]|this[Pt+1]<<8|this[Pt+2]<<16)+16777216*this[Pt+3]},Mt.prototype.readUInt32BE=function(Pt,Et){return Et||he(Pt,4,this.length),16777216*this[Pt]+(this[Pt+1]<<16|this[Pt+2]<<8|this[Pt+3])},Mt.prototype.readIntLE=function(Pt,Et,$t){Pt|=0,Et|=0,$t||he(Pt,Et,this.length);for(var zt=this[Pt],Gt=1,le=0;++le<Et&&(Gt*=256);)zt+=this[Pt+le]*Gt;return Gt*=128,zt>=Gt&&(zt-=Math.pow(2,8*Et)),zt},Mt.prototype.readIntBE=function(Pt,Et,$t){Pt|=0,Et|=0,$t||he(Pt,Et,this.length);for(var zt=Et,Gt=1,le=this[Pt+--zt];zt>0&&(Gt*=256);)le+=this[Pt+--zt]*Gt;return Gt*=128,le>=Gt&&(le-=Math.pow(2,8*Et)),le},Mt.prototype.readInt8=function(Pt,Et){return Et||he(Pt,1,this.length),128&this[Pt]?-1*(255-this[Pt]+1):this[Pt]},Mt.prototype.readInt16LE=function(Pt,Et){Et||he(Pt,2,this.length);var $t=this[Pt]|this[Pt+1]<<8;return 32768&$t?4294901760|$t:$t},Mt.prototype.readInt16BE=function(Pt,Et){Et||he(Pt,2,this.length);var $t=this[Pt+1]|this[Pt]<<8;return 32768&$t?4294901760|$t:$t},Mt.prototype.readInt32LE=function(Pt,Et){return Et||he(Pt,4,this.length),this[Pt]|this[Pt+1]<<8|this[Pt+2]<<16|this[Pt+3]<<24},Mt.prototype.readInt32BE=function(Pt,Et){return Et||he(Pt,4,this.length),this[Pt]<<24|this[Pt+1]<<16|this[Pt+2]<<8|this[Pt+3]},Mt.prototype.readFloatLE=function(Pt,Et){return Et||he(Pt,4,this.length),Yt.read(this,Pt,!0,23,4)},Mt.prototype.readFloatBE=function(Pt,Et){return Et||he(Pt,4,this.length),Yt.read(this,Pt,!1,23,4)},Mt.prototype.readDoubleLE=function(Pt,Et){return Et||he(Pt,8,this.length),Yt.read(this,Pt,!0,52,8)},Mt.prototype.readDoubleBE=function(Pt,Et){return Et||he(Pt,8,this.length),Yt.read(this,Pt,!1,52,8)},Mt.prototype.writeUIntLE=function(Pt,Et,$t,zt){Pt=+Pt,Et|=0,$t|=0,!zt&&Jt(this,Pt,Et,$t,Math.pow(2,8*$t)-1,0);var Gt=1,le=0;for(this[Et]=255&Pt;++le<$t&&(Gt*=256);)this[Et+le]=Pt/Gt&255;return Et+$t},Mt.prototype.writeUIntBE=function(Pt,Et,$t,zt){Pt=+Pt,Et|=0,$t|=0,!zt&&Jt(this,Pt,Et,$t,Math.pow(2,8*$t)-1,0);var Gt=$t-1,le=1;for(this[Et+Gt]=255&Pt;--Gt>=0&&(le*=256);)this[Et+Gt]=Pt/le&255;return Et+$t},Mt.prototype.writeUInt8=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,1,255,0),Mt.TYPED_ARRAY_SUPPORT||(Pt=Math.floor(Pt)),this[Et]=255&Pt,Et+1},Mt.prototype.writeUInt16LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,65535,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=255&Pt,this[Et+1]=Pt>>>8):re(this,Pt,Et,!0),Et+2},Mt.prototype.writeUInt16BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,65535,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>8,this[Et+1]=255&Pt):re(this,Pt,Et,!1),Et+2},Mt.prototype.writeUInt32LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,4294967295,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et+3]=Pt>>>24,this[Et+2]=Pt>>>16,this[Et+1]=Pt>>>8,this[Et]=255&Pt):se(this,Pt,Et,!0),Et+4},Mt.prototype.writeUInt32BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,4294967295,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>24,this[Et+1]=Pt>>>16,this[Et+2]=Pt>>>8,this[Et+3]=255&Pt):se(this,Pt,Et,!1),Et+4},Mt.prototype.writeIntLE=function(Pt,Et,$t,zt){if(Pt=+Pt,Et|=0,!zt){var Gt=Math.pow(2,8*$t-1);Jt(this,Pt,Et,$t,Gt-1,-Gt)}var le=0,ye=1,Ue=0;for(this[Et]=255&Pt;++le<$t&&(ye*=256);)Pt<0&&Ue===0&&this[Et+le-1]!==0&&(Ue=1),this[Et+le]=(Pt/ye>>0)-Ue&255;return Et+$t},Mt.prototype.writeIntBE=function(Pt,Et,$t,zt){if(Pt=+Pt,Et|=0,!zt){var Gt=Math.pow(2,8*$t-1);Jt(this,Pt,Et,$t,Gt-1,-Gt)}var le=$t-1,ye=1,Ue=0;for(this[Et+le]=255&Pt;--le>=0&&(ye*=256);)Pt<0&&Ue===0&&this[Et+le+1]!==0&&(Ue=1),this[Et+le]=(Pt/ye>>0)-Ue&255;return Et+$t},Mt.prototype.writeInt8=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,1,127,-128),Mt.TYPED_ARRAY_SUPPORT||(Pt=Math.floor(Pt)),Pt<0&&(Pt=255+Pt+1),this[Et]=255&Pt,Et+1},Mt.prototype.writeInt16LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,32767,-32768),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=255&Pt,this[Et+1]=Pt>>>8):re(this,Pt,Et,!0),Et+2},Mt.prototype.writeInt16BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,32767,-32768),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>8,this[Et+1]=255&Pt):re(this,Pt,Et,!1),Et+2},Mt.prototype.writeInt32LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,2147483647,-2147483648),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=255&Pt,this[Et+1]=Pt>>>8,this[Et+2]=Pt>>>16,this[Et+3]=Pt>>>24):se(this,Pt,Et,!0),Et+4},Mt.prototype.writeInt32BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,2147483647,-2147483648),Pt<0&&(Pt=4294967295+Pt+1),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>24,this[Et+1]=Pt>>>16,this[Et+2]=Pt>>>8,this[Et+3]=255&Pt):se(this,Pt,Et,!1),Et+4},Mt.prototype.writeFloatLE=function(Pt,Et,$t){return ue(this,Pt,Et,!0,$t)},Mt.prototype.writeFloatBE=function(Pt,Et,$t){return ue(this,Pt,Et,!1,$t)},Mt.prototype.writeDoubleLE=function(Pt,Et,$t){return Re(this,Pt,Et,!0,$t)},Mt.prototype.writeDoubleBE=function(Pt,Et,$t){return Re(this,Pt,Et,!1,$t)},Mt.prototype.copy=function(Pt,Et,$t,zt){if($t||($t=0),zt||zt===0||(zt=this.length),Et>=Pt.length&&(Et=Pt.length),Et||(Et=0),zt>0&&zt<$t&&(zt=$t),zt===$t||Pt.length===0||this.length===0)return 0;if(Et<0)throw new RangeError("targetStart out of bounds");if($t<0||$t>=this.length)throw new RangeError("sourceStart out of bounds");if(zt<0)throw new RangeError("sourceEnd out of bounds");zt>this.length&&(zt=this.length),Pt.length-Et<zt-$t&&(zt=Pt.length-Et+$t);var Gt,le=zt-$t;if(this===Pt&&$t<Et&&Et<zt)for(Gt=le-1;Gt>=0;--Gt)Pt[Gt+Et]=this[Gt+$t];else if(le<1e3||!Mt.TYPED_ARRAY_SUPPORT)for(Gt=0;Gt<le;++Gt)Pt[Gt+Et]=this[Gt+$t];else Uint8Array.prototype.set.call(Pt,this.subarray($t,$t+le),Et);return le},Mt.prototype.fill=function(Pt,Et,$t,zt){if(typeof Pt=="string"){if(typeof Et=="string"?(zt=Et,Et=0,$t=this.length):typeof $t=="string"&&(zt=$t,$t=this.length),Pt.length===1){var Gt=Pt.charCodeAt(0);Gt<256&&(Pt=Gt)}if(zt!==void 0&&typeof zt!="string")throw new TypeError("encoding must be a string");if(typeof zt=="string"&&!Mt.isEncoding(zt))throw new TypeError("Unknown encoding: "+zt)}else typeof Pt=="number"&&(Pt&=255);if(Et<0||this.length<Et||this.length<$t)throw new RangeError("Out of range index");if($t<=Et)return this;Et>>>=0,$t=$t===void 0?this.length:$t>>>0,Pt||(Pt=0);var le;if(typeof Pt=="number")for(le=Et;le<$t;++le)this[le]=Pt;else{var ye=Mt.isBuffer(Pt)?Pt:_e(new Mt(Pt,zt).toString()),Ue=ye.length;for(le=0;le<$t-Et;++le)this[le+Et]=ye[le%Ue]}return this};var It=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(wt,Qt,Zt){Qt.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(wt,Qt,Zt){"use strict";var Ot=function(){this.buffer=[],this.fns=[]};Ot.prototype.push=function(Ct,Mt){if(this.fns.length)return this.fns.shift()(null,Ct);var Bt={data:Ct,priority:Mt},St=jt(this.buffer,Bt,function(kt){return kt.priority});this.buffer.splice(St,0,Bt)},Ot.prototype.next=function(){var Ct=this;return function(Mt){if(Ct.buffer.length)return Mt(null,Ct.buffer.pop().data);Ct.fns.push(Mt)}};var jt=function(Ct,Mt,Bt){Mt=Bt(Mt);for(var St=0,kt=Ct?Ct.length:St;St<kt;){var xt=St+kt>>>1;Bt(Ct[xt])<Mt?St=xt+1:kt=xt}return St};Qt.exports=Ot},{}],41:[function(wt,Qt,Zt){function Ot(et){var tt=this,lt=yt.call(arguments,1);return new Promise(function(ot,ut){function ct(Lt){var Rt;try{Rt=et.next(Lt)}catch(Ut){return ut(Ut)}gt(Rt)}function ft(Lt){var Rt;try{Rt=et.throw(Lt)}catch(Ut){return ut(Ut)}gt(Rt)}function gt(Lt){if(Lt.done)return ot(Lt.value);var Rt=jt.call(tt,Lt.value);return Rt&&St(Rt)?Rt.then(ct,ft):ft(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(Lt.value)+'"'))}if(typeof et=="function"&&(et=et.apply(tt,lt)),!et||typeof et.next!="function")return ot(et);ct()})}function jt(et){return et&&(St(et)?et:xt(et)||kt(et)?Ot.call(this,et):typeof et=="function"?Ct.call(this,et):Array.isArray(et)?Mt.call(this,et):Dt(et)?Bt.call(this,et):et)}function Ct(et){var tt=this;return new Promise(function(lt,ot){et.call(tt,function(ut,ct){if(ut)return ot(ut);arguments.length>2&&(ct=yt.call(arguments,1)),lt(ct)})})}function Mt(et){return Promise.all(et.map(jt,this))}function Bt(et){for(var tt=new et.constructor,lt=Object.keys(et),ot=[],ut=0;ut<lt.length;ut++){var ct=lt[ut],ft=jt.call(this,et[ct]);ft&&St(ft)?function(gt,Lt){tt[Lt]=void 0,ot.push(gt.then(function(Rt){tt[Lt]=Rt}))}(ft,ct):tt[ct]=et[ct]}return Promise.all(ot).then(function(){return tt})}function St(et){return typeof et.then=="function"}function kt(et){return typeof et.next=="function"&&typeof et.throw=="function"}function xt(et){var tt=et.constructor;return!!tt&&(tt.name==="GeneratorFunction"||tt.displayName==="GeneratorFunction"||kt(tt.prototype))}function Dt(et){return Object==et.constructor}var yt=Array.prototype.slice;Qt.exports=Ot.default=Ot.co=Ot,Ot.wrap=function(et){function tt(){return Ot.call(this,et.apply(this,arguments))}return tt.__generatorFunction__=et,tt}},{}],42:[function(wt,Qt,Zt){Qt.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(wt,Qt,Zt){"use strict";function Ot(Mt,Bt){if(!(this instanceof Ot))return new Ot(Mt,Bt);this.src=Mt,this._withAccess=Bt}function jt(Mt,Bt){return Mt[Bt]===void 0&&Mt.__lookupGetter__(Bt)===void 0&&Mt.__lookupSetter__(Bt)===void 0}var Ct=Array.prototype.slice;Qt.exports=Ot,Ot.prototype.withAccess=function(Mt){return this._withAccess=Mt!==!1,this},Ot.prototype.pick=function(Mt){return Array.isArray(Mt)||(Mt=Ct.call(arguments)),Mt.length&&(this.keys=Mt),this},Ot.prototype.to=function(Mt){if(Mt=Mt||{},!this.src)return Mt;var Bt=this.keys||Object.keys(this.src);if(!this._withAccess){for(var St=0;St<Bt.length;St++)kt=Bt[St],Mt[kt]===void 0&&(Mt[kt]=this.src[kt]);return Mt}for(var St=0;St<Bt.length;St++){var kt=Bt[St];if(jt(Mt,kt)){var xt=this.src.__lookupGetter__(kt),Dt=this.src.__lookupSetter__(kt);xt&&Mt.__defineGetter__(kt,xt),Dt&&Mt.__defineSetter__(kt,Dt),xt||Dt||(Mt[kt]=this.src[kt])}}return Mt},Ot.prototype.toCover=function(Mt){for(var Bt=this.keys||Object.keys(this.src),St=0;St<Bt.length;St++){var kt=Bt[St];delete Mt[kt];var xt=this.src.__lookupGetter__(kt),Dt=this.src.__lookupSetter__(kt);xt&&Mt.__defineGetter__(kt,xt),Dt&&Mt.__defineSetter__(kt,Dt),xt||Dt||(Mt[kt]=this.src[kt])}},Ot.prototype.override=Ot.prototype.toCover,Ot.prototype.and=function(Mt){var Bt={};return this.to(Bt),this.src=Mt,this.to(Bt),this.src=Bt,this}},{}],44:[function(wt,Qt,Zt){wt("../../modules/es6.string.iterator"),wt("../../modules/es6.array.from"),Qt.exports=wt("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(wt,Qt,Zt){var Ot=wt("../../modules/_core"),jt=Ot.JSON||(Ot.JSON={stringify:JSON.stringify});Qt.exports=function(Ct){return jt.stringify.apply(jt,arguments)}},{"../../modules/_core":65}],46:[function(wt,Qt,Zt){wt("../../modules/es6.object.assign"),Qt.exports=wt("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(wt,Qt,Zt){wt("../../modules/es6.object.create");var Ot=wt("../../modules/_core").Object;Qt.exports=function(jt,Ct){return Ot.create(jt,Ct)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(wt,Qt,Zt){wt("../../modules/es6.object.define-property");var Ot=wt("../../modules/_core").Object;Qt.exports=function(jt,Ct,Mt){return Ot.defineProperty(jt,Ct,Mt)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(wt,Qt,Zt){wt("../../modules/es6.object.get-own-property-names");var Ot=wt("../../modules/_core").Object;Qt.exports=function(jt){return Ot.getOwnPropertyNames(jt)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(wt,Qt,Zt){wt("../../modules/es6.object.get-prototype-of"),Qt.exports=wt("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(wt,Qt,Zt){wt("../../modules/es6.object.keys"),Qt.exports=wt("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(wt,Qt,Zt){wt("../modules/es6.object.to-string"),wt("../modules/es6.string.iterator"),wt("../modules/web.dom.iterable"),wt("../modules/es6.promise"),wt("../modules/es7.promise.finally"),wt("../modules/es7.promise.try"),Qt.exports=wt("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(wt,Qt,Zt){wt("../modules/web.immediate"),Qt.exports=wt("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(wt,Qt,Zt){wt("../../modules/es6.string.from-code-point"),Qt.exports=wt("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(wt,Qt,Zt){wt("../../modules/es6.function.has-instance"),Qt.exports=wt("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(wt,Qt,Zt){wt("../../modules/es6.symbol"),wt("../../modules/es6.object.to-string"),wt("../../modules/es7.symbol.async-iterator"),wt("../../modules/es7.symbol.observable"),Qt.exports=wt("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(wt,Qt,Zt){wt("../../modules/es6.string.iterator"),wt("../../modules/web.dom.iterable"),Qt.exports=wt("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(wt,Qt,Zt){Qt.exports=function(Ot){if(typeof Ot!="function")throw TypeError(Ot+" is not a function!");return Ot}},{}],59:[function(wt,Qt,Zt){Qt.exports=function(){}},{}],60:[function(wt,Qt,Zt){Qt.exports=function(Ot,jt,Ct,Mt){if(!(Ot instanceof jt)||Mt!==void 0&&Mt in Ot)throw TypeError(Ct+": incorrect invocation!");return Ot}},{}],61:[function(wt,Qt,Zt){var Ot=wt("./_is-object");Qt.exports=function(jt){if(!Ot(jt))throw TypeError(jt+" is not an object!");return jt}},{"./_is-object":85}],62:[function(wt,Qt,Zt){var Ot=wt("./_to-iobject"),jt=wt("./_to-length"),Ct=wt("./_to-absolute-index");Qt.exports=function(Mt){return function(Bt,St,kt){var xt,Dt=Ot(Bt),yt=jt(Dt.length),et=Ct(kt,yt);if(Mt&&St!=St){for(;yt>et;)if((xt=Dt[et++])!=xt)return!0}else for(;yt>et;et++)if((Mt||et in Dt)&&Dt[et]===St)return Mt||et||0;return!Mt&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(wt,Qt,Zt){var Ot=wt("./_cof"),jt=wt("./_wks")("toStringTag"),Ct=Ot(function(){return arguments}())=="Arguments",Mt=function(Bt,St){try{return Bt[St]}catch(kt){}};Qt.exports=function(Bt){var St,kt,xt;return Bt===void 0?"Undefined":Bt===null?"Null":typeof(kt=Mt(St=Object(Bt),jt))=="string"?kt:Ct?Ot(St):(xt=Ot(St))=="Object"&&typeof St.callee=="function"?"Arguments":xt}},{"./_cof":64,"./_wks":131}],64:[function(wt,Qt,Zt){var Ot={}.toString;Qt.exports=function(jt){return Ot.call(jt).slice(8,-1)}},{}],65:[function(wt,Qt,Zt){var Ot=Qt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=Ot)},{}],66:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_object-dp"),jt=wt("./_property-desc");Qt.exports=function(Ct,Mt,Bt){Mt in Ct?Ot.f(Ct,Mt,jt(0,Bt)):Ct[Mt]=Bt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(wt,Qt,Zt){var Ot=wt("./_a-function");Qt.exports=function(jt,Ct,Mt){if(Ot(jt),Ct===void 0)return jt;switch(Mt){case 1:return function(Bt){return jt.call(Ct,Bt)};case 2:return function(Bt,St){return jt.call(Ct,Bt,St)};case 3:return function(Bt,St,kt){return jt.call(Ct,Bt,St,kt)}}return function(){return jt.apply(Ct,arguments)}}},{"./_a-function":58}],68:[function(wt,Qt,Zt){Qt.exports=function(Ot){if(Ot==null)throw TypeError("Can't call method on "+Ot);return Ot}},{}],69:[function(wt,Qt,Zt){Qt.exports=!wt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(wt,Qt,Zt){var Ot=wt("./_is-object"),jt=wt("./_global").document,Ct=Ot(jt)&&Ot(jt.createElement);Qt.exports=function(Mt){return Ct?jt.createElement(Mt):{}}},{"./_global":76,"./_is-object":85}],71:[function(wt,Qt,Zt){Qt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(wt,Qt,Zt){var Ot=wt("./_object-keys"),jt=wt("./_object-gops"),Ct=wt("./_object-pie");Qt.exports=function(Mt){var Bt=Ot(Mt),St=jt.f;if(St)for(var kt,xt=St(Mt),Dt=Ct.f,yt=0;xt.length>yt;)Dt.call(Mt,kt=xt[yt++])&&Bt.push(kt);return Bt}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(wt,Qt,Zt){var Ot=wt("./_global"),jt=wt("./_core"),Ct=wt("./_ctx"),Mt=wt("./_hide"),Bt=wt("./_has"),St=function(kt,xt,Dt){var yt,et,tt,lt=kt&St.F,ot=kt&St.G,ut=kt&St.S,ct=kt&St.P,ft=kt&St.B,gt=kt&St.W,Lt=ot?jt:jt[xt]||(jt[xt]={}),Rt=Lt.prototype,Ut=ot?Ot:ut?Ot[xt]:(Ot[xt]||{}).prototype;ot&&(Dt=xt);for(yt in Dt)(et=!lt&&Ut&&Ut[yt]!==void 0)&&Bt(Lt,yt)||(tt=et?Ut[yt]:Dt[yt],Lt[yt]=ot&&typeof Ut[yt]!="function"?Dt[yt]:ft&&et?Ct(tt,Ot):gt&&Ut[yt]==tt?function(Nt){var qt=function(te,Vt,de){if(this instanceof Nt){switch(arguments.length){case 0:return new Nt;case 1:return new Nt(te);case 2:return new Nt(te,Vt)}return new Nt(te,Vt,de)}return Nt.apply(this,arguments)};return qt.prototype=Nt.prototype,qt}(tt):ct&&typeof tt=="function"?Ct(Function.call,tt):tt,ct&&((Lt.virtual||(Lt.virtual={}))[yt]=tt,kt&St.R&&Rt&&!Rt[yt]&&Mt(Rt,yt,tt)))};St.F=1,St.G=2,St.S=4,St.P=8,St.B=16,St.W=32,St.U=64,St.R=128,Qt.exports=St},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(wt,Qt,Zt){Qt.exports=function(Ot){try{return!!Ot()}catch(jt){return!0}}},{}],75:[function(wt,Qt,Dt){var Ot=wt("./_ctx"),jt=wt("./_iter-call"),Ct=wt("./_is-array-iter"),Mt=wt("./_an-object"),Bt=wt("./_to-length"),St=wt("./core.get-iterator-method"),kt={},xt={},Dt=Qt.exports=function(yt,et,tt,lt,ot){var ut,ct,ft,gt,Lt=ot?function(){return yt}:St(yt),Rt=Ot(tt,lt,et?2:1),Ut=0;if(typeof Lt!="function")throw TypeError(yt+" is not iterable!");if(Ct(Lt)){for(ut=Bt(yt.length);ut>Ut;Ut++)if((gt=et?Rt(Mt(ct=yt[Ut])[0],ct[1]):Rt(yt[Ut]))===kt||gt===xt)return gt}else for(ft=Lt.call(yt);!(ct=ft.next()).done;)if((gt=jt(ft,Rt,ct.value,et))===kt||gt===xt)return gt};Dt.BREAK=kt,Dt.RETURN=xt},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(wt,Qt,Zt){var Ot=Qt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Ot)},{}],77:[function(wt,Qt,Zt){var Ot={}.hasOwnProperty;Qt.exports=function(jt,Ct){return Ot.call(jt,Ct)}},{}],78:[function(wt,Qt,Zt){var Ot=wt("./_object-dp"),jt=wt("./_property-desc");Qt.exports=wt("./_descriptors")?function(Ct,Mt,Bt){return Ot.f(Ct,Mt,jt(1,Bt))}:function(Ct,Mt,Bt){return Ct[Mt]=Bt,Ct}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(wt,Qt,Zt){var Ot=wt("./_global").document;Qt.exports=Ot&&Ot.documentElement},{"./_global":76}],80:[function(wt,Qt,Zt){Qt.exports=!wt("./_descriptors")&&!wt("./_fails")(function(){return Object.defineProperty(wt("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(wt,Qt,Zt){Qt.exports=function(Ot,jt,Ct){var Mt=Ct===void 0;switch(jt.length){case 0:return Mt?Ot():Ot.call(Ct);case 1:return Mt?Ot(jt[0]):Ot.call(Ct,jt[0]);case 2:return Mt?Ot(jt[0],jt[1]):Ot.call(Ct,jt[0],jt[1]);case 3:return Mt?Ot(jt[0],jt[1],jt[2]):Ot.call(Ct,jt[0],jt[1],jt[2]);case 4:return Mt?Ot(jt[0],jt[1],jt[2],jt[3]):Ot.call(Ct,jt[0],jt[1],jt[2],jt[3])}return Ot.apply(Ct,jt)}},{}],82:[function(wt,Qt,Zt){var Ot=wt("./_cof");Qt.exports=Object("z").propertyIsEnumerable(0)?Object:function(jt){return Ot(jt)=="String"?jt.split(""):Object(jt)}},{"./_cof":64}],83:[function(wt,Qt,Zt){var Ot=wt("./_iterators"),jt=wt("./_wks")("iterator"),Ct=Array.prototype;Qt.exports=function(Mt){return Mt!==void 0&&(Ot.Array===Mt||Ct[jt]===Mt)}},{"./_iterators":91,"./_wks":131}],84:[function(wt,Qt,Zt){var Ot=wt("./_cof");Qt.exports=Array.isArray||function(jt){return Ot(jt)=="Array"}},{"./_cof":64}],85:[function(wt,Qt,Zt){Qt.exports=function(Ot){return typeof Ot=="object"?Ot!==null:typeof Ot=="function"}},{}],86:[function(wt,Qt,Zt){var Ot=wt("./_an-object");Qt.exports=function(jt,Ct,Mt,Bt){try{return Bt?Ct(Ot(Mt)[0],Mt[1]):Ct(Mt)}catch(kt){var St=jt.return;throw St!==void 0&&Ot(St.call(jt)),kt}}},{"./_an-object":61}],87:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_object-create"),jt=wt("./_property-desc"),Ct=wt("./_set-to-string-tag"),Mt={};wt("./_hide")(Mt,wt("./_wks")("iterator"),function(){return this}),Qt.exports=function(Bt,St,kt){Bt.prototype=Ot(Mt,{next:jt(1,kt)}),Ct(Bt,St+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_library"),jt=wt("./_export"),Ct=wt("./_redefine"),Mt=wt("./_hide"),Bt=wt("./_iterators"),St=wt("./_iter-create"),kt=wt("./_set-to-string-tag"),xt=wt("./_object-gpo"),Dt=wt("./_wks")("iterator"),yt=!([].keys&&"next"in[].keys()),et=function(){return this};Qt.exports=function(tt,lt,ot,ut,ct,ft,gt){St(ot,lt,ut);var Lt,Rt,Ut,Nt=function(Pe){if(!yt&&Pe in de)return de[Pe];switch(Pe){case"keys":case"values":return function(){return new ot(this,Pe)}}return function(){return new ot(this,Pe)}},qt=lt+" Iterator",te=ct=="values",Vt=!1,de=tt.prototype,ge=de[Dt]||de["@@iterator"]||ct&&de[ct],be=ge||Nt(ct),Ne=ct?te?Nt("entries"):be:void 0,Ge=lt=="Array"&&de.entries||ge;if(Ge&&(Ut=xt(Ge.call(new tt)))!==Object.prototype&&Ut.next&&(kt(Ut,qt,!0),Ot||typeof Ut[Dt]=="function"||Mt(Ut,Dt,et)),te&&ge&&ge.name!=="values"&&(Vt=!0,be=function(){return ge.call(this)}),Ot&&!gt||!yt&&!Vt&&de[Dt]||Mt(de,Dt,be),Bt[lt]=be,Bt[qt]=et,ct)if(Lt={values:te?be:Nt("values"),keys:ft?be:Nt("keys"),entries:Ne},gt)for(Rt in Lt)Rt in de||Ct(de,Rt,Lt[Rt]);else jt(jt.P+jt.F*(yt||Vt),lt,Lt);return Lt}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(wt,Qt,Zt){var Ot=wt("./_wks")("iterator"),jt=!1;try{var Ct=[7][Ot]();Ct.return=function(){jt=!0},Array.from(Ct,function(){throw 2})}catch(Mt){}Qt.exports=function(Mt,Bt){if(!Bt&&!jt)return!1;var St=!1;try{var kt=[7],xt=kt[Ot]();xt.next=function(){return{done:St=!0}},kt[Ot]=function(){return xt},Mt(kt)}catch(Dt){}return St}},{"./_wks":131}],90:[function(wt,Qt,Zt){Qt.exports=function(Ot,jt){return{value:jt,done:!!Ot}}},{}],91:[function(wt,Qt,Zt){Qt.exports={}},{}],92:[function(wt,Qt,Zt){Qt.exports=!0},{}],93:[function(wt,Qt,Zt){var Ot=wt("./_uid")("meta"),jt=wt("./_is-object"),Ct=wt("./_has"),Mt=wt("./_object-dp").f,Bt=0,St=Object.isExtensible||function(){return!0},kt=!wt("./_fails")(function(){return St(Object.preventExtensions({}))}),xt=function(lt){Mt(lt,Ot,{value:{i:"O"+ ++Bt,w:{}}})},Dt=function(lt,ot){if(!jt(lt))return typeof lt=="symbol"?lt:(typeof lt=="string"?"S":"P")+lt;if(!Ct(lt,Ot)){if(!St(lt))return"F";if(!ot)return"E";xt(lt)}return lt[Ot].i},yt=function(lt,ot){if(!Ct(lt,Ot)){if(!St(lt))return!0;if(!ot)return!1;xt(lt)}return lt[Ot].w},et=function(lt){return kt&&tt.NEED&&St(lt)&&!Ct(lt,Ot)&&xt(lt),lt},tt=Qt.exports={KEY:Ot,NEED:!1,fastKey:Dt,getWeak:yt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(wt,Qt,Zt){var Ot=wt("./_global"),jt=wt("./_task").set,Ct=Ot.MutationObserver||Ot.WebKitMutationObserver,Mt=Ot.process,Bt=Ot.Promise,St=wt("./_cof")(Mt)=="process";Qt.exports=function(){var kt,xt,Dt,yt=function(){var ot,ut;for(St&&(ot=Mt.domain)&&ot.exit();kt;){ut=kt.fn,kt=kt.next;try{ut()}catch(ct){throw kt?Dt():xt=void 0,ct}}xt=void 0,ot&&ot.enter()};if(St)Dt=function(){Mt.nextTick(yt)};else if(!Ct||Ot.navigator&&Ot.navigator.standalone)if(Bt&&Bt.resolve){var et=Bt.resolve(void 0);Dt=function(){et.then(yt)}}else Dt=function(){jt.call(Ot,yt)};else{var tt=!0,lt=document.createTextNode("");new Ct(yt).observe(lt,{characterData:!0}),Dt=function(){lt.data=tt=!tt}}return function(ot){var ut={fn:ot,next:void 0};xt&&(xt.next=ut),kt||(kt=ut,Dt()),xt=ut}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(wt,Qt,Zt){"use strict";function Ot(Ct){var Mt,Bt;this.promise=new Ct(function(St,kt){if(Mt!==void 0||Bt!==void 0)throw TypeError("Bad Promise constructor");Mt=St,Bt=kt}),this.resolve=jt(Mt),this.reject=jt(Bt)}var jt=wt("./_a-function");Qt.exports.f=function(Ct){return new Ot(Ct)}},{"./_a-function":58}],96:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_object-keys"),jt=wt("./_object-gops"),Ct=wt("./_object-pie"),Mt=wt("./_to-object"),Bt=wt("./_iobject"),St=Object.assign;Qt.exports=!St||wt("./_fails")(function(){var kt={},xt={},Dt=Symbol(),yt="abcdefghijklmnopqrst";return kt[Dt]=7,yt.split("").forEach(function(et){xt[et]=et}),St({},kt)[Dt]!=7||Object.keys(St({},xt)).join("")!=yt})?function(kt,xt){for(var Dt=Mt(kt),yt=arguments.length,et=1,tt=jt.f,lt=Ct.f;yt>et;)for(var ot,ut=Bt(arguments[et++]),ct=tt?Ot(ut).concat(tt(ut)):Ot(ut),ft=ct.length,gt=0;ft>gt;)lt.call(ut,ot=ct[gt++])&&(Dt[ot]=ut[ot]);return Dt}:St},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(wt,Qt,Zt){var Ot=wt("./_an-object"),jt=wt("./_object-dps"),Ct=wt("./_enum-bug-keys"),Mt=wt("./_shared-key")("IE_PROTO"),Bt=function(){},St=function(){var kt,xt=wt("./_dom-create")("iframe"),Dt=Ct.length;for(xt.style.display="none",wt("./_html").appendChild(xt),xt.src="javascript:",kt=xt.contentWindow.document,kt.open(),kt.write("<script>document.F=Object<\/script>"),kt.close(),St=kt.F;Dt--;)delete St.prototype[Ct[Dt]];return St()};Qt.exports=Object.create||function(kt,xt){var Dt;return kt!==null?(Bt.prototype=Ot(kt),Dt=new Bt,Bt.prototype=null,Dt[Mt]=kt):Dt=St(),xt===void 0?Dt:jt(Dt,xt)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(wt,Qt,Zt){var Ot=wt("./_an-object"),jt=wt("./_ie8-dom-define"),Ct=wt("./_to-primitive"),Mt=Object.defineProperty;Zt.f=wt("./_descriptors")?Object.defineProperty:function(Bt,St,kt){if(Ot(Bt),St=Ct(St,!0),Ot(kt),jt)try{return Mt(Bt,St,kt)}catch(xt){}if("get"in kt||"set"in kt)throw TypeError("Accessors not supported!");return"value"in kt&&(Bt[St]=kt.value),Bt}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(wt,Qt,Zt){var Ot=wt("./_object-dp"),jt=wt("./_an-object"),Ct=wt("./_object-keys");Qt.exports=wt("./_descriptors")?Object.defineProperties:function(Mt,Bt){jt(Mt);for(var St,kt=Ct(Bt),xt=kt.length,Dt=0;xt>Dt;)Ot.f(Mt,St=kt[Dt++],Bt[St]);return Mt}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(wt,Qt,Zt){var Ot=wt("./_object-pie"),jt=wt("./_property-desc"),Ct=wt("./_to-iobject"),Mt=wt("./_to-primitive"),Bt=wt("./_has"),St=wt("./_ie8-dom-define"),kt=Object.getOwnPropertyDescriptor;Zt.f=wt("./_descriptors")?kt:function(xt,Dt){if(xt=Ct(xt),Dt=Mt(Dt,!0),St)try{return kt(xt,Dt)}catch(yt){}if(Bt(xt,Dt))return jt(!Ot.f.call(xt,Dt),xt[Dt])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(wt,Qt,Zt){var Ot=wt("./_to-iobject"),jt=wt("./_object-gopn").f,Ct={}.toString,Mt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bt=function(St){try{return jt(St)}catch(kt){return Mt.slice()}};Qt.exports.f=function(St){return Mt&&Ct.call(St)=="[object Window]"?Bt(St):jt(Ot(St))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(wt,Qt,Zt){var Ot=wt("./_object-keys-internal"),jt=wt("./_enum-bug-keys").concat("length","prototype");Zt.f=Object.getOwnPropertyNames||function(Ct){return Ot(Ct,jt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(wt,Qt,Zt){Zt.f=Object.getOwnPropertySymbols},{}],104:[function(wt,Qt,Zt){var Ot=wt("./_has"),jt=wt("./_to-object"),Ct=wt("./_shared-key")("IE_PROTO"),Mt=Object.prototype;Qt.exports=Object.getPrototypeOf||function(Bt){return Bt=jt(Bt),Ot(Bt,Ct)?Bt[Ct]:typeof Bt.constructor=="function"&&Bt instanceof Bt.constructor?Bt.constructor.prototype:Bt instanceof Object?Mt:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(wt,Qt,Zt){var Ot=wt("./_has"),jt=wt("./_to-iobject"),Ct=wt("./_array-includes")(!1),Mt=wt("./_shared-key")("IE_PROTO");Qt.exports=function(Bt,St){var kt,xt=jt(Bt),Dt=0,yt=[];for(kt in xt)kt!=Mt&&Ot(xt,kt)&&yt.push(kt);for(;St.length>Dt;)Ot(xt,kt=St[Dt++])&&(~Ct(yt,kt)||yt.push(kt));return yt}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(wt,Qt,Zt){var Ot=wt("./_object-keys-internal"),jt=wt("./_enum-bug-keys");Qt.exports=Object.keys||function(Ct){return Ot(Ct,jt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(wt,Qt,Zt){Zt.f={}.propertyIsEnumerable},{}],108:[function(wt,Qt,Zt){var Ot=wt("./_export"),jt=wt("./_core"),Ct=wt("./_fails");Qt.exports=function(Mt,Bt){var St=(jt.Object||{})[Mt]||Object[Mt],kt={};kt[Mt]=Bt(St),Ot(Ot.S+Ot.F*Ct(function(){St(1)}),"Object",kt)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(wt,Qt,Zt){Qt.exports=function(Ot){try{return{e:!1,v:Ot()}}catch(jt){return{e:!0,v:jt}}}},{}],110:[function(wt,Qt,Zt){var Ot=wt("./_an-object"),jt=wt("./_is-object"),Ct=wt("./_new-promise-capability");Qt.exports=function(Mt,Bt){if(Ot(Mt),jt(Bt)&&Bt.constructor===Mt)return Bt;var St=Ct.f(Mt);return(0,St.resolve)(Bt),St.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(wt,Qt,Zt){Qt.exports=function(Ot,jt){return{enumerable:!(1&Ot),configurable:!(2&Ot),writable:!(4&Ot),value:jt}}},{}],112:[function(wt,Qt,Zt){var Ot=wt("./_hide");Qt.exports=function(jt,Ct,Mt){for(var Bt in Ct)Mt&&jt[Bt]?jt[Bt]=Ct[Bt]:Ot(jt,Bt,Ct[Bt]);return jt}},{"./_hide":78}],113:[function(wt,Qt,Zt){Qt.exports=wt("./_hide")},{"./_hide":78}],114:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_global"),jt=wt("./_core"),Ct=wt("./_object-dp"),Mt=wt("./_descriptors"),Bt=wt("./_wks")("species");Qt.exports=function(St){var kt=typeof jt[St]=="function"?jt[St]:Ot[St];Mt&&kt&&!kt[Bt]&&Ct.f(kt,Bt,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(wt,Qt,Zt){var Ot=wt("./_object-dp").f,jt=wt("./_has"),Ct=wt("./_wks")("toStringTag");Qt.exports=function(Mt,Bt,St){Mt&&!jt(Mt=St?Mt:Mt.prototype,Ct)&&Ot(Mt,Ct,{configurable:!0,value:Bt})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(wt,Qt,Zt){var Ot=wt("./_shared")("keys"),jt=wt("./_uid");Qt.exports=function(Ct){return Ot[Ct]||(Ot[Ct]=jt(Ct))}},{"./_shared":117,"./_uid":127}],117:[function(wt,Qt,Zt){var Ot=wt("./_core"),jt=wt("./_global"),Ct=jt["__core-js_shared__"]||(jt["__core-js_shared__"]={});(Qt.exports=function(Mt,Bt){return Ct[Mt]||(Ct[Mt]=Bt!==void 0?Bt:{})})("versions",[]).push({version:Ot.version,mode:wt("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(wt,Qt,Zt){var Ot=wt("./_an-object"),jt=wt("./_a-function"),Ct=wt("./_wks")("species");Qt.exports=function(Mt,Bt){var St,kt=Ot(Mt).constructor;return kt===void 0||(St=Ot(kt)[Ct])==null?Bt:jt(St)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(wt,Qt,Zt){var Ot=wt("./_to-integer"),jt=wt("./_defined");Qt.exports=function(Ct){return function(Mt,Bt){var St,kt,xt=String(jt(Mt)),Dt=Ot(Bt),yt=xt.length;return Dt<0||Dt>=yt?Ct?"":void 0:(St=xt.charCodeAt(Dt),St<55296||St>56319||Dt+1===yt||(kt=xt.charCodeAt(Dt+1))<56320||kt>57343?Ct?xt.charAt(Dt):St:Ct?xt.slice(Dt,Dt+2):kt-56320+(St-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(wt,Qt,Zt){var Ot,jt,Ct,Mt=wt("./_ctx"),Bt=wt("./_invoke"),St=wt("./_html"),kt=wt("./_dom-create"),xt=wt("./_global"),Dt=xt.process,yt=xt.setImmediate,et=xt.clearImmediate,tt=xt.MessageChannel,lt=xt.Dispatch,ot=0,ut={},ct=function(){var gt=+this;if(ut.hasOwnProperty(gt)){var Lt=ut[gt];delete ut[gt],Lt()}},ft=function(gt){ct.call(gt.data)};yt&&et||(yt=function(gt){for(var Lt=[],Rt=1;arguments.length>Rt;)Lt.push(arguments[Rt++]);return ut[++ot]=function(){Bt(typeof gt=="function"?gt:Function(gt),Lt)},Ot(ot),ot},et=function(gt){delete ut[gt]},wt("./_cof")(Dt)=="process"?Ot=function(gt){Dt.nextTick(Mt(ct,gt,1))}:lt&<.now?Ot=function(gt){lt.now(Mt(ct,gt,1))}:tt?(jt=new tt,Ct=jt.port2,jt.port1.onmessage=ft,Ot=Mt(Ct.postMessage,Ct,1)):xt.addEventListener&&typeof postMessage=="function"&&!xt.importScripts?(Ot=function(gt){xt.postMessage(gt+"","*")},xt.addEventListener("message",ft,!1)):Ot="onreadystatechange"in kt("script")?function(gt){St.appendChild(kt("script")).onreadystatechange=function(){St.removeChild(this),ct.call(gt)}}:function(gt){setTimeout(Mt(ct,gt,1),0)}),Qt.exports={set:yt,clear:et}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(wt,Qt,Zt){var Ot=wt("./_to-integer"),jt=Math.max,Ct=Math.min;Qt.exports=function(Mt,Bt){return Mt=Ot(Mt),Mt<0?jt(Mt+Bt,0):Ct(Mt,Bt)}},{"./_to-integer":122}],122:[function(wt,Qt,Zt){var Ot=Math.ceil,jt=Math.floor;Qt.exports=function(Ct){return isNaN(Ct=+Ct)?0:(Ct>0?jt:Ot)(Ct)}},{}],123:[function(wt,Qt,Zt){var Ot=wt("./_iobject"),jt=wt("./_defined");Qt.exports=function(Ct){return Ot(jt(Ct))}},{"./_defined":68,"./_iobject":82}],124:[function(wt,Qt,Zt){var Ot=wt("./_to-integer"),jt=Math.min;Qt.exports=function(Ct){return Ct>0?jt(Ot(Ct),9007199254740991):0}},{"./_to-integer":122}],125:[function(wt,Qt,Zt){var Ot=wt("./_defined");Qt.exports=function(jt){return Object(Ot(jt))}},{"./_defined":68}],126:[function(wt,Qt,Zt){var Ot=wt("./_is-object");Qt.exports=function(jt,Ct){if(!Ot(jt))return jt;var Mt,Bt;if(Ct&&typeof(Mt=jt.toString)=="function"&&!Ot(Bt=Mt.call(jt))||typeof(Mt=jt.valueOf)=="function"&&!Ot(Bt=Mt.call(jt))||!Ct&&typeof(Mt=jt.toString)=="function"&&!Ot(Bt=Mt.call(jt)))return Bt;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(wt,Qt,Zt){var Ot=0,jt=Math.random();Qt.exports=function(Ct){return"Symbol(".concat(Ct===void 0?"":Ct,")_",(++Ot+jt).toString(36))}},{}],128:[function(wt,Qt,Zt){var Ot=wt("./_global"),jt=Ot.navigator;Qt.exports=jt&&jt.userAgent||""},{"./_global":76}],129:[function(wt,Qt,Zt){var Ot=wt("./_global"),jt=wt("./_core"),Ct=wt("./_library"),Mt=wt("./_wks-ext"),Bt=wt("./_object-dp").f;Qt.exports=function(St){var kt=jt.Symbol||(jt.Symbol=Ct?{}:Ot.Symbol||{});St.charAt(0)=="_"||St in kt||Bt(kt,St,{value:Mt.f(St)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(wt,Qt,Zt){Zt.f=wt("./_wks")},{"./_wks":131}],131:[function(wt,Qt,Zt){var Ot=wt("./_shared")("wks"),jt=wt("./_uid"),Ct=wt("./_global").Symbol,Mt=typeof Ct=="function";(Qt.exports=function(Bt){return Ot[Bt]||(Ot[Bt]=Mt&&Ct[Bt]||(Mt?Ct:jt)("Symbol."+Bt))}).store=Ot},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(wt,Qt,Zt){var Ot=wt("./_classof"),jt=wt("./_wks")("iterator"),Ct=wt("./_iterators");Qt.exports=wt("./_core").getIteratorMethod=function(Mt){if(Mt!=null)return Mt[jt]||Mt["@@iterator"]||Ct[Ot(Mt)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_ctx"),jt=wt("./_export"),Ct=wt("./_to-object"),Mt=wt("./_iter-call"),Bt=wt("./_is-array-iter"),St=wt("./_to-length"),kt=wt("./_create-property"),xt=wt("./core.get-iterator-method");jt(jt.S+jt.F*!wt("./_iter-detect")(function(Dt){Array.from(Dt)}),"Array",{from:function(Dt){var yt,et,tt,lt,ot=Ct(Dt),ut=typeof this=="function"?this:Array,ct=arguments.length,ft=ct>1?arguments[1]:void 0,gt=ft!==void 0,Lt=0,Rt=xt(ot);if(gt&&(ft=Ot(ft,ct>2?arguments[2]:void 0,2)),Rt==null||ut==Array&&Bt(Rt))for(yt=St(ot.length),et=new ut(yt);yt>Lt;Lt++)kt(et,Lt,gt?ft(ot[Lt],Lt):ot[Lt]);else for(lt=Rt.call(ot),et=new ut;!(tt=lt.next()).done;Lt++)kt(et,Lt,gt?Mt(lt,ft,[tt.value,Lt],!0):tt.value);return et.length=Lt,et}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_add-to-unscopables"),jt=wt("./_iter-step"),Ct=wt("./_iterators"),Mt=wt("./_to-iobject");Qt.exports=wt("./_iter-define")(Array,"Array",function(Bt,St){this._t=Mt(Bt),this._i=0,this._k=St},function(){var Bt=this._t,St=this._k,kt=this._i++;return!Bt||kt>=Bt.length?(this._t=void 0,jt(1)):St=="keys"?jt(0,kt):St=="values"?jt(0,Bt[kt]):jt(0,[kt,Bt[kt]])},"values"),Ct.Arguments=Ct.Array,Ot("keys"),Ot("values"),Ot("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_is-object"),jt=wt("./_object-gpo"),Ct=wt("./_wks")("hasInstance"),Mt=Function.prototype;Ct in Mt||wt("./_object-dp").f(Mt,Ct,{value:function(Bt){if(typeof this!="function"||!Ot(Bt))return!1;if(!Ot(this.prototype))return Bt instanceof this;for(;Bt=jt(Bt);)if(this.prototype===Bt)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(wt,Qt,Zt){var Ot=wt("./_export");Ot(Ot.S+Ot.F,"Object",{assign:wt("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(wt,Qt,Zt){var Ot=wt("./_export");Ot(Ot.S,"Object",{create:wt("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(wt,Qt,Zt){var Ot=wt("./_export");Ot(Ot.S+Ot.F*!wt("./_descriptors"),"Object",{defineProperty:wt("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(wt,Qt,Zt){wt("./_object-sap")("getOwnPropertyNames",function(){return wt("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(wt,Qt,Zt){var Ot=wt("./_to-object"),jt=wt("./_object-gpo");wt("./_object-sap")("getPrototypeOf",function(){return function(Ct){return jt(Ot(Ct))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(wt,Qt,Zt){var Ot=wt("./_to-object"),jt=wt("./_object-keys");wt("./_object-sap")("keys",function(){return function(Ct){return jt(Ot(Ct))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(wt,Qt,Zt){arguments[4][36][0].apply(Zt,arguments)},{dup:36}],143:[function(wt,Qt,Zt){"use strict";var Ot,jt,Ct,Mt,Bt=wt("./_library"),St=wt("./_global"),kt=wt("./_ctx"),xt=wt("./_classof"),Dt=wt("./_export"),yt=wt("./_is-object"),et=wt("./_a-function"),tt=wt("./_an-instance"),lt=wt("./_for-of"),ot=wt("./_species-constructor"),ut=wt("./_task").set,ct=wt("./_microtask")(),ft=wt("./_new-promise-capability"),gt=wt("./_perform"),Lt=wt("./_user-agent"),Rt=wt("./_promise-resolve"),Ut=St.TypeError,Nt=St.process,qt=Nt&&Nt.versions,te=qt&&qt.v8||"",Vt=St.Promise,de=xt(Nt)=="process",ge=function(){},be=jt=ft.f,Ne=!!function(){try{var pe=Vt.resolve(1),ue=(pe.constructor={})[wt("./_wks")("species")]=function(Re){Re(ge,ge)};return(de||typeof PromiseRejectionEvent=="function")&&pe.then(ge)instanceof ue&&te.indexOf("6.6")!==0&&Lt.indexOf("Chrome/66")===-1}catch(Re){}}(),Ge=function(pe){var ue;return!(!yt(pe)||typeof(ue=pe.then)!="function")&&ue},Pe=function(pe,ue){if(!pe._n){pe._n=!0;var Re=pe._c;ct(function(){for(var Fe=pe._v,Qe=pe._s==1,Ae=0;Re.length>Ae;)(function(_e){var Le,Oe,He,ie=Qe?_e.ok:_e.fail,Tt=_e.resolve,At=_e.reject,Yt=_e.domain;try{ie?(Qe||(pe._h==2&&Jt(pe),pe._h=1),ie===!0?Le=Fe:(Yt&&Yt.enter(),Le=ie(Fe),Yt&&(Yt.exit(),He=!0)),Le===_e.promise?At(Ut("Promise-chain cycle")):(Oe=Ge(Le))?Oe.call(Le,Tt,At):Tt(Le)):At(Fe)}catch(oe){Yt&&!He&&Yt.exit(),At(oe)}})(Re[Ae++]);pe._c=[],pe._n=!1,ue&&!pe._h&&ze(pe)})}},ze=function(pe){ut.call(St,function(){var ue,Re,Fe,Qe=pe._v,Ae=he(pe);if(Ae&&(ue=gt(function(){de?Nt.emit("unhandledRejection",Qe,pe):(Re=St.onunhandledrejection)?Re({promise:pe,reason:Qe}):(Fe=St.console)&&Fe.error&&Fe.error("Unhandled promise rejection",Qe)}),pe._h=de||he(pe)?2:1),pe._a=void 0,Ae&&ue.e)throw ue.v})},he=function(pe){return pe._h!==1&&(pe._a||pe._c).length===0},Jt=function(pe){ut.call(St,function(){var ue;de?Nt.emit("rejectionHandled",pe):(ue=St.onrejectionhandled)&&ue({promise:pe,reason:pe._v})})},re=function(pe){var ue=this;ue._d||(ue._d=!0,ue=ue._w||ue,ue._v=pe,ue._s=2,ue._a||(ue._a=ue._c.slice()),Pe(ue,!0))},se=function(pe){var ue,Re=this;if(!Re._d){Re._d=!0,Re=Re._w||Re;try{if(Re===pe)throw Ut("Promise can't be resolved itself");(ue=Ge(pe))?ct(function(){var Fe={_w:Re,_d:!1};try{ue.call(pe,kt(se,Fe,1),kt(re,Fe,1))}catch(Qe){re.call(Fe,Qe)}}):(Re._v=pe,Re._s=1,Pe(Re,!1))}catch(Fe){re.call({_w:Re,_d:!1},Fe)}}};Ne||(Vt=function(pe){tt(this,Vt,"Promise","_h"),et(pe),Ot.call(this);try{pe(kt(se,this,1),kt(re,this,1))}catch(ue){re.call(this,ue)}},Ot=function(pe){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Ot.prototype=wt("./_redefine-all")(Vt.prototype,{then:function(pe,ue){var Re=be(ot(this,Vt));return Re.ok=typeof pe!="function"||pe,Re.fail=typeof ue=="function"&&ue,Re.domain=de?Nt.domain:void 0,this._c.push(Re),this._a&&this._a.push(Re),this._s&&Pe(this,!1),Re.promise},catch:function(pe){return this.then(void 0,pe)}}),Ct=function(){var pe=new Ot;this.promise=pe,this.resolve=kt(se,pe,1),this.reject=kt(re,pe,1)},ft.f=be=function(pe){return pe===Vt||pe===Mt?new Ct(pe):jt(pe)}),Dt(Dt.G+Dt.W+Dt.F*!Ne,{Promise:Vt}),wt("./_set-to-string-tag")(Vt,"Promise"),wt("./_set-species")("Promise"),Mt=wt("./_core").Promise,Dt(Dt.S+Dt.F*!Ne,"Promise",{reject:function(pe){var ue=be(this);return(0,ue.reject)(pe),ue.promise}}),Dt(Dt.S+Dt.F*(Bt||!Ne),"Promise",{resolve:function(pe){return Rt(Bt&&this===Mt?Vt:this,pe)}}),Dt(Dt.S+Dt.F*!(Ne&&wt("./_iter-detect")(function(pe){Vt.all(pe).catch(ge)})),"Promise",{all:function(pe){var ue=this,Re=be(ue),Fe=Re.resolve,Qe=Re.reject,Ae=gt(function(){var _e=[],Le=0,Oe=1;lt(pe,!1,function(He){var ie=Le++,Tt=!1;_e.push(void 0),Oe++,ue.resolve(He).then(function(At){Tt||(Tt=!0,_e[ie]=At,--Oe||Fe(_e))},Qe)}),--Oe||Fe(_e)});return Ae.e&&Qe(Ae.v),Re.promise},race:function(pe){var ue=this,Re=be(ue),Fe=Re.reject,Qe=gt(function(){lt(pe,!1,function(Ae){ue.resolve(Ae).then(Re.resolve,Fe)})});return Qe.e&&Fe(Qe.v),Re.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(wt,Qt,Zt){var Ot=wt("./_export"),jt=wt("./_to-absolute-index"),Ct=String.fromCharCode,Mt=String.fromCodePoint;Ot(Ot.S+Ot.F*(!!Mt&&Mt.length!=1),"String",{fromCodePoint:function(Bt){for(var St,kt=[],xt=arguments.length,Dt=0;xt>Dt;){if(St=+arguments[Dt++],jt(St,1114111)!==St)throw RangeError(St+" is not a valid code point");kt.push(St<65536?Ct(St):Ct(55296+((St-=65536)>>10),St%1024+56320))}return kt.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_string-at")(!0);wt("./_iter-define")(String,"String",function(jt){this._t=String(jt),this._i=0},function(){var jt,Ct=this._t,Mt=this._i;return Mt>=Ct.length?{value:void 0,done:!0}:(jt=Ot(Ct,Mt),this._i+=jt.length,{value:jt,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_global"),jt=wt("./_has"),Ct=wt("./_descriptors"),Mt=wt("./_export"),Bt=wt("./_redefine"),St=wt("./_meta").KEY,kt=wt("./_fails"),xt=wt("./_shared"),Dt=wt("./_set-to-string-tag"),yt=wt("./_uid"),et=wt("./_wks"),tt=wt("./_wks-ext"),lt=wt("./_wks-define"),ot=wt("./_enum-keys"),ut=wt("./_is-array"),ct=wt("./_an-object"),ft=wt("./_is-object"),gt=wt("./_to-iobject"),Lt=wt("./_to-primitive"),Rt=wt("./_property-desc"),Ut=wt("./_object-create"),Nt=wt("./_object-gopn-ext"),qt=wt("./_object-gopd"),te=wt("./_object-dp"),Vt=wt("./_object-keys"),de=qt.f,ge=te.f,be=Nt.f,Ne=Ot.Symbol,Ge=Ot.JSON,Pe=Ge&&Ge.stringify,ze=et("_hidden"),he=et("toPrimitive"),Jt={}.propertyIsEnumerable,re=xt("symbol-registry"),se=xt("symbols"),pe=xt("op-symbols"),ue=Object.prototype,Re=typeof Ne=="function",Fe=Ot.QObject,Qe=!Fe||!Fe.prototype||!Fe.prototype.findChild,Ae=Ct&&kt(function(){return Ut(ge({},"a",{get:function(){return ge(this,"a",{value:7}).a}})).a!=7})?function($t,zt,Gt){var le=de(ue,zt);le&&delete ue[zt],ge($t,zt,Gt),le&&$t!==ue&&ge(ue,zt,le)}:ge,_e=function($t){var zt=se[$t]=Ut(Ne.prototype);return zt._k=$t,zt},Le=Re&&typeof Ne.iterator=="symbol"?function($t){return typeof $t=="symbol"}:function($t){return $t instanceof Ne},Oe=function($t,zt,Gt){return $t===ue&&Oe(pe,zt,Gt),ct($t),zt=Lt(zt,!0),ct(Gt),jt(se,zt)?(Gt.enumerable?(jt($t,ze)&&$t[ze][zt]&&($t[ze][zt]=!1),Gt=Ut(Gt,{enumerable:Rt(0,!1)})):(jt($t,ze)||ge($t,ze,Rt(1,{})),$t[ze][zt]=!0),Ae($t,zt,Gt)):ge($t,zt,Gt)},He=function($t,zt){ct($t);for(var Gt,le=ot(zt=gt(zt)),ye=0,Ue=le.length;Ue>ye;)Oe($t,Gt=le[ye++],zt[Gt]);return $t},ie=function($t,zt){return zt===void 0?Ut($t):He(Ut($t),zt)},Tt=function($t){var zt=Jt.call(this,$t=Lt($t,!0));return!(this===ue&&jt(se,$t)&&!jt(pe,$t))&&(!(zt||!jt(this,$t)||!jt(se,$t)||jt(this,ze)&&this[ze][$t])||zt)},At=function($t,zt){if($t=gt($t),zt=Lt(zt,!0),$t!==ue||!jt(se,zt)||jt(pe,zt)){var Gt=de($t,zt);return!Gt||!jt(se,zt)||jt($t,ze)&&$t[ze][zt]||(Gt.enumerable=!0),Gt}},Yt=function($t){for(var zt,Gt=be(gt($t)),le=[],ye=0;Gt.length>ye;)jt(se,zt=Gt[ye++])||zt==ze||zt==St||le.push(zt);return le},oe=function($t){for(var zt,Gt=$t===ue,le=be(Gt?pe:gt($t)),ye=[],Ue=0;le.length>Ue;)!jt(se,zt=le[Ue++])||Gt&&!jt(ue,zt)||ye.push(se[zt]);return ye};Re||(Ne=function(){if(this instanceof Ne)throw TypeError("Symbol is not a constructor!");var $t=yt(arguments.length>0?arguments[0]:void 0),zt=function(Gt){this===ue&&zt.call(pe,Gt),jt(this,ze)&&jt(this[ze],$t)&&(this[ze][$t]=!1),Ae(this,$t,Rt(1,Gt))};return Ct&&Qe&&Ae(ue,$t,{configurable:!0,set:zt}),_e($t)},Bt(Ne.prototype,"toString",function(){return this._k}),qt.f=At,te.f=Oe,wt("./_object-gopn").f=Nt.f=Yt,wt("./_object-pie").f=Tt,wt("./_object-gops").f=oe,Ct&&!wt("./_library")&&Bt(ue,"propertyIsEnumerable",Tt,!0),tt.f=function($t){return _e(et($t))}),Mt(Mt.G+Mt.W+Mt.F*!Re,{Symbol:Ne});for(var _t="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),It=0;_t.length>It;)et(_t[It++]);for(var Pt=Vt(et.store),Et=0;Pt.length>Et;)lt(Pt[Et++]);Mt(Mt.S+Mt.F*!Re,"Symbol",{for:function($t){return jt(re,$t+="")?re[$t]:re[$t]=Ne($t)},keyFor:function($t){if(!Le($t))throw TypeError($t+" is not a symbol!");for(var zt in re)if(re[zt]===$t)return zt},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),Mt(Mt.S+Mt.F*!Re,"Object",{create:ie,defineProperty:Oe,defineProperties:He,getOwnPropertyDescriptor:At,getOwnPropertyNames:Yt,getOwnPropertySymbols:oe}),Ge&&Mt(Mt.S+Mt.F*(!Re||kt(function(){var $t=Ne();return Pe([$t])!="[null]"||Pe({a:$t})!="{}"||Pe(Object($t))!="{}"})),"JSON",{stringify:function($t){for(var zt,Gt,le=[$t],ye=1;arguments.length>ye;)le.push(arguments[ye++]);if(Gt=zt=le[1],(ft(zt)||$t!==void 0)&&!Le($t))return ut(zt)||(zt=function(Ue,We){if(typeof Gt=="function"&&(We=Gt.call(this,Ue,We)),!Le(We))return We}),le[1]=zt,Pe.apply(Ge,le)}}),Ne.prototype[he]||wt("./_hide")(Ne.prototype,he,Ne.prototype.valueOf),Dt(Ne,"Symbol"),Dt(Math,"Math",!0),Dt(Ot.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_export"),jt=wt("./_core"),Ct=wt("./_global"),Mt=wt("./_species-constructor"),Bt=wt("./_promise-resolve");Ot(Ot.P+Ot.R,"Promise",{finally:function(St){var kt=Mt(this,jt.Promise||Ct.Promise),xt=typeof St=="function";return this.then(xt?function(Dt){return Bt(kt,St()).then(function(){return Dt})}:St,xt?function(Dt){return Bt(kt,St()).then(function(){throw Dt})}:St)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_export"),jt=wt("./_new-promise-capability"),Ct=wt("./_perform");Ot(Ot.S,"Promise",{try:function(Mt){var Bt=jt.f(this),St=Ct(Mt);return(St.e?Bt.reject:Bt.resolve)(St.v),Bt.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(wt,Qt,Zt){wt("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(wt,Qt,Zt){wt("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(wt,Qt,Zt){wt("./es6.array.iterator");for(var Ot=wt("./_global"),jt=wt("./_hide"),Ct=wt("./_iterators"),Mt=wt("./_wks")("toStringTag"),Bt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),St=0;St<Bt.length;St++){var kt=Bt[St],xt=Ot[kt],Dt=xt&&xt.prototype;Dt&&!Dt[Mt]&&jt(Dt,Mt,kt),Ct[kt]=Ct.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(wt,Qt,Zt){var Ot=wt("./_export"),jt=wt("./_task");Ot(Ot.G+Ot.B,{setImmediate:jt.set,clearImmediate:jt.clear})},{"./_export":73,"./_task":120}],153:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(Lt){return Array.isArray?Array.isArray(Lt):ct(Lt)==="[object Array]"}function Ct(Lt){return typeof Lt=="boolean"}function Mt(Lt){return Lt===null}function Bt(Lt){return Lt==null}function St(Lt){return typeof Lt=="number"}function kt(Lt){return typeof Lt=="string"}function xt(Lt){return(Lt===void 0?"undefined":(0,gt.default)(Lt))==="symbol"}function Dt(Lt){return Lt===void 0}function yt(Lt){return ct(Lt)==="[object RegExp]"}function et(Lt){return(Lt===void 0?"undefined":(0,gt.default)(Lt))==="object"&&Lt!==null}function tt(Lt){return ct(Lt)==="[object Date]"}function lt(Lt){return ct(Lt)==="[object Error]"||Lt instanceof Error}function ot(Lt){return typeof Lt=="function"}function ut(Lt){return Lt===null||typeof Lt=="boolean"||typeof Lt=="number"||typeof Lt=="string"||(Lt===void 0?"undefined":(0,gt.default)(Lt))==="symbol"||Lt===void 0}function ct(Lt){return Object.prototype.toString.call(Lt)}var ft=wt("babel-runtime/helpers/typeof"),gt=function(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}(ft);Zt.isArray=jt,Zt.isBoolean=Ct,Zt.isNull=Mt,Zt.isNullOrUndefined=Bt,Zt.isNumber=St,Zt.isString=kt,Zt.isSymbol=xt,Zt.isUndefined=Dt,Zt.isRegExp=yt,Zt.isObject=et,Zt.isDate=tt,Zt.isError=lt,Zt.isFunction=ot,Zt.isPrimitive=ut,Zt.isBuffer=Ot.isBuffer}).call(this,{isBuffer:wt("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/helpers/typeof"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(Ct){function Mt(Dt,yt){for(Dt=String(Dt),yt=yt||2;Dt.length<yt;)Dt="0"+Dt;return Dt}function Bt(Dt){var yt=new Date(Dt.getFullYear(),Dt.getMonth(),Dt.getDate());yt.setDate(yt.getDate()-(yt.getDay()+6)%7+3);var et=new Date(yt.getFullYear(),0,4);et.setDate(et.getDate()-(et.getDay()+6)%7+3);var tt=yt.getTimezoneOffset()-et.getTimezoneOffset();yt.setHours(yt.getHours()-tt);var lt=(yt-et)/6048e5;return 1+Math.floor(lt)}function St(Dt){var yt=Dt.getDay();return yt===0&&(yt=7),yt}function kt(Dt){return Dt===null?"null":Dt===void 0?"undefined":(Dt===void 0?"undefined":(0,jt.default)(Dt))!=="object"?Dt===void 0?"undefined":(0,jt.default)(Dt):Array.isArray(Dt)?"array":{}.toString.call(Dt).slice(8,-1).toLowerCase()}var xt=function(){var Dt=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,yt=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,et=/[^-+\dA-Z]/g;return function(tt,lt,ot,ut){if(arguments.length!==1||kt(tt)!=="string"||/\d/.test(tt)||(lt=tt,tt=void 0),tt=tt||new Date,tt instanceof Date||(tt=new Date(tt)),isNaN(tt))throw TypeError("Invalid date");lt=String(xt.masks[lt]||lt||xt.masks.default);var ct=lt.slice(0,4);ct!=="UTC:"&&ct!=="GMT:"||(lt=lt.slice(4),ot=!0,ct==="GMT:"&&(ut=!0));var ft=ot?"getUTC":"get",gt=tt[ft+"Date"](),Lt=tt[ft+"Day"](),Rt=tt[ft+"Month"](),Ut=tt[ft+"FullYear"](),Nt=tt[ft+"Hours"](),qt=tt[ft+"Minutes"](),te=tt[ft+"Seconds"](),Vt=tt[ft+"Milliseconds"](),de=ot?0:tt.getTimezoneOffset(),ge=Bt(tt),be=St(tt),Ne={d:gt,dd:Mt(gt),ddd:xt.i18n.dayNames[Lt],dddd:xt.i18n.dayNames[Lt+7],m:Rt+1,mm:Mt(Rt+1),mmm:xt.i18n.monthNames[Rt],mmmm:xt.i18n.monthNames[Rt+12],yy:String(Ut).slice(2),yyyy:Ut,h:Nt%12||12,hh:Mt(Nt%12||12),H:Nt,HH:Mt(Nt),M:qt,MM:Mt(qt),s:te,ss:Mt(te),l:Mt(Vt,3),L:Mt(Math.round(Vt/10)),t:Nt<12?"a":"p",tt:Nt<12?"am":"pm",T:Nt<12?"A":"P",TT:Nt<12?"AM":"PM",Z:ut?"GMT":ot?"UTC":(String(tt).match(yt)||[""]).pop().replace(et,""),o:(de>0?"-":"+")+Mt(100*Math.floor(Math.abs(de)/60)+Math.abs(de)%60,4),S:["th","st","nd","rd"][gt%10>3?0:(gt%100-gt%10!=10)*gt%10],W:ge,N:be};return lt.replace(Dt,function(Ge){return Ge in Ne?Ne[Ge]:Ge.slice(1,Ge.length-1)})}}();xt.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},xt.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof ee=="function"&&ee.amd?ee(function(){return xt}):(Zt===void 0?"undefined":(0,jt.default)(Zt))==="object"?Qt.exports=xt:Ct.dateFormat=xt})(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(wt,Qt,Zt){(function(Ot){function jt(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ct(kt){var xt=this.useColors;if(kt[0]=(xt?"%c":"")+this.namespace+(xt?" %c":" ")+kt[0]+(xt?"%c ":" ")+"+"+Zt.humanize(this.diff),xt){var Dt="color: "+this.color;kt.splice(1,0,Dt,"color: inherit");var yt=0,et=0;kt[0].replace(/%[a-zA-Z%]/g,function(tt){tt!=="%%"&&(yt++,tt==="%c"&&(et=yt))}),kt.splice(et,0,Dt)}}function Mt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Bt(kt){try{kt==null?Zt.storage.removeItem("debug"):Zt.storage.debug=kt}catch(xt){}}function St(){var kt;try{kt=Zt.storage.debug}catch(xt){}return!kt&&Ot!==void 0&&"env"in Ot&&(kt=Ot.env.DEBUG),kt}Zt=Qt.exports=wt("./debug"),Zt.log=Mt,Zt.formatArgs=Ct,Zt.save=Bt,Zt.load=St,Zt.useColors=jt,Zt.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(kt){}}(),Zt.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],Zt.formatters.j=function(kt){try{return JSON.stringify(kt)}catch(xt){return"[UnexpectedJSONParseError]: "+xt.message}},Zt.enable(St())}).call(this,wt("_process"))},{"./debug":156,_process:173}],156:[function(wt,Qt,Zt){function Ot(xt){var Dt,yt=0;for(Dt in xt)yt=(yt<<5)-yt+xt.charCodeAt(Dt),yt|=0;return Zt.colors[Math.abs(yt)%Zt.colors.length]}function jt(xt){function Dt(){if(Dt.enabled){var yt=Dt,et=+new Date,tt=et-(kt||et);yt.diff=tt,yt.prev=kt,yt.curr=et,kt=et;for(var lt=new Array(arguments.length),ot=0;ot<lt.length;ot++)lt[ot]=arguments[ot];lt[0]=Zt.coerce(lt[0]),typeof lt[0]!="string"&<.unshift("%O");var ut=0;lt[0]=lt[0].replace(/%([a-zA-Z%])/g,function(ct,ft){if(ct==="%%")return ct;ut++;var gt=Zt.formatters[ft];if(typeof gt=="function"){var Lt=lt[ut];ct=gt.call(yt,Lt),lt.splice(ut,1),ut--}return ct}),Zt.formatArgs.call(yt,lt),(Dt.log||Zt.log||console.log.bind(console)).apply(yt,lt)}}return Dt.namespace=xt,Dt.enabled=Zt.enabled(xt),Dt.useColors=Zt.useColors(),Dt.color=Ot(xt),typeof Zt.init=="function"&&Zt.init(Dt),Dt}function Ct(xt){Zt.save(xt),Zt.names=[],Zt.skips=[];for(var Dt=(typeof xt=="string"?xt:"").split(/[\s,]+/),yt=Dt.length,et=0;et<yt;et++)Dt[et]&&(xt=Dt[et].replace(/\*/g,".*?"),xt[0]==="-"?Zt.skips.push(new RegExp("^"+xt.substr(1)+"$")):Zt.names.push(new RegExp("^"+xt+"$")))}function Mt(){Zt.enable("")}function Bt(xt){var Dt,yt;for(Dt=0,yt=Zt.skips.length;Dt<yt;Dt++)if(Zt.skips[Dt].test(xt))return!1;for(Dt=0,yt=Zt.names.length;Dt<yt;Dt++)if(Zt.names[Dt].test(xt))return!0;return!1}function St(xt){return xt instanceof Error?xt.stack||xt.message:xt}Zt=Qt.exports=jt.debug=jt.default=jt,Zt.coerce=St,Zt.disable=Mt,Zt.enable=Ct,Zt.enabled=Bt,Zt.humanize=wt("ms"),Zt.names=[],Zt.skips=[],Zt.formatters={};var kt},{ms:169}],157:[function(wt,Qt,Zt){"use strict";function Ot(Ct){var Mt=""+Ct,Bt=jt.exec(Mt);if(!Bt)return Mt;var St,kt="",xt=0,Dt=0;for(xt=Bt.index;xt<Mt.length;xt++){switch(Mt.charCodeAt(xt)){case 34:St=""";break;case 38:St="&";break;case 39:St="'";break;case 60:St="<";break;case 62:St=">";break;default:continue}Dt!==xt&&(kt+=Mt.substring(Dt,xt)),Dt=xt+1,kt+=St}return Dt!==xt?kt+Mt.substring(Dt,xt):kt}var jt=/["'&<>]/;Qt.exports=Ot},{}],158:[function(wt,Qt,Zt){function Ot(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function jt(St){return typeof St=="function"}function Ct(St){return typeof St=="number"}function Mt(St){return typeof St=="object"&&St!==null}function Bt(St){return St===void 0}Qt.exports=Ot,Ot.EventEmitter=Ot,Ot.prototype._events=void 0,Ot.prototype._maxListeners=void 0,Ot.defaultMaxListeners=10,Ot.prototype.setMaxListeners=function(St){if(!Ct(St)||St<0||isNaN(St))throw TypeError("n must be a positive number");return this._maxListeners=St,this},Ot.prototype.emit=function(St){var kt,xt,Dt,yt,et,tt;if(this._events||(this._events={}),St==="error"&&(!this._events.error||Mt(this._events.error)&&!this._events.error.length)){if((kt=arguments[1])instanceof Error)throw kt;var lt=new Error('Uncaught, unspecified "error" event. ('+kt+")");throw lt.context=kt,lt}if(xt=this._events[St],Bt(xt))return!1;if(jt(xt))switch(arguments.length){case 1:xt.call(this);break;case 2:xt.call(this,arguments[1]);break;case 3:xt.call(this,arguments[1],arguments[2]);break;default:yt=Array.prototype.slice.call(arguments,1),xt.apply(this,yt)}else if(Mt(xt))for(yt=Array.prototype.slice.call(arguments,1),tt=xt.slice(),Dt=tt.length,et=0;et<Dt;et++)tt[et].apply(this,yt);return!0},Ot.prototype.addListener=function(St,kt){var xt;if(!jt(kt))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",St,jt(kt.listener)?kt.listener:kt),this._events[St]?Mt(this._events[St])?this._events[St].push(kt):this._events[St]=[this._events[St],kt]:this._events[St]=kt,Mt(this._events[St])&&!this._events[St].warned&&(xt=Bt(this._maxListeners)?Ot.defaultMaxListeners:this._maxListeners)&&xt>0&&this._events[St].length>xt&&(this._events[St].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[St].length),typeof console.trace=="function"&&console.trace()),this},Ot.prototype.on=Ot.prototype.addListener,Ot.prototype.once=function(St,kt){function xt(){this.removeListener(St,xt),Dt||(Dt=!0,kt.apply(this,arguments))}if(!jt(kt))throw TypeError("listener must be a function");var Dt=!1;return xt.listener=kt,this.on(St,xt),this},Ot.prototype.removeListener=function(St,kt){var xt,Dt,yt,et;if(!jt(kt))throw TypeError("listener must be a function");if(!this._events||!this._events[St])return this;if(xt=this._events[St],yt=xt.length,Dt=-1,xt===kt||jt(xt.listener)&&xt.listener===kt)delete this._events[St],this._events.removeListener&&this.emit("removeListener",St,kt);else if(Mt(xt)){for(et=yt;et-- >0;)if(xt[et]===kt||xt[et].listener&&xt[et].listener===kt){Dt=et;break}if(Dt<0)return this;xt.length===1?(xt.length=0,delete this._events[St]):xt.splice(Dt,1),this._events.removeListener&&this.emit("removeListener",St,kt)}return this},Ot.prototype.removeAllListeners=function(St){var kt,xt;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[St]&&delete this._events[St],this;if(arguments.length===0){for(kt in this._events)kt!=="removeListener"&&this.removeAllListeners(kt);return this.removeAllListeners("removeListener"),this._events={},this}if(xt=this._events[St],jt(xt))this.removeListener(St,xt);else if(xt)for(;xt.length;)this.removeListener(St,xt[xt.length-1]);return delete this._events[St],this},Ot.prototype.listeners=function(St){return this._events&&this._events[St]?jt(this._events[St])?[this._events[St]]:this._events[St].slice():[]},Ot.prototype.listenerCount=function(St){if(this._events){var kt=this._events[St];if(jt(kt))return 1;if(kt)return kt.length}return 0},Ot.listenerCount=function(St,kt){return St.listenerCount(kt)}},{}],159:[function(wt,Qt,Zt){var Ot=wt("http"),jt=Qt.exports;for(var Ct in Ot)Ot.hasOwnProperty(Ct)&&(jt[Ct]=Ot[Ct]);jt.request=function(Mt,Bt){return Mt||(Mt={}),Mt.scheme="https",Mt.protocol="https:",Ot.request.call(this,Mt,Bt)}},{http:196}],160:[function(wt,Qt,Zt){"use strict";var Ot=wt("util"),jt=wt("ms");Qt.exports=function(Ct){if(typeof Ct=="number")return Ct;var Mt=jt(Ct);if(Mt===void 0){var Bt=new Error(Ot.format("humanize-ms(%j) result undefined",Ct));console.warn(Bt.stack)}return Mt}},{ms:169,util:207}],161:[function(wt,Qt,Zt){Zt.read=function(Ot,jt,Ct,Mt,Bt){var St,kt,xt=8*Bt-Mt-1,Dt=(1<<xt)-1,yt=Dt>>1,et=-7,tt=Ct?Bt-1:0,lt=Ct?-1:1,ot=Ot[jt+tt];for(tt+=lt,St=ot&(1<<-et)-1,ot>>=-et,et+=xt;et>0;St=256*St+Ot[jt+tt],tt+=lt,et-=8);for(kt=St&(1<<-et)-1,St>>=-et,et+=Mt;et>0;kt=256*kt+Ot[jt+tt],tt+=lt,et-=8);if(St===0)St=1-yt;else{if(St===Dt)return kt?NaN:1/0*(ot?-1:1);kt+=Math.pow(2,Mt),St-=yt}return(ot?-1:1)*kt*Math.pow(2,St-Mt)},Zt.write=function(Ot,jt,Ct,Mt,Bt,St){var kt,xt,Dt,yt=8*St-Bt-1,et=(1<<yt)-1,tt=et>>1,lt=Bt===23?Math.pow(2,-24)-Math.pow(2,-77):0,ot=Mt?0:St-1,ut=Mt?1:-1,ct=jt<0||jt===0&&1/jt<0?1:0;for(jt=Math.abs(jt),isNaN(jt)||jt===1/0?(xt=isNaN(jt)?1:0,kt=et):(kt=Math.floor(Math.log(jt)/Math.LN2),jt*(Dt=Math.pow(2,-kt))<1&&(kt--,Dt*=2),jt+=kt+tt>=1?lt/Dt:lt*Math.pow(2,1-tt),jt*Dt>=2&&(kt++,Dt/=2),kt+tt>=et?(xt=0,kt=et):kt+tt>=1?(xt=(jt*Dt-1)*Math.pow(2,Bt),kt+=tt):(xt=jt*Math.pow(2,tt-1)*Math.pow(2,Bt),kt=0));Bt>=8;Ot[Ct+ot]=255&xt,ot+=ut,xt/=256,Bt-=8);for(kt=kt<<Bt|xt,yt+=Bt;yt>0;Ot[Ct+ot]=255&kt,ot+=ut,kt/=256,yt-=8);Ot[Ct+ot-ut]|=128*ct}},{}],162:[function(wt,Qt,Zt){typeof Object.create=="function"?Qt.exports=function(Ot,jt){Ot.super_=jt,Ot.prototype=Object.create(jt.prototype,{constructor:{value:Ot,enumerable:!1,writable:!0,configurable:!0}})}:Qt.exports=function(Ot,jt){Ot.super_=jt;var Ct=function(){};Ct.prototype=jt.prototype,Ot.prototype=new Ct,Ot.prototype.constructor=Ot}},{}],163:[function(wt,Qt,Zt){function Ot(Ct){return!!Ct.constructor&&typeof Ct.constructor.isBuffer=="function"&&Ct.constructor.isBuffer(Ct)}function jt(Ct){return typeof Ct.readFloatLE=="function"&&typeof Ct.slice=="function"&&Ot(Ct.slice(0,0))}Qt.exports=function(Ct){return Ct!=null&&(Ot(Ct)||jt(Ct)||!!Ct._isBuffer)}},{}],164:[function(wt,Qt,Zt){(function(Ot){function jt(Bt){return Mt.call(Bt).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function Ct(Bt){return typeof Bt=="function"&&(/^class(\s|\{\}$)/.test(Mt.call(Bt))||/^.*classCallCheck\(/.test(jt(Bt)))}var Mt=Function.prototype.toString;Zt!==void 0?(Qt!==void 0&&Qt.exports&&(Zt=Qt.exports=Ct),Zt.isClass=Ct):typeof ee=="function"&&ee.amd?ee([],function(){return Ct}):Ot.isClass=Ct})(this)},{}],165:[function(wt,Qt,Zt){"use strict";function Ot(St){var kt=St.slice(2);return kt=kt[0].toLowerCase()+kt.slice(1)}var jt=wt("core-util-is"),Ct=wt("isstream"),Mt=wt("is-class");Object.keys(jt).map(function(St){Zt[Ot(St)]=jt[St]}),Zt.stream=Ct,Zt.readableStream=Ct.isReadable,Zt.writableStream=Ct.isWritable,Zt.duplexStream=Ct.isDuplex,Zt.class=Mt,Zt.finite=function(St){return Number.isFinite(St)},Zt.NaN=function(St){return Number.isNaN(St)},Zt.generator=function(St){return St&&typeof St.next=="function"&&typeof St.throw=="function"},Zt.generatorFunction=function(St){return St&&St.constructor&&St.constructor.name==="GeneratorFunction"},Zt.asyncFunction=function(St){return St&&St.constructor&&St.constructor.name==="AsyncFunction"},Zt.promise=function(St){return St&&typeof St.then=="function"};var Bt=Math.pow(2,31);Zt.int=function(St){return jt.isNumber(St)&&St%1==0},Zt.int32=function(St){return Zt.int(St)&&St<Bt&&St>=-Bt},Zt.long=function(St){return Zt.int(St)&&(St>=Bt||St<-Bt)},Zt.Long=function(St){return Zt.object(St)&&Zt.number(St.high)&&Zt.number(St.low)},Zt.double=function(St){return jt.isNumber(St)&&!isNaN(St)&&St%1!=0},Zt.date=function(St){return St instanceof Date},Zt.regExp=function(St){return St instanceof RegExp},Zt.regexp=Zt.regExp,Zt.error=function(St){return St instanceof Error},Zt.array=function(St){return Array.isArray(St)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(wt,Qt,Zt){var Ot={}.toString;Qt.exports=Array.isArray||function(jt){return Ot.call(jt)=="[object Array]"}},{}],167:[function(wt,Qt,Zt){function Ot(St){return St instanceof Bt.Stream}function jt(St){return Ot(St)&&typeof St._read=="function"&&typeof St._readableState=="object"}function Ct(St){return Ot(St)&&typeof St._write=="function"&&typeof St._writableState=="object"}function Mt(St){return jt(St)&&Ct(St)}var Bt=wt("stream");Qt.exports=Ot,Qt.exports.isReadable=jt,Qt.exports.isWritable=Ct,Qt.exports.isDuplex=Mt},{stream:195}],168:[function(wt,Qt,Zt){"use strict";function Ot(Ct,Mt,Bt){if(!Ct)throw new TypeError("argument dest is required");if(!Mt)throw new TypeError("argument src is required");return Bt===void 0&&(Bt=!0),Object.getOwnPropertyNames(Mt).forEach(function(St){if(Bt||!jt.call(Ct,St)){var kt=Object.getOwnPropertyDescriptor(Mt,St);Object.defineProperty(Ct,St,kt)}}),Ct}Qt.exports=Ot;var jt=Object.prototype.hasOwnProperty},{}],169:[function(wt,Qt,Zt){function Ot(yt){if(yt=String(yt),!(yt.length>100)){var et=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(yt);if(et){var tt=parseFloat(et[1]);switch((et[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return tt*Dt;case"days":case"day":case"d":return tt*xt;case"hours":case"hour":case"hrs":case"hr":case"h":return tt*kt;case"minutes":case"minute":case"mins":case"min":case"m":return tt*St;case"seconds":case"second":case"secs":case"sec":case"s":return tt*Bt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return tt;default:return}}}}function jt(yt){return yt>=xt?Math.round(yt/xt)+"d":yt>=kt?Math.round(yt/kt)+"h":yt>=St?Math.round(yt/St)+"m":yt>=Bt?Math.round(yt/Bt)+"s":yt+"ms"}function Ct(yt){return Mt(yt,xt,"day")||Mt(yt,kt,"hour")||Mt(yt,St,"minute")||Mt(yt,Bt,"second")||yt+" ms"}function Mt(yt,et,tt){if(!(yt<et))return yt<1.5*et?Math.floor(yt/et)+" "+tt:Math.ceil(yt/et)+" "+tt+"s"}var Bt=1e3,St=60*Bt,kt=60*St,xt=24*kt,Dt=365.25*xt;Qt.exports=function(yt,et){et=et||{};var tt=typeof yt;if(tt==="string"&&yt.length>0)return Ot(yt);if(tt==="number"&&isNaN(yt)===!1)return et.long?Ct(yt):jt(yt);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(yt))}},{}],170:[function(wt,Qt,Zt){(function(Ot){function jt(St,kt){for(var xt=0,Dt=St.length-1;Dt>=0;Dt--){var yt=St[Dt];yt==="."?St.splice(Dt,1):yt===".."?(St.splice(Dt,1),xt++):xt&&(St.splice(Dt,1),xt--)}if(kt)for(;xt--;xt)St.unshift("..");return St}function Ct(St){typeof St!="string"&&(St+="");var kt,xt=0,Dt=-1,yt=!0;for(kt=St.length-1;kt>=0;--kt)if(St.charCodeAt(kt)===47){if(!yt){xt=kt+1;break}}else Dt===-1&&(yt=!1,Dt=kt+1);return Dt===-1?"":St.slice(xt,Dt)}function Mt(St,kt){if(St.filter)return St.filter(kt);for(var xt=[],Dt=0;Dt<St.length;Dt++)kt(St[Dt],Dt,St)&&xt.push(St[Dt]);return xt}Zt.resolve=function(){for(var St="",kt=!1,xt=arguments.length-1;xt>=-1&&!kt;xt--){var Dt=xt>=0?arguments[xt]:Ot.cwd();if(typeof Dt!="string")throw new TypeError("Arguments to path.resolve must be strings");Dt&&(St=Dt+"/"+St,kt=Dt.charAt(0)==="/")}return St=jt(Mt(St.split("/"),function(yt){return!!yt}),!kt).join("/"),(kt?"/":"")+St||"."},Zt.normalize=function(St){var kt=Zt.isAbsolute(St),xt=Bt(St,-1)==="/";return St=jt(Mt(St.split("/"),function(Dt){return!!Dt}),!kt).join("/"),St||kt||(St="."),St&&xt&&(St+="/"),(kt?"/":"")+St},Zt.isAbsolute=function(St){return St.charAt(0)==="/"},Zt.join=function(){var St=Array.prototype.slice.call(arguments,0);return Zt.normalize(Mt(St,function(kt,xt){if(typeof kt!="string")throw new TypeError("Arguments to path.join must be strings");return kt}).join("/"))},Zt.relative=function(St,kt){function xt(ut){for(var ct=0;ct<ut.length&&ut[ct]==="";ct++);for(var ft=ut.length-1;ft>=0&&ut[ft]==="";ft--);return ct>ft?[]:ut.slice(ct,ft-ct+1)}St=Zt.resolve(St).substr(1),kt=Zt.resolve(kt).substr(1);for(var Dt=xt(St.split("/")),yt=xt(kt.split("/")),et=Math.min(Dt.length,yt.length),tt=et,lt=0;lt<et;lt++)if(Dt[lt]!==yt[lt]){tt=lt;break}for(var ot=[],lt=tt;lt<Dt.length;lt++)ot.push("..");return ot=ot.concat(yt.slice(tt)),ot.join("/")},Zt.sep="/",Zt.delimiter=":",Zt.dirname=function(St){if(typeof St!="string"&&(St+=""),St.length===0)return".";for(var kt=St.charCodeAt(0),xt=kt===47,Dt=-1,yt=!0,et=St.length-1;et>=1;--et)if((kt=St.charCodeAt(et))===47){if(!yt){Dt=et;break}}else yt=!1;return Dt===-1?xt?"/":".":xt&&Dt===1?"/":St.slice(0,Dt)},Zt.basename=function(St,kt){var xt=Ct(St);return kt&&xt.substr(-1*kt.length)===kt&&(xt=xt.substr(0,xt.length-kt.length)),xt},Zt.extname=function(St){typeof St!="string"&&(St+="");for(var kt=-1,xt=0,Dt=-1,yt=!0,et=0,tt=St.length-1;tt>=0;--tt){var lt=St.charCodeAt(tt);if(lt!==47)Dt===-1&&(yt=!1,Dt=tt+1),lt===46?kt===-1?kt=tt:et!==1&&(et=1):kt!==-1&&(et=-1);else if(!yt){xt=tt+1;break}}return kt===-1||Dt===-1||et===0||et===1&&kt===Dt-1&&kt===xt+1?"":St.slice(kt,Dt)};var Bt=function(St,kt,xt){return St.substr(kt,xt)}}).call(this,wt("_process"))},{_process:173}],171:[function(wt,Qt,Zt){(function(Ot){(function(){"use strict";function jt(te){return te=String(te),te.charAt(0).toUpperCase()+te.slice(1)}function Ct(te,Vt,de){var ge={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Vt&&de&&/^Win/i.test(te)&&!/^Windows Phone /i.test(te)&&(ge=ge[/[\d.]+$/.exec(te)])&&(te="Windows "+ge),te=String(te),Vt&&de&&(te=te.replace(RegExp(Vt,"i"),de)),te=Bt(te.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function Mt(te,Vt){var de=-1,ge=te?te.length:0;if(typeof ge=="number"&&ge>-1&&ge<=gt)for(;++de<ge;)Vt(te[de],de,te);else St(te,Vt)}function Bt(te){return te=et(te),/^(?:webOS|i(?:OS|P))/.test(te)?te:jt(te)}function St(te,Vt){for(var de in te)Ut.call(te,de)&&Vt(te[de],de,te)}function kt(te){return te==null?jt(te):Nt.call(te).slice(8,-1)}function xt(te,Vt){var de=te!=null?typeof te[Vt]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(de)||de=="object"&&!te[Vt])}function Dt(te){return String(te).replace(/([ -])(?!$)/g,"$1?")}function yt(te,Vt){var de=null;return Mt(te,function(ge,be){de=Vt(de,ge,be,te)}),de}function et(te){return String(te).replace(/^ +| +$/g,"")}function tt(te){function Vt($t){return yt($t,function(zt,Gt){var le=Gt.pattern||Dt(Gt);return!zt&&(zt=RegExp("\\b"+le+" *\\d+[.\\w_]*","i").exec(te)||RegExp("\\b"+le+" *\\w+-[\\w]*","i").exec(te)||RegExp("\\b"+le+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(te))&&((zt=String(Gt.label&&!RegExp(le,"i").test(Gt.label)?Gt.label:zt).split("/"))[1]&&!/[\d.]+/.test(zt[0])&&(zt[0]+=" "+zt[1]),Gt=Gt.label||Gt,zt=Bt(zt[0].replace(RegExp(le,"i"),Gt).replace(RegExp("; *(?:"+Gt+"[_-])?","i")," ").replace(RegExp("("+Gt+")[-_.]?(\\w)","i"),"$1 $2"))),zt})}function de(){return this.description||""}var ge=ot,be=te&&typeof te=="object"&&kt(te)!="String";be&&(ge=te,te=null);var Ne=ge.navigator||{},Ge=Ne.userAgent||"";te||(te=Ge);var Pe,ze,he=be?!!Ne.likeChrome:/\bChrome\b/.test(te)&&!/internal|\n/i.test(Nt.toString()),Jt=be?"Object":"ScriptBridgingProxyObject",re=be?"Object":"Environment",se=be&&ge.java?"JavaPackage":kt(ge.java),pe=be?"Object":"RuntimeObject",ue=/\bJava/.test(se)&&ge.java,Re=ue&&kt(ge.environment)==re,Fe=ue?"a":"\u4F2A",Qe=ue?"b":"\u5C3E",Ae=ge.document||{},_e=ge.operamini||ge.opera,Le=Lt.test(Le=be&&_e?_e["[[Class]]"]:kt(_e))?Le:_e=null,Oe=te,He=[],ie=null,Tt=te==Ge,At=Tt&&_e&&typeof _e.version=="function"&&_e.version(),Yt=function($t){return yt($t,function(zt,Gt){return zt||RegExp("\\b"+(Gt.pattern||Dt(Gt))+"\\b","i").exec(te)&&(Gt.label||Gt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),oe=function($t){return yt($t,function(zt,Gt){return zt||RegExp("\\b"+(Gt.pattern||Dt(Gt))+"\\b","i").exec(te)&&(Gt.label||Gt)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),_t=Vt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),It=function($t){return yt($t,function(zt,Gt,le){return zt||(Gt[_t]||Gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(_t)]||RegExp("\\b"+Dt(le)+"(?:\\b|\\w*\\d)","i").exec(te))&&le})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),Pt=function($t){return yt($t,function(zt,Gt){var le=Gt.pattern||Dt(Gt);return!zt&&(zt=RegExp("\\b"+le+"(?:/[\\d.]+|[ \\w.]*)","i").exec(te))&&(zt=Ct(zt,le,Gt.label||Gt)),zt})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(Yt&&(Yt=[Yt]),It&&!_t&&(_t=Vt([It])),(Pe=/\bGoogle TV\b/.exec(_t))&&(_t=Pe[0]),/\bSimulator\b/i.test(te)&&(_t=(_t?_t+" ":"")+"Simulator"),oe=="Opera Mini"&&/\bOPiOS\b/.test(te)&&He.push("running in Turbo/Uncompressed mode"),oe=="IE"&&/\blike iPhone OS\b/.test(te)?(Pe=tt(te.replace(/like iPhone OS/,"")),It=Pe.manufacturer,_t=Pe.product):/^iP/.test(_t)?(oe||(oe="Safari"),Pt="iOS"+((Pe=/ OS ([\d_]+)/i.exec(te))?" "+Pe[1].replace(/_/g,"."):"")):oe!="Konqueror"||/buntu/i.test(Pt)?It&&It!="Google"&&(/Chrome/.test(oe)&&!/\bMobile Safari\b/i.test(te)||/\bVita\b/.test(_t))||/\bAndroid\b/.test(Pt)&&/^Chrome/.test(oe)&&/\bVersion\//i.test(te)?(oe="Android Browser",Pt=/\bAndroid\b/.test(Pt)?Pt:"Android"):oe=="Silk"?(/\bMobi/i.test(te)||(Pt="Android",He.unshift("desktop mode")),/Accelerated *= *true/i.test(te)&&He.unshift("accelerated")):oe=="PaleMoon"&&(Pe=/\bFirefox\/([\d.]+)\b/.exec(te))?He.push("identifying as Firefox "+Pe[1]):oe=="Firefox"&&(Pe=/\b(Mobile|Tablet|TV)\b/i.exec(te))?(Pt||(Pt="Firefox OS"),_t||(_t=Pe[1])):!oe||(Pe=!/\bMinefield\b/i.test(te)&&/\b(?:Firefox|Safari)\b/.exec(oe))?(oe&&!_t&&/[\/,]|^[^(]+?\)/.test(te.slice(te.indexOf(Pe+"/")+8))&&(oe=null),(Pe=_t||It||Pt)&&(_t||It||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Pt))&&(oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Pt)?Pt:Pe)+" Browser")):oe=="Electron"&&(Pe=(/\bChrome\/([\d.]+)\b/.exec(te)||0)[1])&&He.push("Chromium "+Pe):Pt="Kubuntu",At||(At=function($t){return yt($t,function(zt,Gt){return zt||(RegExp(Gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(te)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",Dt(oe),"(?:Firefox|Minefield|NetFront)"])),(Pe=Yt=="iCab"&&parseFloat(At)>3&&"WebKit"||/\bOpera\b/.test(oe)&&(/\bOPR\b/.test(te)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(te)&&!/^(?:Trident|EdgeHTML)$/.test(Yt)&&"WebKit"||!Yt&&/\bMSIE\b/i.test(te)&&(Pt=="Mac OS"?"Tasman":"Trident")||Yt=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(oe)&&"NetFront")&&(Yt=[Pe]),oe=="IE"&&(Pe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(te)||0)[1])?(oe+=" Mobile",Pt="Windows Phone "+(/\+$/.test(Pe)?Pe:Pe+".x"),He.unshift("desktop mode")):/\bWPDesktop\b/i.test(te)?(oe="IE Mobile",Pt="Windows Phone 8.x",He.unshift("desktop mode"),At||(At=(/\brv:([\d.]+)/.exec(te)||0)[1])):oe!="IE"&&Yt=="Trident"&&(Pe=/\brv:([\d.]+)/.exec(te))&&(oe&&He.push("identifying as "+oe+(At?" "+At:"")),oe="IE",At=Pe[1]),Tt){if(xt(ge,"global"))if(ue&&(Pe=ue.lang.System,Oe=Pe.getProperty("os.arch"),Pt=Pt||Pe.getProperty("os.name")+" "+Pe.getProperty("os.version")),Re){try{At=ge.require("ringo/engine").version.join("."),oe="RingoJS"}catch($t){(Pe=ge.system)&&Pe.global.system==ge.system&&(oe="Narwhal",Pt||(Pt=Pe[0].os||null))}oe||(oe="Rhino")}else typeof ge.process=="object"&&!ge.process.browser&&(Pe=ge.process)&&(typeof Pe.versions=="object"&&(typeof Pe.versions.electron=="string"?(He.push("Node "+Pe.versions.node),oe="Electron",At=Pe.versions.electron):typeof Pe.versions.nw=="string"&&(He.push("Chromium "+At,"Node "+Pe.versions.node),oe="NW.js",At=Pe.versions.nw)),oe||(oe="Node.js",Oe=Pe.arch,Pt=Pe.platform,At=/[\d.]+/.exec(Pe.version),At=At?At[0]:null));else kt(Pe=ge.runtime)==Jt?(oe="Adobe AIR",Pt=Pe.flash.system.Capabilities.os):kt(Pe=ge.phantom)==pe?(oe="PhantomJS",At=(Pe=Pe.version||null)&&Pe.major+"."+Pe.minor+"."+Pe.patch):typeof Ae.documentMode=="number"&&(Pe=/\bTrident\/(\d+)/i.exec(te))?(At=[At,Ae.documentMode],(Pe=+Pe[1]+4)!=At[1]&&(He.push("IE "+At[1]+" mode"),Yt&&(Yt[1]=""),At[1]=Pe),At=oe=="IE"?String(At[1].toFixed(1)):At[0]):typeof Ae.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(oe)&&(He.push("masking as "+oe+" "+At),oe="IE",At="11.0",Yt=["Trident"],Pt="Windows");Pt=Pt&&Bt(Pt)}if(At&&(Pe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(At)||/(?:alpha|beta)(?: ?\d)?/i.exec(te+";"+(Tt&&Ne.appMinorVersion))||/\bMinefield\b/i.test(te)&&"a")&&(ie=/b/i.test(Pe)?"beta":"alpha",At=At.replace(RegExp(Pe+"\\+?$"),"")+(ie=="beta"?Qe:Fe)+(/\d+\+?/.exec(Pe)||"")),oe=="Fennec"||oe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Pt))oe="Firefox Mobile";else if(oe=="Maxthon"&&At)At=At.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(_t))_t=="Xbox 360"&&(Pt=null),_t=="Xbox 360"&&/\bIEMobile\b/.test(te)&&He.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(oe)&&(!oe||_t||/Browser|Mobi/.test(oe))||Pt!="Windows CE"&&!/Mobi/i.test(te))if(oe=="IE"&&Tt)try{ge.external===null&&He.unshift("platform preview")}catch($t){He.unshift("embedded")}else(/\bBlackBerry\b/.test(_t)||/\bBB10\b/.test(te))&&(Pe=(RegExp(_t.replace(/ +/g," *")+"/([.\\d]+)","i").exec(te)||0)[1]||At)?(Pe=[Pe,/BB10/.test(te)],Pt=(Pe[1]?(_t=null,It="BlackBerry"):"Device Software")+" "+Pe[0],At=null):this!=St&&_t!="Wii"&&(Tt&&_e||/Opera/.test(oe)&&/\b(?:MSIE|Firefox)\b/i.test(te)||oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Pt)||oe=="IE"&&(Pt&&!/^Win/.test(Pt)&&At>5.5||/\bWindows XP\b/.test(Pt)&&At>8||At==8&&!/\bTrident\b/.test(te)))&&!Lt.test(Pe=tt.call(St,te.replace(Lt,"")+";"))&&Pe.name&&(Pe="ing as "+Pe.name+((Pe=Pe.version)?" "+Pe:""),Lt.test(oe)?(/\bIE\b/.test(Pe)&&Pt=="Mac OS"&&(Pt=null),Pe="identify"+Pe):(Pe="mask"+Pe,oe=Le?Bt(Le.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(Pe)&&(Pt=null),Tt||(At=null)),Yt=["Presto"],He.push(Pe));else oe+=" Mobile";(Pe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(te)||0)[1])&&(Pe=[parseFloat(Pe.replace(/\.(\d)$/,".0$1")),Pe],oe=="Safari"&&Pe[1].slice(-1)=="+"?(oe="WebKit Nightly",ie="alpha",At=Pe[1].slice(0,-1)):At!=Pe[1]&&At!=(Pe[2]=(/\bSafari\/([\d.]+\+?)/i.exec(te)||0)[1])||(At=null),Pe[1]=(/\bChrome\/([\d.]+)/i.exec(te)||0)[1],Pe[0]==537.36&&Pe[2]==537.36&&parseFloat(Pe[1])>=28&&Yt=="WebKit"&&(Yt=["Blink"]),Tt&&(he||Pe[1])?(Yt&&(Yt[1]="like Chrome"),Pe=Pe[1]||(Pe=Pe[0],Pe<530?1:Pe<532?2:Pe<532.05?3:Pe<533?4:Pe<534.03?5:Pe<534.07?6:Pe<534.1?7:Pe<534.13?8:Pe<534.16?9:Pe<534.24?10:Pe<534.3?11:Pe<535.01?12:Pe<535.02?"13+":Pe<535.07?15:Pe<535.11?16:Pe<535.19?17:Pe<536.05?18:Pe<536.1?19:Pe<537.01?20:Pe<537.11?"21+":Pe<537.13?23:Pe<537.18?24:Pe<537.24?25:Pe<537.36?26:Yt!="Blink"?"27":"28")):(Yt&&(Yt[1]="like Safari"),Pe=Pe[0],Pe=Pe<400?1:Pe<500?2:Pe<526?3:Pe<533?4:Pe<534?"4+":Pe<535?5:Pe<537?6:Pe<538?7:Pe<601?8:"8"),Yt&&(Yt[1]+=" "+(Pe+=typeof Pe=="number"?".x":/[.+]/.test(Pe)?"":"+")),oe=="Safari"&&(!At||parseInt(At)>45)&&(At=Pe)),oe=="Opera"&&(Pe=/\bzbov|zvav$/.exec(Pt))?(oe+=" ",He.unshift("desktop mode"),Pe=="zvav"?(oe+="Mini",At=null):oe+="Mobile",Pt=Pt.replace(RegExp(" *"+Pe+"$"),"")):oe=="Safari"&&/\bChrome\b/.exec(Yt&&Yt[1])&&(He.unshift("desktop mode"),oe="Chrome Mobile",At=null,/\bOS X\b/.test(Pt)?(It="Apple",Pt="iOS 4.3+"):Pt=null),At&&At.indexOf(Pe=/[\d.]+$/.exec(Pt))==0&&te.indexOf("/"+Pe+"-")>-1&&(Pt=et(Pt.replace(Pe,""))),Yt&&!/\b(?:Avant|Nook)\b/.test(oe)&&(/Browser|Lunascape|Maxthon/.test(oe)||oe!="Safari"&&/^iOS/.test(Pt)&&/\bSafari\b/.test(Yt[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(oe)&&Yt[1])&&(Pe=Yt[Yt.length-1])&&He.push(Pe),He.length&&(He=["("+He.join("; ")+")"]),It&&_t&&_t.indexOf(It)<0&&He.push("on "+It),_t&&He.push((/^on /.test(He[He.length-1])?"":"on ")+_t),Pt&&(Pe=/ ([\d.+]+)$/.exec(Pt),ze=Pe&&Pt.charAt(Pt.length-Pe[0].length-1)=="/",Pt={architecture:32,family:Pe&&!ze?Pt.replace(Pe[0],""):Pt,version:Pe?Pe[1]:null,toString:function(){var $t=this.version;return this.family+($t&&!ze?" "+$t:"")+(this.architecture==64?" 64-bit":"")}}),(Pe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Oe))&&!/\bi686\b/i.test(Oe)?(Pt&&(Pt.architecture=64,Pt.family=Pt.family.replace(RegExp(" *"+Pe),"")),oe&&(/\bWOW64\b/i.test(te)||Tt&&/\w(?:86|32)$/.test(Ne.cpuClass||Ne.platform)&&!/\bWin64; x64\b/i.test(te))&&He.unshift("32-bit")):Pt&&/^OS X/.test(Pt.family)&&oe=="Chrome"&&parseFloat(At)>=39&&(Pt.architecture=64),te||(te=null);var Et={};return Et.description=te,Et.layout=Yt&&Yt[0],Et.manufacturer=It,Et.name=oe,Et.prerelease=ie,Et.product=_t,Et.ua=te,Et.version=oe&&At,Et.os=Pt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Et.parse=tt,Et.toString=de,Et.version&&He.unshift(At),Et.name&&He.unshift(oe),Pt&&oe&&(Pt!=String(Pt).split(" ")[0]||Pt!=oe.split(" ")[0]&&!_t)&&He.push(_t?"("+Pt+")":"on "+Pt),He.length&&(Et.description=He.join(" ")),Et}var lt={function:!0,object:!0},ot=lt[typeof window]&&window||this,ut=lt[typeof Zt]&&Zt,ct=lt[typeof Qt]&&Qt&&!Qt.nodeType&&Qt,ft=ut&&ct&&typeof Ot=="object"&&Ot;!ft||ft.global!==ft&&ft.window!==ft&&ft.self!==ft||(ot=ft);var gt=Math.pow(2,53)-1,Lt=/\bOpera/,Rt=Object.prototype,Ut=Rt.hasOwnProperty,Nt=Rt.toString,qt=tt();typeof ee=="function"&&typeof ee.amd=="object"&&ee.amd?(ot.platform=qt,ee(function(){return qt})):ut&&ct?St(qt,function(te,Vt){ut[Vt]=te}):ot.platform=qt}).call(this)}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(Ct,Mt,Bt,St){if(typeof Ct!="function")throw new TypeError('"callback" argument must be a function');var kt,xt,Dt=arguments.length;switch(Dt){case 0:case 1:return Ot.nextTick(Ct);case 2:return Ot.nextTick(function(){Ct.call(null,Mt)});case 3:return Ot.nextTick(function(){Ct.call(null,Mt,Bt)});case 4:return Ot.nextTick(function(){Ct.call(null,Mt,Bt,St)});default:for(kt=new Array(Dt-1),xt=0;xt<kt.length;)kt[xt++]=arguments[xt];return Ot.nextTick(function(){Ct.apply(null,kt)})}}!Ot.version||Ot.version.indexOf("v0.")===0||Ot.version.indexOf("v1.")===0&&Ot.version.indexOf("v1.8.")!==0?Qt.exports={nextTick:jt}:Qt.exports=Ot}).call(this,wt("_process"))},{_process:173}],173:[function(wt,Qt,Zt){function Ot(){throw new Error("setTimeout has not been defined")}function jt(){throw new Error("clearTimeout has not been defined")}function Ct(ct){if(Dt===setTimeout)return setTimeout(ct,0);if((Dt===Ot||!Dt)&&setTimeout)return Dt=setTimeout,setTimeout(ct,0);try{return Dt(ct,0)}catch(ft){try{return Dt.call(null,ct,0)}catch(gt){return Dt.call(this,ct,0)}}}function Mt(ct){if(yt===clearTimeout)return clearTimeout(ct);if((yt===jt||!yt)&&clearTimeout)return yt=clearTimeout,clearTimeout(ct);try{return yt(ct)}catch(ft){try{return yt.call(null,ct)}catch(gt){return yt.call(this,ct)}}}function Bt(){ot&&tt&&(ot=!1,tt.length?lt=tt.concat(lt):ut=-1,lt.length&&St())}function St(){if(!ot){var ct=Ct(Bt);ot=!0;for(var ft=lt.length;ft;){for(tt=lt,lt=[];++ut<ft;)tt&&tt[ut].run();ut=-1,ft=lt.length}tt=null,ot=!1,Mt(ct)}}function kt(ct,ft){this.fun=ct,this.array=ft}function xt(){}var Dt,yt,et=Qt.exports={};(function(){try{Dt=typeof setTimeout=="function"?setTimeout:Ot}catch(ct){Dt=Ot}try{yt=typeof clearTimeout=="function"?clearTimeout:jt}catch(ct){yt=jt}})();var tt,lt=[],ot=!1,ut=-1;et.nextTick=function(ct){var ft=new Array(arguments.length-1);if(arguments.length>1)for(var gt=1;gt<arguments.length;gt++)ft[gt-1]=arguments[gt];lt.push(new kt(ct,ft)),lt.length!==1||ot||Ct(St)},kt.prototype.run=function(){this.fun.apply(null,this.array)},et.title="browser",et.browser=!0,et.env={},et.argv=[],et.version="",et.versions={},et.on=xt,et.addListener=xt,et.once=xt,et.off=xt,et.removeListener=xt,et.removeAllListeners=xt,et.emit=xt,et.prependListener=xt,et.prependOnceListener=xt,et.listeners=function(ct){return[]},et.binding=function(ct){throw new Error("process.binding is not supported")},et.cwd=function(){return"/"},et.chdir=function(ct){throw new Error("process.chdir is not supported")},et.umask=function(){return 0}},{}],174:[function(wt,Qt,Zt){(function(Ot){(function(jt){function Ct(se){throw new RangeError(ze[se])}function Mt(se,pe){for(var ue=se.length,Re=[];ue--;)Re[ue]=pe(se[ue]);return Re}function Bt(se,pe){var ue=se.split("@"),Re="";return ue.length>1&&(Re=ue[0]+"@",se=ue[1]),se=se.replace(Pe,"."),Re+Mt(se.split("."),pe).join(".")}function St(se){for(var pe,ue,Re=[],Fe=0,Qe=se.length;Fe<Qe;)pe=se.charCodeAt(Fe++),pe>=55296&&pe<=56319&&Fe<Qe?(ue=se.charCodeAt(Fe++),(64512&ue)==56320?Re.push(((1023&pe)<<10)+(1023&ue)+65536):(Re.push(pe),Fe--)):Re.push(pe);return Re}function kt(se){return Mt(se,function(pe){var ue="";return pe>65535&&(pe-=65536,ue+=re(pe>>>10&1023|55296),pe=56320|1023&pe),ue+=re(pe)}).join("")}function xt(se){return se-48<10?se-22:se-65<26?se-65:se-97<26?se-97:Ut}function Dt(se,pe){return se+22+75*(se<26)-((pe!=0)<<5)}function yt(se,pe,ue){var Re=0;for(se=ue?Jt(se/Vt):se>>1,se+=Jt(se/pe);se>he*qt>>1;Re+=Ut)se=Jt(se/he);return Jt(Re+(he+1)*se/(se+te))}function et(se){var pe,ue,Re,Fe,Qe,Ae,_e,Le,Oe,He,ie=[],Tt=se.length,At=0,Yt=ge,oe=de;for(ue=se.lastIndexOf(be),ue<0&&(ue=0),Re=0;Re<ue;++Re)se.charCodeAt(Re)>=128&&Ct("not-basic"),ie.push(se.charCodeAt(Re));for(Fe=ue>0?ue+1:0;Fe<Tt;){for(Qe=At,Ae=1,_e=Ut;Fe>=Tt&&Ct("invalid-input"),Le=xt(se.charCodeAt(Fe++)),(Le>=Ut||Le>Jt((Rt-At)/Ae))&&Ct("overflow"),At+=Le*Ae,Oe=_e<=oe?Nt:_e>=oe+qt?qt:_e-oe,!(Le<Oe);_e+=Ut)He=Ut-Oe,Ae>Jt(Rt/He)&&Ct("overflow"),Ae*=He;pe=ie.length+1,oe=yt(At-Qe,pe,Qe==0),Jt(At/pe)>Rt-Yt&&Ct("overflow"),Yt+=Jt(At/pe),At%=pe,ie.splice(At++,0,Yt)}return kt(ie)}function tt(se){var pe,ue,Re,Fe,Qe,Ae,_e,Le,Oe,He,ie,Tt,At,Yt,oe,_t=[];for(se=St(se),Tt=se.length,pe=ge,ue=0,Qe=de,Ae=0;Ae<Tt;++Ae)(ie=se[Ae])<128&&_t.push(re(ie));for(Re=Fe=_t.length,Fe&&_t.push(be);Re<Tt;){for(_e=Rt,Ae=0;Ae<Tt;++Ae)(ie=se[Ae])>=pe&&ie<_e&&(_e=ie);for(At=Re+1,_e-pe>Jt((Rt-ue)/At)&&Ct("overflow"),ue+=(_e-pe)*At,pe=_e,Ae=0;Ae<Tt;++Ae)if(ie=se[Ae],ie<pe&&++ue>Rt&&Ct("overflow"),ie==pe){for(Le=ue,Oe=Ut;He=Oe<=Qe?Nt:Oe>=Qe+qt?qt:Oe-Qe,!(Le<He);Oe+=Ut)oe=Le-He,Yt=Ut-He,_t.push(re(Dt(He+oe%Yt,0))),Le=Jt(oe/Yt);_t.push(re(Dt(Le,0))),Qe=yt(ue,At,Re==Fe),ue=0,++Re}++ue,++pe}return _t.join("")}function lt(se){return Bt(se,function(pe){return Ne.test(pe)?et(pe.slice(4).toLowerCase()):pe})}function ot(se){return Bt(se,function(pe){return Ge.test(pe)?"xn--"+tt(pe):pe})}var ut=typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,ct=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,ft=typeof Ot=="object"&&Ot;ft.global!==ft&&ft.window!==ft&&ft.self!==ft||(jt=ft);var gt,Lt,Rt=2147483647,Ut=36,Nt=1,qt=26,te=38,Vt=700,de=72,ge=128,be="-",Ne=/^xn--/,Ge=/[^\x20-\x7E]/,Pe=/[\x2E\u3002\uFF0E\uFF61]/g,ze={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},he=Ut-Nt,Jt=Math.floor,re=String.fromCharCode;if(gt={version:"1.4.1",ucs2:{decode:St,encode:kt},decode:et,encode:tt,toASCII:ot,toUnicode:lt},typeof ee=="function"&&typeof ee.amd=="object"&&ee.amd)ee("punycode",function(){return gt});else if(ut&&ct)if(Qt.exports==ut)ct.exports=gt;else for(Lt in gt)gt.hasOwnProperty(Lt)&&(ut[Lt]=gt[Lt]);else jt.punycode=gt})(this)}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(wt,Qt,Zt){"use strict";function Ot(Ct,Mt){return Object.prototype.hasOwnProperty.call(Ct,Mt)}Qt.exports=function(Ct,Mt,Bt,St){Mt=Mt||"&",Bt=Bt||"=";var kt={};if(typeof Ct!="string"||Ct.length===0)return kt;var xt=/\+/g;Ct=Ct.split(Mt);var Dt=1e3;St&&typeof St.maxKeys=="number"&&(Dt=St.maxKeys);var yt=Ct.length;Dt>0&&yt>Dt&&(yt=Dt);for(var et=0;et<yt;++et){var tt,lt,ot,ut,ct=Ct[et].replace(xt,"%20"),ft=ct.indexOf(Bt);ft>=0?(tt=ct.substr(0,ft),lt=ct.substr(ft+1)):(tt=ct,lt=""),ot=decodeURIComponent(tt),ut=decodeURIComponent(lt),Ot(kt,ot)?jt(kt[ot])?kt[ot].push(ut):kt[ot]=[kt[ot],ut]:kt[ot]=ut}return kt};var jt=Array.isArray||function(Ct){return Object.prototype.toString.call(Ct)==="[object Array]"}},{}],176:[function(wt,Qt,Zt){"use strict";function Ot(Bt,St){if(Bt.map)return Bt.map(St);for(var kt=[],xt=0;xt<Bt.length;xt++)kt.push(St(Bt[xt],xt));return kt}var jt=function(Bt){switch(typeof Bt){case"string":return Bt;case"boolean":return Bt?"true":"false";case"number":return isFinite(Bt)?Bt:"";default:return""}};Qt.exports=function(Bt,St,kt,xt){return St=St||"&",kt=kt||"=",Bt===null&&(Bt=void 0),typeof Bt=="object"?Ot(Mt(Bt),function(Dt){var yt=encodeURIComponent(jt(Dt))+kt;return Ct(Bt[Dt])?Ot(Bt[Dt],function(et){return yt+encodeURIComponent(jt(et))}).join(St):yt+encodeURIComponent(jt(Bt[Dt]))}).join(St):xt?encodeURIComponent(jt(xt))+kt+encodeURIComponent(jt(Bt)):""};var Ct=Array.isArray||function(Bt){return Object.prototype.toString.call(Bt)==="[object Array]"},Mt=Object.keys||function(Bt){var St=[];for(var kt in Bt)Object.prototype.hasOwnProperty.call(Bt,kt)&&St.push(kt);return St}},{}],177:[function(wt,Qt,Zt){"use strict";Zt.decode=Zt.parse=wt("./decode"),Zt.encode=Zt.stringify=wt("./encode")},{"./decode":175,"./encode":176}],178:[function(wt,Qt,Zt){Qt.exports=wt("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(wt,Qt,Zt){"use strict";function Ot(ot){if(!(this instanceof Ot))return new Ot(ot);Dt.call(this,ot),yt.call(this,ot),ot&&ot.readable===!1&&(this.readable=!1),ot&&ot.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ot&&ot.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",jt)}function jt(){this.allowHalfOpen||this._writableState.ended||St.nextTick(Ct,this)}function Ct(ot){ot.end()}var Mt=wt("babel-runtime/core-js/object/keys"),Bt=function(ot){return ot&&ot.__esModule?ot:{default:ot}}(Mt),St=wt("process-nextick-args"),kt=Bt.default||function(ot){var ut=[];for(var ct in ot)ut.push(ct);return ut};Qt.exports=Ot;var xt=wt("core-util-is");xt.inherits=wt("inherits");var Dt=wt("./_stream_readable"),yt=wt("./_stream_writable");xt.inherits(Ot,Dt);for(var et=kt(yt.prototype),tt=0;tt<et.length;tt++){var lt=et[tt];Ot.prototype[lt]||(Ot.prototype[lt]=yt.prototype[lt])}Object.defineProperty(Ot.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Ot.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(ot){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=ot,this._writableState.destroyed=ot)}}),Ot.prototype._destroy=function(ot,ut){this.push(null),this.end(),St.nextTick(ut,ot)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(wt,Qt,Zt){"use strict";function Ot(Mt){if(!(this instanceof Ot))return new Ot(Mt);jt.call(this,Mt)}Qt.exports=Ot;var jt=wt("./_stream_transform"),Ct=wt("core-util-is");Ct.inherits=wt("inherits"),Ct.inherits(Ot,jt),Ot.prototype._transform=function(Mt,Bt,St){St(null,Mt)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(wt,Qt,Zt){(function(Ot,jt){"use strict";function Ct(Tt){return ue.from(Tt)}function Mt(Tt){return ue.isBuffer(Tt)||Tt instanceof Re}function Bt(Tt,At,Yt){if(typeof Tt.prependListener=="function")return Tt.prependListener(At,Yt);Tt._events&&Tt._events[At]?re(Tt._events[At])?Tt._events[At].unshift(Yt):Tt._events[At]=[Yt,Tt._events[At]]:Tt.on(At,Yt)}function St(Tt,At){Jt=Jt||wt("./_stream_duplex"),Tt=Tt||{};var Yt=At instanceof Jt;this.objectMode=!!Tt.objectMode,Yt&&(this.objectMode=this.objectMode||!!Tt.readableObjectMode);var oe=Tt.highWaterMark,_t=Tt.readableHighWaterMark,It=this.objectMode?16:16384;this.highWaterMark=oe||oe===0?oe:Yt&&(_t||_t===0)?_t:It,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Le,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Tt.encoding&&(_e||(_e=wt("string_decoder/").StringDecoder),this.decoder=new _e(Tt.encoding),this.encoding=Tt.encoding)}function kt(Tt){if(Jt=Jt||wt("./_stream_duplex"),!(this instanceof kt))return new kt(Tt);this._readableState=new St(Tt,this),this.readable=!0,Tt&&(typeof Tt.read=="function"&&(this._read=Tt.read),typeof Tt.destroy=="function"&&(this._destroy=Tt.destroy)),pe.call(this)}function xt(Tt,At,Yt,oe,_t){var It=Tt._readableState;if(At===null)It.reading=!1,ot(Tt,It);else{var Pt;_t||(Pt=yt(It,At)),Pt?Tt.emit("error",Pt):It.objectMode||At&&At.length>0?(typeof At=="string"||It.objectMode||(0,ze.default)(At)===ue.prototype||(At=Ct(At)),oe?It.endEmitted?Tt.emit("error",new Error("stream.unshift() after end event")):Dt(Tt,It,At,!0):It.ended?Tt.emit("error",new Error("stream.push() after EOF")):(It.reading=!1,It.decoder&&!Yt?(At=It.decoder.write(At),It.objectMode||At.length!==0?Dt(Tt,It,At,!1):ft(Tt,It)):Dt(Tt,It,At,!1))):oe||(It.reading=!1)}return et(It)}function Dt(Tt,At,Yt,oe){At.flowing&&At.length===0&&!At.sync?(Tt.emit("data",Yt),Tt.read(0)):(At.length+=At.objectMode?1:Yt.length,oe?At.buffer.unshift(Yt):At.buffer.push(Yt),At.needReadable&&ut(Tt)),ft(Tt,At)}function yt(Tt,At){var Yt;return Mt(At)||typeof At=="string"||At===void 0||Tt.objectMode||(Yt=new TypeError("Invalid non-string/buffer chunk")),Yt}function et(Tt){return!Tt.ended&&(Tt.needReadable||Tt.length<Tt.highWaterMark||Tt.length===0)}function tt(Tt){return Tt>=ie?Tt=ie:(Tt--,Tt|=Tt>>>1,Tt|=Tt>>>2,Tt|=Tt>>>4,Tt|=Tt>>>8,Tt|=Tt>>>16,Tt++),Tt}function lt(Tt,At){return Tt<=0||At.length===0&&At.ended?0:At.objectMode?1:Tt!==Tt?At.flowing&&At.length?At.buffer.head.data.length:At.length:(Tt>At.highWaterMark&&(At.highWaterMark=tt(Tt)),Tt<=At.length?Tt:At.ended?At.length:(At.needReadable=!0,0))}function ot(Tt,At){if(!At.ended){if(At.decoder){var Yt=At.decoder.end();Yt&&Yt.length&&(At.buffer.push(Yt),At.length+=At.objectMode?1:Yt.length)}At.ended=!0,ut(Tt)}}function ut(Tt){var At=Tt._readableState;At.needReadable=!1,At.emittedReadable||(Ae("emitReadable",At.flowing),At.emittedReadable=!0,At.sync?he.nextTick(ct,Tt):ct(Tt))}function ct(Tt){Ae("emit readable"),Tt.emit("readable"),qt(Tt)}function ft(Tt,At){At.readingMore||(At.readingMore=!0,he.nextTick(gt,Tt,At))}function gt(Tt,At){for(var Yt=At.length;!At.reading&&!At.flowing&&!At.ended&&At.length<At.highWaterMark&&(Ae("maybeReadMore read 0"),Tt.read(0),Yt!==At.length);)Yt=At.length;At.readingMore=!1}function Lt(Tt){return function(){var At=Tt._readableState;Ae("pipeOnDrain",At.awaitDrain),At.awaitDrain&&At.awaitDrain--,At.awaitDrain===0&&se(Tt,"data")&&(At.flowing=!0,qt(Tt))}}function Rt(Tt){Ae("readable nexttick read 0"),Tt.read(0)}function Ut(Tt,At){At.resumeScheduled||(At.resumeScheduled=!0,he.nextTick(Nt,Tt,At))}function Nt(Tt,At){At.reading||(Ae("resume read 0"),Tt.read(0)),At.resumeScheduled=!1,At.awaitDrain=0,Tt.emit("resume"),qt(Tt),At.flowing&&!At.reading&&Tt.read(0)}function qt(Tt){var At=Tt._readableState;for(Ae("flow",At.flowing);At.flowing&&Tt.read()!==null;);}function te(Tt,At){if(At.length===0)return null;var Yt;return At.objectMode?Yt=At.buffer.shift():!Tt||Tt>=At.length?(Yt=At.decoder?At.buffer.join(""):At.buffer.length===1?At.buffer.head.data:At.buffer.concat(At.length),At.buffer.clear()):Yt=Vt(Tt,At.buffer,At.decoder),Yt}function Vt(Tt,At,Yt){var oe;return Tt<At.head.data.length?(oe=At.head.data.slice(0,Tt),At.head.data=At.head.data.slice(Tt)):oe=Tt===At.head.data.length?At.shift():Yt?de(Tt,At):ge(Tt,At),oe}function de(Tt,At){var Yt=At.head,oe=1,_t=Yt.data;for(Tt-=_t.length;Yt=Yt.next;){var It=Yt.data,Pt=Tt>It.length?It.length:Tt;if(Pt===It.length?_t+=It:_t+=It.slice(0,Tt),(Tt-=Pt)===0){Pt===It.length?(++oe,Yt.next?At.head=Yt.next:At.head=At.tail=null):(At.head=Yt,Yt.data=It.slice(Pt));break}++oe}return At.length-=oe,_t}function ge(Tt,At){var Yt=ue.allocUnsafe(Tt),oe=At.head,_t=1;for(oe.data.copy(Yt),Tt-=oe.data.length;oe=oe.next;){var It=oe.data,Pt=Tt>It.length?It.length:Tt;if(It.copy(Yt,Yt.length-Tt,0,Pt),(Tt-=Pt)===0){Pt===It.length?(++_t,oe.next?At.head=oe.next:At.head=At.tail=null):(At.head=oe,oe.data=It.slice(Pt));break}++_t}return At.length-=_t,Yt}function be(Tt){var At=Tt._readableState;if(At.length>0)throw new Error('"endReadable()" called on non-empty stream');At.endEmitted||(At.ended=!0,he.nextTick(Ne,At,Tt))}function Ne(Tt,At){Tt.endEmitted||Tt.length!==0||(Tt.endEmitted=!0,At.readable=!1,At.emit("end"))}function Ge(Tt,At){for(var Yt=0,oe=Tt.length;Yt<oe;Yt++)if(Tt[Yt]===At)return Yt;return-1}var Pe=wt("babel-runtime/core-js/object/get-prototype-of"),ze=function(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}(Pe),he=wt("process-nextick-args");Qt.exports=kt;var Jt,re=wt("isarray");kt.ReadableState=St;var se=(wt("events").EventEmitter,function(Tt,At){return Tt.listeners(At).length}),pe=wt("./internal/streams/stream"),ue=wt("safe-buffer").Buffer,Re=jt.Uint8Array||function(){},Fe=wt("core-util-is");Fe.inherits=wt("inherits");var Qe=wt("util"),Ae=void 0;Ae=Qe&&Qe.debuglog?Qe.debuglog("stream"):function(){};var _e,Le=wt("./internal/streams/BufferList"),Oe=wt("./internal/streams/destroy");Fe.inherits(kt,pe);var He=["error","close","destroy","pause","resume"];Object.defineProperty(kt.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(Tt){this._readableState&&(this._readableState.destroyed=Tt)}}),kt.prototype.destroy=Oe.destroy,kt.prototype._undestroy=Oe.undestroy,kt.prototype._destroy=function(Tt,At){this.push(null),At(Tt)},kt.prototype.push=function(Tt,At){var Yt,oe=this._readableState;return oe.objectMode?Yt=!0:typeof Tt=="string"&&(At=At||oe.defaultEncoding,At!==oe.encoding&&(Tt=ue.from(Tt,At),At=""),Yt=!0),xt(this,Tt,At,!1,Yt)},kt.prototype.unshift=function(Tt){return xt(this,Tt,null,!0,!1)},kt.prototype.isPaused=function(){return this._readableState.flowing===!1},kt.prototype.setEncoding=function(Tt){return _e||(_e=wt("string_decoder/").StringDecoder),this._readableState.decoder=new _e(Tt),this._readableState.encoding=Tt,this};var ie=8388608;kt.prototype.read=function(Tt){Ae("read",Tt),Tt=parseInt(Tt,10);var At=this._readableState,Yt=Tt;if(Tt!==0&&(At.emittedReadable=!1),Tt===0&&At.needReadable&&(At.length>=At.highWaterMark||At.ended))return Ae("read: emitReadable",At.length,At.ended),At.length===0&&At.ended?be(this):ut(this),null;if((Tt=lt(Tt,At))===0&&At.ended)return At.length===0&&be(this),null;var oe=At.needReadable;Ae("need readable",oe),(At.length===0||At.length-Tt<At.highWaterMark)&&(oe=!0,Ae("length less than watermark",oe)),At.ended||At.reading?(oe=!1,Ae("reading or ended",oe)):oe&&(Ae("do read"),At.reading=!0,At.sync=!0,At.length===0&&(At.needReadable=!0),this._read(At.highWaterMark),At.sync=!1,At.reading||(Tt=lt(Yt,At)));var _t;return _t=Tt>0?te(Tt,At):null,_t===null?(At.needReadable=!0,Tt=0):At.length-=Tt,At.length===0&&(At.ended||(At.needReadable=!0),Yt!==Tt&&At.ended&&be(this)),_t!==null&&this.emit("data",_t),_t},kt.prototype._read=function(Tt){this.emit("error",new Error("_read() is not implemented"))},kt.prototype.pipe=function(Tt,At){function Yt(on,nn){Ae("onunpipe"),on===Gt&&nn&&nn.hasUnpiped===!1&&(nn.hasUnpiped=!0,_t())}function oe(){Ae("onend"),Tt.end()}function _t(){Ae("cleanup"),Tt.removeListener("close",Et),Tt.removeListener("finish",$t),Tt.removeListener("drain",We),Tt.removeListener("error",Pt),Tt.removeListener("unpipe",Yt),Gt.removeListener("end",oe),Gt.removeListener("end",zt),Gt.removeListener("data",It),Ee=!0,!le.awaitDrain||Tt._writableState&&!Tt._writableState.needDrain||We()}function It(on){Ae("ondata"),Ze=!1,Tt.write(on)!==!1||Ze||((le.pipesCount===1&&le.pipes===Tt||le.pipesCount>1&&Ge(le.pipes,Tt)!==-1)&&!Ee&&(Ae("false write response, pause",Gt._readableState.awaitDrain),Gt._readableState.awaitDrain++,Ze=!0),Gt.pause())}function Pt(on){Ae("onerror",on),zt(),Tt.removeListener("error",Pt),se(Tt,"error")===0&&Tt.emit("error",on)}function Et(){Tt.removeListener("finish",$t),zt()}function $t(){Ae("onfinish"),Tt.removeListener("close",Et),zt()}function zt(){Ae("unpipe"),Gt.unpipe(Tt)}var Gt=this,le=this._readableState;switch(le.pipesCount){case 0:le.pipes=Tt;break;case 1:le.pipes=[le.pipes,Tt];break;default:le.pipes.push(Tt)}le.pipesCount+=1,Ae("pipe count=%d opts=%j",le.pipesCount,At);var ye=(!At||At.end!==!1)&&Tt!==Ot.stdout&&Tt!==Ot.stderr,Ue=ye?oe:zt;le.endEmitted?he.nextTick(Ue):Gt.once("end",Ue),Tt.on("unpipe",Yt);var We=Lt(Gt);Tt.on("drain",We);var Ee=!1,Ze=!1;return Gt.on("data",It),Bt(Tt,"error",Pt),Tt.once("close",Et),Tt.once("finish",$t),Tt.emit("pipe",Gt),le.flowing||(Ae("pipe resume"),Gt.resume()),Tt},kt.prototype.unpipe=function(Tt){var At=this._readableState,Yt={hasUnpiped:!1};if(At.pipesCount===0)return this;if(At.pipesCount===1)return Tt&&Tt!==At.pipes?this:(Tt||(Tt=At.pipes),At.pipes=null,At.pipesCount=0,At.flowing=!1,Tt&&Tt.emit("unpipe",this,Yt),this);if(!Tt){var oe=At.pipes,_t=At.pipesCount;At.pipes=null,At.pipesCount=0,At.flowing=!1;for(var It=0;It<_t;It++)oe[It].emit("unpipe",this,Yt);return this}var Pt=Ge(At.pipes,Tt);return Pt===-1?this:(At.pipes.splice(Pt,1),At.pipesCount-=1,At.pipesCount===1&&(At.pipes=At.pipes[0]),Tt.emit("unpipe",this,Yt),this)},kt.prototype.on=function(Tt,At){var Yt=pe.prototype.on.call(this,Tt,At);if(Tt==="data")this._readableState.flowing!==!1&&this.resume();else if(Tt==="readable"){var oe=this._readableState;oe.endEmitted||oe.readableListening||(oe.readableListening=oe.needReadable=!0,oe.emittedReadable=!1,oe.reading?oe.length&&ut(this):he.nextTick(Rt,this))}return Yt},kt.prototype.addListener=kt.prototype.on,kt.prototype.resume=function(){var Tt=this._readableState;return Tt.flowing||(Ae("resume"),Tt.flowing=!0,Ut(this,Tt)),this},kt.prototype.pause=function(){return Ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this},kt.prototype.wrap=function(Tt){var At=this,Yt=this._readableState,oe=!1;Tt.on("end",function(){if(Ae("wrapped end"),Yt.decoder&&!Yt.ended){var Pt=Yt.decoder.end();Pt&&Pt.length&&At.push(Pt)}At.push(null)}),Tt.on("data",function(Pt){Ae("wrapped data"),Yt.decoder&&(Pt=Yt.decoder.write(Pt)),(!Yt.objectMode||Pt!=null)&&(Yt.objectMode||Pt&&Pt.length)&&(At.push(Pt)||(oe=!0,Tt.pause()))});for(var _t in Tt)this[_t]===void 0&&typeof Tt[_t]=="function"&&(this[_t]=function(Pt){return function(){return Tt[Pt].apply(Tt,arguments)}}(_t));for(var It=0;It<He.length;It++)Tt.on(He[It],this.emit.bind(this,He[It]));return this._read=function(Pt){Ae("wrapped _read",Pt),oe&&(oe=!1,Tt.resume())},this},Object.defineProperty(kt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),kt._fromList=te}).call(this,wt("_process"),typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(wt,Qt,Zt){"use strict";function Ot(kt,xt){var Dt=this._transformState;Dt.transforming=!1;var yt=Dt.writecb;if(!yt)return this.emit("error",new Error("write callback called multiple times"));Dt.writechunk=null,Dt.writecb=null,xt!=null&&this.push(xt),yt(kt);var et=this._readableState;et.reading=!1,(et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}function jt(kt){if(!(this instanceof jt))return new jt(kt);Bt.call(this,kt),this._transformState={afterTransform:Ot.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,kt&&(typeof kt.transform=="function"&&(this._transform=kt.transform),typeof kt.flush=="function"&&(this._flush=kt.flush)),this.on("prefinish",Ct)}function Ct(){var kt=this;typeof this._flush=="function"?this._flush(function(xt,Dt){Mt(kt,xt,Dt)}):Mt(this,null,null)}function Mt(kt,xt,Dt){if(xt)return kt.emit("error",xt);if(Dt!=null&&kt.push(Dt),kt._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(kt._transformState.transforming)throw new Error("Calling transform done when still transforming");return kt.push(null)}Qt.exports=jt;var Bt=wt("./_stream_duplex"),St=wt("core-util-is");St.inherits=wt("inherits"),St.inherits(jt,Bt),jt.prototype.push=function(kt,xt){return this._transformState.needTransform=!1,Bt.prototype.push.call(this,kt,xt)},jt.prototype._transform=function(kt,xt,Dt){throw new Error("_transform() is not implemented")},jt.prototype._write=function(kt,xt,Dt){var yt=this._transformState;if(yt.writecb=Dt,yt.writechunk=kt,yt.writeencoding=xt,!yt.transforming){var et=this._readableState;(yt.needTransform||et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}},jt.prototype._read=function(kt){var xt=this._transformState;xt.writechunk!==null&&xt.writecb&&!xt.transforming?(xt.transforming=!0,this._transform(xt.writechunk,xt.writeencoding,xt.afterTransform)):xt.needTransform=!0},jt.prototype._destroy=function(kt,xt){var Dt=this;Bt.prototype._destroy.call(this,kt,function(yt){xt(yt),Dt.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(wt,Qt,Zt){(function(Ot,jt){"use strict";function Ct(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Mt(Oe){var He=this;this.next=null,this.entry=null,this.finish=function(){de(He,Oe)}}function Bt(Oe){return Qe.from(Oe)}function St(Oe){return Qe.isBuffer(Oe)||Oe instanceof Ae}function kt(){}function xt(Oe,He){se=se||wt("./_stream_duplex"),Oe=Oe||{};var ie=He instanceof se;this.objectMode=!!Oe.objectMode,ie&&(this.objectMode=this.objectMode||!!Oe.writableObjectMode);var Tt=Oe.highWaterMark,At=Oe.writableHighWaterMark,Yt=this.objectMode?16:16384;this.highWaterMark=Tt||Tt===0?Tt:ie&&(At||At===0)?At:Yt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var oe=Oe.decodeStrings===!1;this.decodeStrings=!oe,this.defaultEncoding=Oe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_t){ft(He,_t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Mt(this)}function Dt(Oe){if(se=se||wt("./_stream_duplex"),!(Le.call(Dt,this)||this instanceof se))return new Dt(Oe);this._writableState=new xt(Oe,this),this.writable=!0,Oe&&(typeof Oe.write=="function"&&(this._write=Oe.write),typeof Oe.writev=="function"&&(this._writev=Oe.writev),typeof Oe.destroy=="function"&&(this._destroy=Oe.destroy),typeof Oe.final=="function"&&(this._final=Oe.final)),Fe.call(this)}function yt(Oe,He){var ie=new Error("write after end");Oe.emit("error",ie),re.nextTick(He,ie)}function et(Oe,He,ie,Tt){var At=!0,Yt=!1;return ie===null?Yt=new TypeError("May not write null values to stream"):typeof ie=="string"||ie===void 0||He.objectMode||(Yt=new TypeError("Invalid non-string/buffer chunk")),Yt&&(Oe.emit("error",Yt),re.nextTick(Tt,Yt),At=!1),At}function tt(Oe,He,ie){return Oe.objectMode||Oe.decodeStrings===!1||typeof He!="string"||(He=Qe.from(He,ie)),He}function lt(Oe,He,ie,Tt,At,Yt){if(!ie){var oe=tt(He,Tt,At);Tt!==oe&&(ie=!0,At="buffer",Tt=oe)}var _t=He.objectMode?1:Tt.length;He.length+=_t;var It=He.length<He.highWaterMark;if(It||(He.needDrain=!0),He.writing||He.corked){var Pt=He.lastBufferedRequest;He.lastBufferedRequest={chunk:Tt,encoding:At,isBuf:ie,callback:Yt,next:null},Pt?Pt.next=He.lastBufferedRequest:He.bufferedRequest=He.lastBufferedRequest,He.bufferedRequestCount+=1}else ot(Oe,He,!1,_t,Tt,At,Yt);return It}function ot(Oe,He,ie,Tt,At,Yt,oe){He.writelen=Tt,He.writecb=oe,He.writing=!0,He.sync=!0,ie?Oe._writev(At,He.onwrite):Oe._write(At,Yt,He.onwrite),He.sync=!1}function ut(Oe,He,ie,Tt,At){--He.pendingcb,ie?(re.nextTick(At,Tt),re.nextTick(te,Oe,He),Oe._writableState.errorEmitted=!0,Oe.emit("error",Tt)):(At(Tt),Oe._writableState.errorEmitted=!0,Oe.emit("error",Tt),te(Oe,He))}function ct(Oe){Oe.writing=!1,Oe.writecb=null,Oe.length-=Oe.writelen,Oe.writelen=0}function ft(Oe,He){var ie=Oe._writableState,Tt=ie.sync,At=ie.writecb;if(ct(ie),He)ut(Oe,ie,Tt,He,At);else{var Yt=Ut(ie);Yt||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||Rt(Oe,ie),Tt?pe(gt,Oe,ie,Yt,At):gt(Oe,ie,Yt,At)}}function gt(Oe,He,ie,Tt){ie||Lt(Oe,He),He.pendingcb--,Tt(),te(Oe,He)}function Lt(Oe,He){He.length===0&&He.needDrain&&(He.needDrain=!1,Oe.emit("drain"))}function Rt(Oe,He){He.bufferProcessing=!0;var ie=He.bufferedRequest;if(Oe._writev&&ie&&ie.next){var Tt=He.bufferedRequestCount,At=new Array(Tt),Yt=He.corkedRequestsFree;Yt.entry=ie;for(var oe=0,_t=!0;ie;)At[oe]=ie,ie.isBuf||(_t=!1),ie=ie.next,oe+=1;At.allBuffers=_t,ot(Oe,He,!0,He.length,At,"",Yt.finish),He.pendingcb++,He.lastBufferedRequest=null,Yt.next?(He.corkedRequestsFree=Yt.next,Yt.next=null):He.corkedRequestsFree=new Mt(He),He.bufferedRequestCount=0}else{for(;ie;){var It=ie.chunk,Pt=ie.encoding,Et=ie.callback;if(ot(Oe,He,!1,He.objectMode?1:It.length,It,Pt,Et),ie=ie.next,He.bufferedRequestCount--,He.writing)break}ie===null&&(He.lastBufferedRequest=null)}He.bufferedRequest=ie,He.bufferProcessing=!1}function Ut(Oe){return Oe.ending&&Oe.length===0&&Oe.bufferedRequest===null&&!Oe.finished&&!Oe.writing}function Nt(Oe,He){Oe._final(function(ie){He.pendingcb--,ie&&Oe.emit("error",ie),He.prefinished=!0,Oe.emit("prefinish"),te(Oe,He)})}function qt(Oe,He){He.prefinished||He.finalCalled||(typeof Oe._final=="function"?(He.pendingcb++,He.finalCalled=!0,re.nextTick(Nt,Oe,He)):(He.prefinished=!0,Oe.emit("prefinish")))}function te(Oe,He){var ie=Ut(He);return ie&&(qt(Oe,He),He.pendingcb===0&&(He.finished=!0,Oe.emit("finish"))),ie}function Vt(Oe,He,ie){He.ending=!0,te(Oe,He),ie&&(He.finished?re.nextTick(ie):Oe.once("finish",ie)),He.ended=!0,Oe.writable=!1}function de(Oe,He,ie){var Tt=Oe.entry;for(Oe.entry=null;Tt;){var At=Tt.callback;He.pendingcb--,At(ie),Tt=Tt.next}He.corkedRequestsFree?He.corkedRequestsFree.next=Oe:He.corkedRequestsFree=Oe}var ge=wt("babel-runtime/core-js/object/define-property"),be=Ct(ge),Ne=wt("babel-runtime/core-js/symbol/has-instance"),Ge=Ct(Ne),Pe=wt("babel-runtime/core-js/symbol"),ze=Ct(Pe),he=wt("babel-runtime/core-js/set-immediate"),Jt=Ct(he),re=wt("process-nextick-args");Qt.exports=Dt;var se,pe=!Ot.browser&&["v0.10","v0.9."].indexOf(Ot.version.slice(0,5))>-1?Jt.default:re.nextTick;Dt.WritableState=xt;var ue=wt("core-util-is");ue.inherits=wt("inherits");var Re={deprecate:wt("util-deprecate")},Fe=wt("./internal/streams/stream"),Qe=wt("safe-buffer").Buffer,Ae=jt.Uint8Array||function(){},_e=wt("./internal/streams/destroy");ue.inherits(Dt,Fe),xt.prototype.getBuffer=function(){for(var Oe=this.bufferedRequest,He=[];Oe;)He.push(Oe),Oe=Oe.next;return He},function(){try{Object.defineProperty(xt.prototype,"buffer",{get:Re.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Oe){}}();var Le;typeof ze.default=="function"&&Ge.default&&typeof Function.prototype[Ge.default]=="function"?(Le=Function.prototype[Ge.default],(0,be.default)(Dt,Ge.default,{value:function(Oe){return!!Le.call(this,Oe)||this===Dt&&Oe&&Oe._writableState instanceof xt}})):Le=function(Oe){return Oe instanceof this},Dt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Dt.prototype.write=function(Oe,He,ie){var Tt=this._writableState,At=!1,Yt=!Tt.objectMode&&St(Oe);return Yt&&!Qe.isBuffer(Oe)&&(Oe=Bt(Oe)),typeof He=="function"&&(ie=He,He=null),Yt?He="buffer":He||(He=Tt.defaultEncoding),typeof ie!="function"&&(ie=kt),Tt.ended?yt(this,ie):(Yt||et(this,Tt,Oe,ie))&&(Tt.pendingcb++,At=lt(this,Tt,Yt,Oe,He,ie)),At},Dt.prototype.cork=function(){this._writableState.corked++},Dt.prototype.uncork=function(){var Oe=this._writableState;Oe.corked&&(Oe.corked--,Oe.writing||Oe.corked||Oe.finished||Oe.bufferProcessing||!Oe.bufferedRequest||Rt(this,Oe))},Dt.prototype.setDefaultEncoding=function(Oe){if(typeof Oe=="string"&&(Oe=Oe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Oe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Oe);return this._writableState.defaultEncoding=Oe,this},Object.defineProperty(Dt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Dt.prototype._write=function(Oe,He,ie){ie(new Error("_write() is not implemented"))},Dt.prototype._writev=null,Dt.prototype.end=function(Oe,He,ie){var Tt=this._writableState;typeof Oe=="function"?(ie=Oe,Oe=null,He=null):typeof He=="function"&&(ie=He,He=null),Oe!=null&&this.write(Oe,He),Tt.corked&&(Tt.corked=1,this.uncork()),Tt.ending||Tt.finished||Vt(this,Tt,ie)},Object.defineProperty(Dt.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Oe){this._writableState&&(this._writableState.destroyed=Oe)}}),Dt.prototype.destroy=_e.destroy,Dt.prototype._undestroy=_e.undestroy,Dt.prototype._destroy=function(Oe,He){this.end(),He(Oe)}}).call(this,wt("_process"),typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(wt,Qt,Zt){"use strict";function Ot(Bt,St){if(!(Bt instanceof St))throw new TypeError("Cannot call a class as a function")}function jt(Bt,St,kt){Bt.copy(St,kt)}var Ct=wt("safe-buffer").Buffer,Mt=wt("util");Qt.exports=function(){function Bt(){Ot(this,Bt),this.head=null,this.tail=null,this.length=0}return Bt.prototype.push=function(St){var kt={data:St,next:null};this.length>0?this.tail.next=kt:this.head=kt,this.tail=kt,++this.length},Bt.prototype.unshift=function(St){var kt={data:St,next:this.head};this.length===0&&(this.tail=kt),this.head=kt,++this.length},Bt.prototype.shift=function(){if(this.length!==0){var St=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,St}},Bt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Bt.prototype.join=function(St){if(this.length===0)return"";for(var kt=this.head,xt=""+kt.data;kt=kt.next;)xt+=St+kt.data;return xt},Bt.prototype.concat=function(St){if(this.length===0)return Ct.alloc(0);if(this.length===1)return this.head.data;for(var kt=Ct.allocUnsafe(St>>>0),xt=this.head,Dt=0;xt;)jt(xt.data,kt,Dt),Dt+=xt.data.length,xt=xt.next;return kt},Bt}(),Mt&&Mt.inspect&&Mt.inspect.custom&&(Qt.exports.prototype[Mt.inspect.custom]=function(){var Bt=Mt.inspect({length:this.length});return this.constructor.name+" "+Bt})},{"safe-buffer":193,util:36}],185:[function(wt,Qt,Zt){"use strict";function Ot(Bt,St){var kt=this,xt=this._readableState&&this._readableState.destroyed,Dt=this._writableState&&this._writableState.destroyed;return xt||Dt?(St?St(Bt):!Bt||this._writableState&&this._writableState.errorEmitted||Mt.nextTick(Ct,this,Bt),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Bt||null,function(yt){!St&&yt?(Mt.nextTick(Ct,kt,yt),kt._writableState&&(kt._writableState.errorEmitted=!0)):St&&St(yt)}),this)}function jt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ct(Bt,St){Bt.emit("error",St)}var Mt=wt("process-nextick-args");Qt.exports={destroy:Ot,undestroy:jt}},{"process-nextick-args":172}],186:[function(wt,Qt,Zt){"use strict";Qt.exports=wt("events").EventEmitter},{events:158}],187:[function(wt,Qt,Zt){Qt.exports=wt("./readable").PassThrough},{"./readable":188}],188:[function(wt,Qt,Zt){Zt=Qt.exports=wt("./lib/_stream_readable.js"),Zt.Stream=Zt,Zt.Readable=Zt,Zt.Writable=wt("./lib/_stream_writable.js"),Zt.Duplex=wt("./lib/_stream_duplex.js"),Zt.Transform=wt("./lib/_stream_transform.js"),Zt.PassThrough=wt("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(wt,Qt,Zt){Qt.exports=wt("./readable").Transform},{"./readable":188}],190:[function(wt,Qt,Zt){Qt.exports=wt("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(wt,Qt,Zt){var Ot=function(){return this}()||Function("return this")(),jt=Ot.regeneratorRuntime&&Object.getOwnPropertyNames(Ot).indexOf("regeneratorRuntime")>=0,Ct=jt&&Ot.regeneratorRuntime;if(Ot.regeneratorRuntime=void 0,Qt.exports=wt("./runtime"),jt)Ot.regeneratorRuntime=Ct;else try{delete Ot.regeneratorRuntime}catch(Mt){Ot.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(Jt,re,se,pe){var ue=re&&re.prototype instanceof Mt?re:Mt,Re=Object.create(ue.prototype),Fe=new lt(pe||[]);return Re._invoke=Dt(Jt,se,Fe),Re}function Ct(Jt,re,se){try{return{type:"normal",arg:Jt.call(re,se)}}catch(pe){return{type:"throw",arg:pe}}}function Mt(){}function Bt(){}function St(){}function kt(Jt){["next","throw","return"].forEach(function(re){Jt[re]=function(se){return this._invoke(re,se)}})}function xt(Jt){function re(ue,Re,Fe,Qe){var Ae=Ct(Jt[ue],Jt,Re);if(Ae.type!=="throw"){var _e=Ae.arg,Le=_e.value;return Le&&typeof Le=="object"&>.call(Le,"__await")?Promise.resolve(Le.__await).then(function(Oe){re("next",Oe,Fe,Qe)},function(Oe){re("throw",Oe,Fe,Qe)}):Promise.resolve(Le).then(function(Oe){_e.value=Oe,Fe(_e)},Qe)}Qe(Ae.arg)}function se(ue,Re){function Fe(){return new Promise(function(Qe,Ae){re(ue,Re,Qe,Ae)})}return pe=pe?pe.then(Fe,Fe):Fe()}var pe;this._invoke=se}function Dt(Jt,re,se){var pe=Vt;return function(ue,Re){if(pe===ge)throw new Error("Generator is already running");if(pe===be){if(ue==="throw")throw Re;return ut()}for(se.method=ue,se.arg=Re;;){var Fe=se.delegate;if(Fe){var Qe=yt(Fe,se);if(Qe){if(Qe===Ne)continue;return Qe}}if(se.method==="next")se.sent=se._sent=se.arg;else if(se.method==="throw"){if(pe===Vt)throw pe=be,se.arg;se.dispatchException(se.arg)}else se.method==="return"&&se.abrupt("return",se.arg);pe=ge;var Ae=Ct(Jt,re,se);if(Ae.type==="normal"){if(pe=se.done?be:de,Ae.arg===Ne)continue;return{value:Ae.arg,done:se.done}}Ae.type==="throw"&&(pe=be,se.method="throw",se.arg=Ae.arg)}}}function yt(Jt,re){var se=Jt.iterator[re.method];if(se===ct){if(re.delegate=null,re.method==="throw"){if(Jt.iterator.return&&(re.method="return",re.arg=ct,yt(Jt,re),re.method==="throw"))return Ne;re.method="throw",re.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ne}var pe=Ct(se,Jt.iterator,re.arg);if(pe.type==="throw")return re.method="throw",re.arg=pe.arg,re.delegate=null,Ne;var ue=pe.arg;return ue?ue.done?(re[Jt.resultName]=ue.value,re.next=Jt.nextLoc,re.method!=="return"&&(re.method="next",re.arg=ct),re.delegate=null,Ne):ue:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,Ne)}function et(Jt){var re={tryLoc:Jt[0]};1 in Jt&&(re.catchLoc=Jt[1]),2 in Jt&&(re.finallyLoc=Jt[2],re.afterLoc=Jt[3]),this.tryEntries.push(re)}function tt(Jt){var re=Jt.completion||{};re.type="normal",delete re.arg,Jt.completion=re}function lt(Jt){this.tryEntries=[{tryLoc:"root"}],Jt.forEach(et,this),this.reset(!0)}function ot(Jt){if(Jt){var re=Jt[Rt];if(re)return re.call(Jt);if(typeof Jt.next=="function")return Jt;if(!isNaN(Jt.length)){var se=-1,pe=function ue(){for(;++se<Jt.length;)if(gt.call(Jt,se))return ue.value=Jt[se],ue.done=!1,ue;return ue.value=ct,ue.done=!0,ue};return pe.next=pe}}return{next:ut}}function ut(){return{value:ct,done:!0}}var ct,ft=Object.prototype,gt=ft.hasOwnProperty,Lt=typeof Symbol=="function"?Symbol:{},Rt=Lt.iterator||"@@iterator",Ut=Lt.asyncIterator||"@@asyncIterator",Nt=Lt.toStringTag||"@@toStringTag",qt=typeof Qt=="object",te=Ot.regeneratorRuntime;if(te)return void(qt&&(Qt.exports=te));te=Ot.regeneratorRuntime=qt?Qt.exports:{},te.wrap=jt;var Vt="suspendedStart",de="suspendedYield",ge="executing",be="completed",Ne={},Ge={};Ge[Rt]=function(){return this};var Pe=Object.getPrototypeOf,ze=Pe&&Pe(Pe(ot([])));ze&&ze!==ft&>.call(ze,Rt)&&(Ge=ze);var he=St.prototype=Mt.prototype=Object.create(Ge);Bt.prototype=he.constructor=St,St.constructor=Bt,St[Nt]=Bt.displayName="GeneratorFunction",te.isGeneratorFunction=function(Jt){var re=typeof Jt=="function"&&Jt.constructor;return!!re&&(re===Bt||(re.displayName||re.name)==="GeneratorFunction")},te.mark=function(Jt){return Object.setPrototypeOf?Object.setPrototypeOf(Jt,St):(Jt.__proto__=St,Nt in Jt||(Jt[Nt]="GeneratorFunction")),Jt.prototype=Object.create(he),Jt},te.awrap=function(Jt){return{__await:Jt}},kt(xt.prototype),xt.prototype[Ut]=function(){return this},te.AsyncIterator=xt,te.async=function(Jt,re,se,pe){var ue=new xt(jt(Jt,re,se,pe));return te.isGeneratorFunction(re)?ue:ue.next().then(function(Re){return Re.done?Re.value:ue.next()})},kt(he),he[Nt]="Generator",he[Rt]=function(){return this},he.toString=function(){return"[object Generator]"},te.keys=function(Jt){var re=[];for(var se in Jt)re.push(se);return re.reverse(),function pe(){for(;re.length;){var ue=re.pop();if(ue in Jt)return pe.value=ue,pe.done=!1,pe}return pe.done=!0,pe}},te.values=ot,lt.prototype={constructor:lt,reset:function(Jt){if(this.prev=0,this.next=0,this.sent=this._sent=ct,this.done=!1,this.delegate=null,this.method="next",this.arg=ct,this.tryEntries.forEach(tt),!Jt)for(var re in this)re.charAt(0)==="t"&>.call(this,re)&&!isNaN(+re.slice(1))&&(this[re]=ct)},stop:function(){this.done=!0;var Jt=this.tryEntries[0],re=Jt.completion;if(re.type==="throw")throw re.arg;return this.rval},dispatchException:function(Jt){function re(Ae,_e){return Re.type="throw",Re.arg=Jt,se.next=Ae,_e&&(se.method="next",se.arg=ct),!!_e}if(this.done)throw Jt;for(var se=this,pe=this.tryEntries.length-1;pe>=0;--pe){var ue=this.tryEntries[pe],Re=ue.completion;if(ue.tryLoc==="root")return re("end");if(ue.tryLoc<=this.prev){var Fe=gt.call(ue,"catchLoc"),Qe=gt.call(ue,"finallyLoc");if(Fe&&Qe){if(this.prev<ue.catchLoc)return re(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return re(ue.finallyLoc)}else if(Fe){if(this.prev<ue.catchLoc)return re(ue.catchLoc,!0)}else{if(!Qe)throw new Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return re(ue.finallyLoc)}}}},abrupt:function(Jt,re){for(var se=this.tryEntries.length-1;se>=0;--se){var pe=this.tryEntries[se];if(pe.tryLoc<=this.prev&>.call(pe,"finallyLoc")&&this.prev<pe.finallyLoc){var ue=pe;break}}ue&&(Jt==="break"||Jt==="continue")&&ue.tryLoc<=re&&re<=ue.finallyLoc&&(ue=null);var Re=ue?ue.completion:{};return Re.type=Jt,Re.arg=re,ue?(this.method="next",this.next=ue.finallyLoc,Ne):this.complete(Re)},complete:function(Jt,re){if(Jt.type==="throw")throw Jt.arg;return Jt.type==="break"||Jt.type==="continue"?this.next=Jt.arg:Jt.type==="return"?(this.rval=this.arg=Jt.arg,this.method="return",this.next="end"):Jt.type==="normal"&&re&&(this.next=re),Ne},finish:function(Jt){for(var re=this.tryEntries.length-1;re>=0;--re){var se=this.tryEntries[re];if(se.finallyLoc===Jt)return this.complete(se.completion,se.afterLoc),tt(se),Ne}},catch:function(Jt){for(var re=this.tryEntries.length-1;re>=0;--re){var se=this.tryEntries[re];if(se.tryLoc===Jt){var pe=se.completion;if(pe.type==="throw"){var ue=pe.arg;tt(se)}return ue}}throw new Error("illegal catch attempt")},delegateYield:function(Jt,re,se){return this.delegate={iterator:ot(Jt),resultName:re,nextLoc:se},this.method==="next"&&(this.arg=ct),Ne}}})(function(){return this}()||Function("return this")())},{}],193:[function(wt,Qt,Zt){function Ot(Bt,St){for(var kt in Bt)St[kt]=Bt[kt]}function jt(Bt,St,kt){return Mt(Bt,St,kt)}var Ct=wt("buffer"),Mt=Ct.Buffer;Mt.from&&Mt.alloc&&Mt.allocUnsafe&&Mt.allocUnsafeSlow?Qt.exports=Ct:(Ot(Ct,Zt),Zt.Buffer=jt),Ot(Mt,jt),jt.from=function(Bt,St,kt){if(typeof Bt=="number")throw new TypeError("Argument must not be a number");return Mt(Bt,St,kt)},jt.alloc=function(Bt,St,kt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");var xt=Mt(Bt);return St!==void 0?typeof kt=="string"?xt.fill(St,kt):xt.fill(St):xt.fill(0),xt},jt.allocUnsafe=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return Mt(Bt)},jt.allocUnsafeSlow=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return Ct.SlowBuffer(Bt)}},{buffer:38}],194:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(ut){return ut&&ut.__esModule?ut:{default:ut}}var Ct=wt("babel-runtime/core-js/string/from-code-point"),Mt=jt(Ct),Bt=wt("babel-runtime/core-js/json/stringify"),St=jt(Bt),kt=wt("babel-runtime/helpers/typeof"),xt=jt(kt),Dt=wt("babel-runtime/core-js/object/define-property"),yt=jt(Dt),et=wt("babel-runtime/core-js/object/keys"),tt=jt(et),lt=wt("babel-runtime/core-js/object/create"),ot=jt(lt);(function(ut){function ct(zt,Gt){if(!(this instanceof ct))return new ct(zt,Gt);var le=this;gt(le),le.q=le.c="",le.bufferCheckPosition=ut.MAX_BUFFER_LENGTH,le.opt=Gt||{},le.opt.lowercase=le.opt.lowercase||le.opt.lowercasetags,le.looseCase=le.opt.lowercase?"toLowerCase":"toUpperCase",le.tags=[],le.closed=le.closedRoot=le.sawRoot=!1,le.tag=le.error=null,le.strict=!!zt,le.noscript=!(!zt&&!le.opt.noscript),le.state=Et.BEGIN,le.strictEntities=le.opt.strictEntities,le.ENTITIES=le.strictEntities?(0,ot.default)(ut.XML_ENTITIES):(0,ot.default)(ut.ENTITIES),le.attribList=[],le.opt.xmlns&&(le.ns=(0,ot.default)(Yt)),le.trackPosition=le.opt.position!==!1,le.trackPosition&&(le.position=le.line=le.column=0),ge(le,"onready")}function ft(zt){for(var Gt=Math.max(ut.MAX_BUFFER_LENGTH,10),le=0,ye=0,Ue=_e.length;ye<Ue;ye++){var We=zt[_e[ye]].length;if(We>Gt)switch(_e[ye]){case"textNode":Ne(zt);break;case"cdata":be(zt,"oncdata",zt.cdata),zt.cdata="";break;case"script":be(zt,"onscript",zt.script),zt.script="";break;default:Pe(zt,"Max buffer length exceeded: "+_e[ye])}le=Math.max(le,We)}var Ee=ut.MAX_BUFFER_LENGTH-le;zt.bufferCheckPosition=Ee+zt.position}function gt(zt){for(var Gt=0,le=_e.length;Gt<le;Gt++)zt[_e[Gt]]=""}function Lt(zt){Ne(zt),zt.cdata!==""&&(be(zt,"oncdata",zt.cdata),zt.cdata=""),zt.script!==""&&(be(zt,"onscript",zt.script),zt.script="")}function Rt(zt,Gt){return new Ut(zt,Gt)}function Ut(zt,Gt){if(!(this instanceof Ut))return new Ut(zt,Gt);Le.apply(this),this._parser=new ct(zt,Gt),this.writable=!0,this.readable=!0;var le=this;this._parser.onend=function(){le.emit("end")},this._parser.onerror=function(ye){le.emit("error",ye),le._parser.error=null},this._decoder=null,Oe.forEach(function(ye){(0,yt.default)(le,"on"+ye,{get:function(){return le._parser["on"+ye]},set:function(Ue){if(!Ue)return le.removeAllListeners(ye),le._parser["on"+ye]=Ue,Ue;le.on(ye,Ue)},enumerable:!0,configurable:!1})})}function Nt(zt){return zt===" "||zt===`
|
|
`||zt==="\r"||zt===" "}function qt(zt){return zt==='"'||zt==="'"}function te(zt){return zt===">"||Nt(zt)}function Vt(zt,Gt){return zt.test(Gt)}function de(zt,Gt){return!Vt(zt,Gt)}function ge(zt,Gt,le){zt[Gt]&&zt[Gt](le)}function be(zt,Gt,le){zt.textNode&&Ne(zt),ge(zt,Gt,le)}function Ne(zt){zt.textNode=Ge(zt.opt,zt.textNode),zt.textNode&&ge(zt,"ontext",zt.textNode),zt.textNode=""}function Ge(zt,Gt){return zt.trim&&(Gt=Gt.trim()),zt.normalize&&(Gt=Gt.replace(/\s+/g," ")),Gt}function Pe(zt,Gt){return Ne(zt),zt.trackPosition&&(Gt+=`
|
|
Line: `+zt.line+`
|
|
Column: `+zt.column+`
|
|
Char: `+zt.c),Gt=new Error(Gt),zt.error=Gt,ge(zt,"onerror",Gt),zt}function ze(zt){return zt.sawRoot&&!zt.closedRoot&&he(zt,"Unclosed root tag"),zt.state!==Et.BEGIN&&zt.state!==Et.BEGIN_WHITESPACE&&zt.state!==Et.TEXT&&Pe(zt,"Unexpected end"),Ne(zt),zt.c="",zt.closed=!0,ge(zt,"onend"),ct.call(zt,zt.strict,zt.opt),zt}function he(zt,Gt){if((zt===void 0?"undefined":(0,xt.default)(zt))!=="object"||!(zt instanceof ct))throw new Error("bad call to strictFail");zt.strict&&Pe(zt,Gt)}function Jt(zt){zt.strict||(zt.tagName=zt.tagName[zt.looseCase]());var Gt=zt.tags[zt.tags.length-1]||zt,le=zt.tag={name:zt.tagName,attributes:{}};zt.opt.xmlns&&(le.ns=Gt.ns),zt.attribList.length=0,be(zt,"onopentagstart",le)}function re(zt,Gt){var le=zt.indexOf(":"),ye=le<0?["",zt]:zt.split(":"),Ue=ye[0],We=ye[1];return Gt&&zt==="xmlns"&&(Ue="xmlns",We=""),{prefix:Ue,local:We}}function se(zt){if(zt.strict||(zt.attribName=zt.attribName[zt.looseCase]()),zt.attribList.indexOf(zt.attribName)!==-1||zt.tag.attributes.hasOwnProperty(zt.attribName))return void(zt.attribName=zt.attribValue="");if(zt.opt.xmlns){var Gt=re(zt.attribName,!0),le=Gt.prefix,ye=Gt.local;if(le==="xmlns")if(ye==="xml"&&zt.attribValue!==Tt)he(zt,"xml: prefix must be bound to "+Tt+`
|
|
Actual: `+zt.attribValue);else if(ye==="xmlns"&&zt.attribValue!==At)he(zt,"xmlns: prefix must be bound to "+At+`
|
|
Actual: `+zt.attribValue);else{var Ue=zt.tag,We=zt.tags[zt.tags.length-1]||zt;Ue.ns===We.ns&&(Ue.ns=(0,ot.default)(We.ns)),Ue.ns[ye]=zt.attribValue}zt.attribList.push([zt.attribName,zt.attribValue])}else zt.tag.attributes[zt.attribName]=zt.attribValue,be(zt,"onattribute",{name:zt.attribName,value:zt.attribValue});zt.attribName=zt.attribValue=""}function pe(zt,Gt){if(zt.opt.xmlns){var le=zt.tag,ye=re(zt.tagName);le.prefix=ye.prefix,le.local=ye.local,le.uri=le.ns[ye.prefix]||"",le.prefix&&!le.uri&&(he(zt,"Unbound namespace prefix: "+(0,St.default)(zt.tagName)),le.uri=ye.prefix);var Ue=zt.tags[zt.tags.length-1]||zt;le.ns&&Ue.ns!==le.ns&&(0,tt.default)(le.ns).forEach(function(ii){be(zt,"onopennamespace",{prefix:ii,uri:le.ns[ii]})});for(var We=0,Ee=zt.attribList.length;We<Ee;We++){var Ze=zt.attribList[We],on=Ze[0],nn=Ze[1],qe=re(on,!0),En=qe.prefix,fn=qe.local,Pn=En===""?"":le.ns[En]||"",Mn={name:on,value:nn,prefix:En,local:fn,uri:Pn};En&&En!=="xmlns"&&!Pn&&(he(zt,"Unbound namespace prefix: "+(0,St.default)(En)),Mn.uri=En),zt.tag.attributes[on]=Mn,be(zt,"onattribute",Mn)}zt.attribList.length=0}zt.tag.isSelfClosing=!!Gt,zt.sawRoot=!0,zt.tags.push(zt.tag),be(zt,"onopentag",zt.tag),Gt||(zt.noscript||zt.tagName.toLowerCase()!=="script"?zt.state=Et.TEXT:zt.state=Et.SCRIPT,zt.tag=null,zt.tagName=""),zt.attribName=zt.attribValue="",zt.attribList.length=0}function ue(zt){if(!zt.tagName)return he(zt,"Weird empty close tag."),zt.textNode+="</>",void(zt.state=Et.TEXT);if(zt.script){if(zt.tagName!=="script")return zt.script+="</"+zt.tagName+">",zt.tagName="",void(zt.state=Et.SCRIPT);be(zt,"onscript",zt.script),zt.script=""}var Gt=zt.tags.length,le=zt.tagName;zt.strict||(le=le[zt.looseCase]());for(var ye=le;Gt--&&zt.tags[Gt].name!==ye;)he(zt,"Unexpected close tag");if(Gt<0)return he(zt,"Unmatched closing tag: "+zt.tagName),zt.textNode+="</"+zt.tagName+">",void(zt.state=Et.TEXT);zt.tagName=le;for(var Ue=zt.tags.length;Ue-- >Gt;){var We=zt.tag=zt.tags.pop();zt.tagName=zt.tag.name,be(zt,"onclosetag",zt.tagName);var Ee={};for(var Ze in We.ns)Ee[Ze]=We.ns[Ze];var on=zt.tags[zt.tags.length-1]||zt;zt.opt.xmlns&&We.ns!==on.ns&&(0,tt.default)(We.ns).forEach(function(nn){var qe=We.ns[nn];be(zt,"onclosenamespace",{prefix:nn,uri:qe})})}Gt===0&&(zt.closedRoot=!0),zt.tagName=zt.attribValue=zt.attribName="",zt.attribList.length=0,zt.state=Et.TEXT}function Re(zt){var Gt,le=zt.entity,ye=le.toLowerCase(),Ue="";return zt.ENTITIES[le]?zt.ENTITIES[le]:zt.ENTITIES[ye]?zt.ENTITIES[ye]:(le=ye,le.charAt(0)==="#"&&(le.charAt(1)==="x"?(le=le.slice(2),Gt=parseInt(le,16),Ue=Gt.toString(16)):(le=le.slice(1),Gt=parseInt(le,10),Ue=Gt.toString(10))),le=le.replace(/^0+/,""),isNaN(Gt)||Ue.toLowerCase()!==le?(he(zt,"Invalid character entity"),"&"+zt.entity+";"):(0,Mt.default)(Gt))}function Fe(zt,Gt){Gt==="<"?(zt.state=Et.OPEN_WAKA,zt.startTagPosition=zt.position):Nt(Gt)||(he(zt,"Non-whitespace before first tag."),zt.textNode=Gt,zt.state=Et.TEXT)}function Qe(zt,Gt){var le="";return Gt<zt.length&&(le=zt.charAt(Gt)),le}function Ae(zt){var Gt=this;if(this.error)throw this.error;if(Gt.closed)return Pe(Gt,"Cannot write after close. Assign an onready handler.");if(zt===null)return ze(Gt);(zt===void 0?"undefined":(0,xt.default)(zt))==="object"&&(zt=zt.toString());for(var le=0,ye="";ye=Qe(zt,le++),Gt.c=ye,!!ye;)switch(Gt.trackPosition&&(Gt.position++,ye===`
|
|
`?(Gt.line++,Gt.column=0):Gt.column++),Gt.state){case Et.BEGIN:if(Gt.state=Et.BEGIN_WHITESPACE,ye==="\uFEFF")continue;Fe(Gt,ye);continue;case Et.BEGIN_WHITESPACE:Fe(Gt,ye);continue;case Et.TEXT:if(Gt.sawRoot&&!Gt.closedRoot){for(var Ue=le-1;ye&&ye!=="<"&&ye!=="&";)(ye=Qe(zt,le++))&&Gt.trackPosition&&(Gt.position++,ye===`
|
|
`?(Gt.line++,Gt.column=0):Gt.column++);Gt.textNode+=zt.substring(Ue,le-1)}ye!=="<"||Gt.sawRoot&&Gt.closedRoot&&!Gt.strict?(Nt(ye)||Gt.sawRoot&&!Gt.closedRoot||he(Gt,"Text data outside of root node."),ye==="&"?Gt.state=Et.TEXT_ENTITY:Gt.textNode+=ye):(Gt.state=Et.OPEN_WAKA,Gt.startTagPosition=Gt.position);continue;case Et.SCRIPT:ye==="<"?Gt.state=Et.SCRIPT_ENDING:Gt.script+=ye;continue;case Et.SCRIPT_ENDING:ye==="/"?Gt.state=Et.CLOSE_TAG:(Gt.script+="<"+ye,Gt.state=Et.SCRIPT);continue;case Et.OPEN_WAKA:if(ye==="!")Gt.state=Et.SGML_DECL,Gt.sgmlDecl="";else if(!Nt(ye))if(Vt(oe,ye))Gt.state=Et.OPEN_TAG,Gt.tagName=ye;else if(ye==="/")Gt.state=Et.CLOSE_TAG,Gt.tagName="";else if(ye==="?")Gt.state=Et.PROC_INST,Gt.procInstName=Gt.procInstBody="";else{if(he(Gt,"Unencoded <"),Gt.startTagPosition+1<Gt.position){var We=Gt.position-Gt.startTagPosition;ye=new Array(We).join(" ")+ye}Gt.textNode+="<"+ye,Gt.state=Et.TEXT}continue;case Et.SGML_DECL:(Gt.sgmlDecl+ye).toUpperCase()===He?(be(Gt,"onopencdata"),Gt.state=Et.CDATA,Gt.sgmlDecl="",Gt.cdata=""):Gt.sgmlDecl+ye==="--"?(Gt.state=Et.COMMENT,Gt.comment="",Gt.sgmlDecl=""):(Gt.sgmlDecl+ye).toUpperCase()===ie?(Gt.state=Et.DOCTYPE,(Gt.doctype||Gt.sawRoot)&&he(Gt,"Inappropriately located doctype declaration"),Gt.doctype="",Gt.sgmlDecl=""):ye===">"?(be(Gt,"onsgmldeclaration",Gt.sgmlDecl),Gt.sgmlDecl="",Gt.state=Et.TEXT):(qt(ye)&&(Gt.state=Et.SGML_DECL_QUOTED),Gt.sgmlDecl+=ye);continue;case Et.SGML_DECL_QUOTED:ye===Gt.q&&(Gt.state=Et.SGML_DECL,Gt.q=""),Gt.sgmlDecl+=ye;continue;case Et.DOCTYPE:ye===">"?(Gt.state=Et.TEXT,be(Gt,"ondoctype",Gt.doctype),Gt.doctype=!0):(Gt.doctype+=ye,ye==="["?Gt.state=Et.DOCTYPE_DTD:qt(ye)&&(Gt.state=Et.DOCTYPE_QUOTED,Gt.q=ye));continue;case Et.DOCTYPE_QUOTED:Gt.doctype+=ye,ye===Gt.q&&(Gt.q="",Gt.state=Et.DOCTYPE);continue;case Et.DOCTYPE_DTD:Gt.doctype+=ye,ye==="]"?Gt.state=Et.DOCTYPE:qt(ye)&&(Gt.state=Et.DOCTYPE_DTD_QUOTED,Gt.q=ye);continue;case Et.DOCTYPE_DTD_QUOTED:Gt.doctype+=ye,ye===Gt.q&&(Gt.state=Et.DOCTYPE_DTD,Gt.q="");continue;case Et.COMMENT:ye==="-"?Gt.state=Et.COMMENT_ENDING:Gt.comment+=ye;continue;case Et.COMMENT_ENDING:ye==="-"?(Gt.state=Et.COMMENT_ENDED,Gt.comment=Ge(Gt.opt,Gt.comment),Gt.comment&&be(Gt,"oncomment",Gt.comment),Gt.comment=""):(Gt.comment+="-"+ye,Gt.state=Et.COMMENT);continue;case Et.COMMENT_ENDED:ye!==">"?(he(Gt,"Malformed comment"),Gt.comment+="--"+ye,Gt.state=Et.COMMENT):Gt.state=Et.TEXT;continue;case Et.CDATA:ye==="]"?Gt.state=Et.CDATA_ENDING:Gt.cdata+=ye;continue;case Et.CDATA_ENDING:ye==="]"?Gt.state=Et.CDATA_ENDING_2:(Gt.cdata+="]"+ye,Gt.state=Et.CDATA);continue;case Et.CDATA_ENDING_2:ye===">"?(Gt.cdata&&be(Gt,"oncdata",Gt.cdata),be(Gt,"onclosecdata"),Gt.cdata="",Gt.state=Et.TEXT):ye==="]"?Gt.cdata+="]":(Gt.cdata+="]]"+ye,Gt.state=Et.CDATA);continue;case Et.PROC_INST:ye==="?"?Gt.state=Et.PROC_INST_ENDING:Nt(ye)?Gt.state=Et.PROC_INST_BODY:Gt.procInstName+=ye;continue;case Et.PROC_INST_BODY:if(!Gt.procInstBody&&Nt(ye))continue;ye==="?"?Gt.state=Et.PROC_INST_ENDING:Gt.procInstBody+=ye;continue;case Et.PROC_INST_ENDING:ye===">"?(be(Gt,"onprocessinginstruction",{name:Gt.procInstName,body:Gt.procInstBody}),Gt.procInstName=Gt.procInstBody="",Gt.state=Et.TEXT):(Gt.procInstBody+="?"+ye,Gt.state=Et.PROC_INST_BODY);continue;case Et.OPEN_TAG:Vt(_t,ye)?Gt.tagName+=ye:(Jt(Gt),ye===">"?pe(Gt):ye==="/"?Gt.state=Et.OPEN_TAG_SLASH:(Nt(ye)||he(Gt,"Invalid character in tag name"),Gt.state=Et.ATTRIB));continue;case Et.OPEN_TAG_SLASH:ye===">"?(pe(Gt,!0),ue(Gt)):(he(Gt,"Forward-slash in opening tag not followed by >"),Gt.state=Et.ATTRIB);continue;case Et.ATTRIB:if(Nt(ye))continue;ye===">"?pe(Gt):ye==="/"?Gt.state=Et.OPEN_TAG_SLASH:Vt(oe,ye)?(Gt.attribName=ye,Gt.attribValue="",Gt.state=Et.ATTRIB_NAME):he(Gt,"Invalid attribute name");continue;case Et.ATTRIB_NAME:ye==="="?Gt.state=Et.ATTRIB_VALUE:ye===">"?(he(Gt,"Attribute without value"),Gt.attribValue=Gt.attribName,se(Gt),pe(Gt)):Nt(ye)?Gt.state=Et.ATTRIB_NAME_SAW_WHITE:Vt(_t,ye)?Gt.attribName+=ye:he(Gt,"Invalid attribute name");continue;case Et.ATTRIB_NAME_SAW_WHITE:if(ye==="=")Gt.state=Et.ATTRIB_VALUE;else{if(Nt(ye))continue;he(Gt,"Attribute without value"),Gt.tag.attributes[Gt.attribName]="",Gt.attribValue="",be(Gt,"onattribute",{name:Gt.attribName,value:""}),Gt.attribName="",ye===">"?pe(Gt):Vt(oe,ye)?(Gt.attribName=ye,Gt.state=Et.ATTRIB_NAME):(he(Gt,"Invalid attribute name"),Gt.state=Et.ATTRIB)}continue;case Et.ATTRIB_VALUE:if(Nt(ye))continue;qt(ye)?(Gt.q=ye,Gt.state=Et.ATTRIB_VALUE_QUOTED):(he(Gt,"Unquoted attribute value"),Gt.state=Et.ATTRIB_VALUE_UNQUOTED,Gt.attribValue=ye);continue;case Et.ATTRIB_VALUE_QUOTED:if(ye!==Gt.q){ye==="&"?Gt.state=Et.ATTRIB_VALUE_ENTITY_Q:Gt.attribValue+=ye;continue}se(Gt),Gt.q="",Gt.state=Et.ATTRIB_VALUE_CLOSED;continue;case Et.ATTRIB_VALUE_CLOSED:Nt(ye)?Gt.state=Et.ATTRIB:ye===">"?pe(Gt):ye==="/"?Gt.state=Et.OPEN_TAG_SLASH:Vt(oe,ye)?(he(Gt,"No whitespace between attributes"),Gt.attribName=ye,Gt.attribValue="",Gt.state=Et.ATTRIB_NAME):he(Gt,"Invalid attribute name");continue;case Et.ATTRIB_VALUE_UNQUOTED:if(!te(ye)){ye==="&"?Gt.state=Et.ATTRIB_VALUE_ENTITY_U:Gt.attribValue+=ye;continue}se(Gt),ye===">"?pe(Gt):Gt.state=Et.ATTRIB;continue;case Et.CLOSE_TAG:if(Gt.tagName)ye===">"?ue(Gt):Vt(_t,ye)?Gt.tagName+=ye:Gt.script?(Gt.script+="</"+Gt.tagName,Gt.tagName="",Gt.state=Et.SCRIPT):(Nt(ye)||he(Gt,"Invalid tagname in closing tag"),Gt.state=Et.CLOSE_TAG_SAW_WHITE);else{if(Nt(ye))continue;de(oe,ye)?Gt.script?(Gt.script+="</"+ye,Gt.state=Et.SCRIPT):he(Gt,"Invalid tagname in closing tag."):Gt.tagName=ye}continue;case Et.CLOSE_TAG_SAW_WHITE:if(Nt(ye))continue;ye===">"?ue(Gt):he(Gt,"Invalid characters in closing tag");continue;case Et.TEXT_ENTITY:case Et.ATTRIB_VALUE_ENTITY_Q:case Et.ATTRIB_VALUE_ENTITY_U:var Ee,Ze;switch(Gt.state){case Et.TEXT_ENTITY:Ee=Et.TEXT,Ze="textNode";break;case Et.ATTRIB_VALUE_ENTITY_Q:Ee=Et.ATTRIB_VALUE_QUOTED,Ze="attribValue";break;case Et.ATTRIB_VALUE_ENTITY_U:Ee=Et.ATTRIB_VALUE_UNQUOTED,Ze="attribValue"}ye===";"?(Gt[Ze]+=Re(Gt),Gt.entity="",Gt.state=Ee):Vt(Gt.entity.length?Pt:It,ye)?Gt.entity+=ye:(he(Gt,"Invalid character in entity name"),Gt[Ze]+="&"+Gt.entity+ye,Gt.entity="",Gt.state=Ee);continue;default:throw new Error(Gt,"Unknown state: "+Gt.state)}return Gt.position>=Gt.bufferCheckPosition&&ft(Gt),Gt}ut.parser=function(zt,Gt){return new ct(zt,Gt)},ut.SAXParser=ct,ut.SAXStream=Ut,ut.createStream=Rt,ut.MAX_BUFFER_LENGTH=65536;var _e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ut.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],ot.default||(Object.create=function(zt){function Gt(){}return Gt.prototype=zt,new Gt}),tt.default||(Object.keys=function(zt){var Gt=[];for(var le in zt)zt.hasOwnProperty(le)&&Gt.push(le);return Gt}),ct.prototype={end:function(){ze(this)},write:Ae,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){Lt(this)}};var Le;try{Le=wt("stream").Stream}catch(zt){Le=function(){}}var Oe=ut.EVENTS.filter(function(zt){return zt!=="error"&&zt!=="end"});Ut.prototype=(0,ot.default)(Le.prototype,{constructor:{value:Ut}}),Ut.prototype.write=function(zt){if(typeof Ot=="function"&&typeof Ot.isBuffer=="function"&&Ot.isBuffer(zt)){if(!this._decoder){var Gt=wt("string_decoder").StringDecoder;this._decoder=new Gt("utf8")}zt=this._decoder.write(zt)}return this._parser.write(zt.toString()),this.emit("data",zt),!0},Ut.prototype.end=function(zt){return zt&&zt.length&&this.write(zt),this._parser.end(),!0},Ut.prototype.on=function(zt,Gt){var le=this;return le._parser["on"+zt]||Oe.indexOf(zt)===-1||(le._parser["on"+zt]=function(){var ye=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ye.splice(0,0,zt),le.emit.apply(le,ye)}),Le.prototype.on.call(le,zt,Gt)};var He="[CDATA[",ie="DOCTYPE",Tt="http://www.w3.org/XML/1998/namespace",At="http://www.w3.org/2000/xmlns/",Yt={xml:Tt,xmlns:At},oe=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_t=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,It=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Pt=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Et=0;ut.STATE={BEGIN:Et++,BEGIN_WHITESPACE:Et++,TEXT:Et++,TEXT_ENTITY:Et++,OPEN_WAKA:Et++,SGML_DECL:Et++,SGML_DECL_QUOTED:Et++,DOCTYPE:Et++,DOCTYPE_QUOTED:Et++,DOCTYPE_DTD:Et++,DOCTYPE_DTD_QUOTED:Et++,COMMENT_STARTING:Et++,COMMENT:Et++,COMMENT_ENDING:Et++,COMMENT_ENDED:Et++,CDATA:Et++,CDATA_ENDING:Et++,CDATA_ENDING_2:Et++,PROC_INST:Et++,PROC_INST_BODY:Et++,PROC_INST_ENDING:Et++,OPEN_TAG:Et++,OPEN_TAG_SLASH:Et++,ATTRIB:Et++,ATTRIB_NAME:Et++,ATTRIB_NAME_SAW_WHITE:Et++,ATTRIB_VALUE:Et++,ATTRIB_VALUE_QUOTED:Et++,ATTRIB_VALUE_CLOSED:Et++,ATTRIB_VALUE_UNQUOTED:Et++,ATTRIB_VALUE_ENTITY_Q:Et++,ATTRIB_VALUE_ENTITY_U:Et++,CLOSE_TAG:Et++,CLOSE_TAG_SAW_WHITE:Et++,SCRIPT:Et++,SCRIPT_ENDING:Et++},ut.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ut.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,tt.default)(ut.ENTITIES).forEach(function(zt){var Gt=ut.ENTITIES[zt],le=typeof Gt=="number"?String.fromCharCode(Gt):Gt;ut.ENTITIES[zt]=le});for(var $t in ut.STATE)ut.STATE[ut.STATE[$t]]=$t;Et=ut.STATE,Mt.default||function(){var zt=String.fromCharCode,Gt=Math.floor,le=function(){var ye,Ue,We=[],Ee=-1,Ze=arguments.length;if(!Ze)return"";for(var on="";++Ee<Ze;){var nn=Number(arguments[Ee]);if(!isFinite(nn)||nn<0||nn>1114111||Gt(nn)!==nn)throw RangeError("Invalid code point: "+nn);nn<=65535?We.push(nn):(nn-=65536,ye=55296+(nn>>10),Ue=nn%1024+56320,We.push(ye,Ue)),(Ee+1===Ze||We.length>16384)&&(on+=zt.apply(null,We),We.length=0)}return on};yt.default?Object.defineProperty(String,"fromCodePoint",{value:le,configurable:!0,writable:!0}):String.fromCodePoint=le}()})(Zt===void 0?(void 0).sax={}:Zt)}).call(this,wt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(wt,Qt,Zt){function Ot(){jt.call(this)}Qt.exports=Ot;var jt=wt("events").EventEmitter;wt("inherits")(Ot,jt),Ot.Readable=wt("readable-stream/readable.js"),Ot.Writable=wt("readable-stream/writable.js"),Ot.Duplex=wt("readable-stream/duplex.js"),Ot.Transform=wt("readable-stream/transform.js"),Ot.PassThrough=wt("readable-stream/passthrough.js"),Ot.Stream=Ot,Ot.prototype.pipe=function(Ct,Mt){function Bt(lt){Ct.writable&&Ct.write(lt)===!1&&et.pause&&et.pause()}function St(){et.readable&&et.resume&&et.resume()}function kt(){tt||(tt=!0,Ct.end())}function xt(){tt||(tt=!0,typeof Ct.destroy=="function"&&Ct.destroy())}function Dt(lt){if(yt(),jt.listenerCount(this,"error")===0)throw lt}function yt(){et.removeListener("data",Bt),Ct.removeListener("drain",St),et.removeListener("end",kt),et.removeListener("close",xt),et.removeListener("error",Dt),Ct.removeListener("error",Dt),et.removeListener("end",yt),et.removeListener("close",yt),Ct.removeListener("close",yt)}var et=this;et.on("data",Bt),Ct.on("drain",St),Ct._isStdio||Mt&&Mt.end===!1||(et.on("end",kt),et.on("close",xt));var tt=!1;return et.on("error",Dt),Ct.on("error",Dt),et.on("end",yt),et.on("close",yt),Ct.on("close",yt),Ct.emit("pipe",et),Ct}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(wt,Qt,Zt){(function(Ot){var jt=wt("./lib/request"),Ct=wt("./lib/response"),Mt=wt("xtend"),Bt=wt("builtin-status-codes"),St=wt("url"),kt=Zt;kt.request=function(xt,Dt){xt=typeof xt=="string"?St.parse(xt):Mt(xt);var yt=Ot.location.protocol.search(/^https?:$/)===-1?"http:":"",et=xt.protocol||yt,tt=xt.hostname||xt.host,lt=xt.port,ot=xt.path||"/";tt&&tt.indexOf(":")!==-1&&(tt="["+tt+"]"),xt.url=(tt?et+"//"+tt:"")+(lt?":"+lt:"")+ot,xt.method=(xt.method||"GET").toUpperCase(),xt.headers=xt.headers||{};var ut=new jt(xt);return Dt&&ut.on("response",Dt),ut},kt.get=function(xt,Dt){var yt=kt.request(xt,Dt);return yt.end(),yt},kt.ClientRequest=jt,kt.IncomingMessage=Ct.IncomingMessage,kt.Agent=function(){},kt.Agent.defaultMaxSockets=4,kt.globalAgent=new kt.Agent,kt.STATUS_CODES=Bt,kt.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(){if(Bt!==void 0)return Bt;if(Ot.XMLHttpRequest){Bt=new Ot.XMLHttpRequest;try{Bt.open("GET",Ot.XDomainRequest?"/":"https://example.com")}catch(xt){Bt=null}}else Bt=null;return Bt}function Ct(xt){var Dt=jt();if(!Dt)return!1;try{return Dt.responseType=xt,Dt.responseType===xt}catch(yt){}return!1}function Mt(xt){return typeof xt=="function"}Zt.fetch=Mt(Ot.fetch)&&Mt(Ot.ReadableStream),Zt.writableStream=Mt(Ot.WritableStream),Zt.abortController=Mt(Ot.AbortController),Zt.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Zt.blobConstructor=!0}catch(xt){}var Bt,St=Ot.ArrayBuffer!==void 0,kt=St&&Mt(Ot.ArrayBuffer.prototype.slice);Zt.arraybuffer=Zt.fetch||St&&Ct("arraybuffer"),Zt.msstream=!Zt.fetch&&kt&&Ct("ms-stream"),Zt.mozchunkedarraybuffer=!Zt.fetch&&St&&Ct("moz-chunked-arraybuffer"),Zt.overrideMimeType=Zt.fetch||!!jt()&&Mt(jt().overrideMimeType),Zt.vbArray=Mt(Ot.VBArray),Bt=null}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(wt,Qt,Zt){(function(Ot,jt,Ct){"use strict";function Mt(ft,gt){return xt.fetch&>?"fetch":xt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":xt.msstream?"ms-stream":xt.arraybuffer&&ft?"arraybuffer":xt.vbArray&&ft?"text:vbarray":"text"}function Bt(ft){try{var gt=ft.status;return gt!==null&>!==0}catch(Lt){return!1}}var St=wt("babel-runtime/core-js/object/keys"),kt=function(ft){return ft&&ft.__esModule?ft:{default:ft}}(St),xt=wt("./capability"),Dt=wt("inherits"),yt=wt("./response"),et=wt("readable-stream"),tt=wt("to-arraybuffer"),lt=yt.IncomingMessage,ot=yt.readyStates,ut=Qt.exports=function(ft){var gt=this;et.Writable.call(gt),gt._opts=ft,gt._body=[],gt._headers={},ft.auth&>.setHeader("Authorization","Basic "+new Ct(ft.auth).toString("base64")),(0,kt.default)(ft.headers).forEach(function(Ut){gt.setHeader(Ut,ft.headers[Ut])});var Lt,Rt=!0;if(ft.mode==="disable-fetch"||"requestTimeout"in ft&&!xt.abortController)Rt=!1,Lt=!0;else if(ft.mode==="prefer-streaming")Lt=!1;else if(ft.mode==="allow-wrong-content-type")Lt=!xt.overrideMimeType;else{if(ft.mode&&ft.mode!=="default"&&ft.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");Lt=!0}gt._mode=Mt(Lt,Rt),gt._fetchTimer=null,gt.on("finish",function(){gt._onFinish()})};Dt(ut,et.Writable),ut.prototype.setHeader=function(ft,gt){var Lt=this,Rt=ft.toLowerCase();ct.indexOf(Rt)===-1&&(Lt._headers[Rt]={name:ft,value:gt})},ut.prototype.getHeader=function(ft){var gt=this._headers[ft.toLowerCase()];return gt?gt.value:null},ut.prototype.removeHeader=function(ft){delete this._headers[ft.toLowerCase()]},ut.prototype._onFinish=function(){var ft=this;if(!ft._destroyed){var gt=ft._opts,Lt=ft._headers,Rt=null;gt.method!=="GET"&>.method!=="HEAD"&&(Rt=xt.arraybuffer?tt(Ct.concat(ft._body)):xt.blobConstructor?new jt.Blob(ft._body.map(function(Vt){return tt(Vt)}),{type:(Lt["content-type"]||{}).value||""}):Ct.concat(ft._body).toString());var Ut=[];if((0,kt.default)(Lt).forEach(function(Vt){var de=Lt[Vt].name,ge=Lt[Vt].value;Array.isArray(ge)?ge.forEach(function(be){Ut.push([de,be])}):Ut.push([de,ge])}),ft._mode==="fetch"){var Nt=null;if(xt.abortController){var qt=new AbortController;Nt=qt.signal,ft._fetchAbortController=qt,"requestTimeout"in gt&>.requestTimeout!==0&&(ft._fetchTimer=jt.setTimeout(function(){ft.emit("requestTimeout"),ft._fetchAbortController&&ft._fetchAbortController.abort()},gt.requestTimeout))}jt.fetch(ft._opts.url,{method:ft._opts.method,headers:Ut,body:Rt||void 0,mode:"cors",credentials:gt.withCredentials?"include":"same-origin",signal:Nt}).then(function(Vt){ft._fetchResponse=Vt,ft._connect()},function(Vt){jt.clearTimeout(ft._fetchTimer),ft._destroyed||ft.emit("error",Vt)})}else{var te=ft._xhr=new jt.XMLHttpRequest;try{te.open(ft._opts.method,ft._opts.url,!0)}catch(Vt){return void Ot.nextTick(function(){ft.emit("error",Vt)})}"responseType"in te&&(te.responseType=ft._mode.split(":")[0]),"withCredentials"in te&&(te.withCredentials=!!gt.withCredentials),ft._mode==="text"&&"overrideMimeType"in te&&te.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in gt&&(te.timeout=gt.requestTimeout,te.ontimeout=function(){ft.emit("requestTimeout")}),Ut.forEach(function(Vt){te.setRequestHeader(Vt[0],Vt[1])}),ft._response=null,te.onreadystatechange=function(){switch(te.readyState){case ot.LOADING:case ot.DONE:ft._onXHRProgress()}},ft._mode==="moz-chunked-arraybuffer"&&(te.onprogress=function(){ft._onXHRProgress()}),te.onerror=function(){ft._destroyed||ft.emit("error",new Error("XHR error"))};try{te.send(Rt)}catch(Vt){return void Ot.nextTick(function(){ft.emit("error",Vt)})}}}},ut.prototype._onXHRProgress=function(){var ft=this;Bt(ft._xhr)&&!ft._destroyed&&(ft._response||ft._connect(),ft._response._onXHRProgress())},ut.prototype._connect=function(){var ft=this;ft._destroyed||(ft._response=new lt(ft._xhr,ft._fetchResponse,ft._mode,ft._fetchTimer),ft._response.on("error",function(gt){ft.emit("error",gt)}),ft.emit("response",ft._response))},ut.prototype._write=function(ft,gt,Lt){this._body.push(ft),Lt()},ut.prototype.abort=ut.prototype.destroy=function(){var ft=this;ft._destroyed=!0,jt.clearTimeout(ft._fetchTimer),ft._response&&(ft._response._destroyed=!0),ft._xhr?ft._xhr.abort():ft._fetchAbortController&&ft._fetchAbortController.abort()},ut.prototype.end=function(ft,gt,Lt){var Rt=this;typeof ft=="function"&&(Lt=ft,ft=void 0),et.Writable.prototype.end.call(Rt,ft,gt,Lt)},ut.prototype.flushHeaders=function(){},ut.prototype.setTimeout=function(){},ut.prototype.setNoDelay=function(){},ut.prototype.setSocketKeepAlive=function(){};var ct=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,wt("_process"),typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},wt("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(wt,Qt,Zt){(function(Ot,jt,Ct){"use strict";var Mt=wt("babel-runtime/core-js/promise"),Bt=function(et){return et&&et.__esModule?et:{default:et}}(Mt),St=wt("./capability"),kt=wt("inherits"),xt=wt("readable-stream"),Dt=Zt.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},yt=Zt.IncomingMessage=function(et,tt,lt,ot){var ut=this;if(xt.Readable.call(ut),ut._mode=lt,ut.headers={},ut.rawHeaders=[],ut.trailers={},ut.rawTrailers=[],ut.on("end",function(){Ot.nextTick(function(){ut.emit("close")})}),lt==="fetch"){if(ut._fetchResponse=tt,ut.url=tt.url,ut.statusCode=tt.status,ut.statusMessage=tt.statusText,tt.headers.forEach(function(Rt,Ut){ut.headers[Ut.toLowerCase()]=Rt,ut.rawHeaders.push(Ut,Rt)}),St.writableStream){var ct=new WritableStream({write:function(Rt){return new Bt.default(function(Ut,Nt){ut._destroyed?Nt():ut.push(new Ct(Rt))?Ut():ut._resumeFetch=Ut})},close:function(){jt.clearTimeout(ot),ut._destroyed||ut.push(null)},abort:function(Rt){ut._destroyed||ut.emit("error",Rt)}});try{return void tt.body.pipeTo(ct).catch(function(Rt){jt.clearTimeout(ot),ut._destroyed||ut.emit("error",Rt)})}catch(Rt){}}var ft=tt.body.getReader();(function Rt(){ft.read().then(function(Ut){if(!ut._destroyed){if(Ut.done)return jt.clearTimeout(ot),void ut.push(null);ut.push(new Ct(Ut.value)),Rt()}}).catch(function(Ut){jt.clearTimeout(ot),ut._destroyed||ut.emit("error",Ut)})})()}else if(ut._xhr=et,ut._pos=0,ut.url=et.responseURL,ut.statusCode=et.status,ut.statusMessage=et.statusText,et.getAllResponseHeaders().split(/\r?\n/).forEach(function(Rt){var Ut=Rt.match(/^([^:]+):\s*(.*)/);if(Ut){var Nt=Ut[1].toLowerCase();Nt==="set-cookie"?(ut.headers[Nt]===void 0&&(ut.headers[Nt]=[]),ut.headers[Nt].push(Ut[2])):ut.headers[Nt]!==void 0?ut.headers[Nt]+=", "+Ut[2]:ut.headers[Nt]=Ut[2],ut.rawHeaders.push(Ut[1],Ut[2])}}),ut._charset="x-user-defined",!St.overrideMimeType){var gt=ut.rawHeaders["mime-type"];if(gt){var Lt=gt.match(/;\s*charset=([^;])(;|$)/);Lt&&(ut._charset=Lt[1].toLowerCase())}ut._charset||(ut._charset="utf-8")}};kt(yt,xt.Readable),yt.prototype._read=function(){var et=this,tt=et._resumeFetch;tt&&(et._resumeFetch=null,tt())},yt.prototype._onXHRProgress=function(){var et=this,tt=et._xhr,lt=null;switch(et._mode){case"text:vbarray":if(tt.readyState!==Dt.DONE)break;try{lt=new jt.VBArray(tt.responseBody).toArray()}catch(gt){}if(lt!==null){et.push(new Ct(lt));break}case"text":try{lt=tt.responseText}catch(gt){et._mode="text:vbarray";break}if(lt.length>et._pos){var ot=lt.substr(et._pos);if(et._charset==="x-user-defined"){for(var ut=new Ct(ot.length),ct=0;ct<ot.length;ct++)ut[ct]=255&ot.charCodeAt(ct);et.push(ut)}else et.push(ot,et._charset);et._pos=lt.length}break;case"arraybuffer":if(tt.readyState!==Dt.DONE||!tt.response)break;lt=tt.response,et.push(new Ct(new Uint8Array(lt)));break;case"moz-chunked-arraybuffer":if(lt=tt.response,tt.readyState!==Dt.LOADING||!lt)break;et.push(new Ct(new Uint8Array(lt)));break;case"ms-stream":if(lt=tt.response,tt.readyState!==Dt.LOADING)break;var ft=new jt.MSStreamReader;ft.onprogress=function(){ft.result.byteLength>et._pos&&(et.push(new Ct(new Uint8Array(ft.result.slice(et._pos)))),et._pos=ft.result.byteLength)},ft.onload=function(){et.push(null)},ft.readAsArrayBuffer(lt)}et._xhr.readyState===Dt.DONE&&et._mode!=="ms-stream"&&et.push(null)}}).call(this,wt("_process"),typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},wt("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(wt,Qt,Zt){"use strict";function Ot(gt){if(!gt)return"utf8";for(var Lt;;)switch(gt){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return gt;default:if(Lt)return;gt=(""+gt).toLowerCase(),Lt=!0}}function jt(gt){var Lt=Ot(gt);if(typeof Lt!="string"&&(ct.isEncoding===ft||!ft(gt)))throw new Error("Unknown encoding: "+gt);return Lt||gt}function Ct(gt){this.encoding=jt(gt);var Lt;switch(this.encoding){case"utf16le":this.text=yt,this.end=et,Lt=4;break;case"utf8":this.fillLast=kt,Lt=4;break;case"base64":this.text=tt,this.end=lt,Lt=3;break;default:return this.write=ot,void(this.end=ut)}this.lastNeed=0,this.lastTotal=0,this.lastChar=ct.allocUnsafe(Lt)}function Mt(gt){return gt<=127?0:gt>>5==6?2:gt>>4==14?3:gt>>3==30?4:gt>>6==2?-1:-2}function Bt(gt,Lt,Rt){var Ut=Lt.length-1;if(Ut<Rt)return 0;var Nt=Mt(Lt[Ut]);return Nt>=0?(Nt>0&&(gt.lastNeed=Nt-1),Nt):--Ut<Rt||Nt===-2?0:(Nt=Mt(Lt[Ut]))>=0?(Nt>0&&(gt.lastNeed=Nt-2),Nt):--Ut<Rt||Nt===-2?0:(Nt=Mt(Lt[Ut]),Nt>=0?(Nt>0&&(Nt===2?Nt=0:gt.lastNeed=Nt-3),Nt):0)}function St(gt,Lt,Rt){if((192&Lt[0])!=128)return gt.lastNeed=0,"\u951F\uFFFD";if(gt.lastNeed>1&&Lt.length>1){if((192&Lt[1])!=128)return gt.lastNeed=1,"\u951F\uFFFD";if(gt.lastNeed>2&&Lt.length>2&&(192&Lt[2])!=128)return gt.lastNeed=2,"\u951F\uFFFD"}}function kt(gt){var Lt=this.lastTotal-this.lastNeed,Rt=St(this,gt,Lt);return Rt!==void 0?Rt:this.lastNeed<=gt.length?(gt.copy(this.lastChar,Lt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(gt.copy(this.lastChar,Lt,0,gt.length),void(this.lastNeed-=gt.length))}function xt(gt,Lt){var Rt=Bt(this,gt,Lt);if(!this.lastNeed)return gt.toString("utf8",Lt);this.lastTotal=Rt;var Ut=gt.length-(Rt-this.lastNeed);return gt.copy(this.lastChar,0,Ut),gt.toString("utf8",Lt,Ut)}function Dt(gt){var Lt=gt&>.length?this.write(gt):"";return this.lastNeed?Lt+"\u951F\uFFFD":Lt}function yt(gt,Lt){if((gt.length-Lt)%2==0){var Rt=gt.toString("utf16le",Lt);if(Rt){var Ut=Rt.charCodeAt(Rt.length-1);if(Ut>=55296&&Ut<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=gt[gt.length-2],this.lastChar[1]=gt[gt.length-1],Rt.slice(0,-1)}return Rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=gt[gt.length-1],gt.toString("utf16le",Lt,gt.length-1)}function et(gt){var Lt=gt&>.length?this.write(gt):"";if(this.lastNeed){var Rt=this.lastTotal-this.lastNeed;return Lt+this.lastChar.toString("utf16le",0,Rt)}return Lt}function tt(gt,Lt){var Rt=(gt.length-Lt)%3;return Rt===0?gt.toString("base64",Lt):(this.lastNeed=3-Rt,this.lastTotal=3,Rt===1?this.lastChar[0]=gt[gt.length-1]:(this.lastChar[0]=gt[gt.length-2],this.lastChar[1]=gt[gt.length-1]),gt.toString("base64",Lt,gt.length-Rt))}function lt(gt){var Lt=gt&>.length?this.write(gt):"";return this.lastNeed?Lt+this.lastChar.toString("base64",0,3-this.lastNeed):Lt}function ot(gt){return gt.toString(this.encoding)}function ut(gt){return gt&>.length?this.write(gt):""}var ct=wt("safe-buffer").Buffer,ft=ct.isEncoding||function(gt){switch((gt=""+gt)&>.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};Zt.StringDecoder=Ct,Ct.prototype.write=function(gt){if(gt.length===0)return"";var Lt,Rt;if(this.lastNeed){if((Lt=this.fillLast(gt))===void 0)return"";Rt=this.lastNeed,this.lastNeed=0}else Rt=0;return Rt<gt.length?Lt?Lt+this.text(gt,Rt):this.text(gt,Rt):Lt||""},Ct.prototype.end=Dt,Ct.prototype.text=xt,Ct.prototype.fillLast=function(gt){if(this.lastNeed<=gt.length)return gt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);gt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,gt.length),this.lastNeed-=gt.length}},{"safe-buffer":193}],201:[function(wt,Qt,Zt){(function(Ot,jt){function Ct(Dt,yt){this._id=Dt,this._clearFn=yt}var Mt=wt("process/browser.js").nextTick,Bt=Function.prototype.apply,St=Array.prototype.slice,kt={},xt=0;Zt.setTimeout=function(){return new Ct(Bt.call(setTimeout,window,arguments),clearTimeout)},Zt.setInterval=function(){return new Ct(Bt.call(setInterval,window,arguments),clearInterval)},Zt.clearTimeout=Zt.clearInterval=function(Dt){Dt.close()},Ct.prototype.unref=Ct.prototype.ref=function(){},Ct.prototype.close=function(){this._clearFn.call(window,this._id)},Zt.enroll=function(Dt,yt){clearTimeout(Dt._idleTimeoutId),Dt._idleTimeout=yt},Zt.unenroll=function(Dt){clearTimeout(Dt._idleTimeoutId),Dt._idleTimeout=-1},Zt._unrefActive=Zt.active=function(Dt){clearTimeout(Dt._idleTimeoutId);var yt=Dt._idleTimeout;yt>=0&&(Dt._idleTimeoutId=setTimeout(function(){Dt._onTimeout&&Dt._onTimeout()},yt))},Zt.setImmediate=typeof Ot=="function"?Ot:function(Dt){var yt=xt++,et=!(arguments.length<2)&&St.call(arguments,1);return kt[yt]=!0,Mt(function(){kt[yt]&&(et?Dt.apply(null,et):Dt.call(null),Zt.clearImmediate(yt))}),yt},Zt.clearImmediate=typeof jt=="function"?jt:function(Dt){delete kt[Dt]}}).call(this,wt("timers").setImmediate,wt("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(wt,Qt,Zt){var Ot=wt("buffer").Buffer;Qt.exports=function(jt){if(jt instanceof Uint8Array){if(jt.byteOffset===0&&jt.byteLength===jt.buffer.byteLength)return jt.buffer;if(typeof jt.buffer.slice=="function")return jt.buffer.slice(jt.byteOffset,jt.byteOffset+jt.byteLength)}if(Ot.isBuffer(jt)){for(var Ct=new Uint8Array(jt.length),Mt=jt.length,Bt=0;Bt<Mt;Bt++)Ct[Bt]=jt[Bt];return Ct.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(wt,Qt,Zt){"use strict";function Ot(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function jt(Nt,qt,te){if(Nt&&kt.isObject(Nt)&&Nt instanceof Ot)return Nt;var Vt=new Ot;return Vt.parse(Nt,qt,te),Vt}function Ct(Nt){return kt.isString(Nt)&&(Nt=jt(Nt)),Nt instanceof Ot?Nt.format():Ot.prototype.format.call(Nt)}function Mt(Nt,qt){return jt(Nt,!1,!0).resolve(qt)}function Bt(Nt,qt){return Nt?jt(Nt,!1,!0).resolveObject(qt):qt}var St=wt("punycode"),kt=wt("./util");Zt.parse=jt,Zt.resolve=Mt,Zt.resolveObject=Bt,Zt.format=Ct,Zt.Url=Ot;var xt=/^([a-z0-9.+-]+:)/i,Dt=/:[0-9]*$/,yt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,et=["<",">",'"',"`"," ","\r",`
|
|
`," "],tt=["{","}","|","\\","^","`"].concat(et),lt=["'"].concat(tt),ot=["%","/","?",";","#"].concat(lt),ut=["/","?","#"],ct=/^[+a-z0-9A-Z_-]{0,63}$/,ft=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gt={javascript:!0,"javascript:":!0},Lt={javascript:!0,"javascript:":!0},Rt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ut=wt("querystring");Ot.prototype.parse=function(Nt,qt,te){if(!kt.isString(Nt))throw new TypeError("Parameter 'url' must be a string, not "+typeof Nt);var Vt=Nt.indexOf("?"),de=Vt!==-1&&Vt<Nt.indexOf("#")?"?":"#",ge=Nt.split(de),be=/\\/g;ge[0]=ge[0].replace(be,"/"),Nt=ge.join(de);var Ne=Nt;if(Ne=Ne.trim(),!te&&Nt.split("#").length===1){var Ge=yt.exec(Ne);if(Ge)return this.path=Ne,this.href=Ne,this.pathname=Ge[1],Ge[2]?(this.search=Ge[2],this.query=qt?Ut.parse(this.search.substr(1)):this.search.substr(1)):qt&&(this.search="",this.query={}),this}var Pe=xt.exec(Ne);if(Pe){Pe=Pe[0];var ze=Pe.toLowerCase();this.protocol=ze,Ne=Ne.substr(Pe.length)}if(te||Pe||Ne.match(/^\/\/[^@\/]+@[^@\/]+/)){var he=Ne.substr(0,2)==="//";!he||Pe&&Lt[Pe]||(Ne=Ne.substr(2),this.slashes=!0)}if(!Lt[Pe]&&(he||Pe&&!Rt[Pe])){for(var Jt=-1,re=0;re<ut.length;re++){var se=Ne.indexOf(ut[re]);se!==-1&&(Jt===-1||se<Jt)&&(Jt=se)}var pe,ue;ue=Jt===-1?Ne.lastIndexOf("@"):Ne.lastIndexOf("@",Jt),ue!==-1&&(pe=Ne.slice(0,ue),Ne=Ne.slice(ue+1),this.auth=decodeURIComponent(pe)),Jt=-1;for(var re=0;re<ot.length;re++){var se=Ne.indexOf(ot[re]);se!==-1&&(Jt===-1||se<Jt)&&(Jt=se)}Jt===-1&&(Jt=Ne.length),this.host=Ne.slice(0,Jt),Ne=Ne.slice(Jt),this.parseHost(),this.hostname=this.hostname||"";var Re=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Re)for(var Fe=this.hostname.split(/\./),re=0,Qe=Fe.length;re<Qe;re++){var Ae=Fe[re];if(Ae&&!Ae.match(ct)){for(var _e="",Le=0,Oe=Ae.length;Le<Oe;Le++)Ae.charCodeAt(Le)>127?_e+="x":_e+=Ae[Le];if(!_e.match(ct)){var He=Fe.slice(0,re),ie=Fe.slice(re+1),Tt=Ae.match(ft);Tt&&(He.push(Tt[1]),ie.unshift(Tt[2])),ie.length&&(Ne="/"+ie.join(".")+Ne),this.hostname=He.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Re||(this.hostname=St.toASCII(this.hostname));var At=this.port?":"+this.port:"",Yt=this.hostname||"";this.host=Yt+At,this.href+=this.host,Re&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ne[0]!=="/"&&(Ne="/"+Ne))}if(!gt[ze])for(var re=0,Qe=lt.length;re<Qe;re++){var oe=lt[re];if(Ne.indexOf(oe)!==-1){var _t=encodeURIComponent(oe);_t===oe&&(_t=escape(oe)),Ne=Ne.split(oe).join(_t)}}var It=Ne.indexOf("#");It!==-1&&(this.hash=Ne.substr(It),Ne=Ne.slice(0,It));var Pt=Ne.indexOf("?");if(Pt!==-1?(this.search=Ne.substr(Pt),this.query=Ne.substr(Pt+1),qt&&(this.query=Ut.parse(this.query)),Ne=Ne.slice(0,Pt)):qt&&(this.search="",this.query={}),Ne&&(this.pathname=Ne),Rt[ze]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var At=this.pathname||"",Et=this.search||"";this.path=At+Et}return this.href=this.format(),this},Ot.prototype.format=function(){var Nt=this.auth||"";Nt&&(Nt=encodeURIComponent(Nt),Nt=Nt.replace(/%3A/i,":"),Nt+="@");var qt=this.protocol||"",te=this.pathname||"",Vt=this.hash||"",de=!1,ge="";this.host?de=Nt+this.host:this.hostname&&(de=Nt+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(de+=":"+this.port)),this.query&&kt.isObject(this.query)&&Object.keys(this.query).length&&(ge=Ut.stringify(this.query));var be=this.search||ge&&"?"+ge||"";return qt&&qt.substr(-1)!==":"&&(qt+=":"),this.slashes||(!qt||Rt[qt])&&de!==!1?(de="//"+(de||""),te&&te.charAt(0)!=="/"&&(te="/"+te)):de||(de=""),Vt&&Vt.charAt(0)!=="#"&&(Vt="#"+Vt),be&&be.charAt(0)!=="?"&&(be="?"+be),te=te.replace(/[?#]/g,function(Ne){return encodeURIComponent(Ne)}),be=be.replace("#","%23"),qt+de+te+be+Vt},Ot.prototype.resolve=function(Nt){return this.resolveObject(jt(Nt,!1,!0)).format()},Ot.prototype.resolveObject=function(Nt){if(kt.isString(Nt)){var qt=new Ot;qt.parse(Nt,!1,!0),Nt=qt}for(var te=new Ot,Vt=Object.keys(this),de=0;de<Vt.length;de++){var ge=Vt[de];te[ge]=this[ge]}if(te.hash=Nt.hash,Nt.href==="")return te.href=te.format(),te;if(Nt.slashes&&!Nt.protocol){for(var be=Object.keys(Nt),Ne=0;Ne<be.length;Ne++){var Ge=be[Ne];Ge!=="protocol"&&(te[Ge]=Nt[Ge])}return Rt[te.protocol]&&te.hostname&&!te.pathname&&(te.path=te.pathname="/"),te.href=te.format(),te}if(Nt.protocol&&Nt.protocol!==te.protocol){if(!Rt[Nt.protocol]){for(var Pe=Object.keys(Nt),ze=0;ze<Pe.length;ze++){var he=Pe[ze];te[he]=Nt[he]}return te.href=te.format(),te}if(te.protocol=Nt.protocol,Nt.host||Lt[Nt.protocol])te.pathname=Nt.pathname;else{for(var Qe=(Nt.pathname||"").split("/");Qe.length&&!(Nt.host=Qe.shift()););Nt.host||(Nt.host=""),Nt.hostname||(Nt.hostname=""),Qe[0]!==""&&Qe.unshift(""),Qe.length<2&&Qe.unshift(""),te.pathname=Qe.join("/")}if(te.search=Nt.search,te.query=Nt.query,te.host=Nt.host||"",te.auth=Nt.auth,te.hostname=Nt.hostname||Nt.host,te.port=Nt.port,te.pathname||te.search){var Jt=te.pathname||"",re=te.search||"";te.path=Jt+re}return te.slashes=te.slashes||Nt.slashes,te.href=te.format(),te}var se=te.pathname&&te.pathname.charAt(0)==="/",pe=Nt.host||Nt.pathname&&Nt.pathname.charAt(0)==="/",ue=pe||se||te.host&&Nt.pathname,Re=ue,Fe=te.pathname&&te.pathname.split("/")||[],Qe=Nt.pathname&&Nt.pathname.split("/")||[],Ae=te.protocol&&!Rt[te.protocol];if(Ae&&(te.hostname="",te.port=null,te.host&&(Fe[0]===""?Fe[0]=te.host:Fe.unshift(te.host)),te.host="",Nt.protocol&&(Nt.hostname=null,Nt.port=null,Nt.host&&(Qe[0]===""?Qe[0]=Nt.host:Qe.unshift(Nt.host)),Nt.host=null),ue=ue&&(Qe[0]===""||Fe[0]==="")),pe)te.host=Nt.host||Nt.host===""?Nt.host:te.host,te.hostname=Nt.hostname||Nt.hostname===""?Nt.hostname:te.hostname,te.search=Nt.search,te.query=Nt.query,Fe=Qe;else if(Qe.length)Fe||(Fe=[]),Fe.pop(),Fe=Fe.concat(Qe),te.search=Nt.search,te.query=Nt.query;else if(!kt.isNullOrUndefined(Nt.search)){if(Ae){te.hostname=te.host=Fe.shift();var _e=!!(te.host&&te.host.indexOf("@")>0)&&te.host.split("@");_e&&(te.auth=_e.shift(),te.host=te.hostname=_e.shift())}return te.search=Nt.search,te.query=Nt.query,kt.isNull(te.pathname)&&kt.isNull(te.search)||(te.path=(te.pathname?te.pathname:"")+(te.search?te.search:"")),te.href=te.format(),te}if(!Fe.length)return te.pathname=null,te.search?te.path="/"+te.search:te.path=null,te.href=te.format(),te;for(var Le=Fe.slice(-1)[0],Oe=(te.host||Nt.host||Fe.length>1)&&(Le==="."||Le==="..")||Le==="",He=0,ie=Fe.length;ie>=0;ie--)Le=Fe[ie],Le==="."?Fe.splice(ie,1):Le===".."?(Fe.splice(ie,1),He++):He&&(Fe.splice(ie,1),He--);if(!ue&&!Re)for(;He--;He)Fe.unshift("..");!ue||Fe[0]===""||Fe[0]&&Fe[0].charAt(0)==="/"||Fe.unshift(""),Oe&&Fe.join("/").substr(-1)!=="/"&&Fe.push("");var Tt=Fe[0]===""||Fe[0]&&Fe[0].charAt(0)==="/";if(Ae){te.hostname=te.host=Tt?"":Fe.length?Fe.shift():"";var _e=!!(te.host&&te.host.indexOf("@")>0)&&te.host.split("@");_e&&(te.auth=_e.shift(),te.host=te.hostname=_e.shift())}return ue=ue||te.host&&Fe.length,ue&&!Tt&&Fe.unshift(""),Fe.length?te.pathname=Fe.join("/"):(te.pathname=null,te.path=null),kt.isNull(te.pathname)&&kt.isNull(te.search)||(te.path=(te.pathname?te.pathname:"")+(te.search?te.search:"")),te.auth=Nt.auth||te.auth,te.slashes=te.slashes||Nt.slashes,te.href=te.format(),te},Ot.prototype.parseHost=function(){var Nt=this.host,qt=Dt.exec(Nt);qt&&(qt=qt[0],qt!==":"&&(this.port=qt.substr(1)),Nt=Nt.substr(0,Nt.length-qt.length)),Nt&&(this.hostname=Nt)}},{"./util":204,punycode:174,querystring:177}],204:[function(wt,Qt,Zt){"use strict";Qt.exports={isString:function(Ot){return typeof Ot=="string"},isObject:function(Ot){return typeof Ot=="object"&&Ot!==null},isNull:function(Ot){return Ot===null},isNullOrUndefined:function(Ot){return Ot==null}}},{}],205:[function(wt,Qt,Zt){(function(Ot){function jt(Mt,Bt){function St(){if(!kt){if(Ct("throwDeprecation"))throw new Error(Bt);Ct("traceDeprecation")?console.trace(Bt):console.warn(Bt),kt=!0}return Mt.apply(this,arguments)}if(Ct("noDeprecation"))return Mt;var kt=!1;return St}function Ct(Mt){try{if(!Ot.localStorage)return!1}catch(St){return!1}var Bt=Ot.localStorage[Mt];return Bt!=null&&String(Bt).toLowerCase()==="true"}Qt.exports=jt}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(wt,Qt,Zt){Qt.exports=function(Ot){return Ot&&typeof Ot=="object"&&typeof Ot.copy=="function"&&typeof Ot.fill=="function"&&typeof Ot.readUInt8=="function"}},{}],207:[function(wt,Qt,Zt){(function(Ot,jt){function Ct(re,se){var pe={seen:[],stylize:Bt};return arguments.length>=3&&(pe.depth=arguments[2]),arguments.length>=4&&(pe.colors=arguments[3]),ot(se)?pe.showHidden=se:se&&Zt._extend(pe,se),Rt(pe.showHidden)&&(pe.showHidden=!1),Rt(pe.depth)&&(pe.depth=2),Rt(pe.colors)&&(pe.colors=!1),Rt(pe.customInspect)&&(pe.customInspect=!0),pe.colors&&(pe.stylize=Mt),kt(pe,re,pe.depth)}function Mt(re,se){var pe=Ct.styles[se];return pe?"\x1B["+Ct.colors[pe][0]+"m"+re+"\x1B["+Ct.colors[pe][1]+"m":re}function Bt(re,se){return re}function St(re){var se={};return re.forEach(function(pe,ue){se[pe]=!0}),se}function kt(re,se,pe){if(re.customInspect&&se&&Vt(se.inspect)&&se.inspect!==Zt.inspect&&(!se.constructor||se.constructor.prototype!==se)){var ue=se.inspect(pe,re);return gt(ue)||(ue=kt(re,ue,pe)),ue}var Re=xt(re,se);if(Re)return Re;var Fe=Object.keys(se),Qe=St(Fe);if(re.showHidden&&(Fe=Object.getOwnPropertyNames(se)),te(se)&&(Fe.indexOf("message")>=0||Fe.indexOf("description")>=0))return Dt(se);if(Fe.length===0){if(Vt(se)){var Ae=se.name?": "+se.name:"";return re.stylize("[Function"+Ae+"]","special")}if(Ut(se))return re.stylize(RegExp.prototype.toString.call(se),"regexp");if(qt(se))return re.stylize(Date.prototype.toString.call(se),"date");if(te(se))return Dt(se)}var _e="",Le=!1,Oe=["{","}"];if(lt(se)&&(Le=!0,Oe=["[","]"]),Vt(se)&&(_e=" [Function"+(se.name?": "+se.name:"")+"]"),Ut(se)&&(_e=" "+RegExp.prototype.toString.call(se)),qt(se)&&(_e=" "+Date.prototype.toUTCString.call(se)),te(se)&&(_e=" "+Dt(se)),Fe.length===0&&(!Le||se.length==0))return Oe[0]+_e+Oe[1];if(pe<0)return Ut(se)?re.stylize(RegExp.prototype.toString.call(se),"regexp"):re.stylize("[Object]","special");re.seen.push(se);var He;return He=Le?yt(re,se,pe,Qe,Fe):Fe.map(function(ie){return et(re,se,pe,Qe,ie,Le)}),re.seen.pop(),tt(He,_e,Oe)}function xt(re,se){if(Rt(se))return re.stylize("undefined","undefined");if(gt(se)){var pe="'"+JSON.stringify(se).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return re.stylize(pe,"string")}return ft(se)?re.stylize(""+se,"number"):ot(se)?re.stylize(""+se,"boolean"):ut(se)?re.stylize("null","null"):void 0}function Dt(re){return"["+Error.prototype.toString.call(re)+"]"}function yt(re,se,pe,ue,Re){for(var Fe=[],Qe=0,Ae=se.length;Qe<Ae;++Qe)Ge(se,String(Qe))?Fe.push(et(re,se,pe,ue,String(Qe),!0)):Fe.push("");return Re.forEach(function(_e){_e.match(/^\d+$/)||Fe.push(et(re,se,pe,ue,_e,!0))}),Fe}function et(re,se,pe,ue,Re,Fe){var Qe,Ae,_e;if(_e=Object.getOwnPropertyDescriptor(se,Re)||{value:se[Re]},_e.get?Ae=_e.set?re.stylize("[Getter/Setter]","special"):re.stylize("[Getter]","special"):_e.set&&(Ae=re.stylize("[Setter]","special")),Ge(ue,Re)||(Qe="["+Re+"]"),Ae||(re.seen.indexOf(_e.value)<0?(Ae=ut(pe)?kt(re,_e.value,null):kt(re,_e.value,pe-1),Ae.indexOf(`
|
|
`)>-1&&(Ae=Fe?Ae.split(`
|
|
`).map(function(Le){return" "+Le}).join(`
|
|
`).substr(2):`
|
|
`+Ae.split(`
|
|
`).map(function(Le){return" "+Le}).join(`
|
|
`))):Ae=re.stylize("[Circular]","special")),Rt(Qe)){if(Fe&&Re.match(/^\d+$/))return Ae;Qe=JSON.stringify(""+Re),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=re.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=re.stylize(Qe,"string"))}return Qe+": "+Ae}function tt(re,se,pe){var ue=0;return re.reduce(function(Re,Fe){return ue++,Fe.indexOf(`
|
|
`)>=0&&ue++,Re+Fe.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?pe[0]+(se===""?"":se+`
|
|
`)+" "+re.join(`,
|
|
`)+" "+pe[1]:pe[0]+se+" "+re.join(", ")+" "+pe[1]}function lt(re){return Array.isArray(re)}function ot(re){return typeof re=="boolean"}function ut(re){return re===null}function ct(re){return re==null}function ft(re){return typeof re=="number"}function gt(re){return typeof re=="string"}function Lt(re){return typeof re=="symbol"}function Rt(re){return re===void 0}function Ut(re){return Nt(re)&&ge(re)==="[object RegExp]"}function Nt(re){return typeof re=="object"&&re!==null}function qt(re){return Nt(re)&&ge(re)==="[object Date]"}function te(re){return Nt(re)&&(ge(re)==="[object Error]"||re instanceof Error)}function Vt(re){return typeof re=="function"}function de(re){return re===null||typeof re=="boolean"||typeof re=="number"||typeof re=="string"||typeof re=="symbol"||re===void 0}function ge(re){return Object.prototype.toString.call(re)}function be(re){return re<10?"0"+re.toString(10):re.toString(10)}function Ne(){var re=new Date,se=[be(re.getHours()),be(re.getMinutes()),be(re.getSeconds())].join(":");return[re.getDate(),Jt[re.getMonth()],se].join(" ")}function Ge(re,se){return Object.prototype.hasOwnProperty.call(re,se)}var Pe=/%[sdj%]/g;Zt.format=function(re){if(!gt(re)){for(var se=[],pe=0;pe<arguments.length;pe++)se.push(Ct(arguments[pe]));return se.join(" ")}for(var pe=1,ue=arguments,Re=ue.length,Fe=String(re).replace(Pe,function(_e){if(_e==="%%")return"%";if(pe>=Re)return _e;switch(_e){case"%s":return String(ue[pe++]);case"%d":return Number(ue[pe++]);case"%j":try{return JSON.stringify(ue[pe++])}catch(Le){return"[Circular]"}default:return _e}}),Qe=ue[pe];pe<Re;Qe=ue[++pe])ut(Qe)||!Nt(Qe)?Fe+=" "+Qe:Fe+=" "+Ct(Qe);return Fe},Zt.deprecate=function(re,se){function pe(){if(!ue){if(Ot.throwDeprecation)throw new Error(se);Ot.traceDeprecation?console.trace(se):console.error(se),ue=!0}return re.apply(this,arguments)}if(Rt(jt.process))return function(){return Zt.deprecate(re,se).apply(this,arguments)};if(Ot.noDeprecation===!0)return re;var ue=!1;return pe};var ze,he={};Zt.debuglog=function(re){if(Rt(ze)&&(ze=Ot.env.NODE_DEBUG||""),re=re.toUpperCase(),!he[re])if(new RegExp("\\b"+re+"\\b","i").test(ze)){var se=Ot.pid;he[re]=function(){var pe=Zt.format.apply(Zt,arguments);console.error("%s %d: %s",re,se,pe)}}else he[re]=function(){};return he[re]},Zt.inspect=Ct,Ct.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Ct.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Zt.isArray=lt,Zt.isBoolean=ot,Zt.isNull=ut,Zt.isNullOrUndefined=ct,Zt.isNumber=ft,Zt.isString=gt,Zt.isSymbol=Lt,Zt.isUndefined=Rt,Zt.isRegExp=Ut,Zt.isObject=Nt,Zt.isDate=qt,Zt.isError=te,Zt.isFunction=Vt,Zt.isPrimitive=de,Zt.isBuffer=wt("./support/isBuffer");var Jt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Zt.log=function(){console.log("%s - %s",Ne(),Zt.format.apply(Zt,arguments))},Zt.inherits=wt("inherits"),Zt._extend=function(re,se){if(!se||!Nt(se))return re;for(var pe=Object.keys(se),ue=pe.length;ue--;)re[pe[ue]]=se[pe[ue]];return re}}).call(this,wt("_process"),typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(wt,Qt,Zt){"use strict";(function(){Zt.stripBOM=function(Ot){return Ot[0]==="\uFEFF"?Ot.substring(1):Ot}}).call(void 0)},{}],209:[function(wt,Qt,Zt){"use strict";function Ot(St){return St&&St.__esModule?St:{default:St}}var jt=wt("babel-runtime/helpers/typeof"),Ct=Ot(jt),Mt=wt("babel-runtime/core-js/object/keys"),Bt=Ot(Mt);(function(){var St,kt,xt,Dt,yt,et={}.hasOwnProperty;St=wt("xmlbuilder"),kt=wt("./defaults").defaults,Dt=function(tt){return typeof tt=="string"&&(tt.indexOf("&")>=0||tt.indexOf(">")>=0||tt.indexOf("<")>=0)},yt=function(tt){return"<![CDATA["+xt(tt)+"]]>"},xt=function(tt){return tt.replace("]]>","]]]]><![CDATA[>")},Zt.Builder=function(){function tt(lt){var ot,ut,ct;this.options={},ut=kt[.2];for(ot in ut)et.call(ut,ot)&&(ct=ut[ot],this.options[ot]=ct);for(ot in lt)et.call(lt,ot)&&(ct=lt[ot],this.options[ot]=ct)}return tt.prototype.buildObject=function(lt){var ot,ut,ct,ft,gt;return ot=this.options.attrkey,ut=this.options.charkey,(0,Bt.default)(lt).length===1&&this.options.rootName===kt[.2].rootName?(gt=(0,Bt.default)(lt)[0],lt=lt[gt]):gt=this.options.rootName,ct=function(Lt){return function(Rt,Ut){var Nt,qt,te,Vt,de,ge;if((Ut===void 0?"undefined":(0,Ct.default)(Ut))!=="object")Lt.options.cdata&&Dt(Ut)?Rt.raw(yt(Ut)):Rt.txt(Ut);else if(Array.isArray(Ut)){for(Vt in Ut)if(et.call(Ut,Vt)){qt=Ut[Vt];for(de in qt)te=qt[de],Rt=ct(Rt.ele(de),te).up()}}else for(de in Ut)if(et.call(Ut,de))if(qt=Ut[de],de===ot){if((qt===void 0?"undefined":(0,Ct.default)(qt))==="object")for(Nt in qt)ge=qt[Nt],Rt=Rt.att(Nt,ge)}else if(de===ut)Rt=Lt.options.cdata&&Dt(qt)?Rt.raw(yt(qt)):Rt.txt(qt);else if(Array.isArray(qt))for(Vt in qt)et.call(qt,Vt)&&(te=qt[Vt],Rt=typeof te=="string"?Lt.options.cdata&&Dt(te)?Rt.ele(de).raw(yt(te)).up():Rt.ele(de,te).up():ct(Rt.ele(de),te).up());else(qt===void 0?"undefined":(0,Ct.default)(qt))==="object"?Rt=ct(Rt.ele(de),qt).up():typeof qt=="string"&&Lt.options.cdata&&Dt(qt)?Rt=Rt.ele(de).raw(yt(qt)).up():(qt==null&&(qt=""),Rt=Rt.ele(de,qt.toString()).up());return Rt}}(this),ft=St.create(gt,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ct(ft,lt).end(this.options.renderOpts)},tt}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(wt,Qt,Zt){"use strict";(function(){Zt.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(wt,Qt,Zt){"use strict";function Ot(xt){return xt&&xt.__esModule?xt:{default:xt}}var jt=wt("babel-runtime/core-js/object/get-own-property-names"),Ct=Ot(jt),Mt=wt("babel-runtime/core-js/object/keys"),Bt=Ot(Mt),St=wt("babel-runtime/helpers/typeof"),kt=Ot(St);(function(){var xt,Dt,yt,et,tt,lt,ot,ut,ct=function(Lt,Rt){return function(){return Lt.apply(Rt,arguments)}},ft=function(Lt,Rt){function Ut(){this.constructor=Lt}for(var Nt in Rt)gt.call(Rt,Nt)&&(Lt[Nt]=Rt[Nt]);return Ut.prototype=Rt.prototype,Lt.prototype=new Ut,Lt.__super__=Rt.prototype,Lt},gt={}.hasOwnProperty;ot=wt("sax"),yt=wt("events"),xt=wt("./bom"),lt=wt("./processors"),ut=wt("timers").setImmediate,Dt=wt("./defaults").defaults,et=function(Lt){return(Lt===void 0?"undefined":(0,kt.default)(Lt))==="object"&&Lt!=null&&(0,Bt.default)(Lt).length===0},tt=function(Lt,Rt,Ut){var Nt,qt,te;for(Nt=0,qt=Lt.length;Nt<qt;Nt++)te=Lt[Nt],Rt=te(Rt,Ut);return Rt},Zt.Parser=function(Lt){function Rt(Ut){this.parseString=ct(this.parseString,this),this.reset=ct(this.reset,this),this.assignOrPush=ct(this.assignOrPush,this),this.processAsync=ct(this.processAsync,this);var Nt,qt,te;if(!(this instanceof Zt.Parser))return new Zt.Parser(Ut);this.options={},qt=Dt[.2];for(Nt in qt)gt.call(qt,Nt)&&(te=qt[Nt],this.options[Nt]=te);for(Nt in Ut)gt.call(Ut,Nt)&&(te=Ut[Nt],this.options[Nt]=te);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(lt.normalize)),this.reset()}return ft(Rt,Lt),Rt.prototype.processAsync=function(){var Ut,Nt;try{return this.remaining.length<=this.options.chunkSize?(Ut=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Ut),this.saxParser.close()):(Ut=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Ut),ut(this.processAsync))}catch(qt){if(Nt=qt,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Nt)}},Rt.prototype.assignOrPush=function(Ut,Nt,qt){return Nt in Ut?(Ut[Nt]instanceof Array||(Ut[Nt]=[Ut[Nt]]),Ut[Nt].push(qt)):this.options.explicitArray?Ut[Nt]=[qt]:Ut[Nt]=qt},Rt.prototype.reset=function(){var Ut,Nt,qt,te;return this.removeAllListeners(),this.saxParser=ot.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Vt){return function(de){if(Vt.saxParser.resume(),!Vt.saxParser.errThrown)return Vt.saxParser.errThrown=!0,Vt.emit("error",de)}}(this),this.saxParser.onend=function(Vt){return function(){if(!Vt.saxParser.ended)return Vt.saxParser.ended=!0,Vt.emit("end",Vt.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,te=[],Ut=this.options.attrkey,Nt=this.options.charkey,this.saxParser.onopentag=function(Vt){return function(de){var ge,be,Ne,Ge,Pe;if(Ne={},Ne[Nt]="",!Vt.options.ignoreAttrs){Pe=de.attributes;for(ge in Pe)gt.call(Pe,ge)&&(Ut in Ne||Vt.options.mergeAttrs||(Ne[Ut]={}),be=Vt.options.attrValueProcessors?tt(Vt.options.attrValueProcessors,de.attributes[ge],ge):de.attributes[ge],Ge=Vt.options.attrNameProcessors?tt(Vt.options.attrNameProcessors,ge):ge,Vt.options.mergeAttrs?Vt.assignOrPush(Ne,Ge,be):Ne[Ut][Ge]=be)}return Ne["#name"]=Vt.options.tagNameProcessors?tt(Vt.options.tagNameProcessors,de.name):de.name,Vt.options.xmlns&&(Ne[Vt.options.xmlnskey]={uri:de.uri,local:de.local}),te.push(Ne)}}(this),this.saxParser.onclosetag=function(Vt){return function(){var de,ge,be,Ne,Ge,Pe,ze,he,Jt,re;if(Pe=te.pop(),Ge=Pe["#name"],Vt.options.explicitChildren&&Vt.options.preserveChildrenOrder||delete Pe["#name"],Pe.cdata===!0&&(de=Pe.cdata,delete Pe.cdata),Jt=te[te.length-1],Pe[Nt].match(/^\s*$/)&&!de?(ge=Pe[Nt],delete Pe[Nt]):(Vt.options.trim&&(Pe[Nt]=Pe[Nt].trim()),Vt.options.normalize&&(Pe[Nt]=Pe[Nt].replace(/\s{2,}/g," ").trim()),Pe[Nt]=Vt.options.valueProcessors?tt(Vt.options.valueProcessors,Pe[Nt],Ge):Pe[Nt],(0,Bt.default)(Pe).length===1&&Nt in Pe&&!Vt.EXPLICIT_CHARKEY&&(Pe=Pe[Nt])),et(Pe)&&(Pe=Vt.options.emptyTag!==""?Vt.options.emptyTag:ge),Vt.options.validator!=null&&(re="/"+function(){var se,pe,ue;for(ue=[],se=0,pe=te.length;se<pe;se++)Ne=te[se],ue.push(Ne["#name"]);return ue}().concat(Ge).join("/"),function(){var se;try{Pe=Vt.options.validator(re,Jt&&Jt[Ge],Pe)}catch(pe){return se=pe,Vt.emit("error",se)}}()),Vt.options.explicitChildren&&!Vt.options.mergeAttrs&&(Pe===void 0?"undefined":(0,kt.default)(Pe))==="object")if(Vt.options.preserveChildrenOrder){if(Jt){Jt[Vt.options.childkey]=Jt[Vt.options.childkey]||[],ze={};for(be in Pe)gt.call(Pe,be)&&(ze[be]=Pe[be]);Jt[Vt.options.childkey].push(ze),delete Pe["#name"],(0,Bt.default)(Pe).length===1&&Nt in Pe&&!Vt.EXPLICIT_CHARKEY&&(Pe=Pe[Nt])}}else Ne={},Vt.options.attrkey in Pe&&(Ne[Vt.options.attrkey]=Pe[Vt.options.attrkey],delete Pe[Vt.options.attrkey]),!Vt.options.charsAsChildren&&Vt.options.charkey in Pe&&(Ne[Vt.options.charkey]=Pe[Vt.options.charkey],delete Pe[Vt.options.charkey]),(0,Ct.default)(Pe).length>0&&(Ne[Vt.options.childkey]=Pe),Pe=Ne;return te.length>0?Vt.assignOrPush(Jt,Ge,Pe):(Vt.options.explicitRoot&&(he=Pe,Pe={},Pe[Ge]=he),Vt.resultObject=Pe,Vt.saxParser.ended=!0,Vt.emit("end",Vt.resultObject))}}(this),qt=function(Vt){return function(de){var ge,be;if(be=te[te.length-1])return be[Nt]+=de,Vt.options.explicitChildren&&Vt.options.preserveChildrenOrder&&Vt.options.charsAsChildren&&(Vt.options.includeWhiteChars||de.replace(/\\n/g,"").trim()!=="")&&(be[Vt.options.childkey]=be[Vt.options.childkey]||[],ge={"#name":"__text__"},ge[Nt]=de,Vt.options.normalize&&(ge[Nt]=ge[Nt].replace(/\s{2,}/g," ").trim()),be[Vt.options.childkey].push(ge)),be}}(this),this.saxParser.ontext=qt,this.saxParser.oncdata=function(Vt){return function(de){var ge;if(ge=qt(de))return ge.cdata=!0}}()},Rt.prototype.parseString=function(Ut,Nt){var qt;Nt!=null&&typeof Nt=="function"&&(this.on("end",function(te){return this.reset(),Nt(null,te)}),this.on("error",function(te){return this.reset(),Nt(te)}));try{return Ut=Ut.toString(),Ut.trim()===""?(this.emit("end",null),!0):(Ut=xt.stripBOM(Ut),this.options.async?(this.remaining=Ut,ut(this.processAsync),this.saxParser):this.saxParser.write(Ut).close())}catch(te){if(qt=te,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",qt),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw qt}},Rt}(yt.EventEmitter),Zt.parseString=function(Lt,Rt,Ut){var Nt,qt,te;return Ut!=null?(typeof Ut=="function"&&(Nt=Ut),(Rt===void 0?"undefined":(0,kt.default)(Rt))==="object"&&(qt=Rt)):(typeof Rt=="function"&&(Nt=Rt),qt={}),te=new Zt.Parser(qt),te.parseString(Lt,Nt)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(wt,Qt,Zt){"use strict";(function(){var Ot;Ot=new RegExp(/(?!xmlns)^.*:/),Zt.normalize=function(jt){return jt.toLowerCase()},Zt.firstCharLowerCase=function(jt){return jt.charAt(0).toLowerCase()+jt.slice(1)},Zt.stripPrefix=function(jt){return jt.replace(Ot,"")},Zt.parseNumbers=function(jt){return isNaN(jt)||(jt=jt%1==0?parseInt(jt,10):parseFloat(jt)),jt},Zt.parseBooleans=function(jt){return/^(?:true|false)$/i.test(jt)&&(jt=jt.toLowerCase()==="true"),jt}}).call(void 0)},{}],213:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt=function(kt,xt){function Dt(){this.constructor=kt}for(var yt in xt)St.call(xt,yt)&&(kt[yt]=xt[yt]);return Dt.prototype=xt.prototype,kt.prototype=new Dt,kt.__super__=xt.prototype,kt},St={}.hasOwnProperty;jt=wt("./defaults"),Ot=wt("./builder"),Ct=wt("./parser"),Mt=wt("./processors"),Zt.defaults=jt.defaults,Zt.processors=Mt,Zt.ValidationError=function(kt){function xt(Dt){this.message=Dt}return Bt(xt,kt),xt}(Error),Zt.Builder=Ot.Builder,Zt.Parser=Ct.Parser,Zt.parseString=Ct.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(wt,Qt,Zt){"use strict";function Ot(xt){return xt&&xt.__esModule?xt:{default:xt}}var jt=wt("babel-runtime/core-js/object/get-prototype-of"),Ct=Ot(jt),Mt=wt("babel-runtime/helpers/typeof"),Bt=Ot(Mt),St=wt("babel-runtime/core-js/object/assign"),kt=Ot(St);(function(){var xt,Dt,yt,et,tt,lt,ot=[].slice,ut={}.hasOwnProperty;xt=function(){var ct,ft,gt,Lt,Rt,Ut;if(Ut=arguments[0],Rt=2<=arguments.length?ot.call(arguments,1):[],et(kt.default))kt.default.apply(null,arguments);else for(ct=0,gt=Rt.length;ct<gt;ct++)if((Lt=Rt[ct])!=null)for(ft in Lt)ut.call(Lt,ft)&&(Ut[ft]=Lt[ft]);return Ut},et=function(ct){return!!ct&&Object.prototype.toString.call(ct)==="[object Function]"},tt=function(ct){var ft;return!!ct&&((ft=ct===void 0?"undefined":(0,Bt.default)(ct))==="function"||ft==="object")},Dt=function(ct){return et(Array.isArray)?Array.isArray(ct):Object.prototype.toString.call(ct)==="[object Array]"},yt=function(ct){var ft;if(Dt(ct))return!ct.length;for(ft in ct)if(ut.call(ct,ft))return!1;return!0},lt=function(ct){var ft,gt;return tt(ct)&&(gt=(0,Ct.default)(ct))&&(ft=gt.constructor)&&typeof ft=="function"&&ft instanceof ft&&Function.prototype.toString.call(ft)===Function.prototype.toString.call(Object)},Qt.exports.assign=xt,Qt.exports.isFunction=et,Qt.exports.isObject=tt,Qt.exports.isArray=Dt,Qt.exports.isEmpty=yt,Qt.exports.isPlainObject=lt}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/core-js/object/create"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(){Qt.exports=function(){function Ct(Mt,Bt,St){if(this.options=Mt.options,this.stringify=Mt.stringify,Bt==null)throw new Error("Missing attribute name of element "+Mt.name);if(St==null)throw new Error("Missing attribute value for attribute "+Bt+" of element "+Mt.name);this.name=this.stringify.attName(Bt),this.value=this.stringify.attValue(St)}return Ct.prototype.clone=function(){return(0,jt.default)(this)},Ct.prototype.toString=function(Mt){return this.options.writer.set(Mt).attribute(this)},Ct}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/core-js/object/create"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(){var Ct,Mt=function(St,kt){function xt(){this.constructor=St}for(var Dt in kt)Bt.call(kt,Dt)&&(St[Dt]=kt[Dt]);return xt.prototype=kt.prototype,St.prototype=new xt,St.__super__=kt.prototype,St},Bt={}.hasOwnProperty;Ct=wt("./XMLNode"),Qt.exports=function(St){function kt(xt,Dt){if(kt.__super__.constructor.call(this,xt),Dt==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(Dt)}return Mt(kt,St),kt.prototype.clone=function(){return(0,jt.default)(this)},kt.prototype.toString=function(xt){return this.options.writer.set(xt).cdata(this)},kt}(Ct)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/core-js/object/create"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(){var Ct,Mt=function(St,kt){function xt(){this.constructor=St}for(var Dt in kt)Bt.call(kt,Dt)&&(St[Dt]=kt[Dt]);return xt.prototype=kt.prototype,St.prototype=new xt,St.__super__=kt.prototype,St},Bt={}.hasOwnProperty;Ct=wt("./XMLNode"),Qt.exports=function(St){function kt(xt,Dt){if(kt.__super__.constructor.call(this,xt),Dt==null)throw new Error("Missing comment text");this.text=this.stringify.comment(Dt)}return Mt(kt,St),kt.prototype.clone=function(){return(0,jt.default)(this)},kt.prototype.toString=function(xt){return this.options.writer.set(xt).comment(this)},kt}(Ct)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt=function(Mt,Bt){function St(){this.constructor=Mt}for(var kt in Bt)Ct.call(Bt,kt)&&(Mt[kt]=Bt[kt]);return St.prototype=Bt.prototype,Mt.prototype=new St,Mt.__super__=Bt.prototype,Mt},Ct={}.hasOwnProperty;Ot=wt("./XMLNode"),Qt.exports=function(Mt){function Bt(St,kt,xt,Dt,yt,et){if(Bt.__super__.constructor.call(this,St),kt==null)throw new Error("Missing DTD element name");if(xt==null)throw new Error("Missing DTD attribute name");if(!Dt)throw new Error("Missing DTD attribute type");if(!yt)throw new Error("Missing DTD attribute default");if(yt.indexOf("#")!==0&&(yt="#"+yt),!yt.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(et&&!yt.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(kt),this.attributeName=this.stringify.attName(xt),this.attributeType=this.stringify.dtdAttType(Dt),this.defaultValue=this.stringify.dtdAttDefault(et),this.defaultValueType=yt}return jt(Bt,Mt),Bt.prototype.toString=function(St){return this.options.writer.set(St).dtdAttList(this)},Bt}(Ot)}).call(void 0)},{"./XMLNode":227}],219:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt=function(Mt,Bt){function St(){this.constructor=Mt}for(var kt in Bt)Ct.call(Bt,kt)&&(Mt[kt]=Bt[kt]);return St.prototype=Bt.prototype,Mt.prototype=new St,Mt.__super__=Bt.prototype,Mt},Ct={}.hasOwnProperty;Ot=wt("./XMLNode"),Qt.exports=function(Mt){function Bt(St,kt,xt){if(Bt.__super__.constructor.call(this,St),kt==null)throw new Error("Missing DTD element name");xt||(xt="(#PCDATA)"),Array.isArray(xt)&&(xt="("+xt.join(",")+")"),this.name=this.stringify.eleName(kt),this.value=this.stringify.dtdElementValue(xt)}return jt(Bt,Mt),Bt.prototype.toString=function(St){return this.options.writer.set(St).dtdElement(this)},Bt}(Ot)}).call(void 0)},{"./XMLNode":227}],220:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct=function(Bt,St){function kt(){this.constructor=Bt}for(var xt in St)Mt.call(St,xt)&&(Bt[xt]=St[xt]);return kt.prototype=St.prototype,Bt.prototype=new kt,Bt.__super__=St.prototype,Bt},Mt={}.hasOwnProperty;jt=wt("./Utility").isObject,Ot=wt("./XMLNode"),Qt.exports=function(Bt){function St(kt,xt,Dt,yt){if(St.__super__.constructor.call(this,kt),Dt==null)throw new Error("Missing entity name");if(yt==null)throw new Error("Missing entity value");if(this.pe=!!xt,this.name=this.stringify.eleName(Dt),jt(yt)){if(!yt.pubID&&!yt.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(yt.pubID&&!yt.sysID)throw new Error("System identifier is required for a public external entity");if(yt.pubID!=null&&(this.pubID=this.stringify.dtdPubID(yt.pubID)),yt.sysID!=null&&(this.sysID=this.stringify.dtdSysID(yt.sysID)),yt.nData!=null&&(this.nData=this.stringify.dtdNData(yt.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(yt)}return Ct(St,Bt),St.prototype.toString=function(kt){return this.options.writer.set(kt).dtdEntity(this)},St}(Ot)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt=function(Mt,Bt){function St(){this.constructor=Mt}for(var kt in Bt)Ct.call(Bt,kt)&&(Mt[kt]=Bt[kt]);return St.prototype=Bt.prototype,Mt.prototype=new St,Mt.__super__=Bt.prototype,Mt},Ct={}.hasOwnProperty;Ot=wt("./XMLNode"),Qt.exports=function(Mt){function Bt(St,kt,xt){if(Bt.__super__.constructor.call(this,St),kt==null)throw new Error("Missing notation name");if(!xt.pubID&&!xt.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(kt),xt.pubID!=null&&(this.pubID=this.stringify.dtdPubID(xt.pubID)),xt.sysID!=null&&(this.sysID=this.stringify.dtdSysID(xt.sysID))}return jt(Bt,Mt),Bt.prototype.toString=function(St){return this.options.writer.set(St).dtdNotation(this)},Bt}(Ot)}).call(void 0)},{"./XMLNode":227}],222:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct=function(Bt,St){function kt(){this.constructor=Bt}for(var xt in St)Mt.call(St,xt)&&(Bt[xt]=St[xt]);return kt.prototype=St.prototype,Bt.prototype=new kt,Bt.__super__=St.prototype,Bt},Mt={}.hasOwnProperty;jt=wt("./Utility").isObject,Ot=wt("./XMLNode"),Qt.exports=function(Bt){function St(kt,xt,Dt,yt){var et;St.__super__.constructor.call(this,kt),jt(xt)&&(et=xt,xt=et.version,Dt=et.encoding,yt=et.standalone),xt||(xt="1.0"),this.version=this.stringify.xmlVersion(xt),Dt!=null&&(this.encoding=this.stringify.xmlEncoding(Dt)),yt!=null&&(this.standalone=this.stringify.xmlStandalone(yt))}return Ct(St,Bt),St.prototype.toString=function(kt){return this.options.writer.set(kt).declaration(this)},St}(Ot)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt,St,kt=function(Dt,yt){function et(){this.constructor=Dt}for(var tt in yt)xt.call(yt,tt)&&(Dt[tt]=yt[tt]);return et.prototype=yt.prototype,Dt.prototype=new et,Dt.__super__=yt.prototype,Dt},xt={}.hasOwnProperty;St=wt("./Utility").isObject,Bt=wt("./XMLNode"),Ot=wt("./XMLDTDAttList"),Ct=wt("./XMLDTDEntity"),jt=wt("./XMLDTDElement"),Mt=wt("./XMLDTDNotation"),Qt.exports=function(Dt){function yt(et,tt,lt){var ot,ut;yt.__super__.constructor.call(this,et),this.documentObject=et,St(tt)&&(ot=tt,tt=ot.pubID,lt=ot.sysID),lt==null&&(ut=[tt,lt],lt=ut[0],tt=ut[1]),tt!=null&&(this.pubID=this.stringify.dtdPubID(tt)),lt!=null&&(this.sysID=this.stringify.dtdSysID(lt))}return kt(yt,Dt),yt.prototype.element=function(et,tt){var lt;return lt=new jt(this,et,tt),this.children.push(lt),this},yt.prototype.attList=function(et,tt,lt,ot,ut){var ct;return ct=new Ot(this,et,tt,lt,ot,ut),this.children.push(ct),this},yt.prototype.entity=function(et,tt){var lt;return lt=new Ct(this,!1,et,tt),this.children.push(lt),this},yt.prototype.pEntity=function(et,tt){var lt;return lt=new Ct(this,!0,et,tt),this.children.push(lt),this},yt.prototype.notation=function(et,tt){var lt;return lt=new Mt(this,et,tt),this.children.push(lt),this},yt.prototype.toString=function(et){return this.options.writer.set(et).docType(this)},yt.prototype.ele=function(et,tt){return this.element(et,tt)},yt.prototype.att=function(et,tt,lt,ot,ut){return this.attList(et,tt,lt,ot,ut)},yt.prototype.ent=function(et,tt){return this.entity(et,tt)},yt.prototype.pent=function(et,tt){return this.pEntity(et,tt)},yt.prototype.not=function(et,tt){return this.notation(et,tt)},yt.prototype.up=function(){return this.root()||this.documentObject},yt}(Bt)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt=function(kt,xt){function Dt(){this.constructor=kt}for(var yt in xt)St.call(xt,yt)&&(kt[yt]=xt[yt]);return Dt.prototype=xt.prototype,kt.prototype=new Dt,kt.__super__=xt.prototype,kt},St={}.hasOwnProperty;Mt=wt("./Utility").isPlainObject,Ot=wt("./XMLNode"),Ct=wt("./XMLStringifier"),jt=wt("./XMLStringWriter"),Qt.exports=function(kt){function xt(Dt){xt.__super__.constructor.call(this,null),Dt||(Dt={}),Dt.writer||(Dt.writer=new jt),this.options=Dt,this.stringify=new Ct(Dt),this.isDocument=!0}return Bt(xt,kt),xt.prototype.end=function(Dt){var yt;return Dt?Mt(Dt)&&(yt=Dt,Dt=this.options.writer.set(yt)):Dt=this.options.writer,Dt.document(this)},xt.prototype.toString=function(Dt){return this.options.writer.set(Dt).document(this)},xt}(Ot)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt,St,kt,xt,Dt,yt,et,tt,lt,ot,ut,ct,ft,gt,Lt,Rt={}.hasOwnProperty;Lt=wt("./Utility"),ft=Lt.isObject,ct=Lt.isFunction,gt=Lt.isPlainObject,yt=wt("./XMLElement"),jt=wt("./XMLCData"),Ct=wt("./XMLComment"),tt=wt("./XMLRaw"),ut=wt("./XMLText"),et=wt("./XMLProcessingInstruction"),xt=wt("./XMLDeclaration"),Dt=wt("./XMLDocType"),Mt=wt("./XMLDTDAttList"),St=wt("./XMLDTDEntity"),Bt=wt("./XMLDTDElement"),kt=wt("./XMLDTDNotation"),Ot=wt("./XMLAttribute"),ot=wt("./XMLStringifier"),lt=wt("./XMLStringWriter"),Qt.exports=function(){function Ut(Nt,qt,te){var Vt;Nt||(Nt={}),Nt.writer?gt(Nt.writer)&&(Vt=Nt.writer,Nt.writer=new lt(Vt)):Nt.writer=new lt(Nt),this.options=Nt,this.writer=Nt.writer,this.stringify=new ot(Nt),this.onDataCallback=qt||function(){},this.onEndCallback=te||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ut.prototype.node=function(Nt,qt,te){var Vt;if(Nt==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),Nt=Nt.valueOf(),qt==null&&(qt={}),qt=qt.valueOf(),ft(qt)||(Vt=[qt,te],te=Vt[0],qt=Vt[1]),this.currentNode=new yt(this,Nt,qt),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,te!=null&&this.text(te),this},Ut.prototype.element=function(Nt,qt,te){return this.currentNode&&this.currentNode instanceof Dt?this.dtdElement.apply(this,arguments):this.node(Nt,qt,te)},Ut.prototype.attribute=function(Nt,qt){var te,Vt;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(Nt!=null&&(Nt=Nt.valueOf()),ft(Nt))for(te in Nt)Rt.call(Nt,te)&&(Vt=Nt[te],this.attribute(te,Vt));else ct(qt)&&(qt=qt.apply()),this.options.skipNullAttributes&&qt==null||(this.currentNode.attributes[Nt]=new Ot(this,Nt,qt));return this},Ut.prototype.text=function(Nt){var qt;return this.openCurrent(),qt=new ut(this,Nt),this.onData(this.writer.text(qt,this.currentLevel+1)),this},Ut.prototype.cdata=function(Nt){var qt;return this.openCurrent(),qt=new jt(this,Nt),this.onData(this.writer.cdata(qt,this.currentLevel+1)),this},Ut.prototype.comment=function(Nt){var qt;return this.openCurrent(),qt=new Ct(this,Nt),this.onData(this.writer.comment(qt,this.currentLevel+1)),this},Ut.prototype.raw=function(Nt){var qt;return this.openCurrent(),qt=new tt(this,Nt),this.onData(this.writer.raw(qt,this.currentLevel+1)),this},Ut.prototype.instruction=function(Nt,qt){var te,Vt,de,ge,be;if(this.openCurrent(),Nt!=null&&(Nt=Nt.valueOf()),qt!=null&&(qt=qt.valueOf()),Array.isArray(Nt))for(te=0,ge=Nt.length;te<ge;te++)Vt=Nt[te],this.instruction(Vt);else if(ft(Nt))for(Vt in Nt)Rt.call(Nt,Vt)&&(de=Nt[Vt],this.instruction(Vt,de));else ct(qt)&&(qt=qt.apply()),be=new et(this,Nt,qt),this.onData(this.writer.processingInstruction(be,this.currentLevel+1));return this},Ut.prototype.declaration=function(Nt,qt,te){var Vt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return Vt=new xt(this,Nt,qt,te),this.onData(this.writer.declaration(Vt,this.currentLevel+1)),this},Ut.prototype.doctype=function(Nt,qt,te){if(this.openCurrent(),Nt==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new Dt(this,qt,te),this.currentNode.rootNodeName=Nt,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ut.prototype.dtdElement=function(Nt,qt){var te;return this.openCurrent(),te=new Bt(this,Nt,qt),this.onData(this.writer.dtdElement(te,this.currentLevel+1)),this},Ut.prototype.attList=function(Nt,qt,te,Vt,de){var ge;return this.openCurrent(),ge=new Mt(this,Nt,qt,te,Vt,de),this.onData(this.writer.dtdAttList(ge,this.currentLevel+1)),this},Ut.prototype.entity=function(Nt,qt){var te;return this.openCurrent(),te=new St(this,!1,Nt,qt),this.onData(this.writer.dtdEntity(te,this.currentLevel+1)),this},Ut.prototype.pEntity=function(Nt,qt){var te;return this.openCurrent(),te=new St(this,!0,Nt,qt),this.onData(this.writer.dtdEntity(te,this.currentLevel+1)),this},Ut.prototype.notation=function(Nt,qt){var te;return this.openCurrent(),te=new kt(this,Nt,qt),this.onData(this.writer.dtdNotation(te,this.currentLevel+1)),this},Ut.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ut.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ut.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ut.prototype.openNode=function(Nt){if(!Nt.isOpen)return!this.root&&this.currentLevel===0&&Nt instanceof yt&&(this.root=Nt),this.onData(this.writer.openNode(Nt,this.currentLevel)),Nt.isOpen=!0},Ut.prototype.closeNode=function(Nt){if(!Nt.isClosed)return this.onData(this.writer.closeNode(Nt,this.currentLevel)),Nt.isClosed=!0},Ut.prototype.onData=function(Nt){return this.documentStarted=!0,this.onDataCallback(Nt)},Ut.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ut.prototype.ele=function(){return this.element.apply(this,arguments)},Ut.prototype.nod=function(Nt,qt,te){return this.node(Nt,qt,te)},Ut.prototype.txt=function(Nt){return this.text(Nt)},Ut.prototype.dat=function(Nt){return this.cdata(Nt)},Ut.prototype.com=function(Nt){return this.comment(Nt)},Ut.prototype.ins=function(Nt,qt){return this.instruction(Nt,qt)},Ut.prototype.dec=function(Nt,qt,te){return this.declaration(Nt,qt,te)},Ut.prototype.dtd=function(Nt,qt,te){return this.doctype(Nt,qt,te)},Ut.prototype.e=function(Nt,qt,te){return this.element(Nt,qt,te)},Ut.prototype.n=function(Nt,qt,te){return this.node(Nt,qt,te)},Ut.prototype.t=function(Nt){return this.text(Nt)},Ut.prototype.d=function(Nt){return this.cdata(Nt)},Ut.prototype.c=function(Nt){return this.comment(Nt)},Ut.prototype.r=function(Nt){return this.raw(Nt)},Ut.prototype.i=function(Nt,qt){return this.instruction(Nt,qt)},Ut.prototype.att=function(){return this.currentNode&&this.currentNode instanceof Dt?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ut.prototype.a=function(){return this.currentNode&&this.currentNode instanceof Dt?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ut.prototype.ent=function(Nt,qt){return this.entity(Nt,qt)},Ut.prototype.pent=function(Nt,qt){return this.pEntity(Nt,qt)},Ut.prototype.not=function(Nt,qt){return this.notation(Nt,qt)},Ut}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/core-js/object/create"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(){var Ct,Mt,Bt,St,kt,xt=function(yt,et){function tt(){this.constructor=yt}for(var lt in et)Dt.call(et,lt)&&(yt[lt]=et[lt]);return tt.prototype=et.prototype,yt.prototype=new tt,yt.__super__=et.prototype,yt},Dt={}.hasOwnProperty;kt=wt("./Utility"),St=kt.isObject,Bt=kt.isFunction,Mt=wt("./XMLNode"),Ct=wt("./XMLAttribute"),Qt.exports=function(yt){function et(tt,lt,ot){if(et.__super__.constructor.call(this,tt),lt==null)throw new Error("Missing element name");this.name=this.stringify.eleName(lt),this.attributes={},ot!=null&&this.attribute(ot),tt.isDocument&&(this.isRoot=!0,this.documentObject=tt,tt.rootObject=this)}return xt(et,yt),et.prototype.clone=function(){var tt,lt,ot,ut;ot=(0,jt.default)(this),ot.isRoot&&(ot.documentObject=null),ot.attributes={},ut=this.attributes;for(lt in ut)Dt.call(ut,lt)&&(tt=ut[lt],ot.attributes[lt]=tt.clone());return ot.children=[],this.children.forEach(function(ct){var ft;return ft=ct.clone(),ft.parent=ot,ot.children.push(ft)}),ot},et.prototype.attribute=function(tt,lt){var ot,ut;if(tt!=null&&(tt=tt.valueOf()),St(tt))for(ot in tt)Dt.call(tt,ot)&&(ut=tt[ot],this.attribute(ot,ut));else Bt(lt)&&(lt=lt.apply()),this.options.skipNullAttributes&<==null||(this.attributes[tt]=new Ct(this,tt,lt));return this},et.prototype.removeAttribute=function(tt){var lt,ot,ut;if(tt==null)throw new Error("Missing attribute name");if(tt=tt.valueOf(),Array.isArray(tt))for(ot=0,ut=tt.length;ot<ut;ot++)lt=tt[ot],delete this.attributes[lt];else delete this.attributes[tt];return this},et.prototype.toString=function(tt){return this.options.writer.set(tt).element(this)},et.prototype.att=function(tt,lt){return this.attribute(tt,lt)},et.prototype.a=function(tt,lt){return this.attribute(tt,lt)},et}(Mt)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt,St,kt,xt,Dt,yt,et,tt,lt={}.hasOwnProperty;tt=wt("./Utility"),et=tt.isObject,yt=tt.isFunction,Dt=tt.isEmpty,Bt=null,Ot=null,jt=null,Ct=null,Mt=null,kt=null,xt=null,St=null,Qt.exports=function(){function ot(ut){this.parent=ut,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],Bt||(Bt=wt("./XMLElement"),Ot=wt("./XMLCData"),jt=wt("./XMLComment"),Ct=wt("./XMLDeclaration"),Mt=wt("./XMLDocType"),kt=wt("./XMLRaw"),xt=wt("./XMLText"),St=wt("./XMLProcessingInstruction"))}return ot.prototype.element=function(ut,ct,ft){var gt,Lt,Rt,Ut,Nt,qt,te,Vt,de,ge;if(qt=null,ct==null&&(ct={}),ct=ct.valueOf(),et(ct)||(de=[ct,ft],ft=de[0],ct=de[1]),ut!=null&&(ut=ut.valueOf()),Array.isArray(ut))for(Rt=0,te=ut.length;Rt<te;Rt++)Lt=ut[Rt],qt=this.element(Lt);else if(yt(ut))qt=this.element(ut.apply());else if(et(ut)){for(Nt in ut)if(lt.call(ut,Nt))if(ge=ut[Nt],yt(ge)&&(ge=ge.apply()),et(ge)&&Dt(ge)&&(ge=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Nt.indexOf(this.stringify.convertAttKey)===0)qt=this.attribute(Nt.substr(this.stringify.convertAttKey.length),ge);else if(!this.options.separateArrayItems&&Array.isArray(ge))for(Ut=0,Vt=ge.length;Ut<Vt;Ut++)Lt=ge[Ut],gt={},gt[Nt]=Lt,qt=this.element(gt);else et(ge)?(qt=this.element(Nt),qt.element(ge)):qt=this.element(Nt,ge)}else qt=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ut.indexOf(this.stringify.convertTextKey)===0?this.text(ft):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ut.indexOf(this.stringify.convertCDataKey)===0?this.cdata(ft):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ut.indexOf(this.stringify.convertCommentKey)===0?this.comment(ft):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ut.indexOf(this.stringify.convertRawKey)===0?this.raw(ft):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ut.indexOf(this.stringify.convertPIKey)===0?this.instruction(ut.substr(this.stringify.convertPIKey.length),ft):this.node(ut,ct,ft);if(qt==null)throw new Error("Could not create any elements with: "+ut);return qt},ot.prototype.insertBefore=function(ut,ct,ft){var gt,Lt,Rt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return Lt=this.parent.children.indexOf(this),Rt=this.parent.children.splice(Lt),gt=this.parent.element(ut,ct,ft),Array.prototype.push.apply(this.parent.children,Rt),gt},ot.prototype.insertAfter=function(ut,ct,ft){var gt,Lt,Rt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return Lt=this.parent.children.indexOf(this),Rt=this.parent.children.splice(Lt+1),gt=this.parent.element(ut,ct,ft),Array.prototype.push.apply(this.parent.children,Rt),gt},ot.prototype.remove=function(){var ut;if(this.isRoot)throw new Error("Cannot remove the root element");return ut=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ut,ut-ut+1].concat([])),this.parent},ot.prototype.node=function(ut,ct,ft){var gt,Lt;return ut!=null&&(ut=ut.valueOf()),ct||(ct={}),ct=ct.valueOf(),et(ct)||(Lt=[ct,ft],ft=Lt[0],ct=Lt[1]),gt=new Bt(this,ut,ct),ft!=null&>.text(ft),this.children.push(gt),gt},ot.prototype.text=function(ut){var ct;return ct=new xt(this,ut),this.children.push(ct),this},ot.prototype.cdata=function(ut){var ct;return ct=new Ot(this,ut),this.children.push(ct),this},ot.prototype.comment=function(ut){var ct;return ct=new jt(this,ut),this.children.push(ct),this},ot.prototype.commentBefore=function(ut){var ct,ft;return ct=this.parent.children.indexOf(this),ft=this.parent.children.splice(ct),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,ft),this},ot.prototype.commentAfter=function(ut){var ct,ft;return ct=this.parent.children.indexOf(this),ft=this.parent.children.splice(ct+1),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,ft),this},ot.prototype.raw=function(ut){var ct;return ct=new kt(this,ut),this.children.push(ct),this},ot.prototype.instruction=function(ut,ct){var ft,gt,Lt,Rt,Ut;if(ut!=null&&(ut=ut.valueOf()),ct!=null&&(ct=ct.valueOf()),Array.isArray(ut))for(Rt=0,Ut=ut.length;Rt<Ut;Rt++)ft=ut[Rt],this.instruction(ft);else if(et(ut))for(ft in ut)lt.call(ut,ft)&&(gt=ut[ft],this.instruction(ft,gt));else yt(ct)&&(ct=ct.apply()),Lt=new St(this,ut,ct),this.children.push(Lt);return this},ot.prototype.instructionBefore=function(ut,ct){var ft,gt;return ft=this.parent.children.indexOf(this),gt=this.parent.children.splice(ft),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,gt),this},ot.prototype.instructionAfter=function(ut,ct){var ft,gt;return ft=this.parent.children.indexOf(this),gt=this.parent.children.splice(ft+1),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,gt),this},ot.prototype.declaration=function(ut,ct,ft){var gt,Lt;return gt=this.document(),Lt=new Ct(gt,ut,ct,ft),gt.children[0]instanceof Ct?gt.children[0]=Lt:gt.children.unshift(Lt),gt.root()||gt},ot.prototype.doctype=function(ut,ct){var ft,gt,Lt,Rt,Ut,Nt,qt,te,Vt,de;for(gt=this.document(),Lt=new Mt(gt,ut,ct),Vt=gt.children,Rt=Ut=0,qt=Vt.length;Ut<qt;Rt=++Ut)if((ft=Vt[Rt])instanceof Mt)return gt.children[Rt]=Lt,Lt;for(de=gt.children,Rt=Nt=0,te=de.length;Nt<te;Rt=++Nt)if(ft=de[Rt],ft.isRoot)return gt.children.splice(Rt,0,Lt),Lt;return gt.children.push(Lt),Lt},ot.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},ot.prototype.root=function(){var ut;for(ut=this;ut;){if(ut.isDocument)return ut.rootObject;if(ut.isRoot)return ut;ut=ut.parent}},ot.prototype.document=function(){var ut;for(ut=this;ut;){if(ut.isDocument)return ut;ut=ut.parent}},ot.prototype.end=function(ut){return this.document().end(ut)},ot.prototype.prev=function(){var ut;if((ut=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[ut-1]},ot.prototype.next=function(){var ut;if((ut=this.parent.children.indexOf(this))===-1||ut===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[ut+1]},ot.prototype.importDocument=function(ut){var ct;return ct=ut.root().clone(),ct.parent=this,ct.isRoot=!1,this.children.push(ct),this},ot.prototype.ele=function(ut,ct,ft){return this.element(ut,ct,ft)},ot.prototype.nod=function(ut,ct,ft){return this.node(ut,ct,ft)},ot.prototype.txt=function(ut){return this.text(ut)},ot.prototype.dat=function(ut){return this.cdata(ut)},ot.prototype.com=function(ut){return this.comment(ut)},ot.prototype.ins=function(ut,ct){return this.instruction(ut,ct)},ot.prototype.doc=function(){return this.document()},ot.prototype.dec=function(ut,ct,ft){return this.declaration(ut,ct,ft)},ot.prototype.dtd=function(ut,ct){return this.doctype(ut,ct)},ot.prototype.e=function(ut,ct,ft){return this.element(ut,ct,ft)},ot.prototype.n=function(ut,ct,ft){return this.node(ut,ct,ft)},ot.prototype.t=function(ut){return this.text(ut)},ot.prototype.d=function(ut){return this.cdata(ut)},ot.prototype.c=function(ut){return this.comment(ut)},ot.prototype.r=function(ut){return this.raw(ut)},ot.prototype.i=function(ut,ct){return this.instruction(ut,ct)},ot.prototype.u=function(){return this.up()},ot.prototype.importXMLBuilder=function(ut){return this.importDocument(ut)},ot}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/core-js/object/create"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(){var Ct,Mt=function(St,kt){function xt(){this.constructor=St}for(var Dt in kt)Bt.call(kt,Dt)&&(St[Dt]=kt[Dt]);return xt.prototype=kt.prototype,St.prototype=new xt,St.__super__=kt.prototype,St},Bt={}.hasOwnProperty;Ct=wt("./XMLNode"),Qt.exports=function(St){function kt(xt,Dt,yt){if(kt.__super__.constructor.call(this,xt),Dt==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(Dt),yt&&(this.value=this.stringify.insValue(yt))}return Mt(kt,St),kt.prototype.clone=function(){return(0,jt.default)(this)},kt.prototype.toString=function(xt){return this.options.writer.set(xt).processingInstruction(this)},kt}(Ct)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/core-js/object/create"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(){var Ct,Mt=function(St,kt){function xt(){this.constructor=St}for(var Dt in kt)Bt.call(kt,Dt)&&(St[Dt]=kt[Dt]);return xt.prototype=kt.prototype,St.prototype=new xt,St.__super__=kt.prototype,St},Bt={}.hasOwnProperty;Ct=wt("./XMLNode"),Qt.exports=function(St){function kt(xt,Dt){if(kt.__super__.constructor.call(this,xt),Dt==null)throw new Error("Missing raw text");this.value=this.stringify.raw(Dt)}return Mt(kt,St),kt.prototype.clone=function(){return(0,jt.default)(this)},kt.prototype.toString=function(xt){return this.options.writer.set(xt).raw(this)},kt}(Ct)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt,St,kt,xt,Dt,yt,et,tt,lt,ot=function(ct,ft){function gt(){this.constructor=ct}for(var Lt in ft)ut.call(ft,Lt)&&(ct[Lt]=ft[Lt]);return gt.prototype=ft.prototype,ct.prototype=new gt,ct.__super__=ft.prototype,ct},ut={}.hasOwnProperty;kt=wt("./XMLDeclaration"),xt=wt("./XMLDocType"),Ot=wt("./XMLCData"),jt=wt("./XMLComment"),Dt=wt("./XMLElement"),et=wt("./XMLRaw"),tt=wt("./XMLText"),yt=wt("./XMLProcessingInstruction"),Ct=wt("./XMLDTDAttList"),Mt=wt("./XMLDTDElement"),Bt=wt("./XMLDTDEntity"),St=wt("./XMLDTDNotation"),lt=wt("./XMLWriterBase"),Qt.exports=function(ct){function ft(gt,Lt){ft.__super__.constructor.call(this,Lt),this.stream=gt}return ot(ft,ct),ft.prototype.document=function(gt){var Lt,Rt,Ut,Nt,qt,te,Vt,de;for(te=gt.children,Rt=0,Nt=te.length;Rt<Nt;Rt++)Lt=te[Rt],Lt.isLastRootNode=!1;for(gt.children[gt.children.length-1].isLastRootNode=!0,Vt=gt.children,de=[],Ut=0,qt=Vt.length;Ut<qt;Ut++)switch(Lt=Vt[Ut],!1){case!(Lt instanceof kt):de.push(this.declaration(Lt));break;case!(Lt instanceof xt):de.push(this.docType(Lt));break;case!(Lt instanceof jt):de.push(this.comment(Lt));break;case!(Lt instanceof yt):de.push(this.processingInstruction(Lt));break;default:de.push(this.element(Lt))}return de},ft.prototype.attribute=function(gt){return this.stream.write(" "+gt.name+'="'+gt.value+'"')},ft.prototype.cdata=function(gt,Lt){return this.stream.write(this.space(Lt)+"<![CDATA["+gt.text+"]]>"+this.endline(gt))},ft.prototype.comment=function(gt,Lt){return this.stream.write(this.space(Lt)+"<!-- "+gt.text+" -->"+this.endline(gt))},ft.prototype.declaration=function(gt,Lt){return this.stream.write(this.space(Lt)),this.stream.write('<?xml version="'+gt.version+'"'),gt.encoding!=null&&this.stream.write(' encoding="'+gt.encoding+'"'),gt.standalone!=null&&this.stream.write(' standalone="'+gt.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(gt))},ft.prototype.docType=function(gt,Lt){var Rt,Ut,Nt,qt;if(Lt||(Lt=0),this.stream.write(this.space(Lt)),this.stream.write("<!DOCTYPE "+gt.root().name),gt.pubID&>.sysID?this.stream.write(' PUBLIC "'+gt.pubID+'" "'+gt.sysID+'"'):gt.sysID&&this.stream.write(' SYSTEM "'+gt.sysID+'"'),gt.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(gt)),qt=gt.children,Ut=0,Nt=qt.length;Ut<Nt;Ut++)switch(Rt=qt[Ut],!1){case!(Rt instanceof Ct):this.dtdAttList(Rt,Lt+1);break;case!(Rt instanceof Mt):this.dtdElement(Rt,Lt+1);break;case!(Rt instanceof Bt):this.dtdEntity(Rt,Lt+1);break;case!(Rt instanceof St):this.dtdNotation(Rt,Lt+1);break;case!(Rt instanceof Ot):this.cdata(Rt,Lt+1);break;case!(Rt instanceof jt):this.comment(Rt,Lt+1);break;case!(Rt instanceof yt):this.processingInstruction(Rt,Lt+1);break;default:throw new Error("Unknown DTD node type: "+Rt.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(gt))},ft.prototype.element=function(gt,Lt){var Rt,Ut,Nt,qt,te,Vt,de,ge;Lt||(Lt=0),ge=this.space(Lt),this.stream.write(ge+"<"+gt.name),Vt=gt.attributes;for(te in Vt)ut.call(Vt,te)&&(Rt=Vt[te],this.attribute(Rt));if(gt.children.length===0||gt.children.every(function(be){return be.value===""}))this.allowEmpty?this.stream.write("></"+gt.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&>.children.length===1&>.children[0].value!=null)this.stream.write(">"),this.stream.write(gt.children[0].value),this.stream.write("</"+gt.name+">");else{for(this.stream.write(">"+this.newline),de=gt.children,Nt=0,qt=de.length;Nt<qt;Nt++)switch(Ut=de[Nt],!1){case!(Ut instanceof Ot):this.cdata(Ut,Lt+1);break;case!(Ut instanceof jt):this.comment(Ut,Lt+1);break;case!(Ut instanceof Dt):this.element(Ut,Lt+1);break;case!(Ut instanceof et):this.raw(Ut,Lt+1);break;case!(Ut instanceof tt):this.text(Ut,Lt+1);break;case!(Ut instanceof yt):this.processingInstruction(Ut,Lt+1);break;default:throw new Error("Unknown XML node type: "+Ut.constructor.name)}this.stream.write(ge+"</"+gt.name+">")}return this.stream.write(this.endline(gt))},ft.prototype.processingInstruction=function(gt,Lt){return this.stream.write(this.space(Lt)+"<?"+gt.target),gt.value&&this.stream.write(" "+gt.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(gt))},ft.prototype.raw=function(gt,Lt){return this.stream.write(this.space(Lt)+gt.value+this.endline(gt))},ft.prototype.text=function(gt,Lt){return this.stream.write(this.space(Lt)+gt.value+this.endline(gt))},ft.prototype.dtdAttList=function(gt,Lt){return this.stream.write(this.space(Lt)+"<!ATTLIST "+gt.elementName+" "+gt.attributeName+" "+gt.attributeType),gt.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+gt.defaultValueType),gt.defaultValue&&this.stream.write(' "'+gt.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(gt))},ft.prototype.dtdElement=function(gt,Lt){return this.stream.write(this.space(Lt)+"<!ELEMENT "+gt.name+" "+gt.value),this.stream.write(this.spacebeforeslash+">"+this.endline(gt))},ft.prototype.dtdEntity=function(gt,Lt){return this.stream.write(this.space(Lt)+"<!ENTITY"),gt.pe&&this.stream.write(" %"),this.stream.write(" "+gt.name),gt.value?this.stream.write(' "'+gt.value+'"'):(gt.pubID&>.sysID?this.stream.write(' PUBLIC "'+gt.pubID+'" "'+gt.sysID+'"'):gt.sysID&&this.stream.write(' SYSTEM "'+gt.sysID+'"'),gt.nData&&this.stream.write(" NDATA "+gt.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(gt))},ft.prototype.dtdNotation=function(gt,Lt){return this.stream.write(this.space(Lt)+"<!NOTATION "+gt.name),gt.pubID&>.sysID?this.stream.write(' PUBLIC "'+gt.pubID+'" "'+gt.sysID+'"'):gt.pubID?this.stream.write(' PUBLIC "'+gt.pubID+'"'):gt.sysID&&this.stream.write(' SYSTEM "'+gt.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(gt))},ft.prototype.endline=function(gt){return gt.isLastRootNode?"":this.newline},ft}(lt)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt,St,kt,xt,Dt,yt,et,tt,lt,ot=function(ct,ft){function gt(){this.constructor=ct}for(var Lt in ft)ut.call(ft,Lt)&&(ct[Lt]=ft[Lt]);return gt.prototype=ft.prototype,ct.prototype=new gt,ct.__super__=ft.prototype,ct},ut={}.hasOwnProperty;kt=wt("./XMLDeclaration"),xt=wt("./XMLDocType"),Ot=wt("./XMLCData"),jt=wt("./XMLComment"),Dt=wt("./XMLElement"),et=wt("./XMLRaw"),tt=wt("./XMLText"),yt=wt("./XMLProcessingInstruction"),Ct=wt("./XMLDTDAttList"),Mt=wt("./XMLDTDElement"),Bt=wt("./XMLDTDEntity"),St=wt("./XMLDTDNotation"),lt=wt("./XMLWriterBase"),Qt.exports=function(ct){function ft(gt){ft.__super__.constructor.call(this,gt)}return ot(ft,ct),ft.prototype.document=function(gt){var Lt,Rt,Ut,Nt,qt;for(this.textispresent=!1,Nt="",qt=gt.children,Rt=0,Ut=qt.length;Rt<Ut;Rt++)Lt=qt[Rt],Nt+=function(){switch(!1){case!(Lt instanceof kt):return this.declaration(Lt);case!(Lt instanceof xt):return this.docType(Lt);case!(Lt instanceof jt):return this.comment(Lt);case!(Lt instanceof yt):return this.processingInstruction(Lt);default:return this.element(Lt,0)}}.call(this);return this.pretty&&Nt.slice(-this.newline.length)===this.newline&&(Nt=Nt.slice(0,-this.newline.length)),Nt},ft.prototype.attribute=function(gt){return" "+gt.name+'="'+gt.value+'"'},ft.prototype.cdata=function(gt,Lt){return this.space(Lt)+"<![CDATA["+gt.text+"]]>"+this.newline},ft.prototype.comment=function(gt,Lt){return this.space(Lt)+"<!-- "+gt.text+" -->"+this.newline},ft.prototype.declaration=function(gt,Lt){var Rt;return Rt=this.space(Lt),Rt+='<?xml version="'+gt.version+'"',gt.encoding!=null&&(Rt+=' encoding="'+gt.encoding+'"'),gt.standalone!=null&&(Rt+=' standalone="'+gt.standalone+'"'),Rt+=this.spacebeforeslash+"?>",Rt+=this.newline},ft.prototype.docType=function(gt,Lt){var Rt,Ut,Nt,qt,te;if(Lt||(Lt=0),qt=this.space(Lt),qt+="<!DOCTYPE "+gt.root().name,gt.pubID&>.sysID?qt+=' PUBLIC "'+gt.pubID+'" "'+gt.sysID+'"':gt.sysID&&(qt+=' SYSTEM "'+gt.sysID+'"'),gt.children.length>0){for(qt+=" [",qt+=this.newline,te=gt.children,Ut=0,Nt=te.length;Ut<Nt;Ut++)Rt=te[Ut],qt+=function(){switch(!1){case!(Rt instanceof Ct):return this.dtdAttList(Rt,Lt+1);case!(Rt instanceof Mt):return this.dtdElement(Rt,Lt+1);case!(Rt instanceof Bt):return this.dtdEntity(Rt,Lt+1);case!(Rt instanceof St):return this.dtdNotation(Rt,Lt+1);case!(Rt instanceof Ot):return this.cdata(Rt,Lt+1);case!(Rt instanceof jt):return this.comment(Rt,Lt+1);case!(Rt instanceof yt):return this.processingInstruction(Rt,Lt+1);default:throw new Error("Unknown DTD node type: "+Rt.constructor.name)}}.call(this);qt+="]"}return qt+=this.spacebeforeslash+">",qt+=this.newline},ft.prototype.element=function(gt,Lt){var Rt,Ut,Nt,qt,te,Vt,de,ge,be,Ne,Ge,Pe,ze;Lt||(Lt=0),ze=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),Pe=this.space(Lt),ge="",ge+=Pe+"<"+gt.name,be=gt.attributes;for(de in be)ut.call(be,de)&&(Rt=be[de],ge+=this.attribute(Rt));if(gt.children.length===0||gt.children.every(function(he){return he.value===""}))this.allowEmpty?ge+="></"+gt.name+">"+this.newline:ge+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&>.children.length===1&>.children[0].value!=null)ge+=">",ge+=gt.children[0].value,ge+="</"+gt.name+">"+this.newline;else{if(this.dontprettytextnodes){for(Ne=gt.children,Nt=0,te=Ne.length;Nt<te;Nt++)if(Ut=Ne[Nt],Ut.value!=null){this.textispresent++,ze=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,Pe=this.space(Lt)),ge+=">"+this.newline,Ge=gt.children,qt=0,Vt=Ge.length;qt<Vt;qt++)Ut=Ge[qt],ge+=function(){switch(!1){case!(Ut instanceof Ot):return this.cdata(Ut,Lt+1);case!(Ut instanceof jt):return this.comment(Ut,Lt+1);case!(Ut instanceof Dt):return this.element(Ut,Lt+1);case!(Ut instanceof et):return this.raw(Ut,Lt+1);case!(Ut instanceof tt):return this.text(Ut,Lt+1);case!(Ut instanceof yt):return this.processingInstruction(Ut,Lt+1);default:throw new Error("Unknown XML node type: "+Ut.constructor.name)}}.call(this);ze&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),ge+=Pe+"</"+gt.name+">"+this.newline}return ge},ft.prototype.processingInstruction=function(gt,Lt){var Rt;return Rt=this.space(Lt)+"<?"+gt.target,gt.value&&(Rt+=" "+gt.value),Rt+=this.spacebeforeslash+"?>"+this.newline},ft.prototype.raw=function(gt,Lt){return this.space(Lt)+gt.value+this.newline},ft.prototype.text=function(gt,Lt){return this.space(Lt)+gt.value+this.newline},ft.prototype.dtdAttList=function(gt,Lt){var Rt;return Rt=this.space(Lt)+"<!ATTLIST "+gt.elementName+" "+gt.attributeName+" "+gt.attributeType,gt.defaultValueType!=="#DEFAULT"&&(Rt+=" "+gt.defaultValueType),gt.defaultValue&&(Rt+=' "'+gt.defaultValue+'"'),Rt+=this.spacebeforeslash+">"+this.newline},ft.prototype.dtdElement=function(gt,Lt){return this.space(Lt)+"<!ELEMENT "+gt.name+" "+gt.value+this.spacebeforeslash+">"+this.newline},ft.prototype.dtdEntity=function(gt,Lt){var Rt;return Rt=this.space(Lt)+"<!ENTITY",gt.pe&&(Rt+=" %"),Rt+=" "+gt.name,gt.value?Rt+=' "'+gt.value+'"':(gt.pubID&>.sysID?Rt+=' PUBLIC "'+gt.pubID+'" "'+gt.sysID+'"':gt.sysID&&(Rt+=' SYSTEM "'+gt.sysID+'"'),gt.nData&&(Rt+=" NDATA "+gt.nData)),Rt+=this.spacebeforeslash+">"+this.newline},ft.prototype.dtdNotation=function(gt,Lt){var Rt;return Rt=this.space(Lt)+"<!NOTATION "+gt.name,gt.pubID&>.sysID?Rt+=' PUBLIC "'+gt.pubID+'" "'+gt.sysID+'"':gt.pubID?Rt+=' PUBLIC "'+gt.pubID+'"':gt.sysID&&(Rt+=' SYSTEM "'+gt.sysID+'"'),Rt+=this.spacebeforeslash+">"+this.newline},ft.prototype.openNode=function(gt,Lt){var Rt,Ut,Nt,qt;if(Lt||(Lt=0),gt instanceof Dt){Nt=this.space(Lt)+"<"+gt.name,qt=gt.attributes;for(Ut in qt)ut.call(qt,Ut)&&(Rt=qt[Ut],Nt+=this.attribute(Rt));return Nt+=(gt.children?">":"/>")+this.newline}return Nt=this.space(Lt)+"<!DOCTYPE "+gt.rootNodeName,gt.pubID&>.sysID?Nt+=' PUBLIC "'+gt.pubID+'" "'+gt.sysID+'"':gt.sysID&&(Nt+=' SYSTEM "'+gt.sysID+'"'),Nt+=(gt.children?" [":">")+this.newline},ft.prototype.closeNode=function(gt,Lt){switch(Lt||(Lt=0),!1){case!(gt instanceof Dt):return this.space(Lt)+"</"+gt.name+">"+this.newline;case!(gt instanceof xt):return this.space(Lt)+"]>"+this.newline}},ft}(lt)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(wt,Qt,Zt){"use strict";(function(){var Ot=function(Ct,Mt){return function(){return Ct.apply(Mt,arguments)}},jt={}.hasOwnProperty;Qt.exports=function(){function Ct(Mt){this.assertLegalChar=Ot(this.assertLegalChar,this);var Bt,St,kt;Mt||(Mt={}),this.noDoubleEncoding=Mt.noDoubleEncoding,St=Mt.stringify||{};for(Bt in St)jt.call(St,Bt)&&(kt=St[Bt],this[Bt]=kt)}return Ct.prototype.eleName=function(Mt){return Mt=""+Mt||"",this.assertLegalChar(Mt)},Ct.prototype.eleText=function(Mt){return Mt=""+Mt||"",this.assertLegalChar(this.elEscape(Mt))},Ct.prototype.cdata=function(Mt){return Mt=""+Mt||"",Mt=Mt.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Mt)},Ct.prototype.comment=function(Mt){if(Mt=""+Mt||"",Mt.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+Mt);return this.assertLegalChar(Mt)},Ct.prototype.raw=function(Mt){return""+Mt||""},Ct.prototype.attName=function(Mt){return Mt=""+Mt||""},Ct.prototype.attValue=function(Mt){return Mt=""+Mt||"",this.attEscape(Mt)},Ct.prototype.insTarget=function(Mt){return""+Mt||""},Ct.prototype.insValue=function(Mt){if(Mt=""+Mt||"",Mt.match(/\?>/))throw new Error("Invalid processing instruction value: "+Mt);return Mt},Ct.prototype.xmlVersion=function(Mt){if(Mt=""+Mt||"",!Mt.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+Mt);return Mt},Ct.prototype.xmlEncoding=function(Mt){if(Mt=""+Mt||"",!Mt.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+Mt);return Mt},Ct.prototype.xmlStandalone=function(Mt){return Mt?"yes":"no"},Ct.prototype.dtdPubID=function(Mt){return""+Mt||""},Ct.prototype.dtdSysID=function(Mt){return""+Mt||""},Ct.prototype.dtdElementValue=function(Mt){return""+Mt||""},Ct.prototype.dtdAttType=function(Mt){return""+Mt||""},Ct.prototype.dtdAttDefault=function(Mt){return Mt!=null?""+Mt||"":Mt},Ct.prototype.dtdEntityValue=function(Mt){return""+Mt||""},Ct.prototype.dtdNData=function(Mt){return""+Mt||""},Ct.prototype.convertAttKey="@",Ct.prototype.convertPIKey="?",Ct.prototype.convertTextKey="#text",Ct.prototype.convertCDataKey="#cdata",Ct.prototype.convertCommentKey="#comment",Ct.prototype.convertRawKey="#raw",Ct.prototype.assertLegalChar=function(Mt){var Bt;if(Bt=Mt.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+Mt+" at index "+Bt.index);return Mt},Ct.prototype.elEscape=function(Mt){var Bt;return Bt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Mt.replace(Bt,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},Ct.prototype.attEscape=function(Mt){var Bt;return Bt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Mt.replace(Bt,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},Ct}()}).call(void 0)},{}],233:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/core-js/object/create"),jt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Ot);(function(){var Ct,Mt=function(St,kt){function xt(){this.constructor=St}for(var Dt in kt)Bt.call(kt,Dt)&&(St[Dt]=kt[Dt]);return xt.prototype=kt.prototype,St.prototype=new xt,St.__super__=kt.prototype,St},Bt={}.hasOwnProperty;Ct=wt("./XMLNode"),Qt.exports=function(St){function kt(xt,Dt){if(kt.__super__.constructor.call(this,xt),Dt==null)throw new Error("Missing element text");this.value=this.stringify.eleText(Dt)}return Mt(kt,St),kt.prototype.clone=function(){return(0,jt.default)(this)},kt.prototype.toString=function(xt){return this.options.writer.set(xt).text(this)},kt}(Ct)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(wt,Qt,Zt){"use strict";(function(){var Ot={}.hasOwnProperty;Qt.exports=function(){function jt(Ct){var Mt,Bt,St,kt,xt,Dt,yt,et,tt;Ct||(Ct={}),this.pretty=Ct.pretty||!1,this.allowEmpty=(Bt=Ct.allowEmpty)!=null&&Bt,this.pretty?(this.indent=(St=Ct.indent)!=null?St:" ",this.newline=(kt=Ct.newline)!=null?kt:`
|
|
`,this.offset=(xt=Ct.offset)!=null?xt:0,this.dontprettytextnodes=(Dt=Ct.dontprettytextnodes)!=null?Dt:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(yt=Ct.spacebeforeslash)!=null?yt:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,et=Ct.writer||{};for(Mt in et)Ot.call(et,Mt)&&(tt=et[Mt],this[Mt]=tt)}return jt.prototype.set=function(Ct){var Mt,Bt,St;Ct||(Ct={}),"pretty"in Ct&&(this.pretty=Ct.pretty),"allowEmpty"in Ct&&(this.allowEmpty=Ct.allowEmpty),this.pretty?(this.indent="indent"in Ct?Ct.indent:" ",this.newline="newline"in Ct?Ct.newline:`
|
|
`,this.offset="offset"in Ct?Ct.offset:0,this.dontprettytextnodes="dontprettytextnodes"in Ct?Ct.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in Ct?Ct.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,Bt=Ct.writer||{};for(Mt in Bt)Ot.call(Bt,Mt)&&(St=Bt[Mt],this[Mt]=St);return this},jt.prototype.space=function(Ct){var Mt;return this.pretty?(Mt=(Ct||0)+this.offset+1,Mt>0?new Array(Mt).join(this.indent):""):""},jt}()}).call(void 0)},{}],235:[function(wt,Qt,Zt){"use strict";(function(){var Ot,jt,Ct,Mt,Bt,St,kt;kt=wt("./Utility"),Bt=kt.assign,St=kt.isFunction,Ot=wt("./XMLDocument"),jt=wt("./XMLDocumentCB"),Mt=wt("./XMLStringWriter"),Ct=wt("./XMLStreamWriter"),Qt.exports.create=function(xt,Dt,yt,et){var tt,lt;if(xt==null)throw new Error("Root element needs a name");return et=Bt({},Dt,yt,et),tt=new Ot(et),lt=tt.element(xt),et.headless||(tt.declaration(et),et.pubID==null&&et.sysID==null||tt.doctype(et)),lt},Qt.exports.begin=function(xt,Dt,yt){var et;return St(xt)&&(et=[xt,Dt],Dt=et[0],yt=et[1],xt={}),Dt?new jt(xt,Dt,yt):new Ot(xt)},Qt.exports.stringWriter=function(xt){return new Mt(xt)},Qt.exports.streamWriter=function(xt,Dt){return new Ct(xt,Dt)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(wt,Qt,Zt){function Ot(){for(var Ct={},Mt=0;Mt<arguments.length;Mt++){var Bt=arguments[Mt];for(var St in Bt)jt.call(Bt,St)&&(Ct[St]=Bt[St])}return Ct}Qt.exports=Ot;var jt=Object.prototype.hasOwnProperty},{}],237:[function(wt,Qt,Zt){"use strict";function Ot(et,tt,lt){Mt.isBuffer(tt)||(tt=new Mt(tt)),Mt.isBuffer(lt)||(lt=new Mt(lt)),tt.length>Dt?tt=et(tt):tt.length<Dt&&(tt=Mt.concat([tt,yt],Dt));for(var ot=new Mt(Dt),ut=new Mt(Dt),ct=0;ct<Dt;ct++)ot[ct]=54^tt[ct],ut[ct]=92^tt[ct];var ft=et(Mt.concat([ot,lt]));return et(Mt.concat([ut,ft]))}function jt(et,tt){et=et||"sha1";var lt=xt[et],ot=[],ut=0;return lt||Ct("algorithm:",et,"is not yet supported"),{update:function(ct){return Mt.isBuffer(ct)||(ct=new Mt(ct)),ot.push(ct),ut+=ct.length,this},digest:function(ct){var ft=Mt.concat(ot),gt=tt?Ot(lt,tt,ft):lt(ft);return ot=null,ct?gt.toString(ct):gt}}}function Ct(){var et=[].slice.call(arguments).join(" ");throw new Error([et,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
`))}var Mt=wt("buffer").Buffer,Bt=wt("./sha"),St=wt("./sha256"),kt=wt("./md5"),xt={sha1:Bt,sha256:St,md5:kt},Dt=64,yt=new Mt(Dt);yt.fill(0),Zt.createHash=function(et){return jt(et)},Zt.createHmac=function(et,tt){return jt(et,tt)},function(et,tt){for(var lt in et)tt(et[lt],lt)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(et){Zt[et]=function(){Ct("sorry,",et,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(wt,Qt,Zt){"use strict";function Ot(xt,Dt){if(xt.length%Bt!=0){var yt=xt.length+(Bt-xt.length%Bt);xt=Mt.concat([xt,St],yt)}for(var et=[],tt=Dt?xt.readInt32BE:xt.readInt32LE,lt=0;lt<xt.length;lt+=Bt)et.push(tt.call(xt,lt));return et}function jt(xt,Dt,yt){for(var et=new Mt(Dt),tt=yt?et.writeInt32BE:et.writeInt32LE,lt=0;lt<xt.length;lt++)tt.call(et,xt[lt],4*lt,!0);return et}function Ct(xt,Dt,yt,et){return Mt.isBuffer(xt)||(xt=new Mt(xt)),jt(Dt(Ot(xt,et),xt.length*kt),yt,et)}var Mt=wt("buffer").Buffer,Bt=4,St=new Mt(Bt);St.fill(0);var kt=8;Qt.exports={hash:Ct}},{buffer:38}],239:[function(wt,Qt,Zt){"use strict";function Ot(yt,et){yt[et>>5]|=128<<et%32,yt[14+(et+64>>>9<<4)]=et;for(var tt=1732584193,lt=-271733879,ot=-1732584194,ut=271733878,ct=0;ct<yt.length;ct+=16){var ft=tt,gt=lt,Lt=ot,Rt=ut;tt=Ct(tt,lt,ot,ut,yt[ct+0],7,-680876936),ut=Ct(ut,tt,lt,ot,yt[ct+1],12,-389564586),ot=Ct(ot,ut,tt,lt,yt[ct+2],17,606105819),lt=Ct(lt,ot,ut,tt,yt[ct+3],22,-1044525330),tt=Ct(tt,lt,ot,ut,yt[ct+4],7,-176418897),ut=Ct(ut,tt,lt,ot,yt[ct+5],12,1200080426),ot=Ct(ot,ut,tt,lt,yt[ct+6],17,-1473231341),lt=Ct(lt,ot,ut,tt,yt[ct+7],22,-45705983),tt=Ct(tt,lt,ot,ut,yt[ct+8],7,1770035416),ut=Ct(ut,tt,lt,ot,yt[ct+9],12,-1958414417),ot=Ct(ot,ut,tt,lt,yt[ct+10],17,-42063),lt=Ct(lt,ot,ut,tt,yt[ct+11],22,-1990404162),tt=Ct(tt,lt,ot,ut,yt[ct+12],7,1804603682),ut=Ct(ut,tt,lt,ot,yt[ct+13],12,-40341101),ot=Ct(ot,ut,tt,lt,yt[ct+14],17,-1502002290),lt=Ct(lt,ot,ut,tt,yt[ct+15],22,1236535329),tt=Mt(tt,lt,ot,ut,yt[ct+1],5,-165796510),ut=Mt(ut,tt,lt,ot,yt[ct+6],9,-1069501632),ot=Mt(ot,ut,tt,lt,yt[ct+11],14,643717713),lt=Mt(lt,ot,ut,tt,yt[ct+0],20,-373897302),tt=Mt(tt,lt,ot,ut,yt[ct+5],5,-701558691),ut=Mt(ut,tt,lt,ot,yt[ct+10],9,38016083),ot=Mt(ot,ut,tt,lt,yt[ct+15],14,-660478335),lt=Mt(lt,ot,ut,tt,yt[ct+4],20,-405537848),tt=Mt(tt,lt,ot,ut,yt[ct+9],5,568446438),ut=Mt(ut,tt,lt,ot,yt[ct+14],9,-1019803690),ot=Mt(ot,ut,tt,lt,yt[ct+3],14,-187363961),lt=Mt(lt,ot,ut,tt,yt[ct+8],20,1163531501),tt=Mt(tt,lt,ot,ut,yt[ct+13],5,-1444681467),ut=Mt(ut,tt,lt,ot,yt[ct+2],9,-51403784),ot=Mt(ot,ut,tt,lt,yt[ct+7],14,1735328473),lt=Mt(lt,ot,ut,tt,yt[ct+12],20,-1926607734),tt=Bt(tt,lt,ot,ut,yt[ct+5],4,-378558),ut=Bt(ut,tt,lt,ot,yt[ct+8],11,-2022574463),ot=Bt(ot,ut,tt,lt,yt[ct+11],16,1839030562),lt=Bt(lt,ot,ut,tt,yt[ct+14],23,-35309556),tt=Bt(tt,lt,ot,ut,yt[ct+1],4,-1530992060),ut=Bt(ut,tt,lt,ot,yt[ct+4],11,1272893353),ot=Bt(ot,ut,tt,lt,yt[ct+7],16,-155497632),lt=Bt(lt,ot,ut,tt,yt[ct+10],23,-1094730640),tt=Bt(tt,lt,ot,ut,yt[ct+13],4,681279174),ut=Bt(ut,tt,lt,ot,yt[ct+0],11,-358537222),ot=Bt(ot,ut,tt,lt,yt[ct+3],16,-722521979),lt=Bt(lt,ot,ut,tt,yt[ct+6],23,76029189),tt=Bt(tt,lt,ot,ut,yt[ct+9],4,-640364487),ut=Bt(ut,tt,lt,ot,yt[ct+12],11,-421815835),ot=Bt(ot,ut,tt,lt,yt[ct+15],16,530742520),lt=Bt(lt,ot,ut,tt,yt[ct+2],23,-995338651),tt=St(tt,lt,ot,ut,yt[ct+0],6,-198630844),ut=St(ut,tt,lt,ot,yt[ct+7],10,1126891415),ot=St(ot,ut,tt,lt,yt[ct+14],15,-1416354905),lt=St(lt,ot,ut,tt,yt[ct+5],21,-57434055),tt=St(tt,lt,ot,ut,yt[ct+12],6,1700485571),ut=St(ut,tt,lt,ot,yt[ct+3],10,-1894986606),ot=St(ot,ut,tt,lt,yt[ct+10],15,-1051523),lt=St(lt,ot,ut,tt,yt[ct+1],21,-2054922799),tt=St(tt,lt,ot,ut,yt[ct+8],6,1873313359),ut=St(ut,tt,lt,ot,yt[ct+15],10,-30611744),ot=St(ot,ut,tt,lt,yt[ct+6],15,-1560198380),lt=St(lt,ot,ut,tt,yt[ct+13],21,1309151649),tt=St(tt,lt,ot,ut,yt[ct+4],6,-145523070),ut=St(ut,tt,lt,ot,yt[ct+11],10,-1120210379),ot=St(ot,ut,tt,lt,yt[ct+2],15,718787259),lt=St(lt,ot,ut,tt,yt[ct+9],21,-343485551),tt=kt(tt,ft),lt=kt(lt,gt),ot=kt(ot,Lt),ut=kt(ut,Rt)}return Array(tt,lt,ot,ut)}function jt(yt,et,tt,lt,ot,ut){return kt(xt(kt(kt(et,yt),kt(lt,ut)),ot),tt)}function Ct(yt,et,tt,lt,ot,ut,ct){return jt(et&tt|~et<,yt,et,ot,ut,ct)}function Mt(yt,et,tt,lt,ot,ut,ct){return jt(et<|tt&~lt,yt,et,ot,ut,ct)}function Bt(yt,et,tt,lt,ot,ut,ct){return jt(et^tt^lt,yt,et,ot,ut,ct)}function St(yt,et,tt,lt,ot,ut,ct){return jt(tt^(et|~lt),yt,et,ot,ut,ct)}function kt(yt,et){var tt=(65535&yt)+(65535&et);return(yt>>16)+(et>>16)+(tt>>16)<<16|65535&tt}function xt(yt,et){return yt<<et|yt>>>32-et}var Dt=wt("./helpers");Qt.exports=function(yt){return Dt.hash(yt,Ot,16)}},{"./helpers":238}],240:[function(wt,Qt,Zt){"use strict";function Ot(kt,xt){kt[xt>>5]|=128<<24-xt%32,kt[15+(xt+64>>9<<4)]=xt;for(var Dt=Array(80),yt=1732584193,et=-271733879,tt=-1732584194,lt=271733878,ot=-1009589776,ut=0;ut<kt.length;ut+=16){for(var ct=yt,ft=et,gt=tt,Lt=lt,Rt=ot,Ut=0;Ut<80;Ut++){Dt[Ut]=Ut<16?kt[ut+Ut]:Bt(Dt[Ut-3]^Dt[Ut-8]^Dt[Ut-14]^Dt[Ut-16],1);var Nt=Mt(Mt(Bt(yt,5),jt(Ut,et,tt,lt)),Mt(Mt(ot,Dt[Ut]),Ct(Ut)));ot=lt,lt=tt,tt=Bt(et,30),et=yt,yt=Nt}yt=Mt(yt,ct),et=Mt(et,ft),tt=Mt(tt,gt),lt=Mt(lt,Lt),ot=Mt(ot,Rt)}return Array(yt,et,tt,lt,ot)}function jt(kt,xt,Dt,yt){return kt<20?xt&Dt|~xt&yt:kt<40?xt^Dt^yt:kt<60?xt&Dt|xt&yt|Dt&yt:xt^Dt^yt}function Ct(kt){return kt<20?1518500249:kt<40?1859775393:kt<60?-1894007588:-899497514}function Mt(kt,xt){var Dt=(65535&kt)+(65535&xt);return(kt>>16)+(xt>>16)+(Dt>>16)<<16|65535&Dt}function Bt(kt,xt){return kt<<xt|kt>>>32-xt}var St=wt("./helpers");Qt.exports=function(kt){return St.hash(kt,Ot,20,!0)}},{"./helpers":238}],241:[function(wt,Qt,Zt){"use strict";var Ot=wt("./helpers"),jt=function(tt,lt){var ot=(65535&tt)+(65535<);return(tt>>16)+(lt>>16)+(ot>>16)<<16|65535&ot},Ct=function(tt,lt){return tt>>>lt|tt<<32-lt},Mt=function(tt,lt){return tt>>>lt},Bt=function(tt,lt,ot){return tt<^~tt&ot},St=function(tt,lt,ot){return tt<^tt&ot^lt&ot},kt=function(tt){return Ct(tt,2)^Ct(tt,13)^Ct(tt,22)},xt=function(tt){return Ct(tt,6)^Ct(tt,11)^Ct(tt,25)},Dt=function(tt){return Ct(tt,7)^Ct(tt,18)^Mt(tt,3)},yt=function(tt){return Ct(tt,17)^Ct(tt,19)^Mt(tt,10)},et=function(tt,lt){var ot,ut,ct,ft,gt,Lt,Rt,Ut,Nt,qt,te,Vt,de=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),ge=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),be=new Array(64);tt[lt>>5]|=128<<24-lt%32,tt[15+(lt+64>>9<<4)]=lt;for(var Nt=0;Nt<tt.length;Nt+=16){ot=ge[0],ut=ge[1],ct=ge[2],ft=ge[3],gt=ge[4],Lt=ge[5],Rt=ge[6],Ut=ge[7];for(var qt=0;qt<64;qt++)be[qt]=qt<16?tt[qt+Nt]:jt(jt(jt(yt(be[qt-2]),be[qt-7]),Dt(be[qt-15])),be[qt-16]),te=jt(jt(jt(jt(Ut,xt(gt)),Bt(gt,Lt,Rt)),de[qt]),be[qt]),Vt=jt(kt(ot),St(ot,ut,ct)),Ut=Rt,Rt=Lt,Lt=gt,gt=jt(ft,te),ft=ct,ct=ut,ut=ot,ot=jt(te,Vt);ge[0]=jt(ot,ge[0]),ge[1]=jt(ut,ge[1]),ge[2]=jt(ct,ge[2]),ge[3]=jt(ft,ge[3]),ge[4]=jt(gt,ge[4]),ge[5]=jt(Lt,ge[5]),ge[6]=jt(Rt,ge[6]),ge[7]=jt(Ut,ge[7])}return ge};Qt.exports=function(tt){return Ot.hash(tt,et,32,!0)}},{"./helpers":238}],242:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(et){return et&&et.__esModule?et:{default:et}}var Ct=wt("babel-runtime/core-js/object/create"),Mt=jt(Ct),Bt=wt("babel-runtime/helpers/classCallCheck"),St=jt(Bt),kt=wt("babel-runtime/helpers/createClass"),xt=jt(kt),Dt=wt("babel-runtime/helpers/typeof"),yt=jt(Dt);(function(et){if((Zt===void 0?"undefined":(0,yt.default)(Zt))==="object"&&Qt!==void 0)Qt.exports=et();else if(typeof ee=="function"&&ee.amd)ee([],et);else{var tt;tt=typeof window!="undefined"?window:Ot!==void 0?Ot:typeof self!="undefined"?self:this,tt.mime=et()}})(function(){return function et(tt,lt,ot){function ut(gt,Lt){if(!lt[gt]){if(!tt[gt]){var Rt=typeof wt=="function"&&wt;if(!Lt&&Rt)return Rt(gt,!0);if(ct)return ct(gt,!0);var Ut=new Error("Cannot find module '"+gt+"'");throw Ut.code="MODULE_NOT_FOUND",Ut}var Nt=lt[gt]={exports:{}};tt[gt][0].call(Nt.exports,function(qt){var te=tt[gt][1][qt];return ut(te||qt)},Nt,Nt.exports,et,tt,lt,ot)}return lt[gt].exports}for(var ct=typeof wt=="function"&&wt,ft=0;ft<ot.length;ft++)ut(ot[ft]);return ut}({1:[function(et,tt,lt){var ot=function(){function ut(){(0,St.default)(this,ut),this._types=(0,Mt.default)(null),this._extensions=(0,Mt.default)(null);for(var ct=0;ct<arguments.length;ct++)this.define(arguments[ct])}return(0,xt.default)(ut,[{key:"define",value:function(ct,ft){for(var gt in ct){for(var Lt=ct[gt],Rt=0;Rt<Lt.length;Rt++){var Ut=Lt[Rt];if(!ft&&Ut in this._types)throw new Error('Attempt to change mapping for "'+Ut+'" extension from "'+this._types[Ut]+'" to "'+gt+'". Pass `force=true` to allow this, otherwise remove "'+Ut+'" from the list of extensions for "'+gt+'".');this._types[Ut]=gt}!ft&&this._extensions[gt]||(this._extensions[gt]=Lt[0])}}},{key:"getType",value:function(ct){ct=String(ct);var ft=ct.replace(/^.*[\/\\]/,"").toLowerCase(),gt=ft.replace(/^.*\./,"").toLowerCase(),Lt=ft.length<ct.length;return(gt.length<ft.length-1||!Lt)&&this._types[gt]||null}},{key:"getExtension",value:function(ct){return(ct=/^\s*([^;\s]*)/.test(ct)&&RegExp.$1)&&this._extensions[ct.toLowerCase()]||null}}]),ut}();tt.exports=ot},{}],2:[function(et,tt,lt){var ot=et("./Mime");tt.exports=new ot(et("./types/standard"),et("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(et,tt,lt){tt.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(et,tt,lt){tt.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(wt,Qt,Zt){"use strict";Zt.encodeURIComponent=function(Ot){try{return encodeURIComponent(Ot)}catch(jt){return Ot}},Zt.escape=wt("escape-html"),Zt.timestamp=function(Ot){if(Ot){var jt=Ot;return typeof jt=="string"&&(jt=Number(jt)),String(Ot).length===10&&(jt*=1e3),new Date(jt)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(wt,Qt,Zt){(function(Ot,jt){"use strict";function Ct(Ut){return Ut&&Ut.__esModule?Ut:{default:Ut}}function Mt(Ut,Nt){return Ut===void 0?Nt:Ut}function Bt(Ut,Nt){return function(qt,te,Vt){if(qt)return Nt(qt);Ut({data:te,status:Vt.statusCode,headers:Vt.headers,res:Vt})}}var St,kt=wt("babel-runtime/core-js/json/stringify"),xt=Ct(kt),Dt=wt("babel-runtime/helpers/typeof"),yt=Ct(Dt),et=wt("util"),tt=wt("url"),lt=wt("http"),ot=wt("https"),ut=wt("debug")("urllib"),ct=wt("humanize-ms"),ft=0,gt=Math.pow(2,31)-10,Lt=/^https?:\/\//i;Zt.TIMEOUTS=[ct("300s"),ct("300s")];var Rt=["json","text"];Zt.request=function(Ut,Nt,qt){return arguments.length===2&&typeof Nt=="function"&&(qt=Nt,Nt=null),typeof qt=="function"?Zt.requestWithCallback(Ut,Nt,qt):(St||(St=wt("any-promise")),new St(function(te,Vt){Zt.requestWithCallback(Ut,Nt,Bt(te,Vt))}))},Zt.requestWithCallback=function(Ut,Nt,qt){function te(){_t&&(clearTimeout(_t),_t=null)}function Vt(){It&&(clearTimeout(It),It=null)}function de(qe,En,fn){if(Vt(),!qt)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),he,Ot.pid,Ae.method,Ut),void(qe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
stack: %s`,Date(),he,Ot.pid,qe.name,qe.message,qe.stack));var Pn=qt;qt=null;var Mn={};if(fn&&(Gt=fn.statusCode,Mn=fn.headers),Gt===401&&Mn["www-authenticate"]&&(!Nt.headers||!Nt.headers.Authorization)&&Nt.digestAuth){var ii=Mn["www-authenticate"];if(ii.indexOf("Digest ")>=0)return ut("Request#%d %s: got digest auth header WWW-Authenticate: %s",he,Ut,ii),Nt.headers=Nt.headers||{},Nt.headers.Authorization=digestAuthHeader(Ae.method,Ae.path,ii,Nt.digestAuth),ut("Request#%d %s: auth with digest header: %s",he,Ut,Nt.headers.Authorization),fn.headers["set-cookie"]&&(Nt.headers.Cookie=fn.headers["set-cookie"].join(";")),Zt.requestWithCallback(Ut,Nt,Pn)}var Tn=Date.now()-se;We&&(We.contentDownload=Tn),ut("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Tn,zt,Gt,Ae.method,Ae.host,Ae.path,$t,We);var oi={status:Gt,statusCode:Gt,headers:Mn,size:zt,aborted:le,rt:Tn,keepAliveSocket:$t,data:En,requestUrls:Nt.requestUrls,timing:We,remoteAddress:ye,remotePort:Ue};if(qe){var vi="";Fe&&typeof Fe.getCurrentStatus=="function"&&(vi=", agent status: "+(0,xt.default)(Fe.getCurrentStatus())),qe.message+=", "+Ae.method+" "+Ut+" "+Gt+" (connected: "+Et+", keepalive socket: "+$t+vi+`)
|
|
headers: `+(0,xt.default)(Mn),qe.data=En,qe.path=Ae.path,qe.status=Gt,qe.headers=Mn,qe.res=oi}Pn(qe,En,Nt.streaming?fn:oi),Nt.emitter&&(Jt.url=Ut,Jt.socket=nn&&nn.connection,Jt.options=Ae,Jt.size=Yt,Nt.emitter.emit("response",{requestId:he,error:qe,ctx:Nt.ctx,req:Jt,res:oi}))}function ge(qe){var En=null;if(Nt.followRedirect&&statuses.redirect[qe.statusCode]){Nt._followRedirectCount=(Nt._followRedirectCount||0)+1;var fn=qe.headers.location;if(fn){if(!(Nt._followRedirectCount>Nt.maxRedirects)){var Pn=Nt.formatRedirectUrl?Nt.formatRedirectUrl(Ut,fn):tt.resolve(Ut,fn);ut("Request#%d %s: `redirected` from %s to %s",he,Ae.path,Ut,Pn),Vt(),Nt.headers&&Nt.headers.Host&&Lt.test(fn)&&(Nt.headers.Host=null);var Mn=qt;return qt=null,Zt.requestWithCallback(Pn,Nt,Mn),{redirect:!0,error:null}}En=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ut),En.name="MaxRedirectError"}else En=new Error("Got statusCode "+qe.statusCode+" but cannot resolve next location from headers"),En.name="FollowRedirectError"}return{redirect:!1,error:En}}function be(qe,En,fn){return fn(null,En,qe.headers["content-encoding"])}function Ne(qe){if(We&&(We.waiting=Date.now()-se),ut("Request#%d %s `req response` event emit: status %d, headers: %j",he,Ut,qe.statusCode,qe.headers),Nt.streaming){var En=ge(qe);return En.redirect?void qe.resume():En.error?(qe.resume(),de(En.error,null,qe)):de(null,null,qe)}if(qe.on("close",function(){ut("Request#%d %s: `res close` event emit, total size %d",he,Ut,zt)}),qe.on("error",function(){ut("Request#%d %s: `res error` event emit, total size %d",he,Ut,zt)}),qe.on("aborted",function(){le=!0,ut("Request#%d %s: `res aborted` event emit, total size %d",he,Ut,zt)}),Ee){var En=ge(qe);return En.redirect?void qe.resume():En.error?(qe.resume(),Ee.end(),de(En.error,null,qe)):(Nt.consumeWriteStream===!1?qe.on("end",de.bind(null,null,null,qe)):isNode010||isNode012?first([[Ee,"close"],[qe,"aborted"]],function(Mn,ii,Tn){ut("Request#%d %s: writeStream or res %s event emitted",he,Ut,Tn),de(Pt||null,null,qe)}):Ee.on("close",function(){ut("Request#%d %s: writeStream close event emitted",he,Ut),de(Pt||null,null,qe)}),qe.pipe(Ee))}var fn=[];qe.on("data",function(Pn){ut("Request#%d %s: `res data` event emit, size %d",he,Ut,Pn.length),zt+=Pn.length,fn.push(Pn)}),qe.on("end",function(){var Pn=jt.concat(fn,zt);if(ut("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",he,Ut,zt,qe._dumped),Pt)return de(Pt,Pn,qe);var Mn=ge(qe);if(Mn.error)return de(Mn.error,Pn,qe);Mn.redirect||be(qe,Pn,function(ii,Tn,oi){if(ii)return de(ii,Pn,qe);if(!oi&&Rt.indexOf(Nt.dataType)>=0){try{Tn=decodeBodyByCharset(Tn,qe)}catch(yi){return ut("decodeBodyByCharset error: %s",yi),de(null,Tn,qe)}if(Nt.dataType==="json")if(zt===0)Tn=null;else{var vi=parseJSON(Tn,Qe);vi.error?ii=vi.error:Tn=vi.data}}le&&ut("Request#%d %s: Remote socket was terminated before `response.end()` was called",he,Ut),de(ii,Tn,qe)})})}function Ge(){ut("Response timer ticking, timeout: %d",on),It=setTimeout(function(){It=null;var qe="Response timeout for "+on+"ms";Pt=new Error(qe),Pt.name="ResponseTimeoutError",Pt.requestId=he,ut("ResponseTimeout: Request#%d %s %s: %s, connected: %s",he,Ut,Pt.name,qe,Et),Pe()},on)}function Pe(){ut("Request#%d %s abort, connected: %s",he,Ut,Et),nn.socket||(Pt.noSocket=!0,de(Pt)),nn.abort()}if(!Ut||typeof Ut!="string"&&(Ut===void 0?"undefined":(0,yt.default)(Ut))!=="object"){var ze=et.format("expect request url to be a string or a http request options, but got %j",Ut);throw new Error(ze)}arguments.length===2&&typeof Nt=="function"&&(qt=Nt,Nt=null),Nt=Nt||{},ft>=gt&&(ft=0);var he=++ft;Nt.requestUrls=Nt.requestUrls||[];var Jt={requestId:he,url:Ut,args:Nt,ctx:Nt.ctx};Nt.emitter&&Nt.emitter.emit("request",Jt),Nt.timeout=Nt.timeout||Zt.TIMEOUTS,Nt.maxRedirects=Nt.maxRedirects||10,Nt.streaming=Nt.streaming||Nt.customResponse;var re,se=Date.now();typeof Ut=="string"?(Lt.test(Ut)||(Ut="http://"+Ut),re=tt.parse(Ut)):re=Ut;var pe=(Nt.type||Nt.method||re.method||"GET").toUpperCase(),ue=re.port||80,Re=lt,Fe=Mt(Nt.agent,Zt.agent),Qe=Nt.fixJSONCtlChars;re.protocol==="https:"&&(Re=ot,Fe=Mt(Nt.httpsAgent,Zt.httpsAgent),re.port||(ue=443));var Ae={host:re.hostname||re.host||"localhost",path:re.path||"/",method:pe,port:ue,agent:Fe,headers:Nt.headers||{},lookup:Nt.lookup};Array.isArray(Nt.timeout)?Ae.requestTimeout=Nt.timeout[Nt.timeout.length-1]:Nt.timeout!==void 0&&(Ae.requestTimeout=Nt.timeout);for(var _e=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],Le=0;Le<_e.length;Le++){var Oe=_e[Le];Nt.hasOwnProperty(Oe)&&(Ae[Oe]=Nt[Oe])}Ae.rejectUnauthorized!==!1||Ae.hasOwnProperty("secureOptions")||(Ae.secureOptions=wt("constants").SSL_OP_NO_TLSv1_2);var He=Nt.auth||re.auth;He&&(Ae.auth=He);var ie=Nt.content||Nt.data,Tt=pe==="GET"||pe==="HEAD"||Nt.dataAsQueryString;if(!Nt.content&&ie&&typeof ie!="string"&&!jt.isBuffer(ie))if(Tt)ie=Nt.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie);else{var At=Ae.headers["Content-Type"]||Ae.headers["content-type"];At||(At=Nt.contentType==="json"?"application/json":"application/x-www-form-urlencoded",Ae.headers["Content-Type"]=At),ie=parseContentType(At).type==="application/json"?(0,xt.default)(ie):Nt.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie)}Tt&&ie&&(Ae.path+=(re.query?"&":"?")+ie,ie=null);var Yt=0;if(ie){var oe=ie.length;jt.isBuffer(ie)||(oe=jt.byteLength(ie)),Yt=Ae.headers["Content-Length"]=oe}Nt.dataType==="json"&&(Ae.headers.Accept="application/json"),typeof Nt.beforeRequest=="function"&&Nt.beforeRequest(Ae);var _t=null,It=null,Pt=null,Et=!1,$t=!1,zt=0,Gt=-1,le=!1,ye="",Ue="",We=null;Nt.timing&&(We={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),Ae.headers["User-Agent"]||Ae.headers["user-agent"]||(Ae.headers["User-Agent"]=navigator.userAgent),Nt.gzip&&(Ae.headers["Accept-Encoding"]||Ae.headers["accept-encoding"]||(Ae.headers["Accept-Encoding"]="gzip"));var Ee=Nt.writeStream;ut("Request#%d %s %s with headers %j, options.path: %s",he,pe,Ut,Ae.headers,Ae.path),Nt.requestUrls.push(Ut);var Ze,on;Array.isArray(Nt.timeout)?(Ze=ct(Nt.timeout[0]),on=ct(Nt.timeout[1])):Ze=on=ct(Nt.timeout),ut("ConnectTimeout: %d, ResponseTimeout: %d",Ze,on);var nn;try{nn=Re.request(Ae,Ne)}catch(qe){return de(qe)}return typeof window=="undefined"?function(){ut("Connect timer ticking, timeout: %d",Ze),_t=setTimeout(function(){_t=null,Gt===-1&&(Gt=-2);var qe="Connect timeout for "+Ze+"ms",En="ConnectionTimeoutError";nn.socket||(En="SocketAssignTimeoutError",qe+=", working sockets is full"),Pt=new Error(qe),Pt.name=En,Pt.requestId=he,ut("ConnectTimeout: Request#%d %s %s: %s, connected: %s",he,Ut,Pt.name,qe,Et),Pe()},Ze)}():nn.on("requestTimeout",function(){Gt===-1&&(Gt=-2);var qe="Connect timeout for "+Ze+"ms";Pt=new Error(qe),Pt.name="ConnectionTimeoutError",Pt.requestId=he,Pe()}),We&&nn.on("finish",function(){We.requestSent=Date.now()-se}),nn.once("socket",function(qe){We&&(We.queuing=Date.now()-se),isNode010&&qe.socket&&(qe=qe.socket);var En=qe.readyState;if(En==="opening")return qe.once("lookup",function(fn,Pn,Mn){ut("Request#%d %s lookup: %s, %s, %s",he,Ut,fn,Pn,Mn),We&&(We.dnslookup=Date.now()-se),Pn&&(ye=Pn)}),void qe.once("connect",function(){We&&(We.connected=Date.now()-se),te(),Ge(),ut("Request#%d %s new socket connected",he,Ut),Et=!0,ye||(ye=qe.remoteAddress),Ue=qe.remotePort});ut("Request#%d %s reuse socket connected, readyState: %s",he,Ut,En),Et=!0,$t=!0,ye||(ye=qe.remoteAddress),Ue=qe.remotePort,te(),Ge()}),nn.on("error",function(qe){qe.name!=="Error"&&qe.name!=="TypeError"||(qe.name=Et?"ResponseError":"RequestError"),qe.message+=' (req "error")',ut("Request#%d %s `req error` event emit, %s: %s",he,Ut,qe.name,qe.message),de(Pt||qe)}),Ee&&Ee.once("error",function(qe){qe.message+=' (writeStream "error")',Pt=qe,ut("Request#%d %s `writeStream error` event emit, %s: %s",he,Ut,qe.name,qe.message),Pe()}),Nt.stream?(Nt.stream.pipe(nn),Nt.stream.once("error",function(qe){qe.message+=' (stream "error")',Pt=qe,ut("Request#%d %s `readStream error` event emit, %s: %s",he,Ut,qe.name,qe.message),Pe()})):nn.end(ie),nn.requestId=he,nn}}).call(this,wt("_process"),wt("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),function(ee){function wt(Zt){if(Qt[Zt])return Qt[Zt].exports;var Ot=Qt[Zt]={i:Zt,l:!1,exports:{}};return ee[Zt].call(Ot.exports,Ot,Ot.exports,wt),Ot.l=!0,Ot.exports}var Qt={};wt.m=ee,wt.c=Qt,wt.d=function(Zt,Ot,jt){wt.o(Zt,Ot)||Object.defineProperty(Zt,Ot,{configurable:!1,enumerable:!0,get:jt})},wt.n=function(Zt){var Ot=Zt&&Zt.__esModule?function(){return Zt.default}:function(){return Zt};return wt.d(Ot,"a",Ot),Ot},wt.o=function(Zt,Ot){return Object.prototype.hasOwnProperty.call(Zt,Ot)},wt.p="",wt(wt.s=12)}([function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot()})(0,function(){var Zt=Zt||function(Ot,jt){var Ct=Object.create||function(){function ot(){}return function(ut){var ct;return ot.prototype=ut,ct=new ot,ot.prototype=null,ct}}(),Mt={},Bt=Mt.lib={},St=Bt.Base=function(){return{extend:function(ot){var ut=Ct(this);return ot&&ut.mixIn(ot),ut.hasOwnProperty("init")&&this.init!==ut.init||(ut.init=function(){ut.$super.init.apply(this,arguments)}),ut.init.prototype=ut,ut.$super=this,ut},create:function(){var ot=this.extend();return ot.init.apply(ot,arguments),ot},init:function(){},mixIn:function(ot){for(var ut in ot)ot.hasOwnProperty(ut)&&(this[ut]=ot[ut]);ot.hasOwnProperty("toString")&&(this.toString=ot.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),kt=Bt.WordArray=St.extend({init:function(ot,ut){ot=this.words=ot||[],this.sigBytes=ut!=null?ut:4*ot.length},toString:function(ot){return(ot||Dt).stringify(this)},concat:function(ot){var ut=this.words,ct=ot.words,ft=this.sigBytes,gt=ot.sigBytes;if(this.clamp(),ft%4)for(var Lt=0;Lt<gt;Lt++){var Rt=ct[Lt>>>2]>>>24-Lt%4*8&255;ut[ft+Lt>>>2]|=Rt<<24-(ft+Lt)%4*8}else for(var Lt=0;Lt<gt;Lt+=4)ut[ft+Lt>>>2]=ct[Lt>>>2];return this.sigBytes+=gt,this},clamp:function(){var ot=this.words,ut=this.sigBytes;ot[ut>>>2]&=4294967295<<32-ut%4*8,ot.length=Ot.ceil(ut/4)},clone:function(){var ot=St.clone.call(this);return ot.words=this.words.slice(0),ot},random:function(ot){for(var ut,ct=[],ft=0;ft<ot;ft+=4){var gt=function(Rt){var Rt=Rt,Ut=987654321,Nt=4294967295;return function(){Ut=36969*(65535&Ut)+(Ut>>16)&Nt,Rt=18e3*(65535&Rt)+(Rt>>16)&Nt;var qt=(Ut<<16)+Rt&Nt;return qt/=4294967296,(qt+=.5)*(Ot.random()>.5?1:-1)}}(4294967296*(ut||Ot.random()));ut=987654071*gt(),ct.push(4294967296*gt()|0)}return new kt.init(ct,ot)}}),xt=Mt.enc={},Dt=xt.Hex={stringify:function(ot){for(var ut=ot.words,ct=ot.sigBytes,ft=[],gt=0;gt<ct;gt++){var Lt=ut[gt>>>2]>>>24-gt%4*8&255;ft.push((Lt>>>4).toString(16)),ft.push((15&Lt).toString(16))}return ft.join("")},parse:function(ot){for(var ut=ot.length,ct=[],ft=0;ft<ut;ft+=2)ct[ft>>>3]|=parseInt(ot.substr(ft,2),16)<<24-ft%8*4;return new kt.init(ct,ut/2)}},yt=xt.Latin1={stringify:function(ot){for(var ut=ot.words,ct=ot.sigBytes,ft=[],gt=0;gt<ct;gt++){var Lt=ut[gt>>>2]>>>24-gt%4*8&255;ft.push(String.fromCharCode(Lt))}return ft.join("")},parse:function(ot){for(var ut=ot.length,ct=[],ft=0;ft<ut;ft++)ct[ft>>>2]|=(255&ot.charCodeAt(ft))<<24-ft%4*8;return new kt.init(ct,ut)}},et=xt.Utf8={stringify:function(ot){try{return decodeURIComponent(escape(yt.stringify(ot)))}catch(ut){throw new Error("Malformed UTF-8 data")}},parse:function(ot){return yt.parse(unescape(encodeURIComponent(ot)))}},tt=Bt.BufferedBlockAlgorithm=St.extend({reset:function(){this._data=new kt.init,this._nDataBytes=0},_append:function(ot){typeof ot=="string"&&(ot=et.parse(ot)),this._data.concat(ot),this._nDataBytes+=ot.sigBytes},_process:function(ot){var ut=this._data,ct=ut.words,ft=ut.sigBytes,gt=this.blockSize,Lt=4*gt,Rt=ft/Lt;Rt=ot?Ot.ceil(Rt):Ot.max((0|Rt)-this._minBufferSize,0);var Ut=Rt*gt,Nt=Ot.min(4*Ut,ft);if(Ut){for(var qt=0;qt<Ut;qt+=gt)this._doProcessBlock(ct,qt);var te=ct.splice(0,Ut);ut.sigBytes-=Nt}return new kt.init(te,Nt)},clone:function(){var ot=St.clone.call(this);return ot._data=this._data.clone(),ot},_minBufferSize:0}),lt=(Bt.Hasher=tt.extend({cfg:St.extend(),init:function(ot){this.cfg=this.cfg.extend(ot),this.reset()},reset:function(){tt.reset.call(this),this._doReset()},update:function(ot){return this._append(ot),this._process(),this},finalize:function(ot){return ot&&this._append(ot),this._doFinalize()},blockSize:16,_createHelper:function(ot){return function(ut,ct){return new ot.init(ct).finalize(ut)}},_createHmacHelper:function(ot){return function(ut,ct){return new lt.HMAC.init(ot,ct).finalize(ut)}}}),Mt.algo={});return Mt}(Math);return Zt})},function(ee,wt,Qt){"use strict";function Zt(Ct,Mt){if(!(Ct instanceof Mt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Ct(Mt,Bt){for(var St=0;St<Bt.length;St++){var kt=Bt[St];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Mt,kt.key,kt)}}return function(Mt,Bt,St){return Bt&&Ct(Mt.prototype,Bt),St&&Ct(Mt,St),Mt}}(),jt=function(){function Ct(){Zt(this,Ct)}return Ot(Ct,null,[{key:"detectIEVersion",value:function(){for(var Mt=4,Bt=document.createElement("div"),St=Bt.getElementsByTagName("i");Bt.innerHTML="<!--[if gt IE "+Mt+"]><i></i><![endif]-->",St[0];)Mt++;return Mt>4&&Mt}},{key:"extend",value:function(Mt,Bt){for(var St in Bt)Object.prototype.hasOwnProperty.call(Bt,St)&&Bt[St]&&(Mt[St]=Bt[St])}},{key:"isArray",value:function(Mt){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(Mt){return Mt=Mt.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(Mt)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(Mt)?"audio":/.bmp|.jpg|.jpeg|.png/.test(Mt)?"img":"other"}},{key:"isImage",value:function(Mt){return Mt=Mt.toLowerCase(),!!/.jpg|.jpeg|.png/.test(Mt)}},{key:"ISODateString",value:function(Mt){function Bt(St){return St<10?"0"+St:St}return Mt.getUTCFullYear()+"-"+Bt(Mt.getUTCMonth()+1)+"-"+Bt(Mt.getUTCDate())+"T"+Bt(Mt.getUTCHours())+":"+Bt(Mt.getUTCMinutes())+":"+Bt(Mt.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(Mt){return!!/^\d+$/.test(Mt)}}]),Ct}();wt.default=jt},function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot(Qt(0))})(0,function(Zt){return function(Ot){function jt(lt,ot,ut,ct,ft,gt,Lt){var Rt=lt+(ot&ut|~ot&ct)+ft+Lt;return(Rt<<gt|Rt>>>32-gt)+ot}function Ct(lt,ot,ut,ct,ft,gt,Lt){var Rt=lt+(ot&ct|ut&~ct)+ft+Lt;return(Rt<<gt|Rt>>>32-gt)+ot}function Mt(lt,ot,ut,ct,ft,gt,Lt){var Rt=lt+(ot^ut^ct)+ft+Lt;return(Rt<<gt|Rt>>>32-gt)+ot}function Bt(lt,ot,ut,ct,ft,gt,Lt){var Rt=lt+(ut^(ot|~ct))+ft+Lt;return(Rt<<gt|Rt>>>32-gt)+ot}var St=Zt,kt=St.lib,xt=kt.WordArray,Dt=kt.Hasher,yt=St.algo,et=[];(function(){for(var lt=0;lt<64;lt++)et[lt]=4294967296*Ot.abs(Ot.sin(lt+1))|0})();var tt=yt.MD5=Dt.extend({_doReset:function(){this._hash=new xt.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(lt,ot){for(var ut=0;ut<16;ut++){var ct=ot+ut,ft=lt[ct];lt[ct]=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8)}var gt=this._hash.words,Lt=lt[ot+0],Rt=lt[ot+1],Ut=lt[ot+2],Nt=lt[ot+3],qt=lt[ot+4],te=lt[ot+5],Vt=lt[ot+6],de=lt[ot+7],ge=lt[ot+8],be=lt[ot+9],Ne=lt[ot+10],Ge=lt[ot+11],Pe=lt[ot+12],ze=lt[ot+13],he=lt[ot+14],Jt=lt[ot+15],re=gt[0],se=gt[1],pe=gt[2],ue=gt[3];re=jt(re,se,pe,ue,Lt,7,et[0]),ue=jt(ue,re,se,pe,Rt,12,et[1]),pe=jt(pe,ue,re,se,Ut,17,et[2]),se=jt(se,pe,ue,re,Nt,22,et[3]),re=jt(re,se,pe,ue,qt,7,et[4]),ue=jt(ue,re,se,pe,te,12,et[5]),pe=jt(pe,ue,re,se,Vt,17,et[6]),se=jt(se,pe,ue,re,de,22,et[7]),re=jt(re,se,pe,ue,ge,7,et[8]),ue=jt(ue,re,se,pe,be,12,et[9]),pe=jt(pe,ue,re,se,Ne,17,et[10]),se=jt(se,pe,ue,re,Ge,22,et[11]),re=jt(re,se,pe,ue,Pe,7,et[12]),ue=jt(ue,re,se,pe,ze,12,et[13]),pe=jt(pe,ue,re,se,he,17,et[14]),se=jt(se,pe,ue,re,Jt,22,et[15]),re=Ct(re,se,pe,ue,Rt,5,et[16]),ue=Ct(ue,re,se,pe,Vt,9,et[17]),pe=Ct(pe,ue,re,se,Ge,14,et[18]),se=Ct(se,pe,ue,re,Lt,20,et[19]),re=Ct(re,se,pe,ue,te,5,et[20]),ue=Ct(ue,re,se,pe,Ne,9,et[21]),pe=Ct(pe,ue,re,se,Jt,14,et[22]),se=Ct(se,pe,ue,re,qt,20,et[23]),re=Ct(re,se,pe,ue,be,5,et[24]),ue=Ct(ue,re,se,pe,he,9,et[25]),pe=Ct(pe,ue,re,se,Nt,14,et[26]),se=Ct(se,pe,ue,re,ge,20,et[27]),re=Ct(re,se,pe,ue,ze,5,et[28]),ue=Ct(ue,re,se,pe,Ut,9,et[29]),pe=Ct(pe,ue,re,se,de,14,et[30]),se=Ct(se,pe,ue,re,Pe,20,et[31]),re=Mt(re,se,pe,ue,te,4,et[32]),ue=Mt(ue,re,se,pe,ge,11,et[33]),pe=Mt(pe,ue,re,se,Ge,16,et[34]),se=Mt(se,pe,ue,re,he,23,et[35]),re=Mt(re,se,pe,ue,Rt,4,et[36]),ue=Mt(ue,re,se,pe,qt,11,et[37]),pe=Mt(pe,ue,re,se,de,16,et[38]),se=Mt(se,pe,ue,re,Ne,23,et[39]),re=Mt(re,se,pe,ue,ze,4,et[40]),ue=Mt(ue,re,se,pe,Lt,11,et[41]),pe=Mt(pe,ue,re,se,Nt,16,et[42]),se=Mt(se,pe,ue,re,Vt,23,et[43]),re=Mt(re,se,pe,ue,be,4,et[44]),ue=Mt(ue,re,se,pe,Pe,11,et[45]),pe=Mt(pe,ue,re,se,Jt,16,et[46]),se=Mt(se,pe,ue,re,Ut,23,et[47]),re=Bt(re,se,pe,ue,Lt,6,et[48]),ue=Bt(ue,re,se,pe,de,10,et[49]),pe=Bt(pe,ue,re,se,he,15,et[50]),se=Bt(se,pe,ue,re,te,21,et[51]),re=Bt(re,se,pe,ue,Pe,6,et[52]),ue=Bt(ue,re,se,pe,Nt,10,et[53]),pe=Bt(pe,ue,re,se,Ne,15,et[54]),se=Bt(se,pe,ue,re,Rt,21,et[55]),re=Bt(re,se,pe,ue,ge,6,et[56]),ue=Bt(ue,re,se,pe,Jt,10,et[57]),pe=Bt(pe,ue,re,se,Vt,15,et[58]),se=Bt(se,pe,ue,re,ze,21,et[59]),re=Bt(re,se,pe,ue,qt,6,et[60]),ue=Bt(ue,re,se,pe,Ge,10,et[61]),pe=Bt(pe,ue,re,se,Ut,15,et[62]),se=Bt(se,pe,ue,re,be,21,et[63]),gt[0]=gt[0]+re|0,gt[1]=gt[1]+se|0,gt[2]=gt[2]+pe|0,gt[3]=gt[3]+ue|0},_doFinalize:function(){var lt=this._data,ot=lt.words,ut=8*this._nDataBytes,ct=8*lt.sigBytes;ot[ct>>>5]|=128<<24-ct%32;var ft=Ot.floor(ut/4294967296),gt=ut;ot[15+(ct+64>>>9<<4)]=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8),ot[14+(ct+64>>>9<<4)]=16711935&(gt<<8|gt>>>24)|4278255360&(gt<<24|gt>>>8),lt.sigBytes=4*(ot.length+1),this._process();for(var Lt=this._hash,Rt=Lt.words,Ut=0;Ut<4;Ut++){var Nt=Rt[Ut];Rt[Ut]=16711935&(Nt<<8|Nt>>>24)|4278255360&(Nt<<24|Nt>>>8)}return Lt},clone:function(){var lt=Dt.clone.call(this);return lt._hash=this._hash.clone(),lt}});St.MD5=Dt._createHelper(tt),St.HmacMD5=Dt._createHmacHelper(tt)}(Math),Zt.MD5})},function(ee,wt,Qt){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},wt.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},wt.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(ee,wt,Qt){"use strict";function Zt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Ot(tt,lt){if(!(tt instanceof lt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var jt=function(){function tt(lt,ot){for(var ut=0;ut<ot.length;ut++){var ct=ot[ut];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(lt,ct.key,ct)}}return function(lt,ot,ut){return ot&&tt(lt.prototype,ot),ut&&tt(lt,ut),lt}}(),Ct=Qt(5),Mt=Zt(Ct),Bt=Qt(25),St=Zt(Bt),kt=Qt(6),xt=Zt(kt),Dt=Qt(7),yt=Zt(Dt),et=function(){function tt(lt){Ot(this,tt);var ot=yt.default.os.name,ut=yt.default.os.version||"",ct=yt.default.browser.name,ft=yt.default.browser.version||"",gt=window.location.href,Lt="";gt&&(Lt=yt.default.getHost(gt));var Rt="pc";yt.default.os.ipad?Rt="pad":(yt.default.os.iphone||yt.default.os.android)&&(Rt="phone"),this._ri=Mt.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:xt.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:tt.getUuid(),os:ot,ov:ut,et:ct,ev:ft,uat:navigator.userAgent,app_n:Lt,tt:Rt,dm:"h5",ut:""}}return jt(tt,[{key:"log",value:function(lt,ot){ot&&ot.ri?(this._ri=ot.ri,delete ot.ri):this._ri=Mt.default.create(),ot&&ot.ut&&(this.initParam.ut=ot.ut,delete ot.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=lt=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=lt;var ut=[];if(ot)for(var ct in ot)ut.push(ct+"="+ot[ct]);var ft=ut.join("&");this.initParam.args=encodeURIComponent(ft==""?"0":ft);var gt=[];for(var ct in this.initParam)gt.push(ct+"="+this.initParam[ct]);var Lt=gt.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(Lt):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+Lt}}],[{key:"getUuid",value:function(){var lt=St.default.get("p_h5_upload_u");return lt||(lt=Mt.default.create(),St.default.set("p_h5_upload_u",lt,730)),lt}},{key:"getClientId",value:function(){return St.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(lt){return lt||(lt=Mt.default.create()),St.default.set("p_h5_upload_clientId",lt,730),lt}}]),tt}();wt.default=et},function(ee,wt,Qt){"use strict";function Zt(Ct,Mt){if(!(Ct instanceof Mt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Ct(Mt,Bt){for(var St=0;St<Bt.length;St++){var kt=Bt[St];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Mt,kt.key,kt)}}return function(Mt,Bt,St){return Bt&&Ct(Mt.prototype,Bt),St&&Ct(Mt,St),Mt}}(),jt=function(){function Ct(){Zt(this,Ct)}return Ot(Ct,null,[{key:"create",value:function(Mt,Bt){var St,kt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),xt=[];if(Bt=Bt||kt.length,Mt)for(St=0;St<Mt;St++)xt[St]=kt[0|Math.random()*Bt];else{var Dt;for(xt[8]=xt[13]=xt[18]=xt[23]="-",xt[14]="4",St=0;St<36;St++)xt[St]||(Dt=0|16*Math.random(),xt[St]=kt[St==19?3&Dt|8:Dt])}return xt.join("")}}]),Ct}();wt.default=jt},function(ee,wt,Qt){"use strict";Object.defineProperty(wt,"__esModule",{value:!0});var Zt={version:"1.5.0"};wt.default=Zt},function(ee,wt,Qt){"use strict";function Zt(kt,xt){if(!(kt instanceof xt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function kt(xt,Dt){for(var yt=0;yt<Dt.length;yt++){var et=Dt[yt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(xt,et.key,et)}}return function(xt,Dt,yt){return Dt&&kt(xt.prototype,Dt),yt&&kt(xt,yt),xt}}(),jt=function(kt){var xt=navigator.userAgent,Dt="other";if(kt.ios)return"iOS";if(kt.android)return"android";if(xt.indexOf("Baiduspider")>-1)return"Baiduspider";if(xt.indexOf("PlayStation")>-1)return"PS4";var yt=navigator.platform=="Win32"||navigator.platform=="Windows"||xt.indexOf("Windows")>-1,et=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return et&&(Dt="macOS"),navigator.platform=="X11"&&!yt&&!et&&(Dt="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(Dt="Linux"),yt?"windows":Dt},Ct=function(){var kt=navigator.userAgent,xt="";return(kt.indexOf("Windows NT 5.0")>-1||kt.indexOf("Windows 2000")>-1)&&(xt="2000"),(kt.indexOf("Windows NT 5.1")>-1||kt.indexOf("Windows XP")>-1)&&(xt="XP"),(kt.indexOf("Windows NT 5.2")>-1||kt.indexOf("Windows 2003")>-1)&&(xt="2003"),(kt.indexOf("Windows NT 6.0")>-1||kt.indexOf("Windows Vista")>-1)&&(xt="Vista"),(kt.indexOf("Windows NT 6.1")>-1||kt.indexOf("Windows 7")>-1)&&(xt="7"),(kt.indexOf("Windows NT 6.2")>-1||kt.indexOf("Windows 8")>-1)&&(xt="8"),(kt.indexOf("Windows NT 6.3")>-1||kt.indexOf("Windows 8.1")>-1)&&(xt="8.1"),(kt.indexOf("Windows NT 10")>-1||kt.indexOf("Windows 10")>-1)&&(xt="10"),xt},Mt=function(kt){var xt=navigator.userAgent.toLowerCase();return kt.chrome?"Chrome":kt.firefox?"Firefox":kt.safari?"Safari":kt.webview?"webview":kt.ie?/edge/.test(xt)?"Edge":"IE":/baiduspider/.test(xt)?"Baiduspider":/ucweb/.test(xt)||/UCBrowser/.test(xt)?"UC":/opera/.test(xt)?"Opera":/ucweb/.test(xt)?"UC":/360se/.test(xt)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(xt)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(xt)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(xt)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(xt)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(xt)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(xt)?"PS4\u6D4F\u89C8\u5668":void 0},Bt=function(){var kt={},xt={},Dt=navigator.userAgent,yt=navigator.platform,et=Dt.match(/Web[kK]it[\/]{0,1}([\d.]+)/),tt=Dt.match(/(Android);?[\s\/]+([\d.]+)?/),lt=!!Dt.match(/\(Macintosh\; Intel /),ot=Dt.match(/(iPad).*OS\s([\d_]+)/),ut=Dt.match(/(iPod)(.*OS\s([\d_]+))?/),ct=!ot&&Dt.match(/(iPhone\sOS)\s([\d_]+)/),ft=Dt.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),gt=/Win\d{2}|Windows/.test(yt),Lt=Dt.match(/Windows Phone ([\d.]+)/),Rt=ft&&Dt.match(/TouchPad/),Ut=Dt.match(/Kindle\/([\d.]+)/),Nt=Dt.match(/Silk\/([\d._]+)/),qt=Dt.match(/(BlackBerry).*Version\/([\d.]+)/),te=Dt.match(/(BB10).*Version\/([\d.]+)/),Vt=Dt.match(/(RIM\sTablet\sOS)\s([\d.]+)/),de=Dt.match(/PlayBook/),ge=Dt.match(/Chrome\/([\d.]+)/)||Dt.match(/CriOS\/([\d.]+)/),be=Dt.match(/Firefox\/([\d.]+)/),Ne=Dt.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Ge=Dt.match(/MSIE\s([\d.]+)/)||Dt.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),Pe=!ge&&Dt.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ze=Pe||Dt.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((xt.webkit=!!et)&&(xt.version=et[1]),tt&&(kt.android=!0,kt.version=tt[2]),ct&&!ut&&(kt.ios=kt.iphone=!0,kt.version=ct[2].replace(/_/g,".")),ot&&(kt.ios=kt.ipad=!0,kt.version=ot[2].replace(/_/g,".")),ut&&(kt.ios=kt.ipod=!0,kt.version=ut[3]?ut[3].replace(/_/g,"."):null),Lt&&(kt.wp=!0,kt.version=Lt[1]),ft&&(kt.webos=!0,kt.version=ft[2]),Rt&&(kt.touchpad=!0),qt&&(kt.blackberry=!0,kt.version=qt[2]),te&&(kt.bb10=!0,kt.version=te[2]),Vt&&(kt.rimtabletos=!0,kt.version=Vt[2]),de&&(xt.playbook=!0),Ut&&(kt.kindle=!0,kt.version=Ut[1]),Nt&&(xt.silk=!0,xt.version=Nt[1]),!Nt&&kt.android&&Dt.match(/Kindle Fire/)&&(xt.silk=!0),ge&&(xt.chrome=!0,xt.version=ge[1]),be&&(xt.firefox=!0,xt.version=be[1]),Ne&&(kt.firefoxos=!0,kt.version=Ne[1]),Ge&&(xt.ie=!0,xt.version=Ge[1]),ze&&(lt||kt.ios||gt||tt)&&(xt.safari=!0,kt.ios||(xt.version=ze[1])),Pe&&(xt.webview=!0),lt){var he=Dt.match(/[\d]*_[\d]*_[\d]*/);he&&he.length>0&&he[0]&&(kt.version=he[0].replace(/_/g,"."))}return kt.tablet=!!(ot||de||tt&&!Dt.match(/Mobile/)||be&&Dt.match(/Tablet/)||Ge&&!Dt.match(/Phone/)&&Dt.match(/Touch/)),kt.phone=!(kt.tablet||kt.ipod||!(tt||ct||ft||qt||te||ge&&Dt.match(/Android/)||ge&&Dt.match(/CriOS\/([\d.]+)/)||be&&Dt.match(/Mobile/)||Ge&&Dt.match(/Touch/))),kt.pc=!kt.tablet&&!kt.phone,lt?kt.name="macOS":gt?(kt.name="windows",kt.version=Ct()):kt.name=jt(kt),xt.name=Mt(xt),{os:kt,browser:xt}}(),St=function(){function kt(){Zt(this,kt)}return Ot(kt,null,[{key:"getHost",value:function(xt){var et="";if(xt===void 0||xt==null||xt=="")return"";var Dt=xt.indexOf("//"),yt=xt;Dt>-1&&(yt=xt.substring(Dt+2));var et=yt,tt=yt.split("/");return tt&&tt.length>0&&(et=tt[0]),tt=et.split(":"),tt&&tt.length>0&&(et=tt[0]),et}},{key:"os",get:function(){return Bt.os}},{key:"browser",get:function(){var xt=Bt.browser;return xt.name||(xt.name=Mt()),xt}}]),kt}();wt.default=St},function(ee,wt,Qt){"use strict";function Zt(Ct,Mt){if(!(Ct instanceof Mt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Ct(Mt,Bt){for(var St=0;St<Bt.length;St++){var kt=Bt[St];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Mt,kt.key,kt)}}return function(Mt,Bt,St){return Bt&&Ct(Mt.prototype,Bt),St&&Ct(Mt,St),Mt}}(),jt=function(){function Ct(){Zt(this,Ct)}return Ot(Ct,null,[{key:"get",value:function(Mt,Bt,St,kt,xt){var Dt;St=St||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(yt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(yt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(yt){}throw new Error("This browser does not support XMLHttpRequest.")}),Dt=new XMLHttpRequest,Dt.onreadystatechange=function(){Dt.readyState===4&&(Dt.status===200?Bt(Dt.responseText):St(Dt.responseText))};try{kt===void 0&&(kt=!0),Dt.open("GET",Mt,kt),xt&&(Dt.withCredentials=!0)}catch(yt){return void St(yt)}try{Dt.send()}catch(yt){St(yt)}}}]),Ct}();wt.default=jt},function(ee,wt,Qt){"use strict";function Zt(Bt,St){if(!(Bt instanceof St))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Bt(St,kt){for(var xt=0;xt<kt.length;xt++){var Dt=kt[xt];Dt.enumerable=Dt.enumerable||!1,Dt.configurable=!0,"value"in Dt&&(Dt.writable=!0),Object.defineProperty(St,Dt.key,Dt)}}return function(St,kt,xt){return kt&&Bt(St.prototype,kt),xt&&Bt(St,xt),St}}(),jt=Qt(27),Ct=Qt(30),Mt=(Qt(10),function(){function Bt(){Zt(this,Bt)}return Ot(Bt,null,[{key:"randomUUID",value:function(){for(var St=[],kt="0123456789abcdef",xt=0;xt<36;xt++)St[xt]=kt.substr(Math.floor(16*Math.random()),1);return St[14]="4",St[19]=kt.substr(3&St[19]|8,1),St[8]=St[13]=St[18]=St[23]="-",St.join("")}},{key:"aliyunEncodeURI",value:function(St){var kt=encodeURIComponent(St);return kt=kt.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(St,kt,xt){if(!St)throw new Error("PrismPlayer Error: vid should not be null!");var Dt=[];for(var yt in St)Dt.push(yt);for(var et=Dt.sort(),tt="",lt=et.length,yt=0;yt<lt;yt++){var ot=Bt.aliyunEncodeURI(et[yt]),ut=Bt.aliyunEncodeURI(St[et[yt]]);tt==""?tt=ot+kt+ut:tt+=xt+ot+kt+ut}return tt}},{key:"makeChangeSiga",value:function(St,kt){if(!St)throw new Error("PrismPlayer Error: vid should not be null!");return Ct.stringify(jt("GET&"+Bt.aliyunEncodeURI("/")+"&"+Bt.aliyunEncodeURI(Bt.makeUTF8sort(St,"=","&")),kt+"&"))}}]),Bt}());wt.default=Mt},function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot(Qt(0))})(0,function(Zt){return Zt.enc.Utf8})},function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot(Qt(0))})(0,function(Zt){return Zt.enc.Hex})},function(ee,wt,Qt){ee.exports=Qt(13)},function(ee,wt,Qt){"use strict";var Zt,Ot,jt=Qt(14),Ct=function(Bt){return Bt&&Bt.__esModule?Bt:{default:Bt}}(jt),Mt={Vod:Ct.default};Zt=[],(Ot=function(){return Mt}.apply(wt,Zt))!==void 0&&(ee.exports=Ot),window.AliyunUpload=Mt,Cn.exports=AliyunUpload},function(ee,wt,Qt){"use strict";function Zt(te){return te&&te.__esModule?te:{default:te}}function Ot(te,Vt){if(!(te instanceof Vt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var jt=function(){function te(Vt,de){for(var ge=0;ge<de.length;ge++){var be=de[ge];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(Vt,be.key,be)}}return function(Vt,de,ge){return de&&te(Vt.prototype,de),ge&&te(Vt,ge),Vt}}(),Ct=Qt(15),Mt=Qt(3),Bt=Qt(16),St=Zt(Bt),kt=Qt(18),xt=Zt(kt),Dt=Qt(24),yt=Zt(Dt),et=Qt(4),tt=Zt(et),lt=Qt(1),ot=Zt(lt),ut=Qt(5),ct=Zt(ut),ft=Qt(26),gt=Zt(ft),Lt=Qt(31),Rt=Zt(Lt),Ut=Qt(32),Nt=Zt(Ut),qt=(Qt(2),function(){function te(Vt){Ot(this,te),this.options=Vt,this.options.partSize=this.options.partSize||Mt.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||Mt.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=Ct.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new tt.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=Ct.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return jt(te,[{key:"init",value:function(Vt,de,ge,be){return this._retryCount=0,!(ge&&!be||!ge&&be)&&!(Vt&&!de||!Vt&&de)&&(this._ossCreditor.accessKeyId=Vt,this._ossCreditor.accessKeySecret=de,this._ossCreditor.securityToken=ge,this._ossCreditor.expireTime=be,!0)}},{key:"addFile",value:function(Vt,de,ge,be,Ne,Ge){if(!Vt)return!1;if(Vt.size==0)try{this.options.onUploadFailed({file:Vt},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(Jt){console.log(Jt)}for(var Pe=(this.options,0);Pe<this._uploadList.length;Pe++)if(this._uploadList[Pe].file==Vt)return!1;var ze=new Object;if(ze.file=Vt,ze._endpoint=de,ze._bucket=ge,ze._object=be,ze.state=Ct.UPLOADSTATE.INIT,ze.isImage=ot.default.isImage(Vt.name),!ze.isImage&&this.options.enableUploadProgress){var he=this;Nt.default.getMd5(Vt,function(Jt){ze.fileHash=Jt;var re=he._getCheckoutpoint(ze);he.options.localCheckpoint||re||he._getCheckoutpointFromCloud(ze,function(se){if(se.UploadPoint){var pe=JSON.parse(se.UploadPoint);pe.loaded!=1&&(ze.checkpoint=pe.checkpoint,ze.loaded=pe.loaded,ze.videoId=se.VideoId,he._saveCheckoutpoint(ze,pe.checkpoint))}},function(se){try{if((se=JSON.parse(se))&&se.Code=="InvalidParameter"&&se.Message.indexOf("UserId")>0){he._invalidUserId=!0;var pe=se.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(pe)}}catch(ue){console.log(ue)}})})}Ne&&(ze.videoInfo=Ne?JSON.parse(Ne).Vod:{},ze.userData=xt.default.encode(Ne)),ze.ri=ct.default.create(),this._uploadList.push(ze),this._reportLog("20001",ze,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(ze)}catch(Jt){console.log(Jt)}return!0}},{key:"deleteFile",value:function(Vt){return!!this.cancelFile(Vt)&&(this._uploadList.splice(Vt,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(Vt){if(this.options,Vt<0||Vt>=this._uploadList.length)return!1;var de=this._uploadList[Vt];if(Vt==this._curIndex&&de.state==Ct.UPLOADSTATE.UPLOADING){de.state=Ct.UPLOADSTATE.CANCELED;var ge=this._getCheckoutpoint(de);ge&&ge.checkpoint&&(ge=ge.checkpoint),ge&&this._ossUpload.abort(de),this._removeCheckoutpoint(de),this.nextUpload()}else de.state!=Ct.UPLOADSTATE.SUCCESS&&(de.state=Ct.UPLOADSTATE.CANCELED);return this._reportLog("20008",de),!0}},{key:"resumeFile",value:function(Vt){if(this.options,Vt<0||Vt>=this._uploadList.length)return!1;var de=this._uploadList[Vt];return de.state==Ct.UPLOADSTATE.CANCELED&&(de.state=Ct.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(Vt){return this._getCheckoutpoint({file:Vt})}},{key:"startUpload",value:function(Vt){if(this._retryCount=0,this.options,this._state==Ct.VODSTATE.START||this._state==Ct.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=Ct.VODSTATE.END);var de=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(de),this._state=Ct.VODSTATE.START}},{key:"nextUpload",value:function(){var Vt=this.options;if(this._state==Ct.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var de=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(de)}else{this._state=Ct.VODSTATE.END;try{Vt.onUploadEnd&&Vt.onUploadEnd(de)}catch(ge){console.log(ge)}}}},{key:"clear",value:function(Vt){for(var de=this.options,ge=0,be=0;be<this._uploadList.length;be++)de.uploadList[be].state==Ct.UPLOADSTATE.SUCCESS&&ge++,this._uploadList[be].state==Vt&&(de.uploadList.splice(be,1),be--);de.onClear&&de.onClear(de.uploadList.length,ge)}},{key:"stopUpload",value:function(){if((this._state==Ct.VODSTATE.START||this._state==Ct.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var Vt=this._uploadList[this._curIndex];this._state=Ct.VODSTATE.STOP,Vt.state=Ct.UPLOADSTATE.STOPED,this._changeState(Vt,Ct.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(Vt){var de=this;if(!Vt)return!1;var ge=JSON.parse(xt.default.decode(Vt));return!!(ge.AccessKeyId&&ge.AccessKeySecret&&ge.SecurityToken&&ge.Expiration)&&de.resumeUploadWithToken(ge.AccessKeyId,ge.AccessKeySecret,ge.SecurityToken,ge.Expiration)}},{key:"resumeUploadWithToken",value:function(Vt,de,ge,be){if(this.options,!(Vt&&de&&ge&&be)||this._state!=Ct.VODSTATE.EXPIRE||this._curIndex==-1)return!1;var Ne="";return this._uploadList.length>this._curIndex&&(Ne=this._uploadList[this._curIndex]),Ne&&(this.init(Vt,de,ge,be),this._state=Ct.VODSTATE.START,this._ossUpload=null,this._uploadCore(Ne,Ne.retry),Ne.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(Vt,de,ge){if(this._curIndex==-1||this._state!=Ct.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var be=this._uploadList[this._curIndex];be.object?this._refreshSTSTokenUpload(be,Vt,de,ge):this.setSTSToken(be,Vt,de,ge)}}},{key:"setSTSTokenDirectlyUpload",value:function(Vt,de,ge,be,Ne){if(!(de&&ge&&be&&Ne))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var Ge=Vt;this.init(de,ge,be,Ne),Ge.endpoint=Ge._endpoint,Ge.bucket=Ge._bucket,Ge.object=Ge._object,this._ossUpload=null,this._uploadCore(Ge,Vt.retry),Vt.retry=!1}},{key:"setSTSToken",value:function(Vt,de,ge,be){if(!de||!ge||!be)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var Ne=Vt.videoInfo,Ge={accessKeyId:de,securityToken:be,accessKeySecret:ge,fileName:Vt.file.name,title:Ne.Title,requestId:Vt.ri,region:this.options.region};Ne.ImageType&&(Ge.imageType=Ne.ImageType),Ne.ImageExt&&(Ge.imageExt=Ne.ImageExt),Ne.FileSize&&(Ge.fileSize=Ne.FileSize),Ne.Description&&(Ge.description=Ne.Description),Ne.CateId&&(Ge.cateId=Ne.CateId),Ne.Tags&&(Ge.tags=Ne.Tags),Ne.TemplateGroupId&&(Ge.templateGroupId=Ne.TemplateGroupId),Ne.StorageLocation&&(Ge.storageLocation=Ne.StorageLocation),Ne.CoverURL&&(Ge.coverUrl=Ne.CoverURL),Ne.TransCodeMode&&(Ge.transCodeMode=Ne.TransCodeMode),Ne.UserData&&(Ge.userData=Ne.UserData);var Pe=this,ze="getUploadAuth";Vt.videoId?(Ge.videoId=Vt.videoId,ze="refreshUploadAuth"):Vt.isImage&&(ze="getImageUploadAuth"),gt.default[ze](Ge,function(he){Vt.videoId=he.VideoId?he.VideoId:Vt.videoId,Pe.setUploadAuthAndAddress(Vt,he.UploadAuth,he.UploadAddress),Pe._state=Ct.VODSTATE.START},function(he){Pe._error(Vt,{name:he.Code,code:he.Code,message:he.Message,requestId:he.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(Vt,de,ge,be){if(!Vt||!de||!ge)return!1;var Ne=JSON.parse(xt.default.decode(de));if(!(Ne.AccessKeyId&&Ne.AccessKeySecret&&Ne.SecurityToken&&Ne.Expiration))return console.error("uploadauth is invalid"),!1;var Ge={},Pe=Vt;if(ge){if(Ge=JSON.parse(xt.default.decode(ge)),!Ge.Endpoint||!Ge.Bucket||!Ge.FileName)return console.error("uploadAddress is invalid"),!1}else Ge.Endpoint=Pe.endpoint,Ge.Bucket=Pe.bucket,Ge.FileName=Pe.object;this._ut="vod",this._uploadWay="vod",this.options.region=Ne.Region||this.options.region,this.init(Ne.AccessKeyId,Ne.AccessKeySecret,Ne.SecurityToken,Ne.Expiration),Pe.endpoint=Pe._endpoint?Pe._endpoint:Ge.Endpoint,Pe.bucket=Pe._bucket?Pe._bucket:Ge.Bucket,Pe.object=Pe._object?Pe._object:Ge.FileName,Pe.region=this.options.region,be&&(Pe.videoId=be),this._ossUpload=null,this._uploadCore(Pe,Vt.retry),Vt.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(Vt,de,ge,be){if(!de||!ge||!be)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var Ne={accessKeyId:de,securityToken:be,accessKeySecret:ge,videoId:Vt.object,requestId:Vt.ri,region:this.options.region},Ge=this,Pe="refreshUploadAuth";Vt.isImage&&(Pe="getImageUploadAuth"),gt.default[Pe](Ne,function(ze){Ge.setUploadAuthAndAddress(Vt,ze.UploadAuth,UploadAddress),Ge._state=Ct.VODSTATE.START},function(ze){Ge._error(Vt,{name:ze.Code,code:ze.Code,message:ze.Message,requestId:ze.RequestId})})}},{key:"_upload",value:function(Vt){var de=arguments.length>1&&arguments[1]!==void 0&&arguments[1],ge=this.options;if(Vt.retry=de,ge.onUploadstarted&&!de)try{var be=this._getCheckoutpoint(Vt);be&&be.state!=Ct.UPLOADSTATE.UPLOADING&&(Vt.checkpoint=be,Vt.videoId=be.videoId),ge.onUploadstarted(Vt)}catch(Ne){console.log(Ne)}}},{key:"_uploadCore",value:function(Vt){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(Vt.state=Ct.UPLOADSTATE.UPLOADING,!this._ossUpload){Vt.endpoint=Vt.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var de=this;this._ossUpload=new St.default({bucket:Vt.bucket,endpoint:Vt.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(he,Jt){de._error.call(de,he,Jt)},oncomplete:function(he,Jt){de._complete.call(de,he,Jt)},onprogress:function(he,Jt,re){de._progress.call(de,he,Jt,re)}})}var ge=ot.default.getFileType(Vt.file.name),be=this._getCheckoutpoint(Vt),Ne="",Ge="";be&&be.checkpoint&&(Ge=be.state,Ne=be.videoId,be=be.checkpoint),be&&Ne==Vt.videoId&&Ge!=Ct.UPLOADSTATE.UPLOADING&&(be.file=Vt.file,Vt.checkpoint=be,be.uploadId);var Pe=this._adjustPartSize(Vt);this._reportLog("20002",Vt,{ft:ge,fs:Vt.file.size,bu:Vt.bucket,ok:Vt.object,vid:Vt.videoId||"",fn:Vt.file.name,fw:null,fh:null,ps:Pe});var ze={headers:{"x-oss-notification":Vt.userData?Vt.userData:""},partSize:Pe,parallel:this.options.parallel};this._ossUpload.upload(Vt,ze)}},{key:"_findUploadIndex",value:function(){for(var Vt=-1,de=0;de<this._uploadList.length;de++)if(this._uploadList[de].state==Ct.UPLOADSTATE.INIT){Vt=de;break}return Vt}},{key:"_error",value:function(Vt,de){if(de.name=="cancel")try{this.options.onUploadCanceled(Vt,de)}catch(be){console.log(be)}else{if(de.message.indexOf("InvalidAccessKeyIdError")>0||de.name=="SignatureDoesNotMatchError"||de.code=="SecurityTokenExpired"||de.code=="InvalidSecurityToken.Expired"||de.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=Ct.VODSTATE.EXPIRE,Vt.state=Ct.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(Vt,de)}catch(be){console.log(be)}}return}if((de.name=="RequestTimeoutError"||de.name=="ConnectionTimeout"||de.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var ge=this;return setTimeout(function(){ge._uploadCore(Vt,!0)},1e3*ge._retryDuration),void this._retryCount++}de.name=="NoSuchUploadError"&&this._removeCheckoutpoint(Vt),this._handleError(Vt,de)}}},{key:"_handleError",value:function(Vt,de){var ge=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],be=Ct.UPLOADSTATE.FAIlURE;if(Vt.state!=Ct.UPLOADSTATE.CANCELED&&(Vt.state=Ct.UPLOADSTATE.FAIlURE,this._state=Ct.VODSTATE.FAILURE,this.options.onUploadFailed&&de&&de.code&&de.message))try{this.options.onUploadFailed(Vt,de.code,de.message)}catch(Ge){console.log(Ge)}if(ge&&this._changeState(Vt,be),this._reportLog("20006",Vt,{code:de.name,message:de.message,requestId:de.requestId,fs:Vt.file.size,bu:Vt.bucket,ok:Vt.object,fn:Vt.file.name}),this._reportLog("20004",Vt,{requestId:de.requestId,fs:Vt.file.size,bu:Vt.bucket,ok:Vt.object,fn:Vt.file.name}),Vt.ri=ct.default.create(),this._findUploadIndex()!=-1){var Ne=this;this._state=Ct.VODSTATE.START,setTimeout(function(){Ne.nextUpload()},100)}}},{key:"_complete",value:function(Vt,de){if(Vt.state=Ct.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(Vt)}catch(Ne){console.log(Ne)}var ge=0;de&&de.res&&de.res.headers&&(ge=de.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(Vt);var be=this;setTimeout(function(){be.nextUpload()},100),this._retryCount=0,this._reportLog("20003",Vt,{requestId:ge})}},{key:"_progress",value:function(Vt,de,ge){if(this.options.onUploadProgress)try{Vt.loaded=de.loaded,this.options.onUploadProgress(Vt,de.total,de.loaded)}catch(Jt){console.log(Jt)}var be=de.checkpoint,Ne=0;be&&(Vt.checkpoint=be,this._saveCheckoutpoint(Vt,be,Ct.UPLOADSTATE.UPLOADING),Ne=be.uploadId),this._retryCount=0;var Ge=this._getPortNumber(be),Pe=0;if(ge&&ge.headers&&(Pe=ge.headers["x-oss-request-id"]),de.loaded!=0&&this._reportLog("20007",Vt,{pn:Ge,requestId:Pe}),de.loaded!=1&&this._reportLog("20005",Vt,{UploadId:Ne,pn:Ge+1,pr:Vt.retry?1:0,fs:Vt.file.size,bu:Vt.bucket,ok:Vt.object,fn:Vt.file.name}),!this._invalidUserId&&!Vt.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var ze={file:Vt.file,checkpoint:de,userId:this.options.userId,videoId:Vt.videoId,region:this.options.region,fileHash:Vt.fileHash};try{var he=this;Rt.default.upload(ze,function(){},function(Jt){if((Jt=JSON.parse(Jt))&&Jt.Code=="InvalidParameter"&&Jt.Message.indexOf("UserId")>0){he._invalidUserId=!0;var re=Jt.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(re)}})}catch(Jt){console.log(Jt)}}}},{key:"_getPortNumber",value:function(Vt){if(Vt){var de=Vt.doneParts;if(de&&de.length>0)return de[de.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(Vt){var de=this._getCheckoutpointKey(Vt);yt.default.remove(de)}},{key:"_getCheckoutpoint",value:function(Vt){var de=this._getCheckoutpointKey(Vt),ge=yt.default.get(de);if(ge)try{return JSON.parse(ge)}catch(be){}return""}},{key:"_saveCheckoutpoint",value:function(Vt,de,ge){if(de){var be=this._getCheckoutpointKey(Vt),Ne=Vt.file,Ge={fileName:Ne.name,lastModified:Ne.lastModified,size:Ne.size,object:Vt.object,videoId:Vt.videoId,bucket:Vt.bucket,endpoint:Vt.endpoint,checkpoint:de,loaded:Vt.loaded,state:ge};yt.default.set(be,JSON.stringify(Ge))}}},{key:"_changeState",value:function(Vt,de){var ge=this._getCheckoutpoint(Vt);ge&&((this._onbeforeunload=!0)&&(de=Ct.UPLOADSTATE.STOPED),this._saveCheckoutpoint(Vt,ge.checkpoint,de))}},{key:"_getCheckoutpointKey",value:function(Vt){return"upload_"+Vt.file.lastModified+"_"+Vt.file.name+"_"+Vt.file.size}},{key:"_getCheckoutpointFromCloud",value:function(Vt,de,ge){var be={userId:this.options.userId,uploadInfoList:[{FileName:Vt.file.name,FileSize:Vt.file.size,FileCreateTime:Vt.file.lastModified,FileHash:Vt.fileHash}],region:this.options.region};Rt.default.get(be,function(Ne){de(Ne)},ge)}},{key:"_reportLog",value:function(Vt,de,ge){ge||(ge={}),ge.ri=de.ri,this._ut&&(ge.ut=this._ut),this._log.log(Vt,ge)}},{key:"_initEvent",value:function(){var Vt=this;window&&(window.onbeforeunload=function(de){if(Vt._onbeforeunload=!0,Vt._curIndex!=-1&&Vt._uploadList.length>Vt._curIndex){var ge=Vt._uploadList[Vt._curIndex];Vt._changeState(ge,Ct.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var Vt=0;Vt<this._uploadList.length;Vt++){var de=this._uploadList[Vt];de.state!=Ct.UPLOADSTATE.FAIlURE&&de.state!=Ct.UPLOADSTATE.STOPED||(de.state=Ct.UPLOADSTATE.INIT)}this._state=Ct.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(Vt){return Vt.file.size/this.options.partSize>1e4?Vt.file.size/9999:this.options.partSize}}]),te}());wt.default=qt},function(ee,wt,Qt){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},wt.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(ee,wt,Qt){"use strict";function Zt(kt){return kt&&kt.__esModule?kt:{default:kt}}function Ot(kt,xt){if(!(kt instanceof xt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var jt=function(){function kt(xt,Dt){for(var yt=0;yt<Dt.length;yt++){var et=Dt[yt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(xt,et.key,et)}}return function(xt,Dt,yt){return Dt&&kt(xt.prototype,Dt),yt&&kt(xt,yt),xt}}(),Ct=Qt(3),Mt=Qt(17),Bt=(Zt(Mt),Qt(1)),St=(Zt(Bt),function(){function kt(xt,Dt){if(Ot(this,kt),xt){this._config=xt,this.create(this._config),this._uploadInfo=null,this._callback={};var yt=function(){};this._callback.onerror=Dt.onerror||yt,this._callback.oncomplete=Dt.oncomplete||yt,this._callback.onprogress=Dt.onprogress||yt}}return jt(kt,[{key:"create",value:function(xt){if(xt.endpoint=xt.endpoint||this._config.endpoint,xt.bucket=xt.bucket||this._config.bucket,!(xt.AccessKeyId&&xt.AccessKeySecret&&xt.endpoint&&xt.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var Dt={accessKeyId:xt.AccessKeyId,accessKeySecret:xt.AccessKeySecret,stsToken:xt.SecurityToken,endpoint:xt.endpoint||this._config.endpoint,bucket:xt.bucket||this._config.bucket,secure:!0,cname:xt.cname};xt.timeout&&(Dt.timeout=xt.timeout),this.oss=new OSS.Wrapper(Dt)}},{key:"abort",value:function(xt){if(xt.checkpoint){var Dt=xt.checkpoint.uploadId;this.oss.abortMultipartUpload(xt.object,Dt)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(xt,Dt){this._uploadInfo=xt;var yt=this,et=function(lt,ot,ut){return function(ct){yt._progress(lt,ot,ut),ct()}},tt={parallel:Dt.parallel||this._config.parallel||Ct.UPLOADDEFAULT.PARALLEL,partSize:Dt.partSize||this._config.partSize||Ct.UPLOADDEFAULT.PARTSIZE,progress:et};Dt.headers&&(tt.headers=Dt.headers),xt.checkpoint&&(tt.checkpoint=xt.checkpoint),xt.bucket||(this.oss.options.bucket=xt.bucket),xt.endpoint||(this.oss.options.endpoint=xt.endpoint),this.oss.multipartUpload(xt.object,xt.file,tt).then(function(lt,ot){yt._complete(lt)}).catch(function(lt){yt.oss.cancel&&(yt.oss&&yt.oss.isCancel()?console.log("oss is cancel as error"):yt.oss.cancel()),yt._error(lt)})}},{key:"header",value:function(xt,Dt,yt){this.oss.get(xt.object).then(function(et){Dt(et)}).catch(function(et){yt(et)})}},{key:"_progress",value:function(xt,Dt,yt){this._callback.onprogress(this._uploadInfo,{loaded:xt,total:this._uploadInfo.file.size,checkpoint:Dt},yt)}},{key:"_error",value:function(xt){this._callback.onerror(this._uploadInfo,xt)}},{key:"_complete",value:function(xt){this._callback.oncomplete(this._uploadInfo,xt)}}]),kt}());wt.default=St},function(ee,wt,Qt){"use strict";function Zt(Ct,Mt){if(!(Ct instanceof Mt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Ct(Mt,Bt){for(var St=0;St<Bt.length;St++){var kt=Bt[St];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Mt,kt.key,kt)}}return function(Mt,Bt,St){return Bt&&Ct(Mt.prototype,Bt),St&&Ct(Mt,St),Mt}}(),jt=function(){function Ct(){Zt(this,Ct)}return Ot(Ct,null,[{key:"format",value:function(Mt){if(arguments.length<2)return null;for(var Bt=arguments[1],St=1;St<arguments.length;St++){var kt=new RegExp("\\{"+(St-1)+"\\}","gm");Bt=Bt.replace(kt,arguments[St+1])}return{code:Mt,message:Bt}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),Ct}();wt.default=jt},function(ee,wt,Qt){"use strict";(function(Zt){function Ot(Mt,Bt){if(!(Mt instanceof Bt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var jt=function(){function Mt(Bt,St){for(var kt=0;kt<St.length;kt++){var xt=St[kt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(Bt,xt.key,xt)}}return function(Bt,St,kt){return St&&Mt(Bt.prototype,St),kt&&Mt(Bt,kt),Bt}}(),Ct=function(){function Mt(){Ot(this,Mt)}return jt(Mt,null,[{key:"encode",value:function(Bt){return new Zt(Bt).toString("base64")}},{key:"decode",value:function(Bt){return new Zt(Bt,"base64").toString()}}]),Mt}();wt.default=Ct}).call(wt,Qt(19).Buffer)},function(ee,wt,Qt){"use strict";(function(Zt){function Ot(){return Ct.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function jt(It,Pt){if(Ot()<Pt)throw new RangeError("Invalid typed array length");return Ct.TYPED_ARRAY_SUPPORT?(It=new Uint8Array(Pt),It.__proto__=Ct.prototype):(It===null&&(It=new Ct(Pt)),It.length=Pt),It}function Ct(It,Pt,Et){if(!(Ct.TYPED_ARRAY_SUPPORT||this instanceof Ct))return new Ct(It,Pt,Et);if(typeof It=="number"){if(typeof Pt=="string")throw new Error("If encoding is specified then the first argument must be a string");return kt(this,It)}return Mt(this,It,Pt,Et)}function Mt(It,Pt,Et,$t){if(typeof Pt=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Pt instanceof ArrayBuffer?yt(It,Pt,Et,$t):typeof Pt=="string"?xt(It,Pt,Et):et(It,Pt)}function Bt(It){if(typeof It!="number")throw new TypeError('"size" argument must be a number');if(It<0)throw new RangeError('"size" argument must not be negative')}function St(It,Pt,Et,$t){return Bt(Pt),Pt<=0?jt(It,Pt):Et!==void 0?typeof $t=="string"?jt(It,Pt).fill(Et,$t):jt(It,Pt).fill(Et):jt(It,Pt)}function kt(It,Pt){if(Bt(Pt),It=jt(It,Pt<0?0:0|tt(Pt)),!Ct.TYPED_ARRAY_SUPPORT)for(var Et=0;Et<Pt;++Et)It[Et]=0;return It}function xt(It,Pt,Et){if(typeof Et=="string"&&Et!==""||(Et="utf8"),!Ct.isEncoding(Et))throw new TypeError('"encoding" must be a valid string encoding');var $t=0|ot(Pt,Et);It=jt(It,$t);var zt=It.write(Pt,Et);return zt!==$t&&(It=It.slice(0,zt)),It}function Dt(It,Pt){var Et=Pt.length<0?0:0|tt(Pt.length);It=jt(It,Et);for(var $t=0;$t<Et;$t+=1)It[$t]=255&Pt[$t];return It}function yt(It,Pt,Et,$t){if(Pt.byteLength,Et<0||Pt.byteLength<Et)throw new RangeError("'offset' is out of bounds");if(Pt.byteLength<Et+($t||0))throw new RangeError("'length' is out of bounds");return Pt=Et===void 0&&$t===void 0?new Uint8Array(Pt):$t===void 0?new Uint8Array(Pt,Et):new Uint8Array(Pt,Et,$t),Ct.TYPED_ARRAY_SUPPORT?(It=Pt,It.__proto__=Ct.prototype):It=Dt(It,Pt),It}function et(It,Pt){if(Ct.isBuffer(Pt)){var Et=0|tt(Pt.length);return It=jt(It,Et),It.length===0||Pt.copy(It,0,0,Et),It}if(Pt){if(typeof ArrayBuffer!="undefined"&&Pt.buffer instanceof ArrayBuffer||"length"in Pt)return typeof Pt.length!="number"||ie(Pt.length)?jt(It,0):Dt(It,Pt);if(Pt.type==="Buffer"&&Yt(Pt.data))return Dt(It,Pt.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function tt(It){if(It>=Ot())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ot().toString(16)+" bytes");return 0|It}function lt(It){return+It!=It&&(It=0),Ct.alloc(+It)}function ot(It,Pt){if(Ct.isBuffer(It))return It.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(It)||It instanceof ArrayBuffer))return It.byteLength;typeof It!="string"&&(It=""+It);var Et=It.length;if(Et===0)return 0;for(var $t=!1;;)switch(Pt){case"ascii":case"latin1":case"binary":return Et;case"utf8":case"utf-8":case void 0:return Ae(It).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Et;case"hex":return Et>>>1;case"base64":return Oe(It).length;default:if($t)return Ae(It).length;Pt=(""+Pt).toLowerCase(),$t=!0}}function ut(It,Pt,Et){var $t=!1;if((Pt===void 0||Pt<0)&&(Pt=0),Pt>this.length||((Et===void 0||Et>this.length)&&(Et=this.length),Et<=0)||(Et>>>=0,Pt>>>=0,Et<=Pt))return"";for(It||(It="utf8");;)switch(It){case"hex":return Ge(this,Pt,Et);case"utf8":case"utf-8":return de(this,Pt,Et);case"ascii":return be(this,Pt,Et);case"latin1":case"binary":return Ne(this,Pt,Et);case"base64":return Vt(this,Pt,Et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,Pt,Et);default:if($t)throw new TypeError("Unknown encoding: "+It);It=(It+"").toLowerCase(),$t=!0}}function ct(It,Pt,Et){var $t=It[Pt];It[Pt]=It[Et],It[Et]=$t}function ft(It,Pt,Et,$t,zt){if(It.length===0)return-1;if(typeof Et=="string"?($t=Et,Et=0):Et>2147483647?Et=2147483647:Et<-2147483648&&(Et=-2147483648),Et=+Et,isNaN(Et)&&(Et=zt?0:It.length-1),Et<0&&(Et=It.length+Et),Et>=It.length){if(zt)return-1;Et=It.length-1}else if(Et<0){if(!zt)return-1;Et=0}if(typeof Pt=="string"&&(Pt=Ct.from(Pt,$t)),Ct.isBuffer(Pt))return Pt.length===0?-1:gt(It,Pt,Et,$t,zt);if(typeof Pt=="number")return Pt&=255,Ct.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?zt?Uint8Array.prototype.indexOf.call(It,Pt,Et):Uint8Array.prototype.lastIndexOf.call(It,Pt,Et):gt(It,[Pt],Et,$t,zt);throw new TypeError("val must be string, number or Buffer")}function gt(It,Pt,Et,$t,zt){function Gt(nn,qe){return le===1?nn[qe]:nn.readUInt16BE(qe*le)}var le=1,ye=It.length,Ue=Pt.length;if($t!==void 0&&(($t=String($t).toLowerCase())==="ucs2"||$t==="ucs-2"||$t==="utf16le"||$t==="utf-16le")){if(It.length<2||Pt.length<2)return-1;le=2,ye/=2,Ue/=2,Et/=2}var We;if(zt){var Ee=-1;for(We=Et;We<ye;We++)if(Gt(It,We)===Gt(Pt,Ee===-1?0:We-Ee)){if(Ee===-1&&(Ee=We),We-Ee+1===Ue)return Ee*le}else Ee!==-1&&(We-=We-Ee),Ee=-1}else for(Et+Ue>ye&&(Et=ye-Ue),We=Et;We>=0;We--){for(var Ze=!0,on=0;on<Ue;on++)if(Gt(It,We+on)!==Gt(Pt,on)){Ze=!1;break}if(Ze)return We}return-1}function Lt(It,Pt,Et,$t){Et=Number(Et)||0;var zt=It.length-Et;$t?($t=Number($t))>zt&&($t=zt):$t=zt;var Gt=Pt.length;if(Gt%2!=0)throw new TypeError("Invalid hex string");$t>Gt/2&&($t=Gt/2);for(var le=0;le<$t;++le){var ye=parseInt(Pt.substr(2*le,2),16);if(isNaN(ye))return le;It[Et+le]=ye}return le}function Rt(It,Pt,Et,$t){return He(Ae(Pt,It.length-Et),It,Et,$t)}function Ut(It,Pt,Et,$t){return He(_e(Pt),It,Et,$t)}function Nt(It,Pt,Et,$t){return Ut(It,Pt,Et,$t)}function qt(It,Pt,Et,$t){return He(Oe(Pt),It,Et,$t)}function te(It,Pt,Et,$t){return He(Le(Pt,It.length-Et),It,Et,$t)}function Vt(It,Pt,Et){return Pt===0&&Et===It.length?Tt.fromByteArray(It):Tt.fromByteArray(It.slice(Pt,Et))}function de(It,Pt,Et){Et=Math.min(It.length,Et);for(var $t=[],zt=Pt;zt<Et;){var Gt=It[zt],le=null,ye=Gt>239?4:Gt>223?3:Gt>191?2:1;if(zt+ye<=Et){var Ue,We,Ee,Ze;switch(ye){case 1:Gt<128&&(le=Gt);break;case 2:Ue=It[zt+1],(192&Ue)==128&&(Ze=(31&Gt)<<6|63&Ue)>127&&(le=Ze);break;case 3:Ue=It[zt+1],We=It[zt+2],(192&Ue)==128&&(192&We)==128&&(Ze=(15&Gt)<<12|(63&Ue)<<6|63&We)>2047&&(Ze<55296||Ze>57343)&&(le=Ze);break;case 4:Ue=It[zt+1],We=It[zt+2],Ee=It[zt+3],(192&Ue)==128&&(192&We)==128&&(192&Ee)==128&&(Ze=(15&Gt)<<18|(63&Ue)<<12|(63&We)<<6|63&Ee)>65535&&Ze<1114112&&(le=Ze)}}le===null?(le=65533,ye=1):le>65535&&(le-=65536,$t.push(le>>>10&1023|55296),le=56320|1023&le),$t.push(le),zt+=ye}return ge($t)}function ge(It){var Pt=It.length;if(Pt<=oe)return String.fromCharCode.apply(String,It);for(var Et="",$t=0;$t<Pt;)Et+=String.fromCharCode.apply(String,It.slice($t,$t+=oe));return Et}function be(It,Pt,Et){var $t="";Et=Math.min(It.length,Et);for(var zt=Pt;zt<Et;++zt)$t+=String.fromCharCode(127&It[zt]);return $t}function Ne(It,Pt,Et){var $t="";Et=Math.min(It.length,Et);for(var zt=Pt;zt<Et;++zt)$t+=String.fromCharCode(It[zt]);return $t}function Ge(It,Pt,Et){var $t=It.length;(!Pt||Pt<0)&&(Pt=0),(!Et||Et<0||Et>$t)&&(Et=$t);for(var zt="",Gt=Pt;Gt<Et;++Gt)zt+=Qe(It[Gt]);return zt}function Pe(It,Pt,Et){for(var $t=It.slice(Pt,Et),zt="",Gt=0;Gt<$t.length;Gt+=2)zt+=String.fromCharCode($t[Gt]+256*$t[Gt+1]);return zt}function ze(It,Pt,Et){if(It%1!=0||It<0)throw new RangeError("offset is not uint");if(It+Pt>Et)throw new RangeError("Trying to access beyond buffer length")}function he(It,Pt,Et,$t,zt,Gt){if(!Ct.isBuffer(It))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pt>zt||Pt<Gt)throw new RangeError('"value" argument is out of bounds');if(Et+$t>It.length)throw new RangeError("Index out of range")}function Jt(It,Pt,Et,$t){Pt<0&&(Pt=65535+Pt+1);for(var zt=0,Gt=Math.min(It.length-Et,2);zt<Gt;++zt)It[Et+zt]=(Pt&255<<8*($t?zt:1-zt))>>>8*($t?zt:1-zt)}function re(It,Pt,Et,$t){Pt<0&&(Pt=4294967295+Pt+1);for(var zt=0,Gt=Math.min(It.length-Et,4);zt<Gt;++zt)It[Et+zt]=Pt>>>8*($t?zt:3-zt)&255}function se(It,Pt,Et,$t,zt,Gt){if(Et+$t>It.length)throw new RangeError("Index out of range");if(Et<0)throw new RangeError("Index out of range")}function pe(It,Pt,Et,$t,zt){return zt||se(It,Pt,Et,4,34028234663852886e22,-34028234663852886e22),At.write(It,Pt,Et,$t,23,4),Et+4}function ue(It,Pt,Et,$t,zt){return zt||se(It,Pt,Et,8,17976931348623157e292,-17976931348623157e292),At.write(It,Pt,Et,$t,52,8),Et+8}function Re(It){if(It=Fe(It).replace(_t,""),It.length<2)return"";for(;It.length%4!=0;)It+="=";return It}function Fe(It){return It.trim?It.trim():It.replace(/^\s+|\s+$/g,"")}function Qe(It){return It<16?"0"+It.toString(16):It.toString(16)}function Ae(It,Pt){Pt=Pt||1/0;for(var Et,$t=It.length,zt=null,Gt=[],le=0;le<$t;++le){if((Et=It.charCodeAt(le))>55295&&Et<57344){if(!zt){if(Et>56319){(Pt-=3)>-1&&Gt.push(239,191,189);continue}if(le+1===$t){(Pt-=3)>-1&&Gt.push(239,191,189);continue}zt=Et;continue}if(Et<56320){(Pt-=3)>-1&&Gt.push(239,191,189),zt=Et;continue}Et=65536+(zt-55296<<10|Et-56320)}else zt&&(Pt-=3)>-1&&Gt.push(239,191,189);if(zt=null,Et<128){if((Pt-=1)<0)break;Gt.push(Et)}else if(Et<2048){if((Pt-=2)<0)break;Gt.push(Et>>6|192,63&Et|128)}else if(Et<65536){if((Pt-=3)<0)break;Gt.push(Et>>12|224,Et>>6&63|128,63&Et|128)}else{if(!(Et<1114112))throw new Error("Invalid code point");if((Pt-=4)<0)break;Gt.push(Et>>18|240,Et>>12&63|128,Et>>6&63|128,63&Et|128)}}return Gt}function _e(It){for(var Pt=[],Et=0;Et<It.length;++Et)Pt.push(255&It.charCodeAt(Et));return Pt}function Le(It,Pt){for(var Et,$t,zt,Gt=[],le=0;le<It.length&&!((Pt-=2)<0);++le)Et=It.charCodeAt(le),$t=Et>>8,zt=Et%256,Gt.push(zt),Gt.push($t);return Gt}function Oe(It){return Tt.toByteArray(Re(It))}function He(It,Pt,Et,$t){for(var zt=0;zt<$t&&!(zt+Et>=Pt.length||zt>=It.length);++zt)Pt[zt+Et]=It[zt];return zt}function ie(It){return It!==It}var Tt=Qt(21),At=Qt(22),Yt=Qt(23);wt.Buffer=Ct,wt.SlowBuffer=lt,wt.INSPECT_MAX_BYTES=50,Ct.TYPED_ARRAY_SUPPORT=Zt.TYPED_ARRAY_SUPPORT!==void 0?Zt.TYPED_ARRAY_SUPPORT:function(){try{var It=new Uint8Array(1);return It.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},It.foo()===42&&typeof It.subarray=="function"&&It.subarray(1,1).byteLength===0}catch(Pt){return!1}}(),wt.kMaxLength=Ot(),Ct.poolSize=8192,Ct._augment=function(It){return It.__proto__=Ct.prototype,It},Ct.from=function(It,Pt,Et){return Mt(null,It,Pt,Et)},Ct.TYPED_ARRAY_SUPPORT&&(Ct.prototype.__proto__=Uint8Array.prototype,Ct.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Ct[Symbol.species]===Ct&&Object.defineProperty(Ct,Symbol.species,{value:null,configurable:!0})),Ct.alloc=function(It,Pt,Et){return St(null,It,Pt,Et)},Ct.allocUnsafe=function(It){return kt(null,It)},Ct.allocUnsafeSlow=function(It){return kt(null,It)},Ct.isBuffer=function(It){return!(It==null||!It._isBuffer)},Ct.compare=function(It,Pt){if(!Ct.isBuffer(It)||!Ct.isBuffer(Pt))throw new TypeError("Arguments must be Buffers");if(It===Pt)return 0;for(var Et=It.length,$t=Pt.length,zt=0,Gt=Math.min(Et,$t);zt<Gt;++zt)if(It[zt]!==Pt[zt]){Et=It[zt],$t=Pt[zt];break}return Et<$t?-1:$t<Et?1:0},Ct.isEncoding=function(It){switch(String(It).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Ct.concat=function(It,Pt){if(!Yt(It))throw new TypeError('"list" argument must be an Array of Buffers');if(It.length===0)return Ct.alloc(0);var Et;if(Pt===void 0)for(Pt=0,Et=0;Et<It.length;++Et)Pt+=It[Et].length;var $t=Ct.allocUnsafe(Pt),zt=0;for(Et=0;Et<It.length;++Et){var Gt=It[Et];if(!Ct.isBuffer(Gt))throw new TypeError('"list" argument must be an Array of Buffers');Gt.copy($t,zt),zt+=Gt.length}return $t},Ct.byteLength=ot,Ct.prototype._isBuffer=!0,Ct.prototype.swap16=function(){var It=this.length;if(It%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Pt=0;Pt<It;Pt+=2)ct(this,Pt,Pt+1);return this},Ct.prototype.swap32=function(){var It=this.length;if(It%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Pt=0;Pt<It;Pt+=4)ct(this,Pt,Pt+3),ct(this,Pt+1,Pt+2);return this},Ct.prototype.swap64=function(){var It=this.length;if(It%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Pt=0;Pt<It;Pt+=8)ct(this,Pt,Pt+7),ct(this,Pt+1,Pt+6),ct(this,Pt+2,Pt+5),ct(this,Pt+3,Pt+4);return this},Ct.prototype.toString=function(){var It=0|this.length;return It===0?"":arguments.length===0?de(this,0,It):ut.apply(this,arguments)},Ct.prototype.equals=function(It){if(!Ct.isBuffer(It))throw new TypeError("Argument must be a Buffer");return this===It||Ct.compare(this,It)===0},Ct.prototype.inspect=function(){var It="",Pt=wt.INSPECT_MAX_BYTES;return this.length>0&&(It=this.toString("hex",0,Pt).match(/.{2}/g).join(" "),this.length>Pt&&(It+=" ... ")),"<Buffer "+It+">"},Ct.prototype.compare=function(It,Pt,Et,$t,zt){if(!Ct.isBuffer(It))throw new TypeError("Argument must be a Buffer");if(Pt===void 0&&(Pt=0),Et===void 0&&(Et=It?It.length:0),$t===void 0&&($t=0),zt===void 0&&(zt=this.length),Pt<0||Et>It.length||$t<0||zt>this.length)throw new RangeError("out of range index");if($t>=zt&&Pt>=Et)return 0;if($t>=zt)return-1;if(Pt>=Et)return 1;if(Pt>>>=0,Et>>>=0,$t>>>=0,zt>>>=0,this===It)return 0;for(var Gt=zt-$t,le=Et-Pt,ye=Math.min(Gt,le),Ue=this.slice($t,zt),We=It.slice(Pt,Et),Ee=0;Ee<ye;++Ee)if(Ue[Ee]!==We[Ee]){Gt=Ue[Ee],le=We[Ee];break}return Gt<le?-1:le<Gt?1:0},Ct.prototype.includes=function(It,Pt,Et){return this.indexOf(It,Pt,Et)!==-1},Ct.prototype.indexOf=function(It,Pt,Et){return ft(this,It,Pt,Et,!0)},Ct.prototype.lastIndexOf=function(It,Pt,Et){return ft(this,It,Pt,Et,!1)},Ct.prototype.write=function(It,Pt,Et,$t){if(Pt===void 0)$t="utf8",Et=this.length,Pt=0;else if(Et===void 0&&typeof Pt=="string")$t=Pt,Et=this.length,Pt=0;else{if(!isFinite(Pt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Pt|=0,isFinite(Et)?(Et|=0,$t===void 0&&($t="utf8")):($t=Et,Et=void 0)}var zt=this.length-Pt;if((Et===void 0||Et>zt)&&(Et=zt),It.length>0&&(Et<0||Pt<0)||Pt>this.length)throw new RangeError("Attempt to write outside buffer bounds");$t||($t="utf8");for(var Gt=!1;;)switch($t){case"hex":return Lt(this,It,Pt,Et);case"utf8":case"utf-8":return Rt(this,It,Pt,Et);case"ascii":return Ut(this,It,Pt,Et);case"latin1":case"binary":return Nt(this,It,Pt,Et);case"base64":return qt(this,It,Pt,Et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,It,Pt,Et);default:if(Gt)throw new TypeError("Unknown encoding: "+$t);$t=(""+$t).toLowerCase(),Gt=!0}},Ct.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var oe=4096;Ct.prototype.slice=function(It,Pt){var Et=this.length;It=~~It,Pt=Pt===void 0?Et:~~Pt,It<0?(It+=Et)<0&&(It=0):It>Et&&(It=Et),Pt<0?(Pt+=Et)<0&&(Pt=0):Pt>Et&&(Pt=Et),Pt<It&&(Pt=It);var $t;if(Ct.TYPED_ARRAY_SUPPORT)$t=this.subarray(It,Pt),$t.__proto__=Ct.prototype;else{var zt=Pt-It;$t=new Ct(zt,void 0);for(var Gt=0;Gt<zt;++Gt)$t[Gt]=this[Gt+It]}return $t},Ct.prototype.readUIntLE=function(It,Pt,Et){It|=0,Pt|=0,Et||ze(It,Pt,this.length);for(var $t=this[It],zt=1,Gt=0;++Gt<Pt&&(zt*=256);)$t+=this[It+Gt]*zt;return $t},Ct.prototype.readUIntBE=function(It,Pt,Et){It|=0,Pt|=0,Et||ze(It,Pt,this.length);for(var $t=this[It+--Pt],zt=1;Pt>0&&(zt*=256);)$t+=this[It+--Pt]*zt;return $t},Ct.prototype.readUInt8=function(It,Pt){return Pt||ze(It,1,this.length),this[It]},Ct.prototype.readUInt16LE=function(It,Pt){return Pt||ze(It,2,this.length),this[It]|this[It+1]<<8},Ct.prototype.readUInt16BE=function(It,Pt){return Pt||ze(It,2,this.length),this[It]<<8|this[It+1]},Ct.prototype.readUInt32LE=function(It,Pt){return Pt||ze(It,4,this.length),(this[It]|this[It+1]<<8|this[It+2]<<16)+16777216*this[It+3]},Ct.prototype.readUInt32BE=function(It,Pt){return Pt||ze(It,4,this.length),16777216*this[It]+(this[It+1]<<16|this[It+2]<<8|this[It+3])},Ct.prototype.readIntLE=function(It,Pt,Et){It|=0,Pt|=0,Et||ze(It,Pt,this.length);for(var $t=this[It],zt=1,Gt=0;++Gt<Pt&&(zt*=256);)$t+=this[It+Gt]*zt;return zt*=128,$t>=zt&&($t-=Math.pow(2,8*Pt)),$t},Ct.prototype.readIntBE=function(It,Pt,Et){It|=0,Pt|=0,Et||ze(It,Pt,this.length);for(var $t=Pt,zt=1,Gt=this[It+--$t];$t>0&&(zt*=256);)Gt+=this[It+--$t]*zt;return zt*=128,Gt>=zt&&(Gt-=Math.pow(2,8*Pt)),Gt},Ct.prototype.readInt8=function(It,Pt){return Pt||ze(It,1,this.length),128&this[It]?-1*(255-this[It]+1):this[It]},Ct.prototype.readInt16LE=function(It,Pt){Pt||ze(It,2,this.length);var Et=this[It]|this[It+1]<<8;return 32768&Et?4294901760|Et:Et},Ct.prototype.readInt16BE=function(It,Pt){Pt||ze(It,2,this.length);var Et=this[It+1]|this[It]<<8;return 32768&Et?4294901760|Et:Et},Ct.prototype.readInt32LE=function(It,Pt){return Pt||ze(It,4,this.length),this[It]|this[It+1]<<8|this[It+2]<<16|this[It+3]<<24},Ct.prototype.readInt32BE=function(It,Pt){return Pt||ze(It,4,this.length),this[It]<<24|this[It+1]<<16|this[It+2]<<8|this[It+3]},Ct.prototype.readFloatLE=function(It,Pt){return Pt||ze(It,4,this.length),At.read(this,It,!0,23,4)},Ct.prototype.readFloatBE=function(It,Pt){return Pt||ze(It,4,this.length),At.read(this,It,!1,23,4)},Ct.prototype.readDoubleLE=function(It,Pt){return Pt||ze(It,8,this.length),At.read(this,It,!0,52,8)},Ct.prototype.readDoubleBE=function(It,Pt){return Pt||ze(It,8,this.length),At.read(this,It,!1,52,8)},Ct.prototype.writeUIntLE=function(It,Pt,Et,$t){It=+It,Pt|=0,Et|=0,!$t&&he(this,It,Pt,Et,Math.pow(2,8*Et)-1,0);var zt=1,Gt=0;for(this[Pt]=255&It;++Gt<Et&&(zt*=256);)this[Pt+Gt]=It/zt&255;return Pt+Et},Ct.prototype.writeUIntBE=function(It,Pt,Et,$t){It=+It,Pt|=0,Et|=0,!$t&&he(this,It,Pt,Et,Math.pow(2,8*Et)-1,0);var zt=Et-1,Gt=1;for(this[Pt+zt]=255&It;--zt>=0&&(Gt*=256);)this[Pt+zt]=It/Gt&255;return Pt+Et},Ct.prototype.writeUInt8=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,1,255,0),Ct.TYPED_ARRAY_SUPPORT||(It=Math.floor(It)),this[Pt]=255&It,Pt+1},Ct.prototype.writeUInt16LE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,2,65535,0),Ct.TYPED_ARRAY_SUPPORT?(this[Pt]=255&It,this[Pt+1]=It>>>8):Jt(this,It,Pt,!0),Pt+2},Ct.prototype.writeUInt16BE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,2,65535,0),Ct.TYPED_ARRAY_SUPPORT?(this[Pt]=It>>>8,this[Pt+1]=255&It):Jt(this,It,Pt,!1),Pt+2},Ct.prototype.writeUInt32LE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,4,4294967295,0),Ct.TYPED_ARRAY_SUPPORT?(this[Pt+3]=It>>>24,this[Pt+2]=It>>>16,this[Pt+1]=It>>>8,this[Pt]=255&It):re(this,It,Pt,!0),Pt+4},Ct.prototype.writeUInt32BE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,4,4294967295,0),Ct.TYPED_ARRAY_SUPPORT?(this[Pt]=It>>>24,this[Pt+1]=It>>>16,this[Pt+2]=It>>>8,this[Pt+3]=255&It):re(this,It,Pt,!1),Pt+4},Ct.prototype.writeIntLE=function(It,Pt,Et,$t){if(It=+It,Pt|=0,!$t){var zt=Math.pow(2,8*Et-1);he(this,It,Pt,Et,zt-1,-zt)}var Gt=0,le=1,ye=0;for(this[Pt]=255&It;++Gt<Et&&(le*=256);)It<0&&ye===0&&this[Pt+Gt-1]!==0&&(ye=1),this[Pt+Gt]=(It/le>>0)-ye&255;return Pt+Et},Ct.prototype.writeIntBE=function(It,Pt,Et,$t){if(It=+It,Pt|=0,!$t){var zt=Math.pow(2,8*Et-1);he(this,It,Pt,Et,zt-1,-zt)}var Gt=Et-1,le=1,ye=0;for(this[Pt+Gt]=255&It;--Gt>=0&&(le*=256);)It<0&&ye===0&&this[Pt+Gt+1]!==0&&(ye=1),this[Pt+Gt]=(It/le>>0)-ye&255;return Pt+Et},Ct.prototype.writeInt8=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,1,127,-128),Ct.TYPED_ARRAY_SUPPORT||(It=Math.floor(It)),It<0&&(It=255+It+1),this[Pt]=255&It,Pt+1},Ct.prototype.writeInt16LE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,2,32767,-32768),Ct.TYPED_ARRAY_SUPPORT?(this[Pt]=255&It,this[Pt+1]=It>>>8):Jt(this,It,Pt,!0),Pt+2},Ct.prototype.writeInt16BE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,2,32767,-32768),Ct.TYPED_ARRAY_SUPPORT?(this[Pt]=It>>>8,this[Pt+1]=255&It):Jt(this,It,Pt,!1),Pt+2},Ct.prototype.writeInt32LE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,4,2147483647,-2147483648),Ct.TYPED_ARRAY_SUPPORT?(this[Pt]=255&It,this[Pt+1]=It>>>8,this[Pt+2]=It>>>16,this[Pt+3]=It>>>24):re(this,It,Pt,!0),Pt+4},Ct.prototype.writeInt32BE=function(It,Pt,Et){return It=+It,Pt|=0,Et||he(this,It,Pt,4,2147483647,-2147483648),It<0&&(It=4294967295+It+1),Ct.TYPED_ARRAY_SUPPORT?(this[Pt]=It>>>24,this[Pt+1]=It>>>16,this[Pt+2]=It>>>8,this[Pt+3]=255&It):re(this,It,Pt,!1),Pt+4},Ct.prototype.writeFloatLE=function(It,Pt,Et){return pe(this,It,Pt,!0,Et)},Ct.prototype.writeFloatBE=function(It,Pt,Et){return pe(this,It,Pt,!1,Et)},Ct.prototype.writeDoubleLE=function(It,Pt,Et){return ue(this,It,Pt,!0,Et)},Ct.prototype.writeDoubleBE=function(It,Pt,Et){return ue(this,It,Pt,!1,Et)},Ct.prototype.copy=function(It,Pt,Et,$t){if(Et||(Et=0),$t||$t===0||($t=this.length),Pt>=It.length&&(Pt=It.length),Pt||(Pt=0),$t>0&&$t<Et&&($t=Et),$t===Et||It.length===0||this.length===0)return 0;if(Pt<0)throw new RangeError("targetStart out of bounds");if(Et<0||Et>=this.length)throw new RangeError("sourceStart out of bounds");if($t<0)throw new RangeError("sourceEnd out of bounds");$t>this.length&&($t=this.length),It.length-Pt<$t-Et&&($t=It.length-Pt+Et);var zt,Gt=$t-Et;if(this===It&&Et<Pt&&Pt<$t)for(zt=Gt-1;zt>=0;--zt)It[zt+Pt]=this[zt+Et];else if(Gt<1e3||!Ct.TYPED_ARRAY_SUPPORT)for(zt=0;zt<Gt;++zt)It[zt+Pt]=this[zt+Et];else Uint8Array.prototype.set.call(It,this.subarray(Et,Et+Gt),Pt);return Gt},Ct.prototype.fill=function(It,Pt,Et,$t){if(typeof It=="string"){if(typeof Pt=="string"?($t=Pt,Pt=0,Et=this.length):typeof Et=="string"&&($t=Et,Et=this.length),It.length===1){var zt=It.charCodeAt(0);zt<256&&(It=zt)}if($t!==void 0&&typeof $t!="string")throw new TypeError("encoding must be a string");if(typeof $t=="string"&&!Ct.isEncoding($t))throw new TypeError("Unknown encoding: "+$t)}else typeof It=="number"&&(It&=255);if(Pt<0||this.length<Pt||this.length<Et)throw new RangeError("Out of range index");if(Et<=Pt)return this;Pt>>>=0,Et=Et===void 0?this.length:Et>>>0,It||(It=0);var Gt;if(typeof It=="number")for(Gt=Pt;Gt<Et;++Gt)this[Gt]=It;else{var le=Ct.isBuffer(It)?It:Ae(new Ct(It,$t).toString()),ye=le.length;for(Gt=0;Gt<Et-Pt;++Gt)this[Gt+Pt]=le[Gt%ye]}return this};var _t=/[^+\/0-9A-Za-z-_]/g}).call(wt,Qt(20))},function(ee,wt){var Qt;Qt=function(){return this}();try{Qt=Qt||Function("return this")()||(0,eval)("this")}catch(Zt){typeof window=="object"&&(Qt=window)}ee.exports=Qt},function(ee,wt,Qt){"use strict";function Zt(tt){var lt=tt.length;if(lt%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return tt[lt-2]==="="?2:tt[lt-1]==="="?1:0}function Ot(tt){return 3*tt.length/4-Zt(tt)}function jt(tt){var lt,ot,ut,ct,ft,gt=tt.length;ct=Zt(tt),ft=new xt(3*gt/4-ct),ot=ct>0?gt-4:gt;var Lt=0;for(lt=0;lt<ot;lt+=4)ut=kt[tt.charCodeAt(lt)]<<18|kt[tt.charCodeAt(lt+1)]<<12|kt[tt.charCodeAt(lt+2)]<<6|kt[tt.charCodeAt(lt+3)],ft[Lt++]=ut>>16&255,ft[Lt++]=ut>>8&255,ft[Lt++]=255&ut;return ct===2?(ut=kt[tt.charCodeAt(lt)]<<2|kt[tt.charCodeAt(lt+1)]>>4,ft[Lt++]=255&ut):ct===1&&(ut=kt[tt.charCodeAt(lt)]<<10|kt[tt.charCodeAt(lt+1)]<<4|kt[tt.charCodeAt(lt+2)]>>2,ft[Lt++]=ut>>8&255,ft[Lt++]=255&ut),ft}function Ct(tt){return St[tt>>18&63]+St[tt>>12&63]+St[tt>>6&63]+St[63&tt]}function Mt(tt,lt,ot){for(var ut,ct=[],ft=lt;ft<ot;ft+=3)ut=(tt[ft]<<16)+(tt[ft+1]<<8)+tt[ft+2],ct.push(Ct(ut));return ct.join("")}function Bt(tt){for(var lt,ot=tt.length,ut=ot%3,ct="",ft=[],gt=0,Lt=ot-ut;gt<Lt;gt+=16383)ft.push(Mt(tt,gt,gt+16383>Lt?Lt:gt+16383));return ut===1?(lt=tt[ot-1],ct+=St[lt>>2],ct+=St[lt<<4&63],ct+="=="):ut===2&&(lt=(tt[ot-2]<<8)+tt[ot-1],ct+=St[lt>>10],ct+=St[lt>>4&63],ct+=St[lt<<2&63],ct+="="),ft.push(ct),ft.join("")}wt.byteLength=Ot,wt.toByteArray=jt,wt.fromByteArray=Bt;for(var St=[],kt=[],xt=typeof Uint8Array!="undefined"?Uint8Array:Array,Dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yt=0,et=Dt.length;yt<et;++yt)St[yt]=Dt[yt],kt[Dt.charCodeAt(yt)]=yt;kt[45]=62,kt[95]=63},function(ee,wt){wt.read=function(Qt,Zt,Ot,jt,Ct){var Mt,Bt,St=8*Ct-jt-1,kt=(1<<St)-1,xt=kt>>1,Dt=-7,yt=Ot?Ct-1:0,et=Ot?-1:1,tt=Qt[Zt+yt];for(yt+=et,Mt=tt&(1<<-Dt)-1,tt>>=-Dt,Dt+=St;Dt>0;Mt=256*Mt+Qt[Zt+yt],yt+=et,Dt-=8);for(Bt=Mt&(1<<-Dt)-1,Mt>>=-Dt,Dt+=jt;Dt>0;Bt=256*Bt+Qt[Zt+yt],yt+=et,Dt-=8);if(Mt===0)Mt=1-xt;else{if(Mt===kt)return Bt?NaN:1/0*(tt?-1:1);Bt+=Math.pow(2,jt),Mt-=xt}return(tt?-1:1)*Bt*Math.pow(2,Mt-jt)},wt.write=function(Qt,Zt,Ot,jt,Ct,Mt){var Bt,St,kt,xt=8*Mt-Ct-1,Dt=(1<<xt)-1,yt=Dt>>1,et=Ct===23?Math.pow(2,-24)-Math.pow(2,-77):0,tt=jt?0:Mt-1,lt=jt?1:-1,ot=Zt<0||Zt===0&&1/Zt<0?1:0;for(Zt=Math.abs(Zt),isNaN(Zt)||Zt===1/0?(St=isNaN(Zt)?1:0,Bt=Dt):(Bt=Math.floor(Math.log(Zt)/Math.LN2),Zt*(kt=Math.pow(2,-Bt))<1&&(Bt--,kt*=2),Zt+=Bt+yt>=1?et/kt:et*Math.pow(2,1-yt),Zt*kt>=2&&(Bt++,kt/=2),Bt+yt>=Dt?(St=0,Bt=Dt):Bt+yt>=1?(St=(Zt*kt-1)*Math.pow(2,Ct),Bt+=yt):(St=Zt*Math.pow(2,yt-1)*Math.pow(2,Ct),Bt=0));Ct>=8;Qt[Ot+tt]=255&St,tt+=lt,St/=256,Ct-=8);for(Bt=Bt<<Ct|St,xt+=Ct;xt>0;Qt[Ot+tt]=255&Bt,tt+=lt,Bt/=256,xt-=8);Qt[Ot+tt-lt]|=128*ot}},function(ee,wt){var Qt={}.toString;ee.exports=Array.isArray||function(Zt){return Qt.call(Zt)=="[object Array]"}},function(ee,wt,Qt){"use strict";function Zt(Ct,Mt){if(!(Ct instanceof Mt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Ct(Mt,Bt){for(var St=0;St<Bt.length;St++){var kt=Bt[St];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Mt,kt.key,kt)}}return function(Mt,Bt,St){return Bt&&Ct(Mt.prototype,Bt),St&&Ct(Mt,St),Mt}}(),jt=function(){function Ct(){Zt(this,Ct)}return Ot(Ct,null,[{key:"set",value:function(Mt,Bt){try{window.localStorage&&localStorage.setItem(Mt,Bt)}catch(St){window[Mt+"_localStorage"]=Bt}}},{key:"get",value:function(Mt){try{if(window.localStorage)return localStorage.getItem(Mt)}catch(Bt){return window[Mt+"_localStorage"]}return""}},{key:"remove",value:function(Mt){try{window.localStorage&&localStorage.removeItem(Mt)}catch(Bt){delete window[Mt+"_localStorage"]}}}]),Ct}();wt.default=jt},function(ee,wt,Qt){"use strict";function Zt(Ct,Mt){if(!(Ct instanceof Mt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Ct(Mt,Bt){for(var St=0;St<Bt.length;St++){var kt=Bt[St];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Mt,kt.key,kt)}}return function(Mt,Bt,St){return Bt&&Ct(Mt.prototype,Bt),St&&Ct(Mt,St),Mt}}(),jt=function(){function Ct(){Zt(this,Ct)}return Ot(Ct,null,[{key:"get",value:function(Mt){for(var Bt=Mt+"",St=document.cookie.split(";"),kt=0;kt<St.length;kt++){var xt=St[kt].trim();if(xt.indexOf(Bt)==0)return unescape(xt.substring(Bt.length+1,xt.length))}return""}},{key:"set",value:function(Mt,Bt,St){var kt=new Date;kt.setTime(kt.getTime()+24*St*60*60*1e3);var xt="expires="+kt.toGMTString();document.cookie=Mt+"="+escape(Bt)+"; "+xt}}]),Ct}();wt.default=jt},function(ee,wt,Qt){"use strict";function Zt(xt){return xt&&xt.__esModule?xt:{default:xt}}function Ot(xt,Dt){if(!(xt instanceof Dt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var jt=function(){function xt(Dt,yt){for(var et=0;et<yt.length;et++){var tt=yt[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(Dt,tt.key,tt)}}return function(Dt,yt,et){return yt&&xt(Dt.prototype,yt),et&&xt(Dt,et),Dt}}(),Ct=Qt(8),Mt=Zt(Ct),Bt=Qt(9),St=Zt(Bt),kt=function(){function xt(){Ot(this,xt)}return jt(xt,null,[{key:"refreshUploadAuth",value:function(Dt,yt,et){var tt=(St.default.randomUUID(),St.default.randomUUID()),lt={AccessKeyId:Dt.accessKeyId,SecurityToken:Dt.securityToken,Action:"RefreshUploadVideo",VideoId:Dt.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:Dt.requestId},ot=St.default.makeUTF8sort(lt,"=","&")+"&Signature="+St.default.aliyunEncodeURI(St.default.makeChangeSiga(lt,Dt.accessKeySecret)),ut="https://vod."+Dt.region+".aliyuncs.com/?"+ot;Mt.default.get(ut,function(ft){var ft=JSON.parse(ft);yt&&yt(ft)},function(ct){if(et){var ft=JSON.parse(ct);et(ft)}})}},{key:"getUploadAuth",value:function(Dt,yt,et){var tt=(St.default.randomUUID(),St.default.randomUUID()),lt={AccessKeyId:Dt.accessKeyId,SecurityToken:Dt.securityToken,Action:"CreateUploadVideo",Title:Dt.title,FileName:Dt.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:Dt.requestId};Dt.fileSize&&(lt.FileSize=Dt.fileSize),Dt.description&&(lt.Description=Dt.description),Dt.cateId&&(lt.CateId=Dt.cateId),Dt.tags&&(lt.Tags=Dt.tags),Dt.templateGroupId&&(lt.TemplateGroupId=Dt.templateGroupId),Dt.storageLocation&&(lt.StorageLocation=Dt.storageLocation),Dt.coverUrl&&(lt.CoverURL=Dt.coverUrl),Dt.transCodeMode&&(lt.TransCodeMode=Dt.transCodeMode),Dt.userData&&(lt.UserData=JSON.stringify(Dt.userData));var ot=St.default.makeUTF8sort(lt,"=","&")+"&Signature="+St.default.aliyunEncodeURI(St.default.makeChangeSiga(lt,Dt.accessKeySecret)),ut="https://vod."+Dt.region+".aliyuncs.com/?"+ot;Mt.default.get(ut,function(ct){try{ct=JSON.parse(ct)}catch(ft){if(et)return void et({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}yt&&yt(ct)},function(ct){if(et){var ft={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{ft=JSON.parse(ct)}catch(gt){}et(ft)}})}},{key:"getImageUploadAuth",value:function(Dt,yt,et){var tt=(St.default.randomUUID(),St.default.randomUUID()),lt={AccessKeyId:Dt.accessKeyId,SecurityToken:Dt.securityToken,Action:"CreateUploadImage",ImageType:Dt.imageType?Dt.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:Dt.requestId};Dt.title&&(lt.Title=Dt.title),Dt.imageExt&&(lt.ImageExt=Dt.imageExt),Dt.tags&&(lt.Tags=Dt.tags),Dt.storageLocation&&(lt.StorageLocation=Dt.storageLocation);var ot=St.default.makeUTF8sort(lt,"=","&")+"&Signature="+St.default.aliyunEncodeURI(St.default.makeChangeSiga(lt,Dt.accessKeySecret)),ut="https://vod."+Dt.region+".aliyuncs.com/?"+ot;Mt.default.get(ut,function(ct){ct=JSON.parse(ct),yt&&yt(ct)},function(ct){if(et){var ft=JSON.parse(ct);et(ft)}})}}]),xt}();wt.default=kt},function(ee,wt,Qt){(function(Zt,Ot,jt){ee.exports=wt=Ot(Qt(0),Qt(28),Qt(29))})(0,function(Zt){return Zt.HmacSHA1})},function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot(Qt(0))})(0,function(Zt){return function(){var Ot=Zt,jt=Ot.lib,Ct=jt.WordArray,Mt=jt.Hasher,Bt=Ot.algo,St=[],kt=Bt.SHA1=Mt.extend({_doReset:function(){this._hash=new Ct.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(xt,Dt){for(var yt=this._hash.words,et=yt[0],tt=yt[1],lt=yt[2],ot=yt[3],ut=yt[4],ct=0;ct<80;ct++){if(ct<16)St[ct]=0|xt[Dt+ct];else{var ft=St[ct-3]^St[ct-8]^St[ct-14]^St[ct-16];St[ct]=ft<<1|ft>>>31}var gt=(et<<5|et>>>27)+ut+St[ct];gt+=ct<20?1518500249+(tt<|~tt&ot):ct<40?1859775393+(tt^lt^ot):ct<60?(tt<|tt&ot|lt&ot)-1894007588:(tt^lt^ot)-899497514,ut=ot,ot=lt,lt=tt<<30|tt>>>2,tt=et,et=gt}yt[0]=yt[0]+et|0,yt[1]=yt[1]+tt|0,yt[2]=yt[2]+lt|0,yt[3]=yt[3]+ot|0,yt[4]=yt[4]+ut|0},_doFinalize:function(){var xt=this._data,Dt=xt.words,yt=8*this._nDataBytes,et=8*xt.sigBytes;return Dt[et>>>5]|=128<<24-et%32,Dt[14+(et+64>>>9<<4)]=Math.floor(yt/4294967296),Dt[15+(et+64>>>9<<4)]=yt,xt.sigBytes=4*Dt.length,this._process(),this._hash},clone:function(){var xt=Mt.clone.call(this);return xt._hash=this._hash.clone(),xt}});Ot.SHA1=Mt._createHelper(kt),Ot.HmacSHA1=Mt._createHmacHelper(kt)}(),Zt.SHA1})},function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot(Qt(0))})(0,function(Zt){(function(){var Ot=Zt,jt=Ot.lib,Ct=jt.Base,Mt=Ot.enc,Bt=Mt.Utf8,St=Ot.algo;St.HMAC=Ct.extend({init:function(kt,xt){kt=this._hasher=new kt.init,typeof xt=="string"&&(xt=Bt.parse(xt));var Dt=kt.blockSize,yt=4*Dt;xt.sigBytes>yt&&(xt=kt.finalize(xt)),xt.clamp();for(var et=this._oKey=xt.clone(),tt=this._iKey=xt.clone(),lt=et.words,ot=tt.words,ut=0;ut<Dt;ut++)lt[ut]^=1549556828,ot[ut]^=909522486;et.sigBytes=tt.sigBytes=yt,this.reset()},reset:function(){var kt=this._hasher;kt.reset(),kt.update(this._iKey)},update:function(kt){return this._hasher.update(kt),this},finalize:function(kt){var xt=this._hasher,Dt=xt.finalize(kt);return xt.reset(),xt.finalize(this._oKey.clone().concat(Dt))}})})()})},function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot(Qt(0))})(0,function(Zt){return function(){function Ot(St,kt,xt){for(var Dt=[],yt=0,et=0;et<kt;et++)if(et%4){var tt=xt[St.charCodeAt(et-1)]<<et%4*2,lt=xt[St.charCodeAt(et)]>>>6-et%4*2;Dt[yt>>>2]|=(tt|lt)<<24-yt%4*8,yt++}return Mt.create(Dt,yt)}var jt=Zt,Ct=jt.lib,Mt=Ct.WordArray,Bt=jt.enc;Bt.Base64={stringify:function(St){var kt=St.words,xt=St.sigBytes,Dt=this._map;St.clamp();for(var yt=[],et=0;et<xt;et+=3)for(var tt=kt[et>>>2]>>>24-et%4*8&255,lt=kt[et+1>>>2]>>>24-(et+1)%4*8&255,ot=kt[et+2>>>2]>>>24-(et+2)%4*8&255,ut=tt<<16|lt<<8|ot,ct=0;ct<4&&et+.75*ct<xt;ct++)yt.push(Dt.charAt(ut>>>6*(3-ct)&63));var ft=Dt.charAt(64);if(ft)for(;yt.length%4;)yt.push(ft);return yt.join("")},parse:function(St){var kt=St.length,xt=this._map,Dt=this._reverseMap;if(!Dt){Dt=this._reverseMap=[];for(var yt=0;yt<xt.length;yt++)Dt[xt.charCodeAt(yt)]=yt}var et=xt.charAt(64);if(et){var tt=St.indexOf(et);tt!==-1&&(kt=tt)}return Ot(St,kt,Dt)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),Zt.enc.Base64})},function(ee,wt,Qt){"use strict";function Zt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}function Ot(Lt,Rt){if(!(Lt instanceof Rt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var jt=function(){function Lt(Rt,Ut){for(var Nt=0;Nt<Ut.length;Nt++){var qt=Ut[Nt];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Rt,qt.key,qt)}}return function(Rt,Ut,Nt){return Ut&&Lt(Rt.prototype,Ut),Nt&&Lt(Rt,Nt),Rt}}(),Ct=Qt(8),Mt=Zt(Ct),Bt=Qt(7),St=Zt(Bt),kt=Qt(4),xt=Zt(kt),Dt=Qt(6),yt=Zt(Dt),et=Qt(1),tt=Zt(et),lt=Qt(9),ot=Zt(lt),ut=Qt(2),ct=Qt(11),ft=Qt(10),gt=function(){function Lt(){Ot(this,Lt)}return jt(Lt,null,[{key:"getAuthInfo",value:function(Rt,Ut,Nt){var qt=Rt+"|f#Ylm&^1TppeRhLg|"+Nt;return Ut&&(qt=Rt+"|"+Ut+"|f#Ylm&^1TppeRhLg|"+Nt),ut(ft.parse(qt)).toString(ct)}},{key:"upload",value:function(Rt,Ut,Nt){var qt=tt.default.ISODateString(new Date),te=Math.floor(new Date().valueOf()/1e3),Vt=xt.default.getClientId();Vt=xt.default.setClientId(Vt);var de=Lt.getAuthInfo(Rt.userId,Vt,te),ge=ot.default.randomUUID(),be={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:St.default.browser.name+(St.default.browser.version||""),AppVersion:yt.default.version,AuthTimestamp:te,Timestamp:qt,AuthInfo:de,FileName:Rt.file.name,FileSize:Rt.file.size,FileCreateTime:Rt.file.lastModified,FileHash:Rt.fileHash,UploadId:Rt.checkpoint.checkpoint.uploadId,PartSize:Rt.checkpoint.checkpoint.partSize,DonePartsCount:Rt.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(Rt.checkpoint),UploadRatio:Rt.checkpoint.loaded,UserId:Rt.userId,VideoId:Rt.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:ge};Vt&&(be.ClientId=Vt);var Ne=ot.default.makeUTF8sort(be,"=","&")+"&Signature="+ot.default.aliyunEncodeURI(ot.default.makeChangeSiga(be,Rt.accessKeySecret)),Ge="https://vod."+Rt.region+".aliyuncs.com/?"+Ne;Mt.default.get(Ge,function(Pe){Ut&&Ut()},function(Pe){Pe&&(Nt(Pe),console.log(Pe))})}},{key:"get",value:function(Rt,Ut,Nt){var qt=tt.default.ISODateString(new Date),te=Math.floor(new Date().valueOf()/1e3),Vt=xt.default.getClientId(),de=Lt.getAuthInfo(Rt.userId,Vt,te),ge=ot.default.randomUUID(),be={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:St.default.browser.name+(St.default.browser.version||""),AppVersion:yt.default.version,AuthTimestamp:te,Timestamp:qt,AuthInfo:de,UserId:Rt.userId,UploadInfoList:JSON.stringify(Rt.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:ge};Vt&&(be.ClientId=Vt);var Ne=ot.default.makeUTF8sort(be,"=","&")+"&Signature="+ot.default.aliyunEncodeURI(ot.default.makeChangeSiga(be,Rt.accessKeySecret)),Ge="https://vod."+Rt.region+".aliyuncs.com/?"+Ne;Mt.default.get(Ge,function(Pe){var ze={},he=Vt;Pe=Pe?JSON.parse(Pe):{},Pe.UploadProgress&&Pe.UploadProgress.UploadProgressList&&Pe.UploadProgress.UploadProgressList.length>0&&(ze=Pe.UploadProgress.UploadProgressList[0],he=ze.ClientId),xt.default.setClientId(he),Ut&&Ut(ze)},function(Pe){Pe&&(Nt(Pe),console.log(Pe))})}}]),Lt}();wt.default=gt},function(ee,wt,Qt){"use strict";function Zt(Bt,St){if(!(Bt instanceof St))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(wt,"__esModule",{value:!0});var Ot=function(){function Bt(St,kt){for(var xt=0;xt<kt.length;xt++){var Dt=kt[xt];Dt.enumerable=Dt.enumerable||!1,Dt.configurable=!0,"value"in Dt&&(Dt.writable=!0),Object.defineProperty(St,Dt.key,Dt)}}return function(St,kt,xt){return kt&&Bt(St.prototype,kt),xt&&Bt(St,xt),St}}(),jt=Qt(2),Ct=Qt(33),Mt=(Qt(11),function(){function Bt(){Zt(this,Bt)}return Ot(Bt,null,[{key:"getMd5",value:function(St,kt,xt){var Dt=new FileReader;Dt.onload=function(tt){try{if(tt&&tt.target){var lt=jt(Ct.parse(tt.target.result)),ot=lt.toString();kt(ot)}}catch(ut){console.log(ut)}},Dt.onerror=function(tt){console.log(tt),errorCallback(tt)};var yt=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,et=yt.call(St,0,1024);Dt.readAsBinaryString(et)}}]),Bt}());wt.default=Mt},function(ee,wt,Qt){(function(Zt,Ot){ee.exports=wt=Ot(Qt(0))})(0,function(Zt){return Zt.enc.Latin1})}])},99498:function(Cn,Gn,ce){(function(ee){ee(ce(89780))})(function(ee){ee.defineOption("placeholder","",function(Mt,Bt,St){var kt=St&&St!=ee.Init;if(Bt&&!kt)Mt.on("blur",Ot),Mt.on("change",jt),Mt.on("swapDoc",jt),ee.on(Mt.getInputField(),"compositionupdate",Mt.state.placeholderCompose=function(){Zt(Mt)}),jt(Mt);else if(!Bt&&kt){Mt.off("blur",Ot),Mt.off("change",jt),Mt.off("swapDoc",jt),ee.off(Mt.getInputField(),"compositionupdate",Mt.state.placeholderCompose),wt(Mt);var xt=Mt.getWrapperElement();xt.className=xt.className.replace(" CodeMirror-empty","")}Bt&&!Mt.hasFocus()&&Ot(Mt)});function wt(Mt){Mt.state.placeholder&&(Mt.state.placeholder.parentNode.removeChild(Mt.state.placeholder),Mt.state.placeholder=null)}function Qt(Mt){wt(Mt);var Bt=Mt.state.placeholder=document.createElement("pre");Bt.style.cssText="height: 0; overflow: visible",Bt.style.direction=Mt.getOption("direction"),Bt.className="CodeMirror-placeholder CodeMirror-line-like";var St=Mt.getOption("placeholder");typeof St=="string"&&(St=document.createTextNode(St)),Bt.appendChild(St),Mt.display.lineSpace.insertBefore(Bt,Mt.display.lineSpace.firstChild)}function Zt(Mt){setTimeout(function(){var Bt=!1,St=Mt.getInputField();St.nodeName=="TEXTAREA"?Bt=!St.value:Mt.lineCount()==1&&(Bt=!/[^\u200b]/.test(St.querySelector(".CodeMirror-line").textContent)),Bt?Qt(Mt):wt(Mt)},20)}function Ot(Mt){Ct(Mt)&&Qt(Mt)}function jt(Mt){var Bt=Mt.getWrapperElement(),St=Ct(Mt);Bt.className=Bt.className.replace(" CodeMirror-empty","")+(St?" CodeMirror-empty":""),St?Qt(Mt):wt(Mt)}function Ct(Mt){return Mt.lineCount()===1&&Mt.getLine(0)===""}})},25717:function(Cn,Gn,ce){(function(ee){ee(ce(89780))})(function(ee){var wt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Qt=ee.Pos;ee.defineOption("autoCloseBrackets",!1,function(et,tt,lt){lt&<!=ee.Init&&(et.removeKeyMap(Ot),et.state.closeBrackets=null),tt&&(jt(Zt(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(Ot))});function Zt(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:wt[tt]}var Ot={Backspace:Bt,Enter:St};function jt(et){for(var tt=0;tt<et.length;tt++){var lt=et.charAt(tt),ot="'"+lt+"'";Ot[ot]||(Ot[ot]=Ct(lt))}}jt(wt.pairs+"`");function Ct(et){return function(tt){return xt(tt,et)}}function Mt(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var lt=et.getModeAt(et.getCursor());return lt.closeBrackets||tt}function Bt(et){var tt=Mt(et);if(!tt||et.getOption("disableInput"))return ee.Pass;for(var lt=Zt(tt,"pairs"),ot=et.listSelections(),ut=0;ut<ot.length;ut++){if(!ot[ut].empty())return ee.Pass;var ct=Dt(et,ot[ut].head);if(!ct||lt.indexOf(ct)%2!=0)return ee.Pass}for(var ut=ot.length-1;ut>=0;ut--){var ft=ot[ut].head;et.replaceRange("",Qt(ft.line,ft.ch-1),Qt(ft.line,ft.ch+1),"+delete")}}function St(et){var tt=Mt(et),lt=tt&&Zt(tt,"explode");if(!lt||et.getOption("disableInput"))return ee.Pass;for(var ot=et.listSelections(),ut=0;ut<ot.length;ut++){if(!ot[ut].empty())return ee.Pass;var ct=Dt(et,ot[ut].head);if(!ct||lt.indexOf(ct)%2!=0)return ee.Pass}et.operation(function(){var ft=et.lineSeparator()||`
|
|
`;et.replaceSelection(ft+ft,null),et.execCommand("goCharLeft"),ot=et.listSelections();for(var gt=0;gt<ot.length;gt++){var Lt=ot[gt].head.line;et.indentLine(Lt,null,!0),et.indentLine(Lt+1,null,!0)}})}function kt(et){var tt=ee.cmpPos(et.anchor,et.head)>0;return{anchor:new Qt(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new Qt(et.head.line,et.head.ch+(tt?1:-1))}}function xt(et,tt){var lt=Mt(et);if(!lt||et.getOption("disableInput"))return ee.Pass;var ot=Zt(lt,"pairs"),ut=ot.indexOf(tt);if(ut==-1)return ee.Pass;for(var ct=Zt(lt,"closeBefore"),ft=Zt(lt,"triples"),gt=ot.charAt(ut+1)==tt,Lt=et.listSelections(),Rt=ut%2==0,Ut,Nt=0;Nt<Lt.length;Nt++){var qt=Lt[Nt],te=qt.head,Vt,de=et.getRange(te,Qt(te.line,te.ch+1));if(Rt&&!qt.empty())Vt="surround";else if((gt||!Rt)&&de==tt)gt&&yt(et,te)?Vt="both":ft.indexOf(tt)>=0&&et.getRange(te,Qt(te.line,te.ch+3))==tt+tt+tt?Vt="skipThree":Vt="skip";else if(gt&&te.ch>1&&ft.indexOf(tt)>=0&&et.getRange(Qt(te.line,te.ch-2),te)==tt+tt){if(te.ch>2&&/\bstring/.test(et.getTokenTypeAt(Qt(te.line,te.ch-2))))return ee.Pass;Vt="addFour"}else if(gt){var ge=te.ch==0?" ":et.getRange(Qt(te.line,te.ch-1),te);if(!ee.isWordChar(de)&&ge!=tt&&!ee.isWordChar(ge))Vt="both";else return ee.Pass}else if(Rt&&(de.length===0||/\s/.test(de)||ct.indexOf(de)>-1))Vt="both";else return ee.Pass;if(!Ut)Ut=Vt;else if(Ut!=Vt)return ee.Pass}var be=ut%2?ot.charAt(ut-1):tt,Ne=ut%2?tt:ot.charAt(ut+1);et.operation(function(){if(Ut=="skip")et.execCommand("goCharRight");else if(Ut=="skipThree")for(var Ge=0;Ge<3;Ge++)et.execCommand("goCharRight");else if(Ut=="surround"){for(var Pe=et.getSelections(),Ge=0;Ge<Pe.length;Ge++)Pe[Ge]=be+Pe[Ge]+Ne;et.replaceSelections(Pe,"around"),Pe=et.listSelections().slice();for(var Ge=0;Ge<Pe.length;Ge++)Pe[Ge]=kt(Pe[Ge]);et.setSelections(Pe)}else Ut=="both"?(et.replaceSelection(be+Ne,null),et.triggerElectric(be+Ne),et.execCommand("goCharLeft")):Ut=="addFour"&&(et.replaceSelection(be+be+be+be,"before"),et.execCommand("goCharRight"))})}function Dt(et,tt){var lt=et.getRange(Qt(tt.line,tt.ch-1),Qt(tt.line,tt.ch+1));return lt.length==2?lt:null}function yt(et,tt){var lt=et.getTokenAt(Qt(tt.line,tt.ch+1));return/\bstring/.test(lt.type)&<.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(Cn,Gn,ce){(function(ee){ee(ce(89780),ce(32855))})(function(ee){ee.defineOption("autoCloseTags",!1,function(Bt,St,kt){if(kt!=ee.Init&&kt&&Bt.removeKeyMap("autoCloseTags"),!!St){var xt={name:"autoCloseTags"};(typeof St!="object"||St.whenClosing!==!1)&&(xt["'/'"]=function(Dt){return jt(Dt)}),(typeof St!="object"||St.whenOpening!==!1)&&(xt["'>'"]=function(Dt){return Zt(Dt)}),Bt.addKeyMap(xt)}});var wt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Qt=["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 Zt(Bt){if(Bt.getOption("disableInput"))return ee.Pass;for(var St=Bt.listSelections(),kt=[],xt=Bt.getOption("autoCloseTags"),Dt=0;Dt<St.length;Dt++){if(!St[Dt].empty())return ee.Pass;var yt=St[Dt].head,et=Bt.getTokenAt(yt),tt=ee.innerMode(Bt.getMode(),et.state),lt=tt.state,ot=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(lt),ut=ot&&ot.name;if(!ut)return ee.Pass;var ct=tt.mode.configuration=="html",ft=typeof xt=="object"&&xt.dontCloseTags||ct&&wt,gt=typeof xt=="object"&&xt.indentTags||ct&&Qt;et.end>yt.ch&&(ut=ut.slice(0,ut.length-et.end+yt.ch));var Lt=ut.toLowerCase();if(!ut||et.type=="string"&&(et.end!=yt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&ot.close||et.string.indexOf("/")==yt.ch-et.start-1||ft&&Ct(ft,Lt)>-1||Mt(Bt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ut,yt,!0))return ee.Pass;var Rt=typeof xt=="object"&&xt.emptyTags;if(Rt&&Ct(Rt,ut)>-1){kt[Dt]={text:"/>",newPos:ee.Pos(yt.line,yt.ch+2)};continue}var Ut=gt&&Ct(gt,Lt)>-1;kt[Dt]={indent:Ut,text:">"+(Ut?`
|
|
|
|
`:"")+"</"+ut+">",newPos:Ut?ee.Pos(yt.line+1,0):ee.Pos(yt.line,yt.ch+1)}}for(var Nt=typeof xt=="object"&&xt.dontIndentOnAutoClose,Dt=St.length-1;Dt>=0;Dt--){var qt=kt[Dt];Bt.replaceRange(qt.text,St[Dt].head,St[Dt].anchor,"+insert");var te=Bt.listSelections().slice(0);te[Dt]={head:qt.newPos,anchor:qt.newPos},Bt.setSelections(te),!Nt&&qt.indent&&(Bt.indentLine(qt.newPos.line,null,!0),Bt.indentLine(qt.newPos.line+1,null,!0))}}function Ot(Bt,St){for(var kt=Bt.listSelections(),xt=[],Dt=St?"/":"</",yt=Bt.getOption("autoCloseTags"),et=typeof yt=="object"&&yt.dontIndentOnSlash,tt=0;tt<kt.length;tt++){if(!kt[tt].empty())return ee.Pass;var lt=kt[tt].head,ot=Bt.getTokenAt(lt),ut=ee.innerMode(Bt.getMode(),ot.state),ct=ut.state;if(St&&(ot.type=="string"||ot.string.charAt(0)!="<"||ot.start!=lt.ch-1))return ee.Pass;var ft,gt=ut.mode.name!="xml"&&Bt.getMode().name=="htmlmixed";if(gt&&ut.mode.name=="javascript")ft=Dt+"script";else if(gt&&ut.mode.name=="css")ft=Dt+"style";else{var Lt=ut.mode.xmlCurrentContext&&ut.mode.xmlCurrentContext(ct);if(!Lt||Lt.length&&Mt(Bt,Lt,Lt[Lt.length-1],lt))return ee.Pass;ft=Dt+Lt[Lt.length-1]}Bt.getLine(lt.line).charAt(ot.end)!=">"&&(ft+=">"),xt[tt]=ft}if(Bt.replaceSelections(xt),kt=Bt.listSelections(),!et)for(var tt=0;tt<kt.length;tt++)(tt==kt.length-1||kt[tt].head.line<kt[tt+1].head.line)&&Bt.indentLine(kt[tt].head.line)}function jt(Bt){return Bt.getOption("disableInput")?ee.Pass:Ot(Bt,!0)}ee.commands.closeTag=function(Bt){return Ot(Bt)};function Ct(Bt,St){if(Bt.indexOf)return Bt.indexOf(St);for(var kt=0,xt=Bt.length;kt<xt;++kt)if(Bt[kt]==St)return kt;return-1}function Mt(Bt,St,kt,xt,Dt){if(!ee.scanForClosingTag)return!1;var yt=Math.min(Bt.lastLine()+1,xt.line+500),et=ee.scanForClosingTag(Bt,xt,null,yt);if(!et||et.tag!=kt)return!1;for(var tt=Dt?1:0,lt=St.length-1;lt>=0&&St[lt]==kt;lt--)++tt;xt=et.to;for(var lt=1;lt<tt;lt++){var ot=ee.scanForClosingTag(Bt,xt,null,yt);if(!ot||ot.tag!=kt)return!1;xt=ot.to}return!0}})},32855:function(Cn,Gn,ce){(function(ee){ee(ce(89780))})(function(ee){"use strict";var wt=ee.Pos;function Qt(lt,ot){return lt.line-ot.line||lt.ch-ot.ch}var Zt="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",Ot=Zt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",jt=new RegExp("<(/?)(["+Zt+"]["+Ot+"]*)","g");function Ct(lt,ot,ut,ct){this.line=ot,this.ch=ut,this.cm=lt,this.text=lt.getLine(ot),this.min=ct?Math.max(ct.from,lt.firstLine()):lt.firstLine(),this.max=ct?Math.min(ct.to-1,lt.lastLine()):lt.lastLine()}function Mt(lt,ot){var ut=lt.cm.getTokenTypeAt(wt(lt.line,ot));return ut&&/\btag\b/.test(ut)}function Bt(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function St(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function kt(lt){for(;;){var ot=lt.text.indexOf(">",lt.ch);if(ot==-1){if(Bt(lt))continue;return}if(!Mt(lt,ot+1)){lt.ch=ot+1;continue}var ut=lt.text.lastIndexOf("/",ot),ct=ut>-1&&!/\S/.test(lt.text.slice(ut+1,ot));return lt.ch=ot+1,ct?"selfClose":"regular"}}function xt(lt){for(;;){var ot=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(ot==-1){if(St(lt))continue;return}if(!Mt(lt,ot+1)){lt.ch=ot;continue}jt.lastIndex=ot,lt.ch=ot;var ut=jt.exec(lt.text);if(ut&&ut.index==ot)return ut}}function Dt(lt){for(;;){jt.lastIndex=lt.ch;var ot=jt.exec(lt.text);if(!ot){if(Bt(lt))continue;return}if(!Mt(lt,ot.index+1)){lt.ch=ot.index+1;continue}return lt.ch=ot.index+ot[0].length,ot}}function yt(lt){for(;;){var ot=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(ot==-1){if(St(lt))continue;return}if(!Mt(lt,ot+1)){lt.ch=ot;continue}var ut=lt.text.lastIndexOf("/",ot),ct=ut>-1&&!/\S/.test(lt.text.slice(ut+1,ot));return lt.ch=ot+1,ct?"selfClose":"regular"}}function et(lt,ot){for(var ut=[];;){var ct=Dt(lt),ft,gt=lt.line,Lt=lt.ch-(ct?ct[0].length:0);if(!ct||!(ft=kt(lt)))return;if(ft!="selfClose")if(ct[1]){for(var Rt=ut.length-1;Rt>=0;--Rt)if(ut[Rt]==ct[2]){ut.length=Rt;break}if(Rt<0&&(!ot||ot==ct[2]))return{tag:ct[2],from:wt(gt,Lt),to:wt(lt.line,lt.ch)}}else ut.push(ct[2])}}function tt(lt,ot){for(var ut=[];;){var ct=yt(lt);if(!ct)return;if(ct=="selfClose"){xt(lt);continue}var ft=lt.line,gt=lt.ch,Lt=xt(lt);if(!Lt)return;if(Lt[1])ut.push(Lt[2]);else{for(var Rt=ut.length-1;Rt>=0;--Rt)if(ut[Rt]==Lt[2]){ut.length=Rt;break}if(Rt<0&&(!ot||ot==Lt[2]))return{tag:Lt[2],from:wt(lt.line,lt.ch),to:wt(ft,gt)}}}}ee.registerHelper("fold","xml",function(lt,ot){for(var ut=new Ct(lt,ot.line,0);;){var ct=Dt(ut);if(!ct||ut.line!=ot.line)return;var ft=kt(ut);if(!ft)return;if(!ct[1]&&ft!="selfClose"){var gt=wt(ut.line,ut.ch),Lt=et(ut,ct[2]);return Lt&&Qt(Lt.from,gt)>0?{from:gt,to:Lt.from}:null}}}),ee.findMatchingTag=function(lt,ot,ut){var ct=new Ct(lt,ot.line,ot.ch,ut);if(!(ct.text.indexOf(">")==-1&&ct.text.indexOf("<")==-1)){var ft=kt(ct),gt=ft&&wt(ct.line,ct.ch),Lt=ft&&xt(ct);if(!(!ft||!Lt||Qt(ct,ot)>0)){var Rt={from:wt(ct.line,ct.ch),to:gt,tag:Lt[2]};return ft=="selfClose"?{open:Rt,close:null,at:"open"}:Lt[1]?{open:tt(ct,Lt[2]),close:Rt,at:"close"}:(ct=new Ct(lt,gt.line,gt.ch,ut),{open:Rt,close:et(ct,Lt[2]),at:"open"})}}},ee.findEnclosingTag=function(lt,ot,ut,ct){for(var ft=new Ct(lt,ot.line,ot.ch,ut);;){var gt=tt(ft,ct);if(!gt)break;var Lt=new Ct(lt,ot.line,ot.ch,ut),Rt=et(Lt,gt.tag);if(Rt)return{open:gt,close:Rt}}},ee.scanForClosingTag=function(lt,ot,ut,ct){var ft=new Ct(lt,ot.line,ot.ch,ct?{from:0,to:ct}:null);return et(ft,ut)}})},89780:function(Cn){(function(Gn,ce){Cn.exports=ce()})(this,function(){"use strict";var Gn=navigator.userAgent,ce=navigator.platform,ee=/gecko\/\d/i.test(Gn),wt=/MSIE \d/.test(Gn),Qt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gn),Zt=/Edge\/(\d+)/.exec(Gn),Ot=wt||Qt||Zt,jt=Ot&&(wt?document.documentMode||6:+(Zt||Qt)[1]),Ct=!Zt&&/WebKit\//.test(Gn),Mt=Ct&&/Qt\/\d+\.\d+/.test(Gn),Bt=!Zt&&/Chrome\//.test(Gn),St=/Opera\//.test(Gn),kt=/Apple Computer/.test(navigator.vendor),xt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Gn),Dt=/PhantomJS/.test(Gn),yt=!Zt&&/AppleWebKit/.test(Gn)&&/Mobile\/\w+/.test(Gn),et=/Android/.test(Gn),tt=yt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Gn),lt=yt||/Mac/.test(ce),ot=/\bCrOS\b/.test(Gn),ut=/win/i.test(ce),ct=St&&Gn.match(/Version\/(\d*\.\d*)/);ct&&(ct=Number(ct[1])),ct&&ct>=15&&(St=!1,Ct=!0);var ft=lt&&(Mt||St&&(ct==null||ct<12.11)),gt=ee||Ot&&jt>=9;function Lt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Rt=function(it,at){var mt=it.className,pt=Lt(at).exec(mt);if(pt){var bt=mt.slice(pt.index+pt[0].length);it.className=mt.slice(0,pt.index)+(bt?pt[1]+bt:"")}};function Ut(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Nt(it,at){return Ut(it).appendChild(at)}function qt(it,at,mt,pt){var bt=document.createElement(it);if(mt&&(bt.className=mt),pt&&(bt.style.cssText=pt),typeof at=="string")bt.appendChild(document.createTextNode(at));else if(at)for(var Xt=0;Xt<at.length;++Xt)bt.appendChild(at[Xt]);return bt}function te(it,at,mt,pt){var bt=qt(it,at,mt,pt);return bt.setAttribute("role","presentation"),bt}var Vt;document.createRange?Vt=function(it,at,mt,pt){var bt=document.createRange();return bt.setEnd(pt||it,mt),bt.setStart(it,at),bt}:Vt=function(it,at,mt){var pt=document.body.createTextRange();try{pt.moveToElementText(it.parentNode)}catch(bt){return pt}return pt.collapse(!0),pt.moveEnd("character",mt),pt.moveStart("character",at),pt};function de(it,at){if(at.nodeType==3&&(at=at.parentNode),it.contains)return it.contains(at);do if(at.nodeType==11&&(at=at.host),at==it)return!0;while(at=at.parentNode)}function ge(){var it;try{it=document.activeElement}catch(at){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function be(it,at){var mt=it.className;Lt(at).test(mt)||(it.className+=(mt?" ":"")+at)}function Ne(it,at){for(var mt=it.split(" "),pt=0;pt<mt.length;pt++)mt[pt]&&!Lt(mt[pt]).test(at)&&(at+=" "+mt[pt]);return at}var Ge=function(it){it.select()};yt?Ge=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Ot&&(Ge=function(it){try{it.select()}catch(at){}});function Pe(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function ze(it,at,mt){at||(at={});for(var pt in it)it.hasOwnProperty(pt)&&(mt!==!1||!at.hasOwnProperty(pt))&&(at[pt]=it[pt]);return at}function he(it,at,mt,pt,bt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var Xt=pt||0,ae=bt||0;;){var Se=it.indexOf(" ",Xt);if(Se<0||Se>=at)return ae+(at-Xt);ae+=Se-Xt,ae+=mt-ae%mt,Xt=Se+1}}var Jt=function(){this.id=null,this.f=null,this.time=0,this.handler=Pe(this.onTimeout,this)};Jt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Jt.prototype.set=function(it,at){this.f=at;var mt=+new Date+it;(!this.id||mt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=mt)};function re(it,at){for(var mt=0;mt<it.length;++mt)if(it[mt]==at)return mt;return-1}var se=50,pe={toString:function(){return"CodeMirror.Pass"}},ue={scroll:!1},Re={origin:"*mouse"},Fe={origin:"+move"};function Qe(it,at,mt){for(var pt=0,bt=0;;){var Xt=it.indexOf(" ",pt);Xt==-1&&(Xt=it.length);var ae=Xt-pt;if(Xt==it.length||bt+ae>=at)return pt+Math.min(ae,at-bt);if(bt+=Xt-pt,bt+=mt-bt%mt,pt=Xt+1,bt>=at)return pt}}var Ae=[""];function _e(it){for(;Ae.length<=it;)Ae.push(Le(Ae)+" ");return Ae[it]}function Le(it){return it[it.length-1]}function Oe(it,at){for(var mt=[],pt=0;pt<it.length;pt++)mt[pt]=at(it[pt],pt);return mt}function He(it,at,mt){for(var pt=0,bt=mt(at);pt<it.length&&mt(it[pt])<=bt;)pt++;it.splice(pt,0,at)}function ie(){}function Tt(it,at){var mt;return Object.create?mt=Object.create(it):(ie.prototype=it,mt=new ie),at&&ze(at,mt),mt}var At=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Yt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||At.test(it))}function oe(it,at){return at?at.source.indexOf("\\w")>-1&&Yt(it)?!0:at.test(it):Yt(it)}function _t(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var It=/[\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 Pt(it){return it.charCodeAt(0)>=768&&It.test(it)}function Et(it,at,mt){for(;(mt<0?at>0:at<it.length)&&Pt(it.charAt(at));)at+=mt;return at}function $t(it,at,mt){for(var pt=at>mt?-1:1;;){if(at==mt)return at;var bt=(at+mt)/2,Xt=pt<0?Math.ceil(bt):Math.floor(bt);if(Xt==at)return it(Xt)?at:mt;it(Xt)?mt=Xt:at=Xt+pt}}function zt(it,at,mt,pt){if(!it)return pt(at,mt,"ltr",0);for(var bt=!1,Xt=0;Xt<it.length;++Xt){var ae=it[Xt];(ae.from<mt&&ae.to>at||at==mt&&ae.to==at)&&(pt(Math.max(ae.from,at),Math.min(ae.to,mt),ae.level==1?"rtl":"ltr",Xt),bt=!0)}bt||pt(at,mt,"ltr")}var Gt=null;function le(it,at,mt){var pt;Gt=null;for(var bt=0;bt<it.length;++bt){var Xt=it[bt];if(Xt.from<at&&Xt.to>at)return bt;Xt.to==at&&(Xt.from!=Xt.to&&mt=="before"?pt=bt:Gt=bt),Xt.from==at&&(Xt.from!=Xt.to&&mt!="before"?pt=bt:Gt=bt)}return pt!=null?pt:Gt}var ye=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function mt(Te){return Te<=247?it.charAt(Te):1424<=Te&&Te<=1524?"R":1536<=Te&&Te<=1785?at.charAt(Te-1536):1774<=Te&&Te<=2220?"r":8192<=Te&&Te<=8203?"w":Te==8204?"b":"L"}var pt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,bt=/[stwN]/,Xt=/[LRr]/,ae=/[Lb1n]/,Se=/[1n]/;function me(Te,$e,Be){this.level=Te,this.from=$e,this.to=Be}return function(Te,$e){var Be=$e=="ltr"?"L":"R";if(Te.length==0||$e=="ltr"&&!pt.test(Te))return!1;for(var un=Te.length,ln=[],Kn=0;Kn<un;++Kn)ln.push(mt(Te.charCodeAt(Kn)));for(var Zn=0,si=Be;Zn<un;++Zn){var wi=ln[Zn];wi=="m"?ln[Zn]=si:si=wi}for(var Vi=0,Ni=Be;Vi<un;++Vi){var $i=ln[Vi];$i=="1"&&Ni=="r"?ln[Vi]="n":Xt.test($i)&&(Ni=$i,$i=="r"&&(ln[Vi]="R"))}for(var mr=1,Mi=ln[0];mr<un-1;++mr){var kr=ln[mr];kr=="+"&&Mi=="1"&&ln[mr+1]=="1"?ln[mr]="1":kr==","&&Mi==ln[mr+1]&&(Mi=="1"||Mi=="n")&&(ln[mr]=Mi),Mi=kr}for(var Po=0;Po<un;++Po){var hs=ln[Po];if(hs==",")ln[Po]="N";else if(hs=="%"){var Bo=void 0;for(Bo=Po+1;Bo<un&&ln[Bo]=="%";++Bo);for(var pa=Po&&ln[Po-1]=="!"||Bo<un&&ln[Bo]=="1"?"1":"N",Hs=Po;Hs<Bo;++Hs)ln[Hs]=pa;Po=Bo-1}}for(var ts=0,Ma=Be;ts<un;++ts){var Rs=ln[ts];Ma=="L"&&Rs=="1"?ln[ts]="L":Xt.test(Rs)&&(Ma=Rs)}for(var es=0;es<un;++es)if(bt.test(ln[es])){var Vr=void 0;for(Vr=es+1;Vr<un&&bt.test(ln[Vr]);++Vr);for(var Ro=(es?ln[es-1]:Be)=="L",ws=(Vr<un?ln[Vr]:Be)=="L",js=Ro==ws?Ro?"L":"R":Be,ml=es;ml<Vr;++ml)ln[ml]=js;es=Vr-1}for(var Oo=[],rl,Go=0;Go<un;)if(ae.test(ln[Go])){var Sd=Go;for(++Go;Go<un&&ae.test(ln[Go]);++Go);Oo.push(new me(0,Sd,Go))}else{var _a=Go,Ta=Oo.length,ma=$e=="rtl"?1:0;for(++Go;Go<un&&ln[Go]!="L";++Go);for(var lo=_a;lo<Go;)if(Se.test(ln[lo])){_a<lo&&(Oo.splice(Ta,0,new me(1,_a,lo)),Ta+=ma);var Ps=lo;for(++lo;lo<Go&&Se.test(ln[lo]);++lo);Oo.splice(Ta,0,new me(2,Ps,lo)),Ta+=ma,_a=lo}else++lo;_a<Go&&Oo.splice(Ta,0,new me(1,_a,Go))}return $e=="ltr"&&(Oo[0].level==1&&(rl=Te.match(/^\s+/))&&(Oo[0].from=rl[0].length,Oo.unshift(new me(0,0,rl[0].length))),Le(Oo).level==1&&(rl=Te.match(/\s+$/))&&(Le(Oo).to-=rl[0].length,Oo.push(new me(0,un-rl[0].length,un)))),$e=="rtl"?Oo.reverse():Oo}}();function Ue(it,at){var mt=it.order;return mt==null&&(mt=it.order=ye(it.text,at)),mt}var We=[],Ee=function(it,at,mt){if(it.addEventListener)it.addEventListener(at,mt,!1);else if(it.attachEvent)it.attachEvent("on"+at,mt);else{var pt=it._handlers||(it._handlers={});pt[at]=(pt[at]||We).concat(mt)}};function Ze(it,at){return it._handlers&&it._handlers[at]||We}function on(it,at,mt){if(it.removeEventListener)it.removeEventListener(at,mt,!1);else if(it.detachEvent)it.detachEvent("on"+at,mt);else{var pt=it._handlers,bt=pt&&pt[at];if(bt){var Xt=re(bt,mt);Xt>-1&&(pt[at]=bt.slice(0,Xt).concat(bt.slice(Xt+1)))}}}function nn(it,at){var mt=Ze(it,at);if(mt.length)for(var pt=Array.prototype.slice.call(arguments,2),bt=0;bt<mt.length;++bt)mt[bt].apply(null,pt)}function qe(it,at,mt){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),nn(it,mt||at.type,it,at),Tn(at)||at.codemirrorIgnore}function En(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var mt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),pt=0;pt<at.length;++pt)re(mt,at[pt])==-1&&mt.push(at[pt])}function fn(it,at){return Ze(it,at).length>0}function Pn(it){it.prototype.on=function(at,mt){Ee(this,at,mt)},it.prototype.off=function(at,mt){on(this,at,mt)}}function Mn(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function ii(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Tn(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function oi(it){Mn(it),ii(it)}function vi(it){return it.target||it.srcElement}function yi(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),lt&&it.ctrlKey&&at==1&&(at=3),at}var Zi=function(){if(Ot&&jt<9)return!1;var it=qt("div");return"draggable"in it||"dragDrop"in it}(),Hi;function Yi(it){if(Hi==null){var at=qt("span","\u200B");Nt(it,qt("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Hi=at.offsetWidth<=1&&at.offsetHeight>2&&!(Ot&&jt<8))}var mt=Hi?qt("span","\u200B"):qt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return mt.setAttribute("cm-text",""),mt}var zi;function Pi(it){if(zi!=null)return zi;var at=Nt(it,document.createTextNode("A\u062EA")),mt=Vt(at,0,1).getBoundingClientRect(),pt=Vt(at,1,2).getBoundingClientRect();return Ut(it),!mt||mt.left==mt.right?!1:zi=pt.right-mt.right<3}var Gi=`
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var at=0,mt=[],pt=it.length;at<=pt;){var bt=it.indexOf(`
|
|
`,at);bt==-1&&(bt=it.length);var Xt=it.slice(at,it.charAt(bt-1)=="\r"?bt-1:bt),ae=Xt.indexOf("\r");ae!=-1?(mt.push(Xt.slice(0,ae)),at+=ae+1):(mt.push(Xt),at=bt+1)}return mt}:function(it){return it.split(/\r\n?|\n/)},Kt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(mt){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},zn=function(){var it=qt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Rn=null;function bn(it){if(Rn!=null)return Rn;var at=Nt(it,qt("span","x")),mt=at.getBoundingClientRect(),pt=Vt(at,0,1).getBoundingClientRect();return Rn=Math.abs(mt.left-pt.left)>1}var _n={},Yn={};function Xn(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),_n[it]=at}function Ri(it,at){Yn[it]=at}function ki(it){if(typeof it=="string"&&Yn.hasOwnProperty(it))it=Yn[it];else if(it&&typeof it.name=="string"&&Yn.hasOwnProperty(it.name)){var at=Yn[it.name];typeof at=="string"&&(at={name:at}),it=Tt(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return ki("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return ki("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Xe(it,at){at=ki(at);var mt=_n[at.name];if(!mt)return Xe(it,"text/plain");var pt=mt(it,at);if(Je.hasOwnProperty(at.name)){var bt=Je[at.name];for(var Xt in bt)bt.hasOwnProperty(Xt)&&(pt.hasOwnProperty(Xt)&&(pt["_"+Xt]=pt[Xt]),pt[Xt]=bt[Xt])}if(pt.name=at.name,at.helperType&&(pt.helperType=at.helperType),at.modeProps)for(var ae in at.modeProps)pt[ae]=at.modeProps[ae];return pt}var Je={};function Ke(it,at){var mt=Je.hasOwnProperty(it)?Je[it]:Je[it]={};ze(at,mt)}function Hn(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var mt={};for(var pt in at){var bt=at[pt];bt instanceof Array&&(bt=bt.concat([])),mt[pt]=bt}return mt}function Jn(it,at){for(var mt;it.innerMode&&(mt=it.innerMode(at),!(!mt||mt.mode==it));)at=mt.state,it=mt.mode;return mt||{mode:it,state:at}}function qn(it,at,mt){return it.startState?it.startState(at,mt):!0}var pn=function(it,at,mt){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=mt};pn.prototype.eol=function(){return this.pos>=this.string.length},pn.prototype.sol=function(){return this.pos==this.lineStart},pn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pn.prototype.eat=function(it){var at=this.string.charAt(this.pos),mt;if(typeof it=="string"?mt=at==it:mt=at&&(it.test?it.test(at):it(at)),mt)return++this.pos,at},pn.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},pn.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},pn.prototype.skipToEnd=function(){this.pos=this.string.length},pn.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},pn.prototype.backUp=function(it){this.pos-=it},pn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},pn.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},pn.prototype.match=function(it,at,mt){if(typeof it=="string"){var pt=function(ae){return mt?ae.toLowerCase():ae},bt=this.string.substr(this.pos,it.length);if(pt(bt)==pt(it))return at!==!1&&(this.pos+=it.length),!0}else{var Xt=this.string.slice(this.pos).match(it);return Xt&&Xt.index>0?null:(Xt&&at!==!1&&(this.pos+=Xt[0].length),Xt)}},pn.prototype.current=function(){return this.string.slice(this.start,this.pos)},pn.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},pn.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},pn.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Bn(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var mt=it;!mt.lines;)for(var pt=0;;++pt){var bt=mt.children[pt],Xt=bt.chunkSize();if(at<Xt){mt=bt;break}at-=Xt}return mt.lines[at]}function hi(it,at,mt){var pt=[],bt=at.line;return it.iter(at.line,mt.line+1,function(Xt){var ae=Xt.text;bt==mt.line&&(ae=ae.slice(0,mt.ch)),bt==at.line&&(ae=ae.slice(at.ch)),pt.push(ae),++bt}),pt}function Ti(it,at,mt){var pt=[];return it.iter(at,mt,function(bt){pt.push(bt.text)}),pt}function Di(it,at){var mt=at-it.height;if(mt)for(var pt=it;pt;pt=pt.parent)pt.height+=mt}function we(it){if(it.parent==null)return null;for(var at=it.parent,mt=re(at.lines,it),pt=at.parent;pt;at=pt,pt=pt.parent)for(var bt=0;pt.children[bt]!=at;++bt)mt+=pt.children[bt].chunkSize();return mt+at.first}function je(it,at){var mt=it.first;t:do{for(var pt=0;pt<it.children.length;++pt){var bt=it.children[pt],Xt=bt.height;if(at<Xt){it=bt;continue t}at-=Xt,mt+=bt.chunkSize()}return mt}while(!it.lines);for(var ae=0;ae<it.lines.length;++ae){var Se=it.lines[ae],me=Se.height;if(at<me)break;at-=me}return mt+ae}function An(it,at){return at>=it.first&&at<it.first+it.size}function Nn(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function tn(it,at,mt){if(mt===void 0&&(mt=null),!(this instanceof tn))return new tn(it,at,mt);this.line=it,this.ch=at,this.sticky=mt}function yn(it,at){return it.line-at.line||it.ch-at.ch}function xn(it,at){return it.sticky==at.sticky&&yn(it,at)==0}function Sn(it){return tn(it.line,it.ch)}function Wn(it,at){return yn(it,at)<0?at:it}function Fn(it,at){return yn(it,at)<0?it:at}function jn(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function In(it,at){if(at.line<it.first)return tn(it.first,0);var mt=it.first+it.size-1;return at.line>mt?tn(mt,Bn(it,mt).text.length):Ai(at,Bn(it,at.line).text.length)}function Ai(it,at){var mt=it.ch;return mt==null||mt>at?tn(it.line,at):mt<0?tn(it.line,0):it}function ai(it,at){for(var mt=[],pt=0;pt<at.length;pt++)mt[pt]=In(it,at[pt]);return mt}var ci=function(it,at){this.state=it,this.lookAhead=at},rn=function(it,at,mt,pt){this.state=at,this.doc=it,this.line=mt,this.maxLookAhead=pt||0,this.baseTokens=null,this.baseTokenPos=1};rn.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},rn.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},rn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},rn.fromSaved=function(it,at,mt){return at instanceof ci?new rn(it,Hn(it.mode,at.state),mt,at.lookAhead):new rn(it,Hn(it.mode,at),mt)},rn.prototype.save=function(it){var at=it!==!1?Hn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ci(at,this.maxLookAhead):at};function Ii(it,at,mt,pt){var bt=[it.state.modeGen],Xt={};Fi(it,at.text,it.doc.mode,mt,function(Te,$e){return bt.push(Te,$e)},Xt,pt);for(var ae=mt.state,Se=function(Te){mt.baseTokens=bt;var $e=it.state.overlays[Te],Be=1,un=0;mt.state=!0,Fi(it,at.text,$e.mode,mt,function(ln,Kn){for(var Zn=Be;un<ln;){var si=bt[Be];si>ln&&bt.splice(Be,1,ln,bt[Be+1],si),Be+=2,un=Math.min(ln,si)}if(Kn)if($e.opaque)bt.splice(Zn,Be-Zn,ln,"overlay "+Kn),Be=Zn+2;else for(;Zn<Be;Zn+=2){var wi=bt[Zn+1];bt[Zn+1]=(wi?wi+" ":"")+"overlay "+Kn}},Xt),mt.state=ae,mt.baseTokens=null,mt.baseTokenPos=1},me=0;me<it.state.overlays.length;++me)Se(me);return{styles:bt,classes:Xt.bgClass||Xt.textClass?Xt:null}}function Xi(it,at,mt){if(!at.styles||at.styles[0]!=it.state.modeGen){var pt=vr(it,we(at)),bt=at.text.length>it.options.maxHighlightLength&&Hn(it.doc.mode,pt.state),Xt=Ii(it,at,pt);bt&&(pt.state=bt),at.stateAfter=pt.save(!bt),at.styles=Xt.styles,Xt.classes?at.styleClasses=Xt.classes:at.styleClasses&&(at.styleClasses=null),mt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function vr(it,at,mt){var pt=it.doc,bt=it.display;if(!pt.mode.startState)return new rn(pt,!0,at);var Xt=Ui(it,at,mt),ae=Xt>pt.first&&Bn(pt,Xt-1).stateAfter,Se=ae?rn.fromSaved(pt,ae,Xt):new rn(pt,qn(pt.mode),Xt);return pt.iter(Xt,at,function(me){an(it,me.text,Se);var Te=Se.line;me.stateAfter=Te==at-1||Te%5==0||Te>=bt.viewFrom&&Te<bt.viewTo?Se.save():null,Se.nextLine()}),mt&&(pt.modeFrontier=Se.line),Se}function an(it,at,mt,pt){var bt=it.doc.mode,Xt=new pn(at,it.options.tabSize,mt);for(Xt.start=Xt.pos=pt||0,at==""&&Dn(bt,mt.state);!Xt.eol();)ei(bt,Xt,mt.state),Xt.start=Xt.pos}function Dn(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var mt=Jn(it,at);if(mt.mode.blankLine)return mt.mode.blankLine(mt.state)}}function ei(it,at,mt,pt){for(var bt=0;bt<10;bt++){pt&&(pt[0]=Jn(it,mt).mode);var Xt=it.token(at,mt);if(at.pos>at.start)return Xt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Qn=function(it,at,mt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=mt};function ri(it,at,mt,pt){var bt=it.doc,Xt=bt.mode,ae;at=In(bt,at);var Se=Bn(bt,at.line),me=vr(it,at.line,mt),Te=new pn(Se.text,it.options.tabSize,me),$e;for(pt&&($e=[]);(pt||Te.pos<at.ch)&&!Te.eol();)Te.start=Te.pos,ae=ei(Xt,Te,me.state),pt&&$e.push(new Qn(Te,ae,Hn(bt.mode,me.state)));return pt?$e:new Qn(Te,ae,me.state)}function Ci(it,at){if(it)for(;;){var mt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!mt)break;it=it.slice(0,mt.index)+it.slice(mt.index+mt[0].length);var pt=mt[1]?"bgClass":"textClass";at[pt]==null?at[pt]=mt[2]:new RegExp("(?:^|\\s)"+mt[2]+"(?:$|\\s)").test(at[pt])||(at[pt]+=" "+mt[2])}return it}function Fi(it,at,mt,pt,bt,Xt,ae){var Se=mt.flattenSpans;Se==null&&(Se=it.options.flattenSpans);var me=0,Te=null,$e=new pn(at,it.options.tabSize,pt),Be,un=it.options.addModeClass&&[null];for(at==""&&Ci(Dn(mt,pt.state),Xt);!$e.eol();){if($e.pos>it.options.maxHighlightLength?(Se=!1,ae&&an(it,at,pt,$e.pos),$e.pos=at.length,Be=null):Be=Ci(ei(mt,$e,pt.state,un),Xt),un){var ln=un[0].name;ln&&(Be="m-"+(Be?ln+" "+Be:ln))}if(!Se||Te!=Be){for(;me<$e.start;)me=Math.min($e.start,me+5e3),bt(me,Te);Te=Be}$e.start=$e.pos}for(;me<$e.pos;){var Kn=Math.min($e.pos,me+5e3);bt(Kn,Te),me=Kn}}function Ui(it,at,mt){for(var pt,bt,Xt=it.doc,ae=mt?-1:at-(it.doc.mode.innerMode?1e3:100),Se=at;Se>ae;--Se){if(Se<=Xt.first)return Xt.first;var me=Bn(Xt,Se-1),Te=me.stateAfter;if(Te&&(!mt||Se+(Te instanceof ci?Te.lookAhead:0)<=Xt.modeFrontier))return Se;var $e=he(me.text,null,it.options.tabSize);(bt==null||pt>$e)&&(bt=Se-1,pt=$e)}return bt}function Qi(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var mt=it.first,pt=at-1;pt>mt;pt--){var bt=Bn(it,pt).stateAfter;if(bt&&(!(bt instanceof ci)||pt+bt.lookAhead<at)){mt=pt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,mt)}}var sr=!1,cn=!1;function gr(){sr=!0}function hn(){cn=!0}function di(it,at,mt){this.marker=it,this.from=at,this.to=mt}function tr(it,at){if(it)for(var mt=0;mt<it.length;++mt){var pt=it[mt];if(pt.marker==at)return pt}}function Wi(it,at){for(var mt,pt=0;pt<it.length;++pt)it[pt]!=at&&(mt||(mt=[])).push(it[pt]);return mt}function fr(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function rr(it,at,mt){var pt;if(it)for(var bt=0;bt<it.length;++bt){var Xt=it[bt],ae=Xt.marker,Se=Xt.from==null||(ae.inclusiveLeft?Xt.from<=at:Xt.from<at);if(Se||Xt.from==at&&ae.type=="bookmark"&&(!mt||!Xt.marker.insertLeft)){var me=Xt.to==null||(ae.inclusiveRight?Xt.to>=at:Xt.to>at);(pt||(pt=[])).push(new di(ae,Xt.from,me?null:Xt.to))}}return pt}function _i(it,at,mt){var pt;if(it)for(var bt=0;bt<it.length;++bt){var Xt=it[bt],ae=Xt.marker,Se=Xt.to==null||(ae.inclusiveRight?Xt.to>=at:Xt.to>at);if(Se||Xt.from==at&&ae.type=="bookmark"&&(!mt||Xt.marker.insertLeft)){var me=Xt.from==null||(ae.inclusiveLeft?Xt.from<=at:Xt.from<at);(pt||(pt=[])).push(new di(ae,me?null:Xt.from-at,Xt.to==null?null:Xt.to-at))}}return pt}function Cr(it,at){if(at.full)return null;var mt=An(it,at.from.line)&&Bn(it,at.from.line).markedSpans,pt=An(it,at.to.line)&&Bn(it,at.to.line).markedSpans;if(!mt&&!pt)return null;var bt=at.from.ch,Xt=at.to.ch,ae=yn(at.from,at.to)==0,Se=rr(mt,bt,ae),me=_i(pt,Xt,ae),Te=at.text.length==1,$e=Le(at.text).length+(Te?bt:0);if(Se)for(var Be=0;Be<Se.length;++Be){var un=Se[Be];if(un.to==null){var ln=tr(me,un.marker);ln?Te&&(un.to=ln.to==null?null:ln.to+$e):un.to=bt}}if(me)for(var Kn=0;Kn<me.length;++Kn){var Zn=me[Kn];if(Zn.to!=null&&(Zn.to+=$e),Zn.from==null){var si=tr(Se,Zn.marker);si||(Zn.from=$e,Te&&(Se||(Se=[])).push(Zn))}else Zn.from+=$e,Te&&(Se||(Se=[])).push(Zn)}Se&&(Se=Mo(Se)),me&&me!=Se&&(me=Mo(me));var wi=[Se];if(!Te){var Vi=at.text.length-2,Ni;if(Vi>0&&Se)for(var $i=0;$i<Se.length;++$i)Se[$i].to==null&&(Ni||(Ni=[])).push(new di(Se[$i].marker,null,null));for(var mr=0;mr<Vi;++mr)wi.push(Ni);wi.push(me)}return wi}function Mo(it){for(var at=0;at<it.length;++at){var mt=it[at];mt.from!=null&&mt.from==mt.to&&mt.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function Rr(it,at,mt){var pt=null;if(it.iter(at.line,mt.line+1,function(ln){if(ln.markedSpans)for(var Kn=0;Kn<ln.markedSpans.length;++Kn){var Zn=ln.markedSpans[Kn].marker;Zn.readOnly&&(!pt||re(pt,Zn)==-1)&&(pt||(pt=[])).push(Zn)}}),!pt)return null;for(var bt=[{from:at,to:mt}],Xt=0;Xt<pt.length;++Xt)for(var ae=pt[Xt],Se=ae.find(0),me=0;me<bt.length;++me){var Te=bt[me];if(!(yn(Te.to,Se.from)<0||yn(Te.from,Se.to)>0)){var $e=[me,1],Be=yn(Te.from,Se.from),un=yn(Te.to,Se.to);(Be<0||!ae.inclusiveLeft&&!Be)&&$e.push({from:Te.from,to:Se.from}),(un>0||!ae.inclusiveRight&&!un)&&$e.push({from:Se.to,to:Te.to}),bt.splice.apply(bt,$e),me+=$e.length-3}}return bt}function ti(it){var at=it.markedSpans;if(at){for(var mt=0;mt<at.length;++mt)at[mt].marker.detachLine(it);it.markedSpans=null}}function xe(it,at){if(at){for(var mt=0;mt<at.length;++mt)at[mt].marker.attachLine(it);it.markedSpans=at}}function Gr(it){return it.inclusiveLeft?-1:0}function To(it){return it.inclusiveRight?1:0}function is(it,at){var mt=it.lines.length-at.lines.length;if(mt!=0)return mt;var pt=it.find(),bt=at.find(),Xt=yn(pt.from,bt.from)||Gr(it)-Gr(at);if(Xt)return-Xt;var ae=yn(pt.to,bt.to)||To(it)-To(at);return ae||at.id-it.id}function vo(it,at){var mt=cn&&it.markedSpans,pt;if(mt)for(var bt=void 0,Xt=0;Xt<mt.length;++Xt)bt=mt[Xt],bt.marker.collapsed&&(at?bt.from:bt.to)==null&&(!pt||is(pt,bt.marker)<0)&&(pt=bt.marker);return pt}function xr(it){return vo(it,!0)}function ui(it){return vo(it,!1)}function Si(it,at){var mt=cn&&it.markedSpans,pt;if(mt)for(var bt=0;bt<mt.length;++bt){var Xt=mt[bt];Xt.marker.collapsed&&(Xt.from==null||Xt.from<at)&&(Xt.to==null||Xt.to>at)&&(!pt||is(pt,Xt.marker)<0)&&(pt=Xt.marker)}return pt}function er(it,at,mt,pt,bt){var Xt=Bn(it,at),ae=cn&&Xt.markedSpans;if(ae)for(var Se=0;Se<ae.length;++Se){var me=ae[Se];if(me.marker.collapsed){var Te=me.marker.find(0),$e=yn(Te.from,mt)||Gr(me.marker)-Gr(bt),Be=yn(Te.to,pt)||To(me.marker)-To(bt);if(!($e>=0&&Be<=0||$e<=0&&Be>=0)&&($e<=0&&(me.marker.inclusiveRight&&bt.inclusiveLeft?yn(Te.to,mt)>=0:yn(Te.to,mt)>0)||$e>=0&&(me.marker.inclusiveRight&&bt.inclusiveLeft?yn(Te.from,pt)<=0:yn(Te.from,pt)<0)))return!0}}}function gi(it){for(var at;at=xr(it);)it=at.find(-1,!0).line;return it}function Ji(it){for(var at;at=ui(it);)it=at.find(1,!0).line;return it}function Mr(it){for(var at,mt;at=ui(it);)it=at.find(1,!0).line,(mt||(mt=[])).push(it);return mt}function bi(it,at){var mt=Bn(it,at),pt=gi(mt);return mt==pt?at:we(pt)}function li(it,at){if(at>it.lastLine())return at;var mt=Bn(it,at),pt;if(!wn(it,mt))return at;for(;pt=ui(mt);)mt=pt.find(1,!0).line;return we(mt)+1}function wn(it,at){var mt=cn&&at.markedSpans;if(mt){for(var pt=void 0,bt=0;bt<mt.length;++bt)if(pt=mt[bt],!!pt.marker.collapsed){if(pt.from==null)return!0;if(!pt.marker.widgetNode&&pt.from==0&&pt.marker.inclusiveLeft&&Ei(it,at,pt))return!0}}}function Ei(it,at,mt){if(mt.to==null){var pt=mt.marker.find(1,!0);return Ei(it,pt.line,tr(pt.line.markedSpans,mt.marker))}if(mt.marker.inclusiveRight&&mt.to==at.text.length)return!0;for(var bt=void 0,Xt=0;Xt<at.markedSpans.length;++Xt)if(bt=at.markedSpans[Xt],bt.marker.collapsed&&!bt.marker.widgetNode&&bt.from==mt.to&&(bt.to==null||bt.to!=mt.from)&&(bt.marker.inclusiveLeft||mt.marker.inclusiveRight)&&Ei(it,at,bt))return!0}function pr(it){it=gi(it);for(var at=0,mt=it.parent,pt=0;pt<mt.lines.length;++pt){var bt=mt.lines[pt];if(bt==it)break;at+=bt.height}for(var Xt=mt.parent;Xt;mt=Xt,Xt=mt.parent)for(var ae=0;ae<Xt.children.length;++ae){var Se=Xt.children[ae];if(Se==mt)break;at+=Se.height}return at}function Ur(it){if(it.height==0)return 0;for(var at=it.text.length,mt,pt=it;mt=xr(pt);){var bt=mt.find(0,!0);pt=bt.from.line,at+=bt.from.ch-bt.to.ch}for(pt=it;mt=ui(pt);){var Xt=mt.find(0,!0);at-=pt.text.length-Xt.from.ch,pt=Xt.to.line,at+=pt.text.length-Xt.to.ch}return at}function Er(it){var at=it.display,mt=it.doc;at.maxLine=Bn(mt,mt.first),at.maxLineLength=Ur(at.maxLine),at.maxLineChanged=!0,mt.iter(function(pt){var bt=Ur(pt);bt>at.maxLineLength&&(at.maxLineLength=bt,at.maxLine=pt)})}var Jr=function(it,at,mt){this.text=it,xe(this,at),this.height=mt?mt(this):1};Jr.prototype.lineNo=function(){return we(this)},Pn(Jr);function yo(it,at,mt,pt){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),ti(it),xe(it,mt);var bt=pt?pt(it):1;bt!=it.height&&Di(it,bt)}function Qr(it){it.parent=null,ti(it)}var Ao={},So={};function No(it,at){if(!it||/^\s*$/.test(it))return null;var mt=at.addModeClass?So:Ao;return mt[it]||(mt[it]=it.replace(/\S+/g,"cm-$&"))}function en(it,at){var mt=te("span",null,null,Ct?"padding-right: .1px":null),pt={pre:te("pre",[mt],"CodeMirror-line"),content:mt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var bt=0;bt<=(at.rest?at.rest.length:0);bt++){var Xt=bt?at.rest[bt-1]:at.line,ae=void 0;pt.pos=0,pt.addToken=Qa,Pi(it.display.measure)&&(ae=Ue(Xt,it.doc.direction))&&(pt.addToken=Fs(pt.addToken,ae)),pt.map=[];var Se=at!=it.display.externalMeasured&&we(Xt);ua(Xt,pt,Xi(it,Xt,Se)),Xt.styleClasses&&(Xt.styleClasses.bgClass&&(pt.bgClass=Ne(Xt.styleClasses.bgClass,pt.bgClass||"")),Xt.styleClasses.textClass&&(pt.textClass=Ne(Xt.styleClasses.textClass,pt.textClass||""))),pt.map.length==0&&pt.map.push(0,0,pt.content.appendChild(Yi(it.display.measure))),bt==0?(at.measure.map=pt.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(pt.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(Ct){var me=pt.content.lastChild;(/\bcm-tab\b/.test(me.className)||me.querySelector&&me.querySelector(".cm-tab"))&&(pt.content.className="cm-tab-wrap-hack")}return nn(it,"renderLine",it,at.line,pt.pre),pt.pre.className&&(pt.textClass=Ne(pt.pre.className,pt.textClass||"")),pt}function Uo(it){var at=qt("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function Qa(it,at,mt,pt,bt,Xt,ae){if(at){var Se=it.splitSpaces?rs(at,it.trailingSpace):at,me=it.cm.state.specialChars,Te=!1,$e;if(!me.test(at))it.col+=at.length,$e=document.createTextNode(Se),it.map.push(it.pos,it.pos+at.length,$e),Ot&&jt<9&&(Te=!0),it.pos+=at.length;else{$e=document.createDocumentFragment();for(var Be=0;;){me.lastIndex=Be;var un=me.exec(at),ln=un?un.index-Be:at.length-Be;if(ln){var Kn=document.createTextNode(Se.slice(Be,Be+ln));Ot&&jt<9?$e.appendChild(qt("span",[Kn])):$e.appendChild(Kn),it.map.push(it.pos,it.pos+ln,Kn),it.col+=ln,it.pos+=ln}if(!un)break;Be+=ln+1;var Zn=void 0;if(un[0]==" "){var si=it.cm.options.tabSize,wi=si-it.col%si;Zn=$e.appendChild(qt("span",_e(wi),"cm-tab")),Zn.setAttribute("role","presentation"),Zn.setAttribute("cm-text"," "),it.col+=wi}else un[0]=="\r"||un[0]==`
|
|
`?(Zn=$e.appendChild(qt("span",un[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Zn.setAttribute("cm-text",un[0]),it.col+=1):(Zn=it.cm.options.specialCharPlaceholder(un[0]),Zn.setAttribute("cm-text",un[0]),Ot&&jt<9?$e.appendChild(qt("span",[Zn])):$e.appendChild(Zn),it.col+=1);it.map.push(it.pos,it.pos+1,Zn),it.pos++}}if(it.trailingSpace=Se.charCodeAt(at.length-1)==32,mt||pt||bt||Te||Xt||ae){var Vi=mt||"";pt&&(Vi+=pt),bt&&(Vi+=bt);var Ni=qt("span",[$e],Vi,Xt);if(ae)for(var $i in ae)ae.hasOwnProperty($i)&&$i!="style"&&$i!="class"&&Ni.setAttribute($i,ae[$i]);return it.content.appendChild(Ni)}it.content.appendChild($e)}}function rs(it,at){if(it.length>1&&!/ /.test(it))return it;for(var mt=at,pt="",bt=0;bt<it.length;bt++){var Xt=it.charAt(bt);Xt==" "&&mt&&(bt==it.length-1||it.charCodeAt(bt+1)==32)&&(Xt="\xA0"),pt+=Xt,mt=Xt==" "}return pt}function Fs(it,at){return function(mt,pt,bt,Xt,ae,Se,me){bt=bt?bt+" cm-force-border":"cm-force-border";for(var Te=mt.pos,$e=Te+pt.length;;){for(var Be=void 0,un=0;un<at.length&&(Be=at[un],!(Be.to>Te&&Be.from<=Te));un++);if(Be.to>=$e)return it(mt,pt,bt,Xt,ae,Se,me);it(mt,pt.slice(0,Be.to-Te),bt,Xt,null,Se,me),Xt=null,pt=pt.slice(Be.to-Te),Te=Be.to}}}function ro(it,at,mt,pt){var bt=!pt&&mt.widgetNode;bt&&it.map.push(it.pos,it.pos+at,bt),!pt&&it.cm.display.input.needsContentAttribute&&(bt||(bt=it.content.appendChild(document.createElement("span"))),bt.setAttribute("cm-marker",mt.id)),bt&&(it.cm.display.input.setUneditable(bt),it.content.appendChild(bt)),it.pos+=at,it.trailingSpace=!1}function ua(it,at,mt){var pt=it.markedSpans,bt=it.text,Xt=0;if(!pt){for(var ae=1;ae<mt.length;ae+=2)at.addToken(at,bt.slice(Xt,Xt=mt[ae]),No(mt[ae+1],at.cm.options));return}for(var Se=bt.length,me=0,Te=1,$e="",Be,un,ln=0,Kn,Zn,si,wi,Vi;;){if(ln==me){Kn=Zn=si=un="",Vi=null,wi=null,ln=1/0;for(var Ni=[],$i=void 0,mr=0;mr<pt.length;++mr){var Mi=pt[mr],kr=Mi.marker;if(kr.type=="bookmark"&&Mi.from==me&&kr.widgetNode)Ni.push(kr);else if(Mi.from<=me&&(Mi.to==null||Mi.to>me||kr.collapsed&&Mi.to==me&&Mi.from==me)){if(Mi.to!=null&&Mi.to!=me&&ln>Mi.to&&(ln=Mi.to,Zn=""),kr.className&&(Kn+=" "+kr.className),kr.css&&(un=(un?un+";":"")+kr.css),kr.startStyle&&Mi.from==me&&(si+=" "+kr.startStyle),kr.endStyle&&Mi.to==ln&&($i||($i=[])).push(kr.endStyle,Mi.to),kr.title&&((Vi||(Vi={})).title=kr.title),kr.attributes)for(var Po in kr.attributes)(Vi||(Vi={}))[Po]=kr.attributes[Po];kr.collapsed&&(!wi||is(wi.marker,kr)<0)&&(wi=Mi)}else Mi.from>me&&ln>Mi.from&&(ln=Mi.from)}if($i)for(var hs=0;hs<$i.length;hs+=2)$i[hs+1]==ln&&(Zn+=" "+$i[hs]);if(!wi||wi.from==me)for(var Bo=0;Bo<Ni.length;++Bo)ro(at,0,Ni[Bo]);if(wi&&(wi.from||0)==me){if(ro(at,(wi.to==null?Se+1:wi.to)-me,wi.marker,wi.from==null),wi.to==null)return;wi.to==me&&(wi=!1)}}if(me>=Se)break;for(var pa=Math.min(Se,ln);;){if($e){var Hs=me+$e.length;if(!wi){var ts=Hs>pa?$e.slice(0,pa-me):$e;at.addToken(at,ts,Be?Be+Kn:Kn,si,me+ts.length==ln?Zn:"",un,Vi)}if(Hs>=pa){$e=$e.slice(pa-me),me=pa;break}me=Hs,si=""}$e=bt.slice(Xt,Xt=mt[Te++]),Be=No(mt[Te++],at.cm.options)}}}function Wl(it,at,mt){this.line=at,this.rest=Mr(at),this.size=this.rest?we(Le(this.rest))-mt+1:1,this.node=this.text=null,this.hidden=wn(it,at)}function Tr(it,at,mt){for(var pt=[],bt,Xt=at;Xt<mt;Xt=bt){var ae=new Wl(it.doc,Bn(it.doc,Xt),Xt);bt=Xt+ae.size,pt.push(ae)}return pt}var Wo=null;function Ll(it){Wo?Wo.ops.push(it):it.ownsGroup=Wo={ops:[it],delayedCallbacks:[]}}function gs(it){var at=it.delayedCallbacks,mt=0;do{for(;mt<at.length;mt++)at[mt].call(null);for(var pt=0;pt<it.ops.length;pt++){var bt=it.ops[pt];if(bt.cursorActivityHandlers)for(;bt.cursorActivityCalled<bt.cursorActivityHandlers.length;)bt.cursorActivityHandlers[bt.cursorActivityCalled++].call(null,bt.cm)}}while(mt<at.length)}function uu(it,at){var mt=it.ownsGroup;if(mt)try{gs(mt)}finally{Wo=null,at(mt)}}var wa=null;function Bi(it,at){var mt=Ze(it,at);if(mt.length){var pt=Array.prototype.slice.call(arguments,2),bt;Wo?bt=Wo.delayedCallbacks:wa?bt=wa:(bt=wa=[],setTimeout(Gl,0));for(var Xt=function(Se){bt.push(function(){return mt[Se].apply(null,pt)})},ae=0;ae<mt.length;++ae)Xt(ae)}}function Gl(){var it=wa;wa=null;for(var at=0;at<it.length;++at)it[at]()}function hu(it,at,mt,pt){for(var bt=0;bt<at.changes.length;bt++){var Xt=at.changes[bt];Xt=="text"?ni(it,at):Xt=="gutter"?ar(it,at,mt,pt):Xt=="class"?Ki(it,at):Xt=="widget"&&ur(it,at,pt)}at.changes=null}function ha(it){return it.node==it.text&&(it.node=qt("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Ot&&jt<8&&(it.node.style.zIndex=2)),it.node}function Xo(it,at){var mt=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(mt&&(mt+=" CodeMirror-linebackground"),at.background)mt?at.background.className=mt:(at.background.parentNode.removeChild(at.background),at.background=null);else if(mt){var pt=ha(at);at.background=pt.insertBefore(qt("div",null,mt),pt.firstChild),it.display.input.setUneditable(at.background)}}function Nu(it,at){var mt=it.display.externalMeasured;return mt&&mt.line==at.line?(it.display.externalMeasured=null,at.measure=mt.measure,mt.built):en(it,at)}function ni(it,at){var mt=at.text.className,pt=Nu(it,at);at.text==at.node&&(at.node=pt.pre),at.text.parentNode.replaceChild(pt.pre,at.text),at.text=pt.pre,pt.bgClass!=at.bgClass||pt.textClass!=at.textClass?(at.bgClass=pt.bgClass,at.textClass=pt.textClass,Ki(it,at)):mt&&(at.text.className=mt)}function Ki(it,at){Xo(it,at),at.line.wrapClass?ha(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var mt=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=mt||""}function ar(it,at,mt,pt){if(at.gutter&&(at.node.removeChild(at.gutter),at.gutter=null),at.gutterBackground&&(at.node.removeChild(at.gutterBackground),at.gutterBackground=null),at.line.gutterClass){var bt=ha(at);at.gutterBackground=qt("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?pt.fixedPos:-pt.gutterTotalWidth)+"px; width: "+pt.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),bt.insertBefore(at.gutterBackground,at.text)}var Xt=at.line.gutterMarkers;if(it.options.lineNumbers||Xt){var ae=ha(at),Se=at.gutter=qt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?pt.fixedPos:-pt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Se),ae.insertBefore(Se,at.text),at.line.gutterClass&&(Se.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!Xt||!Xt["CodeMirror-linenumbers"])&&(at.lineNumber=Se.appendChild(qt("div",Nn(it.options,mt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+pt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Xt)for(var me=0;me<it.display.gutterSpecs.length;++me){var Te=it.display.gutterSpecs[me].className,$e=Xt.hasOwnProperty(Te)&&Xt[Te];$e&&Se.appendChild(qt("div",[$e],"CodeMirror-gutter-elt","left: "+pt.gutterLeft[Te]+"px; width: "+pt.gutterWidth[Te]+"px"))}}}function ur(it,at,mt){at.alignable&&(at.alignable=null);for(var pt=Lt("CodeMirror-linewidget"),bt=at.node.firstChild,Xt=void 0;bt;bt=Xt)Xt=bt.nextSibling,pt.test(bt.className)&&at.node.removeChild(bt);Kr(it,at,mt)}function yr(it,at,mt,pt){var bt=Nu(it,at);return at.text=at.node=bt.pre,bt.bgClass&&(at.bgClass=bt.bgClass),bt.textClass&&(at.textClass=bt.textClass),Ki(it,at),ar(it,at,mt,pt),Kr(it,at,pt),at.node}function Kr(it,at,mt){if(Oi(it,at.line,at,mt,!0),at.rest)for(var pt=0;pt<at.rest.length;pt++)Oi(it,at.rest[pt],at,mt,!1)}function Oi(it,at,mt,pt,bt){if(at.widgets)for(var Xt=ha(mt),ae=0,Se=at.widgets;ae<Se.length;++ae){var me=Se[ae],Te=qt("div",[me.node],"CodeMirror-linewidget"+(me.className?" "+me.className:""));me.handleMouseEvents||Te.setAttribute("cm-ignore-events","true"),Pa(me,Te,mt,pt),it.display.input.setUneditable(Te),bt&&me.above?Xt.insertBefore(Te,mt.gutter||mt.text):Xt.appendChild(Te),Bi(me,"redraw")}}function Pa(it,at,mt,pt){if(it.noHScroll){(mt.alignable||(mt.alignable=[])).push(at);var bt=pt.wrapperWidth;at.style.left=pt.fixedPos+"px",it.coverGutter||(bt-=pt.gutterTotalWidth,at.style.paddingLeft=pt.gutterTotalWidth+"px"),at.style.width=bt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-pt.gutterTotalWidth+"px"))}function os(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!de(document.body,it.node)){var mt="position: relative;";it.coverGutter&&(mt+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(mt+="width: "+at.display.wrapper.clientWidth+"px;"),Nt(at.display.measure,qt("div",[it.node],null,mt))}return it.height=it.node.parentNode.offsetHeight}function _o(it,at){for(var mt=vi(at);mt!=it.wrapper;mt=mt.parentNode)if(!mt||mt.nodeType==1&&mt.getAttribute("cm-ignore-events")=="true"||mt.parentNode==it.sizer&&mt!=it.mover)return!0}function oo(it){return it.lineSpace.offsetTop}function Js(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function Ca(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Nt(it.measure,qt("pre","x","CodeMirror-line-like")),mt=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,pt={left:parseInt(mt.paddingLeft),right:parseInt(mt.paddingRight)};return!isNaN(pt.left)&&!isNaN(pt.right)&&(it.cachedPaddingH=pt),pt}function Ds(it){return se-it.display.nativeBarWidth}function ba(it){return it.display.scroller.clientWidth-Ds(it)-it.display.barWidth}function kl(it){return it.display.scroller.clientHeight-Ds(it)-it.display.barHeight}function qa(it,at,mt){var pt=it.options.lineWrapping,bt=pt&&ba(it);if(!at.measure.heights||pt&&at.measure.width!=bt){var Xt=at.measure.heights=[];if(pt){at.measure.width=bt;for(var ae=at.text.firstChild.getClientRects(),Se=0;Se<ae.length-1;Se++){var me=ae[Se],Te=ae[Se+1];Math.abs(me.bottom-Te.bottom)>2&&Xt.push((me.bottom+Te.top)/2-mt.top)}}Xt.push(mt.bottom-mt.top)}}function Fu(it,at,mt){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var pt=0;pt<it.rest.length;pt++)if(it.rest[pt]==at)return{map:it.measure.maps[pt],cache:it.measure.caches[pt]};for(var bt=0;bt<it.rest.length;bt++)if(we(it.rest[bt])>mt)return{map:it.measure.maps[bt],cache:it.measure.caches[bt],before:!0}}function Zc(it,at){at=gi(at);var mt=we(at),pt=it.display.externalMeasured=new Wl(it.doc,at,mt);pt.lineN=mt;var bt=pt.built=en(it,pt);return pt.text=bt.pre,Nt(it.display.lineMeasure,bt.pre),pt}function ac(it,at,mt,pt){return ja(it,Ul(it,at),mt,pt)}function fl(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[za(it,at)];var mt=it.display.externalMeasured;if(mt&&at>=mt.lineN&&at<mt.lineN+mt.size)return mt}function Ul(it,at){var mt=we(at),pt=fl(it,mt);pt&&!pt.text?pt=null:pt&&pt.changes&&(hu(it,pt,mt,cu(it)),it.curOp.forceUpdate=!0),pt||(pt=Zc(it,at));var bt=Fu(pt,at,mt);return{line:at,view:pt,rect:null,map:bt.map,cache:bt.cache,before:bt.before,hasHeights:!1}}function ja(it,at,mt,pt,bt){at.before&&(mt=-1);var Xt=mt+(pt||""),ae;return at.cache.hasOwnProperty(Xt)?ae=at.cache[Xt]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(qa(it,at.view,at.rect),at.hasHeights=!0),ae=Fo(it,at,mt,pt),ae.bogus||(at.cache[Xt]=ae)),{left:ae.left,right:ae.right,top:bt?ae.rtop:ae.top,bottom:bt?ae.rbottom:ae.bottom}}var lc={left:0,right:0,top:0,bottom:0};function uc(it,at,mt){for(var pt,bt,Xt,ae,Se,me,Te=0;Te<it.length;Te+=3)if(Se=it[Te],me=it[Te+1],at<Se?(bt=0,Xt=1,ae="left"):at<me?(bt=at-Se,Xt=bt+1):(Te==it.length-3||at==me&&it[Te+3]>at)&&(Xt=me-Se,bt=Xt-1,at>=me&&(ae="right")),bt!=null){if(pt=it[Te+2],Se==me&&mt==(pt.insertLeft?"left":"right")&&(ae=mt),mt=="left"&&bt==0)for(;Te&&it[Te-2]==it[Te-3]&&it[Te-1].insertLeft;)pt=it[(Te-=3)+2],ae="left";if(mt=="right"&&bt==me-Se)for(;Te<it.length-3&&it[Te+3]==it[Te+4]&&!it[Te+5].insertLeft;)pt=it[(Te+=3)+2],ae="right";break}return{node:pt,start:bt,end:Xt,collapse:ae,coverStart:Se,coverEnd:me}}function Xc(it,at){var mt=lc;if(at=="left")for(var pt=0;pt<it.length&&(mt=it[pt]).left==mt.right;pt++);else for(var bt=it.length-1;bt>=0&&(mt=it[bt]).left==mt.right;bt--);return mt}function Fo(it,at,mt,pt){var bt=uc(at.map,mt,pt),Xt=bt.node,ae=bt.start,Se=bt.end,me=bt.collapse,Te;if(Xt.nodeType==3){for(var $e=0;$e<4;$e++){for(;ae&&Pt(at.line.text.charAt(bt.coverStart+ae));)--ae;for(;bt.coverStart+Se<bt.coverEnd&&Pt(at.line.text.charAt(bt.coverStart+Se));)++Se;if(Ot&&jt<9&&ae==0&&Se==bt.coverEnd-bt.coverStart?Te=Xt.parentNode.getBoundingClientRect():Te=Xc(Vt(Xt,ae,Se).getClientRects(),pt),Te.left||Te.right||ae==0)break;Se=ae,ae=ae-1,me="right"}Ot&&jt<11&&(Te=Ud(it.display.measure,Te))}else{ae>0&&(me=pt="right");var Be;it.options.lineWrapping&&(Be=Xt.getClientRects()).length>1?Te=Be[pt=="right"?Be.length-1:0]:Te=Xt.getBoundingClientRect()}if(Ot&&jt<9&&!ae&&(!Te||!Te.left&&!Te.right)){var un=Xt.parentNode.getClientRects()[0];un?Te={left:un.left,right:un.left+gl(it.display),top:un.top,bottom:un.bottom}:Te=lc}for(var ln=Te.top-at.rect.top,Kn=Te.bottom-at.rect.top,Zn=(ln+Kn)/2,si=at.view.measure.heights,wi=0;wi<si.length-1&&!(Zn<si[wi]);wi++);var Vi=wi?si[wi-1]:0,Ni=si[wi],$i={left:(me=="right"?Te.right:Te.left)-at.rect.left,right:(me=="left"?Te.left:Te.right)-at.rect.left,top:Vi,bottom:Ni};return!Te.left&&!Te.right&&($i.bogus=!0),it.options.singleCursorHeightPerLine||($i.rtop=ln,$i.rbottom=Kn),$i}function Ud(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!bn(it))return at;var mt=screen.logicalXDPI/screen.deviceXDPI,pt=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*mt,right:at.right*mt,top:at.top*pt,bottom:at.bottom*pt}}function hc(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at<it.rest.length;at++)it.measure.caches[at]={}}function Du(it){it.display.externalMeasure=null,Ut(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)hc(it.display.view[at])}function Bu(it){Du(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function ps(){return Bt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Bs(){return Bt&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Jo(it){var at=0;if(it.widgets)for(var mt=0;mt<it.widgets.length;++mt)it.widgets[mt].above&&(at+=os(it.widgets[mt]));return at}function ss(it,at,mt,pt,bt){if(!bt){var Xt=Jo(at);mt.top+=Xt,mt.bottom+=Xt}if(pt=="line")return mt;pt||(pt="local");var ae=pr(at);if(pt=="local"?ae+=oo(it.display):ae-=it.display.viewOffset,pt=="page"||pt=="window"){var Se=it.display.lineSpace.getBoundingClientRect();ae+=Se.top+(pt=="window"?0:Bs());var me=Se.left+(pt=="window"?0:ps());mt.left+=me,mt.right+=me}return mt.top+=ae,mt.bottom+=ae,mt}function cc(it,at,mt){if(mt=="div")return at;var pt=at.left,bt=at.top;if(mt=="page")pt-=ps(),bt-=Bs();else if(mt=="local"||!mt){var Xt=it.display.sizer.getBoundingClientRect();pt+=Xt.left,bt+=Xt.top}var ae=it.display.lineSpace.getBoundingClientRect();return{left:pt-ae.left,top:bt-ae.top}}function Ou(it,at,mt,pt,bt){return pt||(pt=Bn(it.doc,at.line)),ss(it,pt,ac(it,pt,at.ch,bt),mt)}function co(it,at,mt,pt,bt,Xt){pt=pt||Bn(it.doc,at.line),bt||(bt=Ul(it,pt));function ae(Kn,Zn){var si=ja(it,bt,Kn,Zn?"right":"left",Xt);return Zn?si.left=si.right:si.right=si.left,ss(it,pt,si,mt)}var Se=Ue(pt,it.doc.direction),me=at.ch,Te=at.sticky;if(me>=pt.text.length?(me=pt.text.length,Te="before"):me<=0&&(me=0,Te="after"),!Se)return ae(Te=="before"?me-1:me,Te=="before");function $e(Kn,Zn,si){var wi=Se[Zn],Vi=wi.level==1;return ae(si?Kn-1:Kn,Vi!=si)}var Be=le(Se,me,Te),un=Gt,ln=$e(me,Be,Te=="before");return un!=null&&(ln.other=$e(me,un,Te!="before")),ln}function _r(it,at){var mt=0;at=In(it.doc,at),it.options.lineWrapping||(mt=gl(it.display)*at.ch);var pt=Bn(it.doc,at.line),bt=pr(pt)+oo(it.display);return{left:mt,right:mt,top:bt,bottom:bt+pt.height}}function Fr(it,at,mt,pt,bt){var Xt=tn(it,at,mt);return Xt.xRel=bt,pt&&(Xt.outside=pt),Xt}function Os(it,at,mt){var pt=it.doc;if(mt+=it.display.viewOffset,mt<0)return Fr(pt.first,0,null,-1,-1);var bt=je(pt,mt),Xt=pt.first+pt.size-1;if(bt>Xt)return Fr(pt.first+pt.size-1,Bn(pt,Xt).text.length,null,1,1);at<0&&(at=0);for(var ae=Bn(pt,bt);;){var Se=mn(it,ae,bt,at,mt),me=Si(ae,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!me)return Se;var Te=me.find(1);if(Te.line==bt)return Te;ae=Bn(pt,bt=Te.line)}}function pi(it,at,mt,pt){pt-=Jo(at);var bt=at.text.length,Xt=$t(function(ae){return ja(it,mt,ae-1).bottom<=pt},bt,0);return bt=$t(function(ae){return ja(it,mt,ae).top>pt},Xt,bt),{begin:Xt,end:bt}}function Qo(it,at,mt,pt){mt||(mt=Ul(it,at));var bt=ss(it,at,ja(it,mt,pt),"line").top;return pi(it,at,mt,bt)}function Ie(it,at,mt,pt){return it.bottom<=mt?!1:it.top>mt?!0:(pt?it.left:it.right)>at}function mn(it,at,mt,pt,bt){bt-=pr(at);var Xt=Ul(it,at),ae=Jo(at),Se=0,me=at.text.length,Te=!0,$e=Ue(at,it.doc.direction);if($e){var Be=(it.options.lineWrapping?_l:$a)(it,at,mt,Xt,$e,pt,bt);Te=Be.level!=1,Se=Te?Be.from:Be.to-1,me=Te?Be.to:Be.from-1}var un=null,ln=null,Kn=$t(function(mr){var Mi=ja(it,Xt,mr);return Mi.top+=ae,Mi.bottom+=ae,Ie(Mi,pt,bt,!1)?(Mi.top<=bt&&Mi.left<=pt&&(un=mr,ln=Mi),!0):!1},Se,me),Zn,si,wi=!1;if(ln){var Vi=pt-ln.left<ln.right-pt,Ni=Vi==Te;Kn=un+(Ni?0:1),si=Ni?"after":"before",Zn=Vi?ln.left:ln.right}else{!Te&&(Kn==me||Kn==Se)&&Kn++,si=Kn==0?"after":Kn==at.text.length?"before":ja(it,Xt,Kn-(Te?1:0)).bottom+ae<=bt==Te?"after":"before";var $i=co(it,tn(mt,Kn,si),"line",at,Xt);Zn=$i.left,wi=bt<$i.top?-1:bt>=$i.bottom?1:0}return Kn=Et(at.text,Kn,1),Fr(mt,Kn,si,wi,pt-Zn)}function $a(it,at,mt,pt,bt,Xt,ae){var Se=$t(function(Be){var un=bt[Be],ln=un.level!=1;return Ie(co(it,tn(mt,ln?un.to:un.from,ln?"before":"after"),"line",at,pt),Xt,ae,!0)},0,bt.length-1),me=bt[Se];if(Se>0){var Te=me.level!=1,$e=co(it,tn(mt,Te?me.from:me.to,Te?"after":"before"),"line",at,pt);Ie($e,Xt,ae,!0)&&$e.top>ae&&(me=bt[Se-1])}return me}function _l(it,at,mt,pt,bt,Xt,ae){var Se=pi(it,at,pt,ae),me=Se.begin,Te=Se.end;/\s/.test(at.text.charAt(Te-1))&&Te--;for(var $e=null,Be=null,un=0;un<bt.length;un++){var ln=bt[un];if(!(ln.from>=Te||ln.to<=me)){var Kn=ln.level!=1,Zn=ja(it,pt,Kn?Math.min(Te,ln.to)-1:Math.max(me,ln.from)).right,si=Zn<Xt?Xt-Zn+1e9:Zn-Xt;(!$e||Be>si)&&($e=ln,Be=si)}}return $e||($e=bt[bt.length-1]),$e.from<me&&($e={from:me,to:$e.to,level:$e.level}),$e.to>Te&&($e={from:$e.from,to:Te,level:$e.level}),$e}var ca;function Qs(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(ca==null){ca=qt("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)ca.appendChild(document.createTextNode("x")),ca.appendChild(qt("br"));ca.appendChild(document.createTextNode("x"))}Nt(it.measure,ca);var mt=ca.offsetHeight/50;return mt>3&&(it.cachedTextHeight=mt),Ut(it.measure),mt||1}function gl(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=qt("span","xxxxxxxxxx"),mt=qt("pre",[at],"CodeMirror-line-like");Nt(it.measure,mt);var pt=at.getBoundingClientRect(),bt=(pt.right-pt.left)/10;return bt>2&&(it.cachedCharWidth=bt),bt||10}function cu(it){for(var at=it.display,mt={},pt={},bt=at.gutters.clientLeft,Xt=at.gutters.firstChild,ae=0;Xt;Xt=Xt.nextSibling,++ae){var Se=it.display.gutterSpecs[ae].className;mt[Se]=Xt.offsetLeft+Xt.clientLeft+bt,pt[Se]=Xt.clientWidth}return{fixedPos:Jc(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:mt,gutterWidth:pt,wrapperWidth:at.wrapper.clientWidth}}function Jc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function xo(it){var at=Qs(it.display),mt=it.options.lineWrapping,pt=mt&&Math.max(5,it.display.scroller.clientWidth/gl(it.display)-3);return function(bt){if(wn(it.doc,bt))return 0;var Xt=0;if(bt.widgets)for(var ae=0;ae<bt.widgets.length;ae++)bt.widgets[ae].height&&(Xt+=bt.widgets[ae].height);return mt?Xt+(Math.ceil(bt.text.length/pt)||1)*at:Xt+at}}function or(it){var at=it.doc,mt=xo(it);at.iter(function(pt){var bt=mt(pt);bt!=pt.height&&Di(pt,bt)})}function $s(it,at,mt,pt){var bt=it.display;if(!mt&&vi(at).getAttribute("cm-not-content")=="true")return null;var Xt,ae,Se=bt.lineSpace.getBoundingClientRect();try{Xt=at.clientX-Se.left,ae=at.clientY-Se.top}catch(Be){return null}var me=Os(it,Xt,ae),Te;if(pt&&me.xRel>0&&(Te=Bn(it.doc,me.line).text).length==me.ch){var $e=he(Te,Te.length,it.options.tabSize)-Te.length;me=tn(me.line,Math.max(0,Math.round((Xt-Ca(it.display).left)/gl(it.display))-$e))}return me}function za(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var mt=it.display.view,pt=0;pt<mt.length;pt++)if(at-=mt[pt].size,at<0)return pt}function wo(it,at,mt,pt){at==null&&(at=it.doc.first),mt==null&&(mt=it.doc.first+it.doc.size),pt||(pt=0);var bt=it.display;if(pt&&mt<bt.viewTo&&(bt.updateLineNumbers==null||bt.updateLineNumbers>at)&&(bt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=bt.viewTo)cn&&bi(it.doc,at)<bt.viewTo&&Ho(it);else if(mt<=bt.viewFrom)cn&&li(it.doc,mt+pt)>bt.viewFrom?Ho(it):(bt.viewFrom+=pt,bt.viewTo+=pt);else if(at<=bt.viewFrom&&mt>=bt.viewTo)Ho(it);else if(at<=bt.viewFrom){var Xt=da(it,mt,mt+pt,1);Xt?(bt.view=bt.view.slice(Xt.index),bt.viewFrom=Xt.lineN,bt.viewTo+=pt):Ho(it)}else if(mt>=bt.viewTo){var ae=da(it,at,at,-1);ae?(bt.view=bt.view.slice(0,ae.index),bt.viewTo=ae.lineN):Ho(it)}else{var Se=da(it,at,at,-1),me=da(it,mt,mt+pt,1);Se&&me?(bt.view=bt.view.slice(0,Se.index).concat(Tr(it,Se.lineN,me.lineN)).concat(bt.view.slice(me.index)),bt.viewTo+=pt):Ho(it)}var Te=bt.externalMeasured;Te&&(mt<Te.lineN?Te.lineN+=pt:at<Te.lineN+Te.size&&(bt.externalMeasured=null))}function Ar(it,at,mt){it.curOp.viewChanged=!0;var pt=it.display,bt=it.display.externalMeasured;if(bt&&at>=bt.lineN&&at<bt.lineN+bt.size&&(pt.externalMeasured=null),!(at<pt.viewFrom||at>=pt.viewTo)){var Xt=pt.view[za(it,at)];if(Xt.node!=null){var ae=Xt.changes||(Xt.changes=[]);re(ae,mt)==-1&&ae.push(mt)}}}function Ho(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function da(it,at,mt,pt){var bt=za(it,at),Xt,ae=it.display.view;if(!cn||mt==it.doc.first+it.doc.size)return{index:bt,lineN:mt};for(var Se=it.display.viewFrom,me=0;me<bt;me++)Se+=ae[me].size;if(Se!=at){if(pt>0){if(bt==ae.length-1)return null;Xt=Se+ae[bt].size-at,bt++}else Xt=Se-at;at+=Xt,mt+=Xt}for(;bi(it.doc,mt)!=mt;){if(bt==(pt<0?0:ae.length-1))return null;mt+=pt*ae[bt-(pt<0?1:0)].size,bt+=pt}return{index:bt,lineN:mt}}function so(it,at,mt){var pt=it.display,bt=pt.view;bt.length==0||at>=pt.viewTo||mt<=pt.viewFrom?(pt.view=Tr(it,at,mt),pt.viewFrom=at):(pt.viewFrom>at?pt.view=Tr(it,at,pt.viewFrom).concat(pt.view):pt.viewFrom<at&&(pt.view=pt.view.slice(za(it,at))),pt.viewFrom=at,pt.viewTo<mt?pt.view=pt.view.concat(Tr(it,pt.viewTo,mt)):pt.viewTo>mt&&(pt.view=pt.view.slice(0,za(it,mt)))),pt.viewTo=mt}function Aa(it){for(var at=it.display.view,mt=0,pt=0;pt<at.length;pt++){var bt=at[pt];!bt.hidden&&(!bt.node||bt.changes)&&++mt}return mt}function as(it){it.display.input.showSelection(it.display.input.prepareSelection())}function Iu(it,at){at===void 0&&(at=!0);for(var mt=it.doc,pt={},bt=pt.cursors=document.createDocumentFragment(),Xt=pt.selection=document.createDocumentFragment(),ae=0;ae<mt.sel.ranges.length;ae++)if(!(!at&&ae==mt.sel.primIndex)){var Se=mt.sel.ranges[ae];if(!(Se.from().line>=it.display.viewTo||Se.to().line<it.display.viewFrom)){var me=Se.empty();(me||it.options.showCursorWhenSelecting)&&Ir(it,Se.head,bt),me||Or(it,Se,Xt)}}return pt}function Ir(it,at,mt){var pt=co(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),bt=mt.appendChild(qt("div","\xA0","CodeMirror-cursor"));if(bt.style.left=pt.left+"px",bt.style.top=pt.top+"px",bt.style.height=Math.max(0,pt.bottom-pt.top)*it.options.cursorHeight+"px",pt.other){var Xt=mt.appendChild(qt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Xt.style.display="",Xt.style.left=pt.other.left+"px",Xt.style.top=pt.other.top+"px",Xt.style.height=(pt.other.bottom-pt.other.top)*.85+"px"}}function ta(it,at){return it.top-at.top||it.left-at.left}function Or(it,at,mt){var pt=it.display,bt=it.doc,Xt=document.createDocumentFragment(),ae=Ca(it.display),Se=ae.left,me=Math.max(pt.sizerWidth,ba(it)-pt.sizer.offsetLeft)-ae.right,Te=bt.direction=="ltr";function $e(Ni,$i,mr,Mi){$i<0&&($i=0),$i=Math.round($i),Mi=Math.round(Mi),Xt.appendChild(qt("div",null,"CodeMirror-selected","position: absolute; left: "+Ni+`px;
|
|
top: `+$i+"px; width: "+(mr==null?me-Ni:mr)+`px;
|
|
height: `+(Mi-$i)+"px"))}function Be(Ni,$i,mr){var Mi=Bn(bt,Ni),kr=Mi.text.length,Po,hs;function Bo(ts,Ma){return Ou(it,tn(Ni,ts),"div",Mi,Ma)}function pa(ts,Ma,Rs){var es=Qo(it,Mi,null,ts),Vr=Ma=="ltr"==(Rs=="after")?"left":"right",Ro=Rs=="after"?es.begin:es.end-(/\s/.test(Mi.text.charAt(es.end-1))?2:1);return Bo(Ro,Vr)[Vr]}var Hs=Ue(Mi,bt.direction);return zt(Hs,$i||0,mr==null?kr:mr,function(ts,Ma,Rs,es){var Vr=Rs=="ltr",Ro=Bo(ts,Vr?"left":"right"),ws=Bo(Ma-1,Vr?"right":"left"),js=$i==null&&ts==0,ml=mr==null&&Ma==kr,Oo=es==0,rl=!Hs||es==Hs.length-1;if(ws.top-Ro.top<=3){var Go=(Te?js:ml)&&Oo,Sd=(Te?ml:js)&&rl,_a=Go?Se:(Vr?Ro:ws).left,Ta=Sd?me:(Vr?ws:Ro).right;$e(_a,Ro.top,Ta-_a,Ro.bottom)}else{var ma,lo,Ps,Xl;Vr?(ma=Te&&js&&Oo?Se:Ro.left,lo=Te?me:pa(ts,Rs,"before"),Ps=Te?Se:pa(Ma,Rs,"after"),Xl=Te&&ml&&rl?me:ws.right):(ma=Te?pa(ts,Rs,"before"):Se,lo=!Te&&js&&Oo?me:Ro.right,Ps=!Te&&ml&&rl?Se:ws.left,Xl=Te?pa(Ma,Rs,"after"):me),$e(ma,Ro.top,lo-ma,Ro.bottom),Ro.bottom<ws.top&&$e(Se,Ro.bottom,null,ws.top),$e(Ps,ws.top,Xl-Ps,ws.bottom)}(!Po||ta(Ro,Po)<0)&&(Po=Ro),ta(ws,Po)<0&&(Po=ws),(!hs||ta(Ro,hs)<0)&&(hs=Ro),ta(ws,hs)<0&&(hs=ws)}),{start:Po,end:hs}}var un=at.from(),ln=at.to();if(un.line==ln.line)Be(un.line,un.ch,ln.ch);else{var Kn=Bn(bt,un.line),Zn=Bn(bt,ln.line),si=gi(Kn)==gi(Zn),wi=Be(un.line,un.ch,si?Kn.text.length+1:null).end,Vi=Be(ln.line,si?0:null,ln.ch).start;si&&(wi.top<Vi.top-2?($e(wi.right,wi.top,null,wi.bottom),$e(Se,Vi.top,Vi.left,Vi.bottom)):$e(wi.right,wi.top,Vi.left-wi.right,wi.bottom)),wi.bottom<Vi.top&&$e(Se,wi.bottom,null,Vi.top)}mt.appendChild(Xt)}function qr(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var mt=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||wh(it),at.cursorDiv.style.visibility=(mt=!mt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function fo(it){it.state.focused||(it.display.input.focus(),jr(it))}function Lo(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,wh(it))},100)}function jr(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(nn(it,"focus",it,at),it.state.focused=!0,be(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Ct&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),qr(it))}function wh(it,at){it.state.delayingBlurEvent||(it.state.focused&&(nn(it,"blur",it,at),it.state.focused=!1,Rt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function nr(it){for(var at=it.display,mt=at.lineDiv.offsetTop,pt=0;pt<at.view.length;pt++){var bt=at.view[pt],Xt=it.options.lineWrapping,ae=void 0,Se=0;if(!bt.hidden){if(Ot&&jt<8){var me=bt.node.offsetTop+bt.node.offsetHeight;ae=me-mt,mt=me}else{var Te=bt.node.getBoundingClientRect();ae=Te.bottom-Te.top,!Xt&&bt.text.firstChild&&(Se=bt.text.firstChild.getBoundingClientRect().right-Te.left-1)}var $e=bt.line.height-ae;if(($e>.005||$e<-.005)&&(Di(bt.line,ae),Op(bt.line),bt.rest))for(var Be=0;Be<bt.rest.length;Be++)Op(bt.rest[Be]);if(Se>it.display.sizerWidth){var un=Math.ceil(Se/gl(it.display));un>it.display.maxLineLength&&(it.display.maxLineLength=un,it.display.maxLine=bt.line,it.display.maxLineChanged=!0)}}}}function Op(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var mt=it.widgets[at],pt=mt.node.parentNode;pt&&(mt.height=pt.offsetHeight)}}function Br(it,at,mt){var pt=mt&&mt.top!=null?Math.max(0,mt.top):it.scroller.scrollTop;pt=Math.floor(pt-oo(it));var bt=mt&&mt.bottom!=null?mt.bottom:pt+it.wrapper.clientHeight,Xt=je(at,pt),ae=je(at,bt);if(mt&&mt.ensure){var Se=mt.ensure.from.line,me=mt.ensure.to.line;Se<Xt?(Xt=Se,ae=je(at,pr(Bn(at,Se))+it.wrapper.clientHeight)):Math.min(me,at.lastLine())>=ae&&(Xt=je(at,pr(Bn(at,me))-it.wrapper.clientHeight),ae=me)}return{from:Xt,to:Math.max(ae,Xt+1)}}function Ip(it,at){if(!qe(it,"scrollCursorIntoView")){var mt=it.display,pt=mt.sizer.getBoundingClientRect(),bt=null;if(at.top+pt.top<0?bt=!0:at.bottom+pt.top>(window.innerHeight||document.documentElement.clientHeight)&&(bt=!1),bt!=null&&!Dt){var Xt=qt("div","\u200B",null,`position: absolute;
|
|
top: `+(at.top-mt.viewOffset-oo(it.display))+`px;
|
|
height: `+(at.bottom-at.top+Ds(it)+mt.barHeight)+`px;
|
|
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(Xt),Xt.scrollIntoView(bt),it.display.lineSpace.removeChild(Xt)}}}function dc(it,at,mt,pt){pt==null&&(pt=0);var bt;!it.options.lineWrapping&&at==mt&&(at=at.ch?tn(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,mt=at.sticky=="before"?tn(at.line,at.ch+1,"before"):at);for(var Xt=0;Xt<5;Xt++){var ae=!1,Se=co(it,at),me=!mt||mt==at?Se:co(it,mt);bt={left:Math.min(Se.left,me.left),top:Math.min(Se.top,me.top)-pt,right:Math.max(Se.left,me.left),bottom:Math.max(Se.bottom,me.bottom)+pt};var Te=eg(it,bt),$e=it.doc.scrollTop,Be=it.doc.scrollLeft;if(Te.scrollTop!=null&&(Ch(it,Te.scrollTop),Math.abs(it.doc.scrollTop-$e)>1&&(ae=!0)),Te.scrollLeft!=null&&(fu(it,Te.scrollLeft),Math.abs(it.doc.scrollLeft-Be)>1&&(ae=!0)),!ae)break}return bt}function Qc(it,at){var mt=eg(it,at);mt.scrollTop!=null&&Ch(it,mt.scrollTop),mt.scrollLeft!=null&&fu(it,mt.scrollLeft)}function eg(it,at){var mt=it.display,pt=Qs(it.display);at.top<0&&(at.top=0);var bt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:mt.scroller.scrollTop,Xt=kl(it),ae={};at.bottom-at.top>Xt&&(at.bottom=at.top+Xt);var Se=it.doc.height+Js(mt),me=at.top<pt,Te=at.bottom>Se-pt;if(at.top<bt)ae.scrollTop=me?0:at.top;else if(at.bottom>bt+Xt){var $e=Math.min(at.top,(Te?Se:at.bottom)-Xt);$e!=bt&&(ae.scrollTop=$e)}var Be=it.options.fixedGutter?0:mt.gutters.offsetWidth,un=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:mt.scroller.scrollLeft-Be,ln=ba(it)-mt.gutters.offsetWidth,Kn=at.right-at.left>ln;return Kn&&(at.right=at.left+ln),at.left<10?ae.scrollLeft=0:at.left<un?ae.scrollLeft=Math.max(0,at.left+Be-(Kn?0:10)):at.right>ln+un-3&&(ae.scrollLeft=at.right+(Kn?0:10)-ln),ae}function _d(it,at){at!=null&&(Hl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function du(it){Hl(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Ph(it,at,mt){(at!=null||mt!=null)&&Hl(it),at!=null&&(it.curOp.scrollLeft=at),mt!=null&&(it.curOp.scrollTop=mt)}function zr(it,at){Hl(it),it.curOp.scrollToPos=at}function Hl(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var mt=_r(it,at.from),pt=_r(it,at.to);Hd(it,mt,pt,at.margin)}}function Hd(it,at,mt,pt){var bt=eg(it,{left:Math.min(at.left,mt.left),top:Math.min(at.top,mt.top)-pt,right:Math.max(at.right,mt.right),bottom:Math.max(at.bottom,mt.bottom)+pt});Ph(it,bt.scrollLeft,bt.scrollTop)}function Ch(it,at){Math.abs(it.doc.scrollTop-at)<2||(ee||Uu(it,{top:at}),ng(it,at,!0),ee&&Uu(it),fc(it,100))}function ng(it,at,mt){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!mt)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function fu(it,at,mt,pt){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((mt?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!pt)&&(it.doc.scrollLeft=at,Yd(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function tl(it){var at=it.display,mt=at.gutters.offsetWidth,pt=Math.round(it.doc.height+Js(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?mt:0,docHeight:pt,scrollHeight:pt+Ds(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:mt}}var Ru=function(it,at,mt){this.cm=mt;var pt=this.vert=qt("div",[qt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),bt=this.horiz=qt("div",[qt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");pt.tabIndex=bt.tabIndex=-1,it(pt),it(bt),Ee(pt,"scroll",function(){pt.clientHeight&&at(pt.scrollTop,"vertical")}),Ee(bt,"scroll",function(){bt.clientWidth&&at(bt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ot&&jt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ru.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,mt=it.scrollHeight>it.clientHeight+1,pt=it.nativeBarWidth;if(mt){this.vert.style.display="block",this.vert.style.bottom=at?pt+"px":"0";var bt=it.viewHeight-(at?pt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+bt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=mt?pt+"px":"0",this.horiz.style.left=it.barLeft+"px";var Xt=it.viewWidth-it.barLeft-(mt?pt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Xt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(pt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:mt?pt:0,bottom:at?pt:0}},Ru.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ru.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ru.prototype.zeroWidthHack=function(){var it=lt&&!xt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Jt,this.disableVert=new Jt},Ru.prototype.enableZeroWidthBar=function(it,at,mt){it.style.pointerEvents="auto";function pt(){var bt=it.getBoundingClientRect(),Xt=mt=="vert"?document.elementFromPoint(bt.right-1,(bt.top+bt.bottom)/2):document.elementFromPoint((bt.right+bt.left)/2,bt.bottom-1);Xt!=it?it.style.pointerEvents="none":at.set(1e3,pt)}at.set(1e3,pt)},Ru.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var El=function(){};El.prototype.update=function(){return{bottom:0,right:0}},El.prototype.setScrollLeft=function(){},El.prototype.setScrollTop=function(){},El.prototype.clear=function(){};function ju(it,at){at||(at=tl(it));var mt=it.display.barWidth,pt=it.display.barHeight;Kd(it,at);for(var bt=0;bt<4&&mt!=it.display.barWidth||pt!=it.display.barHeight;bt++)mt!=it.display.barWidth&&it.options.lineWrapping&&nr(it),Kd(it,tl(it)),mt=it.display.barWidth,pt=it.display.barHeight}function Kd(it,at){var mt=it.display,pt=mt.scrollbars.update(at);mt.sizer.style.paddingRight=(mt.barWidth=pt.right)+"px",mt.sizer.style.paddingBottom=(mt.barHeight=pt.bottom)+"px",mt.heightForcer.style.borderBottom=pt.bottom+"px solid transparent",pt.right&&pt.bottom?(mt.scrollbarFiller.style.display="block",mt.scrollbarFiller.style.height=pt.bottom+"px",mt.scrollbarFiller.style.width=pt.right+"px"):mt.scrollbarFiller.style.display="",pt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(mt.gutterFiller.style.display="block",mt.gutterFiller.style.height=pt.bottom+"px",mt.gutterFiller.style.width=at.gutterWidth+"px"):mt.gutterFiller.style.display=""}var ig={native:Ru,null:El};function rg(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Rt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new ig[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),Ee(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,mt){mt=="horizontal"?fu(it,at):Ch(it,at)},it),it.display.scrollbars.addClass&&be(it.display.wrapper,it.display.scrollbars.addClass)}var Rp=0;function zu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Rp},Ll(it.curOp)}function Wu(it){var at=it.curOp;at&&uu(at,function(mt){for(var pt=0;pt<mt.ops.length;pt++)mt.ops[pt].cm.curOp=null;Q0(mt)})}function Q0(it){for(var at=it.ops,mt=0;mt<at.length;mt++)q0(at[mt]);for(var pt=0;pt<at.length;pt++)$0(at[pt]);for(var bt=0;bt<at.length;bt++)jp(at[bt]);for(var Xt=0;Xt<at.length;Xt++)Io(at[Xt]);for(var ae=0;ae<at.length;ae++)Gu(at[ae])}function q0(it){var at=it.cm,mt=at.display;zp(at),it.updateMaxLine&&Er(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<mt.viewFrom||it.scrollToPos.to.line>=mt.viewTo)||mt.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new bh(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function $0(it){it.updatedDisplay=it.mustUpdate&&Vd(it.cm,it.update)}function jp(it){var at=it.cm,mt=at.display;it.updatedDisplay&&nr(at),it.barMeasure=tl(at),mt.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=ac(at,mt.maxLine,mt.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(mt.scroller.clientWidth,mt.sizer.offsetLeft+it.adjustWidthTo+Ds(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,mt.sizer.offsetLeft+it.adjustWidthTo-ba(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=mt.input.prepareSelection())}function Io(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&fu(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var mt=it.focus&&it.focus==ge();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,mt),(it.updatedDisplay||it.startHeight!=at.doc.height)&&ju(at,it.barMeasure),it.updatedDisplay&&Hu(at,it.barMeasure),it.selectionChanged&&qr(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),mt&&fo(it.cm)}function Gu(it){var at=it.cm,mt=at.display,pt=at.doc;if(it.updatedDisplay&&$r(at,it.update),mt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(mt.wheelStartX=mt.wheelStartY=null),it.scrollTop!=null&&ng(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&fu(at,it.scrollLeft,!0,!0),it.scrollToPos){var bt=dc(at,In(pt,it.scrollToPos.from),In(pt,it.scrollToPos.to),it.scrollToPos.margin);Ip(at,bt)}var Xt=it.maybeHiddenMarkers,ae=it.maybeUnhiddenMarkers;if(Xt)for(var Se=0;Se<Xt.length;++Se)Xt[Se].lines.length||nn(Xt[Se],"hide");if(ae)for(var me=0;me<ae.length;++me)ae[me].lines.length&&nn(ae[me],"unhide");mt.wrapper.offsetHeight&&(pt.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&nn(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function Yr(it,at){if(it.curOp)return at();zu(it);try{return at()}finally{Wu(it)}}function ls(it,at){return function(){if(it.curOp)return at.apply(it,arguments);zu(it);try{return at.apply(it,arguments)}finally{Wu(it)}}}function ms(it){return function(){if(this.curOp)return it.apply(this,arguments);zu(this);try{return it.apply(this,arguments)}finally{Wu(this)}}}function vs(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);zu(at);try{return it.apply(this,arguments)}finally{Wu(at)}}}function fc(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,Pe(ys,it))}function ys(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var mt=+new Date+it.options.workTime,pt=vr(it,at.highlightFrontier),bt=[];at.iter(pt.line,Math.min(at.first+at.size,it.display.viewTo+500),function(Xt){if(pt.line>=it.display.viewFrom){var ae=Xt.styles,Se=Xt.text.length>it.options.maxHighlightLength?Hn(at.mode,pt.state):null,me=Ii(it,Xt,pt,!0);Se&&(pt.state=Se),Xt.styles=me.styles;var Te=Xt.styleClasses,$e=me.classes;$e?Xt.styleClasses=$e:Te&&(Xt.styleClasses=null);for(var Be=!ae||ae.length!=Xt.styles.length||Te!=$e&&(!Te||!$e||Te.bgClass!=$e.bgClass||Te.textClass!=$e.textClass),un=0;!Be&&un<ae.length;++un)Be=ae[un]!=Xt.styles[un];Be&&bt.push(pt.line),Xt.stateAfter=pt.save(),pt.nextLine()}else Xt.text.length<=it.options.maxHighlightLength&&an(it,Xt.text,pt),Xt.stateAfter=pt.line%5==0?pt.save():null,pt.nextLine();if(+new Date>mt)return fc(it,it.options.workDelay),!0}),at.highlightFrontier=pt.line,at.modeFrontier=Math.max(at.modeFrontier,pt.line),bt.length&&Yr(it,function(){for(var Xt=0;Xt<bt.length;Xt++)Ar(it,bt[Xt],"text")})}}var bh=function(it,at,mt){var pt=it.display;this.viewport=at,this.visible=Br(pt,it.doc,at),this.editorIsHidden=!pt.wrapper.offsetWidth,this.wrapperHeight=pt.wrapper.clientHeight,this.wrapperWidth=pt.wrapper.clientWidth,this.oldDisplayWidth=ba(it),this.force=mt,this.dims=cu(it),this.events=[]};bh.prototype.signal=function(it,at){fn(it,at)&&this.events.push(arguments)},bh.prototype.finish=function(){for(var it=0;it<this.events.length;it++)nn.apply(null,this.events[it])};function zp(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=Ds(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=Ds(it)+"px",at.scrollbarsClipped=!0)}function Wp(it){if(it.hasFocus())return null;var at=ge();if(!at||!de(it.display.lineDiv,at))return null;var mt={activeElt:at};if(window.getSelection){var pt=window.getSelection();pt.anchorNode&&pt.extend&&de(it.display.lineDiv,pt.anchorNode)&&(mt.anchorNode=pt.anchorNode,mt.anchorOffset=pt.anchorOffset,mt.focusNode=pt.focusNode,mt.focusOffset=pt.focusOffset)}return mt}function fa(it){if(!(!it||!it.activeElt||it.activeElt==ge())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&de(document.body,it.anchorNode)&&de(document.body,it.focusNode))){var at=window.getSelection(),mt=document.createRange();mt.setEnd(it.anchorNode,it.anchorOffset),mt.collapse(!1),at.removeAllRanges(),at.addRange(mt),at.extend(it.focusNode,it.focusOffset)}}function Vd(it,at){var mt=it.display,pt=it.doc;if(at.editorIsHidden)return Ho(it),!1;if(!at.force&&at.visible.from>=mt.viewFrom&&at.visible.to<=mt.viewTo&&(mt.updateLineNumbers==null||mt.updateLineNumbers>=mt.viewTo)&&mt.renderedView==mt.view&&Aa(it)==0)return!1;qo(it)&&(Ho(it),at.dims=cu(it));var bt=pt.first+pt.size,Xt=Math.max(at.visible.from-it.options.viewportMargin,pt.first),ae=Math.min(bt,at.visible.to+it.options.viewportMargin);mt.viewFrom<Xt&&Xt-mt.viewFrom<20&&(Xt=Math.max(pt.first,mt.viewFrom)),mt.viewTo>ae&&mt.viewTo-ae<20&&(ae=Math.min(bt,mt.viewTo)),cn&&(Xt=bi(it.doc,Xt),ae=li(it.doc,ae));var Se=Xt!=mt.viewFrom||ae!=mt.viewTo||mt.lastWrapHeight!=at.wrapperHeight||mt.lastWrapWidth!=at.wrapperWidth;so(it,Xt,ae),mt.viewOffset=pr(Bn(it.doc,mt.viewFrom)),it.display.mover.style.top=mt.viewOffset+"px";var me=Aa(it);if(!Se&&me==0&&!at.force&&mt.renderedView==mt.view&&(mt.updateLineNumbers==null||mt.updateLineNumbers>=mt.viewTo))return!1;var Te=Wp(it);return me>4&&(mt.lineDiv.style.display="none"),og(it,mt.updateLineNumbers,at.dims),me>4&&(mt.lineDiv.style.display=""),mt.renderedView=mt.view,fa(Te),Ut(mt.cursorDiv),Ut(mt.selectionDiv),mt.gutters.style.height=mt.sizer.style.minHeight=0,Se&&(mt.lastWrapHeight=at.wrapperHeight,mt.lastWrapWidth=at.wrapperWidth,fc(it,400)),mt.updateLineNumbers=null,!0}function $r(it,at){for(var mt=at.viewport,pt=!0;;pt=!1){if(!pt||!it.options.lineWrapping||at.oldDisplayWidth==ba(it)){if(mt&&mt.top!=null&&(mt={top:Math.min(it.doc.height+Js(it.display)-kl(it),mt.top)}),at.visible=Br(it.display,it.doc,mt),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else pt&&(at.visible=Br(it.display,it.doc,mt));if(!Vd(it,at))break;nr(it);var bt=tl(it);as(it),ju(it,bt),Hu(it,bt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Uu(it,at){var mt=new bh(it,at);if(Vd(it,mt)){nr(it),$r(it,mt);var pt=tl(it);as(it),ju(it,pt),Hu(it,pt),mt.finish()}}function og(it,at,mt){var pt=it.display,bt=it.options.lineNumbers,Xt=pt.lineDiv,ae=Xt.firstChild;function Se(Kn){var Zn=Kn.nextSibling;return Ct&<&&it.display.currentWheelTarget==Kn?Kn.style.display="none":Kn.parentNode.removeChild(Kn),Zn}for(var me=pt.view,Te=pt.viewFrom,$e=0;$e<me.length;$e++){var Be=me[$e];if(!Be.hidden)if(!Be.node||Be.node.parentNode!=Xt){var un=yr(it,Be,Te,mt);Xt.insertBefore(un,ae)}else{for(;ae!=Be.node;)ae=Se(ae);var ln=bt&&at!=null&&at<=Te&&Be.lineNumber;Be.changes&&(re(Be.changes,"gutter")>-1&&(ln=!1),hu(it,Be,Te,mt)),ln&&(Ut(Be.lineNumber),Be.lineNumber.appendChild(document.createTextNode(Nn(it.options,Te)))),ae=Be.node.nextSibling}Te+=Be.size}for(;ae;)ae=Se(ae)}function _u(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function Hu(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+Ds(it)+"px"}function Yd(it){var at=it.display,mt=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var pt=Jc(at)-at.scroller.scrollLeft+it.doc.scrollLeft,bt=at.gutters.offsetWidth,Xt=pt+"px",ae=0;ae<mt.length;ae++)if(!mt[ae].hidden){it.options.fixedGutter&&(mt[ae].gutter&&(mt[ae].gutter.style.left=Xt),mt[ae].gutterBackground&&(mt[ae].gutterBackground.style.left=Xt));var Se=mt[ae].alignable;if(Se)for(var me=0;me<Se.length;me++)Se[me].style.left=Xt}it.options.fixedGutter&&(at.gutters.style.left=pt+bt+"px")}}function qo(it){if(!it.options.lineNumbers)return!1;var at=it.doc,mt=Nn(it.options,at.first+at.size-1),pt=it.display;if(mt.length!=pt.lineNumChars){var bt=pt.measure.appendChild(qt("div",[qt("div",mt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Xt=bt.firstChild.offsetWidth,ae=bt.offsetWidth-Xt;return pt.lineGutter.style.width="",pt.lineNumInnerWidth=Math.max(Xt,pt.lineGutter.offsetWidth-ae)+1,pt.lineNumWidth=pt.lineNumInnerWidth+ae,pt.lineNumChars=pt.lineNumInnerWidth?mt.length:-1,pt.lineGutter.style.width=pt.lineNumWidth+"px",_u(it.display),!0}return!1}function Ss(it,at){for(var mt=[],pt=!1,bt=0;bt<it.length;bt++){var Xt=it[bt],ae=null;if(typeof Xt!="string"&&(ae=Xt.style,Xt=Xt.className),Xt=="CodeMirror-linenumbers")if(at)pt=!0;else continue;mt.push({className:Xt,style:ae})}return at&&!pt&&mt.push({className:"CodeMirror-linenumbers",style:null}),mt}function Ah(it){var at=it.gutters,mt=it.gutterSpecs;Ut(at),it.lineGutter=null;for(var pt=0;pt<mt.length;++pt){var bt=mt[pt],Xt=bt.className,ae=bt.style,Se=at.appendChild(qt("div",null,"CodeMirror-gutter "+Xt));ae&&(Se.style.cssText=ae),Xt=="CodeMirror-linenumbers"&&(it.lineGutter=Se,Se.style.width=(it.lineNumWidth||1)+"px")}at.style.display=mt.length?"":"none",_u(it)}function Wa(it){Ah(it.display),wo(it),Yd(it)}function Ku(it,at,mt,pt){var bt=this;this.input=mt,bt.scrollbarFiller=qt("div",null,"CodeMirror-scrollbar-filler"),bt.scrollbarFiller.setAttribute("cm-not-content","true"),bt.gutterFiller=qt("div",null,"CodeMirror-gutter-filler"),bt.gutterFiller.setAttribute("cm-not-content","true"),bt.lineDiv=te("div",null,"CodeMirror-code"),bt.selectionDiv=qt("div",null,null,"position: relative; z-index: 1"),bt.cursorDiv=qt("div",null,"CodeMirror-cursors"),bt.measure=qt("div",null,"CodeMirror-measure"),bt.lineMeasure=qt("div",null,"CodeMirror-measure"),bt.lineSpace=te("div",[bt.measure,bt.lineMeasure,bt.selectionDiv,bt.cursorDiv,bt.lineDiv],null,"position: relative; outline: none");var Xt=te("div",[bt.lineSpace],"CodeMirror-lines");bt.mover=qt("div",[Xt],null,"position: relative"),bt.sizer=qt("div",[bt.mover],"CodeMirror-sizer"),bt.sizerWidth=null,bt.heightForcer=qt("div",null,null,"position: absolute; height: "+se+"px; width: 1px;"),bt.gutters=qt("div",null,"CodeMirror-gutters"),bt.lineGutter=null,bt.scroller=qt("div",[bt.sizer,bt.heightForcer,bt.gutters],"CodeMirror-scroll"),bt.scroller.setAttribute("tabIndex","-1"),bt.wrapper=qt("div",[bt.scrollbarFiller,bt.gutterFiller,bt.scroller],"CodeMirror"),Ot&&jt<8&&(bt.gutters.style.zIndex=-1,bt.scroller.style.paddingRight=0),!Ct&&!(ee&&tt)&&(bt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(bt.wrapper):it(bt.wrapper)),bt.viewFrom=bt.viewTo=at.first,bt.reportedViewFrom=bt.reportedViewTo=at.first,bt.view=[],bt.renderedView=null,bt.externalMeasured=null,bt.viewOffset=0,bt.lastWrapHeight=bt.lastWrapWidth=0,bt.updateLineNumbers=null,bt.nativeBarWidth=bt.barHeight=bt.barWidth=0,bt.scrollbarsClipped=!1,bt.lineNumWidth=bt.lineNumInnerWidth=bt.lineNumChars=null,bt.alignWidgets=!1,bt.cachedCharWidth=bt.cachedTextHeight=bt.cachedPaddingH=null,bt.maxLine=null,bt.maxLineLength=0,bt.maxLineChanged=!1,bt.wheelDX=bt.wheelDY=bt.wheelStartX=bt.wheelStartY=null,bt.shift=!1,bt.selForContextMenu=null,bt.activeTouch=null,bt.gutterSpecs=Ss(pt.gutters,pt.lineNumbers),Ah(bt),mt.init(bt)}var La=0,Ko=null;Ot?Ko=-.53:ee?Ko=15:Bt?Ko=-.7:kt&&(Ko=-1/3);function Ml(it){var at=it.wheelDeltaX,mt=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),mt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?mt=it.detail:mt==null&&(mt=it.wheelDelta),{x:at,y:mt}}function Ga(it){var at=Ml(it);return at.x*=Ko,at.y*=Ko,at}function xs(it,at){var mt=Ml(at),pt=mt.x,bt=mt.y,Xt=it.display,ae=Xt.scroller,Se=ae.scrollWidth>ae.clientWidth,me=ae.scrollHeight>ae.clientHeight;if(pt&&Se||bt&&me){if(bt&<&&Ct){t:for(var Te=at.target,$e=Xt.view;Te!=ae;Te=Te.parentNode)for(var Be=0;Be<$e.length;Be++)if($e[Be].node==Te){it.display.currentWheelTarget=Te;break t}}if(pt&&!ee&&!St&&Ko!=null){bt&&me&&Ch(it,Math.max(0,ae.scrollTop+bt*Ko)),fu(it,Math.max(0,ae.scrollLeft+pt*Ko)),(!bt||bt&&me)&&Mn(at),Xt.wheelStartX=null;return}if(bt&&Ko!=null){var un=bt*Ko,ln=it.doc.scrollTop,Kn=ln+Xt.wrapper.clientHeight;un<0?ln=Math.max(0,ln+un-50):Kn=Math.min(it.doc.height,Kn+un+50),Uu(it,{top:ln,bottom:Kn})}La<20&&(Xt.wheelStartX==null?(Xt.wheelStartX=ae.scrollLeft,Xt.wheelStartY=ae.scrollTop,Xt.wheelDX=pt,Xt.wheelDY=bt,setTimeout(function(){if(Xt.wheelStartX!=null){var Zn=ae.scrollLeft-Xt.wheelStartX,si=ae.scrollTop-Xt.wheelStartY,wi=si&&Xt.wheelDY&&si/Xt.wheelDY||Zn&&Xt.wheelDX&&Zn/Xt.wheelDX;Xt.wheelStartX=Xt.wheelStartY=null,wi&&(Ko=(Ko*La+wi)/(La+1),++La)}},200)):(Xt.wheelDX+=pt,Xt.wheelDY+=bt))}}var el=function(it,at){this.ranges=it,this.primIndex=at};el.prototype.primary=function(){return this.ranges[this.primIndex]},el.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var at=0;at<this.ranges.length;at++){var mt=this.ranges[at],pt=it.ranges[at];if(!xn(mt.anchor,pt.anchor)||!xn(mt.head,pt.head))return!1}return!0},el.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new to(Sn(this.ranges[at].anchor),Sn(this.ranges[at].head));return new el(it,this.primIndex)},el.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},el.prototype.contains=function(it,at){at||(at=it);for(var mt=0;mt<this.ranges.length;mt++){var pt=this.ranges[mt];if(yn(at,pt.from())>=0&&yn(it,pt.to())<=0)return mt}return-1};var to=function(it,at){this.anchor=it,this.head=at};to.prototype.from=function(){return Fn(this.anchor,this.head)},to.prototype.to=function(){return Wn(this.anchor,this.head)},to.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pl(it,at,mt){var pt=it&&it.options.selectionsMayTouch,bt=at[mt];at.sort(function(un,ln){return yn(un.from(),ln.from())}),mt=re(at,bt);for(var Xt=1;Xt<at.length;Xt++){var ae=at[Xt],Se=at[Xt-1],me=yn(Se.to(),ae.from());if(pt&&!ae.empty()?me>0:me>=0){var Te=Fn(Se.from(),ae.from()),$e=Wn(Se.to(),ae.to()),Be=Se.empty()?ae.from()==ae.head:Se.from()==Se.head;Xt<=mt&&--mt,at.splice(--Xt,2,new to(Be?$e:Te,Be?Te:$e))}}return new el(at,mt)}function gu(it,at){return new el([new to(it,at||it)],0)}function Vu(it){return it.text?tn(it.from.line+it.text.length-1,Le(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Lh(it,at){if(yn(it,at.from)<0)return it;if(yn(it,at.to)<=0)return Vu(at);var mt=it.line+at.text.length-(at.to.line-at.from.line)-1,pt=it.ch;return it.line==at.to.line&&(pt+=Vu(at).ch-at.to.ch),tn(mt,pt)}function qc(it,at){for(var mt=[],pt=0;pt<it.sel.ranges.length;pt++){var bt=it.sel.ranges[pt];mt.push(new to(Lh(bt.anchor,at),Lh(bt.head,at)))}return pl(it.cm,mt,it.sel.primIndex)}function gc(it,at,mt){return it.line==at.line?tn(mt.line,it.ch-at.ch+mt.ch):tn(mt.line+(it.line-at.line),it.ch)}function $c(it,at,mt){for(var pt=[],bt=tn(it.first,0),Xt=bt,ae=0;ae<at.length;ae++){var Se=at[ae],me=gc(Se.from,bt,Xt),Te=gc(Vu(Se),bt,Xt);if(bt=Se.to,Xt=Te,mt=="around"){var $e=it.sel.ranges[ae],Be=yn($e.head,$e.anchor)<0;pt[ae]=new to(Be?Te:me,Be?me:Te)}else pt[ae]=new to(me,me)}return new el(pt,it.sel.primIndex)}function Lr(it){it.doc.mode=Xe(it.options,it.doc.modeOption),td(it)}function td(it){it.doc.iter(function(at){at.stateAfter&&(at.stateAfter=null),at.styles&&(at.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,fc(it,100),it.state.modeGen++,it.curOp&&wo(it)}function sg(it,at){return at.from.ch==0&&at.to.ch==0&&Le(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Zd(it,at,mt,pt){function bt(Vi){return mt?mt[Vi]:null}function Xt(Vi,Ni,$i){yo(Vi,Ni,$i,pt),Bi(Vi,"change",Vi,at)}function ae(Vi,Ni){for(var $i=[],mr=Vi;mr<Ni;++mr)$i.push(new Jr(Te[mr],bt(mr),pt));return $i}var Se=at.from,me=at.to,Te=at.text,$e=Bn(it,Se.line),Be=Bn(it,me.line),un=Le(Te),ln=bt(Te.length-1),Kn=me.line-Se.line;if(at.full)it.insert(0,ae(0,Te.length)),it.remove(Te.length,it.size-Te.length);else if(sg(it,at)){var Zn=ae(0,Te.length-1);Xt(Be,Be.text,ln),Kn&&it.remove(Se.line,Kn),Zn.length&&it.insert(Se.line,Zn)}else if($e==Be)if(Te.length==1)Xt($e,$e.text.slice(0,Se.ch)+un+$e.text.slice(me.ch),ln);else{var si=ae(1,Te.length-1);si.push(new Jr(un+$e.text.slice(me.ch),ln,pt)),Xt($e,$e.text.slice(0,Se.ch)+Te[0],bt(0)),it.insert(Se.line+1,si)}else if(Te.length==1)Xt($e,$e.text.slice(0,Se.ch)+Te[0]+Be.text.slice(me.ch),bt(0)),it.remove(Se.line+1,Kn);else{Xt($e,$e.text.slice(0,Se.ch)+Te[0],bt(0)),Xt(Be,un+Be.text.slice(me.ch),ln);var wi=ae(1,Te.length-1);Kn>1&&it.remove(Se.line+1,Kn-1),it.insert(Se.line+1,wi)}Bi(it,"change",it,at)}function Tl(it,at,mt){function pt(bt,Xt,ae){if(bt.linked)for(var Se=0;Se<bt.linked.length;++Se){var me=bt.linked[Se];if(me.doc!=Xt){var Te=ae&&me.sharedHist;mt&&!Te||(at(me.doc,Te),pt(me.doc,bt,Te))}}}pt(it,null,!0)}function Xd(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,or(it),Lr(it),ed(it),it.options.lineWrapping||Er(it),it.options.mode=at.modeOption,wo(it)}function ed(it){(it.doc.direction=="rtl"?be:Rt)(it.display.lineDiv,"CodeMirror-rtl")}function tv(it){Yr(it,function(){ed(it),wo(it)})}function pc(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function Jd(it,at){var mt={from:Sn(at.from),to:Vu(at),text:hi(it,at.from,at.to)};return Yu(it,mt,at.from.line,at.to.line+1),Tl(it,function(pt){return Yu(pt,mt,at.from.line,at.to.line+1)},!0),mt}function mc(it){for(;it.length;){var at=Le(it);if(at.ranges)it.pop();else break}}function nd(it,at){if(at)return mc(it.done),Le(it.done);if(it.done.length&&!Le(it.done).ranges)return Le(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Le(it.done)}function id(it,at,mt,pt){var bt=it.history;bt.undone.length=0;var Xt=+new Date,ae,Se;if((bt.lastOp==pt||bt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&bt.lastModTime>Xt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(ae=nd(bt,bt.lastOp==pt)))Se=Le(ae.changes),yn(at.from,at.to)==0&&yn(at.from,Se.to)==0?Se.to=Vu(at):ae.changes.push(Jd(it,at));else{var me=Le(bt.done);for((!me||!me.ranges)&&vc(it.sel,bt.done),ae={changes:[Jd(it,at)],generation:bt.generation},bt.done.push(ae);bt.done.length>bt.undoDepth;)bt.done.shift(),bt.done[0].ranges||bt.done.shift()}bt.done.push(mt),bt.generation=++bt.maxGeneration,bt.lastModTime=bt.lastSelTime=Xt,bt.lastOp=bt.lastSelOp=pt,bt.lastOrigin=bt.lastSelOrigin=at.origin,Se||nn(it,"historyAdded")}function ag(it,at,mt,pt){var bt=at.charAt(0);return bt=="*"||bt=="+"&&mt.ranges.length==pt.ranges.length&&mt.somethingSelected()==pt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function rd(it,at,mt,pt){var bt=it.history,Xt=pt&&pt.origin;mt==bt.lastSelOp||Xt&&bt.lastSelOrigin==Xt&&(bt.lastModTime==bt.lastSelTime&&bt.lastOrigin==Xt||ag(it,Xt,Le(bt.done),at))?bt.done[bt.done.length-1]=at:vc(at,bt.done),bt.lastSelTime=+new Date,bt.lastSelOrigin=Xt,bt.lastSelOp=mt,pt&&pt.clearRedo!==!1&&mc(bt.undone)}function vc(it,at){var mt=Le(at);mt&&mt.ranges&&mt.equals(it)||at.push(it)}function Yu(it,at,mt,pt){var bt=at["spans_"+it.id],Xt=0;it.iter(Math.max(it.first,mt),Math.min(it.first+it.size,pt),function(ae){ae.markedSpans&&((bt||(bt=at["spans_"+it.id]={}))[Xt]=ae.markedSpans),++Xt})}function ea(it){if(!it)return null;for(var at,mt=0;mt<it.length;++mt)it[mt].marker.explicitlyCleared?at||(at=it.slice(0,mt)):at&&at.push(it[mt]);return at?at.length?at:null:it}function Kl(it,at){var mt=at["spans_"+it.id];if(!mt)return null;for(var pt=[],bt=0;bt<at.text.length;++bt)pt.push(ea(mt[bt]));return pt}function Qd(it,at){var mt=Kl(it,at),pt=Cr(it,at);if(!mt)return pt;if(!pt)return mt;for(var bt=0;bt<mt.length;++bt){var Xt=mt[bt],ae=pt[bt];if(Xt&&ae)t:for(var Se=0;Se<ae.length;++Se){for(var me=ae[Se],Te=0;Te<Xt.length;++Te)if(Xt[Te].marker==me.marker)continue t;Xt.push(me)}else ae&&(mt[bt]=ae)}return mt}function pu(it,at,mt){for(var pt=[],bt=0;bt<it.length;++bt){var Xt=it[bt];if(Xt.ranges){pt.push(mt?el.prototype.deepCopy.call(Xt):Xt);continue}var ae=Xt.changes,Se=[];pt.push({changes:Se});for(var me=0;me<ae.length;++me){var Te=ae[me],$e=void 0;if(Se.push({from:Te.from,to:Te.to,text:Te.text}),at)for(var Be in Te)($e=Be.match(/^spans_(\d+)$/))&&re(at,Number($e[1]))>-1&&(Le(Se)[Be]=Te[Be],delete Te[Be])}}return pt}function qd(it,at,mt,pt){if(pt){var bt=it.anchor;if(mt){var Xt=yn(at,bt)<0;Xt!=yn(mt,bt)<0?(bt=at,at=mt):Xt!=yn(at,mt)<0&&(at=mt)}return new to(bt,at)}else return new to(mt||at,at)}function $d(it,at,mt,pt,bt){bt==null&&(bt=it.cm&&(it.cm.display.shift||it.extend)),_s(it,new el([qd(it.sel.primary(),at,mt,bt)],0),pt)}function Gp(it,at,mt){for(var pt=[],bt=it.cm&&(it.cm.display.shift||it.extend),Xt=0;Xt<it.sel.ranges.length;Xt++)pt[Xt]=qd(it.sel.ranges[Xt],at[Xt],null,bt);var ae=pl(it.cm,pt,it.sel.primIndex);_s(it,ae,mt)}function Zu(it,at,mt,pt){var bt=it.sel.ranges.slice(0);bt[at]=mt,_s(it,pl(it.cm,bt,it.sel.primIndex),pt)}function kh(it,at,mt,pt){_s(it,gu(at,mt),pt)}function Up(it,at,mt){var pt={ranges:at.ranges,update:function(bt){this.ranges=[];for(var Xt=0;Xt<bt.length;Xt++)this.ranges[Xt]=new to(In(it,bt[Xt].anchor),In(it,bt[Xt].head))},origin:mt&&mt.origin};return nn(it,"beforeSelectionChange",it,pt),it.cm&&nn(it.cm,"beforeSelectionChange",it.cm,pt),pt.ranges!=at.ranges?pl(it.cm,pt.ranges,pt.ranges.length-1):at}function tf(it,at,mt){var pt=it.history.done,bt=Le(pt);bt&&bt.ranges?(pt[pt.length-1]=at,Eh(it,at,mt)):_s(it,at,mt)}function _s(it,at,mt){Eh(it,at,mt),rd(it,it.sel,it.cm?it.cm.curOp.id:NaN,mt)}function Eh(it,at,mt){(fn(it,"beforeSelectionChange")||it.cm&&fn(it.cm,"beforeSelectionChange"))&&(at=Up(it,at,mt));var pt=mt&&mt.bias||(yn(at.primary().head,it.sel.primary().head)<0?-1:1);lg(it,sd(it,at,pt,!0)),!(mt&&mt.scroll===!1)&&it.cm&&du(it.cm)}function lg(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,En(it.cm)),Bi(it,"cursorActivity",it))}function od(it){lg(it,sd(it,it.sel,null,!1))}function sd(it,at,mt,pt){for(var bt,Xt=0;Xt<at.ranges.length;Xt++){var ae=at.ranges[Xt],Se=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[Xt],me=ad(it,ae.anchor,Se&&Se.anchor,mt,pt),Te=ad(it,ae.head,Se&&Se.head,mt,pt);(bt||me!=ae.anchor||Te!=ae.head)&&(bt||(bt=at.ranges.slice(0,Xt)),bt[Xt]=new to(me,Te))}return bt?pl(it.cm,bt,at.primIndex):at}function mu(it,at,mt,pt,bt){var Xt=Bn(it,at.line);if(Xt.markedSpans)for(var ae=0;ae<Xt.markedSpans.length;++ae){var Se=Xt.markedSpans[ae],me=Se.marker,Te="selectLeft"in me?!me.selectLeft:me.inclusiveLeft,$e="selectRight"in me?!me.selectRight:me.inclusiveRight;if((Se.from==null||(Te?Se.from<=at.ch:Se.from<at.ch))&&(Se.to==null||($e?Se.to>=at.ch:Se.to>at.ch))){if(bt&&(nn(me,"beforeCursorEnter"),me.explicitlyCleared))if(Xt.markedSpans){--ae;continue}else break;if(!me.atomic)continue;if(mt){var Be=me.find(pt<0?1:-1),un=void 0;if((pt<0?$e:Te)&&(Be=ug(it,Be,-pt,Be&&Be.line==at.line?Xt:null)),Be&&Be.line==at.line&&(un=yn(Be,mt))&&(pt<0?un<0:un>0))return mu(it,Be,at,pt,bt)}var ln=me.find(pt<0?-1:1);return(pt<0?Te:$e)&&(ln=ug(it,ln,pt,ln.line==at.line?Xt:null)),ln?mu(it,ln,at,pt,bt):null}}return at}function ad(it,at,mt,pt,bt){var Xt=pt||1,ae=mu(it,at,mt,Xt,bt)||!bt&&mu(it,at,mt,Xt,!0)||mu(it,at,mt,-Xt,bt)||!bt&&mu(it,at,mt,-Xt,!0);return ae||(it.cantEdit=!0,tn(it.first,0))}function ug(it,at,mt,pt){return mt<0&&at.ch==0?at.line>it.first?In(it,tn(at.line-1)):null:mt>0&&at.ch==(pt||Bn(it,at.line)).text.length?at.line<it.first+it.size-1?tn(at.line+1,0):null:new tn(at.line,at.ch+mt)}function Vo(it){it.setSelection(tn(it.firstLine(),0),tn(it.lastLine()),ue)}function ld(it,at,mt){var pt={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return pt.canceled=!0}};return mt&&(pt.update=function(bt,Xt,ae,Se){bt&&(pt.from=In(it,bt)),Xt&&(pt.to=In(it,Xt)),ae&&(pt.text=ae),Se!==void 0&&(pt.origin=Se)}),nn(it,"beforeChange",it,pt),it.cm&&nn(it.cm,"beforeChange",it.cm,pt),pt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:pt.from,to:pt.to,text:pt.text,origin:pt.origin}}function Xu(it,at,mt){if(it.cm){if(!it.cm.curOp)return ls(it.cm,Xu)(it,at,mt);if(it.cm.state.suppressEdits)return}if(!((fn(it,"beforeChange")||it.cm&&fn(it.cm,"beforeChange"))&&(at=ld(it,at,!0),!at))){var pt=sr&&!mt&&Rr(it,at.from,at.to);if(pt)for(var bt=pt.length-1;bt>=0;--bt)Mh(it,{from:pt[bt].from,to:pt[bt].to,text:bt?[""]:at.text,origin:at.origin});else Mh(it,at)}}function Mh(it,at){if(!(at.text.length==1&&at.text[0]==""&&yn(at.from,at.to)==0)){var mt=qc(it,at);id(it,at,mt,it.cm?it.cm.curOp.id:NaN),yc(it,at,mt,Cr(it,at));var pt=[];Tl(it,function(bt,Xt){!Xt&&re(pt,bt.history)==-1&&(cg(bt.history,at),pt.push(bt.history)),yc(bt,at,null,Cr(bt,at))})}}function ud(it,at,mt){var pt=it.cm&&it.cm.state.suppressEdits;if(!(pt&&!mt)){for(var bt=it.history,Xt,ae=it.sel,Se=at=="undo"?bt.done:bt.undone,me=at=="undo"?bt.undone:bt.done,Te=0;Te<Se.length&&(Xt=Se[Te],!(mt?Xt.ranges&&!Xt.equals(it.sel):!Xt.ranges));Te++);if(Te!=Se.length){for(bt.lastOrigin=bt.lastSelOrigin=null;;)if(Xt=Se.pop(),Xt.ranges){if(vc(Xt,me),mt&&!Xt.equals(it.sel)){_s(it,Xt,{clearRedo:!1});return}ae=Xt}else if(pt){Se.push(Xt);return}else break;var $e=[];vc(ae,me),me.push({changes:$e,generation:bt.generation}),bt.generation=Xt.generation||++bt.maxGeneration;for(var Be=fn(it,"beforeChange")||it.cm&&fn(it.cm,"beforeChange"),un=function(Zn){var si=Xt.changes[Zn];if(si.origin=at,Be&&!ld(it,si,!1))return Se.length=0,{};$e.push(Jd(it,si));var wi=Zn?qc(it,si):Le(Se);yc(it,si,wi,Qd(it,si)),!Zn&&it.cm&&it.cm.scrollIntoView({from:si.from,to:Vu(si)});var Vi=[];Tl(it,function(Ni,$i){!$i&&re(Vi,Ni.history)==-1&&(cg(Ni.history,si),Vi.push(Ni.history)),yc(Ni,si,null,Qd(Ni,si))})},ln=Xt.changes.length-1;ln>=0;--ln){var Kn=un(ln);if(Kn)return Kn.v}}}}function hg(it,at){if(at!=0&&(it.first+=at,it.sel=new el(Oe(it.sel.ranges,function(bt){return new to(tn(bt.anchor.line+at,bt.anchor.ch),tn(bt.head.line+at,bt.head.ch))}),it.sel.primIndex),it.cm)){wo(it.cm,it.first,it.first-at,at);for(var mt=it.cm.display,pt=mt.viewFrom;pt<mt.viewTo;pt++)Ar(it.cm,pt,"gutter")}}function yc(it,at,mt,pt){if(it.cm&&!it.cm.curOp)return ls(it.cm,yc)(it,at,mt,pt);if(at.to.line<it.first){hg(it,at.text.length-1-(at.to.line-at.from.line));return}if(!(at.from.line>it.lastLine())){if(at.from.line<it.first){var bt=at.text.length-1-(it.first-at.from.line);hg(it,bt),at={from:tn(it.first,0),to:tn(at.to.line+bt,at.to.ch),text:[Le(at.text)],origin:at.origin}}var Xt=it.lastLine();at.to.line>Xt&&(at={from:at.from,to:tn(Xt,Bn(it,Xt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=hi(it,at.from,at.to),mt||(mt=qc(it,at)),it.cm?_p(it.cm,at,pt):Zd(it,at,pt),Eh(it,mt,ue),it.cantEdit&&ad(it,tn(it.firstLine(),0))&&(it.cantEdit=!1)}}function _p(it,at,mt){var pt=it.doc,bt=it.display,Xt=at.from,ae=at.to,Se=!1,me=Xt.line;it.options.lineWrapping||(me=we(gi(Bn(pt,Xt.line))),pt.iter(me,ae.line+1,function(ln){if(ln==bt.maxLine)return Se=!0,!0})),pt.sel.contains(at.from,at.to)>-1&&En(it),Zd(pt,at,mt,xo(it)),it.options.lineWrapping||(pt.iter(me,Xt.line+at.text.length,function(ln){var Kn=Ur(ln);Kn>bt.maxLineLength&&(bt.maxLine=ln,bt.maxLineLength=Kn,bt.maxLineChanged=!0,Se=!1)}),Se&&(it.curOp.updateMaxLine=!0)),Qi(pt,Xt.line),fc(it,400);var Te=at.text.length-(ae.line-Xt.line)-1;at.full?wo(it):Xt.line==ae.line&&at.text.length==1&&!sg(it.doc,at)?Ar(it,Xt.line,"text"):wo(it,Xt.line,ae.line+1,Te);var $e=fn(it,"changes"),Be=fn(it,"change");if(Be||$e){var un={from:Xt,to:ae,text:at.text,removed:at.removed,origin:at.origin};Be&&Bi(it,"change",it,un),$e&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(un)}it.display.selForContextMenu=null}function Th(it,at,mt,pt,bt){var Xt;pt||(pt=mt),yn(pt,mt)<0&&(Xt=[pt,mt],mt=Xt[0],pt=Xt[1]),typeof at=="string"&&(at=it.splitLines(at)),Xu(it,{from:mt,to:pt,text:at,origin:bt})}function nl(it,at,mt,pt){mt<it.line?it.line+=pt:at<it.line&&(it.line=at,it.ch=0)}function Hp(it,at,mt,pt){for(var bt=0;bt<it.length;++bt){var Xt=it[bt],ae=!0;if(Xt.ranges){Xt.copied||(Xt=it[bt]=Xt.deepCopy(),Xt.copied=!0);for(var Se=0;Se<Xt.ranges.length;Se++)nl(Xt.ranges[Se].anchor,at,mt,pt),nl(Xt.ranges[Se].head,at,mt,pt);continue}for(var me=0;me<Xt.changes.length;++me){var Te=Xt.changes[me];if(mt<Te.from.line)Te.from=tn(Te.from.line+pt,Te.from.ch),Te.to=tn(Te.to.line+pt,Te.to.ch);else if(at<=Te.to.line){ae=!1;break}}ae||(it.splice(0,bt+1),bt=0)}}function cg(it,at){var mt=at.from.line,pt=at.to.line,bt=at.text.length-(pt-mt)-1;Hp(it.done,mt,pt,bt),Hp(it.undone,mt,pt,bt)}function Nh(it,at,mt,pt){var bt=at,Xt=at;return typeof at=="number"?Xt=Bn(it,jn(it,at)):bt=we(at),bt==null?null:(pt(Xt,bt)&&it.cm&&Ar(it.cm,bt,mt),Xt)}function Sc(it){this.lines=it,this.parent=null;for(var at=0,mt=0;mt<it.length;++mt)it[mt].parent=this,at+=it[mt].height;this.height=at}Sc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var mt=it,pt=it+at;mt<pt;++mt){var bt=this.lines[mt];this.height-=bt.height,Qr(bt),Bi(bt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,mt){this.height+=mt,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var pt=0;pt<at.length;++pt)at[pt].parent=this},iterN:function(it,at,mt){for(var pt=it+at;it<pt;++it)if(mt(this.lines[it]))return!0}};function Do(it){this.children=it;for(var at=0,mt=0,pt=0;pt<it.length;++pt){var bt=it[pt];at+=bt.chunkSize(),mt+=bt.height,bt.parent=this}this.size=at,this.height=mt,this.parent=null}Do.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var mt=0;mt<this.children.length;++mt){var pt=this.children[mt],bt=pt.chunkSize();if(it<bt){var Xt=Math.min(at,bt-it),ae=pt.height;if(pt.removeInner(it,Xt),this.height-=ae-pt.height,bt==Xt&&(this.children.splice(mt--,1),pt.parent=null),(at-=Xt)==0)break;it=0}else it-=bt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof Sc))){var Se=[];this.collapse(Se),this.children=[new Sc(Se)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at<this.children.length;++at)this.children[at].collapse(it)},insertInner:function(it,at,mt){this.size+=at.length,this.height+=mt;for(var pt=0;pt<this.children.length;++pt){var bt=this.children[pt],Xt=bt.chunkSize();if(it<=Xt){if(bt.insertInner(it,at,mt),bt.lines&&bt.lines.length>50){for(var ae=bt.lines.length%25+25,Se=ae;Se<bt.lines.length;){var me=new Sc(bt.lines.slice(Se,Se+=25));bt.height-=me.height,this.children.splice(++pt,0,me),me.parent=this}bt.lines=bt.lines.slice(0,ae),this.maybeSpill()}break}it-=Xt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),mt=new Do(at);if(it.parent){it.size-=mt.size,it.height-=mt.height;var bt=re(it.parent.children,it);it.parent.children.splice(bt+1,0,mt)}else{var pt=new Do(it.children);pt.parent=it,it.children=[pt,mt],it=pt}mt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,mt){for(var pt=0;pt<this.children.length;++pt){var bt=this.children[pt],Xt=bt.chunkSize();if(it<Xt){var ae=Math.min(at,Xt-it);if(bt.iterN(it,ae,mt))return!0;if((at-=ae)==0)break;it=0}else it-=Xt}}};var vu=function(it,at,mt){if(mt)for(var pt in mt)mt.hasOwnProperty(pt)&&(this[pt]=mt[pt]);this.doc=it,this.node=at};vu.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,mt=this.line,pt=we(mt);if(!(pt==null||!at)){for(var bt=0;bt<at.length;++bt)at[bt]==this&&at.splice(bt--,1);at.length||(mt.widgets=null);var Xt=os(this);Di(mt,Math.max(0,mt.height-Xt)),it&&(Yr(it,function(){Kp(it,mt,-Xt),Ar(it,pt,"widget")}),Bi(it,"lineWidgetCleared",it,this,pt))}},vu.prototype.changed=function(){var it=this,at=this.height,mt=this.doc.cm,pt=this.line;this.height=null;var bt=os(this)-at;bt&&(wn(this.doc,pt)||Di(pt,pt.height+bt),mt&&Yr(mt,function(){mt.curOp.forceUpdate=!0,Kp(mt,pt,bt),Bi(mt,"lineWidgetChanged",mt,it,we(pt))}))},Pn(vu);function Kp(it,at,mt){pr(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&_d(it,mt)}function ef(it,at,mt,pt){var bt=new vu(it,mt,pt),Xt=it.cm;return Xt&&bt.noHScroll&&(Xt.display.alignWidgets=!0),Nh(it,at,"widget",function(ae){var Se=ae.widgets||(ae.widgets=[]);if(bt.insertAt==null?Se.push(bt):Se.splice(Math.min(Se.length-1,Math.max(0,bt.insertAt)),0,bt),bt.line=ae,Xt&&!wn(it,ae)){var me=pr(ae)<it.scrollTop;Di(ae,ae.height+os(bt)),me&&_d(Xt,bt.height),Xt.curOp.forceUpdate=!0}return!0}),Xt&&Bi(Xt,"lineWidgetAdded",Xt,bt,typeof at=="number"?at:we(at)),bt}var Vp=0,Ye=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++Vp};Ye.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&zu(it),fn(this,"clear")){var mt=this.find();mt&&Bi(this,"clear",mt.from,mt.to)}for(var pt=null,bt=null,Xt=0;Xt<this.lines.length;++Xt){var ae=this.lines[Xt],Se=tr(ae.markedSpans,this);it&&!this.collapsed?Ar(it,we(ae),"text"):it&&(Se.to!=null&&(bt=we(ae)),Se.from!=null&&(pt=we(ae))),ae.markedSpans=Wi(ae.markedSpans,Se),Se.from==null&&this.collapsed&&!wn(this.doc,ae)&&it&&Di(ae,Qs(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var me=0;me<this.lines.length;++me){var Te=gi(this.lines[me]),$e=Ur(Te);$e>it.display.maxLineLength&&(it.display.maxLine=Te,it.display.maxLineLength=$e,it.display.maxLineChanged=!0)}pt!=null&&it&&this.collapsed&&wo(it,pt,bt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&od(it.doc)),it&&Bi(it,"markerCleared",it,this,pt,bt),at&&Wu(it),this.parent&&this.parent.clear()}},Ye.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var mt,pt,bt=0;bt<this.lines.length;++bt){var Xt=this.lines[bt],ae=tr(Xt.markedSpans,this);if(ae.from!=null&&(mt=tn(at?Xt:we(Xt),ae.from),it==-1))return mt;if(ae.to!=null&&(pt=tn(at?Xt:we(Xt),ae.to),it==1))return pt}return mt&&{from:mt,to:pt}},Ye.prototype.changed=function(){var it=this,at=this.find(-1,!0),mt=this,pt=this.doc.cm;!at||!pt||Yr(pt,function(){var bt=at.line,Xt=we(at.line),ae=fl(pt,Xt);if(ae&&(hc(ae),pt.curOp.selectionChanged=pt.curOp.forceUpdate=!0),pt.curOp.updateMaxLine=!0,!wn(mt.doc,bt)&&mt.height!=null){var Se=mt.height;mt.height=null;var me=os(mt)-Se;me&&Di(bt,bt.height+me)}Bi(pt,"markerChanged",pt,it)})},Ye.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||re(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Ye.prototype.detachLine=function(it){if(this.lines.splice(re(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},Pn(Ye);function Fh(it,at,mt,pt,bt){if(pt&&pt.shared)return Yp(it,at,mt,pt,bt);if(it.cm&&!it.cm.curOp)return ls(it.cm,Fh)(it,at,mt,pt,bt);var Xt=new Ye(it,bt),ae=yn(at,mt);if(pt&&ze(pt,Xt,!1),ae>0||ae==0&&Xt.clearWhenEmpty!==!1)return Xt;if(Xt.replacedWith&&(Xt.collapsed=!0,Xt.widgetNode=te("span",[Xt.replacedWith],"CodeMirror-widget"),pt.handleMouseEvents||Xt.widgetNode.setAttribute("cm-ignore-events","true"),pt.insertLeft&&(Xt.widgetNode.insertLeft=!0)),Xt.collapsed){if(er(it,at.line,at,mt,Xt)||at.line!=mt.line&&er(it,mt.line,at,mt,Xt))throw new Error("Inserting collapsed marker partially overlapping an existing one");hn()}Xt.addToHistory&&id(it,{from:at,to:mt,origin:"markText"},it.sel,NaN);var Se=at.line,me=it.cm,Te;if(it.iter(Se,mt.line+1,function(Be){me&&Xt.collapsed&&!me.options.lineWrapping&&gi(Be)==me.display.maxLine&&(Te=!0),Xt.collapsed&&Se!=at.line&&Di(Be,0),fr(Be,new di(Xt,Se==at.line?at.ch:null,Se==mt.line?mt.ch:null)),++Se}),Xt.collapsed&&it.iter(at.line,mt.line+1,function(Be){wn(it,Be)&&Di(Be,0)}),Xt.clearOnEnter&&Ee(Xt,"beforeCursorEnter",function(){return Xt.clear()}),Xt.readOnly&&(gr(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Xt.collapsed&&(Xt.id=++Vp,Xt.atomic=!0),me){if(Te&&(me.curOp.updateMaxLine=!0),Xt.collapsed)wo(me,at.line,mt.line+1);else if(Xt.className||Xt.startStyle||Xt.endStyle||Xt.css||Xt.attributes||Xt.title)for(var $e=at.line;$e<=mt.line;$e++)Ar(me,$e,"text");Xt.atomic&&od(me.doc),Bi(me,"markerAdded",me,Xt)}return Xt}var Vl=function(it,at){this.markers=it,this.primary=at;for(var mt=0;mt<it.length;++mt)it[mt].parent=this};Vl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Bi(this,"clear")}},Vl.prototype.find=function(it,at){return this.primary.find(it,at)},Pn(Vl);function Yp(it,at,mt,pt,bt){pt=ze(pt),pt.shared=!1;var Xt=[Fh(it,at,mt,pt,bt)],ae=Xt[0],Se=pt.widgetNode;return Tl(it,function(me){Se&&(pt.widgetNode=Se.cloneNode(!0)),Xt.push(Fh(me,In(me,at),In(me,mt),pt,bt));for(var Te=0;Te<me.linked.length;++Te)if(me.linked[Te].isParent)return;ae=Le(Xt)}),new Vl(Xt,ae)}function dg(it){return it.findMarks(tn(it.first,0),it.clipPos(tn(it.lastLine())),function(at){return at.parent})}function Zp(it,at){for(var mt=0;mt<at.length;mt++){var pt=at[mt],bt=pt.find(),Xt=it.clipPos(bt.from),ae=it.clipPos(bt.to);if(yn(Xt,ae)){var Se=Fh(it,Xt,ae,pt.primary,pt.primary.type);pt.markers.push(Se),Se.parent=pt}}}function fg(it){for(var at=function(pt){var bt=it[pt],Xt=[bt.primary.doc];Tl(bt.primary.doc,function(me){return Xt.push(me)});for(var ae=0;ae<bt.markers.length;ae++){var Se=bt.markers[ae];re(Xt,Se.doc)==-1&&(Se.parent=null,bt.markers.splice(ae--,1))}},mt=0;mt<it.length;mt++)at(mt)}var ev=0,Is=function(it,at,mt,pt,bt){if(!(this instanceof Is))return new Is(it,at,mt,pt,bt);mt==null&&(mt=0),Do.call(this,[new Sc([new Jr("",null)])]),this.first=mt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=mt;var Xt=tn(mt,0);this.sel=gu(Xt),this.history=new pc(null),this.id=++ev,this.modeOption=at,this.lineSep=pt,this.direction=bt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Zd(this,{from:Xt,to:Xt,text:it}),_s(this,gu(Xt),ue)};Is.prototype=Tt(Do.prototype,{constructor:Is,iter:function(it,at,mt){mt?this.iterN(it-this.first,at-it,mt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var mt=0,pt=0;pt<at.length;++pt)mt+=at[pt].height;this.insertInner(it-this.first,at,mt)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=Ti(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:vs(function(it){var at=tn(this.first,0),mt=this.first+this.size-1;Xu(this,{from:at,to:tn(mt,Bn(this,mt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Ph(this.cm,0,0),_s(this,gu(at),ue)}),replaceRange:function(it,at,mt,pt){at=In(this,at),mt=mt?In(this,mt):at,Th(this,it,at,mt,pt)},getRange:function(it,at,mt){var pt=hi(this,In(this,it),In(this,at));return mt===!1?pt:pt.join(mt||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(An(this,it))return Bn(this,it)},getLineNumber:function(it){return we(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=Bn(this,it)),gi(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return In(this,it)},getCursor:function(it){var at=this.sel.primary(),mt;return it==null||it=="head"?mt=at.head:it=="anchor"?mt=at.anchor:it=="end"||it=="to"||it===!1?mt=at.to():mt=at.from(),mt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:vs(function(it,at,mt){kh(this,In(this,typeof it=="number"?tn(it,at||0):it),null,mt)}),setSelection:vs(function(it,at,mt){kh(this,In(this,it),In(this,at||it),mt)}),extendSelection:vs(function(it,at,mt){$d(this,In(this,it),at&&In(this,at),mt)}),extendSelections:vs(function(it,at){Gp(this,ai(this,it),at)}),extendSelectionsBy:vs(function(it,at){var mt=Oe(this.sel.ranges,it);Gp(this,ai(this,mt),at)}),setSelections:vs(function(it,at,mt){if(it.length){for(var pt=[],bt=0;bt<it.length;bt++)pt[bt]=new to(In(this,it[bt].anchor),In(this,it[bt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),_s(this,pl(this.cm,pt,at),mt)}}),addSelection:vs(function(it,at,mt){var pt=this.sel.ranges.slice(0);pt.push(new to(In(this,it),In(this,at||it))),_s(this,pl(this.cm,pt,pt.length-1),mt)}),getSelection:function(it){for(var at=this.sel.ranges,mt,pt=0;pt<at.length;pt++){var bt=hi(this,at[pt].from(),at[pt].to());mt=mt?mt.concat(bt):bt}return it===!1?mt:mt.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],mt=this.sel.ranges,pt=0;pt<mt.length;pt++){var bt=hi(this,mt[pt].from(),mt[pt].to());it!==!1&&(bt=bt.join(it||this.lineSeparator())),at[pt]=bt}return at},replaceSelection:function(it,at,mt){for(var pt=[],bt=0;bt<this.sel.ranges.length;bt++)pt[bt]=it;this.replaceSelections(pt,at,mt||"+input")},replaceSelections:vs(function(it,at,mt){for(var pt=[],bt=this.sel,Xt=0;Xt<bt.ranges.length;Xt++){var ae=bt.ranges[Xt];pt[Xt]={from:ae.from(),to:ae.to(),text:this.splitLines(it[Xt]),origin:mt}}for(var Se=at&&at!="end"&&$c(this,pt,at),me=pt.length-1;me>=0;me--)Xu(this,pt[me]);Se?tf(this,Se):this.cm&&du(this.cm)}),undo:vs(function(){ud(this,"undo")}),redo:vs(function(){ud(this,"redo")}),undoSelection:vs(function(){ud(this,"undo",!0)}),redoSelection:vs(function(){ud(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,mt=0,pt=0;pt<it.done.length;pt++)it.done[pt].ranges||++at;for(var bt=0;bt<it.undone.length;bt++)it.undone[bt].ranges||++mt;return{undo:at,redo:mt}},clearHistory:function(){var it=this;this.history=new pc(this.history.maxGeneration),Tl(this,function(at){return at.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:pu(this.history.done),undone:pu(this.history.undone)}},setHistory:function(it){var at=this.history=new pc(this.history.maxGeneration);at.done=pu(it.done.slice(0),null,!0),at.undone=pu(it.undone.slice(0),null,!0)},setGutterMarker:vs(function(it,at,mt){return Nh(this,it,"gutter",function(pt){var bt=pt.gutterMarkers||(pt.gutterMarkers={});return bt[at]=mt,!mt&&_t(bt)&&(pt.gutterMarkers=null),!0})}),clearGutter:vs(function(it){var at=this;this.iter(function(mt){mt.gutterMarkers&&mt.gutterMarkers[it]&&Nh(at,mt,"gutter",function(){return mt.gutterMarkers[it]=null,_t(mt.gutterMarkers)&&(mt.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!An(this,it)||(at=it,it=Bn(this,it),!it))return null}else if(at=we(it),at==null)return null;return{line:at,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:vs(function(it,at,mt){return Nh(this,it,at=="gutter"?"gutter":"class",function(pt){var bt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!pt[bt])pt[bt]=mt;else{if(Lt(mt).test(pt[bt]))return!1;pt[bt]+=" "+mt}return!0})}),removeLineClass:vs(function(it,at,mt){return Nh(this,it,at=="gutter"?"gutter":"class",function(pt){var bt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",Xt=pt[bt];if(Xt)if(mt==null)pt[bt]=null;else{var ae=Xt.match(Lt(mt));if(!ae)return!1;var Se=ae.index+ae[0].length;pt[bt]=Xt.slice(0,ae.index)+(!ae.index||Se==Xt.length?"":" ")+Xt.slice(Se)||null}else return!1;return!0})}),addLineWidget:vs(function(it,at,mt){return ef(this,it,at,mt)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,mt){return Fh(this,In(this,it),In(this,at),mt,mt&&mt.type||"range")},setBookmark:function(it,at){var mt={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=In(this,it),Fh(this,it,it,mt,"bookmark")},findMarksAt:function(it){it=In(this,it);var at=[],mt=Bn(this,it.line).markedSpans;if(mt)for(var pt=0;pt<mt.length;++pt){var bt=mt[pt];(bt.from==null||bt.from<=it.ch)&&(bt.to==null||bt.to>=it.ch)&&at.push(bt.marker.parent||bt.marker)}return at},findMarks:function(it,at,mt){it=In(this,it),at=In(this,at);var pt=[],bt=it.line;return this.iter(it.line,at.line+1,function(Xt){var ae=Xt.markedSpans;if(ae)for(var Se=0;Se<ae.length;Se++){var me=ae[Se];!(me.to!=null&&bt==it.line&&it.ch>=me.to||me.from==null&&bt!=it.line||me.from!=null&&bt==at.line&&me.from>=at.ch)&&(!mt||mt(me.marker))&&pt.push(me.marker.parent||me.marker)}++bt}),pt},getAllMarks:function(){var it=[];return this.iter(function(at){var mt=at.markedSpans;if(mt)for(var pt=0;pt<mt.length;++pt)mt[pt].from!=null&&it.push(mt[pt].marker)}),it},posFromIndex:function(it){var at,mt=this.first,pt=this.lineSeparator().length;return this.iter(function(bt){var Xt=bt.text.length+pt;if(Xt>it)return at=it,!0;it-=Xt,++mt}),In(this,tn(mt,at))},indexFromPos:function(it){it=In(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var mt=this.lineSeparator().length;return this.iter(this.first,it.line,function(pt){at+=pt.text.length+mt}),at},copy:function(it){var at=new Is(Ti(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return at.scrollTop=this.scrollTop,at.scrollLeft=this.scrollLeft,at.sel=this.sel,at.extend=!1,it&&(at.history.undoDepth=this.history.undoDepth,at.setHistory(this.getHistory())),at},linkedDoc:function(it){it||(it={});var at=this.first,mt=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<mt&&(mt=it.to);var pt=new Is(Ti(this,at,mt),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(pt.history=this.history),(this.linked||(this.linked=[])).push({doc:pt,sharedHist:it.sharedHist}),pt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Zp(pt,dg(this)),pt},unlinkDoc:function(it){if(it instanceof Hr&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var mt=this.linked[at];if(mt.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),fg(dg(this));break}}if(it.history==this.history){var pt=[it.id];Tl(it,function(bt){return pt.push(bt.id)},!0),it.history=new pc(null),it.history.done=pu(this.history.done,pt),it.history.undone=pu(this.history.undone,pt)}},iterLinkedDocs:function(it){Tl(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):Gi(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:vs(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&tv(this.cm))})}),Is.prototype.eachLine=Is.prototype.iter;var hd=0;function gg(it){var at=this;if(Qp(at),!(qe(at,it)||_o(at.display,it))){Mn(it),Ot&&(hd=+new Date);var mt=$s(at,it,!0),pt=it.dataTransfer.files;if(!(!mt||at.isReadOnly()))if(pt&&pt.length&&window.FileReader&&window.File)for(var bt=pt.length,Xt=Array(bt),ae=0,Se=function(){++ae==bt&&ls(at,function(){mt=In(at.doc,mt);var ln={from:mt,to:mt,text:at.doc.splitLines(Xt.filter(function(Kn){return Kn!=null}).join(at.doc.lineSeparator())),origin:"paste"};Xu(at.doc,ln),tf(at.doc,gu(In(at.doc,mt),In(at.doc,Vu(ln))))})()},me=function(ln,Kn){if(at.options.allowDropFileTypes&&re(at.options.allowDropFileTypes,ln.type)==-1){Se();return}var Zn=new FileReader;Zn.onerror=function(){return Se()},Zn.onload=function(){var si=Zn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(si)){Se();return}Xt[Kn]=si,Se()},Zn.readAsText(ln)},Te=0;Te<pt.length;Te++)me(pt[Te],Te);else{if(at.state.draggingText&&at.doc.sel.contains(mt)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var $e=it.dataTransfer.getData("Text");if($e){var Be;if(at.state.draggingText&&!at.state.draggingText.copy&&(Be=at.listSelections()),Eh(at.doc,gu(mt,mt)),Be)for(var un=0;un<Be.length;++un)Th(at.doc,"",Be[un].anchor,Be[un].head,"drag");at.replaceSelection($e,"around","paste"),at.display.input.focus()}}catch(ln){}}}}function Xp(it,at){if(Ot&&(!it.state.draggingText||+new Date-hd<100)){oi(at);return}if(!(qe(it,at)||_o(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!kt)){var mt=qt("img",null,null,"position: fixed; left: 0; top: 0;");mt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",St&&(mt.width=mt.height=1,it.display.wrapper.appendChild(mt),mt._top=mt.offsetTop),at.dataTransfer.setDragImage(mt,0,0),St&&mt.parentNode.removeChild(mt)}}function Jp(it,at){var mt=$s(it,at);if(mt){var pt=document.createDocumentFragment();Ir(it,mt,pt),it.display.dragCursor||(it.display.dragCursor=qt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Nt(it.display.dragCursor,pt)}}function Qp(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function qp(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),mt=[],pt=0;pt<at.length;pt++){var bt=at[pt].CodeMirror;bt&&mt.push(bt)}mt.length&&mt[0].operation(function(){for(var Xt=0;Xt<mt.length;Xt++)it(mt[Xt])})}}var pg=!1;function Ua(){pg||(xc(),pg=!0)}function xc(){var it;Ee(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,qp(mg)},100))}),Ee(window,"blur",function(){return qp(wh)})}function mg(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var Yl={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"},cd=0;cd<10;cd++)Yl[cd+48]=Yl[cd+96]=String(cd);for(var nf=65;nf<=90;nf++)Yl[nf]=String.fromCharCode(nf);for(var dd=1;dd<=12;dd++)Yl[dd+111]=Yl[dd+63235]="F"+dd;var ka={};ka.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"},ka.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"},ka.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"},ka.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"]},ka.default=lt?ka.macDefault:ka.pcDefault;function vg(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var mt,pt,bt,Xt,ae=0;ae<at.length-1;ae++){var Se=at[ae];if(/^(cmd|meta|m)$/i.test(Se))Xt=!0;else if(/^a(lt)?$/i.test(Se))mt=!0;else if(/^(c|ctrl|control)$/i.test(Se))pt=!0;else if(/^s(hift)?$/i.test(Se))bt=!0;else throw new Error("Unrecognized modifier name: "+Se)}return mt&&(it="Alt-"+it),pt&&(it="Ctrl-"+it),Xt&&(it="Cmd-"+it),bt&&(it="Shift-"+it),it}function yg(it){var at={};for(var mt in it)if(it.hasOwnProperty(mt)){var pt=it[mt];if(/^(name|fallthrough|(de|at)tach)$/.test(mt))continue;if(pt=="..."){delete it[mt];continue}for(var bt=Oe(mt.split(" "),vg),Xt=0;Xt<bt.length;Xt++){var ae=void 0,Se=void 0;Xt==bt.length-1?(Se=bt.join(" "),ae=pt):(Se=bt.slice(0,Xt+1).join(" "),ae="...");var me=at[Se];if(!me)at[Se]=ae;else if(me!=ae)throw new Error("Inconsistent bindings for "+Se)}delete it[mt]}for(var Te in at)it[Te]=at[Te];return it}function il(it,at,mt,pt){at=Dh(at);var bt=at.call?at.call(it,pt):at[it];if(bt===!1)return"nothing";if(bt==="...")return"multi";if(bt!=null&&mt(bt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return il(it,at.fallthrough,mt,pt);for(var Xt=0;Xt<at.fallthrough.length;Xt++){var ae=il(it,at.fallthrough[Xt],mt,pt);if(ae)return ae}}}function wc(it){var at=typeof it=="string"?it:Yl[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function Sg(it,at,mt){var pt=it;return at.altKey&&pt!="Alt"&&(it="Alt-"+it),(ft?at.metaKey:at.ctrlKey)&&pt!="Ctrl"&&(it="Ctrl-"+it),(ft?at.ctrlKey:at.metaKey)&&pt!="Mod"&&(it="Cmd-"+it),!mt&&at.shiftKey&&pt!="Shift"&&(it="Shift-"+it),it}function $p(it,at){if(St&&it.keyCode==34&&it.char)return!1;var mt=Yl[it.keyCode];return mt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(mt=it.code),Sg(mt,it,at))}function Dh(it){return typeof it=="string"?ka[it]:it}function Ea(it,at){for(var mt=it.doc.sel.ranges,pt=[],bt=0;bt<mt.length;bt++){for(var Xt=at(mt[bt]);pt.length&&yn(Xt.from,Le(pt).to)<=0;){var ae=pt.pop();if(yn(ae.from,Xt.from)<0){Xt.from=ae.from;break}}pt.push(Xt)}Yr(it,function(){for(var Se=pt.length-1;Se>=0;Se--)Th(it.doc,"",pt[Se].from,pt[Se].to,"+delete");du(it)})}function xg(it,at,mt){var pt=Et(it.text,at+mt,mt);return pt<0||pt>it.text.length?null:pt}function Yo(it,at,mt){var pt=xg(it,at.ch,mt);return pt==null?null:new tn(at.line,pt,mt<0?"after":"before")}function fd(it,at,mt,pt,bt){if(it){at.doc.direction=="rtl"&&(bt=-bt);var Xt=Ue(mt,at.doc.direction);if(Xt){var ae=bt<0?Le(Xt):Xt[0],Se=bt<0==(ae.level==1),me=Se?"after":"before",Te;if(ae.level>0||at.doc.direction=="rtl"){var $e=Ul(at,mt);Te=bt<0?mt.text.length-1:0;var Be=ja(at,$e,Te).top;Te=$t(function(un){return ja(at,$e,un).top==Be},bt<0==(ae.level==1)?ae.from:ae.to-1,Te),me=="before"&&(Te=xg(mt,Te,1))}else Te=bt<0?ae.to:ae.from;return new tn(pt,Te,me)}}return new tn(pt,bt<0?mt.text.length:0,bt<0?"before":"after")}function rf(it,at,mt,pt){var bt=Ue(at,it.doc.direction);if(!bt)return Yo(at,mt,pt);mt.ch>=at.text.length?(mt.ch=at.text.length,mt.sticky="before"):mt.ch<=0&&(mt.ch=0,mt.sticky="after");var Xt=le(bt,mt.ch,mt.sticky),ae=bt[Xt];if(it.doc.direction=="ltr"&&ae.level%2==0&&(pt>0?ae.to>mt.ch:ae.from<mt.ch))return Yo(at,mt,pt);var Se=function(wi,Vi){return xg(at,wi instanceof tn?wi.ch:wi,Vi)},me,Te=function(wi){return it.options.lineWrapping?(me=me||Ul(it,at),Qo(it,at,me,wi)):{begin:0,end:at.text.length}},$e=Te(mt.sticky=="before"?Se(mt,-1):mt.ch);if(it.doc.direction=="rtl"||ae.level==1){var Be=ae.level==1==pt<0,un=Se(mt,Be?1:-1);if(un!=null&&(Be?un<=ae.to&&un<=$e.end:un>=ae.from&&un>=$e.begin)){var ln=Be?"before":"after";return new tn(mt.line,un,ln)}}var Kn=function(wi,Vi,Ni){for(var $i=function(Po,hs){return hs?new tn(mt.line,Se(Po,1),"before"):new tn(mt.line,Po,"after")};wi>=0&&wi<bt.length;wi+=Vi){var mr=bt[wi],Mi=Vi>0==(mr.level!=1),kr=Mi?Ni.begin:Se(Ni.end,-1);if(mr.from<=kr&&kr<mr.to||(kr=Mi?mr.from:Se(mr.to,-1),Ni.begin<=kr&&kr<Ni.end))return $i(kr,Mi)}},Zn=Kn(Xt+pt,pt,$e);if(Zn)return Zn;var si=pt>0?$e.end:Se($e.begin,-1);return si!=null&&!(pt>0&&si==at.text.length)&&(Zn=Kn(pt>0?0:bt.length-1,pt,Te(si)),Zn)?Zn:null}var Ju={selectAll:Vo,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ue)},killLine:function(it){return Ea(it,function(at){if(at.empty()){var mt=Bn(it.doc,at.head.line).text.length;return at.head.ch==mt&&at.head.line<it.lastLine()?{from:at.head,to:tn(at.head.line+1,0)}:{from:at.head,to:tn(at.head.line,mt)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return Ea(it,function(at){return{from:tn(at.from().line,0),to:In(it.doc,tn(at.to().line+1,0))}})},delLineLeft:function(it){return Ea(it,function(at){return{from:tn(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return Ea(it,function(at){var mt=it.charCoords(at.head,"div").top+5,pt=it.coordsChar({left:0,top:mt},"div");return{from:pt,to:at.from()}})},delWrappedLineRight:function(it){return Ea(it,function(at){var mt=it.charCoords(at.head,"div").top+5,pt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:mt},"div");return{from:at.from(),to:pt}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(tn(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(tn(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return Pc(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return wg(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return Cc(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var mt=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:mt},"div")},Fe)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var mt=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:mt},"div")},Fe)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var mt=it.cursorCoords(at.head,"div").top+5,pt=it.coordsChar({left:0,top:mt},"div");return pt.ch<it.getLine(pt.line).search(/\S/)?wg(it,at.head):pt},Fe)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var at=[],mt=it.listSelections(),pt=it.options.tabSize,bt=0;bt<mt.length;bt++){var Xt=mt[bt].from(),ae=he(it.getLine(Xt.line),Xt.ch,pt);at.push(_e(pt-ae%pt))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return Yr(it,function(){for(var at=it.listSelections(),mt=[],pt=0;pt<at.length;pt++)if(at[pt].empty()){var bt=at[pt].head,Xt=Bn(it.doc,bt.line).text;if(Xt){if(bt.ch==Xt.length&&(bt=new tn(bt.line,bt.ch-1)),bt.ch>0)bt=new tn(bt.line,bt.ch+1),it.replaceRange(Xt.charAt(bt.ch-1)+Xt.charAt(bt.ch-2),tn(bt.line,bt.ch-2),bt,"+transpose");else if(bt.line>it.doc.first){var ae=Bn(it.doc,bt.line-1).text;ae&&(bt=new tn(bt.line,1),it.replaceRange(Xt.charAt(0)+it.doc.lineSeparator()+ae.charAt(ae.length-1),tn(bt.line-1,ae.length-1),bt,"+transpose"))}}mt.push(new to(bt,bt))}it.setSelections(mt)})},newlineAndIndent:function(it){return Yr(it,function(){for(var at=it.listSelections(),mt=at.length-1;mt>=0;mt--)it.replaceRange(it.doc.lineSeparator(),at[mt].anchor,at[mt].head,"+input");at=it.listSelections();for(var pt=0;pt<at.length;pt++)it.indentLine(at[pt].from().line,null,!0);du(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Pc(it,at){var mt=Bn(it.doc,at),pt=gi(mt);return pt!=mt&&(at=we(pt)),fd(!0,it,pt,at,1)}function Cc(it,at){var mt=Bn(it.doc,at),pt=Ji(mt);return pt!=mt&&(at=we(pt)),fd(!0,it,mt,at,-1)}function wg(it,at){var mt=Pc(it,at.line),pt=Bn(it.doc,mt.line),bt=Ue(pt,it.doc.direction);if(!bt||bt[0].level==0){var Xt=Math.max(mt.ch,pt.text.search(/\S/)),ae=at.line==mt.line&&at.ch<=Xt&&at.ch;return tn(mt.line,ae?0:Xt,mt.sticky)}return mt}function bc(it,at,mt){if(typeof at=="string"&&(at=Ju[at],!at))return!1;it.display.input.ensurePolled();var pt=it.display.shift,bt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),mt&&(it.display.shift=!1),bt=at(it)!=pe}finally{it.display.shift=pt,it.state.suppressEdits=!1}return bt}function Pg(it,at,mt){for(var pt=0;pt<it.state.keyMaps.length;pt++){var bt=il(at,it.state.keyMaps[pt],mt,it);if(bt)return bt}return it.options.extraKeys&&il(at,it.options.extraKeys,mt,it)||il(at,it.options.keyMap,mt,it)}var Zl=new Jt;function Bh(it,at,mt,pt){var bt=it.state.keySeq;if(bt){if(wc(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:Zl.set(50,function(){it.state.keySeq==bt&&(it.state.keySeq=null,it.display.input.reset())}),of(it,bt+" "+at,mt,pt))return!0}return of(it,at,mt,pt)}function of(it,at,mt,pt){var bt=Pg(it,at,pt);return bt=="multi"&&(it.state.keySeq=at),bt=="handled"&&Bi(it,"keyHandled",it,at,mt),(bt=="handled"||bt=="multi")&&(Mn(mt),qr(it)),!!bt}function sf(it,at){var mt=$p(at,!0);return mt?at.shiftKey&&!it.state.keySeq?Bh(it,"Shift-"+mt,at,function(pt){return bc(it,pt,!0)})||Bh(it,mt,at,function(pt){if(typeof pt=="string"?/^go[A-Z]/.test(pt):pt.motion)return bc(it,pt)}):Bh(it,mt,at,function(pt){return bc(it,pt)}):!1}function af(it,at,mt){return Bh(it,"'"+mt+"'",at,function(pt){return bc(it,pt,!0)})}var Oh=null;function Cg(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=ge(),!qe(at,it))){Ot&&jt<11&&it.keyCode==27&&(it.returnValue=!1);var mt=it.keyCode;at.display.shift=mt==16||it.shiftKey;var pt=sf(at,it);St&&(Oh=pt?mt:null,!pt&&mt==88&&!zn&&(lt?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),ee&&!lt&&!pt&&mt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),mt==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&bg(at)}}function bg(it){var at=it.display.lineDiv;be(at,"CodeMirror-crosshair");function mt(pt){(pt.keyCode==18||!pt.altKey)&&(Rt(at,"CodeMirror-crosshair"),on(document,"keyup",mt),on(document,"mouseover",mt))}Ee(document,"keyup",mt),Ee(document,"mouseover",mt)}function Ag(it){it.keyCode==16&&(this.doc.sel.shift=!1),qe(this,it)}function Nl(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(_o(at.display,it)||qe(at,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var mt=it.keyCode,pt=it.charCode;if(St&&mt==Oh){Oh=null,Mn(it);return}if(!(St&&(!it.which||it.which<10)&&sf(at,it))){var bt=String.fromCharCode(pt==null?mt:pt);bt!="\b"&&(af(at,it,bt)||at.display.input.onKeyPress(it))}}}var tm=400,Lg=function(it,at,mt){this.time=it,this.pos=at,this.button=mt};Lg.prototype.compare=function(it,at,mt){return this.time+tm>it&&yn(at,this.pos)==0&&mt==this.button};var Ac,Ih;function kg(it,at){var mt=+new Date;return Ih&&Ih.compare(mt,it,at)?(Ac=Ih=null,"triple"):Ac&&Ac.compare(mt,it,at)?(Ih=new Lg(mt,it,at),Ac=null,"double"):(Ac=new Lg(mt,it,at),Ih=null,"single")}function Fl(it){var at=this,mt=at.display;if(!(qe(at,it)||mt.activeTouch&&mt.input.supportsTouch())){if(mt.input.ensurePolled(),mt.shift=it.shiftKey,_o(mt,it)){Ct||(mt.scroller.draggable=!1,setTimeout(function(){return mt.scroller.draggable=!0},100));return}if(!hf(at,it)){var pt=$s(at,it),bt=yi(it),Xt=pt?kg(pt,bt):"single";window.focus(),bt==1&&at.state.selectingText&&at.state.selectingText(it),!(pt&&Eg(at,bt,pt,Xt,it))&&(bt==1?pt?em(at,pt,Xt,it):vi(it)==mt.scroller&&Mn(it):bt==2?(pt&&$d(at.doc,pt),setTimeout(function(){return mt.input.focus()},20)):bt==3&&(gt?at.display.input.onContextMenu(it):Lo(at)))}}}function Eg(it,at,mt,pt,bt){var Xt="Click";return pt=="double"?Xt="Double"+Xt:pt=="triple"&&(Xt="Triple"+Xt),Xt=(at==1?"Left":at==2?"Middle":"Right")+Xt,Bh(it,Sg(Xt,bt),bt,function(ae){if(typeof ae=="string"&&(ae=Ju[ae]),!ae)return!1;var Se=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Se=ae(it,mt)!=pe}finally{it.state.suppressEdits=!1}return Se})}function lf(it,at,mt){var pt=it.getOption("configureMouse"),bt=pt?pt(it,at,mt):{};if(bt.unit==null){var Xt=ot?mt.shiftKey&&mt.metaKey:mt.altKey;bt.unit=Xt?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(bt.extend==null||it.doc.extend)&&(bt.extend=it.doc.extend||mt.shiftKey),bt.addNew==null&&(bt.addNew=lt?mt.metaKey:mt.ctrlKey),bt.moveOnDrag==null&&(bt.moveOnDrag=!(lt?mt.altKey:mt.ctrlKey)),bt}function em(it,at,mt,pt){Ot?setTimeout(Pe(fo,it),0):it.curOp.focus=ge();var bt=lf(it,mt,pt),Xt=it.doc.sel,ae;it.options.dragDrop&&Zi&&!it.isReadOnly()&&mt=="single"&&(ae=Xt.contains(at))>-1&&(yn((ae=Xt.ranges[ae]).from(),at)<0||at.xRel>0)&&(yn(ae.to(),at)>0||at.xRel<0)?Mg(it,pt,at,bt):nv(it,pt,at,bt)}function Mg(it,at,mt,pt){var bt=it.display,Xt=!1,ae=ls(it,function(Te){Ct&&(bt.scroller.draggable=!1),it.state.draggingText=!1,on(bt.wrapper.ownerDocument,"mouseup",ae),on(bt.wrapper.ownerDocument,"mousemove",Se),on(bt.scroller,"dragstart",me),on(bt.scroller,"drop",ae),Xt||(Mn(Te),pt.addNew||$d(it.doc,mt,null,null,pt.extend),Ct&&!kt||Ot&&jt==9?setTimeout(function(){bt.wrapper.ownerDocument.body.focus({preventScroll:!0}),bt.input.focus()},20):bt.input.focus())}),Se=function(Te){Xt=Xt||Math.abs(at.clientX-Te.clientX)+Math.abs(at.clientY-Te.clientY)>=10},me=function(){return Xt=!0};Ct&&(bt.scroller.draggable=!0),it.state.draggingText=ae,ae.copy=!pt.moveOnDrag,bt.scroller.dragDrop&&bt.scroller.dragDrop(),Ee(bt.wrapper.ownerDocument,"mouseup",ae),Ee(bt.wrapper.ownerDocument,"mousemove",Se),Ee(bt.scroller,"dragstart",me),Ee(bt.scroller,"drop",ae),Lo(it),setTimeout(function(){return bt.input.focus()},20)}function Tg(it,at,mt){if(mt=="char")return new to(at,at);if(mt=="word")return it.findWordAt(at);if(mt=="line")return new to(tn(at.line,0),In(it.doc,tn(at.line+1,0)));var pt=mt(it,at);return new to(pt.from,pt.to)}function nv(it,at,mt,pt){var bt=it.display,Xt=it.doc;Mn(at);var ae,Se,me=Xt.sel,Te=me.ranges;if(pt.addNew&&!pt.extend?(Se=Xt.sel.contains(mt),Se>-1?ae=Te[Se]:ae=new to(mt,mt)):(ae=Xt.sel.primary(),Se=Xt.sel.primIndex),pt.unit=="rectangle")pt.addNew||(ae=new to(mt,mt)),mt=$s(it,at,!0,!0),Se=-1;else{var $e=Tg(it,mt,pt.unit);pt.extend?ae=qd(ae,$e.anchor,$e.head,pt.extend):ae=$e}pt.addNew?Se==-1?(Se=Te.length,_s(Xt,pl(it,Te.concat([ae]),Se),{scroll:!1,origin:"*mouse"})):Te.length>1&&Te[Se].empty()&&pt.unit=="char"&&!pt.extend?(_s(Xt,pl(it,Te.slice(0,Se).concat(Te.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),me=Xt.sel):Zu(Xt,Se,ae,Re):(Se=0,_s(Xt,new el([ae],0),Re),me=Xt.sel);var Be=mt;function un(Ni){if(yn(Be,Ni)!=0)if(Be=Ni,pt.unit=="rectangle"){for(var $i=[],mr=it.options.tabSize,Mi=he(Bn(Xt,mt.line).text,mt.ch,mr),kr=he(Bn(Xt,Ni.line).text,Ni.ch,mr),Po=Math.min(Mi,kr),hs=Math.max(Mi,kr),Bo=Math.min(mt.line,Ni.line),pa=Math.min(it.lastLine(),Math.max(mt.line,Ni.line));Bo<=pa;Bo++){var Hs=Bn(Xt,Bo).text,ts=Qe(Hs,Po,mr);Po==hs?$i.push(new to(tn(Bo,ts),tn(Bo,ts))):Hs.length>ts&&$i.push(new to(tn(Bo,ts),tn(Bo,Qe(Hs,hs,mr))))}$i.length||$i.push(new to(mt,mt)),_s(Xt,pl(it,me.ranges.slice(0,Se).concat($i),Se),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Ni)}else{var Ma=ae,Rs=Tg(it,Ni,pt.unit),es=Ma.anchor,Vr;yn(Rs.anchor,es)>0?(Vr=Rs.head,es=Fn(Ma.from(),Rs.anchor)):(Vr=Rs.anchor,es=Wn(Ma.to(),Rs.head));var Ro=me.ranges.slice(0);Ro[Se]=nm(it,new to(In(Xt,es),Vr)),_s(Xt,pl(it,Ro,Se),Re)}}var ln=bt.wrapper.getBoundingClientRect(),Kn=0;function Zn(Ni){var $i=++Kn,mr=$s(it,Ni,!0,pt.unit=="rectangle");if(mr)if(yn(mr,Be)!=0){it.curOp.focus=ge(),un(mr);var Mi=Br(bt,Xt);(mr.line>=Mi.to||mr.line<Mi.from)&&setTimeout(ls(it,function(){Kn==$i&&Zn(Ni)}),150)}else{var kr=Ni.clientY<ln.top?-20:Ni.clientY>ln.bottom?20:0;kr&&setTimeout(ls(it,function(){Kn==$i&&(bt.scroller.scrollTop+=kr,Zn(Ni))}),50)}}function si(Ni){it.state.selectingText=!1,Kn=1/0,Ni&&(Mn(Ni),bt.input.focus()),on(bt.wrapper.ownerDocument,"mousemove",wi),on(bt.wrapper.ownerDocument,"mouseup",Vi),Xt.history.lastSelOrigin=null}var wi=ls(it,function(Ni){Ni.buttons===0||!yi(Ni)?si(Ni):Zn(Ni)}),Vi=ls(it,si);it.state.selectingText=Vi,Ee(bt.wrapper.ownerDocument,"mousemove",wi),Ee(bt.wrapper.ownerDocument,"mouseup",Vi)}function nm(it,at){var mt=at.anchor,pt=at.head,bt=Bn(it.doc,mt.line);if(yn(mt,pt)==0&&mt.sticky==pt.sticky)return at;var Xt=Ue(bt);if(!Xt)return at;var ae=le(Xt,mt.ch,mt.sticky),Se=Xt[ae];if(Se.from!=mt.ch&&Se.to!=mt.ch)return at;var me=ae+(Se.from==mt.ch==(Se.level!=1)?0:1);if(me==0||me==Xt.length)return at;var Te;if(pt.line!=mt.line)Te=(pt.line-mt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var $e=le(Xt,pt.ch,pt.sticky),Be=$e-ae||(pt.ch-mt.ch)*(Se.level==1?-1:1);$e==me-1||$e==me?Te=Be<0:Te=Be>0}var un=Xt[me+(Te?-1:0)],ln=Te==(un.level==1),Kn=ln?un.from:un.to,Zn=ln?"after":"before";return mt.ch==Kn&&mt.sticky==Zn?at:new to(new tn(mt.line,Kn,Zn),pt)}function uf(it,at,mt,pt){var bt,Xt;if(at.touches)bt=at.touches[0].clientX,Xt=at.touches[0].clientY;else try{bt=at.clientX,Xt=at.clientY}catch(un){return!1}if(bt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;pt&&Mn(at);var ae=it.display,Se=ae.lineDiv.getBoundingClientRect();if(Xt>Se.bottom||!fn(it,mt))return Tn(at);Xt-=Se.top-ae.viewOffset;for(var me=0;me<it.display.gutterSpecs.length;++me){var Te=ae.gutters.childNodes[me];if(Te&&Te.getBoundingClientRect().right>=bt){var $e=je(it.doc,Xt),Be=it.display.gutterSpecs[me];return nn(it,mt,it,$e,Be.className,at),Tn(at)}}}function hf(it,at){return uf(it,at,"gutterClick",!0)}function cf(it,at){_o(it.display,at)||im(it,at)||qe(it,at,"contextmenu")||gt||it.display.input.onContextMenu(at)}function im(it,at){return fn(it,"gutterContextMenu")?uf(it,at,"gutterContextMenu",!1):!1}function df(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bu(it)}var Qu={toString:function(){return"CodeMirror.Init"}},Ng={},gd={};function rm(it){var at=it.optionHandlers;function mt(pt,bt,Xt,ae){it.defaults[pt]=bt,Xt&&(at[pt]=ae?function(Se,me,Te){Te!=Qu&&Xt(Se,me,Te)}:Xt)}it.defineOption=mt,it.Init=Qu,mt("value","",function(pt,bt){return pt.setValue(bt)},!0),mt("mode",null,function(pt,bt){pt.doc.modeOption=bt,Lr(pt)},!0),mt("indentUnit",2,Lr,!0),mt("indentWithTabs",!1),mt("smartIndent",!0),mt("tabSize",4,function(pt){td(pt),Bu(pt),wo(pt)},!0),mt("lineSeparator",null,function(pt,bt){if(pt.doc.lineSep=bt,!!bt){var Xt=[],ae=pt.doc.first;pt.doc.iter(function(me){for(var Te=0;;){var $e=me.text.indexOf(bt,Te);if($e==-1)break;Te=$e+bt.length,Xt.push(tn(ae,$e))}ae++});for(var Se=Xt.length-1;Se>=0;Se--)Th(pt.doc,bt,Xt[Se],tn(Xt[Se].line,Xt[Se].ch+bt.length))}}),mt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(pt,bt,Xt){pt.state.specialChars=new RegExp(bt.source+(bt.test(" ")?"":"| "),"g"),Xt!=Qu&&pt.refresh()}),mt("specialCharPlaceholder",Uo,function(pt){return pt.refresh()},!0),mt("electricChars",!0),mt("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),mt("spellcheck",!1,function(pt,bt){return pt.getInputField().spellcheck=bt},!0),mt("autocorrect",!1,function(pt,bt){return pt.getInputField().autocorrect=bt},!0),mt("autocapitalize",!1,function(pt,bt){return pt.getInputField().autocapitalize=bt},!0),mt("rtlMoveVisually",!ut),mt("wholeLineUpdateBefore",!0),mt("theme","default",function(pt){df(pt),Wa(pt)},!0),mt("keyMap","default",function(pt,bt,Xt){var ae=Dh(bt),Se=Xt!=Qu&&Dh(Xt);Se&&Se.detach&&Se.detach(pt,ae),ae.attach&&ae.attach(pt,Se||null)}),mt("extraKeys",null),mt("configureMouse",null),mt("lineWrapping",!1,om,!0),mt("gutters",[],function(pt,bt){pt.display.gutterSpecs=Ss(bt,pt.options.lineNumbers),Wa(pt)},!0),mt("fixedGutter",!0,function(pt,bt){pt.display.gutters.style.left=bt?Jc(pt.display)+"px":"0",pt.refresh()},!0),mt("coverGutterNextToScrollbar",!1,function(pt){return ju(pt)},!0),mt("scrollbarStyle","native",function(pt){rg(pt),ju(pt),pt.display.scrollbars.setScrollTop(pt.doc.scrollTop),pt.display.scrollbars.setScrollLeft(pt.doc.scrollLeft)},!0),mt("lineNumbers",!1,function(pt,bt){pt.display.gutterSpecs=Ss(pt.options.gutters,bt),Wa(pt)},!0),mt("firstLineNumber",1,Wa,!0),mt("lineNumberFormatter",function(pt){return pt},Wa,!0),mt("showCursorWhenSelecting",!1,as,!0),mt("resetSelectionOnContextMenu",!0),mt("lineWiseCopyCut",!0),mt("pasteLinesPerSelection",!0),mt("selectionsMayTouch",!1),mt("readOnly",!1,function(pt,bt){bt=="nocursor"&&(wh(pt),pt.display.input.blur()),pt.display.input.readOnlyChanged(bt)}),mt("screenReaderLabel",null,function(pt,bt){bt=bt===""?null:bt,pt.display.input.screenReaderLabelChanged(bt)}),mt("disableInput",!1,function(pt,bt){bt||pt.display.input.reset()},!0),mt("dragDrop",!0,ff),mt("allowDropFileTypes",null),mt("cursorBlinkRate",530),mt("cursorScrollMargin",0),mt("cursorHeight",1,as,!0),mt("singleCursorHeightPerLine",!0,as,!0),mt("workTime",100),mt("workDelay",100),mt("flattenSpans",!0,td,!0),mt("addModeClass",!1,td,!0),mt("pollInterval",100),mt("undoDepth",200,function(pt,bt){return pt.doc.history.undoDepth=bt}),mt("historyEventDelay",1250),mt("viewportMargin",10,function(pt){return pt.refresh()},!0),mt("maxHighlightLength",1e4,td,!0),mt("moveInputWithCursor",!0,function(pt,bt){bt||pt.display.input.resetPosition()}),mt("tabindex",null,function(pt,bt){return pt.display.input.getField().tabIndex=bt||""}),mt("autofocus",null),mt("direction","ltr",function(pt,bt){return pt.doc.setDirection(bt)},!0),mt("phrases",null)}function ff(it,at,mt){var pt=mt&&mt!=Qu;if(!at!=!pt){var bt=it.display.dragFunctions,Xt=at?Ee:on;Xt(it.display.scroller,"dragstart",bt.start),Xt(it.display.scroller,"dragenter",bt.enter),Xt(it.display.scroller,"dragover",bt.over),Xt(it.display.scroller,"dragleave",bt.leave),Xt(it.display.scroller,"drop",bt.drop)}}function om(it){it.options.lineWrapping?(be(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Rt(it.display.wrapper,"CodeMirror-wrap"),Er(it)),or(it),wo(it),Bu(it),setTimeout(function(){return ju(it)},100)}function Hr(it,at){var mt=this;if(!(this instanceof Hr))return new Hr(it,at);this.options=at=at?ze(at):{},ze(Ng,at,!1);var pt=at.value;typeof pt=="string"?pt=new Is(pt,at.mode,null,at.lineSeparator,at.direction):at.mode&&(pt.modeOption=at.mode),this.doc=pt;var bt=new Hr.inputStyles[at.inputStyle](this),Xt=this.display=new Ku(it,pt,bt,at);Xt.wrapper.CodeMirror=this,df(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),rg(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 Jt,keySeq:null,specialChars:null},at.autofocus&&!tt&&Xt.input.focus(),Ot&&jt<11&&setTimeout(function(){return mt.display.input.reset(!0)},20),Lc(this),Ua(),zu(this),this.curOp.forceUpdate=!0,Xd(this,pt),at.autofocus&&!tt||this.hasFocus()?setTimeout(function(){mt.hasFocus()&&!mt.state.focused&&jr(mt)},20):wh(this);for(var ae in gd)gd.hasOwnProperty(ae)&&gd[ae](this,at[ae],Qu);qo(this),at.finishInit&&at.finishInit(this);for(var Se=0;Se<Rh.length;++Se)Rh[Se](this);Wu(this),Ct&&at.lineWrapping&&getComputedStyle(Xt.lineDiv).textRendering=="optimizelegibility"&&(Xt.lineDiv.style.textRendering="auto")}Hr.defaults=Ng,Hr.optionHandlers=gd;function Lc(it){var at=it.display;Ee(at.scroller,"mousedown",ls(it,Fl)),Ot&&jt<11?Ee(at.scroller,"dblclick",ls(it,function(me){if(!qe(it,me)){var Te=$s(it,me);if(!(!Te||hf(it,me)||_o(it.display,me))){Mn(me);var $e=it.findWordAt(Te);$d(it.doc,$e.anchor,$e.head)}}})):Ee(at.scroller,"dblclick",function(me){return qe(it,me)||Mn(me)}),Ee(at.scroller,"contextmenu",function(me){return cf(it,me)}),Ee(at.input.getField(),"contextmenu",function(me){at.scroller.contains(me.target)||cf(it,me)});var mt,pt={end:0};function bt(){at.activeTouch&&(mt=setTimeout(function(){return at.activeTouch=null},1e3),pt=at.activeTouch,pt.end=+new Date)}function Xt(me){if(me.touches.length!=1)return!1;var Te=me.touches[0];return Te.radiusX<=1&&Te.radiusY<=1}function ae(me,Te){if(Te.left==null)return!0;var $e=Te.left-me.left,Be=Te.top-me.top;return $e*$e+Be*Be>20*20}Ee(at.scroller,"touchstart",function(me){if(!qe(it,me)&&!Xt(me)&&!hf(it,me)){at.input.ensurePolled(),clearTimeout(mt);var Te=+new Date;at.activeTouch={start:Te,moved:!1,prev:Te-pt.end<=300?pt:null},me.touches.length==1&&(at.activeTouch.left=me.touches[0].pageX,at.activeTouch.top=me.touches[0].pageY)}}),Ee(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),Ee(at.scroller,"touchend",function(me){var Te=at.activeTouch;if(Te&&!_o(at,me)&&Te.left!=null&&!Te.moved&&new Date-Te.start<300){var $e=it.coordsChar(at.activeTouch,"page"),Be;!Te.prev||ae(Te,Te.prev)?Be=new to($e,$e):!Te.prev.prev||ae(Te,Te.prev.prev)?Be=it.findWordAt($e):Be=new to(tn($e.line,0),In(it.doc,tn($e.line+1,0))),it.setSelection(Be.anchor,Be.head),it.focus(),Mn(me)}bt()}),Ee(at.scroller,"touchcancel",bt),Ee(at.scroller,"scroll",function(){at.scroller.clientHeight&&(Ch(it,at.scroller.scrollTop),fu(it,at.scroller.scrollLeft,!0),nn(it,"scroll",it))}),Ee(at.scroller,"mousewheel",function(me){return xs(it,me)}),Ee(at.scroller,"DOMMouseScroll",function(me){return xs(it,me)}),Ee(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(me){qe(it,me)||oi(me)},over:function(me){qe(it,me)||(Jp(it,me),oi(me))},start:function(me){return Xp(it,me)},drop:ls(it,gg),leave:function(me){qe(it,me)||Qp(it)}};var Se=at.input.getField();Ee(Se,"keyup",function(me){return Ag.call(it,me)}),Ee(Se,"keydown",ls(it,Cg)),Ee(Se,"keypress",ls(it,Nl)),Ee(Se,"focus",function(me){return jr(it,me)}),Ee(Se,"blur",function(me){return wh(it,me)})}var Rh=[];Hr.defineInitHook=function(it){return Rh.push(it)};function us(it,at,mt,pt){var bt=it.doc,Xt;mt==null&&(mt="add"),mt=="smart"&&(bt.mode.indent?Xt=vr(it,at).state:mt="prev");var ae=it.options.tabSize,Se=Bn(bt,at),me=he(Se.text,null,ae);Se.stateAfter&&(Se.stateAfter=null);var Te=Se.text.match(/^\s*/)[0],$e;if(!pt&&!/\S/.test(Se.text))$e=0,mt="not";else if(mt=="smart"&&($e=bt.mode.indent(Xt,Se.text.slice(Te.length),Se.text),$e==pe||$e>150)){if(!pt)return;mt="prev"}mt=="prev"?at>bt.first?$e=he(Bn(bt,at-1).text,null,ae):$e=0:mt=="add"?$e=me+it.options.indentUnit:mt=="subtract"?$e=me-it.options.indentUnit:typeof mt=="number"&&($e=me+mt),$e=Math.max(0,$e);var Be="",un=0;if(it.options.indentWithTabs)for(var ln=Math.floor($e/ae);ln;--ln)un+=ae,Be+=" ";if(un<$e&&(Be+=_e($e-un)),Be!=Te)return Th(bt,Be,tn(at,0),tn(at,Te.length),"+input"),Se.stateAfter=null,!0;for(var Kn=0;Kn<bt.sel.ranges.length;Kn++){var Zn=bt.sel.ranges[Kn];if(Zn.head.line==at&&Zn.head.ch<Te.length){var si=tn(at,Te.length);Zu(bt,Kn,new to(si,si));break}}}var ga=null;function jh(it){ga=it}function pd(it,at,mt,pt,bt){var Xt=it.doc;it.display.shift=!1,pt||(pt=Xt.sel);var ae=+new Date-200,Se=bt=="paste"||it.state.pasteIncoming>ae,me=Gi(at),Te=null;if(Se&&pt.ranges.length>1)if(ga&&ga.text.join(`
|
|
`)==at){if(pt.ranges.length%ga.text.length==0){Te=[];for(var $e=0;$e<ga.text.length;$e++)Te.push(Xt.splitLines(ga.text[$e]))}}else me.length==pt.ranges.length&&it.options.pasteLinesPerSelection&&(Te=Oe(me,function(wi){return[wi]}));for(var Be=it.curOp.updateInput,un=pt.ranges.length-1;un>=0;un--){var ln=pt.ranges[un],Kn=ln.from(),Zn=ln.to();ln.empty()&&(mt&&mt>0?Kn=tn(Kn.line,Kn.ch-mt):it.state.overwrite&&!Se?Zn=tn(Zn.line,Math.min(Bn(Xt,Zn.line).text.length,Zn.ch+Le(me).length)):Se&&ga&&ga.lineWise&&ga.text.join(`
|
|
`)==me.join(`
|
|
`)&&(Kn=Zn=tn(Kn.line,0)));var si={from:Kn,to:Zn,text:Te?Te[un%Te.length]:me,origin:bt||(Se?"paste":it.state.cutIncoming>ae?"cut":"+input")};Xu(it.doc,si),Bi(it,"inputRead",it,si)}at&&!Se&&Dg(it,at),du(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Be),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Fg(it,at){var mt=it.clipboardData&&it.clipboardData.getData("Text");if(mt)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&Yr(at,function(){return pd(at,mt,0,null,"paste")}),!0}function Dg(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var mt=it.doc.sel,pt=mt.ranges.length-1;pt>=0;pt--){var bt=mt.ranges[pt];if(!(bt.head.ch>100||pt&&mt.ranges[pt-1].head.line==bt.head.line)){var Xt=it.getModeAt(bt.head),ae=!1;if(Xt.electricChars){for(var Se=0;Se<Xt.electricChars.length;Se++)if(at.indexOf(Xt.electricChars.charAt(Se))>-1){ae=us(it,bt.head.line,"smart");break}}else Xt.electricInput&&Xt.electricInput.test(Bn(it.doc,bt.head.line).text.slice(0,bt.head.ch))&&(ae=us(it,bt.head.line,"smart"));ae&&Bi(it,"electricInput",it,bt.head.line)}}}function Bg(it){for(var at=[],mt=[],pt=0;pt<it.doc.sel.ranges.length;pt++){var bt=it.doc.sel.ranges[pt].head.line,Xt={anchor:tn(bt,0),head:tn(bt+1,0)};mt.push(Xt),at.push(it.getRange(Xt.anchor,Xt.head))}return{text:at,ranges:mt}}function Og(it,at,mt,pt){it.setAttribute("autocorrect",mt?"":"off"),it.setAttribute("autocapitalize",pt?"":"off"),it.setAttribute("spellcheck",!!at)}function Ig(){var it=qt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=qt("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ct?it.style.width="1000px":it.setAttribute("wrap","off"),yt&&(it.style.border="1px solid black"),Og(it),at}function qu(it){var at=it.optionHandlers,mt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(pt,bt){var Xt=this.options,ae=Xt[pt];Xt[pt]==bt&&pt!="mode"||(Xt[pt]=bt,at.hasOwnProperty(pt)&&ls(this,at[pt])(this,bt,ae),nn(this,"optionChange",this,pt))},getOption:function(pt){return this.options[pt]},getDoc:function(){return this.doc},addKeyMap:function(pt,bt){this.state.keyMaps[bt?"push":"unshift"](Dh(pt))},removeKeyMap:function(pt){for(var bt=this.state.keyMaps,Xt=0;Xt<bt.length;++Xt)if(bt[Xt]==pt||bt[Xt].name==pt)return bt.splice(Xt,1),!0},addOverlay:ms(function(pt,bt){var Xt=pt.token?pt:it.getMode(this.options,pt);if(Xt.startState)throw new Error("Overlays may not be stateful.");He(this.state.overlays,{mode:Xt,modeSpec:pt,opaque:bt&&bt.opaque,priority:bt&&bt.priority||0},function(ae){return ae.priority}),this.state.modeGen++,wo(this)}),removeOverlay:ms(function(pt){for(var bt=this.state.overlays,Xt=0;Xt<bt.length;++Xt){var ae=bt[Xt].modeSpec;if(ae==pt||typeof pt=="string"&&ae.name==pt){bt.splice(Xt,1),this.state.modeGen++,wo(this);return}}}),indentLine:ms(function(pt,bt,Xt){typeof bt!="string"&&typeof bt!="number"&&(bt==null?bt=this.options.smartIndent?"smart":"prev":bt=bt?"add":"subtract"),An(this.doc,pt)&&us(this,pt,bt,Xt)}),indentSelection:ms(function(pt){for(var bt=this.doc.sel.ranges,Xt=-1,ae=0;ae<bt.length;ae++){var Se=bt[ae];if(Se.empty())Se.head.line>Xt&&(us(this,Se.head.line,pt,!0),Xt=Se.head.line,ae==this.doc.sel.primIndex&&du(this));else{var me=Se.from(),Te=Se.to(),$e=Math.max(Xt,me.line);Xt=Math.min(this.lastLine(),Te.line-(Te.ch?0:1))+1;for(var Be=$e;Be<Xt;++Be)us(this,Be,pt);var un=this.doc.sel.ranges;me.ch==0&&bt.length==un.length&&un[ae].from().ch>0&&Zu(this.doc,ae,new to(me,un[ae].to()),ue)}}}),getTokenAt:function(pt,bt){return ri(this,pt,bt)},getLineTokens:function(pt,bt){return ri(this,tn(pt),bt,!0)},getTokenTypeAt:function(pt){pt=In(this.doc,pt);var bt=Xi(this,Bn(this.doc,pt.line)),Xt=0,ae=(bt.length-1)/2,Se=pt.ch,me;if(Se==0)me=bt[2];else for(;;){var Te=Xt+ae>>1;if((Te?bt[Te*2-1]:0)>=Se)ae=Te;else if(bt[Te*2+1]<Se)Xt=Te+1;else{me=bt[Te*2+2];break}}var $e=me?me.indexOf("overlay "):-1;return $e<0?me:$e==0?null:me.slice(0,$e-1)},getModeAt:function(pt){var bt=this.doc.mode;return bt.innerMode?it.innerMode(bt,this.getTokenAt(pt).state).mode:bt},getHelper:function(pt,bt){return this.getHelpers(pt,bt)[0]},getHelpers:function(pt,bt){var Xt=[];if(!mt.hasOwnProperty(bt))return Xt;var ae=mt[bt],Se=this.getModeAt(pt);if(typeof Se[bt]=="string")ae[Se[bt]]&&Xt.push(ae[Se[bt]]);else if(Se[bt])for(var me=0;me<Se[bt].length;me++){var Te=ae[Se[bt][me]];Te&&Xt.push(Te)}else Se.helperType&&ae[Se.helperType]?Xt.push(ae[Se.helperType]):ae[Se.name]&&Xt.push(ae[Se.name]);for(var $e=0;$e<ae._global.length;$e++){var Be=ae._global[$e];Be.pred(Se,this)&&re(Xt,Be.val)==-1&&Xt.push(Be.val)}return Xt},getStateAfter:function(pt,bt){var Xt=this.doc;return pt=jn(Xt,pt==null?Xt.first+Xt.size-1:pt),vr(this,pt+1,bt).state},cursorCoords:function(pt,bt){var Xt,ae=this.doc.sel.primary();return pt==null?Xt=ae.head:typeof pt=="object"?Xt=In(this.doc,pt):Xt=pt?ae.from():ae.to(),co(this,Xt,bt||"page")},charCoords:function(pt,bt){return Ou(this,In(this.doc,pt),bt||"page")},coordsChar:function(pt,bt){return pt=cc(this,pt,bt||"page"),Os(this,pt.left,pt.top)},lineAtHeight:function(pt,bt){return pt=cc(this,{top:pt,left:0},bt||"page").top,je(this.doc,pt+this.display.viewOffset)},heightAtLine:function(pt,bt,Xt){var ae=!1,Se;if(typeof pt=="number"){var me=this.doc.first+this.doc.size-1;pt<this.doc.first?pt=this.doc.first:pt>me&&(pt=me,ae=!0),Se=Bn(this.doc,pt)}else Se=pt;return ss(this,Se,{top:0,left:0},bt||"page",Xt||ae).top+(ae?this.doc.height-pr(Se):0)},defaultTextHeight:function(){return Qs(this.display)},defaultCharWidth:function(){return gl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(pt,bt,Xt,ae,Se){var me=this.display;pt=co(this,In(this.doc,pt));var Te=pt.bottom,$e=pt.left;if(bt.style.position="absolute",bt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(bt),me.sizer.appendChild(bt),ae=="over")Te=pt.top;else if(ae=="above"||ae=="near"){var Be=Math.max(me.wrapper.clientHeight,this.doc.height),un=Math.max(me.sizer.clientWidth,me.lineSpace.clientWidth);(ae=="above"||pt.bottom+bt.offsetHeight>Be)&&pt.top>bt.offsetHeight?Te=pt.top-bt.offsetHeight:pt.bottom+bt.offsetHeight<=Be&&(Te=pt.bottom),$e+bt.offsetWidth>un&&($e=un-bt.offsetWidth)}bt.style.top=Te+"px",bt.style.left=bt.style.right="",Se=="right"?($e=me.sizer.clientWidth-bt.offsetWidth,bt.style.right="0px"):(Se=="left"?$e=0:Se=="middle"&&($e=(me.sizer.clientWidth-bt.offsetWidth)/2),bt.style.left=$e+"px"),Xt&&Qc(this,{left:$e,top:Te,right:$e+bt.offsetWidth,bottom:Te+bt.offsetHeight})},triggerOnKeyDown:ms(Cg),triggerOnKeyPress:ms(Nl),triggerOnKeyUp:Ag,triggerOnMouseDown:ms(Fl),execCommand:function(pt){if(Ju.hasOwnProperty(pt))return Ju[pt].call(null,this)},triggerElectric:ms(function(pt){Dg(this,pt)}),findPosH:function(pt,bt,Xt,ae){var Se=1;bt<0&&(Se=-1,bt=-bt);for(var me=In(this.doc,pt),Te=0;Te<bt&&(me=md(this.doc,me,Se,Xt,ae),!me.hitSide);++Te);return me},moveH:ms(function(pt,bt){var Xt=this;this.extendSelectionsBy(function(ae){return Xt.display.shift||Xt.doc.extend||ae.empty()?md(Xt.doc,ae.head,pt,bt,Xt.options.rtlMoveVisually):pt<0?ae.from():ae.to()},Fe)}),deleteH:ms(function(pt,bt){var Xt=this.doc.sel,ae=this.doc;Xt.somethingSelected()?ae.replaceSelection("",null,"+delete"):Ea(this,function(Se){var me=md(ae,Se.head,pt,bt,!1);return pt<0?{from:me,to:Se.head}:{from:Se.head,to:me}})}),findPosV:function(pt,bt,Xt,ae){var Se=1,me=ae;bt<0&&(Se=-1,bt=-bt);for(var Te=In(this.doc,pt),$e=0;$e<bt;++$e){var Be=co(this,Te,"div");if(me==null?me=Be.left:Be.left=me,Te=$u(this,Be,Se,Xt),Te.hitSide)break}return Te},moveV:ms(function(pt,bt){var Xt=this,ae=this.doc,Se=[],me=!this.display.shift&&!ae.extend&&ae.sel.somethingSelected();if(ae.extendSelectionsBy(function($e){if(me)return pt<0?$e.from():$e.to();var Be=co(Xt,$e.head,"div");$e.goalColumn!=null&&(Be.left=$e.goalColumn),Se.push(Be.left);var un=$u(Xt,Be,pt,bt);return bt=="page"&&$e==ae.sel.primary()&&_d(Xt,Ou(Xt,un,"div").top-Be.top),un},Fe),Se.length)for(var Te=0;Te<ae.sel.ranges.length;Te++)ae.sel.ranges[Te].goalColumn=Se[Te]}),findWordAt:function(pt){var bt=this.doc,Xt=Bn(bt,pt.line).text,ae=pt.ch,Se=pt.ch;if(Xt){var me=this.getHelper(pt,"wordChars");(pt.sticky=="before"||Se==Xt.length)&&ae?--ae:++Se;for(var Te=Xt.charAt(ae),$e=oe(Te,me)?function(Be){return oe(Be,me)}:/\s/.test(Te)?function(Be){return/\s/.test(Be)}:function(Be){return!/\s/.test(Be)&&!oe(Be)};ae>0&&$e(Xt.charAt(ae-1));)--ae;for(;Se<Xt.length&&$e(Xt.charAt(Se));)++Se}return new to(tn(pt.line,ae),tn(pt.line,Se))},toggleOverwrite:function(pt){pt!=null&&pt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?be(this.display.cursorDiv,"CodeMirror-overwrite"):Rt(this.display.cursorDiv,"CodeMirror-overwrite"),nn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ge()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ms(function(pt,bt){Ph(this,pt,bt)}),getScrollInfo:function(){var pt=this.display.scroller;return{left:pt.scrollLeft,top:pt.scrollTop,height:pt.scrollHeight-Ds(this)-this.display.barHeight,width:pt.scrollWidth-Ds(this)-this.display.barWidth,clientHeight:kl(this),clientWidth:ba(this)}},scrollIntoView:ms(function(pt,bt){pt==null?(pt={from:this.doc.sel.primary().head,to:null},bt==null&&(bt=this.options.cursorScrollMargin)):typeof pt=="number"?pt={from:tn(pt,0),to:null}:pt.from==null&&(pt={from:pt,to:null}),pt.to||(pt.to=pt.from),pt.margin=bt||0,pt.from.line!=null?zr(this,pt):Hd(this,pt.from,pt.to,pt.margin)}),setSize:ms(function(pt,bt){var Xt=this,ae=function(me){return typeof me=="number"||/^\d+$/.test(String(me))?me+"px":me};pt!=null&&(this.display.wrapper.style.width=ae(pt)),bt!=null&&(this.display.wrapper.style.height=ae(bt)),this.options.lineWrapping&&Du(this);var Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(me){if(me.widgets){for(var Te=0;Te<me.widgets.length;Te++)if(me.widgets[Te].noHScroll){Ar(Xt,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,nn(this,"refresh",this)}),operation:function(pt){return Yr(this,pt)},startOperation:function(){return zu(this)},endOperation:function(){return Wu(this)},refresh:ms(function(){var pt=this.display.cachedTextHeight;wo(this),this.curOp.forceUpdate=!0,Bu(this),Ph(this,this.doc.scrollLeft,this.doc.scrollTop),_u(this.display),(pt==null||Math.abs(pt-Qs(this.display))>.5||this.options.lineWrapping)&&or(this),nn(this,"refresh",this)}),swapDoc:ms(function(pt){var bt=this.doc;return bt.cm=null,this.state.selectingText&&this.state.selectingText(),Xd(this,pt),Bu(this),this.display.input.reset(),Ph(this,pt.scrollLeft,pt.scrollTop),this.curOp.forceScroll=!0,Bi(this,"swapDoc",this,bt),bt}),phrase:function(pt){var bt=this.options.phrases;return bt&&Object.prototype.hasOwnProperty.call(bt,pt)?bt[pt]:pt},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}},Pn(it),it.registerHelper=function(pt,bt,Xt){mt.hasOwnProperty(pt)||(mt[pt]=it[pt]={_global:[]}),mt[pt][bt]=Xt},it.registerGlobalHelper=function(pt,bt,Xt,ae){it.registerHelper(pt,bt,ae),mt[pt]._global.push({pred:Xt,val:ae})}}function md(it,at,mt,pt,bt){var Xt=at,ae=mt,Se=Bn(it,at.line),me=bt&&it.direction=="rtl"?-mt:mt;function Te(){var Vi=at.line+me;return Vi<it.first||Vi>=it.first+it.size?!1:(at=new tn(Vi,at.ch,at.sticky),Se=Bn(it,Vi))}function $e(Vi){var Ni;if(pt=="codepoint"){var $i=Se.text.charCodeAt(at.ch+(pt>0?0:-1));isNaN($i)?Ni=null:Ni=new tn(at.line,Math.max(0,Math.min(Se.text.length,at.ch+mt*($i>=55296&&$i<56320?2:1))),-mt)}else bt?Ni=rf(it.cm,Se,at,mt):Ni=Yo(Se,at,mt);if(Ni==null)if(!Vi&&Te())at=fd(bt,it.cm,Se,at.line,me);else return!1;else at=Ni;return!0}if(pt=="char"||pt=="codepoint")$e();else if(pt=="column")$e(!0);else if(pt=="word"||pt=="group")for(var Be=null,un=pt=="group",ln=it.cm&&it.cm.getHelper(at,"wordChars"),Kn=!0;!(mt<0&&!$e(!Kn));Kn=!1){var Zn=Se.text.charAt(at.ch)||`
|
|
`,si=oe(Zn,ln)?"w":un&&Zn==`
|
|
`?"n":!un||/\s/.test(Zn)?null:"p";if(un&&!Kn&&!si&&(si="s"),Be&&Be!=si){mt<0&&(mt=1,$e(),at.sticky="after");break}if(si&&(Be=si),mt>0&&!$e(!Kn))break}var wi=ad(it,at,Xt,ae,!0);return xn(Xt,wi)&&(wi.hitSide=!0),wi}function $u(it,at,mt,pt){var bt=it.doc,Xt=at.left,ae;if(pt=="page"){var Se=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),me=Math.max(Se-.5*Qs(it.display),3);ae=(mt>0?at.bottom:at.top)+mt*me}else pt=="line"&&(ae=mt>0?at.bottom+3:at.top-3);for(var Te;Te=Os(it,Xt,ae),!!Te.outside;){if(mt<0?ae<=0:ae>=bt.height){Te.hitSide=!0;break}ae+=mt*5}return Te}var ao=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Jt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ao.prototype.init=function(it){var at=this,mt=this,pt=mt.cm,bt=mt.div=it.lineDiv;Og(bt,pt.options.spellcheck,pt.options.autocorrect,pt.options.autocapitalize);function Xt(Se){for(var me=Se.target;me;me=me.parentNode){if(me==bt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(me.className))break}return!1}Ee(bt,"paste",function(Se){!Xt(Se)||qe(pt,Se)||Fg(Se,pt)||jt<=11&&setTimeout(ls(pt,function(){return at.updateFromDOM()}),20)}),Ee(bt,"compositionstart",function(Se){at.composing={data:Se.data,done:!1}}),Ee(bt,"compositionupdate",function(Se){at.composing||(at.composing={data:Se.data,done:!1})}),Ee(bt,"compositionend",function(Se){at.composing&&(Se.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),Ee(bt,"touchstart",function(){return mt.forceCompositionEnd()}),Ee(bt,"input",function(){at.composing||at.readFromDOMSoon()});function ae(Se){if(!(!Xt(Se)||qe(pt,Se))){if(pt.somethingSelected())jh({lineWise:!1,text:pt.getSelections()}),Se.type=="cut"&&pt.replaceSelection("",null,"cut");else if(pt.options.lineWiseCopyCut){var me=Bg(pt);jh({lineWise:!0,text:me.text}),Se.type=="cut"&&pt.operation(function(){pt.setSelections(me.ranges,0,ue),pt.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Te=ga.text.join(`
|
|
`);if(Se.clipboardData.setData("Text",Te),Se.clipboardData.getData("Text")==Te){Se.preventDefault();return}}var $e=Ig(),Be=$e.firstChild;pt.display.lineSpace.insertBefore($e,pt.display.lineSpace.firstChild),Be.value=ga.text.join(`
|
|
`);var un=document.activeElement;Ge(Be),setTimeout(function(){pt.display.lineSpace.removeChild($e),un.focus(),un==bt&&mt.showPrimarySelection()},50)}}Ee(bt,"copy",ae),Ee(bt,"cut",ae)},ao.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ao.prototype.prepareSelection=function(){var it=Iu(this.cm,!1);return it.focus=document.activeElement==this.div,it},ao.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ao.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ao.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,mt=at.doc.sel.primary(),pt=mt.from(),bt=mt.to();if(at.display.viewTo==at.display.viewFrom||pt.line>=at.display.viewTo||bt.line<at.display.viewFrom){it.removeAllRanges();return}var Xt=vd(at,it.anchorNode,it.anchorOffset),ae=vd(at,it.focusNode,it.focusOffset);if(!(Xt&&!Xt.bad&&ae&&!ae.bad&&yn(Fn(Xt,ae),pt)==0&&yn(Wn(Xt,ae),bt)==0)){var Se=at.display.view,me=pt.line>=at.display.viewFrom&&gf(at,pt)||{node:Se[0].measure.map[2],offset:0},Te=bt.line<at.display.viewTo&&gf(at,bt);if(!Te){var $e=Se[Se.length-1].measure,Be=$e.maps?$e.maps[$e.maps.length-1]:$e.map;Te={node:Be[Be.length-1],offset:Be[Be.length-2]-Be[Be.length-3]}}if(!me||!Te){it.removeAllRanges();return}var un=it.rangeCount&&it.getRangeAt(0),ln;try{ln=Vt(me.node,me.offset,Te.offset,Te.node)}catch(Kn){}ln&&(!ee&&at.state.focused?(it.collapse(me.node,me.offset),ln.collapsed||(it.removeAllRanges(),it.addRange(ln))):(it.removeAllRanges(),it.addRange(ln)),un&&it.anchorNode==null?it.addRange(un):ee&&this.startGracePeriod()),this.rememberSelection()}},ao.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},ao.prototype.showMultipleSelections=function(it){Nt(this.cm.display.cursorDiv,it.cursors),Nt(this.cm.display.selectionDiv,it.selection)},ao.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ao.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return de(this.div,at)},ao.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ao.prototype.blur=function(){this.div.blur()},ao.prototype.getField=function(){return this.div},ao.prototype.supportsTouch=function(){return!0},ao.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():Yr(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function at(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,at))}this.polling.set(this.cm.options.pollInterval,at)},ao.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ao.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(et&&Bt&&this.cm.display.gutterSpecs.length&&Rg(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var mt=vd(at,it.anchorNode,it.anchorOffset),pt=vd(at,it.focusNode,it.focusOffset);mt&&pt&&Yr(at,function(){_s(at.doc,gu(mt,pt),ue),(mt.bad||pt.bad)&&(at.curOp.selectionChanged=!0)})}}},ao.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,mt=it.doc.sel.primary(),pt=mt.from(),bt=mt.to();if(pt.ch==0&&pt.line>it.firstLine()&&(pt=tn(pt.line-1,Bn(it.doc,pt.line-1).length)),bt.ch==Bn(it.doc,bt.line).text.length&&bt.line<it.lastLine()&&(bt=tn(bt.line+1,0)),pt.line<at.viewFrom||bt.line>at.viewTo-1)return!1;var Xt,ae,Se;pt.line==at.viewFrom||(Xt=za(it,pt.line))==0?(ae=we(at.view[0].line),Se=at.view[0].node):(ae=we(at.view[Xt].line),Se=at.view[Xt-1].node.nextSibling);var me=za(it,bt.line),Te,$e;if(me==at.view.length-1?(Te=at.viewTo-1,$e=at.lineDiv.lastChild):(Te=we(at.view[me+1].line)-1,$e=at.view[me+1].node.previousSibling),!Se)return!1;for(var Be=it.doc.splitLines(Ec(it,Se,$e,ae,Te)),un=hi(it.doc,tn(ae,0),tn(Te,Bn(it.doc,Te).text.length));Be.length>1&&un.length>1;)if(Le(Be)==Le(un))Be.pop(),un.pop(),Te--;else if(Be[0]==un[0])Be.shift(),un.shift(),ae++;else break;for(var ln=0,Kn=0,Zn=Be[0],si=un[0],wi=Math.min(Zn.length,si.length);ln<wi&&Zn.charCodeAt(ln)==si.charCodeAt(ln);)++ln;for(var Vi=Le(Be),Ni=Le(un),$i=Math.min(Vi.length-(Be.length==1?ln:0),Ni.length-(un.length==1?ln:0));Kn<$i&&Vi.charCodeAt(Vi.length-Kn-1)==Ni.charCodeAt(Ni.length-Kn-1);)++Kn;if(Be.length==1&&un.length==1&&ae==pt.line)for(;ln&&ln>pt.ch&&Vi.charCodeAt(Vi.length-Kn-1)==Ni.charCodeAt(Ni.length-Kn-1);)ln--,Kn++;Be[Be.length-1]=Vi.slice(0,Vi.length-Kn).replace(/^\u200b+/,""),Be[0]=Be[0].slice(ln).replace(/\u200b+$/,"");var mr=tn(ae,ln),Mi=tn(Te,un.length?Le(un).length-Kn:0);if(Be.length>1||Be[0]||yn(mr,Mi))return Th(it.doc,Be,mr,Mi,"+input"),!0},ao.prototype.ensurePolled=function(){this.forceCompositionEnd()},ao.prototype.reset=function(){this.forceCompositionEnd()},ao.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ao.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},ao.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Yr(this.cm,function(){return wo(it.cm)})},ao.prototype.setUneditable=function(it){it.contentEditable="false"},ao.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||ls(this.cm,pd)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ao.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ao.prototype.onContextMenu=function(){},ao.prototype.resetPosition=function(){},ao.prototype.needsContentAttribute=!0;function gf(it,at){var mt=fl(it,at.line);if(!mt||mt.hidden)return null;var pt=Bn(it.doc,at.line),bt=Fu(mt,pt,at.line),Xt=Ue(pt,it.doc.direction),ae="left";if(Xt){var Se=le(Xt,at.ch);ae=Se%2?"right":"left"}var me=uc(bt.map,at.ch,ae);return me.offset=me.collapse=="right"?me.end:me.start,me}function Rg(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function kc(it,at){return at&&(it.bad=!0),it}function Ec(it,at,mt,pt,bt){var Xt="",ae=!1,Se=it.doc.lineSeparator(),me=!1;function Te(ln){return function(Kn){return Kn.id==ln}}function $e(){ae&&(Xt+=Se,me&&(Xt+=Se),ae=me=!1)}function Be(ln){ln&&($e(),Xt+=ln)}function un(ln){if(ln.nodeType==1){var Kn=ln.getAttribute("cm-text");if(Kn){Be(Kn);return}var Zn=ln.getAttribute("cm-marker"),si;if(Zn){var wi=it.findMarks(tn(pt,0),tn(bt+1,0),Te(+Zn));wi.length&&(si=wi[0].find(0))&&Be(hi(it.doc,si.from,si.to).join(Se));return}if(ln.getAttribute("contenteditable")=="false")return;var Vi=/^(pre|div|p|li|table|br)$/i.test(ln.nodeName);if(!/^br$/i.test(ln.nodeName)&&ln.textContent.length==0)return;Vi&&$e();for(var Ni=0;Ni<ln.childNodes.length;Ni++)un(ln.childNodes[Ni]);/^(pre|p)$/i.test(ln.nodeName)&&(me=!0),Vi&&(ae=!0)}else ln.nodeType==3&&Be(ln.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;un(at),at!=mt;)at=at.nextSibling,me=!1;return Xt}function vd(it,at,mt){var pt;if(at==it.display.lineDiv){if(pt=it.display.lineDiv.childNodes[mt],!pt)return kc(it.clipPos(tn(it.display.viewTo-1)),!0);at=null,mt=0}else for(pt=at;;pt=pt.parentNode){if(!pt||pt==it.display.lineDiv)return null;if(pt.parentNode&&pt.parentNode==it.display.lineDiv)break}for(var bt=0;bt<it.display.view.length;bt++){var Xt=it.display.view[bt];if(Xt.node==pt)return sm(Xt,at,mt)}}function sm(it,at,mt){var pt=it.text.firstChild,bt=!1;if(!at||!de(pt,at))return kc(tn(we(it.line),0),!0);if(at==pt&&(bt=!0,at=pt.childNodes[mt],mt=0,!at)){var Xt=it.rest?Le(it.rest):it.line;return kc(tn(we(Xt),Xt.text.length),bt)}var ae=at.nodeType==3?at:null,Se=at;for(!ae&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(ae=at.firstChild,mt&&(mt=ae.nodeValue.length));Se.parentNode!=pt;)Se=Se.parentNode;var me=it.measure,Te=me.maps;function $e(si,wi,Vi){for(var Ni=-1;Ni<(Te?Te.length:0);Ni++)for(var $i=Ni<0?me.map:Te[Ni],mr=0;mr<$i.length;mr+=3){var Mi=$i[mr+2];if(Mi==si||Mi==wi){var kr=we(Ni<0?it.line:it.rest[Ni]),Po=$i[mr]+Vi;return(Vi<0||Mi!=si)&&(Po=$i[mr+(Vi?1:0)]),tn(kr,Po)}}}var Be=$e(ae,Se,mt);if(Be)return kc(Be,bt);for(var un=Se.nextSibling,ln=ae?ae.nodeValue.length-mt:0;un;un=un.nextSibling){if(Be=$e(un,un.firstChild,0),Be)return kc(tn(Be.line,Be.ch-ln),bt);ln+=un.textContent.length}for(var Kn=Se.previousSibling,Zn=mt;Kn;Kn=Kn.previousSibling){if(Be=$e(Kn,Kn.firstChild,-1),Be)return kc(tn(Be.line,Be.ch+Zn),bt);Zn+=Kn.textContent.length}}var $o=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Jt,this.hasSelection=!1,this.composing=null};$o.prototype.init=function(it){var at=this,mt=this,pt=this.cm;this.createField(it);var bt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),yt&&(bt.style.width="0px"),Ee(bt,"input",function(){Ot&&jt>=9&&at.hasSelection&&(at.hasSelection=null),mt.poll()}),Ee(bt,"paste",function(ae){qe(pt,ae)||Fg(ae,pt)||(pt.state.pasteIncoming=+new Date,mt.fastPoll())});function Xt(ae){if(!qe(pt,ae)){if(pt.somethingSelected())jh({lineWise:!1,text:pt.getSelections()});else if(pt.options.lineWiseCopyCut){var Se=Bg(pt);jh({lineWise:!0,text:Se.text}),ae.type=="cut"?pt.setSelections(Se.ranges,null,ue):(mt.prevInput="",bt.value=Se.text.join(`
|
|
`),Ge(bt))}else return;ae.type=="cut"&&(pt.state.cutIncoming=+new Date)}}Ee(bt,"cut",Xt),Ee(bt,"copy",Xt),Ee(it.scroller,"paste",function(ae){if(!(_o(it,ae)||qe(pt,ae))){if(!bt.dispatchEvent){pt.state.pasteIncoming=+new Date,mt.focus();return}var Se=new Event("paste");Se.clipboardData=ae.clipboardData,bt.dispatchEvent(Se)}}),Ee(it.lineSpace,"selectstart",function(ae){_o(it,ae)||Mn(ae)}),Ee(bt,"compositionstart",function(){var ae=pt.getCursor("from");mt.composing&&mt.composing.range.clear(),mt.composing={start:ae,range:pt.markText(ae,pt.getCursor("to"),{className:"CodeMirror-composing"})}}),Ee(bt,"compositionend",function(){mt.composing&&(mt.poll(),mt.composing.range.clear(),mt.composing=null)})},$o.prototype.createField=function(it){this.wrapper=Ig(),this.textarea=this.wrapper.firstChild},$o.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},$o.prototype.prepareSelection=function(){var it=this.cm,at=it.display,mt=it.doc,pt=Iu(it);if(it.options.moveInputWithCursor){var bt=co(it,mt.sel.primary().head,"div"),Xt=at.wrapper.getBoundingClientRect(),ae=at.lineDiv.getBoundingClientRect();pt.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,bt.top+ae.top-Xt.top)),pt.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,bt.left+ae.left-Xt.left))}return pt},$o.prototype.showSelection=function(it){var at=this.cm,mt=at.display;Nt(mt.cursorDiv,it.cursors),Nt(mt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},$o.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var mt=at.getSelection();this.textarea.value=mt,at.state.focused&&Ge(this.textarea),Ot&&jt>=9&&(this.hasSelection=mt)}else it||(this.prevInput=this.textarea.value="",Ot&&jt>=9&&(this.hasSelection=null))}},$o.prototype.getField=function(){return this.textarea},$o.prototype.supportsTouch=function(){return!1},$o.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||ge()!=this.textarea))try{this.textarea.focus()}catch(it){}},$o.prototype.blur=function(){this.textarea.blur()},$o.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$o.prototype.receivedFocus=function(){this.slowPoll()},$o.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},$o.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function mt(){var pt=at.poll();!pt&&!it?(it=!0,at.polling.set(60,mt)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,mt)},$o.prototype.poll=function(){var it=this,at=this.cm,mt=this.textarea,pt=this.prevInput;if(this.contextMenuPending||!at.state.focused||Kt(mt)&&!pt&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var bt=mt.value;if(bt==pt&&!at.somethingSelected())return!1;if(Ot&&jt>=9&&this.hasSelection===bt||lt&&/[\uf700-\uf7ff]/.test(bt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var Xt=bt.charCodeAt(0);if(Xt==8203&&!pt&&(pt="\u200B"),Xt==8666)return this.reset(),this.cm.execCommand("undo")}for(var ae=0,Se=Math.min(pt.length,bt.length);ae<Se&&pt.charCodeAt(ae)==bt.charCodeAt(ae);)++ae;return Yr(at,function(){pd(at,bt.slice(ae),pt.length-ae,null,it.composing?"*compose":null),bt.length>1e3||bt.indexOf(`
|
|
`)>-1?mt.value=it.prevInput="":it.prevInput=bt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$o.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$o.prototype.onKeyPress=function(){Ot&&jt>=9&&(this.hasSelection=null),this.fastPoll()},$o.prototype.onContextMenu=function(it){var at=this,mt=at.cm,pt=mt.display,bt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var Xt=$s(mt,it),ae=pt.scroller.scrollTop;if(!Xt||St)return;var Se=mt.options.resetSelectionOnContextMenu;Se&&mt.doc.sel.contains(Xt)==-1&&ls(mt,_s)(mt.doc,gu(Xt),ue);var me=bt.style.cssText,Te=at.wrapper.style.cssText,$e=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",bt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-$e.top-5)+"px; left: "+(it.clientX-$e.left-5)+`px;
|
|
z-index: 1000; background: `+(Ot?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Be;Ct&&(Be=window.scrollY),pt.input.focus(),Ct&&window.scrollTo(null,Be),pt.input.reset(),mt.somethingSelected()||(bt.value=at.prevInput=" "),at.contextMenuPending=ln,pt.selForContextMenu=mt.doc.sel,clearTimeout(pt.detectingSelectAll);function un(){if(bt.selectionStart!=null){var Zn=mt.somethingSelected(),si="\u200B"+(Zn?bt.value:"");bt.value="\u21DA",bt.value=si,at.prevInput=Zn?"":"\u200B",bt.selectionStart=1,bt.selectionEnd=si.length,pt.selForContextMenu=mt.doc.sel}}function ln(){if(at.contextMenuPending==ln&&(at.contextMenuPending=!1,at.wrapper.style.cssText=Te,bt.style.cssText=me,Ot&&jt<9&&pt.scrollbars.setScrollTop(pt.scroller.scrollTop=ae),bt.selectionStart!=null)){(!Ot||Ot&&jt<9)&&un();var Zn=0,si=function(){pt.selForContextMenu==mt.doc.sel&&bt.selectionStart==0&&bt.selectionEnd>0&&at.prevInput=="\u200B"?ls(mt,Vo)(mt):Zn++<10?pt.detectingSelectAll=setTimeout(si,500):(pt.selForContextMenu=null,pt.input.reset())};pt.detectingSelectAll=setTimeout(si,200)}}if(Ot&&jt>=9&&un(),gt){oi(it);var Kn=function(){on(window,"mouseup",Kn),setTimeout(ln,20)};Ee(window,"mouseup",Kn)}else setTimeout(ln,50)},$o.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},$o.prototype.setUneditable=function(){},$o.prototype.needsContentAttribute=!1;function am(it,at){if(at=at?ze(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var mt=ge();at.autofocus=mt==it||it.getAttribute("autofocus")!=null&&mt==document.body}function pt(){it.value=Se.getValue()}var bt;if(it.form&&(Ee(it.form,"submit",pt),!at.leaveSubmitMethodAlone)){var Xt=it.form;bt=Xt.submit;try{var ae=Xt.submit=function(){pt(),Xt.submit=bt,Xt.submit(),Xt.submit=ae}}catch(me){}}at.finishInit=function(me){me.save=pt,me.getTextArea=function(){return it},me.toTextArea=function(){me.toTextArea=isNaN,pt(),it.parentNode.removeChild(me.getWrapperElement()),it.style.display="",it.form&&(on(it.form,"submit",pt),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=bt))}},it.style.display="none";var Se=Hr(function(me){return it.parentNode.insertBefore(me,it.nextSibling)},at);return Se}function Mc(it){it.off=on,it.on=Ee,it.wheelEventPixels=Ga,it.Doc=Is,it.splitLines=Gi,it.countColumn=he,it.findColumn=Qe,it.isWordChar=Yt,it.Pass=pe,it.signal=nn,it.Line=Jr,it.changeEnd=Vu,it.scrollbarModel=ig,it.Pos=tn,it.cmpPos=yn,it.modes=_n,it.mimeModes=Yn,it.resolveMode=ki,it.getMode=Xe,it.modeExtensions=Je,it.extendMode=Ke,it.copyState=Hn,it.startState=qn,it.innerMode=Jn,it.commands=Ju,it.keyMap=ka,it.keyName=$p,it.isModifierKey=wc,it.lookupKey=il,it.normalizeKeyMap=yg,it.StringStream=pn,it.SharedTextMarker=Vl,it.TextMarker=Ye,it.LineWidget=vu,it.e_preventDefault=Mn,it.e_stopPropagation=ii,it.e_stop=oi,it.addClass=be,it.contains=de,it.rmClass=Rt,it.keyNames=Yl}rm(Hr),qu(Hr);var yu="iter insert remove copy getEditor constructor".split(" ");for(var yd in Is.prototype)Is.prototype.hasOwnProperty(yd)&&re(yu,yd)<0&&(Hr.prototype[yd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Is.prototype[yd]));return Pn(Is),Hr.inputStyles={textarea:$o,contenteditable:ao},Hr.defineMode=function(it){!Hr.defaults.mode&&it!="null"&&(Hr.defaults.mode=it),Xn.apply(this,arguments)},Hr.defineMIME=Ri,Hr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Hr.defineMIME("text/plain","null"),Hr.defineExtension=function(it,at){Hr.prototype[it]=at},Hr.defineDocExtension=function(it,at){Is.prototype[it]=at},Hr.fromTextArea=am,Mc(Hr),Hr.version="5.58.2",Hr})},25419:function(Cn,Gn,ce){(function(ee){ee(ce(89780),ce(15525),ce(98101))})(function(ee){"use strict";ee.defineMode("markdown",function(wt,Qt){var Zt=ee.getMode(wt,"text/html"),Ot=Zt.name=="null";function jt(he){if(ee.findModeByName){var Jt=ee.findModeByName(he);Jt&&(he=Jt.mime||Jt.mimes[0])}var re=ee.getMode(wt,he);return re.name=="null"?null:re}Qt.highlightFormatting===void 0&&(Qt.highlightFormatting=!1),Qt.maxBlockquoteDepth===void 0&&(Qt.maxBlockquoteDepth=0),Qt.taskLists===void 0&&(Qt.taskLists=!1),Qt.strikethrough===void 0&&(Qt.strikethrough=!1),Qt.emoji===void 0&&(Qt.emoji=!1),Qt.fencedCodeBlockHighlighting===void 0&&(Qt.fencedCodeBlockHighlighting=!0),Qt.fencedCodeBlockDefaultMode===void 0&&(Qt.fencedCodeBlockDefaultMode="text/plain"),Qt.xml===void 0&&(Qt.xml=!0),Qt.tokenTypeOverrides===void 0&&(Qt.tokenTypeOverrides={});var Ct={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 Mt in Ct)Ct.hasOwnProperty(Mt)&&Qt.tokenTypeOverrides[Mt]&&(Ct[Mt]=Qt.tokenTypeOverrides[Mt]);var Bt=/^([*\-_])(?:\s*\1){2,}\s*$/,St=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,kt=/^\[(x| )\](?=\s)/i,xt=Qt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,yt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,lt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ot=" ";function ut(he,Jt,re){return Jt.f=Jt.inline=re,re(he,Jt)}function ct(he,Jt,re){return Jt.f=Jt.block=re,re(he,Jt)}function ft(he){return!he||!/\S/.test(he.string)}function gt(he){if(he.linkTitle=!1,he.linkHref=!1,he.linkText=!1,he.em=!1,he.strong=!1,he.strikethrough=!1,he.quote=0,he.indentedCode=!1,he.f==Rt){var Jt=Ot;if(!Jt){var re=ee.innerMode(Zt,he.htmlState);Jt=re.mode.name=="xml"&&re.state.tagStart===null&&!re.state.context&&re.state.tokenize.isInText}Jt&&(he.f=te,he.block=Lt,he.htmlState=null)}return he.trailingSpace=0,he.trailingSpaceNewLine=!1,he.prevLine=he.thisLine,he.thisLine={stream:null},null}function Lt(he,Jt){var re=he.column()===Jt.indentation,se=ft(Jt.prevLine.stream),pe=Jt.indentedCode,ue=Jt.prevLine.hr,Re=Jt.list!==!1,Fe=(Jt.listStack[Jt.listStack.length-1]||0)+3;Jt.indentedCode=!1;var Qe=Jt.indentation;if(Jt.indentationDiff===null&&(Jt.indentationDiff=Jt.indentation,Re)){for(Jt.list=null;Qe<Jt.listStack[Jt.listStack.length-1];)Jt.listStack.pop(),Jt.listStack.length?Jt.indentation=Jt.listStack[Jt.listStack.length-1]:Jt.list=!1;Jt.list!==!1&&(Jt.indentationDiff=Qe-Jt.listStack[Jt.listStack.length-1])}var Ae=!se&&!ue&&!Jt.prevLine.header&&(!Re||!pe)&&!Jt.prevLine.fencedCodeEnd,_e=(Jt.list===!1||ue||se)&&Jt.indentation<=Fe&&he.match(Bt),Le=null;if(Jt.indentationDiff>=4&&(pe||Jt.prevLine.fencedCodeEnd||Jt.prevLine.header||se))return he.skipToEnd(),Jt.indentedCode=!0,Ct.code;if(he.eatSpace())return null;if(re&&Jt.indentation<=Fe&&(Le=he.match(xt))&&Le[1].length<=6)return Jt.quote=0,Jt.header=Le[1].length,Jt.thisLine.header=!0,Qt.highlightFormatting&&(Jt.formatting="header"),Jt.f=Jt.inline,Nt(Jt);if(Jt.indentation<=Fe&&he.eat(">"))return Jt.quote=re?1:Jt.quote+1,Qt.highlightFormatting&&(Jt.formatting="quote"),he.eatSpace(),Nt(Jt);if(!_e&&!Jt.setext&&re&&Jt.indentation<=Fe&&(Le=he.match(St))){var Oe=Le[1]?"ol":"ul";return Jt.indentation=Qe+he.current().length,Jt.list=!0,Jt.quote=0,Jt.listStack.push(Jt.indentation),Jt.em=!1,Jt.strong=!1,Jt.code=!1,Jt.strikethrough=!1,Qt.taskLists&&he.match(kt,!1)&&(Jt.taskList=!0),Jt.f=Jt.inline,Qt.highlightFormatting&&(Jt.formatting=["list","list-"+Oe]),Nt(Jt)}else{if(re&&Jt.indentation<=Fe&&(Le=he.match(et,!0)))return Jt.quote=0,Jt.fencedEndRE=new RegExp(Le[1]+"+ *$"),Jt.localMode=Qt.fencedCodeBlockHighlighting&&jt(Le[2]||Qt.fencedCodeBlockDefaultMode),Jt.localMode&&(Jt.localState=ee.startState(Jt.localMode)),Jt.f=Jt.block=Ut,Qt.highlightFormatting&&(Jt.formatting="code-block"),Jt.code=-1,Nt(Jt);if(Jt.setext||(!Ae||!Re)&&!Jt.quote&&Jt.list===!1&&!Jt.code&&!_e&&!tt.test(he.string)&&(Le=he.lookAhead(1))&&(Le=Le.match(Dt)))return Jt.setext?(Jt.header=Jt.setext,Jt.setext=0,he.skipToEnd(),Qt.highlightFormatting&&(Jt.formatting="header")):(Jt.header=Le[0].charAt(0)=="="?1:2,Jt.setext=Jt.header),Jt.thisLine.header=!0,Jt.f=Jt.inline,Nt(Jt);if(_e)return he.skipToEnd(),Jt.hr=!0,Jt.thisLine.hr=!0,Ct.hr;if(he.peek()==="[")return ut(he,Jt,Ne)}return ut(he,Jt,Jt.inline)}function Rt(he,Jt){var re=Zt.token(he,Jt.htmlState);if(!Ot){var se=ee.innerMode(Zt,Jt.htmlState);(se.mode.name=="xml"&&se.state.tagStart===null&&!se.state.context&&se.state.tokenize.isInText||Jt.md_inside&&he.current().indexOf(">")>-1)&&(Jt.f=te,Jt.block=Lt,Jt.htmlState=null)}return re}function Ut(he,Jt){var re=Jt.listStack[Jt.listStack.length-1]||0,se=Jt.indentation<re,pe=re+3;if(Jt.fencedEndRE&&Jt.indentation<=pe&&(se||he.match(Jt.fencedEndRE))){Qt.highlightFormatting&&(Jt.formatting="code-block");var ue;return se||(ue=Nt(Jt)),Jt.localMode=Jt.localState=null,Jt.block=Lt,Jt.f=te,Jt.fencedEndRE=null,Jt.code=0,Jt.thisLine.fencedCodeEnd=!0,se?ct(he,Jt,Jt.block):ue}else return Jt.localMode?Jt.localMode.token(he,Jt.localState):(he.skipToEnd(),Ct.code)}function Nt(he){var Jt=[];if(he.formatting){Jt.push(Ct.formatting),typeof he.formatting=="string"&&(he.formatting=[he.formatting]);for(var re=0;re<he.formatting.length;re++)Jt.push(Ct.formatting+"-"+he.formatting[re]),he.formatting[re]==="header"&&Jt.push(Ct.formatting+"-"+he.formatting[re]+"-"+he.header),he.formatting[re]==="quote"&&(!Qt.maxBlockquoteDepth||Qt.maxBlockquoteDepth>=he.quote?Jt.push(Ct.formatting+"-"+he.formatting[re]+"-"+he.quote):Jt.push("error"))}if(he.taskOpen)return Jt.push("meta"),Jt.length?Jt.join(" "):null;if(he.taskClosed)return Jt.push("property"),Jt.length?Jt.join(" "):null;if(he.linkHref?Jt.push(Ct.linkHref,"url"):(he.strong&&Jt.push(Ct.strong),he.em&&Jt.push(Ct.em),he.strikethrough&&Jt.push(Ct.strikethrough),he.emoji&&Jt.push(Ct.emoji),he.linkText&&Jt.push(Ct.linkText),he.code&&Jt.push(Ct.code),he.image&&Jt.push(Ct.image),he.imageAltText&&Jt.push(Ct.imageAltText,"link"),he.imageMarker&&Jt.push(Ct.imageMarker)),he.header&&Jt.push(Ct.header,Ct.header+"-"+he.header),he.quote&&(Jt.push(Ct.quote),!Qt.maxBlockquoteDepth||Qt.maxBlockquoteDepth>=he.quote?Jt.push(Ct.quote+"-"+he.quote):Jt.push(Ct.quote+"-"+Qt.maxBlockquoteDepth)),he.list!==!1){var se=(he.listStack.length-1)%3;se?se===1?Jt.push(Ct.list2):Jt.push(Ct.list3):Jt.push(Ct.list1)}return he.trailingSpaceNewLine?Jt.push("trailing-space-new-line"):he.trailingSpace&&Jt.push("trailing-space-"+(he.trailingSpace%2?"a":"b")),Jt.length?Jt.join(" "):null}function qt(he,Jt){if(he.match(yt,!0))return Nt(Jt)}function te(he,Jt){var re=Jt.text(he,Jt);if(typeof re!="undefined")return re;if(Jt.list)return Jt.list=null,Nt(Jt);if(Jt.taskList){var se=he.match(kt,!0)[1]===" ";return se?Jt.taskOpen=!0:Jt.taskClosed=!0,Qt.highlightFormatting&&(Jt.formatting="task"),Jt.taskList=!1,Nt(Jt)}if(Jt.taskOpen=!1,Jt.taskClosed=!1,Jt.header&&he.match(/^#+$/,!0))return Qt.highlightFormatting&&(Jt.formatting="header"),Nt(Jt);var pe=he.next();if(Jt.linkTitle){Jt.linkTitle=!1;var ue=pe;pe==="("&&(ue=")"),ue=(ue+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Re="^\\s*(?:[^"+ue+"\\\\]+|\\\\\\\\|\\\\.)"+ue;if(he.match(new RegExp(Re),!0))return Ct.linkHref}if(pe==="`"){var Fe=Jt.formatting;Qt.highlightFormatting&&(Jt.formatting="code"),he.eatWhile("`");var Qe=he.current().length;if(Jt.code==0&&(!Jt.quote||Qe==1))return Jt.code=Qe,Nt(Jt);if(Qe==Jt.code){var Ae=Nt(Jt);return Jt.code=0,Ae}else return Jt.formatting=Fe,Nt(Jt)}else if(Jt.code)return Nt(Jt);if(pe==="\\"&&(he.next(),Qt.highlightFormatting)){var _e=Nt(Jt),Le=Ct.formatting+"-escape";return _e?_e+" "+Le:Le}if(pe==="!"&&he.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Jt.imageMarker=!0,Jt.image=!0,Qt.highlightFormatting&&(Jt.formatting="image"),Nt(Jt);if(pe==="["&&Jt.imageMarker&&he.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Jt.imageMarker=!1,Jt.imageAltText=!0,Qt.highlightFormatting&&(Jt.formatting="image"),Nt(Jt);if(pe==="]"&&Jt.imageAltText){Qt.highlightFormatting&&(Jt.formatting="image");var _e=Nt(Jt);return Jt.imageAltText=!1,Jt.image=!1,Jt.inline=Jt.f=de,_e}if(pe==="["&&!Jt.image)return Jt.linkText&&he.match(/^.*?\]/)||(Jt.linkText=!0,Qt.highlightFormatting&&(Jt.formatting="link")),Nt(Jt);if(pe==="]"&&Jt.linkText){Qt.highlightFormatting&&(Jt.formatting="link");var _e=Nt(Jt);return Jt.linkText=!1,Jt.inline=Jt.f=he.match(/\(.*?\)| ?\[.*?\]/,!1)?de:te,_e}if(pe==="<"&&he.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Jt.f=Jt.inline=Vt,Qt.highlightFormatting&&(Jt.formatting="link");var _e=Nt(Jt);return _e?_e+=" ":_e="",_e+Ct.linkInline}if(pe==="<"&&he.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Jt.f=Jt.inline=Vt,Qt.highlightFormatting&&(Jt.formatting="link");var _e=Nt(Jt);return _e?_e+=" ":_e="",_e+Ct.linkEmail}if(Qt.xml&&pe==="<"&&he.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Oe=he.string.indexOf(">",he.pos);if(Oe!=-1){var He=he.string.substring(he.start,Oe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(He)&&(Jt.md_inside=!0)}return he.backUp(1),Jt.htmlState=ee.startState(Zt),ct(he,Jt,Rt)}if(Qt.xml&&pe==="<"&&he.match(/^\/\w*?>/))return Jt.md_inside=!1,"tag";if(pe==="*"||pe==="_"){for(var ie=1,Tt=he.pos==1?" ":he.string.charAt(he.pos-2);ie<3&&he.eat(pe);)ie++;var At=he.peek()||" ",Yt=!/\s/.test(At)&&(!lt.test(At)||/\s/.test(Tt)||lt.test(Tt)),oe=!/\s/.test(Tt)&&(!lt.test(Tt)||/\s/.test(At)||lt.test(At)),_t=null,It=null;if(ie%2&&(!Jt.em&&Yt&&(pe==="*"||!oe||lt.test(Tt))?_t=!0:Jt.em==pe&&oe&&(pe==="*"||!Yt||lt.test(At))&&(_t=!1)),ie>1&&(!Jt.strong&&Yt&&(pe==="*"||!oe||lt.test(Tt))?It=!0:Jt.strong==pe&&oe&&(pe==="*"||!Yt||lt.test(At))&&(It=!1)),It!=null||_t!=null){Qt.highlightFormatting&&(Jt.formatting=_t==null?"strong":It==null?"em":"strong em"),_t===!0&&(Jt.em=pe),It===!0&&(Jt.strong=pe);var Ae=Nt(Jt);return _t===!1&&(Jt.em=!1),It===!1&&(Jt.strong=!1),Ae}}else if(pe===" "&&(he.eat("*")||he.eat("_"))){if(he.peek()===" ")return Nt(Jt);he.backUp(1)}if(Qt.strikethrough){if(pe==="~"&&he.eatWhile(pe)){if(Jt.strikethrough){Qt.highlightFormatting&&(Jt.formatting="strikethrough");var Ae=Nt(Jt);return Jt.strikethrough=!1,Ae}else if(he.match(/^[^\s]/,!1))return Jt.strikethrough=!0,Qt.highlightFormatting&&(Jt.formatting="strikethrough"),Nt(Jt)}else if(pe===" "&&he.match(/^~~/,!0)){if(he.peek()===" ")return Nt(Jt);he.backUp(2)}}if(Qt.emoji&&pe===":"&&he.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Jt.emoji=!0,Qt.highlightFormatting&&(Jt.formatting="emoji");var Pt=Nt(Jt);return Jt.emoji=!1,Pt}return pe===" "&&(he.match(/^ +$/,!1)?Jt.trailingSpace++:Jt.trailingSpace&&(Jt.trailingSpaceNewLine=!0)),Nt(Jt)}function Vt(he,Jt){var re=he.next();if(re===">"){Jt.f=Jt.inline=te,Qt.highlightFormatting&&(Jt.formatting="link");var se=Nt(Jt);return se?se+=" ":se="",se+Ct.linkInline}return he.match(/^[^>]+/,!0),Ct.linkInline}function de(he,Jt){if(he.eatSpace())return null;var re=he.next();return re==="("||re==="["?(Jt.f=Jt.inline=be(re==="("?")":"]"),Qt.highlightFormatting&&(Jt.formatting="link-string"),Jt.linkHref=!0,Nt(Jt)):"error"}var ge={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function be(he){return function(Jt,re){var se=Jt.next();if(se===he){re.f=re.inline=te,Qt.highlightFormatting&&(re.formatting="link-string");var pe=Nt(re);return re.linkHref=!1,pe}return Jt.match(ge[he]),re.linkHref=!0,Nt(re)}}function Ne(he,Jt){return he.match(/^([^\]\\]|\\.)*\]:/,!1)?(Jt.f=Ge,he.next(),Qt.highlightFormatting&&(Jt.formatting="link"),Jt.linkText=!0,Nt(Jt)):ut(he,Jt,te)}function Ge(he,Jt){if(he.match(/^\]:/,!0)){Jt.f=Jt.inline=Pe,Qt.highlightFormatting&&(Jt.formatting="link");var re=Nt(Jt);return Jt.linkText=!1,re}return he.match(/^([^\]\\]|\\.)+/,!0),Ct.linkText}function Pe(he,Jt){return he.eatSpace()?null:(he.match(/^[^\s]+/,!0),he.peek()===void 0?Jt.linkTitle=!0:he.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Jt.f=Jt.inline=te,Ct.linkHref+" url")}var ze={startState:function(){return{f:Lt,prevLine:{stream:null},thisLine:{stream:null},block:Lt,htmlState:null,indentation:0,inline:te,text:qt,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(he){return{f:he.f,prevLine:he.prevLine,thisLine:he.thisLine,block:he.block,htmlState:he.htmlState&&ee.copyState(Zt,he.htmlState),indentation:he.indentation,localMode:he.localMode,localState:he.localMode?ee.copyState(he.localMode,he.localState):null,inline:he.inline,text:he.text,formatting:!1,linkText:he.linkText,linkTitle:he.linkTitle,linkHref:he.linkHref,code:he.code,em:he.em,strong:he.strong,strikethrough:he.strikethrough,emoji:he.emoji,header:he.header,setext:he.setext,hr:he.hr,taskList:he.taskList,list:he.list,listStack:he.listStack.slice(0),quote:he.quote,indentedCode:he.indentedCode,trailingSpace:he.trailingSpace,trailingSpaceNewLine:he.trailingSpaceNewLine,md_inside:he.md_inside,fencedEndRE:he.fencedEndRE}},token:function(he,Jt){if(Jt.formatting=!1,he!=Jt.thisLine.stream){if(Jt.header=0,Jt.hr=!1,he.match(/^\s*$/,!0))return gt(Jt),null;if(Jt.prevLine=Jt.thisLine,Jt.thisLine={stream:he},Jt.taskList=!1,Jt.trailingSpace=0,Jt.trailingSpaceNewLine=!1,!Jt.localState&&(Jt.f=Jt.block,Jt.f!=Rt)){var re=he.match(/^\s*/,!0)[0].replace(/\t/g,ot).length;if(Jt.indentation=re,Jt.indentationDiff=null,re>0)return null}}return Jt.f(he,Jt)},innerMode:function(he){return he.block==Rt?{state:he.htmlState,mode:Zt}:he.localState?{state:he.localState,mode:he.localMode}:{state:he,mode:ze}},indent:function(he,Jt,re){return he.block==Rt&&Zt.indent?Zt.indent(he.htmlState,Jt,re):he.localState&&he.localMode.indent?he.localMode.indent(he.localState,Jt,re):ee.Pass},blankLine:gt,getType:Nt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ze},"xml"),ee.defineMIME("text/markdown","markdown"),ee.defineMIME("text/x-markdown","markdown")})},98101:function(Cn,Gn,ce){(function(ee){ee(ce(89780))})(function(ee){"use strict";ee.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 wt=0;wt<ee.modeInfo.length;wt++){var Qt=ee.modeInfo[wt];Qt.mimes&&(Qt.mime=Qt.mimes[0])}ee.findModeByMIME=function(Zt){Zt=Zt.toLowerCase();for(var Ot=0;Ot<ee.modeInfo.length;Ot++){var jt=ee.modeInfo[Ot];if(jt.mime==Zt)return jt;if(jt.mimes){for(var Ct=0;Ct<jt.mimes.length;Ct++)if(jt.mimes[Ct]==Zt)return jt}}if(/\+xml$/.test(Zt))return ee.findModeByMIME("application/xml");if(/\+json$/.test(Zt))return ee.findModeByMIME("application/json")},ee.findModeByExtension=function(Zt){Zt=Zt.toLowerCase();for(var Ot=0;Ot<ee.modeInfo.length;Ot++){var jt=ee.modeInfo[Ot];if(jt.ext){for(var Ct=0;Ct<jt.ext.length;Ct++)if(jt.ext[Ct]==Zt)return jt}}},ee.findModeByFileName=function(Zt){for(var Ot=0;Ot<ee.modeInfo.length;Ot++){var jt=ee.modeInfo[Ot];if(jt.file&&jt.file.test(Zt))return jt}var Ct=Zt.lastIndexOf("."),Mt=Ct>-1&&Zt.substring(Ct+1,Zt.length);if(Mt)return ee.findModeByExtension(Mt)},ee.findModeByName=function(Zt){Zt=Zt.toLowerCase();for(var Ot=0;Ot<ee.modeInfo.length;Ot++){var jt=ee.modeInfo[Ot];if(jt.name.toLowerCase()==Zt)return jt;if(jt.alias){for(var Ct=0;Ct<jt.alias.length;Ct++)if(jt.alias[Ct].toLowerCase()==Zt)return jt}}}})},67549:function(Cn,Gn,ce){(function(ee){ee(ce(89780))})(function(ee){"use strict";ee.defineMode("stex",function(wt,Qt){"use strict";function Zt(yt,et){yt.cmdState.push(et)}function Ot(yt){return yt.cmdState.length>0?yt.cmdState[yt.cmdState.length-1]:null}function jt(yt){var et=yt.cmdState.pop();et&&et.closeBracket()}function Ct(yt){for(var et=yt.cmdState,tt=et.length-1;tt>=0;tt--){var lt=et[tt];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function Mt(yt,et,tt){return function(){this.name=yt,this.bracketNo=0,this.style=et,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Bt={};Bt.importmodule=Mt("importmodule","tag",["string","builtin"]),Bt.documentclass=Mt("documentclass","tag",["","atom"]),Bt.usepackage=Mt("usepackage","tag",["atom"]),Bt.begin=Mt("begin","tag",["atom"]),Bt.end=Mt("end","tag",["atom"]),Bt.label=Mt("label","tag",["atom"]),Bt.ref=Mt("ref","tag",["atom"]),Bt.eqref=Mt("eqref","tag",["atom"]),Bt.cite=Mt("cite","tag",["atom"]),Bt.bibitem=Mt("bibitem","tag",["atom"]),Bt.Bibitem=Mt("Bibitem","tag",["atom"]),Bt.RBibitem=Mt("RBibitem","tag",["atom"]),Bt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function St(yt,et){yt.f=et}function kt(yt,et){var tt;if(yt.match(/^\\[a-zA-Z@]+/)){var lt=yt.current().slice(1);return tt=Bt.hasOwnProperty(lt)?Bt[lt]:Bt.DEFAULT,tt=new tt,Zt(et,tt),St(et,Dt),tt.style}if(yt.match(/^\\[$&%#{}_]/)||yt.match(/^\\[,;!\/\\]/))return"tag";if(yt.match("\\["))return St(et,function(ut,ct){return xt(ut,ct,"\\]")}),"keyword";if(yt.match("\\("))return St(et,function(ut,ct){return xt(ut,ct,"\\)")}),"keyword";if(yt.match("$$"))return St(et,function(ut,ct){return xt(ut,ct,"$$")}),"keyword";if(yt.match("$"))return St(et,function(ut,ct){return xt(ut,ct,"$")}),"keyword";var ot=yt.next();if(ot=="%")return yt.skipToEnd(),"comment";if(ot=="}"||ot=="]"){if(tt=Ot(et),tt)tt.closeBracket(ot),St(et,Dt);else return"error";return"bracket"}else return ot=="{"||ot=="["?(tt=Bt.DEFAULT,tt=new tt,Zt(et,tt),"bracket"):/\d/.test(ot)?(yt.eatWhile(/[\w.%]/),"atom"):(yt.eatWhile(/[\w\-_]/),tt=Ct(et),tt.name=="begin"&&(tt.argument=yt.current()),tt.styleIdentifier())}function xt(yt,et,tt){if(yt.eatSpace())return null;if(tt&&yt.match(tt))return St(et,kt),"keyword";if(yt.match(/^\\[a-zA-Z@]+/))return"tag";if(yt.match(/^[a-zA-Z]+/))return"variable-2";if(yt.match(/^\\[$&%#{}_]/)||yt.match(/^\\[,;!\/]/)||yt.match(/^[\^_&]/))return"tag";if(yt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(yt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=yt.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(yt.skipToEnd(),"comment"):"error"}function Dt(yt,et){var tt=yt.peek(),lt;return tt=="{"||tt=="["?(lt=Ot(et),lt.openBracket(tt),yt.eat(tt),St(et,kt),"bracket"):/[ \t\r]/.test(tt)?(yt.eat(tt),null):(St(et,kt),jt(et),kt(yt,et))}return{startState:function(){var yt=Qt.inMathMode?function(et,tt){return xt(et,tt)}:kt;return{cmdState:[],f:yt}},copyState:function(yt){return{cmdState:yt.cmdState.slice(),f:yt.f}},token:function(yt,et){return et.f(yt,et)},blankLine:function(yt){yt.f=kt,yt.cmdState.length=0},lineComment:"%"}}),ee.defineMIME("text/x-stex","stex"),ee.defineMIME("text/x-latex","stex")})},15525:function(Cn,Gn,ce){(function(ee){ee(ce(89780))})(function(ee){"use strict";var wt={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},Qt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ee.defineMode("xml",function(Zt,Ot){var jt=Zt.indentUnit,Ct={},Mt=Ot.htmlMode?wt:Qt;for(var Bt in Mt)Ct[Bt]=Mt[Bt];for(var Bt in Ot)Ct[Bt]=Ot[Bt];var St,kt;function xt(Vt,de){function ge(Ge){return de.tokenize=Ge,Ge(Vt,de)}var be=Vt.next();if(be=="<")return Vt.eat("!")?Vt.eat("[")?Vt.match("CDATA[")?ge(et("atom","]]>")):null:Vt.match("--")?ge(et("comment","-->")):Vt.match("DOCTYPE",!0,!0)?(Vt.eatWhile(/[\w\._\-]/),ge(tt(1))):null:Vt.eat("?")?(Vt.eatWhile(/[\w\._\-]/),de.tokenize=et("meta","?>"),"meta"):(St=Vt.eat("/")?"closeTag":"openTag",de.tokenize=Dt,"tag bracket");if(be=="&"){var Ne;return Vt.eat("#")?Vt.eat("x")?Ne=Vt.eatWhile(/[a-fA-F\d]/)&&Vt.eat(";"):Ne=Vt.eatWhile(/[\d]/)&&Vt.eat(";"):Ne=Vt.eatWhile(/[\w\.\-:]/)&&Vt.eat(";"),Ne?"atom":"error"}else return Vt.eatWhile(/[^&<]/),null}xt.isInText=!0;function Dt(Vt,de){var ge=Vt.next();if(ge==">"||ge=="/"&&Vt.eat(">"))return de.tokenize=xt,St=ge==">"?"endTag":"selfcloseTag","tag bracket";if(ge=="=")return St="equals",null;if(ge=="<"){de.tokenize=xt,de.state=ct,de.tagName=de.tagStart=null;var be=de.tokenize(Vt,de);return be?be+" tag error":"tag error"}else return/[\'\"]/.test(ge)?(de.tokenize=yt(ge),de.stringStartCol=Vt.column(),de.tokenize(Vt,de)):(Vt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function yt(Vt){var de=function(ge,be){for(;!ge.eol();)if(ge.next()==Vt){be.tokenize=Dt;break}return"string"};return de.isInAttribute=!0,de}function et(Vt,de){return function(ge,be){for(;!ge.eol();){if(ge.match(de)){be.tokenize=xt;break}ge.next()}return Vt}}function tt(Vt){return function(de,ge){for(var be;(be=de.next())!=null;){if(be=="<")return ge.tokenize=tt(Vt+1),ge.tokenize(de,ge);if(be==">")if(Vt==1){ge.tokenize=xt;break}else return ge.tokenize=tt(Vt-1),ge.tokenize(de,ge)}return"meta"}}function lt(Vt,de,ge){this.prev=Vt.context,this.tagName=de,this.indent=Vt.indented,this.startOfLine=ge,(Ct.doNotIndent.hasOwnProperty(de)||Vt.context&&Vt.context.noIndent)&&(this.noIndent=!0)}function ot(Vt){Vt.context&&(Vt.context=Vt.context.prev)}function ut(Vt,de){for(var ge;;){if(!Vt.context||(ge=Vt.context.tagName,!Ct.contextGrabbers.hasOwnProperty(ge)||!Ct.contextGrabbers[ge].hasOwnProperty(de)))return;ot(Vt)}}function ct(Vt,de,ge){return Vt=="openTag"?(ge.tagStart=de.column(),ft):Vt=="closeTag"?gt:ct}function ft(Vt,de,ge){return Vt=="word"?(ge.tagName=de.current(),kt="tag",Ut):Ct.allowMissingTagName&&Vt=="endTag"?(kt="tag bracket",Ut(Vt,de,ge)):(kt="error",ft)}function gt(Vt,de,ge){if(Vt=="word"){var be=de.current();return ge.context&&ge.context.tagName!=be&&Ct.implicitlyClosed.hasOwnProperty(ge.context.tagName)&&ot(ge),ge.context&&ge.context.tagName==be||Ct.matchClosing===!1?(kt="tag",Lt):(kt="tag error",Rt)}else return Ct.allowMissingTagName&&Vt=="endTag"?(kt="tag bracket",Lt(Vt,de,ge)):(kt="error",Rt)}function Lt(Vt,de,ge){return Vt!="endTag"?(kt="error",Lt):(ot(ge),ct)}function Rt(Vt,de,ge){return kt="error",Lt(Vt,de,ge)}function Ut(Vt,de,ge){if(Vt=="word")return kt="attribute",Nt;if(Vt=="endTag"||Vt=="selfcloseTag"){var be=ge.tagName,Ne=ge.tagStart;return ge.tagName=ge.tagStart=null,Vt=="selfcloseTag"||Ct.autoSelfClosers.hasOwnProperty(be)?ut(ge,be):(ut(ge,be),ge.context=new lt(ge,be,Ne==ge.indented)),ct}return kt="error",Ut}function Nt(Vt,de,ge){return Vt=="equals"?qt:(Ct.allowMissing||(kt="error"),Ut(Vt,de,ge))}function qt(Vt,de,ge){return Vt=="string"?te:Vt=="word"&&Ct.allowUnquoted?(kt="string",Ut):(kt="error",Ut(Vt,de,ge))}function te(Vt,de,ge){return Vt=="string"?te:Ut(Vt,de,ge)}return{startState:function(Vt){var de={tokenize:xt,state:ct,indented:Vt||0,tagName:null,tagStart:null,context:null};return Vt!=null&&(de.baseIndent=Vt),de},token:function(Vt,de){if(!de.tagName&&Vt.sol()&&(de.indented=Vt.indentation()),Vt.eatSpace())return null;St=null;var ge=de.tokenize(Vt,de);return(ge||St)&&ge!="comment"&&(kt=null,de.state=de.state(St||ge,Vt,de),kt&&(ge=kt=="error"?ge+" error":kt)),ge},indent:function(Vt,de,ge){var be=Vt.context;if(Vt.tokenize.isInAttribute)return Vt.tagStart==Vt.indented?Vt.stringStartCol+1:Vt.indented+jt;if(be&&be.noIndent)return ee.Pass;if(Vt.tokenize!=Dt&&Vt.tokenize!=xt)return ge?ge.match(/^(\s*)/)[0].length:0;if(Vt.tagName)return Ct.multilineTagIndentPastTag!==!1?Vt.tagStart+Vt.tagName.length+2:Vt.tagStart+jt*(Ct.multilineTagIndentFactor||1);if(Ct.alignCDATA&&/<!\[CDATA\[/.test(de))return 0;var Ne=de&&/^<(\/)?([\w_:\.-]*)/.exec(de);if(Ne&&Ne[1])for(;be;)if(be.tagName==Ne[2]){be=be.prev;break}else if(Ct.implicitlyClosed.hasOwnProperty(be.tagName))be=be.prev;else break;else if(Ne)for(;be;){var Ge=Ct.contextGrabbers[be.tagName];if(Ge&&Ge.hasOwnProperty(Ne[2]))be=be.prev;else break}for(;be&&be.prev&&!be.startOfLine;)be=be.prev;return be?be.indent+jt:Vt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ct.htmlMode?"html":"xml",helperType:Ct.htmlMode?"html":"xml",skipAttribute:function(Vt){Vt.state==qt&&(Vt.state=Ut)},xmlCurrentTag:function(Vt){return Vt.tagName?{name:Vt.tagName,close:Vt.type=="closeTag"}:null},xmlCurrentContext:function(Vt){for(var de=[],ge=Vt.context;ge;ge=ge.prev)ge.tagName&&de.push(ge.tagName);return de.reverse()}}}),ee.defineMIME("text/xml","xml"),ee.defineMIME("application/xml","xml"),ee.mimeModes.hasOwnProperty("text/html")||ee.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Cn,Gn,ce){"use strict";ce.d(Gn,{$u:function(){return Bt},BD:function(){return ie},E9:function(){return Mt},FF:function(){return Hi},FJ:function(){return ct},Hn:function(){return ut},KX:function(){return gt},NB:function(){return zt},S0:function(){return Le},UL:function(){return St},Vk:function(){return ot},Vm:function(){return le},YI:function(){return Oe},ZA:function(){return Qt},Zt:function(){return kt},al:function(){return _t},bn:function(){return oe},bx:function(){return Tt},g2:function(){return He},h1:function(){return qt},hD:function(){return Pn},l4:function(){return jt},rU:function(){return Gt},s_:function(){return At},uz:function(){return $t},z6:function(){return xt}}),Cn=ce.hmd(Cn),function(){var Kt;function zn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Rn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:zn(a)}}function bn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var _n=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Yn;if(typeof Object.setPrototypeOf=="function")Yn=Object.setPrototypeOf;else{var Xn;t:{var Ri={a:!0},ki={};try{ki.__proto__=Ri,Xn=ki.a;break t}catch(a){}Xn=!1}Yn=Xn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Xe=Yn;function Je(a,y){if(a.prototype=_n(y.prototype),a.prototype.constructor=a,Xe)Xe(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Ke=typeof ce.g!="undefined"&&ce.g!=null?ce.g:self,Hn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},Jn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function qn(a,y){if(y){var x=Ke;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Jn(x,a,{writable:!0,value:y})}}qn("Object.assign",function(a){return a||Hn}),qn("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var pn=typeof globalThis=="object"&&globalThis||typeof ce.g=="object"&&ce.g.global===ce.g&&ce.g||typeof self=="object"&&self.self===self&&self||{};pn.requestAnimationFrame===void 0&&(pn.setImmediate===void 0?pn.requestAnimationFrame=function(a){pn.setTimeout(a,0)}:pn.requestAnimationFrame=pn.setImmediate);function Bn(){}function hi(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&pn.clearTimeout(x),x=Ti(function(){x=-1,a.apply(b,E)},y)}}function Ti(a,y){return pn.setTimeout(a,y)}function Di(a){return pn.document.createElement(a)}function we(a){throw Error(a)}function je(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),we(a)}function An(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),we(x+" is not in the range "+y+": "+a)}function Nn(a){pn.console&&pn.console.log(a)}function tn(a){return typeof a=="object"&&a!==null}function yn(a){return Array.isArray(a)||pn.NodeList&&a instanceof pn.NodeList||pn.HTMLCollection&&a instanceof pn.HTMLCollection}function xn(a){return Array.prototype.slice.call(a)}function Sn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):we("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Wn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):we("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Fn(){var a=vr.pop();return a===void 0?[]:a}function jn(a){a.length=0,vr.push(a)}function In(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(tn(a)&&a.constructor)return In(a.constructor);return typeof a}function Ai(a){var y=a;return tn(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 ai(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 ci(a,y,x){Object.defineProperty(Br.prototype,a,{get:y,set:x})}function rn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(nt)^y[(y[x]+y[b])%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 Ii=pn.navigator!==void 0&&0<pn.navigator.userAgent.indexOf("Trident/7"),Xi=pn.navigator!==void 0&&pn.navigator.platform!==void 0&&pn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,vr=[];Object.freeze([]),Bn.className="Util",Bn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Bn.adym="gojs.net",Bn.vfo="28e645fdb266",Bn.className="Util";function an(a,y,x){di(this),this.j=a,this.xa=y,this.o=x}an.prototype.toString=function(){return"EnumValue."+this.xa};function Dn(a,y){return y==null||y===""?null:a[y]}Ke.Object.defineProperties(an.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),an.className="EnumValue";function ei(){this.ew=[]}ei.prototype.toString=function(){return this.ew.join("")},ei.prototype.add=function(a){a!==""&&this.ew.push(a)},ei.className="StringBuilder";function Qn(){}Qn.className="PropertyCollection";var ri={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){pn.console&&pn.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(nt,rt){return function(){throw Error("Property "+nt.Zl[rt.Tj]+" of "+nt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Ci(){}Ci.prototype.reset=function(){},Ci.prototype.next=function(){return!1},Ci.prototype.Ad=function(){return!1},Ci.prototype.first=function(){return null},Ci.prototype.any=function(){return!1},Ci.prototype.all=function(){return!0},Ci.prototype.each=function(){return this},Ci.prototype.map=function(){return this},Ci.prototype.filter=function(){return this},Ci.prototype.de=function(){},Ci.prototype.toString=function(){return"EmptyIterator"},Ke.Object.defineProperties(Ci.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Ci.prototype.first=Ci.prototype.first,Ci.prototype.hasNext=Ci.prototype.Ad,Ci.prototype.next=Ci.prototype.next,Ci.prototype.reset=Ci.prototype.reset;var Fi=null;Ci.className="EmptyIterator",Fi=new Ci;function Ui(a){this.key=-1,this.value=a}Ui.prototype.reset=function(){this.key=-1},Ui.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Ui.prototype.Ad=function(){return this.next()},Ui.prototype.first=function(){return this.key=0,this.value},Ui.prototype.any=function(a){return this.key=-1,a(this.value)},Ui.prototype.all=function(a){return this.key=-1,a(this.value)},Ui.prototype.each=function(a){return this.key=-1,a(this.value),this},Ui.prototype.map=function(a){return new Ui(a(this.value))},Ui.prototype.filter=function(a){return a(this.value)?new Ui(this.value):Fi},Ui.prototype.de=function(){this.value=null},Ui.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Ke.Object.defineProperties(Ui.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Ui.prototype.first=Ui.prototype.first,Ui.prototype.hasNext=Ui.prototype.Ad,Ui.prototype.next=Ui.prototype.next,Ui.prototype.reset=Ui.prototype.reset,Ui.className="SingletonIterator";function Qi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Qi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Qi.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Qi.prototype.Ad=function(){return this.next()},Qi.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Qi.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Qi.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Qi.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Qi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&x.push(a(nt))}return a=new cn,a.s=x,a.xb(),a.iterator},Qi.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&a(nt)&&x.push(nt)}return a=new cn,a.s=x,a.xb(),a.iterator},Qi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Qi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Ke.Object.defineProperties(Qi.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),Qi.prototype.first=Qi.prototype.first,Qi.prototype.hasNext=Qi.prototype.Ad,Qi.prototype.next=Qi.prototype.next,Qi.prototype.reset=Qi.prototype.reset,Qi.className="ListIterator";function sr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}sr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},sr.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)},sr.prototype.Ad=function(){return this.next()},sr.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},sr.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},sr.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},sr.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},sr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new cn,a.s=x,a.xb(),a.iterator},sr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new cn,a.s=x,a.xb(),a.iterator},sr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},sr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ke.Object.defineProperties(sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),sr.prototype.first=sr.prototype.first,sr.prototype.hasNext=sr.prototype.Ad,sr.prototype.next=sr.prototype.next,sr.prototype.reset=sr.prototype.reset,sr.className="ListIteratorBackwards";function cn(a){di(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&we("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Kt=cn.prototype,Kt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return this._isFrozen=!1,this},Kt.toString=function(){return"List()#"+Wi(this)},Kt.add=function(a){return a===null?this:(this._isFrozen&&je(this,a),this.s.push(a),this.xb(),this)},Kt.push=function(a){this.add(a)},Kt.addAll=function(a){if(a===null)return this;this._isFrozen&&je(this);var y=this.s;if(yn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Kt.clear=function(){this._isFrozen&&je(this),this.s.length=0,this.xb()},Kt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Kt.has=function(a){return this.contains(a)},Kt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Kt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&An(a,"0 <= i < length",cn,"elt:i"),y[a]},Kt.get=function(a){return this.M(a)},Kt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&An(a,"0 <= i < length",cn,"setElt:i"),this._isFrozen&&je(this,a),x[a]=y},Kt.set=function(a,y){this.cd(a,y)},Kt.first=function(){var a=this.s;return a.length===0?null:a[0]},Kt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Kt.pop=function(){this._isFrozen&&je(this);var a=this.s;return 0<a.length?a.pop():null},cn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},cn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},cn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},cn.prototype.map=function(a){for(var y=new cn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},cn.prototype.filter=function(a){for(var y=new cn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var nt=b[z];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},Kt=cn.prototype,Kt.Gb=function(a,y){0>a&&An(a,">= 0",cn,"insertAt:i"),this._isFrozen&&je(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Kt.remove=function(a){if(a===null)return!1;this._isFrozen&&je(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)},Kt.delete=function(a){return this.remove(a)},Kt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&An(a,"0 <= i < length",cn,"removeAt:i"),this._isFrozen&&je(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Kt.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&je(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},cn.prototype.copy=function(){var a=new cn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Kt=cn.prototype,Kt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Kt.Iv=function(){for(var a=new hn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Kt.sort=function(a){return this._isFrozen&&je(this),this.s.sort(a),this.xb(),this},Kt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&je(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&An(y,"0 <= from < length",cn,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Kt.reverse=function(){return this._isFrozen&&je(this),this.s.reverse(),this.xb(),this},Ke.Object.defineProperties(cn.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 Fi;var a=this.Sa;return a!==null?(a.reset(),a):new Qi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Fi;var a=this.Hg;return a!==null?(a.reset(),a):new sr(this)}}}),cn.prototype.reverse=cn.prototype.reverse,cn.prototype.sortRange=cn.prototype.zi,cn.prototype.sort=cn.prototype.sort,cn.prototype.toSet=cn.prototype.Iv,cn.prototype.toArray=cn.prototype.Fa,cn.prototype.removeRange=cn.prototype.removeRange,cn.prototype.removeAt=cn.prototype.mb,cn.prototype.delete=cn.prototype.delete,cn.prototype.remove=cn.prototype.remove,cn.prototype.insertAt=cn.prototype.Gb,cn.prototype.pop=cn.prototype.pop,cn.prototype.last=cn.prototype.jc,cn.prototype.first=cn.prototype.first,cn.prototype.set=cn.prototype.set,cn.prototype.setElt=cn.prototype.cd,cn.prototype.get=cn.prototype.get,cn.prototype.elt=cn.prototype.M,cn.prototype.indexOf=cn.prototype.indexOf,cn.prototype.has=cn.prototype.has,cn.prototype.contains=cn.prototype.contains,cn.prototype.clear=cn.prototype.clear,cn.prototype.addAll=cn.prototype.addAll,cn.prototype.push=cn.prototype.push,cn.prototype.add=cn.prototype.add,cn.prototype.thaw=cn.prototype.ka,cn.prototype.freeze=cn.prototype.freeze,cn.className="List";function gr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}gr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},gr.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)},gr.prototype.Ad=function(){return this.next()},gr.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},gr.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},gr.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},gr.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},gr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},gr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new cn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},gr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},gr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ke.Object.defineProperties(gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),gr.prototype.first=gr.prototype.first,gr.prototype.hasNext=gr.prototype.Ad,gr.prototype.next=gr.prototype.next,gr.prototype.reset=gr.prototype.reset,gr.className="SetIterator";function hn(a){di(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&we("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Kt=hn.prototype,Kt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return this._isFrozen=!1,this},Kt.toString=function(){return"Set()#"+Wi(this)},Kt.add=function(a){if(a===null)return this;this._isFrozen&&je(this,a);var y=a;return tn(a)&&(y=tr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Mo(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},Kt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&je(this),yn(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},Kt.contains=function(a){if(a===null)return!1;var y=a;return tn(a)&&(y=Wi(a),y===void 0)?!1:this.Tb[y]!==void 0},Kt.has=function(a){return this.contains(a)},Kt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Kt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Kt.first=function(){var a=this.ea;return a===null?null:a.value},hn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},hn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},hn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},hn.prototype.map=function(a){for(var y=new hn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},hn.prototype.filter=function(a){for(var y=new hn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Kt=hn.prototype,Kt.remove=function(a){if(a===null)return!1;this._isFrozen&&je(this,a);var y=a;if(tn(a)&&(y=Wi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Kt.delete=function(a){return this.remove(a)},Kt.hp=function(a){if(a===null)return this;if(this._isFrozen&&je(this),yn(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},Kt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&je(this);var y=new hn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Kt.clear=function(){this._isFrozen&&je(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},hn.prototype.copy=function(){var a=new hn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},hn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},hn.prototype.Hv=function(){var a=new cn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function di(a){a.__gohashid=fr++}function tr(a){var y=a.__gohashid;return y===void 0&&(y=fr++,a.__gohashid=y),y}function Wi(a){return a.__gohashid}Ke.Object.defineProperties(hn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Fi;var a=this.Sa;return a!==null?(a.reset(),a):new gr(this)}}}),hn.prototype.toList=hn.prototype.Hv,hn.prototype.toArray=hn.prototype.Fa,hn.prototype.clear=hn.prototype.clear,hn.prototype.retainAll=hn.prototype.pA,hn.prototype.removeAll=hn.prototype.hp,hn.prototype.delete=hn.prototype.delete,hn.prototype.remove=hn.prototype.remove,hn.prototype.first=hn.prototype.first,hn.prototype.containsAny=hn.prototype.Ty,hn.prototype.containsAll=hn.prototype.Sy,hn.prototype.has=hn.prototype.has,hn.prototype.contains=hn.prototype.contains,hn.prototype.addAll=hn.prototype.addAll,hn.prototype.add=hn.prototype.add,hn.prototype.thaw=hn.prototype.ka,hn.prototype.freeze=hn.prototype.freeze;var fr=1;hn.className="Set",hn.uniqueHash=di,hn.hashIdUnique=tr,hn.hashId=Wi;function rr(a){this.ma=a,this.qa=a.Ja,this.sa=null}rr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},rr.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)},rr.prototype.Ad=function(){return this.next()},rr.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},rr.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},rr.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},rr.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},rr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},rr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new cn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},rr.prototype.de=function(){this.value=this.key=null,this.qa=-1},rr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ke.Object.defineProperties(rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),rr.prototype.first=rr.prototype.first,rr.prototype.hasNext=rr.prototype.Ad,rr.prototype.next=rr.prototype.next,rr.prototype.reset=rr.prototype.reset,rr.className="MapKeySetIterator";function _i(a){hn.call(this),di(this),this._isFrozen=!0,this.ma=a}Je(_i,hn),Kt=_i.prototype,Kt.freeze=function(){return this},Kt.ka=function(){return this},Kt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Kt.add=function(){we("This Set is read-only: "+this.toString())},Kt.contains=function(a){return this.ma.contains(a)},Kt.has=function(a){return this.contains(a)},Kt.remove=function(){we("This Set is read-only: "+this.toString())},Kt.delete=function(a){return this.remove(a)},Kt.clear=function(){we("This Set is read-only: "+this.toString())},Kt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},_i.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},_i.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},_i.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},_i.prototype.map=function(a){for(var y=new hn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},_i.prototype.filter=function(a){for(var y=new hn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},_i.prototype.copy=function(){return new _i(this.ma)},_i.prototype.Iv=function(){var a=new hn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},_i.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},_i.prototype.Hv=function(){var a=new cn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ke.Object.defineProperties(_i.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Fi:new rr(this.ma)}}}),_i.prototype.toList=_i.prototype.Hv,_i.prototype.toArray=_i.prototype.Fa,_i.prototype.toSet=_i.prototype.Iv,_i.prototype.first=_i.prototype.first,_i.prototype.clear=_i.prototype.clear,_i.prototype.delete=_i.prototype.delete,_i.prototype.remove=_i.prototype.remove,_i.prototype.has=_i.prototype.has,_i.prototype.contains=_i.prototype.contains,_i.prototype.add=_i.prototype.add,_i.prototype.thaw=_i.prototype.ka,_i.prototype.freeze=_i.prototype.freeze,_i.className="MapKeySet";function Cr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Cr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Cr.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)},Cr.prototype.Ad=function(){return this.next()},Cr.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},Cr.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},Cr.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},Cr.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},Cr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Cr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new cn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Cr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Cr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ke.Object.defineProperties(Cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Cr.prototype.first=Cr.prototype.first,Cr.prototype.hasNext=Cr.prototype.Ad,Cr.prototype.next=Cr.prototype.next,Cr.prototype.reset=Cr.prototype.reset,Cr.className="MapValueSetIterator";function Mo(a,y){this.key=a,this.value=y,this.ll=this.va=null}Mo.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Mo.className="KeyValuePair";function Rr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Rr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Rr.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)},Rr.prototype.Ad=function(){return this.next()},Rr.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},Rr.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},Rr.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},Rr.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},Rr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Rr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Rr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Rr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ke.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="MapIterator";function ti(a){di(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"&&we("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Kt=ti.prototype,Kt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return this._isFrozen=!1,this},Kt.toString=function(){return"Map()#"+Wi(this)},Kt.add=function(a,y){this._isFrozen&&je(this,a);var x=a;tn(a)&&(x=tr(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Mo(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},Kt.set=function(a,y){return this.add(a,y)},Kt.addAll=function(a){if(a===null)return this;if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof ti)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},Kt.first=function(){return this.ea},ti.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ti.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ti.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},ti.prototype.map=function(a){for(var y=new ti,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},ti.prototype.filter=function(a){for(var y=new ti,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Kt=ti.prototype,Kt.contains=function(a){var y=a;return tn(a)&&(y=Wi(a),y===void 0)?!1:this.Tb[y]!==void 0},Kt.has=function(a){return this.contains(a)},Kt.I=function(a){var y=a;return tn(a)&&(y=Wi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Kt.get=function(a){return this.I(a)},Kt.remove=function(a){if(a===null)return!1;this._isFrozen&&je(this,a);var y=a;if(tn(a)&&(y=Wi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Kt.delete=function(a){return this.remove(a)},Kt.clear=function(){this._isFrozen&&je(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()},ti.prototype.copy=function(){var a=new ti,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},ti.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Mo(E.key,E.value),x++}return y},ti.prototype.Lf=function(){return new _i(this)},Ke.Object.defineProperties(ti.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Fi;var a=this.Sa;return a!==null?(a.reset(),a):new Rr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Fi:new rr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Fi;var a=this.jf;return a!==null?(a.reset(),a):new Cr(this)}}}),ti.prototype.toKeySet=ti.prototype.Lf,ti.prototype.toArray=ti.prototype.Fa,ti.prototype.clear=ti.prototype.clear,ti.prototype.delete=ti.prototype.delete,ti.prototype.remove=ti.prototype.remove,ti.prototype.get=ti.prototype.get,ti.prototype.getValue=ti.prototype.I,ti.prototype.has=ti.prototype.has,ti.prototype.contains=ti.prototype.contains,ti.prototype.first=ti.prototype.first,ti.prototype.addAll=ti.prototype.addAll,ti.prototype.set=ti.prototype.set,ti.prototype.add=ti.prototype.add,ti.prototype.thaw=ti.prototype.ka,ti.prototype.freeze=ti.prototype.freeze,ti.className="Map";function xe(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):we("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Gr,To,is,vo,xr;xe.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},xe.prototype.h=function(a,y){return this.x=a,this.y=y,this},xe.prototype.sg=function(a,y){return this.x=a,this.y=y,this},xe.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},xe.prototype.copy=function(){var a=new xe;return a.x=this.x,a.y=this.y,a},Kt=xe.prototype,Kt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Kt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return Object.isFrozen(this)&&we("cannot thaw constant: "+this),this._isFrozen=!1,this};function ui(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new xe(x,E)}return new xe}function Si(a){return a.x.toString()+" "+a.y.toString()}Kt.toString=function(){return"Point("+this.x+","+this.y+")"},Kt.D=function(a){return a instanceof xe?this.x===a.x&&this.y===a.y:!1},Kt.hi=function(a,y){return this.x===a&&this.y===y},Kt.Xa=function(a){return Ie.B(this.x,a.x)&&Ie.B(this.y,a.y)},Kt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Kt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Kt.offset=function(a,y){return this.x+=a,this.y+=y,this},xe.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},Kt=xe.prototype,Kt.scale=function(a,y){return this.x*=a,this.y*=y,this},Kt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Kt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Kt.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},Kt.ab=function(a){return er(a.x-this.x,a.y-this.y)},Kt.direction=function(a,y){return er(a-this.x,y-this.y)};function er(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}Kt.Ry=function(a,y){return Ie.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Kt.fA=function(a,y,x,b){return Ie.qh(a,y,x,b,this.x,this.y,this),this},Kt.gA=function(a,y){return Ie.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Kt.uA=function(a,y,x,b){return Ie.No(this.x,this.y,a,y,x,b,this),this},Kt.vA=function(a,y){return Ie.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Kt.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},Kt.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Kt.transform=function(a){return a.Ga(this),this};function gi(a,y){return y.Cd(a),a}function Ji(a,y,x,b,E,z){var nt=E-x,rt=z-b,st=nt*nt+rt*rt;x-=a,b-=y;var ht=-x*nt-b*rt;return 0>=ht||ht>=st?(nt=E-a,rt=z-y,Math.min(x*x+b*b,nt*nt+rt*rt)):(a=nt*b-rt*x,a*a/st)}function Mr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function bi(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Kt.w=function(){return isFinite(this.x)&&isFinite(this.y)},xe.alloc=function(){var a=li.pop();return a===void 0?new xe:a},xe.allocAt=function(a,y){var x=li.pop();return x===void 0?new xe(a,y):(x.x=a,x.y=y,x)},xe.free=function(a){li.push(a)},xe.prototype.isReal=xe.prototype.w,xe.prototype.setSpot=xe.prototype.yi,xe.prototype.setRectSpot=xe.prototype.xi,xe.prototype.snapToGridPoint=xe.prototype.vA,xe.prototype.snapToGrid=xe.prototype.uA,xe.prototype.projectOntoLineSegmentPoint=xe.prototype.gA,xe.prototype.projectOntoLineSegment=xe.prototype.fA,xe.intersectingLineSegments=function(a,y,x,b,E,z,nt,rt){return Ie.Rl(a,y,x,b,E,z,nt,rt)},xe.prototype.compareWithLineSegmentPoint=xe.prototype.Ry,xe.compareWithLineSegment=function(a,y,x,b,E,z){return Ie.Fl(a,y,x,b,E,z)},xe.prototype.direction=xe.prototype.direction,xe.prototype.directionPoint=xe.prototype.ab,xe.prototype.normalize=xe.prototype.normalize,xe.prototype.distanceSquared=xe.prototype.zd,xe.prototype.distanceSquaredPoint=xe.prototype.Bf,xe.prototype.scale=xe.prototype.scale,xe.prototype.rotate=xe.prototype.rotate,xe.prototype.offset=xe.prototype.offset,xe.prototype.subtract=xe.prototype.re,xe.prototype.add=xe.prototype.add,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 li=[];xe.className="Point",xe.parse=ui,xe.stringify=Si,xe.distanceLineSegmentSquared=Ji,xe.distanceSquared=Mr,xe.direction=bi,xe.Origin=Gr=new xe(0,0).ja(),xe.InfiniteTopLeft=To=new xe(-1/0,-1/0).ja(),xe.InfiniteBottomRight=is=new xe(1/0,1/0).ja(),xe.SixPoint=vo=new xe(6,6).ja(),xe.NoPoint=xr=new xe(NaN,NaN).ja(),xe.parse=ui,xe.stringify=Si,xe.distanceLineSegmentSquared=Ji,xe.distanceSquared=Mr,xe.direction=bi;function wn(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):we("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ei,pr,Ur,Er,Jr,yo,Qr;wn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},wn.prototype.h=function(a,y){return this.width=a,this.height=y,this},wn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},wn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},wn.prototype.copy=function(){var a=new wn;return a.width=this.width,a.height=this.height,a},Kt=wn.prototype,Kt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Kt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return Object.isFrozen(this)&&we("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ao(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new wn(x,E)}return new wn}function So(a){return a.width.toString()+" "+a.height.toString()}Kt.toString=function(){return"Size("+this.width+","+this.height+")"},Kt.D=function(a){return a instanceof wn?this.width===a.width&&this.height===a.height:!1},Kt.hi=function(a,y){return this.width===a&&this.height===y},Kt.Xa=function(a){return Ie.B(this.width,a.width)&&Ie.B(this.height,a.height)},Kt.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},Kt.w=function(){return isFinite(this.width)&&isFinite(this.height)},wn.alloc=function(){var a=No.pop();return a===void 0?new wn:a},wn.free=function(a){No.push(a)},wn.prototype.isReal=wn.prototype.w,wn.prototype.inflate=wn.prototype.Bc,wn.prototype.equalsApprox=wn.prototype.Xa,wn.prototype.equalTo=wn.prototype.hi,wn.prototype.equals=wn.prototype.D,wn.prototype.set=wn.prototype.set,wn.prototype.setTo=wn.prototype.sg;var No=[];wn.className="Size",wn.parse=Ao,wn.stringify=So,wn.ZeroSize=Ei=new wn(0,0).ja(),wn.OneSize=pr=new wn(1,1).ja(),wn.SixSize=Ur=new wn(6,6).ja(),wn.EightSize=Er=new wn(8,8).ja(),wn.TenSize=Jr=new wn(10,10).ja(),wn.InfiniteSize=yo=new wn(1/0,1/0).ja(),wn.NoSize=Qr=new wn(NaN,NaN).ja(),wn.parse=Ao,wn.stringify=So;function en(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof xe?(x=a.x,a=a.y,y instanceof xe?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof wn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):we("Incorrect second argument supplied to Rect constructor "+y)):we("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Kt=en.prototype,Kt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Kt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Uo(a,y,x){a.width=y,a.height=x}Kt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Kt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Kt.dd=function(a){return this.x=a.x,this.y=a.y,this},Kt.tA=function(a){return this.width=a.width,this.height=a.height,this},en.prototype.copy=function(){var a=new en;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Kt=en.prototype,Kt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Kt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return Object.isFrozen(this)&&we("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new en(x,E,z,nt)}return new en}function rs(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Kt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Kt.D=function(a){return a instanceof en?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Kt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Kt.Xa=function(a){return Ie.B(this.x,a.x)&&Ie.B(this.y,a.y)&&Ie.B(this.width,a.width)&&Ie.B(this.height,a.height)};function Fs(a,y){return Ie.$(a.x,y.x)&&Ie.$(a.y,y.y)&&Ie.$(a.width,y.width)&&Ie.$(a.height,y.height)}Kt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Kt.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},Kt.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Kt.offset=function(a,y){return this.x+=a,this.y+=y,this},Kt.Bc=function(a,y){return ro(this,y,a,y,a)},Kt.Co=function(a){return ro(this,a.top,a.right,a.bottom,a.left)},Kt.Fv=function(a){return ro(this,-a.top,-a.right,-a.bottom,-a.left)},Kt.Hz=function(a,y,x,b){return ro(this,a,y,x,b)};function ro(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Kt.Ex=function(a){return ua(this,a.x,a.y,a.width,a.height)},Kt.Uu=function(a,y,x,b){return ua(this,a,y,x,b)};function ua(a,y,x,b,E){var z=Math.max(a.x,y),nt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-nt),a}Kt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Kt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function Wl(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Kt.Ye=function(a){return Tr(this,a.x,a.y,0,0)},Kt.ed=function(a){return Tr(this,a.x,a.y,a.width,a.height)},Kt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Tr(this,a,y,x,b)};function Tr(a,y,x,b,E){var z=Math.min(a.x,y),nt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=y-z,a.height=x-nt,a}Kt.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 Wo(a,y,x,b,E,z,nt,rt){return nt===void 0&&(nt=0),rt===void 0&&(rt=0),a<=E&&E+nt<=a+x&&y<=z&&z+rt<=y+b}function Ll(a,y,x,b,E,z,nt,rt){return a>nt+E||E>x+a?!1:!(y>rt+z||z>b+y)}Kt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Kt.Mz=function(){return this.width===0&&this.height===0},en.alloc=function(){var a=wa.pop();return a===void 0?new en:a},en.allocAt=function(a,y,x,b){var E=wa.pop();return E===void 0?new en(a,y,x,b):E.h(a,y,x,b)},en.free=function(a){wa.push(a)},Ke.Object.defineProperties(en.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 xe(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new wn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new xe(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}}}),en.prototype.isEmpty=en.prototype.Mz,en.prototype.isReal=en.prototype.w,en.intersectsLineSegment=function(a,y,x,b,E,z,nt,rt){return Ie.Fx(a,y,x,b,E,z,nt,rt)},en.prototype.setSpot=en.prototype.yi,en.prototype.union=en.prototype.Kv,en.prototype.unionRect=en.prototype.ed,en.prototype.unionPoint=en.prototype.Ye,en.prototype.intersects=en.prototype.Vu,en.prototype.intersectsRect=en.prototype.Yc,en.prototype.intersect=en.prototype.Uu,en.prototype.intersectRect=en.prototype.Ex,en.prototype.grow=en.prototype.Hz,en.prototype.subtractMargin=en.prototype.Fv,en.prototype.addMargin=en.prototype.Co,en.prototype.inflate=en.prototype.Bc,en.prototype.offset=en.prototype.offset,en.prototype.contains=en.prototype.contains,en.prototype.containsRect=en.prototype.Re,en.prototype.containsPoint=en.prototype.ca,en.prototype.equalsApprox=en.prototype.Xa,en.prototype.equalTo=en.prototype.hi,en.prototype.equals=en.prototype.D,en.prototype.setSize=en.prototype.tA,en.prototype.setPoint=en.prototype.dd,en.prototype.set=en.prototype.set,en.prototype.setTo=en.prototype.sg;var gs=null,uu=null,wa=[];en.className="Rect",en.parse=Qa,en.stringify=rs,en.contains=Wo,en.intersects=Ll,en.ZeroRect=gs=new en(0,0,0,0).ja(),en.NoRect=uu=new en(NaN,NaN,NaN,NaN).ja(),en.parse=Qa,en.stringify=rs,en.contains=Wo,en.intersects=Ll;function Bi(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):we("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Bi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Bi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.copy=function(){var a=new Bi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Kt=Bi.prototype,Kt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Kt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return Object.isFrozen(this)&&we("cannot thaw constant: "+this),this._isFrozen=!1,this};function Gl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Bi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Bi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Bi(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Bi(x,E):new Bi(x,E,z,nt)}return new Bi}function hu(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Kt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Kt.D=function(a){return a instanceof Bi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Kt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Kt.Xa=function(a){return Ie.B(this.top,a.top)&&Ie.B(this.right,a.right)&&Ie.B(this.bottom,a.bottom)&&Ie.B(this.left,a.left)},Kt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Bi.alloc=function(){var a=Nu.pop();return a===void 0?new Bi:a},Bi.free=function(a){Nu.push(a)},Bi.prototype.isReal=Bi.prototype.w,Bi.prototype.equalsApprox=Bi.prototype.Xa,Bi.prototype.equalTo=Bi.prototype.hi,Bi.prototype.equals=Bi.prototype.D,Bi.prototype.set=Bi.prototype.set,Bi.prototype.setTo=Bi.prototype.sg;var ha=null,Xo=null,Nu=[];Bi.className="Margin",Bi.parse=Gl,Bi.stringify=hu,Bi.ZeroMargin=ha=new Bi(0,0,0,0).ja(),Bi.TwoMargin=Xo=new Bi(2,2,2,2).ja(),Bi.parse=Gl,Bi.stringify=hu;function ni(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Ki,ar,ur,yr,Kr,Oi,Pa,os,_o,oo,Js,Ca,Ds,ba,kl,qa,Fu,Zc,ac,fl,Ul,ja,lc,uc,Xc,Fo,Ud,hc,Du,Bu,ps,Bs,Jo,ss,cc,Ou;ni.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ni.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},ni.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ni.prototype.copy=function(){var a=new ni;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Kt=ni.prototype,Kt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Kt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return Object.isFrozen(this)&&we("cannot thaw constant: "+this),this._isFrozen=!1,this};function co(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function _r(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ki;if(a==="TopLeft")return ar;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return ur;if(a==="TopRight")return yr;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Kr;if(a==="Center")return Oi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Pa;if(a==="BottomLeft")return os;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return _o;if(a==="BottomRight")return oo;if(a==="TopSide")return Js;if(a==="LeftSide")return Ca;if(a==="RightSide")return Ds;if(a==="BottomSide")return ba;if(a==="TopBottomSides")return kl;if(a==="LeftRightSides")return qa;if(a==="TopLeftSides")return Fu;if(a==="TopRightSides")return Zc;if(a==="BottomLeftSides")return ac;if(a==="BottomRightSides")return fl;if(a==="NotTopSide")return Ul;if(a==="NotLeftSide")return ja;if(a==="NotRightSide")return lc;if(a==="NotBottomSide")return uc;if(a==="AllSides")return Xc;if(a==="Default")return Fo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new ni(x,E,z,nt)}return new ni}function Fr(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Kt.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(Ki)?"None":this.D(ar)?"TopLeft":this.D(ur)?"Top":this.D(yr)?"TopRight":this.D(Kr)?"Left":this.D(Oi)?"Center":this.D(Pa)?"Right":this.D(os)?"BottomLeft":this.D(_o)?"Bottom":this.D(oo)?"BottomRight":this.D(Js)?"TopSide":this.D(Ca)?"LeftSide":this.D(Ds)?"RightSide":this.D(ba)?"BottomSide":this.D(kl)?"TopBottomSides":this.D(qa)?"LeftRightSides":this.D(Fu)?"TopLeftSides":this.D(Zc)?"TopRightSides":this.D(ac)?"BottomLeftSides":this.D(fl)?"BottomRightSides":this.D(Ul)?"NotTopSide":this.D(ja)?"NotLeftSide":this.D(lc)?"NotRightSide":this.D(uc)?"NotBottomSide":this.D(Xc)?"AllSides":this.D(Fo)?"Default":"None"},Kt.D=function(a){return a instanceof ni?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Kt.gv=function(){return new ni(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Kt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Ud))a=Ca;else if(a.D(hc))a=Ds;else if(a.D(Du))a=Js;else if(a.D(Bu))a=ba;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Kt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Kt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Kt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Kt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Kt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ni.alloc=function(){var a=Os.pop();return a===void 0?new ni:a},ni.free=function(a){Os.push(a)},ni.prototype.isDefault=ni.prototype.Xb,ni.prototype.isNone=ni.prototype.ys,ni.prototype.isSide=ni.prototype.$c,ni.prototype.isNoSpot=ni.prototype.Mc,ni.prototype.isSpot=ni.prototype.sb,ni.prototype.includesSide=ni.prototype.Hf,ni.prototype.opposite=ni.prototype.gv,ni.prototype.equals=ni.prototype.D,ni.prototype.set=ni.prototype.set,ni.prototype.setTo=ni.prototype.sg;var Os=[];ni.className="Spot",ni.parse=_r,ni.stringify=Fr,ni.None=Ki=co(new ni(0,0,0,0),0).ja(),ni.Default=Fo=co(new ni(0,0,-1,0),-1).ja(),ni.TopLeft=ar=new ni(0,0,0,0).ja(),ni.TopCenter=ur=new ni(.5,0,0,0).ja(),ni.TopRight=yr=new ni(1,0,0,0).ja(),ni.LeftCenter=Kr=new ni(0,.5,0,0).ja(),ni.Center=Oi=new ni(.5,.5,0,0).ja(),ni.RightCenter=Pa=new ni(1,.5,0,0).ja(),ni.BottomLeft=os=new ni(0,1,0,0).ja(),ni.BottomCenter=_o=new ni(.5,1,0,0).ja(),ni.BottomRight=oo=new ni(1,1,0,0).ja(),ni.MiddleTop=ps=ur,ni.MiddleLeft=Bs=Kr,ni.MiddleRight=Jo=Pa,ni.MiddleBottom=ss=_o,ni.Top=Du=ur,ni.Left=Ud=Kr,ni.Right=hc=Pa,ni.Bottom=Bu=_o,ni.TopSide=Js=co(new ni(0,0,1,1),1).ja(),ni.LeftSide=Ca=co(new ni(0,0,1,2),1).ja(),ni.RightSide=Ds=co(new ni(0,0,1,4),1).ja(),ni.BottomSide=ba=co(new ni(0,0,1,8),1).ja(),ni.TopBottomSides=kl=co(new ni(0,0,1,9),1).ja(),ni.LeftRightSides=qa=co(new ni(0,0,1,6),1).ja(),ni.TopLeftSides=Fu=co(new ni(0,0,1,3),1).ja(),ni.TopRightSides=Zc=co(new ni(0,0,1,5),1).ja(),ni.BottomLeftSides=ac=co(new ni(0,0,1,10),1).ja(),ni.BottomRightSides=fl=co(new ni(0,0,1,12),1).ja(),ni.NotTopSide=Ul=co(new ni(0,0,1,14),1).ja(),ni.NotLeftSide=ja=co(new ni(0,0,1,13),1).ja(),ni.NotRightSide=lc=co(new ni(0,0,1,11),1).ja(),ni.NotBottomSide=uc=co(new ni(0,0,1,7),1).ja(),ni.AllSides=Xc=co(new ni(0,0,1,15),1).ja(),cc=new ni(.156,.156).ja(),Ou=new ni(.844,.844).ja(),ni.parse=_r,ni.stringify=Fr;function pi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}pi.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},pi.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},pi.prototype.copy=function(){var a=new pi;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},pi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},pi.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},pi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},pi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},pi.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},pi.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,nt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*nt+this.m21*a+this.dx,this.dy=this.m12*nt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},pi.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},pi.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=nt,this.translate(-y,-x),this},Kt=pi.prototype,Kt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Kt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Kt.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)},Kt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Kt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Kt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,nt=this.m12,rt=this.m21,st=this.m22,ht=this.dx,dt=this.dy,vt=y*z+x*rt+ht,Ft=y*nt+x*st+dt,Wt=b*z+x*rt+ht,Ht=b*nt+x*st+dt;return x=y*z+E*rt+ht,y=y*nt+E*st+dt,z=b*z+E*rt+ht,b=b*nt+E*st+dt,E=Math.min(vt,Wt),vt=Math.max(vt,Wt),Wt=Math.min(Ft,Ht),Ft=Math.max(Ft,Ht),E=Math.min(E,x),vt=Math.max(vt,x),Wt=Math.min(Wt,y),Ft=Math.max(Ft,y),E=Math.min(E,z),vt=Math.max(vt,z),Wt=Math.min(Wt,b),Ft=Math.max(Ft,b),a.h(E,Wt,vt-E,Ft-Wt),a},pi.alloc=function(){var a=Qo.pop();return a===void 0?new pi:a},pi.free=function(a){Qo.push(a)},pi.prototype.transformRect=pi.prototype.pp,pi.prototype.transformPoint=pi.prototype.Ga,pi.prototype.scale=pi.prototype.scale,pi.prototype.translate=pi.prototype.translate,pi.prototype.rotate=pi.prototype.rotate,pi.prototype.invert=pi.prototype.Vj,pi.prototype.multiplyInverted=pi.prototype.bv,pi.prototype.multiply=pi.prototype.multiply,pi.prototype.reset=pi.prototype.reset,pi.prototype.isIdentity=pi.prototype.ws,pi.prototype.equals=pi.prototype.D,pi.prototype.setTransform=pi.prototype.setTransform,pi.prototype.set=pi.prototype.set;var Qo=[];pi.className="Transform",pi.xF="54a702f3e53909c447824c6706603faf4c";var Ie={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ie.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ie.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,nt){if(0>=E&&(E=1e-6),a<x)var rt=a,st=x;else rt=x,st=a;if(y<b)var ht=y,dt=b;else ht=b,dt=y;if(a===x)return ht<=nt&&nt<=dt&&a-E<=z&&z<=a+E;if(y===b)return rt<=z&&z<=st&&y-E<=nt&&nt<=y+E;if(st+=E,rt-=E,rt<=z&&z<=st&&(dt+=E,ht-=E,ht<=nt&&nt<=dt))if(st-rt>dt-ht)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=nt&&nt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-E<=z&&z<=nt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,nt,rt,st,ht,dt,vt){if(Ie.Yb(a,y,nt,rt,vt,x,b)&&Ie.Yb(a,y,nt,rt,vt,E,z))return Ie.Yb(a,y,nt,rt,vt,ht,dt);var Ft=(a+x)/2,Wt=(y+b)/2,Ht=(x+E)/2,ne=(b+z)/2;E=(E+nt)/2,z=(z+rt)/2,b=(Ft+Ht)/2,x=(Wt+ne)/2,Ht=(Ht+E)/2,ne=(ne+z)/2;var ve=(b+Ht)/2,fe=(x+ne)/2;return Ie.cs(a,y,Ft,Wt,b,x,ve,fe,st,ht,dt,vt)||Ie.cs(ve,fe,Ht,ne,E,z,nt,rt,st,ht,dt,vt)},ax:function(a,y,x,b,E,z,nt,rt,st){var ht=(x+E)/2,dt=(b+z)/2;return st.h((((a+x)/2+ht)/2+(ht+(E+nt)/2)/2)/2,(((y+b)/2+dt)/2+(dt+(z+rt)/2)/2)/2),st},My:function(a,y,x,b,E,z,nt,rt){var st=(x+E)/2,ht=(b+z)/2;return bi(((a+x)/2+st)/2,((y+b)/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t-4*b*(2*x*a*z/(ht*ht)-2*y*z/(ht*ht)+z*z/(ht*ht)+E*E/(Ft*Ft)-1+(y-x*a)*(y-x*a)/(ht*ht)),0>Ft)return st;Ft=Math.sqrt(Ft),ht=(-rt+Ft)/(2*b),dt(ht,x*ht-x*a+y),Ft=(-rt-Ft)/(2*b),dt(Ft,x*Ft-x*a+y)}return st},Ff:function(a,y,x,b,E,z,nt,rt,st){var ht=1e21,dt=a,vt=y;if(Ie.Ve(a,y,a,b,E,z,nt,rt,st)){var Ft=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z);Ft<ht&&(ht=Ft,dt=st.x,vt=st.y)}return Ie.Ve(x,y,x,b,E,z,nt,rt,st)&&(Ft=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z),Ft<ht&&(ht=Ft,dt=st.x,vt=st.y)),Ie.Ve(a,y,x,y,E,z,nt,rt,st)&&(y=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z),y<ht&&(ht=y,dt=st.x,vt=st.y)),Ie.Ve(a,b,x,b,E,z,nt,rt,st)&&(a=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z),a<ht&&(ht=a,dt=st.x,vt=st.y)),st.h(dt,vt),1e21>ht},us:function(a,y,x){return Ie.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,nt,rt){var st=a+x,ht=y+b;return E===nt?(z<rt?(nt=z,z=rt):nt=rt,a<=E&&E<=st&&nt<=ht&&z>=y):z===rt?(E<nt?(rt=E,E=nt):rt=nt,y<=z&&z<=ht&&rt<=st&&E>=a):!!(Wo(a,y,x,b,E,z)||Wo(a,y,x,b,nt,rt)||Ie.Rl(a,y,st,y,E,z,nt,rt)||Ie.Rl(st,y,st,ht,E,z,nt,rt)||Ie.Rl(st,ht,a,ht,E,z,nt,rt)||Ie.Rl(a,ht,a,y,E,z,nt,rt))},Rl:function(a,y,x,b,E,z,nt,rt){return a===x&&y===b&&E===nt&&z===rt?a===E&&y===z:0>=Ie.Fl(a,y,x,b,E,z)*Ie.Fl(a,y,x,b,nt,rt)&&0>=Ie.Fl(E,z,nt,rt,a,y)*Ie.Fl(E,z,nt,rt,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var nt=Math.PI;z||(b*=nt/180,E*=nt/180);var rt=b>E?-1:1;z=[];var st=nt/2,ht=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return st=ht+rt*Math.min(b,st),rt=a+x*Math.cos(ht),ht=y+x*Math.sin(ht),a+=x*Math.cos(st),y+=x*Math.sin(st),x=(rt+a)/2,st=(ht+y)/2,z.push([rt,ht,x,st,x,st,a,y]),z;for(;1e-5<b;)E=ht+rt*Math.min(b,st),z.push(Ie.Vy(x,ht,E,a,y)),b-=Math.abs(E-ht),ht=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,nt=a*Math.cos(z),rt=a*Math.sin(z),st=-rt,ht=nt*nt+st*st,dt=ht+nt*nt+st*rt;return ht=4/3*(Math.sqrt(2*ht*dt)-dt)/(nt*rt-st*nt),rt=nt-ht*st,nt=st+ht*nt,st=-nt,ht=z+y,z=Math.cos(ht),ht=Math.sin(ht),[b+a*Math.cos(y),E+a*Math.sin(y),b+rt*z-nt*ht,E+rt*ht+nt*z,b+rt*z-st*ht,E+rt*ht+st*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,nt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var rt=x;return x+E-a<E/2&&(rt=x+E),a=b,b+z-y<z/2&&(a=b+z),nt.h(rt,a),nt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var nt=1,rt=0;else nt=0,rt=1;var st=nt===0?a:y,ht=nt===0?x:b;return(nt===0?E:z)&&(ht=-ht),nt=rt,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),Ie.az(st,nt===0?a:y,ht,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var nt=y*b,rt=-z+nt,st=-z+Math.sqrt(a*a+nt*nt);y=rt;for(var ht=0;9999999999>ht&&(y=.5*(rt+st),!(y===rt||y===st));++ht){var dt=a/(y+E),vt=nt/(y+z);if(dt=dt*dt+vt*vt-1,0<dt)rt=y;else if(0>dt)st=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Qn,um:new Qn,Mf:new Qn,Nf:0,vm:100};Ie.za=Ie.AA;function mn(a){di(this),this.l=2,a===void 0&&(a=mn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===mn.o?this.ee=new cn:(mn.V===null&&(mn.V=new cn().freeze()),this.ee=mn.V),this.aq=this.ee.Ja,this.Ip=new en().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ar,this.gg=oo,this.Rk=this.Sk=NaN,this.Uf=un}mn.prototype.copy=function(){var a=new mn;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===mn.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},mn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},mn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==mn.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},mn.prototype.ka=function(){if(Object.isFrozen(this)&&we("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==mn.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},mn.prototype.Xa=function(a){if(!(a instanceof mn))return!1;if(this.type!==a.type)return this.type===mn.j&&a.type===mn.o?$a(this,a):a.type===mn.j&&this.type===mn.o?$a(a,this):!1;if(this.type===mn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Ie.B(this.startX,a.startX)&&Ie.B(this.startY,a.startY)&&Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)};function $a(a,y){return a.type!==mn.j||y.type!==mn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ie.B(a.startX,y.startX)&&Ie.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Ar&&Ie.B(a.endX,y.endX)&&Ie.B(a.endY,y.endY))))}mn.ia=function(a){return a.toString()},mn.prototype.qb=function(a){a.classType===mn&&(this.type=a)},mn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case mn.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 mn.u:var y=new en(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 mn.F:if(y=new en(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 mn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},mn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},mn.parse=function(a,y){function x(){return ne>=Me-1?!0:ht[ne+1].match(De)!==null}function b(){return ne++,ht[ne]}function E(mi){var fi=parseFloat(b()),lr=parseFloat(b());ve===ve.toLowerCase()&&(fi=ke.x+fi,lr=ke.y+lr),mi.h(fi,lr)}function z(){return E(ke),ke}function nt(){return E(Ce),Ce}function rt(){var mi=fe.toLowerCase();return mi!=="c"&&mi!=="s"&&mi!=="q"&&mi!=="t"?ke:new xe(2*ke.x-Ce.x,2*ke.y-Ce.y)}y===void 0&&(y=!1);var st=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(st,"$1 $2"),a=a.replace(st,"$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 ht=a.split(" ");for(a=0;a<ht.length;a++){var dt=ht[a];if(dt.match(/(\.[0-9]*)(\.)/gm)!==null){st=Fn();for(var vt="",Ft=!1,Wt=0;Wt<dt.length;Wt++){var Ht=dt[Wt];Ht!=="."||Ft?Ht==="."?(st.push(vt),vt="."):vt+=Ht:(Ft=!0,vt+=Ht)}for(st.push(vt),ht.splice(a,1),dt=0;dt<st.length;dt++)ht.splice(a+dt,0,st[dt]);a+=st.length-1,jn(st)}}var ne=-1,ve="",fe="";st=new xe(0,0);var Ce=new xe(0,0),ke=new xe(0,0),Me=ht.length;a=N1(null),Ft=vt=dt=!1,Wt=!0,Ht=null;for(var De=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ne>=Me-1);)if(fe=ve,ve=b(),ve!=="")switch(ve.toUpperCase()){case"X":Wt=!0,vt=dt=!1;break;case"M":for(Ht=z(),a.mc===null||Wt===!0?(Ef(a,Ht.x,Ht.y,dt,!vt,Ft),Wt=!1):a.moveTo(Ht.x,Ht.y),st.assign(ke);!x();)Ht=z(),a.lineTo(Ht.x,Ht.y);break;case"L":for(;!x();)Ht=z(),a.lineTo(Ht.x,Ht.y);break;case"H":for(;!x();)ke=new xe((ve===ve.toLowerCase()?ke.x:0)+parseFloat(b()),ke.y),a.lineTo(ke.x,ke.y);break;case"V":for(;!x();)ke=new xe(ke.x,(ve===ve.toLowerCase()?ke.y:0)+parseFloat(b())),a.lineTo(ke.x,ke.y);break;case"C":for(;!x();){Ht=new xe,E(Ht);var Ve=nt(),Ln=z();ih(a,Ht.x,Ht.y,Ve.x,Ve.y,Ln.x,Ln.y)}break;case"S":for(;!x();)Ht=rt(),Ve=nt(),Ln=z(),ih(a,Ht.x,Ht.y,Ve.x,Ve.y,Ln.x,Ln.y);break;case"Q":for(;!x();)Ht=nt(),Ve=z(),Rm(a,Ht.x,Ht.y,Ve.x,Ve.y);break;case"T":for(;!x();)Ce=Ht=rt(),Ve=z(),Rm(a,Ht.x,Ht.y,Ve.x,Ve.y);break;case"B":for(;!x();){Ht=parseFloat(b()),Ve=parseFloat(b()),Ln=parseFloat(b());var Un=parseFloat(b()),On=parseFloat(b()),gn=On,sn=!1;x()||(gn=parseFloat(b()),x()||(sn=parseFloat(b())!==0)),ve===ve.toLowerCase()&&(Ln+=ke.x,Un+=ke.y),a.arcTo(Ht,Ve,Ln,Un,On,gn,sn)}break;case"A":for(;!x();)Ht=Math.abs(parseFloat(b())),Ve=Math.abs(parseFloat(b())),Ln=parseFloat(b()),On=Un=!1,sn=gn=0,gn=b(),gn.length===1?(Un=!!parseFloat(gn),On=!!parseFloat(b()),gn=parseFloat(b())):gn.length===2?(Un=!!parseFloat(gn[0]),On=!!parseFloat(gn[1]),gn=parseFloat(b())):(Un=!!parseFloat(gn[0]),On=!!parseFloat(gn[1]),gn=parseFloat(gn.slice(2))),sn=parseFloat(b()),ve===ve.toLowerCase()&&(gn=ke.x+gn,sn=ke.y+sn),ke.h(gn,sn),Cx(a,Ht,Ve,Ln,Un,On,gn,sn);break;case"Z":Px(a),ke.assign(st);break;case"F":for(Ht="",Ve=1;ht[ne+Ve];)if(ht[ne+Ve]==="0")Ft=!0,Ve++;else if(ht[ne+Ve].match(/[Uu]/)!==null)Ve++;else if(ht[ne+Ve].match(De)===null)Ve++;else{Ht=ht[ne+Ve];break}Ht.match(/[Mm]/)?dt=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ht="",Ve=1;ht[ne+Ve];)if(ht[ne+Ve].match(/[Ff]/)!==null)Ve++;else if(ht[ne+Ve].match(De)===null)Ve++;else{Ht=ht[ne+Ve];break}Ht.match(/[Mm]/)?vt=!0:a.mc.isShadowed=!1}if(st=a.os,jm=a,y)for(y=st.figures.iterator;y.next();)y.value.isFilled=!0;return st},mn.Ha=function(a,y){for(var x=a.length,b=xe.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}xe.free(b)},mn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===mn.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},mn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===mn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var nt=b[z];nt._isInvalidBounds=!1,nt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),_l(this,a,!1),Tr(a,0,0,0,0),a.freeze()},mn.prototype.ix=function(){var a=new en;return _l(this,a,!0),a};function _l(a,y,x){switch(a.type){case mn.j:case mn.u:case mn.F:x?y.h(a.od,a.pd,0,0):Tr(y,a.od,a.pd,0,0),Tr(y,a.Dc,a.Ec,0,0);break;case mn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Tr(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,rt=nt.length,st=z.startX,ht=z.startY,dt=0;dt<rt;dt++){var vt=nt[dt];switch(vt.type){case Ar:case wo:st=vt.endX,ht=vt.endY,Tr(y,st,ht,0,0);break;case Ho:Ie.Dl(st,ht,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.5,y),st=vt.endX,ht=vt.endY;break;case da:Ie.iv(st,ht,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,y),st=vt.endX,ht=vt.endY;break;case so:case Aa:var Ft=vt.type===so?$s(vt,z):za(vt,z,st,ht),Wt=Ft.length;if(Wt===0){st=vt.type===so?vt.centerX:vt.endX,ht=vt.type===so?vt.centerY:vt.endY,Tr(y,st,ht,0,0);break}vt=null;for(var Ht=0;Ht<Wt;Ht++)vt=Ft[Ht],Ie.Dl(vt[0],vt[1],vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,y);vt!==null&&(st=vt[6],ht=vt[7]);break;default:we("Unknown Segment type: "+vt.type)}}}break;default:we("Unknown Geometry type: "+a.type)}}mn.prototype.normalize=function(){this._isFrozen&&je(this);var a=this.ix();return this.offset(-a.x,-a.y),new xe(-a.x,-a.y)},mn.prototype.offset=function(a,y){return this._isFrozen&&je(this),this.transform(1,0,0,1,a,y),this},mn.prototype.scale=function(a,y){return this._isFrozen&&je(this),this.transform(a,0,0,y,0,0),this},mn.prototype.rotate=function(a,y,x){this._isFrozen&&je(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=pi.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),pi.free(b),this},Kt=mn.prototype,Kt.transform=function(a,y,x,b,E,z){switch(this.type){case mn.j:case mn.u:case mn.F:var nt=this.od,rt=this.pd;this.od=nt*a+rt*x+E,this.pd=nt*y+rt*b+z,nt=this.Dc,rt=this.Ec,this.Dc=nt*a+rt*x+E,this.Ec=nt*y+rt*b+z;break;case mn.o:for(var st=this.figures.s,ht=st.length,dt=0;dt<ht;dt++){var vt=st[dt];nt=vt.startX,rt=vt.startY,vt.startX=nt*a+rt*x+E,vt.startY=nt*y+rt*b+z,vt=vt.segments.s;for(var Ft=vt.length,Wt=0;Wt<Ft;Wt++){var Ht=vt[Wt];switch(Ht.type){case Ar:case wo:nt=Ht.endX,rt=Ht.endY,Ht.endX=nt*a+rt*x+E,Ht.endY=nt*y+rt*b+z;break;case Ho:nt=Ht.point1X,rt=Ht.point1Y,Ht.point1X=nt*a+rt*x+E,Ht.point1Y=nt*y+rt*b+z,nt=Ht.point2X,rt=Ht.point2Y,Ht.point2X=nt*a+rt*x+E,Ht.point2Y=nt*y+rt*b+z,nt=Ht.endX,rt=Ht.endY,Ht.endX=nt*a+rt*x+E,Ht.endY=nt*y+rt*b+z;break;case da:nt=Ht.point1X,rt=Ht.point1Y,Ht.point1X=nt*a+rt*x+E,Ht.point1Y=nt*y+rt*b+z,nt=Ht.endX,rt=Ht.endY,Ht.endX=nt*a+rt*x+E,Ht.endY=nt*y+rt*b+z;break;case so:nt=Ht.centerX,rt=Ht.centerY,Ht.centerX=nt*a+rt*x+E,Ht.centerY=nt*y+rt*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Ht.startAngle+=nt),0>a&&(Ht.startAngle=180-Ht.startAngle,Ht.sweepAngle=-Ht.sweepAngle),0>b&&(Ht.startAngle=-Ht.startAngle,Ht.sweepAngle=-Ht.sweepAngle),Ht.radiusX*=Math.sqrt(a*a+x*x),Ht.radiusY!==void 0&&(Ht.radiusY*=Math.sqrt(y*y+b*b));break;case Aa:if(nt=Ht.endX,rt=Ht.endY,Ht.endX=nt*a+rt*x+E,Ht.endY=nt*y+rt*b+z,Ht.radiusX===0||Ht.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Ht.xAxisRotation+=nt),0>a&&(Ht.xAxisRotation=180-Ht.xAxisRotation,Ht.isClockwiseArc=!Ht.isClockwiseArc),0>b&&(Ht.xAxisRotation=-Ht.xAxisRotation,Ht.isClockwiseArc=!Ht.isClockwiseArc),Ht.radiusX*=Math.sqrt(a*a+x*x),Ht.radiusY*=Math.sqrt(y*y+b*b);break;default:we("Unknown Segment type: "+Ht.type)}}}}return this._isInvalidBounds=!0,this},Kt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case mn.j:return Ie.Yb(x,b,E,z,y,a.x,a.y);case mn.u:var nt=en.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=nt.ca(a),en.free(nt),a;case mn.F:nt=Math.min(x,E)-y;var rt=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),rt=a.y-(rt+y),1>=nt*nt/(x*x)+rt*rt/(y*y));case mn.o:return ca(this,a,y,!0,!1);default:return!1}};function ca(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,rt=0,st,ht,dt,vt,Ft=a.figures.s,Wt=Ft.length,Ht=0;Ht<Wt;Ht++){var ne=Ft[Ht],ve=!ne.isEvenOdd;if(ne.isFilled){if(b&&ne.ca(z,y,x))return!0;var fe=ne.segments;st=ne.startX,ht=ne.startY;for(var Ce=st,ke=ht,Me=fe.s,De=0;De<=fe.length;De++){var Ve=void 0;if(De!==fe.length){Ve=Me[De];var Ln=Ve.type;a=Ve.endX,vt=Ve.endY}else Ln=Ar,a=Ce,vt=ke;switch(Ln){case wo:if(Ce=Qs(z,y,nt,y,st,ht,Ce,ke),isNaN(Ce))return!0;rt+=Ce,Ce=a,ke=vt;break;case Ar:if(st=Qs(z,y,nt,y,st,ht,a,vt),isNaN(st))return!0;rt+=st;break;case Ho:dt=Ie.Fo(st,ht,Ve.point1X,Ve.point1Y,Ve.point2X,Ve.point2Y,a,vt,nt,y,z,y,.5),rt+=dt;break;case da:dt=Ie.Fo(st,ht,(st+2*Ve.point1X)/3,(ht+2*Ve.point1Y)/3,(2*Ve.point1X+a)/3,(2*Ve.point1Y+vt)/3,a,vt,nt,y,z,y,.5),rt+=dt;break;case so:case Aa:Ln=Ve.type===so?$s(Ve,ne):za(Ve,ne,st,ht);var Un=Ln.length;if(Un===0){if(st=Qs(z,y,nt,y,st,ht,Ve.type===so?Ve.centerX:Ve.endX,Ve.type===so?Ve.centerY:Ve.endY),isNaN(st))return!0;rt+=st;break}Ve=null;for(var On=0;On<Un;On++){if(Ve=Ln[On],On===0){if(dt=Qs(z,y,nt,y,st,ht,Ve[0],Ve[1]),isNaN(dt))return!0;rt+=dt}dt=Ie.Fo(Ve[0],Ve[1],Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],nt,y,z,y,.5),rt+=dt}Ve!==null&&(a=Ve[6],vt=Ve[7]);break;default:we("Unknown Segment type: "+Ve.type)}st=a,ht=vt}if(ve){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(ne.ca(z,y,E?x:x+2))return!0}return!1}function Qs(a,y,x,b,E,z,nt,rt){if(Ie.Yb(E,z,nt,rt,.05,a,y))return NaN;var st=(a-x)*(z-rt);if(st===0)return 0;var ht=((a*b-y*x)*(E-nt)-(a-x)*(E*rt-z*nt))/st;if(y=(a*b-y*x)*(z-rt)/st,ht>=a)return 0;if((E>nt?E-nt:nt-E)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(E<nt){if(ht<E||ht>nt)return 0}else if(ht<nt||ht>E)return 0;return 0<st?1:-1}function gl(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Kt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new xe),this.type===mn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,rt=0;rt<E;rt++){var st=b[rt],ht=st.length;for(a=0;a<ht;a++){var dt=st[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,x=x[rt],rt=x[2*a],E=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*b,E+(x[2*a+3]-E)*b),y;nt+=dt}}return y},Kt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===mn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,nt=0;nt<b;nt++){var rt=x[nt],st=rt.length;for(a=0;a<st;a++){var ht=rt[a];if(z+ht>=E)return E=y[nt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=ht}}return NaN},Kt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===mn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,rt=0;rt<E;rt++){var st=b[rt],ht=st.length;for(a=0;a<ht;a++){var dt=st[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,dt=x[rt],x=dt[2*a],rt=dt[2*a+1],E=dt[2*a+2],a=dt[2*a+3],y[0]=x+(E-x)*b,y[1]=rt+(a-rt)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-rt)?0:1>Math.abs(E-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=E-x?0:180:180*Math.atan2(a-rt,E-x)/Math.PI,y;nt+=dt}}return y},Kt.xx=function(a){if(this.type===mn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var nt=x;b=E}else nt=E,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===E)return y<b?nt=y:(nt=b,b=y),z<=nt?nt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-nt);nt=(b-y)*(b-y)+(E-x)*(E-x);var rt=xe.alloc();return Ie.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,xe.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===mn.u){nt=this.startX,rt=this.startY;var st=this.endX;if(E=this.endY,nt!==st||rt!==E){y=st-nt,x=E-rt,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),st),a=Math.min(Math.max(a,rt),E),nt=Math.abs(b-nt),st=Math.abs(b-st),rt=Math.abs(a-rt),E=Math.abs(a-E);var ht=Math.min(nt,st,rt,E);if(ht===rt)return b/z;if(ht===st)return(y+a)/z;if(ht===E)return(2*y+x-b)/z;if(ht===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=xe.alloc(),E=1/0,rt=nt=0,st=y.length;for(var dt=ht=0,vt=0;vt<st;vt++)for(var Ft=y[vt],Wt=x[vt],Ht=Ft.length,ne=0;ne<Ht;ne+=2){var ve=Ft[ne],fe=Ft[ne+1];if(ne!==0){Ie.qh(ht,dt,ve,fe,a.x,a.y,b);var Ce=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ce<E&&(E=Ce,nt=rt,nt+=Math.sqrt((b.x-ht)*(b.x-ht)+(b.y-dt)*(b.y-dt))),rt+=Wt[(ne-2)/2]}ht=ve,dt=fe}return xe.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function cu(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===mn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===mn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===mn.F){var z=new xo;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new or(so);if(nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(a.startX+a.endX)/2,nt.centerY=(a.startY+a.endY)/2,nt.radiusX=Math.abs(a.startX-a.endX)/2,nt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(nt),a=$s(nt,z),E=a.length,E===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=z.startX,z=z.startY;for(var rt=0;rt<E;rt++){var st=a[rt];Ie.Qe(nt,z,st[2],st[3],st[4],st[5],st[6],st[7],.5,b),nt=st[6],z=st[7]}}y.push(b),x.push(Jc(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),nt=E.startX,z=E.startY,rt=nt,st=z;for(var ht=E.segments.s,dt=ht.length,vt=0;vt<dt;vt++){var Ft=ht[vt];switch(Ft.type){case wo:4<=b.length&&(y.push(b),x.push(Jc(b))),b=[],b.push(Ft.endX),b.push(Ft.endY),nt=Ft.endX,z=Ft.endY,rt=nt,st=z;break;case Ar:b.push(Ft.endX),b.push(Ft.endY),nt=Ft.endX,z=Ft.endY;break;case Ho:Ie.Qe(nt,z,Ft.point1X,Ft.point1Y,Ft.point2X,Ft.point2Y,Ft.endX,Ft.endY,.5,b),nt=Ft.endX,z=Ft.endY;break;case da:Ie.ep(nt,z,Ft.point1X,Ft.point1Y,Ft.endX,Ft.endY,.5,b),nt=Ft.endX,z=Ft.endY;break;case so:var Wt=$s(Ft,E),Ht=Wt.length;if(Ht===0){b.push(Ft.centerX),b.push(Ft.centerY),nt=Ft.centerX,z=Ft.centerY;break}for(var ne=0;ne<Ht;ne++){var ve=Wt[ne];Ie.Qe(nt,z,ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,b),nt=ve[6],z=ve[7]}break;case Aa:if(Wt=za(Ft,E,nt,z),Ht=Wt.length,ne=Ft.endX,ve=Ft.endY,Ht===0){b.push(ne),b.push(ve),nt=ne,z=ve;break}for(ne=0;ne<Ht;ne++)ve=Wt[ne],Ie.Qe(nt,z,ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,b),nt=ve[6],z=ve[7];break;default:we("Segment not of valid type: "+Ft.type)}Ft.isClosed&&(b.push(rt),b.push(st))}4<=b.length&&(y.push(b),x.push(Jc(b)))}}}function Jc(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var nt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(Mr(x,b,nt,rt))),x=nt,b=rt}return y}Kt.add=function(a){return this.ee.add(a),this},Kt.pm=function(a,y,x,b,E,z,nt,rt){return this._isFrozen&&je(this),this.fg=new ni(a,y,E,z).freeze(),this.gg=new ni(x,b,nt,rt).freeze(),this},Ke.Object.defineProperties(mn.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 cu(this),this.tk}},flattenedLengths:{get:function(){return cu(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===mn.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===mn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,nt=0;nt<z;nt++)a+=E[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&je(this,a),this.na=a,a===mn.o?this.ee=new cn:(mn.V===null&&(mn.V=new cn().freeze()),this.ee=mn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&je(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&je(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&je(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&je(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&je(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&je(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&je(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&je(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),mn.prototype.setSpots=mn.prototype.pm,mn.prototype.add=mn.prototype.add,mn.prototype.getFractionForPoint=mn.prototype.xx,mn.prototype.getPointAndAngleAlongPath=mn.prototype.Qu,mn.prototype.getAngleAlongPath=mn.prototype.wx,mn.prototype.getPointAlongPath=mn.prototype.Pu,mn.prototype.containsPoint=mn.prototype.ca,mn.prototype.transform=mn.prototype.transform,mn.prototype.rotate=mn.prototype.rotate,mn.prototype.scale=mn.prototype.scale,mn.prototype.offset=mn.prototype.offset,mn.prototype.normalize=mn.prototype.normalize,mn.prototype.computeBoundsWithoutOrigin=mn.prototype.ix,mn.prototype.equalsApprox=mn.prototype.Xa,mn.className="Geometry",mn.j=new an(mn,"Line",0),mn.u=new an(mn,"Rectangle",1),mn.F=new an(mn,"Ellipse",2),mn.o=new an(mn,"Path",3),mn.V=null,mn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",mn.className="Geometry",mn.stringify=mn.ia,mn.fillPath=mn.nb,mn.parse=mn.parse,mn.Line=mn.j,mn.Rectangle=mn.u,mn.Ellipse=mn.F,mn.Path=mn.o;function xo(a,y,x,b,E){di(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new cn,this.sr=this.pl.Ja,this.fw=null}xo.prototype.copy=function(){var a=new xo;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Kt=xo.prototype,Kt.Xa=function(a){if(!(a instanceof xo&&Ie.B(this.startX,a.startX)&&Ie.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},Kt.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},Kt.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},Kt.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},Kt.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},Kt.add=function(a){return this.pl.add(a),this},Kt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,rt=this.segments.s,st=rt.length,ht=0;ht<st;ht++){var dt=rt[ht];switch(dt.type){case wo:z=dt.endX,nt=dt.endY,b=dt.endX,E=dt.endY;break;case Ar:if(Ie.Yb(b,E,dt.endX,dt.endY,x,a,y))return!0;b=dt.endX,E=dt.endY;break;case Ho:if(Ie.cs(b,E,dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case da:if(Ie.jv(b,E,dt.point1X,dt.point1Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case so:case Aa:var vt=dt.type===so?$s(dt,this):za(dt,this,b,E),Ft=vt.length,Wt=dt.type===so?dt.centerX:dt.endX,Ht=dt.type===so?dt.centerY:dt.endY;if(Ft===0){if(Ie.Yb(b,E,Wt,Ht,x,a,y))return!0;b=Wt,E=Ht;break}for(Wt=null,Ht=0;Ht<Ft;Ht++)if(Wt=vt[Ht],Ht===0&&Ie.Yb(b,E,Wt[0],Wt[1],x,a,y)||Ie.cs(Wt[0],Wt[1],Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,a,y,x))return!0;Wt!==null&&(b=Wt[6],E=Wt[7]);break;default:we("Unknown Segment type: "+dt.type)}if(dt.isClosed&&(b!==z||E!==nt)&&Ie.Yb(b,E,z,nt,x,a,y))return!0}return!1},Ke.Object.defineProperties(xo.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&&je(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&je(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&je(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&je(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&je(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&je(this,a),this.pl=a,this._isInvalidBounds=!0}}}),xo.prototype.add=xo.prototype.add,xo.prototype.equalsApprox=xo.prototype.Xa,xo.className="PathFigure";function or(a,y,x,b,E,z,nt,rt){di(this),a===void 0&&(a=Ar),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),nt===void 0&&(nt=0),a===Aa?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===so&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===so&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}or.prototype.copy=function(){var a=new or;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},Kt=or.prototype,Kt.Xa=function(a){if(!(a instanceof or)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case wo:case Ar:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY);case Ho:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.point1X,a.point1X)&&Ie.B(this.point1Y,a.point1Y)&&Ie.B(this.point2X,a.point2X)&&Ie.B(this.point2Y,a.point2Y);case da:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.point1X,a.point1X)&&Ie.B(this.point1Y,a.point1Y);case so:return Ie.B(this.startAngle,a.startAngle)&&Ie.B(this.sweepAngle,a.sweepAngle)&&Ie.B(this.centerX,a.centerX)&&Ie.B(this.centerY,a.centerY)&&Ie.B(this.radiusX,a.radiusX)&&Ie.B(this.radiusY,a.radiusY);case Aa:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ie.B(this.xAxisRotation,a.xAxisRotation)&&Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.radiusX,a.radiusX)&&Ie.B(this.radiusY,a.radiusY);default:return!1}},Kt.qb=function(a){a.classType===or&&(this.type=a)},Kt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case wo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ar:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ho: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 da: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 so: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 Aa: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":"")},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return this._isFrozen=!1,this},Kt.close=function(){return this.isClosed=!0,this};function $s(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Ie.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=pi.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),mn.Ha(z,nt),pi.free(nt)}for(x=z.length,b=0;b<x;b++)nt=z[b],nt[0]+=y,nt[1]+=E,nt[2]+=y,nt[3]+=E,nt[4]+=y,nt[5]+=E,nt[6]+=y,nt[7]+=E;return a.ae=z,a.ae}function za(a,y,x,b){function E(ne,ve,fe,Ce){return(ne*Ce<ve*fe?-1:1)*Math.acos((ne*fe+ve*Ce)/(Math.sqrt(ne*ne+ve*ve)*Math.sqrt(fe*fe+Ce*Ce)))}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 nt=Math.PI/180*a.Ne,rt=a.isLargeArc,st=a.isClockwiseArc,ht=a.Dc,dt=a.Ec,vt=Math.cos(nt),Ft=Math.sin(nt),Wt=vt*(x-ht)/2+Ft*(b-dt)/2;nt=-Ft*(x-ht)/2+vt*(b-dt)/2;var Ht=Wt*Wt/(y*y)+nt*nt/(z*z);return 1<Ht&&(y*=Math.sqrt(Ht),z*=Math.sqrt(Ht)),Ht=(rt===st?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*Wt*Wt)/(y*y*nt*nt+z*z*Wt*Wt)),isNaN(Ht)&&(Ht=0),rt=Ht*y*nt/z,Ht=Ht*-z*Wt/y,isNaN(rt)&&(rt=0),isNaN(Ht)&&(Ht=0),x=(x+ht)/2+vt*rt-Ft*Ht,b=(b+dt)/2+Ft*rt+vt*Ht,dt=E(1,0,(Wt-rt)/y,(nt-Ht)/z),vt=(Wt-rt)/y,ht=(nt-Ht)/z,Wt=(-Wt-rt)/y,rt=(-nt-Ht)/z,nt=E(vt,ht,Wt,rt),Wt=(vt*Wt+ht*rt)/(Math.sqrt(vt*vt+ht*ht)*Math.sqrt(Wt*Wt+rt*rt)),-1>=Wt?nt=Math.PI:1<=Wt&&(nt=0),!st&&0<nt&&(nt-=2*Math.PI),st&&0>nt&&(nt+=2*Math.PI),st=y>z?1:y/z,Wt=y>z?z/y:1,y=Ie.jx(0,0,y>z?y:z,dt,dt+nt,!0),z=pi.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(st,Wt),mn.Ha(y,z),pi.free(z),a.ae=y,a.ae}Ke.Object.defineProperties(or.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&&je(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&je(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&je(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&je(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&je(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&je(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&je(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&je(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&je(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&An(a,">= zero",or,"radiusX"),this._isFrozen&&je(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&An(a,">= zero",or,"radiusY"),this._isFrozen&&je(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&je(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&&je(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&&je(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&&je(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&&je(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),or.prototype.equalsApprox=or.prototype.Xa;var wo=new an(or,"Move",0),Ar=new an(or,"Line",1),Ho=new an(or,"Bezier",2),da=new an(or,"QuadraticBezier",3),so=new an(or,"Arc",4),Aa=new an(or,"SvgArc",4);or.className="PathSegment",or.Move=wo,or.Line=Ar,or.Bezier=Ho,or.QuadraticBezier=da,or.Arc=so,or.SvgArc=Aa;function as(){this.H=null,this.xu=new xe(0,0).freeze(),this.mt=new xe(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}as.prototype.copy=function(){var a=new as;return this.clone(a)},as.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},as.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},as.prototype.So=function(a,y){var x=this.diagram;return x===null||Sg(x,a,y),y},as.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Sg(x,a,y),y.assign(x.Ps(y))),y},Ke.Object.defineProperties(as.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}}}),as.prototype.getMultiTouchDocumentPoint=as.prototype.Bz,as.prototype.getMultiTouchViewPoint=as.prototype.So,as.className="InputEvent";function Iu(){this.H=null,this.xa="",this.ar=this.Lr=null}Iu.prototype.copy=function(){var a=new Iu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Iu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ke.Object.defineProperties(Iu.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}}}),Iu.className="DiagramEvent";function Ir(){this.Fm=Or,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ir.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ir.prototype.copy=function(){var a=new Ir;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=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=tn(y)&&typeof y.J=="function"?y.J():y,a},Ir.prototype.qb=function(a){a.classType===Ir&&(this.change=a)},Ir.prototype.toString=function(){var a="";return a=this.change===ta?a+"* ":this.change===Or?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===ta?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ai(this.object)),this.oldValue!==null&&(a+=" old: "+Ai(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ai(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ir.prototype.I=function(a){return a?this.oldValue:this.newValue},Ir.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ir.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ir.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ir.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ir.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ke.Object.defineProperties(Ir.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===ta&&(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}}}),Ir.prototype.redo=Ir.prototype.redo,Ir.prototype.canRedo=Ir.prototype.canRedo,Ir.prototype.undo=Ir.prototype.undo,Ir.prototype.canUndo=Ir.prototype.canUndo,Ir.prototype.getParam=Ir.prototype.Dz,Ir.prototype.getValue=Ir.prototype.I,Ir.prototype.clear=Ir.prototype.clear;var ta=new an(Ir,"Transaction",-1),Or=new an(Ir,"Property",0),qr=new an(Ir,"Insert",1),fo=new an(Ir,"Remove",2);Ir.className="ChangedEvent",Ir.Transaction=ta,Ir.Property=Or,Ir.Insert=qr,Ir.Remove=fo;function Lo(){this.o=new cn().freeze(),this.xa="",this.j=!1}Lo.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
`+b.toString())}}return y},Lo.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()},Lo.prototype.canUndo=function(){return this.isComplete},Lo.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()}},Lo.prototype.canRedo=function(){return this.isComplete},Lo.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()}},Lo.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new ti,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Or&&b.object){var E=y.get(b.object);E||(E=new ti,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Ke.Object.defineProperties(Lo.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}}}),Lo.prototype.optimize=Lo.prototype.ak,Lo.prototype.redo=Lo.prototype.redo,Lo.prototype.canRedo=Lo.prototype.canRedo,Lo.prototype.undo=Lo.prototype.undo,Lo.prototype.canUndo=Lo.prototype.canUndo,Lo.prototype.clear=Lo.prototype.clear,Lo.className="Transaction";function jr(){this.Pt=new hn,this.Jd=!1,this.u=new cn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new cn().freeze(),this.hl=new cn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}jr.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
`+this.history.M(b).toString(a-1);return y},jr.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},jr.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Kt=jr.prototype,Kt.Xw=function(a){this.Pt.add(a)},Kt.Rx=function(a){this.Pt.remove(a)},Kt.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},Kt.eb=function(a){return a===void 0&&(a=""),wh(this,!0,a)},Kt.Kf=function(){return wh(this,!1,"")};function wh(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Nn("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var nt=a.Ie.count;0<nt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(nt-1),a.Ie.freeze()),nt=a.hl.count,0<nt&&(z=a.hl.M(nt-1),a.hl.mb(nt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Kt.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()}},jr.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},jr.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){Nn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},jr.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},jr.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){Nn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},jr.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Ir;for(b.change=ta,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},jr.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Lo);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||Nn("Change not within a transaction: "+x.toString()))}},jr.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},Ke.Object.defineProperties(jr.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}}}),jr.prototype.handleChanged=jr.prototype.Tu,jr.prototype.redo=jr.prototype.redo,jr.prototype.undo=jr.prototype.undo,jr.prototype.canUndo=jr.prototype.canUndo,jr.prototype.discardHistoryAfterIndex=jr.prototype.lx,jr.prototype.rollbackTransaction=jr.prototype.Kf,jr.prototype.commitTransaction=jr.prototype.eb,jr.prototype.startTransaction=jr.prototype.Ea,jr.prototype.removeModel=jr.prototype.Rx,jr.prototype.addModel=jr.prototype.Xw,jr.prototype.clear=jr.prototype.clear,jr.className="UndoManager";function nr(){di(this),this.H=Vl,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new as,this.Zr=-1}nr.prototype.toString=function(){return this.name!==""?this.name+" Tool":In(this.constructor)},nr.prototype.updateAdornments=function(){},nr.prototype.canStart=function(){return this.isEnabled},nr.prototype.doStart=function(){},nr.prototype.doActivate=function(){this.isActive=!0},nr.prototype.doDeactivate=function(){this.isActive=!1},nr.prototype.doStop=function(){},nr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},nr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},nr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},nr.prototype.doMouseMove=function(){},nr.prototype.doMouseUp=function(){this.stopTool()},nr.prototype.doMouseWheel=function(){},nr.prototype.canStartMultiTouch=function(){return!0},nr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,xe.allocAt(NaN,NaN)),b=y.So(1,xe.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}xe.free(x),xe.free(b)},nr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,xe.allocAt(NaN,NaN)),b=y.So(1,xe.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new xe((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var nt=a.commandHandler;if(z!==a.scale&&nt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=E,nt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}xe.free(x),xe.free(b)},nr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},nr.prototype.doKeyUp=function(){},nr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},nr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},nr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Xi?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||(Xi?y.meta:y.control)||y.shift||a.clearSelection()}},nr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Op(a,b,x),b.handled};function Op(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}nr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,nt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(b===z||b!==null&&b.rg(z)||(rt(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(z===b||z!==null&&z.rg(b)||(nt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,nt="";z!==null&&(nt=z.cursor,nt==="");)z=z.panel;for(a.currentCursor=nt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},nr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},nr.prototype.doCurrentObjectChanged=function(){},nr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Qc&&!y.shift||E===dc&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Qc&&y.shift||E===dc&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var nt=z.deltaX;z=z.deltaY;var rt="pixel";if(nt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}nt!==0&&a.allowHorizontalScroll&&(nt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<nt?"right":"left",Math.abs(nt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},nr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},nr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Ti(function(){x.doWaitAfter(b)},a)},nr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&pn.clearTimeout(this.Zr),this.Zr=-1},nr.prototype.doWaitAfter=function(){},nr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof ir);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},nr.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Ke.Object.defineProperties(nr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ye&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),nr.prototype.startTransaction=nr.prototype.Ea,nr.className="Tool";function Br(){nr.call(this),this.name="ToolManager",this.hb=new cn,this.ob=new cn,this.Hb=new cn,this.F=this.V=850,this.o=new wn(2,2).ja(),this.Ha=5e3,this.ia=dc,this.u=_d,this.Mp=this.j=null,this.zj=-1}Je(Br,nr),Br.prototype.initializeStandardTools=function(){},Br.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ir&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Br.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===du&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Ph){y.bubbles=!0;return}if(this.gestureBehavior===du)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===dc?this.mouseWheelBehavior=Qc:this.mouseWheelBehavior===Qc&&(this.mouseWheelBehavior=dc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Br.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Ph){y.bubbles=!0;return}if(this.gestureBehavior===du)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Ip(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Ip(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Br.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof ir&&(y===a||y.rg(a))||this.hideToolTip()},Br.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()))},Br.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)},Br.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 ir)||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()},Br.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof ir){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Ml&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(pn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Ti(function(){E.hideToolTip()},a)}},Br.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Br.prototype.hideToolTip=function(){this.zj!==-1&&(pn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof ir?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ml&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Br.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Br.prototype.doMouseWheel=function(){this.standardMouseWheel()},Br.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Br.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Br.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},Br.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Br.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)},Ke.Object.defineProperties(Br.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 ir?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}}}),Br.prototype.replaceStandardTool=Br.prototype.gb;var dc=new an(Br,"WheelScroll",0),Qc=new an(Br,"WheelZoom",1),eg=new an(Br,"WheelNone",2),_d=new an(Br,"GestureZoom",3),du=new an(Br,"GestureCancel",4),Ph=new an(Br,"GestureNone",5);Br.className="ToolManager",Br.WheelScroll=dc,Br.WheelZoom=Qc,Br.WheelNone=eg,Br.GestureZoom=_d,Br.GestureCancel=du,Br.GestureNone=Ph;function zr(){nr.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 xe(NaN,NaN),this.Fr=new xe,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new hn().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Hl;Je(zr,nr),zr.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},zr.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},zr.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,(Xi?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},zr.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),Io=null,this.isActive=!0,this.tl.set(a.position),Hd(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&&Is(a),af(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Io=this,Gu=this.diagram,this.doSimulatedDragOut()))};function Hd(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof vn?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new fa,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}zr.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},zr.prototype.Pd=function(a){return a===void 0?new yu(Gr):this.isGridSnapEnabled?new yu(new xe(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new yu(a.copy())},zr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Ch(this),Oh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Hl.count){for(var y=Hl,x=y.length,b=0;b<x;b++){var E=y.M(b);Ru(E),tl(E),Ch(E),E.diagram.ug()}y.clear()}Ru(this),this.tl.h(NaN,NaN),Gu!==null&&(Gu.currentCursor=""),Io=Gu=null,tl(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),hd(a,!0)},zr.prototype.stopTransaction=function(){var a=this.diagram,y=nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Ch(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,ig(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ng(){var a=Io;tl(a),ju(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}zr.prototype.doCancel=function(){tl(this),ju(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},zr.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},zr.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function fu(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):ju(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new ti,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof vn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Hd(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,sh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function tl(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof vn&&(x.value.point=new xe(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Ru(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 El(a,y,x){var b=a.diagram,E=a.startPoint,z=xe.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),xe.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Is(b),b.hk())}zr.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Bh(b,a,y,this.dragOptions,x)};function ju(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof vn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),sh(b,-E.x,-E.y)}y.bd()}}function Kd(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),zu(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=ig(a,E,b),!a.isActive&&Io===null)return;var rt=b!==null?b.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof xi)){var st=x.mouseDragOver;st!==null&&(st(E),nt=!0)}if(!a.isActive&&Io===null||(a.doDragOver(y,b),!a.isActive&&Io===null))return}finally{x.skipsUndoManager=z,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}zr.prototype.findDragOverObject=function(a){var y=this;return Yl(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof ir||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},zr.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 ig(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var nt=0;nt<E;nt++){var rt=a.Cg[nt],st=rt.mouseDragLeave;if(st!==null&&(st(y,rt,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Io===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=rg(E);for(E=a.Cg.length,x=0;x<E&&(nt=a.Cg[x],rt=nt.mouseDragEnter,rt===null||(rt(y,nt,z),b=!0,!y.handled));x++);return b}function rg(a){var y=a.panel;return y!==null?y:a instanceof $n&&!(a instanceof xi)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Rp(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ht){return b.findValidLinkablePort(ht,x)});a=xe.alloc();var z=1/0,nt=null;for(E=E.iterator;E.next();){var rt=E.value;if(rt.part!==null){var st=rt.ga(Oi,a);st=y.Bf(st),st<z&&(nt=rt,z=st)}}return xe.free(a),nt}function zu(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,nt=null;x.fromNode===null&&(z=Rp(a,x.i(0),!1),z!==null&&(nt=z.part));var rt=null,st=null;x.toNode===null&&(rt=Rp(a,x.i(x.pointsCount-1),!0),rt!==null&&(st=rt.part)),E.isValidLink(nt,z,st,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,z!==null&&(x.fromPortId=z.portId),x.toNode=st,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Vd(E,nt,z,st,rt):Vd(E,null,null,null,null)}}}}zr.prototype.doDragOver=function(){};function Wu(a,y){var x=a.diagram;a.dragsLink&&zu(a,!0),Ch(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var nt=z.mouseDrop;if(nt!==null&&(nt(E,z),E.handled))break;Q0(a,E,z),z=rg(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Io!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof kn&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Io!==null){for(a=en.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof kn&&q0(x,b,a);en.free(a)}}}function Q0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof xi||(x=a.mouseDrop,x!==null&&x(y))}function q0(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof vn},!0,function(E){return E instanceof vn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}zr.prototype.doDropOnto=function(){},zr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(fu(this,!1),af(a,this.copiedParts),El(this,this.copiedParts,!1),Oh(a,this.copiedParts)):this.mayMove()?(tl(this),El(this,this.draggedParts,!0)):this.mayDragOut()?(fu(this,!1),El(this,this.copiedParts,!1)):tl(this),Kd(this,a.lastInput.documentPoint))}},zr.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?(tl(this),fu(this,!0),af(a,this.copiedParts),El(this,this.copiedParts,!1),Oh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,tl(this),this.mayMove()&&(El(this,this.draggedParts,!0),Kd(this,a.lastInput.documentPoint))),this.Ym=!0,Wu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$0(this),a.Ya(),Oh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},zr.prototype.simulatedMouseMove=function(a,y,x){if(Io===null)return!1;var b=Io.diagram;x instanceof Ye||(x=null);var E=Gu;return x!==E&&(E!==null&&E!==b&&(E.ug(),Io.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Gu=x,x!==null&&x!==b&&(ng(),E=x.toolManager.findTool("Dragging"),E!==null&&(Hl.contains(E)||Hl.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},zr.prototype.simulatedMouseUp=function(a,y,x){if(Io===null)return!1;var b=Gu,E=Io.diagram;if(x===null)return Io.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Io.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Gu=x,b=x.toolManager.findTool("Dragging"),b!==null&&(ng(),Hl.contains(b)||Hl.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new xe),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=Io,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function $0(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof kn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}zr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Xi?!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())},zr.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())},zr.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())},zr.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},zr.prototype.Az=function(){return Io},zr.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Io;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},zr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Ea(a),a.animationManager.Cc(),a=Io,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},zr.prototype.doSimulatedDragLeave=function(){var a=Io;a!==null&&a.doSimulatedDragOut(),this.doCancel()},zr.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Io;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;jp(this,y.draggedParts.Lf(),!1,a.firstInput),El(this,this.copiedParts,!1),Kd(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},zr.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Io;if(y!==null){var x=y.diagram;if(y.Ym=!0,tl(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),jp(this,y.draggedParts.Lf(),!0,a.lastInput),El(this,this.copiedParts,!1);var b=new hn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Wu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function jp(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=en.alloc();E=b=1/0;for(var nt=-1/0,rt=-1/0,st=y.iterator;st.next();){var ht=st.value;if(ht.isVisible()){var dt=ht.location;ht=dt.x,dt=dt.y,isNaN(ht)||isNaN(dt)||(ht<b&&(b=ht),dt<E&&(E=dt),ht>nt&&(nt=ht),dt>rt&&(rt=dt))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,nt-b,rt-E),b=z.x+z.width/2,E=z.y+z.height/2,en.free(z),z=a.Fr,nt=new ti,rt=xe.alloc(),st=y.iterator;st.next();)ht=st.value,ht instanceof vn&&ht.canCopy()&&(dt=x.I(ht),dt!==null&&(dt.points=ht.points,sh(dt,z.x-b,z.y-E),dt.suspendsRouting=!0,nt.add(dt,a.Pd())));for(y=y.iterator;y.next();)ht=y.value,ht.Zc()&&ht.canCopy()&&(st=x.I(ht),st!==null&&(ht=ht.location,rt.h(z.x-(b-ht.x),z.y-(E-ht.y)),st.location=rt,st.Va(),nt.add(st,a.Pd(rt))));xe.free(rt),a.copiedParts=nt,Hd(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,sh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}zr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},zr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new xe},Ke.Object.defineProperties(zr.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}}}),zr.prototype.getDraggingSource=zr.prototype.Az;var Io=null,Gu=null;zr.className="DraggingTool",Hl=new cn,ci("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Br.prototype.doCancel=function(){Io!==null&&Io.doCancel(),nr.prototype.doCancel.call(this)};function Yr(){nr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new vn,y=new Li;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Li,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new kn,y=new Li,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=pr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new kn,y=new Li,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=pr,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 ti,this.Of=this.gj=this.Pf=null}Je(Yr,nr),Yr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Yr.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=wn.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,wn.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Oi,z=xe.alloc(),x.location=y.ga(Oi,z),xe.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Yr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=pr,y.fromSpot=Ki,y.toSpot=Ki),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Yr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Yr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof kn){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)}},Yr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof kn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof kn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Yr.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(vt){return E.findValidLinkablePort(vt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,rt=nt.part;if(rt instanceof kn){var st=nt.ga(Oi,xe.alloc()),ht=x.x-st.x,dt=x.y-st.y;xe.free(st),st=ht*ht+dt*dt,st<b&&(ht=this.validPortsCache.I(nt),ht!==null?ht&&(y=nt,b=st):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,rt,nt)||!a&&this.isValidLink(rt,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=st):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof kn&&(x.layer===null||x.layer.allowLink))?y:null},Yr.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},Yr.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},Yr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Yr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof kn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof kn))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},Yr.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},Yr.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new hn;return b.add(a),ls(this,x,y,b)};function ls(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),ls(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ls(a,y.labeledLink,x,b))))}Yr.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==pd){if(b===Og){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!ms(this,a,y,x,!0)}if(b===Ig){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!ms(this,a,y,x,!0)}if(b===Fg)return a===y?a=!0:(b=new hn,b.add(y),a=vs(this,b,a,y,x)),!a;if(b===Dg)return!ms(this,a,y,x,!1);if(b===Bg)return a===y?a=!0:(b=new hn,b.add(y),a=fc(this,b,a,y,x)),!a}return!0};function ms(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var nt=z.value;if(nt!==b&&(!E||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&ms(a,nt,x,b,E)))return!0}return!1}function vs(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&vs(a,y,nt,b,E)))return!0}return!1}function fc(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E){var rt=nt.fromNode;if(nt=nt.toNode,rt=rt===x?nt:rt,rt!==x&&fc(a,y,rt,b,E))return!0}}return!1}Ke.Object.defineProperties(Yr.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}}}),Yr.className="LinkingBaseTool";function ys(){Yr.call(this),this.name="Linking",this.V={},this.F=null,this.K=bh,this.Xd=null}Je(ys,Yr),ys.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},ys.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 kn)))return null;var x=this.direction;if(x===bh||x===zp){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===bh||x===Wp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ys.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 kn&&(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 kn&&(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)},ys.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()},ys.prototype.doStop=function(){Yr.prototype.doStop.call(this),this.startObject=null},ys.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var rt=nt.part;rt instanceof kn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=rt,E=nt):(y=rt,x=nt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(nt===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,b,E)):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)}}},ys.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof vn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},ys.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ys.prototype.doNoLink=function(){},Ke.Object.defineProperties(ys.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 bh=new an(ys,"Either",0),zp=new an(ys,"ForwardsOnly",0),Wp=new an(ys,"BackwardsOnly",0);ys.className="LinkingTool",ys.Either=bh,ys.ForwardsOnly=zp,ys.BackwardsOnly=Wp;function fa(){Yr.call(this),this.name="Relinking";var a=new Li;a.figure="Diamond",a.desiredSize=Er,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Li,a.figure="Diamond",a.desiredSize=Er,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new en}Je(fa,Yr),fa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof vn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},fa.prototype.makeAdornment=function(a,y){var x=new ir;return x.type=dn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},fa.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},fa.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 ir&&x.adornedPart instanceof vn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Ei),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ei),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},fa.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Nf||x===ah)&&(x=As),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}},fa.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()},fa.prototype.doStop=function(){Yr.prototype.doStop.call(this),this.handle=null},fa.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof kn&&(this.isForwards?(b=nt,E=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E: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()}}},fa.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},fa.prototype.doNoRelink=function(){};function Vd(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Ke.Object.defineProperties(fa.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 ir))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),fa.className="RelinkingTool",ci("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),ci("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function $r(){nr.call(this),this.name="LinkReshaping";var a=new Li;a.figure="Rectangle",a.desiredSize=Ur,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Li,a.figure="Diamond",a.desiredSize=Er,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new xe,this.Yq=new cn}Je($r,nr),$r.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:og},$r.prototype.om=function(a,y){a.reshapingBehavior=y},$r.prototype.updateAdornments=function(a){if(a!==null&&a instanceof vn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},$r.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new ir,E.type=dn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==ya)for(var rt=x+nt;rt<z-nt;rt++){var st=this.makeResegmentHandle(a,rt);st!==null&&(st.segmentIndex=rt,st.segmentFraction=.5,st.fromMaxLinks=999,E.add(st))}for(nt=x+1;nt<z;nt++)if(rt=this.makeHandle(a,nt),rt!==null){if(rt.segmentIndex=nt,nt!==x)if(nt===x+1&&b){st=y.i(x);var ht=y.i(x+1);Ie.B(st.x,ht.x)&&Ie.B(st.y,ht.y)&&(ht=y.i(x-1)),Ie.B(st.x,ht.x)?(this.om(rt,Hu),rt.cursor="n-resize"):Ie.B(st.y,ht.y)&&(this.om(rt,_u),rt.cursor="w-resize")}else nt===z-1&&b?(st=y.i(z-1),ht=y.i(z),Ie.B(st.x,ht.x)&&Ie.B(st.y,ht.y)&&(st=y.i(z+1)),Ie.B(st.x,ht.x)?(this.om(rt,Hu),rt.cursor="n-resize"):Ie.B(st.y,ht.y)&&(this.om(rt,_u),rt.cursor="w-resize")):nt!==z&&(this.om(rt,Yd),rt.cursor="move");E.add(rt)}E.adornedObject=a}return E},$r.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},$r.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},$r.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},$r.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof vn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},$r.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},$r.prototype.stopTransaction=function(){var a=this.diagram,y=nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},$r.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},$r.prototype.getResegmentingPoint=function(){return this.handle.ga(Oi)},$r.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},$r.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var nt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Uu(this,nt,b,E,z,!0)||Uu(this,nt,b,E,z,!1))){var rt=y.points.copy();Uu(this,nt,b,E,z,!0)?(rt.cd(x-2,new xe(nt.x,(z.y+nt.y)/2)),rt.cd(x+1,new xe(z.x,(z.y+nt.y)/2))):(rt.cd(x-2,new xe((z.x+nt.x)/2,nt.y)),rt.cd(x+1,new xe((z.x+nt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else nt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Uu(this,b,E,z,nt,!0)||Uu(this,b,E,z,nt,!1))&&(rt=y.points.copy(),Uu(this,b,E,z,nt,!0)?(rt.cd(x-1,new xe(b.x,(b.y+nt.y)/2)),rt.cd(x+2,new xe(nt.x,(b.y+nt.y)/2))):(rt.cd(x-1,new xe((b.x+nt.x)/2,b.y)),rt.cd(x+2,new xe((b.x+nt.x)/2,nt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else nt=xe.alloc(),Ie.qh(b.x,b.y,z.x,z.y,E.x,E.y,nt)&&nt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),xe.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Uu(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}$r.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Hu?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===_u&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Hu?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===_u&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),nt=y.i(b+1);Ie.B(z.x,E.x)&&Ie.B(E.y,nt.y)?(Ie.B(z.x,y.i(b-2).x)&&!Ie.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ie.B(nt.y,y.i(b+2).y)&&!Ie.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):Ie.B(z.y,E.y)&&Ie.B(E.x,nt.x)?(Ie.B(z.y,y.i(b-2).y)&&!Ie.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ie.B(nt.x,y.i(b+2).x)&&!Ie.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ie.B(z.x,E.x)&&Ie.B(E.x,nt.x)?(Ie.B(z.x,y.i(b-2).x)&&!Ie.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ie.B(nt.x,y.i(b+2).x)&&!Ie.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ie.B(z.y,E.y)&&Ie.B(E.y,nt.y)&&(Ie.B(z.y,y.i(b-2).y)&&!Ie.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ie.B(nt.y,y.i(b+2).y)&&!Ie.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(Oi,xe.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,xe.alloc()),y.L(0,b.x,b.y),xe.free(z),xe.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Oi,xe.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,xe.alloc()),y.L(y.pointsCount-1,a.x,a.y),xe.free(x),xe.free(a));y.zf()},$r.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Yd:return a;case Hu:return new xe(y.i(x).x,a.y);case _u:return new xe(a.x,y.i(x).y);default:case og:return y.i(x)}},Ke.Object.defineProperties($r.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 ir))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}}}),$r.prototype.setReshapingBehavior=$r.prototype.om,$r.prototype.getReshapingBehavior=$r.prototype.Ru;var og=new an($r,"None",0),_u=new an($r,"Horizontal",1),Hu=new an($r,"Vertical",2),Yd=new an($r,"All",3);$r.className="LinkReshapingTool",$r.None=og,$r.Horizontal=_u,$r.Vertical=Hu,$r.All=Yd,ci("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function qo(){nr.call(this),this.name="Resizing",this.o=new wn(1,1).freeze(),this.j=new wn(9999,9999).freeze(),this.yg=new wn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Li;a.alignmentFocus=Oi,a.figure="Rectangle",a.desiredSize=Ur,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new xe,this.Dw=new wn,this.Tn=new xe,this.rt=new wn(0,0),this.qt=new wn(1/0,1/0),this.pt=new wn(1,1)}Je(qo,nr),qo.prototype.updateAdornments=function(a){if(!(a===null||a instanceof vn)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),Gh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},qo.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new ir,y.type=dn.Spot,y.locationSpot=Oi;var x=new bs;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ar)),y.add(this.makeHandle(a,yr)),y.add(this.makeHandle(a,oo)),y.add(this.makeHandle(a,os)),y.add(this.makeHandle(a,ps)),y.add(this.makeHandle(a,Jo)),y.add(this.makeHandle(a,ss)),y.add(this.makeHandle(a,Bs))}else if(Ka(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},qo.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},qo.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=Oi),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof dn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},qo.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},qo.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))},qo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},qo.prototype.stopTransaction=function(){var a=this.diagram,y=nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},qo.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},qo.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,xe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),xe.free(E)}},qo.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,xe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),xe.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},qo.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 xi){var b=new cn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new at;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},qo.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Oi);var nt=this.adornedObject.naturalBounds,rt=nt.x,st=nt.y,ht=nt.x+nt.width,dt=nt.y+nt.height,vt=1;if(!z){vt=nt.width;var Ft=nt.height;0>=vt&&(vt=1),0>=Ft&&(Ft=1),vt=Ft/vt}return Ft=xe.alloc(),Ie.No(a.x,a.y,rt,st,E.width,E.height,Ft),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ft.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.y=Math.max(Ft.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(vt*a.width,b.height),x.height),a.width=a.height/vt):(a.width=Math.max(Math.min(a.height/vt,b.width),x.width),a.height=vt*a.width),a.x=ht-a.width,a.y=dt-a.height)):1<=y.y?(a.x=Math.max(Ft.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.height=Math.max(Math.min(Ft.y-st,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(vt*a.width,b.height),x.height),a.width=a.height/vt):(a.width=Math.max(Math.min(a.height/vt,b.width),x.width),a.height=vt*a.width),a.x=ht-a.width)):(a.x=Math.max(Ft.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=ht-a.x,z||(a.height=Math.max(Math.min(vt*a.width,b.height),x.height),a.width=a.height/vt,a.y=st+.5*(dt-st-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ft.x-rt,b.width),x.width),a.y=Math.max(Ft.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(vt*a.width,b.height),x.height),a.width=a.height/vt):(a.width=Math.max(Math.min(a.height/vt,b.width),x.width),a.height=vt*a.width),a.y=dt-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ft.x-rt,b.width),x.width),a.height=Math.max(Math.min(Ft.y-st,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(vt*a.width,b.height),x.height),a.width=a.height/vt):(a.width=Math.max(Math.min(a.height/vt,b.width),x.width),a.height=vt*a.width))):(a.width=Math.max(Math.min(Ft.x-rt,b.width),x.width),z||(a.height=Math.max(Math.min(vt*a.width,b.height),x.height),a.width=a.height/vt,a.y=st+.5*(dt-st-a.height))):0>=y.y?(a.y=Math.max(Ft.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=dt-a.y,z||(a.width=Math.max(Math.min(a.height/vt,b.width),x.width),a.height=vt*a.width,a.x=rt+.5*(ht-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ft.y-st,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/vt,b.width),x.width),a.height=vt*a.width,a.x=rt+.5*(ht-rt-a.width))),xe.free(Ft),a},qo.prototype.computeReshape=function(){var a=ln;return this.adornedObject instanceof Li&&(a=Av(this.adornedObject)),!(a===Kn||this.diagram.lastInput.shift)},qo.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},qo.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},qo.prototype.computeCellSize=function(){var a=new wn(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},Ke.Object.defineProperties(qo.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 ir))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 ir)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}}}),qo.className="ResizingTool",ci("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ss(){nr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new xe,this.ue=null;var a=new Li;a.figure="Ellipse",a.desiredSize=Er,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new xe(NaN,NaN),this.u=0,this.F=50}Je(Ss,nr),Ss.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)}},Ss.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new ir,y.type=dn.Position,y.locationSpot=Oi;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Ka(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ss.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},Ss.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)},Ss.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(Oi)},Ss.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},Ss.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new xe(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ss.prototype.stopTransaction=function(){var a=this.diagram,y=nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ss.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ss.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ss.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()},Ss.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Ss.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},Ke.Object.defineProperties(Ss.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 ir))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 ir)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}}}),Ss.className="RotatingTool",ci("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ah(){nr.call(this),this.name="ClickSelecting"}Je(Ah,nr),Ah.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ah.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ah.className="ClickSelectingTool";function Wa(){nr.call(this),this.name="Action",this.pk=null}Je(Wa,nr),Wa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Wa.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()},Wa.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))}},Wa.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()},Wa.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())},Wa.prototype.doStop=function(){this.pk=null},Wa.className="ActionTool";function Ku(){nr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new xe(0,0)}Je(Ku,nr),Ku.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)},Ku.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ku.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof $n)x.Zc()&&(Ka(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);tn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=xe.allocAt(a.x,a.y);this.isGridSnapEnabled&&sf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),xe.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Ke.Object.defineProperties(Ku.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}}}),Ku.className="ClickCreatingTool";function La(){nr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new $n;a.layerName="Tool",a.selectable=!1;var y=new Li;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Je(La,nr),La.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},La.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},La.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},La.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=wn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),wn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},La.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},La.prototype.computeBoxBounds=function(){var a=this.diagram;return new en(a.firstInput.documentPoint,a.lastInput.documentPoint)},La.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Xi?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 cn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Ke.Object.defineProperties(La.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),La.className="DragSelectingTool";function Ko(){nr.call(this),this.name="Panning",this.Xt=new xe,this.xy=new xe,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(pn.document,"scroll",a.Kw,!1),a.stopTool()}}Je(Ko,nr),Ko.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())},Ko.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(pn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Ko.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Ko.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Ko.prototype.doMouseMove=function(){this.move()},Ko.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ko.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},Ke.Object.defineProperties(Ko.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Ko.className="PanningTool",ci("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),ci("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),ci("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),ci("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),ci("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Ml(){this.F=this.u=this.j=this.o=null}Ke.Object.defineProperties(Ml.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}}}),Ml.className="HTMLInfo";function Ga(a,y,x){this.text=a,this.hx=y,this.visible=x}Ga.className="ContextMenuButtonInfo";function xs(){nr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new xe,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Je(xs,nr);function el(a){var y=new Ml;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},Lh=y,a.tu=function(){a.stopTool()},y=Di("div");var x=Di("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=Di("style");pn.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",to,!1),b.addEventListener(y,"selectstart",to,!1),b.addEventListener(x,"contextmenu",to,!1)),y.className="goCXforeground",x.className="goCXbackground",pn.document.body&&(pn.document.body.appendChild(y),pn.document.body.appendChild(x)),$c=y,gc=x,qc=!0}function to(a){return a.preventDefault(),!1}xs.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)},xs.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},xs.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},xs.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Ye||(a instanceof Be?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},xs.prototype.doActivate=function(){},xs.prototype.doMouseDown=function(){if(nr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof ir){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&pl(this)},xs.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof ir){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}pl(this)};function pl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Ml||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(gu(a,!0),a.isActive||a.stopTool())}xs.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function gu(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=Lh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Be?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof ir&&!a.currentContextMenu.visible&&a.stopTool()}}xs.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},xs.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof ir){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Ml&&a.show(y,x,this);this.currentContextMenu=a},xs.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},xs.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof ir?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ml&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Vu(a){var y=new cn;return y.add(new Ga("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Ga("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Ga("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Ga("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Ga("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Ga("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Ga("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Ga("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Ga("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Ga("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Ga("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Ga("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Ga("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}xs.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Vu(this)),$c.innerHTML="",gc.addEventListener("pointerdown",this.tu,!1);var y=this,x=Di("ul");x.className="goCXul",$c.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=Di("li"),z.className="goCXli";var nt=Di("a");nt.className="goCXa",nt.href="#",nt.ky=E.hx,nt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),nt.textContent=E.text,z.appendChild(nt),x.appendChild(z)}}$c.style.display="block",gc.style.display="block"},xs.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Lh){$c.style.display="none",gc.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(gc,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Ke.Object.defineProperties(xs.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof ir?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return qc===!1&&Lh===null&&Hr&&el(this),Lh},set:function(a){a===null&&(qc=!0),Lh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Lh=null,qc=!1,gc=null,$c=null;xs.className="ContextMenuTool",ci("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Lr(){nr.call(this),this.name="TextEditing",this.Zh=new wr,this.ia=null,this.V=pc,this.vj=null,this.qa=mc,this.u=1,this.F=!0,this.o=null,this.j=new Ml,this.kt=null,td(this,this.j)}Je(Lr,nr);function td(a,y){if(Hr){var x=Di("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(ed)):E==="Tab"?(a.acceptText(Xd),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==mc){var b=a.kt;a.qa===nd&&(a.qa=id),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==mc){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof wr&&z instanceof Lr)if(z.state===rd)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Oi),rt=E.position,st=E.scale,ht=b.Df()*st;ht<z.minimumEditorScale&&(ht=z.minimumEditorScale);var dt=b.naturalBounds.width*ht+6,vt=b.naturalBounds.height*ht+2,Ft=(nt.x-rt.x)*st;nt=(nt.y-rt.y)*st,rt=b.verticalAlignment,st=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ht,vt=rt.y*vt-rt.y*st+rt.offsetY-(.5*vt-.5*st)-st/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ht+"%",x.style.lineHeight="normal",x.style.width=dt+"px",x.style.left=(Ft-dt/2|0)-1+"px",x.style.top=(nt+vt|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ht,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Lr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Yu&&Yu!==this&&(Yu.acceptText(Tl),Yu&&Yu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof wr&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===pc&&!y.isSelected||this.starting===Jd&&2>a.lastInput.clickCount)):!1},Lr.prototype.doStart=function(){Yu=this,this.textBlock!==null&&this.doActivate()},Lr.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 wr&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=nd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new en(this.textBlock.ga(ar),this.textBlock.ga(oo));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Lr.prototype.doCancel=function(){this.stopTool()},Lr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Lr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Tl)},Lr.prototype.acceptText=function(a){switch(a){case Tl:this.qa===vc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===nd||this.qa===rd||this.qa===id)&&(this.qa=ag,sg(this));break;case Zd:case ed:case Xd:(ed!==a||this.textBlock.isMultiline!==!0)&&(this.qa===nd||this.qa===rd||this.qa===id)&&(this.qa=ag,sg(this))}};function sg(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=vc,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=rd,a.doError(E,z))}}Lr.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)},Lr.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Lr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=mc,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Lr.prototype.doStop=function(){Yu=null},Lr.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Lr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ke.Object.defineProperties(Lr.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)}}}),Lr.prototype.measureTemporaryTextBlock=Lr.prototype.Lx;var Zd=new an(Lr,"LostFocus",0),Tl=new an(Lr,"MouseDown",1),Xd=new an(Lr,"Tab",2),ed=new an(Lr,"Enter",3),tv=new an(Lr,"SingleClick",0),pc=new an(Lr,"SingleClickSelected",1),Jd=new an(Lr,"DoubleClick",2),mc=new an(Lr,"StateNone",0),nd=new an(Lr,"StateActive",1),id=new an(Lr,"StateEditing",2),ag=new an(Lr,"StateValidating",3),rd=new an(Lr,"StateInvalid",4),vc=new an(Lr,"StateValidated",5),Yu=null;Lr.className="TextEditingTool",Lr.LostFocus=Zd,Lr.MouseDown=Tl,Lr.Tab=Xd,Lr.Enter=ed,Lr.SingleClick=tv,Lr.SingleClickSelected=pc,Lr.DoubleClick=Jd,Lr.StateNone=mc,Lr.StateActive=nd,Lr.StateEditing=id,Lr.StateValidating=ag,Lr.StateInvalid=rd,Lr.StateValidated=vc,ci("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ea(a){sd||(lg(),sd=!0),this.H=Vl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=mu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new hn,this.ce=new Vo,this.ce.Yd=this,this.Ei=new hn,this.pu=new hn,this.Sr=new hn,this.pr=new hn,a&&Object.assign(this,a)}ea.prototype.Xe=function(a){this.H=a},ea.prototype.canStart=function(){return!0};function Kl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Yo(a.H),a.zb=!0)}function Qd(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===mu?(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===ug&&y.vc.clear(),a.Qw=!!(a.Pk===ad&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ld(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==us&&b!==null&&(delete b.start.scale,delete b.end.scale),pn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Is(x),gg(x),a.zb=!1,y.start(),y.bc&&(Zu(a),x.Ya(),hg(y,0),Ea(x,!0),kh(a),x.R("AnimationStarting",a)))}))}}function pu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function qd(a,y,x,b){a.isTicking||pu(a)||y instanceof vn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Kt=ea.prototype,Kt.fv=function(a){return this.ce.fv(a)},Kt.Xu=function(a){return this.ce.Xu(a)};function $d(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var nt=z.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var rt=!0;else{for(rt=nt.vc.iterator;rt.next();){var st=rt.key;if(st instanceof Be&&st.diagram!==null||st instanceof Ye){rt=!0;break t}}rt=!1}rt?ud(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Zu(E),Ea(E.H),kh(E)),pn.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),pn.requestAnimationFrame(function(){x()}))}function Gp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Zu(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 kh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Kt.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(),ld(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ld(y,this.H)},Kt.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))},Kt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),_s(this,a))},Kt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Xu(this.ce,y,"position",y.position,y.position),_s(this,a))};function Up(a,y,x){!a.zb||y.D(x)||pu(a)||(a.H.pi||(y=x.copy()),Xu(a.ce,a.H,"position",y,x))}function tf(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function _s(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Eh(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],nt=a[1],rt=a[2];a=a[3];var st=y[0],ht=y[1],dt=y[2];return y=y[3],rt===0||rt===100?(z=st,nt=ht):(dt===0||dt===100)&&(st=z,ht=nt),180<Math.abs(st-z)&&(st>z?z+=360:st+=360),z=E(x,z,st-z,b)%360,nt=E(x,nt,ht-nt,b),rt=E(x,rt,dt-rt,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+rt+"%, "+x+")"}function lg(){function a(x,b,E,z,nt,rt){x.position=new xe(z(nt,b.x,E.x-b.x,rt),z(nt,b.y,E.y-b.y,rt))}var y=new ti;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,nt,rt){nt<rt?x.mm(z(nt,b.x,E.x-b.x,rt),z(nt,b.y,E.y-b.y,rt),!1):x.position=new xe(z(nt,b.x,E.x-b.x,rt),z(nt,b.y,E.y-b.y,rt))}),y.add("location",function(x,b,E,z,nt,rt){nt<rt?x.mm(z(nt,b.x,E.x-b.x,rt),z(nt,b.y,E.y-b.y,rt),!0):x.location=new xe(z(nt,b.x,E.x-b.x,rt),z(nt,b.y,E.y-b.y,rt))}),y.add("position:placeholder",function(x,b,E,z,nt,rt){nt<rt?x.mm(z(nt,b.x,E.x-b.x,rt),z(nt,b.y,E.y-b.y,rt),!1):x.position=new xe(z(nt,b.x,E.x-b.x,rt),z(nt,b.y,E.y-b.y,rt))}),y.add("position:nodeCollapse",function(x,b,E,z,nt,rt){var st=x.actualBounds,ht=E.actualBounds;E=ht.x+ht.width/2-st.width/2,st=ht.y+ht.height/2-st.height/2,nt<rt?x.mm(z(nt,b.x,E-b.x,rt),z(nt,b.y,st-b.y,rt),!1):x.position=new xe(z(nt,b.x,E-b.x,rt),z(nt,b.y,st-b.y,rt))}),y.add("desiredSize",function(x,b,E,z,nt,rt){x.desiredSize=new en(z(nt,b.width,E.width-b.width,rt),z(nt,b.height,E.height-b.height,rt))}),y.add("width",function(x,b,E,z,nt,rt){x.width=z(nt,b,E-b,rt)}),y.add("height",function(x,b,E,z,nt,rt){x.height=z(nt,b,E-b,rt)}),y.add("fill",function(x,b,E,z,nt,rt){x.fill=Eh(b,E,nt,rt,z)}),y.add("stroke",function(x,b,E,z,nt,rt){x.stroke=Eh(b,E,nt,rt,z)}),y.add("strokeWidth",function(x,b,E,z,nt,rt){x.strokeWidth=z(nt,b,E-b,rt)}),y.add("strokeDashOffset",function(x,b,E,z,nt,rt){x.strokeDashOffset=z(nt,b,E-b,rt)}),y.add("background",function(x,b,E,z,nt,rt){x.background=Eh(b,E,nt,rt,z)}),y.add("areaBackground",function(x,b,E,z,nt,rt){x.areaBackground=Eh(b,E,nt,rt,z)}),y.add("opacity",function(x,b,E,z,nt,rt){x.opacity=z(nt,b,E-b,rt)}),y.add("scale",function(x,b,E,z,nt,rt){x.scale=z(nt,b,E-b,rt)}),y.add("angle",function(x,b,E,z,nt,rt){x.angle=z(nt,b,E-b,rt)}),od=y}Ke.Object.defineProperties(ea.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&&An(a,">= 1",ea,"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}}}),ea.prototype.stopAnimation=ea.prototype.Cc;var od=null,sd=!1,mu=new an(ea,"Default",1),ad=new an(ea,"AnimateLocations",2),ug=new an(ea,"None",3);ea.className="AnimationManager",ea.defineAnimationEffect=function(a,y){sd||(lg(),sd=!0),od.add(a,y)},ea.Default=mu,ea.AnimateLocations=ad,ea.None=ug;function Vo(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=yc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Gr,this.vc=new ti,this.Tt=new ti,this.yl=new hn,this.Ut=new hn,this.dw=qu,a&&Object.assign(this,a)}Vo.prototype.suspend=function(){this.Xk=!0},Vo.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ud(this,!0),Zu(this.Yd),Ea(this.H),kh(this.Yd),this.H.redraw()};function ld(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}Kt=Vo.prototype,Kt.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof Ye?a=x:x instanceof Be&&(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===mu&&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=md),Zu(y),this.yl.each(function(b){b.data=null,a.add(b)}),kh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,$d(y,this),this)},Kt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Kt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Ye?this.H=a:a instanceof Be&&a.diagram!==null&&(this.H=a.diagram)),a instanceof $n){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Xu(this,a,y,x,b,E),this};function Xu(a,y,x,b,E,z){var nt=a.vc;if(y instanceof Ye&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(xu(b),av(),b=[va.j,va.u,va.o,va.F],xu(E),av(),E=[va.j,va.u,va.o,va.F]),nt.contains(y)){var rt=nt.I(y),st=rt.start,ht=rt.end;st[x]===void 0&&(st[x]=Mh(b)),ht[x]=Mh(E)}else st={},ht={},st[x]=Mh(b),ht[x]=Mh(E),rt=st.position,y instanceof Be&&rt instanceof xe&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(ht.position),rt=new Th(st,ht,z),nt.add(y,rt);nt=st[x],nt instanceof xe&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof $n?rt.Ku.location=Mh(y.location):z&&(rt.Ku[x]=Mh(b))}function Mh(a){return a instanceof xe||a instanceof wn?a.copy():a}Kt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Kt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ud(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Zu(x),hg(a,E),Ea(a.H,!0),kh(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function hg(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Be&&z.diagram===null)){var nt=b.value,rt=E?nt.end:nt.start;nt=E?nt.start:nt.end;var st=od,ht;for(ht in nt)ht==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||st.get(ht)===null||st.get(ht)(z,rt[ht],nt[ht],a.Lp,y,x,a)}}}Kt.stop=function(){return this.bc?(this.Ml(!0),this):this},Kt.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,Zu(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=od;b.next();){var nt=b.key,rt=b.value,st=E?rt.end:rt.start,ht=E?rt.start:rt.end,dt=rt.Ku,vt;for(vt in ht)if(z.get(vt)!==null){var Ft=vt;!rt.Hu||Ft!=="position:nodeCollapse"&&Ft!=="position:placeholder"||(Ft="position"),z.get(Ft)(nt,st[vt],dt[vt]!==void 0?dt[vt]:rt.Hu?st[vt]:ht[vt],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&dt.location!==void 0&&nt instanceof $n&&(nt.location=dt.location),rt.nv&&nt instanceof $n&&nt.Zb(!1)}if(y.As.clear(),hd(y,!1),y.Ya(),y.N(),Ea(y,!0),x.defaultAnimation===this){for(vt=x.pr.iterator;vt.next();)E=vt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Ea(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),kh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ld(this,null),x.Ml(this),y.$b())}},Kt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof xi&&(b=y.placeholder),b!==null?(x=b.ga(ar),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new xe(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof xi)for(a=a.memberParts;a.next();)b=a.value,b instanceof kn&&this.Cj(b,y)},Kt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof xi&&(x=y.placeholder),x!==null){var b=x.ga(ar);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof xi)for(a=a.memberParts;a.next();)b=a.value,b instanceof kn&&this.Aj(b,y)}},Kt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ke.Object.defineProperties(Vo.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&An(a,">= 1",Vo,"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:we("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}}}),Vo.prototype.getTemporaryState=Vo.prototype.Ez,Vo.prototype.stop=Vo.prototype.stop,Vo.prototype.add=Vo.prototype.add,Vo.prototype.addTemporaryPart=Vo.prototype.Iy;function yc(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function _p(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Vo.className="Animation",Vo.EaseLinear=function(a,y,x,b){return x*a/b+y},Vo.EaseInOutQuad=yc,Vo.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Vo.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Vo.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Vo.EaseOutExpo=_p;function Th(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Th.className="AnimationState";function nl(a,y,x){this.xd=null,this.rf=a,this.so=x||cg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Nh))}nl.prototype.copy=function(){var a=new nl(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 Hp(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))}Ke.Object.defineProperties(nl.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 cg=new an(nl,"Default",1),Nh=new an(nl,"Immediate",2),Sc=new an(nl,"Bundled",3);nl.className="AnimationTrigger",nl.Default=cg,nl.Immediate=Nh,nl.Bundled=Sc;function Do(a){di(this),this.H=null,this.Pa=new cn,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)}Kt=Do.prototype,Kt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,es(x)}a.clear(),this.Zq.length=0},Kt.Xe=function(a){this.H=a},Kt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,nt=0,rt=this.Pa.iterator;rt.next();){var st=rt.value;st instanceof xi?E++:st instanceof kn?b++:st instanceof vn?z++:st instanceof ir?nt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<b&&(rt+=b+" Nodes "),0<E&&(rt+=E+" Groups "),0<z&&(rt+=z+" Links "),0<nt&&(rt+=nt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
|
|
`+x.toString(),b=x.data,b!==null&&Wi(b)&&(rt+=" #"+Wi(b)),x instanceof kn?rt+=" "+Ai(b):x instanceof vn&&(rt+=" "+Ai(x.fromNode)+" "+Ai(x.toNode));return y+" "+this.Pa.count+": "+rt},Kt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=xe.alloc(),z=this.Pa.s,nt=z.length;nt--;){var rt=z[nt];if((b!==!0||Gh(rt)!==!1)&&rt.isVisible()&&(E.assign(a),gi(E,rt.oe),rt=rt.ic(E,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return xe.free(E),rt}return xe.free(E),null},Kt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof cn||b instanceof hn||(b=new hn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=xe.alloc(),nt=this.Pa.s,rt=nt.length;rt--;){var st=nt[rt];if((E!==!0||Gh(st)!==!1)&&st.isVisible()){z.assign(a),gi(z,st.oe);var ht=st;st.ji(z,y,x,b)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||b.add(ht))}}return xe.free(z),b},Kt.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof cn||E instanceof hn||(E=new hn),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var nt=this.Pa.s,rt=nt.length;rt--;){var st=nt[rt];if((z!==!0||Gh(st)!==!1)&&st.isVisible()){var ht=st;st.Cf(a,y,x,b,E)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||E.add(ht))}}return E},Kt.Nu=function(a,y,x,b,E,z,nt){if(this.Uh===!1)return E;for(var rt=this.Pa.s,st=rt.length;st--;){var ht=rt[st];if((nt!==!0||Gh(ht)!==!1)&&z(ht)&&ht.isVisible()){var dt=ht;ht.Cf(a,y,x,b,E)&&(y!==null&&(dt=y(dt)),dt===null||x!==null&&!x(dt)||E.add(dt))}}return E},Kt.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof cn||E instanceof hn)&&(z=E),E=!0),z instanceof cn||z instanceof hn||(z=new hn),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var rt=xe.alloc(),st=xe.alloc(),ht=this.Pa.s,dt=ht.length;dt--;){var vt=ht[dt];if((nt!==!0||Gh(vt)!==!1)&&vt.isVisible()){rt.assign(a),gi(rt,vt.oe),st.h(a.x+y,a.y),gi(st,vt.oe);var Ft=vt;vt.og(rt,st,x,b,E,z)&&(x!==null&&(Ft=x(Ft)),Ft===null||b!==null&&!b(Ft)||z.add(Ft))}}return xe.free(rt),xe.free(st),z},Kt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=Fn();for(var E=Fn(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof vn){if(nt.fd===!1)continue}else if(nt instanceof ir&&nt.adornedPart!==null)continue;var rt=nt.actualBounds;nt.isVisible()&&Wl(rt,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&E.push(nt))}for(y=0;y<a.length;y++)for(x=a[y],Iv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Iv(E[y]);jn(a),jn(E)}}};function vu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Kt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=vu(this,a);var z=this.Zq;z.length=0;for(var nt=y.scale,rt=en.alloc(),st=0;st<b;st++)this.Oj(a,x[st],y,z,nt,rt,!0);if(en.free(rt),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Kp(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var nt=vu(a,y),rt=a.Zq;rt.length=0;for(var st=x.scale,ht=en.alloc(),dt=0;dt<z;dt++){var vt=E[dt];b.contains(vt)&&a.Oj(y,vt,x,rt,st,ht,!1)}en.free(ht),y.globalAlpha=nt}}}Kt.Oj=function(a,y,x,b,E,z,nt){if(nt&&!Gh(y))a.Hs(y);else{if(b!==null&&y instanceof vn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(nt=!0,z.assign(b.tb)),b=b.containingGroup;var rt=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}b=!z.Re(rt)}b&&(a.save(),a instanceof na?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*E>x.Oq||rt.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Vr(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Vr(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Vr(y,a,y.background,!0,!1,z,E),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)))))),b&&(a.restore(),a.Vc(!0))}},Kt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Or,a,this,y,x,b,E)},Kt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&es(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),ef(this,a,y),a},Kt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,es(y),a};function ef(a,y,x){if(y=Vp(a,y,x),x instanceof xi&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,nt=0;nt<z;nt++){var rt=E[nt];if(rt===x&&(y=nt,0<=b)||0>b&&rt.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&ef(a,-1,y)}x.svg!==null&&x.svg.remove()}function Vp(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,nt=NaN;0<=z&&(nt=a.M(z).zOrder,!!isNaN(nt));)z--;for(var rt=y+1,st=NaN;rt<E&&(st=a.M(rt).zOrder,!!isNaN(st));)rt++;if(!isNaN(nt)&&nt>b)for(;;){if(z===-1||nt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(nt=NaN;0<=--z&&(nt=a.M(z).zOrder,isNaN(nt)););}else if(!isNaN(st)&&st<b)for(;;){if(rt===E||st>=b){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(st=NaN;++rt<E&&(st=a.M(rt).zOrder,isNaN(st)););}return y}Ke.Object.defineProperties(Do.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===""&&we("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&we("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)&&An(a,"0 <= value <= 1",Do,"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))}}}),Do.prototype.findObjectsNear=Do.prototype.og,Do.prototype.findObjectsIn=Do.prototype.Cf,Do.prototype.findObjectsAt=Do.prototype.ji,Do.prototype.findObjectAt=Do.prototype.ic,Do.className="Layer";function Ye(a,y){if(sm||($o(),sm=!0),di(this),Vl=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Hr){var x=this,b=function(){x.removeEventListener(pn.document,"DOMContentLoaded",b,!1),x.setRTL()};pn.document.body!==null?this.setRTL():x.addEventListener(pn.document,"DOMContentLoaded",b,!1)}this.ol=null,ff.add("Model",cr);var E=this;return this.Hb=function(z){var nt=E.partManager;if(z.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===Or&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Yp(this),this.model=cy(),this.Wg=!0,Xp(this),this.layout=new Dr,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 am,a!==void 0&&(typeof a=="string"||pn.Element&&a instanceof Element?fg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Fh,Vl;function Yp(a){a.Yd=new ea,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new cn,a.pj=new ti,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new xe(NaN,NaN).freeze(),a.du=new xe(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new xe(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new pi,a.zu=new xe(NaN,NaN).freeze(),a.ut=new en(NaN,NaN,NaN,NaN).freeze(),a.rj=new Bi(0,0,0,0).freeze(),a.sj=qu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=us,a.zk=Fo,a.Fg=us,a.pq=Fo,a.yt=ar,a.Bt=ar,a.Fc=!0,a.pn=!1,a.De=new hn,a.Eh=new ti,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Bi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new as,a.bq.diagram=a,a.Qg=new as,a.Qg.diagram=a,a.cj=new as,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,nv(a),a.ai=new hn,a.Ht=!0,a.uu=$u,a.pw=!1,a.wu=pd,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 ti,a.Xn=new cn,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 Bi(5).freeze(),a.Hw=new hn().freeze(),a.Nt=999999999,a.nw=new hn().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 hn,a.ow=new hn,a.Xh=null,a.aw=new wn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new xe,bounds:new en,Py:new wn,bA:new wn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new en(NaN,NaN,NaN,NaN).freeze(),a.wo=new wn(NaN,NaN).freeze(),a.Sp=new en(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new ti;var y=new kn,x=new wr;x.bind(new eo("text","",Ai)),y.add(x),a.ny=y,a.Lg.add("",y),y=new kn,x=new wr,x.stroke="brown",x.bind(new eo("text","",Ai)),y.add(x),a.Lg.add("Comment",y),y=new kn,y.selectable=!1,y.avoidable=!1,x=new Li,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new wn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new ti,y=new xi,y.selectionObjectName="GROUPPANEL",y.type=dn.Vertical,x=new wr,x.font="bold 12pt sans-serif",x.bind(new eo("text","",Ai)),y.add(x),x=new dn(dn.Auto),x.name="GROUPPANEL";var b=new Li;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new bs,b.padding=new Bi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new ti,y=new vn,x=new Li,x.isPanelMain=!0,y.add(x),x=new Li,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new vn,x=new Li,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new ir,y.type=dn.Auto,x=new Li,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new bs,x.margin=new Bi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new ir,y.type=dn.Link,x=new Li,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 cr,a.toolManager=new Br,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new at,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Zp(),a.eq=null,a.fq=xr,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 xe,a.zy=500,a.wp=new xe,a.wq=!1}Ye.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Lc=null,Rh="",dg(this,!1),this.Xn.clear(),Lf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function dg(a,y){a.animationManager.Cc(!0),a.Hw=new hn().freeze(),a.nw=new hn().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var st=rt.value;st!==E&&st.data===null&&z.push(st)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<nt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Lf(),a.Og.clear(),vr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Zp(){return null}Ye.prototype.reset=function(){this.clear(),this.vb=!0,Yp(this),Fl(this),this.Wg=!0,Xp(this),this.layout=new Dr,this.Wg=!1,this.model=cy(),this.model.undoManager=new jr,this.vb=this.rn=!1,this.N()},Ye.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=pn.document.body);var y=Di("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},Ye.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=pn.document.body);var y=0;if(Hr){var x=om;y=Fh,x===null&&(x=om=Di("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Fh=Di("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||Xi||(y=11)}this.Db=y,this.Gw=!0},Ye.prototype.qb=function(a){a.classType===Ye&&(this.autoScale=a)},Ye.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1);return y};function fg(a,y){if(Hr){if(y!=null||we("Diagram setup requires an argument DIV."),a.Ka!==null&&we("Diagram has already completed setup."),typeof y=="string"?a.Ka=pn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:we("No DIV or DIV id supplied: "+y),a.Ka===null&&we("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&we("Invalid div id; div already has a Diagram associated with it."),!a.ol&&pn.ResizeObserver){var x=hi(function(){a.$b()},250);a.ol=new pn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}pn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=pn.go;var E=new Ha(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",pn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),wg(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Ha(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,Hr){E=Di("div");var z=Di("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=Qp,E.addEventListener("pointerdown",qp),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=hi(function(){a.Yh=null,a.N()},300),a.Ov=hi(function(){gg(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var rt=ka(a,nt,!0);rt.bubbles=!0;var st=0,ht=0;rt.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(st=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ht=0<nt.deltaY?1:-1),rt.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-st:-ht):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(st=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ht=0<nt.wheelDeltaY?-1:1),rt.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-st:-ht):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(rt.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),il(rt,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,ka(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var rt=a.Yt;rt[nt.pointerId]===void 0&&(rt[nt.pointerId]=nt),rt=a.oj;var st=!1;if(rt[0]===null||rt[0].pointerId!==nt.pointerId&&rt[0].pointerType===nt.pointerType)if(rt[1]!==null&&rt[1].pointerId===nt.pointerId)rt[1]=nt,st=!0;else if(rt[0]===null)rt[0]=nt;else if(rt[1]===null)rt[1]=nt,st=!0;else{nt.preventDefault();return}else rt[0]=nt;(rt=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ht=st;st=yg(a,nt,!0,!1,!0,ht),wc(a,nt,st),st.targetDiagram=vg(nt,nt.target),st.targetObject=null,ht||st.clone(a.bq),ht=a.uw,rt=rt?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ht.x-nt.screenX)>rt||Math.abs(ht.y-nt.screenY)>rt)?a.yq++:a.yq=1,st.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():il(st,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==nt.pointerId&&rt[0].pointerType===nt.pointerType){if(rt[1]!==null&&rt[1].pointerId===nt.pointerId){rt[1]=nt;return}if(rt[0]===null)rt[0]=nt;else return}else rt[0]=nt;if(rt[0].pointerId===nt.pointerId){rt=yg(a,nt,!1,!1,!1,rt[1]!==null);var st=pn.document.elementFromPoint(nt.clientX,nt.clientY)||null;st!==null&&st.shadowRoot!==void 0&&st.shadowRoot!==null&&(st=st.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var ht=a,dt=nt;st&&st.H&&(dt=nt,ht=st.H),rt.targetDiagram=ht,wc(a,dt,rt),rt.targetObject=null,a.doMouseMove(),il(rt,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var rt=nt.pointerType==="touch"||nt.pointerType==="pen",st=a.Yt;if(rt&&a.qu)delete st[nt.pointerId],nt.preventDefault();else if(st=a.oj,st[0]===null||st[0].pointerId!==nt.pointerId&&st[0].pointerType===nt.pointerType)st[1]!==null&&st[1].pointerId===nt.pointerId&&(st[1]=null);else{st[0]=null,st=yg(a,nt,!1,!0,!0,!1);var ht=pn.document.elementFromPoint(nt.clientX,nt.clientY)||null;ht!==null&&ht.shadowRoot!==void 0&&ht.shadowRoot!==null&&(ht=ht.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ht!==null&&ht.H instanceof Ye&&ht.H!==a&&wc(ht.H,nt,st),ht===null&&(ht=nt.target),wc(a,nt,st),st.clickCount=a.yq,st.targetDiagram=vg(nt,ht),st.targetObject=null,a.doMouseUp(),il(st,nt),rt&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[nt.pointerId]&&delete rt[nt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===nt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===nt.pointerId&&(rt[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===nt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===nt.pointerId&&(rt[1]=null)},a.Vp=b.Z["d"+yd[1]+yd[2]+"wI"+Ec.slice(1,5)]["b"+Dx.slice(1,y)](b.Z,vd,y,y),b.Vc(!0),ev(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ye.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ye.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function ev(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(pn,"resize",a.Ov,!1)}function Is(a){30<a.Sq&&(a.Yh=1)}function hd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ri&&ri.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Ye.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:pn.devicePixelRatio||1},Ye.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Ye.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Ye.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Ye.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Ye.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Ye.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Ye.prototype.doFocus=function(){this.focus()},Ye.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=pn.scrollX||pn.pageXOffset,y=pn.scrollY||pn.pageYOffset;this.ta.focus(),pn.scrollTo(a,y)}},Ye.prototype.Oy=function(){this.H.R("GainedFocus")},Ye.prototype.Ny=function(){this.H.R("LostFocus")};function gg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===us&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Xp(a){var y=new Do;y.name="Background",a.Al(y),y=new Do,y.name="",a.Al(y),y=new Do,y.name="Foreground",a.Al(y),y=new Do,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Do,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Do,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Jp(a){var y=new dn(dn.Grid);y.name="GRID";var x=new Li;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Li,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Li,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Li,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Li,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Li,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new $n,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 Qp(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):bc(this.H)}function qp(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):bc(this.H)}Ye.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,nt=b.x-z.left,rt=b.y-z.top,st=b.width+z.left+z.right,ht=b.height+z.top+z.bottom,dt=b.right+z.right;z=b.bottom+z.bottom;var vt=E.x;b=E.y;var Ft=E.width,Wt=E.height,Ht=E.right,ne=E.bottom;E=this.scale;var ve=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ve=ve+a.scrollWidth-a.clientWidth;break;case"reverse":ve=a.scrollWidth-ve-a.clientWidth}var fe=ve;Ft<st||Wt<ht?(ve=xe.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==fe&&(ve.x=fe/E+nt,this.ju=fe),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ve.y=a.scrollTop/E+rt,this.lu=a.scrollTop),this.position=ve,xe.free(ve),this.Ee=this.qr=!1):(ve=xe.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<vt&&(this.position=ve.h(fe+nt,this.position.y)),dt>Ht&&(this.position=ve.h(-(y.scrollWidth-this.Aa)+fe-this.Aa/E+dt,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<b&&(this.position=ve.h(this.position.x,a.scrollTop+rt)),z>ne&&(this.position=ve.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),xe.free(ve),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,dt=b.right,Ht=E.right,z=b.bottom,ne=E.bottom,nt=b.x,vt=E.x,rt=b.y,b=E.y,Ft>=st&&nt>=vt&&dt<=Ht&&(x.style.width="1px"),Wt>=ht&&rt>=b&&z<=ne&&(x.style.height="1px"))}},Ye.prototype.computeBounds=function(a){return a===void 0&&(a=new en),Yo(this),pg(this,a)};function pg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var nt=b[z];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var rt=nt.length,st=0;st<rt;st++){var ht=nt[st];ht.isInDocumentBounds&&ht.isVisible()&&(ht=ht.actualBounds,ht.w()&&(x?(x=!1,y.assign(ht)):y.ed(ht)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Ye.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(yn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof vn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof vn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new en(NaN,NaN,0,0):x};function Ua(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=xe.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=en.allocAt(0,0,b.width,b.height);var E=xe.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,en.free(b),xe.free(E),xe.free(x)}x=a.yh,y&&a.Fg!==us&&(x=a.Fg);var z=x!==us?xc(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var nt=a.ya/z,rt=a.zk,st=a.pq;y&&!rt.sb()&&(st.sb()||st.Xb())&&(rt=st.Xb()?Oi:st),mg(a,a.documentBounds,E,nt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ie.B(z.x,x)&&Ie.B(z.y,b)&&Ie.B(z.width,E)&&Ie.B(z.height,nt)||a.onViewportBoundsChanged(new en(x,b,E,nt),z,y,!1)}}function xc(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),nt=a.ya+(a.Be?a.Db:0),rt=z/E,st=nt/b;return y===ga?(y=Math.min(st,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===jh?(y=st>rt?(nt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Ye.prototype.zoomToFit=function(){var a=this.sj;this.sj=qu,this.scale=xc(this,ga),a!==qu&&(Ua(this,!1),mg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Kt=Ye.prototype,Kt.BA=function(a,y){y===void 0&&(y=ga);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===ga||y===jh)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===jh?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new xe(a.x,a.y)}},Kt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new xe(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},Kt.zz=function(a){if(a instanceof Be){this.eq=a;var y=xe.alloc();this.fq=this.op(a.ga(ar,y)),xe.free(y)}else this.eq=null,this.fq=xr};function mg(a,y,x,b,E,z){var nt=xe.allocAt(a.pa.x,a.pa.y),rt=nt.x,st=nt.y;if(a.eq!==null){var ht=xe.alloc();ht=a.eq.ga(ar,ht),rt=ht.x-a.fq.x/a.scale,st=ht.y-a.fq.y/a.scale,E=Ki,xe.free(ht)}(z||a.scrollMode===qu)&&(E.sb()&&(x>y.width&&(rt=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(st=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,E.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,E.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(st=Math.min(st+b/2,y.bottom+Math.max(x,E.bottom)-b/2),st=Math.max(st,y.top-Math.max(x,E.top)+b/2),st-=b/2):st>y.top?st=y.top:st<y.bottom-b&&(st=y.bottom-b)),nt.x=isFinite(rt)?rt:-a.yb.left,nt.y=isFinite(st)?st:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),Up(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Fl(a),xe.free(nt)}Kt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Yl(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof $n)return a}else if(a=Yl(this,a,function(x){return x.part}),a instanceof $n)return a;return null},Kt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Yo(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Yl(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Yo(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Kt.lz=function(a,y,x){return y===void 0&&(y=!0),cd(this,a,function(b){return b.part},y?function(b){return b instanceof $n&&b.canSelect()}:null,x)};function cd(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof cn||E instanceof hn||(E=new hn),Yo(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Kt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof cn||b instanceof hn||(b=new hn),Yo(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Kt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),nf(this,a,function(E){return E instanceof $n&&(!x||E.canSelect())},y,b)},Kt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof cn||E instanceof hn||(E=new hn),Yo(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},Kt.Nu=function(a,y,x,b,E,z){var nt=new hn;Yo(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var st=rt.value;st.visible&&st.Nu(a,y,x,b,nt,E,z)}return nt};function nf(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof cn||E instanceof hn||(E=new hn),Yo(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}Kt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),dd(this,a,y,function(z){return z instanceof $n&&(!b||z.canSelect())},x,E)},Kt.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof cn||E instanceof hn)&&(z=E),E=!0),z instanceof cn||z instanceof hn||(z=new hn),Yo(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var rt=nt.value;rt.visible&&rt.og(a,y,x,b,E,z)}return z};function dd(a,y,x,b,E,z){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof cn||E instanceof hn)&&(z=E),E=!0),z instanceof cn||z instanceof hn||(z=new hn),Yo(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,nt,b,E,z)}return z}Ye.prototype.acceptEvent=function(a){return ka(this,a,a instanceof MouseEvent)};function ka(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?wc(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),Xi&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=vg(y,y.target),b.targetObject=null,b}function vg(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 yg(a,y,x,b,E,z){var nt=a.Qg;return a.Qg=a.cj,a.cj=nt,nt.diagram=a,nt.clickCount=1,a=nt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),nt.modifiers=a,nt.event=y,nt.timestamp=y.timeStamp,nt.button=y.button,nt.buttons=y.buttons,Xi&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=E,nt.isMultiTouch=z,nt}function il(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Ye.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=ka(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(),il(x,a)},Ye.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ka(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(),il(x,a)},Ye.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ka(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),il(x,a)},Ye.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ka(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),il(x,a)},Ye.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new xe(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?gi(new xe(y,a),this.Ab):new xe(y,a)};function wc(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,nt=0,rt=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-E/b.width*b.left,rt=y.clientY-z/b.height*b.top),x.viewPoint.h(nt,rt),a.Ab!==null?(y=xe.allocAt(nt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),xe.free(y)):x.documentPoint.h(nt,rt)}function Sg(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}Ye.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function $p(a){a.ld||Yo(a),a.Va()}Ye.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Kt=Ye.prototype,Kt.Pz=function(){return this.kg},Kt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Ea(this),this.hf=!1,this.du=new xe(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Ti(function(){b.ld=!1,Kl(y,"Model"),a(b)},1)},Kt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;pn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Kt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Ea(this))};function Dh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||bc(a)||(y&&Yo(a),x&&Ua(a,!1))}function Ea(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,nt=0;nt<z;nt++){var rt=E[nt];lo(rt,!1),rt.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(st){st.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||gg(a),Dh(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Nl(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Yo(a),z=!1,(!a.hf||a.xh)&&(a.hf?Mg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Mg(a,!1)),z=!0),a.Jk=!1,Yo(a),a.ou||$p(a),Dh(a,!0,!1),nt=!1,z?(x=en.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,xg(a)),a.R("LayoutCompleted"),Dh(a,!0,!1),en.free(x)):x.Ok&&x.Qw&&(a.Fg!==us?a.scale=xc(a,a.Fg):a.yh!==us?a.scale=xc(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Ua(a,!0)),z&&nt&&a.eb("Initial Layout"),Yo(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function xg(a){if(a.Fg!==us)a.scale=xc(a,a.Fg);else if(a.yh!==us)a.scale=xc(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Ua(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Nl(a)}function Yo(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 hn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof xi&&b.U&65536&&(b.U=b.U^65536)})}}Kt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof xi||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof xi&&x.isVisible()&&fd(this,x);for(a.reset();a.next();)x=a.value,x instanceof vn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof ir&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function fd(a,y){for(var x=Fn(),b=Fn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof xi?(ma(z)||Ps(z)||Wh(z))&&fd(a,z):z instanceof vn?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(jn(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();jn(b)}Kt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Kt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&we("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Cc(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,nt=Math.round(y.y*E)/E,rt=this.Ab;for(rt.reset(),E!==1&&rt.scale(E),y.x===0&&y.y===0||rt.translate(-z,-nt),a.ti=null,Xy(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ju(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Mc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(pi.prototype.Cd=pi.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Cc(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),nt=this.Mb,rt=this.pa;var st=this.Ca,ht=Math.round(rt.x*st)/st,dt=Math.round(rt.y*st)/st;for(st!==1&&z.scale(st),rt.x===0&&rt.y===0||z.translate(-ht,-dt),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ju(this,a),rt=0;rt<E;rt++)a.setTransform(nt,0,0,nt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Mc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(pi.prototype.Cd=pi.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=ri&&ri.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function rf(a,y,x,b,E,z,nt,rt,st,ht){if(a.Ka!==null){a.ta===null&&we("No canvas specified"),nt===void 0&&(nt=null),rt===void 0&&(rt=null),st===void 0&&(st=!1),ht===void 0&&(ht=!1),Cc(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var dt=a.Ca;a.Ca=E;var vt=a.Wa.s,Ft=vt.length;try{var Wt=new en(z.x,z.y,b.width/E,b.height/E),Ht=Wt.copy();Ht.Co(x),Nl(a,Ht),Yo(a),a.Fd(vt,Ft,a,Wt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,b.width,b.height));var ne=a.Mb;y.scale(ne,ne);var ve=pi.alloc();ve.reset(),ve.translate(x.left,x.top),ve.scale(E),z.x===0&&z.y===0||ve.translate(-z.x,-z.y),y.setTransform(ve.m11,ve.m12,ve.m21,ve.m22,ve.dx,ve.dy),y.yc(),y instanceof na&&Xy(y,ve.m11,ve.m12,ve.m21,ve.m22,ve.dx,ve.dy),pi.free(ve),Ju(a,y),y.globalAlpha=a.pb;var fe=a.Qj("Grid");if(nt){var Ce=new hn,ke=nt.iterator;for(ke.reset();ke.next();){var Me=ke.value;Me instanceof $n&&(ht||Me.layer!==fe)&&(Me.Gj(),Ce.add(Me))}for(ht=0;ht<Ft;ht++)Kp(vt[ht],y,a,Ce,st);Ce.each(function(Ve){return Ve.Gj()})}else for(Ce=0;Ce<Ft;Ce++){var De=vt[Ce];De===fe?ht&&De.gc(y,a,!0):De.gc(y,a,st)}a.$i=!1,a.Yf&&Mc(a.Yf,a)&&a.Vp()}finally{a.Ca=dt,a.ib.Vc(!0),a.vd=!0,a.Fd(vt,Ft,a,a.viewportBounds),Nl(a),a.ib instanceof na&&(a.ib.Nj.PA(),a.redraw())}}}Kt.Gf=function(a){return this.Rg[a]},Kt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Kt.Tx=function(){this.Rg=new Qn,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Xi||Ii),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ju(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Kt.Ql=function(a){return this.on[a]},Kt.sA=function(a,y){this.on[a]=y},Kt.Sx=function(){this.on=new Qn,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Kt.set=function(a){return Object.assign(this,a),this},Kt.Du=function(a){return this.nm(a)},Kt.nm=function(a){return Pc(this,a),this};function Pc(a,y){var x=a instanceof dn,b=a instanceof Ye,E;for(E in y){E===""&&we("Setting properties requires non-empty property names");var z=a,nt=E;if(x||b){var rt=E.indexOf(".");if(0<rt){var st=E.substring(0,rt);x?z=a.fb(st):(z=a[st],z==null&&(z=a.toolManager[st])),tn(z)?nt=E.substr(rt+1):we("Unable to find object named: "+st+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!ai(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&ai(a.toolManager,nt))z=a.toolManager;else if(b&&nm(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Vn&&nt==="Changed"){a.Pe(y[nt]);continue}else we('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof Be&&z.Vw(nt)}}Kt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new ti,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Kt.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Ye.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==md&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),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))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=en.alloc(),Eg(this,this.computeBounds(b)),en.free(b)),b=this.ta,b===null||b instanceof Dl)))){var nt=this.Mb;E=this.Aa*nt;var rt=this.ya*nt,st=this.scale*nt;z=Math.round(Math.round(y.x*st)-Math.round(a.x*st)),y=Math.round(Math.round(y.y*st)-Math.round(a.y*st)),st=this.jw,a=this.oy,st.width!==E&&(st.width=E),st.height!==rt&&(st.height=rt),a.clearRect(0,0,E,rt),st=190*nt;var ht=70*nt,dt=Math.max(z,0),vt=Math.max(y,0),Ft=Math.floor(E-dt),Wt=Math.floor(rt-vt);a.drawImage(b.Oa,dt,vt,Ft,Wt,0,0,Ft,Wt),Mc(this.Yf,this)&&a.clearRect(0,0,st,ht),b=Fn(),a=Fn(),Wt=Math.abs(z),Ft=Math.abs(y);var Ht=dt===0?0:E-Wt;dt=xe.allocAt(Ht,0),Wt=xe.allocAt(Wt+Ht,rt),a.push(new en(Math.min(dt.x,Wt.x),Math.min(dt.y,Wt.y),Math.abs(dt.x-Wt.x),Math.abs(dt.y-Wt.y)));var ne=this.Ab;if(ne.reset(),ne.scale(nt,nt),this.Ca!==1&&ne.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&ne.translate(-nt.x,-nt.y),gi(dt,ne),gi(Wt,ne),b.push(new en(Math.min(dt.x,Wt.x),Math.min(dt.y,Wt.y),Math.abs(dt.x-Wt.x),Math.abs(dt.y-Wt.y))),Ht=vt===0?0:rt-Ft,dt.h(0,Ht),Wt.h(E,Ft+Ht),a.push(new en(Math.min(dt.x,Wt.x),Math.min(dt.y,Wt.y),Math.abs(dt.x-Wt.x),Math.abs(dt.y-Wt.y))),gi(dt,ne),gi(Wt,ne),b.push(new en(Math.min(dt.x,Wt.x),Math.min(dt.y,Wt.y),Math.abs(dt.x-Wt.x),Math.abs(dt.y-Wt.y))),Mc(this.Yf,this)&&(E=0<z?0:-z,rt=0<y?0:-y,dt.h(E,rt),Wt.h(st+E,ht+rt),a.push(new en(Math.min(dt.x,Wt.x),Math.min(dt.y,Wt.y),Math.abs(dt.x-Wt.x),Math.abs(dt.y-Wt.y))),gi(dt,ne),gi(Wt,ne),b.push(new en(Math.min(dt.x,Wt.x),Math.min(dt.y,Wt.y),Math.abs(dt.x-Wt.x),Math.abs(dt.y-Wt.y)))),xe.free(dt),xe.free(Wt),Dh(this,!1,!0),this.Ka===null&&we("No div specified"),this.ta===null&&we("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(Cc(this),rt=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*rt,this.ya*rt),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,nt=this.Ca,st=Math.round(z.x*nt)/nt,ht=Math.round(z.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),z.x===0&&z.y===0||y.translate(-st,-ht),E.save(),E.beginPath(),z=a.length,nt=0;nt<z;nt++)st=a[nt],st.width!==0&&st.height!==0&&E.rect(Math.floor(st.x),Math.floor(st.y),Math.ceil(st.width),Math.ceil(st.height));for(E.clip(),E.setTransform(rt,0,0,rt,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ju(this,E),E.globalAlpha=this.pb,rt=0;rt<z;rt++)if(nt=y[rt],st=b,nt.visible&&nt.pb!==0){ht=vu(nt,E),vt=nt.Zq,vt.length=0,dt=this.scale,Ft=en.alloc(),Wt=nt.Pa.s,ne=Wt.length,Ht=st.length;for(var ve=0;ve<ne;ve++){var fe=Wt[ve],Ce=Ic(fe,fe.actualBounds);t:{for(var ke=2/dt,Me=4/dt,De=0;De<Ht;De++){var Ve=st[De];if(Ve.width!==0&&Ve.height!==0&&Ce.Vu(Ve.x-ke,Ve.y-ke,Ve.width+Me,Ve.height+Me)){Ce=!0;break t}}Ce=!1}Ce&&nt.Oj(E,fe,this,vt,dt,Ft,!0)}en.free(Ft),E.globalAlpha=ht}E.restore(),E.Vc(!0),this.Yf&&Mc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}jn(b),jn(a),this.ld=!1}}else this.bd();x&&(Is(this),this.bd(),hd(this,!0))}else x?(Is(this),this.bd(),hd(this,!0)):this.bd()}};function Cc(a){a.pn!==!1&&(a.pn=!1,wg(a,a.Aa,a.ya))}function wg(a,y,x){Fl(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function bc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,nt=a.gf?a.Db:0,rt=a.Be?a.Db:0,st=E.clientWidth||x+nt,ht=E.clientHeight||b+rt,dt=a.viewportBounds;E=dt.x;var vt=dt.y,Ft=dt.width,Wt=dt.height;if((st!==x+nt||ht!==b+rt)&&(a.gf=!1,a.Be=!1,rt=nt=0,a.Aa=st,a.ya=ht,z=a.pn=!0,Fl(a)),!a.hf||!a.viewportBounds.w())return!0;var Ht=a.ku,ne=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ve=a.documentBounds,fe=0,Ce=0,ke=0,Me=0,De=dt.width,Ve=dt.height,Ln=a.rj;a.contentAlignment.sb()?(ve.width>De&&(fe=Ln.left,Ce=Ln.right),ve.height>Ve&&(ke=Ln.top,Me=Ln.bottom)):(fe=Ln.left,Ce=Ln.right,ke=Ln.top,Me=Ln.bottom);var Un=ve.width+fe+Ce,On=ve.height+ke+Me;Ln=a.scale;var gn=Un>st/Ln,sn=On>ht/Ln;if(!(z||a.gf||a.Be||gn||sn))return!0;fe=ve.x-fe,st=dt.x,Ce=ve.right+Ce,ht=dt.right+nt,ke=ve.y-ke;var mi=dt.y;ve=ve.bottom+Me,dt=dt.bottom+rt;var fi="1px";if(Me="1px",a.scrollMode===qu&&(gn||sn)&&(gn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(gn=1,fe+1<st&&(gn=Math.max((st-fe)*Ln+a.Aa,gn)),Ce>ht+1&&(gn=Math.max((Ce-ht)*Ln+a.Aa,gn)),De+nt+1<Un&&(gn=Math.max((Un-De)*Ln+a.Aa,gn)),fi=gn.toString()+"px"),sn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(gn=1,ke+1<mi&&(gn=Math.max((mi-ke)*Ln+a.ya,gn)),ve>dt+1&&(gn=Math.max((ve-dt)*Ln+a.ya,gn)),Ve+rt+1<On&&(gn=Math.max((On-Ve)*Ln+a.ya,gn)),Me=gn.toString()+"px")),gn=fi!=="1px",sn=Me!=="1px",gn&&sn||!gn&&!sn||(sn&&(ht-=a.Db),gn&&(dt-=a.Db),Un<De+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,fe+1<st&&(nt=Math.max((st-fe)*Ln+a.Aa,nt)),Ce>ht+1&&(nt=Math.max((Ce-ht)*Ln+a.Aa,nt)),De+1<Un&&(nt=Math.max((Un-De)*Ln+a.Aa,nt)),fi=nt.toString()+"px"),gn=fi!=="1px",nt=a.ya,gn!==a.Be&&(nt=gn?a.ya-a.Db:a.ya+a.Db),On<Ve+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,ke+1<mi&&(rt=Math.max((mi-ke)*Ln+nt,rt)),ve>dt+1&&(rt=Math.max((ve-dt)*Ln+nt,rt)),Ve+1<On&&(rt=Math.max((On-Ve)*Ln+nt,rt)),Me=rt.toString()+"px"),sn=Me!=="1px"),a.qr&&gn===a.Be&&sn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(gn!==a.Be&&(fi==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=gn,ne.style.width=fi,sn!==a.gf&&(Me==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=xe.alloc(),sn?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),xe.free(rt))),z&&Fl(a),a.gf=sn,ne.style.height=Me,a.gu=!0,z&&(a.pn=!0),y=Ht.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(De+1<Un?y=(a.position.x-fe)*Ln:fe+1<st?y=Ht.scrollWidth-Ht.clientWidth:Ce>ht+1&&(y=a.position.x*Ln)),a.tn)switch(a.bu){case"negative":y=-(Ht.scrollWidth-y-Ht.clientWidth);break;case"reverse":y=Ht.scrollWidth-y-Ht.clientWidth}return Ht.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ve+1<On?Ht.scrollTop=(a.position.y-ke)*Ln:ke+1<mi?Ht.scrollTop=Ht.scrollHeight-Ht.clientHeight:ve>dt+1&&(Ht.scrollTop=a.position.y*Ln)),st=a.Aa,ht=a.ya,Ht.style.width=st+(a.gf?a.Db:0)+"px",Ht.style.height=ht+(a.Be?a.Db:0)+"px",x!==st||b!==ht||a.animationManager.zb?(x=en.allocAt(E,vt,Ft,Wt),a.onViewportBoundsChanged(x,a.viewportBounds,Ln,z),en.free(x),!1):!0}Kt=Ye.prototype,Kt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&we("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&&we('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(qr,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Kt.oi=function(a){this.partManager.oi(a);var y=this;Dc(a,function(x){Ac(y,x)}),(a instanceof ir||a instanceof xi&&a.placeholder!==null)&&a.v(),a.data!==null&&Dc(a,function(x){ly(y.partManager,x)}),Ps(a)!==!0&&Wh(a)!==!0||this.De.add(a),j1(a,!0,this),W1(a)?(a.actualBounds.w()&&this.N(Ic(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ic(a,a.actualBounds)),this.$b()},Kt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Dc(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),W1(a)?(a.actualBounds.w()&&this.N(Ic(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ic(a,a.actualBounds)),this.$b()},Kt.remove=function(a){Pg(this,a,!0)};function Pg(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(fo,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Kt.Is=function(a,y){if(y===void 0&&(y=!1),yn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new hn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Kt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Ye.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=of(this)),this.toolManager!==null){var E=new ti;if(a!==null)if(yn(a))for(var z=0;z<a.length;z++)Zl(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Zl(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Zl(this,E,a.value,x,b);for(a=this.nodes;a.next();)Zl(this,E,a.value,x,b);for(a=this.links;a.next();)Zl(this,E,a.value,x,b)}Bh(this,E,y,b,x)}};function Zl(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=of(a)),x instanceof kn){if(y.add(x,a.Pd(E,x,x.location)),x instanceof xi&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Zl(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var nt=z.value;if(!y.contains(nt)){var rt=nt.fromNode,st=nt.toNode;rt!==null&&y.contains(rt)&&st!==null&&y.contains(st)&&Zl(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Zl(a,y,x.value,b,E)}else if(x instanceof vn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Zl(a,y,x.value,b,E);else x instanceof ir||y.add(x,a.Pd(E,x,x.location))}function Bh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=xe.alloc(),nt=xe.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||af(a,y);for(var rt=Fn(),st=Fn(),ht=y.iterator,dt=xe.alloc();ht.next();){var vt=ht.key,Ft=ht.value;if(vt.Zc()){var Wt=Cg(a,vt,y);Wt!==null?rt.push(new it(vt,Ft,Wt)):(!E||vt.canMove())&&(Wt=Ft.point,z.assign(Wt),a.computeMove(vt,z.add(nt),b,dt),vt.location=dt,Ft.shifted===void 0&&(Ft.shifted=new xe),Ft.shifted.assign(dt.re(Wt)))}else ht.key instanceof vn&&st.push(ht.sa)}for(xe.free(dt),E=rt.length,ht=0;ht<E;ht++)vt=rt[ht],z.assign(vt.info.point),vt.Su.shifted===void 0&&(vt.Su.shifted=new xe),vt.node.location=z.add(vt.Su.shifted);for(E=xe.alloc(),ht=xe.alloc(),vt=st.length,Ft=0;Ft<vt;Ft++){var Ht=st[Ft];if(Wt=Ht.key,Wt instanceof vn)if(Wt.suspendsRouting){Wt.Tg=null,dt=Wt.fromNode;var ne=Wt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ne=Ht.value.point,Wt.dragComputation===null)y.add(Wt,a.Pd(b,Wt,nt)),sh(Wt,nt.x-ne.x,nt.y-ne.y);else{Ht=xe.allocAt(0,0),(dt=Wt.i(0))&&dt.w()&&Ht.assign(dt);var ve=dt=xe.alloc().assign(Ht).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(ve=xe.alloc(),sf(a,Wt,dt,ve,b)),dt.assign(Wt.dragComputation(Wt,dt,ve)).re(Ht),y.add(Wt,a.Pd(b,Wt,dt)),sh(Wt,dt.x-ne.x,dt.y-ne.y),xe.free(Ht),xe.free(dt),ve!==dt&&xe.free(ve)}else dt!==null&&(E.assign(dt.location),ve=y.I(dt),ve!==null&&E.re(ve.point)),ne!==null&&(ht.assign(ne.location),ve=y.I(ne),ve!==null&&ht.re(ve.point)),dt!==null&&ne!==null?E.Xa(ht)?(dt=Ht.value.point,ne=z,ne.assign(E),ne.re(dt),y.add(Wt,a.Pd(b,Wt,E)),sh(Wt,ne.x,ne.y)):(Wt.suspendsRouting=!1,Wt.bb()):(Ht=Ht.value.point,dt=dt!==null?E:ne!==null?ht:nt,y.add(Wt,a.Pd(b,Wt,dt)),sh(Wt,dt.x-Ht.x,dt.y-Ht.y))}else(Wt.fromNode===null||Wt.toNode===null)&&(dt=Ht.value.point,y.add(Wt,a.Pd(b,Wt,nt)),sh(Wt,nt.x-dt.x,nt.y-dt.y))}xe.free(z),xe.free(nt),xe.free(E),xe.free(ht),jn(rt),jn(st),x||(Yo(a),Oh(a,y))}}Ye.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new xe),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=xe.alloc(),sf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var nt=a.minLocation,rt=nt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var st=a.maxLocation,ht=st.x;return isNaN(ht)&&(ht=z?Math.round(1e3*a.location.x)/1e3:a.location.x),st=st.y,isNaN(st)&&(st=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(rt,Math.min(x.x,ht)),Math.max(nt,Math.min(x.y,st))),E!==y&&xe.free(E),b};function of(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function sf(a,y,x,b,E){if(E===void 0&&(E=of(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var nt=E.gridSnapOrigin,rt=nt.x;if(nt=nt.y,E=E.gridSnapCellSpot,z!==null){var st=z.gridCellSize;isNaN(a)&&(a=st.width),isNaN(y)&&(y=st.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(nt)&&(nt=z.y)}z=xe.allocAt(0,0),z.yi(0,0,a,y,E),Ie.No(x.x,x.y,rt+z.x,nt+z.y,a,y,b),xe.free(z)}}function af(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof vn&&(y.suspendsRouting=!0)}function Oh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof vn&&(x.suspendsRouting=!1,Zv(x)&&x.bb())}a.Mr=!1}}function Cg(a,y,x){return y=y.containingGroup,y!==null&&(a=Cg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Kt=Ye.prototype,Kt.Pd=function(a,y,x){if(x===void 0)return new yu(Gr);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new yu(new xe(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new yu(x.copy())};function bg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&we("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&we("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&we("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&we("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&we("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Kt.Al=function(a){bg(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(qr,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Kt.Ww=function(a,y){bg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(fo,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(qr,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Kt.Cy=function(a,y){bg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(fo,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(qr,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Kt.kA=function(a){if(a.diagram!==this&&we("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(fo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Kt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Kt.Yw=function(a){return this.pf===null&&(this.pf=new cn),this.pf.add(a),this.model.Pe(a),this},Kt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Kt.Pe=function(a){return this.zg===null&&(this.zg=new cn),this.zg.add(a),this},Kt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Kt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ta&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Kt.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var rt=new Ir;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=b,rt.oldParam=z,rt.newValue=E,rt.newParam=nt,this.ds(rt)},Kt.g=function(a,y,x,b,E){this.cb(Or,a,this,y,x,b,E)},Ye.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Or){var E=a.object;if(Nr(E,a.propertyName,a.I(y)),E instanceof Be){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===qr){var nt=a.object,rt=a.newParam,st=a.newValue;if(nt instanceof dn)if(typeof rt=="number"&&st instanceof Be){y?nt.pc(rt):nt.Gb(rt,st);var ht=nt.part;ht!==null&&ht.Wb()}else typeof rt=="number"&&st instanceof uo&&(st.isRow?c1(nt,rt,y?void 0:st):d1(nt,rt,y?void 0:st));else if(nt instanceof Do){var dt=a.oldParam===!0;typeof rt=="number"&&st instanceof $n&&(y?(st.isSelected=!1,st.isHighlighted=!1,st.Wb(),nt.pc(dt?rt:-1,st,dt)):nt.oi(rt,st,dt))}else nt instanceof Ye?typeof rt=="number"&&st instanceof Do&&(y?this.Wa.mb(rt):(st.Xe(this),this.Wa.Gb(rt,st))):we("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===fo){var vt=a.object,Ft=a.oldParam,Wt=a.oldValue;if(vt instanceof dn)typeof Ft=="number"&&Wt instanceof Be?y?vt.Gb(Ft,Wt):vt.pc(Ft):typeof Ft=="number"&&Wt instanceof uo&&(Wt.isRow?c1(vt,Ft,y?Wt:void 0):d1(vt,Ft,y?Wt:void 0));else if(vt instanceof Do){var Ht=a.newParam===!0;typeof Ft=="number"&&Wt instanceof $n&&(y?0>vt.Pa.indexOf(Wt)&&vt.oi(Ft,Wt,Ht):(Wt.isSelected=!1,Wt.isHighlighted=!1,Wt.Wb(),vt.pc(Ht?Ft:-1,Wt,Ht)))}else vt instanceof Ye?typeof Ft=="number"&&Wt instanceof Do&&(y?(Wt.Xe(this),this.Wa.Gb(Ft,Wt)):this.Wa.mb(Ft)):we("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ta&&we("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ye.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ye.prototype.eb=function(a){return this.undoManager.eb(a)},Ye.prototype.Kf=function(){return this.undoManager.Kf()},Ye.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ye.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ye.prototype.rp=function(){this.partManager.rp()};function Ag(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Fl(a),a.N(),a.Ee=!0,b.zb&&(pu(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Fl(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,rt=a.zoomPoint.x,st=a.zoomPoint.y,ht=a.contentAlignment;isNaN(rt)&&(ht.$c()?ht.Hf(Ca)?rt=0:ht.Hf(Ds)&&(rt=z-1):rt=ht.sb()?ht.x*(z-1):z/2),isNaN(st)&&(ht.$c()?ht.Hf(Js)?st=0:ht.Hf(ba)&&(st=nt-1):st=ht.sb()?ht.y*(nt-1):nt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=xe.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+st/y-st/x),a.position=z,xe.free(z),a.Ca=x,Fl(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Ua(a,!1),b.zb&&(pu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ye.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==us||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Br&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ip(E,this)),this.vb||this.invalidateViewport(a,y),Nl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Nl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=wn.alloc(),E=1,z=1,nt=x.O.s,rt=nt.length,st=0;st<rt;st++){var ht=nt[st],dt=Math.abs(ht.interval);2>dt||(mv(ht.figure)?z=z*dt/Ie.vx(z,dt):E=E*dt/Ie.vx(E,dt))}if(nt=x.gridCellSize,b.h(z*nt.width,E*nt.height),y!==void 0)E=y.width,z=y.height,a=y.x,nt=y.y;else{if(y=en.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){en.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,en.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=xe.alloc(),Ie.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),wn.free(b),x.part.location=y,xe.free(y)}}Ye.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Ye.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},Ye.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof $n||we("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof $n||we("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Ye.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Kt=Ye.prototype,Kt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Kt.Jz=function(a){a=new hn().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 $n||we("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Kt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=xe.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),xe.free(z);return}we("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):we("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),xe.free(z)},Kt.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)},Kt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Kt.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)},Kt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,nt=y.m11,rt=y.m12,st=y.m21,ht=y.m22,dt=y.dx,vt=y.dy,Ft=x*nt+b*st+dt;y=x*rt+b*ht+vt;var Wt=E*nt+b*st+dt;return a=E*rt+b*ht+vt,b=x*nt+z*st+dt,x=x*rt+z*ht+vt,nt=E*nt+z*st+dt,E=E*rt+z*ht+vt,z=Math.min(Ft,Wt),Ft=Math.max(Ft,Wt),Wt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Ft=Math.max(Ft,b),Wt=Math.min(Wt,x),y=Math.max(y,x),z=Math.min(z,nt),Ft=Math.max(Ft,nt),Wt=Math.min(Wt,E),y=Math.max(y,E),new en(z,Wt,Ft-z,y-Wt)},Kt.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),gi(a.copy(),this.Ab)};function tm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Lg(a){return a=ff.get(a),a!==null?new a:new cr}Ye.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===ta&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(st){return st.diagram=E}),a.mouseMoveTools.each(function(st){return st.diagram=E}),a.mouseUpTools.each(function(st){return st.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===ta){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Yo(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Qd(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var nt=a.isTransactionFinished;if(nt&&(tm(this),this.As.clear(),Gp(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;Ti(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function Ac(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Ih(a,y[b])}function Ih(a,y){if(y instanceof Ws){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof hn&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function kg(a,y){if(y instanceof Ws){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof hn&&x.Bg.remove(a),Lf(b));break}}}}}Ye.prototype.Wd=function(){this.partManager.Wd()},Ye.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Ye.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Ye.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Ye.prototype.Vb=function(a){return this.partManager.Vb(a)},Ye.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Kt=Ye.prototype,Kt.Lc=function(a){return this.partManager.Lc(a)},Kt.ii=function(a){return this.partManager.ii(a)},Kt.Kc=function(a){return this.partManager.Kc(a)},Kt.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:bn(Rn(y)))},Kt.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:bn(Rn(y)))};function Fl(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 Eg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Ua(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Kt.Va=function(){if(this.Zi){var a=en.alloc();Eg(this,this.computeBounds(a)),en.free(a)}},Kt.rz=function(){for(var a=new hn,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},Kt.qz=function(){return this.ai.iterator},Kt.Uz=function(a){Yo(this),a&&lf(this,!0),this.ld?Mg(this,!1):(this.Jk=!0,Ea(this))};function lf(a,y){for(var x=a.ai.iterator;x.next();)em(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function em(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)em(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Mg(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Kl(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Tg(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Yo(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||Qd(z),a.aa=x}}}function Tg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Tg(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),fd(a,y),E.isValidLayout=!0):a.xh=!0)}}Kt.yz=function(){for(var a=new cn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(E){var z=E.toLowerCase(),nt=new cn;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new ti,b=new ti;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function uf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;we("Unknown DiagramEvent name: "+y)}Kt.Bj=function(a,y){return a=uf(this,a),a!==null&&a.add(y),this},Kt.am=function(a,y){a=uf(this,a),a!==null&&a.remove(y)},Kt.R=function(a,y,x){var b=uf(this,a),E=new Iu;if(E.diagram=this,a=nm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function hf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Kt.Yj=function(a,y){return cf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Ye.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?pg(this,a):a.assign(this.documentBounds)};function cf(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new op(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=im(a,x)),x===null){y=en.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var nt=z.value,rt=nt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&df(a,nt,b,y)}en.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=en.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof kn&&df(a,nt,b,y);en.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function im(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?im(a,y.containingGroup):null}function df(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Ff(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(lh,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=lh}else if(y instanceof xi)for(y=y.memberParts;y.next();)E=y.value,E instanceof kn&&df(a,E,x,b)}}function Qu(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Ye.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Ng(this)};function Ng(a){a.vk===-1&&(a.vk=Ti(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=en.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Eg(a,y),en.free(y),a.Fc=!0,a.bd(),Ng(a))}},a.vp))}Ye.prototype.ug=function(){this.vk!==-1&&(pn.clearTimeout(this.vk),this.vk=-1)},Ye.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=en.allocAt(0,0,b.width*E,b.height*E);var z=xe.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var nt=Math.max(this.scrollHorizontalLineChange,1);nt|=0,z.x-=nt,a.x<b.x+x.left/2&&(z.x-=nt),a.x<b.x+x.left/4&&(z.x-=4*nt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,z.x+=nt,a.x>b.x+b.width-x.right/2&&(z.x+=nt),a.x>b.x+b.width-x.right/4&&(z.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y-=nt,a.y<b.y+x.top/2&&(z.y-=nt),a.y<b.y+x.top/4&&(z.y-=4*nt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y+=nt,a.y>b.y+b.height-x.bottom/2&&(z.y+=nt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*nt)),z.Xa(Gr)||(y=new xe(y.x+z.x/E,y.y+z.y/E)),en.free(b),xe.free(z),y},Kt=Ye.prototype,Kt.Cs=function(){return null},Kt.av=function(){return null},Kt.bs=function(a,y){this.pj.add(a,y)},Kt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof xi&&(y.$p=null)})};function gd(a,y,x){function b(){var dt=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||dt-ht>st?y(x,E,rt):pn.requestAnimationFrame(b)}for(var E=x.callback,z=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var rt=a,st=x.callbackTimeout||300,ht=+new Date;return pn.requestAnimationFrame(function(){b()}),null}Kt.Wz=function(a){return Hr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Kt.Jx=function(a){return a===void 0&&(a={}),gd(this,this.Xz,a)},Kt.Xz=function(a,y,x){var b=rm(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case Ec+"data":E=b.getImageData(0,0,x.width,x.height);break;case Ec:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&we('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function rm(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&we("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new wn(1/0,1/0):new wn(2e3,2e3));var rt=y.position||null,st=y.parts||null,ht=y.padding===void 0?1:y.padding,dt=y.background||null,vt=y.omitTemporary;vt===void 0&&(vt=!0);var Ft=y.document||document,Wt=y.elementFinished||null,Ht=y.showTemporary;Ht===void 0&&(Ht=!vt),y=y.showGrid,y===void 0&&(y=Ht),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ht=="number"?ht=new Bi(ht):ht instanceof Bi||we("MakeImage padding must be a Margin or a number."),ht.left=Math.max(ht.left,0),ht.right=Math.max(ht.right,0),ht.top=Math.max(ht.top,0),ht.bottom=Math.max(ht.bottom,0),a.ib.Vc(!0),vt=new Ha(null,Ft,void 0,!0);var ne=vt.context;if(!(E||z||st||rt))return vt.width=a.Aa+Math.ceil(ht.left+ht.right),vt.height=a.ya+Math.ceil(ht.top+ht.bottom),x==="SVG"?b===null?null:(b.resize(vt.width,vt.height,vt.width,vt.height),b.ownerDocument=Ft,b.hs=Wt,rf(a,b.context,ht,new wn(vt.width,vt.height),a.Ca,a.pa,st,dt,Ht,y),b.context):(a.Xm=!1,rf(a,ne,ht,new wn(vt.width,vt.height),a.Ca,a.pa,st,dt,Ht,y),a.Xm=!0,vt.context);var ve=a.Pp,fe=a.documentBounds.copy();if(fe.Fv(a.yb),Ht)for(var Ce=a.Wa.s,ke=Ce.length,Me=0;Me<ke;Me++){var De=Ce[Me];if(De.visible&&De.isTemporary){De=De.Pa.s;for(var Ve=De.length,Ln=0;Ln<Ve;Ln++){var Un=De[Ln];Un.isInDocumentBounds&&Un.isVisible()&&(Un=Un.actualBounds,Un.w()&&fe.ed(Un))}}}if(Ce=new xe(fe.x,fe.y),st!==null){for(ke=new en(0,0,0,0),Me=!0,De=st.iterator,De.reset();De.next();)Ve=De.value,Ve instanceof $n&&(Ln=Ve.layer,Ln!==null&&!Ln.visible||Ln!==null&&!Ht&&Ln.isTemporary||!Ve.isVisible()||(Ve=Ve.actualBounds,Ve.w()&&(Me?(Me=!1,ke.assign(Ve)):ke.ed(Ve))));fe.width=ke.width,fe.height=ke.height,Ce.x=ke.x,Ce.y=ke.y}return rt!==null&&rt.w()&&(Ce=rt,z||(z=ve)),ke=rt=0,ht!==null&&(rt=ht.left+ht.right,ke=ht.top+ht.bottom),Me=De=0,E!==null&&(De=E.width,Me=E.height,isFinite(De)&&(De=Math.max(0,De-rt)),isFinite(Me)&&(Me=Math.max(0,Me-ke))),E!==null&&z!==null?(z==="NaN"&&(z=ve),E.w()?(E=De,fe=Me):isNaN(Me)?(E=De,fe=fe.height*z):(E=fe.width*z,fe=Me)):E!==null?E.w()?(z=Math.min(De/fe.width,Me/fe.height),E=De,fe=Me):isNaN(Me)?(z=De/fe.width,E=De,fe=fe.height*z):(z=Me/fe.height,E=fe.width*z,fe=Me):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-rt)/fe.width,(nt.height-ke)/fe.height),z>ve?(z=ve,E=fe.width,fe=fe.height):(E=nt.width,fe=nt.height)):(E=fe.width*z,fe=fe.height*z):(z=ve,E=fe.width,fe=fe.height),ht!==null?(E+=rt,fe+=ke):ht=new Bi(0),nt!==null&&(ve=nt.width,nt=nt.height,isNaN(ve)&&(ve=2e3),isNaN(nt)&&(nt=2e3),isFinite(ve)&&(E=Math.min(E,ve)),isFinite(nt)&&(fe=Math.min(fe,nt))),vt.width=Math.ceil(E),vt.height=Math.ceil(fe),x==="SVG"?b===null?null:(b.resize(vt.width,vt.height,vt.width,vt.height),b.ownerDocument=Ft,b.hs=Wt,rf(a,b.context,ht,new wn(Math.ceil(E),Math.ceil(fe)),z,Ce,st,dt,Ht,y),b.context):(a.Xm=!1,rf(a,ne,ht,new wn(Math.ceil(E),Math.ceil(fe)),z,Ce,st,dt,Ht,y),a.Xm=!0,vt.context)}Ke.Object.defineProperties(Ye.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof bt||(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 Dl(this,pn.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 Dl(this,pn.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(pn,"resize",this.Ov,!1),this.removeEventListener(pn,"wheel",this.$j,!0),Vl===this&&(Vl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),fg(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)&&An(a,"0 <= value <= 1",Ye,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Ua(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Ua(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Ua(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Ua(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&An(a,">= 0",Ye,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&An(a,">= 0",Ye,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else An(a,">= 0",Ye,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||tm(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&&we("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=dg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Kl(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=Lg(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(pn,"pointermove",this.dk,!0),this.addEventListener(pn,"pointerdown",this.ui,!0),this.addEventListener(pn,"pointerup",this.fk,!0),this.addEventListener(pn,"pointerout",this.ek,!0),this.addEventListener(pn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(pn,"wheel",this.$j,!0),this.addEventListener(pn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(pn,"pointermove",this.dk,!0),this.removeEventListener(pn,"pointerdown",this.ui,!0),this.removeEventListener(pn,"pointerup",this.fk,!0),this.removeEventListener(pn,"pointerout",this.ek,!0),this.removeEventListener(pn,"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(pn,"wheel",this.$j,!0),this.removeEventListener(pn,"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=xe.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Up(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Fl(this):(this.vb=!0,a=this.scale,mg(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)}xe.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=Jp(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Jp(this)),a.type!==dn.Grid&&we("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),Nl(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),Fl(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||we("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 Bi(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===qu&&Ua(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Ua(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Ag(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&&Ag(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!==us&&Ua(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||we("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()||we("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)):An(a,"> 0",Ye,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):An(a,"> 0",Ye,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Ua(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Bi(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&&we("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();)Xg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==$u&&a!==ao&&a!==gf&&we("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 wn(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 Bi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ke.Object.defineProperties(Ye,{licenseKey:{get:function(){return Rg.jc()},set:function(a){Rg.add(a.replace(/\s/g,""))}},version:{get:function(){return kc}}}),Ye.prototype.makeImageData=Ye.prototype.Jx,Ye.prototype.makeImage=Ye.prototype.Wz,Ye.prototype.cacheGroupExternalLinks=Ye.prototype.Fu,Ye.prototype.addRenderer=Ye.prototype.bs,Ye.prototype.makeSVG=Ye.prototype.av,Ye.prototype.makeSvg=Ye.prototype.Cs,Ye.prototype.stopAutoScroll=Ye.prototype.ug,Ye.prototype.doAutoScroll=Ye.prototype.gs,Ye.prototype.isUnoccupied=Ye.prototype.Yj,Ye.prototype.raiseDiagramEvent=Ye.prototype.R,Ye.prototype.removeDiagramListener=Ye.prototype.am,Ye.prototype.addDiagramListener=Ye.prototype.Bj,Ye.prototype.findTreeRoots=Ye.prototype.yz,Ye.prototype.layoutDiagram=Ye.prototype.Uz,Ye.prototype.findTopLevelGroups=Ye.prototype.qz,Ye.prototype.findTopLevelNodesAndLinks=Ye.prototype.rz,Ye.prototype.ensureBounds=Ye.prototype.Va,Ye.prototype.findLinksByExample=Ye.prototype.ls,Ye.prototype.findNodesByExample=Ye.prototype.ms,Ye.prototype.findLinkForData=Ye.prototype.Kc,Ye.prototype.findNodeForData=Ye.prototype.ii,Ye.prototype.findPartForData=Ye.prototype.Lc,Ye.prototype.findLinkForKey=Ye.prototype.findLinkForKey,Ye.prototype.findNodeForKey=Ye.prototype.Vb,Ye.prototype.findPartForKey=Ye.prototype.findPartForKey,Ye.prototype.rebuildParts=Ye.prototype.Wd,Ye.prototype.transformViewToDoc=Ye.prototype.Ps,Ye.prototype.transformRectDocToView=Ye.prototype.zA,Ye.prototype.transformDocToView=Ye.prototype.op,Ye.prototype.centerRect=Ye.prototype.es,Ye.prototype.scrollToRect=Ye.prototype.tv,Ye.prototype.scroll=Ye.prototype.scroll,Ye.prototype.highlightCollection=Ye.prototype.Jz,Ye.prototype.highlight=Ye.prototype.Iz,Ye.prototype.selectCollection=Ye.prototype.rA,Ye.prototype.select=Ye.prototype.select,Ye.prototype.updateAllRelationshipsFromData=Ye.prototype.rp,Ye.prototype.updateAllTargetBindings=Ye.prototype.updateAllTargetBindings,Ye.prototype.commit=Ye.prototype.commit,Ye.prototype.rollbackTransaction=Ye.prototype.Kf,Ye.prototype.commitTransaction=Ye.prototype.eb,Ye.prototype.startTransaction=Ye.prototype.Ea,Ye.prototype.raiseChanged=Ye.prototype.g,Ye.prototype.raiseChangedEvent=Ye.prototype.cb,Ye.prototype.removeChangedListener=Ye.prototype.ik,Ye.prototype.addChangedListener=Ye.prototype.Pe,Ye.prototype.removeModelChangedListener=Ye.prototype.mA,Ye.prototype.addModelChangedListener=Ye.prototype.Yw,Ye.prototype.findLayer=Ye.prototype.Qj,Ye.prototype.removeLayer=Ye.prototype.kA,Ye.prototype.addLayerAfter=Ye.prototype.Cy,Ye.prototype.addLayerBefore=Ye.prototype.Ww,Ye.prototype.addLayer=Ye.prototype.Al,Ye.prototype.moveParts=Ye.prototype.moveParts,Ye.prototype.copyParts=Ye.prototype.Kj,Ye.prototype.removeParts=Ye.prototype.Is,Ye.prototype.remove=Ye.prototype.remove,Ye.prototype.add=Ye.prototype.add,Ye.prototype.clearDelayedGeometries=Ye.prototype.bx,Ye.prototype.setProperties=Ye.prototype.nm,Ye.prototype.attach=Ye.prototype.Du,Ye.prototype.set=Ye.prototype.set,Ye.prototype.resetInputOptions=Ye.prototype.Sx,Ye.prototype.setInputOption=Ye.prototype.sA,Ye.prototype.getInputOption=Ye.prototype.Ql,Ye.prototype.resetRenderingHints=Ye.prototype.Tx,Ye.prototype.setRenderingHint=Ye.prototype.Xx,Ye.prototype.getRenderingHint=Ye.prototype.Gf,Ye.prototype.maybeUpdate=Ye.prototype.bd,Ye.prototype.requestUpdate=Ye.prototype.$b,Ye.prototype.delayInitialization=Ye.prototype.Xy,Ye.prototype.isUpdateRequested=Ye.prototype.Pz,Ye.prototype.invalidateDocumentBounds=Ye.prototype.Ya,Ye.prototype.findObjectsNear=Ye.prototype.og,Ye.prototype.findPartsNear=Ye.prototype.mz,Ye.prototype.findObjectsIn=Ye.prototype.Cf,Ye.prototype.findPartsIn=Ye.prototype.ux,Ye.prototype.findObjectsAt=Ye.prototype.ji,Ye.prototype.findPartsAt=Ye.prototype.lz,Ye.prototype.findObjectAt=Ye.prototype.ic,Ye.prototype.findPartAt=Ye.prototype.Ol,Ye.prototype.focusObject=Ye.prototype.zz,Ye.prototype.alignDocument=Ye.prototype.Jy,Ye.prototype.zoomToRect=Ye.prototype.BA,Ye.prototype.zoomToFit=Ye.prototype.zoomToFit,Ye.prototype.diagramScroll=Ye.prototype.kx,Ye.prototype.focus=Ye.prototype.focus;var ff=new ti,om=null,Hr=pn.document!==void 0,Lc=null,Rh="",us=new an(Ye,"None",0),ga=new an(Ye,"Uniform",1),jh=new an(Ye,"UniformToFill",2),pd=new an(Ye,"CycleAll",10),Fg=new an(Ye,"CycleNotDirected",11),Dg=new an(Ye,"CycleNotDirectedFast",12),Bg=new an(Ye,"CycleNotUndirected",13),Og=new an(Ye,"CycleDestinationTree",14),Ig=new an(Ye,"CycleSourceTree",15),qu=new an(Ye,"DocumentScroll",1),md=new an(Ye,"InfiniteScroll",2),$u=new an(Ye,"TreeParentCollapsed",21),ao=new an(Ye,"AllParentsCollapsed",22),gf=new an(Ye,"AnyParentsCollapsed",23),Rg=new cn,kc="2.3.10",Ec="image",vd=null,sm=!1;function $o(){if(Hr){var a=pn.document.createElement("canvas"),y=a.getContext("2d"),x=rn("7ca11abfd022028846");y[x]=rn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Bn.Dx+"4ae6247590da4bb21c324ba3a84e385776",pi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ie.za],E=1;5>E;E++)y[rn("7ca11abfd7330390")](rn(b[E-1]),10,15*E);for(y[x]=rn("39f046ebb36e4b"),x=1;5>x;x++)y[rn("7ca11abfd7330390")](rn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(pi.prototype.Cd=pi.prototype.Eu),vd=a}}Ye.className="Diagram",Ye.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=pn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ye?y.H:null},Ye.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},Ye.useDOM=function(a){Hr=a?pn.document!==void 0:!1},Ye.isUsingDOM=function(){return Hr},Ye.None=us,Ye.Uniform=ga,Ye.UniformToFill=jh,Ye.CycleAll=pd,Ye.CycleNotDirected=Fg,Ye.CycleNotDirectedFast=Dg,Ye.CycleNotUndirected=Bg,Ye.CycleDestinationTree=Og,Ye.CycleSourceTree=Ig,Ye.DocumentScroll=qu,Ye.InfiniteScroll=md,Ye.TreeParentCollapsed=$u,Ye.AllParentsCollapsed=ao,Ye.AnyParentsCollapsed=gf;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Mc(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=pn[rn("76a715b2f73f148a")][rn("72ba13b5")]||"";if(a.Rc=!0,Hr){var b=Ye[rn("76a115b6ed251eaf4692")];if(b)for(var E=Rg.iterator;E.next()&&(b=E.value,b=rn(b).split(rn("39e9")),!(6>b.length));){var z=rn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=rn(Bn[rn("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var rt=pn[rn("74a900bae4370f8b51")][rn("6fbb13a1c2311e8a57")].toLowerCase();if(nt=rt[rn("73a612b6fb191d")](rn("3aad1ab6e022098b4dc4")),z=rn(b[2]),-1<nt&&(rt=rt[rn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<nt),!a.Rc))break;for(nt=x[rn("76ad18b4f73e")],rt=x[rn("73a612b6fb191d")](rn("35e7"))+2;rt<nt;rt++)y+=x[rt];if(nt=y[rn("73a612b6fb191d")](z),0>nt&&z!==rn("7da71ca0ad381e90")&&(nt=y[rn("73a612b6fb191d")](rn("76a715b2ef3e149757"))),0>nt&&(nt=y[rn("73a612b6fb191d")](rn("76a715b2ef3e149757"))),0>nt&&(nt=y[rn("73a612b6fb191d")](rn("2bfa41fdb3784bca12"))),0>nt&&(nt=x[rn("73a612b6fb191d")](rn("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[rn("73a612b6fb191d")](rn("35"))||y[rn("73a612b6fb191d")](rn("35"))===-1),!a.Rc||x[rn("73a612b6fb191d")](rn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[rn("73a612b6fb191d")](z)),!a.Rc)||(nt=pn[rn("76a715b2f73f148a")][rn("69ad17a1e03e")],rt=nt[rn("73a612b6fb191d")](rn("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(nt[rn("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){nt=pn.document.createElement("div");for(var st=b[0].replace(/[A-Za-z]/g,"");4>st.length;)st+="9";if(rt=st,st=st.substr(st.length-4),b="",b+=["gsh","gsf"][parseInt(st.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(st.substr(0,1),10)%4],nt[rn("79a417a0f0181a8946")]=b,pn.document[rn("78a712aa")]){pn.document[rn("78a712aa")][rn("7bb806b6ed32388c4a875b")](nt),st=pn.getComputedStyle(nt).getPropertyValue(rn("78a704b7e62456904c9b12701b6532a8"));var ht=pn.getComputedStyle(nt).getPropertyValue(rn("75b817b0ea2202"));if(pn.document[rn("78a712aa")][rn("68ad1bbcf533388c4a875b")](nt),st){if(nt=pn[rn("77a902b0eb1b1e804a8a")],ht==="0."+parseInt(rt,10)%100||st.indexOf(parseInt(z[1]+z[2],16))!==-1&&st.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(rn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var dt in nt)if(b===nt[dt].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(dt=x[rn("76ad18b4f73e")],E=x[rn("73a612b6fb191d")](rn("35e7"))+2;E<dt;E++)y+=x[E];x=y[rn("73a612b6fb191d")](rn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[rn("73a612b6fb191d")](rn("35")))}}}return 0<a.Rc&&a!==a.wy}am.className="DiagramHelper";function yu(a){this.j=a===void 0?new xe:a,this.o=new xe}Ke.Object.defineProperties(yu.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 yd="DraggingInfo";yu.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function at(){this.reset()}at.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new wn(NaN,NaN).freeze(),this.gridSnapCellSpot=ar,this.gridSnapOrigin=new xe(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function mt(a,y){if(typeof a=="string"||pn.Element&&a instanceof Element)var x=Ye.call(this,a)||this;else x=Ye.call(this)||this,y=a;return pt(x),y&&x.nm(y),x}Je(mt,Ye);function pt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=ur,a.layout=new jo}mt.prototype.reset=function(){Ye.prototype.reset.call(this),pt(this)},mt.className="Palette";function bt(a,y){if(typeof a=="string"||pn.Element&&a instanceof Element)var x=Ye.call(this,a)||this;else x=Ye.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new $n;var E=new Li;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Bi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Se,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,rt=b.lastInput.documentPoint;z.position=new xe(rt.x-nt.width/2,rt.y-nt.height/2)}},x.Pf=function(){b.Ya(),ae(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&ae(b)},x.autoScale=ga,x.vb=!1,y&&Object.assign(x,y),x}Je(bt,Ye),bt.prototype.computePixelRatio=function(){return 1},bt.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(Cc(this),this.ql===null){var x=new Ha(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),Xt(this)}finally{this.ta=a,this.ib=y}}}Ye.prototype.redraw.call(this)},bt.prototype.gc=function(){if(this.Ka===null&&we("No div specified"),this.ta===null&&we("No canvas specified"),!(this.ta instanceof Dl)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Cc(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?Xt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function Xt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=en.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Nl(y,E),en.free(E),Yo(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),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var nt=0;nt<z;nt++){var rt=y[nt],st=a;if(rt.visible&&rt.opacity!==0){var ht=rt.diagram.grid.part;if(!x&&rt.isTemporary)b&&ht.layer===rt&&(rt=vu(rt,E),ht.gc(E,st),E.globalAlpha=rt);else{for(var dt=vu(rt,E),vt=st.scale,Ft=en.alloc(),Wt=rt.Pa.s,Ht=Wt.length,ne=0;ne<Ht;ne++){var ve=Wt[ne];(b||ve!==ht)&&rt.Oj(E,ve,st,null,vt,Ft,!1)}en.free(Ft),E.globalAlpha=dt}}}}}function ae(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=wn.alloc();E.h(x.width,x.height),b.desiredSize=E,wn.free(E),a=2/a.scale,b instanceof Li&&(b.strokeWidth=a),y.location=new xe(x.x-a/2,x.y-a/2),y.isSelected=!0}}}bt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return gs;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},bt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},bt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ae(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},Ke.Object.defineProperties(bt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof bt&&we("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),ae(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),ae(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)}}}),bt.className="Overview";function Se(){zr.call(this),this.j=null}Je(Se,zr),Se.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 xe(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new xe(a.x-this.j.x,a.y-this.j.y)),!0)},Se.prototype.doActivate=function(){this.j=null,zr.prototype.doActivate.call(this)},Se.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Se.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new xe(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new xe(a.x-this.j.x,a.y-this.j.y)}}},Se.className="OverviewDraggingTool";function me(){di(this),this.H=Vl,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=gs,this.hb=!0,this.cg=null,this.ob=200}me.prototype.toString=function(){return"CommandHandler"},me.prototype.Xe=function(a){this.H=a},me.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Xi?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&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"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&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():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&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()},me.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},me.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Br&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},me.prototype.canStopCommand=function(){return!0},me.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},me.prototype.canSelectAll=function(){return this.diagram.allowSelect},me.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 hn,x=a.selection.iterator;x.next();)Uh(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},me.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},me.prototype.copySelection=function(){var a=this.diagram,y=new hn;for(a=a.selection.iterator;a.next();)Uh(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},me.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},me.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},me.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},me.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Lc=null,Rh="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new cn,x.addAll(z),Lc=x,Rh=y.model.dataFormat}}y.R("ClipboardChanged",x)},me.prototype.pasteFromClipboard=function(){var a=new hn,y=Lc;if(y===null)return a;var x=this.diagram;if(Rh!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,nt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=nt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},me.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Bh(y,z,new xe(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},me.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Lc===null||Lc.count===0||Rh!==a.model.dataFormat)},me.prototype.undo=function(){this.diagram.undoManager.undo()},me.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},me.prototype.redo=function(){this.diagram.undoManager.redo()},me.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},me.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===us&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},me.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==us?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},me.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===us&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},me.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==us?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},me.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},me.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},me.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Kl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=gs):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Qd(y)},me.prototype.canZoomToFit=function(){return this.diagram.allowZoom},me.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(st){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;Kl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Te(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var st=E.pop();0<E.length&&st instanceof kn&&st.isTreeExpanded&&(!(st instanceof xi)||st.isSubGraphExpanded);)st=E.pop();0<E.length?(st instanceof $n&&y.tv(st.actualBounds),st instanceof kn&&!st.isTreeExpanded&&(st.isTreeExpanded=!0),st instanceof xi&&!st.isSubGraphExpanded&&(st.isSubGraphExpanded=!0)):(st instanceof $n&&y.es(st.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Ti(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function Te(a,y,x){if(y.isVisible())return x;if(y instanceof ir)Te(a,y.adornedPart,x);else if(y instanceof vn){var b=y.fromNode;b!==null&&Te(a,b,x),y=y.toNode,y!==null&&Te(a,y,x)}else y instanceof kn&&(b=y.labeledLink,b!==null&&Te(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Te(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Te(a,y,x));return x}me.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof $n)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},me.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Kl(y.animationManager,"Collapse Tree");var x=new cn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof kn&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},me.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof kn&&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 kn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},me.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Kl(y.animationManager,"Expand Tree");var x=new cn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof kn&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},me.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof kn)||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 kn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},me.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new cn,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var rt=new cn,st=E.iterator;st.next();){var ht=st.value;z=!1;for(var dt=E.iterator;dt.next();)if(ht.Td(dt.value)){z=!0;break}z||rt.add(ht)}if(0<rt.count){var vt=rt.first().containingGroup;if(vt!==null)for(;vt!==null;){E=!1;for(var Ft=rt.iterator;Ft.next();)if(!Ft.value.Td(vt)){E=!0;break}if(E)vt=vt.containingGroup;else break}if(x instanceof xi)Ka(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Wt=y.copyNodeData(x);tn(Wt)&&(y.xf(Wt),b=a.ii(Wt))}if(b!==null){vt!==null&&this.isValidMember(vt,b)&&(b.containingGroup=vt);for(var Ht=rt.iterator;Ht.next();){var ne=Ht.value;this.isValidMember(b,ne)&&(ne.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},me.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 $e(a){var y=Fn();for(a=a.iterator;a.next();){var x=a.value;x instanceof vn||y.push(x)}a=new hn,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,nt=0;nt<x;nt++)if(E.Td(y[nt])){z=!1;break}z&&a.add(E)}return jn(y),a}me.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof vn)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},me.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new cn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof xi&&z.canUngroup()&&b.add(z)}var nt=new cn;if(0<b.count){y.clearSelection(!0);for(var rt=b.iterator;rt.next();){var st=rt.value;st.expandSubGraph();var ht=st.containingGroup,dt=ht!==null&&ht.data!==null?x.wa(ht.data):void 0;nt.addAll(st.memberParts);for(var vt=nt.iterator;vt.next();){var Ft=vt.value;if(Ft.isSelected=!0,!(Ft instanceof vn)){var Wt=Ft.data;Wt!==null?x.mp(Wt,dt):Ft.containingGroup=ht}}y.remove(st)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},me.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 xi))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xi&&y.canUngroup())return!0;return!1},me.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=$e(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},me.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Kl(y.animationManager,"Collapse SubGraph");var x=new cn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof xi&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},me.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof xi&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xi&&y.isSubGraphExpanded)return!0;return!1},me.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Kl(y.animationManager,"Expand SubGraph");var x=new cn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof xi&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},me.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof xi&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xi&&!y.isSubGraphExpanded)return!0;return!1},me.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof wr&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},me.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 wr))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 wr&&x.editable}),a!==null))return!0;return!1},me.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Be?E=a.ga(Oi):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new xe(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,gu(x,!1,a)}},me.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)},me.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new ti,a===null)return b;for(var z=a.iterator;z.next();)Zl(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof vn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Ke.Object.defineProperties(me.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||we("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}}}),me.className="CommandHandler",Zp=function(){return new me};function Be(){di(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new xe(NaN,NaN).freeze(),this.jd=Qr,this.Ab=new pi,this.wh=new pi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ha,this.uc=new en(NaN,NaN,NaN,NaN).freeze(),this.Ib=new en(NaN,NaN,NaN,NaN).freeze(),this.dc=new en(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Fo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var un,ln,Kn,Zn,si,wi,Vi,Ni,$i,mr;Be.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=xn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Be.prototype.Vw=function(a){var y=this.Dh;if(yn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Be.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Be.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},Be.prototype.copy=function(){return this.clone()},Kt=Be.prototype,Kt.qb=function(a){a.classType===vn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:we("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Be&&(this.stretch=a)},Kt.toString=function(){return In(this.constructor)+"#"+Wi(this)},Kt.th=function(){this.A!==null&&(this.A.nc=!0)};function Mi(a){a.A===null?a.A=new xd:a.A.nc&&(a.A=a.A.copy())}Kt.Xc=function(){if(this.ba===null){var a=new jg;a.Xi=Ki,a.yj=Ki,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Kt.cb=function(a,y,x,b,E,z,nt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,b,E,z,nt),x===this&&a===Or&&Go(this)&&kr(this,rt,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 ti),nt=z.undoManager.transactionLevel===0,a.startCondition===Nh?nt=!0:a.startCondition===Sc&&(nt=!1),nt?(z=new Vo,Hp(a,z),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Kl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof dn&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)rt=x[E],rt instanceof dn&&Dc(rt,function(st){st.data!==null&&st.l&16777216&&st.La(y)})};function kr(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,nt=null;if(z.sourceName!==null){if(nt=kS(z,b,a),nt===null)continue;z.sp(a,nt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,b)}else{if(rt=b.data,rt===null)continue;var st=y.diagram;st===null||st.skipsModelSourceBindings||z.sp(a,rt,x,b)}nt===a&&(rt=b.ks(z.Ai),rt!==null&&z.Mv(rt,nt,x))}}Kt.ks=function(a){return this.bindingId===a?this:null},Kt.g=function(a,y,x){this.cb(Or,a,this,y,x)},Kt.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new pi);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Po(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Kt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ji(a.x,a.y,0,0,0,b.height)<=y||Ji(a.x,a.y,0,b.height,b.width,b.height)<=y||Ji(a.x,a.y,b.width,b.height,b.width,0)<=y||Ji(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Kt.se=function(){return!0},Kt.ca=function(a){var y=xe.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return xe.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),nt=z/2,rt=this.naturalBounds;b=this.Df()*b.scale;var st=1/b;if(rt.width*b<E&&rt.height*b<E)return a=Wo(x.x-nt*st,x.y-nt*st,x.width+z*st,x.height+z*st,y.x,y.y),xe.free(y),a}return E=!1,(this instanceof ir||this instanceof Li?Wo(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),xe.free(y),E},Kt.gh=function(a){var y=this.naturalBounds;return Wo(0,0,y.width,y.height,a.x,a.y)},Kt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=en.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=xe.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),xe.free(E),en.free(y),b},Kt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=xe.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),xe.free(E),b},Kt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=xe.allocAt(0,0),E=xe.allocAt(0,x.height),z=xe.allocAt(x.width,x.height),nt=xe.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(nt)))rt=!0;else{x=en.allocAt(0,0,x.width,x.height);var st=xe.allocAt(a.x,a.y);x.ca(y.Cd(st))?rt=!0:(st.h(a.x,a.bottom),x.ca(y.Cd(st))?rt=!0:(st.h(a.right,a.bottom),x.ca(y.Cd(st))?rt=!0:(st.h(a.right,a.y),x.ca(y.Cd(st))&&(rt=!0)))),xe.free(st),en.free(x),!rt&&(Ie.us(a,b,E)||Ie.us(a,E,z)||Ie.us(a,z,nt)||Ie.us(a,nt,b))&&(rt=!0)}return xe.free(b),xe.free(E),xe.free(z),xe.free(nt),rt},Kt.ga=function(a,y){if(y===void 0&&(y=new xe),a instanceof ni){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Kt.mi=function(a){a===void 0&&(a=new en);var y=this.naturalBounds,x=this.oe,b=xe.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Tr(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Tr(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Tr(a,b.x,b.y,0,0),xe.free(b),a},Kt.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},Kt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Kt.qs=function(a,y){return y===void 0&&(y=new xe),y.assign(a),this.oe.Cd(y),y},Kt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Kt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*nt,st=-z.m12*nt,ht=-z.m21*nt,dt=z.m11*nt,vt=nt*(z.m21*z.dy-z.m22*z.dx),Ft=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ie.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*rt+y*ht+vt,a=a*st+y*dt+Ft,y=x*rt+b*ht+vt,x=x*st+b*dt+Ft,E.h(0,0),b=this.naturalBounds,x=Ie.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},Be.prototype.measure=function(a,y,x,b){if(ma(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var nt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+nt:a,y=isFinite(E.width)?E.width+nt:y):(a=isFinite(E.width)?E.width+nt:a,y=isFinite(E.height)?E.height+nt:y),E=x||0,nt=b||0;var rt=this instanceof dn;switch(js(this,!0)){case ln:nt=E=0,rt&&(y=a=1/0);break;case un:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case Zn:isFinite(a)&&a>x&&(E=a),nt=0,rt&&(y=1/0);break;case si:isFinite(y)&&y>b&&(nt=y),E=0,rt&&(a=1/0)}rt=this.maxSize;var st=this.minSize;E>rt.width&&st.width<rt.width&&(E=rt.width),nt>rt.height&&st.height<rt.height&&(nt=rt.height),x=Math.max(E,st.width),b=Math.max(nt,st.height),rt.width<x&&(x=Math.min(st.width,x)),rt.height<b&&(b=Math.min(st.height,b)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||we("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),lo(this,!1)}},Be.prototype.Wl=function(){},Be.prototype.Dd=function(){return!1},Be.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=en.alloc();z.assign(this.Ib),this.Ib.ka(),Ps(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&nh(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof wr&&(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()||we("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Xl(this,!1),en.free(z)},Kt=Be.prototype,Kt.eh=function(){};function hs(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=z.width+y,z=z.height+nt,b+=y,E+=nt,y=js(a,!0),x===b&&z===E&&(y=ln),y){case ln:(x>b||z>E)&&(lo(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case un:lo(a,!0),a.measure(b,E,0,0);break;case Zn:lo(a,!0),a.measure(b,z,0,0);break;case si:lo(a,!0),a.measure(x,E,0,0)}}}Kt.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(),Fs(a,y)||(x.oh(),this.Pn(x)))},Kt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof kn&&H1(a,this))},Kt.gc=function(a,y){if(!Ma(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof dn&&nh(this),nt=this.Ib;if(z){var rt=this.Ib,st=this.dc,ht=this.areaBackground,dt=this.Ma;ht===null&&dt===null||a.yc(),ht!==null&&(Vr(this,a,ht,!0,!0,st,rt),ht instanceof hr&&ht.type===Fa?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ht)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),dt!==null&&(Vr(this,a,dt,!0,!1,st,rt),dt instanceof hr&&dt.type===Fa?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(dt)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){z=this.transform,rt=this.panel,this.l&4096&&Ro(this),ht=this.part,st=!1;var vt=0;ht&&y.Gf("drawShadows")&&(st=ht.isShadowed)&&(dt=ht.shadowOffset,vt=Math.max(dt.y,dt.x)*y.scale*y.Mb),dt=this.Dd();var Ft;if(!(Ft=y.$i||!dt)){var Wt=this.naturalBounds;Ft=this.wh;var Ht=Ft.m11,ne=Ft.m21,ve=Ft.dx,fe=Ft.m12,Ce=Ft.m22,ke=Ft.dy,Me,De=Me=0;Ft=Me*Ht+De*ne+ve;var Ve=Me*fe+De*Ce+ke;Me=Wt.width+vt,De=0;var Ln=Me*Ht+De*ne+ve;Me=Me*fe+De*Ce+ke,De=Math.min(Ft,Ln);var Un=Math.min(Ve,Me),On=Math.max(Ft+0,Ln)-De,gn=Math.max(Ve+0,Me)-Un;Ft=De,Ve=Un,Me=Wt.width+vt,De=Wt.height+vt,Ln=Me*Ht+De*ne+ve,Me=Me*fe+De*Ce+ke,De=Math.min(Ft,Ln),Un=Math.min(Ve,Me),On=Math.max(Ft+On,Ln)-De,gn=Math.max(Ve+gn,Me)-Un,Ft=De,Ve=Un,Me=0,De=Wt.height+vt,Ln=Me*Ht+De*ne+ve,Me=Me*fe+De*Ce+ke,De=Math.min(Ft,Ln),Un=Math.min(Ve,Me),On=Math.max(Ft+On,Ln)-De,gn=Math.max(Ve+gn,Me)-Un,Ft=De,Ve=Un,vt=y.viewportBounds,Wt=vt.x,Ht=vt.y,Ft=!(Ft>vt.width+Wt||Wt>On+Ft||Ve>vt.height+Ht||Ht>gn+Ve)}if(Ft){if(Ft=(this.l&256)!==0,a.clipInsteadOfFill&&(Ft=!1),this instanceof wr&&(a.font=this.font),Ft){if(Ve=rt.se()?rt.naturalBounds:rt.actualBounds,On=Math.max(nt.x,Ve.x),gn=Math.max(nt.y,Ve.y),vt=Math.min(nt.right,Ve.right)-On,Wt=Math.min(nt.bottom,Ve.bottom)-gn,Ht=this.tb,Ht!==null&&(On=Ht.x,gn=Ht.y,vt=Ht.width,Wt=Ht.height),On>nt.width+nt.x||nt.x>Ve.width+Ve.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(On,gn,vt,Wt),a.clip()}if(dt){if(!ht.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}st&&(Ve=ht.shadowOffset,a.Ev(Ve.x*y.scale*this.scale*y.Mb,Ve.y*y.scale*this.scale*y.Mb,ht.shadowBlur),Su(a),a.shadowColor=ht.shadowColor)}st&&this.shadowVisible===!0?Su(a):st&&this.shadowVisible===!1&&Jl(a),ht=this.naturalBounds,this.areaBackground!==null&&(a.yc(),pa(this,a,ht,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),st&&Bo(this,rt)&&this.shadowVisible===null&&Jl(a),this.Ma!==null&&(a.yc(),Hs(this,a,ht,nt)),st&&(this.Ma!==null||this.areaBackground!==null||Bo(this,rt))?(rl(this,!0),this.shadowVisible===null&&Jl(a)):rl(this,!1),this.hh(a,y),st&&this.l&512&&Su(a),dt&&st&&Jl(a),Ft&&(a.restore(),a.Vc(this instanceof dn)),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=b),this.filter!==""&&(a.filter=E)}}};function Bo(a,y){return y===null?!1:(nh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===dn.Auto||y.type===dn.Spot)&&y.Pb()!==a)}Kt.Dv=function(){};function pa(a,y,x,b){Vr(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof hr&&a.areaBackground.type===Fa?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Hs(a,y,x,b){var E=a.kq(),z=x.x,nt=x.y,rt=x.width+E,st=x.height+E;Vr(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof hr&&a.Ma.type===Fa?(y.beginPath(),y.rect(z-E/2,nt-E/2,rt,st),y.ng(a.Ma)):y.fillRect(z-E/2,nt-E/2,rt,st)}function ts(a,y,x){for(var b=y.O.s,E=b.length,z=-1,nt=0;nt<E;nt++)if(b[nt]===a){z=nt;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===dn.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 Ma(a,y,x){if(!(y instanceof na))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&ts(a,b,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),Su(y),y.shadowColor=a.shadowColor}a instanceof wr&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof dn;var rt=a instanceof dn?nh(a):!1;a.l&4096&&Ro(a);var st=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&rt?(zg(y,1,0,0,1,0,0),a.svg=y.ad):z?(zg(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):zg(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ht=nt.copy().Vj();y.rb.ha=[ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy],pa(a,y,E,st),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(z?(rt&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),Hs(a,y,E,st),rt&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Hs(a,y,E,st)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,E=a.part,rt=!1,E&&x.Gf("drawShadows")&&(rt=E.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&Su(y),rt&&a.shadowVisible===!0?Su(y):rt&&a.shadowVisible===!1&&Jl(y),E=a.panel,rt&&Bo(a,E)&&a.shadowVisible===null&&Jl(y),y.Il&&(ht=x.computePixelRatio(),ht="drop-shadow("+y.shadowOffsetX/ht+"px "+y.shadowOffsetY/ht+"px "+y.shadowBlur/ht/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ht),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ht)),rt&&(a.Ma!==null||a.areaBackground!==null||Bo(a,E))?(rl(a,!0),a.shadowVisible===null&&Jl(y)):rl(a,!1),E=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,rt=z?a.svg:y.yd,ht=a.svg,!z&&ht!==null&&rt!==ht&&ht.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,b,st,rt),Rs(y,ht),!0):(a.svg=rt,nt!==null&&rt===null&&(um(y),y.nh.pop()),rt===null||(a.$o(y,b,st,rt),y.Il&&(x=x.computePixelRatio(),a.Dv(rt,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&Su(y),a.Dd()&&Jl(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):b!==null&&ts(a,b,rt),nt!==null&&nt(a,rt)),!0)}Kt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var nt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,nt=z.width,x=z.height),z=b.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+fr++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof dn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Rs(a,b)};function Rs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function es(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Rn(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Kt.hh=function(){},Kt.lv=function(){this.Uc=!0},Kt.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof dn?nh(this):!1;if(!(this instanceof dn&&E))if(this instanceof Ws){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof dn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Li){z=y.getElementsByTagName("path");for(var nt=0;nt<z.length;nt++)z[nt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return 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):(nt=b.copy().Vj(),a.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],pa(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(nt=y.gd.getAttribute("filter"),nt!==null&&a.ad.setAttribute("filter",nt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&hm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(hm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof dn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Hs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(hm(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&&hm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Kt.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 Vr(a,y,x,b,E,z,nt){if(x!==null){var rt=1,st=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===eh)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ht=a.kq();if(rt=z.width,st=z.height,E?(rt=nt.width,st=nt.height):b||(rt+=ht,st+=ht),(z=y instanceof Fc)&&x.xe&&(x.type===wf||x.yk===rt&&x.ft===st))var dt=x.xe;else{var vt=0,Ft=0,Wt=0,Ht=0,ne=0,ve=0;if(ve=ne=0,E?(ne=nt.x,ve=nt.y):b||(ne-=ht/2,ve-=ht/2),vt=x.start.x*rt+x.start.offsetX,Ft=x.start.y*st+x.start.offsetY,Wt=x.end.x*rt+x.end.offsetX,Ht=x.end.y*st+x.end.offsetY,vt+=ne,Wt+=ne,Ft+=ve,Ht+=ve,x.type===wu)dt=y.createLinearGradient(vt,Ft,Wt,Ht);else if(x.type===Fa)ve=isNaN(x.endRadius)?Math.max(rt,st)/2:x.endRadius,isNaN(x.startRadius)?(ne=0,ve=Math.max(rt,st)/2):ne=x.startRadius,dt=y.createRadialGradient(vt,Ft,ne,Wt,Ht,ve);else if(x.type===wf)try{dt=y.createPattern(x.pattern,"repeat")}catch(Ce){dt=null}if(x.type!==wf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)dt.addColorStop(E.key,E.value);if(z&&(x.xe=dt,dt!==null&&(x.yk=rt,x.ft=st),dt===null&&x.type===wf&&x.yk!==-1)){x.yk=-1;var fe=a.diagram;fe!==null&&x.yk===-1&&Ti(function(){fe.redraw()},600)}}b?y.fillStyle=dt:y.strokeStyle=dt}}}Kt.rg=function(a){if(a instanceof dn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Kt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Kt.If=function(){for(var a=this instanceof dn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Ro(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){_a(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)}_a(a,!1),Ta(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ta(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,Ta(a,!1)))}Kt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=xe.alloc();z.yi(y,x,b,E,Oi),a.rotate(this.Kb,z.x,z.y),xe.free(z)}},Kt.v=function(a){if(!ma(this)){a===void 0&&(a=!1),lo(this,!0),Xl(this,!0);var y=this.panel;y===null||a||y.v()}},Kt.Uj=function(){ma(this)||(lo(this,!0),Xl(this,!0))};function ws(a){if(!Ps(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof kn&&a.Bd(),y.$b())),Xl(a,!0)}}Kt.Uk=function(){!(this.l&2048)&&(_a(this,!0),Ta(this,!0))},Kt.Wu=function(){Ta(this,!0)},Kt.N=function(){var a=this.part;a!==null&&a.N()};function js(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===dn.Table?ml(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===dn.Auto&&b.Pb()===a?Oo(a,un,y):x===wi?b!==null?b.type===dn.Spot&&b.Pb()===a?Oo(a,un,y):(x=b.defaultStretch,x===wi?Oo(a,ln,y):Oo(a,x,y)):Oo(a,ln,y):Oo(a,x,y)}function ml(a,y,x,b){var E=a.stretch;if(E!==wi)return Oo(a,E,b);var z=E=null;switch(y.stretch){case si:z=!0;break;case un:z=!0}switch(x.stretch){case Zn:E=!0;break;case un:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Zn||y===un),z===null&&(z=y===si||y===un),E===!0&&z===!0?Oo(a,un,b):E===!0?Oo(a,Zn,b):z===!0?Oo(a,si,b):Oo(a,ln,b)}function Oo(a,y,x){if(x)return y;if(y===ln||(x=a.desiredSize,x.w()))return ln;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Zn)return ln;if(y===un)return si}else{if(y===si)return ln;if(y===un)return Zn}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===si)return ln;if(y===un)return Zn}else{if(y===Zn)return ln;if(y===un)return si}return y}function rl(a,y){a.l=y?a.l|512:a.l&-513}function Go(a){return(a.l&1024)!==0}function Sd(a,y){a.l=y?a.l|1024:a.l&-1025}function _a(a,y){a.l=y?a.l|2048:a.l&-2049}function Ta(a,y){a.l=y?a.l|4096:a.l&-4097}function ma(a){return(a.l&8192)!==0}function lo(a,y){a.l=y?a.l|8192:a.l&-8193}function Ps(a){return(a.l&16384)!==0}function Xl(a,y){a.l=y?a.l|16384:a.l&-16385}Kt.Gj=function(){this.svg=null},Kt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Kt.Av=function(){},Kt.zv=function(a){return this.pa=a,ws(this),!0},Kt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Kt.kq=function(){return 0};function Tc(a){var y=a.part;if(y instanceof kn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||H1(y,a)}}function Zy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof dn?a instanceof kn?a.Bd():a.qm(a,function(x){Tc(x)}):Tc(a))}Kt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new eo(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&we("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new cn),this.localBindings.add(E),this},Kt.set=function(a){return Object.assign(this,a),this},Kt.Du=function(a){return iv(this,a),this},Kt.apply=function(a){return a(this),this},Kt.nm=function(a){return Pc(this,a),this},Kt.pz=function(){return this.ih()},Kt.ih=function(){for(var a=this instanceof dn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Kt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ti),this.animationTriggers.add(a.propertyName,a),this};function Na(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=pf.I(a);typeof z=="function"?(x=xn(arguments),b=z(x),tn(b)||we('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=pn.go[a]}if(b===null&&(E!=null&&E.constructor||we("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof Ye&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(fg(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?we("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):iv(b,z);return b}function iv(a,y){if(typeof y=="string")if(a instanceof wr)a.text=y;else if(a instanceof Li)a.figure=y;else if(a instanceof Ws)a.source=y;else if(a instanceof dn)y=ol.I(y),y!==null&&(a.type=y);else if(a instanceof hr){var x=Dn(hr,y);x!==null?a.type=x:we("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof mn?(y=Dn(mn,y),y!==null&&(a.type=y)):a instanceof or&&(y=Dn(or,y),y!==null&&(a.type=y));else if(y instanceof Be)a instanceof dn||we("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof uo){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof uo?Lm(b,y):we("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof an)typeof a.qb=="function"&&a.qb(y);else if(y instanceof po)a.type=y;else if(y instanceof eo)a instanceof Be||a instanceof uo?a.bind(y):we("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof nl)a instanceof Be?a.Jv(y):we("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof xo)a instanceof mn&&a.type===mn.o?a.figures.add(y):we("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof or)a instanceof xo?a.segments.add(y):we("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Dr)a instanceof Ye||a instanceof xi?a.layout=y:we("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++)iv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof hr){x=new Qn;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Pc(a,x)}else if(a instanceof uo){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&we("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&we("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Qn;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Pc(a,E)}else Pc(a,y);else we('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function th(a,y){pf.add(a,y)}function lm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ke.Object.defineProperties(Be.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new xd),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 xd),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 xd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Mi(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Mi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:As},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new zh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===As&&(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 zh),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 zh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Gr},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new zh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:wi},set:function(a){var y=this.stretch;y!==a&&(Mi(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Mi(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&An(a,"0 <= value <= 1",Be,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ic(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(Ic(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(),Zy(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&&Pd(a,"GraphObject.areaBackground"),a instanceof hr&&a.freeze(),Mi(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Pd(a,"GraphObject.background"),a instanceof hr&&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 $n)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new xe(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&we("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,Zy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Li&&this.qc(),this.g("desiredSize",b,a),Go(this)&&(a=this.part,a!==null&&(kr(this,a,"width"),kr(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 wn(a,this.jd.height).freeze(),this.v(),this instanceof Li&&this.qc(),this.g("desiredSize",y,a),Go(this)&&(a=this.part,a!==null&&kr(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 wn(this.jd.width,a).freeze(),this.v(),this instanceof Li&&this.qc(),this.g("desiredSize",y,a),Go(this)&&(a=this.part,a!==null&&kr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ei},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Mi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:yo},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Mi(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Bi(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&&Ro(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ro(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Mi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:ln},set:function(a){this.reshapingBehavior!==a&&(Mi(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&we("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&&An(a,">= 0",Be,"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&&An(a,">= 1",Be,"columnSpan"),Mi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&An(a,">= 0",Be,"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&&An(a,">= 1",Be,"rowSpan"),Mi(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Mi(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof kn||we("Cannot set portID on a Link: "+a),y!==null&&x!==null&&_v(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Y1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ki},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Tc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&An(a,">= 0",Be,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Tc(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),Tc(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&&An(a,">= 0",Be,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ki},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Tc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&An(a,">= 0",Be,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Tc(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),Tc(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&&An(a,">= 0",Be,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Mi(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Mi(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Mi(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Mi(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Mi(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Mi(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Mi(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Mi(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Mi(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Mi(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Mi(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Mi(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Mi(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Mi(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Mi(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Mi(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Mi(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Mi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Be.prototype.trigger=Be.prototype.Jv,Be.prototype.findBindingPanel=Be.prototype.ih,Be.prototype.findTemplateBinder=Be.prototype.pz,Be.prototype.setProperties=Be.prototype.nm,Be.prototype.apply=Be.prototype.apply,Be.prototype.attach=Be.prototype.Du,Be.prototype.set=Be.prototype.set,Be.prototype.isEnabledObject=Be.prototype.If,Be.prototype.isVisibleObject=Be.prototype.Ed,Be.prototype.isContainedBy=Be.prototype.rg,Be.prototype.getNearestIntersectionPoint=Be.prototype.rs,Be.prototype.getLocalPoint=Be.prototype.qs,Be.prototype.getDocumentScale=Be.prototype.Df,Be.prototype.getDocumentAngle=Be.prototype.li,Be.prototype.getDocumentBounds=Be.prototype.mi,Be.prototype.getDocumentPoint=Be.prototype.ga,Be.prototype.intersectsRect=Be.prototype.Yc,Be.prototype.containedInRect=Be.prototype.fh,Be.prototype.containsRect=Be.prototype.Re,Be.prototype.containsPoint=Be.prototype.ca,Be.prototype.raiseChanged=Be.prototype.g,Be.prototype.raiseChangedEvent=Be.prototype.cb,Be.prototype.addCopyProperty=Be.prototype.Vw;var pf=null;Be.className="GraphObject",pf=new ti,th("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Na(dn,dn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof dn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Na(Li,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ni(0,0,2.76142374915397,2.761423749153969),spot2:new ni(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof dn&&(x=b.fb("ButtonBorder"),x instanceof Li)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof dn&&(x=b.fb("ButtonBorder"),x instanceof Li&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof dn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Li){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=nt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof dn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Li){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof dn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Li){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof dn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Li))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),E.skipsUndoManager=z}}},y}),th("TreeExpanderButton",function(){var a=Na("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Na(Li,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Er},new eo("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new eo("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ir&&(x=x.adornedPart),x instanceof kn){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),th("SubGraphExpanderButton",function(){var a=Na("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Na(Li,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Er},new eo("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 ir&&(x=x.adornedPart),x instanceof xi){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),th("ToolTip",function(){return Na(ir,dn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new xe(0,3),shadowBlur:5},Na(Li,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ni(0,0,4,6),spot2:new ni(1,1,-4,-4)}))}),th("ContextMenu",function(){return Na(ir,dn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new xe(0,3),shadowBlur:5},new eo("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),th("ContextMenuButton",function(){var a=Na("Button");a.stretch=Zn;var y=a.fb("ButtonBorder");return y instanceof Li&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ni(0,0,2,3),y.spot2=new ni(1,1,-2,-2)),a}),th("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=Na("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},Na(Li,{name:"ButtonIcon",strokeWidth:2},new eo("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Li&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var nt=E.ih();nt===null&&(nt=E.part),nt!==null&&(E=nt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),th("CheckBoxButton",function(a){var y=lm(a);return a=Na("Button",{desiredSize:new wn(14,14)},Na(Li,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:un,geometryStretch:Kn,visible:!1},y!==""?new eo("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof dn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),th("CheckBox",function(a){a=lm(a),a=Na("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Bi(0,1,0,0)});var y=Na(dn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Bi(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}),Be.None=ln=new an(Be,"None",0),Be.Default=wi=new an(Be,"Default",0),Be.Vertical=si=new an(Be,"Vertical",4),Be.Horizontal=Zn=new an(Be,"Horizontal",5),Be.Fill=un=new an(Be,"Fill",3),Be.Uniform=Kn=new an(Be,"Uniform",1),Be.UniformToFill=Vi=new an(Be,"UniformToFill",2),Be.FlipVertical=Ni=new an(Be,"FlipVertical",1),Be.FlipHorizontal=$i=new an(Be,"FlipHorizontal",2),Be.FlipBoth=mr=new an(Be,"FlipBoth",3),Be.make=Na,Be.getBuilders=function(){var a=new ti,y;for(y in pf)if(y!==y.toLowerCase()){var x=pf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Be.defineBuilder=th,Be.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=pf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Be))return y&&b.set(y),b;we('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Be.takeBuilderArgument=lm;function xd(){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=Ei,this.o=yo,this.hg=wi,this.ob=this.Bi=1,this.Pf=ln,this.Pc=this.Ci=this.gd=null,this.Oc="category"}xd.prototype.copy=function(){var a=new xd;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 zh(){this.u=-1/0,this.o=0,this.F=Gr,this.rr=As,this.j=this.V="None"}zh.prototype.copy=function(){var a=new zh;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},zh.className="LinkElementSettings";function jg(){this.yj=this.Xi=Fo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}jg.prototype.copy=function(){var a=new jg;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},jg.className="LinkSettings";function Nc(){this.ha=[1,0,0,1,0,0]}Nc.prototype.copy=function(){var a=new Nc;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},Nc.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},Nc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Nc.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,nt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=nt,this.translate(-y,-x)}},Nc.className="STransform";function wd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}wd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},wd.className="SGradient";function Dl(a,y,x){this.ownerDocument=a=y===void 0?pn.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 na(this,x)}Dl.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Dl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),tn(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Dl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Dl.prototype.focus=function(){this.Oa.focus()},Dl.prototype.mx=function(){this.ownerDocument=null},Ke.Object.defineProperties(Dl.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}}}),Dl.className="SVGSurface";function na(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 Nc,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=fr++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,z,nt){a.Nj===void 0?zg(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}Kt=na.prototype,Kt.arc=function(a,y,x,b,E,z,nt,rt){var st=2*Math.PI,ht=st-1e-6,dt=x*Math.cos(b),vt=x*Math.sin(b),Ft=a+dt,Wt=y+vt,Ht=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-Ft)||1e-6<Math.abs(rt-Wt))&&this.path.push(["L",Ft,+Wt]),0>b&&(b=b%st+st),b>ht?(this.path.push(["A",x,x,0,1,Ht,a-dt,y-vt]),this.path.push(["A",x,x,0,1,Ht,Ft,Wt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Ht,a+x*Math.cos(E),y+x*Math.sin(E)])},Kt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Kt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Kt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Kt.clearRect=function(){},Kt.clip=function(){this.Yl.clipPath=!0},Kt.closePath=function(){this.path.push(["z"])},Kt.createLinearGradient=function(a,y,x,b){var E=new wd("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Kt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+fr++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Ec,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Kt.createRadialGradient=function(a,y,x,b,E,z){var nt=new wd("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=E,nt.r2=z,nt};function Jy(a,y,x,b,E,z,nt,rt,st){b=rt/b,E=st/E,z===0&&nt===0||a.rb.translate(z,nt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Kt.drawImage=function(a,y,x,b,E,z,nt,rt,st){var ht="";a instanceof HTMLCanvasElement&&(ht=a.toDataURL()),a instanceof HTMLImageElement&&(ht=a.getAttribute("src"));var dt=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,rt=b=dt,st=E=a),b=b||0,E=E||0,rt=rt||0,st=st||0,Jy(this,y,x,b,E,z||0,nt||0,rt,st),z={x:0,y:0,width:dt||b,height:a||E,href:ht},Ie.$(b,rt)&&Ie.$(E,st)?ht.toLowerCase().indexOf(".svg")===-1&&ht.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==dt||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),mf(this,Ec,z,this.rb),this.addElement(Ec,z)},Kt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},Kt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Kt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},mf(this,"fill",a,this.rb),this.addElement("rect",a)},Kt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},mf(this,"fill",a,this.rb),rv(this,a),this.svg.prepend(this.Ud("rect",a))},Kt.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},mf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Kt.lineTo=function(a,y){this.path.push(["L",a,y])},Kt.moveTo=function(a,y){this.path.push(["M",a,y])},Kt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Kt.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},Kt.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},Kt.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())},Kt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||zg(this,a,y,x,b,E,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Kt.scale=function(a,y){this.rb.scale(a,y)},Kt.translate=function(a,y){this.rb.translate(a,y)},Kt.transform=function(){},Kt.yc=function(){},Kt.stroke=function(){$y(this,this.Yl)},Kt.jk=function(){this.clipInsteadOfFill||this.stroke()},Kt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Kt.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 mf(a,y,x,b){y==="fill"?rv(a,x):y==="stroke"&&$y(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function rv(a,y){a.fillStyle instanceof wd?y.fill=ov(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof wd?y.setAttributeNS(null,"fill",ov(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function $y(a,y){if(a.strokeStyle instanceof wd)y.stroke=ov(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function ov(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+fr++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],nt=0;nt<y;nt++){var rt=E[nt],st=rt.color;rt={offset:rt.offset,"stop-color":st},/^rgba\(/.test(st)&&(st=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(st),rt["stop-color"]="rgb("+st[1]+","+st[2]+","+st[3]+")",rt["stop-opacity"]=st[4]),z.push(rt)}for(z.sort(function(ht,dt){return ht.offset>dt.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Kt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=xn(a[E]),nt=[z.shift()];if(nt[0]==="A")nt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)nt.push(z.shift()+","+z.shift());b.push(nt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,mf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var rt in a)rt!=="transform"&&y.setAttributeNS(null,rt,a[rt]);else{rt=y.getElementsByTagName("path");for(var st in a)st!=="transform"&&rt[x].setAttributeNS(null,st,a[st])}else this.addElement("path",a)};function zg(a,y,x,b,E,z,nt){var rt=new Nc;rt.ha=[y,x,b,E,z,nt],y={},mf(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function um(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Kt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Jl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Su(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Kt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Kt.fs=function(){this.Ct=!1},Kt.Vc=function(){},Kt.Wx=function(){},na.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},na.prototype.getImageData=function(){return null},na.prototype.measureText=function(){return null};function hm(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()))}na.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},na.className="SVGContext",Ye.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Dl(this,pn.document));var y=new Dl(this,pn.document,!0);a===void 0&&(a=new Qn);var x=this;return gd(this,function(b,E){return b=rm(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Ye.prototype.makeSvg=Ye.prototype.Cs,Ye.prototype.av=function(a){return this.Cs(a)},Ye.prototype.makeSVG=Ye.prototype.av;function Ha(a,y,x,b){this.ownerDocument=y=y===void 0?pn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Fc(y,x,b),y.H=a}Ha.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Ha.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Ha.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ha.prototype.focus=function(){this.Oa.focus()},Ha.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Ke.Object.defineProperties(Ha.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}}}),Ha.className="CanvasSurface";function Fc(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&we("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new pi,this.isTemporary=!!x}Kt=Fc.prototype,Kt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Kt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Kt.beginPath=function(){this.Z.beginPath()},Kt.Se=function(){},Kt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Kt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Kt.clip=function(){this.Z.clip()},Kt.closePath=function(){this.Z.closePath()},Kt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Kt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Kt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Kt.drawImage=function(a,y,x,b,E,z,nt,rt,st){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,nt,rt,st)},Kt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Kt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Kt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Kt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Kt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Kt.lineTo=function(a,y){this.Z.lineTo(a,y)},Kt.measureText=function(a){return this.Z.measureText(a)},Kt.moveTo=function(a,y){this.Z.moveTo(a,y)},Kt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Kt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Kt.restore=function(){this.Z.restore()},Kt.save=function(){this.yc(),this.Z.save()},Fc.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Kt=Fc.prototype,Kt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Kt.scale=function(a,y){this.El.scale(a,y)},Kt.translate=function(a,y){this.El.translate(a,y)},Kt.stroke=function(){this.Z.stroke()},Kt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var nt=this.El,rt=nt.m11*a+nt.m21*y;a=nt.m12*a+nt.m22*y,y=nt.m11*x+nt.m21*b,x=nt.m12*x+nt.m22*b,nt.dx=nt.m11*E+nt.m21*z+nt.dx,nt.dy=nt.m12*E+nt.m22*z+nt.dy,nt.m11=rt,nt.m12=a,nt.m21=y,nt.m22=x}},Kt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Kt.ng=function(a,y){if(a instanceof hr&&a.type===Fa){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)},Kt.jk=function(){this.Hm||this.stroke()},Kt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Kt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Kt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},Kt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Kt.Hs=function(){},Ke.Object.defineProperties(Fc.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var vx=Object.freeze([]);Fc.className="CanvasSurfaceContext";function Wg(){this.F=this.o=this.u=this.j=0}Wg.className="ColorNumbers";function hr(a,y){xf||(cv(),xf=!0),di(this),this._isFrozen=!1,a===void 0?(this.na=eh,this.xk="black"):typeof a=="string"?(this.na=eh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===wu?(this.Qd=ur,this.Lk=_o):this.Lk=a===Fa?this.Qd=Oi:this.Qd=Ki,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}hr.prototype.copy=function(){var a=new hr;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},Kt=hr.prototype,Kt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Kt.ka=function(){return Object.isFrozen(this)&&we("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Kt.qb=function(a){a.classType===hr&&(this.type=a)},Kt.toString=function(){var a="Brush(";if(this.type===eh)a+=this.color;else if(a=this.type===wu?a+"Linear ":this.type===Fa?a+"Radial ":this.type===wf?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+")"},Kt.addColorStop=function(a,y){return this._isFrozen&&je(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&An(a,"0 <= loc <= 1",hr,"addColorStop:loc"),this.we===null&&(this.we=new ti),this.we.add(a,y),this.na===eh&&(this.type=wu),this.xe=null,this},Kt.Vz=function(a,y){if(this._isFrozen&&je(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Pf:y,this.type===eh)xu(this.color),this.color=yf(a,y);else if((this.type===wu||this.type===Fa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)xu(x.value),this.addColorStop(x.key,yf(a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Pf:x,xu(a),yf(y,x)}Kt.Wy=function(a,y){if(this._isFrozen&&je(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Pf:y,this.type===eh)xu(this.color),this.color=yf(-a,y);else if((this.type===wu||this.type===Fa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)xu(x.value),this.addColorStop(x.key,yf(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Pf:x,xu(a),yf(-y,x)}function sv(a,y,x){xu(a),a=br.j;var b=br.u,E=br.o,z=br.F;return xu(y),x===void 0&&(x=.5),"rgba("+Math.round((br.j-a)*x+a)+", "+Math.round((br.u-b)*x+b)+", "+Math.round((br.o-E)*x+E)+", "+Math.round((br.F-z)*x+z)+")"}Kt.Gx=function(){if(this.type===eh)return vf(this.color);if((this.type===wu||this.type===Fa)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Fa)return vf(a.first().value);if(a.get(.5)!==null)return vf(a.get(.5));if(a.count===2)return a=a.Fa(),vf(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var nt=y.key,rt=Math.abs(.5-y.key);E>z&&rt<E?(x=nt,E=rt):z>=E&&rt<z&&(b=nt,z=rt)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,vf(sv(a.get(x),a.get(b),1-z/E))}return!1};function vf(a){return a?a instanceof hr?a.Gx():(xu(a),128>(299*br.j+587*br.u+114*br.o)/1e3):!1}function yf(a,y){switch(y){case Pf:y=100*lv(br.j);var x=100*lv(br.u),b=100*lv(br.o);return Cs.j=.4124564*y+.3575761*x+.1804375*b,Cs.u=.2126729*y+.7151522*x+.072175*b,Cs.o=.0193339*y+.119192*x+.9503041*b,Cs.F=br.F,y=hv(Cs.j/Sf[0]),x=hv(Cs.u/Sf[1]),b=hv(Cs.o/Sf[2]),Ql.j=116*x-16,Ql.u=500*(y-x),Ql.o=200*(x-b),Ql.F=Cs.F,Ql.j=Math.min(100,Math.max(0,Ql.j+100*a)),a=(Ql.j+16)/116,y=a-Ql.o/200,Cs.j=Sf[0]*n1(Ql.u/500+a),Cs.u=Sf[1]*(Ql.j>cm*dv?Math.pow(a,3):Ql.j/cm),Cs.o=Sf[2]*n1(y),Cs.F=Ql.F,a=-.969266*Cs.j+1.8760108*Cs.u+.041556*Cs.o,y=.0556434*Cs.j+-.2040259*Cs.u+1.0572252*Cs.o,br.j=255*uv((3.2404542*Cs.j+-1.5371385*Cs.u+-.4985314*Cs.o)/100),br.u=255*uv(a/100),br.o=255*uv(y/100),br.F=Cs.F,br.j=Math.round(br.j),255<br.j?br.j=255:0>br.j&&(br.j=0),br.u=Math.round(br.u),255<br.u?br.u=255:0>br.u&&(br.u=0),br.o=Math.round(br.o),255<br.o?br.o=255:0>br.o&&(br.o=0),"rgba("+br.j+", "+br.u+", "+br.o+", "+br.F+")";case i1:return av(),va.o=Math.min(100,Math.max(0,va.o+100*a)),"hsla("+va.j+", "+va.u+"%, "+va.o+"%, "+va.F+")";default:we("Unknown color space: "+y)}}function xu(a){xf||(cv(),xf=!0);var y=fv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,br.j=a[0],br.u=a[1],br.o=a[2],br.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,br.j=0,br.u=0,br.o=0,br.F=1)}}function av(){var a=br.j/255,y=br.u/255,x=br.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/z%6;break;case y:nt=(x-a)/z+2;break;case x:nt=(a-y)/z+4}nt*=60,0>nt&&(nt+=360),a=z/(1-Math.abs(2*E-1))}va.j=Math.round(nt),va.u=Math.round(100*a),va.o=Math.round(100*E),va.F=br.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>dv?Math.pow(a,1/3):(cm*a+16)/116}function n1(a){var y=a*a*a;return y>dv?y:(116*a-16)/cm}function Pd(a,y){typeof a!="string"&&(a instanceof hr||we("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){fv=Hr?new Ha(null,void 0,{willReadFrequently:!0}).context:null}Ke.Object.defineProperties(hr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&je(this,a),this.na=a,this.start.Mc()&&(a===wu?this.start=ur:a===Fa&&(this.start=Oi)),this.end.Mc()&&(a===wu?this.end=_o:a===Fa&&(this.end=Oi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&je(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&je(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&je(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&je(this,a),0>a&&An(a,">= zero",hr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&je(this,a),0>a&&An(a,">= zero",hr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&je(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&je(this,a),this.cr=a,this.xe=null}}}),hr.prototype.isDark=hr.prototype.Gx,hr.prototype.darkenBy=hr.prototype.Wy,hr.prototype.lightenBy=hr.prototype.Vz,hr.prototype.addColorStop=hr.prototype.addColorStop;var dv=216/24389,cm=24389/27,Sf=[95.047,100,108.883],fv=null,br=new Wg,va=new Wg,Cs=new Wg,Ql=new Wg,xf=!1;hr.className="Brush";var eh;hr.Solid=eh=new an(hr,"Solid",0);var wu;hr.Linear=wu=new an(hr,"Linear",1);var Fa;hr.Radial=Fa=new an(hr,"Radial",2);var wf;hr.Pattern=wf=new an(hr,"Pattern",4);var Pf;hr.Lab=Pf=new an(hr,"Lab",5);var i1;hr.HSL=i1=new an(hr,"HSL",6),hr.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},hr.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;xf||(cv(),xf=!0);var y=fv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},hr.lighten=function(a){return t1(a)},hr.lightenBy=t1,hr.darken=function(a){return e1(a)},hr.darkenBy=e1,hr.mix=sv,hr.isDark=vf;function po(){this.xa="Base"}po.prototype.measure=function(){},po.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},po.prototype.arrange=function(){},po.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},po.prototype.iA=function(a){a.Uj()},po.prototype.gc=function(){},Ke.Object.defineProperties(po.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return dn}}}),po.prototype.remeasureObject=po.prototype.iA,po.prototype.arrangeElement=po.prototype.Ly,po.prototype.measureElement=po.prototype.Yz,po.className="PanelLayout";function dm(){this.xa="Base"}Je(dm,po),dm.prototype.measure=function(a,y,x,b,E,z,nt){var rt=b.length;a=Pu(a);for(var st=0;st<rt;st++){var ht=b[st];if(ht.visible||ht===a){var dt=ht.margin,vt=dt.right+dt.left;dt=dt.top+dt.bottom,ht.measure(y,x,z,nt);var Ft=ht.measuredBounds;vt=Math.max(Ft.width+vt,0),dt=Math.max(Ft.height+dt,0),Ft=ht.position.x;var Wt=ht.position.y;isFinite(Ft)||(Ft=0),isFinite(Wt)||(Wt=0),ht instanceof Li&&ht.isGeometryPositioned&&(ht=ht.strokeWidth/2,Ft-=ht,Wt-=ht),Tr(E,Ft,Wt,vt,dt)}}},dm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],nt=z.measuredBounds,rt=z.margin,st=z.position.x,ht=z.position.y;if(st=isNaN(st)?-a:st-a,ht=isNaN(ht)?-x:ht-x,z instanceof Li&&z.isGeometryPositioned){var dt=z.strokeWidth/2;st-=dt,ht-=dt}z.visible&&z.arrange(st+rt.left,ht+rt.top,nt.width,nt.height)}};function fm(){this.xa="Base"}Je(fm,po),fm.prototype.measure=function(a,y,x,b,E,z,nt){var rt=b.length;y=Fn(),z=Pu(a);for(var st=0;st<rt;st++){var ht=b[st];if(ht.visible||ht===z){var dt=js(ht,!1);if(dt!==ln&&dt!==Zn)y.push(ht);else{ht.measure(1/0,x,0,nt),dt=ht.margin,ht=ht.measuredBounds;var vt=Math.max(ht.height+dt.top+dt.bottom,0);E.width+=Math.max(ht.width+dt.right+dt.left,0),E.height=Math.max(E.height,vt)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)st=y[a],(st.visible||st===z)&&(dt=st.margin,rt=dt.right+dt.left,dt=dt.top+dt.bottom,st.measure(1/0,x,0,nt),st=st.measuredBounds,dt=Math.max(st.height+dt,0),E.width+=Math.max(st.width+rt,0),E.height=Math.max(E.height,dt));jn(y)},fm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,nt=a.isOpposite,rt=nt?x.width:E.left,st=0;st<b;st++){var ht=z,dt=y[st];if(dt.visible){var vt=dt.measuredBounds,Ft=dt.margin,Wt=Ft.top+Ft.bottom,Ht=z+E.bottom,ne=vt.height,ve=js(dt,!1);(isNaN(dt.desiredSize.height)&&ve===un||ve===si)&&(ne=Math.max(x.height-Wt-Ht,0)),Wt=ne+Wt+Ht,Ht=dt.alignment,Ht.Xb()&&(Ht=a.defaultAlignment),Ht.sb()||(Ht=Oi),nt&&(rt-=vt.width+Ft.left+Ft.right),dt.arrange(rt+Ht.offsetX+Ft.left,ht+Ht.offsetY+Ft.top+(x.height*Ht.y-Wt*Ht.y),vt.width,ne),nt||(rt+=vt.width+Ft.left+Ft.right)}}};function gm(){this.xa="Base"}Je(gm,po),gm.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=Fn();for(var rt=Pu(a),st=0;st<nt;st++){var ht=b[st];if(ht.visible||ht===rt){var dt=js(ht,!1);if(dt!==ln&&dt!==si)x.push(ht);else{var vt=ht.margin;dt=vt.right+vt.left,vt=vt.top+vt.bottom,ht.measure(y,1/0,z,0),ht=ht.measuredBounds,Uo(E,Math.max(E.width,Math.max(ht.width+dt,0)),E.height+Math.max(ht.height+vt,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)st=x[a],(st.visible||st===rt)&&(ht=st.margin,nt=ht.right+ht.left,ht=ht.top+ht.bottom,st.measure(y,1/0,z,0),st=st.measuredBounds,ht=Math.max(st.height+ht,0),E.width=Math.max(E.width,Math.max(st.width+nt,0)),E.height+=ht);jn(x)}},gm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,nt=a.isOpposite,rt=nt?x.height:E.top,st=0;st<b;st++){var ht=z,dt=y[st];if(dt.visible){var vt=dt.measuredBounds,Ft=dt.margin,Wt=Ft.left+Ft.right,Ht=z+E.right,ne=vt.width,ve=js(dt,!1);(isNaN(dt.desiredSize.width)&&ve===un||ve===Zn)&&(ne=Math.max(x.width-Wt-Ht,0)),Wt=ne+Wt+Ht,Ht=dt.alignment,Ht.Xb()&&(Ht=a.defaultAlignment),Ht.sb()||(Ht=Oi),nt&&(rt-=vt.height+Ft.bottom+Ft.top),dt.arrange(ht+Ht.offsetX+Ft.left+(x.width*Ht.x-Wt*Ht.x),rt+Ht.offsetY+Ft.top,ne,vt.height),nt||(rt+=vt.height+Ft.bottom+Ft.top)}}};function pm(){this.xa="Base"}Je(pm,po),pm.prototype.measure=function(a,y,x,b,E,z,nt){var rt=b.length,st=a.Pb(),ht=st.margin,dt=ht.right+ht.left,vt=ht.top+ht.bottom;st.measure(y,x,z,nt);var Ft=st.measuredBounds;z=Ft.width,nt=Ft.height;var Wt=Math.max(z+dt,0),Ht=Math.max(nt+vt,0),ne=a.isClipping,ve=en.allocAt(-ht.left,-ht.top,Wt,Ht),fe=en.allocAt(0,0,z,nt);gv(st,fe,!0),z=fe.width,nt=fe.height;for(var Ce=!0,ke=Pu(a),Me=0;Me<rt;Me++){var De=b[Me];Ft=y;var Ve=x;if(De!==st&&(De.visible||De===ke)){ht=De.margin;var Ln=ht.left,Un=ht.top;switch(Wt=ht.right+ht.left,Ht=ht.top+ht.bottom,ht=js(De,!1),ht){case un:Ft=z,Ve=nt,Un=Ln=Ht=Wt=0;break;case Zn:Ft=z,Ln=Wt=0;break;case si:Ve=nt,Un=Ht=0}De.measure(Ft,Ve,0,0),Ft=De.measuredBounds,Wt=Math.max(Ft.width+Wt,0),Ht=Math.max(Ft.height+Ht,0),ht=De.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=Oi);var On=De.alignmentFocus;if(On.Xb()&&(On=Oi),Ve=null,De instanceof dn&&De.$e!==""&&(Ve=De.fb(De.$e),Ve===De&&(Ve=null)),Ln=fe.x-Ln,Un=fe.y-Un,Ve!==null){for(De.arrange(0,0,Ft.width,Ft.height),Ft=Ve.actualBounds,Ft=xe.allocAt(Ft.x+(On.x*Ft.width-On.offsetX),Ft.y+(On.y*Ft.height-On.offsetY)),Ve=Ve.panel;Ve!==De;)Ve.transform.Ga(Ft),Ve=Ve.panel;Ln+=ht.x*z+ht.offsetX-Ft.x,Un+=ht.y*nt+ht.offsetY-Ft.y,xe.free(Ft)}else Ln+=ht.x*z+ht.offsetX-(On.x*Ft.width+On.offsetX),Un+=ht.y*nt+ht.offsetY-(On.y*Ft.height+On.offsetY);Ce?(Ce=!1,E.h(Ln,Un,Wt,Ht)):Tr(E,Ln,Un,Wt,Ht)}}switch(Ce?E.assign(ve):ne?E.Uu(fe.x,fe.y,fe.width,fe.height):Tr(E,ve.x,ve.y,ve.width,ve.height),en.free(ve),en.free(fe),ht=st.stretch,ht===wi&&(ht=js(st,!1)),ht){case ln:return;case un:if(!isFinite(y)&&!isFinite(x))return;break;case Zn:if(!isFinite(y))return;break;case si:if(!isFinite(x))return}for(Ft=st.measuredBounds,z=Ft.width,nt=Ft.height,Wt=Math.max(z+dt,0),Ht=Math.max(nt+vt,0),ht=st.margin,fe=en.allocAt(-ht.left,-ht.top,Wt,Ht),gv(st,fe,!0),z=fe.width,nt=fe.height,y=0;y<rt;y++)x=b[y],x===st||!x.visible&&x!==ke||(ht=x.margin,Wt=ht.right+ht.left,Ht=ht.top+ht.bottom,Ft=x.measuredBounds,Wt=Math.max(Ft.width+Wt,0),Ht=Math.max(Ft.height+Ht,0),dt=x.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=Oi),x=x.alignmentFocus,x.Xb()&&(x=Oi),Ce?(Ce=!1,E.h(dt.x*z+dt.offsetX-(x.x*Ft.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Ft.height+x.offsetY)-ht.top,Wt,Ht)):Tr(E,dt.x*z+dt.offsetX-(x.x*Ft.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Ft.height+x.offsetY)-ht.top,Wt,Ht));Ce?E.assign(ve):ne?E.Uu(fe.x,fe.y,fe.width,fe.height):Tr(E,ve.x,ve.y,ve.width,ve.height),en.free(fe)},pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,nt=z.width,rt=z.height,st=a.padding;z=st.left,st=st.top;var ht=z-x.x,dt=st-x.y;for(E.arrange(ht,dt,nt,rt),nt=en.allocAt(0,0,nt,rt),gv(E,nt,!1),rt=0;rt<b;rt++){var vt=y[rt];if(vt!==E){ht=vt.measuredBounds;var Ft=ht.width,Wt=ht.height;dt=vt.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=Oi);var Ht=vt.alignmentFocus;if(Ht.Xb()&&(Ht=Oi),ht=null,vt instanceof dn&&vt.$e!==""&&(ht=vt.fb(vt.$e),ht===vt&&(ht=null)),ht!==null){var ne=ht.actualBounds;for(Ht=xe.allocAt(ne.x+(Ht.x*ne.width-Ht.offsetX),ne.y+(Ht.y*ne.height-Ht.offsetY)),ht=ht.panel;ht!==vt;)ht.transform.Ga(Ht),ht=ht.panel;ht=dt.x*nt.width+dt.offsetX-Ht.x,dt=dt.y*nt.height+dt.offsetY-Ht.y,xe.free(Ht)}else ht=dt.x*nt.width+dt.offsetX-(Ht.x*Ft+Ht.offsetX),dt=dt.y*nt.height+dt.offsetY-(Ht.y*Wt+Ht.offsetY);ht+=nt.x-x.x,dt+=nt.y-x.y,vt.visible&&vt.arrange(z+ht,st+dt,Ft,Wt)}}en.free(nt)};function gv(a,y,x){var b=null;if(a instanceof dn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function mm(){this.xa="Base"}Je(mm,po),mm.prototype.measure=function(a,y,x,b,E,z,nt){var rt=b.length,st=a.Pb(),ht=st.margin,dt=y,vt=x,Ft=ht.right+ht.left,Wt=ht.top+ht.bottom;st.measure(y,x,z,nt),ht=st.measuredBounds;var Ht=0,ne=null;st instanceof Li&&(ne=st,Ht=ne.strokeWidth*ne.scale);var ve=Math.max(ht.width+Ft,0);ht=Math.max(ht.height+Wt,0);var fe=yv(st),Ce=fe.x*ve+fe.offsetX;fe=fe.y*ht+fe.offsetY;var ke=Sv(st),Me=ke.x*ve+ke.offsetX;for(ke=ke.y*ht+ke.offsetY,isFinite(y)&&(dt=Math.max(Math.abs(Ce-Me)-Ht,0)),isFinite(x)&&(vt=Math.max(Math.abs(fe-ke)-Ht,0)),Ht=wn.alloc(),Ht.h(0,0),a=Pu(a),ke=0;ke<rt;ke++)fe=b[ke],fe===st||!fe.visible&&fe!==a||(ht=fe.margin,ve=ht.right+ht.left,Ce=ht.top+ht.bottom,fe.measure(dt,vt,0,0),ht=fe.measuredBounds,ve=Math.max(ht.width+ve,0),ht=Math.max(ht.height+Ce,0),Ht.h(Math.max(ve,Ht.width),Math.max(ht,Ht.height)));if(rt===1)E.width=ve,E.height=ht,wn.free(Ht);else{switch(fe=yv(st),ke=Sv(st),rt=b=0,ke.x!==fe.x&&ke.y!==fe.y&&(b=Ht.width/Math.abs(ke.x-fe.x),rt=Ht.height/Math.abs(ke.y-fe.y)),wn.free(Ht),Ht=0,ne!==null&&(Ht=ne.strokeWidth*ne.scale,Av(ne)===Kn&&(b=rt=Math.max(b,rt))),b+=Math.abs(fe.offsetX)+Math.abs(ke.offsetX)+Ht,rt+=Math.abs(fe.offsetY)+Math.abs(ke.offsetY)+Ht,ne=st.stretch,ne===wi&&(ne=js(st,!1)),ne){case ln:nt=z=0;break;case un:isFinite(y)&&(b=y),isFinite(x)&&(rt=x);break;case Zn:isFinite(y)&&(b=y),nt=0;break;case si:z=0,isFinite(x)&&(rt=x)}st.Uj(),st.measure(b,rt,z,nt),E.width=st.measuredBounds.width+Ft,E.height=st.measuredBounds.height+Wt}},mm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=en.alloc();z.h(0,0,1,1);var nt=b.margin,rt=nt.left;nt=nt.top;var st=a.padding,ht=st.left;st=st.top,b.arrange(ht+rt,st+nt,E.width,E.height);var dt=yv(b),vt=Sv(b),Ft=dt.y*E.height+dt.offsetY,Wt=vt.x*E.width+vt.offsetX;for(vt=vt.y*E.height+vt.offsetY,z.x=dt.x*E.width+dt.offsetX,z.y=Ft,Tr(z,Wt,vt,0,0),z.x+=rt+ht,z.y+=nt+st,E=0;E<x;E++)rt=y[E],rt!==b&&(ht=rt.measuredBounds,nt=rt.margin,st=Math.max(ht.width+nt.right+nt.left,0),dt=Math.max(ht.height+nt.top+nt.bottom,0),Ft=rt.alignment,Ft.Xb()&&(Ft=a.defaultAlignment),Ft.sb()||(Ft=Oi),st=z.width*Ft.x+Ft.offsetX-st*Ft.x+nt.left+z.x,nt=z.height*Ft.y+Ft.offsetY-dt*Ft.y+nt.top+z.y,rt.visible&&(Wo(z.x,z.y,z.width,z.height,st,nt,ht.width,ht.height)?rt.arrange(st,nt,ht.width,ht.height):rt.arrange(st,nt,ht.width,ht.height,new en(z.x,z.y,z.width,z.height))));en.free(z)};function vm(){this.xa="Base",this.name="Table"}Je(vm,po),vm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=Fn(),rt=Fn(),st=0;st<z;st++){var ht=b[st],dt=ht instanceof dn?ht:null;if(dt!==null&&nh(dt)&&ht.visible){rt.push(dt);for(var vt=dt.O.s,Ft=vt.length,Wt=0;Wt<Ft;Wt++){var Ht=vt[Wt];dt.type===dn.TableRow?Ht.row=ht.row:dt.type===dn.TableColumn&&(Ht.column=ht.column),nt.push(Ht)}}else nt.push(ht)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var ne=[],ve=0;ve<z;ve++){var fe=nt[ve];fe.visible&&(lo(fe,!0),Xl(fe,!0),ne[fe.row]||(ne[fe.row]=[]),ne[fe.row][fe.column]||(ne[fe.row][fe.column]=[]),ne[fe.row][fe.column].push(fe))}jn(nt);var Ce=Fn(),ke=Fn(),Me=Fn(),De={count:0},Ve={count:0},Ln=y,Un=x,On=a.rowDefs,gn=a.colDefs,sn=null;z=On.length;for(var mi=0;mi<z;mi++)sn=On[mi],sn!==void 0&&(sn.actual=0);z=gn.length;for(var fi=0;fi<z;fi++)sn=gn[fi],sn!==void 0&&(sn.actual=0);for(var lr=ne.length,Sr=0,Co=0;Co<lr;Co++)ne[Co]&&(Sr=Math.max(Sr,ne[Co].length));var Eo=Math.min(a.topIndex,lr-1),cs=Math.min(a.leftIndex,Sr-1),bo=0;lr=ne.length;for(var dh=Pu(a),no=0;no<lr;no++)if(ne[no]){Sr=ne[no].length;var wl=a.Fb(no);wl.actual=0;for(var ds=wl.oc=0;ds<Sr;ds++)if(ne[no][ds]){var fh=a.Eb(ds);Ce[ds]===void 0&&(fh.actual=0,fh.oc=0,Ce[ds]=!0);for(var xa=ne[no][ds],Za=xa.length,oa=0;oa<Za;oa++){var Vs=xa[oa];if(Vs.visible||Vs===dh){var $h=1<Vs.rowSpan||1<Vs.columnSpan;$h&&(no<Eo||ds<cs||ke.push(Vs));var Pl=Vs.margin,Kf=Pl.right+Pl.left,sa=Pl.top+Pl.bottom,fs=ml(Vs,wl,fh,!1),kp=Vs.desiredSize,Bd=!isNaN(kp.height),Il=!isNaN(kp.width)&&Bd;if($h||fs===ln||Il||no<Eo||ds<cs||(De[ds]!==void 0||fs!==un&&fs!==Zn||(De[ds]=-1,De.count++),Ve[no]!==void 0||fs!==un&&fs!==si||(Ve[no]=-1,Ve.count++),Me.push(Vs)),Vs.measure(1/0,1/0,0,0),!(no<Eo||ds<cs)){var Ys=Vs.measuredBounds,Gc=Math.max(Ys.width+Kf,0),aa=Math.max(Ys.height+sa,0);if(Vs.rowSpan===1&&(fs===ln||fs===Zn)){sn=a.Fb(no);var tc=sn.Wc();bo=Math.max(aa-sn.actual,0),bo+tc>Un&&(bo=Math.max(Un-tc,0));var W0=sn.oa===0;sn.oc=sn.oc+bo,sn.actual=sn.oa+bo,Un=Math.max(Un-(bo+(W0?tc:0)),0)}if(Vs.columnSpan===1&&(fs===ln||fs===si)){sn=a.Eb(ds);var Ep=sn.Wc();bo=Math.max(Gc-sn.actual,0),bo+Ep>Ln&&(bo=Math.max(Ln-Ep,0));var Gy=sn.oa===0;sn.oc=sn.oc+bo,sn.actual=sn.oa+bo,Ln=Math.max(Ln-(bo+(Gy?Ep:0)),0)}$h&&Vs.Uj()}}}}}jn(Ce);var su=0,Au=0;z=a.columnCount;for(var Od=0;Od<z;Od++){var ec=gn[Od];ec!==void 0&&(su+=isNaN(ec.Hc)?ec.oc:ec.Hc,ec.oc!==0&&(su+=ec.Wc()))}z=a.rowCount;for(var Vf=0;Vf<z;Vf++){var nc=On[Vf];nc!==void 0&&(Au+=isNaN(nc.Hc)?nc.oc:nc.Hc,nc.oc!==0&&(Au+=nc.Wc()))}Ln=Math.max(y-su,0);var au=Un=Math.max(x-Au,0),gh=Ln;z=Me.length;for(var Zs=0;Zs<z;Zs++){var Rl=Me[Zs],G0=a.Fb(Rl.row),Lu=a.Eb(Rl.column),Yf=Rl.measuredBounds,Cl=Rl.margin,Uc=Cl.right+Cl.left,jl=Cl.top+Cl.bottom;De[Rl.column]=Lu.oc===0&&De[Rl.column]!==void 0?Math.max(Yf.width+Uc,De[Rl.column]):null,Ve[Rl.row]=G0.oc===0&&Ve[Rl.row]!==void 0?Math.max(Yf.height+jl,Ve[Rl.row]):null}var Id=0,Zf=0,cl;for(cl in Ve)cl!=="count"&&(Id+=Ve[cl]);for(cl in De)cl!=="count"&&(Zf+=De[cl]);for(var zo=wn.alloc(),Mp=0;Mp<z;Mp++){var Ts=Me[Mp];if(Ts.visible||Ts===dh){var io=a.Fb(Ts.row),Ns=a.Eb(Ts.column),ku=0;isFinite(Ns.width)?ku=Ns.width:(isFinite(Ln)&&De[Ts.column]!==null?Zf===0?ku=Ns.actual+Ln:ku=De[Ts.column]/Zf*gh:De[Ts.column]!==null?ku=Ln:ku=Ns.actual||Ln,ku=Math.max(0,ku-Ns.Wc()));var ph=0;switch(isFinite(io.height)?ph=io.height:(isFinite(Un)&&Ve[Ts.row]!==null?Id===0?ph=io.actual+Un:ph=Ve[Ts.row]/Id*au:Ve[Ts.row]!==null?ph=Un:ph=io.actual||Un,ph=Math.max(0,ph-io.Wc())),zo.h(Math.max(Ns.minimum,Math.min(ku,Ns.maximum)),Math.max(io.minimum,Math.min(ph,io.maximum))),fs=ml(Ts,io,Ns,!1),fs){case Zn:zo.height=Math.max(zo.height,io.actual+Un);break;case si:zo.width=Math.max(zo.width,Ns.actual+Ln)}var _c=Ts.margin,Uy=_c.right+_c.left,U0=_c.top+_c.bottom;Ts.Uj(),Ts.measure(zo.width,zo.height,Ns.minimum,io.minimum);var Xf=Ts.measuredBounds,Hc=Math.max(Xf.width+Uy,0),Rd=Math.max(Xf.height+U0,0);isFinite(Ln)&&(Hc=Math.min(Hc,zo.width)),isFinite(Un)&&(Rd=Math.min(Rd,zo.height));var Xs=0;Xs=io.actual,io.actual=Math.max(io.actual,Rd),io.oc=Math.max(io.oc,Rd),bo=io.actual-Xs,Un=Math.max(Un-bo,0),Ve[Ts.row]===null&&(au=Math.max(au-bo,0)),Xs=Ns.actual,Ns.actual=Math.max(Ns.actual,Hc),Ns.oc=Math.max(Ns.oc,Hc),bo=Ns.actual-Xs,Ln=Math.max(Ln-bo,0),De[Ts.column]===null&&(gh=Math.max(gh-bo,0))}}jn(Me);var Eu=wn.alloc(),bl=Fn(),Ra=Fn();if(z=ke.length,z!==0){for(var ic=0;ic<lr;ic++)if(ne[ic]){Sr=ne[ic].length;var Jf=a.Fb(ic);bl[ic]=Jf.actual;for(var rc=0;rc<Sr;rc++)if(ne[ic][rc]){var _0=a.Eb(rc);Ra[rc]=_0.actual}}}for(var Qf=0;Qf<z;Qf++){var Zr=ke[Qf];if(Zr.visible||Zr===dh){var dl=a.Fb(Zr.row),Xa=a.Eb(Zr.column);switch(zo.h(Math.max(Xa.minimum,Math.min(y,Xa.maximum)),Math.max(dl.minimum,Math.min(x,dl.maximum))),fs=ml(Zr,dl,Xa,!1),fs){case un:Ra[Xa.index]!==0&&(zo.width=Math.min(zo.width,Ra[Xa.index])),bl[dl.index]!==0&&(zo.height=Math.min(zo.height,bl[dl.index]));break;case Zn:Ra[Xa.index]!==0&&(zo.width=Math.min(zo.width,Ra[Xa.index]));break;case si:bl[dl.index]!==0&&(zo.height=Math.min(zo.height,bl[dl.index]))}isFinite(Xa.width)&&(zo.width=Xa.width),isFinite(dl.height)&&(zo.height=dl.height),Eu.h(0,0);for(var H0=Xa.minimum,la=dl.minimum,mh=1;mh<Zr.rowSpan&&!(Zr.row+mh>=a.rowCount);mh++)sn=a.Fb(Zr.row+mh),bo=0,bo=fs===un||fs===si?Math.max(sn.minimum,bl[Zr.row+mh]===0?sn.maximum:Math.min(bl[Zr.row+mh],sn.maximum)):Math.max(sn.minimum,isNaN(sn.Hc)?sn.maximum:Math.min(sn.Hc,sn.maximum)),Eu.height+=bo,la+=sn.minimum;for(var Ja=1;Ja<Zr.columnSpan&&!(Zr.column+Ja>=a.columnCount);Ja++)sn=a.Eb(Zr.column+Ja),bo=0,bo=fs===un||fs===Zn?Math.max(sn.minimum,Ra[Zr.column+Ja]===0?sn.maximum:Math.min(Ra[Zr.column+Ja],sn.maximum)):Math.max(sn.minimum,isNaN(sn.Hc)?sn.maximum:Math.min(sn.Hc,sn.maximum)),Eu.width+=bo,H0+=sn.minimum;zo.width+=Eu.width,zo.height+=Eu.height;var qf=Zr.margin,oc=qf.right+qf.left,Tp=qf.top+qf.bottom;Zr.measure(zo.width,zo.height,H0,la);for(var $f=Zr.measuredBounds,zl=Math.max($f.width+oc,0),Kc=Math.max($f.height+Tp,0),sc=0,tg=0;tg<Zr.rowSpan&&!(Zr.row+tg>=a.rowCount);tg++)sn=a.Fb(Zr.row+tg),sc+=sn.total||0;if(sc<Kc){var vh=Kc-sc,lu=Kc-sc;if(Zr.spanAllocation!==null)for(var yh=Zr.spanAllocation,Mu=0;Mu<Zr.rowSpan&&!(0>=vh)&&!(Zr.row+Mu>=a.rowCount);Mu++){sn=a.Fb(Zr.row+Mu);var Sh=sn.oa||0,Vc=yh(Zr,sn,lu);sn.actual=Math.min(sn.maximum,Sh+Vc),sn.oa!==Sh&&(vh-=sn.oa-Sh)}for(;0<vh;){var Al=sn.oa||0;if(isNaN(sn.height)&&sn.maximum>Al&&(sn.actual=Math.min(sn.maximum,Al+vh),sn.oa!==Al&&(vh-=sn.oa-Al)),sn.index===0)break;sn=a.Fb(sn.index-1)}}for(var jd=0,xh=0;xh<Zr.columnSpan&&!(Zr.column+xh>=a.columnCount);xh++)sn=a.Eb(Zr.column+xh),jd+=sn.total||0;if(jd<zl){var zd=zl-jd,_y=zl-jd;if(Zr.spanAllocation!==null)for(var Tu=Zr.spanAllocation,Yc=0;Yc<Zr.columnSpan&&!(0>=zd)&&!(Zr.column+Yc>=a.columnCount);Yc++){sn=a.Eb(Zr.column+Yc);var Np=sn.oa||0,Hy=Tu(Zr,sn,_y);sn.actual=Math.min(sn.maximum,Np+Hy),sn.oa!==Np&&(zd-=sn.oa-Np)}for(;0<zd;){var K0=sn.oa||0;if(isNaN(sn.width)&&sn.maximum>K0&&(sn.actual=Math.min(sn.maximum,K0+zd),sn.oa!==K0&&(zd-=sn.oa-K0)),sn.index===0)break;sn=a.Eb(sn.index-1)}}}}jn(ke),wn.free(Eu),wn.free(zo),bl!==void 0&&jn(bl),Ra!==void 0&&jn(Ra);var Wd=0,Gd=0,V0=a.desiredSize,px=a.maxSize;fs=js(a,!0);var Fp=Au=su=0,Dp=0;z=a.columnCount;for(var Y0=0;Y0<z;Y0++)gn[Y0]!==void 0&&(sn=a.Eb(Y0),isFinite(sn.width)?(Fp+=sn.width,Fp+=sn.Wc()):km(sn)===Hg?(Fp+=sn.oa,Fp+=sn.Wc()):sn.oa!==0&&(su+=sn.oa,su+=sn.Wc()));isFinite(V0.width)?Wd=Math.min(V0.width,px.width):Wd=fs!==ln&&isFinite(y)?y:su,Wd=Math.max(Wd,a.minSize.width),Wd=Math.max(Wd-Fp,0);for(var qx=su===0?1:Math.max(Wd/su,1),Z0=0;Z0<z;Z0++)gn[Z0]!==void 0&&(sn=a.Eb(Z0),isFinite(sn.width)||km(sn)===Hg||(sn.actual=sn.oa*qx),sn.position=E.width,sn.oa!==0&&(E.width+=sn.oa,E.width+=sn.Wc()));z=a.rowCount;for(var X0=0;X0<z;X0++)On[X0]!==void 0&&(sn=a.Fb(X0),isFinite(sn.height)?(Dp+=sn.height,Dp+=sn.Wc()):km(sn)===Hg?(Dp+=sn.oa,Dp+=sn.Wc()):sn.oa!==0&&(Au+=sn.oa,Au+=sn.Wc()));isFinite(V0.height)?Gd=Math.min(V0.height,px.height):Gd=fs!==ln&&isFinite(x)?x:Au,Gd=Math.max(Gd,a.minSize.height),Gd=Math.max(Gd-Dp,0);for(var $x=Au===0?1:Math.max(Gd/Au,1),J0=0;J0<z;J0++)On[J0]!==void 0&&(sn=a.Fb(J0),isFinite(sn.height)||km(sn)===Hg||(sn.actual=sn.oa*$x),sn.position=E.height,sn.oa!==0&&(E.height+=sn.oa,E.height+=sn.Wc()));z=rt.length;for(var Ky=0;Ky<z;Ky++){var Bp=rt[Ky],Vy=0,Yy=0;Bp.type===dn.TableRow?(Vy=E.width,sn=a.Fb(Bp.row),Yy=sn.actual):(sn=a.Eb(Bp.column),Vy=sn.actual,Yy=E.height),Bp.measuredBounds.h(0,0,Vy,Yy),lo(Bp,!1)}jn(rt),a.inRowsCols=ne},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var nt=a.inRowsCols;if(nt!==null){for(var rt,st,ht=nt.length,dt=0,vt=0;vt<ht;vt++)nt[vt]&&(dt=Math.max(dt,nt[vt].length));st=a.rowDefs,rt=a.colDefs;var Ft=vt=0,Wt=Math.min(a.topIndex,ht-1);if(0<st.length){for(;Wt!==ht&&(st[Wt]===void 0||st[Wt].oa===0);)Wt++;Wt=Math.max(Math.min(Wt,ht-1),0),vt=-st[Wt].position}var Ht=Math.min(a.leftIndex,dt-1);if(0<rt.length){for(;Ht!==dt&&(rt[Ht]===void 0||rt[Ht].oa===0);)Ht++;Ht=Math.max(Math.min(Ht,dt-1),0),Ft=-rt[Ht].position}for(var ne=0,ve=0;ne!==ht&&st[ne]===void 0;)ne++;for(;ve!==ht&&rt[ve]===void 0;)ve++;dt=a.part,a.Fb(ne),a.Eb(ve);for(var fe=0;fe<y.length;fe++){var Ce=y[fe];if(Ce instanceof dn&&Ce.visible&&nh(Ce)){if(Ce.type===dn.TableRow){rt=a.Fb(Ce.row);var ke=a.Eb(ve)}else rt=a.Fb(ne),ke=a.Eb(Ce.column);st=rt.position+vt+E,rt.oa!==0&&(st+=rt.Io(Math.max(ne,Wt))),rt=ke.position+Ft+z,ke.oa!==0&&(rt+=ke.Io(Math.max(ve,Ht))),ke=Ce.measuredBounds,Ce.Uk(),Ce.actualBounds.ka();var Me=Ce.actualBounds,De=en.allocAt(Me.x,Me.y,Me.width,Me.height);Me.x=Ce.type===dn.TableRow?z:rt,Me.y=Ce.type===dn.TableColumn?E:st,Me.width=ke.width,Me.height=ke.height,Ce.actualBounds.freeze(),Xl(Ce,!1),Fs(De,Me)||dt===null||(dt.oh(),Ce.Pn(dt)),en.free(De)}}for(fe=wn.alloc(),Ce=0;Ce<ht;Ce++)if(nt[Ce]){for(dt=nt[Ce].length,ke=a.Fb(Ce),st=ke.position+vt+E,ke.oa!==0&&(st+=ke.Io(Math.max(ne,Wt))),Me=0;Me<dt;Me++)if(nt[Ce][Me]){De=a.Eb(Me),rt=De.position+Ft+z,De.oa!==0&&(rt+=De.Io(Math.max(ve,Ht)));for(var Ve=nt[Ce][Me],Ln=Ve.length,Un=0;Un<Ln;Un++){var On=Ve[Un],gn=On.measuredBounds;fe.h(0,0);for(var sn=1;sn<On.rowSpan&&!(Ce+sn>=a.rowCount);sn++){var mi=a.Fb(Ce+sn);mi.oa!==0&&(fe.height+=mi.total)}for(sn=1;sn<On.columnSpan&&!(Me+sn>=a.columnCount);sn++)mi=a.Eb(Me+sn),mi.oa!==0&&(fe.width+=mi.total);var fi=De.oa+fe.width,lr=ke.oa+fe.height;sn=rt,mi=st;var Sr=fi,Co=lr,Eo=rt,cs=st,bo=fi,dh=lr;rt+fi>x.width&&(bo=Math.max(x.width-rt,0)),st+lr>x.height&&(dh=Math.max(x.height-st,0));var no=On.alignment;if(no.Xb()){no=a.defaultAlignment,no.sb()||(no=Oi);var wl=no.x,ds=no.y,fh=no.offsetX;no=no.offsetY;var xa=De.alignment,Za=ke.alignment;xa.sb()&&(wl=xa.x,fh=xa.offsetX),Za.sb()&&(ds=Za.y,no=Za.offsetY)}else wl=no.x,ds=no.y,fh=no.offsetX,no=no.offsetY;(isNaN(wl)||isNaN(ds))&&(ds=wl=.5,no=fh=0),xa=gn.width,Za=gn.height;var oa=On.margin,Vs=oa.left+oa.right,$h=oa.top+oa.bottom,Pl=ml(On,ke,De,!1);!isNaN(On.desiredSize.width)||Pl!==un&&Pl!==Zn||(xa=Math.max(fi-Vs,0)),!isNaN(On.desiredSize.height)||Pl!==un&&Pl!==si||(Za=Math.max(lr-$h,0)),fi=On.maxSize,lr=On.minSize,xa=Math.min(fi.width,xa),Za=Math.min(fi.height,Za),xa=Math.max(lr.width,xa),Za=Math.max(lr.height,Za),fi=Za+$h,sn+=Sr*wl-(xa+Vs)*wl+fh+oa.left,mi+=Co*ds-fi*ds+no+oa.top,On.visible&&(Wo(Eo,cs,bo,dh,sn,mi,gn.width,gn.height)?On.arrange(sn,mi,xa,Za):On.arrange(sn,mi,xa,Za,new en(Eo,cs,bo,dh)))}}}for(wn.free(fe),a=0;a<b;a++)x=y[a],z=x instanceof dn?x:null,z!==null&&nh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function ym(){this.xa="Base"}Je(ym,po),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}Je(Sm,po),Sm.prototype.measure=function(){},Sm.prototype.arrange=function(){};function xm(){this.xa="Base"}Je(xm,po),xm.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&we("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,nt);var rt=b.measuredBounds,st=b.margin,ht=st.right+st.left;if(st=st.top+st.bottom,isFinite(y)||isFinite(x)){var dt=b.scale,vt=rt.width;rt=rt.height;var Ft=Math.max(y-ht,0),Wt=Math.max(x-st,0),Ht=1;a.viewboxStretch===Kn?vt!==0&&rt!==0&&(Ht=Math.min(Ft/vt,Wt/rt)):vt!==0&&rt!==0&&(Ht=Math.max(Ft/vt,Wt/rt)),Ht===0&&(Ht=1e-4),b.Ca*=Ht,dt!==b.scale&&(lo(b,!0),b.measure(1/0,1/0,z,nt))}rt=b.measuredBounds,E.width=isFinite(y)?y:Math.max(rt.width+ht,0),E.height=isFinite(x)?x:Math.max(rt.height+st,0)},xm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=Oi),y.arrange(x.width*nt.x-z*nt.x+nt.offsetX,x.height*nt.y-E*nt.y+nt.offsetY,b.width,b.height)};function Gg(){this.xa="Base"}Je(Gg,po),Gg.prototype.measure=function(){},Gg.prototype.arrange=function(){},Gg.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,nt=a.actualBounds,rt=z.width,st=z.height,ht=Math.ceil(rt/E),dt=Math.ceil(st/b),vt=a.gridOrigin,Ft=vt.x;vt=vt.y,y.save(),y.beginPath(),y.rect(0,0,rt,st),y.clip(),y.Se();for(var Wt=[],Ht=a.O.s,ne=Ht.length,ve=0;ve<ne;ve++){var fe=Ht[ve],Ce=[];if(Wt.push(Ce),fe.visible){var ke=fe.interval;if(!(0>ke)){fe=mv(fe.figure);for(var Me=0;Me<ne;Me++)if(Me!==ve){var De=Ht[Me];De.visible&&mv(De.figure)===fe&&(De=De.interval,De>ke&&Ce.push(De))}}}}for(Ht=a.O.s,ne=Ht.length,ve=0;ve<ne;ve++){var Ve=Ht[ve];if(Ve.visible&&(Ce=Ve.interval||1,fe=Math.abs(Ce),!(2>E*fe*x))){if(ke=Ve.segmentIndex,(!isFinite(ke)||isNaN(ke))&&(ke=0),0>ke&&(ke=fe-Math.min(-ke,fe)),ke=Math.round(ke%fe),fe=Ve.opacity,Me=1,fe!==1){if(fe===0)continue;Me=y.globalAlpha,y.globalAlpha=Me*fe}De=Wt[ve];var Ln=!1,Un=Ve.strokeDashArray;if(Un!==null&&(Ln=!0,y.js(Un,Ve.strokeDashOffset)),Ve.figure==="LineV"&&Ve.stroke!==null&&0<Ve.strokeWidth){for(y.lineWidth=Ve.strokeWidth,Vr(a,y,Ve.stroke,!1,!1,z,nt),y.beginPath(),Un=Ve=Math.floor((Ft-E)/E);Un<=Ve+ht;Un++){var On=Un*E+Ft;0<=On&&On<=rt&&wm(Un,Ce,ke,De)&&(y.moveTo(On,0),y.lineTo(On,st))}y.stroke(),y.Se()}else if(Ve.figure==="LineH"&&Ve.stroke!==null&&0<Ve.strokeWidth){for(y.lineWidth=Ve.strokeWidth,Vr(a,y,Ve.stroke,!1,!1,z,nt),y.beginPath(),Un=Ve=Math.floor((vt-b)/b);Un<=Ve+dt;Un++)On=Un*b+vt,0<=On&&On<=st&&wm(Un,Ce,ke,De)&&(y.moveTo(0,On),y.lineTo(rt,On));y.stroke(),y.Se()}else if(Ve.figure==="BarV"&&Ve.fill!==null)for(Vr(a,y,Ve.fill,!0,!1,z,nt),Ve=Ve.width,isNaN(Ve)&&(Ve=E),On=Un=Math.floor((Ft-E)/E);On<=Un+ht;On++){var gn=On*E+Ft;0<=gn+Ve&&gn<=rt&&wm(On,Ce,ke,De)&&y.fillRect(gn,0,Ve,st)}else if(Ve.figure==="BarH"&&Ve.fill!==null)for(Vr(a,y,Ve.fill,!0,!1,z,nt),Ve=Ve.height,isNaN(Ve)&&(Ve=b),On=Un=Math.floor((vt-b)/b);On<=Un+dt;On++)gn=On*b+vt,0<=gn+Ve&&gn<=st&&wm(On,Ce,ke,De)&&y.fillRect(0,gn,rt,Ve);Ln&&y.fs(),fe!==1&&(y.globalAlpha=Me)}}y.restore(),y.Vc(!1)};function wm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Pm(){this.xa="Base"}Je(Pm,po),Pm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof ir||a instanceof vn){var nt=null,rt=null;if(a instanceof vn&&(nt=a),a instanceof ir&&(rt=a,nt=rt.adornedPart,a.j===null&&(a.j=[])),nt instanceof vn){var st=nt;if(z===0)Uo(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ht=a instanceof ir?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var dt=st.points,vt=nt.pointsCount;rt!==null?rt.Ul(!1):nt!==null&&nt.Ul(!1),rt=y.width;var Ft=y.height,Wt=a.j;if(Wt.length=0,ht!==null){r1(a,rt,Ft,ht);var Ht=ht.measuredBounds;x.ed(Ht),Wt.push(Ht)}Ht=pi.alloc();for(var ne=xe.alloc(),ve=xe.alloc(),fe=0;fe<z;fe++){var Ce=b[fe];if(Ce!==ht)if(Ce.isPanelMain&&Ce instanceof Li){r1(a,rt,Ft,Ce);var ke=Ce.measuredBounds;x.ed(ke),Wt.push(ke)}else if(2>vt)Ce.measure(1/0,1/0,0,0),ke=Ce.measuredBounds,x.ed(ke),Wt.push(ke);else{var Me=Ce.segmentIndex,De=Ce.segmentFraction,Ve=Ce.alignmentFocus;Ve.Mc()&&(Ve=Oi);var Ln=Ce.segmentOrientation,Un=Ce.segmentOffset;if(isNaN(Me)){var On=st.ua;ke=Fn(),On.Qu(De,ke);var gn=xe.allocAt(ke[0],ke[1]);if(gn.add(st.i(0)),On.type===mn.j?gn.offset(-On.startX,-On.startY):(On=On.figures.first(),On!==null&&gn.offset(-On.startX,-On.startY)),On=ke[2],Ln!==As){var sn=st.computeAngle(Ce,Ln,On);Ce.Kb=sn}sn=gn.x-y.x;var mi=gn.y-y.y;xe.free(gn),jn(ke)}else if(Me<-vt||Me>=vt)ke=xe.alloc(),st.vg(),st.computeMidPoint(ke),On=st.midAngle,Ln!==As&&(sn=st.computeAngle(Ce,Ln,On),Ce.Kb=sn),sn=ke.x-y.x,mi=ke.y-y.y,xe.free(ke);else{if(sn=0,0<=Me?(mi=dt.M(Me),ke=Me<vt-1?dt.M(Me+1):mi):(sn=vt+Me,mi=dt.M(sn),ke=0<sn?dt.M(sn-1):mi),mi.Xa(ke)){0<=Me?(On=0<Me?dt.M(Me-1):mi,sn=Me<vt-2?dt.M(Me+2):ke):(On=sn<vt-1?dt.M(sn+1):mi,sn=1<sn?dt.M(sn-2):ke),gn=On.Bf(mi);var fi=ke.Bf(sn);On=gn>fi+10?0<=Me?On.ab(mi):mi.ab(On):fi>gn+10?0<=Me?ke.ab(sn):sn.ab(ke):0<=Me?On.ab(sn):sn.ab(On)}else On=0<=Me?mi.ab(ke):ke.ab(mi);Ln!==As&&(sn=st.computeAngle(Ce,Ln,On),Ce.Kb=sn),sn=mi.x+(ke.x-mi.x)*De-y.x,mi=mi.y+(ke.y-mi.y)*De-y.y}Ce.measure(1/0,1/0,0,0),ke=Ce.measuredBounds,gn=Ce.naturalBounds;var lr=0;Ce instanceof Li&&(lr=Ce.strokeWidth),fi=gn.width+lr;var Sr=gn.height+lr;Ht.reset(),Ht.translate(-ke.x,-ke.y),Ht.scale(Ce.scale,Ce.scale),Ht.rotate(Ln===As?Ce.angle:On,fi/2,Sr/2),Ln!==tp&&Ln!==np||Ht.rotate(90,fi/2,Sr/2),Ln!==ep&&Ln!==ip||Ht.rotate(-90,fi/2,Sr/2),Ln===qm&&(45<On&&135>On||225<On&&315>On)&&Ht.rotate(-On,fi/2,Sr/2),gn=new en(0,0,fi,Sr),ne.xi(gn,Ve),Ht.Ga(ne),Ve=-ne.x+lr/2*Ce.scale,Ce=-ne.y+lr/2*Ce.scale,ve.assign(Un),lr=isNaN(Un.x);var Co=isNaN(Un.y);if(lr||Co){fi=fi/2+3,Sr=Sr/2+3;var Eo=45<=On&&135>=On,cs=225<=On&&315>=On;Ln===As&&(Eo||cs)?(ve.x=Co?fi:Un.y,ve.y=lr?Sr:Un.x,Eo?0<=Me||isNaN(Me)&&.5>De||!lr||(ve.y=-Sr):cs&&((0<=Me||isNaN(Me)&&.5>De)&&lr&&(ve.y=-Sr),Co&&(ve.x=-fi))):(lr&&(ve.x=0<=Me||isNaN(Me)&&.5>De?fi:-fi),Co&&(ve.y=-Sr),ve.rotate(On))}else ve.rotate(On);sn+=ve.x,mi+=ve.y,gn.set(ke),gn.h(sn+Ve,mi+Ce,ke.width,ke.height),Wt.push(gn),x.ed(gn)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Uo(E,x.width||0,x.height||0),pi.free(Ht),xe.free(ne),xe.free(ve)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ir||a instanceof vn){var b=a,E=null;a instanceof ir&&(E=a,b=E.adornedPart);var z=a instanceof ir?null:b.path,nt=a.j;if(nt.length!==0){var rt=0;if(z!==null&&rt<nt.length){var st=nt[rt];rt++,z.arrange(st.x-a.jg.x,st.y-a.jg.y,st.width,st.height)}for(st=0;st<x;st++){var ht=y[st];if(ht!==z&&rt<nt.length){var dt=nt[rt];rt++,ht.arrange(dt.x-a.jg.x,dt.y-a.jg.y,dt.width,dt.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof vn)for(z=a.labelNodes;z.next();){var vt=a;nt=z.value,rt=nt.segmentIndex,st=nt.segmentFraction;var Ft=nt.alignmentFocus;if(ht=nt.segmentOrientation,dt=nt.segmentOffset,isNaN(rt)){var Wt=vt.ua,Ht=Fn();Wt.Qu(st,Ht);var ne=xe.allocAt(Ht[0],Ht[1]);ne.add(vt.i(0)),Wt.type===mn.j||(Wt=Wt.figures.first()),ne.offset(-Wt.startX,-Wt.startY),Wt=Ht[2],ht!==As&&(vt=vt.computeAngle(nt,ht,Wt),nt.angle=vt),vt=ne.x;var ve=ne.y;xe.free(ne),jn(Ht)}else if(rt<-x||rt>=x)Ht=xe.alloc(),Wt=vt,ve=Ht,Wt.vg(),Wt.computeMidPoint(ve),Wt=vt.midAngle,ht!==As&&(vt=vt.computeAngle(nt,ht,Wt),nt.angle=vt),vt=Ht.x,ve=Ht.y,xe.free(Ht);else{if(ne=0,0<=rt?(Ht=y.s[rt],ve=rt<x-1?y.s[rt+1]:Ht):(ne=x+rt,Ht=y.s[ne],ve=0<ne?y.s[ne-1]:Ht),Ht.Xa(ve)){0<=rt?(Wt=0<rt?y.s[rt-1]:Ht,ne=rt<x-2?y.s[rt+2]:ve):(Wt=ne<x-1?y.s[ne+1]:Ht,ne=1<ne?y.s[ne-2]:ve);var fe=Wt.Bf(Ht),Ce=ve.Bf(ne);Wt=fe>Ce+10?0<=rt?Wt.ab(Ht):Ht.ab(Wt):Ce>fe+10?0<=rt?ve.ab(ne):ne.ab(ve):0<=rt?Wt.ab(ne):ne.ab(Wt)}else Wt=0<=rt?Ht.ab(ve):ve.ab(Ht);ht!==As&&(vt=vt.computeAngle(nt,ht,Wt),nt.angle=vt),vt=Ht.x+(ve.x-Ht.x)*st,ve=Ht.y+(ve.y-Ht.y)*st}if(Ft.ys())nt.location=new xe(vt,ve);else{Ft.Mc()&&(Ft=Oi),Ht=pi.alloc(),Ht.reset(),Ht.scale(nt.scale,nt.scale),Ht.rotate(nt.angle,0,0);var ke=nt.naturalBounds;ne=en.allocAt(0,0,ke.width,ke.height),fe=xe.alloc(),fe.xi(ne,Ft),Ht.Ga(fe),Ft=-fe.x,Ce=-fe.y;var Me=ke.width,De=ke.height;ke=xe.alloc(),ke.assign(dt);var Ve=isNaN(dt.x),Ln=isNaN(dt.y);if(Ve||Ln){Me=Me/2+3,De=De/2+3;var Un=45<=Wt&&135>=Wt,On=225<=Wt&&315>=Wt;ht===As&&(Un||On)?(ke.x=Ln?Me:dt.y,ke.y=Ve?De:dt.x,Un?0<=rt||isNaN(rt)&&.5>st||!Ve||(ke.y=-De):On&&((0<=rt||isNaN(rt)&&.5>st)&&Ve&&(ke.y=-De),Ln&&(ke.x=-Me))):(Ve&&(ke.x=0<=rt||isNaN(rt)&&.5>st?Me:-Me),Ln&&(ke.y=-De),ke.rotate(Wt))}else ke.rotate(Wt);vt+=ke.x,ve+=ke.y,Ht.pp(ne),Ft+=ne.x,Ce+=ne.y,rt=xe.allocAt(vt+Ft,ve+Ce),nt.move(rt),xe.free(rt),xe.free(ke),xe.free(fe),en.free(ne),pi.free(Ht)}}E!==null?E.Ul(!1):b.Ul(!1),b=D1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),xe.free(b)}};function r1(a,y,x,b){if(ma(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof ir&&a.type===dn.Link&&a.adornedObject instanceof Li&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof vn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof ir&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),lo(b,!1)}}function Ug(){this.xa="Base"}Je(Ug,po),Ug.prototype.measure=function(a,y,x,b,E,z,nt){var rt=a.Pb();a.graduatedBounds=[];var st=rt.margin,ht=st.right+st.left,dt=st.top+st.bottom;rt.measure(y,x,z,nt);var vt=rt.measuredBounds,Ft=new en(-st.left,-st.top,Math.max(vt.width+ht,0),Math.max(vt.height+dt,0));a.graduatedBounds.push(Ft),E.assign(Ft);for(var Wt=rt.geometry,Ht=rt.strokeWidth,ne=Wt.flattenedSegments,ve=Wt.flattenedLengths,fe=Wt.flattenedTotalLength,Ce=ne.length,ke=0,Me=0,De=Fn(),Ve=0;Ve<Ce;Ve++){var Ln=ne[Ve],Un=[];Me=ke=0;for(var On=Ln.length,gn=0;gn<On;gn+=2){var sn=Ln[gn],mi=Ln[gn+1];if(gn!==0){var fi=180*Math.atan2(mi-Me,sn-ke)/Math.PI;0>fi&&(fi+=360),Un.push(fi)}ke=sn,Me=mi}De.push(Un)}if(a.graduatedIntervals===null){for(var lr=[],Sr=a.O.s,Co=Sr.length,Eo=0;Eo<Co;Eo++){var cs=Sr[Eo],bo=[];if(lr.push(bo),cs.visible){var dh=cs.interval;if(!(0>dh)){for(var no=0;no<Co;no++)if(no!==Eo){var wl=Sr[no];if(wl.visible&&cs.constructor===wl.constructor){var ds=wl.interval;ds>dh&&bo.push(ds)}}}}}a.graduatedIntervals=lr}var fh=a.graduatedIntervals,xa=a.O.s,Za=xa.length,oa=0,Vs=0,$h=fe;a.graduatedMarks=[];for(var Pl,Kf=0;Kf<Za;Kf++){var sa=xa[Kf];if(Pl=[],sa.visible&&sa!==rt){var fs=Math.abs(sa.interval),kp=a.graduatedTickUnit;if(!(2>kp*fs*fe/a.graduatedRange&&sa.graduatedSkip===null)){var Bd=ve[0][0],Il=0,Ys=0;Vs=fe*sa.graduatedStart-1e-4,$h=fe*sa.graduatedEnd+1e-4;var Gc=kp*fs,aa=a.graduatedTickBase;if(aa<a.graduatedMin){var tc=(a.graduatedMin-aa)/Gc;tc=tc%1===0?tc:Math.floor(tc+1),aa+=tc*Gc}else aa>a.graduatedMin+Gc&&(aa-=Math.floor((aa-a.graduatedMin)/Gc)*Gc);for(var W0=fh[Kf],Ep=aa,Gy=1e-6*a.graduatedMax,su=1;aa<=a.graduatedMax+Gy;su++){t:{for(var Au=W0.length,Od=0;Od<Au;Od++){var ec=(aa-a.graduatedTickBase)%(W0[Od]*a.graduatedTickUnit),Vf=1e-6*a.graduatedTickUnit;if(ec<Vf&&ec>-Vf){var nc=!1;break t}}nc=!0}if(nc&&(aa>a.graduatedMax&&(aa=a.graduatedMax),sa.graduatedSkip===null||sa instanceof wr&&!sa.graduatedSkip(aa,sa)||sa instanceof Li&&!sa.graduatedSkip(aa,sa))&&(oa=(aa-a.graduatedMin)*fe/a.graduatedRange,oa>fe&&(oa=fe),Vs<=oa&&oa<=$h)){for(var au=De[Il][Ys],gh=ve[Il][Ys];Il<ve.length;){for(;oa>Bd&&Ys<ve[Il].length-1;)Ys++,au=De[Il][Ys],gh=ve[Il][Ys],Bd+=gh;if(oa<=Bd)break;Il++,Ys=0,au=De[Il][Ys],gh=ve[Il][Ys],Bd+=gh}var Zs=ne[Il],Rl=Zs[2*Ys],G0=Zs[2*Ys+1],Lu=(oa-(Bd-gh))/gh,Yf=new xe(Rl+(Zs[2*Ys+2]-Rl)*Lu+Ht/2-Wt.bounds.x,G0+(Zs[2*Ys+3]-G0)*Lu+Ht/2-Wt.bounds.y);Yf.scale(rt.scale,rt.scale);t:{var Cl=au,Uc=De[Il];if(!(.5005>Lu&&.4995<Lu)){var jl=Cl;if(.5>Lu?0<Ys?jl=Uc[Ys-1]:Ie.$(Zs[0],Zs[Zs.length-2])&&Ie.$(Zs[1],Zs[Zs.length-1])&&(jl=Uc[Uc.length-1]):.5<Lu&&(Ys+1<Uc.length?jl=Uc[Ys+1]:Ie.$(Zs[0],Zs[Zs.length-2])&&Ie.$(Zs[1],Zs[Zs.length-1])&&(jl=Uc[0])),Cl!==jl){var Id=Math.abs(Cl-jl);if(180<Id&&(Cl<jl?Cl+=360:jl+=360,Id=Math.abs(Cl-jl)),5e-4>Lu||.9995<Lu){au=(Cl+jl)/2%360;break t}if(10>Id){var Zf=1-Math.abs(.5-Lu);au=(Cl*Zf+jl*(1-Zf))%360;break t}}}au=Cl}if(sa instanceof wr){var cl="";sa.graduatedFunction!==null?(cl=sa.graduatedFunction(aa,sa),cl=cl!=null?cl.toString():""):cl=(+aa.toFixed(2)).toString(),cl!==""&&Pl.push({$l:Yf,angle:au,text:cl})}else Pl.push({$l:Yf,angle:au})}aa=Ep+su*Gc}}}a.graduatedMarks.push(Pl)}jn(De);var zo=a.graduatedMarks;if(zo!==null)for(var Mp=b.length,Ts=0;Ts<Mp;Ts++){var io=b[Ts],Ns=zo[Ts];if(io.visible&&io!==rt&&Ns.length!==0){if(io instanceof Li){var ku=a,ph=E,_c=io.alignmentFocus;_c.Mc()&&(_c=ur);var Uy=io.angle;io.Kb=0,io.measure(1/0,1/0,0,0),io.Kb=Uy;var U0=io.measuredBounds,Xf=U0.width,Hc=U0.height,Rd=en.allocAt(0,0,Xf,Hc),Xs=xe.alloc();Xs.xi(Rd,_c),en.free(Rd);for(var Eu=-Xs.x,bl=-Xs.y,Ra=new en,ic=Ns.length,Jf=0;Jf<ic;Jf++)for(var rc=Ns[Jf],_0=rc.$l.x,Qf=rc.$l.y,Zr=rc.angle,dl=0;4>dl;dl++){switch(dl){case 0:Xs.h(Eu,bl);break;case 1:Xs.h(Eu+Xf,bl);break;case 2:Xs.h(Eu,bl+Hc);break;case 3:Xs.h(Eu+Xf,bl+Hc)}Xs.rotate(Zr+io.angle),Xs.offset(_0,Qf),Jf===0&&dl===0?Ra.h(Xs.x,Xs.y,0,0):Ra.Ye(Xs),Xs.offset(-_0,-Qf),Xs.rotate(-Zr-io.angle)}xe.free(Xs),ku.graduatedBounds!==null&&ku.graduatedBounds.push(Ra),Tr(ph,Ra.x,Ra.y,Ra.width,Ra.height)}else if(io instanceof wr){var Xa=a,H0=E;Xa.temporaryTextBlock===null&&(Xa.temporaryTextBlock=new wr);var la=Xa.temporaryTextBlock;S1(la,io);var mh=io.alignmentFocus;mh.Mc()&&(mh=ur);for(var Ja=io.segmentOrientation,qf=io.segmentOffset,oc=new en,Tp=0,$f=0,zl=0,Kc=0,sc=0,tg=Ns.length,vh=0;vh<tg;vh++){var lu=Ns[vh];Tp=lu.$l.x,$f=lu.$l.y,zl=lu.angle,sc=Kc=io.angle,Ja!==As&&(sc=Ja===$g||Ja===Qm?zl+io.angle:zl,Kc=vn.computeAngle(Ja,sc)),la.Kb=Kc,la.text=lu.text||"",la.measure(1/0,1/0,0,0);var yh=la.measuredBounds,Mu=la.naturalBounds,Sh=Mu.width,Vc=Mu.height,Al=pi.alloc();Al.reset(),Al.translate(-yh.x,-yh.y),Al.scale(la.scale,la.scale),Al.rotate(sc,Sh/2,Vc/2),Ja!==tp&&Ja!==np||Al.rotate(90,Sh/2,Vc/2),Ja!==ep&&Ja!==ip||Al.rotate(-90,Sh/2,Vc/2),Ja===qm&&(45<zl&&135>zl||225<zl&&315>zl)&&Al.rotate(-zl,Sh/2,Vc/2);var jd=en.allocAt(0,0,Sh,Vc),xh=xe.alloc();xh.xi(jd,mh),Al.Ga(xh);var zd=-xh.x,_y=-xh.y,Tu=xe.alloc();Tu.assign(qf),isNaN(Tu.x)&&(Tu.x=Sh/2+3),isNaN(Tu.y)&&(Tu.y=-(Vc/2+3)),Tu.rotate(zl),Tp+=Tu.x+zd,$f+=Tu.y+_y;var Yc=new en(Tp,$f,yh.width,yh.height),Np=new en(yh.x,yh.y,yh.width,yh.height),Hy=new en(Mu.x,Mu.y,Mu.width,Mu.height);lu.Sz=Kc,lu.lineCount=la.lineCount,lu.lines=[la.Cb,la.Ih,la.df,la.Le,la.Qc,la.Qb,la.ze],lu.actualBounds=Yc,lu.measuredBounds=Np,lu.naturalBounds=Hy,vh===0?oc.assign(Yc):oc.ed(Yc),xe.free(Tu),xe.free(xh),en.free(jd),pi.free(Al)}Xa.graduatedBounds!==null&&Xa.graduatedBounds.push(oc),Tr(H0,oc.x,oc.y,oc.width,oc.height)}lo(io,!1)}}},Ug.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,nt=0,rt=z[nt];nt++,b!==null&&b.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var st=y.length,ht=0;ht<st;ht++){var dt=y[ht];rt=E[ht],dt.visible&&dt!==b&&rt.length!==0&&(rt=z[nt],nt++,dt.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},Ug.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,nt=E.height;E=y instanceof na,y.save(),y.beginPath(),y.rect(-1,-1,z+1,nt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var rt=z.actualBounds,st=a.O.s,ht=a.graduatedMarks,dt=st.length,vt=0;vt<dt;vt++){var Ft=st[vt],Wt=ht[vt],Ht=Wt.length;if(Ft.visible&&Ft!==z&&Wt.length!==0){if(Ft instanceof Li){if(!(2>a.graduatedTickUnit*Ft.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&Ft.graduatedSkip===null)){var ne=Ft.measuredBounds,ve=Ft.strokeWidth*Ft.scale,fe=Ft.alignmentFocus;fe.Mc()&&(fe=ur);for(var Ce=0;Ce<Ht;Ce++){var ke=Wt[Ce].$l,Me=Wt[Ce].angle,De=fe,Ve=Ft.Ab;Ve.reset(),Ve.translate(ke.x+rt.x,ke.y+rt.y),Ve.rotate(Me+Ft.angle,0,0),Ve.translate(-ne.width*De.x+De.offsetX+ve/2,-ne.height*De.y+De.offsetY+ve/2),Ve.scale(Ft.scale,Ft.scale),_a(Ft,!1),Ft.wh.set(Ft.Ab),Ft.Kk=Ft.scale,Ta(Ft,!1),Ft.gc(y,x),E&&(a.svg.appendChild(Ft.svg),Ft.svg=null),Ft.Ab.reset()}}}else if(Ft instanceof wr)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new wr),ne=a.temporaryTextBlock,S1(ne,Ft),ve=0;ve<Ht;ve++)fe=Wt[ve],fe.actualBounds&&fe.measuredBounds&&fe.naturalBounds&&(ne.ec=fe.text||"",ne.Kb=fe.Sz||0,ne.Gc=fe.lineCount||0,Ce=fe.lines,Ce!==void 0&&(ne.Cb=Ce[0],ne.Ih=Ce[1],ne.df=Ce[2],ne.Le=Ce[3],ne.Qc=Ce[4],ne.Qb=Ce[5],ne.ze=Ce[6]),fe.naturalBounds&&(ne.dc=fe.naturalBounds),fe.actualBounds&&(Ce=fe.actualBounds,ne.arrange(Ce.x,Ce.y,Ce.width,Ce.height)),Ce=fe.actualBounds,ne.arrange(Ce.x,Ce.y,Ce.width,Ce.height),ke=fe.measuredBounds,fe=fe.naturalBounds,Me=ne.Ab,Me.reset(),Me.translate(Ce.x+rt.x,Ce.y+rt.y),Me.translate(-ke.x,-ke.y),ne.no(Me,fe.x,fe.y,fe.width,fe.height),_a(ne,!1),ne.wh.set(ne.Ab),ne.Kk=ne.scale,Ta(ne,!1),ne.Ng=Ft.part,ne.Me=Ft.panel,ne.gc(y,x),ne.Me=null,ne.Ng=null,E&&(a.svg.appendChild(ne.svg),ne.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function dn(a,y){if(Be.call(this),this.na=null,a===void 0)this.na=dn.Position;else if(typeof a=="string"){var x=ol.I(a);x!==null&&(this.na=x)}else a instanceof po?this.na=a:a&&(this.na=dn.Position,y=a);this.na===null&&we("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===dn.Grid?1048576:0),this.O=new cn,this.yb=ha,this.Tm=Fo,this.Uf=wi,this.$g=null,this.$e="",this.jg=new en(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Kn,this.jn=Jr,this.kn=Gr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Je(dn,Be),dn.prototype.cloneProtected=function(a){Be.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},dn.prototype.Af=function(a){Be.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},dn.prototype.copy=function(){var a=Be.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,nt=z.count;if(z.Gb(nt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof kn&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(qr,"elements",a,null,E,null,nt)}}return a}return null},Kt=dn.prototype,Kt.toString=function(){return"Panel("+this.type.name+")#"+Wi(this)},Kt.Pn=function(a){Be.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Kt.hh=function(a,y){if(this.na===dn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===dn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===dn.Table)if(a.yc(),a instanceof na){var x=a.yd;a.yd=um(a,"gojs-ts"),pv(this,a),a.nh.pop(),a.yd=x}else pv(this,a);(x=this.isClipping&&this.na===dn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,nt=0;nt<z;nt++){var rt=E[nt];x&&rt===b&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function pv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Cm(a,y,!0,x,!0),b!==null&&Cm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Cm(a,y,!0,x,!1),b!==null&&Cm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,rt=!0,st=0;st<E;st++){var ht=b[st];if(ht!==void 0&&ht.actual!==0)if(rt)rt=!1;else{if(x){if(ht.position>nt.height)continue}else if(ht.position>nt.width)continue;var dt=ht.separatorStrokeWidth;isNaN(dt)&&(dt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var vt=ht.separatorStroke;if(vt===null&&(vt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),dt!==0&&vt!==null){Vr(a,y,vt,!1,!1,nt,z),vt=!1;var Ft=ht.separatorDashArray;Ft===null&&(Ft=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ft!==null&&(vt=!0,y.js(Ft,0)),y.beginPath(),Ft=ht.position+dt,x?Ft>nt.height&&(dt-=Ft-nt.height):Ft>nt.width&&(dt-=Ft-nt.width),ht=ht.position+dt/2,y.lineWidth=dt,dt=a.yb,x?(ht+=dt.top,Ft=nt.width-dt.right,y.moveTo(dt.left,ht),y.lineTo(Ft,ht)):(ht+=dt.left,Ft=nt.height-dt.bottom,y.moveTo(ht,dt.top),y.lineTo(ht,Ft)),y.stroke(),y.Se(),vt&&y.fs()}}}}function Cm(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,rt=a.naturalBounds,st=s1(a,!0),ht=s1(a,!1),dt=0;dt<z;dt++){var vt=b[dt];if(vt!==void 0&&vt.background!==null&&vt.coversSeparators!==E&&vt.actual!==0){var Ft=x?nt.height:nt.width;if(!(vt.position>Ft)){var Wt=vt.Wc(),Ht=vt.separatorStrokeWidth;isNaN(Ht)&&(Ht=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ne=vt.separatorStroke;ne===null&&(ne=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ne===null||vt.index===(x?st:ht))&&(Ht=0),Wt-=Ht,Ht=vt.position+Ht,Wt+=vt.actual,Ht+Wt>Ft&&(Wt=Ft-Ht),0>=Wt||(Ft=a.yb,Vr(a,y,vt.background,!0,!1,rt,nt),x?y.fillRect(Ft.left,Ht+Ft.top,nt.width-(Ft.left+Ft.right),Wt):y.fillRect(Ht+Ft.left,Ft.top,Wt,nt.height-(Ft.top+Ft.bottom)))}}}}function s1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function mv(a){return a==="LineV"||a==="BarV"}Kt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Kt.kk=function(a,y,x){if(!Be.prototype.kk.call(this,a,y,x))return!1;if(this.type===dn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,pv(this,a),a.yd=null;else if(this.na===dn.Grid||this.na===dn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Kt.nk=function(){return!0},Kt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var rt=y[nt].actualBounds;E=nt===0?rt.x:Math.min(rt.x,E),z=nt===0?rt.y:Math.min(rt.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Be.prototype.$o.call(this,a,y,x,b)},Kt.Sj=function(a,y,x,b,E){var z=this.se(),nt=this.transform,rt=1/(nt.m11*nt.m22-nt.m12*nt.m21),st=nt.m22*rt,ht=-nt.m12*rt,dt=-nt.m21*rt,vt=nt.m11*rt,Ft=rt*(nt.m21*nt.dy-nt.m22*nt.dx),Wt=rt*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,Ie.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*st+y*dt+Ft,rt=a*ht+y*vt+Wt,a=x*st+b*dt+Ft,st=x*ht+b*vt+Wt,E.h(0,0),x=this.naturalBounds,z=Ie.Ff(0,0,x.width,x.height,z,rt,a,st,E),E.transform(nt),z;z||(st=1,dt=ht=0,vt=1,Wt=Ft=0),rt=a*st+y*dt+Ft,a=a*ht+y*vt+Wt,st=x*st+b*dt+Ft,x=x*ht+b*vt+Wt,E.h(st,x),b=(st-rt)*(st-rt)+(x-a)*(x-a),ht=!1,vt=this.O.s,Wt=vt.length,dt=xe.alloc(),Ft=null,y=1/0;var Ht=null,ne=this.isClipping&&this.na===dn.Spot;ne&&(Ht=xe.alloc(),Ft=this.Pb(),(ht=Ft.Sj(rt,a,st,x,Ht))&&(y=(rt-Ht.x)*(rt-Ht.x)+(a-Ht.y)*(a-Ht.y)));for(var ve=0;ve<Wt;ve++){var fe=vt[ve];fe.visible&&fe!==Ft&&fe.Sj(rt,a,st,x,dt)&&(ht=!0,fe=(rt-dt.x)*(rt-dt.x)+(a-dt.y)*(a-dt.y),fe<b&&(b=fe,E.set(dt)))}return ne&&(y>b&&E.set(Ht),xe.free(Ht)),xe.free(dt),z&&E.transform(nt),ht},Kt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Be.prototype.Gj.call(this)},Kt.v=function(a){if(!ma(this)){Be.prototype.v.call(this,a),a=null,(this.na===dn.Auto||this.na===dn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=js(E,!1);(E instanceof bs||E instanceof dn||E instanceof wr||z!==ln)&&E.v(!0)}}}},Kt.Uj=function(){if(!ma(this)){lo(this,!0),Xl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Kt.Uk=function(){if(!(this.l&2048)){_a(this,!0),Ta(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Kt.Wu=function(){Ta(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Kt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,nt=this.minSize;x===void 0&&(x=nt.width,b=nt.height),x=Math.max(x,nt.width),b=Math.max(b,nt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(b,y);var st=this.yb;a=Math.max(a-st.left-st.right,0),y=Math.max(y-st.top-st.bottom,0);var ht=this.O.s;ht.length!==0&&this.na.measure(this,a,y,ht,E,x,b),a=E.width+st.left+st.right,st=E.height+st.top+st.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(st=z.height),a=Math.min(rt.width,a),st=Math.min(rt.height,st),a=Math.max(nt.width,a),st=Math.max(nt.height,st),a=Math.max(x,a),st=Math.max(b,st),Uo(E,a,st),Uo(this.naturalBounds,a,st),this.Ge(0,0,a,st)},Kt.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function Pu(a){return a.part!==null?a.part.locationObject:null}Kt.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=js(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var nt=this.Kg,rt=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&z===b&&(a=ln),a){case ln:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case un:this.v(!0),this.measure(x+rt,b+nt,0,0);break;case Zn:this.v(!0),this.measure(x+rt,z+nt,0,0);break;case si:this.v(!0),this.measure(y+rt,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},Kt.gh=function(a){var y=this.naturalBounds,x=Pu(this);if(Wo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=xe.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(gi(E.set(a),z.transform),z.ca(E)))return xe.free(E),!0}return xe.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Kt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},Kt.qm=function(a,y){if(y(this,a),a instanceof dn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Dc(a,y){a1(a,a,y)}function a1(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof dn&&a1(a,z,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof dn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}Kt.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof dn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=u1(a,y[E],x);if(z!==null)return z}}return null}Kt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=_g(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof dn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function h1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof dn?x=Math.max(x,h1(E)):E instanceof Li&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Kt.se=function(){return!(this.type===dn.TableRow||this.type===dn.TableColumn)};function nh(a){return a.type===dn.TableRow||a.type===dn.TableColumn}Kt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ps(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:gi(xe.allocAt(a.x,a.y),this.transform),rt=this.diagram,st=10,ht=5;if(rt!==null&&(st=rt.Ql("extraTouchArea"),ht=st/2),Wo(-(ht*E),-(ht*E),b.width+st*E,b.height+st*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var dt=E.length;if(rt=xe.alloc(),ht=(st=this.isClipping&&this.na===dn.Spot)?this.Pb():null,st&&(ht.se()?gi(rt.set(a),ht.transform):rt.set(a),!ht.ca(rt)))return xe.free(rt),z||xe.free(nt),null;for(var vt=Pu(this);dt--;){var Ft=E[dt];if((Ft.visible||Ft===vt)&&(Ft.se()?gi(rt.set(a),Ft.transform):rt.set(a),!st||Ft!==ht)){var Wt=null;if(Ft instanceof dn?Wt=Ft.ic(rt,y,x):Ft.pickable===!0&&Ft.ca(rt)&&(Wt=Ft),Wt!==null&&(y!==null&&(Wt=y(Wt)),Wt!==null&&(x===null||x(Wt))))return xe.free(rt),z||xe.free(nt),Wt}}xe.free(rt)}return this.background===null&&this.areaBackground===null?(z||xe.free(nt),null):(a=Wo(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||xe.free(nt),a)}return z||xe.free(nt),null},Kt.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),nt=z?a:gi(xe.allocAt(a.x,a.y),this.transform);if(E=Wo(0,0,E.width,E.height,nt.x,nt.y),nh(this)||E){if(!this.isAtomic){for(var rt=this.O.s,st=rt.length,ht=xe.alloc(),dt=Pu(this);st--;){var vt=rt[st];if(vt.visible||vt===dt){vt.se()?gi(ht.set(a),vt.transform):ht.set(a);var Ft=vt;vt=vt instanceof dn?vt:null,(vt!==null?vt.ji(ht,y,x,b):Ft.ca(ht))&&Ft.pickable!==!1&&(y!==null&&(Ft=y(Ft)),Ft===null||x!==null&&!x(Ft)||b.add(Ft))}}xe.free(ht)}return z||xe.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||xe.free(nt),!1},Kt.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=pi.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,E),z===void 0&&pi.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var rt=Pu(this),st=this.O.s,ht=st.length;ht--;){var dt=st[ht];if(dt.visible||dt===rt){var vt=dt.actualBounds,Ft=this.naturalBounds;vt.x>Ft.width||vt.y>Ft.height||0>vt.x+vt.width||0>vt.y+vt.height||(vt=dt,dt=dt instanceof dn?dt:null,Ft=pi.alloc(),Ft.set(nt),(dt!==null?dt.Cf(a,y,x,b,E,Ft):Po(vt,a,b,Ft))&&(y!==null&&(vt=y(vt)),vt===null||x!==null&&!x(vt)||E.add(vt)),pi.free(Ft))}}return z===void 0&&pi.free(nt),b}return z===void 0&&pi.free(nt),!1};function vv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var nt=E[z];if(nt.visible){var rt=nt.actualBounds,st=a.naturalBounds;rt.x>st.width||rt.y>st.height||0>rt.x+rt.width||0>rt.y+rt.height||(nt instanceof dn&&vv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}Kt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,rt=this.se(),st=rt?a:gi(xe.allocAt(a.x,a.y),this.transform),ht=rt?y:gi(xe.allocAt(y.x,y.y),this.transform),dt=st.Bf(ht),vt=0<st.x&&st.x<nt.width&&0<st.y&&st.y<nt.height||Ji(st.x,st.y,0,0,0,nt.height)<=dt||Ji(st.x,st.y,0,nt.height,nt.width,nt.height)<=dt||Ji(st.x,st.y,nt.width,nt.height,nt.width,0)<=dt||Ji(st.x,st.y,nt.width,0,0,0)<=dt;if(nt=st.zd(0,0)<=dt&&st.zd(0,nt.height)<=dt&&st.zd(nt.width,0)<=dt&&st.zd(nt.width,nt.height)<=dt,rt||(xe.free(st),xe.free(ht)),vt){if(!this.isAtomic){st=xe.alloc(),ht=xe.alloc(),dt=Pu(this);for(var Ft=this.O.s,Wt=Ft.length;Wt--;){var Ht=Ft[Wt];if(Ht.visible||Ht===dt){var ne=Ht.actualBounds,ve=this.naturalBounds;(!rt||!(ne.x>ve.width||ne.y>ve.height||0>ne.x+ne.width||0>ne.y+ne.height))&&(Ht.se()?(ne=Ht.transform,gi(st.set(a),ne),gi(ht.set(y),ne)):(st.set(a),ht.set(y)),ne=Ht,Ht=Ht instanceof dn?Ht:null,(Ht!==null?Ht.og(st,ht,x,b,E,z):ne.tx(st,ht,E))&&(x!==null&&(ne=x(ne)),ne===null||b!==null&&!b(ne)||z.add(ne)))}}xe.free(st),xe.free(ht)}return E?vt:nt}return!1};function yv(a){var y=null;return a instanceof Li&&(y=a.spot1,y===Fo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ar),y}function Sv(a){var y=null;return a instanceof Li&&(y=a.spot2,y===Fo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=oo),y}Kt.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},Kt.M=function(a){return this.O.M(a)},Kt.Gb=function(a,y){y instanceof $n&&we("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&we("Cannot make a Panel contain itself: "+this.toString()),we("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&we("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!==dn.Grid||y instanceof Li||we("Can only add Shapes to a Grid Panel, not: "+y),this.na!==dn.Graduated||y instanceof Li||y instanceof wr||we("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new ti),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,nt=this.O.s,rt=nt.length,st=0;st<rt;st++)if(nt[st]===y){z=st;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else we("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ma(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof dn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Am(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof kn&&(x.Te=!0),x.Te&&x instanceof kn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(fo,"elements",this,y,null,b,null),x.cb(qr,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Kt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},Kt.mb=function(a){0<=a&&this.pc(a,!0)},Kt.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),lo(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof kn&&(b instanceof dn?b.qm(b,function(nt,rt){_v(z,rt,y)}):_v(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(fo,"elements",this,b,null,a,null))},Kt.Fb=function(a){0>a&&An(a,">= 0",dn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new uo;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(qr,"rowdefs",this,null,x,null,a)}return y[a]},Kt.oA=function(a){if(0>a&&An(a,">= 0",dn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(fo,"rowdefs",this,x,null,a,null),this.v()}}};function c1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof uo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Kt.Eb=function(a){0>a&&An(a,">= 0",dn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new uo;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(qr,"coldefs",this,null,x,null,a)}return y[a]},Kt.jA=function(a){if(0>a&&An(a,">= 0",dn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(fo,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof uo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Kt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Lm(y,a),this},Kt.Hy=function(a,y){return(a=this.Fb(a))&&Lm(a,new uo(y)),this},Kt.By=function(a,y){return(a=this.Eb(a))&&Lm(a,new uo(y)),this},Kt.nz=function(a){if(0>a||this.type!==dn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Kt.fz=function(a){if(0>a||this.type!==dn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Kt.Fz=function(a,y){if(y===void 0&&(y=new xe(NaN,NaN)),this.type!==dn.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)},Kt.Gz=function(a){if(this.type!==dn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function f1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Ka(a){var y=a.allBindings;if(y===null)a.data!==null&&we("Template cannot have .data be non-null: "+a),a.allBindings=y=new cn;else if(y._isFrozen)return;var x=new cn;xv(a,!1),a.qm(a,function(ht,dt){dt.th();var vt=dt.localBindings;if(vt!==null)for(Sd(dt,!1),vt=vt.iterator;vt.next();){var Ft=vt.value;Ft.mode===cp&&Sd(dt,!0);var Wt=Ft.sourceName;Wt!==null&&(Wt==="/"&&xv(ht,!0),Wt=kS(Ft,ht,dt),Wt!==null&&(x.add(Wt),Wt.srcBindings===null&&(Wt.srcBindings=new cn),Wt.srcBindings.add(Ft))),y.add(Ft)}if(dt instanceof dn&&dt.type===dn.Table){if(0<dt.rowCount){for(ht=dt.rowDefs,vt=ht.length,Ft=0;Ft<vt;Ft++)if(Wt=ht[Ft],Wt!==void 0&&Wt.be!==null)for(var Ht=Wt.be.iterator;Ht.next();){var ne=Ht.value;ne.xd=Wt,ne.to=2,ne.wl=Wt.index,y.add(ne)}}if(0<dt.columnCount){for(dt=dt.colDefs,ht=dt.length,vt=0;vt<ht;vt++)if(Ft=dt[vt],Ft!==void 0&&Ft.be!==null)for(Wt=Ft.be.iterator;Wt.next();)Ht=Wt.value,Ht.xd=Ft,Ht.to=1,Ht.wl=Ft.index,y.add(Ht)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Sd(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new cn),E.localBindings.add(nt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var rt=E.targetProperty,st=rt.indexOf(".");0<st&&z instanceof dn&&(nt=rt.substring(0,st),rt=rt.substr(st+1),st=z.fb(nt),st!==null?(z=st,E.targetProperty=rt):Nn('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof uo?(nt=Wi(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof Be?(nt=Wi(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):we("Unknown type of binding target: "+z)}y.freeze(),a instanceof $n&&a.Zc()&&a.Va()}Kt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof dn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Ka(y),y},Kt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,nt=x.Ai;if(nt!==-1){if(z=this.ks(nt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof dn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Kt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof dn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var nt=0;E<x&&nt<b;){if(z=a[E],!(z instanceof dn)||z.data!==y[nt])return!0;E++,nt++}return!1}function _g(a){if(a.type===dn.Spot||a.type===dn.Auto)return Math.min(a.O.length,1);if(a.type===dn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Li&&b.isPanelMain))break}return x}return a.type===dn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof dn&&nh(a))?1:0}Kt.mv=function(){for(var a=_g(this);this.O.length>a;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=_g(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)bm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof dn){if(nt.data!==z){var rt=Pv(a,nt.data),st=Pv(a,z),ht=st!==rt;ht||(rt=Cv(a,rt),ht=Cv(a,st)!==rt),ht?(a.pc(b,!1),bm(a,z,E,!1)):nt.data=z}}else bm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,x,0),ma(a)||a.v(),a.graduatedIntervals=null,a.If()||Am(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof kn&&(y.Te=!0),y.Te&&y instanceof kn&&(y.wc=null))}}function bm(a,y,x,b){if(!(y==null||0>x)){var E=Pv(a,y);if(E=Cv(a,E),E!==null){if(Ka(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&xv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new ti),a.ge.add(y,E)),z=x+_g(a),a.Gb(z,E),b&&(E.ub=y,wv(a,z,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof dn){var E=y,z=x;b.type===dn.TableRow?b.row=E:b.type===dn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Pv(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=Xr(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;we("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Cv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(p1||(p1=!0,Nn('No item template Panel found for category "'+y+'" on '+a),Nn(" Using default item template."),a=new dn,y=new wr,y.bind(new eo("text","",Ai)),a.add(y),m1=a),b=m1)),b}function Am(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof dn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof dn&&!z.isEnabled||Am(a,z,x)}}}function Bl(a,y){y.name=a,ol.add(a,y)}Ke.Object.defineProperties(dn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===dn.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&&An(a,">= 0",dn,"padding"),a=new Bi(a)):(0>a.left&&An(a.left,">= 0",dn,"padding:value.left"),0>a.right&&An(a.right,">= 0",dn,"padding:value.right"),0>a.top&&An(a.top,">= 0",dn,"padding:value.top"),0>a.bottom&&An(a.bottom,">= 0",dn,"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:ha},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Da),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 hr)&&(a instanceof hr&&a.freeze(),this.T===null&&(this.T=new Da),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 Da),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||we("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Da),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 hr)&&(a instanceof hr&&a.freeze(),this.T===null&&(this.T=new Da),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 Da),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||we("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Da),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 Da),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||we("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Nl(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()||we("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Nl(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 Cu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Go(this)&&(a=this.part,a!==null&&kr(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 Cu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Go(this)&&(a=this.part,a!==null&&kr(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 Cu),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 Cu),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 Cu,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 Cu,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 Cu,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 Cu,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 Da),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Da),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Em},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Da),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Em},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Da),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)&&we("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Da),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)&&we("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Da),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 $n&&!(this instanceof ir);Ka(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof vn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof $n&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new xd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new ti}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof $n||a.isPanelMain)&&we("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Mi(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Mi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof xi&&(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&&Am(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))}}}),Ke.Object.defineProperties(dn,{Position:{get:function(){return ol.I("Position")}},Horizontal:{get:function(){return ol.I("Horizontal")}},Vertical:{get:function(){return ol.I("Vertical")}},Spot:{get:function(){return ol.I("Spot")}},Auto:{get:function(){return ol.I("Auto")}},Table:{get:function(){return ol.I("Table")}},Viewbox:{get:function(){return ol.I("Viewbox")}},TableRow:{get:function(){return ol.I("TableRow")}},TableColumn:{get:function(){return ol.I("TableColumn")}},Link:{get:function(){return ol.I("Link")}},Grid:{get:function(){return ol.I("Grid")}},Graduated:{get:function(){return ol.I("Graduated")}}}),dn.prototype.rebuildItemElements=dn.prototype.mv,dn.prototype.findItemPanelForData=dn.prototype.sx,dn.prototype.updateTargetBindings=dn.prototype.La,dn.prototype.copyTemplate=dn.prototype.Uy,dn.prototype.graduatedValueForPoint=dn.prototype.Gz,dn.prototype.graduatedPointForValue=dn.prototype.Fz,dn.prototype.findColumnForLocalX=dn.prototype.fz,dn.prototype.findRowForLocalY=dn.prototype.nz,dn.prototype.addColumnDefinition=dn.prototype.By,dn.prototype.addRowDefinition=dn.prototype.Hy,dn.prototype.addRowColumnDefinition=dn.prototype.Gy,dn.prototype.removeColumnDefinition=dn.prototype.jA,dn.prototype.getColumnDefinition=dn.prototype.Eb,dn.prototype.removeRowDefinition=dn.prototype.oA,dn.prototype.getRowDefinition=dn.prototype.Fb,dn.prototype.removeAt=dn.prototype.mb,dn.prototype.remove=dn.prototype.remove,dn.prototype.insertAt=dn.prototype.Gb,dn.prototype.elt=dn.prototype.M,dn.prototype.add=dn.prototype.add,dn.prototype.findObject=dn.prototype.fb,dn.prototype.findInVisualTree=dn.prototype.Nl,dn.prototype.walkVisualTreeFrom=dn.prototype.qm,dn.prototype.findMainElement=dn.prototype.Pb;var p1=!1,m1=null,ol=new ti;dn.className="Panel",dn.definePanelLayout=Bl,Bl("Position",new dm),Bl("Vertical",new gm),Bl("Auto",new mm),Bl("Link",new Pm);function Cu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Cu.prototype.copy=function(){var a=new Cu;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},Cu.className="GradPanelSettings";function Da(){this.Pc=[],this.Oc=[],this.j=this.ob=Em,this.hb=this.Hb=0,this.Qp=ha,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Da.prototype.copy=function(a){for(var y=new Da,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var nt=x[z].copy();nt.wi(a),E[z]=nt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(nt=x[z].copy(),nt.wi(a),E[z]=nt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Da.className="TablePanelSettings";function uo(a){di(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Fo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=bv,this.hg=wi,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))}uo.prototype.copy=function(){var a=new uo;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=xn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Lm(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=xn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Kt=uo.prototype,Kt.qb=function(a){a.classType===uo&&(this.sizing=a)},Kt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Wi(this)},Kt.wi=function(a){this.Me=a},Kt.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)},Kt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===dn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var nt=b?y.rowDefs[z]:y.colDefs[z];if(nt!==void 0&&nt.oa!==0){x=nt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Kt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Or,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function km(a){if(a.sizing===bv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Kt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new eo(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&we("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new cn),this.be.add(E),this},Ke.Object.defineProperties(uo.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&&An(a,">= 0",uo,"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&&An(a,">= 0",uo,"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))&&An(a,">= 0",uo,"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&&An(a,">= 0",uo,"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 Bi(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&&Pd(a,"RowColumnDefinition.separatorStroke"),a instanceof hr&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||we("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Pd(a,"RowColumnDefinition.background"),a instanceof hr&&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}}}),uo.prototype.computeEffectiveSpacing=uo.prototype.Wc,uo.prototype.computeEffectiveSpacingTop=uo.prototype.Io;var bv=new an(uo,"Default",0),Hg=new an(uo,"None",1),Em=new an(uo,"ProportionalExtra",2);uo.className="RowColumnDefinition",uo.Default=bv,uo.None=Hg,uo.ProportionalExtra=Em;function Li(a,y){Be.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)}Je(Li,Be),Li.prototype.cloneProtected=function(a){Be.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=xn(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 Bc(a){a.Na===null?a.Na=new kv:a.Na.nc&&(a.Na=a.Na.copy())}Kt=Li.prototype,Kt.th=function(){Be.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Kt.qb=function(a){a===ln||a===Kn||a===Vi||a===wi?this.geometryStretch=a:Be.prototype.qb.call(this,a)},Kt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Wi(this)};function Cf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,nt=Math.max(1,z.width);z=z.height;for(var rt=x[0],st=x[1],ht,dt,vt,Ft,Wt,Ht,ne=0,ve=Fn(),fe=2;fe<E;fe+=2)ht=x[fe],dt=x[fe+1],vt=ht-rt,rt=dt-st,vt===0&&(vt=.001),Ft=rt/vt,Wt=Math.atan2(rt,vt),Ht=Math.sqrt(vt*vt+rt*rt),ve.push([vt,Wt,Ft,Ht]),ne+=Ht,rt=ht,st=dt;rt=x[0],st=x[1],vt=b.measuredBounds.width,b instanceof Li&&(vt-=b.strokeWidth),1>vt&&(vt=1),E=x=vt,ht=nt/2,dt=ht!==0,fe=0,Ht=ve[fe],vt=Ht[0],Wt=Ht[1],Ft=Ht[2],Ht=Ht[3];for(var Ce=0;.1<=ne;){if(Ce===0&&(dt?(E=x,E-=ht,ne-=ht,dt=!1):E=x,E===0&&(E=1)),E>ne){jn(ve);return}E>Ht?(Ce=E-Ht,E=Ht):Ce=0;var ke=Math.sqrt(E*E/(1+Ft*Ft));if(0>vt&&(ke=-ke),rt+=ke,st+=Ft*ke,a.translate(rt,st),a.rotate(Wt),a.translate(-(nt/2),-(z/2)),Ce===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-Wt),a.translate(-rt,-st),ne-=E,Ht-=E,Ce!==0){if(fe++,fe===ve.length){jn(ve);return}Ht=ve[fe],vt=Ht[0],Wt=Ht[1],Ft=Ht[2],Ht=Ht[3],E=Ce}}jn(ve)}}Kt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,nt=this.naturalBounds;b!==null&&Vr(this,a,b,!0,!1,nt,z);var rt=this.part,st=this.ig;if(x===null||st!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(st=rt.type===dn.Link&&rt instanceof ir&&rt.category==="Selection"&&rt.adornedObject instanceof Li&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),st===0&&(x=null),x!==null&&st!==0&&(Vr(this,a,x,!1,!1,nt,z),a.lineWidth=st,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||b!==null&&b!=="transparent"||(rt=!1),nt=!1,st=this.strokeDashArray,st!==null&&(nt=!0,a.js(st,this.strokeDashOffset)),E.type===mn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===mn.u){var ht=E.startX;st=E.startY;var dt=E.endX,vt=E.endY;E=Math.min(ht,dt);var Ft=Math.min(st,vt);ht=Math.abs(dt-ht),st=Math.abs(vt-st),a.beginPath(),a.rect(E,Ft,ht,st),b!==null&&a.ng(b),x!==null&&(rt&&z&&Jl(a),a.jk(),rt&&z&&Su(a)),a.Se()}else if(E.type===mn.F)ht=E.startX,st=E.startY,dt=E.endX,vt=E.endY,E=Math.abs(dt-ht)/2,Ft=Math.abs(vt-st)/2,ht=Math.min(ht,dt)+E,st=Math.min(st,vt)+Ft,a.beginPath(),a.moveTo(ht,st-Ft),a.bezierCurveTo(ht+Ie.wg*E,st-Ft,ht+E,st-Ie.wg*Ft,ht+E,st),a.bezierCurveTo(ht+E,st+Ie.wg*Ft,ht+Ie.wg*E,st+Ft,ht,st+Ft),a.bezierCurveTo(ht-Ie.wg*E,st+Ft,ht-E,st+Ie.wg*Ft,ht-E,st),a.bezierCurveTo(ht-E,st-Ie.wg*Ft,ht-Ie.wg*E,st-Ft,ht,st-Ft),a.closePath(),b!==null&&a.ng(b),x!==null&&(rt&&z&&Jl(a),a.jk(),rt&&z&&Su(a)),a.Se();else if(E.type===mn.o)for(E=E.figures,st=E.length,Ft=0;Ft<st;Ft++){ht=E.s[Ft],a.beginPath(),a.moveTo(ht.startX,ht.startY),dt=ht.segments.s,vt=dt.length;for(var Wt=null,Ht=0;Ht<vt;Ht++){var ne=dt[Ht];switch(ne.type){case wo:a.moveTo(ne.endX,ne.endY);break;case Ar:a.lineTo(ne.endX,ne.endY);break;case Ho:a.bezierCurveTo(ne.point1X,ne.point1Y,ne.point2X,ne.point2Y,ne.endX,ne.endY);break;case da:a.quadraticCurveTo(ne.point1X,ne.point1Y,ne.endX,ne.endY);break;case so:if(ne.radiusX===ne.radiusY){var ve=Math.PI/180;a.arc(ne.point1X,ne.point1Y,ne.radiusX,ne.startAngle*ve,(ne.startAngle+ne.sweepAngle)*ve,0>ne.sweepAngle,Wt!==null?Wt.endX:ht.startX,Wt!==null?Wt.endY:ht.startY)}else if(Wt=$s(ne,ht),ve=Wt.length,ve===0)a.lineTo(ne.centerX,ne.centerY);else for(var fe=0;fe<ve;fe++){var Ce=Wt[fe];fe===0&&a.lineTo(Ce[0],Ce[1]),a.bezierCurveTo(Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7])}break;case Aa:if(fe=ve=0,Wt!==null&&Wt.type===so){if(Wt=$s(Wt,ht),Ce=Wt.length,Ce===0){a.lineTo(ne.endX,ne.endY);break}Wt=Wt[Ce-1]||null,Wt!==null&&(ve=Wt[6],fe=Wt[7])}else ve=Wt!==null?Wt.endX:ht.startX,fe=Wt!==null?Wt.endY:ht.startY;if(Wt=za(ne,ht,ve,fe),ve=Wt.length,ve===0){a.lineTo(ne.endX,ne.endY);break}for(fe=0;fe<ve;fe++)Ce=Wt[fe],a.bezierCurveTo(Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7]);break;default:we("Segment not of valid type: "+ne.type)}ne.isClosed&&a.closePath(),Wt=ne}dt=ht.isFilled,z?ht.isShadowed?(dt===!0&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&(dt&&rt&&Jl(a),a.jk(),dt&&rt&&Su(a))):(Jl(a),dt&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk(),Su(a)):(dt&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk()),a.Se(Ft)}if(nt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=Fn(),z.type===mn.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Cf(a,y,b,x);else if(z.type===mn.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,b.length=0,b.push(rt.startX),b.push(rt.startY),nt=rt.startX,E=rt.startY,st=nt,Ft=E,ht=rt.segments.s,dt=ht.length,vt=0;vt<dt;vt++){switch(Ht=ht[vt],Ht.type){case wo:Cf(a,y,b,x),b.length=0,b.push(Ht.endX),b.push(Ht.endY),nt=Ht.endX,E=Ht.endY,st=nt,Ft=E;break;case Ar:b.push(Ht.endX),b.push(Ht.endY),nt=Ht.endX,E=Ht.endY;break;case Ho:Ie.Qe(nt,E,Ht.point1X,Ht.point1Y,Ht.point2X,Ht.point2Y,Ht.endX,Ht.endY,.5,b),nt=Ht.endX,E=Ht.endY;break;case da:Ie.ep(nt,E,Ht.point1X,Ht.point1Y,Ht.endX,Ht.endY,.5,b),nt=Ht.endX,E=Ht.endY;break;case so:if(ne=$s(Ht,rt),Wt=ne.length,Wt===0){b.push(Ht.centerX),b.push(Ht.centerY),nt=Ht.centerX,E=Ht.centerY;break}for(ve=0;ve<Wt;ve++)fe=ne[ve],Ie.Qe(nt,E,fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,b),nt=fe[6],E=fe[7];break;case Aa:if(ne=za(Ht,rt,nt,E),Wt=ne.length,Wt===0){b.push(Ht.endX),b.push(Ht.endY),nt=Ht.endX,E=Ht.endY;break}for(ve=0;ve<Wt;ve++)fe=ne[ve],Ie.Qe(nt,E,fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,b),nt=fe[6],E=fe[7];break;default:we("Segment not of valid type: "+Ht.type)}Ht.isClosed&&(b.push(st),b.push(Ft),Cf(a,y,b,x))}Cf(a,y,b,x)}else if(z.type===mn.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Cf(a,y,b,x);else if(z.type===mn.F){if(E=new xo,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new or(so),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(z.startX+z.endX)/2,nt.centerY=(z.startY+z.endY)/2,nt.radiusX=Math.abs(z.startX-z.endX)/2,nt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(nt),z=$s(nt,E),rt=z.length,rt===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=E.startX,E=E.startY,st=0;st<rt;st++)Ft=z[st],Ie.Qe(nt,E,Ft[2],Ft[3],Ft[4],Ft[5],Ft[6],Ft[7],.5,b),nt=Ft[6],E=Ft[7];Cf(a,y,b,x)}jn(b),a.restore(),a.Vc(!1)}}}},Kt.kk=function(a,y,x){return!Be.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)},Kt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Be.prototype.nk.call(this,a)},Kt.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)}},Kt.ga=function(a,y){if(y===void 0&&(y=new xe),a instanceof ni){a.Mc()&&we("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Kt.mi=function(a){a===void 0&&(a=new en);var y=this.naturalBounds,x=this.oe;y=en.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=xe.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Tr(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Tr(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Tr(a,b.x,b.y,0,0),en.free(y),xe.free(b),a},Kt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==mn.j||y||(E+=2);var z=en.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return en.free(z),!1;if(b=E+1e-4,x.type===mn.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(en.free(z),Ie.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===mn.u){y=x.startX;var nt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(nt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-nt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return en.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),en.free(z),a}if(x.type===mn.F){nt=x.startX,E=x.startY,rt=x.endX;var st=x.endY;if(x=Math.min(nt,rt),y=Math.min(E,st),nt=Math.abs(rt-nt)/2,E=Math.abs(st-E)/2,x=a.x-(x+nt),y=a.y-(y+E),this.fill===null){if(nt-=b,E-=b,0>=nt||0>=E||1>=x*x/(nt*nt)+y*y/(E*E))return en.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),en.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===mn.o)return en.free(z),this.fill===null?gl(x,a.x,a.y,E):ca(x,a,E,1<this.strokeWidth,y);we("Unknown Geometry type: "+x.type)},Kt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var nt=this.geometry.bounds;else{var rt=this.figure,st=Lv[rt];if(st===void 0){var ht=Ie.Ze[rt];typeof ht=="string"&&(ht=Ie.Ze[ht]),typeof ht=="function"?(st=ht(null,100,100),Lv[rt]=st):we("Unsupported Figure: "+rt)}nt=st.bounds}rt=nt.width,st=nt.height,ht=nt.width;var dt=nt.height;switch(js(this,!0)){case ln:b=x=0;break;case un:ht=Math.max(a-z,0),dt=Math.max(y-z,0);break;case Zn:ht=Math.max(a-z,0),b=0;break;case si:x=0,dt=Math.max(y-z,0)}isFinite(E.width)&&(ht=E.width),isFinite(E.height)&&(dt=E.height);var vt=this.maxSize,Ft=this.minSize;switch(x=Math.max(x-z,Ft.width),b=Math.max(b-z,Ft.height),ht=Math.min(vt.width,ht),dt=Math.min(vt.height,dt),ht=isFinite(ht)?Math.max(x,ht):Math.max(rt,x),dt=isFinite(dt)?Math.max(b,dt):Math.max(st,b),x=Av(this),x){case ln:break;case un:rt=ht,st=dt;break;case Kn:x=Math.min(ht/rt,dt/st),isFinite(x)||(x=1),rt*=x,st*=x;break;default:we(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),st===0&&(st=.001),x=this.Rd!==null?this.Rd:this.ua,nt=x.bounds,b=rt/nt.width,nt=st/nt.height,isFinite(b)||(b=1),isFinite(nt)||(nt=1),this.ua=b===1&&nt===1?x:x.copy().scale(b,nt)):this.ua!==null&&Ie.$(this.ua.Sk,a-z)&&Ie.$(this.ua.Rk,y-z)||(this.ua=Li.makeGeometry(this,rt,st)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-z/2,nt.y-z/2,a===0&&rt===0?0:nt.width+z,y===0&&st===0?0:nt.height+z):this.Ge(-(z/2),-(z/2),ht+z,dt+z),E.w()?(ht=E.width,dt=E.height,ht=Math.min(vt.width,ht),dt=Math.min(vt.height,dt),ht=Math.max(Ft.width,ht),dt=Math.max(Ft.height,dt),this.dc.h(0,0,ht,dt)):this.dc.assign(nt)};function Av(a){var y=a.geometryStretch;return a.Rd!==null?y===wi?un:y:y===wi?Lv[a.figure].defaultStretch:y}Kt.eh=function(a,y,x,b){hs(this,a,y,x,b)},Kt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Kt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*nt,st=-z.m12*nt,ht=-z.m21*nt,dt=z.m11*nt,vt=nt*(z.m21*z.dy-z.m22*z.dx),Ft=nt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*ht+vt,nt=a*st+y*dt+Ft,rt=x*rt+b*ht+vt,st=x*st+b*dt+Ft,vt=this.ig/2,ht=this.ua,ht===null&&(this.measure(1/0,1/0),ht=this.ua);var Wt=ht.bounds;if(dt=!1,ht.type===mn.j)if(1.5>=this.strokeWidth)dt=Ie.Ve(ht.startX,ht.startY,ht.endX,ht.endY,z,nt,rt,st,E);else{if(ht.startX===ht.endX?(b=vt,dt=0):(y=(ht.endY-ht.startY)/(ht.endX-ht.startX),dt=vt/Math.sqrt(1+y*y),b=dt*y),y=Fn(),a=new xe,Ie.Ve(ht.startX+b,ht.startY+dt,ht.endX+b,ht.endY+dt,z,nt,rt,st,a)&&y.push(a),a=new xe,Ie.Ve(ht.startX-b,ht.startY-dt,ht.endX-b,ht.endY-dt,z,nt,rt,st,a)&&y.push(a),a=new xe,Ie.Ve(ht.startX+b,ht.startY+dt,ht.startX-b,ht.startY-dt,z,nt,rt,st,a)&&y.push(a),a=new xe,Ie.Ve(ht.endX+b,ht.endY+dt,ht.endX-b,ht.endY-dt,z,nt,rt,st,a)&&y.push(a),rt=y.length,rt===0)return jn(y),!1;for(dt=!0,st=1/0,b=0;b<rt;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-nt)*(a.y-nt),x<st&&(st=x,E.x=a.x,E.y=a.y);jn(y)}else if(ht.type===mn.u)dt=Ie.Ff(Wt.x-vt,Wt.y-vt,Wt.x+Wt.width+vt,Wt.y+Wt.height+vt,z,nt,rt,st,E);else if(ht.type===mn.F){y=en.allocAt(Wt.x,Wt.y,Wt.width,Wt.height).Bc(vt,vt);t:if(y.width===0)dt=Ie.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,rt,st,E);else if(y.height===0)dt=Ie.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,rt,st,E);else{if(a=y.width/2,ht=y.height/2,b=y.x+a,dt=y.y+ht,x=9999,z!==rt&&(x=(nt-st)/(z-rt)),9999>Math.abs(x)){if(st=nt-dt-x*(z-b),0>a*a*x*x+ht*ht-st*st){E.x=NaN,E.y=NaN,dt=!1;break t}vt=Math.sqrt(a*a*x*x+ht*ht-st*st),rt=(-(a*a*x*st)+a*ht*vt)/(ht*ht+a*a*x*x)+b,a=(-(a*a*x*st)-a*ht*vt)/(ht*ht+a*a*x*x)+b,ht=x*(rt-b)+st+dt,st=x*(a-b)+st+dt,Math.abs((z-rt)*(z-rt))+Math.abs((nt-ht)*(nt-ht))<Math.abs((z-a)*(z-a))+Math.abs((nt-st)*(nt-st))?(E.x=rt,E.y=ht):(E.x=a,E.y=st)}else{if(rt=ht*ht,st=z-b,rt-=rt/(a*a)*st*st,0>rt){E.x=NaN,E.y=NaN,dt=!1;break t}st=Math.sqrt(rt),rt=dt+st,st=dt-st,Math.abs(rt-nt)<Math.abs(st-nt)?(E.x=z,E.y=rt):(E.x=z,E.y=st)}dt=!0}en.free(y)}else if(ht.type===mn.o){Ft=xe.alloc();var Ht=rt-z,ne=st-nt,ve=Ht*Ht+ne*ne,fe=z,Ce=nt;if(0<ve&&Wt.contains(fe,Ce)&&(Ft.x=fe,Ft.y=Ce,this.ca(Ft)))for(Ht!==0&&.5>Math.abs(Ht)?(ne*=.5/Ht,Ht=.5):ne!==0&&.5>Math.abs(ne)&&(Ht*=.5/ne,ne=.5),fe-=Ht,Ce-=ne;Wt.contains(fe,Ce);)fe-=Ht,Ce-=ne;for(E.x=rt,E.y=st,ne=0;ne<ht.figures.count;ne++){var ke=ht.figures.s[ne],Me=ke.isFilled?fe:z,De=ke.isFilled?Ce:nt,Ve=ke.segments;Wt=ke.startX,Ht=ke.startY;for(var Ln=Wt,Un=Ht,On=0;On<Ve.count;On++){var gn=Ve.s[On],sn=gn.type,mi=gn.endX,fi=gn.endY,lr=!1;switch(sn){case wo:Ln=mi,Un=fi;break;case Ar:lr=Tm(Wt,Ht,mi,fi,Me,De,rt,st,Ft);break;case Ho:lr=Ie.Eo(Wt,Ht,gn.point1X,gn.point1Y,gn.point2X,gn.point2Y,mi,fi,Me,De,rt,st,.6,Ft);break;case da:lr=Ie.Eo(Wt,Ht,Wt+2/3*(gn.point1X-Wt),Ht+2/3*(gn.point1Y-Ht),mi+2/3*(gn.point1X-mi),fi+2/3*(gn.point1Y-fi),mi,fi,Me,De,rt,st,.6,Ft);break;case so:case Aa:sn=gn.type===so?$s(gn,ke):za(gn,ke,Wt,Ht);var Sr=sn.length;if(Sr===0){lr=Tm(Wt,Ht,gn.type===so?gn.centerX:gn.endX,gn.type===so?gn.centerY:gn.endY,Me,De,rt,st,Ft);break}for(fi=null,mi=0;mi<Sr;mi++){if(fi=sn[mi],mi===0&&Tm(Wt,Ht,fi[0],fi[1],Me,De,rt,st,Ft)){var Co=Mm(Me,De,Ft,ve,E);Co<ve&&(ve=Co,dt=!0)}Ie.Eo(fi[0],fi[1],fi[2],fi[3],fi[4],fi[5],fi[6],fi[7],Me,De,rt,st,.6,Ft)&&(Co=Mm(Me,De,Ft,ve,E),Co<ve&&(ve=Co,dt=!0))}mi=fi[6],fi=fi[7];break;default:we("Unknown Segment type: "+sn)}Wt=mi,Ht=fi,lr&&(lr=Mm(Me,De,Ft,ve,E),lr<ve&&(ve=lr,dt=!0)),gn.isClosed&&(mi=Ln,fi=Un,Tm(Wt,Ht,mi,fi,Me,De,rt,st,Ft)&&(gn=Mm(Me,De,Ft,ve,E),gn<ve&&(ve=gn,dt=!0)))}}z=x-a,nt=b-y,rt=Math.sqrt(z*z+nt*nt),rt!==0&&(z/=rt,nt/=rt),E.x-=z*vt,E.y-=nt*vt,xe.free(Ft)}else we("Unknown Geometry type: "+ht.type);return dt?(this.transform.Ga(E),!0):!1};function Mm(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Tm(a,y,x,b,E,z,nt,rt,st){if(Ie.$(a,x)&&Ie.$(y,b)||Ie.$(E,nt)&&Ie.$(z,rt))return!1;var ht=!1,dt=(E-nt)*(y-b)-(z-rt)*(a-x);return dt===0?!1:(st.x=((E*rt-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/dt,st.y=((E*rt-z*nt)*(y-b)-(z-rt)*(a*b-y*x))/dt,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(st.y>a||Ie.$(st.y,a))&&(st.y<y||Ie.$(st.y,y))&&(ht=!0)):(y=a<x?a:x,a=a<x?x:a,(st.x>y||Ie.$(st.x,y))&&(st.x<a||Ie.$(st.x,a))&&(ht=!0)),ht)}Kt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=xe.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),xe.free(z),E},Kt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=pi.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=xe.alloc();if(nt.h(b,z),x.Ga(nt),this.gh(nt,!0)||(nt.h(E,z),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(E,a),x.Ga(nt),this.gh(nt,!0)))return xe.free(nt),!0;var rt=xe.alloc(),st=xe.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=E,rt.y=z,rt.transform(x),nt.x=b,nt.y=z,nt.transform(x),y=!1,Oc(this,nt,rt,st)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),Oc(this,nt,rt,st)?y=!0:(rt.x=b,rt.y=a,rt.transform(x),Oc(this,nt,rt,st)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),Oc(this,nt,rt,st)&&(y=!0)))),xe.free(nt),pi.free(x),xe.free(rt),xe.free(st),y};function Oc(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Kt.tx=function(a,y,x){function b(ve,fe){for(var Ce=ve.length,ke=0;ke<Ce;ke+=2)if(fe.zd(ve[ke],ve[ke+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var nt=y.bounds,rt=nt.x,st=nt.y,ht=nt.x+nt.width;if(nt=nt.y+nt.height,Mr(a.x,a.y,rt,st)<=E&&Mr(a.x,a.y,ht,st)<=E&&Mr(a.x,a.y,rt,nt)<=E&&Mr(a.x,a.y,ht,nt)<=E)return!0}if(rt=y.startX,st=y.startY,ht=y.endX,nt=y.endY,y.type===mn.j){if(x=(rt-ht)*(a.x-ht)+(st-nt)*(a.y-nt),Ji(a.x,a.y,rt,st,ht,nt)<=(0<=(ht-rt)*(a.x-rt)+(nt-st)*(a.y-st)&&0<=x?E:z))return!0}else{if(y.type===mn.u)return y=!1,x&&(y=Ji(a.x,a.y,rt,st,rt,nt)<=E||Ji(a.x,a.y,rt,st,ht,st)<=E||Ji(a.x,a.y,ht,st,ht,nt)<=E||Ji(a.x,a.y,rt,nt,ht,nt)<=E),y;if(y.type===mn.F){y=a.x-(rt+ht)/2,z=a.y-(st+nt)/2;var dt=Math.abs(ht-rt)/2,vt=Math.abs(nt-st)/2;if(dt===0||vt===0)return Ji(a.x,a.y,rt,st,ht,nt)<=E;if(x){if(a=Ie.$y(dt,vt,y,z),a*a<=E)return!0}else return!(Mr(y,z,-dt,0)>=E||Mr(y,z,0,-vt)>=E||Mr(y,z,0,vt)>=E||Mr(y,z,dt,0)>=E)}else if(y.type===mn.o){if(ht=y.bounds,z=ht.x,rt=ht.y,st=ht.x+ht.width,ht=ht.y+ht.height,a.x>st&&a.x<z&&a.y>ht&&a.y<rt&&Ji(a.x,a.y,z,rt,z,ht)>E&&Ji(a.x,a.y,z,rt,st,rt)>E&&Ji(a.x,a.y,st,ht,z,ht)>E&&Ji(a.x,a.y,st,ht,st,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?gl(y,a.x,a.y,z):ca(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],nt=z.startX,dt=z.startY,a.zd(nt,dt)>E)return!1;for(rt=z.segments.s,st=rt.length,ht=0;ht<st;ht++)switch(vt=rt[ht],vt.type){case wo:case Ar:if(nt=vt.endX,dt=vt.endY,a.zd(nt,dt)>E)return!1;break;case Ho:var Ft=Fn();if(Ie.Qe(nt,dt,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.8,Ft),nt=b(Ft,a),jn(Ft),nt||(nt=vt.endX,dt=vt.endY,a.zd(nt,dt)>E))return!1;break;case da:if(Ft=Fn(),Ie.ep(nt,dt,vt.point1X,vt.point1Y,vt.endX,vt.endY,.8,Ft),nt=b(Ft,a),jn(Ft),nt||(nt=vt.endX,dt=vt.endY,a.zd(nt,dt)>E))return!1;break;case so:case Aa:Ft=vt.type===so?$s(vt,z):za(vt,z,nt,dt);var Wt=Ft.length;if(Wt===0){if(nt=vt.type===so?vt.centerX:vt.endX,dt=vt.type===so?vt.centerY:vt.endY,a.zd(nt,dt)>E)return!1;break}vt=null;for(var Ht=Fn(),ne=0;ne<Wt;ne++)if(vt=Ft[ne],Ht.length=0,Ie.Qe(vt[0],vt[1],vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.8,Ht),b(Ht,a))return jn(Ht),!1;jn(Ht),vt!==null&&(nt=vt[6],dt=vt[7]);break;default:we("Unknown Segment type: "+vt.type)}}return!0}}}return!1},Kt.qc=function(){this.ua=null},Kt.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=$g,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Jo):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new ni(1-Jo.x,Jo.y)))}Li.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=ql[a.toArrow];else a.fromArrow!=="None"?b=ql[a.fromArrow]:(b=Ie.Ze[a.figure],typeof b=="string"&&(b=Ie.Ze[b]),b===void 0&&we("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Ie.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=ql[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=ql[x],y===void 0){var b=null,E;for(E in Ie.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=mn.parse(Ie.um[b],!1),ql[b]=a,x!==b&&(ql[x]=b),b}}return typeof y=="string"?y:y instanceof mn?a:null}Ke.Object.defineProperties(Li.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),Go(this)&&(a=this.part,a!==null&&kr(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=mn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=xe.allocAt(-y.x,-y.y),xe.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&&Pd(a,"Shape.fill"),a instanceof hr&&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&&Pd(a,"Shape.stroke"),a instanceof hr&&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 An(a,"value >= 0",Li,"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"?An(a,'"butt", "round", or "square"',Li,"strokeCap"):(Bc(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"?An(a,'"miter", "bevel", or "round"',Li,"strokeJoin"):(Bc(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){Bc(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||we("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Bc(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=Ie.Ze[a];typeof x=="function"?x=a:(x=Ie.Ze[a.toLowerCase()])||we("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?we("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new zh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?we("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new zh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Fo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Bc(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Fo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Bc(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&&(Bc(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:wi},set:function(a){var y=this.geometryStretch;y!==a&&(Bc(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new $l),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Nl(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new $l),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new $l),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new $l),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Li.prototype.intersectsRect=Li.prototype.Yc,Li.prototype.containedInRect=Li.prototype.fh,Li.prototype.getNearestIntersectionPoint=Li.prototype.rs,Li.prototype.getDocumentBounds=Li.prototype.mi,Li.prototype.getDocumentPoint=Li.prototype.ga;var ql=new Qn,Lv=new Qn;Li.className="Shape",Li.getFigureGenerators=function(){var a=new ti,y;for(y in Ie.Ze)y!==y.toLowerCase()&&a.add(y,Ie.Ze[y]);return a.freeze(),a},Li.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ie.Ze;b[a]=y,b[x]=a},Li.getArrowheadGeometries=function(){var a=new ti;for(b in Ie.um)if(ql[b]===void 0){var y=mn.parse(Ie.um[b],!1);ql[b]=y,y=b.toLowerCase(),y!==b&&(ql[y]=b)}for(var x in ql)if(x!==x.toLowerCase()){var b=ql[x];b instanceof mn&&a.add(x,b)}return a.freeze(),a},Li.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=mn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||we("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=ql;b[a]=x,b[y]=a};function kv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=wi,this.gg=this.fg=Fo}kv.prototype.copy=function(){var a=new kv;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 wr(a,y){return Be.call(this),Om||(zs=Hr?new Ha(null).context:null,Om=!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}Je(wr,Be),wr.prototype.cloneProtected=function(a){Be.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 Ol(a){a.da===null?a.da=new Bv:a.da.nc&&(a.da=a.da.copy())}Kt=wr.prototype,Kt.th=function(){Be.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function S1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Kt.qb=function(a){a.classType===wr?this.wrap=a:Be.prototype.qb.call(this,a)},Kt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Kt.v=function(){Be.prototype.v.call(this)},Kt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,nt=Vg(this),rt=a.textAlign=this.textAlign,st=y.tn;rt==="start"?rt=st?"right":"left":rt==="end"&&(rt=st?"left":"right"),st=this.isUnderline;var ht=this.isStrikethrough;Vr(this,a,this.xc,!0,!1,x,b),(st||ht)&&Vr(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var dt=this.oe,vt=dt.dx-(nt*dt.m21+dt.dx);dt=dt.dy-(nt*dt.m22+dt.dy);var Ft=y.scale;switch(8>(vt*vt+dt*dt)*Ft*Ft&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof na&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,vt=this.spacingBelow,this.flip){case $i:a.translate(E,0),a.scale(-1,1);break;case Ni:a.translate(0,z),a.scale(1,-1);break;case mr:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),dt=this.Gc,Ft=(y+nt+vt)*dt,z>Ft&&(b=this.verticalAlignment,b=b.y*z-b.y*Ft+b.offsetY),dt===1&&this.ze!==null)vt=this.Cb,vt>E&&(vt=E),this.Oj(this.ze,a,0,b+y,E,nt,vt,x,rt,st,ht);else if(this.Qc!==null&&this.Qb!==null)for(Ft=0;Ft<dt;Ft++){var Wt=this.Qc[Ft];Wt>E&&(Wt=E),b+=y,this.Oj(this.Qb[Ft],a,0,b,E,nt,Wt,x,rt,st,ht),b+=nt+vt}switch(this.flip){case $i:a.scale(-1,1),a.translate(-E,0);break;case Ni:a.scale(1,-1),a.translate(0,-z);break;case mr:a.scale(-1,-1),a.translate(-E,-z)}}},Kt.Oj=function(a,y,x,b,E,z,nt,rt,st,ht,dt){var vt=0;if(rt)st==="left"?vt=0:st==="right"?vt=E-nt:st==="center"&&(vt=(E-nt)/2),y.fillRect(x+vt,b+.25*z,nt,1);else{if(st==="left"?vt=0:st==="right"?vt=E:st==="center"&&(vt=E/2),E=Nm!==null?Nm(this,z):.75*z,y.fillText(a,x+vt,b+E),a=z/20|0,a===0&&(a=1),st==="right"?vt-=nt:st==="center"&&(vt-=nt/2),ht){rt=Fm!==null?Fm(this,z):.8*z,st=x+vt,ht=b+rt,E=x+vt+nt,rt=b+rt;var Ft=a;y.beginPath(),y.lineWidth=Ft,y.moveTo(st,ht),y.lineTo(E,rt),y.stroke(),y.Se(),y instanceof na&&y.ad.classList.add("gojs-td")}dt&&(dt=b+z-z/2.2|0,a%2!==0&&(dt+=.5),b=x+vt,z=dt,x=x+vt+nt,nt=dt,vt=a,y.beginPath(),y.lineWidth=vt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof na&&y.ad.classList.add("gojs-td"))}},Kt.kk=function(a,y,x){if(!Be.prototype.kk.call(this,a,y,x))return!1;if(Vr(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,qy(a,y,!0);return!0},Kt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Be.prototype.nk.call(this,a)},Kt.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)}},Kt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;zs!==null&&L1!==z&&(L1=zs.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;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 rt=nt=0,st=!1;!st;){var ht=z.indexOf(`
|
|
`,rt);ht===-1&&(ht=z.length,st=!0),rt=z.substr(rt,ht-rt),this.formatting===Yg&&(rt=rt.trim()),nt=Math.max(nt,sl(rt)),rt=ht+1}z=nt}else nt=z.indexOf(`
|
|
`,0),0<=nt&&(z=z.substr(0,nt)),z=sl(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)),nt=w1(this,z),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,st=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Dm&&(y=this.Ae,y=this.overflow===Dm?x1(y):0,ht=this.spacingAbove+this.spacingBelow,ht=Math.max(0,Vg(this)+ht),st=Math.min(this.maxLines-1,Math.max(Math.floor(st/ht+.01)-1,0)),!(st+1>=this.Qb.length))){for(this.l|=16777216,ht=this.Qb[st],y=Math.max(1,a-y);sl(ht)>y&&1<ht.length;)ht=ht.substr(0,ht.length-1);ht+=Zg,y=sl(ht),this.Qb[st]=ht,this.Qb=this.Qb.slice(0,st+1),this.Qc[st]=y,this.Qc=this.Qc.slice(0,st+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===P1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),Uo(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Kt.eh=function(a,y,x,b){hs(this,a,y,x,b)};function Kg(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 Ev(a,y,x,b){var E=a.formatting===Yg;E&&(y=y.trim());var z=0,nt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,Vg(a)+rt);var st=a.overflow===Dm?x1(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(nt=y,a.wrap===Mv){a.Le=1;var ht=sl(y);if(st===0||ht<=x)a.Cb=Math.max(a.Cb,ht),Kg(a,y,a.Cb),b!==null&&b.h(ht,rt);else{for(z=bf(a,nt),nt=nt.substr(z.length),y=bf(a,nt),ht=sl(z+y);0<y.length&&ht<=x;)z+=y,nt=nt.substr(y.length),y=bf(a,nt),ht=z+y,E&&(ht=ht.trim()),ht=sl(ht);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-st);sl(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Zg;var dt=sl(z);a.Cb=dt,Kg(a,z,dt),b!==null&&b.h(dt,rt)}}else{for(st=0,nt.length===0&&(st=1,Kg(a,nt,0));0<nt.length;){for(y=bf(a,nt),nt=nt.substr(y.length);sl(y)>x;){var vt=1;for(ht=sl(y.substr(0,vt)),dt=0;ht<=x;)vt++,dt=ht,ht=sl(y.substr(0,vt));if(vt===1){var Ft=ht;z=Math.max(z,ht)}else Ft=dt,z=Math.max(z,dt);if(vt--,1>vt&&(vt=1),Kg(a,y.substr(0,vt),Ft),st++,y=y.substr(vt),a.Gc+st>a.maxLines)break}for(dt=bf(a,nt),ht=sl(y+dt);0<dt.length&&ht<=x;)y+=dt,nt=nt.substr(dt.length),dt=bf(a,nt),ht=y+dt,E&&(ht=ht.trim()),ht=sl(ht);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),dt.length===0?(vt=ht,z=Math.max(z,ht)):(vt=dt=sl(y),z=Math.max(z,dt)),Kg(a,y,vt),st++,a.Gc+st>a.maxLines))break}a.Le=Math.min(a.maxLines,st),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,rt*a.Le)}}function bf(a,y){if(a.wrap===C1)return y.substr(0,1);for(var x=y.length,b=0,E=xx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===b1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function sl(a){return zs===null?8*a.length:zs.measureText(a).width}function Vg(a){if(a.df!==null)return a.df;var y=a.Ae;if(zs===null){var x=16;return a.df=x}return Fv[y]!==void 0&&5e3>A1?x=Fv[y]:(x=1.3*zs.measureText("M").width,Fv[y]=x,A1++),a.df=x}function x1(a){if(zs===null)return 6;if(Bm[a]!==void 0&&5e3>Dv)var y=Bm[a];else y=zs.measureText(Zg).width,Bm[a]=y,Dv++;return y}function w1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Vg(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,nt,rt=!1;!rt;){if(nt=x.indexOf(`
|
|
`,z),nt===-1&&(nt=x.length,rt=!0),z<=nt){if(z=x.substr(z,nt-z),a.wrap!==Mv){a.Le=0;var st=wn.alloc();Ev(a,z,y,st),E+=st.height,wn.free(st),a.Gc+=a.Le}else Ev(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=nt+1}return a.Lq=E}Ke.Object.defineProperties(wr.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"||(Ol(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:ln},set:function(a){var y=this.flip;y!==a&&(Ol(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Du},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Ol(this),this.da.Yr=a,ws(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=wn.alloc();Ev(this,this.ec,999999,a);var y=a.width;wn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Uo(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:Tv},set:function(a){var y=this.wrap;y!==a&&(Ol(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Nv},set:function(a){var y=this.overflow;y!==a&&(Ol(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&&Pd(a,"TextBlock.stroke"),a instanceof hr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Vg(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&&(Ol(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&&(Ol(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new $l),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new $l),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new $l),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new $l),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new $l),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(Ol(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&&(Ol(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&&(Ol(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&&(Ol(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Yg},set:function(a){var y=this.formatting;y!==a&&(Ol(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&&An(a,"> 0",wr,"maxLines"),Ol(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 Nm=null,Fm=null,Mv=new an(wr,"None",0),P1=new an(wr,"WrapFit",1),Tv=new an(wr,"WrapDesiredSize",2),C1=new an(wr,"WrapBreakAll",3),Nv=new an(wr,"OverflowClip",0),Dm=new an(wr,"OverflowEllipsis",1),Yg=new an(wr,"FormatTrim",0),b1=new an(wr,"FormatNone",0),xx=/[ \u200b\u00ad]/,Fv=new Qn,A1=0,Bm=new Qn,Dv=0,Zg="...",L1="",zs=null,Om=!1;wr.className="TextBlock";function Bv(){this.nc=!1,this.Hd=null,this.Xf=ln,this.gq=Yg,this.Jq=1/0,this.$q=Nv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Du,this.$r=Tv}Bv.prototype.copy=function(){var a=new Bv;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},wr.getEllipsis=function(){return Zg},wr.setEllipsis=function(a){Zg=a,Bm=new Qn,Dv=0},wr.getBaseline=function(){return Nm},wr.setBaseline=function(a){Nm=a},wr.getUnderline=function(){return Fm},wr.setUnderline=function(a){Fm=a},wr.isValidFont=function(a){if(Om||(zs=Hr?new Ha(null).context:null,Om=!0),zs===null)return!0;var y=zs.font;if(a===y||a==="10px sans-serif")return!0;zs.font="10px sans-serif",zs.font=a;var x=zs.font;if(x!=="10px sans-serif")return zs.font=y,!0;zs.font="19px serif";var b=zs.font;return zs.font=a,x=zs.font,zs.font=y,x!==b},wr.FormatNone=b1,wr.FormatTrim=Yg,wr.None=Mv,wr.OverflowClip=Nv,wr.OverflowEllipsis=Dm,wr.WrapBreakAll=C1,wr.WrapDesiredSize=Tv,wr.WrapFit=P1;function $l(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}$l.prototype.copy=function(){var a=new $l;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},$l.className="GradElementSettings";function Ws(a,y){Be.call(this),this.Eg=null,this.qo="",this.Xg=uu,this.Nk=un,this.Zg=this.Hd=null,this.Mk=Oi,this.Xf=ln,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 Af;Je(Ws,Be),Ws.prototype.cloneProtected=function(a){Be.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},Ws.prototype.qb=function(a){a===ln||a===Kn||a===Vi?this.imageStretch=a:Be.prototype.qb.call(this,a)},Ws.prototype.toString=function(){return"Picture("+this.source+")#"+Wi(this)};function Lf(a){a===void 0&&(a=""),a!==""?Af[a]&&(delete Af[a],Im--):(Af=new Qn,Im=0)}function k1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null)for(var rt=nt.length,st=0;st<rt;st++)z=nt[st],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(lo(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null){E=nt.length,z=Fn();for(var rt=0;rt<E;rt++)z.push(nt[rt]);if(y.hn)for(rt=0;rt<E;rt++)nt=z[rt],nt.Hd!==null&&nt.Hd(nt,x);jn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Ws.prototype.hA=function(){if(this.source!==""){Lf(this.source);var a=this.source;this.source="",this.source=a}},Ws.prototype.redraw=function(){this.N(),this.Uc=!0},Ws.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Fc)){var E=a instanceof na;b=this.naturalBounds;var z=0,nt=0,rt=this.qn,st=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,st===void 0&&x.videoWidth&&(st=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),st=st||b.width,rt=rt||b.height,st!==0&&rt!==0){var ht=st,dt=rt;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,st=this.Xg.width,rt=this.Xg.height);var vt=st,Ft=rt,Wt=this.Nk,Ht=this.Mk;switch(Wt){case ln:if(this.sourceRect.w())break;vt>=b.width&&(z=z+Ht.offsetX+(vt*Ht.x-b.width*Ht.x)),Ft>=b.height&&(nt=nt+Ht.offsetY+(Ft*Ht.y-b.height*Ht.y)),st=Math.min(b.width,vt),rt=Math.min(b.height,Ft);break;case un:vt=b.width,Ft=b.height;break;case Kn:case Vi:Wt===Kn?(Wt=Math.min(b.height/Ft,b.width/vt),vt*=Wt,Ft*=Wt):Wt===Vi&&(Wt=Math.max(b.height/Ft,b.width/vt),vt*=Wt,Ft*=Wt,vt>=b.width&&(z=(z+Ht.offsetX+(vt*Ht.x-b.width*Ht.x)/vt)*st),Ft>=b.height&&(nt=(nt+Ht.offsetY+(Ft*Ht.y-b.height*Ht.y)/Ft)*rt),st*=1/(vt/b.width),rt*=1/(Ft/b.height),vt=b.width,Ft=b.height)}Wt=this.Df()*y.scale;var ne=vt*Wt*Ft*Wt,ve=st*rt/ne,fe=x.__goCache;Wt=null;var Ce=wx;if(!E){if(x.sq&&fe!==void 0&&4<ne&&ve>Ce*Ce)for(fe.gi===null&&(M1(fe,4,ht,dt,x),M1(fe,16,ht,dt,x)),E=fe.gi,ht=E.length,dt=0;dt<ht&&E[dt].ratio*E[dt].ratio<ve;dt++)Wt=E[dt];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Ha(null).context;try{E.drawImage(this.Eg,0,0)}catch(ke){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ke){this.vl=!0}}if(this.vl)return}}switch(E=vt<b.width?Ht.offsetX+(b.width*Ht.x-vt*Ht.x):0,Ht=Ft<b.height?Ht.offsetY+(b.height*Ht.y-Ft*Ht.y):0,this.flip){case $i:a.translate(Math.min(b.width,vt),0),a.scale(-1,1);break;case Ni:a.translate(0,Math.min(b.height,Ft)),a.scale(1,-1);break;case mr:a.translate(Math.min(b.width,vt),Math.min(b.height,Ft)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&fe!==void 0&&Wt!==null&&Wt.ratio!==1){a.save(),y=Wt.ratio;try{a.drawImage(Wt.source,z/y,nt/y,Math.min(Wt.source.width,st/y),Math.min(Wt.source.height,rt/y),E,Ht,Math.min(b.width,vt),Math.min(b.height,Ft)),a instanceof na&&(this.bt=[z/y,nt/y,Math.min(Wt.source.width,st/y),Math.min(Wt.source.height,rt/y),E,Ht,Math.min(b.width,vt),Math.min(b.height,Ft)])}catch(ke){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,st,rt,E,Ht,Math.min(b.width,vt),Math.min(b.height,Ft)),a instanceof na&&(this.bt=[z,nt,st,rt,E,Ht,Math.min(b.width,vt),Math.min(b.height,Ft)])}catch(ke){this.en=!1}switch(this.flip){case $i:a.scale(-1,1),a.translate(-Math.min(b.width,vt),0);break;case Ni:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ft));break;case mr:a.scale(-1,-1),a.translate(-Math.min(b.width,vt),-Math.min(b.height,Ft))}}}}},Ws.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=js(this,!0),nt=this.Eg,rt=this.qn,st=0,ht=0;(rt||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(st=rt?+nt.width:nt.naturalWidth,ht=rt?+nt.height:nt.naturalHeight),isFinite(E.width)||z===un||z===Zn?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:nt!==null&&(a=st)),x=0):nt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:st),isFinite(E.height)||z===un||z===si?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ht)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ht),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Uo(this.dc,a,y),this.Ge(0,0,a,y)},Ws.prototype.eh=function(a,y,x,b){hs(this,a,y,x,b)},Ke.Object.defineProperties(Ws.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||we("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&kg(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new hn),b!==null&&x&&Ih(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(lo(this,!1),this.v())):x&&k1(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=Af;if(Hr){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Im&&(Lf(),x=Af),b=Di("img"),b.hn=!0,k1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Im++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new E1),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}}}),Ws.prototype.redraw=Ws.prototype.redraw,Ws.prototype.reloadSource=Ws.prototype.hA;var Im=0,wx=4;Ws.className="Picture",Af=new Qn,Ws.clearCache=Lf;function E1(){this.gi=null}function M1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Ha(null),nt=z.context,rt=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new T1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),nt.setTransform(rt*x,0,0,rt*x,0,0),nt.yc(),nt.drawImage(E,0,0),a.gi.push(y))}E1.className="PictureCacheArray";function T1(a,y){this.source=a,this.ratio=y}T1.className="PictureCacheInstance";function kf(){this.os=new mn,this.mc=null}kf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new mn,this.mc=null};function Ef(a,y,x,b,E,z){a.mc=new xo,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Px(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}kf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new or(wo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},kf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new or(Ar);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function ih(a,y,x,b,E,z,nt){var rt;rt===void 0&&(rt=!1);var st=new or(Ho);st.point1X=y,st.point1Y=x,st.point2X=b,st.point2Y=E,st.endX=z,st.endY=nt,rt&&st.close(),a.mc.segments.add(st)}function Rm(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new or(da);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}kf.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var rt=new or(so);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=b,rt.radiusX=E,rt.radiusY=z!==0?z:E,nt&&rt.close(),this.mc.segments.add(rt)};function Cx(a,y,x,b,E,z,nt,rt){var st;st===void 0&&(st=!1),y=new or(Aa,nt,rt,y,x,b,E,z),st&&y.close(),a.mc.segments.add(y)}function N1(a){var y=jm;return y!==null?(jm=null,y.reset(a),y):(y=new kf,y.reset(a),y)}var jm=null;kf.className="StreamGeometryContext";function ns(a,y){var x=a.toLowerCase(),b=Ie.Ze;b[a]=y,b[x]=a}ns("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ie.Mf[a];return b!==void 0||(b=new mn(mn.u),b.endX=y,b.endY=x,Ie.Nf<Ie.vm&&(Ie.Mf[a]=b,Ie.Nf++)),b}),ns("Square",function(a,y,x){a="s"+y+","+x;var b=Ie.Mf[a];return b!==void 0||(b=new mn(mn.u),b.endX=y,b.endY=x,b.defaultStretch=Kn,Ie.Nf<Ie.vm&&(Ie.Mf[a]=b,Ie.Nf++)),b}),ns("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Ie.Mf[b];if(E!==void 0)return E;var z=a*Ie.wg;return E=new mn().add(new xo(a,0,!0).add(new or(Ar,y-a,0)).add(new or(Ho,y,a,y-z,0,y,z)).add(new or(Ar,y,x-a)).add(new or(Ho,y-a,x,y,x-z,y-z,x)).add(new or(Ar,a,x)).add(new or(Ho,0,x-a,z,x,0,x-z)).add(new or(Ar,0,a)).add(new or(Ho,a,0,0,z,z,0).close())),1<z&&(E.spot1=new ni(0,0,z,z),E.spot2=new ni(1,1,-z,-z)),Ie.Nf<Ie.vm&&(Ie.Mf[b]=E,Ie.Nf++),E}),ns("Border","RoundedRectangle"),ns("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ie.Mf[a];return b!==void 0||(b=new mn(mn.F),b.endX=y,b.endY=x,b.spot1=cc,b.spot2=Ou,Ie.Nf<Ie.vm&&(Ie.Mf[a]=b,Ie.Nf++)),b}),ns("Circle",function(a,y,x){a="c"+y+","+x;var b=Ie.Mf[a];return b!==void 0||(b=new mn(mn.F),b.endX=y,b.endY=x,b.spot1=cc,b.spot2=Ou,b.defaultStretch=Kn,Ie.Nf<Ie.vm&&(Ie.Mf[a]=b,Ie.Nf++)),b}),ns("TriangleRight",function(a,y,x){return new mn().add(new xo(0,0).add(new or(Ar,y,.5*x)).add(new or(Ar,0,x).close())).pm(0,.25,.5,.75)}),ns("TriangleDown",function(a,y,x){return new mn().add(new xo(0,0).add(new or(Ar,y,0)).add(new or(Ar,.5*y,x).close())).pm(.25,0,.75,.5)}),ns("TriangleLeft",function(a,y,x){return new mn().add(new xo(y,x).add(new or(Ar,0,.5*x)).add(new or(Ar,y,0).close())).pm(.5,.25,1,.75)}),ns("TriangleUp",function(a,y,x){return new mn().add(new xo(y,x).add(new or(Ar,0,x)).add(new or(Ar,.5*y,0).close())).pm(.25,.5,.75,1)}),ns("Triangle","TriangleUp"),ns("Diamond",function(a,y,x){return new mn().add(new xo(.5*y,0).add(new or(Ar,0,.5*x)).add(new or(Ar,.5*y,x)).add(new or(Ar,y,.5*x).close())).pm(.25,.25,.75,.75)}),ns("LineH",function(a,y,x){return a=new mn(mn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),ns("LineV",function(a,y,x){return a=new mn(mn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),ns("None","Rectangle"),ns("BarH","Rectangle"),ns("BarV","Rectangle"),ns("MinusLine","LineH"),ns("PlusLine",function(a,y,x){return new mn().add(new xo(0,x/2,!1).add(new or(Ar,y,x/2)).add(new or(wo,y/2,0)).add(new or(Ar,y/2,x)))}),ns("XLine",function(a,y,x){return new mn().add(new xo(0,x,!1).add(new or(Ar,y,0)).add(new or(wo,0,0)).add(new or(Ar,y,x)))}),ns("LineRight",function(a,y,x){return new mn().add(new xo(.25*y,0,!1).add(new or(Ar,.75*y,.5*x)).add(new or(Ar,.25*y,x)))}),ns("LineDown",function(a,y,x){return new mn().add(new xo(0,.25*x,!1).add(new or(Ar,.5*y,.75*x)).add(new or(Ar,y,.25*x)))}),ns("LineLeft",function(a,y,x){return new mn().add(new xo(.75*y,0,!1).add(new or(Ar,.25*y,.5*x)).add(new or(Ar,.75*y,x)))}),ns("LineUp",function(a,y,x){return new mn().add(new xo(0,.75*x,!1).add(new or(Ar,.5*y,.25*x)).add(new or(Ar,y,.75*x)))}),Ie.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 Ov(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Qr,this.ir=null,this.jr="",this.lr=Fo,this.Gq="",this.Hq=ar,this.Pq=To,this.Kq=is,this.Up=null,this.Cq=127,this.zr=vo,this.yr="gray",this.Vg=4}Ov.prototype.copy=function(){var a=new Ov;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 $n(a,y){a===void 0||a instanceof po||typeof a=="string"?dn.call(this,a):(dn.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 xe(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new en,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Je($n,dn),$n.prototype.cloneProtected=function(a){dn.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},Kt=$n.prototype,Kt.Af=function(a){dn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Kt.toString=function(){var a=In(this.constructor)+"#"+Wi(this);return this.data!==null&&(a+="("+Ai(this.data)+")"),a};function Gs(a){a.P===null?a.P=new Ov:a.P.nc&&(a.P=a.P.copy())}Kt.th=function(){dn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Kt.gk=function(a,y,x,b,E,z,nt){var rt=this.diagram;rt!==null&&(a===qr&&y==="elements"?E instanceof dn?Dc(E,function(st){ly(rt.partManager,st),Ac(rt,st)}):Ih(rt,E):a===fo&&y==="elements"&&(E instanceof dn?Dc(E,function(st){uy(rt.partManager,st,rt)}):kg(rt,E)),rt.cb(a,y,x,b,E,z,nt))},Kt.La=function(a){if(dn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof dn&&Dc(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},$n.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},$n.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},$n.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new ti),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},$n.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},$n.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Fn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);jn(y)}},$n.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof xi?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof ir))break t;Ka(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=dn.Link),x.adornedObject=y)}if(x!==null){x.type===dn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(bx(this,a),y=this.adornments;y.next();)y.value.La()}},$n.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Iv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function bx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function zm(a){if(Wh(a)===!1){jv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function F1(a){if(a.G|=2097152,Wh(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||O1(a,y,x),x=a.Ib;var b=en.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),en.free(b),jv(a,!1)}}$n.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new pi);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},$n.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Oi;this.locationSpot.sb()&&(z=this.locationSpot);var nt=xe.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(nt),nt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else nt.yi(y,x,b,E,z);a.rotate(this.Kb,nt.x,nt.y),xe.free(nt)}},$n.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},$n.prototype.moveTo=function(a,y,x){a=xe.allocAt(a,y),this.move(a,x),xe.free(a)},$n.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())},$n.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())},$n.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new ti),y.I(a)!==null)return y.I(a);var x=dn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function rh(a,y,x,b){b===void 0&&(b=new xe),x=x.Mc()?Oi:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}$n.prototype.mi=function(a){return a===void 0&&(a=new en),a.assign(this.actualBounds)},$n.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function D1(a){var y=xe.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Li?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Ic(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=h1(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,z+=nt,y+=nt,b-=nt/2,E-=nt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}$n.prototype.arrange=function(){if(Ps(this)===!1)F1(this);else{Xl(this,!1);var a=this.Ib,y=en.alloc();y.assign(a);var x=Gh(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;O1(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Ie.B(y.width,a.width)&&Ie.B(y.height,a.height)||0<=this.vw&&this.C(16),en.free(y),jv(this,!1)}},Kt=$n.prototype,Kt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=en.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),en.free(E)}!(this.G&65536)&&a.D(y)||j1(this,b,x),x.N(),!a.w()&&!y.w()||Fs(a,y)||(this instanceof kn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Kt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&B1(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new xe(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Wh(this)===!1&&Ps(this)===!1&&(zm(this),F1(this)),!0};function B1(a,y,x,b,E){y===null||a instanceof ir||(y=y.animationManager,y.zb&&qd(y,a,new xe(b,E),x))}Kt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Wh(this)||Ps(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}zm(this)},Kt.Av=function(){this.G&=-2097153,zm(this)};function O1(a,y,x){var b=D1(a),E=a.diagram,z=x.w(),nt=y.w();z&&nt?a.G&2097152?I1(a,y,x,E,b):R1(a,y,x,E,b):z?I1(a,y,x,E,b):nt&&R1(a,y,x,E,b),a.G|=2097152,xe.free(b),a.Uk()}function I1(a,y,x,b,E){var z=y.x,nt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof ir||qd(x,a,new xe(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new xe(z,nt),y.copy()))}function R1(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function j1(a,y,x){zv(a,!1),a instanceof kn&&Qu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Gh(a)?(Wl(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Kt.si=function(){return!0},Kt.Zc=function(){return!0},Kt.ph=function(){return!1},Kt.Dd=function(){return!0};function Rv(a,y,x,b){y.constructor===a.constructor||G1||(G1=!0,Nn('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Nn(" Old class: "+In(a.constructor)+", new class: "+In(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,nt=a.isHighlighted,rt=!0,st=!0,ht=!1;a instanceof kn&&(rt=a.isTreeLeaf,st=a.isTreeExpanded,ht=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof kn&&(a.U=rt?a.U|4:a.U&-5,a.U=st?a.U|1:a.U&-2,a.U=ht?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}$n.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},$n.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},$n.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},$n.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},$n.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},$n.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},$n.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},$n.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},$n.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 Wh(a){return(a.G&32768)!==0}function jv(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 Gh(a){return(a.G&131072)!==0}Kt=$n.prototype,Kt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Wm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Kt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Kt.N=function(){var a=this.diagram;a!==null&&!Ps(this)&&!Wh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ic(this,this.Ib))},Kt.v=function(){dn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof kn&&this.labeledLink!==null&&ws(this.labeledLink),a.$b(!0))},Kt.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Kt.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Kt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Kt.oz=function(){return Wv(this,this)};function Wv(a,y){var x=y.containingGroup;return x!==null?1+Wv(a,x):y instanceof kn&&(y=y.labeledLink,y!==null)?Wv(a,y):0}Kt.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof kn&&(x=y.labeledLink,x!==null)?z1(a,x):y}Kt.Td=function(a){return a instanceof xi?Gv(this,this,a):!1};function Gv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Gv(a,b,x)?y instanceof kn&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}Kt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof xi&&Wm(y,!0),y instanceof kn){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 kn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof xi&&Wm(y,!1),y instanceof kn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},$n.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof kn&&this.isLinkLabel)},$n.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 kn&&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 W1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Uh(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof ir)){if(a.add(y),y instanceof kn){if(x&&y instanceof xi)for(var nt=y.memberParts;nt.next();)Uh(a,nt.value,x,b,E,z);if(E!==!1)for(nt=y.linksConnected;nt.next();){var rt=nt.value;if(!a.contains(rt)){var st=rt.fromNode,ht=rt.toNode;st=st===null||a.contains(st),ht=ht===null||a.contains(ht),(E?st&&ht:st||ht)&&Uh(a,rt,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Uh(a,y.value,x,b-1,E,z)}else if(y instanceof vn)for(y=y.labelNodes;y.next();)Uh(a,y.value,x,b,E,z)}}Ke.Object.defineProperties($n.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Fi:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(fo,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(qr,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Gs(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&&ef(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 ir?this.type!==dn.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:To},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Gs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:is},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Gs(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&&(Gs(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:ar},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Gs(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Ps(this)===!1&&(zm(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),B1(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof ir)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof ir?this instanceof ir&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Ka(x),x=x.copy(),x!==null&&Rv(this,x,y,a))):(z!==null&&z.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Ka(x),x=x.copy(),x===null||x instanceof vn||(b=this.location.copy(),Rv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Rv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Gs(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&&(Gs(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&&(Gs(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof vn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Gs(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&&(Gs(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&&(Gs(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:Qr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Gs(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&&(Gs(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&&(Gs(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:Fo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Gs(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&&we("Cannot make a Group a member of itself: "+this.toString()),we("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof xi&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof xi&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof xi){for(x=new hn,Uh(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof kn)for(b=b.linksConnected;b.next();)Mf(b.value)}if(this instanceof kn){for(x=this.linksConnected;x.next();)Mf(x.value);x=this.labeledLink,x!==null&&Mf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&ef(y,-1,a))}}else we("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&&(Gs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof kn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Gs(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&&(Gs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:vo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Gs(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&&(Gs(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&&(Gs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),$n.prototype.invalidateLayout=$n.prototype.C,$n.prototype.findCommonContainingGroup=$n.prototype.px,$n.prototype.isMemberOf=$n.prototype.Td,$n.prototype.findTopLevelPart=$n.prototype.sz,$n.prototype.findSubGraphLevel=$n.prototype.oz,$n.prototype.ensureBounds=$n.prototype.Va,$n.prototype.getDocumentBounds=$n.prototype.mi,$n.prototype.findObject=$n.prototype.fb,$n.prototype.moveTo=$n.prototype.moveTo,$n.prototype.invalidateAdornments=$n.prototype.Wb,$n.prototype.clearAdornments=$n.prototype.Ej,$n.prototype.removeAdornment=$n.prototype.Jf,$n.prototype.addAdornment=$n.prototype.bh,$n.prototype.findAdornment=$n.prototype.Pj,$n.prototype.updateTargetBindings=$n.prototype.La;var G1=!1;$n.className="Part",$n.LayoutNone=0,$n.LayoutAdded=1,$n.LayoutRemoved=2,$n.LayoutShown=4,$n.LayoutHidden=8,$n.LayoutNodeSized=16,$n.LayoutGroupLayout=32,$n.LayoutNodeReplaced=64,$n.LayoutStandard=127,$n.LayoutAll=16777215;function ir(a,y){a===void 0||a instanceof po||typeof a=="string"?$n.call(this,a):($n.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)}Je(ir,$n),ir.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ir.prototype.updateRelationshipsFromData=function(){},ir.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof vn&&y instanceof Li){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof Li&&(E.ua=a)}}},ir.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ps(a))},ir.prototype.Zc=function(){return!1},ir.prototype.gk=function(a,y,x,b,E,z,nt){if(a===qr&&y==="elements"){if(E instanceof bs)this.$a===null&&(this.$a=E);else if(E instanceof dn){var rt=E.Nl(function(st){return st instanceof bs});rt instanceof bs&&this.$a===null&&(this.$a=rt)}}else a===fo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof dn&&this.$a.rg(b)&&(this.$a=null));$n.prototype.gk.call(this,a,y,x,b,E,z,nt)},ir.prototype.updateAdornments=function(){},ir.prototype.Lj=function(){},Ke.Object.defineProperties(ir.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}}}),ir.className="Adornment";function Uv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Xo,this.er=_m,this.Kr=this.ij=this.Nq=this.Mq=null}Uv.prototype.copy=function(){var a=new Uv;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 kn(a,y){a===void 0||a instanceof po||typeof a=="string"?$n.call(this,a):($n.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new cn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Je(kn,$n),kn.prototype.cloneProtected=function(a){$n.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Kt=kn.prototype,Kt.Af=function(a){$n.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function oh(a){a.Ba===null?a.Ba=new Uv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Kt.th=function(){$n.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function U1(a,y){y!==null&&(a.af===null&&(a.af=new hn),a.af.add(y))}function _1(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Kt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=_1(this,a,y,x),a!==null&&a.Sl()},Kt.gk=function(a,y,x,b,E,z,nt){a===qr&&y==="elements"?this.wc=null:a===fo&&y==="elements"&&(this.wc=null),$n.prototype.gk.call(this,a,y,x,b,E,z,nt)},Kt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(ia(x.fromPort),ia(x.toPort),x.bb())}};function H1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(ia(x.fromPort),ia(x.toPort),x.bb())}}function ia(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||ia(y.port)}}Kt.si=function(){return!0},kn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},kn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},kn.prototype.isVisible=function(){if(!$n.prototype.isVisible.call(this))return!1;var a=!0,y=$u,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===$u){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ao){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===gf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},kn.prototype.Zb=function(a){$n.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},kn.prototype.qx=function(){var a=new hn,y=new hn;return K1(this,this,a,y),y.iterator};function K1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(E?nt.fromNode===y:nt.toNode===y)&&K1(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}kn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Qi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Kt=kn.prototype,Kt.Mo=function(a){a===void 0&&(a=null);var y=new Qi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Kt.Sd=function(a){a===void 0&&(a=null);var y=new Qi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Kt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new hn,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new hn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Ui(x):Fi},Kt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new hn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Ui(x):Fi},Kt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new hn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Ui(x):Fi},Kt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Qi(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Kt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Qi(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Gm(a,y,x){ia(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,y,x),nt!==null&&(nt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Um(a,y,x){ia(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var nt=!0;E!==null&&(nt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=nt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Xg(y)))}function Xg(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}kn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Kt=kn.prototype,Kt.Vo=function(a){$n.prototype.Vo.call(this,a),a||(Xg(this),a=this.Yk,a!==null&&tS(a,this))},Kt.Wo=function(a){$n.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Kt.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,$n.prototype.Lj.call(this)},Kt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;V1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function V1(a){a.wc===null?a.wc=new ti:a.wc.clear(),a.qm(a,function(y,x){Y1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Y1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function _v(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=Fn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);jn(x)}}}Kt.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Kt.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Kt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Wm(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;)Wm(y,!1),y=y.pg();return x},Kt.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},Kt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof kn)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},Kt.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new hn;return a(this,y),y},Kt.uz=function(){return Z1(this,this)};function Z1(a,y){return y=y.pg(),y===null?0:1+Z1(a,y)}Kt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Qi(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Kt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new cn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new cn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Ui(x):Fi},Kt.wz=function(a){a===void 0&&(a=1/0);var y=new hn;return Uh(y,this,!1,a,!0),y},kn.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 hn;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===$u),y.Ue=!1}};function X1(a,y,x,b,E,z,nt){if(1<b)for(var rt=x?a.Mo():a.Sd();rt.next();){var st=rt.value;st.isTreeLink&&(st=st.To(a),st===null||st===a||y.contains(st)||(y.add(st),X1(st,y,x,b-1,E,z,nt)))}else J1(a,y,x,E,z,nt)}function J1(a,y,x,b,E,z){for(var nt=E===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),st={};rt.next();){var ht=rt.value;if(ht.isTreeLink&&(ht=ht.To(a),ht!==null&&ht!==a)){var dt=y.contains(ht);if(dt||y.add(ht),nt){var vt=x?ht.Oo():ht.Po();st.uv=a,vt.all(function(Ft){return function(Wt){return Wt===Ft.uv||!Wt.isTreeExpanded}}(st))&&b.Aj(ht,E),ht.oh(),ht.Zb(!1)}ht.isTreeExpanded&&(ht.wasTreeExpanded=ht.isTreeExpanded,dt||J1(ht,y,x,b,E,z))}st={uv:st.uv}}a.isTreeExpanded=!1}kn.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 hn;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===$u),y.Ue=!1}};function Q1(a,y,x,b,E,z,nt){for(var rt=z===a?!1:a.isTreeExpanded,st=x?a.Mo():a.Sd(),ht={};st.next();){var dt=st.value;if(dt.isTreeLink&&(rt||dt.fd||dt.bb(),dt=dt.To(a),dt!==null&&dt!==a&&!y.contains(dt))){if(y.add(dt),!rt){dt.Zb(!0),dt.oh();var vt=x?dt.Oo():dt.Po();ht.vv=a,vt.all(function(Ft){return function(Wt){return Wt===Ft.vv||!Wt.isTreeExpanded}}(ht))&&E.Cj(dt,z)}(2<b||dt.wasTreeExpanded)&&(dt.wasTreeExpanded=!1,Q1(dt,y,x,b-1,E,z,nt))}ht={vv:ht.vv}}a.isTreeExpanded=!0}Ke.Object.defineProperties(kn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:_m},set:function(a){var y=this.portSpreading;y!==a&&(oh(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&&Qu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Xo},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),oh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Qu(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&&(oh(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&&(oh(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&&(oh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var nt=z.wa(b);nt!==void 0&&z.Qx(E,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(tS(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),ws(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&V1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(oh(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))}}}),kn.prototype.expandTree=kn.prototype.expandTree,kn.prototype.collapseTree=kn.prototype.collapseTree,kn.prototype.findTreeParts=kn.prototype.wz,kn.prototype.findTreeChildrenNodes=kn.prototype.Ou,kn.prototype.findTreeChildrenLinks=kn.prototype.Qo,kn.prototype.findTreeLevel=kn.prototype.uz,kn.prototype.findTreeParentChain=kn.prototype.vz,kn.prototype.findTreeParentNode=kn.prototype.pg,kn.prototype.findTreeParentLink=kn.prototype.kh,kn.prototype.findCommonTreeParent=kn.prototype.gz,kn.prototype.findTreeRoot=kn.prototype.xz,kn.prototype.isInTreeOf=kn.prototype.Nz,kn.prototype.findPort=kn.prototype.ns,kn.prototype.findLinksTo=kn.prototype.kz,kn.prototype.findLinksBetween=kn.prototype.jz,kn.prototype.findNodesInto=kn.prototype.Oo,kn.prototype.findNodesOutOf=kn.prototype.Po,kn.prototype.findNodesConnected=kn.prototype.Mu,kn.prototype.findLinksInto=kn.prototype.Sd,kn.prototype.findLinksOutOf=kn.prototype.Mo,kn.prototype.findExternalTreeLinksConnected=kn.prototype.qx,kn.prototype.invalidateConnectedLinks=kn.prototype.Bd,kn.prototype.invalidateLinkBundle=kn.prototype.Lz;var Ax=new an(kn,"SpreadingNone",10),_m=new an(kn,"SpreadingEvenly",11),Hv=new an(kn,"SpreadingPacked",12);kn.className="Node",kn.SpreadingNone=Ax,kn.SpreadingEvenly=_m,kn.SpreadingPacked=Hv;function xi(a,y){a===void 0||a instanceof po||typeof a=="string"?kn.call(this,a):(kn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new hn,this.$a=null,this.Sc=new Dr,this.Sc.group=this,this.gl=new hn,this.tb=this.$p=null,y&&Object.assign(this,y)}Je(xi,kn),xi.prototype.cloneProtected=function(a){kn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof bs});y instanceof bs?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())},Kt=xi.prototype,Kt.Af=function(a){kn.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 kn)x.Bd(y);else if(x instanceof vn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Kt.gk=function(a,y,x,b,E,z,nt){if(a===qr&&y==="elements"){if(E instanceof bs)this.$a===null?this.$a=E:this.$a!==E&&we("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof dn){var rt=E.Nl(function(st){return st instanceof bs});rt instanceof bs&&(this.$a===null?this.$a=rt:this.$a!==rt&&we("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===fo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof dn&&this.$a.rg(b)&&(this.$a=null));kn.prototype.gk.call(this,a,y,x,b,E,z,nt)},Kt.Xl=function(a,y){kn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==dn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof dn&&(a=a.Pb()),this.tb===null&&(this.tb=new en),a.mi(this.tb),a instanceof Li&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Kt.eh=function(a,y,x,b){this.nf=this.$a,kn.prototype.eh.call(this,a,y,x,b)},Kt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof vn||y.Va()}),kn.prototype.Va.call(this)},Kt.si=function(){if(!kn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof kn){if(y.isVisible()&&Ps(y))return!1}else if(y instanceof vn&&y.isVisible()&&Ps(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof xi&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof vn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof xi&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof vn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Kt.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)}kn.prototype.Lj.call(this)},xi.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=$e(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},xi.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=$e(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},xi.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))},Kt=xi.prototype,Kt.Bd=function(a){var y=(this.U&65536)!==0;if(kn.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(ia(x.fromPort),ia(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(ia(x.fromPort),ia(x.toPort),x.bb()))}}},Kt.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 hn,b=y.iterator;b.next();){var E=b.value;if(E instanceof kn)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Kt.iz=function(){var a=this.Rj();a.add(this);for(var y=new hn,x=a.iterator;x.next();){var b=x.value;if(b instanceof kn)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Kt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new hn;return a(this,y),y},Kt.Rj=function(){var a=new hn;return Uh(a,this,!0,0,!0),a.remove(this),a},Kt.Zb=function(a){kn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},xi.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof xi&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,b)),z instanceof kn)z.Bd(y),x.Aj(z,b);else if(z instanceof vn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}xi.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();$1(this,y,a,this),a.Ue=!1}};function $1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof xi&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,$1(z,y,x,b)),z instanceof kn)z.Bd(y),x.Cj(z,b);else if(z instanceof vn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}xi.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=xe.alloc(),kn.prototype.move.call(this,a,y),a=new hn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof vn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof kn&&E.isLinkLabel)){var nt=E.position,rt=E.location;nt.w()?(z.x=nt.x+b,z.y=nt.y+x,E.position=z):rt.w()&&(z.x=rt.x+b,z.y=rt.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof vn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(nt=E.position,z.x=nt.x+b,z.y=nt.y+x,z.w()?E.move(z):E.bb(),Zv(E)&&E.bb());xe.free(z)}},Ke.Object.defineProperties(xi.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&&we("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&&(oh(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&&(oh(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&&(oh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(oh(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)}}}),xi.prototype.expandSubGraph=xi.prototype.expandSubGraph,xi.prototype.collapseSubGraph=xi.prototype.collapseSubGraph,xi.prototype.findSubGraphParts=xi.prototype.Rj,xi.prototype.findContainingGroupChain=xi.prototype.hz,xi.prototype.findExternalNodesConnected=xi.prototype.iz,xi.prototype.findExternalLinksConnected=xi.prototype.Lu,xi.prototype.ensureBounds=xi.prototype.Va,xi.className="Group";function bs(a){Be.call(this),this.yb=ha,this.ko=new en(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Je(bs,Be),bs.prototype.cloneProtected=function(a){Be.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},bs.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Wo(0,0,y.width,y.height,a.x,a.y)},bs.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof xi||a instanceof ir)||we("Placeholder is not inside a Group or Adornment."),a instanceof xi){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Uo(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=xe.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),xe.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var nt=0;z instanceof Li&&(nt=z.strokeWidth);var rt=z.Df(),st=z.naturalBounds,ht=(st.width+nt)*rt;nt=(st.height+nt)*rt,a.type!==dn.Link&&(rt=z.ga(a.category==="Selection"?ar:a.locationSpot,xe.alloc()),a.location=rt,xe.free(rt)),isNaN(ht)||isNaN(nt)?(a=z.ga(ar,xe.alloc()),ht=en.allocAt(a.x,a.y,0,0),ht.Ye(z.ga(oo,a)),ht.Ye(z.ga(yr,a)),ht.Ye(z.ga(os,a)),Uo(y,ht.width+b||0,ht.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),xe.free(a),en.free(ht)):(Uo(y,ht+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},bs.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},bs.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof xi&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=en.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof xi&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),en.free(x),b&&y instanceof xi&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},bs.prototype.computeMemberBounds=function(a){if(!(this.part instanceof xi))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,nt=y.memberParts;nt.next();){var rt=nt.value;if(rt.isVisible()){if(rt instanceof vn&&(!y.computesBoundsIncludingLinks||ma(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<b&&(b=rt.top),rt.right>E&&(E=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Ke.Object.defineProperties(bs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),bs.className="Placeholder";function vn(a){$n.call(this,dn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=As,this.Om=0,this.Qm=As,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new cn().freeze(),this.Tg=this.Mg=null,this.ml=new en,this.ua=new mn,this.u=this.o=this.Sf=this.Wf=null,this.su=new xe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Je(vn,$n),vn.prototype.cloneProtected=function(a){$n.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())},Kt=vn.prototype,Kt.Af=function(a){$n.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&&ia(y),a=a.toPort,a!==null&&ia(a)},Kt.qb=function(a){a.classType===vn?(a.value&2)===2?this.routing=a:a===ya||a===ah||a===Nf?this.curve=a:a===qg||a===Xm||a===Jm?this.adjusting=a:a!==Qv&&a!==As&&we("Unknown Link enum value for a Link property: "+a):$n.prototype.qb.call(this,a)},Kt.Xc=function(){this.ba===null&&(this.ba=new jg)},Kt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ps(a)||Wh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ps(a)||Wh(a)))},Kt.zv=function(){return!1},Kt.Av=function(){},Kt.Zc=function(){return!1},vn.prototype.computeAngle=function(a,y,x){return vn.computeAngle(y,x)},vn.computeAngle=function(a,y){switch(a){default:case As:a=0;break;case $g:a=y;break;case tp:a=y+90;break;case ep:a=y-90;break;case qv:a=y+180;break;case Qm:a=Ie.bp(y),90<a&&270>a&&(a-=180);break;case np:a=Ie.bp(y+90),90<a&&270>a&&(a-=180);break;case ip:a=Ie.bp(y-90),90<a&&270>a&&(a-=180);break;case qm:if(a=Ie.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ie.bp(a)};function Mf(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,x,y),nt!==null&&(nt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Kt=vn.prototype,Kt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&$n.prototype.oh.call(this)},Kt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Kt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function tS(a,y){a.wd===null&&(a.wd=new hn),a.wd.add(y),a.v()}Kt.Vo=function(a){if($n.prototype.Vo.call(this,a),Rc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Gm(x,this,b)}Jg(this)}},Kt.Wo=function(a){if($n.prototype.Wo.call(this,a),Rc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Qg(this)}},Kt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},vn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},vn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?$n.prototype.move.call(this,a,!1):(a=xe.allocAt(x.x+b,x.y+E),$n.prototype.move.call(this,a,!1),xe.free(a)),sh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},vn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},vn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},vn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(xr),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ya))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()===ya){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Ie.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Ie.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=nt[z],!(b+E>x/2));)b+=E,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-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},vn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ya))return this.ua.wx(.5);if(this.computeCurve()===ya&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Ie.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Kt=vn.prototype,Kt.i=function(a){return this.Nb.s[a]},Kt.dd=function(a,y){this.Nb.cd(a,y)},Kt.L=function(a,y,x){this.Nb.cd(a,new xe(y,x))},Kt.Kz=function(a,y){this.Nb.Gb(a,y)},Kt.m=function(a,y,x){this.Nb.Gb(a,new xe(y,x))},Kt.ne=function(a){this.Nb.add(a)},Kt.yf=function(a,y){this.Nb.add(new xe(a,y))},Kt.pv=function(a){this.Nb.mb(a)},Kt.Fj=function(){this.Nb.clear()};function sh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new cn,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new xe(nt.x+y,nt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),ws(a)),b?Hm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&tf(nt.animationManager,a,E),a.g("points",z,E)}}Kt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Kt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,nt=0;nt<z;nt++){var rt=E[nt];x=Math.min(rt.x,x),b=Math.min(rt.y,b)}rt=nt=1/0;for(var st=y.s,ht=st.length,dt=0;dt<ht;dt++){var vt=st[dt];nt=Math.min(vt.x,nt),rt=Math.min(vt.y,rt),vt.freeze()}if(y.freeze(),ht===z){for(z=0;z<ht;z++)if(dt=E[z],vt=st[z],dt.x-x!==vt.x-nt||dt.y-b!==vt.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&tf(x.animationManager,this,y),Hm(this),this.g("points",a,y)}},Kt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Hm(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),Zm(a,!1))}Kt.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())}},Kt.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},vn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Ad||(Ad=new kn,Ad.desiredSize=Ei,Ad.Va()),this.defaultFromPoint&&(Ad.location=this.defaultFromPoint,Ad.Va(),y=a=Ad)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(Ld||(Ld=new kn,Ld.desiredSize=Ei,Ld.Va()),this.defaultToPoint&&(Ld.location=this.defaultToPoint,Ld.Va(),E=b=Ld)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var rt=Tf(nt),st=Tf(x),ht=y===E&&y!==null,dt=this.isOrthogonal,vt=this.curve===ya;this.Wf=ht&&!dt?vt=!0:!1;var Ft=this.computeAdjusting()===As||ht;if(!dt&&!ht&&rt&&st){if(rt=!1,!Ft&&3<=z&&(Ft=this.getLinkPoint(a,y,nt,!0,!1,b,E),st=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=this.adjustPoints(0,Ft,z-1,st))&&(Ft=this.getLinkPoint(a,y,nt,!0,!1,b,E),st=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ft,z-1,st)),!rt)if(this.Fj(),vt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),Ft=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=Ft.x-z.x,st=Ft.y-z.y,ht=this.computeCurviness(),vt=dt=0;var Wt=z.x+rt/3,Ht=z.y+st/3,ne=Wt,ve=Ht;Ie.B(st,0)?ve=0<rt?ve-ht:ve+ht:(dt=-rt/st,vt=Math.sqrt(ht*ht/(dt*dt+1)),0>ht&&(vt=-vt),ne=(0>st?-1:1)*vt+Wt,ve=dt*(ne-Wt)+Ht),Wt=z.x+2*rt/3,Ht=z.y+2*st/3;var fe=Wt,Ce=Ht;Ie.B(st,0)?Ce=0<rt?Ce-ht:Ce+ht:(fe=(0>st?-1:1)*vt+Wt,Ce=dt*(fe-Wt)+Ht),this.Fj(),this.ne(z),this.yf(ne,ve),this.yf(fe,Ce),this.ne(Ft),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Ft=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,Ft),E=this.getLinkPoint(z,Ft,x,!1,!1,a,y),this.hasCurviness()?(Ft=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+Ft/2,y=b.y+x/2,z=a,rt=y,Ie.B(x,0)?rt=0<Ft?rt-nt:rt+nt:(Ft=-Ft/x,z=Math.sqrt(nt*nt/(Ft*Ft+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,rt=Ft*(z-a)+y),this.ne(b),this.yf(z,rt),this.ne(E)):(this.ne(b),this.ne(E),rt=en.alloc(),y.mi(rt),st=rt.ca(E),Ft.mi(rt),ht=rt.ca(b),(st||ht)&&(nt=y.ga(Vm(nt),new xe),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=Ft.ga(Vm(x),new xe),this.dd(1,this.getLinkPointFromPoint(z,Ft,x,b,!1,x))),en.free(rt))}else{vt=this.isAvoiding,Ft&&(dt&&vt||ht)&&this.Fj();var ke=ht?this.computeCurviness():0;vt=this.getLinkPoint(a,y,nt,!0,dt,b,E),Wt=ne=Ht=0,(dt||!rt||ht)&&(ve=this.computeEndSegmentLength(a,y,nt,!0),Wt=this.getLinkDirection(a,y,vt,nt,!0,dt,b,E),ht&&(rt||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Wt-=dt?90:30,0>ke&&(Wt-=180)),0>Wt?Wt+=360:360<=Wt&&(Wt-=360),ht&&(ve+=Math.abs(ke)*(dt?1:2)),Wt===0?Ht=ve:Wt===90?ne=ve:Wt===180?Ht=-ve:Wt===270?ne=-ve:(Ht=ve*Math.cos(Wt*Math.PI/180),ne=ve*Math.sin(Wt*Math.PI/180)),nt.Mc()&&ht&&(ve=y.ga(Oi,xe.alloc()),fe=xe.allocAt(ve.x+1e3*Ht,ve.y+1e3*ne),this.getLinkPointFromPoint(a,y,ve,fe,!0,vt),xe.free(ve),xe.free(fe))),ve=this.getLinkPoint(b,E,x,!1,dt,a,y);var Me=Ce=fe=0;if(dt||!st||ht){var De=this.computeEndSegmentLength(b,E,x,!1);Me=this.getLinkDirection(b,E,ve,x,!1,dt,a,y),ht&&(st||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Me+=dt?0:30,0>ke&&(Me+=180)),0>Me?Me+=360:360<=Me&&(Me-=360),ht&&(De+=Math.abs(ke)*(dt?1:2)),Me===0?fe=De:Me===90?Ce=De:Me===180?fe=-De:Me===270?Ce=-De:(fe=De*Math.cos(Me*Math.PI/180),Ce=De*Math.sin(Me*Math.PI/180)),x.Mc()&&ht&&(x=E.ga(Oi,xe.alloc()),nt=xe.allocAt(x.x+1e3*fe,x.y+1e3*Ce),this.getLinkPointFromPoint(b,E,x,nt,!1,ve),xe.free(x),xe.free(nt))}x=vt,(dt||!rt||ht)&&(x=new xe(vt.x+Ht,vt.y+ne)),nt=ve,(dt||!st||ht)&&(nt=new xe(ve.x+fe,ve.y+Ce)),!Ft&&!dt&&rt&&3<z&&this.adjustPoints(0,vt,z-2,nt)?this.dd(z-1,ve):!Ft&&!dt&&st&&3<z&&this.adjustPoints(1,x,z-1,ve)?this.dd(0,vt):!Ft&&(dt?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,vt),this.dd(z-1,ve)):(this.Fj(),this.ne(vt),(dt||!rt||ht)&&this.ne(x),dt&&this.addOrthoPoints(x,Wt,nt,Me,a,b),(dt||!st||ht)&&this.ne(nt),this.ne(ve))}return!0};function Yv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}vn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new xe),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var nt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*E;var rt=-a.m12*E,st=-a.m21*E,ht=a.m11*E,dt=E*(a.m21*a.dy-a.m22*a.dx),vt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*st+dt,b=b.x*rt+b.y*ht+vt,nt=x.x*nt+x.y*st+dt,x=x.x*rt+x.y*ht+vt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function Km(a,y){var x=y.Zn;return x===null&&(x=new kd,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}vn.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,rt){if(rt===void 0&&(rt=new xe),x.sb()&&!Tf(x))return y.ga(x,rt),rt;if(x.$c()){var st=Km(this,y);if(st!==null){if(rt.assign(st.Zo),E&&this.routing===nS){var ht=Km(this,nt);if(ht!==null&&st.Gl<ht.Gl){st=xe.alloc(),ht=xe.alloc();var dt=new en(y.ga(ar,st),y.ga(oo,ht)),vt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,vt,!b,E,a,y,ht),(x.Hf(Ca)||x.Hf(Ds))&&a.y>=dt.y&&a.y<=dt.y+dt.height?rt.y=a.y:(x.Hf(Js)||x.Hf(ba))&&a.x>=dt.x&&a.x<=dt.x+dt.width&&(rt.x=a.x),xe.free(st),xe.free(ht)}}return rt}}return x=y.ga(Vm(x),xe.alloc()),this.pointsCount>(E?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),E&&(nt=Yv(x,nt.copy()))):(st=this.computeSpot(!b,nt),z=xe.alloc(),nt=nt.ga(Vm(st),z),E&&(nt=Yv(x,nt)),xe.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,rt),xe.free(x),rt},vn.prototype.getLinkDirection=function(a,y,x,b,E,z,nt,rt){t:if(b.sb())var st=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(st=Km(this,y),st!==null))switch(st.Nc){case 1:st=270;break t;case 2:st=180;break t;default:case 4:st=0;break t;case 8:st=90;break t}st=y.ga(Oi,xe.alloc()),this.pointsCount>(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?Yv(st,rt.copy()):x):(x=xe.alloc(),rt=rt.ga(Oi,x),xe.free(x)),x=Math.abs(rt.x-st.x)>Math.abs(rt.y-st.y)?rt.x>=st.x?0:180:rt.y>=st.y?90:270,xe.free(st),st=x}return b.Mc()&&nt.Td(a)&&(st+=180,360<=st&&(st-=360)),Tf(b)||(a=y.li(),a===0)||(45<=a&&135>a?st+=90:135<=a&&225>a?st+=180:225<=a&&315>a&&(st+=270),360<=st&&(st-=360)),st},vn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Km(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},vn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Oi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Fo?Ki:y)):(a=y||this.toPort,a===null?a=Oi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Fo?Ki:y)),a};function Tf(a){return a===Ki||a.x===.5&&a.y===.5}function Vm(a){return a.x===.5&&a.y===.5?a:Oi}vn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==As&&4<this.pointsCount?this.computeMidPoint(new xe):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(Oi))},vn.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},vn.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=pi.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,E),z===void 0&&pi.free(nt),!0;if(this.Yc(a,nt)){var rt=!1;if(!this.isAtomic)for(var st=this.O.s,ht=st.length;ht--;){var dt=st[ht];if(dt.visible||dt===this.locationObject){var vt=dt.actualBounds,Ft=this.naturalBounds;if(!(vt.x>Ft.width||vt.y>Ft.height||0>vt.x+vt.width||0>vt.y+vt.height)){if(vt=pi.alloc(),vt.set(nt),dt instanceof dn)rt=dt.Cf(a,y,x,b,E,vt);else if(this.path===dt){if(dt instanceof Li)if(rt=a,Ft=b,dt.pickable===!1)rt=!1;else if(vt.multiply(dt.transform),Ft)t:{var Wt=rt,Ht=vt;if(dt.fh(Wt,Ht))rt=!0;else{if(Ht===void 0&&(Ht=dt.transform,Wt.Re(dt.actualBounds))){rt=!0;break t}rt=Wt.left,Ft=Wt.right;var ne=Wt.top;Wt=Wt.bottom;var ve=xe.alloc(),fe=xe.alloc(),Ce=xe.alloc(),ke=pi.alloc();ke.set(Ht),ke.bv(dt.transform),ke.Vj(),fe.x=Ft,fe.y=ne,fe.transform(ke),ve.x=rt,ve.y=ne,ve.transform(ke),Ht=!1,Oc(dt,ve,fe,Ce)?Ht=!0:(ve.x=Ft,ve.y=Wt,ve.transform(ke),Oc(dt,ve,fe,Ce)?Ht=!0:(fe.x=rt,fe.y=Wt,fe.transform(ke),Oc(dt,ve,fe,Ce)?Ht=!0:(ve.x=rt,ve.y=ne,ve.transform(ke),Oc(dt,ve,fe,Ce)&&(Ht=!0)))),pi.free(ke),xe.free(ve),xe.free(fe),xe.free(Ce),rt=Ht}}else rt=dt.fh(rt,vt)}else rt=Po(dt,a,b,vt);rt&&(Ft=dt,y!==null&&(Ft=y(dt)),Ft&&(x===null||x(Ft))&&E.add(Ft)),pi.free(vt)}}}return z===void 0&&pi.free(nt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&pi.free(nt),!1},vn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ya:this.curve},vn.prototype.computeCorner=function(){if(this.curve===ya)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},vn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},vn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=rS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,nt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===$g||b===Qm||b===qv?a=Math.max(a,E):b===ep||b===ip||b===tp||b===np?a=Math.max(a,nt):(y=y.ga(Oi).ab(x.ga(Oi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===ya&&(a*=1.333)}}return a},vn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===As&&x.bb()}},vn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=iS;var y=this.Sf;if(y!==null){for(var x=Fn(),b=0,E=y.links,z=0;z<E.length;z++){var nt=E[z].computeSpacing();x.push(nt),b+=nt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),jn(x)}}return a},vn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},vn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},vn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===Xm)return!1;E===Jm&&(E=qg)}switch(E){case Xm:var z=this.i(a),nt=this.i(x);if(!z.Xa(y)||!nt.Xa(b)){E=z.x,z=z.y;var rt=nt.x-E,st=nt.y-z,ht=Math.sqrt(rt*rt+st*st);if(!Ie.$(ht,0)){if(Ie.$(rt,0))var dt=0>st?-Math.PI/2:Math.PI/2;else dt=Math.atan(st/Math.abs(rt)),0>rt&&(dt=Math.PI-dt);nt=y.x;var vt=y.y;rt=b.x-nt;var Ft=b.y-vt;for(st=Math.sqrt(rt*rt+Ft*Ft),Ie.$(rt,0)?Ft=0>Ft?-Math.PI/2:Math.PI/2:(Ft=Math.atan(Ft/Math.abs(rt)),0>rt&&(Ft=Math.PI-Ft)),ht=st/ht,dt=Ft-dt,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-E,st=y.y-z,y=Math.sqrt(rt*rt+st*st),Ie.$(y,0)||(Ie.$(rt,0)?st=0>st?-Math.PI/2:Math.PI/2:(st=Math.atan(st/Math.abs(rt)),0>rt&&(st=Math.PI-st)),rt=st+dt,y*=ht,this.L(a,nt+y*Math.cos(rt),vt+y*Math.sin(rt)));this.dd(x,b)}}return!0;case Jm:if(z=this.i(a),vt=this.i(x),!z.Xa(y)||!vt.Xa(b)){E=z.x,z=z.y,nt=vt.x,vt=vt.y,ht=(nt-E)*(nt-E)+(vt-z)*(vt-z),rt=y.x,dt=y.y,st=b.x,Ft=b.y;var Wt=1;if(st-rt!==0){var Ht=(Ft-dt)/(st-rt);Wt=Math.sqrt(1+1/(Ht*Ht))}else Ht=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ne=y.x,ve=y.y,fe=.5;ht!==0&&(fe=((E-ne)*(E-nt)+(z-ve)*(z-vt))/ht);var Ce=E+fe*(nt-E),ke=z+fe*(vt-z);y=Math.sqrt((ne-Ce)*(ne-Ce)+(ve-ke)*(ve-ke)),ve<Ht*(ne-Ce)+ke&&(y=-y),0<Ht&&(y=-y),ne=rt+fe*(st-rt),fe=dt+fe*(Ft-dt),Ht!==0?(y=ne+y/Wt,this.L(a,y,fe-(y-ne)/Ht)):this.L(a,ne,fe+y)}this.dd(x,b)}return!0;case qg:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),rt=z.x,dt=z.y,vt=rt,ht=dt,Ie.B(E.y,z.y)?Ie.B(z.x,nt.x)?dt=y.y:Ie.B(z.y,nt.y)&&(rt=y.x):Ie.B(E.x,z.x)&&(Ie.B(z.y,nt.y)?rt=y.x:Ie.B(z.x,nt.x)&&(dt=y.y)),this.L(a+1,rt,dt),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),rt=z.x,dt=z.y,st=rt,Ft=dt,Ie.B(E.y,z.y)?Ie.B(z.x,nt.x)?dt=b.y:Ie.B(z.y,nt.y)&&(rt=b.x):Ie.B(E.x,z.x)&&(Ie.B(z.y,nt.y)?rt=b.x:Ie.B(z.x,nt.x)&&(dt=b.y)),this.L(x-1,rt,dt),Zv(this))){this.L(a+1,vt,ht),this.L(x-1,st,Ft),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},vn.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var rt=E.actualBounds.copy(),st=z.actualBounds.copy();if(rt.w()&&st.w()){rt.Bc(rp,rp),st.Bc(rp,rp),rt.Ye(a),st.Ye(x);var ht=xe.alloc(),dt=xe.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&st.right>a.x||b===90&&x.y>a.y&&st.right>a.x?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===180?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x<st.left?this.computeMidOrthoPosition(a.x,a.y,st.left,x.y,!1):a.x<st.right&&(b===270&&a.y<st.top||b===90&&a.y>st.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):st.right,dt.x=ht.x,dt.y=x.y):b===0&&a.x<st.left&&a.y>st.top&&a.y<st.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,st.top):Math.max(x.y,st.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===180&&(st.ca(a)||rt.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ht.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,st.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,st.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>rt.top&&ht.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=st.right&&a.x>=x.x?(b===90||b===270)&&(ht.h(Math.max((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?rt.top:Math.min(rt.top,st.top)):Math.max(x.y,b===0?rt.bottom:Math.max(rt.bottom,st.bottom)),dt.x=x.x,dt.y=ht.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&st.left<a.x||b===90&&x.y>a.y&&st.left<a.x?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===0?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x>st.right?this.computeMidOrthoPosition(a.x,a.y,st.right,x.y,!1):a.x>st.left&&(b===270&&a.y<st.top||b===90&&a.y>st.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):st.left,dt.x=ht.x,dt.y=x.y):b===180&&a.x>st.right&&a.y>st.top&&a.y<st.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,st.top):Math.max(x.y,st.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===0&&(st.ca(a)||rt.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ht.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,st.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,st.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>rt.top&&ht.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=st.left&&a.x<=x.x?(b===90||b===270)&&(ht.h(Math.min((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?rt.top:Math.min(rt.top,st.top)):Math.max(x.y,b===180?rt.bottom:Math.max(rt.bottom,st.bottom)),dt.x=x.x,dt.y=ht.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&st.bottom>a.y||b===0&&x.x>a.x&&st.bottom>a.y?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===270?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ht.y=a.y<st.top?this.computeMidOrthoPosition(a.x,a.y,x.x,st.top,!0):a.y<st.bottom&&(b===180&&a.x<st.left||b===0&&a.x>st.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):st.bottom,dt.x=x.x,dt.y=ht.y):b===90&&a.y<st.top&&a.x>st.left&&a.x<st.right&&(ht.x=a.x<x.x?Math.min(x.x,st.left):Math.max(x.x,st.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===270&&(st.ca(a)||rt.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ht.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,st.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ht.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,st.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>rt.left&&ht.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=st.bottom&&a.y>=x.y?(b===0||b===180)&&(ht.h(a.x,Math.max((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?rt.left:Math.min(rt.left,st.left)):Math.max(x.x,b===90?rt.right:Math.max(rt.right,st.right)),dt.x=ht.x,dt.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&st.top<a.y||b===0&&x.x>a.x&&st.top<a.y?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===90?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ht.y=a.y>st.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,st.bottom,!0):a.y>st.top&&(b===180&&a.x<st.left||b===0&&a.x>st.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):st.top,dt.x=x.x,dt.y=ht.y):b===270&&a.y>st.bottom&&a.x>st.left&&a.x<st.right&&(ht.x=a.x<x.x?Math.min(x.x,st.left):Math.max(x.x,st.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===90&&(st.ca(a)||rt.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ht.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,st.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ht.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,st.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>rt.left&&ht.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=st.top&&a.y<=x.y?(b===0||b===180)&&(ht.h(a.x,Math.min((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?rt.left:Math.min(rt.left,st.left)):Math.max(x.x,b===270?rt.right:Math.max(rt.right,st.right)),dt.x=ht.x,dt.y=x.y)));var vt=x;if(this.isAvoiding){var Ft=this.diagram;if(Ft===null||E===z||this.layer.isTemporary||!hf(Ft)||rt.ca(vt)&&!z.Td(E)||st.ca(a)&&!E.Td(z))y=!1;else{var Wt=cf(Ft,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Wt.Yj(Math.min(a.x,ht.x),Math.min(a.y,ht.y),Math.abs(a.x-ht.x),Math.abs(a.y-ht.y))&&Wt.Yj(Math.min(ht.x,dt.x),Math.min(ht.y,dt.y),Math.abs(ht.x-dt.x),Math.abs(ht.y-dt.y))&&Wt.Yj(Math.min(dt.x,vt.x),Math.min(dt.y,vt.y),Math.abs(dt.x-vt.x),Math.abs(dt.y-vt.y)))y=!1;else{E=a,z=vt;var Ht=x=null;if(Ft.isVirtualized){Ft=Wt.bounds.copy(),Ft.Bc(-Wt.Ho,-Wt.Go);var ne=xe.alloc();Ff(Wt,a.x,a.y)||(Ie.Ff(Ft.x,Ft.y,Ft.x+Ft.width,Ft.y+Ft.height,a.x,a.y,ht.x,ht.y,ne)?(x=a=ne.copy(),y=ne.ab(ht)):Ie.Ff(Ft.x,Ft.y,Ft.x+Ft.width,Ft.y+Ft.height,ht.x,ht.y,dt.x,dt.y,ne)?(x=a=ne.copy(),y=ne.ab(dt)):Ie.Ff(Ft.x,Ft.y,Ft.x+Ft.width,Ft.y+Ft.height,dt.x,dt.y,vt.x,vt.y,ne)&&(x=a=ne.copy(),y=ne.ab(vt))),Ff(Wt,vt.x,vt.y)||(Ie.Ff(Ft.x,Ft.y,Ft.x+Ft.width,Ft.y+Ft.height,vt.x,vt.y,dt.x,dt.y,ne)?(Ht=vt=ne.copy(),b=dt.ab(ne)):Ie.Ff(Ft.x,Ft.y,Ft.x+Ft.width,Ft.y+Ft.height,dt.x,dt.y,ht.x,ht.y,ne)?(Ht=vt=ne.copy(),b=ht.ab(ne)):Ie.Ff(Ft.x,Ft.y,Ft.x+Ft.width,Ft.y+Ft.height,ht.x,ht.y,a.x,a.y,ne)&&(Ht=vt=ne.copy(),b=a.ab(ne))),xe.free(ne)}rt=rt.copy().ed(st),rt.Bc(Wt.Ho*Wt.Os,Wt.Go*Wt.Os),sS(Wt,a,y,vt,b,rt,!0),st=tu(Wt,vt.x,vt.y),!Wt.abort&&st>=Df&&(oS(Wt),rt.Bc(Wt.Ho*Wt.Hx,Wt.Go*Wt.Ix),sS(Wt,a,y,vt,b,rt,!1),st=tu(Wt,vt.x,vt.y)),!Wt.abort&&st<Df&&tu(Wt,vt.x,vt.y)!==lh?(Xv(this,Wt,vt.x,vt.y,b,!0,nt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=vt.y):(rt.x=vt.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(nt=this.i(3),y===0||y===180?Ie.B(rt.x,nt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,nt.y)):Ie.B(rt.y,nt.y)?(Math.abs(a.y-rt.y)<=Wt.Go/2&&(this.L(2,rt.x,a.y),this.L(3,nt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(Ie.B(rt.y,nt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,nt.x,rt)):Ie.B(rt.x,nt.x)?(Math.abs(a.x-rt.x)<=Wt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,nt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Ht!==null&&(b===0||b===180?this.yf(z.x,Ht.y):this.yf(Ht.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ht.copy()),this.ne(dt.copy())),xe.free(ht),xe.free(dt)}},vn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Zv(a){if(a.diagram===null||!a.isAvoiding||!hf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=cf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Xv(a,y,x,b,E,z,nt){var rt=y.Ho,st=y.Go,ht=tu(y,x,b),dt=x,vt=b;for(E===0?dt+=rt:E===90?vt+=st:E===180?dt-=rt:vt-=st,E!==nt&&ht>jc&&tu(y,dt,vt)!==ht-1&&(tu(y,x-rt,b)===ht-1?(E=180,dt=x-rt,vt=b):tu(y,x+rt,b)===ht-1?(E=0,dt=x+rt,vt=b):tu(y,x,b-st)===ht-1?(E=270,dt=x,vt=b-st):tu(y,x,b+st)===ht-1&&(E=90,dt=x,vt=b+st));ht>jc&&tu(y,dt,vt)===ht-1;)x=dt,b=vt,E===0?dt+=rt:E===90?vt+=st:E===180?dt-=rt:vt-=st,--ht;z?ht>jc&&(E===180||E===0?x=Math.floor(x/rt)*rt+rt/2:(E===90||E===270)&&(b=Math.floor(b/st)*st+st/2)):(x=Math.floor(x/rt)*rt+rt/2,b=Math.floor(b/st)*st+st/2),ht>jc&&(z=E,nt=x,dt=b,E===0?(z=90,dt+=st):E===90?(z=180,nt-=rt):E===180?(z=270,dt-=st):E===270&&(z=0,nt+=rt),tu(y,nt,dt)===ht-1?Xv(a,y,nt,dt,z,!1,z):(nt=x,dt=b,E===0?(z=270,dt-=st):E===90?(z=0,nt+=rt):E===180?(z=90,dt+=st):E===270&&(z=180,nt-=rt),tu(y,nt,dt)===ht-1&&Xv(a,y,nt,dt,z,!1,z))),a.yf(x,b)}vn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Ji(y,a,x.x,x.y,b.x,b.y),z=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var rt=Ji(y,a,b.x,b.y,x.x,x.y);b=x,rt<E&&(z=nt,E=rt)}return z},vn.prototype.qc=function(){this.lk=!1,this.v()},vn.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof Li&&(E.ua=this.ua)}}},vn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Rc(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===ya&&3<=y&&!Ie.$(this.smoothness,0))if(y===3){var rt=this.i(1);b=Math.min(E.x,rt.x);var st=Math.min(E.y,rt.y);rt=this.i(2),b=Math.min(b,rt.x),st=Math.min(st,rt.y)}else{if(this.isOrthogonal)for(st=0;st<y;st++)rt=b[st],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),st=this.i(b),z.x=Math.min(st.x,z.x),z.y=Math.min(st.y,z.y);b=z.x,st=z.y}else{for(st=0;st<y;st++)rt=b[st],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,st=z.y}if(b-=this.su.x,st-=this.su.y,E.x-=b,E.y-=st,y!==2||Rc(this)){if(a.type=mn.o,rt=N1(a),this.computeShortLength(!0)!==0&&(E=Cd(this,E,!0,z)),Ef(rt,E.x,E.y,!1),nt===ya&&3<=y&&!Ie.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-st,E=this.i(2).copy(),E.x-=b,E.y-=st,this.computeShortLength(!1)!==0&&(E=Cd(this,E,!1,z)),ih(rt,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=xe.allocAt(b,st),x=xe.alloc(),x.assign(this.i(1)),z=xe.allocAt(b,st),E=xe.allocAt(b,st),nt=this.i(0);for(var ht,dt=this.smoothness/3,vt=1;vt<this.pointsCount-1;vt++){ht=this.i(vt);var Ft=nt,Wt=ht,Ht=this.i(Jv(this,ht,vt,!1));if((!Ie.$(Ft.x,Wt.x)||!Ie.$(Wt.x,Ht.x))&&(!Ie.$(Ft.y,Wt.y)||!Ie.$(Wt.y,Ht.y))){var ne=dt;isNaN(ne)&&(ne=this.smoothness/3);var ve=Ft.x;Ft=Ft.y;var fe=Wt.x;Wt=Wt.y;var Ce=Ht.x;Ht=Ht.y;var ke=ne*Ym(ve,Ft,fe,Wt);ne*=Ym(fe,Wt,Ce,Ht),Ie.$(Ft,Wt)&&Ie.$(fe,Ce)&&(fe>ve?Ht>Wt?(z.x=fe-ke,z.y=Wt-ke,E.x=fe+ne,E.y=Wt+ne):(z.x=fe-ke,z.y=Wt+ke,E.x=fe+ne,E.y=Wt-ne):Ht>Wt?(z.x=fe+ke,z.y=Wt-ke,E.x=fe-ne,E.y=Wt+ne):(z.x=fe+ke,z.y=Wt+ke,E.x=fe-ne,E.y=Wt-ne)),Ie.$(ve,fe)&&Ie.$(Wt,Ht)&&(Wt>Ft?(Ce>fe?(z.x=fe-ke,z.y=Wt-ke,E.x=fe+ne):(z.x=fe+ke,z.y=Wt-ke,E.x=fe-ne),E.y=Wt+ne):(Ce>fe?(z.x=fe-ke,z.y=Wt+ke,E.x=fe+ne):(z.x=fe+ke,z.y=Wt+ke,E.x=fe-ne),E.y=Wt-ne)),(Ie.$(ve,fe)&&Ie.$(fe,Ce)||Ie.$(Ft,Wt)&&Ie.$(Wt,Ht))&&(ve=.5*(ve+Ce),Ft=.5*(Ft+Ht),z.x=ve,z.y=Ft,E.x=ve,E.y=Ft),(vt===1||vt===2&&Ie.$(nt.x,this.i(0).x)&&Ie.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ht.x),x.y=.5*(nt.y+ht.y)),ih(rt,x.x-b,x.y-st,z.x-b,z.y-st,ht.x-b,ht.y-st),y.set(z),x.set(E),nt=ht}}ht=nt.x,nt=nt.y,dt=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(dt=Cd(this,dt.copy(),!1,Gr)),ht=.5*(ht+dt.x),nt=.5*(nt+dt.y),ih(rt,E.x-b,E.y-st,ht-b,nt-st,dt.x-b,dt.y-st),xe.free(y),xe.free(x),xe.free(z),xe.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=Cd(this,nt.copy(),!1,Gr)),ih(rt,z.x-b,z.y-st,E.x-b,E.y-st,nt.x-b,nt.y-st);else{for(z=xe.alloc(),z.assign(this.i(0)),E=xe.alloc(),E.assign(z),nt=this.computeCorner(),vt=1,ht=0;vt<y;){if(vt=Jv(this,z,vt,1<vt),dt=this.i(vt),vt>=y-1){if(!z.D(dt))this.computeShortLength(!1)!==0&&(dt=Cd(this,dt.copy(),!1,Gr)),bd(this,rt,-b,-st,z,dt,x);else if(ht===0)for(vt=1;vt<y;)E.assign(z),dt=this.i(vt++),bd(this,rt,-b,-st,z,dt,x),z.assign(dt);break}if(ht=Jv(this,dt,vt+1,vt<y-3),vt=-b,ve=-st,Ft=dt,fe=this.i(ht),ne=x,Ie.B(z.y,Ft.y)&&Ie.B(Ft.x,fe.x))if(Ht=Math.min(nt,Math.abs(Ft.x-E.x)/2),Ht=ke=Math.min(Ht,Math.abs(fe.y-Ft.y)/2),Ie.B(Ht,0))bd(this,rt,vt,ve,z,Ft,ne),z.assign(Ft);else{var Me=Ft.x,De=Ft.y;Wt=Me,Ce=De,Ft.x>z.x?Me=Ft.x-Ht:Me=Ft.x+Ht,fe.y>Ft.y?Ce=Ft.y+ke:Ce=Ft.y-ke,fe=xe.allocAt(Me,De),bd(this,rt,vt,ve,z,fe,ne),xe.free(fe),Rm(rt,Ft.x+vt,Ft.y+ve,Wt+vt,Ce+ve),z.h(Wt,Ce)}else Ie.B(z.x,Ft.x)&&Ie.B(Ft.y,fe.y)?(Ht=Math.min(nt,Math.abs(Ft.y-E.y)/2),Ht=ke=Math.min(Ht,Math.abs(fe.x-Ft.x)/2),Ie.B(ke,0)?(bd(this,rt,vt,ve,z,Ft,ne),z.assign(Ft)):(Me=Ft.x,De=Ft.y,Wt=Me,Ce=De,Ft.y>z.y?De=Ft.y-Ht:De=Ft.y+Ht,fe.x>Ft.x?Wt=Ft.x+ke:Wt=Ft.x-ke,fe=xe.allocAt(Me,De),bd(this,rt,vt,ve,z,fe,ne),xe.free(fe),Rm(rt,Ft.x+vt,Ft.y+ve,Wt+vt,Ce+ve),z.h(Wt,Ce))):(bd(this,rt,vt,ve,z,Ft,ne),z.assign(Ft));E.assign(dt),vt=ht}xe.free(z)}jm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=st,this.computeShortLength(!0)!==0&&(E=Cd(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=Cd(this,rt,!1,z)),a.type=mn.j,a.startX=E.x,a.startY=E.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Ym(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ie.$(a,0)?y:Ie.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Cd(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=Ym(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=Ym(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Jv(a,y,x,b){for(var E=a.pointsCount,z=y;Ie.$(y.x,z.x)&&Ie.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Ie.$(y.x,z.x)&&!Ie.$(y.y,z.y))return x-1;for(var nt=z;Ie.$(y.x,z.x)&&Ie.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||Ie.$(y.y,z.y)&&Ie.$(z.y,nt.y)&&(!b||(y.x>=z.x?z.x>=nt.x:z.x<=nt.x));){if(x>=E)return E-1;nt=a.i(x++)}return x-2}vn.prototype.computeJumpLength=function(){return 10};function bd(a,y,x,b,E,z,nt){if(!nt&&Rc(a)){nt=a.computeJumpLength();var rt=nt/2,st=[],ht=0;if(a.isVisible()&&(ht=Lx(a,E,z,st)),0<ht){if(Ie.B(E.y,z.y))if(E.x<z.x)for(var dt=0;dt<ht;){var vt=Math.max(E.x,Math.min(st[dt++]-rt,z.x-nt));y.lineTo(vt+x,z.y+b);for(var Ft=vt+x,Wt=Math.min(vt+nt,z.x);dt<ht&&(vt=st[dt],vt<Wt+nt);)dt++,Wt=Math.min(vt+rt,z.x);vt=z.y-nt+b,Wt+=x;var Ht=z.y+b;a.curve===ah?Ef(y,Wt,Ht,!1):ih(y,Ft,vt,Wt,vt,Wt,Ht)}else for(--ht;0<=ht;){for(dt=Math.min(E.x,Math.max(st[ht--]+rt,z.x+nt)),y.lineTo(dt+x,z.y+b),Ft=dt+x,vt=Math.max(dt-nt,z.x);0<=ht&&(dt=st[ht],dt>vt-nt);)ht--,vt=Math.max(dt-rt,z.x);dt=z.y-nt+b,vt+=x,Wt=z.y+b,a.curve===ah?Ef(y,vt,Wt,!1):ih(y,Ft,dt,vt,dt,vt,Wt)}else if(Ie.B(E.x,z.x))if(E.y<z.y)for(dt=0;dt<ht;){for(vt=Math.max(E.y,Math.min(st[dt++]-rt,z.y-nt)),y.lineTo(z.x+x,vt+b),Ft=vt+b,vt=Math.min(vt+nt,z.y);dt<ht&&(Wt=st[dt],Wt<vt+nt);)dt++,vt=Math.min(Wt+rt,z.y);Wt=z.x-nt+x,Ht=z.x+x,vt+=b,a.curve===ah?Ef(y,Ht,vt,!1):ih(y,Wt,Ft,Wt,vt,Ht,vt)}else for(--ht;0<=ht;){for(dt=Math.min(E.y,Math.max(st[ht--]+rt,z.y+nt)),y.lineTo(z.x+x,dt+b),Ft=dt+b,dt=Math.max(dt-nt,z.y);0<=ht&&(vt=st[ht],vt>dt-nt);)ht--,dt=Math.max(vt-rt,z.y);vt=z.x-nt+x,Wt=z.x+x,dt+=b,a.curve===ah?Ef(y,Wt,dt,!1):ih(y,vt,Ft,vt,dt,Wt,dt)}}}y.lineTo(z.x+x,z.y+b)}function Lx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var nt=z.length,rt=0;rt<nt;rt++){var st=z[rt];if(st instanceof vn){if(st===a)return 0<b.length&&b.sort(function(dt,vt){return dt-vt}),b.length;if(st.isVisible()&&Rc(st)){var ht=st.routeBounds;ht.w()&&a.routeBounds.Yc(ht)&&!a.usesSamePort(st)&&(ht=st.path,ht!==null&&ht.Ed()&&kx(y,x,b,st))}}}}}return 0<b.length&&b.sort(function(dt,vt){return dt-vt}),b.length}function kx(a,y,x,b){for(var E=Ie.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),rt=xe.alloc(),st=1;st<z;st++){var ht=b.i(st);if(st<z-1){var dt=b.i(st+1);if(nt.y===ht.y&&ht.y===dt.y){if(ht.x>nt.x&&dt.x>=ht.x||ht.x<nt.x&&dt.x<=ht.x)continue}else if(nt.x===ht.x&&ht.x===dt.x&&(ht.y>nt.y&&dt.y>=ht.y||ht.y<nt.y&&dt.y<=ht.y))continue}t:{dt=a.x;var vt=a.y,Ft=y.x,Wt=y.y,Ht=nt.x;nt=nt.y;var ne=ht.x,ve=ht.y;if(Ie.B(dt,Ft)){if(!Ie.B(vt,Wt)&&Ie.B(nt,ve)&&Math.min(vt,Wt)<nt&&Math.max(vt,Wt)>nt&&Math.min(Ht,ne)<dt&&Math.max(Ht,ne)>dt&&!Ie.B(Ht,ne)){rt.x=dt,rt.y=nt,dt=!0;break t}}else if(Ie.B(vt,Wt)&&Ie.B(Ht,ne)&&Math.min(dt,Ft)<Ht&&Math.max(dt,Ft)>Ht&&Math.min(nt,ve)<vt&&Math.max(nt,ve)>vt&&!Ie.B(nt,ve)){rt.x=Ht,rt.y=vt,dt=!0;break t}rt.x=0,rt.y=0,dt=!1}dt&&(E?x.push(rt.x):x.push(rt.y)),nt=ht}xe.free(rt)}function Rc(a){return a=a.curve,a===Nf||a===ah}function Zm(a,y){(y||Rc(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}vn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var nt=E.length,rt=0;rt<nt;rt++){var st=E[rt];st instanceof vn&&(st===this?z=!0:z&&eS(this,st,a))}}else if(b)for(z=E.Pa.s,E=z.length,nt=0;nt<E;nt++)rt=z[nt],rt instanceof vn&&eS(this,rt,a)}}}}};function eS(a,y,x){if(y!==null&&y.lk&&y.fd&&Rc(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}vn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},vn.prototype.isVisible=function(){if(!$n.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},vn.prototype.Zb=function(a){if($n.prototype.Zb.call(this,a),a&&Zm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},vn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?qg:this.qk};function Jg(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,nt=y.jb.s,rt=nt.length,st=0;st<rt;st++){var ht=nt[st];(ht.ef===y&&ht.ff===b&&ht.uf===x&&ht.vf===E||ht.ef===x&&ht.ff===E&&ht.uf===y&&ht.vf===b)&&(z===null?z=ht:(a===null&&(a=[],a.push(z)),a.push(ht)))}if(a!==null){for(z=_1(y,x,b,E),z===null&&(z=new $m(y,b,x,E),U1(y,z),U1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Qg(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Wn(y.links,a),y.Sl()))}vn.prototype.ph=function(){return!0},Ke.Object.defineProperties(vn.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Um(y,this,x),Qg(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&Gm(a,this,E),Jg(this),this.C(1)),this.g("fromNode",y,a),Mf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&ia(x),Qg(this),this.ff=a;var b=this.fromPort;b!==null&&ia(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),Jg(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&&Um(y,this,x),Qg(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&Gm(a,this,E),Jg(this),this.C(1)),this.g("toNode",y,a),Mf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&ia(x),Qg(this),this.vf=a;var b=this.toPort;b!==null&&ia(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),Jg(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:Fo},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&&ia(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&&An(a,">= 0",vn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Fo},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&&ia(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&&An(a,">= 0",vn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Fi: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&&Xg(this.fromNode),this.toNode!==null&&Xg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Li?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===ya&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Ie.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var nt=this.i(z-2);z+3>=b&&(z=b-1);var rt=this.i(z-1),st=this.i(z);Ie.Dl(E.x,E.y,nt.x,nt.y,rt.x,rt.y,st.x,st.y,.5,a),y=Math.min(st.x,y),x=Math.min(st.y,x),E=st}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),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 xe)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Hm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Ie.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Ie.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new cn,b=0;b<a.length/2;b++)E=new xe(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!tn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new cn,b=0;b<a.length;b++)E=a[b],x.add(new xe(E.x,E.y).freeze())}}else if(a instanceof cn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else we("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Hm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&tf(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||!Tf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Tf(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(),Zm(this,y===ah||y===Nf||a===ah||a===Nf),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(),Zm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),vn.prototype.invalidateOtherJumpOvers=vn.prototype.Xo,vn.prototype.findClosestSegment=vn.prototype.ez,vn.prototype.updateRoute=vn.prototype.vg,vn.prototype.invalidateRoute=vn.prototype.bb,vn.prototype.rollbackRoute=vn.prototype.rv,vn.prototype.commitRoute=vn.prototype.zf,vn.prototype.startRoute=vn.prototype.uh,vn.prototype.clearPoints=vn.prototype.Fj,vn.prototype.removePoint=vn.prototype.pv,vn.prototype.addPointAt=vn.prototype.yf,vn.prototype.addPoint=vn.prototype.ne,vn.prototype.insertPointAt=vn.prototype.m,vn.prototype.insertPoint=vn.prototype.Kz,vn.prototype.setPointAt=vn.prototype.L,vn.prototype.setPoint=vn.prototype.dd,vn.prototype.getPoint=vn.prototype.i,vn.prototype.getOtherPort=vn.prototype.Cz,vn.prototype.getOtherNode=vn.prototype.To;var Ad=null,Ld=null,Qv=new an(vn,"Normal",1),Ex=new an(vn,"Orthogonal",2),Mx=new an(vn,"AvoidsNodes",6),nS=new an(vn,"AvoidsNodesStraight",7),As=new an(vn,"None",0),ya=new an(vn,"Bezier",9),ah=new an(vn,"JumpGap",10),Nf=new an(vn,"JumpOver",11),qg=new an(vn,"End",17),Xm=new an(vn,"Scale",18),Jm=new an(vn,"Stretch",19),$g=new an(vn,"OrientAlong",21),tp=new an(vn,"OrientPlus90",22),ep=new an(vn,"OrientMinus90",23),qv=new an(vn,"OrientOpposite",24),Qm=new an(vn,"OrientUpright",25),np=new an(vn,"OrientPlus90Upright",26),ip=new an(vn,"OrientMinus90Upright",27),qm=new an(vn,"OrientUpright45",28),iS=16,rS=14,rp=8;vn.className="Link",vn.Normal=Qv,vn.Orthogonal=Ex,vn.AvoidsNodes=Mx,vn.AvoidsNodesStraight=nS,vn.None=As,vn.Bezier=ya,vn.JumpGap=ah,vn.JumpOver=Nf,vn.End=qg,vn.Scale=Xm,vn.Stretch=Jm,vn.OrientAlong=$g,vn.OrientPlus90=tp,vn.OrientMinus90=ep,vn.OrientOpposite=qv,vn.OrientUpright=Qm,vn.OrientPlus90Upright=np,vn.OrientMinus90Upright=ip,vn.OrientUpright45=qm,vn.EndSegmentStep=8,vn.CurvinessStart=iS,vn.SpacingMin=rS,vn.OrthoShortCut=rp;function $m(a,y,x,b){di(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}$m.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},$m.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))}},$m.className="LinkBundle";function op(a){di(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}op.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=$v,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Ff(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function tu(a,y,x){return Ff(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):$v}function oS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=jc&&(x[b]=$v)}op.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===lh)return!1}return!0};function eu(a,y,x,b,E,z,nt,rt,st){if(!(y<z||y>nt||x<rt||x>st)){var ht=y|0,dt=x|0,vt=a.ac[ht][dt];if(vt>=jc&&vt<Df)for(E?dt+=b:ht+=b,vt+=1;z<=ht&&ht<=nt&&rt<=dt&&dt<=st&&!(vt>=a.ac[ht][dt]);)a.ac[ht][dt]=vt,vt+=1,E?dt+=b:ht+=b;if(ht=E?dt:ht,E)if(0<b)for(x+=b;x<ht;x+=b)eu(a,y,x,1,!E,z,nt,rt,st),eu(a,y,x,-1,!E,z,nt,rt,st);else for(x+=b;x>ht;x+=b)eu(a,y,x,1,!E,z,nt,rt,st),eu(a,y,x,-1,!E,z,nt,rt,st);else if(0<b)for(y+=b;y<ht;y+=b)eu(a,y,x,1,!E,z,nt,rt,st),eu(a,y,x,-1,!E,z,nt,rt,st);else for(y+=b;y>ht;y+=b)eu(a,y,x,1,!E,z,nt,rt,st),eu(a,y,x,-1,!E,z,nt,rt,st)}}function t0(a,y,x,b,E,z,nt,rt,st){y|=0,x|=0;var ht=lh,dt=jc;for(a.ac[y][x]=dt;ht===lh&&y>z&&y<nt&&x>rt&&x<st;)dt+=1,a.ac[y][x]=dt,E?x+=b:y+=b,ht=a.ac[y][x]}function e0(a,y,x,b,E,z,nt,rt,st){y|=0,x|=0;var ht=lh,dt=Df;for(a.ac[y][x]=dt;ht===lh&&y>z&&y<nt&&x>rt&&x<st;)a.ac[y][x]=dt,E?x+=b:y+=b,ht=a.ac[y][x]}function sS(a,y,x,b,E,z,nt){if(a.ac!==null){a.abort=!1;var rt=y.x,st=y.y;if(Ff(a,rt,st)){rt-=a.Nd,rt/=a.rc,st-=a.Od,st/=a.sc;var ht=b.x,dt=b.y;if(Ff(a,ht,dt))if(ht-=a.Nd,ht/=a.rc,dt-=a.Od,dt/=a.sc,1>=Math.abs(rt-ht)&&1>=Math.abs(st-dt))a.abort=!0;else{var vt=z.x;b=z.y,y=z.x+z.width;var Ft=z.y+z.height;vt-=a.Nd,vt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ft-=a.Od,Ft/=a.sc,z=Math.max(0,Math.min(a.di,vt|0)),y=Math.min(a.di,Math.max(0,y|0)),vt=Math.max(0,Math.min(a.ei,b|0)),Ft=Math.min(a.ei,Math.max(0,Ft|0)),b=a.ac,rt|=0,st|=0,ht|=0,dt|=0;var Wt=x===0||x===90?1:-1;if(x=x===90||x===270,b[rt][st]===lh?(t0(a,rt,st,Wt,x,z,y,vt,Ft),t0(a,rt,st,1,!x,z,y,vt,Ft),t0(a,rt,st,-1,!x,z,y,vt,Ft)):t0(a,rt,st,Wt,x,rt,st,rt,st),b[ht][dt]===lh?(e0(a,ht,dt,E===0||E===90?1:-1,E===90||E===270,z,y,vt,Ft),e0(a,ht,dt,1,!(E===90||E===270),z,y,vt,Ft),e0(a,ht,dt,-1,!(E===90||E===270),z,y,vt,Ft)):e0(a,ht,dt,Wt,x,ht,dt,ht,dt),x=Fn(),nt&&aS(a,ht,dt,E,rt,st,x))for((x[0]!==ht||x[1]!==dt)&&(x.unshift(dt),x.unshift(ht)),(x[x.length-2]!==rt||x[x.length-1]!==st)&&(x.push(rt),x.push(st)),a=jc,E=x[x.length-2],nt=x[x.length-1],b[E][nt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],nt=x[z+3],y=x[z],ht=x[z+1];y>E?E++:y<E?E--:ht>nt?nt++:ht<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ht;);else eu(a,rt,st,1,!1,z,y,vt,Ft),eu(a,rt,st,-1,!1,z,y,vt,Ft),eu(a,rt,st,1,!0,z,y,vt,Ft),eu(a,rt,st,-1,!0,z,y,vt,Ft);jn(x)}}}}function aS(a,y,x,b,E,z,nt){for(var rt=a.ac,st=y,ht=x;;){if(st===E&&ht===z)return!0;var dt=st,vt=ht;if(b===0)if(dt<E)dt++;else break;else if(b===90)if(vt<z)vt++;else break;else if(b===180)if(dt>E)dt--;else break;else if(vt>z)vt--;else break;var Ft=rt[dt][vt];if(Ft===0||Ft===ty)break;st=dt,ht=vt}for(;;){if(dt=b,vt=st,Ft=ht,b===0?Ft<z?(dt=90,Ft++):Ft>z&&(dt=270,Ft--):b===90?vt<E?(dt=0,vt++):vt>E&&(dt=180,vt--):b===180?Ft<z?(dt=90,Ft++):Ft>z&&(dt=270,Ft--):vt<E?(dt=0,vt++):vt>E&&(dt=180,vt--),vt=rt[vt][Ft],dt!==b&&vt!==0&&vt!==ty){if(nt.push(st),nt.push(ht),aS(a,st,ht,dt,E,z,nt))return!0;nt.pop(),nt.pop()}if(rt[st][ht]=ty,b===0){if(st===y)return!1;st--}else if(b===90){if(ht===x)return!1;ht--}else if(b===180){if(st===y)return!1;st++}else{if(ht===x)return!1;ht++}}}Ke.Object.defineProperties(op.prototype,{bounds:{get:function(){return new en(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 lh=0,jc=1,Df=999999,$v=Df+1,ty=Df+2;op.className="PositionArray";function kd(){di(this),this.port=this.node=null,this.pe=[],this.ap=!1}kd.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
`+b.toString())}return y};function Tx(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}kd.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof xi?E:null;if(z===null||z.isSubGraphExpanded)var nt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,nt=b.Lu()}z=a.pe.length=0;var rt=a.port.ga(ar,xe.alloc()),st=a.port.ga(oo,xe.alloc());for(E=en.allocAt(rt.x,rt.y,0,0),E.Ye(st),xe.free(rt),xe.free(st),rt=xe.allocAt(E.x+E.width/2,E.y+E.height/2),st=a.port.li(),nt=nt.iterator;nt.next();){var ht=nt.value;if(ht.isVisible()&&ht.fromPort!==ht.toPort){var dt=ht.fromPort===a.port||ht.fromNode!==null&&ht.fromNode.Td(b),vt=ht.computeSpot(dt,a.port);if(vt.$c()&&(dt=dt?ht.toPort:ht.fromPort,dt!==null)){var Ft=dt.part;if(Ft!==null){var Wt=Ft.findVisibleNode();Wt!==null&&Wt!==Ft&&(Ft=Wt,dt=Ft.port),dt=ht.computeOtherPoint(Ft,dt),Ft=rt.ab(dt),Ft-=st,0>Ft?Ft+=360:360<=Ft&&(Ft-=360),vt=Tx(E,vt,Ft,ht.isOrthogonal),vt===0?(vt=4,180<Ft&&(Ft-=360)):vt===90?(vt=8,270<Ft&&(Ft-=360)):vt===180?vt=2:(vt=1,90>Ft&&(Ft+=360)),Wt=a.pe[z],Wt===void 0?(Wt=new ey(ht,Ft,vt),a.pe[z]=Wt):(Wt.link=ht,Wt.angle=Ft,Wt.Nc=vt),Wt.hv.set(dt),z++}}}}for(xe.free(rt),a.pe.sort(kd.prototype.j),st=a.pe.length,b=-1,z=rt=0;z<st;z++)nt=a.pe[z],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,rt=0),nt.Uo=rt,rt++);for(b=-1,rt=0,z=st-1;0<=z;z--)st=a.pe[z],st!==void 0&&(st.Nc!==b&&(b=st.Nc,rt=st.Uo+1),st.Gl=rt);if(z=a.pe,vt=a.port,b=a.node.portSpreading,rt=xe.alloc(),st=xe.alloc(),nt=xe.alloc(),ht=xe.alloc(),vt.ga(ar,rt),vt.ga(yr,st),vt.ga(oo,nt),vt.ga(os,ht),Wt=Ft=dt=vt=0,b===Hv)for(var Ht=0;Ht<z.length;Ht++){var ne=z[Ht];if(ne!==null){var ve=ne.link.computeThickness();switch(ne.Nc){case 8:Ft+=ve;break;case 2:Wt+=ve;break;case 1:vt+=ve;break;default:case 4:dt+=ve}}}var fe=Ht=0,Ce=1,ke=ne=0;for(ve=0;ve<z.length;ve++){var Me=z[ve];if(Me!==null){if(Ht!==Me.Nc){switch(Ht=Me.Nc,Ht){case 8:var De=nt;fe=ht;break;case 2:De=ht,fe=rt;break;case 1:De=rt,fe=st;break;default:case 4:De=st,fe=nt}switch(ne=fe.x-De.x,ke=fe.y-De.y,Ht){case 8:Ft>Math.abs(ne)?(Ce=Math.abs(ne)/Ft,Ft=Math.abs(ne)):Ce=1;break;case 2:Wt>Math.abs(ke)?(Ce=Math.abs(ke)/Wt,Wt=Math.abs(ke)):Ce=1;break;case 1:vt>Math.abs(ne)?(Ce=Math.abs(ne)/vt,vt=Math.abs(ne)):Ce=1;break;default:case 4:dt>Math.abs(ke)?(Ce=Math.abs(ke)/dt,dt=Math.abs(ke)):Ce=1}fe=0}var Ve=Me.Zo;if(b===Hv){switch(Me=Me.link.computeThickness(),Me*=Ce,Ve.set(De),Ht){case 8:Ve.x=De.x+ne/2+Ft/2-fe-Me/2;break;case 2:Ve.y=De.y+ke/2+Wt/2-fe-Me/2;break;case 1:Ve.x=De.x+ne/2-vt/2+fe+Me/2;break;default:case 4:Ve.y=De.y+ke/2-dt/2+fe+Me/2}fe+=Me}else{var Ln=.5;b===_m&&(Ln=(Me.Uo+1)/(Me.Gl+1)),Ve.x=De.x+ne*Ln,Ve.y=De.y+ke*Ln}}}for(xe.free(rt),xe.free(st),xe.free(nt),xe.free(ht),De=a.pe,z=0;z<De.length;z++)b=De[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,en.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}kd.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},kd.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ki,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},kd.className="Knot";function ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new xe,this.Gl=this.Uo=0,this.Zo=new xe,this.Ju=0}ey.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()},ey.className="LinkInfo";function Dr(a){di(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new xe(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Dr.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},Dr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Dr.prototype.qb=function(){},Dr.prototype.toString=function(){var a=In(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Dr.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())}}},Dr.prototype.createNetwork=function(){return new Pr(this)},Dr.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Ye?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof xi?y.lg(a.memberParts):y.lg(a.iterator),y},Dr.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")}},Dr.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()}},Dr.prototype.doLayout=function(a){var y=new hn;a instanceof Ye?(_h(this,y,a.nodes,!0,this.rh,!0,!1,!0),_h(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof xi?_h(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},Dr.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,nt=0;for(a=a.iterator;a.next();){var rt=a.value;sp(rt);var st=rt.measuredBounds,ht=st.width;st=st.height,rt.moveTo(b,E),rt instanceof xi&&(rt.rh=!1),b+=Math.max(ht,50)+20,nt=Math.max(nt,Math.max(st,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Dr.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,nt=this.network.vertexes.iterator;nt.next();){var rt=nt.value.node;if(!(rt===null||rt instanceof vn)&&(sp(rt),this.rh(rt))){var st=rt.measuredBounds,ht=st.width;st=st.height,rt.moveTo(x,b),rt instanceof xi&&(rt.rh=!1),x+=Math.max(ht,50)+20,z=Math.max(z,Math.max(st,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Dr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof xi&&a.rh)};function _h(a,y,x,b,E,z,nt,rt){for(x=x.iterator;x.next();){var st=x.value;b&&!st.isTopLevel||E!==null&&!E(st)||!st.canLayout()||(z&&st instanceof kn?st.isLinkLabel||(st instanceof xi&&st.layout===null?_h(a,y,st.memberParts,!1,E,z,nt,rt):(sp(st),y.add(st))):nt&&st instanceof vn?y.add(st):!rt||!st.Zc()||st instanceof kn||(sp(st),y.add(st)))}}function sp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Dr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new en),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Dr.prototype.ex=function(a){var y=new hn;return a instanceof Ye?(_h(this,y,a.nodes,!0,null,!0,!0,!0),_h(this,y,a.links,!0,null,!0,!0,!0),_h(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof xi?_h(this,y,a.memberParts,!1,null,!0,!0,!0):_h(this,y,a.iterator,!1,null,!0,!0,!0),y},Dr.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(ar),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ke.Object.defineProperties(Dr.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())}}}),Dr.prototype.collectParts=Dr.prototype.ex,Dr.prototype.getLayoutBounds=Dr.prototype.ni,Dr.prototype.invalidateLayout=Dr.prototype.C,Dr.className="Layout";function Pr(a){di(this),this.Sc=a,this.wf=new hn,this.ye=new hn,this.Es=new ti,this.zs=new ti}Pr.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 hn,this.ye=new hn,this.Es=new ti,this.zs=new ti},Pr.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},Pr.prototype.createVertex=function(){return new mo(this)},Pr.prototype.createEdge=function(){return new ra(this)},Pr.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(nt){if(nt instanceof kn)return!nt.isLinkLabel;if(nt instanceof vn){var rt=nt.fromNode;return rt===null||rt.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof kn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof xi&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof vn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},Pr.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},Kt=Pr.prototype,Kt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Kt.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},Kt.Iu=function(a){if(a!==null&&uS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function uS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Kt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Kt.ki=function(a){return a===null?null:this.Es.I(a)},Kt.Bo=function(a){if(a!==null){ny(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ny(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Kt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},Kt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),iy(this,a)}};function iy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Kt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Kt.Lo=function(a){return a===null?null:this.zs.I(a)},Kt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Kt.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))}},Kt.Ko=function(){for(var a=Fn(),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]);jn(a)},Pr.prototype.deleteArtificialVertexes=function(){for(var a=Fn(),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=Fn(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);jn(a),jn(y)};function Nx(a){for(var y=Fn(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);jn(y)}Pr.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Nx(this),this.Ko()),a=new cn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),ry(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function ry(a,y,x){if(x!==null&&x.network!==y){uS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(iy(a,E),ny(y,E),ry(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(iy(a,x),ny(y,x),ry(a,y,x.toVertex))}}Pr.prototype.dz=function(){for(var a=new hn,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},Ke.Object.defineProperties(Pr.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}}}),Pr.prototype.findAllParts=Pr.prototype.dz,Pr.prototype.splitIntoSubNetworks=Pr.prototype.Zx,Pr.prototype.deleteSelfEdges=Pr.prototype.Ko,Pr.prototype.reverseEdge=Pr.prototype.gm,Pr.prototype.linkVertexes=Pr.prototype.Zj,Pr.prototype.findEdge=Pr.prototype.Lo,Pr.prototype.deleteLink=Pr.prototype.Yy,Pr.prototype.deleteEdge=Pr.prototype.Mj,Pr.prototype.addLink=Pr.prototype.Dy,Pr.prototype.addEdge=Pr.prototype.Bo,Pr.prototype.findVertex=Pr.prototype.ki,Pr.prototype.deleteNode=Pr.prototype.Zy,Pr.prototype.deleteVertex=Pr.prototype.Iu,Pr.prototype.addNode=Pr.prototype.Bl,Pr.prototype.addVertex=Pr.prototype.dh,Pr.prototype.addParts=Pr.prototype.lg,Pr.className="LayoutNetwork";function mo(a){di(this),this.ob=a,this.j=new en(0,0,10,10).freeze(),this.o=new xe(5,5).freeze(),this.Sh=this.ub=null,this.tg=new cn,this.mg=new cn}mo.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new cn,this.mg=new cn},mo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Wi(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},mo.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;tn(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 xi)){x=en.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Oi);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),en.free(x);return}en.free(x)}a.moveTo(y.x,y.y)}},mo.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},mo.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},mo.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},mo.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Ke.Object.defineProperties(mo.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=en.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),en.free(x),!(a instanceof xi)&&(a=a.locationObject.ga(Oi),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new hn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new hn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new hn,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 cn,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}}}),mo.prototype.deleteDestinationEdge=mo.prototype.Jl,mo.prototype.addDestinationEdge=mo.prototype.zl,mo.prototype.deleteSourceEdge=mo.prototype.Kl,mo.prototype.addSourceEdge=mo.prototype.Cl,mo.className="LayoutVertex",mo.standardComparer=oy,mo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function ra(a){di(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ra.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ra.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Wi(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},ra.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ra.prototype.commit=function(){},ra.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ke.Object.defineProperties(ra.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)}}}),ra.prototype.getOtherVertex=ra.prototype.Ax,ra.className="LayoutEdge";function jo(a){Dr.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new wn(NaN,NaN).freeze(),this.tf=new wn(10,10).freeze(),this.Jb=ap,this.Rb=i0,this.nd=lp,this.hd=hS,a&&Object.assign(this,a)}Je(jo,Dr),jo.prototype.cloneProtected=function(a){Dr.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},jo.prototype.qb=function(a){a.classType===jo?a===lp||a===o0||a===sy||a===r0?this.sorting=a:a===i0||a===vl?this.arrangement=a:a===ap||a===n0?this.alignment=a:we("Unknown enum value: "+a):Dr.prototype.qb.call(this,a)},jo.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof xi)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case r0:E.reverse();break;case lp:E.sort(this.comparer);break;case o0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=z&&0>=nt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case n0:var rt=y,st=x,ht=en.alloc(),dt=Math.max(this.cellSize.width,1);if(!isFinite(dt))for(var vt=dt=0;vt<E.length;vt++){var Ft=this.ni(E[vt],ht);dt=Math.max(dt,Ft.width)}if(dt=Math.max(dt+rt,1),vt=Math.max(this.cellSize.height,1),!isFinite(vt))for(Ft=vt=0;Ft<E.length;Ft++){var Wt=this.ni(E[Ft],ht);vt=Math.max(vt,Wt.height)}vt=Math.max(vt+st,1),Ft=this.arrangement;for(var Ht=Wt=this.arrangementOrigin.x,ne=this.arrangementOrigin.y,ve=0,fe=0,Ce=0;Ce<E.length;Ce++){var ke=E[Ce],Me=this.ni(ke,ht),De=Math.ceil((Me.width+rt)/dt)*dt,Ve=Math.ceil((Me.height+st)/vt)*vt;switch(Ft){case vl:var Ln=Math.abs(Ht-Me.width);break;default:Ln=Ht+Me.width}switch((0<z&&ve>z-1||0<nt&&0<ve&&Ln-Wt>nt)&&(b.push(new en(0,ne,nt+rt,fe)),ve=0,Ht=Wt,ne+=fe,fe=0),fe=Math.max(fe,Ve),Ft){case vl:Me=-Me.width;break;default:Me=0}switch(ke.moveTo(Ht+Me,ne),Ft){case vl:Ht-=De;break;default:Ht+=De}ve++}b.push(new en(0,ne,nt+rt,fe)),en.free(ht);break;case ap:for(st=nt,dt=z,vt=y,Ft=x,nt=en.alloc(),Wt=Math.max(this.cellSize.width,1),z=ne=ht=0,rt=xe.alloc(),Ht=0;Ht<E.length;Ht++)fe=E[Ht],ve=this.ni(fe,nt),fe=rh(fe,fe.locationObject,fe.locationSpot,rt),ht=Math.max(ht,fe.x),ne=Math.max(ne,ve.width-fe.x),z=Math.max(z,fe.y);switch(Ht=this.arrangement,Ht){case vl:ht+=vt;break;default:ne+=vt}Wt=isFinite(Wt)?Math.max(Wt+vt,1):Math.max(ht+ne,1);var Un=fe=this.arrangementOrigin.x;for(Ce=this.arrangementOrigin.y,ne=0,st>=ht&&(st-=ht),ht=ke=0,De=Math.max(this.cellSize.height,1),Me=z=0,Ve=!0,ve=xe.alloc(),Ln=0;Ln<E.length;Ln++){var On=E[Ln],gn=this.ni(On,nt),sn=rh(On,On.locationObject,On.locationSpot,rt);if(0<ne)switch(Ht){case vl:Un=(Un-fe-(gn.width-sn.x))/Wt,Un=Ie.$(Math.round(Un),Un)?Math.round(Un):Math.floor(Un),Un=Un*Wt+fe;break;default:Un=(Un-fe+sn.x)/Wt,Un=Ie.$(Math.round(Un),Un)?Math.round(Un):Math.ceil(Un),Un=Un*Wt+fe}else switch(Ht){case vl:ke=Un+sn.x+gn.width;break;default:ke=Un-sn.x}switch(Ht){case vl:var mi=-(Un+sn.x)+ke;break;default:mi=Un+gn.width-sn.x-ke}if(0<dt&&ne>dt-1||0<st&&0<ne&&mi>st){for(b.push(new en(0,Ve?Ce-z:Ce,st+vt,Me+z+Ft)),Un=0;Un<ne&&Ln!==ne;Un++){mi=E[Ln-ne+Un];var fi=rh(mi,mi.locationObject,mi.locationSpot,ve);mi.moveTo(mi.position.x,mi.position.y+z-fi.y)}Me+=Ft,Ce=Ve?Ce+Me:Ce+(Me+z),ne=Me=z=0,Un=fe,Ve=!1}switch(Un===fe&&(ht=Ht===vl?Math.max(ht,gn.width-sn.x):Math.min(ht,-sn.x)),z=Math.max(z,sn.y),Me=Math.max(Me,gn.height-sn.y),isFinite(De)&&(Me=Math.max(Me,Math.max(gn.height,De)-sn.y)),Ve?On.moveTo(Un-sn.x,Ce-sn.y):On.moveTo(Un-sn.x,Ce),Ht){case vl:Un-=sn.x+vt;break;default:Un+=gn.width-sn.x+vt}ne++}if(b.push(new en(0,Ce,st+vt,(Ve?Me:Me+z)+Ft)),E.length!==ne)for(st=0;st<ne;st++)dt=E[E.length-ne+st],vt=rh(dt,dt.locationObject,dt.locationSpot,rt),dt.moveTo(dt.position.x,dt.position.y+z-vt.y);if(xe.free(rt),xe.free(ve),Ht===vl)for(E=0;E<b.length;E++)z=b[E],z.width+=ht,z.x-=ht;else for(E=0;E<b.length;E++)z=b[E],z.x>ht&&(z.width+=z.x-ht,z.x=ht);en.free(nt)}for(rt=z=nt=E=0;rt<b.length;rt++)st=b[rt],E=Math.min(E,st.x),nt=Math.min(nt,st.y),z=Math.max(z,st.x+st.width);this.arrangement===vl?this.commitLayers(b,new xe(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new xe(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},jo.prototype.commitLayers=function(){};function hS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Ke.Object.defineProperties(jo.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!==ap&&a!==n0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==i0&&a!==vl||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==sy&&a!==r0&&a!==lp&&a!==o0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var n0=new an(jo,"Position",0),ap=new an(jo,"Location",1),i0=new an(jo,"LeftToRight",2),vl=new an(jo,"RightToLeft",3),sy=new an(jo,"Forward",4),r0=new an(jo,"Reverse",5),lp=new an(jo,"Ascending",6),o0=new an(jo,"Descending",7);jo.className="GridLayout",jo.standardComparer=hS,jo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},jo.Position=n0,jo.Location=ap,jo.LeftToRight=i0,jo.RightToLeft=vl,jo.Forward=sy,jo.Reverse=r0,jo.Ascending=lp,jo.Descending=o0;function cr(){this.On=new hn,this.Dn=new hn,this.Pa=new hn,this.cf=new ti,this.bf=new ti,this.aj=new ti,this.H=null,this.tp=!1}Kt=cr.prototype,Kt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Kt.Xe=function(a){this.H=a},Kt.oi=function(a){if(a instanceof kn){if(this.On.add(a),a instanceof xi){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof vn?this.Dn.add(a):a instanceof ir||this.Pa.add(a);y=a.data,y===null||a instanceof ir||(a instanceof vn?this.bf.add(y,a):this.cf.add(y,a))},Kt.pc=function(a){if(a.Ej(),a instanceof kn){if(this.On.remove(a),a instanceof xi){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof vn?this.Dn.remove(a):a instanceof ir||this.Pa.remove(a);y=a.data,y===null||a instanceof ir||(a instanceof vn?this.bf.remove(y):this.cf.remove(y))},Kt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof xi)&&we('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof xi||we('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof vn||we('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Fn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=Fn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=Fn(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);jn(y),jn(x),jn(a)}},cr.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},cr.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&cS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&lf(this.diagram,!1)};function cS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Ka(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}cr.prototype.insertLink=function(){return null},cr.prototype.resolveReferencesForData=function(){},cr.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(pS||(pS=!0,Nn('No Group template found for category "'+x+'"'),Nn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(gS||(gS=!0,Nn('No Node template found for category "'+x+'"'),Nn(" Using default node template")),y=a.ny))),y}cr.prototype.getLinkCategoryForData=function(){return""},cr.prototype.setLinkCategoryForData=function(){},cr.prototype.setFromNodeForLink=function(){},cr.prototype.setToNodeForLink=function(){},cr.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(mS||(mS=!0,Nn('No Link template found for category "'+a+'"'),Nn(" Using default link template")),x=y.my)),x},cr.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},cr.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},cr.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Pg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},cr.prototype.unresolveReferencesForPart=function(){},cr.prototype.removeDataForLink=function(){},cr.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},cr.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof kn?a:null)},cr.prototype.findLinkForKey=function(){return null},Kt=cr.prototype,Kt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Kt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof kn?a:null)},Kt.Kc=function(a){return a===null?null:this.bf.I(a)},Kt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new hn;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(tn(nt)&&ay(this,E,nt)){y.add(b);break}}}return y.iterator},Kt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new hn;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(tn(nt)&&ay(this,E,nt)){y.add(b);break}}}return y.iterator};function ay(a,y,x){for(var b in x){var E=y[b],z=x[b];if(yn(z)){if(!yn(E)||E.length<z.length)return!1;for(var nt=0;nt<E.length;nt++){var rt=z[nt];if(rt!==void 0&&!fS(a,E[nt],rt))return!1}}else if(!fS(a,E,z))return!1}return!0}function fS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(tn(y)&&tn(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}cr.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Or){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===qr){var nt=a.newValue;b==="nodeDataArray"&&tn(nt)&&cS(this,nt),y.isModified=!0}else if(x===fo){var rt=a.oldValue;b==="nodeDataArray"&&tn(rt)&&this.ip(rt),y.isModified=!0}else x===ta&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Or){var st=a.propertyName,ht=a.object;ht===y.model?(st==="nodeKeyProperty"||st==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ht,st),y.isModified=!0}else if(x===qr||x===fo){var dt=a.change===qr,vt=dt?a.newParam:a.oldParam,Ft=dt?a.newValue:a.oldValue,Wt=this.aj.I(a.object);if(Array.isArray(Wt))for(a=0;a<Wt.length;a++){var Ht=Wt[a];if(dt)bm(Ht,Ft,vt,!0);else if(!(0>vt)){var ne=vt+_g(Ht);Ht.pc(ne,!0),wv(Ht,ne,vt)}}y.isModified=!0}}finally{y.aa=!0}}}}},cr.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)},cr.prototype.rp=function(){for(var a=this.H.model,y=new hn,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),E.forEach(function(nt){AS(a,nt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&bS(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()},cr.prototype.refreshDataBoundLinks=function(){},cr.prototype.updateRelationshipsFromData=function(){},cr.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var nt=E[z].sx(a);nt!==null&&(x===null&&(x=Fn()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);jn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(yn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function uy(a,y,x){Dc(y,function(nt){nt=nt.O.s;for(var rt=nt.length,st=0;st<rt;st++)kg(x,nt[st])});var b=y.Hh;if(yn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}cr.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new ti;if(yn(a))for(var E=0;E<a.length;E++)s0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)s0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new hn;for(var z=new ti,nt=b.iterator;nt.next();){var rt=nt.value;if(rt instanceof vn)a||rt.fromNode!==null&&rt.toNode!==null||E.add(rt);else if(rt instanceof kn&&rt.data!==null&&x.Tl()){var st=rt;rt=nt.key;var ht=rt.pg();ht!==null&&(ht=b.I(ht),ht!==null?(x.qe(st.data,x.wa(ht.data)),st=y.Kc(st.data),rt=rt.kh(),rt!==null&&st!==null&&z.add(rt,st)):x.qe(st.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var dt=new ti;b.each(function(vt){vt.key.data!==null&&dt.add(vt.key.data,vt.value.data)}),x(dt,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function s0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof $n))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof kn){for(var nt=y.linksConnected;nt.next();){var rt=nt.value;if(rt.fromNode===y){var st=b.I(rt);st!==null&&(st.fromNode=z)}rt.toNode===y&&(rt=b.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof xi&&z instanceof xi)for(y=y.memberParts;y.next();)nt=s0(a,y.value,x,b,E),nt instanceof vn||nt===null||(nt.containingGroup=z)}else if(y instanceof vn&&z instanceof vn)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.toNode=nt)),y=y.labelNodes;y.next();)nt=s0(a,y.value,x,b,E),nt!==null&&nt instanceof kn&&(nt.labeledLink=z);return z}cr.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof vn||(b=E.copyNodeData(b),tn(b)&&(E.xf(b),x=y.Lc(b)))}else Ka(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof vn||(E=y.copyNodeData(b)),tn(E)&&(x.data=E)));return x},Ke.Object.defineProperties(cr.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}}}),cr.prototype.updateAllRelationshipsFromData=cr.prototype.rp,cr.prototype.findLinksByExample=cr.prototype.ls,cr.prototype.findNodesByExample=cr.prototype.ms,cr.prototype.findLinkForData=cr.prototype.Kc,cr.prototype.findNodeForData=cr.prototype.ii,cr.prototype.findPartForData=cr.prototype.Lc,cr.prototype.findNodeForKey=cr.prototype.Vb,cr.prototype.removeModeledPart=cr.prototype.ip,cr.prototype.removeModeledParts=cr.prototype.Gs,cr.prototype.rebuildParts=cr.prototype.Wd;var gS=!1,pS=!1,mS=!1;cr.className="PartManager";function ko(a){cr.apply(this,arguments)}Je(ko,cr),ko.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},ko.prototype.addModeledParts=function(a){for(cr.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Mf(a.value);lf(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),lf(a.diagram,!1)}function yS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Ka(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=h0(x,y,!0);z!==""&&(E.fromPortId=z),z=Sa(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof kn&&(E.fromNode=z)),z=h0(x,y,!1),z!==""&&(E.toPortId=z),z=Sa(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof kn&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}ko.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}ko.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ko.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ko.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ko.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ko.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ko.prototype.findPartForKey=function(a){var y=cr.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ko.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ko.prototype.doModelChanged=function(a){var y=this;if(cr.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Or){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var nt=this.Vb(a.newValue);z.fromNode=nt}}else if(E==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var st=this.Vb(a.newValue);rt.toNode=st}}else if(E==="linkFromPortId"){var ht=this.Kc(a.object);if(ht!==null){var dt=a.newValue;typeof dt=="string"&&(ht.fromPortId=dt)}}else if(E==="linkToPortId"){var vt=this.Kc(a.object);if(vt!==null){var Ft=a.newValue;typeof Ft=="string"&&(vt.toPortId=Ft)}}else if(E==="nodeGroupKey"){var Wt=this.Lc(a.object);if(Wt!==null){var Ht=a.newValue;if(Ht!==void 0){var ne=this.Vb(Ht);ne instanceof xi?Wt.containingGroup=ne:Wt.containingGroup=null}else Wt.containingGroup=null}}else if(E==="linkLabelKeys"){var ve=this.Kc(a.object);if(ve!==null){var fe=a.oldValue,Ce=a.newValue;Array.isArray(fe)&&fe.forEach(function(sn){0<=Ce.indexOf(sn)||(sn=y.Vb(sn),sn!==null&&(sn.labeledLink=null))}),Array.isArray(Ce)&&Ce.forEach(function(sn){sn=y.Vb(sn),sn!==null&&(sn.labeledLink=ve)})}}else if(E==="linkCategory"){var ke=this.Kc(a.object),Me=a.newValue;ke!==null&&typeof Me=="string"&&(ke.category=Me)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===qr){var De=a.newValue;if(E==="linkDataArray"&&typeof De=="object"&&De!==null)yS(this,De);else if(E==="linkLabelKeys"&&Kh(De)){var Ve=this.Kc(a.object),Ln=this.Vb(De);Ve!==null&&Ln!==null&&(Ln.labeledLink=Ve)}x.isModified=!0}else if(b===fo){var Un=a.oldValue;if(E==="linkDataArray"&&typeof Un=="object"&&Un!==null)this.ip(Un);else if(E==="linkLabelKeys"&&Kh(Un)){var On=this.Vb(Un);On!==null&&(On.labeledLink=null)}x.isModified=!0}}else if(b===Or){var gn=a.propertyName;a.object!==x.model||gn!=="linkFromKeyProperty"&&gn!=="linkToKeyProperty"&&gn!=="linkFromPortIdProperty"&&gn!=="linkToPortIdProperty"&&gn!=="linkLabelKeysProperty"&&gn!=="nodeIsGroupProperty"&&gn!=="nodeGroupKeyProperty"&&gn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ko.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new hn,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){NS(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&TS(y,z,!1)})},ko.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof vn){var E=Sa(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Sa(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new hn().addAll(y);var nt=new hn;a.labelNodes.each(function(rt){rt.data!==null&&(rt=b.wa(rt.data),rt!==void 0&&nt.add(rt))}),y=nt.copy(),y.hp(E),E=E.copy(),E.hp(nt),(0<y.count||0<E.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),E.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof ir)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof xi)&&(a.containingGroup=y)}}},ko.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=up(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var nt=b.value;y.lb(nt)?E instanceof xi&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof kn&&(Sa(y,nt,!0)===x&&(z.link.fromNode=E),Sa(y,nt,!1)===x&&(z.link.toNode=E),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(rt){return function(st){return st===x?(E.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}Sl(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof xi&&(E.containingGroup=a))}},ko.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof kn){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)yl(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&yl(y,x,b.data)),a instanceof xi)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&yl(y,x,b)}}},ko.prototype.copyPartData=function(a,y){var x=cr.prototype.copyPartData.call(this,a,y);if(a instanceof vn)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},ko.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,nt=E.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=nt.archetypeLinkData,b instanceof vn){if(Ka(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,E.add(z),a=nt.archetypeLabelNodeData,a instanceof kn&&(Ka(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Of(z,b,z.wa(a.data),!0),If(z,b,rt,!0),x!==null&&Of(z,b,z.wa(x.data),!1),If(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof kn||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},ko.prototype.findLinkForKey=ko.prototype.findLinkForKey,ko.prototype.findPartForKey=ko.prototype.findPartForKey,ko.prototype.removeAllModeledParts=ko.prototype.removeAllModeledParts,ko.prototype.addModeledParts=ko.prototype.addModeledParts,ko.prototype.addAllModeledParts=ko.prototype.addAllModeledParts,ko.className="GraphLinksPartManager";function Ba(){cr.apply(this,arguments),this.Sg=null}Je(Ba,cr);function a0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!ms(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ka(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}Ba.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Ba.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Ba.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},Ba.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},Ba.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Ba.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Ba.prototype.doModelChanged=function(a){if(cr.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Or){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),nt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(nt!==null){var rt=nt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:a0(this,z,nt)}}else if(b==="parentLinkCategory"){var st=this.ii(a.object),ht=a.newValue;if(st!==null&&typeof ht=="string"){var dt=st.kh();dt!==null&&(dt.category=ht)}}y.isModified=!0}}else if(x===Or){var vt=a.propertyName;a.object===y.model&&vt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Ba.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof kn&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:a0(this,y,a):b!==null&&Pg(x,b,!1)))}}},Ba.prototype.updateDataBindings=function(a,y){cr.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Ba.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=up(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof kn&&y.mh(z)===x&&a0(this,E,this.ii(z))}Sl(y,x)}a=y.mh(a),a!==void 0&&E instanceof kn&&(a=this.Vb(a),a0(this,a,E))}},Ba.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof kn){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(fo,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&yl(y,x,E)}},Ba.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},Ba.prototype.findLinkForKey=Ba.prototype.findLinkForKey,Ba.className="TreePartManager";function Vn(a,y){this.kl=new hn,this.il=new hn,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,di(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ti,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 ti,this.Lt=new cn,this.Wg=!1,this.o=null,this.undoManager=new jr,a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Vn.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},Vn.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Vn.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Vn.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Ai(E)}}return y},Vn.prototype.xA=function(a){a.change!==ta&&we("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Lo?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Vn.prototype.Qv=function(a,y){var x=this,b=!1,E=new hn,z=new hn,nt=new hn,rt=this.vh;a.changes.each(function(vt){vt.model===x&&(vt.modelChange==="nodeDataArray"?vt.change===qr?E.add(vt.newValue):vt.change===fo&&nt.add(vt.oldValue):x.lb(vt.object)?z.add(vt.object):vt.change!==Or||x.modelData!==vt.object&&vt.propertyName!=="modelData"?vt.object!==null&&(rt&&rt.contains(vt.object)?rt.get(vt.object).each(function(Ft){x.lb(Ft)&&z.add(Ft)}):vt.object instanceof Vn||x.ri()&&x.Jc(vt.object)||PS(x,vt.object).each(function(Ft){z.add(Ft)})):b=!0)});var st=this.il;st.clear(),E.each(function(vt){st.add(x.wa(vt)),y||z.add(vt)});var ht=this.kl;ht.clear(),nt.each(function(vt){ht.add(x.wa(vt)),y&&z.add(vt)}),a=x.cloneDeep(z.Fa());var dt=null;return b&&(dt===null&&(dt={}),dt.modelData=this.cloneDeep(this.modelData)),0<st.count&&(dt===null&&(dt={}),y?dt.removedNodeKeys=st.Fa():dt.insertedNodeKeys=st.Fa()),0<a.length&&(dt===null&&(dt={}),dt.modifiedNodeData=a),0<ht.count&&(dt===null&&(dt={}),y?dt.insertedNodeKeys=ht.Fa():dt.removedNodeKeys=ht.Fa()),ht.clear(),st.clear(),dt},Vn.prototype.cloneDeep=function(a){return Bf(this,a,!0)};function Bf(a,y,x,b,E,z){function nt(vt,Ft){rt?(vt.__gohashid===void 0&&z.push(vt),b.set(vt,Ft)):(vt=fr++,b.set(vt,Ft),E.set(vt,y))}if(!tn(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(b||(b=new ti),rt){var st=b.get(y);if(st)return st}else for(E||(E=new ti),st=E.iterator;st.next();){var ht=st.key;if(st.value===y&&(ht=b.get(ht)))return ht}if(Array.isArray(y)){st=[],nt(y,st);for(var dt=0;dt<y.length;dt++)st.push(Bf(a,y[dt],!1,b,E,z))}else if(y instanceof xe||y instanceof wn||y instanceof en||y instanceof Bi||y instanceof ni)st=y.copy(),nt(y,st);else{if(y instanceof hr||y instanceof mn||y instanceof an)return y;if(y instanceof cn)st=new cn().addAll(Bf(a,y.Fa(),!1,b,E,z)),nt(y,st);else if(y instanceof hn)st=new hn().addAll(Bf(a,y.Fa(),!1,b,E,z)),nt(y,st);else if(y instanceof ti)st=new ti().addAll(Bf(a,y.Fa(),!1,b,E,z)),nt(y,st);else if(y instanceof Date)st=new Date(y.getTime()),nt(y,st);else if(y instanceof RegExp)st=new RegExp(y),nt(y,st),st.lastIndex=y.lastIndex;else if(typeof y.copy=="function")st=y.copy(),nt(y,st);else for(dt in st={},nt(y,st),y)dt!=="__gohashid"&&(st[dt]=Bf(a,y[dt],!1,b,E,z))}return x&&z.forEach(function(vt){delete vt.__gohashid}),st}Kt=Vn.prototype,Kt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Kt.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},Kt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function xS(a,y){y=y.modelData,tn(y)&&(a.dm(y),a.modelData=y)}Kt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!CS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+hy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+Hh(this,this.nodeDataArray,!0)},Kt.kv=function(a){xS(this,a),a=a.nodeDataArray,yn(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var nt=b.get(E);nt===null?(nt=new hn,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new ti,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Or?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===qr||z===fo)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function PS(a,y){for(var x=new hn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];l0(a,y,E,E,x)}return x}function l0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var nt=x[z];if(nt===y)return E.add(b),!0;if(l0(a,y,nt,b,E))return!0}else if(tn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(l0(a,y,nt,b,E))return!0}return!1}Kt.Pv=function(a,y){var x=this,b=!1,E=new hn,z=new hn,nt=new hn,rt=this.vh;a.changes.each(function(dt){dt.model===x&&(dt.modelChange==="nodeDataArray"?dt.change===qr?E.add(dt.newValue):dt.change===fo&&nt.add(dt.oldValue):x.lb(dt.object)?z.add(dt.object):dt.change!==Or||x.modelData!==dt.object&&dt.propertyName!=="modelData"?dt.object!==null&&(rt&&rt.contains(dt.object)?rt.get(dt.object).each(function(vt){x.lb(vt)&&z.add(vt)}):dt.object instanceof Vn||x.ri()&&x.Jc(dt.object)||PS(x,dt.object).each(function(vt){z.add(vt)})):b=!0)});var st=this.il;st.clear(),E.each(function(dt){st.add(x.wa(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(x.wa(dt)),y&&z.add(dt)}),a="",b&&(a+=`,
|
|
"modelData": `+hy(this,this.modelData)),0<st.count&&(a+=(y?this.Yv:this.Wv)+Hh(this,st.Fa(),!0)),0<z.count&&(a+=this.jy+Hh(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Wv:this.Yv)+Hh(this,ht.Fa(),!0)),ht.clear(),st.clear(),a},Kt.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)&&we("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new ti;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],nt=this.wa(z);nt!=null&&b.set(nt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){nt=y[z];var rt=this.hc(nt);rt===null&&(rt=(rt=b.get(nt))?rt:this.copyNodeData({}),this.km(rt,nt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var st in E)st==="__gohashid"||st===this.nodeKeyProperty||this.Wj()&&st===this.nodeIsGroupProperty||this.setDataProperty(z,st,E[st]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,st=0;st<x;st++)y=this.hc(a[st]),y!==null&&this.cm(y)},Kt.$x=function(a,y){a.change!==ta&&we("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Lo?(y===void 0&&(y=hp(this,this)),wS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Kt.yA=function(a,y){return this.$x(a,y)},Kt.np=function(a){return a===void 0&&(a=hp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Kt.toJSON=function(a){return this.np(a)},Kt.Zw=function(a){var y=null;if(typeof a=="string")try{y=pn.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:we("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&we("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Kt.Ky=function(a){return this.Zw(a)},Vn.constructGraphLinksModel=function(){return new Vn},Kt=Vn.prototype,Kt.dm=function(a){if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(tn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:we("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(tn(a)){for(y in a)if(x=a[y],tn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new cn,b=0;b<x.length/2;b++)E.add(new xe(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Fx(a)}return a},Kt.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()):yn(a)?Hh(this,a):tn(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function Hh(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new ei;E.add("["),x&&1<b&&E.add(`
|
|
`);for(var z=0;z<b;z++){var nt=y[z];nt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
`)),E.add(a.sm(nt)))}return x&&1<b&&E.add(`
|
|
`),E.add("]"),E.toString()}function CS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Ls(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var x=y;if(x instanceof xe)y={class:"go.Point",x:Ls(x.x),y:Ls(x.y)};else if(x instanceof wn)y={class:"go.Size",width:Ls(x.width),height:Ls(x.height)};else if(x instanceof en)y={class:"go.Rect",x:Ls(x.x),y:Ls(x.y),width:Ls(x.width),height:Ls(x.height)};else if(x instanceof Bi)y={class:"go.Margin",top:Ls(x.top),right:Ls(x.right),bottom:Ls(x.bottom),left:Ls(x.left)};else if(x instanceof ni)x.sb()?y={class:"go.Spot",x:Ls(x.x),y:Ls(x.y),offsetX:Ls(x.offsetX),offsetY:Ls(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof hr){if(y={class:"go.Brush",type:x.type.name},x.type===eh?y.color=x.color:(x.type===wu||x.type===Fa)&&(y.start=x.start,y.end=x.end,x.type===Fa&&(x.startRadius!==0&&(y.startRadius=Ls(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Ls(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof mn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Ls(x.startX)),x.startY!==0&&(y.startY=Ls(x.startY)),x.endX!==0&&(y.endX=Ls(x.endX)),x.endY!==0&&(y.endY=Ls(x.endY)),x.spot1.D(ar)||(y.spot1=x.spot1),x.spot2.D(oo)||(y.spot2=x.spot2),x.type===mn.o&&(y.path=mn.ia(x))):x instanceof an&&(y={class:"go.EnumValue",classType:hp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Xr(y,E);if(!CS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof cn){var nt="[";for(z=z.iterator;z.next();){var rt=z.value;1<nt.length&&(nt+=","),nt+=a.sm(rt.x),nt+=",",nt+=a.sm(rt.y)}nt+="]",b+=nt}else b+=a.sm(z)}return b+"}"}function ks(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Fx(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 xe(ks(a.x),ks(a.y));else if(y==="Size")x=new wn(ks(a.width),ks(a.height));else if(y==="Rect")x=new en(ks(a.x),ks(a.y),ks(a.width),ks(a.height));else if(y==="Margin")x=new Bi(ks(a.top),ks(a.right),ks(a.bottom),ks(a.left));else if(y==="Spot")typeof a.enum=="string"?x=_r(a.enum):x=new ni(ks(a.x),ks(a.y),ks(a.offsetX),ks(a.offsetY));else if(y==="Brush"){if(x=new hr,x.type=Dn(hr,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof ni&&(x.start=a.start),a.end instanceof ni&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=ks(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=ks(a.endRadius)),a=a.colorStops,tn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=mn.parse(a.path):x=new mn,x.type=Dn(mn,a.type),typeof a.startX=="number"&&(x.startX=ks(a.startX)),typeof a.startY=="number"&&(x.startY=ks(a.startY)),typeof a.endX=="number"&&(x.endX=ks(a.endX)),typeof a.endY=="number"&&(x.endY=ks(a.endY)),a.spot1 instanceof ni&&(x.spot1=a.spot1),a.spot2 instanceof ni&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Dn(b,a.name)));return x}Kt.Pe=function(a){return this.Lt.add(a),this},Kt.ik=function(a){this.Lt.remove(a)},Kt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},Kt.cb=function(a,y,x,b,E,z,nt){ho(this,"",a,y,x,b,E,z,nt)},Kt.g=function(a,y,x,b,E){ho(this,"",Or,a,this,y,x,b,E)},Kt.Fs=function(a,y,x,b,E,z){ho(this,"",Or,y,a,x,b,E,z)};function ho(a,y,x,b,E,z,nt,rt,st){rt===void 0&&(rt=null),st===void 0&&(st=null);var ht=new Ir;ht.model=a,ht.change=x,ht.modelChange=y,ht.propertyName=b,ht.object=E,ht.oldValue=z,ht.oldParam=rt,ht.newValue=nt,ht.newParam=st,a.ds(ht)}Vn.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Or){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Nr(x,b,E)}else a.change===qr?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,tn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Wn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&Sn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=Xr(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.newValue,y?Wn(b,x):Sn(b,x,a))):we("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===fo?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,tn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&Sn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Wn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=Xr(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.oldValue,y?Sn(b,x,a):Wn(b,x))):we("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ta&&we("unknown ChangedEvent: "+a.toString())},Vn.prototype.Ea=function(a){return this.undoManager.Ea(a)},Vn.prototype.eb=function(a){return this.undoManager.eb(a)},Vn.prototype.Kf=function(){return this.undoManager.Kf()},Vn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Kt=Vn.prototype,Kt.La=function(a,y){y===void 0&&(y=""),ho(this,"SourceChanged",ta,y,a,null,null)},Kt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Xr(a,y),y!==void 0)){if(Kh(y))return y;we("Key value for node data "+a+" is not a number or a string: "+y)}}},Kt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Xr(a,x);b!==y&&this.hc(y)===null&&(Nr(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),ho(this,"nodeKey",Or,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Nr(a,x,y)}};function Kh(a){return typeof a=="number"||typeof a=="string"}Kt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Kt.hc=function(a){return a===null&&we("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Kh(a)?this.kb.I(a):null},Kt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Nr(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Nr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Nr(a,y,x)}}}}},Kt.xf=function(a){a!==null&&(tr(a),this.lb(a)||bS(this,a,!0))};function bS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&we("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,Sn(a.Tc,b,y)),ho(a,"nodeDataArray",qr,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Kt.Fy=function(a){if(yn(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)},Kt.cm=function(a){a!==null&&AS(this,a,!0)};function AS(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;Wn(a.Tc,b)}ho(a,"nodeDataArray",fo,"nodeDataArray",a,y,null,b,null),a.qp(y)}Kt.nA=function(a){if(yn(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)},Kt.$z=function(a){if(a!==this.nodeDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.wa(z);if(nt!==void 0){x.add(nt);var rt=this.hc(nt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,nt),this.xf(z)))}else nt=this.cloneDeep(z),this.xf(nt),x.add(this.wa(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Kt.jp=function(a,y){y!==void 0&&(a=up(this,a),a instanceof hn&&this.Vf.add(y,a))},Kt.Lv=function(){},Kt.fm=function(){},Kt.em=function(){},Kt.qp=function(){};function yl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new hn,a.Vf.add(y,b)),b.add(x)}}function Sl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof hn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function up(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof hn?a:null)}Kt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Vn.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):u0(this,a,!0),tn(a)&&di(a),a};function u0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=u0(a,y[x],a.copiesArrayObjects);b.push(E)}return di(b),b}if(x&&tn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=Xr(y,b),nt=hp(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof Vn||z instanceof jr||z instanceof Lo||z instanceof Ir||(z=u0(a,z,!1)),Nr(x,b,z)}return di(x),x}return y instanceof xe||y instanceof wn||y instanceof en||y instanceof ni||y instanceof Bi?y.copy():y}Vn.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 Be&&(LS=!0,Nn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Nn(" Is that really your intent?"));var b=Xr(a,y);b!==x&&(Nr(a,y,x),this.Fs(a,y,b,x))},Kt=Vn.prototype,Kt.set=function(a,y,x){this.setDataProperty(a,y,x)},Kt.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Kt.Ay=function(a,y){this.ts(a,-1,y)},Kt.ts=function(a,y,x){0>y&&(y=a.length),Sn(a,y,x),ho(this,"",qr,"",a,null,x,null,y)},Kt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&we("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Wn(a,y),ho(this,"",fo,"",a,x,null,y,null)},Kt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Xr(a,y),y===void 0))return"";if(typeof y=="string")return y;we("getCategoryForNodeData found a non-string category for "+a+": "+y)},Kt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Xr(a,x);b===void 0&&(b=""),b!==y&&(Nr(a,x,y),ho(this,"nodeCategory",Or,x,a,b,y))}else Nr(a,x,y)}},Kt.lm=function(a,y){this.jm(y,this.Ro(a))},Kt.Tl=function(){return!1},Kt.Wj=function(){return!1},Kt.ri=function(){return!1},Kt.xs=function(){return!1},Kt.Xj=function(){return!1};function cy(){return new Vn}function hp(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 hp(a,y.constructor);return typeof y}function dy(a){return al[a]?al[a]:pn.go!==void 0&&pn.go[a]?pn.go[a]:null}function Xr(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Nr(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Ke.Object.defineProperties(Vn.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===""&&we("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&we("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];tn(E)||we("Model.nodeDataArray must only contain Objects, not: "+E),tr(E)}for(this.Tc=a,b=new cn,E=0;E<x;E++){var z=a[E],nt=this.wa(z);nt===void 0||this.kb.I(nt)!==null?b.add(z):this.kb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(ho(this,"nodeDataArray",Or,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Vn.prototype.setCategoryForNodeData=Vn.prototype.jm,Vn.prototype.getCategoryForNodeData=Vn.prototype.Ro,Vn.prototype.removeArrayItem=Vn.prototype.ov,Vn.prototype.insertArrayItem=Vn.prototype.ts,Vn.prototype.addArrayItem=Vn.prototype.Ay,Vn.prototype.assignAllDataProperties=Vn.prototype.Do,Vn.prototype.set=Vn.prototype.set,Vn.prototype.clearUnresolvedReferences=Vn.prototype.Qy,Vn.prototype.mergeNodeDataArray=Vn.prototype.$z,Vn.prototype.removeNodeDataCollection=Vn.prototype.nA,Vn.prototype.removeNodeData=Vn.prototype.cm,Vn.prototype.addNodeDataCollection=Vn.prototype.Fy,Vn.prototype.addNodeData=Vn.prototype.xf,Vn.prototype.makeNodeDataKeyUnique=Vn.prototype.$u,Vn.prototype.findNodeDataForKey=Vn.prototype.hc,Vn.prototype.containsNodeData=Vn.prototype.lb,Vn.prototype.setKeyForNodeData=Vn.prototype.km,Vn.prototype.getKeyForNodeData=Vn.prototype.wa,Vn.prototype.updateTargetBindings=Vn.prototype.La,Vn.prototype.commit=Vn.prototype.commit,Vn.prototype.rollbackTransaction=Vn.prototype.Kf,Vn.prototype.commitTransaction=Vn.prototype.eb,Vn.prototype.startTransaction=Vn.prototype.Ea,Vn.prototype.raiseDataChanged=Vn.prototype.Fs,Vn.prototype.raiseChanged=Vn.prototype.g,Vn.prototype.raiseChangedEvent=Vn.prototype.cb,Vn.prototype.removeChangedListener=Vn.prototype.ik,Vn.prototype.addChangedListener=Vn.prototype.Pe,Vn.prototype.writeJsonValue=Vn.prototype.sm,Vn.prototype.replaceJsonObjects=Vn.prototype.dm,Vn.prototype.applyIncrementalJSON=Vn.prototype.Ky,Vn.prototype.applyIncrementalJson=Vn.prototype.Zw,Vn.prototype.toJSON=Vn.prototype.toJSON,Vn.prototype.toJson=Vn.prototype.np,Vn.prototype.toIncrementalJSON=Vn.prototype.yA,Vn.prototype.toIncrementalJson=Vn.prototype.$x,Vn.prototype.toIncrementalData=Vn.prototype.xA,Vn.prototype.clear=Vn.prototype.clear;var LS=!1,al={};Vn.className="Model",Vn.fromJSON=Vn.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=pn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:we("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=pn[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Vn?y=a:we("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Vn.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Vn.safePropertyValue=Xr,Vn.safePropertySet=Nr,al.Brush=hr,al.ChangedEvent=Ir,al.Geometry=mn,al.Margin=Bi,al.Panel=dn,al.Point=xe,al.Rect=en,al.Size=wn,al.Spot=ni,al.Transaction=Lo,al.UndoManager=jr;function eo(a,y,x,b){di(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=ES,this.wk=null):(this.el=cp,this.wk=b),this.st=new hn}eo.prototype.copy=function(){var a=new eo;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},Kt=eo.prototype,Kt.qb=function(a){a.classType===eo&&(this.mode=a)},Kt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Kt.freeze=function(){return this._isFrozen=!0,this},Kt.ka=function(){return this._isFrozen=!1,this},Kt.Kx=function(a){return a===void 0&&(a=null),this.mode=cp,this.backConverter=a,this},Kt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Kt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function kS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Kt.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")Nn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Xr(y,b)),z!==void 0)if(E===null)x!==""&&Nr(a,x,z);else try{if(x!==""){var nt=E(z,a);Nr(a,x,nt)}else E(z,a)}catch(rt){}}}},Kt.sp=function(a,y,x,b){if(this.el===cp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=Xr(a,E)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=b!==null?b.diagram:null,st=rt!==null?rt.model:null;if(z===null){if(x!=="")st!==null?st.setDataProperty(y,x,nt):Nr(y,x,nt);else if(st!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ht=b.itemIndex,dt=b.panel.itemArray;st.ov(dt,ht),st.ts(dt,ht,nt)}}else try{if(x!==""){var vt=z(nt,y,st);st!==null?st.setDataProperty(y,x,vt):Nr(y,x,vt)}else{var Ft=z(nt,y,st);if(Ft!==void 0&&st!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Wt=b.itemIndex,Ht=b.panel.itemArray;st.ov(Ht,Wt),st.ts(Ht,Wt,Ft)}}}catch(ne){}}finally{this.st.remove(a)}}}},Ke.Object.defineProperties(eo.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&je(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&je(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&je(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&je(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&je(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&je(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&je(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&je(this),this.el=a}}}),eo.prototype.updateSource=eo.prototype.sp,eo.prototype.updateTarget=eo.prototype.Mv,eo.prototype.ofModel=eo.prototype.dA,eo.prototype.ofObject=eo.prototype.cp,eo.prototype.makeTwoWay=eo.prototype.Kx;var Dx="Binding",ES=new an(eo,"OneWay",1),cp=new an(eo,"TwoWay",2);eo.className="Binding",eo.parseEnum=function(a,y){return function(x){return x=Dn(a,x),x===null?y:x}},eo.toString=Ai,eo.OneWay=ES,eo.TwoWay=cp;function qi(a,y,x){Vn.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new hn,this.wb=new ti,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&&(yn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Je(qi,Vn),qi.constructGraphLinksModel=Vn.constructGraphLinksModel,qi.prototype.cloneProtected=function(a){Vn.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},Kt=qi.prototype,Kt.clear=function(){Vn.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Kt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Ai(E)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Sa(this,E,!0)+"-->"+Sa(this,E,!1)}return y},Kt.Qv=function(a,y){this.linkKeyProperty===""&&we("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Vn.prototype.Qv.call(this,a,y),b=this,E=new hn,z=new hn,nt=new hn,rt=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===qr?E.add(dt.newValue):dt.change===fo&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&rt&&rt.contains(dt.object)?rt.get(dt.object).each(function(vt){b.Jc(vt)&&z.add(vt)}):dt.object instanceof Vn||b.lb(dt.object)||MS(b,dt.object).each(function(vt){z.add(vt)})))});var st=this.il;st.clear(),E.each(function(dt){st.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),a=b.cloneDeep(z.Fa()),0<st.count&&(x===null&&(x={}),y?x.removedLinkKeys=st.Fa():x.insertedLinkKeys=st.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ht.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ht.Fa():x.removedLinkKeys=ht.Fa()),ht.clear(),st.clear(),x},Kt.rm=function(){var a=Vn.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},Kt.gp=function(a){Vn.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)},Kt.Rv=function(){var a=Vn.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+Hh(this,this.linkDataArray,!0);return a+y},Kt.kv=function(a){Vn.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function MS(a,y){for(var x=new hn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];l0(a,y,E,E,x)}return x}Kt.Pv=function(a,y){this.linkKeyProperty===""&&we("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Vn.prototype.Pv.call(this,a,y),b=this,E=new hn,z=new hn,nt=new hn,rt=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===qr?E.add(dt.newValue):dt.change===fo&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&rt&&rt.contains(dt.object)?rt.get(dt.object).each(function(vt){b.Jc(vt)&&z.add(vt)}):dt.object instanceof Vn||b.lb(dt.object)||MS(b,dt.object).each(function(vt){z.add(vt)})))});var st=this.il;st.clear(),E.each(function(dt){st.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),a=x,0<st.count&&(a+=(y?this.Xv:this.Vv)+Hh(this,st.Fa(),!0)),0<z.count&&(a+=this.iy+Hh(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Vv:this.Xv)+Hh(this,ht.Fa(),!0)),ht.clear(),st.clear(),a},Kt.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)&&we("applyIncrementalJson cannot change Model properties"),Vn.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var nt in E)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(z,nt,E[nt]);FS(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(nt=a.length,y=0;y<nt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},qi.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Or){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Nr(x,b,E);return}}else if(a.change===qr){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,tn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===fo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,tn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Vn.prototype.changeState.call(this,a,y)}},Kt=qi.prototype,Kt.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),Nr(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Kt.yx=function(a){return Sa(this,a,!0)},Kt.wv=function(a,y){Of(this,a,y,!0)},Kt.Bx=function(a){return Sa(this,a,!1)},Kt.Bv=function(a,y){Of(this,a,y,!1)};function Sa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Xr(y,a),a!==void 0))){if(Kh(a))return a;we((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Of(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=Xr(y,E);z!==x&&(Sl(a,z,y),Nr(y,E,x),a.hc(x)===null&&yl(a,x,y),ho(a,b?"linkFromKey":"linkToKey",Or,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Nr(y,E,x)}}Kt.zx=function(a){return h0(this,a,!0)},Kt.xv=function(a,y){If(this,a,y,!0)},Kt.Cx=function(a){return h0(this,a,!1)},Kt.Cv=function(a,y){If(this,a,y,!1)};function h0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Xr(y,a),y===void 0?"":y)}function If(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Xr(y,E);z===void 0&&(z=""),z!==x&&(Nr(y,E,x),ho(a,b?"linkFromPortId":"linkToPortId",Or,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Nr(y,E,x)}}Kt.Ef=function(a){if(a===null)return c0;var y=this.je;return y===""?c0:(a=Xr(a,y),a===void 0?c0:a)},Kt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Xr(a,x);if(b===void 0&&(b=c0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Sl(this,b[z],a);for(Nr(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&yl(this,nt,a)}ho(this,"linkLabelKeys",Or,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Nr(a,x,y)}},Kt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Xr(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&yl(this,y,a),ho(this,"linkLabelKeys",qr,x,a,null,y,null,E)))}else we(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Kt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Xr(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Sl(this,y,a),ho(this,"linkLabelKeys",fo,x,a,y,null,E,null)))}else b!==void 0&&we(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Kt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Xr(a,y),y!==void 0)){if(Kh(y))return y;we("Key value for link data "+a+" is not a number or a string: "+y)}}},Kt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Xr(a,x);b!==y&&this.jh(y)===null&&(Nr(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),ho(this,"linkKey",Or,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Nr(a,x,y)}},Kt.jh=function(a){return a===null&&we("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Kh(a)?this.wb.I(a):null},Kt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Nr(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Nr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Nr(a,y,x)}}}}},Kt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Kt.fi=function(a){a!==null&&(tr(a),this.Jc(a)||TS(this,a,!0))};function TS(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&we("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),ho(a,"linkDataArray",qr,"linkDataArray",a,null,y,null,b),fy(a,y)}Kt.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)},Kt.bm=function(a){a!==null&&NS(this,a,!0)};function NS(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(ho(a,"linkDataArray",fo,"linkDataArray",a,y,null,b,null),x=Sa(a,y,!0),Sl(a,x,y),x=Sa(a,y,!1),Sl(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Sl(a,x,y)}Kt.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)},Kt.Zz=function(a){if(this.linkKeyProperty===""&&we("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.Ac(z);if(nt!==void 0){x.add(nt);var rt=this.jh(nt);rt!==z&&(rt!==null?(this.Do(rt,z),FS(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,nt),this.fi(z)))}else nt=this.cloneDeep(z),this.fi(nt),x.add(this.Ac(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function fy(a,y){var x=Sa(a,y,!0);x=a.Vl(x),a.hc(x)===null&&yl(a,x,y),x=Sa(a,y,!1),x=a.Vl(x),a.hc(x)===null&&yl(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&yl(a,x,y)}Kt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):u0(this,a,!0),tn(a)&&(di(a),this.lf!==""&&Nr(a,this.lf,void 0),this.mf!==""&&Nr(a,this.mf,void 0),this.je!==""&&Nr(a,this.je,[])),a},Kt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Xr(a,y)},Kt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Xr(a,y),y!==void 0)){if(Kh(y))return y;we("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Kt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Xr(a,x);b!==y&&(Sl(this,b,a),Nr(a,x,y),this.hc(y)===null&&yl(this,y,a),ho(this,"nodeGroupKey",Or,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Nr(a,x,y)}},qi.prototype.copyNodeData=function(a){return a===null?null:(a=Vn.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Xr(a,this.Je)===void 0||Nr(a,this.Je,void 0),a)},qi.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){Of(this,a,x,!0);return}if(y===this.linkToKeyProperty){Of(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){If(this,a,x,!0);return}if(y===this.linkToPortIdProperty){If(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=Xr(a,y);b!==x&&(Nr(a,y,x),this.Fs(a,y,b,x))},Kt=qi.prototype,Kt.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&Xr(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Kt.jp=function(a,y){Vn.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(Sa(this,b,!0)===E){var nt=this.lf;Nr(b,nt,z),ho(this,"linkFromKey",Or,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(Sa(this,b,!1)===E&&(nt=this.mf,Nr(b,nt,z),ho(this,"linkToKey",Or,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var rt=nt.length,st=this.je,ht=0;ht<rt;ht++)nt[ht]===E&&(nt[ht]=z,ho(this,"linkLabelKeys",qr,st,b,E,z,ht,ht))}},Kt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Nr(a,b,x),ho(this,"nodeGroupKey",Or,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Kt.Lv=function(){Vn.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},Kt.fm=function(a){Vn.prototype.fm.call(this,a),a=this.wa(a);var y=up(this,a);if(y!==null){var x=Fn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;ho(this,"nodeGroupKey",Or,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Sa(this,b,!0)===a&&(E=this.lf,ho(this,"linkFromKey",Or,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Sa(this,b,!1)===a&&(E=this.mf,ho(this,"linkToKey",Or,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,nt=this.je,rt=0;rt<z;rt++)E[rt]===a&&(ho(this,"linkLabelKeys",qr,nt,b,a,a,rt,rt),x.push(b))}for(y=0;y<x.length;y++)Sl(this,a,x[y]);jn(x)}},Kt.em=function(a){Vn.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&yl(this,y,a)},Kt.qp=function(a){Vn.prototype.qp.call(this,a);var y=this.lh(a);Sl(this,y,a)},Kt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Xr(a,y),y===void 0))return"";if(typeof y=="string")return y;we("getCategoryForLinkData found a non-string category for "+a+": "+y)},qi.prototype.getLinkCategoryForData=function(a){return this.ps(a)},qi.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Xr(a,x);b===void 0&&(b=""),b!==y&&(Nr(a,x,y),ho(this,"linkCategory",Or,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Nr(a,x,y)}},qi.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Kt=qi.prototype,Kt.lm=function(a,y){Vn.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function FS(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))}Kt.Wj=function(){return!0},Kt.ri=function(){return!0},Kt.xs=function(){return!0},Kt.Xj=function(){return!0},Ke.Object.defineProperties(qi.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];tn(E)||we("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),tr(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new cn,E=0;E<x;E++){var z=a[E],nt=this.Ac(z);nt===void 0||this.wb.I(nt)!==null?b.add(z):this.wb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new hn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,ho(this,"linkDataArray",Or,"linkDataArray",this,y,a),y=0;y<x;y++)fy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),qi.prototype.setCategoryForLinkData=qi.prototype.lp,qi.prototype.getCategoryForLinkData=qi.prototype.ps,qi.prototype.assignAllDataProperties=qi.prototype.Do,qi.prototype.setGroupKeyForNodeData=qi.prototype.mp,qi.prototype.getGroupKeyForNodeData=qi.prototype.lh,qi.prototype.isGroupForNodeData=qi.prototype.Yu,qi.prototype.copyLinkData=qi.prototype.Jo,qi.prototype.mergeLinkDataArray=qi.prototype.Zz,qi.prototype.removeLinkDataCollection=qi.prototype.lA,qi.prototype.removeLinkData=qi.prototype.bm,qi.prototype.addLinkDataCollection=qi.prototype.Ey,qi.prototype.addLinkData=qi.prototype.fi,qi.prototype.containsLinkData=qi.prototype.Jc,qi.prototype.makeLinkDataKeyUnique=qi.prototype.Bs,qi.prototype.findLinkDataForKey=qi.prototype.jh,qi.prototype.setKeyForLinkData=qi.prototype.Ks,qi.prototype.getKeyForLinkData=qi.prototype.Ac,qi.prototype.removeLabelKeyForLinkData=qi.prototype.Qx,qi.prototype.addLabelKeyForLinkData=qi.prototype.Bu,qi.prototype.setLabelKeysForLinkData=qi.prototype.Ls,qi.prototype.getLabelKeysForLinkData=qi.prototype.Ef,qi.prototype.setToPortIdForLinkData=qi.prototype.Cv,qi.prototype.getToPortIdForLinkData=qi.prototype.Cx,qi.prototype.setFromPortIdForLinkData=qi.prototype.xv,qi.prototype.getFromPortIdForLinkData=qi.prototype.zx,qi.prototype.setToKeyForLinkData=qi.prototype.Bv,qi.prototype.getToKeyForLinkData=qi.prototype.Bx,qi.prototype.setFromKeyForLinkData=qi.prototype.wv,qi.prototype.getFromKeyForLinkData=qi.prototype.yx,qi.prototype.clear=qi.prototype.clear;var c0=Object.freeze([]);qi.className="GraphLinksModel",al.GraphLinksModel=qi,Vn.constructGraphLinksModel=Vn.constructGraphLinksModel=function(){return new qi},Vn.initDiagramModel=cy=function(){return new qi};function Es(a,y){Vn.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Je(Es,Vn),Es.constructGraphLinksModel=Vn.constructGraphLinksModel,Es.prototype.cloneProtected=function(a){Vn.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Kt=Es.prototype,Kt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Ai(E)}}return y},Kt.rm=function(){var a=Vn.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Kt.gp=function(a){Vn.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Kt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&we("applyIncrementalJson cannot change Model properties"),Vn.prototype.fp.call(this,a)},Kt.Vl=function(a){return a},Kt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Xr(a,y),y!==void 0)){if(Kh(y))return y;we("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Kt.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=Xr(a,x);b!==y&&(Sl(this,b,a),Nr(a,x,y),this.hc(y)===null&&yl(this,y,a),ho(this,"nodeParentKey",Or,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Nr(a,x,y)}},Kt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Xr(a,y),y===void 0)?"":typeof y=="string"?y:(we("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Es.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Es.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Xr(a,x);b===void 0&&(b=""),b!==y&&(Nr(a,x,y),ho(this,"parentLinkCategory",Or,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Nr(a,x,y)}},Es.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Es.prototype.copyNodeData=function(a){return a===null?null:(a=Vn.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Xr(a,this.Ke)===void 0||Nr(a,this.Ke,void 0),a)},Es.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=Xr(a,y);b!==x&&(Nr(a,y,x),this.Fs(a,y,b,x))},Kt=Es.prototype,Kt.jp=function(a,y){Vn.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Kt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Nr(a,b,x),ho(this,"nodeParentKey",Or,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Kt.fm=function(a){Vn.prototype.fm.call(this,a),a=this.wa(a);var y=up(this,a);if(y!==null){var x=Fn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;ho(this,"nodeParentKey",Or,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Sl(this,a,x[y]);jn(x)}},Kt.em=function(a){Vn.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&yl(this,y,a)},Kt.qp=function(a){Vn.prototype.qp.call(this,a);var y=this.mh(a);Sl(this,y,a)},Kt.lm=function(a,y){Vn.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Kt.Tl=function(){return!0},Kt.xs=function(){return!0},Ke.Object.defineProperties(Es.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"}}}),Es.prototype.setParentLinkCategoryForNodeData=Es.prototype.Ms,Es.prototype.getParentLinkCategoryForNodeData=Es.prototype.ss,Es.prototype.setParentKeyForNodeData=Es.prototype.qe,Es.prototype.getParentKeyForNodeData=Es.prototype.mh,Es.className="TreeModel",al.TreeModel=Es;function Wr(a){Dr.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ll,this.Ti=0,this.Zv=new xe,this.Jp=this.me=0,this.Xr=new pp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ll,this.K=Ms,this.nd=jf,this.hd=oy,this.tf=6,this.Nn=y0,a&&Object.assign(this,a)}Je(Wr,Dr),Wr.prototype.cloneProtected=function(a){Dr.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},Wr.prototype.qb=function(a){a.classType===Wr?a===m0||a===v0||a===g0||a===p0||a===jf?this.sorting=a:a===zc||a===Rf||a===Ms||a===Yh?this.direction=a:a===uh||a===Vh||a===ll||a===ul?this.arrangement=a:(a===Ed||a===y0)&&(this.nodeDiameterFormula=a):Dr.prototype.qb.call(this,a)},Wr.prototype.createNetwork=function(){return new zf(this)},Wr.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 cn;y.addAll(a.iterator),a=new cn;var x=new cn,b=this.sort(y),E,z,nt=this.Jp,rt=this.arrangement,st=this.nodeDiameterFormula,ht=this.radius;(!isFinite(ht)||0>=ht)&&(ht=NaN);var dt=this.aspectRatio;(!isFinite(dt)||0>=dt)&&(dt=1);var vt=this.startAngle;isFinite(vt)||(vt=0);var Ft=this.sweepAngle;if((!isFinite(Ft)||360<Ft||1>Ft)&&(Ft=360),y=this.spacing,isFinite(y)||(y=NaN),rt===ul&&st===Ed?rt=ll:rt===ul&&st!==Ed&&(rt=this.arrangement),(this.direction===zc||this.direction===Rf)&&this.sorting!==jf){for(st=0;!(st>=b.length)&&(a.add(b.M(st)),!(st+1>=b.length));st+=2)x.add(b.M(st+1));this.direction===zc?(this.arrangement===ul&&a.reverse(),b=new cn,b.addAll(a),b.addAll(x)):(this.arrangement===ul&&x.reverse(),b=new cn,b.addAll(x),b.addAll(a))}st=b.length;for(var Wt=z=E=0;Wt<b.length;Wt++){var Ht=vt+Ft*z*(this.direction===Ms?1:-1)/st,ne=b.M(Wt).diameter;isNaN(ne)&&(ne=Zh(b.M(Wt),Ht)),360>Ft&&(Wt===0||Wt===b.length-1)&&(ne/=2),E+=ne,z++}if(isNaN(ht)||rt===ul){if(isNaN(y)&&(y=6),rt!==ll&&rt!==ul){for(z=-1/0,nt=0;nt<st;nt++)Wt=b.M(nt),E=b.M(nt===st-1?0:nt+1),isNaN(Wt.diameter)&&Zh(Wt,0),isNaN(E.diameter)&&Zh(E,0),z=Math.max(z,(Wt.diameter+E.diameter)/2);nt=z+y,rt===uh?ht=(z+y)/(2*Math.PI/st):ht=d0(this,nt*(360<=Ft?st:st-1),dt,vt*Math.PI/180,Ft*Math.PI/180)}else ht=d0(this,E+(360<=Ft?st:st-1)*(rt!==ul?y:1.6*y),dt,vt*Math.PI/180,Ft*Math.PI/180);z=ht*dt}else if(z=ht*dt,Wt=gy(this,ht,z,vt*Math.PI/180,Ft*Math.PI/180),isNaN(y))(rt===ll||rt===ul)&&(y=(Wt-E)/(360<=Ft?st:st-1));else if(rt===ll||rt===ul)Wt=(Wt-E)/(360<=Ft?st:st-1),Wt<y?(ht=d0(this,E+y*(360<=Ft?st:st-1),dt,vt*Math.PI/180,Ft*Math.PI/180),z=ht*dt):y=Wt;else{for(nt=-1/0,E=0;E<st;E++)Ht=b.M(E),ne=b.M(E===st-1?0:E+1),isNaN(Ht.diameter)&&Zh(Ht,0),isNaN(ne.diameter)&&Zh(ne,0),nt=Math.max(nt,(Ht.diameter+ne.diameter)/2);nt+=y,E=d0(this,nt*(360<=Ft?st:st-1),dt,vt*Math.PI/180,Ft*Math.PI/180),E>ht?(ht=E,z=ht*dt):nt=Wt/(360<=Ft?st:st-1)}if(this.kw=rt,this.lc=ht,this.Zm=dt,this.lw=vt,this.Wp=Ft,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,rt=this.lc,ht=this.lw,dt=this.Wp,vt=this.Ti,Ft=this.me,st=this.Jp,this.direction!==zc&&this.direction!==Rf||b!==ul)if(this.direction===zc||this.direction===Rf){switch(nt=0,b){case Vh:nt=180*f0(this,rt,Ft,ht,st)/Math.PI;break;case ll:st=y=0,nt=a.first(),nt!==null&&(y=Zh(nt,Math.PI/2)),nt=x.first(),nt!==null&&(st=Zh(nt,Math.PI/2)),nt=180*f0(this,rt,Ft,ht,vt+(y+st)/2)/Math.PI;break;case uh:nt=dt/y.length}if(this.direction===zc){switch(b){case Vh:gp(this,a,ht,Yh);break;case ll:fp(this,a,ht,Yh);break;case uh:dp(this,a,dt/2,ht,Yh)}switch(b){case Vh:gp(this,x,ht+nt,Ms);break;case ll:fp(this,x,ht+nt,Ms);break;case uh:dp(this,x,dt/2,ht+nt,Ms)}}else{switch(b){case Vh:gp(this,x,ht,Yh);break;case ll:fp(this,x,ht,Yh);break;case uh:dp(this,x,dt/2,ht,Yh)}switch(b){case Vh:gp(this,a,ht+nt,Ms);break;case ll:fp(this,a,ht+nt,Ms);break;case uh:dp(this,a,dt/2,ht+nt,Ms)}}}else switch(b){case Vh:gp(this,y,ht,this.direction);break;case ll:fp(this,y,ht,this.direction);break;case uh:dp(this,y,dt,ht,this.direction);break;case ul:DS(this,y,dt,ht,this.direction)}else DS(this,y,dt,ht-dt/2,Ms)}this.updateParts(),this.network=null,this.isValidLayout=!0};function dp(a,y,x,b,E){var z=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,st=0;st<rt;st++){var ht=b+(E===Ms?st*x/(360<=z?rt:rt-1):-(st*x)/rt),dt=y.M(st),vt=nt*Math.tan(ht)/a;vt=Math.sqrt((nt*nt+a*a*vt*vt)/(1+vt*vt)),dt.centerX=vt*Math.cos(ht),dt.centerY=vt*Math.sin(ht),dt.actualAngle=180*ht/Math.PI}}function fp(a,y,x,b){var E=a.lc,z=a.me,nt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,st=0;st<rt;st++){var ht=y.M(st),dt=y.M(st===rt-1?0:st+1),vt=z*Math.sin(x);ht.centerX=E*Math.cos(x),ht.centerY=vt,ht.actualAngle=180*x/Math.PI,isNaN(ht.diameter)&&Zh(ht,0),isNaN(dt.diameter)&&Zh(dt,0),ht=f0(a,E,z,b===Ms?x:-x,(ht.diameter+dt.diameter)/2+nt),x+=b===Ms?ht:-ht}}function gp(a,y,x,b){var E=a.lc,z=a.me,nt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,st=0;st<rt;st++){var ht=y.M(st);ht.centerX=E*Math.cos(x),ht.centerY=z*Math.sin(x),ht.actualAngle=180*x/Math.PI,ht=f0(a,E,z,b===Ms?x:-x,nt),x+=b===Ms?ht:-ht}}function DS(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new pp,360>x){for(z=b+(E===Ms?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,OS(a,y,x,b,E)}else BS(a,y,x,b,E);a.Xr.commit(y)}function BS(a,y,x,b,E){var z=a.lc,nt=a.Ti,rt=a.Zm,st=z*Math.cos(b*Math.PI/180),ht=a.me*Math.sin(b*Math.PI/180),dt=y.Fa();if(dt.length===3)dt[0].centerX=z,dt[0].centerY=0,dt[1].centerX=dt[0].centerX-dt[0].width/2-dt[1].width/2-nt,dt[1].y=dt[0].y,dt[2].centerX=(dt[0].centerX+dt[1].centerX)/2,dt[2].y=dt[0].y-dt[2].height-nt;else if(dt.length===4)dt[0].centerX=z,dt[0].centerY=0,dt[2].centerX=-dt[0].centerX,dt[2].centerY=dt[0].centerY,dt[1].centerX=0,dt[1].y=Math.min(dt[0].y,dt[2].y)-dt[1].height-nt,dt[3].centerX=0,dt[3].y=Math.max(dt[0].y+dt[0].height+nt,dt[2].y+dt[2].height+nt);else{z=xe.alloc();for(var vt=0;vt<dt.length&&(dt[vt].centerX=st,dt[vt].centerY=ht,!(vt>=dt.length-1));vt++)IS(a,st,ht,dt,vt,E,z)||RS(a,st,ht,dt,vt,E,z),st=z.x,ht=z.y;if(xe.free(z),a.mj++,!(23<a.mj)){st=dt[0].centerX,ht=dt[0].centerY,z=dt[dt.length-1].centerX,vt=dt[dt.length-1].centerY;var Ft=Math.abs(st-z)-((dt[0].width+dt[dt.length-1].width)/2+nt),Wt=Math.abs(ht-vt)-((dt[0].height+dt[dt.length-1].height)/2+nt);nt=0,1>Math.abs(Wt)?Math.abs(st-z)<(dt[0].width+dt[dt.length-1].width)/2&&(nt=0):nt=0<Wt?Wt:1>Math.abs(Ft)?0:Ft,st=Math.abs(z)>Math.abs(vt)?0<z!=ht>vt:0<vt!=st<z,(st=E===Ms?st:!st)&&(nt=-Math.abs(nt),nt=Math.min(nt,-dt[dt.length-1].width),nt=Math.min(nt,-dt[dt.length-1].height)),a.Xr.compare(nt,dt),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>dt.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*rt,BS(a,y,x,b,E))}}}function OS(a,y,x,b,E){for(var z=a.lc,nt=a.me,rt=a.Zm,st=z*Math.cos(b*Math.PI/180),ht=nt*Math.sin(b*Math.PI/180),dt=xe.alloc(),vt=y.Fa(),Ft=0;Ft<vt.length&&(vt[Ft].centerX=st,vt[Ft].centerY=ht,!(Ft>=vt.length-1));Ft++)IS(a,st,ht,vt,Ft,E,dt)||RS(a,st,ht,vt,Ft,E,dt),st=dt.x,ht=dt.y;if(xe.free(dt),a.mj++,!(23<a.mj)){if(st=Math.atan2(ht,st),st=E===Ms?a.gt-st:st-a.gt,st=Math.abs(st)<Math.abs(st-2*Math.PI)?st:st-2*Math.PI,z=st*(z+nt)/2,nt=a.Xr,Math.abs(z)<Math.abs(nt.Pl))for(nt.Pl=z,nt.mk=[],nt.tm=[],st=0;st<vt.length;st++)nt.mk[st]=vt[st].bounds.x,nt.tm[st]=vt[st].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*rt,OS(a,y,x,b,E))}}function IS(a,y,x,b,E,z,nt){var rt=a.lc,st=a.me,ht=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var dt=!1;if(0<=x!=(z===Ms)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return nt.x=z,nt.y=ht,!1;dt=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return nt.x=z,nt.y=ht,!1;dt=!0}return ht=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*st,0>x!==dt&&(ht=-ht),Math.abs(x-ht)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ht,!1):(nt.x=z,nt.y=ht,!0)}function RS(a,y,x,b,E,z,nt){var rt=a.lc,st=a.me,ht=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Ms)){if(z=x-a,z<-st){if(z=x+a,z>st){nt.x=ht,nt.y=z;return}b=!0}}else if(z=x+a,z>st){if(z=x-a,z<-st){nt.x=ht,nt.y=z;return}b=!0}ht=Math.sqrt(1-Math.min(1,z*z/(st*st)))*rt,0>y!==b&&(ht=-ht),nt.x=ht,nt.y=z}Wr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Wr.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 xe(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Wr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var nt=0,rt=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),st=0,ht=0;ht<=z;ht++){b!==void 0&&E!==void 0?st=b+ht*E/z:st=ht*Math.PI/(2*z);var dt=Math.sin(st);nt+=Math.sqrt(1-a*a*dt*dt)*rt}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function d0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?gy(a,1,x,b,E):gy(a,1,x))}function f0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var rt=0;;rt++){var st=Math.sin(b+rt*a);if(nt+=(y>x?y:x)*Math.sqrt(1-z*z*st*st)*a,nt>=E)return rt*a}}Wr.prototype.sort=function(a){switch(this.sorting){case g0:break;case p0:a.reverse();break;case m0:a.sort(this.comparer);break;case v0:a.sort(this.comparer),a.reverse();break;case jf:return this.ak(Bx(a));default:we("Invalid sorting type.")}return a};function Bx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new cn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var rt=a.M(nt).edgesCount;rt>E&&(E=rt,z=nt)}else for(nt=0;nt<a.length;nt++)rt=y[nt],rt>E&&(E=rt,z=nt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),nt=z.sourceEdges;nt.next();)E=a.indexOf(nt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Wr.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var nt=[],rt=[];b=[],E=new cn;for(var st=0,ht=0;ht<y.length;ht++){var dt=y[ht].length;if(dt===1)b.push(ht);else if(dt===0)E.add(a.M(ht));else{if(st===0)x.push(ht);else{for(var vt=dt=1/0,Ft=-1,Wt=[],Ht=0;Ht<x.length;Ht++)0>y[x[Ht]].indexOf(x[Ht===x.length-1?0:Ht+1])&&Wt.push(Ht===x.length-1?0:Ht+1);if(Wt.length===0)for(Ht=0;Ht<x.length;Ht++)Wt.push(Ht);for(Ht=0;Ht<Wt.length;Ht++){for(var ne=Wt[Ht],ve=y[ht],fe=0,Ce=0;Ce<nt.length;Ce++){var ke=z[nt[Ce]],Me=z[rt[Ce]];if(ke<Me){var De=ke;ke=Me}else De=Me;if(De<ne&&ne<=ke)for(Me=0;Me<ve.length;Me++){var Ve=ve[Me];0>x.indexOf(Ve)||De<z[Ve]&&z[Ve]<ke||De===z[Ve]||ke===z[Ve]||fe++}else for(Me=0;Me<ve.length;Me++)Ve=ve[Me],0>x.indexOf(Ve)||De<z[Ve]&&z[Ve]<ke&&De!==z[Ve]&&ke!==z[Ve]&&fe++}for(ve=fe,Ce=fe=0;Ce<y[ht].length;Ce++)De=x.indexOf(y[ht][Ce]),0<=De&&(De=Math.abs(ne-(De>=ne?De+1:De)),fe+=De<x.length+1-De?De:x.length+1-De);for(Ce=0;Ce<nt.length;Ce++)De=z[nt[Ce]],ke=z[rt[Ce]],De>=ne&&De++,ke>=ne&&ke++,De>ke&&(Me=ke,ke=De,De=Me),ke-De<(x.length+2)/2==(De<ne&&ne<=ke)&&fe++;(ve<dt||ve===dt&&fe<vt)&&(dt=ve,vt=fe,Ft=ne)}for(x.splice(Ft,0,ht),dt=0;dt<x.length;dt++)z[x[dt]]=dt;for(dt=0;dt<y[ht].length;dt++)vt=y[ht][dt],0<=x.indexOf(vt)&&(nt.push(ht),rt.push(vt))}st++}}for(nt=x.length;;){for(z=!0,rt=0;rt<b.length;rt++)if(st=b[rt],ht=y[st][0],dt=x.indexOf(ht),0<=dt){for(Ft=vt=0;Ft<y[ht].length;Ft++)Wt=x.indexOf(y[ht][Ft]),0>Wt||Wt===dt||(Ht=Wt>dt?Wt-dt:dt-Wt,vt+=Wt<dt!=Ht>nt-Ht?1:-1);x.splice(0>vt?dt:dt+1,0,st),b.splice(rt,1),rt--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Ke.Object.defineProperties(Wr.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!==ul&&a!==ll&&a!==Vh&&a!==uh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ms&&a!==Yh&&a!==zc&&a!==Rf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==g0&&a!==p0&&a!==m0&&!v0&&a!==jf||(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!==y0&&a!==Ed||(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 ll=new an(Wr,"ConstantSpacing",0),Vh=new an(Wr,"ConstantDistance",1),uh=new an(Wr,"ConstantAngle",2),ul=new an(Wr,"Packed",3),Ms=new an(Wr,"Clockwise",4),Yh=new an(Wr,"Counterclockwise",5),zc=new an(Wr,"BidirectionalLeft",6),Rf=new an(Wr,"BidirectionalRight",7),g0=new an(Wr,"Forwards",8),p0=new an(Wr,"Reverse",9),m0=new an(Wr,"Ascending",10),v0=new an(Wr,"Descending",11),jf=new an(Wr,"Optimized",12),y0=new an(Wr,"Pythagorean",13),Ed=new an(Wr,"Circular",14);Wr.className="CircularLayout",Wr.ConstantSpacing=ll,Wr.ConstantDistance=Vh,Wr.ConstantAngle=uh,Wr.Packed=ul,Wr.Clockwise=Ms,Wr.Counterclockwise=Yh,Wr.BidirectionalLeft=zc,Wr.BidirectionalRight=Rf,Wr.Forwards=g0,Wr.Reverse=p0,Wr.Ascending=m0,Wr.Descending=v0,Wr.Optimized=jf,Wr.Pythagorean=y0,Wr.Circular=Ed;function pp(){this.Pl=-1/0,this.tm=this.mk=null}pp.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},pp.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]}},pp.className="VertexArrangement";function zf(a){Pr.call(this,a)}Je(zf,Pr),zf.prototype.createVertex=function(){return new mp(this)},zf.prototype.createEdge=function(){return new S0(this)},zf.className="CircularNetwork";function mp(a){mo.call(this,a),this.u=this.Si=NaN}Je(mp,mo);function Zh(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===ul)if(x.nodeDiameterFormula===Ed)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===Ed?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Ke.Object.defineProperties(mp.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)}}}),mp.className="CircularVertex";function S0(a){ra.call(this,a)}Je(S0,ra),S0.className="CircularEdge";function Zo(a){Dr.call(this),this.ah=null,this.An=0,this.$d=new wn(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)}Je(Zo,Dr),Zo.prototype.cloneProtected=function(a){Dr.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},Zo.prototype.createNetwork=function(){return new Md(this)},Zo.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}jS(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var rt=nt.count,st=!0;z=E=0;for(var ht=Fn(),dt=0;dt<rt+y.vertexes.count+2;dt++)ht[dt]=null;rt=0,nt.reset();for(var vt=en.alloc();nt.next();)if(dt=nt.value,this.computeBounds(dt,vt),st)st=!1,E=vt.x+vt.width/2,z=vt.y+vt.height/2,ht[0]=new xe(vt.x+vt.width+b.width,vt.y),ht[1]=new xe(vt.x,vt.y+vt.height+b.height),rt=2;else{var Ft=zS(ht,rt,E,z,vt.width,vt.height,b),Wt=ht[Ft],Ht=new xe(Wt.x+vt.width+b.width,Wt.y),ne=new xe(Wt.x,Wt.y+vt.height+b.height);for(Ft+1<rt&&ht.splice(Ft+1,0,null),ht[Ft]=Ht,ht[Ft+1]=ne,rt++,Ft=Wt.x-vt.x,Wt=Wt.y-vt.y,dt=dt.vertexes.iterator;dt.next();)Ht=dt.value,Ht.centerX+=Ft,Ht.centerY+=Wt}for(en.free(vt),dt=y.vertexes.iterator;dt.next();)nt=dt.value,Ft=nt.bounds,2>rt?(E=Ft.x+Ft.width/2,z=Ft.y+Ft.height/2,ht[0]=new xe(Ft.x+Ft.width+b.width,Ft.y),ht[1]=new xe(Ft.x,Ft.y+Ft.height+b.height),rt=2):(st=zS(ht,rt,E,z,Ft.width,Ft.height,b),vt=ht[st],Wt=new xe(vt.x+Ft.width+b.width,vt.y),Ft=new xe(vt.x,vt.y+Ft.height+b.height),st+1<rt&&ht.splice(st+1,0,null),ht[st]=Wt,ht[st+1]=Ft,rt++,nt.centerX=vt.x+nt.width/2,nt.centerY=vt.y+nt.height/2);for(jn(ht),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}GS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Zo.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Zo.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function jS(a,y,x){if(Ox(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ix(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,jS(a,y+1,x),GS(a,z),Rx(a,E),y=E.vertexes.Fa(),y.sort(function(nt,rt){return nt===null||rt===null||nt===rt?0:rt.Vd-nt.Vd}),x=0;x<y.length;x++)jx(a,y[x]);a.Zf=b}}function Ox(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ix(a,y){for(var x=a.network,b=new Md(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var nt=new US;nt.Rs=z.Vd,nt.Ss=z.width,nt.Qs=z.height,nt.Sv=z.focus.x,nt.Tv=z.focus.y,z.We===null&&(z.We=new cn),z.We.add(nt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;E=rt.fromVertex,nt=rt.toVertex,E.network===b&&nt.network===b?b.Bo(rt):E.network===b?(rt=E.Hj,rt===null&&(rt=new cn,E.Hj=rt),rt.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(rt=nt.Hj,rt===null&&(rt=new cn,nt.Hj=rt),rt.add(E),nt.Vd--,nt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Ie.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var st=E.Hj;if(st!==null&&0<st.count&&(nt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=nt))){for(var ht=rt=0,dt=st.count-nt;dt<st.count;dt++){var vt=st.M(dt),Ft=null;for(z=vt.edges.iterator;z.next();){var Wt=z.value;if(Wt.Ax(vt)===E){Ft=Wt;break}}Ft!==null&&(ht+=Ft.length,rt+=vt.width*vt.height)}z=E.centerX,st=E.centerY,dt=E.width,vt=E.height,Ft=E.focus,Wt=dt*vt,1>Wt&&(Wt=1),rt=Ie.sqrt((rt+Wt+ht*ht*4/(nt*nt))/Wt),nt=(rt-1)*dt/2,rt=(rt-1)*vt/2,E.bounds=new en(z-Ft.x-nt,st-Ft.y-rt,dt+2*nt,vt+2*rt),E.focus=new xe(Ft.x+nt,Ft.y+rt)}}return a.network=b,x}function Rx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,nt=E.Tv;b.bounds=new en(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new xe(z,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),z=nt.Ss,nt=nt.Qs),z=Ie.sqrt(z*z+nt*nt)/2;for(var rt=!1,st=nt=0,ht=0,dt=y.vertexes.iterator;dt.next();){var vt=dt.value;1>=vt.Vd?st++:(rt=!0,ht++,nt+=Math.atan2(y.centerY-vt.centerY,y.centerX-vt.centerX))}if(st!==0){for(0<ht&&(nt/=ht),ht=y=0,y=rt?2*Math.PI/(st+1):2*Math.PI/st,st%2===0&&(ht=y/2),1<x.count&&x.sort(function(Wt,Ht){return Wt===null||Ht===null||Wt===Ht?0:Ht.width*Ht.height-Wt.width*Wt.height}),rt=st%2===0?0:1,x=x.iterator;x.next();)if(st=x.value,!(1<st.Vd||a.isFixed(st))){for(dt=null,vt=st.edges.iterator;vt.next();){dt=vt.value;break}vt=st.width;var Ft=st.height;vt=Ie.sqrt(vt*vt+Ft*Ft)/2,dt=z+dt.length+vt,vt=nt+(y*(rt/2>>1)+ht)*(rt%2===0?1:-1),st.centerX=b+dt*Math.cos(vt),st.centerY=E+dt*Math.sin(vt),rt++}}}}function zS(a,y,x,b,E,z,nt){var rt=9e19,st=-1,ht=0;t:for(;ht<y;ht++){var dt=a[ht],vt=dt.x-x,Ft=dt.y-b;if(vt=vt*vt+Ft*Ft,vt<rt){for(Ft=ht-1;0<=Ft;Ft--)if(a[Ft].y>dt.y&&a[Ft].x-dt.x<E+nt.width)continue t;for(Ft=ht+1;Ft<y;Ft++)if(a[Ft].x>dt.x&&a[Ft].y-dt.y<z+nt.height)continue t;st=ht,rt=vt}}return st}Zo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Zo.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function WS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,nt=z.x;y=z.y;var rt=z.width;return z=z.height,b+E<nt?a>y+z?(x=b+E-nt,a=a-y-z,Ie.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,Ie.sqrt(b*b+a*a)):nt-(b+E):b>nt+rt?a>y+z?(x=b-nt-rt,a=a-y-z,Ie.sqrt(x*x+a*a)):a+x<y?(b=b-nt-rt,a=a+x-y,Ie.sqrt(b*b+a*a)):b-(nt+rt):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++,zx(a)););a.ah=null}function zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,nt=1;nt<y.length;nt++){var rt=y[nt];rt.forceX=0,rt.forceY=0;var st=rt.centerX;rt=rt.centerY,b=Math.min(b,st),E=Math.max(E,st),x=Math.min(x,rt),z=Math.max(z,rt)}(E=E-b>z-x)?y.sort(function(ne,ve){return ne===null||ve===null||ne===ve?0:ne.centerX-ve.centerX}):y.sort(function(ne,ve){return ne===null||ve===null||ne===ve?0:ne.centerY-ve.centerY}),x=a.Zf;var ht=b=rt=0;for(z=0;z<y.length;z++){nt=y[z],b=nt.bounds,rt=nt.focus,st=b.x+rt.x;var dt=b.y+rt.y;b=nt.charge*a.electricalFieldX(st,dt),ht=nt.charge*a.electricalFieldY(st,dt),b+=nt.mass*a.gravitationalFieldX(st,dt),ht+=nt.mass*a.gravitationalFieldY(st,dt),nt.forceX+=b,nt.forceY+=ht;for(var vt=z+1;vt<y.length;vt++){var Ft=y[vt];if(Ft!==nt){b=Ft.bounds,rt=Ft.focus,ht=b.x+rt.x;var Wt=b.y+rt.y;if(st-ht>x||ht-st>x){if(E)break}else if(dt-Wt>x||Wt-dt>x){if(!E)break}else{var Ht=WS(nt,Ft);1>Ht?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new x0),Ht=b.random(),rt=b.random(),st>ht?(b=Math.abs(Ft.bounds.right-nt.bounds.x),b=(1+b)*Ht):st<ht?(b=Math.abs(Ft.bounds.x-nt.bounds.right),b=-(1+b)*Ht):(b=Math.max(Ft.width,nt.width),b=(1+b)*Ht-b/2),dt>Wt?(ht=Math.abs(Ft.bounds.bottom-nt.bounds.y),ht=(1+ht)*rt):st<ht?(ht=Math.abs(Ft.bounds.y-nt.bounds.bottom),ht=-(1+ht)*rt):(ht=Math.max(Ft.height,nt.height),ht=(1+ht)*rt-ht/2)):(rt=-(nt.charge*Ft.charge)/(Ht*Ht),b=(ht-st)/Ht*rt,ht=(Wt-dt)/Ht*rt),nt.forceX+=b,nt.forceY+=ht,Ft.forceX-=b,Ft.forceY-=ht}}}}for(E=a.network.edges.iterator;E.next();)rt=E.value,x=rt.fromVertex,z=rt.toVertex,nt=x.bounds,st=x.focus,b=nt.x+st.x,nt=nt.y+st.y,dt=z.bounds,vt=z.focus,st=dt.x+vt.x,dt=dt.y+vt.y,vt=WS(x,z),1>vt?(vt=a.randomNumberGenerator,vt===null&&(a.randomNumberGenerator=vt=new x0),rt=vt.random(),vt=vt.random(),b=(b>st?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,ht=(nt>dt?1:-1)*(1+(z.height>x.height?z.height:x.height))*vt):(rt=rt.stiffness*(vt-rt.length),b=(st-b)/vt*rt,ht=(dt-nt)/vt*rt),x.forceX+=b,x.forceY+=ht,z.forceX-=b,z.forceY-=ht;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}Zo.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},Zo.prototype.moveFixedVertex=function(){},Zo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Zo.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Fo,y.toSpot=Fo)}},Zo.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=en.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,en.free(x)}x=en.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}en.free(x)},Zo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Zo.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Zo.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Zo.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Zo.prototype.electricalFieldX=function(){return 0},Zo.prototype.electricalFieldY=function(){return 0},Zo.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Zo.prototype.gravitationalFieldX=function(){return 0},Zo.prototype.gravitationalFieldY=function(){return 0},Zo.prototype.isFixed=function(a){return a.isFixed},Ke.Object.defineProperties(Zo.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"&&we('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())}}}),Zo.className="ForceDirectedLayout";function US(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}US.className="ForceDirectedSubnet";function Md(a){Pr.call(this,a)}Je(Md,Pr),Md.prototype.createVertex=function(){return new vp(this)},Md.prototype.createEdge=function(){return new yp(this)},Md.className="ForceDirectedNetwork";function vp(a){mo.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}Je(vp,mo),Ke.Object.defineProperties(vp.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)}}}),vp.className="ForceDirectedVertex";function yp(a){ra.call(this,a),this.j=this.o=NaN}Je(yp,ra),Ke.Object.defineProperties(yp.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)}}}),yp.className="ForceDirectedEdge";function x0(){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()}x0.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},x0.className="RandomNumberGenerator";function dr(a){Dr.call(this),this.kc=this.ie=25,this.K=0,this.Dk=A0,this.Zk=L0,this.Qk=k0,this.bj=4,this.rk=E0,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 xe,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Je(dr,Dr),dr.prototype.cloneProtected=function(a){Dr.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},dr.prototype.qb=function(a){a.classType===dr?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:we("Unknown enum value: "+a):Dr.prototype.qb.call(this,a)},dr.prototype.createNetwork=function(){return new Gf(this)},dr.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!==xp&&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===xp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var nt=0,rt=0,st=0,ht=0;if(b.link!==null){if(rt=b.link,rt===null)continue;var dt=E.node;if(nt=z.node,dt===null||nt===null)continue;var vt=rt.fromNode;st=rt.toNode;for(var Ft=rt.fromPort;Ft!==null&&!Ft.Ed();)Ft=Ft.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(b.rev){ht=vt;var Wt=Ft;vt=st,Ft=rt,st=ht,rt=Wt}var Ht=E.focus;ht=z.focus;var ne=b.rev?z.bounds:E.bounds;Wt=xe.alloc(),dt!==vt?ne.w()&&vt.isVisible()?vt.actualBounds.w()?(rh(vt,Ft,Oi,Wt),Wt.x+=vt.actualBounds.x-ne.x,Wt.y+=vt.actualBounds.y-ne.y):(rh(vt,Ft,Oi,Wt),Wt.w()||Wt.assign(Ht)):Wt.assign(Ht):ne.w()?(rh(vt,Ft,Oi,Wt),Wt.w()||Wt.assign(Ht)):Wt.assign(Ht),vt=b.rev?E.bounds:z.bounds,dt=xe.alloc(),nt!==st?vt.w()&&st.isVisible()?st.actualBounds.w()?(rh(st,rt,Oi,dt),dt.x+=st.actualBounds.x-vt.x,dt.y+=st.actualBounds.y-vt.y):(rh(st,rt,Oi,dt),dt.w()||dt.assign(ht)):dt.assign(ht):vt.w()?(rh(st,rt,Oi,dt),dt.w()||dt.assign(ht)):dt.assign(ht),this.K===90||this.K===270?(nt=Math.round((Wt.x-Ht.x)/this.kc),st=Wt.x,rt=Math.round((dt.x-ht.x)/this.kc),ht=dt.x):(nt=Math.round((Wt.y-Ht.y)/this.kc),st=Wt.y,rt=Math.round((dt.y-ht.y)/this.kc),ht=dt.y),xe.free(Wt),xe.free(dt),b.portFromColOffset=nt,b.portFromPos=st,b.portToColOffset=rt,b.portToPos=ht}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Wt=E.layer,dt=z.layer,vt=0,ne=b.link,ne!==null){var ve=ne.fromPort,fe=ne.toPort;if(ve!==null&&fe!==null){var Ce=ne.fromNode;if(Ft=ne.toNode,Ce!==null&&Ft!==null){var ke=b0(this,!0),Me=b0(this,!1),De=this.setsPortSpots?ke:ne.computeSpot(!0,ve);Ht=this.setsPortSpots?Me:ne.computeSpot(!1,fe);var Ve=ne.isOrthogonal;De.$c()&&De.Hf(Me)&&Ht.$c()&&Ht.Hf(ke)?vt=0:(ke=ne.getLinkPoint(Ce,ve,De,!0,Ve,Ft,fe,xe.alloc()),Me=ne.getLinkDirection(Ce,ve,ke,De,!0,Ve,Ft,fe),xe.free(ke),De.ys()||Me!==QS(this,b,!0)?this.setsPortSpots&&Ce!==null&&Ce.ports.count===1&&b.rev&&(vt+=1):vt+=1,De=ne.getLinkPoint(Ft,fe,Ht,!1,Ve,Ce,ve,xe.alloc()),ne=ne.getLinkDirection(Ft,fe,De,Ht,!1,Ve,Ce,ve),xe.free(De),Ht.ys()||ne!==QS(this,b,!1)?this.setsPortSpots&&Ft!==null&&Ft.ports.count===1&&b.rev&&(vt+=2):vt+=2)}}}if(Ft=vt,vt=Ft===1||Ft===3,(Ft=Ft===2||Ft===3)&&(Ht=a.createVertex(),Ht.node=null,Ht.Dj=1,Ht.layer=Wt,Ht.near=E,a.dh(Ht),E=a.Zj(E,Ht,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=st,E.portToPos=0,E=Ht),ne=1,vt&&ne--,Wt-dt>ne&&0<Wt){for(b.valid=!1,Ht=a.createVertex(),Ht.node=null,Ht.Dj=2,Ht.layer=Wt-1,a.dh(Ht),E=a.Zj(E,Ht,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ft?0:nt,E.portToColOffset=0,E.portFromPos=Ft?0:st,E.portToPos=0,E=Ht,Wt--;Wt-dt>ne&&0<Wt;)Ht=a.createVertex(),Ht.node=null,Ht.Dj=3,Ht.layer=Wt-1,a.dh(Ht),E=a.Zj(E,Ht,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Ht,Wt--;E=a.Zj(Ht,z,b.link),E.valid=!vt,vt&&(Ht.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=rt,E.portFromPos=0,E.portToPos=ht}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=Xh(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),Jh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},dr.prototype.linkMinLength=function(){return 1};function py(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}dr.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},dr.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 Us(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function Oa(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function _S(a,y,x){var b=Xh(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,nt=0;nt<E;nt++){var rt=0,st=b[nt],ht=st.near;if(ht!==null&&ht.layer===st.layer)if(st=ht.index,st>nt)for(var dt=nt+1;dt<st;dt++){var vt=b[dt];vt.near===ht&&vt.Dj===ht.Dj||rt++}else for(dt=nt-1;dt>st;dt--)vt=b[dt],vt.near===ht&&vt.Dj===ht.Dj||rt++;var Ft;if(0<=x)for(st=b[nt].sourceEdgesArrayAccess,ht=0;ht<st.length;ht++){var Wt=st[ht];if(Wt.valid&&Wt.fromVertex.layer!==y)for(vt=Wt.fromVertex.index,dt=Wt.portToPos,Wt=Wt.portFromPos,Ft=ht+1;Ft<st.length;Ft++){var Ht=st[Ft];if(Ht.valid&&Ht.fromVertex.layer!==y){var ne=Ht.fromVertex.index,ve=Ht.portToPos;Ht=Ht.portFromPos,dt<ve&&(vt>ne||vt===ne&&Wt>Ht)&&rt++,ve<dt&&(ne>vt||ne===vt&&Ht>Wt)&&rt++}}}if(0>=x){for(st=b[nt].destinationEdgesArrayAccess,ht=0;ht<st.length;ht++)if(Wt=st[ht],Wt.valid&&Wt.toVertex.layer!==y)for(vt=Wt.toVertex.index,dt=Wt.portToPos,Wt=Wt.portFromPos,Ft=ht+1;Ft<st.length;Ft++)Ht=st[Ft],Ht.valid&&Ht.toVertex.layer!==y&&(ne=Ht.toVertex.index,ve=Ht.portToPos,Ht=Ht.portFromPos,Wt<Ht&&(vt>ne||vt===ne&&dt>ve)&&rt++,Ht<Wt&&(ne>vt||ne===vt&&ve>dt)&&rt++)}for(z[nt*E+nt]=rt,st=nt+1;st<E;st++){var fe=0,Ce=0;if(0<=x){rt=b[nt].sourceEdgesArrayAccess;var ke=b[st].sourceEdgesArrayAccess;for(ht=0;ht<rt.length;ht++)if(Wt=rt[ht],Wt.valid&&Wt.fromVertex.layer!==y)for(vt=Wt.fromVertex.index,Wt=Wt.portFromPos,Ft=0;Ft<ke.length;Ft++)Ht=ke[Ft],Ht.valid&&Ht.fromVertex.layer!==y&&(ne=Ht.fromVertex.index,Ht=Ht.portFromPos,(vt<ne||vt===ne&&Wt<Ht)&&Ce++,(ne<vt||ne===vt&&Ht<Wt)&&fe++)}if(0>=x){for(rt=b[nt].destinationEdgesArrayAccess,ke=b[st].destinationEdgesArrayAccess,ht=0;ht<rt.length;ht++)if(Wt=rt[ht],Wt.valid&&Wt.toVertex.layer!==y)for(vt=Wt.toVertex.index,dt=Wt.portToPos,Ft=0;Ft<ke.length;Ft++)Ht=ke[Ft],Ht.valid&&Ht.toVertex.layer!==y&&(ne=Ht.toVertex.index,ve=Ht.portToPos,(vt<ne||vt===ne&&dt<ve)&&Ce++,(ne<vt||ne===vt&&ve<dt)&&fe++)}z[nt*E+st]=fe,z[st*E+nt]=Ce}}return Jh(a,y,b),z}dr.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=_S(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function w0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=Xh(b,E),nt=b.tc[E],rt=0,st=0;st<nt;st++){var ht=z[st].destinationEdgesArrayAccess;if(ht!==null)for(var dt=0;dt<ht.length;dt++){var vt=ht[dt];if(vt.valid&&vt.toVertex.layer!==E){var Ft=vt.fromVertex.column+vt.portFromColOffset,Wt=vt.toVertex.column+vt.portToColOffset;rt+=(Math.abs(Ft-Wt)+1)*py(vt)}}}Jh(b,E,z),y+=rt}return y}dr.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function my(a,y,x){for(var b=Xh(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var rt=b[nt],st=null;0>=x&&(st=rt.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=rt.destinationEdgesArrayAccess);var dt=0,vt=0,Ft=rt.near;if(Ft!==null&&Ft.layer===rt.layer&&(dt+=Ft.column-1,vt++),st!==null)for(Ft=0;Ft<st.length;Ft++){rt=st[Ft];var Wt=rt.fromVertex;rt.valid&&!rt.rev&&Wt.layer!==y&&(dt+=Wt.column,vt++)}if(ht!==null)for(st=0;st<ht.length;st++)rt=ht[st],Ft=rt.toVertex,rt.valid&&!rt.rev&&Ft.layer!==y&&(dt+=Ft.column,vt++);z[nt]=vt===0?-1:dt/vt}return Jh(a,y,b),z}function HS(a,y,x){for(var b=Xh(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var rt=b[nt],st=null;0>=x&&(st=rt.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=rt.destinationEdgesArrayAccess);var dt=0,vt=[],Ft=rt.near;if(Ft!==null&&Ft.layer===rt.layer&&(vt[dt]=Ft.column-1,dt++),rt=void 0,st!==null)for(Ft=0;Ft<st.length;Ft++){rt=st[Ft];var Wt=rt.fromVertex;rt.valid&&!rt.rev&&Wt.layer!==y&&(vt[dt]=Wt.column+rt.portFromColOffset,dt++)}if(ht!==null)for(st=0;st<ht.length;st++)rt=ht[st],Ft=rt.toVertex,rt.valid&&!rt.rev&&Ft.layer!==y&&(vt[dt]=Ft.column+rt.portToColOffset,dt++);dt===0?z[nt]=-1:(vt.sort(function(Ht,ne){return Ht-ne}),ht=dt>>1,z[nt]=dt&1?vt[ht]:vt[ht-1]+vt[ht]>>1)}return Jh(a,y,b),z}function Sp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();){var rt=nt.value,st=rt.toVertex,ht=y.layer-st.layer;rt=a.linkMinLength(rt),ht===rt&&Sp(a,st,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)rt=nt.value,st=rt.fromVertex,ht=st.layer-y.layer,rt=a.linkMinLength(rt),ht===rt&&Sp(a,st,x,b,E,z)}}function vy(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();)vy(a,nt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,E,z)}}dr.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Wx(a)!==null;){for(E=KS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=KS(a);for(E=VS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=VS(a);E=null;for(var z=0,nt=this.network.vertexes.iterator;nt.next();){var rt=nt.value;if(rt.valid){for(var st=0,ht=rt.destinationEdges;ht.next();)ht.value.toVertex.valid&&st++;ht=0;for(var dt=rt.sourceEdges;dt.next();)dt.value.fromVertex.valid&&ht++;(E===null||z<st-ht)&&(E=rt,z=st-ht)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case A0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case xp:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Wx(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,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function VS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function yy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,yy(a,E))}y.finish=a.Kn,a.Kn++}dr.prototype.assignLayers=function(){switch(this.Zk){case wy:YS(this);break;case Py:for(var a,y=this.network.vertexes.iterator;y.next();)a=XS(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case L0:for(YS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&JS(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 YS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=ZS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function ZS(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,ZS(a,z)+E)}y.layer=x}else x=y.layer;return x}function XS(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,XS(a,z)+E)}y.layer=x}else x=y.layer;return x}function JS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)JS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var nt=b[z],rt=nt.fromVertex,st=nt.toVertex;nt=a.linkMinLength(nt),rt.layer-st.layer>nt&&Sp(a,rt,0,-1,!0,!1)}for(Sp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,rt=0,st=null,nt=a.network.vertexes.iterator;nt.next();){var ht=nt.value;if(ht.component===1){var dt=0,vt=!1,Ft=ht.sourceEdgesArrayAccess;E=Ft.length;for(var Wt=0;Wt<E;Wt++){var Ht=Ft[Wt],ne=Ht.fromVertex;dt+=1,ne.component!==1&&(z+=1,ne=ne.layer-ht.layer,Ht=a.linkMinLength(Ht),b=Math.min(b,ne-Ht))}for(Ft=ht.destinationEdgesArrayAccess,E=Ft.length,Wt=0;Wt<E;Wt++)Ht=Ft[Wt].toVertex,--dt,Ht.component!==1?--z:vt=!0;(st===null||dt<rt)&&!vt&&(st=ht,rt=dt)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else st.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Sp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,rt=null,st=a.network.vertexes.iterator;st.next();)if(nt=st.value,nt.component===1){for(ht=0,dt=!1,Ft=nt.sourceEdgesArrayAccess,vt=Ft.length,Wt=0;Wt<vt;Wt++)Ht=Ft[Wt].fromVertex,ht+=1,Ht.component!==1?b+=1:dt=!0;for(Ft=nt.destinationEdgesArrayAccess,vt=Ft.length,Wt=0;Wt<vt;Wt++)Ht=Ft[Wt],ne=Ht.toVertex,--ht,ne.component!==1&&(--b,ne=nt.layer-ne.layer,Ht=a.linkMinLength(Ht),E=Math.min(E,ne-Ht));(rt===null||ht>z)&&!dt&&(rt=nt,z=ht)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else rt.component=0}}}function QS(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}dr.prototype.initializeIndices=function(){switch(this.Qk){default:case by: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 k0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case Cy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&qS(a,b))}function $S(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&$S(a,b))}dr.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Us(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,1),Va(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Us(this)),b=this.Ia;0<=b;b--)P0(this,b,-1),Va(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Us(this))}for(Oa(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,0),Va(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Us(this)),b=this.Ia;0<=b;b--)P0(this,b,0),Va(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Us(this))}Oa(this,y);var z,nt,rt;switch(this.rk){case Ay:break;case Ly:for(rt=a+1;(b=this.countCrossings())<rt;)for(rt=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,1)||z;for(E=this.countCrossings(),E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,1)||z;for(E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,-1)||z;for(E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,0)||z;for(E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,0)||z;E>=a?Oa(this,y):(a=E,y=Us(this))}break;default:case E0:for(x=this.Ia,nt=0,rt=a+1;(b=this.countCrossings())<rt;){for(rt=b,z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,1)||z;for(E=this.countCrossings(),E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,1)||z;for(E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,-1)||z;for(E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,0)||z;for(E>=a?Oa(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,0)||z;E>=a?Oa(this,y):(a=E,y=Us(this))}}Oa(this,y)};function P0(a,y,x){var b=Xh(a,y),E=a.tc[y],z=HS(a,y,x),nt=my(a,y,x);for(x=0;x<E;x++)nt[x]===-1&&(nt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var rt=!0,st;rt;)for(rt=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&nt[x+1]<nt[x])&&(rt=!0,st=z[x],z[x]=z[x+1],z[x+1]=st,st=nt[x],nt[x]=nt[x+1],nt[x+1]=st,st=b[x],b[x]=b[x+1],b[x+1]=st);for(x=z=0;x<E;x++)st=b[x],st.index=x,z+=a.nodeMinColumnSpace(st,!0),st.column=z,z+=1,z+=a.nodeMinColumnSpace(st,!1);Jh(a,y,b)}function Va(a,y,x){var b=Xh(a,y),E=a.tc[y];x=_S(a,y,x);var z,nt=[];for(z=0;z<E;z++)nt[z]=-1;var rt=[];for(z=0;z<E;z++)rt[z]=-1;for(var st=!1,ht=!0;ht;)for(ht=!1,z=0;z<E-1;z++){var dt=x[b[z].index*E+b[z+1].index],vt=x[b[z+1].index*E+b[z].index],Ft=0,Wt=0,Ht=b[z].column,ne=b[z+1].column,ve=a.nodeMinColumnSpace(b[z],!0),fe=a.nodeMinColumnSpace(b[z],!1),Ce=a.nodeMinColumnSpace(b[z+1],!0),ke=a.nodeMinColumnSpace(b[z+1],!1);ve=Ht-ve+Ce,fe=ne-fe+ke;var Me=b[z].sourceEdges.iterator;for(Me.reset();Me.next();)if(Ce=Me.value,ke=Ce.fromVertex,Ce.valid&&ke.layer===y){for(Ce=0;b[Ce]!==ke;)Ce++;Ce<z&&(Ft+=2*(z-Ce),Wt+=2*(z+1-Ce)),Ce===z+1&&(Ft+=1),Ce>z+1&&(Ft+=4*(Ce-z),Wt+=4*(Ce-(z+1)))}for(Me=b[z].destinationEdges.iterator,Me.reset();Me.next();)if(Ce=Me.value,ke=Ce.toVertex,Ce.valid&&ke.layer===y){for(Ce=0;b[Ce]!==ke;)Ce++;Ce===z+1&&(Wt+=1)}for(Me=b[z+1].sourceEdges.iterator,Me.reset();Me.next();)if(Ce=Me.value,ke=Ce.fromVertex,Ce.valid&&ke.layer===y){for(Ce=0;b[Ce]!==ke;)Ce++;Ce<z&&(Ft+=2*(z+1-Ce),Wt+=2*(z-Ce)),Ce===z&&(Wt+=1),Ce>z+1&&(Ft+=4*(Ce-(z+1)),Wt+=4*(Ce-z))}for(Me=b[z+1].destinationEdges.iterator,Me.reset();Me.next();)if(Ce=Me.value,ke=Ce.toVertex,Ce.valid&&ke.layer===y){for(Ce=0;b[Ce]!==ke;)Ce++;Ce===z&&(Ft+=1)}Ce=ke=0,Me=nt[b[z].index];var De=rt[b[z].index],Ve=nt[b[z+1].index],Ln=rt[b[z+1].index];Me!==-1&&(ke+=Math.abs(Me-Ht),Ce+=Math.abs(Me-fe)),De!==-1&&(ke+=Math.abs(De-Ht),Ce+=Math.abs(De-fe)),Ve!==-1&&(ke+=Math.abs(Ve-ne),Ce+=Math.abs(Ve-ve)),Ln!==-1&&(ke+=Math.abs(Ln-ne),Ce+=Math.abs(Ln-ve)),(Wt<Ft-.5||Wt===Ft&&vt<dt-.5||Wt===Ft&&vt===dt&&Ce<ke-.5)&&(ht=st=!0,b[z].column=fe,b[z+1].column=ve,dt=b[z],b[z]=b[z+1],b[z+1]=dt)}for(z=0;z<E;z++)b[z].index=z;return Jh(a,y,b),st}dr.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Zx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Wf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Wf(this,y,-1)||x;x=Wf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(tx(this,-1),tx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Wf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Wf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Wf(this,y,0)||x}}else Hx(this)};function Wf(a,y,x){for(var b=!1;Gx(a,y,x);)b=!0;return b}function Gx(a,y,x){var b,E=Xh(a,y),z=a.tc[y],nt=my(a,y,-1);if(0<x)for(b=0;b<z;b++)nt[b]=-1;var rt=my(a,y,1);if(0>x)for(b=0;b<z;b++)rt[b]=-1;for(var st=!1,ht=!0;ht;)for(ht=!1,b=0;b<z;b++){var dt=E[b].column,vt=a.nodeMinColumnSpace(E[b],!0),Ft=a.nodeMinColumnSpace(E[b],!1),Wt=0;0>b-1||dt-E[b-1].column-1>vt+a.nodeMinColumnSpace(E[b-1],!1)?Wt=dt-1:Wt=dt,vt=b+1>=z||E[b+1].column-dt-1>Ft+a.nodeMinColumnSpace(E[b+1],!0)?dt+1:dt;var Ht=Ft=0,ne=0;if(0>=x)for(var ve=E[b].sourceEdges.iterator;ve.next();){var fe=ve.value,Ce=fe.fromVertex;if(fe.valid&&Ce.layer!==y){var ke=py(fe),Me=fe.portFromColOffset;fe=fe.portToColOffset,Ce=Ce.column,Ft+=(Math.abs(dt+fe-(Ce+Me))+1)*ke,Ht+=(Math.abs(Wt+fe-(Ce+Me))+1)*ke,ne+=(Math.abs(vt+fe-(Ce+Me))+1)*ke}}if(0<=x)for(ve=E[b].destinationEdges.iterator;ve.next();)fe=ve.value,Ce=fe.toVertex,fe.valid&&Ce.layer!==y&&(ke=py(fe),Me=fe.portFromColOffset,fe=fe.portToColOffset,Ce=Ce.column,Ft+=(Math.abs(dt+Me-(Ce+fe))+1)*ke,Ht+=(Math.abs(Wt+Me-(Ce+fe))+1)*ke,ne+=(Math.abs(vt+Me-(Ce+fe))+1)*ke);fe=Me=ke=0,ve=nt[E[b].index],Ce=rt[E[b].index],ve!==-1&&(ke+=Math.abs(ve-dt),Me+=Math.abs(ve-Wt),fe+=Math.abs(ve-vt)),Ce!==-1&&(ke+=Math.abs(Ce-dt),Me+=Math.abs(Ce-Wt),fe+=Math.abs(Ce-vt)),Ht<Ft||Ht===Ft&&Me<ke?(ht=st=!0,E[b].column=Wt):(ne<Ft||ne===Ft&&fe<ke)&&(ht=st=!0,E[b].column=vt)}return Jh(a,y,E),a.normalize(),st}function Sy(a,y,x){var b=Xh(a,y),E=a.tc[y],z=HS(a,y,x),nt=[];for(x=0;x<E;x++)nt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var rt=b[x].column,st=a.nodeMinColumnSpace(b[x],!0),ht=a.nodeMinColumnSpace(b[x],!1),dt=0;if(nt[x]===-1)if(x===0&&x===E-1)dt=rt;else if(x===0){var vt=b[x+1].column;vt-rt===ht+a.nodeMinColumnSpace(b[x+1],!0)?dt=rt-1:dt=rt}else x===E-1?(vt=b[x-1].column,dt=rt-vt===st+a.nodeMinColumnSpace(b[x-1],!1)?rt+1:rt):(vt=b[x-1].column,st=vt+a.nodeMinColumnSpace(b[x-1],!1)+st+1,vt=b[x+1].column,ht=vt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=(st+ht)/2|0);else x===0&&x===E-1?dt=nt[x]:x===0?(vt=b[x+1].column,ht=vt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=Math.min(nt[x],ht)):x===E-1?(vt=b[x-1].column,st=vt+a.nodeMinColumnSpace(b[x-1],!1)+st+1,dt=Math.max(nt[x],st)):(vt=b[x-1].column,st=vt+a.nodeMinColumnSpace(b[x-1],!1)+st+1,vt=b[x+1].column,ht=vt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,st<nt[x]&&nt[x]<ht?dt=nt[x]:st>=nt[x]?dt=st:ht<=nt[x]&&(dt=ht));dt!==rt&&(z=!0,b[x].column=dt)}Jh(a,y,b),a.normalize()}function Ux(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),nt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+nt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function _x(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var rt=b.column-a.nodeMinColumnSpace(b,!0),st=b.column+a.nodeMinColumnSpace(b,!1);rt<=y&&st>=y&&(E[b.layer]=!0),rt<=x&&st>=x&&(z[b.layer]=!0)}for(rt=!0,x=!1,b=0;b<=a.Ia;b++)rt=rt&&!(E[b]&&z[b]);if(rt)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function tx(a,y){for(var x=0;x<=a.Ra;x++)for(;Ux(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;_x(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Us(a),z=w0(a);for(b=z+1;z<b;){b=z,ex(a,x,1);var nt=w0(a);nt>z?Oa(a,E):nt<z&&(z=nt,E=Us(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Us(a),z=w0(a),b=z+1;z<b;)b=z,ex(a,x,-1),nt=w0(a),nt>z?Oa(a,E):nt<z&&(z=nt,E=Us(a));a.normalize()}function ex(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var nt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),st=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=st;rt++)E[nt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(nt=0;nt<a.Ra;nt++)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt+1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt+1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt-1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt-1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(st=nt[nt.length-1],nt.pop(),E[st])for(E[st]=!1,z=0;z<a.le;z++)y[st*a.le+z]&&nt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Hx(a){for(var y=Fn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new hn,Kx(y,x);var z=null,nt=null,rt=null,st=null,ht=(a.ve&1)!==0,dt=(a.ve&2)!==0,vt=(a.ve&4)!==0,Ft=(a.ve&8)!==0;for(ht&&(a.verticalAlignment(y,x,!0),z=C0(a,y,!0,!1)),y.reverse(),vt&&(a.verticalAlignment(y,x,!1),rt=C0(a,y,!1,!1)),b=Rn(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ft&&(a.verticalAlignment(y,x,!1),st=C0(a,y,!1,!0)),y.reverse(),dt&&(a.verticalAlignment(y,x,!0),nt=C0(a,y,!0,!0)),jn(y),a.u(z,nt,rt,st),a.network.vertexes.each(function(Wt){var Ht=Fn();ht&&Ht.push(z.get(Wt)),dt&&Ht.push(nt.get(Wt)),vt&&Ht.push(rt.get(Wt)),Ft&&Ht.push(st.get(Wt)),Ht.sort(function(ve,fe){return ve-fe});var ne=Ht.length;ne=(Ht[Math.floor((ne-1)/2)]+Ht[Math.ceil((ne-1)/2)])/2,jn(Ht),Wt.zc=ne})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,nt=a[b],rt=a[b+1],st=0;z<rt.length;st++){var ht=rt[st];t:{if(ht.node===null){var dt=ky(ht);if(0<dt.length){dt=dt[0].node===null;break t}}dt=!1}var vt=dt;if(st===rt.length-1||vt){for(dt=nt.length-1,vt&&(dt=ky(ht)[0].index);z<=st;){if(ht=rt[z],!ht.bo){vt=[];for(var Ft=Rn(ht.sourceEdgesArrayAccess),Wt=Ft.next();!Wt.done;Wt=Ft.next())Wt=Wt.value,Wt.valid&&vt.push(Wt);ht.bo=vt}for(ht=Rn(ht.bo),vt=ht.next();!vt.done;vt=ht.next())vt=vt.value,Ft=vt.fromVertex.index,(Ft<E||Ft>dt)&&y.add(vt);z++}E=dt}}}dr.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Rn(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Rn(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?ky(z):Xx(z),rt=nt.length;if(0<rt){nt.sort(function(vt,Ft){return vt.vi-Ft.vi});var st=(rt-1)/2;for(rt=Math.floor(st),st=Math.ceil(st);rt<=st;rt++)if(z.align===z){var ht=nt[rt],dt=void 0;dt=x?M0(ht,z):M0(z,ht),!y.contains(dt)&&E<ht.vi&&(ht.align=z,z.root=ht.root,z.align=ht.root,E=ht.vi)}}}}};function Vx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function C0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Rn(y),nt=z.next();!nt.done;nt=z.next()){var rt=Rn(nt.value);for(nt=rt.next();!nt.done;nt=rt.next())nt=nt.value,nt.sd=nt,nt.shift=1/0,nt.zc=NaN,nt.qg=0}for(nt=a.K===90||a.K===270,z=Rn(y),rt=z.next();!rt.done;rt=z.next()){rt=Rn(rt.value);for(var st=rt.next();!st.done;st=rt.next())if(st=st.value,st.root===st){for(var ht=0,dt=st;dt.align!==st;){var vt=dt.align,Ft=nt?dt.width:dt.height,Wt=nt?vt.width:vt.height;if(x){var Ht=M0(dt,vt),ne=Ht.portFromPos,ve=Ht.portToPos;Ht.link!==null&&(dt.node&&dt.node!==Ht.link.fromNode&&(ne=nt?dt.focusX:dt.focusY),vt.node&&vt.node!==Ht.link.toNode&&(ve=nt?vt.focusX:vt.focusY))}else Ht=M0(vt,dt),ne=Ht.portToPos,ve=Ht.portFromPos,Ht.link!==null&&(dt.node&&dt.node!==Ht.link.toNode&&(ne=nt?dt.focusX:dt.focusY),vt.node&&vt.node!==Ht.link.fromNode&&(ve=nt?vt.focusX:vt.focusY));Ft=b?dt.qg+(Ft-ne)-(Wt-ve):dt.qg+ne-ve,vt.qg=Ft,ht=Math.min(ht,Ft),dt=dt.align}dt=st;do dt.qg=dt.qg-ht,dt=dt.align;while(dt!==st)}}for(x=Rn(y),nt=x.next();!nt.done;nt=x.next())for(z=Rn(nt.value),nt=z.next();!nt.done;nt=z.next())nt=nt.value,nt.root===nt&&nx(a,nt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,rt=0;do{for(z=y[nt][rt];z.align!==z.root;)z=z.align,nt++,0<z.vi&&(rt=ix(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(E?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(nt<y.length&&rt<y[nt].length&&z.sd===y[nt][rt].sd)}for(a=new ti,y=Rn(y),nt=y.next();!nt.done;nt=y.next())for(x=Rn(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,z=E?nt.width:nt.height,a.add(nt,b?-nt.zc-z:nt.zc);return a}function nx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=ix(b,x),z=E.root;nx(a,z,x),y.sd===y&&(y.sd=z.sd);var nt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+nt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function ix(a,y){var x=a.Tz;return a=a.vi,1>a&&we("Could not determine previous vertex in layer"),y[x][a-1]}dr.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=Fn(),E=Fn(),z=1/0,nt=0;4>nt;nt++)if(y[nt]){var rt=Yx(this,y[nt],b,E,nt);rt<z&&(x=nt,z=rt)}for(z={},nt=0;4>nt;z={delta:z.delta},nt++)y[nt]&&(z.delta=nt===0||nt===2?b[x]-b[nt]:E[x]-E[nt],z.delta!==0&&y[nt].each(function(st){return function(ht){ht.value+=st.delta}}(z)));jn(b),jn(E)};function Yx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,nt=-1/0;return y.each(function(rt){var st=rt.key;rt=rt.value,st=a.K===90||a.K===270?st.width:st.height,rt<z&&(z=rt),rt+st>nt&&(nt=rt+st)}),x[E]=z,b[E]=nt,nt-z}dr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=b0(this,!0),y=b0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function b0(a,y){return a.K===270?y?ps:ss:a.K===90?y?ss:ps:a.K===180?y?Bs:Jo:y?Jo:Bs}dr.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,nt=E=1/0,rt=-1/0;a.next();){var st=a.value,ht=st.layer,dt=st.column|0;b?(nt=y.x+this.kc*dt,ht=this.Kd[ht]):(nt=this.Kd[ht],ht=y.y+this.kc*dt),st.centerX=nt,st.centerY=ht,x&&isFinite(st.zc)&&(b?st.node?st.x=y.x+st.zc:st.centerX=y.x+st.zc:st.node?st.y=y.y+st.zc:st.centerY=y.y+st.zc),z=Math.min(st.x,z),E=Math.min(st.y,E),b?(nt=z,rt=Math.max(rt,st.bounds.right)):(nt=E,rt=Math.max(rt,st.bounds.bottom))}for(this.xw=rt-nt,z=y.x-z,y=y.y-E,this.Rf=new xe(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},dr.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new en(0,0,x,Math.abs(this.Ta[0]))):y.push(new en(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new en(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new en(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new en(0,0,Math.abs(this.Ta[0]),x)):y.push(new en(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new en(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new en(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},dr.prototype.commitLayers=function(){},dr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,nt=b.fromPort,rt=b.toPort;if(E!==null){var st=E.findVisibleNode();st!==null&&st!==E&&(E=st,nt=st.port)}z!==null&&(st=z.findVisibleNode(),st!==null&&st!==z&&(z=st,rt=st.port));var ht=y.computeSpot(!0,nt);st=y.computeSpot(!1,rt);var dt=x.fromVertex,vt=x.toVertex;if(x.valid)y.curve===ya&&y.pointsCount===4&&(dt.column===vt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ht,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,st,!1,!1,E,nt),x.w()||x.set(E.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=b=!1,nt!==null&&ht===Ki&&(b=!0),rt!==null&&st===Ki&&(x=!0),(b||x)&&(st=null,b&&(st=y.getLinkPointFromPoint(E,nt,nt.ga(Oi),y.i(3),!0),st.w()||st.set(E.actualBounds.center),y.L(0,st.x,st.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,rt,rt.ga(Oi),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),st&&(z=y.i(2),y.L(1,(2*st.x+z.x)/3,(2*st.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(dt.layer===vt.layer)y.zf();else{var Ft=!1,Wt=!1,Ht=this.ie,ne=y.firstPickIndex+1;if(y.isOrthogonal){Wt=!0;var ve=y.pointsCount;4<ve&&y.points.removeRange(2,ve-3)}else if(y.curve===ya)Ft=!0,ve=y.pointsCount,4<ve&&y.points.removeRange(2,ve-3),ve===4&&(ne=2);else{ve=y.pointsCount;var fe=ht===Ki,Ce=st===Ki;2<ve&&fe&&Ce?y.points.removeRange(1,ve-2):3<ve&&fe&&!Ce?y.points.removeRange(1,ve-3):3<ve&&!fe&&Ce?y.points.removeRange(2,ve-2):4<ve&&!fe&&!Ce&&y.points.removeRange(2,ve-3)}if(x.rev){for(;vt!==null&&dt!==vt;){var ke=ve=null;for(fe=vt.sourceEdges.iterator;fe.next()&&(Ce=fe.value,Ce.link!==x.link||(ve=Ce.fromVertex,ke=Ce.toVertex,ve.node!==null)););if(ve===null)break;if(ve!==dt){fe=y.i(ne-1).x,Ce=y.i(ne-1).y;var Me=ve.centerX,De=ve.centerY;if(Wt)this.K===180||this.K===0?ne===y.firstPickIndex+1?(y.m(ne++,fe,Ce),y.m(ne++,fe,De)):(ke!==null?ke.centerY:Ce)!==De&&(ke=this.Ta[ve.layer-1]+this.Rf.x,y.m(ne++,ke,Ce),y.m(ne++,ke,De)):ne===y.firstPickIndex+1?(y.m(ne++,fe,Ce),y.m(ne++,Me,Ce)):(ke!==null?ke.centerX:fe)!==Me&&(ke=this.Ta[ve.layer-1]+this.Rf.y,y.m(ne++,fe,ke),y.m(ne++,Me,ke));else if(ne===y.firstPickIndex+1){ke=Math.max(10,this.he[vt.layer]);var Ve=Math.max(10,this.Ld[vt.layer]);if(Ft)this.K===180?Me<=vt.bounds.x?(vt=vt.bounds.x,y.m(ne++,vt-ke,De),y.m(ne++,vt,De),y.m(ne++,vt+Ve,De)):(y.m(ne++,Me-ke,De),y.m(ne++,Me,De),y.m(ne++,Me+Ve,De)):this.K===90?De>=vt.bounds.bottom?(vt=vt.bounds.y+vt.bounds.height,y.m(ne++,Me,vt+Ve),y.m(ne++,Me,vt),y.m(ne++,Me,vt-ke)):(y.m(ne++,Me,De+Ve),y.m(ne++,Me,De),y.m(ne++,Me,De-ke)):this.K===270?De<=vt.bounds.y?(vt=vt.bounds.y,y.m(ne++,Me,vt-ke),y.m(ne++,Me,vt),y.m(ne++,Me,vt+Ve)):(y.m(ne++,Me,De-ke),y.m(ne++,Me,De),y.m(ne++,Me,De+Ve)):this.K===0&&(Me>=vt.bounds.right?(vt=vt.bounds.x+vt.bounds.width,y.m(ne++,vt+Ve,De),y.m(ne++,vt,De),y.m(ne++,vt-ke,De)):(y.m(ne++,Me+Ve,De),y.m(ne++,Me,De),y.m(ne++,Me-ke,De)));else{y.m(ne++,fe,Ce);var Ln=0;this.K===180||this.K===0?((this.K===180?Me>=vt.bounds.right:Me<=vt.bounds.x)&&(Ln=(this.K===0?-ke:Ve)/2),y.m(ne++,fe+Ln,De)):((this.K===270?De>=vt.bounds.bottom:De<=vt.bounds.y)&&(Ln=(this.K===90?-ke:Ve)/2),y.m(ne++,Me,Ce+Ln)),y.m(ne++,Me,De)}}else ke=Math.max(10,this.he[ve.layer]),Ve=Math.max(10,this.Ld[ve.layer]),Ft?this.K===180?(y.m(ne++,Me-ke-Ht,De),y.m(ne++,Math.min(Me-ke+Ht/2,Me),De),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Math.max(Me+Ve-Ht/2,Me),De),y.m(ne++,Me+Ve+Ht,De)):this.K===90?(y.m(ne++,Me,De+Ve+Ht),y.m(ne++,Me,Math.max(De+Ve-Ht/2,De)),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Me,Math.min(De-ke+Ht/2,De)),y.m(ne++,Me,De-ke-Ht)):this.K===270?(y.m(ne++,Me,De-ke-Ht),y.m(ne++,Me,Math.min(De-ke+Ht/2,De)),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Me,Math.max(De+Ve-Ht/2,De)),y.m(ne++,Me,De+Ve+Ht)):(y.m(ne++,Me+Ve+Ht,De),y.m(ne++,Math.max(Me+Ve-Ht/2,Me),De),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Math.min(Me-ke+Ht/2,Me),De),y.m(ne++,Me-ke-Ht,De)):y.m(ne++,Me,De)}vt=ve}(rt===null||ht!==Ki||Wt)&&(fe=y.i(ne-1).x,Ce=y.i(ne-1).y,Me=y.i(ne).x,De=y.i(ne).y,Wt?(Ht=this.Ld[dt.layer],this.K===180||this.K===0?(Wt=Ce,Wt>=dt.bounds.y&&Wt<=dt.bounds.bottom&&(this.K===180?Me>=dt.bounds.x:Me<=dt.bounds.right)&&(vt=dt.centerX+(this.K===180?-Ht:Ht),Wt<dt.bounds.y+dt.bounds.height/2?Wt=dt.bounds.y-this.kc/2:Wt=dt.bounds.bottom+this.kc/2,y.m(ne++,vt,Ce),y.m(ne++,vt,Wt)),y.m(ne++,Me,Wt)):(Wt=fe,Wt>=dt.bounds.x&&Wt<=dt.bounds.right&&(this.K===270?De>=dt.bounds.y:De<=dt.bounds.bottom)&&(vt=dt.centerY+(this.K===270?-Ht:Ht),Wt<dt.bounds.x+dt.bounds.width/2?Wt=dt.bounds.x-this.kc/2:Wt=dt.bounds.right+this.kc/2,y.m(ne++,fe,vt),y.m(ne++,Wt,vt)),y.m(ne++,Wt,De)),y.m(ne++,Me,De)):Ft?(ke=Math.max(10,this.he[dt.layer]),Ve=Math.max(10,this.Ld[dt.layer]),this.K===180&&Me>=dt.bounds.x?(vt=dt.bounds.x+dt.bounds.width,y.L(ne-2,vt,Ce),y.L(ne-1,vt+Ve,Ce)):this.K===90&&De<=dt.bounds.bottom?(vt=dt.bounds.y,y.L(ne-2,fe,vt),y.L(ne-1,fe,vt-ke)):this.K===270&&De>=dt.bounds.y?(vt=dt.bounds.y+dt.bounds.height,y.L(ne-2,fe,vt),y.L(ne-1,fe,vt+Ve)):this.K===0&&Me<=dt.bounds.right&&(vt=dt.bounds.x,y.L(ne-2,vt,Ce),y.L(ne-1,vt-ke,Ce))):(ke=Math.max(10,this.he[dt.layer]),Ve=Math.max(10,this.Ld[dt.layer]),Wt=0,this.K===180||this.K===0?((this.K===180?Me<=dt.bounds.x:Me>=dt.bounds.right)&&(Wt=(this.K===0?Ve:-ke)/2),y.m(ne++,Me+Wt,Ce)):((this.K===270?De<=dt.bounds.y:De>=dt.bounds.bottom)&&(Wt=(this.K===90?Ve:-ke)/2),y.m(ne++,fe,De+Wt)),y.m(ne++,Me,De)))}else{for(;dt!==null&&dt!==vt;){for(ke=ve=null,dt=dt.destinationEdges.iterator;dt.next()&&(fe=dt.value,fe.link!==x.link||(ve=fe.toVertex,ke=fe.fromVertex,ke.node!==null&&(ke=null),ve.node!==null)););if(ve===null)break;ve!==vt&&(fe=y.i(ne-1).x,Ce=y.i(ne-1).y,Me=ve.centerX,De=ve.centerY,Wt?this.K===180||this.K===0?(ke!==null?ke.centerY:Ce)!==De&&(ke=this.Ta[ve.layer]+this.Rf.x,ne===y.firstPickIndex+1&&(ke=this.K===0?Math.max(ke,fe):Math.min(ke,fe)),y.m(ne++,ke,Ce),y.m(ne++,ke,De)):(ke!==null?ke.centerX:fe)!==Me&&(ke=this.Ta[ve.layer]+this.Rf.y,ne===y.firstPickIndex+1&&(ke=this.K===90?Math.max(ke,Ce):Math.min(ke,Ce)),y.m(ne++,fe,ke),y.m(ne++,Me,ke)):(ke=Math.max(10,this.he[ve.layer]),Ve=Math.max(10,this.Ld[ve.layer]),Ft?this.K===180?(y.m(ne++,Me+Ve+Ht,De),y.m(ne++,Math.max(Me+Ve-Ht/2,Me),De),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Math.min(Me-ke+Ht/2,Me),De),y.m(ne++,Me-ke-Ht,De)):this.K===90?(y.m(ne++,Me,De-ke-Ht),y.m(ne++,Me,Math.min(De-ke+Ht/2,De)),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Me,Math.max(De+Ve-Ht/2,De)),y.m(ne++,Me,De+Ve+Ht)):this.K===270?(y.m(ne++,Me,De+Ve+Ht),y.m(ne++,Me,Math.max(De+Ve-Ht/2,De)),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Me,Math.min(De-ke+Ht/2,De)),y.m(ne++,Me,De-ke-Ht)):(y.m(ne++,Me-ke-Ht,De),y.m(ne++,Math.min(Me-ke+Ht/2,Me),De),y.m(ne++,Me,De),y.m(ne++,Me,De),y.m(ne++,Math.max(Me+Ve-Ht/2,Me),De),y.m(ne++,Me+Ve+Ht,De)):this.K===180?(y.m(ne++,Me+Ve,De),y.m(ne++,Me-ke,De)):this.K===90?(y.m(ne++,Me,De-ke),y.m(ne++,Me,De+Ve)):this.K===270?(y.m(ne++,Me,De+Ve),y.m(ne++,Me,De-ke)):(y.m(ne++,Me-ke,De),y.m(ne++,Me+Ve,De)))),dt=ve}Wt&&(fe=y.i(ne-1).x,Ce=y.i(ne-1).y,Me=y.i(ne).x,De=y.i(ne).y,this.K===180||this.K===0?Ce!==De&&(ke=this.K===0?Math.min(Math.max((Me+fe)/2,this.Ta[vt.layer]+this.Rf.x),Me):Math.max(Math.min((Me+fe)/2,this.Ta[vt.layer]+this.Rf.x),Me),y.m(ne++,ke,Ce),y.m(ne++,ke,De)):fe!==Me&&(ke=this.K===90?Math.min(Math.max((De+Ce)/2,this.Ta[vt.layer]+this.Rf.y),De):Math.max(Math.min((De+Ce)/2,this.Ta[vt.layer]+this.Rf.y),De),y.m(ne++,fe,ke),y.m(ne++,Me,ke)))}b!==null&&Ft&&4<=y.pointsCount&&(nt!==null&&(nt=ht===Ki?y.getLinkPointFromPoint(E,nt,nt.ga(Oi),y.i(3),!0):y.i(0),ht===Ki&&(ht=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ht.x)/2,ht.y),y.L(2,b.x,(ht.y+b.y)/2)):(y.L(1,ht.x,(nt.y+ht.y)/2),y.L(2,(ht.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),rt!==null&&(E=st===Ki?y.getLinkPointFromPoint(z,rt,rt.ga(Oi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),st===Ki&&(rt=y.i(y.pointsCount-3),st=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,st.x,(rt.y+st.y)/2)):(y.L(y.pointsCount-2,rt.x,(E.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+st.x)/2,st.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},dr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new cn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),nt=b.i(E+1);if(this.B(z.y,nt.y)&&!this.B(z.x,nt.x)){var rt=new Qh;rt.layer=Math.floor(z.y/2);var st=b.i(0),ht=b.i(b.pointsCount-1);if(rt.first=st.x*st.x+st.y,rt.jc=ht.x*ht.x+ht.y,rt.rd=Math.min(z.x,nt.x),rt.Ic=Math.max(z.x,nt.x),rt.index=E,rt.link=b,E+2<b.pointsCount){st=b.i(E-1),ht=b.i(E+2);var dt=0;st.y<z.y?dt=ht.y<z.y?3:z.x<nt.x?2:1:st.y>z.y&&(dt=ht.y>z.y?0:nt.x<z.x?2:1),rt.j=dt}x.push(rt)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),dt=1,rt=x[z].jc,st=z;st<E;st++)ht=x[st],ht.jc!==rt&&(dt++,rt=ht.jc);this.zi(x,this.Ux,z,z+nt);var vt=1;for(rt=x[z].first,st=z;st<E;st++)ht=x[st],ht.first!==rt&&(vt++,rt=ht.first);for(st=!0,ht=vt,dt<vt?(st=!1,ht=dt,rt=x[z].jc,this.zi(x,this.Js,z,z+nt)):rt=x[z].first,dt=0,vt=z;vt<E;vt++){var Ft=x[vt];(st?Ft.first:Ft.jc)!==rt&&(dt++,rt=st?Ft.first:Ft.jc);var Wt=Ft.link;z=Wt.i(Ft.index),nt=Wt.i(Ft.index+1);var Ht=this.linkSpacing*(dt-(ht-1)/2);y++,Wt.uh(),Wt.L(Ft.index,z.x,z.y+Ht),Wt.L(Ft.index+1,nt.x,nt.y+Ht),Wt.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),nt=b.i(E+1),this.B(z.x,nt.x)&&!this.B(z.y,nt.y)&&(rt=new Qh,rt.layer=Math.floor(z.x/2),st=b.i(0),ht=b.i(b.pointsCount-1),rt.first=st.x+st.y*st.y,rt.jc=ht.x+ht.y*ht.y,rt.rd=Math.min(z.y,nt.y),rt.Ic=Math.max(z.y,nt.y),rt.index=E,rt.link=b,E+2<b.pointsCount&&(st=b.i(E-1),ht=b.i(E+2),dt=0,st.x<z.x?dt=ht.x<z.x?3:z.y<nt.y?2:1:st.x>z.x&&(dt=ht.x>z.x?0:nt.y<z.y?2:1),rt.j=dt),x.push(rt));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),dt=1,rt=x[z].jc,st=z;st<E;st++)ht=x[st],ht.jc!==rt&&(dt++,rt=ht.jc);for(this.zi(x,this.Ux,z,z+nt),vt=1,rt=x[z].first,st=z;st<E;st++)ht=x[st],ht.first!==rt&&(vt++,rt=ht.first);for(st=!0,ht=vt,dt<vt?(st=!1,ht=dt,rt=x[z].jc,this.zi(x,this.Js,z,z+nt)):rt=x[z].first,dt=0,vt=z;vt<E;vt++)Ft=x[vt],(st?Ft.first:Ft.jc)!==rt&&(dt++,rt=st?Ft.first:Ft.jc),Wt=Ft.link,z=Wt.i(Ft.index),nt=Wt.i(Ft.index+1),Ht=this.linkSpacing*(dt-(ht-1)/2),y++,Wt.uh(),Wt.L(Ft.index,z.x+Ht,z.y),Wt.L(Ft.index+1,nt.x+Ht,nt.y),Wt.zf()}z=E}a=b}}}},Kt=dr.prototype,Kt.Vx=function(a,y){return a instanceof Qh&&y instanceof Qh&&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},Kt.Ux=function(a,y){return a instanceof Qh&&y instanceof Qh&&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},Kt.Js=function(a,y){return a instanceof Qh&&y instanceof Qh&&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},Kt.B=function(a,y){return a-=y,-1<a&&1>a},Kt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&we("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function Xh(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function Jh(a,y,x){a.He[a.tc[y]]=x}Ke.Object.defineProperties(dr.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()):we("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==A0&&a!==xp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==L0&&a!==wy&&a!==Py||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==k0&&a!==Cy&&a!==by||(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!==Ay&&a!==E0&&a!==Ly||(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 A0=new an(dr,"CycleDepthFirst",0),xy=new an(dr,"CycleGreedy",1),xp=new an(dr,"CycleFromLayers",2),L0=new an(dr,"LayerOptimalLinkLength",0),wy=new an(dr,"LayerLongestPathSink",1),Py=new an(dr,"LayerLongestPathSource",2),k0=new an(dr,"InitDepthFirstOut",0),Cy=new an(dr,"InitDepthFirstIn",1),by=new an(dr,"InitNaive",2),Ay=new an(dr,"AggressiveNone",0),E0=new an(dr,"AggressiveLess",1),Ly=new an(dr,"AggressiveMore",2),Zx=8;dr.className="LayeredDigraphLayout",dr.CycleDepthFirst=A0,dr.CycleGreedy=xy,dr.CycleFromLayers=xp,dr.LayerOptimalLinkLength=L0,dr.LayerLongestPathSink=wy,dr.LayerLongestPathSource=Py,dr.InitDepthFirstOut=k0,dr.InitDepthFirstIn=Cy,dr.InitNaive=by,dr.AggressiveNone=Ay,dr.AggressiveLess=E0,dr.AggressiveMore=Ly,dr.PackNone=0,dr.PackExpand=1,dr.PackStraighten=2,dr.PackMedian=4,dr.PackAll=15,dr.AlignNone=0,dr.AlignUpperLeft=1,dr.AlignUpperRight=2,dr.AlignLowerLeft=4,dr.AlignLowerRight=8,dr.AlignAll=15;function Qh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Qh.className="SegInfo";function Gf(a){Pr.call(this,a)}Je(Gf,Pr),Gf.prototype.createVertex=function(){return new Ia(this)},Gf.prototype.createEdge=function(){return new wp(this)},Gf.className="LayeredDigraphNetwork";function Ia(a){mo.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}Je(Ia,mo);function rx(a,y){return a.index-y.index}function M0(a,y){if(!a.$n){for(var x=[],b=Rn(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Rn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;we("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],x=Rn(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(rx),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=Rn(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(rx),a.ao=y}return a.ao}Ia.prototype.Cl=function(a){mo.prototype.Cl.call(this,a),this.bo=this.co=null},Ia.prototype.Kl=function(a){mo.prototype.Kl.call(this,a),this.bo=this.co=null},Ia.prototype.zl=function(a){mo.prototype.zl.call(this,a),this.$n=this.ao=null},Ia.prototype.Jl=function(a){mo.prototype.Jl.call(this,a),this.$n=this.ao=null},Ke.Object.defineProperties(Ia.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)}}}),Ia.prototype.deleteDestinationEdge=Ia.prototype.Jl,Ia.prototype.addDestinationEdge=Ia.prototype.zl,Ia.prototype.deleteSourceEdge=Ia.prototype.Kl,Ia.prototype.addSourceEdge=Ia.prototype.Cl,Ia.className="LayeredDigraphVertex";function wp(a){ra.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Je(wp,ra),Ke.Object.defineProperties(wp.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)}}}),wp.className="LayeredDigraphEdge";function ji(a){Dr.call(this),this.Ub=new hn,this.Wn=D0,this.ud=nu,this.vo=O0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new wn(10,10).freeze();var y=new Dd(this);this.W=new Ya(y),this.Y=new Ya(y),this.ru=[],a&&Object.assign(this,a)}Je(ji,Dr),ji.prototype.cloneProtected=function(a){Dr.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)},ji.prototype.qb=function(a){a.classType===ji?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:we("Unknown enum value: "+a):Dr.prototype.qb.call(this,a)},ji.prototype.createNetwork=function(){return new Dd(this)},ji.prototype.makeNetwork=function(a){function y(b){if(b instanceof kn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof vn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ye?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof xi?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ji.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==R0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ye&&(y=a),this.path===D0&&y!==null?this.ud=y.isTreePathToChildren?nu:Nd:this.ud=this.path===D0?nu:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new hn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof kn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Ya&&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,Ey(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=ox(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ey(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&ux(this,y);if(this.Cu(),this.layerStyle===j0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new hn,this.isValidLayout=!0};function Jx(a){var y=new hn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ji.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case nu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Nd:x.destinationEdges.count===0&&this.Ub.add(x);break;default:we("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case nu:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Nd:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:we("Unhandled path value "+a.ud.toString())}}return b}function Ey(a,y){if(y!==null){switch(a.ud){case nu:if(0<y.destinationEdges.count){for(var x=new cn,b=y.destinationVertexes;b.next();){var E=b.value;sx(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Nd:if(0<y.sourceEdges.count){for(x=new cn,b=y.sourceVertexes;b.next();)E=b.value,sx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:we("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)Ey(a,x[y])}}function sx(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}ji.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===ou&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,nt=z.length,rt=0;rt<nt;rt++){var st=z[rt];ax(a,st),x+=st.descendantCount+1,b=Math.max(b,st.maxChildrenCount),E=Math.max(E,st.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case O0:return y.parent!==null?y.parent:a.W;case Iy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Oy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case By:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}ji.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===ou){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function lx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}ji.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==ou&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}ji.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Uf:break;case Cp:a.children.reverse();break;case bp:a.children.sort(a.comparer);break;case Ap:a.children.sort(a.comparer),a.children.reverse();break;default:we("Unhandled sorting value "+a.sorting.toString())}},ji.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ji.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=qh(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,nt=0,rt=0,st=a.commentSpacing;if(a.node!==null)for(var ht=a.node.Mu();ht.next();){var dt=ht.value;dt.category==="Comment"&&dt.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(dt),dt.Va(),dt=dt.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,dt.width),nt+=dt.height+Math.abs(rt)):(z+=dt.width+Math.abs(rt),nt=Math.max(nt,dt.height)),rt=st)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=en.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,en.free(E))};function qh(a){return a===hh||a===ou||a===ch||a===bu}function Pp(a){return a===hh||a===ou}function My(a){var y=a.parent;if(y!==null){var x=y.alignment;if(qh(x)){if(Pp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===ch)return!0}}return!1}ji.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=qh(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,rt=My(a),st=0,ht=a.comments,dt=ht.length,vt=xe.alloc(),Ft=0;Ft<dt;Ft++){var Wt=ht[Ft],Ht=Wt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&rt)if(0<=a.commentMargin)for(vt.h(a.bounds.x-a.commentMargin-Ht.width,a.bounds.y+st),Wt.move(vt),Wt=Wt.Sd();Wt.next();){var ne=Wt.value;ne.fromSpot=Bs,ne.toSpot=Jo}else for(vt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+st),Wt.move(vt),Wt=Wt.Sd();Wt.next();)ne=Wt.value,ne.fromSpot=Jo,ne.toSpot=Bs;else if(0<=a.commentMargin)for(vt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+st),Wt.move(vt),Wt=Wt.Sd();Wt.next();)ne=Wt.value,ne.fromSpot=Jo,ne.toSpot=Bs;else for(vt.h(a.bounds.x+a.commentMargin-Ht.width,a.bounds.y+st),Wt.move(vt),Wt=Wt.Sd();Wt.next();)ne=Wt.value,ne.fromSpot=Bs,ne.toSpot=Jo;st=0<=a.commentSpacing?st+(Ht.height+a.commentSpacing):st+(a.commentSpacing-Ht.height)}else{if(135<E&&!z||!x&&rt)if(0<=a.commentMargin)for(vt.h(a.bounds.x+st,a.bounds.y-a.commentMargin-Ht.height),Wt.move(vt),Wt=Wt.Sd();Wt.next();)ne=Wt.value,ne.fromSpot=ps,ne.toSpot=ss;else for(vt.h(a.bounds.x+st,a.bounds.y+2*a.focus.y-a.commentMargin),Wt.move(vt),Wt=Wt.Sd();Wt.next();)ne=Wt.value,ne.fromSpot=ss,ne.toSpot=ps;else if(0<=a.commentMargin)for(vt.h(a.bounds.x+st,a.bounds.y+2*a.focus.y+a.commentMargin),Wt.move(vt),Wt=Wt.Sd();Wt.next();)ne=Wt.value,ne.fromSpot=ss,ne.toSpot=ps;else for(vt.h(a.bounds.x+st,a.bounds.y+a.commentMargin-Ht.height),Wt.move(vt),Wt=Wt.Sd();Wt.next();)ne=Wt.value,ne.fromSpot=ps,ne.toSpot=ss;st=0<=a.commentSpacing?st+(Ht.width+a.commentSpacing):st+(a.commentSpacing-Ht.width)}}if(xe.free(vt),y=st-a.commentSpacing-(b?y.height:y.width),this.ud===nu)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},ji.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case B0:hx(this,a);break;case Lp:if(a.alignment===ou)hx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=qh(x)),b=My(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=hl(a);y=E===90||E===270;var z=0,nt=a.children,rt=nt.length;for(x=0;x<rt;x++)b=nt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var st=a.alignment;b=st===iu;var ht=st===ru,dt=qh(st),vt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ft=a.nodeSpacing,Wt=this.computeNodeIndent(a),Ht=a.rowSpacing,ne=0;(b||ht||a.hm||a.im&&a.maxGenerationCount===1)&&(ne=Math.max(0,a.rowIndent)),b=a.width;var ve=a.height,fe=0,Ce=0,ke=0,Me=null,De=null,Ve=0,Ln=0,Un=0,On=0,gn=0,sn=0,mi=0,fi=0;if(dt&&!Pp(st)&&135<E&&nt.reverse(),Pp(st))if(1<rt)for(var lr=0;lr<rt;lr++)lr%2===0&&lr!==rt-1&&(fi=Math.max(fi,y?nt[lr].Da.width:nt[lr].Da.height));else rt===1&&(fi=y?nt[0].Da.width:nt[0].Da.height);if(dt){switch(st){case hh:Ce=135>E?cx(this,a,nt,fi,fe,Ce):dx(this,a,nt,fi,fe,Ce),fi=Ce.x,fe=Ce.width,Ce=Ce.height;break;case ch:for(Me=0;Me<rt;Me++)De=nt[Me],vt=De.Da,ke=sn===0?0:Ht,y?(De.S.h(z-vt.width,On+ke),fe=Math.max(fe,vt.width),Ce=Math.max(Ce,On+ke+vt.height),On+=ke+vt.height):(De.S.h(Un+ke,z-vt.height),fe=Math.max(fe,Un+ke+vt.width),Ce=Math.max(Ce,vt.height),Un+=ke+vt.width),sn++;break;case bu:for(Me=0;Me<rt;Me++)De=nt[Me],z=De.Da,vt=sn===0?0:Ht,y?(De.S.h(Ft/2+a.focus.x,On+vt),fe=Math.max(fe,z.width),Ce=Math.max(Ce,On+vt+z.height),On+=vt+z.height):(De.S.h(Un+vt,Ft/2+a.focus.y),fe=Math.max(fe,Un+vt+z.width),Ce=Math.max(Ce,z.height),Un+=vt+z.width),sn++}Me=Ks(this,2),De=Ks(this,2),y?(Me[0].h(0,0),Me[1].h(0,Ce),De[0].h(fe,0)):(Me[0].h(0,0),Me[1].h(fe,0),De[0].h(0,Ce)),De[1].h(fe,Ce)}else for(lr=0;lr<rt;lr++){var Sr=nt[lr],Co=Sr.Da;if(y){0<vt&&0<sn&&Un+Ft+Co.width>vt&&(Un<z&&Wc(a,st,z-Un,0,mi,lr-1),gn++,sn=0,mi=lr,ke=Ce,Un=0,On=135<E?-Ce-Ht:Ce+Ht),N0(this,Sr,0,On);var Eo=0;if(sn===0)Me=Sr.Yo,De=Sr.kp,Ve=Co.width,Ln=Co.height,(Me===null||De===null||E!==hl(Sr))&&(Me=Ks(this,2),De=Ks(this,2),Me[0].h(0,0),Me[1].h(0,Ln),De[0].h(Ve,0),De[1].h(Ve,Ln));else{var cs=Fn();Ln=fx(this,a,Sr,Me,De,Ve,Ln,cs),Eo=Ln.x,Me=cs[0],De=cs[1],Ve=Ln.width,Ln=Ln.height,jn(cs),Un<Co.width&&0>Eo&&(Td(a,-Eo,0,mi,lr-1),F0(Me,-Eo,0),F0(De,-Eo,0),Eo=0)}Sr.S.h(Eo,On),fe=Math.max(fe,Ve),Ce=Math.max(Ce,ke+(gn===0?0:Ht)+Co.height),Un=Ve}else 0<vt&&0<sn&&On+Ft+Co.height>vt&&(On<z&&Wc(a,st,0,z-On,mi,lr-1),gn++,sn=0,mi=lr,ke=fe,On=0,Un=135<E?-fe-Ht:fe+Ht),N0(this,Sr,Un,0),Eo=0,sn===0?(Me=Sr.Yo,De=Sr.kp,Ve=Co.width,Ln=Co.height,(Me===null||De===null||E!==hl(Sr))&&(Me=Ks(this,2),De=Ks(this,2),Me[0].h(0,0),Me[1].h(Ve,0),De[0].h(0,Ln),De[1].h(Ve,Ln))):(cs=Fn(),Ln=fx(this,a,Sr,Me,De,Ve,Ln,cs),Eo=Ln.x,Me=cs[0],De=cs[1],Ve=Ln.width,Ln=Ln.height,jn(cs),On<Co.height&&0>Eo&&(Td(a,0,-Eo,mi,lr-1),F0(Me,0,-Eo),F0(De,0,-Eo),Eo=0)),Sr.S.h(Un,Eo),Ce=Math.max(Ce,Ln),fe=Math.max(fe,ke+(gn===0?0:Ht)+Co.width),On=Ln;sn++}switch(0<gn&&(y?(Ce+=Math.max(0,x),Un<fe&&Wc(a,st,fe-Un,0,mi,rt-1),0<ne&&(ht||Td(a,ne,0,0,rt-1),fe+=ne)):(fe+=Math.max(0,x),On<Ce&&Wc(a,st,0,Ce-On,mi,rt-1),0<ne&&(ht||Td(a,0,ne,0,rt-1),Ce+=ne))),ne=ht=0,st){case _f:y?ht+=fe/2-a.focus.x-Wt/2:ne+=Ce/2-a.focus.y-Wt/2;break;case Fd:0<gn?y?ht+=fe/2-a.focus.x-Wt/2:ne+=Ce/2-a.focus.y-Wt/2:y?(fi=nt[0].S.x+nt[0].la.x,ht+=fi+(nt[rt-1].S.x+nt[rt-1].la.x+2*nt[rt-1].focus.x-fi)/2-a.focus.x-Wt/2):(fi=nt[0].S.y+nt[0].la.y,ne+=fi+(nt[rt-1].S.y+nt[rt-1].la.y+2*nt[rt-1].focus.y-fi)/2-a.focus.y-Wt/2);break;case iu:y?(ht-=Wt,fe+=Wt):(ne-=Wt,Ce+=Wt);break;case ru:y?(ht+=fe-a.width+Wt,fe+=Wt):(ne+=Ce-a.height+Wt,Ce+=Wt);break;case hh:y?1<rt?ht+=fi+Ft/2-a.focus.x:ht+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<rt?ne+=fi+Ft/2-a.focus.y:ne+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case ch:y?ht+=fe+Ft/2-a.focus.x:ne+=Ce+Ft/2-a.focus.y;break;case bu:break;default:Ce=this.customAlignment(a,ht,ne,fe,Ce),ht=Ce[0],ne=Ce[1],fe=Ce[2],Ce=Ce[3]}for(Wt=0;Wt<rt;Wt++)fi=nt[Wt],y?fi.S.h(fi.S.x+fi.la.x-ht,fi.S.y+(135<E?(dt?-Ce:-fi.Da.height)+fi.la.y-x:ve+x+fi.la.y)):fi.S.h(fi.S.x+(135<E?(dt?-fe:-fi.Da.width)+fi.la.x-x:b+x+fi.la.x),fi.S.y+fi.la.y-ne);if(rt=nt=0,dt?y?(fe=Ty(a,fe,ht),0>ht&&(ht=0),135<E&&(ne+=Ce+x),Ce+=ve+x,st===bu&&(nt+=Ft/2+a.focus.x),rt+=ve+x):(135<E&&(ht+=fe+x),fe+=b+x,Ce=Ny(a,Ce,ne),0>ne&&(ne=0),st===bu&&(rt+=Ft/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>fe&&(fe=Fy(st,b-fe,0),nt=fe.x,rt=fe.y,fe=b,ht=0):fe=Ty(a,fe,ht),0>ht&&(nt-=ht,ht=0),135<E&&(ne+=Ce+x),Ce=Math.max(Math.max(Ce,ve),Ce+ve+x),rt+=ve+x):(135<E&&(ht+=fe+x),fe=Math.max(Math.max(fe,b),fe+b+x),a.comments===null?ve>Ce&&(Ce=Fy(st,0,ve-Ce),nt=Ce.x,rt=Ce.y,Ce=ve,ne=0):Ce=Ny(a,Ce,ne),0>ne&&(rt-=ne,ne=0),nt+=b+x),0<gn)E=Ks(this,4),gn=Ks(this,4),y?(E[2].h(0,ve+x),E[3].h(E[2].x,Ce),gn[2].h(fe,E[2].y),gn[3].h(gn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(fe,E[2].y),gn[2].h(E[2].x,Ce),gn[3].h(E[3].x,gn[2].y));else{for(E=Ks(this,Me.length+2),gn=Ks(this,De.length+2),st=0;st<Me.length;st++)dt=Me[st],E[st+2].h(dt.x+nt,dt.y+rt);for(st=0;st<De.length;st++)dt=De[st],gn[st+2].h(dt.x+nt,dt.y+rt)}y?(E[0].h(ht,0),E[1].h(E[0].x,ve),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),gn[0].h(ht+b,0),gn[1].h(gn[0].x,ve),gn[2].y<gn[1].y&&(gn[2].x<gn[0].x?gn[2].assign(gn[1]):gn[1].assign(gn[2])),gn[3].y<gn[2].y&&(gn[3].x<gn[0].x?gn[3].assign(gn[2]):gn[2].assign(gn[3])),E[2].y-=x/2,gn[2].y-=x/2):(E[0].h(0,ne),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),gn[0].h(0,ne+ve),gn[1].h(b,gn[0].y),gn[2].x<gn[1].x&&(gn[2].y<gn[0].y?gn[2].assign(gn[1]):gn[1].assign(gn[2])),gn[3].x<gn[2].x&&(gn[3].y<gn[0].y?gn[3].assign(gn[2]):gn[2].assign(gn[3])),E[2].x-=x/2,gn[2].x-=x/2),xl(this,Me),xl(this,De),a.Yo=E,a.kp=gn,a.la.h(ht,ne),a.Da.h(fe,Ce)}break;default:we("Unhandled compaction value "+a.compaction.toString())}}};function hx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=qh(x));var E=My(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=hl(y),x=b===90||b===270;var z=0;E=y.children;for(var nt=E.length,rt=0;rt<nt;rt++){var st=E[rt];z=Math.max(z,x?st.Da.width:st.Da.height)}var ht=y.alignment,dt=ht===iu,vt=ht===ru;rt=qh(ht);var Ft=Math.max(0,y.breadthLimit);st=a.computeLayerSpacing(y);var Wt=y.nodeSpacing,Ht=a.computeNodeIndent(y),ne=dt||vt?0:Ht/2,ve=y.rowSpacing,fe=0;(dt||vt||y.hm||y.im&&y.maxGenerationCount===1)&&(fe=Math.max(0,y.rowIndent)),dt=y.width;var Ce=y.height,ke=0,Me=0,De=0,Ve=0,Ln=0,Un=0,On=0,gn=0,sn=0,mi=0;if(rt&&!Pp(ht)&&135<b&&E.reverse(),Pp(ht))if(1<nt)for(var fi=0;fi<nt;fi++){var lr=E[fi],Sr=lr.Da;fi%2===0&&fi!==nt-1?sn=Math.max(sn,(x?Sr.width:Sr.height)+a.computeBusNodeSpacing(lr)-Wt):fi%2!==0&&(mi=Math.max(mi,(x?Sr.width:Sr.height)+a.computeBusNodeSpacing(lr)-Wt))}else nt===1&&(sn=x?E[0].Da.width:E[0].Da.height);if(rt)switch(ht){case hh:case ou:Me=135>b?cx(a,y,E,sn,ke,Me):dx(a,y,E,sn,ke,Me),sn=Me.x,ke=Me.width,Me=Me.height;break;case ch:for(Ft=0;Ft<nt;Ft++)ne=E[Ft],De=ne.Da,mi=On===0?0:ve,x?(ne.S.h(z-De.width,Ln+mi),ke=Math.max(ke,De.width),Me=Math.max(Me,Ln+mi+De.height),Ln+=mi+De.height):(ne.S.h(Ve+mi,z-De.height),ke=Math.max(ke,Ve+mi+De.width),Me=Math.max(Me,De.height),Ve+=mi+De.width),On++;break;case bu:for(z=0;z<nt;z++)Ft=E[z],ne=Ft.Da,De=On===0?0:ve,x?(Ft.S.h(Wt/2+y.focus.x,Ln+De),ke=Math.max(ke,ne.width),Me=Math.max(Me,Ln+De+ne.height),Ln+=De+ne.height):(Ft.S.h(Ve+De,Wt/2+y.focus.y),ke=Math.max(ke,Ve+De+ne.width),Me=Math.max(Me,ne.height),Ve+=De+ne.width),On++}else for(mi=0;mi<nt;mi++)fi=E[mi],lr=fi.Da,x?(0<Ft&&0<On&&Ve+Wt+lr.width>Ft&&(Ve<z&&Wc(y,ht,z-Ve,0,gn,mi-1),Un++,On=0,gn=mi,De=Me,Ve=0,Ln=135<b?-Me-ve:Me+ve),Sr=On===0?ne:Wt,N0(a,fi,0,Ln),fi.S.h(Ve+Sr,Ln),ke=Math.max(ke,Ve+Sr+lr.width),Me=Math.max(Me,De+(Un===0?0:ve)+lr.height),Ve+=Sr+lr.width):(0<Ft&&0<On&&Ln+Wt+lr.height>Ft&&(Ln<z&&Wc(y,ht,0,z-Ln,gn,mi-1),Un++,On=0,gn=mi,De=ke,Ln=0,Ve=135<b?-ke-ve:ke+ve),Sr=On===0?ne:Wt,N0(a,fi,Ve,0),fi.S.h(Ve,Ln+Sr),Me=Math.max(Me,Ln+Sr+lr.height),ke=Math.max(ke,De+(Un===0?0:ve)+lr.width),Ln+=Sr+lr.height),On++;switch(0<Un&&(x?(Me+=Math.max(0,st),Ve<ke&&Wc(y,ht,ke-Ve,0,gn,nt-1),0<fe&&(vt||Td(y,fe,0,0,nt-1),ke+=fe)):(ke+=Math.max(0,st),Ln<Me&&Wc(y,ht,0,Me-Ln,gn,nt-1),0<fe&&(vt||Td(y,0,fe,0,nt-1),Me+=fe))),fe=vt=0,ht){case _f:x?vt+=ke/2-y.focus.x-Ht/2:fe+=Me/2-y.focus.y-Ht/2;break;case Fd:0<Un?x?vt+=ke/2-y.focus.x-Ht/2:fe+=Me/2-y.focus.y-Ht/2:x?(a=E[0].S.x+E[0].la.x,vt+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-Ht/2):(a=E[0].S.y+E[0].la.y,fe+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-Ht/2);break;case iu:x?(vt-=Ht,ke+=Ht):(fe-=Ht,Me+=Ht);break;case ru:x?(vt+=ke-y.width+Ht,ke+=Ht):(fe+=Me-y.height+Ht,Me+=Ht);break;case hh:case ou:x?1<nt?vt+=sn+Wt/2-y.focus.x:vt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?fe+=sn+Wt/2-y.focus.y:fe+=E[0].focus.y-y.focus.y+E[0].la.y;break;case ch:x?vt+=ke+Wt/2-y.focus.x:fe+=Me+Wt/2-y.focus.y;break;case bu:break;default:a=a.customAlignment(y,vt,fe,ke,Me),vt=a[0],fe=a[1],ke=a[2],Me=a[3]}for(a=0;a<nt;a++)Ht=E[a],x?Ht.S.h(Ht.S.x+Ht.la.x-vt,Ht.S.y+(135<b?(rt?-Me:-Ht.Da.height)+Ht.la.y-st:Ce+st+Ht.la.y)):Ht.S.h(Ht.S.x+(135<b?(rt?-ke:-Ht.Da.width)+Ht.la.x-st:dt+st+Ht.la.x),Ht.S.y+Ht.la.y-fe);x?(ke=Ty(y,ke,vt),0>vt&&(vt=0),135<b&&(fe+=Me+st),Me=Math.max(Math.max(Me,Ce),Me+Ce+st)):(135<b&&(vt+=ke+st),ke=Math.max(Math.max(ke,dt),ke+dt+st),Me=Ny(y,Me,fe),0>fe&&(fe=0)),y.la.h(vt,fe),y.Da.h(ke,Me)}}ji.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function cx(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new en(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new en(b,0,E,z);for(var rt=y.nodeSpacing,st=y.rowSpacing,ht=hl(y)===90,dt=0,vt=0,Ft=0,Wt=0;Wt<nt;Wt++)if(!(Wt%2!==0||1<nt&&Wt===nt-1)){var Ht=x[Wt],ne=Ht.Da,ve=dt===0?0:st;if(ht){var fe=a.computeBusNodeSpacing(Ht)-rt;Ht.S.h(b-(ne.width+fe),Ft+ve),E=Math.max(E,ne.width+fe),z=Math.max(z,Ft+ve+ne.height),Ft+=ve+ne.height}else fe=a.computeBusNodeSpacing(Ht)-rt,Ht.S.h(vt+ve,b-(ne.height+fe)),z=Math.max(z,ne.height+fe),E=Math.max(E,vt+ve+ne.width),vt+=ve+ne.width;dt++}for(dt=0,Ht=vt,Wt=Ft,ht?(vt=b+rt,Ft=0):(vt=0,Ft=b+rt),ne=0;ne<nt;ne++)if(ne%2!==0){ve=x[ne],fe=ve.Da;var Ce=dt===0?0:st;if(ht){var ke=a.computeBusNodeSpacing(ve)-rt;ve.S.h(vt+ke,Ft+Ce),E=Math.max(E,vt+fe.width+ke),z=Math.max(z,Ft+Ce+fe.height),Ft+=Ce+fe.height}else ke=a.computeBusNodeSpacing(ve)-rt,ve.S.h(vt+Ce,Ft+ke),E=Math.max(E,vt+Ce+fe.width),z=Math.max(z,Ft+fe.height+ke),vt+=Ce+fe.width;dt++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ht?Math.max(Math.abs(Wt),Math.abs(Ft)):Math.max(Math.abs(Ht),Math.abs(vt))),ht?(x.S.h(b+rt/2-x.focus.x-x.la.x,z+a),ht=b+rt/2-x.focus.x-x.la.x,E=Math.max(E,ht+nt.width),0>ht&&(E-=ht),z=Math.max(z,Math.max(Wt,Ft)+a+nt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,rt))):(x.S.h(E+a,b+rt/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Ht,vt)+a+nt.width),Ft=b+rt/2-x.focus.y-x.la.y,z=Math.max(z,Ft+nt.height),0>Ft&&(z-=Ft),0>x.S.y&&(b=T0(y,x.S.y,!0,b,rt)))),new en(b,0,E,z)}function dx(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new en(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new en(b,0,E,z);for(var rt=y.nodeSpacing,st=y.rowSpacing,ht=hl(y)===270,dt=0,vt=0,Ft=0,Wt=0;Wt<nt;Wt++)if(!(Wt%2!==0||1<nt&&Wt===nt-1)){var Ht=x[Wt],ne=Ht.Da,ve=dt===0?0:st;if(ht){var fe=a.computeBusNodeSpacing(Ht)-rt;Ft-=ve+ne.height,Ht.S.h(b-(ne.width+fe),Ft),E=Math.max(E,ne.width+fe),z=Math.max(z,Math.abs(Ft))}else fe=a.computeBusNodeSpacing(Ht)-rt,vt-=ve+ne.width,Ht.S.h(vt,b-(ne.height+fe)),z=Math.max(z,ne.height+fe),E=Math.max(E,Math.abs(vt));dt++}for(dt=0,Ht=vt,Wt=Ft,ht?(vt=b+rt,Ft=0):(vt=0,Ft=b+rt),ne=0;ne<nt;ne++)if(ne%2!==0){ve=x[ne],fe=ve.Da;var Ce=dt===0?0:st;if(ht){var ke=a.computeBusNodeSpacing(ve)-rt;Ft-=Ce+fe.height,ve.S.h(vt+ke,Ft),E=Math.max(E,vt+fe.width+ke),z=Math.max(z,Math.abs(Ft))}else ke=a.computeBusNodeSpacing(ve)-rt,vt-=Ce+fe.width,ve.S.h(vt,Ft+ke),z=Math.max(z,Ft+fe.height+ke),E=Math.max(E,Math.abs(vt));dt++}for(1<nt&&nt%2===1&&(st=x[nt-1],dt=st.Da,a=a.computeBusLastRowSpacing(st,ht?Math.max(Math.abs(Wt),Math.abs(Ft)):Math.max(Math.abs(Ht),Math.abs(vt))),ht?(st.S.h(b+rt/2-st.focus.x-st.la.x,-z-dt.height-a),vt=b+rt/2-st.focus.x-st.la.x,E=Math.max(E,vt+dt.width),0>vt&&(E-=vt),z=Math.max(z,Math.abs(Math.min(Wt,Ft))+a+dt.height),0>st.S.x&&(b=T0(y,st.S.x,!1,b,rt))):(st.S.h(-E-dt.width-a,b+rt/2-st.focus.y-st.la.y),E=Math.max(E,Math.abs(Math.min(Ht,vt))+a+dt.width),Ft=b+rt/2-st.focus.y-st.la.y,z=Math.max(z,Ft+dt.height),0>Ft&&(z-=Ft),0>st.S.y&&(b=T0(y,st.S.y,!0,b,rt)))),y=0;y<nt;y++)rt=x[y],ht?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+E,rt.S.y);return new en(b,0,E,z)}ji.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ji.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function T0(a,y,x,b,E){a=a.children;for(var z=a.length,nt=0;nt<z;nt++)x?a[nt].S.h(a[nt].S.x,a[nt].S.y-y):a[nt].S.h(a[nt].S.x-y,a[nt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Ty(a,y,x){switch(a.alignment){case Fd:case _f:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case iu:return a.width>y?a.width:y;case ru:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case hh:case ou:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case ch:return a.width-a.focus.x+a.nodeSpacing/2+y;case bu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case Fd:case _f:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case iu:return a.height>y?a.height:y;case ru:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case hh:case ou:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case ch:return a.height-a.focus.y+a.nodeSpacing/2+y;case bu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case _f:y/=2,x/=2;break;case Fd:y/=2,x/=2;break;case iu:x=y=0;break;case ru:break;default:we("Unhandled alignment value "+a.toString())}return new xe(y,x)}function Wc(a,y,x,b,E,z){y=Fy(y,x,b),Td(a,y.x,y.y,E,z)}function Td(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function N0(a,y,x,b){var E=y.parent;switch(a.ud){case nu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Nd:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:we("Unhandled path value "+a.ud.toString())}}function F0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function fx(a,y,x,b,E,z,nt,rt){var st=hl(y),ht=st===90||st===270,dt=y.nodeSpacing;y=b;var vt=E;b=z;var Ft=nt,Wt=x.Yo,Ht=x.kp;nt=x.Da;var ne=ht?Math.max(Ft,nt.height):Math.max(b,nt.width);if((Wt===null||st!==hl(x))&&(Wt=Ks(a,2),Ht=Ks(a,2),ht?(Wt[0].h(0,0),Wt[1].h(0,nt.height),Ht[0].h(nt.width,0),Ht[1].h(Ht[0].x,Wt[1].y)):(Wt[0].h(0,0),Wt[1].h(nt.width,0),Ht[0].h(0,nt.height),Ht[1].h(Wt[1].x,Ht[0].y))),ht){if(Ft=9999999,!(vt===null||2>vt.length||Wt===null||2>Wt.length))for(E=x=0;x<vt.length&&E<Wt.length;){z=vt[x];var ve=Wt[E];st=ve.x,ht=ve.y,st+=b;var fe=z;x+1<vt.length&&(fe=vt[x+1]);var Ce=ve;ve=Ce.x,Ce=Ce.y,E+1<Wt.length&&(Ce=Wt[E+1],ve=Ce.x,Ce=Ce.y,ve+=b);var ke=Ft;z.y===ht?ke=st-z.x:z.y>ht&&z.y<Ce?ke=st+(z.y-ht)/(Ce-ht)*(ve-st)-z.x:ht>z.y&&ht<fe.y&&(ke=st-(z.x+(ht-z.y)/(fe.y-z.y)*(fe.x-z.x))),ke<Ft&&(Ft=ke),fe.y<=z.y?x++:Ce<=ht?E++:(fe.y<=Ce&&x++,Ce<=fe.y&&E++)}if(Ft=b-Ft,Ft+=dt,x=Wt,E=Ft,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=Ks(a,y.length+x.length),b=z=st=0;z<x.length&&x[z].y<y[0].y;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(;st<y.length;)ht=y[st++],dt[b++].h(ht.x,ht.y);for(st=y[y.length-1].y;z<x.length&&x[z].y<=st;)z++;for(;z<x.length&&x[z].y>st;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(x=Ks(a,b),st=0;st<b;st++)x[st].assign(dt[st]);xl(a,dt),b=x}if(z=Ht,st=Ft,vt===null||2>vt.length||z===null||2>z.length)E=null;else{for(dt=Ks(a,vt.length+z.length),E=ht=x=0;x<vt.length&&vt[x].y<z[0].y;)fe=vt[x++],dt[E++].h(fe.x,fe.y);for(;ht<z.length;)fe=z[ht++],dt[E++].h(fe.x+st,fe.y);for(z=z[z.length-1].y;x<vt.length&&vt[x].y<=z;)x++;for(;x<vt.length&&vt[x].y>z;)st=vt[x++],dt[E++].h(st.x,st.y);for(z=Ks(a,E),x=0;x<E;x++)z[x].assign(dt[x]);xl(a,dt),E=z}return z=Math.max(0,Ft)+nt.width,nt=ne,xl(a,y),xl(a,Wt),xl(a,vt),xl(a,Ht),rt[0]=b,rt[1]=E,new en(Ft,0,z,nt)}if(b=9999999,!(vt===null||2>vt.length||Wt===null||2>Wt.length))for(E=x=0;x<vt.length&&E<Wt.length;)z=vt[x],ve=Wt[E],st=ve.x,ht=ve.y,ht+=Ft,fe=z,x+1<vt.length&&(fe=vt[x+1]),Ce=ve,ve=Ce.x,Ce=Ce.y,E+1<Wt.length&&(Ce=Wt[E+1],ve=Ce.x,Ce=Ce.y,Ce+=Ft),ke=b,z.x===st?ke=ht-z.y:z.x>st&&z.x<ve?ke=ht+(z.x-st)/(ve-st)*(Ce-ht)-z.y:st>z.x&&st<fe.x&&(ke=ht-(z.y+(st-z.x)/(fe.x-z.x)*(fe.y-z.y))),ke<b&&(b=ke),fe.x<=z.x?x++:ve<=st?E++:(fe.x<=ve&&x++,ve<=fe.x&&E++);if(Ft-=b,Ft+=dt,x=Wt,E=Ft,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=Ks(a,y.length+x.length),b=z=st=0;z<x.length&&x[z].x<y[0].x;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(;st<y.length;)ht=y[st++],dt[b++].h(ht.x,ht.y);for(st=y[y.length-1].x;z<x.length&&x[z].x<=st;)z++;for(;z<x.length&&x[z].x>st;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(x=Ks(a,b),st=0;st<b;st++)x[st].assign(dt[st]);xl(a,dt),b=x}if(z=Ht,st=Ft,vt===null||2>vt.length||z===null||2>z.length)E=null;else{for(dt=Ks(a,vt.length+z.length),E=ht=x=0;x<vt.length&&vt[x].x<z[0].x;)fe=vt[x++],dt[E++].h(fe.x,fe.y);for(;ht<z.length;)fe=z[ht++],dt[E++].h(fe.x,fe.y+st);for(z=z[z.length-1].x;x<vt.length&&vt[x].x<=z;)x++;for(;x<vt.length&&vt[x].x>z;)st=vt[x++],dt[E++].h(st.x,st.y);for(z=Ks(a,E),x=0;x<E;x++)z[x].assign(dt[x]);xl(a,dt),E=z}return z=ne,nt=Math.max(0,Ft)+nt.height,xl(a,y),xl(a,Wt),xl(a,vt),xl(a,Ht),rt[0]=b,rt[1]=E,new en(Ft,0,z,nt)}function Ks(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 xe;return a}function xl(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}ji.prototype.arrangeTrees=function(){if(this.Rb===R0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Ya){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Dy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Ya&&a.push(x);switch(this.sorting){case Uf:break;case Cp:a.reverse();break;case bp:a.sort(this.comparer);break;case Ap:a.sort(this.comparer),a.reverse();break;default:we("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Dy(this,E,y+E.la.x,x+E.la.y),this.Rb){case I0:x+=E.Da.height+this.$d.height;break;case Ry:y+=E.Da.width+this.$d.width;break;default:we("Unhandled arrangement value "+this.Rb.toString())}}}};function Dy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var nt=y[z];Dy(a,nt,x+nt.S.x,b+nt.S.y)}}}ji.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ji.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ji.prototype.Gu=function(){if(this.layerStyle===j0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new xe(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new xe(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var nt=0;nt<a.length;nt++)z+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var rt=a[nt]+y[nt];this.angle===270?(z-=rt,E.push(new en(0,z,x,rt))):this.angle===90?(E.push(new en(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,E.push(new en(z,0,rt,x))):(E.push(new en(z,0,rt,x)),z+=rt)}this.commitLayers(E,b)}},ji.prototype.commitLayers=function(){},ji.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ji.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Ya&&gx(this,y)}};function gx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)gx(a,y[b])}}ji.prototype.setPortSpots=function(a){var y=a.alignment;if(qh(y)){var x=this.ud===nu,b=hl(a);switch(b){case 0:var E=Jo;break;case 90:E=ss;break;case 180:E=Bs;break;default:E=ps}var z=a.children,nt=z.length;switch(y){case hh:case ou:for(y=0;y<nt;y++){var rt=z[y];if(rt=(x?rt.sourceEdges:rt.destinationEdges).first(),rt!==null&&(rt=rt.link,rt!==null)){var st=b===90||b===270?Bs:ps;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:st=Bs;break;case 90:st=ps;break;case 180:st=Jo;break;default:st=ss}else y%2===0&&(st=b===90||b===270?Jo:ss);x?(a.setsPortSpot&&(rt.fromSpot=E),a.setsChildPortSpot&&(rt.toSpot=st)):(a.setsPortSpot&&(rt.fromSpot=st),a.setsChildPortSpot&&(rt.toSpot=E))}}break;case ch:for(b=b===90||b===270?Jo:ss,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)));break;case bu:for(b=b===90||b===270?Bs:ps,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)))}}else if(x=hl(a),this.ud===nu){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Jo;break;case 90:b.fromSpot=ss;break;case 180:b.fromSpot=Bs;break;default:b.fromSpot=ps}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Bs;break;case 90:b.toSpot=ps;break;case 180:b.toSpot=Jo;break;default:b.toSpot=ss}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Jo;break;case 90:b.toSpot=ss;break;case 180:b.toSpot=Bs;break;default:b.toSpot=ps}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Bs;break;case 90:b.fromSpot=ps;break;case 180:b.fromSpot=Jo;break;default:b.fromSpot=ss}else b.fromSpot=a.childPortSpot}};function hl(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}ji.prototype.computeLayerSpacing=function(a){var y=hl(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},ji.prototype.computeNodeIndent=function(a){var y=hl(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Ke.Object.defineProperties(ji.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!==O0&&a!==Oy&&a!==By&&a!==Iy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==jy&&a!==zy&&a!==j0||(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!==I0&&a!==Ry&&a!==R0||(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!==Uf&&a!==Cp&&a!==bp&&!Ap||(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()):we("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!==B0&&a!==Lp||(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!==Uf&&a!==Cp&&a!==bp&&!Ap||(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!==B0&&a!==Lp||(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 D0=new an(ji,"PathDefault",-1),nu=new an(ji,"PathDestination",0),Nd=new an(ji,"PathSource",1),Uf=new an(ji,"SortingForwards",10),Cp=new an(ji,"SortingReverse",11),bp=new an(ji,"SortingAscending",12),Ap=new an(ji,"SortingDescending",13),_f=new an(ji,"AlignmentCenterSubtrees",20),Fd=new an(ji,"AlignmentCenterChildren",21),iu=new an(ji,"AlignmentStart",22),ru=new an(ji,"AlignmentEnd",23),hh=new an(ji,"AlignmentBus",24),ou=new an(ji,"AlignmentBusBranching",25),ch=new an(ji,"AlignmentTopLeftBus",26),bu=new an(ji,"AlignmentBottomRightBus",27),B0=new an(ji,"CompactionNone",30),Lp=new an(ji,"CompactionBlock",31),O0=new an(ji,"StyleLayered",40),By=new an(ji,"StyleLastParents",41),Oy=new an(ji,"StyleAlternating",42),Iy=new an(ji,"StyleRootOnly",43),I0=new an(ji,"ArrangementVertical",50),Ry=new an(ji,"ArrangementHorizontal",51),R0=new an(ji,"ArrangementFixedRoots",52),jy=new an(ji,"LayerIndividual",60),zy=new an(ji,"LayerSiblings",61),j0=new an(ji,"LayerUniform",62);ji.className="TreeLayout",ji.PathDefault=D0,ji.PathDestination=nu,ji.PathSource=Nd,ji.SortingForwards=Uf,ji.SortingReverse=Cp,ji.SortingAscending=bp,ji.SortingDescending=Ap,ji.AlignmentCenterSubtrees=_f,ji.AlignmentCenterChildren=Fd,ji.AlignmentStart=iu,ji.AlignmentEnd=ru,ji.AlignmentBus=hh,ji.AlignmentBusBranching=ou,ji.AlignmentTopLeftBus=ch,ji.AlignmentBottomRightBus=bu,ji.CompactionNone=B0,ji.CompactionBlock=Lp,ji.StyleLayered=O0,ji.StyleLastParents=By,ji.StyleAlternating=Oy,ji.StyleRootOnly=Iy,ji.ArrangementVertical=I0,ji.ArrangementHorizontal=Ry,ji.ArrangementFixedRoots=R0,ji.LayerIndividual=jy,ji.LayerSiblings=zy,ji.LayerUniform=j0;function Dd(a){Pr.call(this,a)}Je(Dd,Pr),Dd.prototype.createVertex=function(){return new Ya(this)},Dd.prototype.createEdge=function(){return new Hf(this)},Dd.className="TreeNetwork";function Ya(a){mo.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 xe(0,0),this.Da=new wn(0,0),this.la=new xe(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Uf,this.hd=oy,this.Kb=0,this.Jb=Fd,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Lp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Fo,this.wr=!0,this.Dp=Fo}Je(Ya,mo),Ya.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)},Ke.Object.defineProperties(Ya.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)}}}),Ya.className="TreeVertex";function Hf(a){ra.call(this,a),this.$t=new xe(0,0)}Je(Hf,ra),Hf.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case nu:x=this.fromVertex,b=this.toVertex;break;case Nd:x=this.toVertex,b=this.fromVertex;break;default:we("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=hl(x),nt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var st=a.curve===ya,ht=a.isOrthogonal,dt;if(a.uh(),ht||st){for(dt=2;4<a.pointsCount;)a.pv(2);var vt=a.i(1),Ft=a.i(2)}else{for(dt=1;3<a.pointsCount;)a.pv(1);vt=a.i(0),Ft=a.i(a.pointsCount-1)}var Wt=a.i(a.pointsCount-1);z===0?(x.alignment===ru?(z=b.bottom+E.y,E.y===0&&vt.y>Wt.y+x.rowIndent&&(z=Math.min(z,Math.max(vt.y,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=b.top+E.y,E.y===0&&vt.y<Wt.y-x.rowIndent&&(z=Math.max(z,Math.min(vt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,st?(a.m(dt,vt.x,z),dt++,a.m(dt,b.right+nt,z),dt++,a.m(dt,b.right+nt+(E.x-rt)/3,z),dt++,a.m(dt,b.right+nt+2*(E.x-rt)/3,z),dt++,a.m(dt,b.right+nt+(E.x-rt),z),dt++,a.m(dt,Ft.x,z)):(ht&&(a.m(dt,b.right+nt/2,vt.y),dt++),a.m(dt,b.right+nt/2,z),dt++,a.m(dt,b.right+nt+E.x-(ht?rt/2:rt),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Ft.y))):z===90?(x.alignment===ru?(z=b.right+E.x,E.x===0&&vt.x>Wt.x+x.rowIndent&&(z=Math.min(z,Math.max(vt.x,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=b.left+E.x,E.x===0&&vt.x<Wt.x-x.rowIndent&&(z=Math.max(z,Math.min(vt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,st?(a.m(dt,z,vt.y),dt++,a.m(dt,z,b.bottom+nt),dt++,a.m(dt,z,b.bottom+nt+(E.y-rt)/3),dt++,a.m(dt,z,b.bottom+nt+2*(E.y-rt)/3),dt++,a.m(dt,z,b.bottom+nt+(E.y-rt)),dt++,a.m(dt,z,Ft.y)):(ht&&(a.m(dt,vt.x,b.bottom+nt/2),dt++),a.m(dt,z,b.bottom+nt/2),dt++,a.m(dt,z,b.bottom+nt+E.y-(ht?rt/2:rt)),dt++,ht&&a.m(dt,Ft.x,a.i(dt-1).y))):z===180?(x.alignment===ru?(z=b.bottom+E.y,E.y===0&&vt.y>Wt.y+x.rowIndent&&(z=Math.min(z,Math.max(vt.y,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=b.top+E.y,E.y===0&&vt.y<Wt.y-x.rowIndent&&(z=Math.max(z,Math.min(vt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,st?(a.m(dt,vt.x,z),dt++,a.m(dt,b.left-nt,z),dt++,a.m(dt,b.left-nt+(E.x+rt)/3,z),dt++,a.m(dt,b.left-nt+2*(E.x+rt)/3,z),dt++,a.m(dt,b.left-nt+(E.x+rt),z),dt++,a.m(dt,Ft.x,z)):(ht&&(a.m(dt,b.left-nt/2,vt.y),dt++),a.m(dt,b.left-nt/2,z),dt++,a.m(dt,b.left-nt+E.x+(ht?rt/2:rt),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Ft.y))):z===270?(x.alignment===ru?(z=b.right+E.x,E.x===0&&vt.x>Wt.x+x.rowIndent&&(z=Math.min(z,Math.max(vt.x,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=b.left+E.x,E.x===0&&vt.x<Wt.x-x.rowIndent&&(z=Math.max(z,Math.min(vt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,st?(a.m(dt,z,vt.y),dt++,a.m(dt,z,b.top-nt),dt++,a.m(dt,z,b.top-nt+(E.y+rt)/3),dt++,a.m(dt,z,b.top-nt+2*(E.y+rt)/3),dt++,a.m(dt,z,b.top-nt+(E.y+rt)),dt++,a.m(dt,z,Ft.y)):(ht&&(a.m(dt,vt.x,b.top-nt/2),dt++),a.m(dt,z,b.top-nt/2),dt++,a.m(dt,z,b.top-nt+E.y+(ht?rt/2:rt)),dt++,ht&&a.m(dt,Ft.x,a.i(dt-1).y))):we("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=hl(x),y!==hl(E)&&(nt=b.computeLayerSpacing(x),rt=x.bounds,x=E.bounds,y===0&&x.left-rt.right<nt+1||y===90&&x.top-rt.bottom<nt+1||y===180&&rt.left-x.right<nt+1||y===270&&rt.top-x.bottom<nt+1||(a.vg(),x=a.curve===ya,E=a.isOrthogonal,b=qh(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=rt.bottom+nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=rt.left-nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=rt.top-nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Ke.Object.defineProperties(Hf.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)}}}),Hf.className="TreeEdge",Br.prototype.initializeStandardTools=function(){this.gb("Action",new Wa,this.mouseDownTools),this.gb("Relinking",new fa,this.mouseDownTools),this.gb("LinkReshaping",new $r,this.mouseDownTools),this.gb("Rotating",new Ss,this.mouseDownTools),this.gb("Resizing",new qo,this.mouseDownTools),this.gb("Linking",new ys,this.mouseMoveTools),this.gb("Dragging",new zr,this.mouseMoveTools),this.gb("DragSelecting",new La,this.mouseMoveTools),this.gb("Panning",new Ko,this.mouseMoveTools),this.gb("ContextMenu",new xs,this.mouseUpTools),this.gb("TextEditing",new Lr,this.mouseUpTools),this.gb("ClickCreating",new Ku,this.mouseUpTools),this.gb("ClickSelecting",new Ah,this.mouseUpTools)},Bl("Horizontal",new fm),Bl("Spot",new pm),Bl("Table",new vm),Bl("Viewbox",new xm),Bl("TableRow",new ym),Bl("TableColumn",new Sm),Bl("Graduated",new Ug),Bl("Grid",new Gg),ff.add("GraphLinksModel",ko),ff.add("TreeModel",Ba);var z0=pn.go,Wy={get licenseKey(){return Ye.licenseKey},set licenseKey(a){Ye.licenseKey=a},get version(){return Ye.version},Group:xi,EnumValue:an,List:cn,Set:hn,Map:ti,Point:xe,Size:wn,Rect:en,Margin:Bi,Spot:ni,Geometry:mn,PathFigure:xo,PathSegment:or,InputEvent:as,DiagramEvent:Iu,ChangedEvent:Ir,Model:Vn,GraphLinksModel:qi,TreeModel:Es,Binding:eo,Transaction:Lo,UndoManager:jr,CommandHandler:me,Tool:nr,DraggingTool:zr,DraggingInfo:yu,DraggingOptions:at,LinkingBaseTool:Yr,LinkingTool:ys,RelinkingTool:fa,LinkReshapingTool:$r,ResizingTool:qo,RotatingTool:Ss,ClickSelectingTool:Ah,ActionTool:Wa,ClickCreatingTool:Ku,HTMLInfo:Ml,ContextMenuTool:xs,DragSelectingTool:La,PanningTool:Ko,TextEditingTool:Lr,ToolManager:Br,Animation:Vo,AnimationManager:ea,AnimationTrigger:nl,Layer:Do,Diagram:Ye,Palette:mt,Overview:bt,Brush:hr,GraphObject:Be,Panel:dn,RowColumnDefinition:uo,Shape:Li,TextBlock:wr,Picture:Ws,Part:$n,Adornment:ir,Node:kn,Link:vn,Placeholder:bs,Layout:Dr,LayoutNetwork:Pr,LayoutVertex:mo,LayoutEdge:ra,GridLayout:jo,PanelLayout:po,CircularLayout:Wr,CircularNetwork:zf,CircularVertex:mp,CircularEdge:S0,ForceDirectedLayout:Zo,ForceDirectedNetwork:Md,ForceDirectedVertex:vp,ForceDirectedEdge:yp,LayeredDigraphLayout:dr,LayeredDigraphNetwork:Gf,LayeredDigraphVertex:Ia,LayeredDigraphEdge:wp,TreeLayout:ji,TreeNetwork:Dd,TreeVertex:Ya,TreeEdge:Hf};typeof z0=="object"&&z0.version&&Nn("WARNING: a `go` object on the root object is already defined. "+("Debug"in z0?"debug ":"")+"version: "+z0.version+", replaced with version: "+Wy.version),Ye.prototype.go=Wy,pn.go=Wy,typeof Cn.exports=="object"&&(Cn.exports=typeof ce.g!="undefined"?ce.g.go:self.go)}();var ee=typeof ce.g!="undefined"?ce.g.go:self.go;const wt=typeof ce.g!="undefined"?ce.g.go:self.go,Qt=wt.Group,Zt=wt.EnumValue,Ot=wt.List,jt=wt.Set,Ct=wt.Map,Mt=wt.Point,Bt=wt.Size,St=wt.Rect,kt=wt.Margin,xt=wt.Spot,Dt=wt.Geometry,yt=wt.PathFigure,et=wt.PathSegment,tt=wt.InputEvent,lt=wt.DiagramEvent,ot=wt.ChangedEvent,ut=wt.Model,ct=wt.GraphLinksModel,ft=wt.TreeModel,gt=wt.Binding,Lt=wt.Transaction,Rt=wt.UndoManager,Ut=wt.CommandHandler,Nt=wt.Tool,qt=wt.DraggingTool,te=wt.DraggingInfo,Vt=wt.LinkingBaseTool,de=wt.LinkingTool,ge=wt.RelinkingTool,be=wt.LinkReshapingTool,Ne=wt.ResizingTool,Ge=wt.RotatingTool,Pe=wt.ClickSelectingTool,ze=wt.ActionTool,he=wt.ClickCreatingTool,Jt=wt.HTMLInfo,re=wt.ContextMenuTool,se=wt.DragSelectingTool,pe=wt.PanningTool,ue=wt.TextEditingTool,Re=wt.ToolManager,Fe=wt.Animation,Qe=wt.AnimationManager,Ae=wt.AnimationTrigger,_e=wt.Layer,Le=wt.Diagram,Oe=wt.Palette,He=wt.Overview,ie=wt.Brush,Tt=wt.GraphObject,At=wt.Panel,Yt=wt.RowColumnDefinition,oe=wt.Shape,_t=wt.TextBlock,It=wt.TextBlockMetrics,Pt=wt.Picture,Et=wt.Part,$t=wt.Adornment,zt=wt.Node,Gt=wt.Link,le=wt.Placeholder,ye=wt.Layout,Ue=wt.LayoutNetwork,We=wt.LayoutVertex,Ee=wt.LayoutEdge,Ze=wt.GridLayout,on=wt.PanelLayout,nn=wt.CircularLayout,qe=wt.CircularNetwork,En=wt.CircularVertex,fn=wt.CircularEdge,Pn=wt.ForceDirectedLayout,Mn=wt.ForceDirectedNetwork,ii=wt.ForceDirectedVertex,Tn=wt.ForceDirectedEdge,oi=wt.LayeredDigraphLayout,vi=wt.LayeredDigraphNetwork,yi=wt.LayeredDigraphVertex,Zi=wt.LayeredDigraphEdge,Hi=wt.TreeLayout,Yi=wt.TreeNetwork,zi=wt.TreeVertex,Pi=wt.TreeEdge,Gi=wt.version},2859:function(Cn,Gn,ce){"use strict";ce.d(Gn,{hP:function(){return He}});var ee=function(ie,Tt){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(At,Yt){At.__proto__=Yt}||function(At,Yt){for(var oe in Yt)Object.prototype.hasOwnProperty.call(Yt,oe)&&(At[oe]=Yt[oe])})(ie,Tt)};function wt(ie,Tt){function At(){this.constructor=ie}ee(ie,Tt),ie.prototype=Tt===null?Object.create(Tt):(At.prototype=Tt.prototype,new At)}function Qt(ie,Tt,At,Yt){return new(At||(At=Promise))(function(oe,_t){function It($t){try{Et(Yt.next($t))}catch(zt){_t(zt)}}function Pt($t){try{Et(Yt.throw($t))}catch(zt){_t(zt)}}function Et($t){var zt;$t.done?oe($t.value):(zt=$t.value,zt instanceof At?zt:new At(function(Gt){Gt(zt)})).then(It,Pt)}Et((Yt=Yt.apply(ie,Tt||[])).next())})}function Zt(ie,Tt){var At,Yt,oe,_t,It={label:0,sent:function(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return _t={next:Pt(0),throw:Pt(1),return:Pt(2)},typeof Symbol=="function"&&(_t[Symbol.iterator]=function(){return this}),_t;function Pt(Et){return function($t){return function(zt){if(At)throw new TypeError("Generator is already executing.");for(;It;)try{if(At=1,Yt&&(oe=2&zt[0]?Yt.return:zt[0]?Yt.throw||((oe=Yt.return)&&oe.call(Yt),0):Yt.next)&&!(oe=oe.call(Yt,zt[1])).done)return oe;switch(Yt=0,oe&&(zt=[2&zt[0],oe.value]),zt[0]){case 0:case 1:oe=zt;break;case 4:return It.label++,{value:zt[1],done:!1};case 5:It.label++,Yt=zt[1],zt=[0];continue;case 7:zt=It.ops.pop(),It.trys.pop();continue;default:if(oe=It.trys,!((oe=oe.length>0&&oe[oe.length-1])||zt[0]!==6&&zt[0]!==2)){It=0;continue}if(zt[0]===3&&(!oe||zt[1]>oe[0]&&zt[1]<oe[3])){It.label=zt[1];break}if(zt[0]===6&&It.label<oe[1]){It.label=oe[1],oe=zt;break}if(oe&&It.label<oe[2]){It.label=oe[2],It.ops.push(zt);break}oe[2]&&It.ops.pop(),It.trys.pop();continue}zt=Tt.call(ie,It)}catch(Gt){zt=[6,Gt],Yt=0}finally{At=oe=0}if(5&zt[0])throw zt[1];return{value:zt[0]?zt[1]:void 0,done:!0}}([Et,$t])}}}function Ot(){for(var ie=0,Tt=0,At=arguments.length;Tt<At;Tt++)ie+=arguments[Tt].length;var Yt=Array(ie),oe=0;for(Tt=0;Tt<At;Tt++)for(var _t=arguments[Tt],It=0,Pt=_t.length;It<Pt;It++,oe++)Yt[oe]=_t[It];return Yt}var jt=function(){function ie(){}return ie.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ie.setAttributes=function(Tt,At){for(var Yt=0,oe=At;Yt<oe.length;Yt++){var _t=oe[Yt],It=_t[0],Pt=_t[1];Tt.setAttribute(It,Pt)}},ie.createRect=function(Tt,At,Yt){var oe=document.createElementNS("http://www.w3.org/2000/svg","rect");return oe.setAttribute("width",Tt.toString()),oe.setAttribute("height",At.toString()),Yt&&ie.setAttributes(oe,Yt),oe},ie.createLine=function(Tt,At,Yt,oe,_t){var It=document.createElementNS("http://www.w3.org/2000/svg","line");return It.setAttribute("x1",Tt.toString()),It.setAttribute("y1",At.toString()),It.setAttribute("x2",Yt.toString()),It.setAttribute("y2",oe.toString()),_t&&ie.setAttributes(It,_t),It},ie.createPolygon=function(Tt,At){var Yt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Yt.setAttribute("points",Tt),At&&ie.setAttributes(Yt,At),Yt},ie.createCircle=function(Tt,At){var Yt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Yt.setAttribute("cx",(Tt/2).toString()),Yt.setAttribute("cy",(Tt/2).toString()),Yt.setAttribute("r",Tt.toString()),At&&ie.setAttributes(Yt,At),Yt},ie.createEllipse=function(Tt,At,Yt){var oe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return oe.setAttribute("cx",(Tt/2).toString()),oe.setAttribute("cy",(At/2).toString()),oe.setAttribute("rx",(Tt/2).toString()),oe.setAttribute("ry",(At/2).toString()),Yt&&ie.setAttributes(oe,Yt),oe},ie.createGroup=function(Tt){var At=document.createElementNS("http://www.w3.org/2000/svg","g");return Tt&&ie.setAttributes(At,Tt),At},ie.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ie.createMarker=function(Tt,At,Yt,oe,_t,It,Pt){var Et=document.createElementNS("http://www.w3.org/2000/svg","marker");return ie.setAttributes(Et,[["id",Tt],["orient",At],["markerWidth",Yt.toString()],["markerHeight",oe.toString()],["refX",_t.toString()],["refY",It.toString()]]),Et.appendChild(Pt),Et},ie.createText=function(Tt){var At=document.createElementNS("http://www.w3.org/2000/svg","text");return At.setAttribute("x","0"),At.setAttribute("y","0"),Tt&&ie.setAttributes(At,Tt),At},ie.createTSpan=function(Tt,At){var Yt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Yt.textContent=Tt,At&&ie.setAttributes(Yt,At),Yt},ie.createImage=function(Tt){var At=document.createElementNS("http://www.w3.org/2000/svg","image");return Tt&&ie.setAttributes(At,Tt),At},ie.createPoint=function(Tt,At){var Yt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Yt.x=Tt,Yt.y=At,Yt},ie.createPath=function(Tt,At){var Yt=document.createElementNS("http://www.w3.org/2000/svg","path");return Yt.setAttribute("d",Tt),At&&ie.setAttributes(Yt,At),Yt},ie}(),Ct=function(){function ie(){}return ie.addKey=function(Tt){ie.key=Tt},Object.defineProperty(ie,"isLicensed",{get:function(){return!!ie.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ie.key)},enumerable:!1,configurable:!0}),ie}(),Mt=function(){function ie(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ie.prototype.rasterize=function(Tt,At,Yt){var oe=this;return new Promise(function(_t){var It=Yt!==void 0?Yt:document.createElement("canvas");Tt===null&&(oe.markersOnly=!0,oe.naturalSize=!1);var Pt=document.createElementNS("http://www.w3.org/2000/svg","svg");Pt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Pt.setAttribute("width",At.width.baseVal.valueAsString),Pt.setAttribute("height",At.height.baseVal.valueAsString),Pt.setAttribute("viewBox","0 0 "+At.viewBox.baseVal.width.toString()+" "+At.viewBox.baseVal.height.toString()),Pt.innerHTML=At.innerHTML,oe.naturalSize===!0?(Pt.width.baseVal.value=Tt.naturalWidth,Pt.height.baseVal.value=Tt.naturalHeight):oe.width!==void 0&&oe.height!==void 0&&(Pt.width.baseVal.value=oe.width,Pt.height.baseVal.value=oe.height),It.width=Pt.width.baseVal.value,It.height=Pt.height.baseVal.value;var Et=Pt.outerHTML,$t=It.getContext("2d");oe.markersOnly!==!0&&$t.drawImage(Tt,0,0,It.width,It.height);var zt=window.URL,Gt=new Image(It.width,It.height);Gt.setAttribute("crossOrigin","anonymous");var le=new Blob([Et],{type:"image/svg+xml"}),ye=zt.createObjectURL(le);Gt.onload=function(){$t.drawImage(Gt,0,0),zt.revokeObjectURL(ye);var Ue=It.toDataURL(oe.imageType,oe.imageQuality);_t(Ue)},Gt.src=ye})},ie}(),Bt=function(){},St=function(){function ie(Tt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Tt+"_"}return Object.defineProperty(ie.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ie.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(ie.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ie.prototype.addClass=function(Tt){return this.styleSheet===void 0&&this.addStyleSheet(),Tt.name=""+this.classNamePrefix+Tt.localName,this.classes.push(Tt),this.styleSheet.sheet.insertRule("."+Tt.name+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length),Tt},ie.prototype.addRule=function(Tt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Tt),this.styleSheet.sheet.insertRule(Tt.selector+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length)},ie.prototype.addStyleSheet=function(){var Tt;this.styleSheet=document.createElement("style"),((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).appendChild(this.styleSheet),this.addRule(new kt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new xt("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new xt("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},ie.prototype.removeStyleSheet=function(){var Tt;this.styleSheet&&(((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ie}(),kt=function(ie,Tt){this.selector=ie,this.style=Tt},xt=function(ie,Tt){this.localName=ie,this.style=Tt},Dt=function(){function ie(Tt,At,Yt,oe,_t){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Tt,this.displayMode=At,this.markerItems=Yt,this.uiStyleSettings=oe,this.styles=_t,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ie.prototype.show=function(Tt){var At=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Yt=document.createElement("div");Yt.className=this.toolbarBlockStyleClass.name,Yt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Yt),this.addActionButton(Yt,'<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(Yt,'<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(Yt,'<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(Yt,'<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(Yt,'<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(Yt,'<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(Yt,'<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(Yt,'<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(_t){var It=document.createElement("div");It.className=""+At.toolbarButtonStyleClass.name,It.setAttribute("data-type-name",_t.typeName),It.innerHTML=_t.icon,It.addEventListener("click",function(){At.markerToolbarButtonClicked(It,_t)}),At.buttons.push(It),At.markerButtons.push(It)}),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 oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",oe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<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(oe,'<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()},ie.prototype.addButtonClickListener=function(Tt){this.buttonClickListeners.push(Tt)},ie.prototype.removeButtonClickListener=function(Tt){this.buttonClickListeners.indexOf(Tt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Tt),1)},ie.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ie.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Tt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var At=0;At<this.markerButtons.length;At++)At<Tt||At===Tt&&this.markerButtons.length-1===Tt?this.markerButtonBlock.appendChild(this.markerButtons[At]):(At===Tt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[At]))}},ie.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")},ie.prototype.resetButtonStyles=function(){var Tt=this;this.buttons.forEach(function(At){At.className=At.className.replace(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name,"").trim(),At.className=At.className.replace(Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Tt.toolbarActiveButtonStyleColorsClass.name,"").trim(),At.className+=" "+(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name)})},ie.prototype.addActionButton=function(Tt,At,Yt){var oe=this,_t=document.createElement("div");switch(_t.className=""+this.toolbarButtonStyleClass.name,_t.innerHTML=At,_t.setAttribute("data-action",Yt),_t.addEventListener("click",function(){oe.actionToolbarButtonClicked(_t,Yt)}),Yt){case"select":_t.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":_t.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":_t.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":_t.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":_t.style.fill=this.uiStyleSettings.closeButtonColor}Tt.appendChild(_t),this.buttons.push(_t)},ie.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xt("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 xt("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xt("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new xt("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 xt("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Tt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xt("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
|
|
padding: `+Tt+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xt("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xt("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},ie.prototype.markerToolbarButtonClicked=function(Tt,At){this.setActiveButton(Tt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Yt){return Yt("marker",At)}),this.markerButtonOverflowBlock.style.display="none"},ie.prototype.actionToolbarButtonClicked=function(Tt,At){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Yt){return Yt("action",At)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ie.prototype.setActiveButton=function(Tt){this.resetButtonStyles(),Tt.className=Tt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Tt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ie.prototype.setActiveMarkerButton=function(Tt){var At=this.markerButtons.find(function(Yt){return Yt.getAttribute("data-type-name")===Tt});At&&this.setActiveButton(At)},ie.prototype.setCurrentMarker=function(Tt){var At=this;this.currentMarker=Tt,this.buttons.filter(function(Yt){return/delete|notes/.test(Yt.getAttribute("data-action"))}).forEach(function(Yt){At.currentMarker===void 0?(Yt.style.fillOpacity="0.4",Yt.style.pointerEvents="none"):(Yt.style.fillOpacity="1",Yt.style.pointerEvents="all")})},ie}(),yt=function(){function ie(Tt,At,Yt,oe){this.panels=[],this.panelButtons=[],this.markerjsContainer=Tt,this.displayMode=At,this.uiStyleSettings=Yt,this.styles=oe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ie.prototype.addStyles=function(){var Tt;this.toolboxStyleClass=this.styles.addClass(new xt("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 xt("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var At=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xt("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xt("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xt("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 xt("toolbox-panel-row_colors",`
|
|
background-color: `+((Tt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Tt!==void 0?Tt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new xt("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*At)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*At)+`px;
|
|
padding: `+At+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new xt("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xt("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new kt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new kt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},ie.prototype.show=function(Tt){var At;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((At=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&At!==void 0?At:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ie.prototype.setPanelButtons=function(Tt){var At,Yt,oe=this;this.panels=Tt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((At=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&At!==void 0?At:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Yt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Yt!==void 0?Yt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(_t){var It;_t.uiStyleSettings=oe.uiStyleSettings;var Pt=document.createElement("div");Pt.className=oe.toolboxButtonStyleClass.name+" "+((It=oe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&It!==void 0?It:oe.toolboxButtonStyleColorsClass.name),Pt.innerHTML=_t.icon,Pt.title=_t.title,Pt.addEventListener("click",function(){oe.panelButtonClick(_t)}),oe.panelButtons.push(Pt),oe.buttonRow.appendChild(Pt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ie.prototype.panelButtonClick=function(Tt){var At=this,Yt=-1;if(Tt!==this.activePanel){Yt=this.panels.indexOf(Tt),this.panelRow.innerHTML="";var oe=Tt.getUi();oe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(oe),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=Tt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){At.displayMode==="inline"?At.panelRow.style.display="none":At.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(_t,It){var Pt,Et;_t.className=At.toolboxButtonStyleClass.name+" "+(It===Yt?""+((Pt=At.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Pt!==void 0?Pt:At.toolboxActiveButtonStyleColorsClass.name):""+((Et=At.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Et!==void 0?Et:At.toolboxButtonStyleColorsClass.name))})},ie}(),et=function(ie,Tt){this.title=ie,this.icon=Tt},tt=function(ie){function Tt(At,Yt,oe,_t){var It=ie.call(this,At,_t||'<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 It.colors=[],It.addTransparent=!1,It.colorBoxes=[],It.colors=Yt,It.currentColor=oe,It.setCurrentColor=It.setCurrentColor.bind(It),It.getColorBox=It.getColorBox.bind(It),It}return wt(Tt,ie),Tt.prototype.getUi=function(){var At=this,Yt=document.createElement("div");return Yt.style.overflow="hidden",Yt.style.whiteSpace="nowrap",this.colors.forEach(function(oe){var _t=At.getColorBox(oe);Yt.appendChild(_t),At.colorBoxes.push(_t)}),Yt},Tt.prototype.getColorBox=function(At){var Yt=this,oe=this.uiStyleSettings.toolbarHeight/4,_t=this.uiStyleSettings.toolbarHeight-oe,It=document.createElement("div");It.style.display="inline-block",It.style.boxSizing="content-box",It.style.width=_t-2+"px",It.style.height=_t-2+"px",It.style.padding="1px",It.style.marginRight="2px",It.style.marginBottom="2px",It.style.borderWidth="2px",It.style.borderStyle="solid",It.style.borderRadius=(_t+2)/2+"px",It.style.borderColor=At===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",It.addEventListener("click",function(){Yt.setCurrentColor(At,It)});var Pt=document.createElement("div");return Pt.style.display="inline-block",Pt.style.width=_t-2+"px",Pt.style.height=_t-2+"px",Pt.style.backgroundColor=At,Pt.style.borderRadius=_t/2+"px",At==="transparent"&&(Pt.style.fill=this.uiStyleSettings.toolboxAccentColor,Pt.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>`),It.appendChild(Pt),It},Tt.prototype.setCurrentColor=function(At,Yt){var oe=this;this.currentColor=At,this.colorBoxes.forEach(function(_t){_t.style.borderColor=_t===Yt?oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(At)},Tt}(et),lt=function(){function ie(Tt,At,Yt){this._state="new",this._isSelected=!1,this._container=Tt,this._overlayContainer=At,this.globalSettings=Yt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ie.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ie.prototype.ownsTarget=function(Tt){return!1},Object.defineProperty(ie.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ie.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ie.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ie.prototype.pointerDown=function(Tt,At){},ie.prototype.dblClick=function(Tt,At){},ie.prototype.manipulate=function(Tt){},ie.prototype.pointerUp=function(Tt){this.stateChanged()},ie.prototype.dispose=function(){},ie.prototype.addMarkerVisualToContainer=function(Tt){this.container.childNodes.length>0?this.container.insertBefore(Tt,this.container.childNodes[0]):this.container.appendChild(Tt)},ie.prototype.getState=function(){return{typeName:ie.typeName,state:this.state,notes:this.notes}},ie.prototype.restoreState=function(Tt){this._state=Tt.state,this.notes=Tt.notes},ie.prototype.scale=function(Tt,At){},ie.prototype.colorChanged=function(Tt){this.onColorChanged&&this.onColorChanged(Tt),this.stateChanged()},ie.prototype.fillColorChanged=function(Tt){this.onFillColorChanged&&this.onFillColorChanged(Tt),this.stateChanged()},ie.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Tt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Tt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Tt)&&this.onStateChanged(this)}},ie.typeName="MarkerBase",ie}(),ot=function(){function ie(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ie.prototype.findGripByVisual=function(Tt){return this.topLeft.ownsTarget(Tt)?this.topLeft:this.topCenter.ownsTarget(Tt)?this.topCenter:this.topRight.ownsTarget(Tt)?this.topRight:this.centerLeft.ownsTarget(Tt)?this.centerLeft:this.centerRight.ownsTarget(Tt)?this.centerRight:this.bottomLeft.ownsTarget(Tt)?this.bottomLeft:this.bottomCenter.ownsTarget(Tt)?this.bottomCenter:this.bottomRight.ownsTarget(Tt)?this.bottomRight:void 0},ie}(),ut=function(){function ie(){this.GRIP_SIZE=10,this.visual=jt.createGroup(),this.visual.appendChild(jt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(jt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ie.prototype.ownsTarget=function(Tt){return Tt===this.visual||Tt===this.visual.childNodes[0]||Tt===this.visual.childNodes[1]},ie}(),ct=function(){function ie(){}return ie.toITransformMatrix=function(Tt){return{a:Tt.a,b:Tt.b,c:Tt.c,d:Tt.d,e:Tt.e,f:Tt.f}},ie.toSVGMatrix=function(Tt,At){return Tt.a=At.a,Tt.b=At.b,Tt.c=At.c,Tt.d=At.d,Tt.e=At.e,Tt.f=At.f,Tt},ie}(),ft=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.left=0,_t.top=0,_t.width=0,_t.height=0,_t.defaultSize={x:50,y:20},_t.offsetX=0,_t.offsetY=0,_t.rotationAngle=0,_t.CB_DISTANCE=10,_t._suppressMarkerCreateEvent=!1,_t.container.transform.baseVal.appendItem(jt.createTransform()),_t.setupControlBox(),_t}return wt(Tt,ie),Object.defineProperty(Tt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"visual",{get:function(){return this._visual},set:function(At){this._visual=At;var Yt=jt.createTransform();this._visual.transform.baseVal.appendItem(Yt)},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(At){return!!ie.prototype.ownsTarget.call(this,At)||!!(this.controlGrips.findGripByVisual(At)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(At))},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.state==="new"&&(this.left=At.x,this.top=At.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var oe=this.unrotatePoint(At);if(this.manipulationStartX=oe.x,this.manipulationStartY=oe.y,this.offsetX=oe.x-this.left,this.offsetY=oe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Yt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Yt)){this.activeGrip=this.rotatorGrip;var _t=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=_t.x-this.width/2,this.top=_t.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var It=this.container.transform.baseVal.getItem(0);It.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(It,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Tt.prototype.pointerUp=function(At){var Yt=this.state;ie.prototype.pointerUp.call(this,At),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(At),this._state="select",Yt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Tt.prototype.moveVisual=function(At){this.visual.style.transform="translate("+At.x+"px, "+At.y+"px)"},Tt.prototype.manipulate=function(At){var Yt=this.unrotatePoint(At);this.state==="creating"?this.resize(At):this.state==="move"?(this.left=this.manipulationStartLeft+(Yt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Yt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Yt):this.state==="rotate"&&this.rotate(At)},Tt.prototype.resize=function(At){var Yt=this.manipulationStartLeft,oe=this.manipulationStartWidth,_t=this.manipulationStartTop,It=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Yt=this.manipulationStartLeft+At.x-this.manipulationStartX,oe=this.manipulationStartWidth+this.manipulationStartLeft-Yt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:oe=this.manipulationStartWidth+At.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:_t=this.manipulationStartTop+At.y-this.manipulationStartY,It=this.manipulationStartHeight+this.manipulationStartTop-_t;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:It=this.manipulationStartHeight+At.y-this.manipulationStartY}oe>=0?(this.left=Yt,this.width=oe):(this.left=Yt+oe,this.width=-oe),It>=0?(this.top=_t,this.height=It):(this.top=_t+It,this.height=-It),this.setSize()},Tt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Tt.prototype.rotate=function(At){if(Math.abs(At.x-this.centerX)>.1){var Yt=Math.sign(At.x-this.centerX);this.rotationAngle=180*Math.atan((At.y-this.centerY)/(At.x-this.centerX))/Math.PI+90*Yt,this.applyRotation()}},Tt.prototype.applyRotation=function(){var At=this.container.transform.baseVal.getItem(0);At.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(At,0)},Tt.prototype.rotatePoint=function(At){if(this.rotationAngle===0)return At;var Yt=this.container.getCTM(),oe=jt.createPoint(At.x,At.y);return{x:(oe=oe.matrixTransform(Yt)).x,y:oe.y}},Tt.prototype.unrotatePoint=function(At){if(this.rotationAngle===0)return At;var Yt=this.container.getCTM();Yt=Yt.inverse();var oe=jt.createPoint(At.x,At.y);return{x:(oe=oe.matrixTransform(Yt)).x,y:oe.y}},Tt.prototype.select=function(){ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){ie.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=jt.createGroup();var At=jt.createTransform();At.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(At),this.container.appendChild(this.controlBox),this.controlRect=jt.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=jt.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 ot,this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){var At=this.controlBox.transform.baseVal.getItem(0);At.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(At,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()},Tt.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()},Tt.prototype.createGrip=function(){var At=new ut;return At.visual.transform.baseVal.appendItem(jt.createTransform()),this.controlBox.appendChild(At.visual),At},Tt.prototype.positionGrips=function(){var At=this.controlGrips.topLeft.GRIP_SIZE,Yt=-At/2,oe=Yt,_t=(this.width+this.CB_DISTANCE)/2-At/2,It=(this.height+this.CB_DISTANCE)/2-At/2,Pt=this.height+this.CB_DISTANCE-At/2,Et=this.width+this.CB_DISTANCE-At/2;this.positionGrip(this.controlGrips.topLeft.visual,Yt,oe),this.positionGrip(this.controlGrips.topCenter.visual,_t,oe),this.positionGrip(this.controlGrips.topRight.visual,Et,oe),this.positionGrip(this.controlGrips.centerLeft.visual,Yt,It),this.positionGrip(this.controlGrips.centerRight.visual,Et,It),this.positionGrip(this.controlGrips.bottomLeft.visual,Yt,Pt),this.positionGrip(this.controlGrips.bottomCenter.visual,_t,Pt),this.positionGrip(this.controlGrips.bottomRight.visual,Et,Pt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,_t,oe-3*this.CB_DISTANCE)},Tt.prototype.positionGrip=function(At,Yt,oe){var _t=At.transform.baseVal.getItem(0);_t.setTranslate(Yt,oe),At.transform.baseVal.replaceItem(_t,0)},Tt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Tt.prototype.showControlBox=function(){this.controlBox.style.display=""},Tt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ie.prototype.getState.call(this))},Tt.prototype.restoreState=function(At){ie.prototype.restoreState.call(this,At);var Yt=At;this.left=Yt.left,this.top=Yt.top,this.width=Yt.width,this.height=Yt.height,this.rotationAngle=Yt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Yt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Yt.containerTransformMatrix))},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt);var oe=this.rotatePoint({x:this.left,y:this.top}),_t=this.unrotatePoint({x:oe.x*At,y:oe.y*Yt});this.left=_t.x,this.top=_t.y,this.width=this.width*At,this.height=this.height*Yt,this.adjustControlBox()},Tt}(lt),gt=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.fillColor="transparent",_t.strokeColor="transparent",_t.strokeWidth=0,_t.strokeDasharray="",_t.opacity=1,_t.setStrokeColor=_t.setStrokeColor.bind(_t),_t.setFillColor=_t.setFillColor.bind(_t),_t.setStrokeWidth=_t.setStrokeWidth.bind(_t),_t.setStrokeDasharray=_t.setStrokeDasharray.bind(_t),_t.createVisual=_t.createVisual.bind(_t),_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.visual)},Tt.prototype.createVisual=function(){this.visual=jt.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)},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Tt.prototype.manipulate=function(At){ie.prototype.manipulate.call(this,At)},Tt.prototype.resize=function(At){ie.prototype.resize.call(this,At),this.setSize()},Tt.prototype.setSize=function(){ie.prototype.setSize.call(this),jt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(At){ie.prototype.pointerUp.call(this,At),this.setSize()},Tt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.visual&&jt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(At),this.stateChanged()},Tt.prototype.setFillColor=function(At){this.fillColor=At,this.visual&&jt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Tt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.visual&&jt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.visual&&jt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ie.prototype.getState.call(this))},Tt.prototype.restoreState=function(At){var Yt=At;this.fillColor=Yt.fillColor,this.strokeColor=Yt.strokeColor,this.strokeWidth=Yt.strokeWidth,this.strokeDasharray=Yt.strokeDasharray,this.opacity=Yt.opacity,this.createVisual(),ie.prototype.restoreState.call(this,At),this.setSize()},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt),this.setSize()},Tt.title="Rectangle marker",Tt}(ft),Lt=function(ie){function Tt(At,Yt,oe,_t){var It=ie.call(this,At,_t||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return It.widths=[],It.widthBoxes=[],It.widths=Yt,It.currentWidth=oe,It.setCurrentWidth=It.setCurrentWidth.bind(It),It}return wt(Tt,ie),Tt.prototype.getUi=function(){var At=this,Yt=document.createElement("div");return Yt.style.display="flex",Yt.style.overflow="hidden",Yt.style.flexGrow="2",this.widths.forEach(function(oe){var _t=document.createElement("div");_t.style.display="flex",_t.style.flexGrow="2",_t.style.alignItems="center",_t.style.justifyContent="space-between",_t.style.padding="5px",_t.style.borderWidth="2px",_t.style.borderStyle="solid",_t.style.borderColor=oe===At.currentWidth?At.uiStyleSettings.toolboxAccentColor:"transparent",_t.addEventListener("click",function(){At.setCurrentWidth(oe,_t)}),Yt.appendChild(_t);var It=document.createElement("div");It.innerText=oe.toString(),It.style.marginRight="5px",_t.appendChild(It);var Pt=document.createElement("div");Pt.style.minHeight="20px",Pt.style.flexGrow="2",Pt.style.display="flex",Pt.style.alignItems="center";var Et=document.createElement("hr");Et.style.minWidth="20px",Et.style.border="0px",Et.style.borderTop=oe+"px solid "+At.uiStyleSettings.toolboxColor,Et.style.flexGrow="2",Pt.appendChild(Et),_t.appendChild(Pt),At.widthBoxes.push(_t)}),Yt},Tt.prototype.setCurrentWidth=function(At,Yt){var oe=this;this.currentWidth=At,this.widthBoxes.forEach(function(_t){_t.style.borderColor=_t===Yt?oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Tt}(et),Rt=function(ie){function Tt(At,Yt,oe,_t){var It=ie.call(this,At,_t||'<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 It.styles=[],It.styleBoxes=[],It.styles=Yt,It.currentStyle=oe,It.setCurrentStyle=It.setCurrentStyle.bind(It),It}return wt(Tt,ie),Tt.prototype.getUi=function(){var At=this,Yt=document.createElement("div");return Yt.style.display="flex",Yt.style.overflow="hidden",Yt.style.flexGrow="2",this.styles.forEach(function(oe){var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.justifyContent="space-between",_t.style.padding="5px",_t.style.borderWidth="2px",_t.style.borderStyle="solid",_t.style.overflow="hidden",_t.style.maxWidth=100/At.styles.length-5+"%",_t.style.borderColor=oe===At.currentStyle?At.uiStyleSettings.toolboxAccentColor:"transparent",_t.addEventListener("click",function(){At.setCurrentStyle(oe,_t)}),Yt.appendChild(_t);var It=document.createElement("div");It.style.minHeight="20px",It.style.flexGrow="2",It.style.overflow="hidden";var Pt=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+At.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(oe!==""?'stroke-dasharray="'+oe+'"':"")+` />
|
|
</svg>`;It.innerHTML=Pt,_t.appendChild(It),At.styleBoxes.push(_t)}),Yt},Tt.prototype.setCurrentStyle=function(At,Yt){var oe=this;this.currentStyle=At,this.styleBoxes.forEach(function(_t){_t.style.borderColor=_t===Yt?oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Tt}(et),Ut=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.strokeColor=oe.defaultColor,_t.strokeWidth=oe.defaultStrokeWidth,_t.strokeDasharray=oe.defaultStrokeDasharray,_t.strokePanel=new tt("Line color",oe.defaultColorSet,oe.defaultColor),_t.strokePanel.onColorChanged=_t.setStrokeColor,_t.strokeWidthPanel=new Lt("Line width",oe.defaultStrokeWidths,oe.defaultStrokeWidth),_t.strokeWidthPanel.onWidthChanged=_t.setStrokeWidth,_t.strokeStylePanel=new Rt("Line style",oe.defaultStrokeDasharrays,oe.defaultStrokeDasharray),_t.strokeStylePanel.onStyleChanged=_t.setStrokeDasharray,_t}return wt(Tt,ie),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=ie.prototype.getState.call(this);return At.typeName=Tt.typeName,At},Tt.typeName="FrameMarker",Tt.title="Frame marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Tt}(gt),Nt=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"},qt=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.x1=0,_t.y1=0,_t.x2=0,_t.y2=0,_t.defaultLength=50,_t.manipulationStartX=0,_t.manipulationStartY=0,_t.manipulationStartX1=0,_t.manipulationStartY1=0,_t.manipulationStartX2=0,_t.manipulationStartY2=0,_t.setupControlBox(),_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!!ie.prototype.ownsTarget.call(this,At)||!(!this.grip1.ownsTarget(At)&&!this.grip2.ownsTarget(At))},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.manipulationStartX=At.x,this.manipulationStartY=At.y,this.state==="new"&&(this.x1=At.x,this.y1=At.y,this.x2=At.x,this.y2=At.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(Yt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Yt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Tt.prototype.pointerUp=function(At){var Yt=this.state;ie.prototype.pointerUp.call(this,At),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(At),this._state="select",Yt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Tt.prototype.adjustVisual=function(){},Tt.prototype.manipulate=function(At){this.state==="creating"?this.resize(At):this.state==="move"?(this.x1=this.manipulationStartX1+At.x-this.manipulationStartX,this.y1=this.manipulationStartY1+At.y-this.manipulationStartY,this.x2=this.manipulationStartX2+At.x-this.manipulationStartX,this.y2=this.manipulationStartY2+At.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(At)},Tt.prototype.resize=function(At){switch(this.activeGrip){case this.grip1:this.x1=At.x,this.y1=At.y;break;case this.grip2:case void 0:this.x2=At.x,this.y2=At.y}this.adjustVisual(),this.adjustControlBox()},Tt.prototype.select=function(){ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){ie.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=jt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){this.positionGrips()},Tt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Tt.prototype.createGrip=function(){var At=new ut;return At.visual.transform.baseVal.appendItem(jt.createTransform()),this.controlBox.appendChild(At.visual),At},Tt.prototype.positionGrips=function(){var At=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-At/2,this.y1-At/2),this.positionGrip(this.grip2.visual,this.x2-At/2,this.y2-At/2)},Tt.prototype.positionGrip=function(At,Yt,oe){var _t=At.transform.baseVal.getItem(0);_t.setTranslate(Yt,oe),At.transform.baseVal.replaceItem(_t,0)},Tt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ie.prototype.getState.call(this))},Tt.prototype.restoreState=function(At){ie.prototype.restoreState.call(this,At);var Yt=At;this.x1=Yt.x1,this.y1=Yt.y1,this.x2=Yt.x2,this.y2=Yt.y2},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt),this.x1=this.x1*At,this.y1=this.y1*Yt,this.x2=this.x2*At,this.y2=this.y2*Yt,this.adjustVisual(),this.adjustControlBox()},Tt}(lt),te=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.strokeColor="transparent",_t.strokeWidth=0,_t.strokeDasharray="",_t.setStrokeColor=_t.setStrokeColor.bind(_t),_t.setStrokeWidth=_t.setStrokeWidth.bind(_t),_t.setStrokeDasharray=_t.setStrokeDasharray.bind(_t),_t.strokeColor=oe.defaultColor,_t.strokeWidth=oe.defaultStrokeWidth,_t.strokeDasharray=oe.defaultStrokeDasharray,_t.strokePanel=new tt("Line color",oe.defaultColorSet,oe.defaultColor),_t.strokePanel.onColorChanged=_t.setStrokeColor,_t.strokeWidthPanel=new Lt("Line width",oe.defaultStrokeWidths,oe.defaultStrokeWidth),_t.strokeWidthPanel.onWidthChanged=_t.setStrokeWidth,_t.strokeStylePanel=new Rt("Line style",oe.defaultStrokeDasharrays,oe.defaultStrokeDasharray),_t.strokeStylePanel.onStyleChanged=_t.setStrokeDasharray,_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.selectorLine&&At!==this.visibleLine)},Tt.prototype.createVisual=function(){this.visual=jt.createGroup(),this.selectorLine=jt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=jt.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)},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Tt.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()),jt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),jt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),jt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.adjustVisual(),this.colorChanged(At)},Tt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ie.prototype.getState.call(this));return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){ie.prototype.restoreState.call(this,At);var Yt=At;this.strokeColor=Yt.strokeColor,this.strokeWidth=Yt.strokeWidth,this.strokeDasharray=Yt.strokeDasharray,this.createVisual(),this.adjustVisual()},Tt.typeName="LineMarker",Tt.title="Line marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Tt}(qt),Vt=function(ie){function Tt(At,Yt,oe,_t){var It=ie.call(this,At,_t||'<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 It.fonts=[],It.fontBoxes=[],It.fonts=Yt,It.currentFont=oe,It.setCurrentFont=It.setCurrentFont.bind(It),It}return wt(Tt,ie),Tt.prototype.getUi=function(){var At=this,Yt=document.createElement("div");return Yt.style.overflow="hidden",Yt.style.flexGrow="2",this.fonts.forEach(function(oe){var _t=document.createElement("div");_t.style.display="inline-block",_t.style.alignItems="center",_t.style.justifyContent="space-between",_t.style.padding="5px",_t.style.borderWidth="2px",_t.style.borderStyle="solid",_t.style.overflow="hidden",_t.style.maxWidth=100/At.fonts.length-5+"%",_t.style.borderColor=oe===At.currentFont?At.uiStyleSettings.toolboxAccentColor:"transparent",_t.addEventListener("click",function(){At.setCurrentFont(oe,_t)}),Yt.appendChild(_t);var It=document.createElement("div");It.style.display="flex",It.style.minHeight="20px",It.style.flexGrow="2",It.style.fontFamily=oe,It.style.overflow="hidden";var Pt=document.createElement("div");Pt.style.whiteSpace="nowrap",Pt.style.overflow="hidden",Pt.style.textOverflow="ellipsis",Pt.innerHTML="The quick brown fox jumps over the lazy dog",It.appendChild(Pt),_t.appendChild(It),At.fontBoxes.push(_t)}),Yt},Tt.prototype.setCurrentFont=function(At,Yt){var oe=this;this.currentFont=At,this.fontBoxes.forEach(function(_t){_t.style.borderColor=_t===Yt?oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Tt}(et),de=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.color="transparent",_t.padding=5,_t.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",_t.text=_t.DEFAULT_TEXT,_t.isMoved=!1,_t.color=oe.defaultColor,_t.fontFamily=oe.defaultFontFamily,_t.defaultSize={x:100,y:30},_t.setColor=_t.setColor.bind(_t),_t.setFont=_t.setFont.bind(_t),_t.renderText=_t.renderText.bind(_t),_t.sizeText=_t.sizeText.bind(_t),_t.textEditDivClicked=_t.textEditDivClicked.bind(_t),_t.showTextEditor=_t.showTextEditor.bind(_t),_t.setSize=_t.setSize.bind(_t),_t.positionTextEditor=_t.positionTextEditor.bind(_t),_t.colorPanel=new tt("Color",oe.defaultColorSet,oe.defaultColor),_t.colorPanel.onColorChanged=_t.setColor,_t.fontFamilyPanel=new Vt("Font",oe.defaultFontFamilies,oe.defaultFontFamily),_t.fontFamilyPanel.onFontChanged=_t.setFont,_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){if(ie.prototype.ownsTarget.call(this,At)||At===this.visual||At===this.textElement||At===this.bgRectangle)return!0;var Yt=!1;return this.textElement.childNodes.forEach(function(oe){oe===At&&(Yt=!0)}),Yt},Tt.prototype.createVisual=function(){this.visual=jt.createGroup(),this.bgRectangle=jt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=jt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(jt.createTransform()),this.textElement.transform.baseVal.appendItem(jt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.isMoved=!1,this.pointerDownPoint=At,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Tt.prototype.renderText=function(){var At=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(Yt){At.textElement.appendChild(jt.createTSpan(Yt.trim()===""?" ":Yt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Tt.prototype.getTextScale=function(){var At=this.textElement.getBBox(),Yt=1;if(At.width>0&&At.height>0){var oe=(1*this.width-this.width*this.padding*2/100)/At.width,_t=(1*this.height-this.height*this.padding*2/100)/At.height;Yt=Math.min(oe,_t)}return Yt},Tt.prototype.getTextPosition=function(At){var Yt=this.textElement.getBBox(),oe=0,_t=0;return Yt.width>0&&Yt.height>0&&(oe=(this.width-Yt.width*At)/2,_t=this.height/2-Yt.height*At/2),{x:oe,y:_t}},Tt.prototype.sizeText=function(){var At=this.textElement.getBBox(),Yt=this.getTextScale(),oe=this.getTextPosition(Yt);oe.y-=At.y*Yt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+oe.x+"px, "+oe.y+"px) scale("+Yt+", "+Yt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(oe.x,oe.y),this.textElement.transform.baseVal.getItem(1).setScale(Yt,Yt))},Tt.prototype.manipulate=function(At){ie.prototype.manipulate.call(this,At),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(At.x-this.pointerDownPoint.x)>5||Math.abs(At.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(At){ie.prototype.resize.call(this,At),this.isMoved=!0,this.setSize(),this.sizeText()},Tt.prototype.setSize=function(){ie.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(jt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),jt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Tt.prototype.pointerUp=function(At){var Yt=this.state;Yt==="creating"&&(this._suppressMarkerCreateEvent=!0),ie.prototype.pointerUp.call(this,At),this.setSize(),(Yt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.showTextEditor=function(){var At=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(Yt){Yt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Yt=Number.parseFloat(At.textEditor.style.fontSize);At.textEditor.clientWidth>=Number.parseInt(At.textEditor.style.maxWidth)&&Yt>.9;)Yt-=.1,At.textEditor.style.fontSize=Math.max(Yt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Yt){Yt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Yt){if(Yt.clipboardData){var oe=Yt.clipboardData.getData("text"),_t=window.getSelection();if(!_t.rangeCount)return!1;_t.deleteFromDocument(),_t.getRangeAt(0).insertNode(document.createTextNode(oe)),Yt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){At.textEditDivClicked(At.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Tt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var At=this.getTextScale(),Yt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),oe=this.textElement.getBBox(),_t={x:oe.width*At,y:oe.height*At};Yt.x-=_t.x/2,Yt.y-=_t.y/2,this.textEditor.style.top=Yt.y+"px",this.textEditor.style.left=Yt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Yt.x+"px",this.textEditor.style.fontSize=Math.max(16*At,12)+"px",this.textElement.style.display="none"}},Tt.prototype.textEditDivClicked=function(At){this.text=At.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Tt.prototype.select=function(){ie.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Tt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ie.prototype.deselect.call(this)},Tt.prototype.dblClick=function(At,Yt){ie.prototype.dblClick.call(this,At,Yt),this.showTextEditor()},Tt.prototype.setColor=function(At){this.textElement&&jt.setAttributes(this.textElement,[["fill",At]]),this.color=At,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(At)},Tt.prototype.setFont=function(At){this.textElement&&jt.setAttributes(this.textElement,[["font-family",At]]),this.fontFamily=At,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Tt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Tt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ie.prototype.getState.call(this));return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){var Yt=At;this.color=Yt.color,this.fontFamily=Yt.fontFamily,this.padding=Yt.padding,this.text=Yt.text,this.createVisual(),ie.prototype.restoreState.call(this,At),this.setSize()},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt),this.setSize(),this.sizeText(),this.positionTextEditor()},Tt.typeName="TextMarker",Tt.title="Text marker",Tt.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>',Tt}(ft),ge=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.color="transparent",_t.lineWidth=3,_t.drawing=!1,_t.pixelRatio=1,_t.color=oe.defaultColor,_t.lineWidth=oe.defaultStrokeWidth,_t.pixelRatio=oe.freehandPixelRatio,_t.setColor=_t.setColor.bind(_t),_t.addCanvas=_t.addCanvas.bind(_t),_t.finishCreation=_t.finishCreation.bind(_t),_t.setLineWidth=_t.setLineWidth.bind(_t),_t.colorPanel=new tt("Color",oe.defaultColorSet,oe.defaultColor),_t.colorPanel.onColorChanged=_t.setColor,_t.lineWidthPanel=new Lt("Line width",oe.defaultStrokeWidths,oe.defaultStrokeWidth),_t.lineWidthPanel.onWidthChanged=_t.setLineWidth,_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.drawingImage)},Tt.prototype.createVisual=function(){this.visual=jt.createGroup(),this.drawingImage=jt.createImage(),this.visual.appendChild(this.drawingImage);var At=jt.createTransform();this.visual.transform.baseVal.appendItem(At),this.addMarkerVisualToContainer(this.visual)},Tt.prototype.pointerDown=function(At,Yt){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(At.x,At.y),this.drawing=!0):ie.prototype.pointerDown.call(this,At,Yt)},Tt.prototype.manipulate=function(At){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(At.x,At.y),this.canvasContext.stroke()):ie.prototype.manipulate.call(this,At)},Tt.prototype.resize=function(At){ie.prototype.resize.call(this,At),jt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),jt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(At){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ie.prototype.pointerUp.call(this,At)},Tt.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)},Tt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ie.prototype.select.call(this)},Tt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ie.prototype.deselect.call(this)},Tt.prototype.finishCreation=function(){for(var At=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Yt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],oe=Yt[0],_t=Yt[1],It=Yt[2],Pt=Yt[3],Et=!1,$t=0;$t<this.canvasElement.height;$t++)for(var zt=0;zt<this.canvasElement.width;zt++)At.data[$t*this.canvasElement.width*4+4*zt+3]>0&&(Et=!0,$t<_t&&(_t=$t),zt<oe&&(oe=zt),$t>Pt&&(Pt=$t),zt>It&&(It=zt));if(Et){this.left=oe/this.pixelRatio,this.top=_t/this.pixelRatio,this.width=(It-oe)/this.pixelRatio,this.height=(Pt-_t)/this.pixelRatio;var Gt=document.createElement("canvas");Gt.width=It-oe,Gt.height=Pt-_t,Gt.getContext("2d").putImageData(this.canvasContext.getImageData(oe,_t,It-oe,Pt-_t),0,0),this.drawingImgUrl=Gt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Tt.prototype.setDrawingImage=function(){jt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),jt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Tt.prototype.setColor=function(At){this.color=At,this.colorChanged(At)},Tt.prototype.setLineWidth=function(At){this.lineWidth=At},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=Object.assign({drawingImgUrl:this.drawingImgUrl},ie.prototype.getState.call(this));return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){this.createVisual(),ie.prototype.restoreState.call(this,At),this.drawingImgUrl=At.drawingImgUrl,this.setDrawingImage()},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt),this.setDrawingImage()},Tt.typeName="FreehandMarker",Tt.title="Freehand marker",Tt.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>',Tt}(ft),be=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,oe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return _t.typeBoxes=[],_t.currentType=Yt,_t.setCurrentType=_t.setCurrentType.bind(_t),_t}return wt(Tt,ie),Tt.prototype.getUi=function(){var At=this,Yt=document.createElement("div");Yt.style.display="flex",Yt.style.overflow="hidden",Yt.style.flexGrow="2";for(var oe=function(Pt){var Et="both";switch(Pt){case 0:Et="both";break;case 1:Et="start";break;case 2:Et="end";break;case 3:Et="none"}var $t=document.createElement("div");if($t.style.display="flex",$t.style.flexGrow="2",$t.style.alignItems="center",$t.style.justifyContent="space-between",$t.style.padding="5px",$t.style.borderWidth="2px",$t.style.borderStyle="solid",$t.style.borderColor=Et===_t.currentType?_t.uiStyleSettings.toolboxAccentColor:"transparent",$t.addEventListener("click",function(){At.setCurrentType(Et,$t)}),Yt.appendChild($t),Et==="both"||Et==="start"){var zt=document.createElement("div");zt.style.display="flex",zt.style.alignItems="center",zt.style.minHeight="20px",zt.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="`+(_t.uiStyleSettings!==void 0?_t.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,zt.style.marginLeft="5px",$t.appendChild(zt)}var Gt=document.createElement("div");Gt.style.display="flex",Gt.style.alignItems="center",Gt.style.minHeight="20px",Gt.style.flexGrow="2";var le=document.createElement("hr");if(le.style.minWidth="20px",le.style.border="0px",le.style.borderTop="3px solid "+(_t.uiStyleSettings!==void 0?_t.uiStyleSettings.toolboxColor:"#eeeeee"),le.style.flexGrow="2",Gt.appendChild(le),$t.appendChild(Gt),Et==="both"||Et==="end"){var ye=document.createElement("div");ye.style.display="flex",ye.style.alignItems="center",ye.style.minHeight="20px",ye.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="`+(_t.uiStyleSettings!==void 0?_t.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,ye.style.marginRight="5px",$t.appendChild(ye)}_t.typeBoxes.push($t)},_t=this,It=0;It<4;It++)oe(It);return Yt},Tt.prototype.setCurrentType=function(At,Yt){var oe=this;this.currentType=At,this.typeBoxes.forEach(function(_t){_t.style.borderColor=_t===Yt?oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Tt}(et),Ne=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.arrowType="end",_t.arrowBaseHeight=10,_t.arrowBaseWidth=10,_t.getArrowPoints=_t.getArrowPoints.bind(_t),_t.setArrowType=_t.setArrowType.bind(_t),_t.arrowTypePanel=new be("Arrow type","end"),_t.arrowTypePanel.onArrowTypeChanged=_t.setArrowType,_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.arrow1&&At!==this.arrow2)},Tt.prototype.getArrowPoints=function(At,Yt){var oe=this.arrowBaseWidth+2*this.strokeWidth,_t=this.arrowBaseHeight+2*this.strokeWidth;return At-oe/2+","+(Yt+_t/2)+" "+At+","+(Yt-_t/2)+" "+(At+oe/2)+","+(Yt+_t/2)},Tt.prototype.createTips=function(){this.arrow1=jt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(jt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=jt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(jt.createTransform()),this.visual.appendChild(this.arrow2)},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(ie.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",jt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),jt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var At=0;Math.abs(this.x1-this.x2)>.1&&(At=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Yt=this.arrow1.transform.baseVal.getItem(0);Yt.setRotate(At,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Yt,0);var oe=this.arrow2.transform.baseVal.getItem(0);oe.setRotate(At+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(oe,0)}},Tt.prototype.setArrowType=function(At){this.arrowType=At,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=Object.assign({arrowType:this.arrowType},ie.prototype.getState.call(this));return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){ie.prototype.restoreState.call(this,At);var Yt=At;this.arrowType=Yt.arrowType,this.createTips(),this.adjustVisual()},Tt.typeName="ArrowMarker",Tt.title="Arrow marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Tt}(te),Ge=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.fillColor=oe.defaultFillColor,_t.strokeWidth=0,_t.fillPanel=new tt("Color",oe.defaultColorSet,oe.defaultFillColor),_t.fillPanel.onColorChanged=_t.setFillColor,_t}return wt(Tt,ie),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=ie.prototype.getState.call(this);return At.typeName=Tt.typeName,At},Tt.typeName="CoverMarker",Tt.title="Cover marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Tt}(gt),Pe=function(ie){function Tt(At,Yt,oe,_t){var It=ie.call(this,At,_t||'<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 It.opacities=[],It.opacityBoxes=[],It.opacities=Yt,It.currentOpacity=oe,It.setCurrentOpacity=It.setCurrentOpacity.bind(It),It}return wt(Tt,ie),Tt.prototype.getUi=function(){var At=this,Yt=document.createElement("div");return Yt.style.display="flex",Yt.style.overflow="hidden",Yt.style.flexGrow="2",Yt.style.justifyContent="space-between",this.opacities.forEach(function(oe){var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.justifyContent="center",_t.style.padding="5px",_t.style.borderWidth="2px",_t.style.borderStyle="solid",_t.style.borderColor=oe===At.currentOpacity?At.uiStyleSettings.toolboxAccentColor:"transparent",_t.addEventListener("click",function(){At.setCurrentOpacity(oe,_t)}),Yt.appendChild(_t);var It=document.createElement("div");It.innerText=100*oe+"%",_t.appendChild(It),At.opacityBoxes.push(_t)}),Yt},Tt.prototype.setCurrentOpacity=function(At,Yt){var oe=this;this.currentOpacity=At,this.opacityBoxes.forEach(function(_t){_t.style.borderColor=_t===Yt?oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Tt}(et),ze=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.setOpacity=_t.setOpacity.bind(_t),_t.fillColor=oe.defaultHighlightColor,_t.strokeWidth=0,_t.opacity=oe.defaultHighlightOpacity,_t.fillPanel=new tt("Color",oe.defaultColorSet,_t.fillColor),_t.fillPanel.onColorChanged=_t.setFillColor,_t.opacityPanel=new Pe("Opacity",oe.defaultOpacitySteps,_t.opacity),_t.opacityPanel.onOpacityChanged=_t.setOpacity,_t}return wt(Tt,ie),Tt.prototype.setOpacity=function(At){this.opacity=At,this.visual&&jt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=ie.prototype.getState.call(this);return At.typeName=Tt.typeName,At},Tt.typeName="HighlightMarker",Tt.title="Highlight marker",Tt.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>',Tt}(Ge),he='<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>',Jt='<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>',re=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.bgColor="transparent",_t.tipPosition={x:0,y:0},_t.tipBase1Position={x:0,y:0},_t.tipBase2Position={x:0,y:0},_t.tipMoving=!1,_t.color=oe.defaultStrokeColor,_t.bgColor=oe.defaultFillColor,_t.fontFamily=oe.defaultFontFamily,_t.defaultSize={x:100,y:30},_t.setBgColor=_t.setBgColor.bind(_t),_t.getTipPoints=_t.getTipPoints.bind(_t),_t.positionTip=_t.positionTip.bind(_t),_t.setTipPoints=_t.setTipPoints.bind(_t),_t.colorPanel=new tt("Text color",oe.defaultColorSet,_t.color,he),_t.colorPanel.onColorChanged=_t.setColor,_t.bgColorPanel=new tt("Fill color",oe.defaultColorSet,_t.bgColor,Jt),_t.bgColorPanel.onColorChanged=_t.setBgColor,_t.fontFamilyPanel=new Vt("Font",oe.defaultFontFamilies,oe.defaultFontFamily),_t.fontFamilyPanel.onFontChanged=_t.setFont,_t.tipGrip=new ut,_t.tipGrip.visual.transform.baseVal.appendItem(jt.createTransform()),_t.controlBox.appendChild(_t.tipGrip.visual),_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return ie.prototype.ownsTarget.call(this,At)||this.tipGrip.ownsTarget(At)||this.tip===At},Tt.prototype.createTip=function(){jt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=jt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Tt.prototype.pointerDown=function(At,Yt){this.state==="new"&&ie.prototype.pointerDown.call(this,At,Yt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Yt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ie.prototype.pointerDown.call(this,At,Yt)},Tt.prototype.pointerUp=function(At){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ie.prototype.pointerUp.call(this,At);else{var Yt=this.state==="creating";ie.prototype.pointerUp.call(this,At),this.setTipPoints(Yt),this.positionTip()}},Tt.prototype.manipulate=function(At){if(this.tipMoving){var Yt=this.unrotatePoint(At);this.tipPosition={x:Yt.x-this.manipulationStartLeft,y:Yt.y-this.manipulationStartTop},this.positionTip()}else ie.prototype.manipulate.call(this,At)},Tt.prototype.setBgColor=function(At){this.bgRectangle&&this.tip&&(jt.setAttributes(this.bgRectangle,[["fill",At]]),jt.setAttributes(this.tip,[["fill",At]])),this.bgColor=At,this.fillColorChanged(At)},Tt.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},Tt.prototype.setTipPoints=function(At){At===void 0&&(At=!1);var Yt=Math.min(this.height/2,15),oe=this.height/5;At&&(this.tipPosition={x:Yt+oe/2,y:this.height+20});var _t=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?_t<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(oe=this.width/5,Yt=Math.min(this.width/2,15),this.tipBase1Position={x:Yt,y:0},this.tipBase2Position={x:Yt+oe,y:0}):(this.tipBase1Position={x:0,y:Yt},this.tipBase2Position={x:0,y:Yt+oe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?_t<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(oe=this.width/5,Yt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Yt-oe,y:0},this.tipBase2Position={x:this.width-Yt,y:0}):(this.tipBase1Position={x:this.width,y:Yt},this.tipBase2Position={x:this.width,y:Yt+oe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?_t<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(oe=this.width/5,Yt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Yt-oe,y:this.height},this.tipBase2Position={x:this.width-Yt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Yt-oe},this.tipBase2Position={x:this.width,y:this.height-Yt}):_t<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(oe=this.width/5,Yt=Math.min(this.width/2,15),this.tipBase1Position={x:Yt,y:this.height},this.tipBase2Position={x:Yt+oe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Yt},this.tipBase2Position={x:0,y:this.height-Yt-oe})},Tt.prototype.resize=function(At){ie.prototype.resize.call(this,At),this.positionTip()},Tt.prototype.positionTip=function(){jt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var At=this.tipGrip.visual.transform.baseVal.getItem(0);At.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(At,0)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.select=function(){this.positionTip(),ie.prototype.select.call(this)},Tt.prototype.getState=function(){var At=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ie.prototype.getState.call(this));return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){var Yt=At;this.bgColor=Yt.bgColor,this.tipPosition=Yt.tipPosition,ie.prototype.restoreState.call(this,At),this.createTip(),this.setTipPoints()},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt),this.tipPosition={x:this.tipPosition.x*At,y:this.tipPosition.y*Yt},this.positionTip()},Tt.typeName="CalloutMarker",Tt.title="Callout marker",Tt.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>',Tt}(de),se=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.fillColor="transparent",_t.strokeColor="transparent",_t.strokeWidth=0,_t.strokeDasharray="",_t.opacity=1,_t.strokeColor=oe.defaultColor,_t.strokeWidth=oe.defaultStrokeWidth,_t.strokeDasharray=oe.defaultStrokeDasharray,_t.fillColor=oe.defaultFillColor,_t.setStrokeColor=_t.setStrokeColor.bind(_t),_t.setFillColor=_t.setFillColor.bind(_t),_t.setStrokeWidth=_t.setStrokeWidth.bind(_t),_t.setStrokeDasharray=_t.setStrokeDasharray.bind(_t),_t.setOpacity=_t.setOpacity.bind(_t),_t.createVisual=_t.createVisual.bind(_t),_t.strokePanel=new tt("Line color",Ot(oe.defaultColorSet,["transparent"]),oe.defaultColor),_t.strokePanel.onColorChanged=_t.setStrokeColor,_t.fillPanel=new tt("Fill color",Ot(oe.defaultColorSet,["transparent"]),_t.fillColor,Jt),_t.fillPanel.onColorChanged=_t.setFillColor,_t.strokeWidthPanel=new Lt("Line width",oe.defaultStrokeWidths,oe.defaultStrokeWidth),_t.strokeWidthPanel.onWidthChanged=_t.setStrokeWidth,_t.strokeStylePanel=new Rt("Line style",oe.defaultStrokeDasharrays,oe.defaultStrokeDasharray),_t.strokeStylePanel.onStyleChanged=_t.setStrokeDasharray,_t.opacityPanel=new Pe("Opacity",oe.defaultOpacitySteps,_t.opacity),_t.opacityPanel.onOpacityChanged=_t.setOpacity,_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.visual)},Tt.prototype.createVisual=function(){this.visual=jt.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)},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Tt.prototype.manipulate=function(At){ie.prototype.manipulate.call(this,At)},Tt.prototype.resize=function(At){ie.prototype.resize.call(this,At),this.setSize()},Tt.prototype.setSize=function(){ie.prototype.setSize.call(this),jt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Tt.prototype.pointerUp=function(At){ie.prototype.pointerUp.call(this,At),this.setSize()},Tt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.visual&&jt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(At),this.stateChanged()},Tt.prototype.setFillColor=function(At){this.fillColor=At,this.visual&&jt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(At),this.stateChanged()},Tt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.visual&&jt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.visual&&jt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.setOpacity=function(At){this.opacity=At,this.visual&&jt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ie.prototype.getState.call(this));return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){var Yt=At;this.fillColor=Yt.fillColor,this.strokeColor=Yt.strokeColor,this.strokeWidth=Yt.strokeWidth,this.strokeDasharray=Yt.strokeDasharray,this.opacity=Yt.opacity,this.createVisual(),ie.prototype.restoreState.call(this,At),this.setSize()},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt),this.setSize()},Tt.typeName="EllipseMarker",Tt.title="Ellipse marker",Tt.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>',Tt}(ft),pe=function(ie){function Tt(At,Yt,oe){return ie.call(this,At,Yt,oe)||this}return wt(Tt,ie),Object.defineProperty(Tt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.tip1&&At!==this.tip2)},Tt.prototype.createTips=function(){this.tip1=jt.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(jt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=jt.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(jt.createTransform()),this.visual.appendChild(this.tip2)},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(ie.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(jt.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()]]),jt.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 At=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Yt=this.tip1.transform.baseVal.getItem(0);Yt.setRotate(At,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Yt,0);var oe=this.tip2.transform.baseVal.getItem(0);oe.setRotate(At+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(oe,0)}},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=ie.prototype.getState.call(this);return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){ie.prototype.restoreState.call(this,At),this.createTips(),this.adjustVisual()},Tt.typeName="MeasurementMarker",Tt.title="Measurement marker",Tt.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>',Tt}(te),ue=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.strokePanel.colors=oe.defaultColorSet,_t.fillColor="transparent",_t}return wt(Tt,ie),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=ie.prototype.getState.call(this);return At.typeName=Tt.typeName,At},Tt.typeName="EllipseFrameMarker",Tt.title="Ellipse frame marker",Tt.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>',Tt}(se),Re=function(){function ie(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ie.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ie.prototype.addUndoStep=function(Tt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Tt)||(this.undoStack.push(Tt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Tt)&&this.redoStack.splice(0,this.redoStack.length))},ie.prototype.replaceLastUndoStep=function(Tt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Tt)},ie.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ie.prototype.undo=function(){if(this.undoStack.length>1){var Tt=this.undoStack.pop();return Tt!==void 0&&this.redoStack.push(Tt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ie.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ie}(),Fe=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.strokeColor="transparent",_t.strokeWidth=0,_t.strokeDasharray="",_t.curveX=0,_t.curveY=0,_t.manipulationStartCurveX=0,_t.manipulationStartCurveY=0,_t.setStrokeColor=_t.setStrokeColor.bind(_t),_t.setStrokeWidth=_t.setStrokeWidth.bind(_t),_t.setStrokeDasharray=_t.setStrokeDasharray.bind(_t),_t.positionGrips=_t.positionGrips.bind(_t),_t.addControlGrips=_t.addControlGrips.bind(_t),_t.adjustVisual=_t.adjustVisual.bind(_t),_t.setupControlBox=_t.setupControlBox.bind(_t),_t.resize=_t.resize.bind(_t),_t.strokeColor=oe.defaultColor,_t.strokeWidth=oe.defaultStrokeWidth,_t.strokeDasharray=oe.defaultStrokeDasharray,_t.strokePanel=new tt("Line color",oe.defaultColorSet,oe.defaultColor),_t.strokePanel.onColorChanged=_t.setStrokeColor,_t.strokeWidthPanel=new Lt("Line width",oe.defaultStrokeWidths,oe.defaultStrokeWidth),_t.strokeWidthPanel.onWidthChanged=_t.setStrokeWidth,_t.strokeStylePanel=new Rt("Line style",oe.defaultStrokeDasharrays,oe.defaultStrokeDasharray),_t.strokeStylePanel.onStyleChanged=_t.setStrokeDasharray,_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.selectorCurve&&At!==this.visibleCurve&&!this.curveGrip.ownsTarget(At))},Tt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Tt.prototype.createVisual=function(){this.visual=jt.createGroup(),this.selectorCurve=jt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=jt.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)},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=At.x,this.curveY=At.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Yt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Tt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),jt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),jt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),jt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setupControlBox=function(){ie.prototype.setupControlBox.call(this),this.curveControlLine1=jt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=jt.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)},Tt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ie.prototype.addControlGrips.call(this)},Tt.prototype.positionGrips=function(){ie.prototype.positionGrips.call(this);var At=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-At/2,this.curveY-At/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()))},Tt.prototype.manipulate=function(At){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+At.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+At.y-this.manipulationStartY),ie.prototype.manipulate.call(this,At)},Tt.prototype.resize=function(At){this.activeGrip===this.curveGrip&&(this.curveX=At.x,this.curveY=At.y),ie.prototype.resize.call(this,At),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Tt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.adjustVisual(),this.colorChanged(At)},Tt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.adjustVisual()},Tt.prototype.scale=function(At,Yt){this.curveX=this.curveX*At,this.curveY=this.curveY*Yt,ie.prototype.scale.call(this,At,Yt)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ie.prototype.getState.call(this));return At.typeName=Tt.typeName,At},Tt.prototype.restoreState=function(At){ie.prototype.restoreState.call(this,At);var Yt=At;this.strokeColor=Yt.strokeColor,this.strokeWidth=Yt.strokeWidth,this.strokeDasharray=Yt.strokeDasharray,this.curveX=Yt.curveX,this.curveY=Yt.curveY,this.createVisual(),this.adjustVisual()},Tt.typeName="CurveMarker",Tt.title="Curve marker",Tt.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>',Tt}(qt),Qe=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,Yt,oe)||this;return _t.fillColor="transparent",_t.strokeColor="transparent",_t.strokeWidth=0,_t.strokeDasharray="",_t.textColor="transparent",_t.fontSize="1rem",_t.isMoved=!1,_t.captionText="Caption",_t.PADDING=5,_t.captionBoxWidth=0,_t.captionBoxHeight=0,_t.strokeColor=oe.defaultColor,_t.strokeWidth=oe.defaultStrokeWidth,_t.strokeDasharray=oe.defaultStrokeDasharray,_t.fillColor=oe.defaultFillColor,_t.textColor=oe.defaultStrokeColor,_t.fontFamily=oe.defaultFontFamily,_t.fontSize=oe.defaultCaptionFontSize,_t.captionText=oe.defaultCaptionText,_t.setStrokeColor=_t.setStrokeColor.bind(_t),_t.setFillColor=_t.setFillColor.bind(_t),_t.setStrokeWidth=_t.setStrokeWidth.bind(_t),_t.setStrokeDasharray=_t.setStrokeDasharray.bind(_t),_t.createVisual=_t.createVisual.bind(_t),_t.sizeCaption=_t.sizeCaption.bind(_t),_t.setCaptionText=_t.setCaptionText.bind(_t),_t.showTextEditor=_t.showTextEditor.bind(_t),_t.positionTextEditor=_t.positionTextEditor.bind(_t),_t.finishTextEditing=_t.finishTextEditing.bind(_t),_t.setFont=_t.setFont.bind(_t),_t.setTextColor=_t.setTextColor.bind(_t),_t.strokePanel=new tt("Line color",Ot(oe.defaultColorSet,["transparent"]),_t.strokeColor),_t.strokePanel.onColorChanged=_t.setStrokeColor,_t.fillPanel=new tt("Fill color",Ot(oe.defaultColorSet,["transparent"]),_t.fillColor,Jt),_t.fillPanel.onColorChanged=_t.setFillColor,_t.strokeWidthPanel=new Lt("Line width",oe.defaultStrokeWidths,oe.defaultStrokeWidth),_t.strokeWidthPanel.onWidthChanged=_t.setStrokeWidth,_t.strokeStylePanel=new Rt("Line style",oe.defaultStrokeDasharrays,oe.defaultStrokeDasharray),_t.strokeStylePanel.onStyleChanged=_t.setStrokeDasharray,_t.fontFamilyPanel=new Vt("Font",oe.defaultFontFamilies,oe.defaultFontFamily),_t.fontFamilyPanel.onFontChanged=_t.setFont,_t.textColorPanel=new tt("Text color",oe.defaultColorSet,_t.textColor,he),_t.textColorPanel.onColorChanged=_t.setTextColor,_t}return wt(Tt,ie),Tt.prototype.ownsTarget=function(At){return!(!ie.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.frame&&At!==this.captionBg&&At!==this.captionElement)},Tt.prototype.createVisual=function(){this.visual=jt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=jt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=jt.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=jt.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()},Tt.prototype.setCaptionText=function(At){this.captionText=At,this.captionElement.textContent=this.captionText,this.sizeCaption()},Tt.prototype.pointerDown=function(At,Yt){ie.prototype.pointerDown.call(this,At,Yt),this.isMoved=!1,this.pointerDownPoint=At,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Tt.prototype.manipulate=function(At){ie.prototype.manipulate.call(this,At),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(At.x-this.pointerDownPoint.x)>5||Math.abs(At.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(At){ie.prototype.resize.call(this,At),this.setSize()},Tt.prototype.sizeCaption=function(){var At=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=At.width+2*this.PADDING,this.captionBoxHeight=At.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),jt.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')"]]),jt.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')"]])},Tt.prototype.showTextEditor=function(){var At=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(Yt){Yt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Yt){Yt.key==="Enter"&&At.finishTextEditing(At.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Yt){Yt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){At.finishTextEditing(At.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){At.finishTextEditing(At.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Tt.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"))},Tt.prototype.finishTextEditing=function(At){this.setCaptionText(At.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Tt.prototype.setFont=function(At){this.captionElement&&jt.setAttributes(this.captionElement,[["font-family",At]]),this.fontFamily=At,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Tt.prototype.setTextColor=function(At){this.captionElement&&jt.setAttributes(this.captionElement,[["fill",At]]),this.textColor=At,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Tt.prototype.setSize=function(){ie.prototype.setSize.call(this),jt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Tt.prototype.pointerUp=function(At){ie.prototype.pointerUp.call(this,At),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.dblClick=function(At,Yt){ie.prototype.dblClick.call(this,At,Yt),this.showTextEditor()},Tt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.frame&&jt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(At),this.stateChanged()},Tt.prototype.setFillColor=function(At){this.fillColor=At,this.captionBg&&jt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(At),this.stateChanged()},Tt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.frame&&jt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.frame&&jt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var At=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},ie.prototype.getState.call(this));return At.typeName=this.typeName,At},Tt.prototype.restoreState=function(At){var Yt=At;this.fillColor=Yt.fillColor,this.strokeColor=Yt.strokeColor,this.strokeWidth=Yt.strokeWidth,this.strokeDasharray=Yt.strokeDasharray,this.textColor=Yt.textColor,this.fontFamily=Yt.fontFamily,this.captionText=Yt.captionText,this.fontSize=Yt.fontSize,this.createVisual(),ie.prototype.restoreState.call(this,At),this.setSize()},Tt.prototype.scale=function(At,Yt){ie.prototype.scale.call(this,At,Yt),this.setSize()},Tt.typeName="CaptionFrameMarker",Tt.title="Caption frame marker",Tt.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>',Tt}(ft),Ae=function(){function ie(Tt,At){At===void 0&&(At=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Tt,this.cancelable=At}return Object.defineProperty(ie.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ie.prototype.preventDefault=function(){this._defaultPrevented=!0},ie}(),_e=function(ie){function Tt(At,Yt,oe){var _t=ie.call(this,At,!1)||this;return _t.dataUrl=Yt,_t.state=oe,_t}return wt(Tt,ie),Tt}(Ae),Le=function(ie){function Tt(At,Yt,oe){oe===void 0&&(oe=!1);var _t=ie.call(this,At,oe)||this;return _t.marker=Yt,_t}return wt(Tt,ie),Tt}(Ae),Oe=function(){function ie(){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 ie.prototype.addEventListener=function(Tt,At){this[Tt].push(At)},ie.prototype.removeEventListener=function(Tt,At){var Yt=this[Tt].indexOf(At);Yt>-1&&this[Tt].splice(Yt,1)},ie}(),He=function(){function ie(Tt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Nt,this._isOpen=!1,this.undoRedoManager=new Re,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 Oe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ie.instanceCounter++,this.styles=new St(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Tt,this.targetRoot=document.body,this.width=Tt.clientWidth,this.height=Tt.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(ie.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ut,ge,Ne,de,ue,se,ze,re,pe,Ge,te,Fe,Qe]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ut,ge,Ne,de,se,ze,re]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ut,ge,Ne,de,ze]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Tt){var At=this;this._availableMarkerTypes.splice(0),Tt.forEach(function(Yt){if(typeof Yt=="string"){var oe=At.ALL_MARKER_TYPES.find(function(_t){return _t.typeName===Yt});oe!==void 0&&At._availableMarkerTypes.push(oe)}else At._availableMarkerTypes.push(Yt)})},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Tt){this._zoomLevel=Tt,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(ie.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ie.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ct.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ie.prototype.show=function(){var Tt=this;this.styles.styleSheetRoot===void 0&&Bt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Bt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(At){return At(new Ae(Tt))})},ie.prototype.render=function(){return Qt(this,void 0,void 0,function(){var Tt;return Zt(this,function(At){switch(At.label){case 0:return this.setCurrentMarker(),(Tt=new Mt).naturalSize=this.renderAtNaturalSize,Tt.imageType=this.renderImageType,Tt.imageQuality=this.renderImageQuality,Tt.markersOnly=this.renderMarkersOnly,Tt.width=this.renderWidth,Tt.height=this.renderHeight,[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return At.sent(),[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,At.sent()]}})})},ie.prototype.close=function(Tt){var At=this;if(Tt===void 0&&(Tt=!1),this.isOpen){var Yt=!1;Tt||this.eventListeners.beforeclose.forEach(function(oe){var _t=new Ae(At,!0);oe(_t),_t.defaultPrevented&&(Yt=!0)}),Yt||(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(oe){return oe(new Ae(At))}),this.detachEvents(),this._isOpen=!1)}},ie.prototype.addMarkersToToolbar=function(){for(var Tt,At=[],Yt=0;Yt<arguments.length;Yt++)At[Yt]=arguments[Yt];(Tt=this._availableMarkerTypes).push.apply(Tt,At)},ie.prototype.addRenderEventListener=function(Tt){this.addEventListener("render",function(At){Tt(At.dataUrl,At.state)})},ie.prototype.removeRenderEventListener=function(Tt){},ie.prototype.addCloseEventListener=function(Tt){this.addEventListener("close",function(){Tt()})},ie.prototype.removeCloseEventListener=function(Tt){},ie.prototype.setupResizeObserver=function(){var Tt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Tt.resize(Tt.target.clientWidth,Tt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Tt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ie.prototype.onPopupTargetResize=function(){var Tt=1*this.target.clientWidth/this.target.clientHeight,At=this.editorCanvas.clientWidth/Tt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Tt:this.editorCanvas.clientWidth,Yt=At<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Tt;this.resize(At,Yt)},ie.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ie.prototype.resize=function(Tt,At){this._isResizing=!0;var Yt=Tt/this.imageWidth,oe=At/this.imageHeight;this.imageWidth=Math.round(Tt),this.imageHeight=Math.round(At),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(Yt,oe),this._isResizing=!1},ie.prototype.scaleMarkers=function(Tt,At){var Yt,oe=this;this._currentMarker&&this._currentMarker instanceof de?this._currentMarker.scale(Tt,At):(Yt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(_t){_t!==oe._currentMarker&&_t.scale(Tt,At)}),Yt!==void 0&&this.setCurrentMarker(Yt)},ie.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"},ie.prototype.setTopLeft=function(){var Tt=this.editingTarget.getBoundingClientRect(),At=this.editorCanvas.getBoundingClientRect();this.left=Tt.left-At.left,this.top=Tt.top-At.top},ie.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)},ie.prototype.addDefs=function(){for(var Tt,At=[],Yt=0;Yt<arguments.length;Yt++)At[Yt]=arguments[Yt];this.defs=jt.createDefs(),this.addDefsToImage(),(Tt=this.defs).append.apply(Tt,At)},ie.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ie.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)},ie.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ie.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ie.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)},ie.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ie.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)},ie.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 Tt=document.createElement("a");Tt.href="https://markerjs.com/",Tt.target="_blank",Tt.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>',Tt.title="Powered by marker.js",Tt.style.display="grid",Tt.style.alignItems="center",Tt.style.justifyItems="center",Tt.style.padding="3px",Tt.style.width="20px",Tt.style.height="20px",this.logoUI.appendChild(Tt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ie.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")},ie.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"},ie.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ie.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 Tt=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=Tt+"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 Dt(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 yt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ie.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ie.prototype.removeMarker=function(Tt){this.markerImage.removeChild(Tt.container),this.markers.indexOf(Tt)>-1&&this.markers.splice(this.markers.indexOf(Tt),1),Tt.dispose()},ie.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())},ie.prototype.toolbarButtonClicked=function(Tt,At){if(Tt==="marker"&&At!==void 0)this.createNewMarker(At);else if(Tt==="action")switch(At){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()}},ie.prototype.deleteSelectedMarker=function(){var Tt=this;if(this._currentMarker!==void 0){var At=!1;if(this.eventListeners.markerbeforedelete.forEach(function(oe){var _t=new Le(Tt,Tt._currentMarker,!0);oe(_t),_t.defaultPrevented&&(At=!0)}),!At){var Yt=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(oe){return oe(new Le(Tt,Yt))})}}},ie.prototype.clear=function(){var Tt=this,At=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(It){var Pt=new Le(Tt,void 0,!0);It(Pt),Pt.defaultPrevented&&(At=!0)}),!At)){this.setCurrentMarker();for(var Yt=function(It){var Pt=oe.markers[It];oe.setCurrentMarker(oe.markers[It]),oe._currentMarker.dispose(),oe.markerImage.removeChild(oe._currentMarker.container),oe.markers.splice(oe.markers.indexOf(oe._currentMarker),1),oe.eventListeners.markerdelete.forEach(function(Et){return Et(new Le(Tt,Pt))})},oe=this,_t=this.markers.length-1;_t>=0;_t--)Yt(_t);this.addUndoStep()}},Object.defineProperty(ie.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ie.prototype.showNotesEditor=function(){var Tt;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=(Tt=this._currentMarker.notes)!==null&&Tt!==void 0?Tt:"",this.overlayContainer.appendChild(this.notesArea))},ie.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)},ie.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ie.prototype.addUndoStep=function(){var Tt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var At=this.getState(),Yt=this.undoRedoManager.getLastUndoStep();if(!Yt||Yt.width===At.width&&Yt.height===At.height){var oe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(At),oe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(_t){return _t(new Ae(Tt))})}else this.undoRedoManager.replaceLastUndoStep(At),this.eventListeners.statechange.forEach(function(_t){return _t(new Ae(Tt))})}},ie.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ie.prototype.undoStep=function(){var Tt=this,At=this.undoRedoManager.undo();At!==void 0&&(this.restoreState(At),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Yt){return Yt(new Ae(Tt))}))},ie.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ie.prototype.redoStep=function(){var Tt=this,At=this.undoRedoManager.redo();At!==void 0&&(this.restoreState(At),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Yt){return Yt(new Ae(Tt))}))},ie.prototype.stepZoom=function(){var Tt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Tt<this.zoomSteps.length-1?this.zoomSteps[Tt+1]:this.zoomSteps[0]},ie.prototype.panTo=function(Tt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Tt.x,top:this.prevPanPoint.y-Tt.y}),this.prevPanPoint=Tt},ie.prototype.startRenderAndClose=function(){return Qt(this,void 0,void 0,function(){var Tt,At,Yt=this;return Zt(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return Tt=oe.sent(),At=this.getState(),this.eventListeners.render.forEach(function(_t){return _t(new _e(Yt,Tt,At))}),this.close(!0),[2]}})})},ie.prototype.getState=function(Tt){Tt===!0&&this.setCurrentMarker();var At={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Yt){return At.markers.push(Yt.getState())}),At},ie.prototype.restoreState=function(Tt){var At=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Tt.markers.forEach(function(Yt){var oe=At._availableMarkerTypes.find(function(It){return It.typeName===Yt.typeName});if(oe!==void 0){var _t=At.addNewMarker(oe);_t.restoreState(Yt),At.markers.push(_t)}}),Tt.width&&Tt.height&&(Tt.width!==this.imageWidth||Tt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Tt.width,this.imageHeight/Tt.height),this.eventListeners.restorestate.forEach(function(Yt){return Yt(new Ae(At))})},ie.prototype.addNewMarker=function(Tt){var At=jt.createGroup();return this.markerImage.appendChild(At),new Tt(At,this.overlayContainer,this.settings)},ie.prototype.createNewMarker=function(Tt){var At,Yt=this;(At=typeof Tt=="string"?this._availableMarkerTypes.find(function(oe){return oe.typeName===Tt}):Tt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(At),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(At.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(oe){return oe(new Le(Yt,Yt._currentMarker))}))},ie.prototype.markerCreated=function(Tt){var At=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Tt),this.setCurrentMarker(Tt),Tt instanceof ge&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ge):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Yt){return Yt(new Le(At,At._currentMarker))})},ie.prototype.colorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Tt,this.settings.defaultStrokeColor=Tt)},ie.prototype.fillColorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Tt)},ie.prototype.markerStateChanged=function(Tt){var At=this;this.eventListeners.markerchange.forEach(function(Yt){return Yt(new Le(At,Tt))})},ie.prototype.setCurrentMarker=function(Tt){var At=this;this._currentMarker!==Tt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Yt){return Yt(new Le(At,At._currentMarker))})),this._currentMarker=Tt,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(Yt){return Yt(new Le(At,At._currentMarker))}))},ie.prototype.onPointerDown=function(Tt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Tt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var At=this.markers.find(function(Yt){return Yt.ownsTarget(Tt.target)});At!==void 0?(this.setCurrentMarker(At),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Tt.clientX,y:Tt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY))},ie.prototype.onDblClick=function(Tt){if(this._isFocused||this.focus(),this.mode==="select"){var At=this.markers.find(function(Yt){return Yt.ownsTarget(Tt.target)});At!==void 0&&At!==this._currentMarker&&this.setCurrentMarker(At),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target):this.setCurrentMarker()}},ie.prototype.onPointerMove=function(Tt){this.touchPoints!==1&&Tt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Tt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)):this.zoomLevel>1&&this.panTo({x:Tt.clientX,y:Tt.clientY}))},ie.prototype.onPointerUp=function(Tt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)),this.isDragging=!1,this.addUndoStep()},ie.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ie.prototype.onKeyUp=function(Tt){this._currentMarker===void 0||this.notesArea!==void 0||Tt.key!=="Delete"&&Tt.key!=="Backspace"||this.deleteSelectedMarker()},ie.prototype.clientToLocalCoordinates=function(Tt,At){var Yt=this.markerImage.getBoundingClientRect();return{x:(Tt-Yt.left)/this.zoomLevel,y:(At-Yt.top)/this.zoomLevel}},ie.prototype.onWindowResize=function(){this.positionUI()},ie.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Tt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Tt+"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()},ie.prototype.addLicenseKey=function(Tt){Ct.addKey(Tt)},ie.prototype.addEventListener=function(Tt,At){this.eventListeners.addEventListener(Tt,At)},ie.prototype.removeEventListener=function(Tt,At){this.eventListeners.removeEventListener(Tt,At)},ie.prototype.renderState=function(Tt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Tt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ie.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ie.prototype.focus=function(){var Tt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(At){return At(new Ae(Tt))}))},ie.prototype.blur=function(){var Tt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(At){return At(new Ae(Tt))}))},ie.instanceCounter=0,ie}()},66042:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return de}});var ee=ce(20439),wt=ce(50298),Qt=ce(43403),Zt=ce(34280),Ot=ce(59301),jt=Ot.createContext(null),Ct=Ot.createContext({}),Mt=jt,Bt=ce(4635),St=ce(14809),kt=ce(92310),xt=ce.n(kt),Dt=ce(77900),yt=ce(10228),et=ce(26112),tt=ce(62646),lt=ce(8654),ot=["prefixCls","className","containerRef"],ut=function(be){var Ne=be.prefixCls,Ge=be.className,Pe=be.containerRef,ze=(0,tt.Z)(be,ot),he=Ot.useContext(Ct),Jt=he.panel,re=(0,lt.x1)(Jt,Pe);return Ot.createElement("div",(0,St.Z)({className:xt()("".concat(Ne,"-content"),Ge),role:"dialog",ref:re},(0,et.Z)(be,{aria:!0}),{"aria-modal":"true"},ze))},ct=ut,ft=ce(48736);function gt(ge){return typeof ge=="string"&&String(Number(ge))===ge?((0,ft.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ge)):ge}function Lt(ge){warning(!("wrapperClassName"in ge),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ge.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Rt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ut(ge,be){var Ne,Ge,Pe,ze=ge.prefixCls,he=ge.open,Jt=ge.placement,re=ge.inline,se=ge.push,pe=ge.forceRender,ue=ge.autoFocus,Re=ge.keyboard,Fe=ge.classNames,Qe=ge.rootClassName,Ae=ge.rootStyle,_e=ge.zIndex,Le=ge.className,Oe=ge.id,He=ge.style,ie=ge.motion,Tt=ge.width,At=ge.height,Yt=ge.children,oe=ge.mask,_t=ge.maskClosable,It=ge.maskMotion,Pt=ge.maskClassName,Et=ge.maskStyle,$t=ge.afterOpenChange,zt=ge.onClose,Gt=ge.onMouseEnter,le=ge.onMouseOver,ye=ge.onMouseLeave,Ue=ge.onClick,We=ge.onKeyDown,Ee=ge.onKeyUp,Ze=ge.styles,on=ge.drawerRender,nn=Ot.useRef(),qe=Ot.useRef(),En=Ot.useRef();Ot.useImperativeHandle(be,function(){return nn.current});var fn=function(Rn){var bn=Rn.keyCode,_n=Rn.shiftKey;switch(bn){case yt.Z.TAB:{if(bn===yt.Z.TAB){if(!_n&&document.activeElement===En.current){var Yn;(Yn=qe.current)===null||Yn===void 0||Yn.focus({preventScroll:!0})}else if(_n&&document.activeElement===qe.current){var Xn;(Xn=En.current)===null||Xn===void 0||Xn.focus({preventScroll:!0})}}break}case yt.Z.ESC:{zt&&Re&&(Rn.stopPropagation(),zt(Rn));break}}};Ot.useEffect(function(){if(he&&ue){var zn;(zn=nn.current)===null||zn===void 0||zn.focus({preventScroll:!0})}},[he]);var Pn=Ot.useState(!1),Mn=(0,wt.Z)(Pn,2),ii=Mn[0],Tn=Mn[1],oi=Ot.useContext(Mt),vi;typeof se=="boolean"?vi=se?{}:{distance:0}:vi=se||{};var yi=(Ne=(Ge=(Pe=vi)===null||Pe===void 0?void 0:Pe.distance)!==null&&Ge!==void 0?Ge:oi==null?void 0:oi.pushDistance)!==null&&Ne!==void 0?Ne:180,Zi=Ot.useMemo(function(){return{pushDistance:yi,push:function(){Tn(!0)},pull:function(){Tn(!1)}}},[yi]);Ot.useEffect(function(){if(he){var zn;oi==null||(zn=oi.push)===null||zn===void 0||zn.call(oi)}else{var Rn;oi==null||(Rn=oi.pull)===null||Rn===void 0||Rn.call(oi)}},[he]),Ot.useEffect(function(){return function(){var zn;oi==null||(zn=oi.pull)===null||zn===void 0||zn.call(oi)}},[]);var Hi=oe&&Ot.createElement(Dt.default,(0,St.Z)({key:"mask"},It,{visible:he}),function(zn,Rn){var bn=zn.className,_n=zn.style;return Ot.createElement("div",{className:xt()("".concat(ze,"-mask"),bn,Fe==null?void 0:Fe.mask,Pt),style:(0,ee.Z)((0,ee.Z)((0,ee.Z)({},_n),Et),Ze==null?void 0:Ze.mask),onClick:_t&&he?zt:void 0,ref:Rn})}),Yi=typeof ie=="function"?ie(Jt):ie,zi={};if(ii&&yi)switch(Jt){case"top":zi.transform="translateY(".concat(yi,"px)");break;case"bottom":zi.transform="translateY(".concat(-yi,"px)");break;case"left":zi.transform="translateX(".concat(yi,"px)");break;default:zi.transform="translateX(".concat(-yi,"px)");break}Jt==="left"||Jt==="right"?zi.width=gt(Tt):zi.height=gt(At);var Pi={onMouseEnter:Gt,onMouseOver:le,onMouseLeave:ye,onClick:Ue,onKeyDown:We,onKeyUp:Ee},Gi=Ot.createElement(Dt.default,(0,St.Z)({key:"panel"},Yi,{visible:he,forceRender:pe,onVisibleChanged:function(Rn){$t==null||$t(Rn)},removeOnLeave:!1,leavedClassName:"".concat(ze,"-content-wrapper-hidden")}),function(zn,Rn){var bn=zn.className,_n=zn.style,Yn=Ot.createElement(ct,(0,St.Z)({id:Oe,containerRef:Rn,prefixCls:ze,className:xt()(Le,Fe==null?void 0:Fe.content),style:(0,ee.Z)((0,ee.Z)({},He),Ze==null?void 0:Ze.content)},(0,et.Z)(ge,{aria:!0}),Pi),Yt);return Ot.createElement("div",(0,St.Z)({className:xt()("".concat(ze,"-content-wrapper"),Fe==null?void 0:Fe.wrapper,bn),style:(0,ee.Z)((0,ee.Z)((0,ee.Z)({},zi),_n),Ze==null?void 0:Ze.wrapper)},(0,et.Z)(ge,{data:!0})),on?on(Yn):Yn)}),Kt=(0,ee.Z)({},Ae);return _e&&(Kt.zIndex=_e),Ot.createElement(Mt.Provider,{value:Zi},Ot.createElement("div",{className:xt()(ze,"".concat(ze,"-").concat(Jt),Qe,(0,Bt.Z)((0,Bt.Z)({},"".concat(ze,"-open"),he),"".concat(ze,"-inline"),re)),style:Kt,tabIndex:-1,ref:nn,onKeyDown:fn},Hi,Ot.createElement("div",{tabIndex:0,ref:qe,style:Rt,"aria-hidden":"true","data-sentinel":"start"}),Gi,Ot.createElement("div",{tabIndex:0,ref:En,style:Rt,"aria-hidden":"true","data-sentinel":"end"})))}var Nt=Ot.forwardRef(Ut),qt=Nt,te=function(be){var Ne=be.open,Ge=Ne===void 0?!1:Ne,Pe=be.prefixCls,ze=Pe===void 0?"rc-drawer":Pe,he=be.placement,Jt=he===void 0?"right":he,re=be.autoFocus,se=re===void 0?!0:re,pe=be.keyboard,ue=pe===void 0?!0:pe,Re=be.width,Fe=Re===void 0?378:Re,Qe=be.mask,Ae=Qe===void 0?!0:Qe,_e=be.maskClosable,Le=_e===void 0?!0:_e,Oe=be.getContainer,He=be.forceRender,ie=be.afterOpenChange,Tt=be.destroyOnClose,At=be.onMouseEnter,Yt=be.onMouseOver,oe=be.onMouseLeave,_t=be.onClick,It=be.onKeyDown,Pt=be.onKeyUp,Et=be.panelRef,$t=Ot.useState(!1),zt=(0,wt.Z)($t,2),Gt=zt[0],le=zt[1],ye=Ot.useState(!1),Ue=(0,wt.Z)(ye,2),We=Ue[0],Ee=Ue[1];(0,Zt.Z)(function(){Ee(!0)},[]);var Ze=We?Ge:!1,on=Ot.useRef(),nn=Ot.useRef();(0,Zt.Z)(function(){Ze&&(nn.current=document.activeElement)},[Ze]);var qe=function(ii){var Tn;if(le(ii),ie==null||ie(ii),!ii&&nn.current&&!((Tn=on.current)!==null&&Tn!==void 0&&Tn.contains(nn.current))){var oi;(oi=nn.current)===null||oi===void 0||oi.focus({preventScroll:!0})}},En=Ot.useMemo(function(){return{panel:Et}},[Et]);if(!He&&!Gt&&!Ze&&Tt)return null;var fn={onMouseEnter:At,onMouseOver:Yt,onMouseLeave:oe,onClick:_t,onKeyDown:It,onKeyUp:Pt},Pn=(0,ee.Z)((0,ee.Z)({},be),{},{open:Ze,prefixCls:ze,placement:Jt,autoFocus:se,keyboard:ue,width:Fe,mask:Ae,maskClosable:Le,inline:Oe===!1,afterOpenChange:qe,ref:on},fn);return Ot.createElement(Ct.Provider,{value:En},Ot.createElement(Qt.Z,{open:Ze||He||Gt,autoDestroy:!1,getContainer:Oe,autoLock:Ae&&(Ze||Gt)},Ot.createElement(qt,Pn)))},Vt=te,de=Vt},91574:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Ue}});var ee=ce(14809),wt=ce(20439),Qt=ce(4635),Zt=ce(50298),Ot=ce(93664),jt=ce(62646),Ct=ce(92310),Mt=ce.n(Ct),Bt=/margin|padding|width|height|max|min|offset/,St={left:!0,top:!0},kt={cssFloat:1,styleFloat:1,float:1};function xt(We){return We.nodeType===1?We.ownerDocument.defaultView.getComputedStyle(We,null):{}}function Dt(We,Ee,Ze){if(Ee=Ee.toLowerCase(),Ze==="auto"){if(Ee==="height")return We.offsetHeight;if(Ee==="width")return We.offsetWidth}return Ee in St||(St[Ee]=Bt.test(Ee)),St[Ee]?parseFloat(Ze)||0:Ze}function yt(We,Ee){var Ze=arguments.length,on=xt(We);return Ee=kt[Ee]?"cssFloat"in We.style?"cssFloat":"styleFloat":Ee,Ze===1?on:Dt(We,Ee,on[Ee]||We.style[Ee])}function et(We,Ee,Ze){var on=arguments.length;if(Ee=kt[Ee]?"cssFloat"in We.style?"cssFloat":"styleFloat":Ee,on===3)return typeof Ze=="number"&&Bt.test(Ee)&&(Ze="".concat(Ze,"px")),We.style[Ee]=Ze,Ze;for(var nn in Ee)Ee.hasOwnProperty(nn)&&et(We,nn,Ee[nn]);return xt(We)}function tt(We){return We===document.body?document.documentElement.clientWidth:We.offsetWidth}function lt(We){return We===document.body?window.innerHeight||document.documentElement.clientHeight:We.offsetHeight}function ot(){var We=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ee=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:We,height:Ee}}function ut(){var We=document.documentElement.clientWidth,Ee=window.innerHeight||document.documentElement.clientHeight;return{width:We,height:Ee}}function ct(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ft(We){var Ee=We.getBoundingClientRect(),Ze=document.documentElement;return{left:Ee.left+(window.pageXOffset||Ze.scrollLeft)-(Ze.clientLeft||document.body.clientLeft||0),top:Ee.top+(window.pageYOffset||Ze.scrollTop)-(Ze.clientTop||document.body.clientTop||0)}}var gt=ce(18929),Lt=ce(59301),Rt=ce(55311),Ut=ce(8224),Nt=ce(10228),qt=ce(43403),te=ce(77900),Vt=Lt.createContext(null),de=function(Ee){var Ze=Ee.visible,on=Ee.maskTransitionName,nn=Ee.getContainer,qe=Ee.prefixCls,En=Ee.rootClassName,fn=Ee.icons,Pn=Ee.countRender,Mn=Ee.showSwitch,ii=Ee.showProgress,Tn=Ee.current,oi=Ee.transform,vi=Ee.count,yi=Ee.scale,Zi=Ee.minScale,Hi=Ee.maxScale,Yi=Ee.closeIcon,zi=Ee.onActive,Pi=Ee.onClose,Gi=Ee.onZoomIn,Kt=Ee.onZoomOut,zn=Ee.onRotateRight,Rn=Ee.onRotateLeft,bn=Ee.onFlipX,_n=Ee.onFlipY,Yn=Ee.onReset,Xn=Ee.toolbarRender,Ri=Ee.zIndex,ki=Ee.image,Xe=(0,Lt.useContext)(Vt),Je=fn.rotateLeft,Ke=fn.rotateRight,Hn=fn.zoomIn,Jn=fn.zoomOut,qn=fn.close,pn=fn.left,Bn=fn.right,hi=fn.flipX,Ti=fn.flipY,Di="".concat(qe,"-operations-operation");Lt.useEffect(function(){var In=function(ai){ai.keyCode===Nt.Z.ESC&&Pi()};return Ze&&window.addEventListener("keydown",In),function(){window.removeEventListener("keydown",In)}},[Ze]);var we=function(Ai,ai){Ai.preventDefault(),Ai.stopPropagation(),zi(ai)},je=Lt.useCallback(function(In){var Ai=In.type,ai=In.disabled,ci=In.onClick,rn=In.icon;return Lt.createElement("div",{key:Ai,className:Mt()(Di,"".concat(qe,"-operations-operation-").concat(Ai),(0,Qt.Z)({},"".concat(qe,"-operations-operation-disabled"),!!ai)),onClick:ci},rn)},[Di,qe]),An=Mn?je({icon:pn,onClick:function(Ai){return we(Ai,-1)},type:"prev",disabled:Tn===0}):void 0,Nn=Mn?je({icon:Bn,onClick:function(Ai){return we(Ai,1)},type:"next",disabled:Tn===vi-1}):void 0,tn=je({icon:Ti,onClick:_n,type:"flipY"}),yn=je({icon:hi,onClick:bn,type:"flipX"}),xn=je({icon:Je,onClick:Rn,type:"rotateLeft"}),Sn=je({icon:Ke,onClick:zn,type:"rotateRight"}),Wn=je({icon:Jn,onClick:Kt,type:"zoomOut",disabled:yi<=Zi}),Fn=je({icon:Hn,onClick:Gi,type:"zoomIn",disabled:yi===Hi}),jn=Lt.createElement("div",{className:"".concat(qe,"-operations")},tn,yn,xn,Sn,Wn,Fn);return Lt.createElement(te.default,{visible:Ze,motionName:on},function(In){var Ai=In.className,ai=In.style;return Lt.createElement(qt.Z,{open:!0,getContainer:nn!=null?nn:document.body},Lt.createElement("div",{className:Mt()("".concat(qe,"-operations-wrapper"),Ai,En),style:(0,wt.Z)((0,wt.Z)({},ai),{},{zIndex:Ri})},Yi===null?null:Lt.createElement("button",{className:"".concat(qe,"-close"),onClick:Pi},Yi||qn),Mn&&Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:Mt()("".concat(qe,"-switch-left"),(0,Qt.Z)({},"".concat(qe,"-switch-left-disabled"),Tn===0)),onClick:function(rn){return we(rn,-1)}},pn),Lt.createElement("div",{className:Mt()("".concat(qe,"-switch-right"),(0,Qt.Z)({},"".concat(qe,"-switch-right-disabled"),Tn===vi-1)),onClick:function(rn){return we(rn,1)}},Bn)),Lt.createElement("div",{className:"".concat(qe,"-footer")},ii&&Lt.createElement("div",{className:"".concat(qe,"-progress")},Pn?Pn(Tn+1,vi):"".concat(Tn+1," / ").concat(vi)),Xn?Xn(jn,(0,wt.Z)((0,wt.Z)({icons:{prevIcon:An,nextIcon:Nn,flipYIcon:tn,flipXIcon:yn,rotateLeftIcon:xn,rotateRightIcon:Sn,zoomOutIcon:Wn,zoomInIcon:Fn},actions:{onActive:zi,onFlipY:_n,onFlipX:bn,onRotateLeft:Rn,onRotateRight:zn,onZoomOut:Kt,onZoomIn:Gi,onReset:Yn,onClose:Pi},transform:oi},Xe?{current:Tn,total:vi}:{}),{},{image:ki})):jn)))})},ge=de,be=ce(13697),Ne=ce(16089),Ge={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Pe(We,Ee,Ze,on){var nn=(0,Lt.useRef)(null),qe=(0,Lt.useRef)([]),En=(0,Lt.useState)(Ge),fn=(0,Zt.Z)(En,2),Pn=fn[0],Mn=fn[1],ii=function(yi){Mn(Ge),(0,be.Z)(Ge,Pn)||on==null||on({transform:Ge,action:yi})},Tn=function(yi,Zi){nn.current===null&&(qe.current=[],nn.current=(0,Ne.Z)(function(){Mn(function(Hi){var Yi=Hi;return qe.current.forEach(function(zi){Yi=(0,wt.Z)((0,wt.Z)({},Yi),zi)}),nn.current=null,on==null||on({transform:Yi,action:Zi}),Yi})})),qe.current.push((0,wt.Z)((0,wt.Z)({},Pn),yi))},oi=function(yi,Zi,Hi,Yi,zi){var Pi=We.current,Gi=Pi.width,Kt=Pi.height,zn=Pi.offsetWidth,Rn=Pi.offsetHeight,bn=Pi.offsetLeft,_n=Pi.offsetTop,Yn=yi,Xn=Pn.scale*yi;Xn>Ze?(Xn=Ze,Yn=Ze/Pn.scale):Xn<Ee&&(Xn=zi?Xn:Ee,Yn=Xn/Pn.scale);var Ri=Hi!=null?Hi:innerWidth/2,ki=Yi!=null?Yi:innerHeight/2,Xe=Yn-1,Je=Xe*Gi*.5,Ke=Xe*Kt*.5,Hn=Xe*(Ri-Pn.x-bn),Jn=Xe*(ki-Pn.y-_n),qn=Pn.x-(Hn-Je),pn=Pn.y-(Jn-Ke);if(yi<1&&Xn===1){var Bn=zn*Xn,hi=Rn*Xn,Ti=ut(),Di=Ti.width,we=Ti.height;Bn<=Di&&hi<=we&&(qn=0,pn=0)}Tn({x:qn,y:pn,scale:Xn},Zi)};return{transform:Pn,resetTransform:ii,updateTransform:Tn,dispatchZoomChange:oi}}var ze=ce(48736);function he(We,Ee,Ze,on){var nn=Ee+Ze,qe=(Ze-on)/2;if(Ze>on){if(Ee>0)return(0,Qt.Z)({},We,qe);if(Ee<0&&nn<on)return(0,Qt.Z)({},We,-qe)}else if(Ee<0||nn>on)return(0,Qt.Z)({},We,Ee<0?qe:-qe);return{}}function Jt(We,Ee,Ze,on){var nn=ut(),qe=nn.width,En=nn.height,fn=null;return We<=qe&&Ee<=En?fn={x:0,y:0}:(We>qe||Ee>En)&&(fn=(0,wt.Z)((0,wt.Z)({},he("x",Ze,We,qe)),he("y",on,Ee,En))),fn}var re=1,se=1;function pe(We,Ee,Ze,on,nn,qe,En){var fn=nn.rotate,Pn=nn.scale,Mn=nn.x,ii=nn.y,Tn=(0,Lt.useState)(!1),oi=(0,Zt.Z)(Tn,2),vi=oi[0],yi=oi[1],Zi=(0,Lt.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Hi=function(Kt){!Ee||Kt.button!==0||(Kt.preventDefault(),Kt.stopPropagation(),Zi.current={diffX:Kt.pageX-Mn,diffY:Kt.pageY-ii,transformX:Mn,transformY:ii},yi(!0))},Yi=function(Kt){Ze&&vi&&qe({x:Kt.pageX-Zi.current.diffX,y:Kt.pageY-Zi.current.diffY},"move")},zi=function(){if(Ze&&vi){yi(!1);var Kt=Zi.current,zn=Kt.transformX,Rn=Kt.transformY,bn=Mn!==zn&&ii!==Rn;if(!bn)return;var _n=We.current.offsetWidth*Pn,Yn=We.current.offsetHeight*Pn,Xn=We.current.getBoundingClientRect(),Ri=Xn.left,ki=Xn.top,Xe=fn%180!==0,Je=Jt(Xe?Yn:_n,Xe?_n:Yn,Ri,ki);Je&&qe((0,wt.Z)({},Je),"dragRebound")}},Pi=function(Kt){if(!(!Ze||Kt.deltaY==0)){var zn=Math.abs(Kt.deltaY/100),Rn=Math.min(zn,se),bn=re+Rn*on;Kt.deltaY>0&&(bn=re/bn),En(bn,"wheel",Kt.clientX,Kt.clientY)}};return(0,Lt.useEffect)(function(){var Gi,Kt,zn,Rn;if(Ee){zn=(0,Ut.Z)(window,"mouseup",zi,!1),Rn=(0,Ut.Z)(window,"mousemove",Yi,!1);try{window.top!==window.self&&(Gi=(0,Ut.Z)(window.top,"mouseup",zi,!1),Kt=(0,Ut.Z)(window.top,"mousemove",Yi,!1))}catch(bn){(0,ze.Kp)(!1,"[rc-image] ".concat(bn))}}return function(){var bn,_n,Yn,Xn;(bn=zn)===null||bn===void 0||bn.remove(),(_n=Rn)===null||_n===void 0||_n.remove(),(Yn=Gi)===null||Yn===void 0||Yn.remove(),(Xn=Kt)===null||Xn===void 0||Xn.remove()}},[Ze,vi,Mn,ii,fn,Ee]),{isMoving:vi,onMouseDown:Hi,onMouseMove:Yi,onMouseUp:zi,onWheel:Pi}}function ue(We){return new Promise(function(Ee){if(!We){Ee(!1);return}var Ze=document.createElement("img");Ze.onerror=function(){return Ee(!1)},Ze.onload=function(){return Ee(!0)},Ze.src=We})}function Re(We){var Ee=We.src,Ze=We.isCustomPlaceholder,on=We.fallback,nn=(0,Lt.useState)(Ze?"loading":"normal"),qe=(0,Zt.Z)(nn,2),En=qe[0],fn=qe[1],Pn=(0,Lt.useRef)(!1),Mn=En==="error";(0,Lt.useEffect)(function(){var vi=!0;return ue(Ee).then(function(yi){!yi&&vi&&fn("error")}),function(){vi=!1}},[Ee]),(0,Lt.useEffect)(function(){Ze&&!Pn.current?fn("loading"):Mn&&fn("normal")},[Ee]);var ii=function(){fn("normal")},Tn=function(yi){Pn.current=!1,En==="loading"&&yi!==null&&yi!==void 0&&yi.complete&&(yi.naturalWidth||yi.naturalHeight)&&(Pn.current=!0,ii())},oi=Mn&&on?{src:on}:{onLoad:ii,src:Ee};return[Tn,oi,En]}function Fe(We,Ee){var Ze=We.x-Ee.x,on=We.y-Ee.y;return Math.hypot(Ze,on)}function Qe(We,Ee,Ze,on){var nn=Fe(We,Ze),qe=Fe(Ee,on);if(nn===0&&qe===0)return[We.x,We.y];var En=nn/(nn+qe),fn=We.x+En*(Ee.x-We.x),Pn=We.y+En*(Ee.y-We.y);return[fn,Pn]}function Ae(We,Ee,Ze,on,nn,qe,En){var fn=nn.rotate,Pn=nn.scale,Mn=nn.x,ii=nn.y,Tn=(0,Lt.useState)(!1),oi=(0,Zt.Z)(Tn,2),vi=oi[0],yi=oi[1],Zi=(0,Lt.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Hi=function(Kt){Zi.current=(0,wt.Z)((0,wt.Z)({},Zi.current),Kt)},Yi=function(Kt){if(Ee){Kt.stopPropagation(),yi(!0);var zn=Kt.touches,Rn=zn===void 0?[]:zn;Rn.length>1?Hi({point1:{x:Rn[0].clientX,y:Rn[0].clientY},point2:{x:Rn[1].clientX,y:Rn[1].clientY},eventType:"touchZoom"}):Hi({point1:{x:Rn[0].clientX-Mn,y:Rn[0].clientY-ii},eventType:"move"})}},zi=function(Kt){var zn=Kt.touches,Rn=zn===void 0?[]:zn,bn=Zi.current,_n=bn.point1,Yn=bn.point2,Xn=bn.eventType;if(Rn.length>1&&Xn==="touchZoom"){var Ri={x:Rn[0].clientX,y:Rn[0].clientY},ki={x:Rn[1].clientX,y:Rn[1].clientY},Xe=Qe(_n,Yn,Ri,ki),Je=(0,Zt.Z)(Xe,2),Ke=Je[0],Hn=Je[1],Jn=Fe(Ri,ki)/Fe(_n,Yn);En(Jn,"touchZoom",Ke,Hn,!0),Hi({point1:Ri,point2:ki,eventType:"touchZoom"})}else Xn==="move"&&(qe({x:Rn[0].clientX-_n.x,y:Rn[0].clientY-_n.y},"move"),Hi({eventType:"move"}))},Pi=function(){if(Ze){if(vi&&yi(!1),Hi({eventType:"none"}),on>Pn)return qe({x:0,y:0,scale:on},"touchZoom");var Kt=We.current.offsetWidth*Pn,zn=We.current.offsetHeight*Pn,Rn=We.current.getBoundingClientRect(),bn=Rn.left,_n=Rn.top,Yn=fn%180!==0,Xn=Jt(Yn?zn:Kt,Yn?Kt:zn,bn,_n);Xn&&qe((0,wt.Z)({},Xn),"dragRebound")}};return(0,Lt.useEffect)(function(){var Gi;return Ze&&Ee&&(Gi=(0,Ut.Z)(window,"touchmove",function(Kt){return Kt.preventDefault()},{passive:!1})),function(){var Kt;(Kt=Gi)===null||Kt===void 0||Kt.remove()}},[Ze,Ee]),{isTouching:vi,onTouchStart:Yi,onTouchMove:zi,onTouchEnd:Pi}}var _e=["fallback","src","imgRef"],Le=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Oe=function(Ee){var Ze=Ee.fallback,on=Ee.src,nn=Ee.imgRef,qe=(0,jt.Z)(Ee,_e),En=Re({src:on,fallback:Ze}),fn=(0,Zt.Z)(En,2),Pn=fn[0],Mn=fn[1];return Lt.createElement("img",(0,ee.Z)({ref:function(Tn){nn.current=Tn,Pn(Tn)}},qe,Mn))},He=function(Ee){var Ze=Ee.prefixCls,on=Ee.src,nn=Ee.alt,qe=Ee.imageInfo,En=Ee.fallback,fn=Ee.movable,Pn=fn===void 0?!0:fn,Mn=Ee.onClose,ii=Ee.visible,Tn=Ee.icons,oi=Tn===void 0?{}:Tn,vi=Ee.rootClassName,yi=Ee.closeIcon,Zi=Ee.getContainer,Hi=Ee.current,Yi=Hi===void 0?0:Hi,zi=Ee.count,Pi=zi===void 0?1:zi,Gi=Ee.countRender,Kt=Ee.scaleStep,zn=Kt===void 0?.5:Kt,Rn=Ee.minScale,bn=Rn===void 0?1:Rn,_n=Ee.maxScale,Yn=_n===void 0?50:_n,Xn=Ee.transitionName,Ri=Xn===void 0?"zoom":Xn,ki=Ee.maskTransitionName,Xe=ki===void 0?"fade":ki,Je=Ee.imageRender,Ke=Ee.imgCommonProps,Hn=Ee.toolbarRender,Jn=Ee.onTransform,qn=Ee.onChange,pn=(0,jt.Z)(Ee,Le),Bn=(0,Lt.useRef)(),hi=(0,Lt.useContext)(Vt),Ti=hi&&Pi>1,Di=hi&&Pi>=1,we=(0,Lt.useState)(!0),je=(0,Zt.Z)(we,2),An=je[0],Nn=je[1],tn=Pe(Bn,bn,Yn,Jn),yn=tn.transform,xn=tn.resetTransform,Sn=tn.updateTransform,Wn=tn.dispatchZoomChange,Fn=pe(Bn,Pn,ii,zn,yn,Sn,Wn),jn=Fn.isMoving,In=Fn.onMouseDown,Ai=Fn.onWheel,ai=Ae(Bn,Pn,ii,bn,yn,Sn,Wn),ci=ai.isTouching,rn=ai.onTouchStart,Ii=ai.onTouchMove,Xi=ai.onTouchEnd,vr=yn.rotate,an=yn.scale,Dn=Mt()((0,Qt.Z)({},"".concat(Ze,"-moving"),jn));(0,Lt.useEffect)(function(){An||Nn(!0)},[An]);var ei=function(){xn("close")},Qn=function(){Wn(re+zn,"zoomIn")},ri=function(){Wn(re/(re+zn),"zoomOut")},Ci=function(){Sn({rotate:vr+90},"rotateRight")},Fi=function(){Sn({rotate:vr-90},"rotateLeft")},Ui=function(){Sn({flipX:!yn.flipX},"flipX")},Qi=function(){Sn({flipY:!yn.flipY},"flipY")},sr=function(){xn("reset")},cn=function(fr){var rr=Yi+fr;!Number.isInteger(rr)||rr<0||rr>Pi-1||(Nn(!1),xn(fr<0?"prev":"next"),qn==null||qn(rr,Yi))},gr=function(fr){!ii||!Ti||(fr.keyCode===Nt.Z.LEFT?cn(-1):fr.keyCode===Nt.Z.RIGHT&&cn(1))},hn=function(fr){ii&&(an!==1?Sn({x:0,y:0,scale:1},"doubleClick"):Wn(re+zn,"doubleClick",fr.clientX,fr.clientY))};(0,Lt.useEffect)(function(){var Wi=(0,Ut.Z)(window,"keydown",gr,!1);return function(){Wi.remove()}},[ii,Ti,Yi]);var di=Lt.createElement(Oe,(0,ee.Z)({},Ke,{width:Ee.width,height:Ee.height,imgRef:Bn,className:"".concat(Ze,"-img"),alt:nn,style:{transform:"translate3d(".concat(yn.x,"px, ").concat(yn.y,"px, 0) scale3d(").concat(yn.flipX?"-":"").concat(an,", ").concat(yn.flipY?"-":"").concat(an,", 1) rotate(").concat(vr,"deg)"),transitionDuration:(!An||ci)&&"0s"},fallback:En,src:on,onWheel:Ai,onMouseDown:In,onDoubleClick:hn,onTouchStart:rn,onTouchMove:Ii,onTouchEnd:Xi,onTouchCancel:Xi})),tr=(0,wt.Z)({url:on,alt:nn},qe);return Lt.createElement(Lt.Fragment,null,Lt.createElement(Rt.Z,(0,ee.Z)({transitionName:Ri,maskTransitionName:Xe,closable:!1,keyboard:!0,prefixCls:Ze,onClose:Mn,visible:ii,classNames:{wrapper:Dn},rootClassName:vi,getContainer:Zi},pn,{afterClose:ei}),Lt.createElement("div",{className:"".concat(Ze,"-img-wrapper")},Je?Je(di,(0,wt.Z)({transform:yn,image:tr},hi?{current:Yi}:{})):di)),Lt.createElement(ge,{visible:ii,transform:yn,maskTransitionName:Xe,closeIcon:yi,getContainer:Zi,prefixCls:Ze,rootClassName:vi,icons:oi,countRender:Gi,showSwitch:Ti,showProgress:Di,current:Yi,count:Pi,scale:an,minScale:bn,maxScale:Yn,toolbarRender:Hn,onActive:cn,onZoomIn:Qn,onZoomOut:ri,onRotateRight:Ci,onRotateLeft:Fi,onFlipX:Ui,onFlipY:Qi,onClose:Mn,onReset:sr,zIndex:pn.zIndex!==void 0?pn.zIndex+1:void 0,image:tr}))},ie=He,Tt=ce(95190),At=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Yt(We){var Ee=Lt.useState({}),Ze=(0,Zt.Z)(Ee,2),on=Ze[0],nn=Ze[1],qe=Lt.useCallback(function(fn,Pn){return nn(function(Mn){return(0,wt.Z)((0,wt.Z)({},Mn),{},(0,Qt.Z)({},fn,Pn))}),function(){nn(function(Mn){var ii=(0,wt.Z)({},Mn);return delete ii[fn],ii})}},[]),En=Lt.useMemo(function(){return We?We.map(function(fn){if(typeof fn=="string")return{data:{src:fn}};var Pn={};return Object.keys(fn).forEach(function(Mn){["src"].concat((0,Tt.Z)(At)).includes(Mn)&&(Pn[Mn]=fn[Mn])}),{data:Pn}}):Object.keys(on).reduce(function(fn,Pn){var Mn=on[Pn],ii=Mn.canPreview,Tn=Mn.data;return ii&&fn.push({data:Tn,id:Pn}),fn},[])},[We,on]);return[En,qe,!!We]}var oe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],_t=["src"],It=function(Ee){var Ze,on=Ee.previewPrefixCls,nn=on===void 0?"rc-image-preview":on,qe=Ee.children,En=Ee.icons,fn=En===void 0?{}:En,Pn=Ee.items,Mn=Ee.preview,ii=Ee.fallback,Tn=(0,Ot.Z)(Mn)==="object"?Mn:{},oi=Tn.visible,vi=Tn.onVisibleChange,yi=Tn.getContainer,Zi=Tn.current,Hi=Tn.movable,Yi=Tn.minScale,zi=Tn.maxScale,Pi=Tn.countRender,Gi=Tn.closeIcon,Kt=Tn.onChange,zn=Tn.onTransform,Rn=Tn.toolbarRender,bn=Tn.imageRender,_n=(0,jt.Z)(Tn,oe),Yn=Yt(Pn),Xn=(0,Zt.Z)(Yn,3),Ri=Xn[0],ki=Xn[1],Xe=Xn[2],Je=(0,gt.Z)(0,{value:Zi}),Ke=(0,Zt.Z)(Je,2),Hn=Ke[0],Jn=Ke[1],qn=(0,Lt.useState)(!1),pn=(0,Zt.Z)(qn,2),Bn=pn[0],hi=pn[1],Ti=((Ze=Ri[Hn])===null||Ze===void 0?void 0:Ze.data)||{},Di=Ti.src,we=(0,jt.Z)(Ti,_t),je=(0,gt.Z)(!!oi,{value:oi,onChange:function(ci,rn){vi==null||vi(ci,rn,Hn)}}),An=(0,Zt.Z)(je,2),Nn=An[0],tn=An[1],yn=(0,Lt.useState)(null),xn=(0,Zt.Z)(yn,2),Sn=xn[0],Wn=xn[1],Fn=Lt.useCallback(function(ai,ci,rn,Ii){var Xi=Xe?Ri.findIndex(function(vr){return vr.data.src===ci}):Ri.findIndex(function(vr){return vr.id===ai});Jn(Xi<0?0:Xi),tn(!0),Wn({x:rn,y:Ii}),hi(!0)},[Ri,Xe]);Lt.useEffect(function(){Nn?Bn||Jn(0):hi(!1)},[Nn]);var jn=function(ci,rn){Jn(ci),Kt==null||Kt(ci,rn)},In=function(){tn(!1),Wn(null)},Ai=Lt.useMemo(function(){return{register:ki,onPreview:Fn}},[ki,Fn]);return Lt.createElement(Vt.Provider,{value:Ai},qe,Lt.createElement(ie,(0,ee.Z)({"aria-hidden":!Nn,movable:Hi,visible:Nn,prefixCls:nn,closeIcon:Gi,onClose:In,mousePosition:Sn,imgCommonProps:we,src:Di,fallback:ii,icons:fn,minScale:Yi,maxScale:zi,getContainer:yi,current:Hn,count:Ri.length,countRender:Pi,onTransform:zn,toolbarRender:Rn,imageRender:bn,onChange:jn},_n)))},Pt=It,Et=0;function $t(We,Ee){var Ze=Lt.useState(function(){return Et+=1,String(Et)}),on=(0,Zt.Z)(Ze,1),nn=on[0],qe=Lt.useContext(Vt),En={data:Ee,canPreview:We};return Lt.useEffect(function(){if(qe)return qe.register(nn,En)},[]),Lt.useEffect(function(){qe&&qe.register(nn,En)},[We,Ee]),nn}var zt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Gt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],le=function(Ee){var Ze=Ee.src,on=Ee.alt,nn=Ee.onPreviewClose,qe=Ee.prefixCls,En=qe===void 0?"rc-image":qe,fn=Ee.previewPrefixCls,Pn=fn===void 0?"".concat(En,"-preview"):fn,Mn=Ee.placeholder,ii=Ee.fallback,Tn=Ee.width,oi=Ee.height,vi=Ee.style,yi=Ee.preview,Zi=yi===void 0?!0:yi,Hi=Ee.className,Yi=Ee.onClick,zi=Ee.onError,Pi=Ee.wrapperClassName,Gi=Ee.wrapperStyle,Kt=Ee.rootClassName,zn=(0,jt.Z)(Ee,zt),Rn=Mn&&Mn!==!0,bn=(0,Ot.Z)(Zi)==="object"?Zi:{},_n=bn.src,Yn=bn.visible,Xn=Yn===void 0?void 0:Yn,Ri=bn.onVisibleChange,ki=Ri===void 0?nn:Ri,Xe=bn.getContainer,Je=Xe===void 0?void 0:Xe,Ke=bn.mask,Hn=bn.maskClassName,Jn=bn.movable,qn=bn.icons,pn=bn.scaleStep,Bn=bn.minScale,hi=bn.maxScale,Ti=bn.imageRender,Di=bn.toolbarRender,we=(0,jt.Z)(bn,Gt),je=_n!=null?_n:Ze,An=(0,gt.Z)(!!Xn,{value:Xn,onChange:ki}),Nn=(0,Zt.Z)(An,2),tn=Nn[0],yn=Nn[1],xn=Re({src:Ze,isCustomPlaceholder:Rn,fallback:ii}),Sn=(0,Zt.Z)(xn,3),Wn=Sn[0],Fn=Sn[1],jn=Sn[2],In=(0,Lt.useState)(null),Ai=(0,Zt.Z)(In,2),ai=Ai[0],ci=Ai[1],rn=(0,Lt.useContext)(Vt),Ii=!!Zi,Xi=function(){yn(!1),ci(null)},vr=Mt()(En,Pi,Kt,(0,Qt.Z)({},"".concat(En,"-error"),jn==="error")),an=(0,Lt.useMemo)(function(){var ri={};return At.forEach(function(Ci){Ee[Ci]!==void 0&&(ri[Ci]=Ee[Ci])}),ri},At.map(function(ri){return Ee[ri]})),Dn=(0,Lt.useMemo)(function(){return(0,wt.Z)((0,wt.Z)({},an),{},{src:je})},[je,an]),ei=$t(Ii,Dn),Qn=function(Ci){var Fi=ft(Ci.target),Ui=Fi.left,Qi=Fi.top;rn?rn.onPreview(ei,je,Ui,Qi):(ci({x:Ui,y:Qi}),yn(!0)),Yi==null||Yi(Ci)};return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",(0,ee.Z)({},zn,{className:vr,onClick:Ii?Qn:Yi,style:(0,wt.Z)({width:Tn,height:oi},Gi)}),Lt.createElement("img",(0,ee.Z)({},an,{className:Mt()("".concat(En,"-img"),(0,Qt.Z)({},"".concat(En,"-img-placeholder"),Mn===!0),Hi),style:(0,wt.Z)({height:oi},vi),ref:Wn},Fn,{width:Tn,height:oi,onError:zi})),jn==="loading"&&Lt.createElement("div",{"aria-hidden":"true",className:"".concat(En,"-placeholder")},Mn),Ke&&Ii&&Lt.createElement("div",{className:Mt()("".concat(En,"-mask"),Hn),style:{display:(vi==null?void 0:vi.display)==="none"?"none":void 0}},Ke)),!rn&&Ii&&Lt.createElement(ie,(0,ee.Z)({"aria-hidden":!tn,visible:tn,prefixCls:Pn,onClose:Xi,mousePosition:ai,src:je,alt:on,imageInfo:{width:Tn,height:oi},fallback:ii,getContainer:Je,icons:qn,movable:Jn,scaleStep:pn,minScale:Bn,maxScale:hi,rootClassName:Kt,imageRender:Ti,imgCommonProps:an,toolbarRender:Di},we)))};le.PreviewGroup=Pt;var ye=le,Ue=ye},23425:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Rt}});var ee=ce(4635),wt=ce(14809),Qt=ce(93664),Zt=ce(20439),Ot=ce(50298),jt=ce(92310),Ct=ce.n(jt),Mt=ce(18929),Bt=ce(10228),St=ce(26112),kt=ce(48736),xt=ce(59301),Dt=ce(17119),yt=[10,20,50,100],et=function(Nt){var qt=Nt.pageSizeOptions,te=qt===void 0?yt:qt,Vt=Nt.locale,de=Nt.changeSize,ge=Nt.pageSize,be=Nt.goButton,Ne=Nt.quickGo,Ge=Nt.rootPrefixCls,Pe=Nt.disabled,ze=Nt.buildOptionText,he=Nt.showSizeChanger,Jt=Nt.sizeChangerRender,re=xt.useState(""),se=(0,Ot.Z)(re,2),pe=se[0],ue=se[1],Re=function(){return!pe||Number.isNaN(pe)?void 0:Number(pe)},Fe=typeof ze=="function"?ze:function(At){return"".concat(At," ").concat(Vt.items_per_page)},Qe=function(Yt){ue(Yt.target.value)},Ae=function(Yt){be||pe===""||(ue(""),!(Yt.relatedTarget&&(Yt.relatedTarget.className.indexOf("".concat(Ge,"-item-link"))>=0||Yt.relatedTarget.className.indexOf("".concat(Ge,"-item"))>=0))&&(Ne==null||Ne(Re())))},_e=function(Yt){pe!==""&&(Yt.keyCode===Bt.Z.ENTER||Yt.type==="click")&&(ue(""),Ne==null||Ne(Re()))},Le=function(){return te.some(function(Yt){return Yt.toString()===ge.toString()})?te:te.concat([ge]).sort(function(Yt,oe){var _t=Number.isNaN(Number(Yt))?0:Number(Yt),It=Number.isNaN(Number(oe))?0:Number(oe);return _t-It})},Oe="".concat(Ge,"-options");if(!he&&!Ne)return null;var He=null,ie=null,Tt=null;return he&&Jt&&(He=Jt({disabled:Pe,size:ge,onSizeChange:function(Yt){de==null||de(Number(Yt))},"aria-label":Vt.page_size,className:"".concat(Oe,"-size-changer"),options:Le().map(function(At){return{label:Fe(At),value:At}})})),Ne&&(be&&(Tt=typeof be=="boolean"?xt.createElement("button",{type:"button",onClick:_e,onKeyUp:_e,disabled:Pe,className:"".concat(Oe,"-quick-jumper-button")},Vt.jump_to_confirm):xt.createElement("span",{onClick:_e,onKeyUp:_e},be)),ie=xt.createElement("div",{className:"".concat(Oe,"-quick-jumper")},Vt.jump_to,xt.createElement("input",{disabled:Pe,type:"text",value:pe,onChange:Qe,onKeyUp:_e,onBlur:Ae,"aria-label":Vt.page}),Vt.page,Tt)),xt.createElement("li",{className:Oe},He,ie)},tt=et,lt=function(Nt){var qt=Nt.rootPrefixCls,te=Nt.page,Vt=Nt.active,de=Nt.className,ge=Nt.showTitle,be=Nt.onClick,Ne=Nt.onKeyPress,Ge=Nt.itemRender,Pe="".concat(qt,"-item"),ze=Ct()(Pe,"".concat(Pe,"-").concat(te),(0,ee.Z)((0,ee.Z)({},"".concat(Pe,"-active"),Vt),"".concat(Pe,"-disabled"),!te),de),he=function(){be(te)},Jt=function(pe){Ne(pe,be,te)},re=Ge(te,"page",xt.createElement("a",{rel:"nofollow"},te));return re?xt.createElement("li",{title:ge?String(te):null,className:ze,onClick:he,onKeyDown:Jt,tabIndex:0},re):null},ot=lt,ut=function(Nt,qt,te){return te};function ct(){}function ft(Ut){var Nt=Number(Ut);return typeof Nt=="number"&&!Number.isNaN(Nt)&&isFinite(Nt)&&Math.floor(Nt)===Nt}function gt(Ut,Nt,qt){var te=typeof Ut=="undefined"?Nt:Ut;return Math.floor((qt-1)/te)+1}var Lt=function(Nt){var qt=Nt.prefixCls,te=qt===void 0?"rc-pagination":qt,Vt=Nt.selectPrefixCls,de=Vt===void 0?"rc-select":Vt,ge=Nt.className,be=Nt.current,Ne=Nt.defaultCurrent,Ge=Ne===void 0?1:Ne,Pe=Nt.total,ze=Pe===void 0?0:Pe,he=Nt.pageSize,Jt=Nt.defaultPageSize,re=Jt===void 0?10:Jt,se=Nt.onChange,pe=se===void 0?ct:se,ue=Nt.hideOnSinglePage,Re=Nt.align,Fe=Nt.showPrevNextJumpers,Qe=Fe===void 0?!0:Fe,Ae=Nt.showQuickJumper,_e=Nt.showLessItems,Le=Nt.showTitle,Oe=Le===void 0?!0:Le,He=Nt.onShowSizeChange,ie=He===void 0?ct:He,Tt=Nt.locale,At=Tt===void 0?Dt.Z:Tt,Yt=Nt.style,oe=Nt.totalBoundaryShowSizeChanger,_t=oe===void 0?50:oe,It=Nt.disabled,Pt=Nt.simple,Et=Nt.showTotal,$t=Nt.showSizeChanger,zt=$t===void 0?ze>_t:$t,Gt=Nt.sizeChangerRender,le=Nt.pageSizeOptions,ye=Nt.itemRender,Ue=ye===void 0?ut:ye,We=Nt.jumpPrevIcon,Ee=Nt.jumpNextIcon,Ze=Nt.prevIcon,on=Nt.nextIcon,nn=xt.useRef(null),qe=(0,Mt.Z)(10,{value:he,defaultValue:re}),En=(0,Ot.Z)(qe,2),fn=En[0],Pn=En[1],Mn=(0,Mt.Z)(1,{value:be,defaultValue:Ge,postState:function(tr){return Math.max(1,Math.min(tr,gt(void 0,fn,ze)))}}),ii=(0,Ot.Z)(Mn,2),Tn=ii[0],oi=ii[1],vi=xt.useState(Tn),yi=(0,Ot.Z)(vi,2),Zi=yi[0],Hi=yi[1];(0,xt.useEffect)(function(){Hi(Tn)},[Tn]);var Yi=pe!==ct,zi="current"in Nt,Pi=Math.max(1,Tn-(_e?3:5)),Gi=Math.min(gt(void 0,fn,ze),Tn+(_e?3:5));function Kt(di,tr){var Wi=di||xt.createElement("button",{type:"button","aria-label":tr,className:"".concat(te,"-item-link")});return typeof di=="function"&&(Wi=xt.createElement(di,(0,Zt.Z)({},Nt))),Wi}function zn(di){var tr=di.target.value,Wi=gt(void 0,fn,ze),fr;return tr===""?fr=tr:Number.isNaN(Number(tr))?fr=Zi:tr>=Wi?fr=Wi:fr=Number(tr),fr}function Rn(di){return ft(di)&&di!==Tn&&ft(ze)&&ze>0}var bn=ze>fn?Ae:!1;function _n(di){(di.keyCode===Bt.Z.UP||di.keyCode===Bt.Z.DOWN)&&di.preventDefault()}function Yn(di){var tr=zn(di);switch(tr!==Zi&&Hi(tr),di.keyCode){case Bt.Z.ENTER:ki(tr);break;case Bt.Z.UP:ki(tr-1);break;case Bt.Z.DOWN:ki(tr+1);break;default:break}}function Xn(di){ki(zn(di))}function Ri(di){var tr=gt(di,fn,ze),Wi=Tn>tr&&tr!==0?tr:Tn;Pn(di),Hi(Wi),ie==null||ie(Tn,di),oi(Wi),pe==null||pe(Wi,di)}function ki(di){if(Rn(di)&&!It){var tr=gt(void 0,fn,ze),Wi=di;return di>tr?Wi=tr:di<1&&(Wi=1),Wi!==Zi&&Hi(Wi),oi(Wi),pe==null||pe(Wi,fn),Wi}return Tn}var Xe=Tn>1,Je=Tn<gt(void 0,fn,ze);function Ke(){Xe&&ki(Tn-1)}function Hn(){Je&&ki(Tn+1)}function Jn(){ki(Pi)}function qn(){ki(Gi)}function pn(di,tr){if(di.key==="Enter"||di.charCode===Bt.Z.ENTER||di.keyCode===Bt.Z.ENTER){for(var Wi=arguments.length,fr=new Array(Wi>2?Wi-2:0),rr=2;rr<Wi;rr++)fr[rr-2]=arguments[rr];tr.apply(void 0,fr)}}function Bn(di){pn(di,Ke)}function hi(di){pn(di,Hn)}function Ti(di){pn(di,Jn)}function Di(di){pn(di,qn)}function we(di){var tr=Ue(di,"prev",Kt(Ze,"prev page"));return xt.isValidElement(tr)?xt.cloneElement(tr,{disabled:!Xe}):tr}function je(di){var tr=Ue(di,"next",Kt(on,"next page"));return xt.isValidElement(tr)?xt.cloneElement(tr,{disabled:!Je}):tr}function An(di){(di.type==="click"||di.keyCode===Bt.Z.ENTER)&&ki(Zi)}var Nn=null,tn=(0,St.Z)(Nt,{aria:!0,data:!0}),yn=Et&&xt.createElement("li",{className:"".concat(te,"-total-text")},Et(ze,[ze===0?0:(Tn-1)*fn+1,Tn*fn>ze?ze:Tn*fn])),xn=null,Sn=gt(void 0,fn,ze);if(ue&&ze<=fn)return null;var Wn=[],Fn={rootPrefixCls:te,onClick:ki,onKeyPress:pn,showTitle:Oe,itemRender:Ue,page:-1},jn=Tn-1>0?Tn-1:0,In=Tn+1<Sn?Tn+1:Sn,Ai=Ae&&Ae.goButton,ai=(0,Qt.Z)(Pt)==="object"?Pt.readOnly:!Pt,ci=Ai,rn=null;Pt&&(Ai&&(typeof Ai=="boolean"?ci=xt.createElement("button",{type:"button",onClick:An,onKeyUp:An},At.jump_to_confirm):ci=xt.createElement("span",{onClick:An,onKeyUp:An},Ai),ci=xt.createElement("li",{title:Oe?"".concat(At.jump_to).concat(Tn,"/").concat(Sn):null,className:"".concat(te,"-simple-pager")},ci)),rn=xt.createElement("li",{title:Oe?"".concat(Tn,"/").concat(Sn):null,className:"".concat(te,"-simple-pager")},ai?Zi:xt.createElement("input",{type:"text","aria-label":At.jump_to,value:Zi,disabled:It,onKeyDown:_n,onKeyUp:Yn,onChange:Yn,onBlur:Xn,size:3}),xt.createElement("span",{className:"".concat(te,"-slash")},"/"),Sn));var Ii=_e?1:2;if(Sn<=3+Ii*2){Sn||Wn.push(xt.createElement(ot,(0,wt.Z)({},Fn,{key:"noPager",page:1,className:"".concat(te,"-item-disabled")})));for(var Xi=1;Xi<=Sn;Xi+=1)Wn.push(xt.createElement(ot,(0,wt.Z)({},Fn,{key:Xi,page:Xi,active:Tn===Xi})))}else{var vr=_e?At.prev_3:At.prev_5,an=_e?At.next_3:At.next_5,Dn=Ue(Pi,"jump-prev",Kt(We,"prev page")),ei=Ue(Gi,"jump-next",Kt(Ee,"next page"));Qe&&(Nn=Dn?xt.createElement("li",{title:Oe?vr:null,key:"prev",onClick:Jn,tabIndex:0,onKeyDown:Ti,className:Ct()("".concat(te,"-jump-prev"),(0,ee.Z)({},"".concat(te,"-jump-prev-custom-icon"),!!We))},Dn):null,xn=ei?xt.createElement("li",{title:Oe?an:null,key:"next",onClick:qn,tabIndex:0,onKeyDown:Di,className:Ct()("".concat(te,"-jump-next"),(0,ee.Z)({},"".concat(te,"-jump-next-custom-icon"),!!Ee))},ei):null);var Qn=Math.max(1,Tn-Ii),ri=Math.min(Tn+Ii,Sn);Tn-1<=Ii&&(ri=1+Ii*2),Sn-Tn<=Ii&&(Qn=Sn-Ii*2);for(var Ci=Qn;Ci<=ri;Ci+=1)Wn.push(xt.createElement(ot,(0,wt.Z)({},Fn,{key:Ci,page:Ci,active:Tn===Ci})));if(Tn-1>=Ii*2&&Tn!==3&&(Wn[0]=xt.cloneElement(Wn[0],{className:Ct()("".concat(te,"-item-after-jump-prev"),Wn[0].props.className)}),Wn.unshift(Nn)),Sn-Tn>=Ii*2&&Tn!==Sn-2){var Fi=Wn[Wn.length-1];Wn[Wn.length-1]=xt.cloneElement(Fi,{className:Ct()("".concat(te,"-item-before-jump-next"),Fi.props.className)}),Wn.push(xn)}Qn!==1&&Wn.unshift(xt.createElement(ot,(0,wt.Z)({},Fn,{key:1,page:1}))),ri!==Sn&&Wn.push(xt.createElement(ot,(0,wt.Z)({},Fn,{key:Sn,page:Sn})))}var Ui=we(jn);if(Ui){var Qi=!Xe||!Sn;Ui=xt.createElement("li",{title:Oe?At.prev_page:null,onClick:Ke,tabIndex:Qi?null:0,onKeyDown:Bn,className:Ct()("".concat(te,"-prev"),(0,ee.Z)({},"".concat(te,"-disabled"),Qi)),"aria-disabled":Qi},Ui)}var sr=je(In);if(sr){var cn,gr;Pt?(cn=!Je,gr=Xe?0:null):(cn=!Je||!Sn,gr=cn?null:0),sr=xt.createElement("li",{title:Oe?At.next_page:null,onClick:Hn,tabIndex:gr,onKeyDown:hi,className:Ct()("".concat(te,"-next"),(0,ee.Z)({},"".concat(te,"-disabled"),cn)),"aria-disabled":cn},sr)}var hn=Ct()(te,ge,(0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(te,"-start"),Re==="start"),"".concat(te,"-center"),Re==="center"),"".concat(te,"-end"),Re==="end"),"".concat(te,"-simple"),Pt),"".concat(te,"-disabled"),It));return xt.createElement("ul",(0,wt.Z)({className:hn,style:Yt,ref:nn},tn),yn,Ui,Pt?rn:Wn,sr,xt.createElement(tt,{locale:At,rootPrefixCls:te,disabled:It,selectPrefixCls:de,changeSize:Ri,pageSize:fn,pageSizeOptions:le,quickGo:bn?ki:null,goButton:ci,showSizeChanger:zt,sizeChangerRender:Gt}))},Rt=Lt},25930:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Cd:function(){return te}});var ee=ce(14809),wt=ce(20439),Qt=ce(62646),Zt=ce(59301),Ot=ce(92310),jt=ce.n(Ot),Ct={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Mt=function(){var ge=(0,Zt.useRef)([]),be=(0,Zt.useRef)(null);return(0,Zt.useEffect)(function(){var Ne=Date.now(),Ge=!1;ge.current.forEach(function(Pe){if(Pe){Ge=!0;var ze=Pe.style;ze.transitionDuration=".3s, .3s, .3s, .06s",be.current&&Ne-be.current<100&&(ze.transitionDuration="0s, 0s")}}),Ge&&(be.current=Date.now())}),ge.current},Bt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],St=function(ge){var be=(0,wt.Z)((0,wt.Z)({},Ct),ge),Ne=be.className,Ge=be.percent,Pe=be.prefixCls,ze=be.strokeColor,he=be.strokeLinecap,Jt=be.strokeWidth,re=be.style,se=be.trailColor,pe=be.trailWidth,ue=be.transition,Re=(0,Qt.Z)(be,Bt);delete Re.gapPosition;var Fe=Array.isArray(Ge)?Ge:[Ge],Qe=Array.isArray(ze)?ze:[ze],Ae=Mt(),_e=Jt/2,Le=100-Jt/2,Oe="M ".concat(he==="round"?_e:0,",").concat(_e,`
|
|
L `).concat(he==="round"?Le:100,",").concat(_e),He="0 0 100 ".concat(Jt),ie=0;return Zt.createElement("svg",(0,ee.Z)({className:jt()("".concat(Pe,"-line"),Ne),viewBox:He,preserveAspectRatio:"none",style:re},Re),Zt.createElement("path",{className:"".concat(Pe,"-line-trail"),d:Oe,strokeLinecap:he,stroke:se,strokeWidth:pe||Jt,fillOpacity:"0"}),Fe.map(function(Tt,At){var Yt=1;switch(he){case"round":Yt=1-Jt/100;break;case"square":Yt=1-Jt/2/100;break;default:Yt=1;break}var oe={strokeDasharray:"".concat(Tt*Yt,"px, 100px"),strokeDashoffset:"-".concat(ie,"px"),transition:ue||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_t=Qe[At]||Qe[Qe.length-1];return ie+=Tt,Zt.createElement("path",{key:At,className:"".concat(Pe,"-line-path"),d:Oe,strokeLinecap:he,stroke:_t,strokeWidth:Jt,fillOpacity:"0",ref:function(Pt){Ae[At]=Pt},style:oe})}))},kt=St,xt=ce(93664),Dt=ce(50298),yt=ce(47273),et=0,tt=(0,yt.Z)();function lt(){var de;return tt?(de=et,et+=1):de="TEST_OR_SSR",de}var ot=function(de){var ge=Zt.useState(),be=(0,Dt.Z)(ge,2),Ne=be[0],Ge=be[1];return Zt.useEffect(function(){Ge("rc_progress_".concat(lt()))},[]),de||Ne},ut=function(ge){var be=ge.bg,Ne=ge.children;return Zt.createElement("div",{style:{width:"100%",height:"100%",background:be}},Ne)};function ct(de,ge){return Object.keys(de).map(function(be){var Ne=parseFloat(be),Ge="".concat(Math.floor(Ne*ge),"%");return"".concat(de[be]," ").concat(Ge)})}var ft=Zt.forwardRef(function(de,ge){var be=de.prefixCls,Ne=de.color,Ge=de.gradientId,Pe=de.radius,ze=de.style,he=de.ptg,Jt=de.strokeLinecap,re=de.strokeWidth,se=de.size,pe=de.gapDegree,ue=Ne&&(0,xt.Z)(Ne)==="object",Re=ue?"#FFF":void 0,Fe=se/2,Qe=Zt.createElement("circle",{className:"".concat(be,"-circle-path"),r:Pe,cx:Fe,cy:Fe,stroke:Re,strokeLinecap:Jt,strokeWidth:re,opacity:he===0?0:1,style:ze,ref:ge});if(!ue)return Qe;var Ae="".concat(Ge,"-conic"),_e=pe?"".concat(180+pe/2,"deg"):"0deg",Le=ct(Ne,(360-pe)/360),Oe=ct(Ne,1),He="conic-gradient(from ".concat(_e,", ").concat(Le.join(", "),")"),ie="linear-gradient(to ".concat(pe?"bottom":"top",", ").concat(Oe.join(", "),")");return Zt.createElement(Zt.Fragment,null,Zt.createElement("mask",{id:Ae},Qe),Zt.createElement("foreignObject",{x:0,y:0,width:se,height:se,mask:"url(#".concat(Ae,")")},Zt.createElement(ut,{bg:ie},Zt.createElement(ut,{bg:He}))))}),gt=ft,Lt=100,Rt=function(ge,be,Ne,Ge,Pe,ze,he,Jt,re,se){var pe=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ue=Ne/100*360*((360-ze)/360),Re=ze===0?0:{bottom:0,top:180,left:90,right:-90}[he],Fe=(100-Ge)/100*be;re==="round"&&Ge!==100&&(Fe+=se/2,Fe>=be&&(Fe=be-.01));var Qe=Lt/2;return{stroke:typeof Jt=="string"?Jt:void 0,strokeDasharray:"".concat(be,"px ").concat(ge),strokeDashoffset:Fe+pe,transform:"rotate(".concat(Pe+ue+Re,"deg)"),transformOrigin:"".concat(Qe,"px ").concat(Qe,"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}},Ut=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Nt(de){var ge=de!=null?de:[];return Array.isArray(ge)?ge:[ge]}var qt=function(ge){var be=(0,wt.Z)((0,wt.Z)({},Ct),ge),Ne=be.id,Ge=be.prefixCls,Pe=be.steps,ze=be.strokeWidth,he=be.trailWidth,Jt=be.gapDegree,re=Jt===void 0?0:Jt,se=be.gapPosition,pe=be.trailColor,ue=be.strokeLinecap,Re=be.style,Fe=be.className,Qe=be.strokeColor,Ae=be.percent,_e=(0,Qt.Z)(be,Ut),Le=Lt/2,Oe=ot(Ne),He="".concat(Oe,"-gradient"),ie=Le-ze/2,Tt=Math.PI*2*ie,At=re>0?90+re/2:-90,Yt=Tt*((360-re)/360),oe=(0,xt.Z)(Pe)==="object"?Pe:{count:Pe,gap:2},_t=oe.count,It=oe.gap,Pt=Nt(Ae),Et=Nt(Qe),$t=Et.find(function(Ee){return Ee&&(0,xt.Z)(Ee)==="object"}),zt=$t&&(0,xt.Z)($t)==="object",Gt=zt?"butt":ue,le=Rt(Tt,Yt,0,100,At,re,se,pe,Gt,ze),ye=Mt(),Ue=function(){var Ze=0;return Pt.map(function(on,nn){var qe=Et[nn]||Et[Et.length-1],En=Rt(Tt,Yt,Ze,on,At,re,se,qe,Gt,ze);return Ze+=on,Zt.createElement(gt,{key:nn,color:qe,ptg:on,radius:ie,prefixCls:Ge,gradientId:He,style:En,strokeLinecap:Gt,strokeWidth:ze,gapDegree:re,ref:function(Pn){ye[nn]=Pn},size:Lt})}).reverse()},We=function(){var Ze=Math.round(_t*(Pt[0]/100)),on=100/_t,nn=0;return new Array(_t).fill(null).map(function(qe,En){var fn=En<=Ze-1?Et[0]:pe,Pn=fn&&(0,xt.Z)(fn)==="object"?"url(#".concat(He,")"):void 0,Mn=Rt(Tt,Yt,nn,on,At,re,se,fn,"butt",ze,It);return nn+=(Yt-Mn.strokeDashoffset+It)*100/Yt,Zt.createElement("circle",{key:En,className:"".concat(Ge,"-circle-path"),r:ie,cx:Le,cy:Le,stroke:Pn,strokeWidth:ze,opacity:1,style:Mn,ref:function(Tn){ye[En]=Tn}})})};return Zt.createElement("svg",(0,ee.Z)({className:jt()("".concat(Ge,"-circle"),Fe),viewBox:"0 0 ".concat(Lt," ").concat(Lt),style:Re,id:Ne,role:"presentation"},_e),!_t&&Zt.createElement("circle",{className:"".concat(Ge,"-circle-trail"),r:ie,cx:Le,cy:Le,stroke:pe,strokeLinecap:Gt,strokeWidth:he||ze,style:le}),_t?We():Ue())},te=qt,Vt={Line:kt,Circle:te}},738:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return ct}});var ee=ce(14809),wt=ce(4635),Qt=ce(50298),Zt=ce(62646),Ot=ce(92310),jt=ce.n(Ot),Ct=ce(18929),Mt=ce(10228),Bt=ce(26112),St=ce(59301);function kt(ft,gt){var Lt=ft.disabled,Rt=ft.prefixCls,Ut=ft.character,Nt=ft.characterRender,qt=ft.index,te=ft.count,Vt=ft.value,de=ft.allowHalf,ge=ft.focused,be=ft.onHover,Ne=ft.onClick,Ge=function(ue){be(ue,qt)},Pe=function(ue){Ne(ue,qt)},ze=function(ue){ue.keyCode===Mt.Z.ENTER&&Ne(ue,qt)},he=qt+1,Jt=new Set([Rt]);Vt===0&&qt===0&&ge?Jt.add("".concat(Rt,"-focused")):de&&Vt+.5>=he&&Vt<he?(Jt.add("".concat(Rt,"-half")),Jt.add("".concat(Rt,"-active")),ge&&Jt.add("".concat(Rt,"-focused"))):(he<=Vt?Jt.add("".concat(Rt,"-full")):Jt.add("".concat(Rt,"-zero")),he===Vt&&ge&&Jt.add("".concat(Rt,"-focused")));var re=typeof Ut=="function"?Ut(ft):Ut,se=St.createElement("li",{className:jt()(Array.from(Jt)),ref:gt},St.createElement("div",{onClick:Lt?null:Pe,onKeyDown:Lt?null:ze,onMouseMove:Lt?null:Ge,role:"radio","aria-checked":Vt>qt?"true":"false","aria-posinset":qt+1,"aria-setsize":te,tabIndex:Lt?-1:0},St.createElement("div",{className:"".concat(Rt,"-first")},re),St.createElement("div",{className:"".concat(Rt,"-second")},re)));return Nt&&(se=Nt(se,ft)),se}var xt=St.forwardRef(kt);function Dt(){var ft=St.useRef({});function gt(Rt){return ft.current[Rt]}function Lt(Rt){return function(Ut){ft.current[Rt]=Ut}}return[gt,Lt]}function yt(ft){var gt=ft.pageXOffset,Lt="scrollLeft";if(typeof gt!="number"){var Rt=ft.document;gt=Rt.documentElement[Lt],typeof gt!="number"&&(gt=Rt.body[Lt])}return gt}function et(ft){var gt,Lt,Rt=ft.ownerDocument,Ut=Rt.body,Nt=Rt&&Rt.documentElement,qt=ft.getBoundingClientRect();return gt=qt.left,Lt=qt.top,gt-=Nt.clientLeft||Ut.clientLeft||0,Lt-=Nt.clientTop||Ut.clientTop||0,{left:gt,top:Lt}}function tt(ft){var gt=et(ft),Lt=ft.ownerDocument,Rt=Lt.defaultView||Lt.parentWindow;return gt.left+=yt(Rt),gt.left}var lt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ot(ft,gt){var Lt=ft.prefixCls,Rt=Lt===void 0?"rc-rate":Lt,Ut=ft.className,Nt=ft.defaultValue,qt=ft.value,te=ft.count,Vt=te===void 0?5:te,de=ft.allowHalf,ge=de===void 0?!1:de,be=ft.allowClear,Ne=be===void 0?!0:be,Ge=ft.keyboard,Pe=Ge===void 0?!0:Ge,ze=ft.character,he=ze===void 0?"\u2605":ze,Jt=ft.characterRender,re=ft.disabled,se=ft.direction,pe=se===void 0?"ltr":se,ue=ft.tabIndex,Re=ue===void 0?0:ue,Fe=ft.autoFocus,Qe=ft.onHoverChange,Ae=ft.onChange,_e=ft.onFocus,Le=ft.onBlur,Oe=ft.onKeyDown,He=ft.onMouseLeave,ie=(0,Zt.Z)(ft,lt),Tt=Dt(),At=(0,Qt.Z)(Tt,2),Yt=At[0],oe=At[1],_t=St.useRef(null),It=function(){if(!re){var Pi;(Pi=_t.current)===null||Pi===void 0||Pi.focus()}};St.useImperativeHandle(gt,function(){return{focus:It,blur:function(){if(!re){var Pi;(Pi=_t.current)===null||Pi===void 0||Pi.blur()}}}});var Pt=(0,Ct.Z)(Nt||0,{value:qt}),Et=(0,Qt.Z)(Pt,2),$t=Et[0],zt=Et[1],Gt=(0,Ct.Z)(null),le=(0,Qt.Z)(Gt,2),ye=le[0],Ue=le[1],We=function(Pi,Gi){var Kt=pe==="rtl",zn=Pi+1;if(ge){var Rn=Yt(Pi),bn=tt(Rn),_n=Rn.clientWidth;(Kt&&Gi-bn>_n/2||!Kt&&Gi-bn<_n/2)&&(zn-=.5)}return zn},Ee=function(Pi){zt(Pi),Ae==null||Ae(Pi)},Ze=St.useState(!1),on=(0,Qt.Z)(Ze,2),nn=on[0],qe=on[1],En=function(){qe(!0),_e==null||_e()},fn=function(){qe(!1),Le==null||Le()},Pn=St.useState(null),Mn=(0,Qt.Z)(Pn,2),ii=Mn[0],Tn=Mn[1],oi=function(Pi,Gi){var Kt=We(Gi,Pi.pageX);Kt!==ye&&(Tn(Kt),Ue(null)),Qe==null||Qe(Kt)},vi=function(Pi){re||(Tn(null),Ue(null),Qe==null||Qe(void 0)),Pi&&(He==null||He(Pi))},yi=function(Pi,Gi){var Kt=We(Gi,Pi.pageX),zn=!1;Ne&&(zn=Kt===$t),vi(),Ee(zn?0:Kt),Ue(zn?Kt:null)},Zi=function(Pi){var Gi=Pi.keyCode,Kt=pe==="rtl",zn=ge?.5:1;Pe&&(Gi===Mt.Z.RIGHT&&$t<Vt&&!Kt?(Ee($t+zn),Pi.preventDefault()):Gi===Mt.Z.LEFT&&$t>0&&!Kt||Gi===Mt.Z.RIGHT&&$t>0&&Kt?(Ee($t-zn),Pi.preventDefault()):Gi===Mt.Z.LEFT&&$t<Vt&&Kt&&(Ee($t+zn),Pi.preventDefault())),Oe==null||Oe(Pi)};St.useEffect(function(){Fe&&!re&&It()},[]);var Hi=new Array(Vt).fill(0).map(function(zi,Pi){return St.createElement(xt,{ref:oe(Pi),index:Pi,count:Vt,disabled:re,prefixCls:"".concat(Rt,"-star"),allowHalf:ge,value:ii===null?$t:ii,onClick:yi,onHover:oi,key:zi||Pi,character:he,characterRender:Jt,focused:nn})}),Yi=jt()(Rt,Ut,(0,wt.Z)((0,wt.Z)({},"".concat(Rt,"-disabled"),re),"".concat(Rt,"-rtl"),pe==="rtl"));return St.createElement("ul",(0,ee.Z)({className:Yi,onMouseLeave:vi,tabIndex:re?-1:Re,onFocus:re?null:En,onBlur:re?null:fn,onKeyDown:re?null:Zi,ref:_t},(0,Bt.Z)(ie,{aria:!0,data:!0,attr:!0})),Hi)}var ut=St.forwardRef(ot),ct=ut},6551:function(Cn,Gn,ce){"use strict";ce.d(Gn,{ZP:function(){return Ct}});var ee=ce(50298),wt=ce(59301),Qt=ce(47273),Zt=0,Ot=(0,Qt.Z)();function jt(){var Mt;return Ot?(Mt=Zt,Zt+=1):Mt="TEST_OR_SSR",Mt}function Ct(Mt){var Bt=wt.useState(),St=(0,ee.Z)(Bt,2),kt=St[0],xt=St[1];return wt.useEffect(function(){xt("rc_select_".concat(jt()))},[]),Mt||kt}},37463:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Ac:function(){return qe},Xo:function(){return fn},Wx:function(){return Mn},ZP:function(){return Di},lk:function(){return ct}});var ee=ce(14809),wt=ce(95190),Qt=ce(4635),Zt=ce(20439),Ot=ce(50298),jt=ce(62646),Ct=ce(93664),Mt=ce(18929),Bt=ce(48736),St=ce(59301),kt=ce(92310),xt=ce.n(kt),Dt=ce(34280),yt=ce(49658),et=ce(8654),tt=function(je){var An=je.className,Nn=je.customizeIcon,tn=je.customizeIconProps,yn=je.children,xn=je.onMouseDown,Sn=je.onClick,Wn=typeof Nn=="function"?Nn(tn):Nn;return St.createElement("span",{className:An,onMouseDown:function(jn){jn.preventDefault(),xn==null||xn(jn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Sn,"aria-hidden":!0},Wn!==void 0?Wn:St.createElement("span",{className:xt()(An.split(/\s+/).map(function(Fn){return"".concat(Fn,"-icon")}))},yn))},lt=tt,ot=function(je,An,Nn,tn,yn){var xn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Sn=arguments.length>6?arguments[6]:void 0,Wn=arguments.length>7?arguments[7]:void 0,Fn=St.useMemo(function(){if((0,Ct.Z)(tn)==="object")return tn.clearIcon;if(yn)return yn},[tn,yn]),jn=St.useMemo(function(){return!!(!xn&&tn&&(Nn.length||Sn)&&!(Wn==="combobox"&&Sn===""))},[tn,xn,Nn.length,Sn,Wn]);return{allowClear:jn,clearIcon:St.createElement(lt,{className:"".concat(je,"-clear"),onMouseDown:An,customizeIcon:Fn},"\xD7")}},ut=St.createContext(null);function ct(){return St.useContext(ut)}function ft(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,je=St.useState(!1),An=(0,Ot.Z)(je,2),Nn=An[0],tn=An[1],yn=St.useRef(null),xn=function(){window.clearTimeout(yn.current)};St.useEffect(function(){return xn},[]);var Sn=function(Fn,jn){xn(),yn.current=window.setTimeout(function(){tn(Fn),jn&&jn()},we)};return[Nn,Sn,xn]}function gt(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,je=St.useRef(null),An=St.useRef(null);St.useEffect(function(){return function(){window.clearTimeout(An.current)}},[]);function Nn(tn){(tn||je.current===null)&&(je.current=tn),window.clearTimeout(An.current),An.current=window.setTimeout(function(){je.current=null},we)}return[function(){return je.current},Nn]}function Lt(we,je,An,Nn){var tn=St.useRef(null);tn.current={open:je,triggerOpen:An,customizedTrigger:Nn},St.useEffect(function(){function yn(xn){var Sn;if(!((Sn=tn.current)!==null&&Sn!==void 0&&Sn.customizedTrigger)){var Wn=xn.target;Wn.shadowRoot&&xn.composed&&(Wn=xn.composedPath()[0]||Wn),tn.current.open&&we().filter(function(Fn){return Fn}).every(function(Fn){return!Fn.contains(Wn)&&Fn!==Wn})&&tn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",yn),function(){return window.removeEventListener("mousedown",yn)}},[])}var Rt=ce(10228);function Ut(we){return we&&![Rt.Z.ESC,Rt.Z.SHIFT,Rt.Z.BACKSPACE,Rt.Z.TAB,Rt.Z.WIN_KEY,Rt.Z.ALT,Rt.Z.META,Rt.Z.WIN_KEY_RIGHT,Rt.Z.CTRL,Rt.Z.SEMICOLON,Rt.Z.EQUALS,Rt.Z.CAPS_LOCK,Rt.Z.CONTEXT_MENU,Rt.Z.F1,Rt.Z.F2,Rt.Z.F3,Rt.Z.F4,Rt.Z.F5,Rt.Z.F6,Rt.Z.F7,Rt.Z.F8,Rt.Z.F9,Rt.Z.F10,Rt.Z.F11,Rt.Z.F12].includes(we)}var Nt=ce(26112),qt=ce(11780);function te(we,je,An){var Nn=(0,Zt.Z)((0,Zt.Z)({},we),An?je:{});return Object.keys(je).forEach(function(tn){var yn=je[tn];typeof yn=="function"&&(Nn[tn]=function(){for(var xn,Sn=arguments.length,Wn=new Array(Sn),Fn=0;Fn<Sn;Fn++)Wn[Fn]=arguments[Fn];return yn.apply(void 0,Wn),(xn=we[tn])===null||xn===void 0?void 0:xn.call.apply(xn,[we].concat(Wn))})}),Nn}var Vt=te,de=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ge=function(je,An){var Nn=je.prefixCls,tn=je.id,yn=je.inputElement,xn=je.autoFocus,Sn=je.autoComplete,Wn=je.editable,Fn=je.activeDescendantId,jn=je.value,In=je.open,Ai=je.attrs,ai=(0,jt.Z)(je,de),ci=yn||St.createElement("input",null),rn=ci,Ii=rn.ref,Xi=rn.props;return(0,Bt.Kp)(!("maxLength"in ci.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ci=St.cloneElement(ci,(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({type:"search"},Vt(ai,Xi,!0)),{},{id:tn,ref:(0,et.sQ)(An,Ii),autoComplete:Sn||"off",autoFocus:xn,className:xt()("".concat(Nn,"-selection-search-input"),Xi==null?void 0:Xi.className),role:"combobox","aria-expanded":In||!1,"aria-haspopup":"listbox","aria-owns":"".concat(tn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(tn,"_list"),"aria-activedescendant":In?Fn:void 0},Ai),{},{value:Wn?jn:"",readOnly:!Wn,unselectable:Wn?null:"on",style:(0,Zt.Z)((0,Zt.Z)({},Xi.style),{},{opacity:Wn?null:0})})),ci},be=St.forwardRef(ge),Ne=be;function Ge(we){return Array.isArray(we)?we:we!==void 0?[we]:[]}var Pe=typeof window!="undefined"&&window.document&&window.document.documentElement,ze=Pe;function he(we){return we!=null}function Jt(we){return!we&&we!==0}function re(we){return["string","number"].includes((0,Ct.Z)(we))}function se(we){var je=void 0;return we&&(re(we.title)?je=we.title.toString():re(we.label)&&(je=we.label.toString())),je}function pe(we,je){ze?St.useLayoutEffect(we,je):St.useEffect(we,je)}function ue(we){var je;return(je=we.key)!==null&&je!==void 0?je:we.value}var Re=function(je){je.preventDefault(),je.stopPropagation()},Fe=function(je){var An=je.id,Nn=je.prefixCls,tn=je.values,yn=je.open,xn=je.searchValue,Sn=je.autoClearSearchValue,Wn=je.inputRef,Fn=je.placeholder,jn=je.disabled,In=je.mode,Ai=je.showSearch,ai=je.autoFocus,ci=je.autoComplete,rn=je.activeDescendantId,Ii=je.tabIndex,Xi=je.removeIcon,vr=je.maxTagCount,an=je.maxTagTextLength,Dn=je.maxTagPlaceholder,ei=Dn===void 0?function(er){return"+ ".concat(er.length," ...")}:Dn,Qn=je.tagRender,ri=je.onToggleOpen,Ci=je.onRemove,Fi=je.onInputChange,Ui=je.onInputPaste,Qi=je.onInputKeyDown,sr=je.onInputMouseDown,cn=je.onInputCompositionStart,gr=je.onInputCompositionEnd,hn=je.onInputBlur,di=St.useRef(null),tr=(0,St.useState)(0),Wi=(0,Ot.Z)(tr,2),fr=Wi[0],rr=Wi[1],_i=(0,St.useState)(!1),Cr=(0,Ot.Z)(_i,2),Mo=Cr[0],Rr=Cr[1],ti="".concat(Nn,"-selection"),xe=yn||In==="multiple"&&Sn===!1||In==="tags"?xn:"",Gr=In==="tags"||In==="multiple"&&Sn===!1||Ai&&(yn||Mo);pe(function(){rr(di.current.scrollWidth)},[xe]);var To=function(gi,Ji,Mr,bi,li){return St.createElement("span",{title:se(gi),className:xt()("".concat(ti,"-item"),(0,Qt.Z)({},"".concat(ti,"-item-disabled"),Mr))},St.createElement("span",{className:"".concat(ti,"-item-content")},Ji),bi&&St.createElement(lt,{className:"".concat(ti,"-item-remove"),onMouseDown:Re,onClick:li,customizeIcon:Xi},"\xD7"))},is=function(gi,Ji,Mr,bi,li,wn){var Ei=function(Ur){Re(Ur),ri(!yn)};return St.createElement("span",{onMouseDown:Ei},Qn({label:Ji,value:gi,disabled:Mr,closable:bi,onClose:li,isMaxTag:!!wn}))},vo=function(gi){var Ji=gi.disabled,Mr=gi.label,bi=gi.value,li=!jn&&!Ji,wn=Mr;if(typeof an=="number"&&(typeof Mr=="string"||typeof Mr=="number")){var Ei=String(wn);Ei.length>an&&(wn="".concat(Ei.slice(0,an),"..."))}var pr=function(Er){Er&&Er.stopPropagation(),Ci(gi)};return typeof Qn=="function"?is(bi,wn,Ji,li,pr):To(gi,wn,Ji,li,pr)},xr=function(gi){if(!tn.length)return null;var Ji=typeof ei=="function"?ei(gi):ei;return typeof Qn=="function"?is(void 0,Ji,!1,!1,void 0,!0):To({title:Ji},Ji,!1)},ui=St.createElement("div",{className:"".concat(ti,"-search"),style:{width:fr},onFocus:function(){Rr(!0)},onBlur:function(){Rr(!1)}},St.createElement(Ne,{ref:Wn,open:yn,prefixCls:Nn,id:An,inputElement:null,disabled:jn,autoFocus:ai,autoComplete:ci,editable:Gr,activeDescendantId:rn,value:xe,onKeyDown:Qi,onMouseDown:sr,onChange:Fi,onPaste:Ui,onCompositionStart:cn,onCompositionEnd:gr,onBlur:hn,tabIndex:Ii,attrs:(0,Nt.Z)(je,!0)}),St.createElement("span",{ref:di,className:"".concat(ti,"-search-mirror"),"aria-hidden":!0},xe,"\xA0")),Si=St.createElement(qt.Z,{prefixCls:"".concat(ti,"-overflow"),data:tn,renderItem:vo,renderRest:xr,suffix:ui,itemKey:ue,maxCount:vr});return St.createElement("span",{className:"".concat(ti,"-wrap")},Si,!tn.length&&!xe&&St.createElement("span",{className:"".concat(ti,"-placeholder")},Fn))},Qe=Fe,Ae=function(je){var An=je.inputElement,Nn=je.prefixCls,tn=je.id,yn=je.inputRef,xn=je.disabled,Sn=je.autoFocus,Wn=je.autoComplete,Fn=je.activeDescendantId,jn=je.mode,In=je.open,Ai=je.values,ai=je.placeholder,ci=je.tabIndex,rn=je.showSearch,Ii=je.searchValue,Xi=je.activeValue,vr=je.maxLength,an=je.onInputKeyDown,Dn=je.onInputMouseDown,ei=je.onInputChange,Qn=je.onInputPaste,ri=je.onInputCompositionStart,Ci=je.onInputCompositionEnd,Fi=je.onInputBlur,Ui=je.title,Qi=St.useState(!1),sr=(0,Ot.Z)(Qi,2),cn=sr[0],gr=sr[1],hn=jn==="combobox",di=hn||rn,tr=Ai[0],Wi=Ii||"";hn&&Xi&&!cn&&(Wi=Xi),St.useEffect(function(){hn&&gr(!1)},[hn,Xi]);var fr=jn!=="combobox"&&!In&&!rn?!1:!!Wi,rr=Ui===void 0?se(tr):Ui,_i=St.useMemo(function(){return tr?null:St.createElement("span",{className:"".concat(Nn,"-selection-placeholder"),style:fr?{visibility:"hidden"}:void 0},ai)},[tr,fr,ai,Nn]);return St.createElement("span",{className:"".concat(Nn,"-selection-wrap")},St.createElement("span",{className:"".concat(Nn,"-selection-search")},St.createElement(Ne,{ref:yn,prefixCls:Nn,id:tn,open:In,inputElement:An,disabled:xn,autoFocus:Sn,autoComplete:Wn,editable:di,activeDescendantId:Fn,value:Wi,onKeyDown:an,onMouseDown:Dn,onChange:function(Mo){gr(!0),ei(Mo)},onPaste:Qn,onCompositionStart:ri,onCompositionEnd:Ci,onBlur:Fi,tabIndex:ci,attrs:(0,Nt.Z)(je,!0),maxLength:hn?vr:void 0})),!hn&&tr?St.createElement("span",{className:"".concat(Nn,"-selection-item"),title:rr,style:fr?{visibility:"hidden"}:void 0},tr.label):null,_i)},_e=Ae,Le=function(je,An){var Nn=(0,St.useRef)(null),tn=(0,St.useRef)(!1),yn=je.prefixCls,xn=je.open,Sn=je.mode,Wn=je.showSearch,Fn=je.tokenWithEnter,jn=je.disabled,In=je.prefix,Ai=je.autoClearSearchValue,ai=je.onSearch,ci=je.onSearchSubmit,rn=je.onToggleOpen,Ii=je.onInputKeyDown,Xi=je.onInputBlur,vr=je.domRef;St.useImperativeHandle(An,function(){return{focus:function(rr){Nn.current.focus(rr)},blur:function(){Nn.current.blur()}}});var an=gt(0),Dn=(0,Ot.Z)(an,2),ei=Dn[0],Qn=Dn[1],ri=function(rr){var _i=rr.which,Cr=Nn.current instanceof HTMLTextAreaElement;!Cr&&xn&&(_i===Rt.Z.UP||_i===Rt.Z.DOWN)&&rr.preventDefault(),Ii&&Ii(rr),_i===Rt.Z.ENTER&&Sn==="tags"&&!tn.current&&!xn&&(ci==null||ci(rr.target.value)),!(Cr&&!xn&&~[Rt.Z.UP,Rt.Z.DOWN,Rt.Z.LEFT,Rt.Z.RIGHT].indexOf(_i))&&Ut(_i)&&rn(!0)},Ci=function(){Qn(!0)},Fi=(0,St.useRef)(null),Ui=function(rr){ai(rr,!0,tn.current)!==!1&&rn(!0)},Qi=function(){tn.current=!0},sr=function(rr){tn.current=!1,Sn!=="combobox"&&Ui(rr.target.value)},cn=function(rr){var _i=rr.target.value;if(Fn&&Fi.current&&/[\r\n]/.test(Fi.current)){var Cr=Fi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_i=_i.replace(Cr,Fi.current)}Fi.current=null,Ui(_i)},gr=function(rr){var _i=rr.clipboardData,Cr=_i==null?void 0:_i.getData("text");Fi.current=Cr||""},hn=function(rr){var _i=rr.target;if(_i!==Nn.current){var Cr=document.body.style.msTouchAction!==void 0;Cr?setTimeout(function(){Nn.current.focus()}):Nn.current.focus()}},di=function(rr){var _i=ei();rr.target!==Nn.current&&!_i&&!(Sn==="combobox"&&jn)&&rr.preventDefault(),(Sn!=="combobox"&&(!Wn||!_i)||!xn)&&(xn&&Ai!==!1&&ai("",!0,!1),rn())},tr={inputRef:Nn,onInputKeyDown:ri,onInputMouseDown:Ci,onInputChange:cn,onInputPaste:gr,onInputCompositionStart:Qi,onInputCompositionEnd:sr,onInputBlur:Xi},Wi=Sn==="multiple"||Sn==="tags"?St.createElement(Qe,(0,ee.Z)({},je,tr)):St.createElement(_e,(0,ee.Z)({},je,tr));return St.createElement("div",{ref:vr,className:"".concat(yn,"-selector"),onClick:hn,onMouseDown:di},In&&St.createElement("div",{className:"".concat(yn,"-prefix")},In),Wi)},Oe=St.forwardRef(Le),He=Oe,ie=ce(65352),Tt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],At=function(je){var An=je===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:An,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:An,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:An,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:An,adjustY:1},htmlRegion:"scroll"}}},Yt=function(je,An){var Nn=je.prefixCls,tn=je.disabled,yn=je.visible,xn=je.children,Sn=je.popupElement,Wn=je.animation,Fn=je.transitionName,jn=je.dropdownStyle,In=je.dropdownClassName,Ai=je.direction,ai=Ai===void 0?"ltr":Ai,ci=je.placement,rn=je.builtinPlacements,Ii=je.dropdownMatchSelectWidth,Xi=je.dropdownRender,vr=je.dropdownAlign,an=je.getPopupContainer,Dn=je.empty,ei=je.getTriggerDOMNode,Qn=je.onPopupVisibleChange,ri=je.onPopupMouseEnter,Ci=(0,jt.Z)(je,Tt),Fi="".concat(Nn,"-dropdown"),Ui=Sn;Xi&&(Ui=Xi(Sn));var Qi=St.useMemo(function(){return rn||At(Ii)},[rn,Ii]),sr=Wn?"".concat(Fi,"-").concat(Wn):Fn,cn=typeof Ii=="number",gr=St.useMemo(function(){return cn?null:Ii===!1?"minWidth":"width"},[Ii,cn]),hn=jn;cn&&(hn=(0,Zt.Z)((0,Zt.Z)({},hn),{},{width:Ii}));var di=St.useRef(null);return St.useImperativeHandle(An,function(){return{getPopupElement:function(){var Wi;return(Wi=di.current)===null||Wi===void 0?void 0:Wi.popupElement}}}),St.createElement(ie.Z,(0,ee.Z)({},Ci,{showAction:Qn?["click"]:[],hideAction:Qn?["click"]:[],popupPlacement:ci||(ai==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Qi,prefixCls:Fi,popupTransitionName:sr,popup:St.createElement("div",{onMouseEnter:ri},Ui),ref:di,stretch:gr,popupAlign:vr,popupVisible:yn,getPopupContainer:an,popupClassName:xt()(In,(0,Qt.Z)({},"".concat(Fi,"-empty"),Dn)),popupStyle:hn,getTriggerDOMNode:ei,onPopupVisibleChange:Qn}),xn)},oe=St.forwardRef(Yt),_t=oe,It=ce(21696);function Pt(we,je){var An=we.key,Nn;return"value"in we&&(Nn=we.value),An!=null?An:Nn!==void 0?Nn:"rc-index-key-".concat(je)}function Et(we){return typeof we!="undefined"&&!Number.isNaN(we)}function $t(we,je){var An=we||{},Nn=An.label,tn=An.value,yn=An.options,xn=An.groupLabel,Sn=Nn||(je?"children":"label");return{label:Sn,value:tn||"value",options:yn||"options",groupLabel:xn||Sn}}function zt(we){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},An=je.fieldNames,Nn=je.childrenAsData,tn=[],yn=$t(An,!1),xn=yn.label,Sn=yn.value,Wn=yn.options,Fn=yn.groupLabel;function jn(In,Ai){Array.isArray(In)&&In.forEach(function(ai){if(Ai||!(Wn in ai)){var ci=ai[Sn];tn.push({key:Pt(ai,tn.length),groupOption:Ai,data:ai,label:ai[xn],value:ci})}else{var rn=ai[Fn];rn===void 0&&Nn&&(rn=ai.label),tn.push({key:Pt(ai,tn.length),group:!0,data:ai,label:rn}),jn(ai[Wn],!0)}})}return jn(we,!1),tn}function Gt(we){var je=(0,Zt.Z)({},we);return"props"in je||Object.defineProperty(je,"props",{get:function(){return(0,Bt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),je}}),je}var le=function(je,An,Nn){if(!An||!An.length)return null;var tn=!1,yn=function Sn(Wn,Fn){var jn=(0,It.Z)(Fn),In=jn[0],Ai=jn.slice(1);if(!In)return[Wn];var ai=Wn.split(In);return tn=tn||ai.length>1,ai.reduce(function(ci,rn){return[].concat((0,wt.Z)(ci),(0,wt.Z)(Sn(rn,Ai)))},[]).filter(Boolean)},xn=yn(je,An);return tn?typeof Nn!="undefined"?xn.slice(0,Nn):xn:null},ye=St.createContext(null),Ue=ye;function We(we){var je=we.visible,An=we.values;if(!je)return null;var Nn=50;return St.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(An.slice(0,Nn).map(function(tn){var yn=tn.label,xn=tn.value;return["number","string"].includes((0,Ct.Z)(yn))?yn:xn}).join(", ")),An.length>Nn?", ...":null)}var Ee=["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"],Ze=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],on=function(je){return je==="tags"||je==="multiple"},nn=St.forwardRef(function(we,je){var An,Nn=we.id,tn=we.prefixCls,yn=we.className,xn=we.showSearch,Sn=we.tagRender,Wn=we.direction,Fn=we.omitDomProps,jn=we.displayValues,In=we.onDisplayValuesChange,Ai=we.emptyOptions,ai=we.notFoundContent,ci=ai===void 0?"Not Found":ai,rn=we.onClear,Ii=we.mode,Xi=we.disabled,vr=we.loading,an=we.getInputElement,Dn=we.getRawInputElement,ei=we.open,Qn=we.defaultOpen,ri=we.onDropdownVisibleChange,Ci=we.activeValue,Fi=we.onActiveValueChange,Ui=we.activeDescendantId,Qi=we.searchValue,sr=we.autoClearSearchValue,cn=we.onSearch,gr=we.onSearchSplit,hn=we.tokenSeparators,di=we.allowClear,tr=we.prefix,Wi=we.suffixIcon,fr=we.clearIcon,rr=we.OptionList,_i=we.animation,Cr=we.transitionName,Mo=we.dropdownStyle,Rr=we.dropdownClassName,ti=we.dropdownMatchSelectWidth,xe=we.dropdownRender,Gr=we.dropdownAlign,To=we.placement,is=we.builtinPlacements,vo=we.getPopupContainer,xr=we.showAction,ui=xr===void 0?[]:xr,Si=we.onFocus,er=we.onBlur,gi=we.onKeyUp,Ji=we.onKeyDown,Mr=we.onMouseDown,bi=(0,jt.Z)(we,Ee),li=on(Ii),wn=(xn!==void 0?xn:li)||Ii==="combobox",Ei=(0,Zt.Z)({},bi);Ze.forEach(function(_r){delete Ei[_r]}),Fn==null||Fn.forEach(function(_r){delete Ei[_r]});var pr=St.useState(!1),Ur=(0,Ot.Z)(pr,2),Er=Ur[0],Jr=Ur[1];St.useEffect(function(){Jr((0,yt.Z)())},[]);var yo=St.useRef(null),Qr=St.useRef(null),Ao=St.useRef(null),So=St.useRef(null),No=St.useRef(null),en=St.useRef(!1),Uo=ft(),Qa=(0,Ot.Z)(Uo,3),rs=Qa[0],Fs=Qa[1],ro=Qa[2];St.useImperativeHandle(je,function(){var _r,Fr;return{focus:(_r=So.current)===null||_r===void 0?void 0:_r.focus,blur:(Fr=So.current)===null||Fr===void 0?void 0:Fr.blur,scrollTo:function(pi){var Qo;return(Qo=No.current)===null||Qo===void 0?void 0:Qo.scrollTo(pi)},nativeElement:yo.current||Qr.current}});var ua=St.useMemo(function(){var _r;if(Ii!=="combobox")return Qi;var Fr=(_r=jn[0])===null||_r===void 0?void 0:_r.value;return typeof Fr=="string"||typeof Fr=="number"?String(Fr):""},[Qi,Ii,jn]),Wl=Ii==="combobox"&&typeof an=="function"&&an()||null,Tr=typeof Dn=="function"&&Dn(),Wo=(0,et.x1)(Qr,Tr==null||(An=Tr.props)===null||An===void 0?void 0:An.ref),Ll=St.useState(!1),gs=(0,Ot.Z)(Ll,2),uu=gs[0],wa=gs[1];(0,Dt.Z)(function(){wa(!0)},[]);var Bi=(0,Mt.Z)(!1,{defaultValue:Qn,value:ei}),Gl=(0,Ot.Z)(Bi,2),hu=Gl[0],ha=Gl[1],Xo=uu?hu:!1,Nu=!ci&&Ai;(Xi||Nu&&Xo&&Ii==="combobox")&&(Xo=!1);var ni=Nu?!1:Xo,Ki=St.useCallback(function(_r){var Fr=_r!==void 0?_r:!Xo;Xi||(ha(Fr),Xo!==Fr&&(ri==null||ri(Fr)))},[Xi,Xo,ha,ri]),ar=St.useMemo(function(){return(hn||[]).some(function(_r){return[`
|
|
`,`\r
|
|
`].includes(_r)})},[hn]),ur=St.useContext(Ue)||{},yr=ur.maxCount,Kr=ur.rawValues,Oi=function(Fr,Os,pi){if(!(li&&Et(yr)&&(Kr==null?void 0:Kr.size)>=yr)){var Qo=!0,Ie=Fr;Fi==null||Fi(null);var mn=le(Fr,hn,Et(yr)?yr-Kr.size:void 0),$a=pi?null:mn;return Ii!=="combobox"&&$a&&(Ie="",gr==null||gr($a),Ki(!1),Qo=!1),cn&&ua!==Ie&&cn(Ie,{source:Os?"typing":"effect"}),Qo}},Pa=function(Fr){!Fr||!Fr.trim()||cn(Fr,{source:"submit"})};St.useEffect(function(){!Xo&&!li&&Ii!=="combobox"&&Oi("",!1,!1)},[Xo]),St.useEffect(function(){hu&&Xi&&ha(!1),Xi&&!en.current&&Fs(!1)},[Xi]);var os=gt(),_o=(0,Ot.Z)(os,2),oo=_o[0],Js=_o[1],Ca=St.useRef(!1),Ds=function(Fr){var Os=oo(),pi=Fr.key,Qo=pi==="Enter";if(Qo&&(Ii!=="combobox"&&Fr.preventDefault(),Xo||Ki(!0)),Js(!!ua),pi==="Backspace"&&!Os&&li&&!ua&&jn.length){for(var Ie=(0,wt.Z)(jn),mn=null,$a=Ie.length-1;$a>=0;$a-=1){var _l=Ie[$a];if(!_l.disabled){Ie.splice($a,1),mn=_l;break}}mn&&In(Ie,{type:"remove",values:[mn]})}for(var ca=arguments.length,Qs=new Array(ca>1?ca-1:0),gl=1;gl<ca;gl++)Qs[gl-1]=arguments[gl];if(Xo&&(!Qo||!Ca.current)){var cu;Qo&&(Ca.current=!0),(cu=No.current)===null||cu===void 0||cu.onKeyDown.apply(cu,[Fr].concat(Qs))}Ji==null||Ji.apply(void 0,[Fr].concat(Qs))},ba=function(Fr){for(var Os=arguments.length,pi=new Array(Os>1?Os-1:0),Qo=1;Qo<Os;Qo++)pi[Qo-1]=arguments[Qo];if(Xo){var Ie;(Ie=No.current)===null||Ie===void 0||Ie.onKeyUp.apply(Ie,[Fr].concat(pi))}Fr.key==="Enter"&&(Ca.current=!1),gi==null||gi.apply(void 0,[Fr].concat(pi))},kl=function(Fr){var Os=jn.filter(function(pi){return pi!==Fr});In(Os,{type:"remove",values:[Fr]})},qa=function(){Ca.current=!1},Fu=St.useRef(!1),Zc=function(){Fs(!0),Xi||(Si&&!Fu.current&&Si.apply(void 0,arguments),ui.includes("focus")&&Ki(!0)),Fu.current=!0},ac=function(){en.current=!0,Fs(!1,function(){Fu.current=!1,en.current=!1,Ki(!1)}),!Xi&&(ua&&(Ii==="tags"?cn(ua,{source:"submit"}):Ii==="multiple"&&cn("",{source:"blur"})),er&&er.apply(void 0,arguments))},fl=[];St.useEffect(function(){return function(){fl.forEach(function(_r){return clearTimeout(_r)}),fl.splice(0,fl.length)}},[]);var Ul=function(Fr){var Os,pi=Fr.target,Qo=(Os=Ao.current)===null||Os===void 0?void 0:Os.getPopupElement();if(Qo&&Qo.contains(pi)){var Ie=setTimeout(function(){var ca=fl.indexOf(Ie);if(ca!==-1&&fl.splice(ca,1),ro(),!Er&&!Qo.contains(document.activeElement)){var Qs;(Qs=So.current)===null||Qs===void 0||Qs.focus()}});fl.push(Ie)}for(var mn=arguments.length,$a=new Array(mn>1?mn-1:0),_l=1;_l<mn;_l++)$a[_l-1]=arguments[_l];Mr==null||Mr.apply(void 0,[Fr].concat($a))},ja=St.useState({}),lc=(0,Ot.Z)(ja,2),uc=lc[1];function Xc(){uc({})}var Fo;Tr&&(Fo=function(Fr){Ki(Fr)}),Lt(function(){var _r;return[yo.current,(_r=Ao.current)===null||_r===void 0?void 0:_r.getPopupElement()]},ni,Ki,!!Tr);var Ud=St.useMemo(function(){return(0,Zt.Z)((0,Zt.Z)({},we),{},{notFoundContent:ci,open:Xo,triggerOpen:ni,id:Nn,showSearch:wn,multiple:li,toggleOpen:Ki})},[we,ci,ni,Xo,Nn,wn,li,Ki]),hc=!!Wi||vr,Du;hc&&(Du=St.createElement(lt,{className:xt()("".concat(tn,"-arrow"),(0,Qt.Z)({},"".concat(tn,"-arrow-loading"),vr)),customizeIcon:Wi,customizeIconProps:{loading:vr,searchValue:ua,open:Xo,focused:rs,showSearch:wn}}));var Bu=function(){var Fr;rn==null||rn(),(Fr=So.current)===null||Fr===void 0||Fr.focus(),In([],{type:"clear",values:jn}),Oi("",!1,!1)},ps=ot(tn,Bu,jn,di,fr,Xi,ua,Ii),Bs=ps.allowClear,Jo=ps.clearIcon,ss=St.createElement(rr,{ref:No}),cc=xt()(tn,yn,(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({},"".concat(tn,"-focused"),rs),"".concat(tn,"-multiple"),li),"".concat(tn,"-single"),!li),"".concat(tn,"-allow-clear"),di),"".concat(tn,"-show-arrow"),hc),"".concat(tn,"-disabled"),Xi),"".concat(tn,"-loading"),vr),"".concat(tn,"-open"),Xo),"".concat(tn,"-customize-input"),Wl),"".concat(tn,"-show-search"),wn)),Ou=St.createElement(_t,{ref:Ao,disabled:Xi,prefixCls:tn,visible:ni,popupElement:ss,animation:_i,transitionName:Cr,dropdownStyle:Mo,dropdownClassName:Rr,direction:Wn,dropdownMatchSelectWidth:ti,dropdownRender:xe,dropdownAlign:Gr,placement:To,builtinPlacements:is,getPopupContainer:vo,empty:Ai,getTriggerDOMNode:function(Fr){return Qr.current||Fr},onPopupVisibleChange:Fo,onPopupMouseEnter:Xc},Tr?St.cloneElement(Tr,{ref:Wo}):St.createElement(He,(0,ee.Z)({},we,{domRef:Qr,prefixCls:tn,inputElement:Wl,ref:So,id:Nn,prefix:tr,showSearch:wn,autoClearSearchValue:sr,mode:Ii,activeDescendantId:Ui,tagRender:Sn,values:jn,open:Xo,onToggleOpen:Ki,activeValue:Ci,searchValue:ua,onSearch:Oi,onSearchSubmit:Pa,onRemove:kl,tokenWithEnter:ar,onInputBlur:qa}))),co;return Tr?co=Ou:co=St.createElement("div",(0,ee.Z)({className:cc},Ei,{ref:yo,onMouseDown:Ul,onKeyDown:Ds,onKeyUp:ba,onFocus:Zc,onBlur:ac}),St.createElement(We,{visible:rs&&!Xo,values:jn}),Ou,Du,Bs&&Jo),St.createElement(ut.Provider,{value:Ud},co)}),qe=nn,En=function(){return null};En.isSelectOptGroup=!0;var fn=En,Pn=function(){return null};Pn.isSelectOption=!0;var Mn=Pn,ii=ce(80547),Tn=ce(2738),oi=ce(65283);function vi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yi=["disabled","title","children","style","className"];function Zi(we){return typeof we=="string"||typeof we=="number"}var Hi=function(je,An){var Nn=ct(),tn=Nn.prefixCls,yn=Nn.id,xn=Nn.open,Sn=Nn.multiple,Wn=Nn.mode,Fn=Nn.searchValue,jn=Nn.toggleOpen,In=Nn.notFoundContent,Ai=Nn.onPopupScroll,ai=St.useContext(Ue),ci=ai.maxCount,rn=ai.flattenOptions,Ii=ai.onActiveValue,Xi=ai.defaultActiveFirstOption,vr=ai.onSelect,an=ai.menuItemSelectedIcon,Dn=ai.rawValues,ei=ai.fieldNames,Qn=ai.virtual,ri=ai.direction,Ci=ai.listHeight,Fi=ai.listItemHeight,Ui=ai.optionRender,Qi="".concat(tn,"-item"),sr=(0,ii.Z)(function(){return rn},[xn,rn],function(xr,ui){return ui[0]&&xr[1]!==ui[1]}),cn=St.useRef(null),gr=St.useMemo(function(){return Sn&&Et(ci)&&(Dn==null?void 0:Dn.size)>=ci},[Sn,ci,Dn==null?void 0:Dn.size]),hn=function(ui){ui.preventDefault()},di=function(ui){var Si;(Si=cn.current)===null||Si===void 0||Si.scrollTo(typeof ui=="number"?{index:ui}:ui)},tr=St.useCallback(function(xr){return Wn==="combobox"?!1:Dn.has(xr)},[Wn,(0,wt.Z)(Dn).toString(),Dn.size]),Wi=function(ui){for(var Si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,er=sr.length,gi=0;gi<er;gi+=1){var Ji=(ui+gi*Si+er)%er,Mr=sr[Ji]||{},bi=Mr.group,li=Mr.data;if(!bi&&!(li!=null&&li.disabled)&&(tr(li.value)||!gr))return Ji}return-1},fr=St.useState(function(){return Wi(0)}),rr=(0,Ot.Z)(fr,2),_i=rr[0],Cr=rr[1],Mo=function(ui){var Si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Cr(ui);var er={source:Si?"keyboard":"mouse"},gi=sr[ui];if(!gi){Ii(null,-1,er);return}Ii(gi.value,ui,er)};(0,St.useEffect)(function(){Mo(Xi!==!1?Wi(0):-1)},[sr.length,Fn]);var Rr=St.useCallback(function(xr){return Wn==="combobox"?String(xr).toLowerCase()===Fn.toLowerCase():Dn.has(xr)},[Wn,Fn,(0,wt.Z)(Dn).toString(),Dn.size]);(0,St.useEffect)(function(){var xr=setTimeout(function(){if(!Sn&&xn&&Dn.size===1){var Si=Array.from(Dn)[0],er=sr.findIndex(function(gi){var Ji=gi.data;return Fn?String(Ji.value).startsWith(Fn):Ji.value===Si});er!==-1&&(Mo(er),di(er))}});if(xn){var ui;(ui=cn.current)===null||ui===void 0||ui.scrollTo(void 0)}return function(){return clearTimeout(xr)}},[xn,Fn]);var ti=function(ui){ui!==void 0&&vr(ui,{selected:!Dn.has(ui)}),Sn||jn(!1)};if(St.useImperativeHandle(An,function(){return{onKeyDown:function(ui){var Si=ui.which,er=ui.ctrlKey;switch(Si){case Rt.Z.N:case Rt.Z.P:case Rt.Z.UP:case Rt.Z.DOWN:{var gi=0;if(Si===Rt.Z.UP?gi=-1:Si===Rt.Z.DOWN?gi=1:vi()&&er&&(Si===Rt.Z.N?gi=1:Si===Rt.Z.P&&(gi=-1)),gi!==0){var Ji=Wi(_i+gi,gi);di(Ji),Mo(Ji,!0)}break}case Rt.Z.TAB:case Rt.Z.ENTER:{var Mr,bi=sr[_i];bi&&!(bi!=null&&(Mr=bi.data)!==null&&Mr!==void 0&&Mr.disabled)&&!gr?ti(bi.value):ti(void 0),xn&&ui.preventDefault();break}case Rt.Z.ESC:jn(!1),xn&&ui.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ui){di(ui)}}}),sr.length===0)return St.createElement("div",{role:"listbox",id:"".concat(yn,"_list"),className:"".concat(Qi,"-empty"),onMouseDown:hn},In);var xe=Object.keys(ei).map(function(xr){return ei[xr]}),Gr=function(ui){return ui.label};function To(xr,ui){var Si=xr.group;return{role:Si?"presentation":"option",id:"".concat(yn,"_list_").concat(ui)}}var is=function(ui){var Si=sr[ui];if(!Si)return null;var er=Si.data||{},gi=er.value,Ji=Si.group,Mr=(0,Nt.Z)(er,!0),bi=Gr(Si);return Si?St.createElement("div",(0,ee.Z)({"aria-label":typeof bi=="string"&&!Ji?bi:null},Mr,{key:ui},To(Si,ui),{"aria-selected":Rr(gi)}),gi):null},vo={role:"listbox",id:"".concat(yn,"_list")};return St.createElement(St.Fragment,null,Qn&&St.createElement("div",(0,ee.Z)({},vo,{style:{height:0,width:0,overflow:"hidden"}}),is(_i-1),is(_i),is(_i+1)),St.createElement(oi.Z,{itemKey:"key",ref:cn,data:sr,height:Ci,itemHeight:Fi,fullHeight:!1,onMouseDown:hn,onScroll:Ai,virtual:Qn,direction:ri,innerProps:Qn?null:vo},function(xr,ui){var Si=xr.group,er=xr.groupOption,gi=xr.data,Ji=xr.label,Mr=xr.value,bi=gi.key;if(Si){var li,wn=(li=gi.title)!==null&&li!==void 0?li:Zi(Ji)?Ji.toString():void 0;return St.createElement("div",{className:xt()(Qi,"".concat(Qi,"-group"),gi.className),title:wn},Ji!==void 0?Ji:bi)}var Ei=gi.disabled,pr=gi.title,Ur=gi.children,Er=gi.style,Jr=gi.className,yo=(0,jt.Z)(gi,yi),Qr=(0,Tn.Z)(yo,xe),Ao=tr(Mr),So=Ei||!Ao&&gr,No="".concat(Qi,"-option"),en=xt()(Qi,No,Jr,(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({},"".concat(No,"-grouped"),er),"".concat(No,"-active"),_i===ui&&!So),"".concat(No,"-disabled"),So),"".concat(No,"-selected"),Ao)),Uo=Gr(xr),Qa=!an||typeof an=="function"||Ao,rs=typeof Uo=="number"?Uo:Uo||Mr,Fs=Zi(rs)?rs.toString():void 0;return pr!==void 0&&(Fs=pr),St.createElement("div",(0,ee.Z)({},(0,Nt.Z)(Qr),Qn?{}:To(xr,ui),{"aria-selected":Rr(Mr),className:en,title:Fs,onMouseMove:function(){_i===ui||So||Mo(ui)},onClick:function(){So||ti(Mr)},style:Er}),St.createElement("div",{className:"".concat(No,"-content")},typeof Ui=="function"?Ui(xr,{index:ui}):rs),St.isValidElement(an)||Ao,Qa&&St.createElement(lt,{className:"".concat(Qi,"-option-state"),customizeIcon:an,customizeIconProps:{value:Mr,disabled:So,isSelected:Ao}},Ao?"\u2713":null))}))},Yi=St.forwardRef(Hi),zi=Yi,Pi=function(we,je){var An=St.useRef({values:new Map,options:new Map}),Nn=St.useMemo(function(){var yn=An.current,xn=yn.values,Sn=yn.options,Wn=we.map(function(In){if(In.label===void 0){var Ai;return(0,Zt.Z)((0,Zt.Z)({},In),{},{label:(Ai=xn.get(In.value))===null||Ai===void 0?void 0:Ai.label})}return In}),Fn=new Map,jn=new Map;return Wn.forEach(function(In){Fn.set(In.value,In),jn.set(In.value,je.get(In.value)||Sn.get(In.value))}),An.current.values=Fn,An.current.options=jn,Wn},[we,je]),tn=St.useCallback(function(yn){return je.get(yn)||An.current.options.get(yn)},[je]);return[Nn,tn]};function Gi(we,je){return Ge(we).join("").toUpperCase().includes(je)}var Kt=function(we,je,An,Nn,tn){return St.useMemo(function(){if(!An||Nn===!1)return we;var yn=je.options,xn=je.label,Sn=je.value,Wn=[],Fn=typeof Nn=="function",jn=An.toUpperCase(),In=Fn?Nn:function(ai,ci){return tn?Gi(ci[tn],jn):ci[yn]?Gi(ci[xn!=="children"?xn:"label"],jn):Gi(ci[Sn],jn)},Ai=Fn?function(ai){return Gt(ai)}:function(ai){return ai};return we.forEach(function(ai){if(ai[yn]){var ci=In(An,Ai(ai));if(ci)Wn.push(ai);else{var rn=ai[yn].filter(function(Ii){return In(An,Ai(Ii))});rn.length&&Wn.push((0,Zt.Z)((0,Zt.Z)({},ai),{},(0,Qt.Z)({},yn,rn)))}return}In(An,Ai(ai))&&Wn.push(ai)}),Wn},[we,Nn,tn,An,je])},zn=ce(6551),Rn=ce(11592),bn=["children","value"],_n=["children"];function Yn(we){var je=we,An=je.key,Nn=je.props,tn=Nn.children,yn=Nn.value,xn=(0,jt.Z)(Nn,bn);return(0,Zt.Z)({key:An,value:yn!==void 0?yn:An,children:tn},xn)}function Xn(we){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Rn.Z)(we).map(function(An,Nn){if(!St.isValidElement(An)||!An.type)return null;var tn=An,yn=tn.type.isSelectOptGroup,xn=tn.key,Sn=tn.props,Wn=Sn.children,Fn=(0,jt.Z)(Sn,_n);return je||!yn?Yn(An):(0,Zt.Z)((0,Zt.Z)({key:"__RC_SELECT_GRP__".concat(xn===null?Nn:xn,"__"),label:xn},Fn),{},{options:Xn(Wn)})}).filter(function(An){return An})}var Ri=function(je,An,Nn,tn,yn){return St.useMemo(function(){var xn=je,Sn=!je;Sn&&(xn=Xn(An));var Wn=new Map,Fn=new Map,jn=function(ai,ci,rn){rn&&typeof rn=="string"&&ai.set(ci[rn],ci)},In=function Ai(ai){for(var ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rn=0;rn<ai.length;rn+=1){var Ii=ai[rn];!Ii[Nn.options]||ci?(Wn.set(Ii[Nn.value],Ii),jn(Fn,Ii,Nn.label),jn(Fn,Ii,tn),jn(Fn,Ii,yn)):Ai(Ii[Nn.options],!0)}};return In(xn),{options:xn,valueOptions:Wn,labelOptions:Fn}},[je,An,Nn,tn,yn])},ki=Ri;function Xe(we){var je=St.useRef();je.current=we;var An=St.useCallback(function(){return je.current.apply(je,arguments)},[]);return An}function Je(we){var je=we.mode,An=we.options,Nn=we.children,tn=we.backfill,yn=we.allowClear,xn=we.placeholder,Sn=we.getInputElement,Wn=we.showSearch,Fn=we.onSearch,jn=we.defaultOpen,In=we.autoFocus,Ai=we.labelInValue,ai=we.value,ci=we.inputValue,rn=we.optionLabelProp,Ii=isMultiple(je),Xi=Wn!==void 0?Wn:Ii||je==="combobox",vr=An||convertChildrenToData(Nn);if(warning(je!=="tags"||vr.every(function(Qn){return!Qn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),je==="tags"||je==="combobox"){var an=vr.some(function(Qn){return Qn.options?Qn.options.some(function(ri){return typeof("value"in ri?ri.value:ri.key)=="number"}):typeof("value"in Qn?Qn.value:Qn.key)=="number"});warning(!an,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(je!=="combobox"||!rn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(je==="combobox"||!tn,"`backfill` only works with `combobox` mode."),warning(je==="combobox"||!Sn,"`getInputElement` only work with `combobox` mode."),noteOnce(je!=="combobox"||!Sn||!yn||!xn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Fn&&!Xi&&je!=="combobox"&&je!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jn||In,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ai!=null){var Dn=toArray(ai);warning(!Ai||Dn.every(function(Qn){return _typeof(Qn)==="object"&&("key"in Qn||"value"in Qn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ii||Array.isArray(ai),"`value` should be array when `mode` is `multiple` or `tags`")}if(Nn){var ei=null;toNodeArray(Nn).some(function(Qn){if(!React.isValidElement(Qn)||!Qn.type)return!1;var ri=Qn,Ci=ri.type;if(Ci.isSelectOption)return!1;if(Ci.isSelectOptGroup){var Fi=toNodeArray(Qn.props.children).every(function(Ui){return!React.isValidElement(Ui)||!Qn.type||Ui.type.isSelectOption?!0:(ei=Ui.type,!1)});return!Fi}return ei=Ci,!0}),ei&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ei.displayName||ei.name||ei,"`.")),warning(ci===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ke(we,je){if(we){var An=function Nn(tn){for(var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=0;xn<tn.length;xn++){var Sn=tn[xn];if(Sn[je==null?void 0:je.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!yn&&Array.isArray(Sn[je==null?void 0:je.options])&&Nn(Sn[je==null?void 0:je.options],!0))break}};An(we)}}var Hn=null,Jn=["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"],qn=["inputValue"];function pn(we){return!we||(0,Ct.Z)(we)!=="object"}var Bn=St.forwardRef(function(we,je){var An=we.id,Nn=we.mode,tn=we.prefixCls,yn=tn===void 0?"rc-select":tn,xn=we.backfill,Sn=we.fieldNames,Wn=we.inputValue,Fn=we.searchValue,jn=we.onSearch,In=we.autoClearSearchValue,Ai=In===void 0?!0:In,ai=we.onSelect,ci=we.onDeselect,rn=we.dropdownMatchSelectWidth,Ii=rn===void 0?!0:rn,Xi=we.filterOption,vr=we.filterSort,an=we.optionFilterProp,Dn=we.optionLabelProp,ei=we.options,Qn=we.optionRender,ri=we.children,Ci=we.defaultActiveFirstOption,Fi=we.menuItemSelectedIcon,Ui=we.virtual,Qi=we.direction,sr=we.listHeight,cn=sr===void 0?200:sr,gr=we.listItemHeight,hn=gr===void 0?20:gr,di=we.labelRender,tr=we.value,Wi=we.defaultValue,fr=we.labelInValue,rr=we.onChange,_i=we.maxCount,Cr=(0,jt.Z)(we,Jn),Mo=(0,zn.ZP)(An),Rr=on(Nn),ti=!!(!ei&&ri),xe=St.useMemo(function(){return Xi===void 0&&Nn==="combobox"?!1:Xi},[Xi,Nn]),Gr=St.useMemo(function(){return $t(Sn,ti)},[JSON.stringify(Sn),ti]),To=(0,Mt.Z)("",{value:Fn!==void 0?Fn:Wn,postState:function(ar){return ar||""}}),is=(0,Ot.Z)(To,2),vo=is[0],xr=is[1],ui=ki(ei,ri,Gr,an,Dn),Si=ui.valueOptions,er=ui.labelOptions,gi=ui.options,Ji=St.useCallback(function(Ki){var ar=Ge(Ki);return ar.map(function(ur){var yr,Kr,Oi,Pa,os;if(pn(ur))yr=ur;else{var _o;Oi=ur.key,Kr=ur.label,yr=(_o=ur.value)!==null&&_o!==void 0?_o:Oi}var oo=Si.get(yr);if(oo){var Js;if(Kr===void 0&&(Kr=oo==null?void 0:oo[Dn||Gr.label]),Oi===void 0&&(Oi=(Js=oo==null?void 0:oo.key)!==null&&Js!==void 0?Js:yr),Pa=oo==null?void 0:oo.disabled,os=oo==null?void 0:oo.title,0)var Ca}return{label:Kr,value:yr,key:Oi,disabled:Pa,title:os}})},[Gr,Dn,Si]),Mr=(0,Mt.Z)(Wi,{value:tr}),bi=(0,Ot.Z)(Mr,2),li=bi[0],wn=bi[1],Ei=St.useMemo(function(){var Ki,ar=Rr&&li===null?[]:li,ur=Ji(ar);return Nn==="combobox"&&Jt((Ki=ur[0])===null||Ki===void 0?void 0:Ki.value)?[]:ur},[li,Ji,Nn,Rr]),pr=Pi(Ei,Si),Ur=(0,Ot.Z)(pr,2),Er=Ur[0],Jr=Ur[1],yo=St.useMemo(function(){if(!Nn&&Er.length===1){var Ki=Er[0];if(Ki.value===null&&(Ki.label===null||Ki.label===void 0))return[]}return Er.map(function(ar){var ur;return(0,Zt.Z)((0,Zt.Z)({},ar),{},{label:(ur=typeof di=="function"?di(ar):ar.label)!==null&&ur!==void 0?ur:ar.value})})},[Nn,Er,di]),Qr=St.useMemo(function(){return new Set(Er.map(function(Ki){return Ki.value}))},[Er]);St.useEffect(function(){if(Nn==="combobox"){var Ki,ar=(Ki=Er[0])===null||Ki===void 0?void 0:Ki.value;xr(he(ar)?String(ar):"")}},[Er]);var Ao=Xe(function(Ki,ar){var ur=ar!=null?ar:Ki;return(0,Qt.Z)((0,Qt.Z)({},Gr.value,Ki),Gr.label,ur)}),So=St.useMemo(function(){if(Nn!=="tags")return gi;var Ki=(0,wt.Z)(gi),ar=function(yr){return Si.has(yr)};return(0,wt.Z)(Er).sort(function(ur,yr){return ur.value<yr.value?-1:1}).forEach(function(ur){var yr=ur.value;ar(yr)||Ki.push(Ao(yr,ur.label))}),Ki},[Ao,gi,Si,Er,Nn]),No=Kt(So,Gr,vo,xe,an),en=St.useMemo(function(){return Nn!=="tags"||!vo||No.some(function(Ki){return Ki[an||"value"]===vo})||No.some(function(Ki){return Ki[Gr.value]===vo})?No:[Ao(vo)].concat((0,wt.Z)(No))},[Ao,an,Nn,No,vo,Gr]),Uo=function Ki(ar){var ur=(0,wt.Z)(ar).sort(function(yr,Kr){return vr(yr,Kr,{searchValue:vo})});return ur.map(function(yr){return Array.isArray(yr.options)?(0,Zt.Z)((0,Zt.Z)({},yr),{},{options:yr.options.length>0?Ki(yr.options):yr.options}):yr})},Qa=St.useMemo(function(){return vr?Uo(en):en},[en,vr,vo]),rs=St.useMemo(function(){return zt(Qa,{fieldNames:Gr,childrenAsData:ti})},[Qa,Gr,ti]),Fs=function(ar){var ur=Ji(ar);if(wn(ur),rr&&(ur.length!==Er.length||ur.some(function(Oi,Pa){var os;return((os=Er[Pa])===null||os===void 0?void 0:os.value)!==(Oi==null?void 0:Oi.value)}))){var yr=fr?ur:ur.map(function(Oi){return Oi.value}),Kr=ur.map(function(Oi){return Gt(Jr(Oi.value))});rr(Rr?yr:yr[0],Rr?Kr:Kr[0])}},ro=St.useState(null),ua=(0,Ot.Z)(ro,2),Wl=ua[0],Tr=ua[1],Wo=St.useState(0),Ll=(0,Ot.Z)(Wo,2),gs=Ll[0],uu=Ll[1],wa=Ci!==void 0?Ci:Nn!=="combobox",Bi=St.useCallback(function(Ki,ar){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},yr=ur.source,Kr=yr===void 0?"keyboard":yr;uu(ar),xn&&Nn==="combobox"&&Ki!==null&&Kr==="keyboard"&&Tr(String(Ki))},[xn,Nn]),Gl=function(ar,ur,yr){var Kr=function(){var kl,qa=Jr(ar);return[fr?{label:qa==null?void 0:qa[Gr.label],value:ar,key:(kl=qa==null?void 0:qa.key)!==null&&kl!==void 0?kl:ar}:ar,Gt(qa)]};if(ur&&ai){var Oi=Kr(),Pa=(0,Ot.Z)(Oi,2),os=Pa[0],_o=Pa[1];ai(os,_o)}else if(!ur&&ci&&yr!=="clear"){var oo=Kr(),Js=(0,Ot.Z)(oo,2),Ca=Js[0],Ds=Js[1];ci(Ca,Ds)}},hu=Xe(function(Ki,ar){var ur,yr=Rr?ar.selected:!0;yr?ur=Rr?[].concat((0,wt.Z)(Er),[Ki]):[Ki]:ur=Er.filter(function(Kr){return Kr.value!==Ki}),Fs(ur),Gl(Ki,yr),Nn==="combobox"?Tr(""):(!on||Ai)&&(xr(""),Tr(""))}),ha=function(ar,ur){Fs(ar);var yr=ur.type,Kr=ur.values;(yr==="remove"||yr==="clear")&&Kr.forEach(function(Oi){Gl(Oi.value,!1,yr)})},Xo=function(ar,ur){if(xr(ar),Tr(null),ur.source==="submit"){var yr=(ar||"").trim();if(yr){var Kr=Array.from(new Set([].concat((0,wt.Z)(Qr),[yr])));Fs(Kr),Gl(yr,!0),xr("")}return}ur.source!=="blur"&&(Nn==="combobox"&&Fs(ar),jn==null||jn(ar))},Nu=function(ar){var ur=ar;Nn!=="tags"&&(ur=ar.map(function(Kr){var Oi=er.get(Kr);return Oi==null?void 0:Oi.value}).filter(function(Kr){return Kr!==void 0}));var yr=Array.from(new Set([].concat((0,wt.Z)(Qr),(0,wt.Z)(ur))));Fs(yr),yr.forEach(function(Kr){Gl(Kr,!0)})},ni=St.useMemo(function(){var Ki=Ui!==!1&&Ii!==!1;return(0,Zt.Z)((0,Zt.Z)({},ui),{},{flattenOptions:rs,onActiveValue:Bi,defaultActiveFirstOption:wa,onSelect:hu,menuItemSelectedIcon:Fi,rawValues:Qr,fieldNames:Gr,virtual:Ki,direction:Qi,listHeight:cn,listItemHeight:hn,childrenAsData:ti,maxCount:_i,optionRender:Qn})},[_i,ui,rs,Bi,wa,hu,Fi,Qr,Gr,Ui,Ii,Qi,cn,hn,ti,Qn]);return St.createElement(Ue.Provider,{value:ni},St.createElement(qe,(0,ee.Z)({},Cr,{id:Mo,prefixCls:yn,ref:je,omitDomProps:qn,mode:Nn,displayValues:yo,onDisplayValuesChange:ha,direction:Qi,searchValue:vo,onSearch:Xo,autoClearSearchValue:Ai,onSearchSplit:Nu,dropdownMatchSelectWidth:Ii,OptionList:zi,emptyOptions:!rs.length,activeValue:Wl,activeDescendantId:"".concat(Mo,"_list_").concat(gs)})))}),hi=Bn;hi.Option=Mn,hi.OptGroup=fn;var Ti=hi,Di=Ti},63158:function(Cn,Gn,ce){"use strict";var ee=ce(14809),wt=ce(4635),Qt=ce(50298),Zt=ce(62646),Ot=ce(59301),jt=ce(92310),Ct=ce.n(jt),Mt=ce(18929),Bt=ce(10228),St=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],kt=Ot.forwardRef(function(xt,Dt){var yt,et=xt.prefixCls,tt=et===void 0?"rc-switch":et,lt=xt.className,ot=xt.checked,ut=xt.defaultChecked,ct=xt.disabled,ft=xt.loadingIcon,gt=xt.checkedChildren,Lt=xt.unCheckedChildren,Rt=xt.onClick,Ut=xt.onChange,Nt=xt.onKeyDown,qt=(0,Zt.Z)(xt,St),te=(0,Mt.Z)(!1,{value:ot,defaultValue:ut}),Vt=(0,Qt.Z)(te,2),de=Vt[0],ge=Vt[1];function be(ze,he){var Jt=de;return ct||(Jt=ze,ge(Jt),Ut==null||Ut(Jt,he)),Jt}function Ne(ze){ze.which===Bt.Z.LEFT?be(!1,ze):ze.which===Bt.Z.RIGHT&&be(!0,ze),Nt==null||Nt(ze)}function Ge(ze){var he=be(!de,ze);Rt==null||Rt(he,ze)}var Pe=Ct()(tt,lt,(yt={},(0,wt.Z)(yt,"".concat(tt,"-checked"),de),(0,wt.Z)(yt,"".concat(tt,"-disabled"),ct),yt));return Ot.createElement("button",(0,ee.Z)({},qt,{type:"button",role:"switch","aria-checked":de,disabled:ct,className:Pe,ref:Dt,onKeyDown:Ne,onClick:Ge}),ft,Ot.createElement("span",{className:"".concat(tt,"-inner")},Ot.createElement("span",{className:"".concat(tt,"-inner-checked")},gt),Ot.createElement("span",{className:"".concat(tt,"-inner-unchecked")},Lt)))});kt.displayName="Switch",Gn.Z=kt},22711:function(Cn,Gn,ce){"use strict";ce.r(Gn),ce.d(Gn,{ResizableTextArea:function(){return Vt},default:function(){return Ne}});var ee=ce(14809),wt=ce(4635),Qt=ce(20439),Zt=ce(95190),Ot=ce(50298),jt=ce(62646),Ct=ce(92310),Mt=ce.n(Ct),Bt=ce(36901),St=ce(66003),kt=ce(30292),xt=ce(18929),Dt=ce(59301),yt=ce(93664),et=ce(29301),tt=ce(34280),lt=ce(16089),ot=`
|
|
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;
|
|
`,ut=["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"],ct={},ft;function gt(Ge){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=Ge.getAttribute("id")||Ge.getAttribute("data-reactid")||Ge.getAttribute("name");if(Pe&&ct[ze])return ct[ze];var he=window.getComputedStyle(Ge),Jt=he.getPropertyValue("box-sizing")||he.getPropertyValue("-moz-box-sizing")||he.getPropertyValue("-webkit-box-sizing"),re=parseFloat(he.getPropertyValue("padding-bottom"))+parseFloat(he.getPropertyValue("padding-top")),se=parseFloat(he.getPropertyValue("border-bottom-width"))+parseFloat(he.getPropertyValue("border-top-width")),pe=ut.map(function(Re){return"".concat(Re,":").concat(he.getPropertyValue(Re))}).join(";"),ue={sizingStyle:pe,paddingSize:re,borderSize:se,boxSizing:Jt};return Pe&&ze&&(ct[ze]=ue),ue}function Lt(Ge){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ft||(ft=document.createElement("textarea"),ft.setAttribute("tab-index","-1"),ft.setAttribute("aria-hidden","true"),ft.setAttribute("name","hiddenTextarea"),document.body.appendChild(ft)),Ge.getAttribute("wrap")?ft.setAttribute("wrap",Ge.getAttribute("wrap")):ft.removeAttribute("wrap");var Jt=gt(Ge,Pe),re=Jt.paddingSize,se=Jt.borderSize,pe=Jt.boxSizing,ue=Jt.sizingStyle;ft.setAttribute("style","".concat(ue,";").concat(ot)),ft.value=Ge.value||Ge.placeholder||"";var Re=void 0,Fe=void 0,Qe,Ae=ft.scrollHeight;if(pe==="border-box"?Ae+=se:pe==="content-box"&&(Ae-=re),ze!==null||he!==null){ft.value=" ";var _e=ft.scrollHeight-re;ze!==null&&(Re=_e*ze,pe==="border-box"&&(Re=Re+re+se),Ae=Math.max(Re,Ae)),he!==null&&(Fe=_e*he,pe==="border-box"&&(Fe=Fe+re+se),Qe=Ae>Fe?"":"hidden",Ae=Math.min(Fe,Ae))}var Le={height:Ae,overflowY:Qe,resize:"none"};return Re&&(Le.minHeight=Re),Fe&&(Le.maxHeight=Fe),Le}var Rt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ut=0,Nt=1,qt=2,te=Dt.forwardRef(function(Ge,Pe){var ze=Ge,he=ze.prefixCls,Jt=ze.defaultValue,re=ze.value,se=ze.autoSize,pe=ze.onResize,ue=ze.className,Re=ze.style,Fe=ze.disabled,Qe=ze.onChange,Ae=ze.onInternalAutoSize,_e=(0,jt.Z)(ze,Rt),Le=(0,xt.Z)(Jt,{value:re,postState:function(Mn){return Mn!=null?Mn:""}}),Oe=(0,Ot.Z)(Le,2),He=Oe[0],ie=Oe[1],Tt=function(Mn){ie(Mn.target.value),Qe==null||Qe(Mn)},At=Dt.useRef();Dt.useImperativeHandle(Pe,function(){return{textArea:At.current}});var Yt=Dt.useMemo(function(){return se&&(0,yt.Z)(se)==="object"?[se.minRows,se.maxRows]:[]},[se]),oe=(0,Ot.Z)(Yt,2),_t=oe[0],It=oe[1],Pt=!!se,Et=function(){try{if(document.activeElement===At.current){var Mn=At.current,ii=Mn.selectionStart,Tn=Mn.selectionEnd,oi=Mn.scrollTop;At.current.setSelectionRange(ii,Tn),At.current.scrollTop=oi}}catch(vi){}},$t=Dt.useState(qt),zt=(0,Ot.Z)($t,2),Gt=zt[0],le=zt[1],ye=Dt.useState(),Ue=(0,Ot.Z)(ye,2),We=Ue[0],Ee=Ue[1],Ze=function(){le(Ut)};(0,tt.Z)(function(){Pt&&Ze()},[re,_t,It,Pt]),(0,tt.Z)(function(){if(Gt===Ut)le(Nt);else if(Gt===Nt){var Pn=Lt(At.current,!1,_t,It);le(qt),Ee(Pn)}else Et()},[Gt]);var on=Dt.useRef(),nn=function(){lt.Z.cancel(on.current)},qe=function(Mn){Gt===qt&&(pe==null||pe(Mn),se&&(nn(),on.current=(0,lt.Z)(function(){Ze()})))};Dt.useEffect(function(){return nn},[]);var En=Pt?We:null,fn=(0,Qt.Z)((0,Qt.Z)({},Re),En);return(Gt===Ut||Gt===Nt)&&(fn.overflowY="hidden",fn.overflowX="hidden"),Dt.createElement(et.Z,{onResize:qe,disabled:!(se||pe)},Dt.createElement("textarea",(0,ee.Z)({},_e,{ref:At,style:fn,className:Mt()(he,ue,(0,wt.Z)({},"".concat(he,"-disabled"),Fe)),disabled:Fe,value:He,onChange:Tt})))}),Vt=te,de=["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"],ge=Dt.forwardRef(function(Ge,Pe){var ze,he=Ge.defaultValue,Jt=Ge.value,re=Ge.onFocus,se=Ge.onBlur,pe=Ge.onChange,ue=Ge.allowClear,Re=Ge.maxLength,Fe=Ge.onCompositionStart,Qe=Ge.onCompositionEnd,Ae=Ge.suffix,_e=Ge.prefixCls,Le=_e===void 0?"rc-textarea":_e,Oe=Ge.showCount,He=Ge.count,ie=Ge.className,Tt=Ge.style,At=Ge.disabled,Yt=Ge.hidden,oe=Ge.classNames,_t=Ge.styles,It=Ge.onResize,Pt=Ge.onClear,Et=Ge.onPressEnter,$t=Ge.readOnly,zt=Ge.autoSize,Gt=Ge.onKeyDown,le=(0,jt.Z)(Ge,de),ye=(0,xt.Z)(he,{value:Jt,defaultValue:he}),Ue=(0,Ot.Z)(ye,2),We=Ue[0],Ee=Ue[1],Ze=We==null?"":String(We),on=Dt.useState(!1),nn=(0,Ot.Z)(on,2),qe=nn[0],En=nn[1],fn=Dt.useRef(!1),Pn=Dt.useState(null),Mn=(0,Ot.Z)(Pn,2),ii=Mn[0],Tn=Mn[1],oi=(0,Dt.useRef)(null),vi=(0,Dt.useRef)(null),yi=function(){var hi;return(hi=vi.current)===null||hi===void 0?void 0:hi.textArea},Zi=function(){yi().focus()};(0,Dt.useImperativeHandle)(Pe,function(){var Bn;return{resizableTextArea:vi.current,focus:Zi,blur:function(){yi().blur()},nativeElement:((Bn=oi.current)===null||Bn===void 0?void 0:Bn.nativeElement)||yi()}}),(0,Dt.useEffect)(function(){En(function(Bn){return!At&&Bn})},[At]);var Hi=Dt.useState(null),Yi=(0,Ot.Z)(Hi,2),zi=Yi[0],Pi=Yi[1];Dt.useEffect(function(){if(zi){var Bn;(Bn=yi()).setSelectionRange.apply(Bn,(0,Zt.Z)(zi))}},[zi]);var Gi=(0,St.Z)(He,Oe),Kt=(ze=Gi.max)!==null&&ze!==void 0?ze:Re,zn=Number(Kt)>0,Rn=Gi.strategy(Ze),bn=!!Kt&&Rn>Kt,_n=function(hi,Ti){var Di=Ti;!fn.current&&Gi.exceedFormatter&&Gi.max&&Gi.strategy(Ti)>Gi.max&&(Di=Gi.exceedFormatter(Ti,{max:Gi.max}),Ti!==Di&&Pi([yi().selectionStart||0,yi().selectionEnd||0])),Ee(Di),(0,kt.rJ)(hi.currentTarget,hi,pe,Di)},Yn=function(hi){fn.current=!0,Fe==null||Fe(hi)},Xn=function(hi){fn.current=!1,_n(hi,hi.currentTarget.value),Qe==null||Qe(hi)},Ri=function(hi){_n(hi,hi.target.value)},ki=function(hi){hi.key==="Enter"&&Et&&Et(hi),Gt==null||Gt(hi)},Xe=function(hi){En(!0),re==null||re(hi)},Je=function(hi){En(!1),se==null||se(hi)},Ke=function(hi){Ee(""),Zi(),(0,kt.rJ)(yi(),hi,pe)},Hn=Ae,Jn;Gi.show&&(Gi.showFormatter?Jn=Gi.showFormatter({value:Ze,count:Rn,maxLength:Kt}):Jn="".concat(Rn).concat(zn?" / ".concat(Kt):""),Hn=Dt.createElement(Dt.Fragment,null,Hn,Dt.createElement("span",{className:Mt()("".concat(Le,"-data-count"),oe==null?void 0:oe.count),style:_t==null?void 0:_t.count},Jn)));var qn=function(hi){var Ti;It==null||It(hi),(Ti=yi())!==null&&Ti!==void 0&&Ti.style.height&&Tn(!0)},pn=!zt&&!Oe&&!ue;return Dt.createElement(Bt.BaseInput,{ref:oi,value:Ze,allowClear:ue,handleReset:Ke,suffix:Hn,prefixCls:Le,classNames:(0,Qt.Z)((0,Qt.Z)({},oe),{},{affixWrapper:Mt()(oe==null?void 0:oe.affixWrapper,(0,wt.Z)((0,wt.Z)({},"".concat(Le,"-show-count"),Oe),"".concat(Le,"-textarea-allow-clear"),ue))}),disabled:At,focused:qe,className:Mt()(ie,bn&&"".concat(Le,"-out-of-range")),style:(0,Qt.Z)((0,Qt.Z)({},Tt),ii&&!pn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Jn=="string"?Jn:void 0}},hidden:Yt,readOnly:$t,onClear:Pt},Dt.createElement(Vt,(0,ee.Z)({},le,{autoSize:zt,maxLength:Re,onKeyDown:ki,onChange:Ri,onFocus:Xe,onBlur:Je,onCompositionStart:Yn,onCompositionEnd:Xn,className:Mt()(oe==null?void 0:oe.textarea),style:(0,Qt.Z)((0,Qt.Z)({},_t==null?void 0:_t.textarea),{},{resize:Tt==null?void 0:Tt.resize}),disabled:At,prefixCls:Le,onResize:qn,ref:vi,readOnly:$t})))}),be=ge,Ne=be},639:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return ct}});var ee=ce(14809),wt=ce(4635),Qt=ce(20439),Zt=ce(50298),Ot=ce(62646),jt=ce(59301),Ct=ce(92310),Mt=ce.n(Ct),Bt=ce(26112),St=ce(30699),kt=function(gt){for(var Lt=gt.prefixCls,Rt=gt.level,Ut=gt.isStart,Nt=gt.isEnd,qt="".concat(Lt,"-indent-unit"),te=[],Vt=0;Vt<Rt;Vt+=1)te.push(jt.createElement("span",{key:Vt,className:Mt()(qt,(0,wt.Z)((0,wt.Z)({},"".concat(qt,"-start"),Ut[Vt]),"".concat(qt,"-end"),Nt[Vt]))}));return jt.createElement("span",{"aria-hidden":"true",className:"".concat(Lt,"-indent")},te)},xt=jt.memo(kt),Dt=ce(65065),yt=ce(34061),et=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],tt="open",lt="close",ot="---",ut=function(gt){var Lt,Rt,Ut,Nt=gt.eventKey,qt=gt.className,te=gt.style,Vt=gt.dragOver,de=gt.dragOverGapTop,ge=gt.dragOverGapBottom,be=gt.isLeaf,Ne=gt.isStart,Ge=gt.isEnd,Pe=gt.expanded,ze=gt.selected,he=gt.checked,Jt=gt.halfChecked,re=gt.loading,se=gt.domRef,pe=gt.active,ue=gt.data,Re=gt.onMouseMove,Fe=gt.selectable,Qe=(0,Ot.Z)(gt,et),Ae=jt.useContext(St.k),_e=jt.useContext(St.y),Le=jt.useRef(null),Oe=jt.useState(!1),He=(0,Zt.Z)(Oe,2),ie=He[0],Tt=He[1],At=!!(Ae.disabled||gt.disabled||(Lt=_e.nodeDisabled)!==null&&Lt!==void 0&&Lt.call(_e,ue)),Yt=jt.useMemo(function(){return!Ae.checkable||gt.checkable===!1?!1:Ae.checkable},[Ae.checkable,gt.checkable]),oe=function(Rn){At||Ae.onNodeSelect(Rn,(0,yt.F)(gt))},_t=function(Rn){At||!Yt||gt.disableCheckbox||Ae.onNodeCheck(Rn,(0,yt.F)(gt),!he)},It=jt.useMemo(function(){return typeof Fe=="boolean"?Fe:Ae.selectable},[Fe,Ae.selectable]),Pt=function(Rn){Ae.onNodeClick(Rn,(0,yt.F)(gt)),It?oe(Rn):_t(Rn)},Et=function(Rn){Ae.onNodeDoubleClick(Rn,(0,yt.F)(gt))},$t=function(Rn){Ae.onNodeMouseEnter(Rn,(0,yt.F)(gt))},zt=function(Rn){Ae.onNodeMouseLeave(Rn,(0,yt.F)(gt))},Gt=function(Rn){Ae.onNodeContextMenu(Rn,(0,yt.F)(gt))},le=jt.useMemo(function(){return!!(Ae.draggable&&(!Ae.draggable.nodeDraggable||Ae.draggable.nodeDraggable(ue)))},[Ae.draggable,ue]),ye=function(Rn){Rn.stopPropagation(),Tt(!0),Ae.onNodeDragStart(Rn,gt);try{Rn.dataTransfer.setData("text/plain","")}catch(bn){}},Ue=function(Rn){Rn.preventDefault(),Rn.stopPropagation(),Ae.onNodeDragEnter(Rn,gt)},We=function(Rn){Rn.preventDefault(),Rn.stopPropagation(),Ae.onNodeDragOver(Rn,gt)},Ee=function(Rn){Rn.stopPropagation(),Ae.onNodeDragLeave(Rn,gt)},Ze=function(Rn){Rn.stopPropagation(),Tt(!1),Ae.onNodeDragEnd(Rn,gt)},on=function(Rn){Rn.preventDefault(),Rn.stopPropagation(),Tt(!1),Ae.onNodeDrop(Rn,gt)},nn=function(Rn){re||Ae.onNodeExpand(Rn,(0,yt.F)(gt))},qe=jt.useMemo(function(){var zn=(0,Dt.Z)(Ae.keyEntities,Nt)||{},Rn=zn.children;return!!(Rn||[]).length},[Ae.keyEntities,Nt]),En=jt.useMemo(function(){return be===!1?!1:be||!Ae.loadData&&!qe||Ae.loadData&>.loaded&&!qe},[be,Ae.loadData,qe,gt.loaded]);jt.useEffect(function(){re||typeof Ae.loadData=="function"&&Pe&&!En&&!gt.loaded&&Ae.onNodeLoad((0,yt.F)(gt))},[re,Ae.loadData,Ae.onNodeLoad,Pe,En,gt]);var fn=jt.useMemo(function(){var zn;return(zn=Ae.draggable)!==null&&zn!==void 0&&zn.icon?jt.createElement("span",{className:"".concat(Ae.prefixCls,"-draggable-icon")},Ae.draggable.icon):null},[Ae.draggable]),Pn=function(Rn){var bn=gt.switcherIcon||Ae.switcherIcon;return typeof bn=="function"?bn((0,Qt.Z)((0,Qt.Z)({},gt),{},{isLeaf:Rn})):bn},Mn=function(){if(En){var Rn=Pn(!0);return Rn!==!1?jt.createElement("span",{className:Mt()("".concat(Ae.prefixCls,"-switcher"),"".concat(Ae.prefixCls,"-switcher-noop"))},Rn):null}var bn=Pn(!1);return bn!==!1?jt.createElement("span",{onClick:nn,className:Mt()("".concat(Ae.prefixCls,"-switcher"),"".concat(Ae.prefixCls,"-switcher_").concat(Pe?tt:lt))},bn):null},ii=jt.useMemo(function(){if(!Yt)return null;var zn=typeof Yt!="boolean"?Yt:null;return jt.createElement("span",{className:Mt()("".concat(Ae.prefixCls,"-checkbox"),(0,wt.Z)((0,wt.Z)((0,wt.Z)({},"".concat(Ae.prefixCls,"-checkbox-checked"),he),"".concat(Ae.prefixCls,"-checkbox-indeterminate"),!he&&Jt),"".concat(Ae.prefixCls,"-checkbox-disabled"),At||gt.disableCheckbox)),onClick:_t,role:"checkbox","aria-checked":Jt?"mixed":he,"aria-disabled":At||gt.disableCheckbox,"aria-label":"Select ".concat(typeof gt.title=="string"?gt.title:"tree node")},zn)},[Yt,he,Jt,At,gt.disableCheckbox,gt.title]),Tn=jt.useMemo(function(){return En?null:Pe?tt:lt},[En,Pe]),oi=jt.useMemo(function(){return jt.createElement("span",{className:Mt()("".concat(Ae.prefixCls,"-iconEle"),"".concat(Ae.prefixCls,"-icon__").concat(Tn||"docu"),(0,wt.Z)({},"".concat(Ae.prefixCls,"-icon_loading"),re))})},[Ae.prefixCls,Tn,re]),vi=jt.useMemo(function(){var zn=!!Ae.draggable,Rn=!gt.disabled&&zn&&Ae.dragOverNodeKey===Nt;return Rn?Ae.dropIndicatorRender({dropPosition:Ae.dropPosition,dropLevelOffset:Ae.dropLevelOffset,indent:Ae.indent,prefixCls:Ae.prefixCls,direction:Ae.direction}):null},[Ae.dropPosition,Ae.dropLevelOffset,Ae.indent,Ae.prefixCls,Ae.direction,Ae.draggable,Ae.dragOverNodeKey,Ae.dropIndicatorRender]),yi=jt.useMemo(function(){var zn=gt.title,Rn=zn===void 0?ot:zn,bn="".concat(Ae.prefixCls,"-node-content-wrapper"),_n;if(Ae.showIcon){var Yn=gt.icon||Ae.icon;_n=Yn?jt.createElement("span",{className:Mt()("".concat(Ae.prefixCls,"-iconEle"),"".concat(Ae.prefixCls,"-icon__customize"))},typeof Yn=="function"?Yn(gt):Yn):oi}else Ae.loadData&&re&&(_n=oi);var Xn;return typeof Rn=="function"?Xn=Rn(ue):Ae.titleRender?Xn=Ae.titleRender(ue):Xn=Rn,jt.createElement("span",{ref:Le,title:typeof Rn=="string"?Rn:"",className:Mt()(bn,"".concat(bn,"-").concat(Tn||"normal"),(0,wt.Z)({},"".concat(Ae.prefixCls,"-node-selected"),!At&&(ze||ie))),onMouseEnter:$t,onMouseLeave:zt,onContextMenu:Gt,onClick:Pt,onDoubleClick:Et},_n,jt.createElement("span",{className:"".concat(Ae.prefixCls,"-title")},Xn),vi)},[Ae.prefixCls,Ae.showIcon,gt,Ae.icon,oi,Ae.titleRender,ue,Tn,$t,zt,Gt,Pt,Et]),Zi=(0,Bt.Z)(Qe,{aria:!0,data:!0}),Hi=(0,Dt.Z)(Ae.keyEntities,Nt)||{},Yi=Hi.level,zi=Ge[Ge.length-1],Pi=!At&&le,Gi=Ae.draggingNodeKey===Nt,Kt=Fe!==void 0?{"aria-selected":!!Fe}:void 0;return jt.createElement("div",(0,ee.Z)({ref:se,role:"treeitem","aria-expanded":be?void 0:Pe,className:Mt()(qt,"".concat(Ae.prefixCls,"-treenode"),(Ut={},(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)(Ut,"".concat(Ae.prefixCls,"-treenode-disabled"),At),"".concat(Ae.prefixCls,"-treenode-switcher-").concat(Pe?"open":"close"),!be),"".concat(Ae.prefixCls,"-treenode-checkbox-checked"),he),"".concat(Ae.prefixCls,"-treenode-checkbox-indeterminate"),Jt),"".concat(Ae.prefixCls,"-treenode-selected"),ze),"".concat(Ae.prefixCls,"-treenode-loading"),re),"".concat(Ae.prefixCls,"-treenode-active"),pe),"".concat(Ae.prefixCls,"-treenode-leaf-last"),zi),"".concat(Ae.prefixCls,"-treenode-draggable"),le),"dragging",Gi),(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)(Ut,"drop-target",Ae.dropTargetKey===Nt),"drop-container",Ae.dropContainerKey===Nt),"drag-over",!At&&Vt),"drag-over-gap-top",!At&&de),"drag-over-gap-bottom",!At&&ge),"filter-node",(Rt=Ae.filterTreeNode)===null||Rt===void 0?void 0:Rt.call(Ae,(0,yt.F)(gt))),"".concat(Ae.prefixCls,"-treenode-leaf"),En))),style:te,draggable:Pi,onDragStart:Pi?ye:void 0,onDragEnter:le?Ue:void 0,onDragOver:le?We:void 0,onDragLeave:le?Ee:void 0,onDrop:le?on:void 0,onDragEnd:le?Ze:void 0,onMouseMove:Re},Kt,Zi),jt.createElement(xt,{prefixCls:Ae.prefixCls,level:Yi,isStart:Ne,isEnd:Ge}),fn,Mn(),ii,yi)};ut.isTreeNode=1;var ct=ut},30699:function(Cn,Gn,ce){"use strict";ce.d(Gn,{k:function(){return wt},y:function(){return Qt}});var ee=ce(59301),wt=ee.createContext(null),Qt=ee.createContext({})},29530:function(Cn,Gn,ce){"use strict";ce.d(Gn,{OF:function(){return Nt.Z},y6:function(){return lt.y},ZP:function(){return At}});var ee=ce(14809),wt=ce(93664),Qt=ce(20439),Zt=ce(95190),Ot=ce(99153),jt=ce(84851),Ct=ce(13028),Mt=ce(19257),Bt=ce(93046),St=ce(4635),kt=ce(92310),xt=ce.n(kt),Dt=ce(10228),yt=ce(26112),et=ce(48736),tt=ce(59301),lt=ce(30699),ot=function(oe){var _t=oe.dropPosition,It=oe.dropLevelOffset,Pt=oe.indent,Et={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(_t){case-1:Et.top=0,Et.left=-It*Pt;break;case 1:Et.bottom=0,Et.left=-It*Pt;break;case 0:Et.bottom=0,Et.left=Pt;break}return tt.createElement("div",{style:Et})},ut=ot;function ct(Yt){if(Yt==null)throw new TypeError("Cannot destructure "+Yt)}var ft=ce(50298),gt=ce(62646),Lt=ce(34280),Rt=ce(65283),Ut=ce(77900),Nt=ce(639);function qt(Yt,oe){var _t=tt.useState(!1),It=(0,ft.Z)(_t,2),Pt=It[0],Et=It[1];(0,Lt.Z)(function(){if(Pt)return Yt(),function(){oe()}},[Pt]),(0,Lt.Z)(function(){return Et(!0),function(){Et(!1)}},[])}var te=qt,Vt=ce(34061),de=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ge=tt.forwardRef(function(Yt,oe){var _t=Yt.className,It=Yt.style,Pt=Yt.motion,Et=Yt.motionNodes,$t=Yt.motionType,zt=Yt.onMotionStart,Gt=Yt.onMotionEnd,le=Yt.active,ye=Yt.treeNodeRequiredProps,Ue=(0,gt.Z)(Yt,de),We=tt.useState(!0),Ee=(0,ft.Z)(We,2),Ze=Ee[0],on=Ee[1],nn=tt.useContext(lt.k),qe=nn.prefixCls,En=Et&&$t!=="hide";(0,Lt.Z)(function(){Et&&En!==Ze&&on(En)},[Et]);var fn=function(){Et&&zt()},Pn=tt.useRef(!1),Mn=function(){Et&&!Pn.current&&(Pn.current=!0,Gt())};te(fn,Mn);var ii=function(oi){En===oi&&Mn()};return Et?tt.createElement(Ut.default,(0,ee.Z)({ref:oe,visible:Ze},Pt,{motionAppear:$t==="show",onVisibleChanged:ii}),function(Tn,oi){var vi=Tn.className,yi=Tn.style;return tt.createElement("div",{ref:oi,className:xt()("".concat(qe,"-treenode-motion"),vi),style:yi},Et.map(function(Zi){var Hi=Object.assign({},(ct(Zi.data),Zi.data)),Yi=Zi.title,zi=Zi.key,Pi=Zi.isStart,Gi=Zi.isEnd;delete Hi.children;var Kt=(0,Vt.H8)(zi,ye);return tt.createElement(Nt.Z,(0,ee.Z)({},Hi,Kt,{title:Yi,active:le,data:Zi.data,key:zi,isStart:Pi,isEnd:Gi}))}))}):tt.createElement(Nt.Z,(0,ee.Z)({domRef:oe,className:_t,style:It},Ue,{active:le}))}),be=ge;function Ne(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_t=Yt.length,It=oe.length;if(Math.abs(_t-It)!==1)return{add:!1,key:null};function Pt(Et,$t){var zt=new Map;Et.forEach(function(le){zt.set(le,!0)});var Gt=$t.filter(function(le){return!zt.has(le)});return Gt.length===1?Gt[0]:null}return _t<It?{add:!0,key:Pt(Yt,oe)}:{add:!1,key:Pt(oe,Yt)}}function Ge(Yt,oe,_t){var It=Yt.findIndex(function(zt){return zt.key===_t}),Pt=Yt[It+1],Et=oe.findIndex(function(zt){return zt.key===_t});if(Pt){var $t=oe.findIndex(function(zt){return zt.key===Pt.key});return oe.slice(Et+1,$t)}return oe.slice(Et+1)}var Pe=["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"],ze={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},he=function(){},Jt="RC_TREE_MOTION_".concat(Math.random()),re={key:Jt},se={key:Jt,level:0,index:0,pos:"0",node:re,nodes:[re]},pe={parent:null,children:[],pos:se.pos,data:re,title:null,key:Jt,isStart:[],isEnd:[]};function ue(Yt,oe,_t,It){return oe===!1||!_t?Yt:Yt.slice(0,Math.ceil(_t/It)+1)}function Re(Yt){var oe=Yt.key,_t=Yt.pos;return(0,Vt.km)(oe,_t)}function Fe(Yt){for(var oe=String(Yt.data.key),_t=Yt;_t.parent;)_t=_t.parent,oe="".concat(_t.data.key," > ").concat(oe);return oe}var Qe=tt.forwardRef(function(Yt,oe){var _t=Yt.prefixCls,It=Yt.data,Pt=Yt.selectable,Et=Yt.checkable,$t=Yt.expandedKeys,zt=Yt.selectedKeys,Gt=Yt.checkedKeys,le=Yt.loadedKeys,ye=Yt.loadingKeys,Ue=Yt.halfCheckedKeys,We=Yt.keyEntities,Ee=Yt.disabled,Ze=Yt.dragging,on=Yt.dragOverNodeKey,nn=Yt.dropPosition,qe=Yt.motion,En=Yt.height,fn=Yt.itemHeight,Pn=Yt.virtual,Mn=Yt.scrollWidth,ii=Yt.focusable,Tn=Yt.activeItem,oi=Yt.focused,vi=Yt.tabIndex,yi=Yt.onKeyDown,Zi=Yt.onFocus,Hi=Yt.onBlur,Yi=Yt.onActiveChange,zi=Yt.onListChangeStart,Pi=Yt.onListChangeEnd,Gi=(0,gt.Z)(Yt,Pe),Kt=tt.useRef(null),zn=tt.useRef(null);tt.useImperativeHandle(oe,function(){return{scrollTo:function(Sn){Kt.current.scrollTo(Sn)},getIndentWidth:function(){return zn.current.offsetWidth}}});var Rn=tt.useState($t),bn=(0,ft.Z)(Rn,2),_n=bn[0],Yn=bn[1],Xn=tt.useState(It),Ri=(0,ft.Z)(Xn,2),ki=Ri[0],Xe=Ri[1],Je=tt.useState(It),Ke=(0,ft.Z)(Je,2),Hn=Ke[0],Jn=Ke[1],qn=tt.useState([]),pn=(0,ft.Z)(qn,2),Bn=pn[0],hi=pn[1],Ti=tt.useState(null),Di=(0,ft.Z)(Ti,2),we=Di[0],je=Di[1],An=tt.useRef(It);An.current=It;function Nn(){var xn=An.current;Xe(xn),Jn(xn),hi([]),je(null),Pi()}(0,Lt.Z)(function(){Yn($t);var xn=Ne(_n,$t);if(xn.key!==null)if(xn.add){var Sn=ki.findIndex(function(ai){var ci=ai.key;return ci===xn.key}),Wn=ue(Ge(ki,It,xn.key),Pn,En,fn),Fn=ki.slice();Fn.splice(Sn+1,0,pe),Jn(Fn),hi(Wn),je("show")}else{var jn=It.findIndex(function(ai){var ci=ai.key;return ci===xn.key}),In=ue(Ge(It,ki,xn.key),Pn,En,fn),Ai=It.slice();Ai.splice(jn+1,0,pe),Jn(Ai),hi(In),je("hide")}else ki!==It&&(Xe(It),Jn(It))},[$t,It]),tt.useEffect(function(){Ze||Nn()},[Ze]);var tn=qe?Hn:It,yn={expandedKeys:$t,selectedKeys:zt,loadedKeys:le,loadingKeys:ye,checkedKeys:Gt,halfCheckedKeys:Ue,dragOverNodeKey:on,dropPosition:nn,keyEntities:We};return tt.createElement(tt.Fragment,null,oi&&Tn&&tt.createElement("span",{style:ze,"aria-live":"assertive"},Fe(Tn)),tt.createElement("div",null,tt.createElement("input",{style:ze,disabled:ii===!1||Ee,tabIndex:ii!==!1?vi:null,onKeyDown:yi,onFocus:Zi,onBlur:Hi,value:"",onChange:he,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(_t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(_t,"-indent")},tt.createElement("div",{ref:zn,className:"".concat(_t,"-indent-unit")}))),tt.createElement(Rt.Z,(0,ee.Z)({},Gi,{data:tn,itemKey:Re,height:En,fullHeight:!1,virtual:Pn,itemHeight:fn,scrollWidth:Mn,prefixCls:"".concat(_t,"-list"),ref:Kt,role:"tree",onVisibleChange:function(Sn){Sn.every(function(Wn){return Re(Wn)!==Jt})&&Nn()}}),function(xn){var Sn=xn.pos,Wn=Object.assign({},(ct(xn.data),xn.data)),Fn=xn.title,jn=xn.key,In=xn.isStart,Ai=xn.isEnd,ai=(0,Vt.km)(jn,Sn);delete Wn.key,delete Wn.children;var ci=(0,Vt.H8)(ai,yn);return tt.createElement(be,(0,ee.Z)({},Wn,ci,{title:Fn,active:!!Tn&&jn===Tn.key,pos:Sn,data:xn.data,isStart:In,isEnd:Ai,motion:qe,motionNodes:jn===Jt?Bn:null,motionType:we,onMotionStart:zi,onMotionEnd:Nn,treeNodeRequiredProps:yn,onMouseMove:function(){Yi(null)}}))}))}),Ae=Qe,_e=ce(82661),Le=ce(34643),Oe=ce(65065),He=10,ie=function(Yt){(0,Mt.Z)(_t,Yt);var oe=(0,Bt.Z)(_t);function _t(){var It;(0,Ot.Z)(this,_t);for(var Pt=arguments.length,Et=new Array(Pt),$t=0;$t<Pt;$t++)Et[$t]=arguments[$t];return It=oe.call.apply(oe,[this].concat(Et)),(0,St.Z)((0,Ct.Z)(It),"destroyed",!1),(0,St.Z)((0,Ct.Z)(It),"delayedDragEnterLogic",void 0),(0,St.Z)((0,Ct.Z)(It),"loadingRetryTimes",{}),(0,St.Z)((0,Ct.Z)(It),"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,Vt.w$)()}),(0,St.Z)((0,Ct.Z)(It),"dragStartMousePosition",null),(0,St.Z)((0,Ct.Z)(It),"dragNodeProps",null),(0,St.Z)((0,Ct.Z)(It),"currentMouseOverDroppableNodeKey",null),(0,St.Z)((0,Ct.Z)(It),"listRef",tt.createRef()),(0,St.Z)((0,Ct.Z)(It),"onNodeDragStart",function(zt,Gt){var le=It.state,ye=le.expandedKeys,Ue=le.keyEntities,We=It.props.onDragStart,Ee=Gt.eventKey;It.dragNodeProps=Gt,It.dragStartMousePosition={x:zt.clientX,y:zt.clientY};var Ze=(0,_e._5)(ye,Ee);It.setState({draggingNodeKey:Ee,dragChildrenKeys:(0,_e.wA)(Ee,Ue),indent:It.listRef.current.getIndentWidth()}),It.setExpandedKeys(Ze),window.addEventListener("dragend",It.onWindowDragEnd),We==null||We({event:zt,node:(0,Vt.F)(Gt)})}),(0,St.Z)((0,Ct.Z)(It),"onNodeDragEnter",function(zt,Gt){var le=It.state,ye=le.expandedKeys,Ue=le.keyEntities,We=le.dragChildrenKeys,Ee=le.flattenNodes,Ze=le.indent,on=It.props,nn=on.onDragEnter,qe=on.onExpand,En=on.allowDrop,fn=on.direction,Pn=Gt.pos,Mn=Gt.eventKey;if(It.currentMouseOverDroppableNodeKey!==Mn&&(It.currentMouseOverDroppableNodeKey=Mn),!It.dragNodeProps){It.resetDragState();return}var ii=(0,_e.OM)(zt,It.dragNodeProps,Gt,Ze,It.dragStartMousePosition,En,Ee,Ue,ye,fn),Tn=ii.dropPosition,oi=ii.dropLevelOffset,vi=ii.dropTargetKey,yi=ii.dropContainerKey,Zi=ii.dropTargetPos,Hi=ii.dropAllowed,Yi=ii.dragOverNodeKey;if(We.includes(vi)||!Hi){It.resetDragState();return}if(It.delayedDragEnterLogic||(It.delayedDragEnterLogic={}),Object.keys(It.delayedDragEnterLogic).forEach(function(zi){clearTimeout(It.delayedDragEnterLogic[zi])}),It.dragNodeProps.eventKey!==Gt.eventKey&&(zt.persist(),It.delayedDragEnterLogic[Pn]=window.setTimeout(function(){if(It.state.draggingNodeKey!==null){var zi=(0,Zt.Z)(ye),Pi=(0,Oe.Z)(Ue,Gt.eventKey);Pi&&(Pi.children||[]).length&&(zi=(0,_e.L0)(ye,Gt.eventKey)),It.props.hasOwnProperty("expandedKeys")||It.setExpandedKeys(zi),qe==null||qe(zi,{node:(0,Vt.F)(Gt),expanded:!0,nativeEvent:zt.nativeEvent})}},800)),It.dragNodeProps.eventKey===vi&&oi===0){It.resetDragState();return}It.setState({dragOverNodeKey:Yi,dropPosition:Tn,dropLevelOffset:oi,dropTargetKey:vi,dropContainerKey:yi,dropTargetPos:Zi,dropAllowed:Hi}),nn==null||nn({event:zt,node:(0,Vt.F)(Gt),expandedKeys:ye})}),(0,St.Z)((0,Ct.Z)(It),"onNodeDragOver",function(zt,Gt){var le=It.state,ye=le.dragChildrenKeys,Ue=le.flattenNodes,We=le.keyEntities,Ee=le.expandedKeys,Ze=le.indent,on=It.props,nn=on.onDragOver,qe=on.allowDrop,En=on.direction;if(It.dragNodeProps){var fn=(0,_e.OM)(zt,It.dragNodeProps,Gt,Ze,It.dragStartMousePosition,qe,Ue,We,Ee,En),Pn=fn.dropPosition,Mn=fn.dropLevelOffset,ii=fn.dropTargetKey,Tn=fn.dropContainerKey,oi=fn.dropTargetPos,vi=fn.dropAllowed,yi=fn.dragOverNodeKey;ye.includes(ii)||!vi||(It.dragNodeProps.eventKey===ii&&Mn===0?It.state.dropPosition===null&&It.state.dropLevelOffset===null&&It.state.dropTargetKey===null&&It.state.dropContainerKey===null&&It.state.dropTargetPos===null&&It.state.dropAllowed===!1&&It.state.dragOverNodeKey===null||It.resetDragState():Pn===It.state.dropPosition&&Mn===It.state.dropLevelOffset&&ii===It.state.dropTargetKey&&Tn===It.state.dropContainerKey&&oi===It.state.dropTargetPos&&vi===It.state.dropAllowed&&yi===It.state.dragOverNodeKey||It.setState({dropPosition:Pn,dropLevelOffset:Mn,dropTargetKey:ii,dropContainerKey:Tn,dropTargetPos:oi,dropAllowed:vi,dragOverNodeKey:yi}),nn==null||nn({event:zt,node:(0,Vt.F)(Gt)}))}}),(0,St.Z)((0,Ct.Z)(It),"onNodeDragLeave",function(zt,Gt){It.currentMouseOverDroppableNodeKey===Gt.eventKey&&!zt.currentTarget.contains(zt.relatedTarget)&&(It.resetDragState(),It.currentMouseOverDroppableNodeKey=null);var le=It.props.onDragLeave;le==null||le({event:zt,node:(0,Vt.F)(Gt)})}),(0,St.Z)((0,Ct.Z)(It),"onWindowDragEnd",function(zt){It.onNodeDragEnd(zt,null,!0),window.removeEventListener("dragend",It.onWindowDragEnd)}),(0,St.Z)((0,Ct.Z)(It),"onNodeDragEnd",function(zt,Gt){var le=It.props.onDragEnd;It.setState({dragOverNodeKey:null}),It.cleanDragState(),le==null||le({event:zt,node:(0,Vt.F)(Gt)}),It.dragNodeProps=null,window.removeEventListener("dragend",It.onWindowDragEnd)}),(0,St.Z)((0,Ct.Z)(It),"onNodeDrop",function(zt,Gt){var le,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ue=It.state,We=Ue.dragChildrenKeys,Ee=Ue.dropPosition,Ze=Ue.dropTargetKey,on=Ue.dropTargetPos,nn=Ue.dropAllowed;if(nn){var qe=It.props.onDrop;if(It.setState({dragOverNodeKey:null}),It.cleanDragState(),Ze!==null){var En=(0,Qt.Z)((0,Qt.Z)({},(0,Vt.H8)(Ze,It.getTreeNodeRequiredProps())),{},{active:((le=It.getActiveItem())===null||le===void 0?void 0:le.key)===Ze,data:(0,Oe.Z)(It.state.keyEntities,Ze).node}),fn=We.includes(Ze);(0,et.ZP)(!fn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Pn=(0,_e.yx)(on),Mn={event:zt,node:(0,Vt.F)(En),dragNode:It.dragNodeProps?(0,Vt.F)(It.dragNodeProps):null,dragNodesKeys:[It.dragNodeProps.eventKey].concat(We),dropToGap:Ee!==0,dropPosition:Ee+Number(Pn[Pn.length-1])};ye||qe==null||qe(Mn),It.dragNodeProps=null}}}),(0,St.Z)((0,Ct.Z)(It),"cleanDragState",function(){var zt=It.state.draggingNodeKey;zt!==null&&It.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),It.dragStartMousePosition=null,It.currentMouseOverDroppableNodeKey=null}),(0,St.Z)((0,Ct.Z)(It),"triggerExpandActionExpand",function(zt,Gt){var le=It.state,ye=le.expandedKeys,Ue=le.flattenNodes,We=Gt.expanded,Ee=Gt.key,Ze=Gt.isLeaf;if(!(Ze||zt.shiftKey||zt.metaKey||zt.ctrlKey)){var on=Ue.filter(function(qe){return qe.key===Ee})[0],nn=(0,Vt.F)((0,Qt.Z)((0,Qt.Z)({},(0,Vt.H8)(Ee,It.getTreeNodeRequiredProps())),{},{data:on.data}));It.setExpandedKeys(We?(0,_e._5)(ye,Ee):(0,_e.L0)(ye,Ee)),It.onNodeExpand(zt,nn)}}),(0,St.Z)((0,Ct.Z)(It),"onNodeClick",function(zt,Gt){var le=It.props,ye=le.onClick,Ue=le.expandAction;Ue==="click"&&It.triggerExpandActionExpand(zt,Gt),ye==null||ye(zt,Gt)}),(0,St.Z)((0,Ct.Z)(It),"onNodeDoubleClick",function(zt,Gt){var le=It.props,ye=le.onDoubleClick,Ue=le.expandAction;Ue==="doubleClick"&&It.triggerExpandActionExpand(zt,Gt),ye==null||ye(zt,Gt)}),(0,St.Z)((0,Ct.Z)(It),"onNodeSelect",function(zt,Gt){var le=It.state.selectedKeys,ye=It.state,Ue=ye.keyEntities,We=ye.fieldNames,Ee=It.props,Ze=Ee.onSelect,on=Ee.multiple,nn=Gt.selected,qe=Gt[We.key],En=!nn;En?on?le=(0,_e.L0)(le,qe):le=[qe]:le=(0,_e._5)(le,qe);var fn=le.map(function(Pn){var Mn=(0,Oe.Z)(Ue,Pn);return Mn?Mn.node:null}).filter(Boolean);It.setUncontrolledState({selectedKeys:le}),Ze==null||Ze(le,{event:"select",selected:En,node:Gt,selectedNodes:fn,nativeEvent:zt.nativeEvent})}),(0,St.Z)((0,Ct.Z)(It),"onNodeCheck",function(zt,Gt,le){var ye=It.state,Ue=ye.keyEntities,We=ye.checkedKeys,Ee=ye.halfCheckedKeys,Ze=It.props,on=Ze.checkStrictly,nn=Ze.onCheck,qe=Gt.key,En,fn={event:"check",node:Gt,checked:le,nativeEvent:zt.nativeEvent};if(on){var Pn=le?(0,_e.L0)(We,qe):(0,_e._5)(We,qe),Mn=(0,_e._5)(Ee,qe);En={checked:Pn,halfChecked:Mn},fn.checkedNodes=Pn.map(function(Zi){return(0,Oe.Z)(Ue,Zi)}).filter(Boolean).map(function(Zi){return Zi.node}),It.setUncontrolledState({checkedKeys:Pn})}else{var ii=(0,Le.S)([].concat((0,Zt.Z)(We),[qe]),!0,Ue),Tn=ii.checkedKeys,oi=ii.halfCheckedKeys;if(!le){var vi=new Set(Tn);vi.delete(qe);var yi=(0,Le.S)(Array.from(vi),{checked:!1,halfCheckedKeys:oi},Ue);Tn=yi.checkedKeys,oi=yi.halfCheckedKeys}En=Tn,fn.checkedNodes=[],fn.checkedNodesPositions=[],fn.halfCheckedKeys=oi,Tn.forEach(function(Zi){var Hi=(0,Oe.Z)(Ue,Zi);if(Hi){var Yi=Hi.node,zi=Hi.pos;fn.checkedNodes.push(Yi),fn.checkedNodesPositions.push({node:Yi,pos:zi})}}),It.setUncontrolledState({checkedKeys:Tn},!1,{halfCheckedKeys:oi})}nn==null||nn(En,fn)}),(0,St.Z)((0,Ct.Z)(It),"onNodeLoad",function(zt){var Gt,le=zt.key,ye=It.state.keyEntities,Ue=(0,Oe.Z)(ye,le);if(!(Ue!=null&&(Gt=Ue.children)!==null&&Gt!==void 0&&Gt.length)){var We=new Promise(function(Ee,Ze){It.setState(function(on){var nn=on.loadedKeys,qe=nn===void 0?[]:nn,En=on.loadingKeys,fn=En===void 0?[]:En,Pn=It.props,Mn=Pn.loadData,ii=Pn.onLoad;if(!Mn||qe.includes(le)||fn.includes(le))return null;var Tn=Mn(zt);return Tn.then(function(){var oi=It.state.loadedKeys,vi=(0,_e.L0)(oi,le);ii==null||ii(vi,{event:"load",node:zt}),It.setUncontrolledState({loadedKeys:vi}),It.setState(function(yi){return{loadingKeys:(0,_e._5)(yi.loadingKeys,le)}}),Ee()}).catch(function(oi){if(It.setState(function(yi){return{loadingKeys:(0,_e._5)(yi.loadingKeys,le)}}),It.loadingRetryTimes[le]=(It.loadingRetryTimes[le]||0)+1,It.loadingRetryTimes[le]>=He){var vi=It.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),It.setUncontrolledState({loadedKeys:(0,_e.L0)(vi,le)}),Ee()}Ze(oi)}),{loadingKeys:(0,_e.L0)(fn,le)}})});return We.catch(function(){}),We}}),(0,St.Z)((0,Ct.Z)(It),"onNodeMouseEnter",function(zt,Gt){var le=It.props.onMouseEnter;le==null||le({event:zt,node:Gt})}),(0,St.Z)((0,Ct.Z)(It),"onNodeMouseLeave",function(zt,Gt){var le=It.props.onMouseLeave;le==null||le({event:zt,node:Gt})}),(0,St.Z)((0,Ct.Z)(It),"onNodeContextMenu",function(zt,Gt){var le=It.props.onRightClick;le&&(zt.preventDefault(),le({event:zt,node:Gt}))}),(0,St.Z)((0,Ct.Z)(It),"onFocus",function(){var zt=It.props.onFocus;It.setState({focused:!0});for(var Gt=arguments.length,le=new Array(Gt),ye=0;ye<Gt;ye++)le[ye]=arguments[ye];zt==null||zt.apply(void 0,le)}),(0,St.Z)((0,Ct.Z)(It),"onBlur",function(){var zt=It.props.onBlur;It.setState({focused:!1}),It.onActiveChange(null);for(var Gt=arguments.length,le=new Array(Gt),ye=0;ye<Gt;ye++)le[ye]=arguments[ye];zt==null||zt.apply(void 0,le)}),(0,St.Z)((0,Ct.Z)(It),"getTreeNodeRequiredProps",function(){var zt=It.state,Gt=zt.expandedKeys,le=zt.selectedKeys,ye=zt.loadedKeys,Ue=zt.loadingKeys,We=zt.checkedKeys,Ee=zt.halfCheckedKeys,Ze=zt.dragOverNodeKey,on=zt.dropPosition,nn=zt.keyEntities;return{expandedKeys:Gt||[],selectedKeys:le||[],loadedKeys:ye||[],loadingKeys:Ue||[],checkedKeys:We||[],halfCheckedKeys:Ee||[],dragOverNodeKey:Ze,dropPosition:on,keyEntities:nn}}),(0,St.Z)((0,Ct.Z)(It),"setExpandedKeys",function(zt){var Gt=It.state,le=Gt.treeData,ye=Gt.fieldNames,Ue=(0,Vt.oH)(le,zt,ye);It.setUncontrolledState({expandedKeys:zt,flattenNodes:Ue},!0)}),(0,St.Z)((0,Ct.Z)(It),"onNodeExpand",function(zt,Gt){var le=It.state.expandedKeys,ye=It.state,Ue=ye.listChanging,We=ye.fieldNames,Ee=It.props,Ze=Ee.onExpand,on=Ee.loadData,nn=Gt.expanded,qe=Gt[We.key];if(!Ue){var En=le.includes(qe),fn=!nn;if((0,et.ZP)(nn&&En||!nn&&!En,"Expand state not sync with index check"),le=fn?(0,_e.L0)(le,qe):(0,_e._5)(le,qe),It.setExpandedKeys(le),Ze==null||Ze(le,{node:Gt,expanded:fn,nativeEvent:zt.nativeEvent}),fn&&on){var Pn=It.onNodeLoad(Gt);Pn&&Pn.then(function(){var Mn=(0,Vt.oH)(It.state.treeData,le,We);It.setUncontrolledState({flattenNodes:Mn})}).catch(function(){var Mn=It.state.expandedKeys,ii=(0,_e._5)(Mn,qe);It.setExpandedKeys(ii)})}}}),(0,St.Z)((0,Ct.Z)(It),"onListChangeStart",function(){It.setUncontrolledState({listChanging:!0})}),(0,St.Z)((0,Ct.Z)(It),"onListChangeEnd",function(){setTimeout(function(){It.setUncontrolledState({listChanging:!1})})}),(0,St.Z)((0,Ct.Z)(It),"onActiveChange",function(zt){var Gt=It.state.activeKey,le=It.props,ye=le.onActiveChange,Ue=le.itemScrollOffset,We=Ue===void 0?0:Ue;Gt!==zt&&(It.setState({activeKey:zt}),zt!==null&&It.scrollTo({key:zt,offset:We}),ye==null||ye(zt))}),(0,St.Z)((0,Ct.Z)(It),"getActiveItem",function(){var zt=It.state,Gt=zt.activeKey,le=zt.flattenNodes;return Gt===null?null:le.find(function(ye){var Ue=ye.key;return Ue===Gt})||null}),(0,St.Z)((0,Ct.Z)(It),"offsetActiveKey",function(zt){var Gt=It.state,le=Gt.flattenNodes,ye=Gt.activeKey,Ue=le.findIndex(function(Ze){var on=Ze.key;return on===ye});Ue===-1&&zt<0&&(Ue=le.length),Ue=(Ue+zt+le.length)%le.length;var We=le[Ue];if(We){var Ee=We.key;It.onActiveChange(Ee)}else It.onActiveChange(null)}),(0,St.Z)((0,Ct.Z)(It),"onKeyDown",function(zt){var Gt=It.state,le=Gt.activeKey,ye=Gt.expandedKeys,Ue=Gt.checkedKeys,We=Gt.fieldNames,Ee=It.props,Ze=Ee.onKeyDown,on=Ee.checkable,nn=Ee.selectable;switch(zt.which){case Dt.Z.UP:{It.offsetActiveKey(-1),zt.preventDefault();break}case Dt.Z.DOWN:{It.offsetActiveKey(1),zt.preventDefault();break}}var qe=It.getActiveItem();if(qe&&qe.data){var En=It.getTreeNodeRequiredProps(),fn=qe.data.isLeaf===!1||!!(qe.data[We.children]||[]).length,Pn=(0,Vt.F)((0,Qt.Z)((0,Qt.Z)({},(0,Vt.H8)(le,En)),{},{data:qe.data,active:!0}));switch(zt.which){case Dt.Z.LEFT:{fn&&ye.includes(le)?It.onNodeExpand({},Pn):qe.parent&&It.onActiveChange(qe.parent.key),zt.preventDefault();break}case Dt.Z.RIGHT:{fn&&!ye.includes(le)?It.onNodeExpand({},Pn):qe.children&&qe.children.length&&It.onActiveChange(qe.children[0].key),zt.preventDefault();break}case Dt.Z.ENTER:case Dt.Z.SPACE:{on&&!Pn.disabled&&Pn.checkable!==!1&&!Pn.disableCheckbox?It.onNodeCheck({},Pn,!Ue.includes(le)):!on&&nn&&!Pn.disabled&&Pn.selectable!==!1&&It.onNodeSelect({},Pn);break}}}Ze==null||Ze(zt)}),(0,St.Z)((0,Ct.Z)(It),"setUncontrolledState",function(zt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!It.destroyed){var ye=!1,Ue=!0,We={};Object.keys(zt).forEach(function(Ee){if(It.props.hasOwnProperty(Ee)){Ue=!1;return}ye=!0,We[Ee]=zt[Ee]}),ye&&(!Gt||Ue)&&It.setState((0,Qt.Z)((0,Qt.Z)({},We),le))}}),(0,St.Z)((0,Ct.Z)(It),"scrollTo",function(zt){It.listRef.current.scrollTo(zt)}),It}return(0,jt.Z)(_t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Pt=this.props,Et=Pt.activeKey,$t=Pt.itemScrollOffset,zt=$t===void 0?0:$t;Et!==void 0&&Et!==this.state.activeKey&&(this.setState({activeKey:Et}),Et!==null&&this.scrollTo({key:Et,offset:zt}))}},{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 Pt=this.state,Et=Pt.focused,$t=Pt.flattenNodes,zt=Pt.keyEntities,Gt=Pt.draggingNodeKey,le=Pt.activeKey,ye=Pt.dropLevelOffset,Ue=Pt.dropContainerKey,We=Pt.dropTargetKey,Ee=Pt.dropPosition,Ze=Pt.dragOverNodeKey,on=Pt.indent,nn=this.props,qe=nn.prefixCls,En=nn.className,fn=nn.style,Pn=nn.showLine,Mn=nn.focusable,ii=nn.tabIndex,Tn=ii===void 0?0:ii,oi=nn.selectable,vi=nn.showIcon,yi=nn.icon,Zi=nn.switcherIcon,Hi=nn.draggable,Yi=nn.checkable,zi=nn.checkStrictly,Pi=nn.disabled,Gi=nn.motion,Kt=nn.loadData,zn=nn.filterTreeNode,Rn=nn.height,bn=nn.itemHeight,_n=nn.scrollWidth,Yn=nn.virtual,Xn=nn.titleRender,Ri=nn.dropIndicatorRender,ki=nn.onContextMenu,Xe=nn.onScroll,Je=nn.direction,Ke=nn.rootClassName,Hn=nn.rootStyle,Jn=(0,yt.Z)(this.props,{aria:!0,data:!0}),qn;Hi&&((0,wt.Z)(Hi)==="object"?qn=Hi:typeof Hi=="function"?qn={nodeDraggable:Hi}:qn={});var pn={prefixCls:qe,selectable:oi,showIcon:vi,icon:yi,switcherIcon:Zi,draggable:qn,draggingNodeKey:Gt,checkable:Yi,checkStrictly:zi,disabled:Pi,keyEntities:zt,dropLevelOffset:ye,dropContainerKey:Ue,dropTargetKey:We,dropPosition:Ee,dragOverNodeKey:Ze,indent:on,direction:Je,dropIndicatorRender:Ri,loadData:Kt,filterTreeNode:zn,titleRender:Xn,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 tt.createElement(lt.k.Provider,{value:pn},tt.createElement("div",{className:xt()(qe,En,Ke,(0,St.Z)((0,St.Z)((0,St.Z)({},"".concat(qe,"-show-line"),Pn),"".concat(qe,"-focused"),Et),"".concat(qe,"-active-focused"),le!==null)),style:Hn},tt.createElement(Ae,(0,ee.Z)({ref:this.listRef,prefixCls:qe,style:fn,data:$t,disabled:Pi,selectable:oi,checkable:!!Yi,motion:Gi,dragging:Gt!==null,height:Rn,itemHeight:bn,virtual:Yn,focusable:Mn,focused:Et,tabIndex:Tn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ki,onScroll:Xe,scrollWidth:_n},this.getTreeNodeRequiredProps(),Jn))))}}],[{key:"getDerivedStateFromProps",value:function(Pt,Et){var $t=Et.prevProps,zt={prevProps:Pt};function Gt(Tn){return!$t&&Pt.hasOwnProperty(Tn)||$t&&$t[Tn]!==Pt[Tn]}var le,ye=Et.fieldNames;if(Gt("fieldNames")&&(ye=(0,Vt.w$)(Pt.fieldNames),zt.fieldNames=ye),Gt("treeData")?le=Pt.treeData:Gt("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),le=(0,Vt.zn)(Pt.children)),le){zt.treeData=le;var Ue=(0,Vt.I8)(le,{fieldNames:ye});zt.keyEntities=(0,Qt.Z)((0,St.Z)({},Jt,se),Ue.keyEntities)}var We=zt.keyEntities||Et.keyEntities;if(Gt("expandedKeys")||$t&&Gt("autoExpandParent"))zt.expandedKeys=Pt.autoExpandParent||!$t&&Pt.defaultExpandParent?(0,_e.r7)(Pt.expandedKeys,We):Pt.expandedKeys;else if(!$t&&Pt.defaultExpandAll){var Ee=(0,Qt.Z)({},We);delete Ee[Jt];var Ze=[];Object.keys(Ee).forEach(function(Tn){var oi=Ee[Tn];oi.children&&oi.children.length&&Ze.push(oi.key)}),zt.expandedKeys=Ze}else!$t&&Pt.defaultExpandedKeys&&(zt.expandedKeys=Pt.autoExpandParent||Pt.defaultExpandParent?(0,_e.r7)(Pt.defaultExpandedKeys,We):Pt.defaultExpandedKeys);if(zt.expandedKeys||delete zt.expandedKeys,le||zt.expandedKeys){var on=(0,Vt.oH)(le||Et.treeData,zt.expandedKeys||Et.expandedKeys,ye);zt.flattenNodes=on}if(Pt.selectable&&(Gt("selectedKeys")?zt.selectedKeys=(0,_e.BT)(Pt.selectedKeys,Pt):!$t&&Pt.defaultSelectedKeys&&(zt.selectedKeys=(0,_e.BT)(Pt.defaultSelectedKeys,Pt))),Pt.checkable){var nn;if(Gt("checkedKeys")?nn=(0,_e.E6)(Pt.checkedKeys)||{}:!$t&&Pt.defaultCheckedKeys?nn=(0,_e.E6)(Pt.defaultCheckedKeys)||{}:le&&(nn=(0,_e.E6)(Pt.checkedKeys)||{checkedKeys:Et.checkedKeys,halfCheckedKeys:Et.halfCheckedKeys}),nn){var qe=nn,En=qe.checkedKeys,fn=En===void 0?[]:En,Pn=qe.halfCheckedKeys,Mn=Pn===void 0?[]:Pn;if(!Pt.checkStrictly){var ii=(0,Le.S)(fn,!0,We);fn=ii.checkedKeys,Mn=ii.halfCheckedKeys}zt.checkedKeys=fn,zt.halfCheckedKeys=Mn}}return Gt("loadedKeys")&&(zt.loadedKeys=Pt.loadedKeys),zt}}]),_t}(tt.Component);(0,St.Z)(ie,"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:ut,allowDrop:function(){return!0},expandAction:!1}),(0,St.Z)(ie,"TreeNode",Nt.Z);var Tt=ie,At=Tt},82661:function(Cn,Gn,ce){"use strict";ce.d(Gn,{BT:function(){return tt},E6:function(){return ut},L0:function(){return St},OM:function(){return et},_5:function(){return Bt},r7:function(){return ct},wA:function(){return xt},yx:function(){return kt}});var ee=ce(95190),wt=ce(93664),Qt=ce(48736),Zt=ce(59301),Ot=ce(639),jt=ce(65065),Ct=ce(34061),Mt=null;function Bt(ft,gt){if(!ft)return[];var Lt=ft.slice(),Rt=Lt.indexOf(gt);return Rt>=0&&Lt.splice(Rt,1),Lt}function St(ft,gt){var Lt=(ft||[]).slice();return Lt.indexOf(gt)===-1&&Lt.push(gt),Lt}function kt(ft){return ft.split("-")}function xt(ft,gt){var Lt=[],Rt=(0,jt.Z)(gt,ft);function Ut(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Nt.forEach(function(qt){var te=qt.key,Vt=qt.children;Lt.push(te),Ut(Vt)})}return Ut(Rt.children),Lt}function Dt(ft){if(ft.parent){var gt=kt(ft.pos);return Number(gt[gt.length-1])===ft.parent.children.length-1}return!1}function yt(ft){var gt=kt(ft.pos);return Number(gt[gt.length-1])===0}function et(ft,gt,Lt,Rt,Ut,Nt,qt,te,Vt,de){var ge,be=ft.clientX,Ne=ft.clientY,Ge=ft.target.getBoundingClientRect(),Pe=Ge.top,ze=Ge.height,he=(de==="rtl"?-1:1)*(((Ut==null?void 0:Ut.x)||0)-be),Jt=(he-12)/Rt,re=Vt.filter(function(At){var Yt;return(Yt=te[At])===null||Yt===void 0||(Yt=Yt.children)===null||Yt===void 0?void 0:Yt.length}),se=(0,jt.Z)(te,Lt.eventKey);if(Ne<Pe+ze/2){var pe=qt.findIndex(function(At){return At.key===se.key}),ue=pe<=0?0:pe-1,Re=qt[ue].key;se=(0,jt.Z)(te,Re)}var Fe=se.key,Qe=se,Ae=se.key,_e=0,Le=0;if(!re.includes(Fe))for(var Oe=0;Oe<Jt&&Dt(se);Oe+=1)se=se.parent,Le+=1;var He=gt.data,ie=se.node,Tt=!0;return yt(se)&&se.level===0&&Ne<Pe+ze/2&&Nt({dragNode:He,dropNode:ie,dropPosition:-1})&&se.key===Lt.eventKey?_e=-1:(Qe.children||[]).length&&re.includes(Ae)?Nt({dragNode:He,dropNode:ie,dropPosition:0})?_e=0:Tt=!1:Le===0?Jt>-1.5?Nt({dragNode:He,dropNode:ie,dropPosition:1})?_e=1:Tt=!1:Nt({dragNode:He,dropNode:ie,dropPosition:0})?_e=0:Nt({dragNode:He,dropNode:ie,dropPosition:1})?_e=1:Tt=!1:Nt({dragNode:He,dropNode:ie,dropPosition:1})?_e=1:Tt=!1,{dropPosition:_e,dropLevelOffset:Le,dropTargetKey:se.key,dropTargetPos:se.pos,dragOverNodeKey:Ae,dropContainerKey:_e===0?null:((ge=se.parent)===null||ge===void 0?void 0:ge.key)||null,dropAllowed:Tt}}function tt(ft,gt){if(ft){var Lt=gt.multiple;return Lt?ft.slice():ft.length?[ft[0]]:ft}}var lt=function(gt){return gt};function ot(ft,gt){if(!ft)return[];var Lt=gt||{},Rt=Lt.processProps,Ut=Rt===void 0?lt:Rt,Nt=Array.isArray(ft)?ft:[ft];return Nt.map(function(qt){var te=qt.children,Vt=_objectWithoutProperties(qt,Mt),de=ot(te,gt);return React.createElement(TreeNode,_extends({key:Vt.key},Ut(Vt)),de)})}function ut(ft){if(!ft)return null;var gt;if(Array.isArray(ft))gt={checkedKeys:ft,halfCheckedKeys:void 0};else if((0,wt.Z)(ft)==="object")gt={checkedKeys:ft.checked||void 0,halfCheckedKeys:ft.halfChecked||void 0};else return(0,Qt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return gt}function ct(ft,gt){var Lt=new Set;function Rt(Ut){if(!Lt.has(Ut)){var Nt=(0,jt.Z)(gt,Ut);if(Nt){Lt.add(Ut);var qt=Nt.parent,te=Nt.node;te.disabled||qt&&Rt(qt.key)}}}return(ft||[]).forEach(function(Ut){Rt(Ut)}),(0,ee.Z)(Lt)}},34643:function(Cn,Gn,ce){"use strict";ce.d(Gn,{S:function(){return Ct}});var ee=ce(48736),wt=ce(65065);function Qt(Mt,Bt){var St=new Set;return Mt.forEach(function(kt){Bt.has(kt)||St.add(kt)}),St}function Zt(Mt){var Bt=Mt||{},St=Bt.disabled,kt=Bt.disableCheckbox,xt=Bt.checkable;return!!(St||kt)||xt===!1}function Ot(Mt,Bt,St,kt){for(var xt=new Set(Mt),Dt=new Set,yt=0;yt<=St;yt+=1){var et=Bt.get(yt)||new Set;et.forEach(function(ut){var ct=ut.key,ft=ut.node,gt=ut.children,Lt=gt===void 0?[]:gt;xt.has(ct)&&!kt(ft)&&Lt.filter(function(Rt){return!kt(Rt.node)}).forEach(function(Rt){xt.add(Rt.key)})})}for(var tt=new Set,lt=St;lt>=0;lt-=1){var ot=Bt.get(lt)||new Set;ot.forEach(function(ut){var ct=ut.parent,ft=ut.node;if(!(kt(ft)||!ut.parent||tt.has(ut.parent.key))){if(kt(ut.parent.node)){tt.add(ct.key);return}var gt=!0,Lt=!1;(ct.children||[]).filter(function(Rt){return!kt(Rt.node)}).forEach(function(Rt){var Ut=Rt.key,Nt=xt.has(Ut);gt&&!Nt&&(gt=!1),!Lt&&(Nt||Dt.has(Ut))&&(Lt=!0)}),gt&&xt.add(ct.key),Lt&&Dt.add(ct.key),tt.add(ct.key)}})}return{checkedKeys:Array.from(xt),halfCheckedKeys:Array.from(Qt(Dt,xt))}}function jt(Mt,Bt,St,kt,xt){for(var Dt=new Set(Mt),yt=new Set(Bt),et=0;et<=kt;et+=1){var tt=St.get(et)||new Set;tt.forEach(function(ct){var ft=ct.key,gt=ct.node,Lt=ct.children,Rt=Lt===void 0?[]:Lt;!Dt.has(ft)&&!yt.has(ft)&&!xt(gt)&&Rt.filter(function(Ut){return!xt(Ut.node)}).forEach(function(Ut){Dt.delete(Ut.key)})})}yt=new Set;for(var lt=new Set,ot=kt;ot>=0;ot-=1){var ut=St.get(ot)||new Set;ut.forEach(function(ct){var ft=ct.parent,gt=ct.node;if(!(xt(gt)||!ct.parent||lt.has(ct.parent.key))){if(xt(ct.parent.node)){lt.add(ft.key);return}var Lt=!0,Rt=!1;(ft.children||[]).filter(function(Ut){return!xt(Ut.node)}).forEach(function(Ut){var Nt=Ut.key,qt=Dt.has(Nt);Lt&&!qt&&(Lt=!1),!Rt&&(qt||yt.has(Nt))&&(Rt=!0)}),Lt||Dt.delete(ft.key),Rt&&yt.add(ft.key),lt.add(ft.key)}})}return{checkedKeys:Array.from(Dt),halfCheckedKeys:Array.from(Qt(yt,Dt))}}function Ct(Mt,Bt,St,kt){var xt=[],Dt;kt?Dt=kt:Dt=Zt;var yt=new Set(Mt.filter(function(ot){var ut=!!(0,wt.Z)(St,ot);return ut||xt.push(ot),ut})),et=new Map,tt=0;Object.keys(St).forEach(function(ot){var ut=St[ot],ct=ut.level,ft=et.get(ct);ft||(ft=new Set,et.set(ct,ft)),ft.add(ut),tt=Math.max(tt,ct)}),(0,ee.ZP)(!xt.length,"Tree missing follow keys: ".concat(xt.slice(0,100).map(function(ot){return"'".concat(ot,"'")}).join(", ")));var lt;return Bt===!0?lt=Ot(yt,et,tt,Dt):lt=jt(yt,Bt.halfCheckedKeys,et,tt,Dt),lt}},65065:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return ee}});function ee(wt,Qt){return wt[Qt]}},34061:function(Cn,Gn,ce){"use strict";ce.d(Gn,{F:function(){return ct},H8:function(){return ut},I8:function(){return ot},km:function(){return xt},oH:function(){return tt},w$:function(){return Dt},zn:function(){return et}});var ee=ce(93664),wt=ce(95190),Qt=ce(20439),Zt=ce(62646),Ot=ce(11592),jt=ce(2738),Ct=ce(48736),Mt=ce(65065),Bt=["children"];function St(ft,gt){return"".concat(ft,"-").concat(gt)}function kt(ft){return ft&&ft.type&&ft.type.isTreeNode}function xt(ft,gt){return ft!=null?ft:gt}function Dt(ft){var gt=ft||{},Lt=gt.title,Rt=gt._title,Ut=gt.key,Nt=gt.children,qt=Lt||"title";return{title:qt,_title:Rt||[qt],key:Ut||"key",children:Nt||"children"}}function yt(ft,gt){var Lt=new Map;function Rt(Ut){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ut||[]).forEach(function(qt){var te=qt[gt.key],Vt=qt[gt.children];warning(te!=null,"Tree node must have a certain key: [".concat(Nt).concat(te,"]"));var de=String(te);warning(!Lt.has(de)||te===null||te===void 0,"Same 'key' exist in the Tree: ".concat(de)),Lt.set(de,!0),Rt(Vt,"".concat(Nt).concat(de," > "))})}Rt(ft)}function et(ft){function gt(Lt){var Rt=(0,Ot.Z)(Lt);return Rt.map(function(Ut){if(!kt(Ut))return(0,Ct.ZP)(!Ut,"Tree/TreeNode can only accept TreeNode as children."),null;var Nt=Ut.key,qt=Ut.props,te=qt.children,Vt=(0,Zt.Z)(qt,Bt),de=(0,Qt.Z)({key:Nt},Vt),ge=gt(te);return ge.length&&(de.children=ge),de}).filter(function(Ut){return Ut})}return gt(ft)}function tt(ft,gt,Lt){var Rt=Dt(Lt),Ut=Rt._title,Nt=Rt.key,qt=Rt.children,te=new Set(gt===!0?[]:gt),Vt=[];function de(ge){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ge.map(function(Ne,Ge){for(var Pe=St(be?be.pos:"0",Ge),ze=xt(Ne[Nt],Pe),he,Jt=0;Jt<Ut.length;Jt+=1){var re=Ut[Jt];if(Ne[re]!==void 0){he=Ne[re];break}}var se=Object.assign((0,jt.Z)(Ne,[].concat((0,wt.Z)(Ut),[Nt,qt])),{title:he,key:ze,parent:be,pos:Pe,children:null,data:Ne,isStart:[].concat((0,wt.Z)(be?be.isStart:[]),[Ge===0]),isEnd:[].concat((0,wt.Z)(be?be.isEnd:[]),[Ge===ge.length-1])});return Vt.push(se),gt===!0||te.has(ze)?se.children=de(Ne[qt]||[],se):se.children=[],se})}return de(ft),Vt}function lt(ft,gt,Lt){var Rt={};(0,ee.Z)(Lt)==="object"?Rt=Lt:Rt={externalGetKey:Lt},Rt=Rt||{};var Ut=Rt,Nt=Ut.childrenPropName,qt=Ut.externalGetKey,te=Ut.fieldNames,Vt=Dt(te),de=Vt.key,ge=Vt.children,be=Nt||ge,Ne;qt?typeof qt=="string"?Ne=function(ze){return ze[qt]}:typeof qt=="function"&&(Ne=function(ze){return qt(ze)}):Ne=function(ze,he){return xt(ze[de],he)};function Ge(Pe,ze,he,Jt){var re=Pe?Pe[be]:ft,se=Pe?St(he.pos,ze):"0",pe=Pe?[].concat((0,wt.Z)(Jt),[Pe]):[];if(Pe){var ue=Ne(Pe,se),Re={node:Pe,index:ze,pos:se,key:ue,parentPos:he.node?he.pos:null,level:he.level+1,nodes:pe};gt(Re)}re&&re.forEach(function(Fe,Qe){Ge(Fe,Qe,{node:Pe,pos:se,level:he?he.level+1:-1},pe)})}Ge(null)}function ot(ft){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Lt=gt.initWrapper,Rt=gt.processEntity,Ut=gt.onProcessFinished,Nt=gt.externalGetKey,qt=gt.childrenPropName,te=gt.fieldNames,Vt=arguments.length>2?arguments[2]:void 0,de=Nt||Vt,ge={},be={},Ne={posEntities:ge,keyEntities:be};return Lt&&(Ne=Lt(Ne)||Ne),lt(ft,function(Ge){var Pe=Ge.node,ze=Ge.index,he=Ge.pos,Jt=Ge.key,re=Ge.parentPos,se=Ge.level,pe=Ge.nodes,ue={node:Pe,nodes:pe,index:ze,key:Jt,pos:he,level:se},Re=xt(Jt,he);ge[he]=ue,be[Re]=ue,ue.parent=ge[re],ue.parent&&(ue.parent.children=ue.parent.children||[],ue.parent.children.push(ue)),Rt&&Rt(ue,Ne)},{externalGetKey:de,childrenPropName:qt,fieldNames:te}),Ut&&Ut(Ne),Ne}function ut(ft,gt){var Lt=gt.expandedKeys,Rt=gt.selectedKeys,Ut=gt.loadedKeys,Nt=gt.loadingKeys,qt=gt.checkedKeys,te=gt.halfCheckedKeys,Vt=gt.dragOverNodeKey,de=gt.dropPosition,ge=gt.keyEntities,be=(0,Mt.Z)(ge,ft),Ne={eventKey:ft,expanded:Lt.indexOf(ft)!==-1,selected:Rt.indexOf(ft)!==-1,loaded:Ut.indexOf(ft)!==-1,loading:Nt.indexOf(ft)!==-1,checked:qt.indexOf(ft)!==-1,halfChecked:te.indexOf(ft)!==-1,pos:String(be?be.pos:""),dragOver:Vt===ft&&de===0,dragOverGapTop:Vt===ft&&de===-1,dragOverGapBottom:Vt===ft&&de===1};return Ne}function ct(ft){var gt=ft.data,Lt=ft.expanded,Rt=ft.selected,Ut=ft.checked,Nt=ft.loaded,qt=ft.loading,te=ft.halfChecked,Vt=ft.dragOver,de=ft.dragOverGapTop,ge=ft.dragOverGapBottom,be=ft.pos,Ne=ft.active,Ge=ft.eventKey,Pe=(0,Qt.Z)((0,Qt.Z)({},gt),{},{expanded:Lt,selected:Rt,checked:Ut,loaded:Nt,loading:qt,halfChecked:te,dragOver:Vt,dragOverGapTop:de,dragOverGapBottom:ge,pos:be,active:Ne,key:Ge});return"props"in Pe||Object.defineProperty(Pe,"props",{get:function(){return(0,Ct.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ft}}),Pe}},90472:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Ge}});var ee=ce(14809),wt=ce(99153),Qt=ce(84851),Zt=ce(13028),Ot=ce(19257),jt=ce(93046),Ct=ce(4635),Mt=ce(59301),Bt=ce(20439),St=ce(62646),kt=ce(93664),xt=ce(70539),Dt=ce(95764),yt=ce(95190),et=ce(92310),tt=ce.n(et),lt=ce(26112),ot=ce(48736),ut=function(Pe,ze){if(Pe&&ze){var he=Array.isArray(ze)?ze:ze.split(","),Jt=Pe.name||"",re=Pe.type||"",se=re.replace(/\/.*$/,"");return he.some(function(pe){var ue=pe.trim();if(/^\*(\/\*)?$/.test(pe))return!0;if(ue.charAt(0)==="."){var Re=Jt.toLowerCase(),Fe=ue.toLowerCase(),Qe=[Fe];return(Fe===".jpg"||Fe===".jpeg")&&(Qe=[".jpg",".jpeg"]),Qe.some(function(Ae){return Re.endsWith(Ae)})}return/\/\*$/.test(ue)?se===ue.replace(/\/.*$/,""):re===ue?!0:/^\w+$/.test(ue)?((0,ot.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ue,"'.Skip for check.")),!0):!1})}return!0};function ct(Pe,ze){var he="cannot ".concat(Pe.method," ").concat(Pe.action," ").concat(ze.status,"'"),Jt=new Error(he);return Jt.status=ze.status,Jt.method=Pe.method,Jt.url=Pe.action,Jt}function ft(Pe){var ze=Pe.responseText||Pe.response;if(!ze)return ze;try{return JSON.parse(ze)}catch(he){return ze}}function gt(Pe){var ze=new XMLHttpRequest;Pe.onProgress&&ze.upload&&(ze.upload.onprogress=function(se){se.total>0&&(se.percent=se.loaded/se.total*100),Pe.onProgress(se)});var he=new FormData;Pe.data&&Object.keys(Pe.data).forEach(function(re){var se=Pe.data[re];if(Array.isArray(se)){se.forEach(function(pe){he.append("".concat(re,"[]"),pe)});return}he.append(re,se)}),Pe.file instanceof Blob?he.append(Pe.filename,Pe.file,Pe.file.name):he.append(Pe.filename,Pe.file),ze.onerror=function(se){Pe.onError(se)},ze.onload=function(){return ze.status<200||ze.status>=300?Pe.onError(ct(Pe,ze),ft(ze)):Pe.onSuccess(ft(ze),ze)},ze.open(Pe.method,Pe.action,!0),Pe.withCredentials&&"withCredentials"in ze&&(ze.withCredentials=!0);var Jt=Pe.headers||{};return Jt["X-Requested-With"]!==null&&ze.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Jt).forEach(function(re){Jt[re]!==null&&ze.setRequestHeader(re,Jt[re])}),ze.send(he),{abort:function(){ze.abort()}}}var Lt=function(){var Pe=(0,Dt.Z)((0,xt.Z)().mark(function ze(he,Jt){var re,se,pe,ue,Re,Fe,Qe,Ae;return(0,xt.Z)().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:Fe=function(){return Fe=(0,Dt.Z)((0,xt.Z)().mark(function He(ie){return(0,xt.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.abrupt("return",new Promise(function(Yt){ie.file(function(oe){Jt(oe)?(ie.fullPath&&!oe.webkitRelativePath&&(Object.defineProperties(oe,{webkitRelativePath:{writable:!0}}),oe.webkitRelativePath=ie.fullPath.replace(/^\//,""),Object.defineProperties(oe,{webkitRelativePath:{writable:!1}})),Yt(oe)):Yt(null)})}));case 1:case"end":return At.stop()}},He)})),Fe.apply(this,arguments)},Re=function(He){return Fe.apply(this,arguments)},ue=function(){return ue=(0,Dt.Z)((0,xt.Z)().mark(function He(ie){var Tt,At,Yt,oe,_t;return(0,xt.Z)().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:Tt=ie.createReader(),At=[];case 2:return Pt.next=5,new Promise(function(Et){Tt.readEntries(Et,function(){return Et([])})});case 5:if(Yt=Pt.sent,oe=Yt.length,oe){Pt.next=9;break}return Pt.abrupt("break",12);case 9:for(_t=0;_t<oe;_t++)At.push(Yt[_t]);Pt.next=2;break;case 12:return Pt.abrupt("return",At);case 13:case"end":return Pt.stop()}},He)})),ue.apply(this,arguments)},pe=function(He){return ue.apply(this,arguments)},re=[],se=[],he.forEach(function(Oe){return se.push(Oe.webkitGetAsEntry())}),Qe=function(){var Oe=(0,Dt.Z)((0,xt.Z)().mark(function He(ie,Tt){var At,Yt;return(0,xt.Z)().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(ie){_t.next=2;break}return _t.abrupt("return");case 2:if(ie.path=Tt||"",!ie.isFile){_t.next=10;break}return _t.next=6,Re(ie);case 6:At=_t.sent,At&&re.push(At),_t.next=15;break;case 10:if(!ie.isDirectory){_t.next=15;break}return _t.next=13,pe(ie);case 13:Yt=_t.sent,se.push.apply(se,(0,yt.Z)(Yt));case 15:case"end":return _t.stop()}},He)}));return function(ie,Tt){return Oe.apply(this,arguments)}}(),Ae=0;case 9:if(!(Ae<se.length)){Le.next=15;break}return Le.next=12,Qe(se[Ae]);case 12:Ae++,Le.next=9;break;case 15:return Le.abrupt("return",re);case 16:case"end":return Le.stop()}},ze)}));return function(he,Jt){return Pe.apply(this,arguments)}}(),Rt=Lt,Ut=+new Date,Nt=0;function qt(){return"rc-upload-".concat(Ut,"-").concat(++Nt)}var te=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Vt=function(Pe){(0,Ot.Z)(he,Pe);var ze=(0,jt.Z)(he);function he(){var Jt;(0,wt.Z)(this,he);for(var re=arguments.length,se=new Array(re),pe=0;pe<re;pe++)se[pe]=arguments[pe];return Jt=ze.call.apply(ze,[this].concat(se)),(0,Ct.Z)((0,Zt.Z)(Jt),"state",{uid:qt()}),(0,Ct.Z)((0,Zt.Z)(Jt),"reqs",{}),(0,Ct.Z)((0,Zt.Z)(Jt),"fileInput",void 0),(0,Ct.Z)((0,Zt.Z)(Jt),"_isMounted",void 0),(0,Ct.Z)((0,Zt.Z)(Jt),"onChange",function(ue){var Re=Jt.props,Fe=Re.accept,Qe=Re.directory,Ae=ue.target.files,_e=(0,yt.Z)(Ae).filter(function(Le){return!Qe||ut(Le,Fe)});Jt.uploadFiles(_e),Jt.reset()}),(0,Ct.Z)((0,Zt.Z)(Jt),"onClick",function(ue){var Re=Jt.fileInput;if(Re){var Fe=ue.target,Qe=Jt.props.onClick;if(Fe&&Fe.tagName==="BUTTON"){var Ae=Re.parentNode;Ae.focus(),Fe.blur()}Re.click(),Qe&&Qe(ue)}}),(0,Ct.Z)((0,Zt.Z)(Jt),"onKeyDown",function(ue){ue.key==="Enter"&&Jt.onClick(ue)}),(0,Ct.Z)((0,Zt.Z)(Jt),"onFileDrop",function(){var ue=(0,Dt.Z)((0,xt.Z)().mark(function Re(Fe){var Qe,Ae,_e;return(0,xt.Z)().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Qe=Jt.props.multiple,Fe.preventDefault(),Fe.type!=="dragover"){Oe.next=4;break}return Oe.abrupt("return");case 4:if(!Jt.props.directory){Oe.next=11;break}return Oe.next=7,Rt(Array.prototype.slice.call(Fe.dataTransfer.items),function(He){return ut(He,Jt.props.accept)});case 7:Ae=Oe.sent,Jt.uploadFiles(Ae),Oe.next=14;break;case 11:_e=(0,yt.Z)(Fe.dataTransfer.files).filter(function(He){return ut(He,Jt.props.accept)}),Qe===!1&&(_e=_e.slice(0,1)),Jt.uploadFiles(_e);case 14:case"end":return Oe.stop()}},Re)}));return function(Re){return ue.apply(this,arguments)}}()),(0,Ct.Z)((0,Zt.Z)(Jt),"uploadFiles",function(ue){var Re=(0,yt.Z)(ue),Fe=Re.map(function(Qe){return Qe.uid=qt(),Jt.processFile(Qe,Re)});Promise.all(Fe).then(function(Qe){var Ae=Jt.props.onBatchStart;Ae==null||Ae(Qe.map(function(_e){var Le=_e.origin,Oe=_e.parsedFile;return{file:Le,parsedFile:Oe}})),Qe.filter(function(_e){return _e.parsedFile!==null}).forEach(function(_e){Jt.post(_e)})})}),(0,Ct.Z)((0,Zt.Z)(Jt),"processFile",function(){var ue=(0,Dt.Z)((0,xt.Z)().mark(function Re(Fe,Qe){var Ae,_e,Le,Oe,He,ie,Tt,At,Yt;return(0,xt.Z)().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(Ae=Jt.props.beforeUpload,_e=Fe,!Ae){_t.next=14;break}return _t.prev=3,_t.next=6,Ae(Fe,Qe);case 6:_e=_t.sent,_t.next=12;break;case 9:_t.prev=9,_t.t0=_t.catch(3),_e=!1;case 12:if(_e!==!1){_t.next=14;break}return _t.abrupt("return",{origin:Fe,parsedFile:null,action:null,data:null});case 14:if(Le=Jt.props.action,typeof Le!="function"){_t.next=21;break}return _t.next=18,Le(Fe);case 18:Oe=_t.sent,_t.next=22;break;case 21:Oe=Le;case 22:if(He=Jt.props.data,typeof He!="function"){_t.next=29;break}return _t.next=26,He(Fe);case 26:ie=_t.sent,_t.next=30;break;case 29:ie=He;case 30:return Tt=((0,kt.Z)(_e)==="object"||typeof _e=="string")&&_e?_e:Fe,Tt instanceof File?At=Tt:At=new File([Tt],Fe.name,{type:Fe.type}),Yt=At,Yt.uid=Fe.uid,_t.abrupt("return",{origin:Fe,data:ie,parsedFile:Yt,action:Oe});case 35:case"end":return _t.stop()}},Re,null,[[3,9]])}));return function(Re,Fe){return ue.apply(this,arguments)}}()),(0,Ct.Z)((0,Zt.Z)(Jt),"saveFileInput",function(ue){Jt.fileInput=ue}),Jt}return(0,Qt.Z)(he,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(re){var se=this,pe=re.data,ue=re.origin,Re=re.action,Fe=re.parsedFile;if(this._isMounted){var Qe=this.props,Ae=Qe.onStart,_e=Qe.customRequest,Le=Qe.name,Oe=Qe.headers,He=Qe.withCredentials,ie=Qe.method,Tt=ue.uid,At=_e||gt,Yt={action:Re,filename:Le,data:pe,file:Fe,headers:Oe,withCredentials:He,method:ie||"post",onProgress:function(_t){var It=se.props.onProgress;It==null||It(_t,Fe)},onSuccess:function(_t,It){var Pt=se.props.onSuccess;Pt==null||Pt(_t,Fe,It),delete se.reqs[Tt]},onError:function(_t,It){var Pt=se.props.onError;Pt==null||Pt(_t,It,Fe),delete se.reqs[Tt]}};Ae(ue),this.reqs[Tt]=At(Yt)}}},{key:"reset",value:function(){this.setState({uid:qt()})}},{key:"abort",value:function(re){var se=this.reqs;if(re){var pe=re.uid?re.uid:re;se[pe]&&se[pe].abort&&se[pe].abort(),delete se[pe]}else Object.keys(se).forEach(function(ue){se[ue]&&se[ue].abort&&se[ue].abort(),delete se[ue]})}},{key:"render",value:function(){var re=this.props,se=re.component,pe=re.prefixCls,ue=re.className,Re=re.classNames,Fe=Re===void 0?{}:Re,Qe=re.disabled,Ae=re.id,_e=re.name,Le=re.style,Oe=re.styles,He=Oe===void 0?{}:Oe,ie=re.multiple,Tt=re.accept,At=re.capture,Yt=re.children,oe=re.directory,_t=re.openFileDialogOnClick,It=re.onMouseEnter,Pt=re.onMouseLeave,Et=re.hasControlInside,$t=(0,St.Z)(re,te),zt=tt()((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},pe,!0),"".concat(pe,"-disabled"),Qe),ue,ue)),Gt=oe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},le=Qe?{}:{onClick:_t?this.onClick:function(){},onKeyDown:_t?this.onKeyDown:function(){},onMouseEnter:It,onMouseLeave:Pt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Et?void 0:"0"};return Mt.createElement(se,(0,ee.Z)({},le,{className:zt,role:Et?void 0:"button",style:Le}),Mt.createElement("input",(0,ee.Z)({},(0,lt.Z)($t,{aria:!0,data:!0}),{id:Ae,name:_e,disabled:Qe,type:"file",ref:this.saveFileInput,onClick:function(Ue){return Ue.stopPropagation()},key:this.state.uid,style:(0,Bt.Z)({display:"none"},He.input),className:Fe.input,accept:Tt},Gt,{multiple:ie,onChange:this.onChange},At!=null?{capture:At}:{})),Yt)}}]),he}(Mt.Component),de=Vt;function ge(){}var be=function(Pe){(0,Ot.Z)(he,Pe);var ze=(0,jt.Z)(he);function he(){var Jt;(0,wt.Z)(this,he);for(var re=arguments.length,se=new Array(re),pe=0;pe<re;pe++)se[pe]=arguments[pe];return Jt=ze.call.apply(ze,[this].concat(se)),(0,Ct.Z)((0,Zt.Z)(Jt),"uploader",void 0),(0,Ct.Z)((0,Zt.Z)(Jt),"saveUploader",function(ue){Jt.uploader=ue}),Jt}return(0,Qt.Z)(he,[{key:"abort",value:function(re){this.uploader.abort(re)}},{key:"render",value:function(){return Mt.createElement(de,(0,ee.Z)({},this.props,{ref:this.saveUploader}))}}]),he}(Mt.Component);(0,Ct.Z)(be,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ge,onError:ge,onSuccess:ge,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ne=be,Ge=Ne},8224:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return wt}});var ee=ce(4676);function wt(Qt,Zt,Ot,jt){var Ct=ee.unstable_batchedUpdates?function(Bt){ee.unstable_batchedUpdates(Ot,Bt)}:Ot;return Qt!=null&&Qt.addEventListener&&Qt.addEventListener(Zt,Ct,jt),{remove:function(){Qt!=null&&Qt.removeEventListener&&Qt.removeEventListener(Zt,Ct,jt)}}}},65283:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return He}});var ee=ce(14809),wt=ce(93664),Qt=ce(20439),Zt=ce(4635),Ot=ce(50298),jt=ce(62646),Ct=ce(92310),Mt=ce.n(Ct),Bt=ce(29301),St=ce(70425),kt=ce(34280),xt=ce(59301),Dt=ce(4676),yt=xt.forwardRef(function(ie,Tt){var At=ie.height,Yt=ie.offsetY,oe=ie.offsetX,_t=ie.children,It=ie.prefixCls,Pt=ie.onInnerResize,Et=ie.innerProps,$t=ie.rtl,zt=ie.extra,Gt={},le={display:"flex",flexDirection:"column"};return Yt!==void 0&&(Gt={height:At,position:"relative",overflow:"hidden"},le=(0,Qt.Z)((0,Qt.Z)({},le),{},(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({transform:"translateY(".concat(Yt,"px)")},$t?"marginRight":"marginLeft",-oe),"position","absolute"),"left",0),"right",0),"top",0))),xt.createElement("div",{style:Gt},xt.createElement(Bt.Z,{onResize:function(Ue){var We=Ue.offsetHeight;We&&Pt&&Pt()}},xt.createElement("div",(0,ee.Z)({style:le,className:Mt()((0,Zt.Z)({},"".concat(It,"-holder-inner"),It)),ref:Tt},Et),_t,zt)))});yt.displayName="Filler";var et=yt;function tt(ie){var Tt=ie.children,At=ie.setRef,Yt=xt.useCallback(function(oe){At(oe)},[]);return xt.cloneElement(Tt,{ref:Yt})}function lt(ie,Tt,At,Yt,oe,_t,It,Pt){var Et=Pt.getKey;return ie.slice(Tt,At+1).map(function($t,zt){var Gt=Tt+zt,le=It($t,Gt,{style:{width:Yt},offsetX:oe}),ye=Et($t);return xt.createElement(tt,{key:ye,setRef:function(We){return _t($t,We)}},le)})}function ot(ie,Tt,At,Yt){var oe=At-ie,_t=Tt-At,It=Math.min(oe,_t)*2;if(Yt<=It){var Pt=Math.floor(Yt/2);return Yt%2?At+Pt+1:At-Pt}return oe>_t?At-(Yt-_t):At+(Yt-oe)}function ut(ie,Tt,At){var Yt=ie.length,oe=Tt.length,_t,It;if(Yt===0&&oe===0)return null;Yt<oe?(_t=ie,It=Tt):(_t=Tt,It=ie);var Pt={__EMPTY_ITEM__:!0};function Et(Ue){return Ue!==void 0?At(Ue):Pt}for(var $t=null,zt=Math.abs(Yt-oe)!==1,Gt=0;Gt<It.length;Gt+=1){var le=Et(_t[Gt]),ye=Et(It[Gt]);if(le!==ye){$t=Gt,zt=zt||le!==Et(It[Gt+1]);break}}return $t===null?null:{index:$t,multiple:zt}}function ct(ie,Tt,At){var Yt=xt.useState(ie),oe=(0,Ot.Z)(Yt,2),_t=oe[0],It=oe[1],Pt=xt.useState(null),Et=(0,Ot.Z)(Pt,2),$t=Et[0],zt=Et[1];return xt.useEffect(function(){var Gt=ut(_t||[],ie||[],Tt);(Gt==null?void 0:Gt.index)!==void 0&&(At==null||At(Gt.index),zt(ie[Gt.index])),It(ie)},[ie]),[$t]}var ft=ce(16089),gt=(typeof navigator=="undefined"?"undefined":(0,wt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Lt=gt,Rt=function(ie,Tt,At,Yt){var oe=(0,xt.useRef)(!1),_t=(0,xt.useRef)(null);function It(){clearTimeout(_t.current),oe.current=!0,_t.current=setTimeout(function(){oe.current=!1},50)}var Pt=(0,xt.useRef)({top:ie,bottom:Tt,left:At,right:Yt});return Pt.current.top=ie,Pt.current.bottom=Tt,Pt.current.left=At,Pt.current.right=Yt,function(Et,$t){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Gt=Et?$t<0&&Pt.current.left||$t>0&&Pt.current.right:$t<0&&Pt.current.top||$t>0&&Pt.current.bottom;return zt&&Gt?(clearTimeout(_t.current),oe.current=!1):(!Gt||oe.current)&&It(),!oe.current&&Gt}};function Ut(ie,Tt,At,Yt,oe,_t,It){var Pt=(0,xt.useRef)(0),Et=(0,xt.useRef)(null),$t=(0,xt.useRef)(null),zt=(0,xt.useRef)(!1),Gt=Rt(Tt,At,Yt,oe);function le(on,nn){if(ft.Z.cancel(Et.current),!Gt(!1,nn)){var qe=on;if(!qe._virtualHandled)qe._virtualHandled=!0;else return;Pt.current+=nn,$t.current=nn,Lt||qe.preventDefault(),Et.current=(0,ft.Z)(function(){var En=zt.current?10:1;It(Pt.current*En,!1),Pt.current=0})}}function ye(on,nn){It(nn,!0),Lt||on.preventDefault()}var Ue=(0,xt.useRef)(null),We=(0,xt.useRef)(null);function Ee(on){if(ie){ft.Z.cancel(We.current),We.current=(0,ft.Z)(function(){Ue.current=null},2);var nn=on.deltaX,qe=on.deltaY,En=on.shiftKey,fn=nn,Pn=qe;(Ue.current==="sx"||!Ue.current&&En&&qe&&!nn)&&(fn=qe,Pn=0,Ue.current="sx");var Mn=Math.abs(fn),ii=Math.abs(Pn);Ue.current===null&&(Ue.current=_t&&Mn>ii?"x":"y"),Ue.current==="y"?le(on,Pn):ye(on,fn)}}function Ze(on){ie&&(zt.current=on.detail===$t.current)}return[Ee,Ze]}function Nt(ie,Tt,At,Yt){var oe=xt.useMemo(function(){return[new Map,[]]},[ie,At.id,Yt]),_t=(0,Ot.Z)(oe,2),It=_t[0],Pt=_t[1],Et=function(zt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zt,le=It.get(zt),ye=It.get(Gt);if(le===void 0||ye===void 0)for(var Ue=ie.length,We=Pt.length;We<Ue;We+=1){var Ee,Ze=ie[We],on=Tt(Ze);It.set(on,We);var nn=(Ee=At.get(on))!==null&&Ee!==void 0?Ee:Yt;if(Pt[We]=(Pt[We-1]||0)+nn,on===zt&&(le=We),on===Gt&&(ye=We),le!==void 0&&ye!==void 0)break}return{top:Pt[le-1]||0,bottom:Pt[ye]}};return Et}var qt=ce(99153),te=ce(84851),Vt=function(){function ie(){(0,qt.Z)(this,ie),(0,Zt.Z)(this,"maps",void 0),(0,Zt.Z)(this,"id",0),(0,Zt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,te.Z)(ie,[{key:"set",value:function(At,Yt){this.diffRecords.set(At,this.maps[At]),this.maps[At]=Yt,this.id+=1}},{key:"get",value:function(At){return this.maps[At]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ie}(),de=Vt;function ge(ie){var Tt=parseFloat(ie);return isNaN(Tt)?0:Tt}function be(ie,Tt,At){var Yt=xt.useState(0),oe=(0,Ot.Z)(Yt,2),_t=oe[0],It=oe[1],Pt=(0,xt.useRef)(new Map),Et=(0,xt.useRef)(new de),$t=(0,xt.useRef)(0);function zt(){$t.current+=1}function Gt(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;zt();var Ue=function(){var Ze=!1;Pt.current.forEach(function(on,nn){if(on&&on.offsetParent){var qe=on.offsetHeight,En=getComputedStyle(on),fn=En.marginTop,Pn=En.marginBottom,Mn=ge(fn),ii=ge(Pn),Tn=qe+Mn+ii;Et.current.get(nn)!==Tn&&(Et.current.set(nn,Tn),Ze=!0)}}),Ze&&It(function(on){return on+1})};if(ye)Ue();else{$t.current+=1;var We=$t.current;Promise.resolve().then(function(){We===$t.current&&Ue()})}}function le(ye,Ue){var We=ie(ye),Ee=Pt.current.get(We);Ue?(Pt.current.set(We,Ue),Gt()):Pt.current.delete(We),!Ee!=!Ue&&(Ue?Tt==null||Tt(ye):At==null||At(ye))}return(0,xt.useEffect)(function(){return zt},[]),[le,Gt,Et.current,_t]}var Ne=14/15;function Ge(ie,Tt,At){var Yt=(0,xt.useRef)(!1),oe=(0,xt.useRef)(0),_t=(0,xt.useRef)(0),It=(0,xt.useRef)(null),Pt=(0,xt.useRef)(null),Et,$t=function(ye){if(Yt.current){var Ue=Math.ceil(ye.touches[0].pageX),We=Math.ceil(ye.touches[0].pageY),Ee=oe.current-Ue,Ze=_t.current-We,on=Math.abs(Ee)>Math.abs(Ze);on?oe.current=Ue:_t.current=We;var nn=At(on,on?Ee:Ze,!1,ye);nn&&ye.preventDefault(),clearInterval(Pt.current),nn&&(Pt.current=setInterval(function(){on?Ee*=Ne:Ze*=Ne;var qe=Math.floor(on?Ee:Ze);(!At(on,qe,!0)||Math.abs(qe)<=.1)&&clearInterval(Pt.current)},16))}},zt=function(){Yt.current=!1,Et()},Gt=function(ye){Et(),ye.touches.length===1&&!Yt.current&&(Yt.current=!0,oe.current=Math.ceil(ye.touches[0].pageX),_t.current=Math.ceil(ye.touches[0].pageY),It.current=ye.target,It.current.addEventListener("touchmove",$t,{passive:!1}),It.current.addEventListener("touchend",zt,{passive:!0}))};Et=function(){It.current&&(It.current.removeEventListener("touchmove",$t),It.current.removeEventListener("touchend",zt))},(0,kt.Z)(function(){return ie&&Tt.current.addEventListener("touchstart",Gt,{passive:!0}),function(){var le;(le=Tt.current)===null||le===void 0||le.removeEventListener("touchstart",Gt),Et(),clearInterval(Pt.current)}},[ie])}function Pe(ie){return Math.floor(Math.pow(ie,.5))}function ze(ie,Tt){var At="touches"in ie?ie.touches[0]:ie;return At[Tt?"pageX":"pageY"]-window[Tt?"scrollX":"scrollY"]}function he(ie,Tt,At){xt.useEffect(function(){var Yt=Tt.current;if(ie&&Yt){var oe=!1,_t,It,Pt=function(){ft.Z.cancel(_t)},Et=function le(){Pt(),_t=(0,ft.Z)(function(){At(It),le()})},$t=function(ye){if(!(ye.target.draggable||ye.button!==0)){var Ue=ye;Ue._virtualHandled||(Ue._virtualHandled=!0,oe=!0)}},zt=function(){oe=!1,Pt()},Gt=function(ye){if(oe){var Ue=ze(ye,!1),We=Yt.getBoundingClientRect(),Ee=We.top,Ze=We.bottom;if(Ue<=Ee){var on=Ee-Ue;It=-Pe(on),Et()}else if(Ue>=Ze){var nn=Ue-Ze;It=Pe(nn),Et()}else Pt()}};return Yt.addEventListener("mousedown",$t),Yt.ownerDocument.addEventListener("mouseup",zt),Yt.ownerDocument.addEventListener("mousemove",Gt),function(){Yt.removeEventListener("mousedown",$t),Yt.ownerDocument.removeEventListener("mouseup",zt),Yt.ownerDocument.removeEventListener("mousemove",Gt),Pt()}}},[ie])}var Jt=10;function re(ie,Tt,At,Yt,oe,_t,It,Pt){var Et=xt.useRef(),$t=xt.useState(null),zt=(0,Ot.Z)($t,2),Gt=zt[0],le=zt[1];return(0,kt.Z)(function(){if(Gt&&Gt.times<Jt){if(!ie.current){le(function(Gi){return(0,Qt.Z)({},Gi)});return}_t();var ye=Gt.targetAlign,Ue=Gt.originAlign,We=Gt.index,Ee=Gt.offset,Ze=ie.current.clientHeight,on=!1,nn=ye,qe=null;if(Ze){for(var En=ye||Ue,fn=0,Pn=0,Mn=0,ii=Math.min(Tt.length-1,We),Tn=0;Tn<=ii;Tn+=1){var oi=oe(Tt[Tn]);Pn=fn;var vi=At.get(oi);Mn=Pn+(vi===void 0?Yt:vi),fn=Mn}for(var yi=En==="top"?Ee:Ze-Ee,Zi=ii;Zi>=0;Zi-=1){var Hi=oe(Tt[Zi]),Yi=At.get(Hi);if(Yi===void 0){on=!0;break}if(yi-=Yi,yi<=0)break}switch(En){case"top":qe=Pn-Ee;break;case"bottom":qe=Mn-Ze+Ee;break;default:{var zi=ie.current.scrollTop,Pi=zi+Ze;Pn<zi?nn="top":Mn>Pi&&(nn="bottom")}}qe!==null&&It(qe),qe!==Gt.lastTop&&(on=!0)}on&&le((0,Qt.Z)((0,Qt.Z)({},Gt),{},{times:Gt.times+1,targetAlign:nn,lastTop:qe}))}},[Gt,ie.current]),function(ye){if(ye==null){Pt();return}if(ft.Z.cancel(Et.current),typeof ye=="number")It(ye);else if(ye&&(0,wt.Z)(ye)==="object"){var Ue,We=ye.align;"index"in ye?Ue=ye.index:Ue=Tt.findIndex(function(on){return oe(on)===ye.key});var Ee=ye.offset,Ze=Ee===void 0?0:Ee;le({times:0,index:Ue,offset:Ze,originAlign:We})}}}var se=xt.forwardRef(function(ie,Tt){var At=ie.prefixCls,Yt=ie.rtl,oe=ie.scrollOffset,_t=ie.scrollRange,It=ie.onStartMove,Pt=ie.onStopMove,Et=ie.onScroll,$t=ie.horizontal,zt=ie.spinSize,Gt=ie.containerSize,le=ie.style,ye=ie.thumbStyle,Ue=ie.showScrollBar,We=xt.useState(!1),Ee=(0,Ot.Z)(We,2),Ze=Ee[0],on=Ee[1],nn=xt.useState(null),qe=(0,Ot.Z)(nn,2),En=qe[0],fn=qe[1],Pn=xt.useState(null),Mn=(0,Ot.Z)(Pn,2),ii=Mn[0],Tn=Mn[1],oi=!Yt,vi=xt.useRef(),yi=xt.useRef(),Zi=xt.useState(Ue),Hi=(0,Ot.Z)(Zi,2),Yi=Hi[0],zi=Hi[1],Pi=xt.useRef(),Gi=function(){Ue===!0||Ue===!1||(clearTimeout(Pi.current),zi(!0),Pi.current=setTimeout(function(){zi(!1)},3e3))},Kt=_t-Gt||0,zn=Gt-zt||0,Rn=xt.useMemo(function(){if(oe===0||Kt===0)return 0;var Ke=oe/Kt;return Ke*zn},[oe,Kt,zn]),bn=function(Hn){Hn.stopPropagation(),Hn.preventDefault()},_n=xt.useRef({top:Rn,dragging:Ze,pageY:En,startTop:ii});_n.current={top:Rn,dragging:Ze,pageY:En,startTop:ii};var Yn=function(Hn){on(!0),fn(ze(Hn,$t)),Tn(_n.current.top),It(),Hn.stopPropagation(),Hn.preventDefault()};xt.useEffect(function(){var Ke=function(pn){pn.preventDefault()},Hn=vi.current,Jn=yi.current;return Hn.addEventListener("touchstart",Ke,{passive:!1}),Jn.addEventListener("touchstart",Yn,{passive:!1}),function(){Hn.removeEventListener("touchstart",Ke),Jn.removeEventListener("touchstart",Yn)}},[]);var Xn=xt.useRef();Xn.current=Kt;var Ri=xt.useRef();Ri.current=zn,xt.useEffect(function(){if(Ze){var Ke,Hn=function(pn){var Bn=_n.current,hi=Bn.dragging,Ti=Bn.pageY,Di=Bn.startTop;ft.Z.cancel(Ke);var we=vi.current.getBoundingClientRect(),je=Gt/($t?we.width:we.height);if(hi){var An=(ze(pn,$t)-Ti)*je,Nn=Di;!oi&&$t?Nn-=An:Nn+=An;var tn=Xn.current,yn=Ri.current,xn=yn?Nn/yn:0,Sn=Math.ceil(xn*tn);Sn=Math.max(Sn,0),Sn=Math.min(Sn,tn),Ke=(0,ft.Z)(function(){Et(Sn,$t)})}},Jn=function(){on(!1),Pt()};return window.addEventListener("mousemove",Hn,{passive:!0}),window.addEventListener("touchmove",Hn,{passive:!0}),window.addEventListener("mouseup",Jn,{passive:!0}),window.addEventListener("touchend",Jn,{passive:!0}),function(){window.removeEventListener("mousemove",Hn),window.removeEventListener("touchmove",Hn),window.removeEventListener("mouseup",Jn),window.removeEventListener("touchend",Jn),ft.Z.cancel(Ke)}}},[Ze]),xt.useEffect(function(){return Gi(),function(){clearTimeout(Pi.current)}},[oe]),xt.useImperativeHandle(Tt,function(){return{delayHidden:Gi}});var ki="".concat(At,"-scrollbar"),Xe={position:"absolute",visibility:Yi?null:"hidden"},Je={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return $t?(Xe.height=8,Xe.left=0,Xe.right=0,Xe.bottom=0,Je.height="100%",Je.width=zt,oi?Je.left=Rn:Je.right=Rn):(Xe.width=8,Xe.top=0,Xe.bottom=0,oi?Xe.right=0:Xe.left=0,Je.width="100%",Je.height=zt,Je.top=Rn),xt.createElement("div",{ref:vi,className:Mt()(ki,(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},"".concat(ki,"-horizontal"),$t),"".concat(ki,"-vertical"),!$t),"".concat(ki,"-visible"),Yi)),style:(0,Qt.Z)((0,Qt.Z)({},Xe),le),onMouseDown:bn,onMouseMove:Gi},xt.createElement("div",{ref:yi,className:Mt()("".concat(ki,"-thumb"),(0,Zt.Z)({},"".concat(ki,"-thumb-moving"),Ze)),style:(0,Qt.Z)((0,Qt.Z)({},Je),ye),onMouseDown:Yn}))}),pe=se,ue=20;function Re(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,At=ie/Tt*ie;return isNaN(At)&&(At=0),At=Math.max(At,ue),Math.floor(At)}var Fe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Qe=[],Ae={overflowY:"auto",overflowAnchor:"none"};function _e(ie,Tt){var At=ie.prefixCls,Yt=At===void 0?"rc-virtual-list":At,oe=ie.className,_t=ie.height,It=ie.itemHeight,Pt=ie.fullHeight,Et=Pt===void 0?!0:Pt,$t=ie.style,zt=ie.data,Gt=ie.children,le=ie.itemKey,ye=ie.virtual,Ue=ie.direction,We=ie.scrollWidth,Ee=ie.component,Ze=Ee===void 0?"div":Ee,on=ie.onScroll,nn=ie.onVirtualScroll,qe=ie.onVisibleChange,En=ie.innerProps,fn=ie.extraRender,Pn=ie.styles,Mn=ie.showScrollBar,ii=Mn===void 0?"optional":Mn,Tn=(0,jt.Z)(ie,Fe),oi=xt.useCallback(function(ui){return typeof le=="function"?le(ui):ui==null?void 0:ui[le]},[le]),vi=be(oi,null,null),yi=(0,Ot.Z)(vi,4),Zi=yi[0],Hi=yi[1],Yi=yi[2],zi=yi[3],Pi=!!(ye!==!1&&_t&&It),Gi=xt.useMemo(function(){return Object.values(Yi.maps).reduce(function(ui,Si){return ui+Si},0)},[Yi.id,Yi.maps]),Kt=Pi&&zt&&(Math.max(It*zt.length,Gi)>_t||!!We),zn=Ue==="rtl",Rn=Mt()(Yt,(0,Zt.Z)({},"".concat(Yt,"-rtl"),zn),oe),bn=zt||Qe,_n=(0,xt.useRef)(),Yn=(0,xt.useRef)(),Xn=(0,xt.useRef)(),Ri=(0,xt.useState)(0),ki=(0,Ot.Z)(Ri,2),Xe=ki[0],Je=ki[1],Ke=(0,xt.useState)(0),Hn=(0,Ot.Z)(Ke,2),Jn=Hn[0],qn=Hn[1],pn=(0,xt.useState)(!1),Bn=(0,Ot.Z)(pn,2),hi=Bn[0],Ti=Bn[1],Di=function(){Ti(!0)},we=function(){Ti(!1)},je={getKey:oi};function An(ui){Je(function(Si){var er;typeof ui=="function"?er=ui(Si):er=ui;var gi=Ci(er);return _n.current.scrollTop=gi,gi})}var Nn=(0,xt.useRef)({start:0,end:bn.length}),tn=(0,xt.useRef)(),yn=ct(bn,oi),xn=(0,Ot.Z)(yn,1),Sn=xn[0];tn.current=Sn;var Wn=xt.useMemo(function(){if(!Pi)return{scrollHeight:void 0,start:0,end:bn.length-1,offset:void 0};if(!Kt){var ui;return{scrollHeight:((ui=Yn.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,start:0,end:bn.length-1,offset:void 0}}for(var Si=0,er,gi,Ji,Mr=bn.length,bi=0;bi<Mr;bi+=1){var li=bn[bi],wn=oi(li),Ei=Yi.get(wn),pr=Si+(Ei===void 0?It:Ei);pr>=Xe&&er===void 0&&(er=bi,gi=Si),pr>Xe+_t&&Ji===void 0&&(Ji=bi),Si=pr}return er===void 0&&(er=0,gi=0,Ji=Math.ceil(_t/It)),Ji===void 0&&(Ji=bn.length-1),Ji=Math.min(Ji+1,bn.length-1),{scrollHeight:Si,start:er,end:Ji,offset:gi}},[Kt,Pi,Xe,bn,zi,_t]),Fn=Wn.scrollHeight,jn=Wn.start,In=Wn.end,Ai=Wn.offset;Nn.current.start=jn,Nn.current.end=In,xt.useLayoutEffect(function(){var ui=Yi.getRecord();if(ui.size===1){var Si=Array.from(ui.keys())[0],er=ui.get(Si),gi=bn[jn];if(gi&&er===void 0){var Ji=oi(gi);if(Ji===Si){var Mr=Yi.get(Si),bi=Mr-It;An(function(li){return li+bi})}}}Yi.resetRecord()},[Fn]);var ai=xt.useState({width:0,height:_t}),ci=(0,Ot.Z)(ai,2),rn=ci[0],Ii=ci[1],Xi=function(Si){Ii({width:Si.offsetWidth,height:Si.offsetHeight})},vr=(0,xt.useRef)(),an=(0,xt.useRef)(),Dn=xt.useMemo(function(){return Re(rn.width,We)},[rn.width,We]),ei=xt.useMemo(function(){return Re(rn.height,Fn)},[rn.height,Fn]),Qn=Fn-_t,ri=(0,xt.useRef)(Qn);ri.current=Qn;function Ci(ui){var Si=ui;return Number.isNaN(ri.current)||(Si=Math.min(Si,ri.current)),Si=Math.max(Si,0),Si}var Fi=Xe<=0,Ui=Xe>=Qn,Qi=Jn<=0,sr=Jn>=We,cn=Rt(Fi,Ui,Qi,sr),gr=function(){return{x:zn?-Jn:Jn,y:Xe}},hn=(0,xt.useRef)(gr()),di=(0,St.zX)(function(ui){if(nn){var Si=(0,Qt.Z)((0,Qt.Z)({},gr()),ui);(hn.current.x!==Si.x||hn.current.y!==Si.y)&&(nn(Si),hn.current=Si)}});function tr(ui,Si){var er=ui;Si?((0,Dt.flushSync)(function(){qn(er)}),di()):An(er)}function Wi(ui){var Si=ui.currentTarget.scrollTop;Si!==Xe&&An(Si),on==null||on(ui),di()}var fr=function(Si){var er=Si,gi=We?We-rn.width:0;return er=Math.max(er,0),er=Math.min(er,gi),er},rr=(0,St.zX)(function(ui,Si){Si?((0,Dt.flushSync)(function(){qn(function(er){var gi=er+(zn?-ui:ui);return fr(gi)})}),di()):An(function(er){var gi=er+ui;return gi})}),_i=Ut(Pi,Fi,Ui,Qi,sr,!!We,rr),Cr=(0,Ot.Z)(_i,2),Mo=Cr[0],Rr=Cr[1];Ge(Pi,_n,function(ui,Si,er,gi){var Ji=gi;return cn(ui,Si,er)?!1:!Ji||!Ji._virtualHandled?(Ji&&(Ji._virtualHandled=!0),Mo({preventDefault:function(){},deltaX:ui?Si:0,deltaY:ui?0:Si}),!0):!1}),he(Kt,_n,function(ui){An(function(Si){return Si+ui})}),(0,kt.Z)(function(){function ui(er){var gi=Fi&&er.detail<0,Ji=Ui&&er.detail>0;Pi&&!gi&&!Ji&&er.preventDefault()}var Si=_n.current;return Si.addEventListener("wheel",Mo,{passive:!1}),Si.addEventListener("DOMMouseScroll",Rr,{passive:!0}),Si.addEventListener("MozMousePixelScroll",ui,{passive:!1}),function(){Si.removeEventListener("wheel",Mo),Si.removeEventListener("DOMMouseScroll",Rr),Si.removeEventListener("MozMousePixelScroll",ui)}},[Pi,Fi,Ui]),(0,kt.Z)(function(){if(We){var ui=fr(Jn);qn(ui),di({x:ui})}},[rn.width,We]);var ti=function(){var Si,er;(Si=vr.current)===null||Si===void 0||Si.delayHidden(),(er=an.current)===null||er===void 0||er.delayHidden()},xe=re(_n,bn,Yi,It,oi,function(){return Hi(!0)},An,ti);xt.useImperativeHandle(Tt,function(){return{nativeElement:Xn.current,getScrollInfo:gr,scrollTo:function(Si){function er(gi){return gi&&(0,wt.Z)(gi)==="object"&&("left"in gi||"top"in gi)}er(Si)?(Si.left!==void 0&&qn(fr(Si.left)),xe(Si.top)):xe(Si)}}}),(0,kt.Z)(function(){if(qe){var ui=bn.slice(jn,In+1);qe(ui,bn)}},[jn,In,bn]);var Gr=Nt(bn,oi,Yi,It),To=fn==null?void 0:fn({start:jn,end:In,virtual:Kt,offsetX:Jn,offsetY:Ai,rtl:zn,getSize:Gr}),is=lt(bn,jn,In,We,Jn,Zi,Gt,je),vo=null;_t&&(vo=(0,Qt.Z)((0,Zt.Z)({},Et?"height":"maxHeight",_t),Ae),Pi&&(vo.overflowY="hidden",We&&(vo.overflowX="hidden"),hi&&(vo.pointerEvents="none")));var xr={};return zn&&(xr.dir="rtl"),xt.createElement("div",(0,ee.Z)({ref:Xn,style:(0,Qt.Z)((0,Qt.Z)({},$t),{},{position:"relative"}),className:Rn},xr,Tn),xt.createElement(Bt.Z,{onResize:Xi},xt.createElement(Ze,{className:"".concat(Yt,"-holder"),style:vo,ref:_n,onScroll:Wi,onMouseEnter:ti},xt.createElement(et,{prefixCls:Yt,height:Fn,offsetX:Jn,offsetY:Ai,scrollWidth:We,onInnerResize:Hi,ref:Yn,innerProps:En,rtl:zn,extra:To},is))),Kt&&Fn>_t&&xt.createElement(pe,{ref:vr,prefixCls:Yt,scrollOffset:Xe,scrollRange:Fn,rtl:zn,onScroll:tr,onStartMove:Di,onStopMove:we,spinSize:ei,containerSize:rn.height,style:Pn==null?void 0:Pn.verticalScrollBar,thumbStyle:Pn==null?void 0:Pn.verticalScrollBarThumb,showScrollBar:ii}),Kt&&We>rn.width&&xt.createElement(pe,{ref:an,prefixCls:Yt,scrollOffset:Jn,scrollRange:We,rtl:zn,onScroll:tr,onStartMove:Di,onStopMove:we,spinSize:Dn,containerSize:rn.width,horizontal:!0,style:Pn==null?void 0:Pn.horizontalScrollBar,thumbStyle:Pn==null?void 0:Pn.horizontalScrollBarThumb,showScrollBar:ii}))}var Le=xt.forwardRef(_e);Le.displayName="List";var Oe=Le,He=Oe},25510:function(Cn){"use strict";Cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj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3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH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UiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Cn,Gn,ce){"use strict";Cn.exports=ce.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Cn){"use strict";Cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMA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,{Z:function(){return Mt}});const ee=Bt=>typeof Bt=="object"&&Bt!=null&&Bt.nodeType===1,wt=(Bt,St)=>(!St||Bt!=="hidden")&&Bt!=="visible"&&Bt!=="clip",Qt=(Bt,St)=>{if(Bt.clientHeight<Bt.scrollHeight||Bt.clientWidth<Bt.scrollWidth){const kt=getComputedStyle(Bt,null);return wt(kt.overflowY,St)||wt(kt.overflowX,St)||(xt=>{const Dt=(yt=>{if(!yt.ownerDocument||!yt.ownerDocument.defaultView)return null;try{return yt.ownerDocument.defaultView.frameElement}catch(et){return null}})(xt);return!!Dt&&(Dt.clientHeight<xt.scrollHeight||Dt.clientWidth<xt.scrollWidth)})(Bt)}return!1},Zt=(Bt,St,kt,xt,Dt,yt,et,tt)=>yt<Bt&&et>St||yt>Bt&&et<St?0:yt<=Bt&&tt<=kt||et>=St&&tt>=kt?yt-Bt-xt:et>St&&tt<kt||yt<Bt&&tt>kt?et-St+Dt:0,Ot=Bt=>{const St=Bt.parentElement;return St==null?Bt.getRootNode().host||null:St},jt=(Bt,St)=>{var kt,xt,Dt,yt;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:ot,skipOverflowHiddenElements:ut}=St,ct=typeof ot=="function"?ot:pe=>pe!==ot;if(!ee(Bt))throw new TypeError("Invalid target");const ft=document.scrollingElement||document.documentElement,gt=[];let Lt=Bt;for(;ee(Lt)&&ct(Lt);){if(Lt=Ot(Lt),Lt===ft){gt.push(Lt);break}Lt!=null&&Lt===document.body&&Qt(Lt)&&!Qt(document.documentElement)||Lt!=null&&Qt(Lt,ut)&>.push(Lt)}const Rt=(xt=(kt=window.visualViewport)==null?void 0:kt.width)!=null?xt:innerWidth,Ut=(yt=(Dt=window.visualViewport)==null?void 0:Dt.height)!=null?yt:innerHeight,{scrollX:Nt,scrollY:qt}=window,{height:te,width:Vt,top:de,right:ge,bottom:be,left:Ne}=Bt.getBoundingClientRect(),{top:Ge,right:Pe,bottom:ze,left:he}=(pe=>{const ue=window.getComputedStyle(pe);return{top:parseFloat(ue.scrollMarginTop)||0,right:parseFloat(ue.scrollMarginRight)||0,bottom:parseFloat(ue.scrollMarginBottom)||0,left:parseFloat(ue.scrollMarginLeft)||0}})(Bt);let Jt=tt==="start"||tt==="nearest"?de-Ge:tt==="end"?be+ze:de+te/2-Ge+ze,re=lt==="center"?Ne+Vt/2-he+Pe:lt==="end"?ge+Pe:Ne-he;const se=[];for(let pe=0;pe<gt.length;pe++){const ue=gt[pe],{height:Re,width:Fe,top:Qe,right:Ae,bottom:_e,left:Le}=ue.getBoundingClientRect();if(et==="if-needed"&&de>=0&&Ne>=0&&be<=Ut&&ge<=Rt&&(ue===ft&&!Qt(ue)||de>=Qe&&be<=_e&&Ne>=Le&&ge<=Ae))return se;const Oe=getComputedStyle(ue),He=parseInt(Oe.borderLeftWidth,10),ie=parseInt(Oe.borderTopWidth,10),Tt=parseInt(Oe.borderRightWidth,10),At=parseInt(Oe.borderBottomWidth,10);let Yt=0,oe=0;const _t="offsetWidth"in ue?ue.offsetWidth-ue.clientWidth-He-Tt:0,It="offsetHeight"in ue?ue.offsetHeight-ue.clientHeight-ie-At:0,Pt="offsetWidth"in ue?ue.offsetWidth===0?0:Fe/ue.offsetWidth:0,Et="offsetHeight"in ue?ue.offsetHeight===0?0:Re/ue.offsetHeight:0;if(ft===ue)Yt=tt==="start"?Jt:tt==="end"?Jt-Ut:tt==="nearest"?Zt(qt,qt+Ut,Ut,ie,At,qt+Jt,qt+Jt+te,te):Jt-Ut/2,oe=lt==="start"?re:lt==="center"?re-Rt/2:lt==="end"?re-Rt:Zt(Nt,Nt+Rt,Rt,He,Tt,Nt+re,Nt+re+Vt,Vt),Yt=Math.max(0,Yt+qt),oe=Math.max(0,oe+Nt);else{Yt=tt==="start"?Jt-Qe-ie:tt==="end"?Jt-_e+At+It:tt==="nearest"?Zt(Qe,_e,Re,ie,At+It,Jt,Jt+te,te):Jt-(Qe+Re/2)+It/2,oe=lt==="start"?re-Le-He:lt==="center"?re-(Le+Fe/2)+_t/2:lt==="end"?re-Ae+Tt+_t:Zt(Le,Ae,Fe,He,Tt+_t,re,re+Vt,Vt);const{scrollLeft:$t,scrollTop:zt}=ue;Yt=Et===0?0:Math.max(0,Math.min(zt+Yt/Et,ue.scrollHeight-Re/Et+It)),oe=Pt===0?0:Math.max(0,Math.min($t+oe/Pt,ue.scrollWidth-Fe/Pt+_t)),Jt+=zt-Yt,re+=$t-oe}se.push({el:ue,top:Yt,left:oe})}return se},Ct=Bt=>Bt===!1?{block:"end",inline:"nearest"}:(St=>St===Object(St)&&Object.keys(St).length!==0)(Bt)?Bt:{block:"start",inline:"nearest"};function Mt(Bt,St){if(!Bt.isConnected||!(Dt=>{let yt=Dt;for(;yt&&yt.parentNode;){if(yt.parentNode===document)return!0;yt=yt.parentNode instanceof ShadowRoot?yt.parentNode.host:yt.parentNode}return!1})(Bt))return;const kt=(Dt=>{const yt=window.getComputedStyle(Dt);return{top:parseFloat(yt.scrollMarginTop)||0,right:parseFloat(yt.scrollMarginRight)||0,bottom:parseFloat(yt.scrollMarginBottom)||0,left:parseFloat(yt.scrollMarginLeft)||0}})(Bt);if((Dt=>typeof Dt=="object"&&typeof Dt.behavior=="function")(St))return St.behavior(jt(Bt,St));const xt=typeof St=="boolean"||St==null?void 0:St.behavior;for(const{el:Dt,top:yt,left:et}of jt(Bt,Ct(St))){const tt=yt-kt.top+kt.bottom,lt=et-kt.left+kt.right;Dt.scroll({top:tt,left:lt,behavior:xt})}}}}]);
|