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

1250 lines
2.9 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(self.webpackChunk=self.webpackChunk||[]).push([[9886],{87169:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return vt}});var Ft=Rt(72308),ie=Rt(59301),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},kt=rt,Ct=Rt(7657),St=function(xt,dt){return ie.createElement(Ct.Z,(0,Ft.Z)({},xt,{ref:dt,icon:kt}))},pt=ie.forwardRef(St),vt=pt},32050:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return vt}});var Ft=Rt(72308),ie=Rt(59301),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},kt=rt,Ct=Rt(7657),St=function(xt,dt){return ie.createElement(Ct.Z,(0,Ft.Z)({},xt,{ref:dt,icon:kt}))},pt=ie.forwardRef(St),vt=pt},37036:function(){"use strict"},88010:function(tn,Ke){"use strict";Ke.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},38476:function(){"use strict"},74413:function(){"use strict";function tn(lt,E,z,ot){z===void 0&&(z=0),ot===void 0&&(ot=1/0),this._name=lt,this._defaultValue=E,this._minimum=z,this._maximum=ot}Object.defineProperty(tn.prototype,"name",{get:function(){return this._name},set:function(lt){if(typeof lt!="string"||lt==="")throw new Error("Shape name must be a valid string.");this._name=lt}}),Object.defineProperty(tn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("The default value must be a real number, not: "+lt);this._defaultValue=lt}}),Object.defineProperty(tn.prototype,"minimum",{get:function(){return this._minimum},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("Minimum must be a real number, not: "+lt);this._minimum=lt}}),Object.defineProperty(tn.prototype,"maximum",{get:function(){return this._maximum},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("Maximum must be a real number, not: "+lt);this._maximum=lt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(lt,E){var z=go.Shape._FigureParameters[lt];return z?z[E]:null},go.Shape.setFigureParameter=function(lt,E,z){if(!(z instanceof tn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+z);if(z.defaultValue<z.minimum||z.defaultValue>z.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+z.defaultValue);var ot=go.Shape._FigureParameters[lt];ot||(ot=[],go.Shape._FigureParameters[lt]=ot),ot[E]=z};var Ke=[];function Rt(lt,E){var z=Ke.pop();return z===void 0?new go.Point(lt,E):(z.x=lt,z.y=E,z)}function Ft(){var lt=Ke.pop();return lt===void 0?new go.Point:lt}function ie(lt){Ke.push(lt)}function rt(lt,E,z,ot,it,at,ut,wt,Et){Et||(Et=new go.Point);var At=lt-z,_t=it-ut,Mt=NaN,jt=NaN;if(At===0)if(_t===0)lt===z&&(Mt=lt,jt=E);else{var Lt=(at-wt)/_t,It=at-Lt*it;Mt=lt,jt=Lt*Mt+It}else if(_t===0){var Ut=(E-ot)/At,Xt=E-Ut*lt;Mt=it,jt=Ut*Mt+Xt}else{var Ut=(E-ot)/At,Lt=(at-wt)/_t,Xt=E-Ut*lt,It=at-Lt*it;Mt=(It-Xt)/(Ut-Lt),jt=Ut*Mt+Xt}return Et.x=Mt,Et.y=jt,Et}function kt(lt,E,z,ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt){var It=1-Et,Ut=Et,Xt=lt*It+z*Ut,Gt=E*It+ot*Ut,Yt=z*It+it*Ut,Ht=ot*It+at*Ut,ne=it*It+ut*Ut,ae=at*It+wt*Ut,ve=Xt*It+Yt*Ut,Kt=Gt*It+Ht*Ut,re=Yt*It+ne*Ut,we=Ht*It+ae*Ut,Me=ve*It+re*Ut,ke=Kt*It+we*Ut;At.x=Xt,At.y=Gt,_t.x=ve,_t.y=Kt,Mt.x=Me,Mt.y=ke,jt.x=re,jt.y=we,Lt.x=ne,Lt.y=ae}var Ct=new go.Spot(.156,.156),St=new go.Spot(.844,.844),pt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new tn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=5),ot=Math.min(ot,E/3),ot=Math.min(ot,z/3);var it=ot*pt,at=new go.Geometry().add(new go.PathFigure(ot,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-ot,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,ot,E-it,0,E,it)).add(new go.PathSegment(go.PathSegment.Line,E,z-ot)).add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,z-it,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,ot,z)).add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,it,z,0,z-it)).add(new go.PathSegment(go.PathSegment.Line,0,ot)).add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,it,it,0).close()));return it>1&&(at.spot1=new go.Spot(0,0,it,it),at.spot2=new go.Spot(1,1,-it,-it)),at}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,z).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,z).add(new go.PathSegment(go.PathSegment.Line,0,z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=0,ot.startY=z/2,ot.endX=E,ot.endY=z/2,ot}),go.Shape.defineFigureGenerator("LineV",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=E/2,ot.startY=0,ot.endX=E/2,ot.endY=z,ot}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,z/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,z)))}),go.Shape.defineFigureGenerator("XLine",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)))}),go.Shape.defineFigureGenerator("LineRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.25*E,z)))}),go.Shape.defineFigureGenerator("LineDown",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.25*z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*z)).add(new go.PathSegment(go.PathSegment.Line,E,.25*z)))}),go.Shape.defineFigureGenerator("LineLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.75*E,z)))}),go.Shape.defineFigureGenerator("LineUp",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.75*z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,E,.75*z)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(lt,E,z){var ot=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ot*E,(1-ot)*z,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,ot*z)).add(new go.PathSegment(go.PathSegment.Move,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Move,0,z/2)).add(new go.PathSegment(go.PathSegment.Line,E,z/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,z)))}),go.Shape.defineFigureGenerator("CircleLine",function(lt,E,z){var ot=E/2,it=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ot,ot,ot,ot).close()));return it.spot1=Ct,it.spot2=St,it.defaultStretch=go.GraphObject.Uniform,it}),go.Shape.defineFigureGenerator("Line1",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=0,ot.startY=0,ot.endX=E,ot.endY=z,ot}),go.Shape.defineFigureGenerator("Line2",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=E,ot.startY=0,ot.endX=0,ot.endY=z,ot}),go.Shape.defineFigureGenerator("Curve1",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,z,pt*E,0,E,(1-pt)*z)))}),go.Shape.defineFigureGenerator("Curve2",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,z,0,pt*z,(1-pt)*E,z)))}),go.Shape.defineFigureGenerator("Curve3",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,pt*z,pt*E,z)))}),go.Shape.defineFigureGenerator("Curve4",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,z,(1-pt)*E,0,0,(1-pt)*z)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new tn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)?ot=.1:ot<-1?ot=-1:ot>1&&(ot=1);var it=Math.abs(ot)*E;if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),it<E/2&&at.setSpots(it/E,0,(E-it)/E,1),at}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new tn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)?ot=10:ot<-E?ot=-E:ot>E&&(ot=E);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),it<E/2&&at.setSpots(it/E,0,(E-it)/E,1),at}}),go.Shape.setFigureParameter("Trapezoid1",0,new tn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)?ot=.2:ot<.5?ot=-.5:ot>.5&&(ot=.5);var it=Math.abs(ot)*E;if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),it<E/2&&at.setSpots(it/E,0,(E-it)/E,1),at}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new tn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)?ot=20:ot<-E?ot=-E/2:ot>E&&(ot=E/2);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),it<E/2&&at.setSpots(it/E,0,(E-it)/E,1),at}}),go.Shape.setFigureParameter("ManualOperation",0,new tn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)?ot=10:ot<-E?ot=-E/2:ot>E&&(ot=E/2);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())):at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())),it<E/2&&at.setSpots(it/E,0,(E-it)/E,1),at}});var vt=[];function yt(){var lt=vt.pop();return lt===void 0?[]:lt}function xt(lt){lt.length=0,vt.push(lt)}function dt(lt){for(var E=yt(),z=.5,ot=.5,it=Math.PI*1.5,at=0,ut=0;ut<lt;ut++)at=2*Math.PI/lt*ut+it,E[ut]=new go.Point(ot+z*Math.cos(at),ot+z*Math.sin(at));return E.push(E[0]),E}function ft(lt){var E=ct(lt),z=yt();z[0]=E[0];for(var ot=1,it=1;ot<E.length;ot+=2,it+=3)z[it]=E[ot],z[it+1]=E[ot],z[it+2]=E[ot+1];return xt(E),z}function ct(lt){for(var E=dt(lt),z=yt(),ot=Math.floor(E.length/2),it=E.length-1,at=lt%2===0?2:1,ut=0;ut<it;ut++){var wt=E[ut],Et=E[ut+1],At=E[(ot+ut-1)%it],_t=E[(ot+ut+at)%it];z[ut*2]=wt,z[ut*2+1]=rt(wt.x,wt.y,At.x,At.y,Et.x,Et.y,_t.x,_t.y,new go.Point)}return z[z.length]=z[0],xt(E),z}go.Shape.defineFigureGenerator("Pentagon",function(lt,E,z){var ot=dt(5),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<5;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.2,.22),it.spot2=new go.Spot(.8,.9),it}),go.Shape.defineFigureGenerator("Hexagon",function(lt,E,z){var ot=dt(6),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<6;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.07,.25),it.spot2=new go.Spot(.93,.75),it}),go.Shape.defineFigureGenerator("Heptagon",function(lt,E,z){var ot=dt(7),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<7;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.2,.15),it.spot2=new go.Spot(.8,.85),it}),go.Shape.defineFigureGenerator("Octagon",function(lt,E,z){var ot=dt(8),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<8;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.15,.15),it.spot2=new go.Spot(.85,.85),it}),go.Shape.defineFigureGenerator("Nonagon",function(lt,E,z){var ot=dt(9),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<9;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.17,.13),it.spot2=new go.Spot(.82,.82),it}),go.Shape.defineFigureGenerator("Decagon",function(lt,E,z){var ot=dt(10),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<10;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.16,.16),it.spot2=new go.Spot(.84,.84),it}),go.Shape.defineFigureGenerator("Dodecagon",function(lt,E,z){var ot=dt(12),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<12;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.16,.16),it.spot2=new go.Spot(.84,.84),it}),go.Shape.defineFigureGenerator("FivePointedStar",function(lt,E,z){var ot=ct(5),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<10;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.266,.333),it.spot2=new go.Spot(.733,.733),it}),go.Shape.defineFigureGenerator("SixPointedStar",function(lt,E,z){var ot=ct(6),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<12;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.17,.25),it.spot2=new go.Spot(.83,.75),it}),go.Shape.defineFigureGenerator("SevenPointedStar",function(lt,E,z){var ot=ct(7),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<14;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.222,.277),it.spot2=new go.Spot(.777,.666),it}),go.Shape.defineFigureGenerator("EightPointedStar",function(lt,E,z){var ot=ct(8),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<16;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.25,.25),it.spot2=new go.Spot(.75,.75),it}),go.Shape.defineFigureGenerator("NinePointedStar",function(lt,E,z){var ot=ct(9),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<18;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.222,.277),it.spot2=new go.Spot(.777,.666),it}),go.Shape.defineFigureGenerator("TenPointedStar",function(lt,E,z){var ot=ct(10),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<20;ut++)at.add(new go.PathSegment(go.PathSegment.Line,ot[ut].x*E,ot[ut].y*z));return at.add(new go.PathSegment(go.PathSegment.Line,ot[0].x*E,ot[0].y*z).close()),xt(ot),it.spot1=new go.Spot(.281,.261),it.spot2=new go.Spot(.723,.748),it}),go.Shape.defineFigureGenerator("FivePointedBurst",function(lt,E,z){var ot=ft(5),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<ot.length;ut+=3)at.add(new go.PathSegment(go.PathSegment.Bezier,ot[ut+2].x*E,ot[ut+2].y*z,ot[ut].x*E,ot[ut].y*z,ot[ut+1].x*E,ot[ut+1].y*z));return at.segments.last().close(),xt(ot),it.spot1=new go.Spot(.222,.277),it.spot2=new go.Spot(.777,.777),it}),go.Shape.defineFigureGenerator("SixPointedBurst",function(lt,E,z){var ot=ft(6),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<ot.length;ut+=3)at.add(new go.PathSegment(go.PathSegment.Bezier,ot[ut+2].x*E,ot[ut+2].y*z,ot[ut].x*E,ot[ut].y*z,ot[ut+1].x*E,ot[ut+1].y*z));return at.segments.last().close(),xt(ot),it.spot1=new go.Spot(.17,.222),it.spot2=new go.Spot(.833,.777),it}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(lt,E,z){var ot=ft(7),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<ot.length;ut+=3)at.add(new go.PathSegment(go.PathSegment.Bezier,ot[ut+2].x*E,ot[ut+2].y*z,ot[ut].x*E,ot[ut].y*z,ot[ut+1].x*E,ot[ut+1].y*z));return at.segments.last().close(),xt(ot),it.spot1=new go.Spot(.222,.222),it.spot2=new go.Spot(.777,.777),it}),go.Shape.defineFigureGenerator("EightPointedBurst",function(lt,E,z){var ot=ft(8),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<ot.length;ut+=3)at.add(new go.PathSegment(go.PathSegment.Bezier,ot[ut+2].x*E,ot[ut+2].y*z,ot[ut].x*E,ot[ut].y*z,ot[ut+1].x*E,ot[ut+1].y*z));return at.segments.last().close(),xt(ot),it.spot1=new go.Spot(.222,.222),it.spot2=new go.Spot(.777,.777),it}),go.Shape.defineFigureGenerator("NinePointedBurst",function(lt,E,z){var ot=ft(9),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<ot.length;ut+=3)at.add(new go.PathSegment(go.PathSegment.Bezier,ot[ut+2].x*E,ot[ut+2].y*z,ot[ut].x*E,ot[ut].y*z,ot[ut+1].x*E,ot[ut+1].y*z));return at.segments.last().close(),xt(ot),it.spot1=new go.Spot(.222,.222),it.spot2=new go.Spot(.777,.777),it}),go.Shape.defineFigureGenerator("TenPointedBurst",function(lt,E,z){var ot=ft(10),it=new go.Geometry,at=new go.PathFigure(ot[0].x*E,ot[0].y*z,!0);it.add(at);for(var ut=1;ut<ot.length;ut+=3)at.add(new go.PathSegment(go.PathSegment.Bezier,ot[ut+2].x*E,ot[ut+2].y*z,ot[ut].x*E,ot[ut].y*z,ot[ut+1].x*E,ot[ut+1].y*z));return at.segments.last().close(),xt(ot),it.spot1=new go.Spot(.222,.222),it.spot2=new go.Spot(.777,.777),it}),go.Shape.setFigureParameter("FramedRectangle",0,new tn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new tn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(lt,E,z){var ot=lt?lt.parameter1:NaN,it=lt?lt.parameter2:NaN;isNaN(ot)&&(ot=8),isNaN(it)&&(it=8);var at=new go.Geometry,ut=new go.PathFigure(0,0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot<E/2&&it<z/2&&(ut.add(new go.PathSegment(go.PathSegment.Move,ot,it)),ut.add(new go.PathSegment(go.PathSegment.Line,ot,z-it)),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,z-it)),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,it).close())),at.setSpots(0,0,1,1,ot,it,-ot,-it),at}),go.Shape.setFigureParameter("Ring",0,new tn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=8);var it=E/2,at=new go.Geometry,ut=new go.PathFigure(E,E/2,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,0,360,it,it,it,it).close());var wt=Math.max(it-ot,0);return wt>0&&(ut.add(new go.PathSegment(go.PathSegment.Move,E/2+wt,E/2)),ut.add(new go.PathSegment(go.PathSegment.Arc,0,-360,it,it,wt,wt).close())),at.spot1=Ct,at.spot2=St,at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Cloud",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*z,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*z,-.09239631*E,.07836421*z,.1406031*E,-.0542823*z)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*z,.2450511*E,-.00697547*z,.3776197*E,-.01112067*z)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*z,.4539471*E,0,.6066018*E,-.02526587*z)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*z,.6914277*E,-.01904177*z,.8921095*E,-.01220843*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*z,1.036446*E,.04105738*z,1.020377*E,.3022052*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*z,1.04448*E,.360238*z,.992256*E,.5219009*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*z,1.032337*E,.5771781*z,1.018411*E,.8120651*z)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*z,1.028411*E,.9571472*z,.8556702*E,1.052487*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*z,.7431877*E,1.009325*z,.5624123*E,1.021761*z)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*z,.4820677*E,1.031761*z,.3030112*E,1.002796*z)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*z,.2329994*E,1.01518*z,.03213784*E,1.01518*z)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*z,-.02812061*E,.9032597*z,-.01205169*E,.6835638*z)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*z,-.01812061*E,.6089503*z,-.00606892*E,.4555777*z)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*z,-.01606892*E,.3892545*z,-.01205169*E,.1944299*z))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(lt,E,z){var ot=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ot*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,E,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Line,ot*E,z)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Line,0,ot*z).close())).setSpots(ot/2,ot/2,1-ot/2,1-ot/2)}),go.Shape.setFigureParameter("Pie",0,new tn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new tn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(lt,E,z){var ot=lt?lt.parameter1:NaN,it=lt?lt.parameter2:NaN;isNaN(ot)&&(ot=0),isNaN(it)&&(it=315);var at=ot%360;at<0&&(at+=360);var ut=it%360,wt=Math.min(E,z)/2;return new go.Geometry().add(new go.PathFigure(wt,wt).add(new go.PathSegment(go.PathSegment.Arc,at,ut,wt,wt,wt,wt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(lt,E,z){var ot=pt/Math.SQRT2*.5,it=Math.SQRT2/2,at=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,z,!0).add(new go.PathSegment(go.PathSegment.Bezier,it*E,at*z,E,(1-ot)*z,(it+ot)*E,(at+ot)*z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close()))}),go.Shape.setFigureParameter("ThickCross",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=30);var it=Math.min(ot,E)/2,at=E/2,ut=z/2;return new go.Geometry().add(new go.PathFigure(at-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,at+it,0)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut-it).close()))}),go.Shape.setFigureParameter("ThinCross",0,new tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=10);var it=Math.min(ot,E)/2,at=E/2,ut=z/2;return new go.Geometry().add(new go.PathFigure(at-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,at+it,0)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut-it).close()))}),go.Shape.setFigureParameter("ThickX",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(lt,E,z){var ot=lt?lt.parameter1:NaN;if((isNaN(ot)||ot<0)&&(ot=30),E===0||z===0){var it=new go.Geometry(go.Geometry.Rectangle);return it.startX=0,it.startY=0,it.endX=E,it.endY=z,it}else{var at=E/2,ut=z/2,wt=Math.atan2(z,E),Et=ot-Math.min(Math.cos(wt)*ot/2,at),At=ot-Math.min(Math.sin(wt)*ot/2,ut),it=new go.Geometry,_t=new go.PathFigure(Et,0,!0);return it.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,at,.2*z)),_t.add(new go.PathSegment(go.PathSegment.Line,E-Et,0)),_t.add(new go.PathSegment(go.PathSegment.Line,E,At)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,E,z-At)),_t.add(new go.PathSegment(go.PathSegment.Line,E-Et,z)),_t.add(new go.PathSegment(go.PathSegment.Line,at,.8*z)),_t.add(new go.PathSegment(go.PathSegment.Line,Et,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,z-At)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,0,At).close()),it}}),go.Shape.setFigureParameter("ThinX",0,new tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=10);var it=new go.Geometry,at=new go.PathFigure(.1*E,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.1*z).close()),it}),go.Shape.setFigureParameter("SquareIBeam",0,new tn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.2);var it=new go.Geometry,at=new go.PathFigure(0,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5+ot/2)*E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5+ot/2)*E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5-ot/2)*E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5-ot/2)*E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,ot*z).close()),it}),go.Shape.setFigureParameter("RoundedIBeam",0,new tn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.5);var it=new go.Geometry,at=new go.PathFigure(0,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,z,Math.abs(1-ot)*E,.25*z,Math.abs(1-ot)*E,.75*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ot*E,.75*z,ot*E,.25*z).close()),it}),go.Shape.defineFigureGenerator("HalfEllipse",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,pt*E,0,E,(.5-pt/2)*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,(.5+pt/2)*z,pt*E,z).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,0,E,z)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*z,.5*E,.25*z).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,z,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*z,.1*E,.8*z,0,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*z,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,.5*z,.9*E,.8*z).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*z)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.6*E,.2*z,E,.25*z)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*z,E,.8*z,.6*E,.8*z)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,.5*E,.75*z,.55*E,.95*z)).add(new go.PathSegment(go.PathSegment.Line,.25*E,z)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*z,.45*E,.95*z,.5*E,.75*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.4*E,.8*z,0,.8*z)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*z,0,.25*z,.4*E,.2*z).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.4*E,.6*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,z,.5*E,.75*z,.45*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*z,.55*E,.95*z,.5*E,.75*z));var at=.2,ut=.3,wt=0,Et=at*pt;return it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ut)*E,(.5+wt)*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut)*E,(.5-Et+wt)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut+.05)*E,(.5-Et+wt-.02)*z)),at=.2,ut=0,wt=-.3,Et=at*pt,it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ut)*E,(.5+wt)*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut)*E,(.5-Et+wt)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ut)*E,(.5+wt)*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut)*E,(.5-Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Et+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),at=.2,ut=-.3,wt=0,Et=at*pt,it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut-.05)*E,(.5-Et+wt-.02)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ut)*E,(.5+wt)*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut)*E,(.5-Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z).close()),ot.setSpots(.06,.33,.93,.68),ot}),go.Shape.defineFigureGenerator("YinYang",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.5,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),it.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var at=.1,ut=.5,wt=.25;return it.add(new go.PathSegment(go.PathSegment.Move,(ut+at)*E,wt*z)),it.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ut,z*wt,at*E,at*E).close()),it=new go.PathFigure(E*.5,0,!1),ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),wt=.75,it=new go.PathFigure((ut+at)*E,wt*z,!0),ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ut,z*wt,at*E,at*E).close()),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Peace",function(lt,E,z){var ot=.8535533905932737,it=.5*E,at=.5*z;return new go.Geometry().add(new go.PathFigure(it,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,it,at,it,at)).add(new go.PathSegment(go.PathSegment.Line,it,z)).add(new go.PathSegment(go.PathSegment.Move,it,at)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,ot*z)).add(new go.PathSegment(go.PathSegment.Move,it,at)).add(new go.PathSegment(go.PathSegment.Line,ot*E,ot*z)))}),go.Shape.defineFigureGenerator("NotAllowed",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=.5,wt=.5,Et=new go.PathFigure(ut*E,(wt-at)*z);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),at=.4,it=pt*.4;var At=Ft(),_t=Ft(),Mt=Ft(),jt=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.42,At,_t,Mt,jt,jt);var Lt=Ft(),It=Ft(),Ut=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.58,jt,jt,Ut,Lt,It);var Xt=Ft(),Gt=Ft(),Yt=Ft();kt(ut,wt+at,ut-it,wt+at,ut-at,wt+it,ut-at,wt,.42,Xt,Gt,Yt,jt,jt);var Ht=Ft(),ne=Ft(),ae=Ft();return kt(ut,wt+at,ut-it,wt+at,ut-at,wt+it,ut-at,wt,.58,jt,jt,ae,Ht,ne),Et.add(new go.PathSegment(go.PathSegment.Move,ae.x*E,ae.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,Ht.x*E,Ht.y*z,ne.x*E,ne.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Mt.x*E,Mt.y*z,At.x*E,At.y*z,_t.x*E,_t.y*z)),Et.add(new go.PathSegment(go.PathSegment.Line,ae.x*E,ae.y*z).close()),Et.add(new go.PathSegment(go.PathSegment.Move,Yt.x*E,Yt.y*z)),Et.add(new go.PathSegment(go.PathSegment.Line,Ut.x*E,Ut.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,Lt.x*E,Lt.y*z,It.x*E,It.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Yt.x*E,Yt.y*z,Xt.x*E,Xt.y*z,Gt.x*E,Gt.y*z).close()),ie(At),ie(_t),ie(Mt),ie(jt),ie(Lt),ie(It),ie(Ut),ie(Xt),ie(Gt),ie(Yt),ie(Ht),ie(ne),ie(ae),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Fragile",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*z)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*z,E,.25*z,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*z,0,.25*z).close()))}),go.Shape.setFigureParameter("HourGlass",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=30),ot>E&&(ot=E);var it=(E-ot)/2,at=it+ot;return new go.Geometry().add(new go.PathFigure(at,.5*z).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z)).add(new go.PathSegment(go.PathSegment.Line,it,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.55*z).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*z)).add(new go.PathSegment(go.PathSegment.Line,E,.45*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*z).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(lt,E,z){var ot=new go.Geometry,it=pt*.4,at=.4,ut=.5,wt=.5,Et=Ft(),At=Ft(),_t=Ft(),Mt=Ft(),jt=new go.PathFigure((ut-at)*E,wt*z,!1);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.44,_t,Mt,At,Et,Et),jt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z));var Lt=Rt(At.x,At.y);kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.56,Et,Et,At,_t,Mt);var It=Rt(At.x,At.y);jt.add(new go.PathSegment(go.PathSegment.Line,(Lt.x*.1+.95*.9)*E,Lt.y*.1*z)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*E,Lt.y*.1*z)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),jt.add(new go.PathSegment(go.PathSegment.Line,E,0)),jt.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),jt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*E,.15*z)),jt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*E,(It.y*.1+.05*.9)*z)),jt.add(new go.PathSegment(go.PathSegment.Line,It.x*E,It.y*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),at=.35,it=pt*.35;var Ut=new go.PathFigure(ut*E,(wt-at)*z,!1);ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z));var Xt=new go.PathFigure((ut-at)*E,wt*z,!1);return ot.add(Xt),ie(Et),ie(At),ie(_t),ie(Mt),ie(Lt),ie(It),ot.spot1=new go.Spot(.202,.257),ot.spot2=new go.Spot(.792,.739),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("GenderFemale",function(lt,E,z){var ot=new go.Geometry,it=.375,at=0,ut=-.125,wt=it*pt,Et=new go.PathFigure((.525+at)*E,(.5+it+ut)*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+at)*E,(.5+ut)*z,(.5+wt+at)*E,(.5+it+ut)*z,(.5+it+at)*E,(.5+wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5-it+ut)*z,(1-.5+it+at)*E,(.5-wt+ut)*z,(.5+wt+at)*E,(.5-it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.475+at)*E,(.5+it+ut)*z,(.5-it+at)*E,(.5+wt+ut)*z,(.5-wt+at)*E,(.5+it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*z).close()),it=.325,at=0,ut=-.125,wt=it*pt;var Et=new go.PathFigure((1-.5+it+at)*E,(.5+ut)*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5+it+ut)*z,(.5+it+at)*E,(.5+wt+ut)*z,(.5+wt+at)*E,(.5+it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5+it+ut)*z,(.5-it+at)*E,(.5+wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+at)*E,(.5+ut)*z,(.5+wt+at)*E,(.5-it+ut)*z,(1-.5+it+at)*E,(.5-wt+ut)*z));var Et=new go.PathFigure((.525+at)*E,(.5+it+ut)*z,!1);return ot.add(Et),ot.spot1=new go.Spot(.232,.136),ot.spot2=new go.Spot(.682,.611),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("LogicImplies",function(lt,E,z){var ot=lt?lt.parameter1:NaN;return isNaN(ot)&&(ot=.2),new go.Geometry().add(new go.PathFigure((1-ot)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(lt,E,z){var ot=lt?lt.parameter1:NaN;return isNaN(ot)&&(ot=.2),new go.Geometry().add(new go.PathFigure((1-ot)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Move,ot*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,ot*E,z))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)))}),go.Shape.defineFigureGenerator("LogicAnd",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(lt,E,z){var ot=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*z,.5*E,.5*z)));return ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("LogicTruth",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Move,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Move,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z)))}),go.Shape.defineFigureGenerator("LogicForAll",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Move,0,z)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(lt,E,z){var ot=.5;return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,0,ot*z)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ot*E,ot*z,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(lt,E,z){var ot=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,ot*z)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ot*E,ot*z,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new tn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new tn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=.3);var at=(1-ot)*E,ut=(.5-it/2)*z,wt=(.5+it/2)*z,Et=new go.Geometry,At=new go.PathFigure(0,ut,!0);Et.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at,ut)),At.add(new go.PathSegment(go.PathSegment.Line,at,0)),At.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Line,at,z)),At.add(new go.PathSegment(go.PathSegment.Line,at,wt)),At.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,ut/z);var _t=rt(0,wt/z,1,wt/z,at/E,1,1,.5,Ft());return Et.spot2=new go.Spot(_t.x,_t.y),ie(_t),Et}),go.Shape.setFigureParameter("Arrow2",0,new tn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new tn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=30),ot>E&&(ot=E);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=30),it=Math.min(it,z/2);var at=E-ot,ut=(z-it)/2,wt=ut+it,Et=new go.Geometry,At=new go.PathFigure(0,ut,!0);Et.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at,ut)),At.add(new go.PathSegment(go.PathSegment.Line,at,0)),At.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Line,at,z)),At.add(new go.PathSegment(go.PathSegment.Line,at,wt)),At.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,ut/z);var _t=rt(0,wt/z,1,wt/z,at/E,1,1,.5,Ft());return Et.spot2=new go.Spot(_t.x,_t.y),ie(_t),Et}),go.Shape.defineFigureGenerator("Chevron",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("DoubleArrow",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,1*z).close()),ot}),go.Shape.setFigureParameter("DoubleEndArrow",0,new tn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var Et=rt(0,.5,.3,0,0,it/z,.1,it/z,Ft());return ut.spot1=new go.Spot(Et.x,Et.y),Et=rt(.7,1,1,.5,0,at/z,1,at/z,Et),ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new tn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new tn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=40);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=100);var at=(z-ot)/2,ut=at+ot,wt=(z-it)/2,Et=wt+it;(ot>z||it>z)&&(it>ot?(ot=ot*z/it,at=(z-ot)/2,ut=at+ot,wt=0,Et=z):(at=0,ut=z,wt=0,Et=z));var At=new go.Geometry,_t=new go.PathFigure(E,.5*z,!0);At.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,wt).close());var Mt=rt(0,.5,.3,wt/z,0,at/z,1,at/z,Ft());return At.spot1=new go.Spot(Mt.x,Mt.y),Mt=rt(.7,Et/z,1,.5,0,ut/z,1,ut/z,Mt),At.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),At}),go.Shape.setFigureParameter("IBeamArrow",0,new tn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(0,it/z);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("IBeamArrow2",0,new tn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new tn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=40);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=100);var at=(z-ot)/2,ut=at+ot,wt=(z-it)/2,Et=wt+it;(ot>z||it>z)&&(it>ot?(ot=ot*z/it,at=(z-ot)/2,ut=at+ot,wt=0,Et=z):(at=0,ut=z,wt=0,Et=z));var At=new go.Geometry,_t=new go.PathFigure(E,.5*z,!0);At.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,wt).close()),At.spot1=new go.Spot(0,at/z);var Mt=rt(.7,Et/z,1,.5,0,ut/z,1,ut/z,Ft());return At.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),At}),go.Shape.setFigureParameter("Pointer",0,new tn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.1);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),it.spot1=new go.Spot(ot,.35);var ut=rt(.2,.65,1,.65,0,1,1,.5,Ft());return it.spot2=new go.Spot(ut.x,ut.y),ie(ut),it}),go.Shape.setFigureParameter("RoundedPointer",0,new tn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ot*E,.75*z,ot*E,.25*z).close()),it.spot1=new go.Spot(ot,.35);var ut=rt(0,.65,1,.65,0,1,1,.5,Ft());return it.spot2=new go.Spot(ut.x,ut.y),ie(ut),it}),go.Shape.setFigureParameter("SplitEndArrow",0,new tn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.4);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(.2,.3);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("SplitEndArrow2",0,new tn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=50);var it=(z-ot)/2,at=it+ot;ot>z&&(it=0,at=z);var ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(.2,it/z);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("SquareArrow",0,new tn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.7);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,0).close()),it.spot1=go.Spot.TopLeft,it.spot2=new go.Spot(ot,1),it}),go.Shape.defineFigureGenerator("Cone1",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(0,.9*z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z).close()),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.97),ot}),go.Shape.defineFigureGenerator("Cone2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.9*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*z,(1-.85/.9)*E,z,.85/.9*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.9*z).close());var at=new go.PathFigure(0,.9*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*z,(1-.85/.9)*E,.8*z,.85/.9*E,.8*z)),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.82),ot}),go.Shape.defineFigureGenerator("Cube1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*z).close());var at=new go.PathFigure(.5*E,z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.15*z)),at.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(.5,.85),ot}),go.Shape.defineFigureGenerator("Cube2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.3*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var at=new go.PathFigure(0,.3*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(.7,1),ot}),go.Shape.defineFigureGenerator("Cylinder1",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,z/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(0,ot,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,pt*ot,(.5-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,1*E,ot,(.5+at)*E,0,1*E,pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*z,1*E,z-pt*ot,(.5+at)*E,1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,(.5-at)*E,1*z,0,z-pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,0,ot));var wt=new go.PathFigure(E,ot,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*ot,1*E,2*ot-pt*ot,(.5+at)*E,2*ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,ot,(.5-at)*E,2*ot,0,2*ot-pt*ot)),it.spot1=new go.Spot(0,0,0,2*ot),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,z/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(0,z-ot,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,pt*ot,(.5-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,ot,(.5+at)*E,0,E,pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,z-pt*ot,(.5+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,(.5-at)*E,z,0,z-pt*ot));var wt=new go.PathFigure(0,z-ot,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z-2*ot,0,z-ot-pt*ot,(.5-at)*E,z-2*ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E,z-ot,(.5+at)*E,z-2*ot,E,z-ot-pt*ot)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,0,-2*ot),it}),go.Shape.defineFigureGenerator("Cylinder3",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,E/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(ot,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,E-pt*ot,0,E,(.5-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,(.5+at)*z,E-pt*ot,z)),ut.add(new go.PathSegment(go.PathSegment.Line,ot,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,pt*ot,z,0,(.5+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,(.5-at)*z,pt*ot,0));var wt=new go.PathFigure(ot,0,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,2*ot,.5*z,ot+pt*ot,0,2*ot,(.5-at)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ot,z,2*ot,(.5+at)*z,ot+pt*ot,z)),it.spot1=new go.Spot(0,0,2*ot,0),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder4",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,E/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(E-ot,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,E-pt*ot,0,E,(.5-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,(.5+at)*z,E-pt*ot,z)),ut.add(new go.PathSegment(go.PathSegment.Line,ot,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,pt*ot,z,0,(.5+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,(.5-at)*z,pt*ot,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,0));var wt=new go.PathFigure(E-ot,0,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-2*ot,.5*z,E-ot-pt*ot,0,E-2*ot,(.5-at)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E-2*ot,(.5+at)*z,E-ot-pt*ot,z)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,-2*ot,0),it}),go.Shape.defineFigureGenerator("Prism1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,.25*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(.25*E,.25*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.408,.172),ot.spot2=new go.Spot(.833,.662),ot}),go.Shape.defineFigureGenerator("Prism2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.25*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(0,z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),at.add(new go.PathSegment(go.PathSegment.Move,0,.25*z)),at.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("Pyramid1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z).close());var at=new go.PathFigure(.5*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.25,.367),ot.spot2=new go.Spot(.75,.875),ot}),go.Shape.defineFigureGenerator("Pyramid2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*z).close());var at=new go.PathFigure(.5*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.85*z)),at.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),ot.spot1=new go.Spot(.25,.367),ot.spot2=new go.Spot(.75,.875),ot}),go.Shape.defineFigureGenerator("Actor",function(lt,E,z){var ot=new go.Geometry,it=.2,at=.1,ut=pt*it,wt=pt*at,Et=.5,At=.1,_t=new go.PathFigure(Et*E,(At+at)*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-it)*E,At*z,(Et-ut)*E,(At+at)*z,(Et-it)*E,(At+wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-at)*z,(Et-it)*E,(At-wt)*z,(Et-ut)*E,(At-at)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+it)*E,At*z,(Et+ut)*E,(At-at)*z,(Et+it)*E,(At-wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+at)*z,(Et+it)*E,(At+wt)*z,(Et+ut)*E,(At+at)*z));var Mt=.05,jt=pt*Mt;Et=.05,At=.25;var Lt=new go.PathFigure(.5*E,.2*z,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*z)),Et=.95,At=.25,Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+Mt)*E,At*z,(Et+jt)*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*z)),Mt=.025,jt=pt*Mt,Et=.825,At=.35,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*z)),Mt=.05,jt=pt*Mt,Et=.5,At=.7,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.45*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*z)),Mt=.025,jt=pt*Mt,Et=.175,At=.35,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),Mt=.05,jt=pt*Mt,Et=.05,At=.25,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z,(Et-jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*z)),ot.spot1=new go.Spot(.2,.2),ot.spot2=new go.Spot(.8,.65),ot}),go.Shape.setFigureParameter("Card",0,new tn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.2);var it=new go.Geometry,at=new go.PathFigure(E,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,0).close()),it.spot1=new go.Spot(0,ot),it.spot2=go.Spot.BottomRight,it}),go.Shape.defineFigureGenerator("Collate",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z));var at=new go.PathFigure(.5*E,.5*z,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),ot.spot1=new go.Spot(.25,0),ot.spot2=new go.Spot(.75,.25),ot}),go.Shape.defineFigureGenerator("CreateRequest",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(0,it*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,(1-it)*z)),ot}),go.Shape.defineFigureGenerator("Database",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(E,.1*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-at)*z,(.5-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,(.5+it)*E,0,E,(.1-at)*z));var wt=new go.PathFigure(E,.1*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,E,(.1+at)*z,(.5+it)*E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*z,(.5-it)*E,.2*z,0,(.1+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,E,(.2+at)*z,(.5+it)*E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*z,(.5-it)*E,.3*z,0,(.2+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*z,E,(.3+at)*z,(.5+it)*E,.4*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*z,(.5-it)*E,.4*z,0,(.3+at)*z)),ot.spot1=new go.Spot(0,.4),ot.spot2=new go.Spot(1,.9),ot}),go.Shape.defineFigureGenerator("DataStorage",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,E,0,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*z,.25*E,.1*z).close()),ot.spot1=new go.Spot(.226,0),ot.spot2=new go.Spot(.81,1),ot}),go.Shape.defineFigureGenerator("DiskStorage",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(E,.1*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-at)*z,(.5-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,(.5+it)*E,0,E,(.1-at)*z));var wt=new go.PathFigure(E,.1*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,E,(.1+at)*z,(.5+it)*E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*z,(.5-it)*E,.2*z,0,(.1+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,E,(.2+at)*z,(.5+it)*E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*z,(.5-it)*E,.3*z,0,(.2+at)*z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(1,.9),ot}),go.Shape.defineFigureGenerator("Display",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,E,0,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close()),ot.spot1=new go.Spot(.25,0),ot.spot2=new go.Spot(.75,1),ot}),go.Shape.defineFigureGenerator("DividedEvent",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)?it=.2:it<.15&&(it=.15);var at=pt*.2,ut=new go.PathFigure(0,.2*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-at)*z,(.2-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*z,(.8+at)*E,0,E,(.2-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,z,E,(.8+at)*z,(.8+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*z,(.2-at)*E,z,0,(.8+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*z));var wt=new go.PathFigure(0,it*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ot}),go.Shape.defineFigureGenerator("DividedProcess",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;(isNaN(it)||it<.1)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(0,it*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ot}),go.Shape.defineFigureGenerator("Document",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(1,.6),ot}),go.Shape.defineFigureGenerator("ExternalOrganization",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;(isNaN(it)||it<.2)&&(it=.2);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,it*z)),ut.add(new go.PathSegment(go.PathSegment.Move,E,it*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,(1-it)*z)),ot}),go.Shape.defineFigureGenerator("ExternalProcess",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close());var at=new go.PathFigure(.1*E,.4*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*z)),ot.spot1=new go.Spot(.25,.25),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("File",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(.75*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Interrupt",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z));var at=new go.PathFigure(E,.5*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z));var ut=new go.PathFigure(E,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("InternalStorage",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.1);var ut=new go.PathFigure(0,0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var wt=new go.PathFigure(it*E,0,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),wt.add(new go.PathSegment(go.PathSegment.Move,0,at*z)),wt.add(new go.PathSegment(go.PathSegment.Line,E,at*z)),ot}),go.Shape.defineFigureGenerator("Junction",function(lt,E,z){var ot=new go.Geometry,it=1/Math.SQRT2,at=(1-1/Math.SQRT2)/2,ut=pt*.5,wt=.5,Et=new go.PathFigure(E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,z,E,(wt+ut)*z,(wt+ut)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,wt*z,(wt-ut)*E,z,0,(wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,0,0,(wt-ut)*z,(wt-ut)*E,0)),Et.add(new go.PathSegment(go.PathSegment.Bezier,E,wt*z,(wt+ut)*E,0,E,(wt-ut)*z));var At=new go.PathFigure((at+it)*E,(at+it)*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at*E,at*z)),At.add(new go.PathSegment(go.PathSegment.Move,at*E,(at+it)*z)),At.add(new go.PathSegment(go.PathSegment.Line,(at+it)*E,at*z)),ot}),go.Shape.defineFigureGenerator("LinedDocument",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close());var at=new go.PathFigure(.1*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*z)),ot.spot1=new go.Spot(.1,0),ot.spot2=new go.Spot(1,.6),ot}),go.Shape.defineFigureGenerator("LoopLimit",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("MagneticTape",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(.5*E,z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(at+.1)*E,.9*z,E,(at+it)*z,(at+it)*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.15,.15),ot.spot2=new go.Spot(.85,.8),ot}),go.Shape.defineFigureGenerator("ManualInput",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("MessageFromUser",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.7);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,it*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot}),go.Shape.defineFigureGenerator("MicroformProcessing",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.25);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,it*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-it)*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("MicroformRecording",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(1,.75),ot}),go.Shape.defineFigureGenerator("MultiDocument",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*z,.96*E,.47*z,.93*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*z,.86*E,.57*z,.83*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.4*E,.4*z,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var at=new go.PathFigure(.1*E,.2*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.8,.77),ot}),go.Shape.defineFigureGenerator("MultiProcess",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,.1*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z).close());var at=new go.PathFigure(.2*E,.1*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*z)),ot.spot1=new go.Spot(0,.2),ot.spot2=new go.Spot(.8,1),ot}),go.Shape.defineFigureGenerator("OfflineStorage",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=1-it,ut=new go.PathFigure(0,0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close());var wt=new go.PathFigure(.5*it*E,it*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*it)*E,it*z)),ot}),go.Shape.defineFigureGenerator("OffPageConnector",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(.75,1),ot}),go.Shape.defineFigureGenerator("Or",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(E,at*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,z,E,(at+it)*z,(at+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z));var wt=new go.PathFigure(E,.5*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ot}),go.Shape.defineFigureGenerator("PaperTape",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.3*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*z,.5*E,.6*z,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close()),ot.spot1=new go.Spot(0,.49),ot.spot2=new go.Spot(1,.75),ot}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.3);var ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.3);var ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("Procedure",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure((1-it)*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,it*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ot}),go.Shape.defineFigureGenerator("Process",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Sort",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close());var at=new go.PathFigure(0,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),ot.spot1=new go.Spot(.25,.25),ot.spot2=new go.Spot(.75,.5),ot}),go.Shape.defineFigureGenerator("Start",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.25);var at=new go.PathFigure(it*E,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*z,.25*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*z,.25*E,.5*z));var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,z)),ot.spot1=new go.Spot(it,0),ot.spot2=new go.Spot(1-it,1),ot}),go.Shape.defineFigureGenerator("Terminator",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*z,.25*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*z,.25*E,.5*z)),ot.spot1=new go.Spot(.23,0),ot.spot2=new go.Spot(.77,1),ot}),go.Shape.defineFigureGenerator("TransmittalTape",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-it)*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,(1-it)*z).close()),ot.spot1=go.Spot.TopLeft,ot}),go.Shape.defineFigureGenerator("AndGate",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(.5+it)*E,0,E,(.5-it)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.5+it)*z,(.5+it)*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(.55,1),ot}),go.Shape.defineFigureGenerator("Buffer",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("Clock",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(E,at*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,z,E,(at+it)*z,(at+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z));var wt=new go.PathFigure(E,at*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,at*z));var Et=new go.PathFigure(.8*E,.75*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*z)),ot}),go.Shape.defineFigureGenerator("Ground",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Move,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,z)),ot}),go.Shape.defineFigureGenerator("Inverter",function(lt,E,z){var ot=new go.Geometry,it=pt*.1,at=.1,ut=.9,wt=.5,Et=new go.PathFigure(.8*E,.5*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,0,z)),Et.add(new go.PathSegment(go.PathSegment.Line,0,0)),Et.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z));var At=new go.PathFigure((ut+at)*E,wt*z,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt-at)*z,(ut+at)*E,(wt-it)*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.4,.75),ot}),go.Shape.defineFigureGenerator("NandGate",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.4,ut=pt*.1,wt=.1,Et=.9,At=.5,_t=new go.PathFigure(.8*E,.5*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,z,.8*E,(.5+at)*z,(.4+it)*E,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,0)),_t.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(.4+it)*E,0,.8*E,(.5-at)*z));var Mt=new go.PathFigure((Et+wt)*E,At*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E,At*z,(Et-ut)*E,(At+wt)*z,(Et-wt)*E,(At+ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E,At*z,(Et+ut)*E,(At-wt)*z,(Et+wt)*E,(At-ut)*z)),ot.spot1=new go.Spot(0,.05),ot.spot2=new go.Spot(.55,.95),ot}),go.Shape.defineFigureGenerator("NorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=0,wt=.5,Et=new go.PathFigure(.8*E,.5*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.7*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*z,.25*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(ut+at)*E,(wt-it)*z,.7*E,(wt-at)*z)),it=.1,at=pt*.1,ut=.9,wt=.5;var At=new go.PathFigure((ut-it)*E,wt*z,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),ot.spot1=new go.Spot(.2,.25),ot.spot2=new go.Spot(.6,.75),ot}),go.Shape.defineFigureGenerator("OrGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=0,wt=.5,Et=new go.PathFigure(0,0,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(ut+at+at)*E,(wt-it)*z,.8*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.8*E,(wt+at)*z,(ut+at+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*z,.25*E,.25*z).close()),ot.spot1=new go.Spot(.2,.25),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("XnorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=.2,wt=.5,Et=new go.PathFigure(.1*E,0,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,z,.35*E,.25*z,.35*E,.75*z));var At=new go.PathFigure(.8*E,.5*z,!0);ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,z,.7*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*z,.45*E,.25*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(ut+at)*E,(wt-it)*z,.7*E,(wt-at)*z)),it=.1,at=pt*.1,ut=.9,wt=.5;var _t=new go.PathFigure((ut-it)*E,wt*z,!0);return ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),ot.spot1=new go.Spot(.4,.25),ot.spot2=new go.Spot(.65,.75),ot}),go.Shape.defineFigureGenerator("XorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=.2,wt=.5,Et=new go.PathFigure(.1*E,0,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,z,.35*E,.25*z,.35*E,.75*z));var At=new go.PathFigure(.2*E,0,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(ut+at)*E,(wt-it)*z,.9*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,z,.9*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*z,.45*E,.25*z).close()),ot.spot1=new go.Spot(.4,.25),ot.spot2=new go.Spot(.8,.75),ot}),go.Shape.defineFigureGenerator("Capacitor",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("Resistor",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Inductor",function(lt,E,z){var ot=new go.Geometry,it=pt*.1,at=.1,ut=.1,wt=.5,Et=new go.PathFigure((ut-it*.5)*E,z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.3,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.5,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.7,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.9,Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it*.5)*E,z,(ut+at)*E,0,(ut+it)*E,z)),ot}),go.Shape.defineFigureGenerator("ACvoltageSource",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-at)*E,wt*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt-at)*z,(ut+at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Move,(ut-at+.1)*E,wt*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at-.1)*E,wt*z,ut*E,(wt-at)*z,ut*E,(wt+at)*z)),ot}),go.Shape.defineFigureGenerator("DCvoltageSource",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.75*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("Diode",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("Wifi",function(lt,E,z){var ot=new go.Geometry,it=E,at=z;E=E*.38,z=z*.6;var ut=pt*.8,wt=.8,Et=0,At=.5,_t=(it-E)/2,Mt=(at-z)/2,jt=new go.PathFigure(Et*E+_t,(At+wt)*z+Mt,!0);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At-wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At-ut)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At+ut)*z+Mt,Et*E+_t,(At+wt)*z+Mt).close()),ut=pt*.4,wt=.4,Et=.2,At=.5;var Lt=new go.PathFigure(Et*E+_t,(At+wt)*z+Mt,!0);ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At-wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At-ut)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At+ut)*z+Mt,Et*E+_t,(At+wt)*z+Mt).close()),ut=pt*.2,wt=.2,Et=.5,At=.5;var It=new go.PathFigure((Et-wt)*E+_t,At*z+Mt,!0);ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),ut=pt*.4,wt=.4,Et=.8,At=.5;var Ut=new go.PathFigure(Et*E+_t,(At-wt)*z+Mt,!0);ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At+wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At+ut)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At-ut)*z+Mt,Et*E+_t,(At-wt)*z+Mt).close()),ut=pt*.8,wt=.8,Et=1,At=.5;var Xt=new go.PathFigure(Et*E+_t,(At-wt)*z+Mt,!0);return ot.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At+wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At+ut)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At-ut)*z+Mt,Et*E+_t,(At-wt)*z+Mt).close()),ot}),go.Shape.defineFigureGenerator("Email",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Move,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Move,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*z)),ot}),go.Shape.defineFigureGenerator("Ethernet",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.35*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var at=new go.PathFigure(.1*E,z,!0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,z).close());var ut=new go.PathFigure(.6*E,z,!0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*E,z).close());var wt=new go.PathFigure(0,.5*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*z)),ot}),go.Shape.defineFigureGenerator("Power",function(lt,E,z){var ot=new go.Geometry,it=pt*.4,at=.4,ut=.5,wt=.5,Et=Ft(),At=Ft(),_t=Ft(),Mt=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.5,Et,Et,At,_t,Mt);var jt=Rt(At.x,At.y),Lt=new go.PathFigure(At.x*E,At.y*z,!0);ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),kt(ut-at,wt,ut-at,wt-it,ut-it,wt-at,ut,wt-at,.5,_t,Mt,At,Et,Et),Lt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),it=pt*.3,at=.3,kt(ut-at,wt,ut-at,wt-it,ut-it,wt-at,ut,wt-at,.5,_t,Mt,At,Et,Et),Lt.add(new go.PathSegment(go.PathSegment.Line,At.x*E,At.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,Mt.x*E,Mt.y*z,_t.x*E,_t.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.5,Et,Et,At,_t,Mt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,Mt.x*E,Mt.y*z,_t.x*E,_t.y*z).close());var Lt=new go.PathFigure(.45*E,0,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),ie(Et),ie(At),ie(_t),ie(Mt),ie(jt),ot.spot1=new go.Spot(.25,.45),ot.spot2=new go.Spot(.75,.8),ot}),go.Shape.defineFigureGenerator("Fallout",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z/2,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,z/2,E/2,z/2));function at(ut,wt,Et){ut.add(new go.PathSegment(go.PathSegment.Move,(.3+wt)*E,(.8+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+wt)*E,(.5+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.1+wt)*E,(.5+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.3+wt)*E,(.8+Et)*z).close())}return at(it,0,0),at(it,.4,0),at(it,.2,-.3),ot}),go.Shape.defineFigureGenerator("IrritationHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.2*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z).close()),ot.spot1=new go.Spot(.3,.3),ot.spot2=new go.Spot(.7,.7),ot}),go.Shape.defineFigureGenerator("ElectricalHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.37*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*z)),it.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.37*z)),it.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*z)),it.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*z)),it.add(new go.PathSegment(go.PathSegment.Line,.34*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*z)),it.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.68*z).close()),ot}),go.Shape.defineFigureGenerator("FireHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*z,.45*E,.44*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*z,.48*E,.17*z,.54*E,.35*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*z,.59*E,.29*z,.58*E,.28*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*z,.8*E,.34*z,.88*E,.43*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*z,.87*E,.48*z,.88*E,.43*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,z,1.17*E,.76*z,.82*E,.8*z).close()),ot.spot1=new go.Spot(.07,.445),ot.spot2=new go.Spot(.884,.958),ot}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(lt,E,z){var ot=new go.Geometry,it=.5,at=0,ut=0,wt=it*pt,Et=.4*Math.SQRT2/2+.5,At=.5-.5*Math.SQRT2/2,_t=1,Mt=.5,jt=.5,Lt=0,It=new go.PathFigure(Et*E,(1-At)*z,!1);return ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,Mt*z,_t*E,.7*z,_t*E,Mt*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt+at)*E,(Lt+at)*z,(.5+it+at)*E,(.5-wt+at)*z,(.5+wt+at)*E,(.5-it+at)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.35+at)*E,.9*z,(.5-it+at)*E,(.5+wt+ut)*z,(.5-wt+at)*E,.9*z)),It.add(new go.PathSegment(go.PathSegment.Move,(.25+at)*E,.8*z)),It.add(new go.PathSegment(go.PathSegment.Line,(.35+at)*E,.9*z)),It.add(new go.PathSegment(go.PathSegment.Line,(.2+at)*E,.95*z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Move,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(E,z,!1);ot.add(at);var ut=new go.PathFigure(0,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*z,.2*E,.35*z,.3*E,.35*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.7*E,.65*z,.8*E,.65*z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close()),ot}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.2*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z).close());var it=new go.PathFigure(0,.2*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),ot}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.7*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*z,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,z,.4*E,.5*z,E,.5*z).close());var at=new go.PathFigure(.45*E,.73*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*z)),at.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*z)),at.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*z)),ot}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(.335*E,(1-.555)*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*z,(1-.12)*E,.46*z,(1-.02)*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.68*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*z,.02*E,.54*z,.12*E,.46*z)),at.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*z));var ut=.5-.285,wt=.5,Et=ut,At=Math.PI/4,_t=4*(1-Math.cos(At))/(3*Math.sin(At)),Mt=_t*.5,jt=ut,Lt=ut,It=_t*jt,Ut=_t*Lt;at.add(new go.PathSegment(go.PathSegment.Bezier,(wt-jt)*E,Et*z,(wt-(It+jt)/2)*E,(Et+(Lt+Ut)/2)*z,(wt-jt)*E,(Et+Ut)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,(Et-Lt)*z,(wt-jt)*E,(Et-Ut)*z,(wt-It)*E,(Et-Lt)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,(wt+jt)*E,Et*z,(wt+It)*E,(Et-Lt)*z,(wt+jt)*E,(Et-Ut)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*z,(wt+jt)*E,(Et+Ut)*z,(wt+(It+jt)/2)*E,(Et+(Lt+Ut)/2)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*z));var Xt=new go.PathFigure(.2*E,z,!1);ot.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*z));var Gt=new go.PathFigure(.8*E,z,!1);return ot.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,z).close());var at=new go.PathFigure(.2*E,.2*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventError",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(E,z,!1);ot.add(at);var ut=new go.PathFigure(.1*E,z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("Caution",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.05*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*z,0,z,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*z,.5*E,0,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,z,E,z,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,z));var at=.05;return it.add(new go.PathSegment(go.PathSegment.Move,(.5-at)*E,.875*z)),it.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*z,at*E,at*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*z,.575*E,.725*z,.625*E,.375*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*z,.375*E,.375*z,.425*E,.725*z)),ot}),go.Shape.defineFigureGenerator("Recycle",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.45*E,.95*z,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*z,.17*E,.95*z,.15*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*z,0,.675*z,0,.7*z)),it.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*z)),it.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*z));var at=new go.PathFigure(.475*E,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*z)),at.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*z,.35*E,0,.375*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*z)),at.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*z)),at.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*z)),at.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*z,.625*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*z));var ut=new go.PathFigure(.675*E,.575*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*z,E,.8*z,E,.85*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=new go.PathFigure(E,it*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*E,z,E,(it+at)*z,(it+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,it*z,(it-at)*E,z,0,(it+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*E,0,0,(it-at)*z,(it-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,it*z,(it+at)*E,0,E,(it-at)*z));var wt=new go.PathFigure(it*E,0,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,.15*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,.85*z)),wt.add(new go.PathSegment(go.PathSegment.Move,0,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.15*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.85*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*z)),ot}),go.Shape.defineFigureGenerator("Package",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.15*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(0,.15*z,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*z).close()),ot.spot1=new go.Spot(0,.1),ot.spot2=new go.Spot(1,1),ot}),go.Shape.defineFigureGenerator("Class",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.2*z).close());var ut=new go.PathFigure(0,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("Component",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close());var at=new go.PathFigure(0,.2*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*z).close());var ut=new go.PathFigure(0,.6*z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*z).close()),ot}),go.Shape.defineFigureGenerator("Boat Shipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.15*E,.6*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z));var at=new go.PathFigure(.15*E,.6*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),ot}),go.Shape.defineFigureGenerator("Customer/Supplier",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot}),go.Shape.defineFigureGenerator("Workcell",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("Supermarket",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.66*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.66*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,.66*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),ot}),go.Shape.defineFigureGenerator("TruckShipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(E,.8*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.8*z).close());var ut=.1,wt=pt*.1,Et=.2,At=.9,_t=new go.PathFigure((Et-ut)*E,At*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+ut)*E,At*z,(Et+wt)*E,(At-ut)*z,(Et+ut)*E,(At-wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-ut)*E,At*z,(Et-wt)*E,(At+ut)*z,(Et-ut)*E,(At+wt)*z).close()),ut=.1,wt=pt*.1,Et=.8,At=.9;var Mt=new go.PathFigure((Et-ut)*E,At*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+ut)*E,At*z,(Et+wt)*E,(At-ut)*z,(Et+ut)*E,(At-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-ut)*E,At*z,(Et-wt)*E,(At+ut)*z,(Et-ut)*E,(At+wt)*z).close()),ot}),go.Shape.defineFigureGenerator("KanbanPost",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.2*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),ot}),go.Shape.defineFigureGenerator("Forklift",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0));var at=new go.PathFigure(0,.5*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var ut=new go.PathFigure(.5*E,.8*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*z));var wt=new go.PathFigure(.5*E,.7*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,.7*z));var Et=.1,At=pt*.1,_t=.1,Mt=.9,jt=new go.PathFigure((_t-Et)*E,Mt*z,!0);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt-Et)*z,(_t-Et)*E,(Mt-At)*z,(_t-At)*E,(Mt-Et)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Et)*E,Mt*z,(_t+At)*E,(Mt-Et)*z,(_t+Et)*E,(Mt-At)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt+Et)*z,(_t+Et)*E,(Mt+At)*z,(_t+At)*E,(Mt+Et)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Et)*E,Mt*z,(_t-At)*E,(Mt+Et)*z,(_t-Et)*E,(Mt+At)*z)),Et=.1,At=pt*.1,_t=.4,Mt=.9;var Lt=new go.PathFigure((_t-Et)*E,Mt*z,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt-Et)*z,(_t-Et)*E,(Mt-At)*z,(_t-At)*E,(Mt-Et)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Et)*E,Mt*z,(_t+At)*E,(Mt-Et)*z,(_t+Et)*E,(Mt-At)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt+Et)*z,(_t+Et)*E,(Mt+At)*z,(_t+At)*E,(Mt+Et)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Et)*E,Mt*z,(_t-At)*E,(Mt+Et)*z,(_t-Et)*E,(Mt+At)*z)),ot}),go.Shape.defineFigureGenerator("RailShipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,.4*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*z).close());var at=new go.PathFigure(.45*E,.7*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*z));var ut=new go.PathFigure(.55*E,.4*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*z).close());var _t=.05,Mt=pt*.05,jt=.175,Lt=.95,wt=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.375,Lt=.95,Et=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.625,Lt=.95,At=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.825,Lt=.95,It=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z).close());var Ut=new go.PathFigure(0,z,!1);return ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot}),go.Shape.defineFigureGenerator("Warehouse",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.2*z).close());var ut=new go.PathFigure(.15*E,z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*E,z).close());var wt=.05,Et=pt*.05,At=.35,_t=.775,Mt=new go.PathFigure((At-wt)*E,_t*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,At*E,(_t-wt)*z,(At-wt)*E,(_t-Et)*z,(At-Et)*E,(_t-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(At+wt)*E,_t*z,(At+Et)*E,(_t-wt)*z,(At+wt)*E,(_t-Et)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,At*E,(_t+wt)*z,(At+wt)*E,(_t+Et)*z,(At+Et)*E,(_t+wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(At-wt)*E,_t*z,(At-Et)*E,(_t+wt)*z,(At-wt)*E,(_t+Et)*z).close()),ot}),go.Shape.defineFigureGenerator("ControlCenter",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z).close()),ot}),go.Shape.defineFigureGenerator("Bluetooth",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.75*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),ot}),go.Shape.defineFigureGenerator("Bookmark",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),ot}),go.Shape.defineFigureGenerator("Bookmark",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),ot}),go.Shape.defineFigureGenerator("Globe",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.75*E,0,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,.75*z,.75*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.25*E,z,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*z,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,.15*E,.25*z,.15*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*z,.85*E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*z,.35*E,.3*z,.65*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*z,.35*E,.7*z,.65*E,.7*z)),ot}),go.Shape.defineFigureGenerator("Wave",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.25*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*z,.1*E,0,.2*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*z,.425*E,.5*z,.575*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*z,.8*E,0,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*z,.1*E,.5*z,.2*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*z,.425*E,z,.575*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*z,.8*E,.5*z,.9*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Operator",function(lt,E,z){var ot=new go.Geometry,it=.3,at=pt*.3,ut=.5,wt=.7,Et=new go.PathFigure((ut-it)*E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z));var At=new go.PathFigure(0,.7*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*z,0,0,E,0)),ot}),go.Shape.defineFigureGenerator("TripleFanBlades",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.65*E,.3*z,.65*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*z,.35*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.3*E,.6*z,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.2*E,z,.35*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,z,.7*E,.6*z,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.8*E,z,.65*E,.95*z)),ot}),go.Shape.defineFigureGenerator("CentrifugalPump",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,0,.075*z,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,z,0,z,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*z,.8*E,z,.85*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),ot}),go.Shape.defineFigureGenerator("Battery",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*z));var at=new go.PathFigure(0,.6*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,0,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),ot}),go.Shape.defineFigureGenerator("Delete",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-it)*E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z));var At=new go.PathFigure(.15*E,.5*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Flag",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.1*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*z,.15*E,0,.35*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,.65*E,.2*z,.85*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*z,.85*E,.6*z,.65*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.35*E,.4*z,.15*E,.4*z).close()),ot}),go.Shape.defineFigureGenerator("Help",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-it)*E,wt*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z).close()),it=.05,at=pt*.05,ut=.5,wt=.8;var At=new go.PathFigure((ut-it)*E,wt*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z).close()),At.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*z)),At.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,.75*E,.475*z,.75*E,.225*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*z,.4*E,.2*z,.3*E,.25*z)),ot}),go.Shape.defineFigureGenerator("Location",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,z,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*z,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*z,.5*E,0,.025*E,.025*z).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*z)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*z,.1*E,.1*z).close()))}),go.Shape.defineFigureGenerator("Lock",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var at=new go.PathFigure(.2*E,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*z,.25*E,0,.75*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*z)),ot}),go.Shape.defineFigureGenerator("Unlocked",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var at=new go.PathFigure(.2*E,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*z,.25*E,0,.75*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*z)),ot}),go.Shape.defineFigureGenerator("Gear",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*z,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*z,.79840625*E,.39915625*z,.7834375*E,.3635*z)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*z)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*z)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*z,.64228125*E,.2188125*z,.603875*E,.2021875*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*z)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*z)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*z)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*z,.39759375*E,.20190625*z,.36053125*E,.2176875*z)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*z)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*z)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*z)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*z,.21765625*E,.36059375*z,.201875*E,.397625*z)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*z)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*z)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*z,.20221875*E,.603875*z,.21884375*E,.64228125*z)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*z)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*z)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*z,.36353125*E,.78340625*z,.3991875*E,.79840625*z)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*z,.602375*E,.79809375*z,.63946875*E,.78234375*z)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*z)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*z)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*z,.78234375*E,.63940625*z,.798125*E,.602375*z)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*z).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*z)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*z,.1*E,.1*z).close()))}),go.Shape.defineFigureGenerator("Hand",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*z,0,.375*z,.05*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*z,.3*E,.225*z,.4*E,.175*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*z,.46*E,.05*z,.525*E,.05*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*z,.525*E,.275*z,.475*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*z,E,.4*z,E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*z,.675*E,.55*z,.675*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*z,.65*E,.7*z,.65*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,z,.61*E,.85*z,.61*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,.435*E,z,0,z).close()),ot}),go.Shape.defineFigureGenerator("Map",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.2*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),it.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*z)),ot}),go.Shape.defineFigureGenerator("Eject",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.7)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.7).close());var at=new go.PathFigure(0,z*.6,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),ot}),go.Shape.defineFigureGenerator("Pencil",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)).add(new go.PathSegment(go.PathSegment.Line,E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,z)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z).close()))}),go.Shape.defineFigureGenerator("Building",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*1,z*1,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.85).close());var at=new go.PathFigure(.126*E,.85*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*z)),at.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*z)),at.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*z).close());var ut=new go.PathFigure(.402*E,.85*z,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*z).close());var wt=new go.PathFigure(.678*E,.85*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*z).close());var Et=new go.PathFigure(.5*E,.1*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*z)),Et.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*z).close()),ot}),go.Shape.defineFigureGenerator("Staircase",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z*1,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*.8)),it.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.8)),it.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.6)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.6)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.4)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.4)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.2)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.2)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.15)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.15)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.95).close()),ot}),go.Shape.defineFigureGenerator("5Bars",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z*1,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.184,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.184,z*(1-.184)).close());var at=new go.PathFigure(E*.204,z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.204,z*(1-.184))),at.add(new go.PathSegment(go.PathSegment.Line,E*.388,z*(1-.184*2))),at.add(new go.PathSegment(go.PathSegment.Line,E*.388,z*1).close());var ut=new go.PathFigure(E*.408,z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.408,z*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,E*.592,z*(1-.184*3))),ut.add(new go.PathSegment(go.PathSegment.Line,E*.592,z*1).close());var wt=new go.PathFigure(E*.612,z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.612,z*(1-.184*3))),wt.add(new go.PathSegment(go.PathSegment.Line,E*.796,z*(1-.184*4))),wt.add(new go.PathSegment(go.PathSegment.Line,E*.796,z*1).close());var Et=new go.PathFigure(E*.816,z,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.816,z*(1-.184*4))),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-.184*5))),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1).close()),ot}),go.Shape.defineFigureGenerator("PC",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var at=new go.PathFigure(E*.055,.07*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.07)),at.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.1).close());var ut=new go.PathFigure(E*.055,.13*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.13)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.16)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.16).close());var wt=new go.PathFigure(E*.055,.18*z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.18)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.21)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.21).close());var Et=new go.PathFigure(E*1,0,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.65)),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.65).close()),ot}),go.Shape.defineFigureGenerator("Plane",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.55*E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*z,0,.4*z,.225*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*z)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*z,.975*E,0,E,.08*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.55*E,z).close()),ot}),go.Shape.defineFigureGenerator("Key",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*1,z*.5,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*z).close()),it.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*z)),it.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*z,.075*E,.075*z).close()),ot}),go.Shape.defineFigureGenerator("FilmTape",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.08,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.08,z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1));var at=new go.PathFigure(0,0,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*1,z*0)),at.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),at.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1));var ut=new go.PathFigure(E*.11,z*.1,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),z*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),z*.8)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.11,z*.8).close());var wt=new go.PathFigure(E*(.11+.24133333*1+.028*1),z*.1,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),z*.1)),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),z*.8)),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),z*.8).close());var Et=new go.PathFigure(E*(.11+.24133333*2+.028*2),z*.1,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),z*.1)),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),z*.8)),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),z*.8).close()),ot}),go.Shape.defineFigureGenerator("FloppyDisk",function(lt,E,z){var ot=new go.Geometry,it=8,at=it*pt,ut=new go.PathFigure(it,0,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.14)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-it,z,E,z-at,E-at,z)),ut.add(new go.PathSegment(go.PathSegment.Line,it,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-it,at,z,0,z-at)),ut.add(new go.PathSegment(go.PathSegment.Line,0,it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it,0,0,at,at,0).close());var wt=new go.PathFigure(E*.83,0,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.83,z*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*0).close());var Et=new go.PathFigure(E*.83,z*1,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.83,z*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*1).close());var At=new go.PathFigure(E*.78,z*.05,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.05)),At.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.25)),At.add(new go.PathSegment(go.PathSegment.Line,E*.78,z*.25).close()),ot}),go.Shape.defineFigureGenerator("SpeechBubble",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=15),ot=Math.min(ot,E/3),ot=Math.min(ot,z/3);var it=ot*pt,at=z*.8,ut=new go.Geometry,wt=new go.PathFigure(ot,0,!0);return ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E-ot,0)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E,ot,E-it,0,E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,E,at-ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,at,E,at-it,E-it,at)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.7,at)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.55,at)),wt.add(new go.PathSegment(go.PathSegment.Line,ot,at)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,at-ot,it,at,0,at-it)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,it,it,0).close()),it>1?(ut.spot1=new go.Spot(0,0,it,it),ut.spot2=new go.Spot(1,.8,-it,-it)):(ut.spot1=go.Spot.TopLeft,ut.spot2=new go.Spot(1,.8)),ut}),go.Shape.defineFigureGenerator("Repeat",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*.45,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*.45).close());var at=new go.PathFigure(E*1,z*.55,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.55)),at.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*.55)),at.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*0)),at.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),at.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.55).close()),ot}),go.Shape.defineFigureGenerator("Windows",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*z)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*z).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z).close()))}),go.Shape.defineFigureGenerator("Terminal",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*.1,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*.9).close());var at=new go.PathFigure(E*.1,z*.2,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.25)),at.add(new go.PathSegment(go.PathSegment.Line,E*.22,z*.285)),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.32)),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.37)),at.add(new go.PathSegment(go.PathSegment.Line,E*.275,z*.32)),at.add(new go.PathSegment(go.PathSegment.Line,E*.275,z*.25).close());var ut=new go.PathFigure(E*.28,z*.37,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.41)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.28,z*.41).close()),ot}),go.Shape.defineFigureGenerator("Beaker",function(lt,E,z){var ot=new go.Geometry,it=15,at=it*pt,ut=new go.PathFigure(E*.62,z*.475,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-it,z,E,z-at,E-at,z)),ut.add(new go.PathSegment(go.PathSegment.Line,it,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-it,at,z,0,z-at)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.38,z*.475)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.38,z*.03)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.62,z*.03).close()),at>1?(ot.spot1=new go.Spot(0,0,at,at),ot.spot2=new go.Spot(1,1,-at,-at)):(ot.spot1=go.Spot.TopLeft,ot.spot2=go.Spot.BottomRight),ot}),go.Shape.defineFigureGenerator("Download",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close());var ut=new go.PathFigure(E*.4,z*0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.26,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.66)),ut.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*0).close()),ot}),go.Shape.defineFigureGenerator("Bin",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;return it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close()),ot}),go.Shape.defineFigureGenerator("Upload",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close());var ut=new go.PathFigure(E*.5,z*0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.26,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.74,z*.25).close()),ot}),go.Shape.defineFigureGenerator("EmptyDrink",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.15,z*0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1).close()),ot}),go.Shape.defineFigureGenerator("Drink",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.15,z*0,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1).close());var at=new go.PathFigure(E*.235,z*.28,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.765,z*.28)),at.add(new go.PathSegment(go.PathSegment.Line,E*.655,z*.97)),at.add(new go.PathSegment(go.PathSegment.Line,E*.345,z*.97).close()),ot}),go.Shape.defineFigureGenerator("4Arrows",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.5,z*0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.5)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.65)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.65)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*.5)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.25).close()),ot}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var tn={},Ke="5.0",Rt={},Ft=null,ie=!1,rt=!1,kt=null,Ct=!1,St=null,pt=null,vt=0;vt<arguments.length;vt++){var yt=arguments[vt];if(yt!==null)switch(typeof yt){case"number":Ke=yt.toFixed(1);break;case"string":yt.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ke=yt:kt=yt;break;case"object":typeof yt.is3D!="undefined"?Ft=yt:Rt=yt;break;case"boolean":ie=yt,rt=!0;break}}Ft===null&&(Ft={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Rt.material_id!==void 0&&!rt&&(ie=!0)),kt!==null&&Rt.id===void 0&&(Rt.id=kt);var xt="",dt="",ft=!1,ct=null,lt=null,E=null,z=!1,ot=null,it=null,at=null,ut=null,wt=null;Rt.height!==void 0&&(Rt.height=Math.round(Rt.height)),Rt.width!==void 0&&(Rt.width=Math.round(Rt.width));var Et=function(me){return parseFloat(me)>4?parseFloat(me):5};tn.setHTML5Codebase=function(me,fe){pt=me,we(me,fe)},tn.setJavaCodebase=tn.setJavaCodebaseVersion=tn.isCompiledInstalled=tn.setPreCompiledScriptPath=tn.setPreCompiledResourcePath=function(){},tn.setHTML5CodebaseVersion=function(me,fe){var pe=parseFloat(me);if(pe!==NaN&&pe<5){console.log("The GeoGebra HTML5 codebase version "+pe+" is deprecated. Using version latest instead.");return}St=me,re(me,fe)},tn.getHTML5CodebaseVersion=function(){return lt},tn.getParameters=function(){return Rt},tn.setFontsCSSURL=function(me){ut=me},tn.setGiacJSURL=function(me){},tn.setJNLPFile=function(me){xt=me},tn.setJNLPBaseDir=function(me){},tn.inject=function(){function me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var fe="auto",pe=Rt.id,_e,je=!1,He=0;He<arguments.length;He++){var Se=arguments[He];typeof Se=="string"?(Se=Se.toLowerCase(),Se.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?fe=Se:pe=arguments[He]):typeof Se=="boolean"?je=Se:Se instanceof HTMLElement&&(_e=Se)}xe();function xe(){if(!Ct){setTimeout(xe,200);return}fe=ve(fe);var le=_e||document.getElementById(pe);if(!le){console.log("possibly bug on ajax loading? ");return}if(tn.removeExistingApplet(le,!1),Rt.width===void 0&&le.clientWidth&&(Rt.width=le.clientWidth),Rt.height===void 0&&le.clientHeight&&(Rt.height=le.clientHeight),!(Rt.width&&Rt.height)&&fe==="html5"&&(delete Rt.width,delete Rt.height),ct=fe,fe==="screenshot")Gt(le,Rt);else{var Ne=!1;Rt.hasOwnProperty("playButton")&&Rt.playButton||Rt.hasOwnProperty("clickToLoad")&&Rt.clickToLoad?Ne=!0:Rt.hasOwnProperty("playButtonAutoDecide")&&Rt.playButtonAutoDecide&&(Ne=(!At()||me())&&_t()),Ne?(ct="screenshot",Ht(le,Rt,je,fe)):Xt(le,Rt,je)}}};function At(){try{return window.self!==window.top}catch(me){return!0}}function _t(){return Rt.hasOwnProperty("screenshotGenerator")&&Rt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}tn.getViews=function(){return Ft},tn.isJavaInstalled=function(){return!1};var Mt=function(me){var fe=function(He){var Se=JSON.parse(He),xe=function(se){return se.type=="G"||se.type=="E"},le=Se.elements?Se.elements.filter(xe)[0]:Se;if(!le||!le.url){pe();return}Rt.fileName=le.url,jt(le.settings||{}),Ft.is3D=!0;var Ne="https://www.geogebra.org/images/";tn.setPreviewImage(ot||le.previewUrl,Ne+"GeoGebra_loading.png",Ne+"applet_play.png"),me()},pe=function(){Rt.onError&&Rt.onError(),Me("Error: Fetching material (id "+Rt.material_id+") failed.",Rt)},_e=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",je="/materials/"+Rt.material_id+"?scope=basic";Lt("https://"+_e+"/api/proxy.php?path="+encodeURIComponent(je),fe,pe)};function jt(me){var fe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(pe){me[pe]=!!me[pe]}),fe.forEach(function(pe){Rt[pe]===void 0&&me[pe]!==void 0&&(Rt[pe]=me[pe])}),Rt.showToolBarHelp===void 0&&(Rt.showToolBarHelp=Rt.showToolBar)}function Lt(me,fe,pe){var _e=new XMLHttpRequest;_e.open("GET",me),_e.onload=function(){fe(_e.responseText)},_e.onerror=pe,_e.send()}tn.isHTML5Installed=function(){return!0},tn.getLoadedAppletType=function(){return ct},tn.setPreviewImage=function(me,fe,pe){ot=me,it=fe,at=pe},tn.removeExistingApplet=function(me,fe){var pe;typeof me=="string"&&(me=document.getElementById(me)),ct=null;var _e=null;for(pe=0;pe<me.childNodes.length;pe++){var je=me.childNodes[pe],He=je.className;He==="applet_screenshot"?fe?(je.style.display="block",ct="screenshot"):je.style.display="none":He!=="applet_scaler prerender"&&(me.removeChild(je),_e=He&&He.indexOf("appletParameters")!=-1?je.id:null,pe--)}var Se=Rt.id!==void 0?Rt.id:_e,xe=window[Se];xe&&typeof xe.getBase64=="function"&&(xe.remove(),window[Se]=null)},tn.refreshHitPoints=function(){if(Et(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var me=tn.getAppletObject();return me&&typeof me.recalculateEnvironments=="function"?(me.recalculateEnvironments(),!0):!1},tn.startAnimation=function(){var me=tn.getAppletObject();return me&&typeof me.startAnimation=="function"?(me.startAnimation(),!0):!1},tn.stopAnimation=function(){var me=tn.getAppletObject();return me&&typeof me.stopAnimation=="function"?(me.stopAnimation(),!0):!1},tn.getAppletObject=function(){var me=Rt.id!==void 0?Rt.id:"ggbApplet";return window[me]},tn.resize=function(){};var It=function(me,fe,pe){var _e=document.createElement("param");_e.setAttribute("name",fe),_e.setAttribute("value",pe),me.appendChild(_e)},Ut=function(me){return me&&me!=="false"},Xt=function(me,fe,pe){Et(lt)<=4.2&&(pe=!0);var _e=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==lt||ggbHTML5LoadedCodebaseIsWebSimple&&!z)&&(_e=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var je=document.createElement("div");je.classList.add("appletParameters","notranslate");var He=fe.width,Se=fe.height;if(fe.disableAutoScale=fe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():fe.disableAutoScale,fe.width!==void 0)if(Et(lt)<=4.4)Ut(fe.showToolBar)&&(fe.height-=7),Ut(fe.showAlgebraInput)&&(fe.height-=37),fe.width<605&&Ut(fe.showToolBar)&&(fe.width=605,He=605);else{var xe=100;(Ut(fe.showToolBar)||Ut(fe.showMenuBar))&&(fe.hasOwnProperty("customToolBar")&&(fe.customToolbar=fe.customToolBar),xe=Ut(fe.showMenuBar)?245:155),He<xe&&(fe.width=xe,He=xe)}je.style.border="none",je.style.display="inline-block";for(var le in fe)fe.hasOwnProperty(le)&&le!=="appletOnLoad"&&je.setAttribute("data-param-"+le,fe[le]);ut&&je.setAttribute("data-param-fontscssurl",ut),tn.resize=function(){GGBAppletUtils.responsiveResize(me,fe)},window.addEventListener("resize",function(Bt){tn.resize()});var Ne=typeof fe.appletOnLoad=="function"?fe.appletOnLoad:function(){};if(!pe&&fe.width!==void 0){fe.hasOwnProperty("showSplash")||je.setAttribute("data-param-showSplash","false");var se=me.querySelector(".applet_scaler.prerender"),Ae=se!==null;if(Ae)var Xe=se.querySelector(".ggb_preview");else{var Xe=ae(He,Se,fe.borderColor,!1);se=document.createElement("div"),se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.style.width=He+"px",se.style.height=Se+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(se,"66%"),Et(lt)>=5?(fe.appletOnLoad=function(Bt){var te=me.querySelector(".ggb_preview");te&&te.parentNode.removeChild(te),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(se),window.GGBT_wsf_view&&$(window).trigger("resize"),Ne(Bt)},Ae||se.appendChild(Xe)):je.appendChild(Xe),se.appendChild(je),Ae||me.appendChild(se),setTimeout(function(){tn.resize()},1)}else{var Be=document.createElement("div");Be.className="applet_scaler",Be.style.position="relative",Be.style.display="block",Be.appendChild(je),me.appendChild(Be),fe.appletOnLoad=function(Bt){tn.resize(),Ne(Bt)}}function Te(Bt,te){te&&typeof te.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,te.appletOnLoad):renderGGBElement(Bt),Me("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",te)}function ue(Bt,te){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:te}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ge){Te(ge.article,ge.params)}),html5AppletsToProcess=null)},Et(lt)<5&&(Bt.className+=" geogebraweb")):Te(Bt,te)}if(_e){scriptLoadStarted=!0;for(var $t=0;$t<je.childNodes.length;$t++){var he=je.childNodes[$t].tagName;he==="TABLE"&&(je.removeChild(je.childNodes[$t]),$t--)}if(ggbHTML5LoadedScript!==null){var ye=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ye!=null&&ye.parentNode.removeChild(ye)}var Qt=document.createElement("script"),Wt=function(){ue(je,fe)};Qt.src=dt+E,ggbHTML5LoadedCodebaseIsWebSimple=z,ggbHTML5LoadedCodebaseVersion=lt,ggbHTML5LoadedScript=Qt.src,Me("GeoGebra HTML5 codebase loaded: '"+dt+"'.",fe),!pt&&(!St||St=="5.0")?(z?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Wt()):dt.requirejs?__webpack_require__.e(4184).then(function(){var Bt=[__webpack_require__(74620)];Wt.apply(null,Bt)}.bind(this)).catch(__webpack_require__.oe):(Qt.onload=Wt,me.appendChild(Qt))}else ue(je,fe);fe.height=Se,fe.width=He},Gt=function(me,fe,pe){var _e=ae(fe.width,fe.height,fe.borderColor,pe),je=document.createElement("div");je.style.position="relative",je.style.display="block",je.style.width=fe.width+"px",je.style.height=fe.height+"px",je.className="applet_screenshot applet_scaler"+(pe?" applet_screenshot_play":""),je.appendChild(_e);var He=GGBAppletUtils.getScale(fe,me,pe);pe?(me.appendChild(ne()),window.GGBT_wsf_view||(me.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(je,"66%"),me.appendChild(je),He!==1&&!isNaN(He)&&(GGBAppletUtils.scaleElement(je,He),je.style.width=fe.width+"px",je.style.height=fe.height+"px",je.parentNode.style.width=fe.width*He+"px",je.parentNode.style.height=fe.height*He+"px"),tn.resize=function(){Yt(me,_e,je,pe)},window.addEventListener("resize",function(Se){tn.resize()}),tn.resize()};function Yt(me,fe,pe,_e){if(me.contains(fe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(me)}var je=GGBAppletUtils.getScale(Rt,me,_e);pe.parentNode!==null&&(!isNaN(je)&&je!==1?(GGBAppletUtils.scaleElement(pe,je),pe.parentNode.style.width=Rt.width*je+"px",pe.parentNode.style.height=Rt.height*je+"px"):(GGBAppletUtils.scaleElement(pe,1),pe.parentNode.style.width=Rt.width+"px",pe.parentNode.style.height=Rt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(me),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}tn.onExitFullscreen=function(me,fe){fe.appendChild(me)};var Ht=function(me,fe,pe,_e){Gt(me,fe,!0);for(var je=function(){var xe=[];for(Se=0;Se<me.childNodes.length;Se++)xe.push(me.childNodes[Se]);if(window.GGBT_wsf_view){var le=window.GGBT_wsf_view.renderFullScreen(me,fe.id),Ne=document.getElementById("fullscreencontainer"),se=jQuery(me).find(".fullscreencontent");se.length>0?(le.remove(),se.attr("id","fullscreencontent").show(),jQuery(Ne).append(se),window.dispatchEvent(new Event("resize"))):Xt(le,fe,!1),window.GGBT_wsf_view.launchFullScreen(Ne)}else ct=_e,Xt(me,fe,!1);if(!window.GGBT_wsf_view)for(Se=0;Se<xe.length;Se++)me.removeChild(xe[Se])},He=me.getElementsByClassName("ggb_preview_play"),Se=0;Se<He.length;Se++)He[Se].addEventListener("click",je,!1),He[Se].addEventListener("ontouchstart",je,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(me),_t()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ne=function(){var me=document.createElement("div");if(me.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var fe='.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");}',pe=document.createElement("style");pe.styleSheet?pe.styleSheet.cssText=fe:pe.appendChild(document.createTextNode(fe)),document.getElementsByTagName("head")[0].appendChild(pe)}return me},ae=function(me,fe,pe,_e){var je=document.createElement("div");je.className="ggb_preview",je.style.position="absolute",je.style.zIndex="90",je.style.width=me-2+"px",je.style.height=fe-2+"px",je.style.top="0px",je.style.left="0px",je.style.overflow="hidden",je.style.backgroundColor="white";var He="lightgrey";pe!==void 0&&(pe==="none"?He="transparent":He=pe),je.style.border="1px solid "+He;var Se=document.createElement("img");if(Se.style.position="relative",Se.style.zIndex="1000",Se.style.top="-1px",Se.style.left="-1px",ot!==null&&Se.setAttribute("src",ot),Se.style.opacity=.7,it!==null){var xe,le,Ne;if(!_e){xe=document.createElement("img"),xe.style.position="absolute",xe.style.zIndex="1001",xe.style.opacity=1,Se.style.opacity=.3,le=360,le>me/4*3&&(le=me/4*3),Ne=le/5.8,xe.setAttribute("src",it),xe.setAttribute("width",le),xe.setAttribute("height",Ne);var se=(me-le)/2,Ae=(fe-Ne)/2;xe.style.left=se+"px",xe.style.top=Ae+"px",je.appendChild(xe)}}return je.appendChild(Se),je},ve=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},Kt=["web","webSimple","web3d","tablet","tablet3d","phone"],re=function(me,fe){if(lt=me,fe){we(lt,!0);return}var pe=!ie;if(pe){var _e=Et(lt);!isNaN(_e)&&_e<4.4&&(pe=!1)}var je,He;window.location.protocol.substr(0,4)==="http"?je=window.location.protocol:je="http:";var Se=lt.indexOf("//");Se>0?He=lt:Se===0?He=je+lt:He="https://www.geogebra.org/apps/5.2.814.0/";for(var xe in Kt)if(lt.slice(Kt[xe].length*-1)===Kt[xe]||lt.slice((Kt[xe].length+1)*-1)===Kt[xe]+"/"){we(He,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&pe&&!Ft.is3D&&!Ft.AV&&!Ft.SV&&!Ft.CV&&!Ft.EV2&&!Ft.CP&&!Ft.PC&&!Ft.DA&&!Ft.FI&&!Ft.PV&&!Ut(Rt.showToolBar)&&!Ut(Rt.showMenuBar)&&!Ut(Rt.showAlgebraInput)&&!Ut(Rt.enableRightClick)&&(!Rt.appName||Rt.appName=="classic")?He+="webSimple/":He+="web3d/",we(He,!1)},we=function(me,fe){if(me.requirejs){dt=me;return}me.slice(-1)!=="/"&&(me+="/"),dt=me,fe===null&&(fe=me.indexOf("http")===-1),ft=fe,E="web.nocache.js",z=!1;var pe=dt.split("/");pe.length>1&&(!fe&&pe[pe.length-2]==="webSimple"?(E="webSimple.nocache.js",z=!0):Kt.indexOf(pe[pe.length-2])>=0&&(E=pe[pe.length-2]+".nocache.js")),pe=me.split("/"),lt=pe[pe.length-3],lt.substr(0,4)==="test"?lt=lt.substr(4,1)+"."+lt.substr(5,1):(lt.substr(0,3)==="war"||lt.substr(0,4)==="beta")&&(lt="5.0");var _e=parseFloat(lt);_e!==NaN&&_e<5&&me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead."),re("5.0",fe))},Me=function(me,fe){window.console&&window.console.log&&(!fe||typeof fe.showLogging=="undefined"||fe.showLogging&&fe.showLogging!=="false")&&console.log(me)};Rt.material_id!==void 0?Mt(ke):ke();function ke(){var me=Ke;St!==null?me=St:parseFloat(me)<5&&(me="5.0"),re(me,!1),pt!==null&&we(pt,ft),Ct=!0}return tn},GGBAppletUtils=function(){"use strict";function tn(){return window.GGBT_wsf_edit!==void 0}function Ke(Ct,St){St!=1?(Ct.style.transformOrigin="0% 0% 0px",Ct.style.webkitTransformOrigin="0% 0% 0px",Ct.style.transform="scale("+St+","+St+")",Ct.style.webkitTransform="scale("+St+","+St+")",Ct.style.maxWidth="initial",Ct.querySelector(".ggb_preview")!==null&&(Ct.querySelector(".ggb_preview").style.maxWidth="initial"),Ct.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ct.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ct.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ct.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ct.style.transform="none",Ct.style.webkitTransform="none")}function Rt(Ct,St,pt,vt,yt,xt){var dt=null;if(xt!=null&&xt!="")for(var ft=Ct.parentNode;ft!=null;)if((" "+ft.className+" ").indexOf(" "+xt+" ")>-1){dt=ft;break}else ft=ft.parentNode;var ct=0,lt=0,E=0,z=0,ot=0,it=0,at=0;if(dt)ct=dt.offsetWidth,lt=Math.max(vt?dt.offsetWidth:0,dt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ct=Math.min(window.innerWidth,document.documentElement.clientWidth),lt=Math.min(window.innerHeight,document.documentElement.clientHeight),E=ct):(ct=window.innerWidth,lt=window.innerHeight,E=window.innerWidth),Ct){var ut=Ct.getBoundingClientRect();ut.left>0&&ut.left<=ct&&(yt===void 0||!yt)&&(document.dir==="rtl"?(ot=ct-ut.width-ut.left,it=E<=480?10:30):(it=ut.left,ot=E<=480?10:30),z=it+ot)}if(Ct&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=Ct.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(z=40,at=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(z=0,at=40)}}return Ct&&((pt===void 0||!pt)&&St>0&&St+z<ct?ct=St:ct-=z,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pt===void 0||!pt)&&(lt-=at)),{width:ct,height:lt}}function Ft(Ct,St,pt,vt,yt){if(Ct.isScreenshoGenerator)return 1;var xt=vt!==void 0&&vt,dt=Ct.noScaleMargin!=null&&Ct.noScaleMargin,ft=function(wt){return wt&&wt!=="false"},ct=ft(Ct.autoHeight),lt=Rt(St,Ct.width,pt,ct,xt&&window.GGBT_wsf_view||dt,yt),E=parseInt(lt.width),z=Ct.width,ot=Ct.height;if(z===void 0){var it=St.querySelector(".appletParameters");it&&(z=it.offsetWidth,ot=it.offsetHeight)}var at=E/z,ut=xt?1:lt.height/ot;return pt!==void 0&&!pt&&(at=Math.min(1,at),ut=Math.min(1,ut)),Math.min(at,ut)}function ie(Ct,St,pt){var vt=1,yt,xt=!1;if(Ct.hasOwnProperty("allowUpscale")&&(xt=Ct.allowUpscale),Ct.hasOwnProperty("scale")&&(vt=parseFloat(Ct.scale),(isNaN(vt)||vt===null||vt===0)&&(vt=1),vt>1&&(xt=!0)),St&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xt=!0),!(Ct.hasOwnProperty("disableAutoScale")&&Ct.disableAutoScale))yt=Ft(Ct,St,xt,pt,Ct.scaleContainerClass);else return vt;return xt&&(!Ct.hasOwnProperty("scale")||vt===1)?yt:Math.min(vt,yt)}function rt(Ct){var St=Math.min(window.innerWidth,document.documentElement.clientWidth),pt=Math.min(window.innerHeight,document.documentElement.clientHeight),vt=Ct.getBoundingClientRect(),yt=(St-vt.width)/2,xt=(pt-vt.height)/2;xt<0&&(xt=0),Ct.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(yt<40?Ct.style.left="40px":Ct.style.left=yt+"px",Ct.style.top=xt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xt<40?Ct.style.top="40px":Ct.style.top=xt+"px",Ct.style.left=yt+"px")}function kt(Ct,St){var pt=Ct.querySelector(".appletParameters");if(pt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(St.id!==pt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ct)}if(pt.parentElement&&/fullscreen/.test(pt.parentElement.className))return;var vt=ie(St,Ct);tn()&&pt.setAttribute("data-param-scale",vt);for(var yt=null,xt=0;xt<Ct.childNodes.length;xt++)if(Ct.childNodes[xt].className!==void 0&&Ct.childNodes[xt].className.match(/^applet_scaler/)){yt=Ct.childNodes[xt];break}if(yt!==null&&yt.querySelector(".noscale")!==null)return;var dt=St.id!==void 0?St.id:"ggbApplet",ft=window[dt];(ft==null||!ft.recalculateEnvironments)&&yt!==null&&!yt.className.match(/fullscreen/)&&(yt.parentNode.style.transform="",!isNaN(vt)&&vt!==1?(yt.parentNode.style.width=St.width*vt+"px",yt.parentNode.style.height=St.height*vt+"px",Ke(yt,vt)):(Ke(yt,1),yt.parentNode.style.width=St.width+"px",yt.parentNode.style.height=St.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&rt(Ct),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(pt).parents(".content-added-content"))}}return{responsiveResize:kt,isFlexibleWorksheetEditor:tn,positionCenter:rt,getScale:ie,scaleElement:Ke}}();__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 tn=n.location.search;return tn.indexOf(J)!=-1||tn.indexOf(K)!=-1}function q(tn,Ke){}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(tn){var Ke=s[L].bindings;s[L].bindings=function(){for(var Rt=Ke?Ke():{},Ft=tn[webModule.__softPermutationId],ie=O;ie<Ft.length;ie++){var rt=Ft[ie];Rt[rt[O]]=rt[P]}return Rt}};var t;function u(){return v(),t}function v(){if(!t){var tn=o.createElement(Q);if(tn.id=L,tn.style.cssText=R+S,tn.tabIndex=-1,o.body.appendChild(tn),t=tn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ke=document.compatMode==U?V:W;t.write(Ke+X),t.close()}}}function w(tn){function Ke(Ft){function ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var rt=ie();if(rt){Ft();return}function kt(){if(!rt){if(!ie())return;rt=!0,Ft(),o.removeEventListener&&o.removeEventListener(Z,kt,!1),Ct&&clearInterval(Ct)}}o.addEventListener&&o.addEventListener(Z,kt,!1);var Ct=setInterval(function(){kt()},$)}function Rt(Ft){var ie=u(),rt=ie.body,kt=ie.createElement(_);kt.language=ab,kt.crossOrigin=W,kt.src=Ft,webModule.__errFn&&(kt.onerror=function(){webModule.__errFn(L,new Error(bb+Ft))}),rt.appendChild(kt)}Ke(function(){Rt(tn)})}webModule.__startLoadingFragment=function(tn){return C(tn)},webModule.__installRunAsyncCode=function(tn){var Ke=u(),Rt=Ke.body,Ft=Ke.createElement(_);Ft.language=ab,Ft.text=tn,Rt.appendChild(Ft),Rt.removeChild(Ft)};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(tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(tn){var Ke=c[tn];return Ke==null?null:Ke},r=d,webModule.__errFn=e}function B(){function tn(Ct){var St=Ct.lastIndexOf(rb);St==-1&&(St=Ct.length);var pt=Ct.indexOf(sb);pt==-1&&(pt=Ct.length);var vt=Ct.lastIndexOf(tb,Math.min(pt,St));return vt>=O?Ct.substring(O,vt+P):W}function Ke(Ct){if(!Ct.match(/^\w+:\/\//)){var St=o.createElement(ub);St.src=Ct+vb,Ct=tn(St.src)}return Ct}function Rt(){var Ct=__gwt_getMetaProperty(wb);return Ct!=null?Ct:W}function Ft(){for(var Ct=o.getElementsByTagName(_),St=O;St<Ct.length;++St)if(Ct[St].src.indexOf(xb)!=-1)return tn(Ct[St].src);return W}function ie(){var Ct=o.getElementsByTagName(yb);return Ct.length>O?Ct[Ct.length-P].href:W}function rt(){var Ct=o.location;return Ct.href==Ct.protocol+zb+Ct.host+Ct.pathname+Ct.search+Ct.hash}var kt=Rt();return kt==W&&(kt=Ft()),kt==W&&(kt=ie()),kt==W&&rt()&&(kt=tn(o.location.href)),kt=Ke(kt),kt}function C(tn){return tn.match(/^\//)||tn.match(/^[a-zA-Z]+:\/\//)?tn:webModule.__moduleBase+tn}function D(){var tn=[],Ke=O,Rt=[],Ft=[];function ie(Ct){var St=Ft[Ct](),pt=Rt[Ct];if(St in pt)return St;var vt=[];for(var yt in pt)vt[pt[yt]]=yt;throw r&&r(Ct,vt,St),null}if(__gwt_isKnownPropertyValue=function(Ct,St){return St in Rt[Ct]},webModule.__getPropMap=function(){var Ct={};for(var St in Rt)Rt.hasOwnProperty(St)&&(Ct[St]=ie(St));return Ct},webModule.__computePropValue=ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var rt;try{rt=Cb;var kt=rt.indexOf(Db);kt!=-1&&(Ke=parseInt(rt.substring(kt+P),$),rt=rt.substring(O,kt))}catch(Ct){}return webModule.__softPermutationId=Ke,C(rt+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Ax:function(){return kt},Ds:function(){return Ct},KI:function(){return pt},SI:function(){return rt},f1:function(){return ie}});var Ft=Rt(3294);function ie(vt){let yt=!0;if(vt.length>0){for(let xt=0;xt<vt.length;xt++)if(vt[xt].compile_success==0||!vt[xt].compile_success){yt=!1;break}}else yt=!1;return yt}function rt(vt,yt=""){let xt=[];for(let dt=0;dt<vt.length;dt++){let ft=vt[dt],ct=yt?`${yt}/${ft.name}`:`${ft.name}`;xt.push({title:ft.name,type:ft.type,isLeaf:ft.type!=="tree",key:ct})}return xt}function kt(vt,yt,xt){for(let dt=0;dt<vt.length;dt++){let ft=vt[dt];if(ft.key===yt){ft.children=xt;break}ft.children&&kt(ft.children,yt,xt)}return vt}function Ct(vt,yt,xt){let dt;return function(){let ft=this,ct=arguments,lt=function(){dt=null,xt||vt.apply(ft,ct)},E=xt&&!dt;clearTimeout(dt),dt=setTimeout(lt,yt),E&&vt.apply(ft,ct)}}const St=!0,pt=Ft.Z.API_SERVER},24544:function(tn,Ke,Rt){"use strict";var Ft=Rt(86204),ie=Rt.n(Ft),rt=Object.defineProperty,kt=(vt,yt,xt)=>yt in vt?rt(vt,yt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):vt[yt]=xt,Ct=(vt,yt,xt)=>kt(vt,typeof yt!="symbol"?yt+"":yt,xt),St=(vt,yt,xt)=>new Promise((dt,ft)=>{var ct=z=>{try{E(xt.next(z))}catch(ot){ft(ot)}},lt=z=>{try{E(xt.throw(z))}catch(ot){ft(ot)}},E=z=>z.done?dt(z.value):Promise.resolve(z.value).then(ct,lt);E((xt=xt.apply(vt,yt)).next())});class pt extends Ft.EventEmitter{constructor(yt,xt){super(),Ct(this,"url"),Ct(this,"body"),Ct(this,"fullContent",""),Ct(this,"controller",null),this.url=yt,this.body=xt}startStream(){return St(this,null,function*(){this.controller=new AbortController;const{signal:yt}=this.controller;try{const xt=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:yt});if(!xt.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${xt.status}`);const dt=xt.headers.get("content-type");if(!dt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(dt.includes("application/json")){const lt=yield xt.json();this.emit("error",lt);return}if(!dt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ft=xt.body.getReader(),ct=new TextDecoder("utf-8");for(;;){const{done:lt,value:E}=yield ft.read();if(lt)break;const ot=ct.decode(E,{stream:!0}).split(`
`);for(const it of ot)if(it.startsWith("data:")){const at=it.slice(5).trim();if(at==="[DONE]")break;try{const ut=JSON.parse(at);ut.data&&this.handleData(ut.data)}catch(ut){console.error("\u89E3\u6790 JSON \u5931\u8D25:",ut)}}}this.emit("done",this.fullContent)}catch(xt){xt.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",xt.message)}})}handleData(yt){yt.content&&(this.fullContent+=yt.content,this.emit("data",{chunk:yt,full:this.fullContent}))}cancelRequest(){var yt;(yt=this.controller)==null||yt.abort()}}Ke.Z=pt},43276:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Et}});var Ft=Rt(59301),ie=Rt(72719),rt=Rt(77596),kt=Rt(93772),Ct=Rt(14179),St=Rt(56102),pt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm"},vt=Rt(8591),yt=Rt(11611),xt=Rt(35328),dt=Rt(30084),ft=Rt(10787),ct=Rt(50304),lt=Object.defineProperty,E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,it=(At,_t,Mt)=>_t in At?lt(At,_t,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):At[_t]=Mt,at=(At,_t)=>{for(var Mt in _t||(_t={}))z.call(_t,Mt)&&it(At,Mt,_t[Mt]);if(E)for(var Mt of E(_t))ot.call(_t,Mt)&&it(At,Mt,_t[Mt]);return At},ut=(At,_t)=>{var Mt={};for(var jt in At)z.call(At,jt)&&_t.indexOf(jt)<0&&(Mt[jt]=At[jt]);if(At!=null&&E)for(var jt of E(At))_t.indexOf(jt)<0&&ot.call(At,jt)&&(Mt[jt]=At[jt]);return Mt},Et=({onFinish:At,value:_t,streamingStatus:Mt,cancelIndex:jt,loadImage:Lt})=>{const[It,Ut]=(0,Ft.useState)(""),[Xt,Gt]=(0,Ft.useState)(0),[Yt,Ht]=(0,Ft.useState)(!1),ne=Kt=>Kt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(re,we)=>`<mathx data-text="${we.trim()}">$$${we.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ae=()=>{Ht(!0),At==null||At()};return(0,Ft.useEffect)(()=>{const Kt=Lt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${_t}`:_t,re=ne(Kt);if(!Yt)if(Lt||!Mt||jt>0){Ut(re),Gt(re.length),(!Mt||jt>0)&&!Lt&&ae();return}else if(Xt<re.length){const we=re.length-Xt,Me=setInterval(()=>{Ut(re.slice(0,Xt+2)),Gt(ke=>ke+2)},we>10?Math.max(500/(we/2),20):50);return()=>clearInterval(Me)}else Mt||ae()},[_t,Mt,jt,Lt,Xt]),(0,Ft.useMemo)(()=>Ft.createElement("section",{className:`${pt.answer} fadeIn animated edu_md`},Ft.createElement(ie.UG,{remarkPlugins:[dt.Z,ft.Z],rehypePlugins:[xt.Z,kt.Z],components:{code(Kt){var re=Kt,{node:we,inline:Me,className:ke,children:me}=re,fe=ut(re,["node","inline","className","children"]);const pe=/language-(\w+)/.exec(ke||""),_e=String(me).trim();return Me||!pe?Ft.createElement("code",at({className:ke},fe),me):Ft.createElement("code",{className:pt.codeCopy,"data-text":`\`\`\`${pe?pe[1]:""}
${me}
\`\`\``},Ft.createElement(St.CopyToClipboard,{text:_e,onCopy:()=>vt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Ft.createElement("button",null,"\u590D\u5236")),Ft.createElement(rt.Z,at({style:Ct.Z,language:pe[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},fe),_e))},img({node:Kt}){var re;const we=(re=Kt.properties)==null?void 0:re.src;return Ft.createElement(yt.Z,{src:we,width:320,"data-text":we,onLoad:()=>Lt&&setTimeout(()=>ae(),500)})}}},Yt?It:`${It}__`)),[It])}},31707:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return it}});var Ft=Rt(59301),ie=Rt(19909),rt={bigTips:"bigTips___uPRW3",item:"item___KMGDu"},kt=Rt(8591),Ct=Rt(95237),St=Rt(99064),pt=Object.defineProperty,vt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,ct=(at,ut,wt)=>ut in at?pt(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:wt}):at[ut]=wt,lt=(at,ut)=>{for(var wt in ut||(ut={}))dt.call(ut,wt)&&ct(at,wt,ut[wt]);if(xt)for(var wt of xt(ut))ft.call(ut,wt)&&ct(at,wt,ut[wt]);return at},E=(at,ut)=>vt(at,yt(ut)),z=(at,ut,wt)=>new Promise((Et,At)=>{var _t=Lt=>{try{jt(wt.next(Lt))}catch(It){At(It)}},Mt=Lt=>{try{jt(wt.throw(Lt))}catch(It){At(It)}},jt=Lt=>Lt.done?Et(Lt.value):Promise.resolve(Lt.value).then(_t,Mt);jt((wt=wt.apply(at,ut)).next())}),it=({description:at,code:ut,showData:wt={},sendParams:Et={},allShow:At=!1,draggableExtraNode:_t})=>{const Mt=[{img:Rt(58427),name:"\u667A\u80FD\u5BA1\u9898",des:"\u5FEB\u901F\u667A\u80FD\u62C6\u89E3\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u89E3\u9898\u601D\u8DEF",description:"",query:at,show:wt==null?void 0:wt.ai_exam_question,type:1},{img:Rt(68427),name:"\u8BED\u6CD5\u68C0\u67E5",des:"\u68C0\u6D4B\u4EE3\u7801\u4E2D\u7684\u8BED\u6CD5\u9519\u8BEF\uFF0C\u63D0\u4F9B\u4FEE\u590D\u5EFA\u8BAE",description:"",query:ut,show:wt==null?void 0:wt.ai_syntax_check,type:5},{img:Rt(2195),name:"\u4EE3\u7801\u8BCA\u65AD",des:"\u7CFB\u7EDF\u667A\u80FD\u4EE3\u7801\u5206\u6790\uFF0C\u63D0\u4F9B\u4FEE\u6B63\u5EFA\u8BAE",description:at,query:ut,show:wt==null?void 0:wt.ai_code_diagnosis,type:2},{img:Rt(62849),name:"AI\u8F85\u5BFC",des:"\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E2A\u6027\u5316\u667A\u80FD\u5B66\u4E60\u8F85\u5BFC",description:at,query:ut,show:wt==null?void 0:wt.ai_guidance,type:3},{img:Rt(9515),name:"\u4EE3\u7801\u8BC4\u4EF7",des:"\u4ECE\u591A\u4E2A\u7EF4\u5EA6\u5BF9\u4EE3\u7801\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u4E86\u89E3\u4EE3\u7801\u7F3A\u9677",description:at,query:ut,show:wt==null?void 0:wt.ai_code_evaluation,type:9},{img:Rt(43214),name:"\u4EE3\u7801\u4F18\u5316",des:"\u5BF9\u4EE3\u7801\u8FDB\u884C\u667A\u80FD\u4F18\u5316\uFF0C\u5E2E\u52A9\u63D0\u5347\u4EE3\u7801\u8D28\u91CF",description:at,query:ut,show:wt==null?void 0:wt.ai_code_optimization,type:7},{img:Rt(54269),name:"\u4EE3\u7801\u6CE8\u91CA",des:"\u81EA\u52A8\u5BF9\u5DF2\u6709\u4EE3\u7801\u6DFB\u52A0\u6CE8\u91CA\uFF0C\u8282\u7701\u4EE3\u7801\u7F16\u5199\u65F6\u95F4",description:at,query:ut,show:wt==null?void 0:wt.ai_code_comment,type:8}],jt=It=>{const{setChatData:Ut,setLoading:Xt,getData:Gt,clearStatus:Yt,typing:Ht,setImageGenerator:ne,renderChatItems:ae,setSceneAwareness:ve}=It;let Kt=Mt;return At||(Kt=Mt.filter(re=>re.show)),Ft.createElement("div",{className:`${rt.bigTips} mt10`},Kt.map((re,we)=>Ft.createElement("div",{onClick:()=>z(void 0,null,function*(){if(Ht){kt.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}ve(!1),ne(!1),Xt(!0),Yt();const Me=ae(re.query);Me[0].show=!1,Me[1].imageGenerator=!1,Ut(Me),Gt("",E(lt({type:re.type,description:re.description,query:re.query,file_ids:[],history:[],is_chat:!1,image_generator:!1,scene_awareness:!1},Et),{prompt:wt==null?void 0:wt.ai_code_evaluation_promote}))}),key:we,className:rt.item},Ft.createElement(Ct.Z,{align:"middle"},Ft.createElement("img",{className:"mr10",src:re.img}),Ft.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},re.name)),Ft.createElement("div",{className:"mt10",style:{color:"#434D6C"}},re.des))))},Lt=It=>z(void 0,[It],function*({type:Ut,value:Xt,index:Gt,identifier:Yt,objectIndex:Ht}){const ne={index:Ht,identifier:Yt};if(Ut==="like"&&(yield(0,St.ZP)("/api/course_qna_records/like.json",{method:"post",body:ne})).status!==0||Ut==="dislike"&&(yield(0,St.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:ne})).status!==0)return Promise.reject()});return Ft.createElement(ie.Z,{title:"\u667A\u80FD\u52A9\u6559",hideInputBox:At?!1:!(wt!=null&&wt.ai_q_and_a),headFunctionNode:jt,showSwitchingModel:!0,showImageGenerator:!0,showSceneAwareness:!0,fetchData:E(lt({},Et),{is_chat:!0}),topPercentage:(Et==null?void 0:Et.source)==="hack"?.52:void 0,headNode:Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:"c-grey-333 font22"},Ft.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u5934\u6B4C\u667A\u80FD\u52A9\u6559\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),Ft.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u6211\u53EF\u4EE5\u8FD0\u7528\u667A\u80FD\u5BA1\u9898\u7684\u529F\u80FD\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u7406\u89E3\u5E76\u62C6\u89E3\u5B9E\u8DF5\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u6E05\u6670\u660E\u4E86\u7684\u89E3\u9898\u601D\u8DEF\u3002\u5F53\u60A8\u5728\u7F16\u5199\u4EE3\u7801\u8FC7\u7A0B\u4E2D\u9047\u5230\u95EE\u9898\u65F6\uFF0C\u6211\u53EF\u4EE5\u63D0\u4F9B\u4EE3\u7801\u8BCA\u65AD\u670D\u52A1\uFF0C\u5206\u6790\u60A8\u7684\u4EE3\u7801\u5E76\u7ED9\u51FA\u5177\u4F53\u7684\u4FEE\u6B63\u5EFA\u8BAE\u3002\u5982\u679C\u60A8\u9700\u8981\u8FDB\u4E00\u6B65\u7684\u5E2E\u52A9\uFF0C\u6211\u8FD8\u53EF\u4EE5\u63D0\u4F9B\u8BE6\u7EC6\u7684AI\u6307\u5BFC\uFF0C\u4E3A\u60A8\u91CF\u8EAB\u5B9A\u5236\u53C2\u8003\u7684\u89E3\u51B3\u65B9\u6848\u3002\u671F\u5F85\u4E0E\u60A8\u643A\u624B\u5171\u8FDB\uFF0C\u9AD8\u6548\u3001\u4F18\u8D28\u5730\u5B8C\u6210\u6BCF\u4E00\u9879\u5B9E\u8DF5\u4EFB\u52A1\uFF01"),Ft.createElement("div",{className:"font16 mt20",style:{color:"#434d6c"}},"\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E")),fetchUrl:"/api/stream/intelligent_imports/chat_messages.json",draggableExtraNode:_t})}},19909:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ie}});var Ft=Rt(59301),ie=Rt(8591),rt=Rt(54580),kt=Rt(43418),Ct=Rt(6848),St=Rt(92832),pt=Rt(3113),vt=Rt(71418),yt=Rt(64165),xt=Rt(14478),dt=Rt(43428),ft=Rt(38854),ct=Rt(92310),lt=Rt.n(ct),E=Rt(43276),z={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},ot=Rt(59301),it=(Ue,Je,Ze)=>new Promise((nn,fn)=>{var An=ii=>{try{Dn(Ze.next(ii))}catch(mi){fn(mi)}},En=ii=>{try{Dn(Ze.throw(ii))}catch(mi){fn(mi)}},Dn=ii=>ii.done?nn(ii.value):Promise.resolve(ii.value).then(An,En);Dn((Ze=Ze.apply(Ue,Je)).next())}),ut=({value:Ue="",streamingStatus:Je,onFinish:Ze,cancelIndex:nn,time:fn,loading:An,loadAll:En})=>{const[Dn,ii]=(0,Ft.useState)(""),[mi,Ti]=(0,Ft.useState)(!0),Oi=(0,Ft.useRef)(Ue),ki=(0,Ft.useRef)(Je),pi=(0,Ft.useRef)(0),Bi=(0,Ft.useRef)(null),[Or,yr]=(0,Ft.useState)(!1),lr=70;(0,Ft.useEffect)(()=>{ki.current=Je},[Je]),(0,Ft.useEffect)(()=>{Oi.current=Ue},[Ue]),(0,Ft.useEffect)(()=>{if(!Je){ii(Oi.current);return}return yr(!0),Bi.current=setInterval(Si,lr),()=>{clearInterval(Bi.current)}},[]),(0,Ft.useEffect)(()=>{Or&&(ii(Oi.current),clearInterval(Bi.current),yr(!1),Ze())},[nn]);const Si=()=>it(void 0,null,function*(){const ee=Oi.current[pi.current];ee!==void 0?(ii(Ds=>Ds+ee),pi.current++,clearInterval(Bi.current),Bi.current=setInterval(Si,280/(Oi.current.length-pi.current))):ki.current===!1&&(ii(Oi.current),clearInterval(Bi.current),yr(!1),Ze())});return ot.createElement("div",{className:`${z.reasoning} fadeIn animated`},ot.createElement("div",{className:z.btn,onClick:()=>Ti(!mi)},ot.createElement("i",{className:"iconfont icon-shendusikao"}),fn?ot.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",fn," \u79D2\uFF09"):ot.createElement("span",null,"\u601D\u8003\u4E2D..."),mi?ot.createElement("b",{className:"iconfont icon-shouqi6"}):ot.createElement("b",{className:"iconfont icon-zhankai6"})),An&&ot.createElement(vt.Z,{spinning:!0,className:"mt20"}),mi&&!An&&ot.createElement("div",{className:z.content},Dn,Or?ot.createElement("span",{className:"aiBlink"},"__"):""))},wt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Et=Rt(81327),At=Object.defineProperty,_t=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Lt=(Ue,Je,Ze)=>Je in Ue?At(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,It=(Ue,Je)=>{for(var Ze in Je||(Je={}))Mt.call(Je,Ze)&&Lt(Ue,Ze,Je[Ze]);if(_t)for(var Ze of _t(Je))jt.call(Je,Ze)&&Lt(Ue,Ze,Je[Ze]);return Ue};const Ut=Ue=>React.createElement("svg",It({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ue),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var Xt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",Gt=Object.defineProperty,Yt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ae=(Ue,Je,Ze)=>Je in Ue?Gt(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,ve=(Ue,Je)=>{for(var Ze in Je||(Je={}))Ht.call(Je,Ze)&&ae(Ue,Ze,Je[Ze]);if(Yt)for(var Ze of Yt(Je))ne.call(Je,Ze)&&ae(Ue,Ze,Je[Ze]);return Ue};const Kt=Ue=>React.createElement("svg",ve({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Ue),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var re="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Ljg4Ni02My4wMTVjLTQ3LjgxMy00NC40MjYtOTEuMDU3LTkzLjM0Mi0xNDQuOTM1LTEzMS43MDJhNjM1LjgyNSA2MzUuODI1IDAgMCAwLTM4LjM2LTI1LjIwN2MtNTQuOTgyLTUxLjIgNy4xNjctOTMuMjYyIDIxLjU4Mi05OC4yMjUgMTQuOTY2LTUuMTk5IDUuMjc3LTIzLjE1OC00My40MDItMjIuOTIyLTQ4LjY4LjIzNy05My4xODQgMTUuODMzLTE0OS45NzcgMzYuNjI4LTguNDI4IDMuMTUtMTcuMDkyIDUuNTE0LTI1Ljk5MyA3LjMyNmE1NTcuODQ0IDU1Ny44NDQgMCAwIDAtMTYwLjc2OC01LjQzNmMtMTA1LjE1NyAxMS4yNjQtMTg5LjIwNCA1OC45Mi0yNTAuOTYgMTQwLjM2Ny03NC4yIDk3LjgzMi05MS42ODcgMjA4Ljk3NS03MC4yNjEgMzI1LjAwMiAyMi40NDkgMTIyLjI1IDg3LjQzNCAyMjMuNDY4IDE4Ny40NyAzMDIuNjMxIDEwMy41ODIgODIgMjIyLjkxNyAxMjIuMTcyIDM1OS4xODggMTE0LjQ1MiA4Mi43MDgtNC41NjggMTc0Ljc5LTE1LjIwMiAyNzguNjg2LTk5LjQ4NSAyNi4xNTEgMTIuNDQ1IDUzLjY0MiAxNy40ODYgOTkuMjQ5IDIxLjI2NyAzNS4xMzEgMy4wNzIgNjkuMDAyLTEuNzMzIDk1LjE1My02LjkzMSA0MC45Ni04LjM1IDM4LjIwMy00NC43NDEgMjMuMzE2LTUxLjQzNy0xMjAuMjAyLTUzLjcyLTkzLjgxNC0zMS44MjItMTE3LjgzOS00OS42MjQgNjEuMTI1LTY5LjMxNyAxNTMuMjA2LTE0MS4zMTIgMTg5LjIwNC0zNzQuNzA2IDIuODM1LTE4LjUxLjQ3Mi0zMC4xNjggMC00NS4yMTMtLjIzNy05LjEzNyAxLjk2OS0xMi42MDMgMTIuOTE4LTEzLjcwNmEyNDAuMDg5IDI0MC4wODkgMCAwIDAgODYuMTczLTI1LjQ0MmM3Ny45ODItNDAuODAzIDEwOS4zMzItMTA3LjkxNCAxMTYuNzM2LTE4OC4yNTkgMS4xMDMtMTIuMjg4LS4yMzYtMjQuOTctMTMuNzA1LTMxLjQyOXpNNjg1LjQ1IDg0Mi4wNDNDNTY5LjEwOCA3NTQuMjE1IDUxMi41NSA3MjUuMzA3IDQ4OS4xNTcgNzI2LjQ5Yy0yMS44MiAxLjI2LTE3Ljk2IDI1LjIwNi0xMy4xNTUgNDAuODAyIDUuMDQyIDE1LjQzOSAxMS41OCAyNi4wNzMgMjAuNzE3IDM5LjYyMSA2LjMwMSA4LjkgMTAuNzkxIDIyLjIxMy02LjMwMiAzMi4yOTUtMzcuNDk0IDIyLjIxMy0xMDIuNzk0LTcuNTYxLTEwNS43ODctOC45OC03Ni4wMTItNDIuOTI5LTEzOS40MjEtOTkuNTY0LTE4NC4yNDEtMTc2Ljk5NGE1MjMuODk0IDUyMy44OTQgMCAwIDEtNzIuNDY4LTIzOS45M2MtMS4wMjQtMjAuNTYgNS4yNzgtMjcuODg1IDI2LjcwMy0zMS41ODdhMjcyLjE0OCAyNzIuMTQ4IDAgMCAxIDg1LjMwNy0yLjEyN2MxMTguOTQyIDE2LjY5OSAyMjAuMTYgNjcuNzQxIDMwNS4wNzMgMTQ4LjQ4IDQ4LjQ0MyA0Ni4wMDEgODUuMDcxIDEwMC45ODIgMTIyLjg4IDE1NC43MDMgNDAuMTczIDU3LjAyOSA4My4zMzggMTExLjQ1OCAxMzguMzIgMTU1Ljk2MyAxOS4zNzYgMTUuNjc1IDM0Ljg5NCAyNy41NjkgNDkuNzgxIDM2LjIzNC00NC43NCA0LjgwNS0xMTkuNDE0IDUuODI5LTE3MC40NTYtMzIuOTI2em01NS45MjYtMzQ0LjYxNWMwLTUuMzU3IDIuNzU3LTEwLjM5OCA3LjMyNi0xMy40N2ExNy43MjMgMTcuNzIzIDAgMCAxIDIyLjEzNCAyLjA0OGMzLjA3MiAyLjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",we=Rt(59301),ke=({value:Ue,onChange:Je})=>{const[Ze,nn]=(0,Ft.useState)(!1),fn=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Xt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:re}],An=fn.find(En=>En.key===Ue);return we.createElement("div",{className:wt.select},we.createElement(Et.Z,{size:10},we.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),we.createElement("div",{className:wt.box,onMouseLeave:()=>nn(!1)},we.createElement("div",{className:wt.text,onClick:()=>nn(!0)},we.createElement("img",{src:An.img,width:20}),we.createElement("span",null,An.name),we.createElement("b",{className:"iconfont icon-zhankai6"})),Ze&&we.createElement("div",{className:wt.itemWrap},we.createElement("aside",null,fn.map(En=>we.createElement("div",{key:En.key,className:`${wt.item} ${En.key===Ue?wt.active:""}`,onClick:Dn=>{Dn.stopPropagation(),Je(En.key),nn(!1)}},we.createElement("img",{src:En.img,width:20}),we.createElement("span",null,En.name))))))))},me={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},fe=Rt(99064),pe=Rt(955),_e={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},He=({src:Ue,onClick:Je,topPercentage:Ze=.62,draggableExtraNode:nn})=>{const fn=(0,Ft.useRef)(null),An=(0,Ft.useRef)(!1),En=(0,Ft.useRef)(!1),[Dn,ii]=(0,Ft.useState)(window.innerHeight*Ze),[mi,Ti]=(0,Ft.useState)(!1),Oi=10;return(0,Ft.useEffect)(()=>{if(fn.current){let ki=function(lr){var Si;An.current=!0,yr=lr.pageY,Or=lr.pageY-(((Si=fn.current)==null?void 0:Si.getBoundingClientRect().top)||0),(0,pe.kk)("none"),document.onselectstart=function(){return!1}},pi=function(){An.current&&!En.current&&Je&&Je(),An.current=!1,En.current=!1,(0,pe.kk)("auto"),document.onselectstart=null},Bi=function(lr){var Si;if(An.current){const Ds=lr.pageY-Or,mr=window.innerHeight-(((Si=fn.current)==null?void 0:Si.offsetHeight)||0)-50,ms=50;if(!En.current&&Math.abs(yr-lr.pageY)>Oi&&(En.current=!0),En.current){let Xs=Math.max(ms,Math.min(Ds,mr));ii(Xs)}}},Or=0,yr=0;return fn.current.addEventListener("mousedown",ki),document.addEventListener("mousemove",Bi),document.addEventListener("mouseup",pi),()=>{var lr,Si;(Si=(lr=fn==null?void 0:fn.current)==null?void 0:lr.removeEventListener)==null||Si.call(lr,"mousedown",ki),document.removeEventListener("mousemove",Bi),document.removeEventListener("mouseup",pi)}}},[Je]),(0,Ft.useEffect)(()=>{const ki=()=>{ii(window.innerHeight*Ze)};return window.addEventListener("resize",ki),()=>{window.removeEventListener("resize",ki)}},[Ze]),Ft.createElement("div",{className:_e.draggableImage,style:{top:`${Dn}px`,display:mi?"none":"block",cursor:An.current?"grabbing":"grab"},ref:fn},nn,Ft.createElement("img",{className:_e.img,src:Ue,width:60,draggable:"false"}),Ft.createElement("i",{className:`iconfont icon-tupianguanbi ${_e.close}`,onMouseUp:ki=>{ki.stopPropagation(),Ti(!0)}}))},Se="data:image/png;base64,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",xe="data:image/png;base64,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",le="data:image/png;base64,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",Ne=Rt(3294),se=Rt(56102),Ae=Rt(24544),Xe=Rt(58617),Be=Rt(32050),Te=Object.defineProperty,ue=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Wt=(Ue,Je,Ze)=>Je in Ue?Te(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,Bt=(Ue,Je)=>{for(var Ze in Je||(Je={}))ye.call(Je,Ze)&&Wt(Ue,Ze,Je[Ze]);if(he)for(var Ze of he(Je))Qt.call(Je,Ze)&&Wt(Ue,Ze,Je[Ze]);return Ue},te=(Ue,Je)=>ue(Ue,$t(Je)),ge=(Ue,Je,Ze)=>new Promise((nn,fn)=>{var An=ii=>{try{Dn(Ze.next(ii))}catch(mi){fn(mi)}},En=ii=>{try{Dn(Ze.throw(ii))}catch(mi){fn(mi)}},Dn=ii=>ii.done?nn(ii.value):Promise.resolve(ii.value).then(An,En);Dn((Ze=Ze.apply(Ue,Je)).next())}),Ie=({title:Ue="\u5934\u6B4CAI",placeholder:Je,hideUpload:Ze,hideInputBox:nn,aiIcon:fn=Se,userIcon:An=xe,dragIcon:En=le,children:Dn,fetchUrl:ii,fetchData:mi={},extraAnswerAction:Ti,showDefaultTips:Oi=!0,onOpen:ki,onClose:pi,loadingOption:Bi,showPreference:Or=!1,initMessage:yr,customRequest:lr,visible:Si,width:ee=1200,isCheckRestrictNumber:Ds=!1,headNode:mr,headFunctionNode:ms,showRedraw:Xs,showEdit:Do,promptPropName:Oo="prompt",topPercentage:Gr,showSwitchingModel:sa=!1,showImageGenerator:dn=!1,showLookHistory:en=!1,fetchListObject:qe,customPreference:zn,customDataNode:Jn,showAddSession:hi,historyId:bn,draggableExtraNode:Bn,drawerExtraNode:Xi,menuExtraFunctionNode:dr,showSceneAwareness:ir=!1})=>{var We,Nn;const[ti,pr]=(0,Ft.useState)(!1),[on,Cn]=(0,Ft.useState)("qwen-max"),[xi,Zi]=(0,Ft.useState)([]),[Wi,oi]=(0,Ft.useState)([]),[ri,Zn]=(0,Ft.useState)(!1),[ur,Yr]=(0,Ft.useState)(!1),[br,mn]=(0,Ft.useState)(!1),[er,cr]=(0,Ft.useState)([]),[Mi,sn]=(0,Ft.useState)(""),[On,Qn]=(0,Ft.useState)(0),[si,ei]=(0,Ft.useState)(void 0),[Li,hr]=(0,Ft.useState)(!1),[Vi,Yi]=(0,Ft.useState)(null),[fr,vn]=(0,Ft.useState)(""),Qi=(0,Ft.useRef)(),gn=(0,Ft.useRef)(null),qi=(0,Ft.useRef)(null),[Io,Kr]=(0,Ft.useState)(!1),[Zo,Xr]=(0,Ft.useState)(!1),[Ri,Cr]=(0,Ft.useState)(!1),[ba,uo]=(0,Ft.useState)(!1),[Rn,Ee]=(0,Ft.useState)(0),jo=(0,Ft.useRef)(null),Qo=(0,Ft.useRef)(!1),Tl=(0,Ft.useRef)(null),[Pa,_l]=(0,Ft.useState)(void 0),[bu,ec]=(0,Ft.useState)(!0),[nc,Er]=(0,Ft.useState)(ee-28),[Zr,aa]=(0,Ft.useState)(!1),[vi,qn]=(0,Ft.useState)(!0),[xn,ai]=(0,Ft.useState)([]),zi=(0,Ft.useRef)([]),jr=(0,Ft.useRef)(null),Qr=(0,Ft.useRef)(null),Ur=(0,Ft.useRef)(!1),mo=nc-22,Jr=Mi==null?void 0:Mi.split(`
`).length,{onAdd:Ca,onGetList:Is,onListClick:Ol,onListDelete:$e,onListDealData:Es}=qe||{},Pu=50,Ba=10,Cu={maxCount:Pu,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:xi,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:yn=>ge(void 0,null,function*(){var ci,Ei,Ii,rr;const ji=(rr=(Ii=(Ei=(ci=yn==null?void 0:yn.name)==null?void 0:ci.split("."))==null?void 0:Ei.slice(-1))==null?void 0:Ii[0])==null?void 0:rr.toLowerCase(),Nr=["doc","docx","md","pdf","txt","xlsx","xls"].includes(ji);return yn.size==0?(ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),rt.default.LIST_IGNORE):Nr?yn.size/1024/1024>100?(ie.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),rt.default.LIST_IGNORE):!0:(ie.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),rt.default.LIST_IGNORE)}),onChange:({fileList:yn})=>{Zi(yn)},action:`${(We=Ne.Z)==null?void 0:We.API_SERVER}/api/intelligent_imports/upload_file.json`},qr={maxCount:Ba,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Wi,multiple:!0,accept:".jpg,.png,",beforeUpload:yn=>{var ci,Ei,Ii,rr;const ji=(rr=(Ii=(Ei=(ci=yn==null?void 0:yn.name)==null?void 0:ci.split("."))==null?void 0:Ei.slice(-1))==null?void 0:Ii[0])==null?void 0:rr.toLowerCase(),Nr=["jpg","png"].includes(ji);return yn.size==0?(ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),rt.default.LIST_IGNORE):Nr?yn.size/1024/1024>10?(ie.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),rt.default.LIST_IGNORE):!0:(ie.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),rt.default.LIST_IGNORE)},onChange:({fileList:yn})=>{oi(yn)},action:`${(Nn=Ne.Z)==null?void 0:Nn.API_SERVER}/api/ai/generals/update_file.json`};(0,Ft.useEffect)(()=>{if(!er.length||!Qi.current)return;const yn=er[er.length-1];yn!=null&&yn.loading&&(Qi.current.scrollTop=Qi.current.scrollHeight)},[er.length]),(0,Ft.useEffect)(()=>{if(!Qi.current||!jo.current)return;const yn=new IntersectionObserver(([ci])=>{ec(ci.isIntersecting)},{root:Qi.current,rootMargin:"70px",threshold:0});return yn.observe(jo.current),()=>{jo.current&&yn.unobserve(jo.current)}},[Qi.current,jo.current]),(0,Ft.useEffect)(()=>{if(!Io)return;const yn=Qi.current,ci=Tl.current;Qo.current=!1;let Ei=yn.scrollTop;const Ii=()=>{const{scrollTop:ji,scrollHeight:Ir,clientHeight:Nr}=yn;ji>Ei?ji+Nr>=Ir-50&&(yn.scrollTop=yn.scrollHeight,Qo.current=!1):ji<Ei&&(Qo.current=!0),Ei=ji};yn.addEventListener("scroll",Ii);const rr=new ResizeObserver(()=>{Qo.current||(yn.scrollTop=yn.scrollHeight)});return rr.observe(ci),()=>{var ji;rr.unobserve(ci),(ji=yn==null?void 0:yn.removeEventListener)==null||ji.call(yn,"scroll",Ii)}},[Io]),(0,Ft.useEffect)(()=>{!Io&&zi.current.length&&(cr([...er,...zi.current]),zi.current=[])},[Io]),(0,Ft.useEffect)(()=>{if(!Qi.current)return;const yn=new ResizeObserver(()=>{Er(Qi.current.offsetWidth)});return yn.observe(Qi.current),()=>{Qi.current&&yn.unobserve(Qi.current)}},[Qi.current]),(0,Ft.useEffect)(()=>{typeof Si=="boolean"&&pr(Si)},[Si]),(0,Ft.useEffect)(()=>{var yn;if(gn.current&&Vi!==null){gn.current.focus();const ci=(yn=gn.current.resizableTextArea)==null?void 0:yn.textArea;ci&&(ci.selectionStart=ci.selectionEnd=ci.value.length)}},[Vi]),(0,Ft.useEffect)(()=>{Jr<5&&hr(!1)},[Jr]),(0,Ft.useEffect)(()=>{ti&&yr&&(cr($a(yr)),Zn(!0),Yn(yr,{history:[]})),ti&&(Jo(),bn?jl(bn):hi&&!Pa&&Zs()),ti||tl()},[ti]);const $a=(yn="",ci=[],Ei=[])=>{const Ii=Date.now();return[{text:yn,key:Ii,sender:"user",fileList:ci,imageList:Ei,show:!0},{loading:!0,key:Ii,sender:"AI",show:!0,model:on,imageGenerator:Ri,thinkingEnabled:Zo}]},tl=()=>{vn(""),Yi(null),Zi([]),oi([]),sn("")},xr=()=>{if(ki){ki({chatData:er,setChatData:cr,setLoading:Zn,getData:Yn,renderChatItems:$a,handleAdd:Zs,identifier:Pa});return}pr(!0)},Eo=()=>{if(qn(!0),pi){pi();return}pr(!1)},Eu=()=>{hr(!Li)},Jo=()=>ge(void 0,null,function*(){if(!Ds)return;const yn=yield(0,fe.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(yn==null?void 0:yn.status)===0&&(yn==null?void 0:yn.total_number)!==-1&&(Qn((yn==null?void 0:yn.total_number)-(yn==null?void 0:yn.remaining_number)),ei(yn==null?void 0:yn.total_number))}),ch=()=>{kt.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:Ft.createElement("div",null,Ft.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ft.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",si,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},la=yn=>yn.reduce((Ei,Ii)=>{if(Ii.sender==="user"){const rr=yn.find(ji=>ji.key===Ii.key&&ji.sender==="AI");rr&&(rr!=null&&rr.text)&&!(rr!=null&&rr.error)&&Ei.push({question:Ii.text,answer:rr.text})}return Ei},[]),Yn=(...yn)=>ge(void 0,[...yn],function*(ci="",Ei={},Ii=er){if(lr&&(yield lr({mes:ci,setChatData:cr,fileList:xi,body:Ei,checkNum:Jo,setLoading:Zn,bodyChatData:Ii,setTyping:Kr,setImageGenerator:Cr,renderChatItems:$a})),!lr){const rr=xi==null?void 0:xi.map(bo=>{var Ms;return(Ms=bo==null?void 0:bo.response)==null?void 0:Ms.file_id}),ji=Wi==null?void 0:Wi.map(bo=>{var Ms;return(Ms=bo==null?void 0:bo.response)==null?void 0:Ms.data}),Ir=Ei.history||la(Ii),Nr=Bt(Bt({identifier:Pa,response_mode:"streaming",model:on,scene_awareness:ba,thinking_enabled:Zo,image_generator:Ri,file_ids:rr,image_list:ji,history:Ir,[Oo]:ci},mi),Ei),$o=Object.fromEntries(Object.entries(Nr).filter(([bo,Ms])=>Ms!==void 0));qi.current=new Ae.Z(Ne.Z.API_SERVER+ii,$o),yield new Promise((bo,Ms)=>{let oo=null,rc=null;qi.current.on("data",dh=>{Kr(!0);const{chunk:{content:vl,type:nl,created:Fo,msg:vs}}=dh,Ao=vs==="error";nl==="thinking"&&(oo=oo||Fo,cr(Po=>[...Po].map((il,tu)=>tu===Po.length-1?te(Bt({},il),{reasoning:(il.reasoning||"")+vl,loading:!1,hideAnswer:!0,error:Ao}):il))),nl==="text"&&(rc=rc||Fo,cr(Po=>[...Po].map((il,tu)=>tu===Po.length-1?te(Bt({},il),{text:(il.text||"")+vl,loading:!1,startTime:oo,endTime:rc,error:Ao}):il)))}),qi.current.on("done",()=>{bo()}),qi.current.on("error",()=>{const dh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";cr(vl=>[...vl].map((nl,Fo)=>Fo===vl.length-1?te(Bt({},nl),{text:dh,loading:!1,error:!0}):nl)),bo()}),qi.current.on("cancelled",()=>{bo()}),qi.current.startStream()})}Jo(),Zn(!1)}),If=yn=>{sn(yn.target.value)},ic=(yn,ci)=>{if(tl(),Zn(!0),yn==="edit"){zi.current=er.slice(ci+2);const Ei=er.splice(ci),{fileList:Ii,imageList:rr}=(Ei==null?void 0:Ei[0])||{},ji=Ii.map($o=>{var bo;return(bo=$o.response)==null?void 0:bo.file_id}),Ir=rr.map($o=>{var bo;return(bo=$o.response)==null?void 0:bo.data}),Nr={history:la(er),file_ids:ji,image_list:Ir,edit:!0};cr([...er,...$a(fr,Ii,rr)]),Yn(fr,Nr,er)}if(yn==="redraw"){zi.current=er.slice(ci+1);const Ei=er.splice(ci-1),{text:Ii,fileList:rr,imageList:ji}=(Ei==null?void 0:Ei[0])||{},Ir=rr.map(bo=>{var Ms;return(Ms=bo.response)==null?void 0:Ms.file_id}),Nr=ji.map(bo=>{var Ms;return(Ms=bo.response)==null?void 0:Ms.data}),$o={history:la(er),file_ids:Ir,image_list:Nr,edit:!0};cr([...er,...$a(Ii,rr,ji)]),Yn(Ii,$o,er)}},Ra=()=>{if(Mi.trim()!==""){tl(),Zn(!0);const yn=xi.filter(Ei=>Ei.status==="done"),ci=Wi.filter(Ei=>Ei.status==="done");cr([...er,...$a(Mi,yn,ci)]),Yn(Mi)}},Gc=yn=>{if(yn.shiftKey){if(yn.key==="Enter")return}else if(yn.key==="Enter"){if(yn.preventDefault(),gl||Ur.current)return;Ra()}},Uc=(yn,ci)=>{let Ei=!1;Do===!0?Ei=!0:Do==="last"&&(Ei=er.reduce((Ir,Nr,$o)=>Nr.sender==="user"?$o:Ir,-1)===ci);const Ii=ci===Vi,rr=[...(yn==null?void 0:yn.fileList)||[],...(yn==null?void 0:yn.imageList)||[]];return Ft.createElement("div",{className:me.li,style:{width:mo}},Ft.createElement("div",{className:me.avatarIcon},Ft.createElement("img",{className:me.img,src:An})),Ft.createElement("div",{className:me.content},!!(rr!=null&&rr.length)&&Ft.createElement("div",{className:me.fileWrap},rr==null?void 0:rr.map((ji,Ir)=>{var Nr,$o;return Ft.createElement("div",{key:Ir,className:me.file},Ft.createElement("img",{src:Rt(90034)(`./${(($o=(Nr=ji==null?void 0:ji.name)==null?void 0:Nr.split("."))==null?void 0:$o.pop())||"txt"}.png`),width:20,className:"mr10"}),Ft.createElement("aside",null,Ft.createElement(Ct.Z,{title:ji==null?void 0:ji.name},Ft.createElement("div",{className:me.fileName},ji==null?void 0:ji.name)),Ft.createElement("div",{className:"c-grey-999 font12"},(0,pe.RD)(ji==null?void 0:ji.size))))})),Ft.createElement("div",{className:me.borderBox},Ii?Ft.createElement(St.default.TextArea,{value:fr,ref:gn,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:ji=>vn(ji.target.value)}):Ft.createElement("div",{className:me.text},yn==null?void 0:yn.text)),Ii?Ft.createElement("div",{className:me.action},Ft.createElement(pt.ZP,{onClick:()=>{vn(""),Yi(null)},size:"small"},"\u53D6\u6D88"),Ft.createElement(pt.ZP,{disabled:!fr.trim(),onClick:()=>ic("edit",ci),type:"primary",size:"small"},"\u786E\u8BA4")):Ft.createElement("div",{className:me.action},Ft.createElement(se.CopyToClipboard,{text:(yn==null?void 0:yn.text)||"",onCopy:()=>ie.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(Ct.Z,{title:"\u590D\u5236"},Ft.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Ei&&!ri&&Ft.createElement(Ct.Z,{title:"\u7F16\u8F91"},Ft.createElement("i",{onClick:()=>{Yi(ci),vn((yn==null?void 0:yn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},jn=(yn,ci)=>{let Ei=!1;Xs===!0?Ei=!0:Xs==="last"&&(Ei=er.reduce((ji,Ir,Nr)=>Ir.sender==="AI"?Nr:ji,-1)===ci);let Ii="";return yn!=null&&yn.source?Ii=yn==null?void 0:yn.source:(yn==null?void 0:yn.model)==="deepseek-r1"?Ii="\u7531deepseek\u751F\u6210":(yn==null?void 0:yn.model)==="qwen-max"&&(Ii="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),Ft.createElement("div",{className:me.li,style:{width:mo}},Ft.createElement("div",{className:me.avatarIcon},Ft.createElement("img",{className:me.img,src:fn})),Ft.createElement("div",{className:me.content},Ft.createElement("div",{className:me.borderBox},yn.loading&&Ft.createElement(Ft.Fragment,null,yn!=null&&yn.imageGenerator?Ft.createElement("div",{className:me.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",Ft.createElement("div",{className:"ai-loading"})):!(yn!=null&&yn.thinkingEnabled)&&Ft.createElement("div",null,Ft.createElement("div",{className:me.loading},Ft.createElement("div",{className:me.dot}),Ft.createElement("div",{className:me.dot}),Ft.createElement("div",{className:me.dot})),Ft.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Bi==null?void 0:Bi.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(yn==null?void 0:yn.thinkingEnabled)&&Ft.createElement(ut,{time:yn==null?void 0:yn.time,cancelIndex:Rn,loading:yn.loading,streamingStatus:!(yn!=null&&yn.text),onFinish:()=>{Ee(0),cr(rr=>[...rr].map((ji,Ir)=>Ir===rr.length-1?te(Bt({},ji),{hideAnswer:!1,time:ji.startTime?ji.endTime-ji.startTime:null}):ji))},value:yn==null?void 0:yn.reasoning}),!!(yn!=null&&yn.text)&&!yn.hideAnswer&&Ft.createElement(E.Z,{cancelIndex:Rn,streamingStatus:ri,loadImage:!!(yn!=null&&yn.imageGenerator),onFinish:()=>ge(void 0,null,function*(){Ee(0),setTimeout(()=>Kr(!1),0)}),value:yn==null?void 0:yn.text})),!!(yn!=null&&yn.text)&&Ii&&Ft.createElement("div",{className:me.source},Ii),Ft.createElement("div",{className:me.action},Ti==null?void 0:Ti(yn,ci,{onMenuClick:jl}),Ft.createElement(se.CopyToClipboard,{text:String((yn==null?void 0:yn.text)||""),onCopy:()=>ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Ft.createElement(Ct.Z,{title:"\u590D\u5236"},Ft.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Or&&!ri&&Ft.createElement(Ft.Fragment,null,Ft.createElement(Ct.Z,{title:"\u559C\u6B22"},Ft.createElement("i",{style:yn!=null&&yn.like?{color:"#FA8D30"}:{},onClick:()=>$r("like",!(yn!=null&&yn.like),ci),className:"iconfot icon-yijiejue font15"})),Ft.createElement(Ct.Z,{title:"\u4E0D\u559C\u6B22"},Ft.createElement("i",{style:yn!=null&&yn.dislike?{color:"#e86d7c"}:{},onClick:()=>$r("dislike",!(yn!=null&&yn.dislike),ci),className:"iconfot icon-weijiejuezhengchang font15"}))),Ei&&!ri&&Ft.createElement(Ct.Z,{title:"\u91CD\u65B0\u751F\u6210"},Ft.createElement("i",{onClick:()=>ic("redraw",ci),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},$r=(yn,ci,Ei)=>ge(void 0,null,function*(){if(zn){const Ii=er.slice(0,Ei+1),ji=la(Ii).length;yield zn({type:yn,value:ci,index:Ei,identifier:Pa,objectIndex:ji})}cr(Ii=>(Ii[Ei][yn]=ci,ci&&(Ii[Ei][yn==="like"?"dislike":"like"]=!1),[...Ii]))}),vo=()=>{var yn,ci;Ee(1),(ci=(yn=qi.current)==null?void 0:yn.cancelRequest)==null||ci.call(yn),Zn(!1),Kr(!1)},Zs=()=>ge(void 0,null,function*(){var yn,ci,Ei;(ci=(yn=qi.current)==null?void 0:yn.cancelRequest)==null||ci.call(yn),tl(),cr([]),Zn(!0);const Ii=yield Ca();(Ii==null?void 0:Ii.status)===0&&_l((Ei=Ii==null?void 0:Ii.data)==null?void 0:Ei.identifier),Zn(!1),Kr(!1)}),$l=()=>ge(void 0,null,function*(){var yn;mn(!0);const ci=yield Is();(ci==null?void 0:ci.status)===0&&ai(((yn=ci==null?void 0:ci.data)==null?void 0:yn.list)||[]),mn(!1)}),jl=(...yn)=>ge(void 0,[...yn],function*(ci=Pa){var Ei,Ii,rr,ji;(Ii=(Ei=qi.current)==null?void 0:Ei.cancelRequest)==null||Ii.call(Ei),tl(),Yr(!0);const Ir=yield Ol(ci);if(Ir.status===0){const Nr=Es(((rr=Ir==null?void 0:Ir.data)==null?void 0:rr.messages)||[]);cr(Nr),Yr(!1),_l((ji=Ir==null?void 0:Ir.data)==null?void 0:ji.identifier);return}cr([]),Yr(!1)}),wi=(yn,ci)=>ge(void 0,null,function*(){(yield $e(yn)).status===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),ci===Pa&&Zs(),$l())}),fh=()=>Ft.createElement("div",{className:me.menuWarp},Ft.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),Ft.createElement(vt.Z,{spinning:br},!xn.length&&Ft.createElement(yt.Z,{style:{width:250,paddingBottom:30},image:yt.Z.PRESENTED_IMAGE_SIMPLE}),!!xn.length&&Ft.createElement("div",{className:me.menu},xn.map(function(yn,ci){return Ft.createElement("aside",{className:lt()(Pa===yn.identifier&&me.active),key:yn.id,onClick:()=>jl(yn.id)},Ft.createElement("div",{className:me.menuText},Ft.createElement(Ct.Z,{title:yn==null?void 0:yn.question},Ft.createElement("span",null,yn==null?void 0:yn.question)),dr&&dr(yn)),Ft.createElement("div",{className:me.menuDel,onClick:Ei=>Ei.stopPropagation()},Ft.createElement(xt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>wi(yn.id,yn.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},Ft.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),el=yn=>{if(yn==="file"){if(Wi.length){kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{oi([]),jr.current.upload.uploader.fileInput.click()}});return}jr.current.upload.uploader.fileInput.click()}if(yn==="image"){if(xi.length){kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Zi([]),Qr.current.upload.uploader.fileInput.click()}});return}Qr.current.upload.uploader.fileInput.click()}},Fs=[{key:"file",disabled:xi.length>=Pu,label:Ft.createElement(Ct.Z,{placement:"right",title:Ft.createElement("div",null,Ft.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),Ft.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},on!=="deepseek-r1"&&{key:"image",disabled:Wi.length>=Ba,label:Ft.createElement(Ct.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),qo=[...xi,...Wi],gl=qo.some(yn=>yn.status==="uploading")||ri||Io,ml=On>=si,As=Ze||xi.length>=Pu||Wi.length>=Ba,Ea=Ri||Zo||ba||!!qo.length;return console.log(qo,"fileAndImageList"),Ft.createElement("div",null,Dn?Ft.createElement("div",{onClick:xr},Dn):Ft.createElement(He,{draggableExtraNode:Bn,src:En,onClick:xr,topPercentage:Gr}),Ft.createElement(dt.Z,{open:ti,width:Zr?"100%":ee,afterOpenChange:yn=>{yn&&qn(!1)},push:!1,contentWrapperStyle:vi?{}:{transition:"none"},extra:Ft.createElement("div",{className:me.head},Xi,sa&&Ft.createElement(ke,{value:on,onChange:yn=>{Xr(!1),Cr(!1),Cn(yn),oi([]),Zi([])}}),en&&Ft.createElement(Ft.Fragment,null,Ft.createElement(ft.Z,{dropdownRender:fh,onOpenChange:yn=>{yn&&$l()},placement:"bottomLeft",arrow:!0},Ft.createElement("div",{className:me.headBtn},Ft.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),hi&&Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:me.headBtn,onClick:Zs},Ft.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),Ft.createElement(Ct.Z,{title:Zr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},Ft.createElement("div",{className:me.headBtn,style:{padding:"0 12px"},onClick:()=>aa(!Zr)},Zr&&Ft.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Zr&&Ft.createElement("i",{className:"iconfont icon-quanping4"})))),title:Ft.createElement("span",{className:"c-grey-333 font16"},Ue),onClose:Eo,bodyStyle:{paddingRight:4}},Ft.createElement("div",{className:lt()(me.wrap,ti&&"body-overflow-hidden")},Ft.createElement("div",{ref:Qi,className:me.chatContainer},Oi&&Ft.createElement("div",{className:`${me.li} mb20`,style:{width:mo}},Ft.createElement("div",{className:me.avatarIcon},Ft.createElement("img",{className:me.img,src:fn})),Ft.createElement("div",{className:me.content},Ft.createElement("div",{className:me.borderBox},mr,ms==null?void 0:ms({isDisabledNum:ml,checkNumModal:ch,checkNum:Jo,onClose:Eo,setChatData:cr,setLoading:Zn,getData:Yn,clearStatus:tl,typing:Io,setImageGenerator:Cr,renderChatItems:$a,setSceneAwareness:uo})))),Ft.createElement("div",{ref:Tl},Ft.createElement(vt.Z,{spinning:ur,className:"mt20"},er==null?void 0:er.map((yn,ci)=>Ft.createElement(Ft.Fragment,{key:yn.key+ci},yn.show&&Ft.createElement(Ft.Fragment,null,yn.sender==="user"&&Uc(yn,ci),yn.sender==="AI"&&jn(yn,ci),Jn&&!["AI","user"].includes(yn.sender)&&Jn(yn,ci,{width:mo})))))),!bu&&Ft.createElement("div",{className:me.backBottom,onClick:()=>{Qi.current.scrollTop=Qi.current.scrollHeight}},Ft.createElement("i",{className:"iconfont icon-huidaodibu"})),Ft.createElement("div",{ref:jo})),!nn&&Ft.createElement("div",{className:lt()(me.footerContainer,Li&&me.full,Ea&&me.footerContainerSelected)},Ft.createElement("div",{className:me.btnWrp},ir&&Ft.createElement(Ct.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},Ft.createElement("div",{onClick:()=>uo(!ba),className:lt()(me.btn,ba&&me.btnActive)},Ft.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),on==="deepseek-r1"&&Ft.createElement(Ct.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},Ft.createElement("div",{onClick:()=>Xr(!Zo),className:lt()(me.btn,Zo&&me.btnActive)},Ft.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),dn&&on==="qwen-max"&&Ft.createElement("div",{onClick:()=>Cr(!Ri),className:lt()(me.btn,Ri&&me.btnActive)},Ft.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),qo.map(yn=>Ft.createElement("div",{key:yn.uid},(yn==null?void 0:yn.status)==="uploading"&&Ft.createElement(vt.Z,{indicator:Ft.createElement(Xe.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),Ft.createElement("span",{title:yn==null?void 0:yn.name,className:"mr10"},(0,pe.Pq)(yn.name,20)),Ft.createElement("i",{onClick:()=>{Zi(ci=>ci.filter(Ei=>Ei.uid!==yn.uid)),oi(ci=>ci.filter(Ei=>Ei.uid!==yn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),Ft.createElement(Ct.Z,{title:ml&&Ft.createElement("div",null,Ft.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ft.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",si,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},Ft.createElement("div",{className:lt()(me.inputContainer,Jr>4&&me.lineFour,ml&&me.disabledInput)},Ft.createElement(rt.default,Bt({ref:jr},Cu)),Ft.createElement(rt.default,Bt({ref:Qr},qr)),Ft.createElement(ft.Z,{className:`${As&&"hide"}`,menu:{items:Fs,onClick:yn=>el(yn.key)},placement:"top"},Ft.createElement(pt.ZP,{className:me.uploadBtn,icon:Ft.createElement(Be.Z,{style:{fontSize:18,color:"#FFF"}})})),Ft.createElement(St.default.TextArea,{rows:Jr>4?4:Jr,placeholder:Je||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:Mi,bordered:!1,style:As?{paddingLeft:0,marginLeft:0}:{},onChange:If,onPressEnter:Gc,onCompositionStart:()=>{Ur.current=!0},onCompositionEnd:()=>{Ur.current=!1}}),Io?Ft.createElement(Ct.Z,{title:"\u505C\u6B62\u751F\u6210"},Ft.createElement("div",{className:`iconfont icon-tingzhihuida ${me.cancelBtn}`,onClick:vo})):Ft.createElement(pt.ZP,{className:(Mi==null?void 0:Mi.trim())===""?me.sendBtnDisabled:me.sendBtn,icon:Ft.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:gl,onClick:Ra}),Jr>4&&Ft.createElement("span",{className:me.fullIcon,onClick:Eu},Li&&Ft.createElement("span",{className:"iconfont icon-shousuo"}),!Li&&Ft.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},67054:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ut},U:function(){return jt}});var Ft=Rt(59301),ie=Rt(31797),rt=Rt(43418),kt=Rt(1710),Ct=Rt(4901),St=Rt(94941),pt=Rt(61186),vt=Rt.n(pt),yt={exitFullScreenModalWrapper:"exitFullScreenModalWrapper___aNB9Q",exitFullScreenModal:"exitFullScreenModal___HIMyY",warningIcon:"warningIcon___xEURa",warningText:"warningText___W6NPJ",countdownWrapper:"countdownWrapper___n8g1M",forcedModalWrapper:"forcedModalWrapper___JPMQ2",forcedModalContent:"forcedModalContent___uY5FV",forcedText:"forcedText___C3CrF",screenNumText:"screenNumText___oljHN"},xt="data:image/png;base64,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",dt="data:image/png;base64,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",ft=Rt(955),ct=Rt(89070),lt=Rt(37518),E=Rt(59301),z=Object.defineProperty,ot=Object.defineProperties,it=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Et=(Xt,Gt,Yt)=>Gt in Xt?z(Xt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Xt[Gt]=Yt,At=(Xt,Gt)=>{for(var Yt in Gt||(Gt={}))ut.call(Gt,Yt)&&Et(Xt,Yt,Gt[Yt]);if(at)for(var Yt of at(Gt))wt.call(Gt,Yt)&&Et(Xt,Yt,Gt[Yt]);return Xt},_t=(Xt,Gt)=>ot(Xt,it(Gt)),Mt=(Xt,Gt,Yt)=>new Promise((Ht,ne)=>{var ae=re=>{try{Kt(Yt.next(re))}catch(we){ne(we)}},ve=re=>{try{Kt(Yt.throw(re))}catch(we){ne(we)}},Kt=re=>re.done?Ht(re.value):Promise.resolve(re.value).then(ae,ve);Kt((Yt=Yt.apply(Xt,Gt)).next())});const jt=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],{Countdown:Lt}=ie.default,It=({exercise:Xt,socket:Gt,dispatch:Yt,onStartScreenshot:Ht,onCloseScreenshot:ne,handleToDetail:ae})=>{const[ve,Kt]=rt.default.useModal(),re=(0,Ft.useRef)(),[we,Me]=(0,Ft.useState)(!0),ke=(0,Ft.useRef)(!1),me=(0,ct.useParams)();(0,Ft.useEffect)(()=>{var he,ye,Qt;if(document.addEventListener((0,Ct.gH)(),ue,!1),window.addEventListener("blur",Be,!1),(he=Xt.exerciseUserInfo)!=null&&he.screen_open&&(0,Ct.vp)()&&Me(!1),(ye=Xt.exerciseUserInfo)!=null&&ye.screen_open&&!(0,Ct.vp)()){(0,ft.RG)(" ",!0);const Wt=document.domain==="kepukehuan.educoder.net"?30:localStorage.getItem("Refresh")==="1"?Xt.exerciseUserInfo.screen_sec+3:Xt.exerciseUserInfo.screen_sec+10+1;re.current=rt.default.info({icon:null,centered:!0,width:444,title:(0,lt._V)(lt.CP.recordScreen1),keyboard:!1,content:E.createElement("div",null,(0,lt._V)(lt.CP.recordScreen2),E.createElement("span",{style:{color:"#FF9849"}},Xt.exerciseUserInfo.screen_num-Xt.exerciseUserInfo.used_screen_num),(0,lt._V)(lt.CP.recordScreen3)),okText:E.createElement("span",null,(0,lt._V)(lt.CP.recordScreen4),"\uFF08",E.createElement("span",{style:{display:"inline-block"}},E.createElement(Lt,{onFinish:()=>Mt(void 0,null,function*(){var Bt;const te=yield Te();(Bt=re.current)==null||Bt.destroy(),te.used_screen_num&&se(te.used_screen_num+1)}),valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+Wt*1e3})),"S\uFF09"),onOk:()=>{var Bt;(0,ft.RG)(" ",!0),(Bt=re.current)==null||Bt.destroy(),Me(!1),(0,Ct.Dj)(document.body),document.getElementById("root").addEventListener("click",pe,!1)}})}return(Qt=Xt.exerciseUserInfo)!=null&&Qt.screen_open&&!(0,Ct.vp)()||document.getElementById("root").addEventListener("click",pe,!1),()=>{document.getElementById("root").removeEventListener("click",pe,!1),document.removeEventListener((0,Ct.gH)(),ue,!1),window.removeEventListener("blur",Be,!1)}},[]),(0,Ft.useEffect)(()=>{setTimeout(()=>{Xt.actionTabs.removeEventListenerExitScreen&&(document.getElementById("root").removeEventListener("click",pe,!1),document.removeEventListener((0,Ct.gH)(),ue,!1))},500),_e()},[Xt.actionTabs]),(0,Ft.useEffect)(()=>{setTimeout(()=>{Xt.exerciseUserInfo.used_screen_num>Xt.exerciseUserInfo.screen_num&&Ae()},500)},[Xt.exerciseUserInfo]);const fe=()=>Mt(void 0,null,function*(){const he=yield Te();setTimeout(()=>{var ye,Qt;(ye=re.current)==null||ye.destroy(),re.current=rt.default.info({okText:E.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:E.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",E.createElement("span",{className:"c-red"},he.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",E.createElement("span",{className:"c-red"},(Qt=Xt.exerciseUserInfo)==null?void 0:Qt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:()=>Mt(void 0,null,function*(){(0,Ct.Dj)(document.body)})})},1e3)}),pe=he=>{!(0,Ct.vp)()&&he.target.nodeName!=="A"&&he.target.nodeName!=="BUTTON"&&he.target.innerHTML!=="\u786E \u5B9A"&&(0,Ct.Dj)(document.body)},_e=()=>Mt(void 0,null,function*(){const he=yield Yt({type:"exercise/getExerciseUserInfo",payload:At({},me)});return he==null?void 0:he.data}),je=he=>Mt(void 0,null,function*(){var ye;if((ye=Xt.exerciseUserInfo)!=null&&ye.screen_at){const Wt=yield(0,St.ck)(_t(At({},me),{reset:!0}));if((Wt==null?void 0:Wt.status)===-6)return}const Qt=yield(0,St.oy)({id:me.categoryId});if(Qt!=null&&Qt.is_commit){rt.default.destroyAll(),yield He(),Xe(!0);return}else se(he+1)}),He=()=>Mt(void 0,null,function*(){var he;const ye=vt()(),Qt=Xt.exerciseUserInfo.screen_sec;if(le.current.length>0){const Wt=ye.format("YYYY-MM-DD HH:mm:ss");let Bt=Math.floor(ye.diff(vt()(le.current[0].start))/1e3);const te=le.current.length;Bt/Qt>>0>te&&(Bt=(te+1)*Qt-1),yield(0,St.P8)(me.categoryId,{exercise_user_id:(he=Xt.exerciseUserInfo)==null?void 0:he.exercise_user_id,time:Wt,time_long:Bt,count:te})}le.current=[]}),Se=(0,Ft.useRef)(0),xe=(0,Ft.useRef)(0),le=(0,Ft.useRef)([]),Ne=(0,Ft.useRef)(!1),se=he=>Mt(void 0,null,function*(){var ye;ke.current||(Ht(),rt.default.destroyAll(),Se.current=vt()().valueOf(),Ne.current=!0,re.current=rt.default.info({icon:null,maskClosable:!1,width:1080,keyboard:!1,centered:!0,className:yt.exitFullScreenModalWrapper,okText:E.createElement("span",null,(0,lt._V)(lt.CP.recordScreen8)),content:E.createElement("div",{className:yt.exitFullScreenModal},E.createElement("img",{src:xt,alt:"",className:yt.warningIcon}),E.createElement("div",{className:yt.warningText,style:{marginBottom:50,fontWeight:500}},(0,lt._V)(lt.CP.recordScreen9)),E.createElement("div",{style:{marginBottom:40}},(0,lt._V)(lt.CP.recordScreen10)),E.createElement("div",{style:{marginBottom:40}},(0,lt._V)(lt.CP.recordScreen11),E.createElement("span",{className:yt.warningText},((ye=Xt.exerciseUserInfo)==null?void 0:ye.screen_num)+1),(0,lt._V)(lt.CP.recordScreen12),E.createElement("span",{className:yt.warningText,style:{fontWeight:600}},(0,lt._V)(lt.CP.recordScreen13)),",",(0,lt._V)(lt.CP.recordScreen14),E.createElement("span",{className:yt.warningText},he-1),(0,lt._V)(lt.CP.recordScreen15)),E.createElement("div",null,E.createElement("span",null,E.createElement(Lt,{className:yt.countdownWrapper,onFinish:()=>{xe.current=vt()().valueOf(),le.current.push({start:Se.current,end:xe.current}),je(he)},valueStyle:{fontSize:30,color:"#165DFF"},format:"ss",value:Date.now()+(Xt.exerciseUserInfo.screen_sec+1)*1e3}),(0,lt._V)(lt.CP.recordScreen25)),(0,lt._V)(lt.CP.recordScreen16))),onOk:()=>{(0,ft.RG)(" ",!0),He(),(0,Ct.Dj)(document.body),ne(),re.current.destroy(),Ne.current=!1}}))}),Ae=()=>Mt(void 0,null,function*(){rt.default.destroyAll(),(yield(0,St.VL)({categoryId:me.categoryId,commit_method:1}))&&Xe()}),Xe=(he=!1)=>Mt(void 0,null,function*(){var ye,Qt;if(document.removeEventListener((0,Ct.gH)(),ue,!1),(0,Ct.BU)(),rt.default.destroyAll(),ke.current=!0,he){const Wt=yield(0,St.Yu)(me.categoryId,{exercise_user_id:(ye=Xt.exerciseUserInfo)==null?void 0:ye.exercise_user_id});ve.confirm({icon:null,closable:!1,maskClosable:!1,okText:"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5",cancelText:"\u8FD4\u56DE",width:616,className:yt.forcedModalWrapper,centered:!0,content:E.createElement("div",{className:yt.forcedModalContent},E.createElement("img",{src:dt,alt:""}),E.createElement("div",{className:yt.forcedText},(0,lt._V)(lt.CP.recordScreen17)),E.createElement("div",{className:yt.screenNumText},(0,lt._V)(lt.CP.recordScreen18),(Qt=Xt.exerciseUserInfo)==null?void 0:Qt.screen_num,(0,lt._V)(lt.CP.recordScreen19)),E.createElement(kt.default,{dataSource:Wt==null?void 0:Wt.data,pagination:!1,rowKey:"time",bordered:!0,columns:[{title:(0,lt._V)(lt.CP.recordScreen20),align:"center",dataIndex:"time"},{title:(0,lt._V)(lt.CP.recordScreen21),align:"center",dataIndex:"time_long"},{title:(0,lt._V)(lt.CP.recordScreen22),align:"center",dataIndex:"count"}]})),onCancel:()=>{ne(),ae()},onOk:()=>{ct.history.push(`/classrooms/${me.coursesId}/exercisenotice/${me.categoryId}/users/${me.login}?isShowApply=true`)}})}else ve.info({content:E.createElement("div",{className:"tc font16"},(0,lt._V)(lt.CP.recordScreen23),E.createElement("br",null),(0,lt._V)(lt.CP.recordScreen24)),onOk:()=>{ae()}})}),Be=he=>{(0,Ct.vp)()&&document.getElementById("iframeShixuns").style.display=="none"&&!Ne.current&&(0,Ct.BU)()},Te=()=>Mt(void 0,null,function*(){var he;if((he=Xt.exerciseUserInfo)!=null&&he.screen_at){const Wt=yield(0,St.ck)(_t(At({},me),{reset:!0}));if((Wt==null?void 0:Wt.status)===-6)return}const ye=yield(0,St.oy)({id:me.categoryId});if(ye!=null&&ye.is_commit){Xe();return}return yield _e()}),ue=()=>Mt(void 0,null,function*(){var he;if((0,ft.RG)(" ",!0),(0,Ct.vp)()){if((he=Xt.exerciseUserInfo)!=null&&he.screen_at){var ye=yield(0,St.ck)(_t(At({},me),{reset:!0}));if((ye==null?void 0:ye.status)===-6)return}}else if(!Ne.current){var ye=yield(0,St.ck)(At({},me));if((ye==null?void 0:ye.status)===-6)return;const Wt=yield _e();se(Wt.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")}}),$t=()=>Mt(void 0,null,function*(){(0,St.ck)(At({},me));const he=yield _e();se(he.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")});return E.createElement("div",null,Kt)};var Ut=(0,ct.connect)(({exercise:Xt,globalSetting:Gt})=>({globalSetting:Gt,exercise:Xt}))(It)},23960:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{X:function(){return kt},y:function(){return rt}});var Ft=Rt(59301),ie=Rt(8591);const rt=Ct=>{(0,Ft.useEffect)(()=>{if(Ct){const St=vt=>{vt.key==="F12"&&(vt.preventDefault(),console.log("F12\u88AB\u7981\u7528"))},pt=vt=>{vt.preventDefault()};return document.addEventListener("keydown",St),document.addEventListener("contextmenu",pt),()=>{document.removeEventListener("keydown",St),document.removeEventListener("contextmenu",pt)}}},[Ct])},kt=()=>{const[Ct,St]=(0,Ft.useState)(!1),pt=vt=>{const{keyCode:yt,ctrlKey:xt,metaKey:dt,type:ft}=vt;(ft==="paste"||(yt===67||yt===86)&&(dt||xt))&&(ie.ZP.warning("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"),vt.preventDefault(),vt.stopPropagation())};return(0,Ft.useEffect)(()=>(Ct&&(window.addEventListener("keydown",pt,!0),window.addEventListener("paste",pt,!0)),()=>{window.removeEventListener("keydown",pt,!0),window.removeEventListener("paste",pt,!0)}),[Ct]),{setOpenDisableCopyAndPaste:St,disableCopyAndPaste:Ct}}},16406:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ye}});var Ft=Rt(59301),ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},rt=Rt(92310),kt=Rt.n(rt),Ct=Rt(71418);var St=function(Qt,Wt){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,te){Bt.__proto__=te}||function(Bt,te){for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&(Bt[ge]=te[ge])})(Qt,Wt)};function pt(Qt,Wt){function Bt(){this.constructor=Qt}St(Qt,Wt),Qt.prototype=Wt===null?Object.create(Wt):(Bt.prototype=Wt.prototype,new Bt)}function vt(Qt,Wt,Bt,te){return new(Bt||(Bt=Promise))(function(ge,Jt){function Ie(Ze){try{Je(te.next(Ze))}catch(nn){Jt(nn)}}function Ue(Ze){try{Je(te.throw(Ze))}catch(nn){Jt(nn)}}function Je(Ze){var nn;Ze.done?ge(Ze.value):(nn=Ze.value,nn instanceof Bt?nn:new Bt(function(fn){fn(nn)})).then(Ie,Ue)}Je((te=te.apply(Qt,Wt||[])).next())})}function yt(Qt,Wt){var Bt,te,ge,Jt,Ie={label:0,sent:function(){if(1&ge[0])throw ge[1];return ge[1]},trys:[],ops:[]};return Jt={next:Ue(0),throw:Ue(1),return:Ue(2)},typeof Symbol=="function"&&(Jt[Symbol.iterator]=function(){return this}),Jt;function Ue(Je){return function(Ze){return function(nn){if(Bt)throw new TypeError("Generator is already executing.");for(;Ie;)try{if(Bt=1,te&&(ge=2&nn[0]?te.return:nn[0]?te.throw||((ge=te.return)&&ge.call(te),0):te.next)&&!(ge=ge.call(te,nn[1])).done)return ge;switch(te=0,ge&&(nn=[2&nn[0],ge.value]),nn[0]){case 0:case 1:ge=nn;break;case 4:return Ie.label++,{value:nn[1],done:!1};case 5:Ie.label++,te=nn[1],nn=[0];continue;case 7:nn=Ie.ops.pop(),Ie.trys.pop();continue;default:if(ge=Ie.trys,!((ge=ge.length>0&&ge[ge.length-1])||nn[0]!==6&&nn[0]!==2)){Ie=0;continue}if(nn[0]===3&&(!ge||nn[1]>ge[0]&&nn[1]<ge[3])){Ie.label=nn[1];break}if(nn[0]===6&&Ie.label<ge[1]){Ie.label=ge[1],ge=nn;break}if(ge&&Ie.label<ge[2]){Ie.label=ge[2],Ie.ops.push(nn);break}ge[2]&&Ie.ops.pop(),Ie.trys.pop();continue}nn=Wt.call(Qt,Ie)}catch(fn){nn=[6,fn],te=0}finally{Bt=ge=0}if(5&nn[0])throw nn[1];return{value:nn[0]?nn[1]:void 0,done:!0}}([Je,Ze])}}}function xt(){for(var Qt=0,Wt=0,Bt=arguments.length;Wt<Bt;Wt++)Qt+=arguments[Wt].length;var te=Array(Qt),ge=0;for(Wt=0;Wt<Bt;Wt++)for(var Jt=arguments[Wt],Ie=0,Ue=Jt.length;Ie<Ue;Ie++,ge++)te[ge]=Jt[Ie];return te}var dt=function(){function Qt(){}return Qt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Qt.setAttributes=function(Wt,Bt){for(var te=0,ge=Bt;te<ge.length;te++){var Jt=ge[te],Ie=Jt[0],Ue=Jt[1];Wt.setAttribute(Ie,Ue)}},Qt.createRect=function(Wt,Bt,te){var ge=document.createElementNS("http://www.w3.org/2000/svg","rect");return ge.setAttribute("width",Wt.toString()),ge.setAttribute("height",Bt.toString()),te&&Qt.setAttributes(ge,te),ge},Qt.createLine=function(Wt,Bt,te,ge,Jt){var Ie=document.createElementNS("http://www.w3.org/2000/svg","line");return Ie.setAttribute("x1",Wt.toString()),Ie.setAttribute("y1",Bt.toString()),Ie.setAttribute("x2",te.toString()),Ie.setAttribute("y2",ge.toString()),Jt&&Qt.setAttributes(Ie,Jt),Ie},Qt.createPolygon=function(Wt,Bt){var te=document.createElementNS("http://www.w3.org/2000/svg","polygon");return te.setAttribute("points",Wt),Bt&&Qt.setAttributes(te,Bt),te},Qt.createCircle=function(Wt,Bt){var te=document.createElementNS("http://www.w3.org/2000/svg","circle");return te.setAttribute("cx",(Wt/2).toString()),te.setAttribute("cy",(Wt/2).toString()),te.setAttribute("r",Wt.toString()),Bt&&Qt.setAttributes(te,Bt),te},Qt.createEllipse=function(Wt,Bt,te){var ge=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ge.setAttribute("cx",(Wt/2).toString()),ge.setAttribute("cy",(Bt/2).toString()),ge.setAttribute("rx",(Wt/2).toString()),ge.setAttribute("ry",(Bt/2).toString()),te&&Qt.setAttributes(ge,te),ge},Qt.createGroup=function(Wt){var Bt=document.createElementNS("http://www.w3.org/2000/svg","g");return Wt&&Qt.setAttributes(Bt,Wt),Bt},Qt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Qt.createMarker=function(Wt,Bt,te,ge,Jt,Ie,Ue){var Je=document.createElementNS("http://www.w3.org/2000/svg","marker");return Qt.setAttributes(Je,[["id",Wt],["orient",Bt],["markerWidth",te.toString()],["markerHeight",ge.toString()],["refX",Jt.toString()],["refY",Ie.toString()]]),Je.appendChild(Ue),Je},Qt.createText=function(Wt){var Bt=document.createElementNS("http://www.w3.org/2000/svg","text");return Bt.setAttribute("x","0"),Bt.setAttribute("y","0"),Wt&&Qt.setAttributes(Bt,Wt),Bt},Qt.createTSpan=function(Wt,Bt){var te=document.createElementNS("http://www.w3.org/2000/svg","tspan");return te.textContent=Wt,Bt&&Qt.setAttributes(te,Bt),te},Qt.createImage=function(Wt){var Bt=document.createElementNS("http://www.w3.org/2000/svg","image");return Wt&&Qt.setAttributes(Bt,Wt),Bt},Qt.createPoint=function(Wt,Bt){var te=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return te.x=Wt,te.y=Bt,te},Qt.createPath=function(Wt,Bt){var te=document.createElementNS("http://www.w3.org/2000/svg","path");return te.setAttribute("d",Wt),Bt&&Qt.setAttributes(te,Bt),te},Qt}(),ft=function(){function Qt(){}return Qt.addKey=function(Wt){Qt.key=Wt},Object.defineProperty(Qt,"isLicensed",{get:function(){return!!Qt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Qt.key)},enumerable:!1,configurable:!0}),Qt}(),ct=function(){function Qt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Qt.prototype.rasterize=function(Wt,Bt,te){var ge=this;return new Promise(function(Jt){var Ie=te!==void 0?te:document.createElement("canvas");Wt===null&&(ge.markersOnly=!0,ge.naturalSize=!1);var Ue=document.createElementNS("http://www.w3.org/2000/svg","svg");Ue.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ue.setAttribute("width",Bt.width.baseVal.valueAsString),Ue.setAttribute("height",Bt.height.baseVal.valueAsString),Ue.setAttribute("viewBox","0 0 "+Bt.viewBox.baseVal.width.toString()+" "+Bt.viewBox.baseVal.height.toString()),Ue.innerHTML=Bt.innerHTML,ge.naturalSize===!0?(Ue.width.baseVal.value=Wt.naturalWidth,Ue.height.baseVal.value=Wt.naturalHeight):ge.width!==void 0&&ge.height!==void 0&&(Ue.width.baseVal.value=ge.width,Ue.height.baseVal.value=ge.height),Ie.width=Ue.width.baseVal.value,Ie.height=Ue.height.baseVal.value;var Je=Ue.outerHTML,Ze=Ie.getContext("2d");ge.markersOnly!==!0&&Ze.drawImage(Wt,0,0,Ie.width,Ie.height);var nn=window.URL,fn=new Image(Ie.width,Ie.height);fn.setAttribute("crossOrigin","anonymous");var An=new Blob([Je],{type:"image/svg+xml"}),En=nn.createObjectURL(An);fn.onload=function(){Ze.drawImage(fn,0,0),nn.revokeObjectURL(En);var Dn=Ie.toDataURL(ge.imageType,ge.imageQuality);Jt(Dn)},fn.src=En})},Qt}(),lt=function(){},E=function(){function Qt(Wt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Wt+"_"}return Object.defineProperty(Qt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.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(Qt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Qt.prototype.addClass=function(Wt){return this.styleSheet===void 0&&this.addStyleSheet(),Wt.name=""+this.classNamePrefix+Wt.localName,this.classes.push(Wt),this.styleSheet.sheet.insertRule("."+Wt.name+" {"+Wt.style+"}",this.styleSheet.sheet.cssRules.length),Wt},Qt.prototype.addRule=function(Wt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Wt),this.styleSheet.sheet.insertRule(Wt.selector+" {"+Wt.style+"}",this.styleSheet.sheet.cssRules.length)},Qt.prototype.addStyleSheet=function(){var Wt;this.styleSheet=document.createElement("style"),((Wt=this.styleSheetRoot)!==null&&Wt!==void 0?Wt:document.head).appendChild(this.styleSheet),this.addRule(new z("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new z("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new z("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ot("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ot("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Qt.prototype.removeStyleSheet=function(){var Wt;this.styleSheet&&(((Wt=this.styleSheetRoot)!==null&&Wt!==void 0?Wt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Qt}(),z=function(Qt,Wt){this.selector=Qt,this.style=Wt},ot=function(Qt,Wt){this.localName=Qt,this.style=Wt},it=function(){function Qt(Wt,Bt,te,ge,Jt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Wt,this.displayMode=Bt,this.markerItems=te,this.uiStyleSettings=ge,this.styles=Jt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Qt.prototype.show=function(Wt){var Bt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Wt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var te=document.createElement("div");te.className=this.toolbarBlockStyleClass.name,te.style.whiteSpace="nowrap",this.uiContainer.appendChild(te),this.addActionButton(te,'<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(te,'<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(te,'<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(te,'<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(te,'<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(te,'<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(te,'<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(te,'<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(Jt){var Ie=document.createElement("div");Ie.className=""+Bt.toolbarButtonStyleClass.name,Ie.setAttribute("data-type-name",Jt.typeName),Ie.innerHTML=Jt.icon,Ie.addEventListener("click",function(){Bt.markerToolbarButtonClicked(Ie,Jt)}),Bt.buttons.push(Ie),Bt.markerButtons.push(Ie)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",ge.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ge),this.addActionButton(ge,'<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(ge,'<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()},Qt.prototype.addButtonClickListener=function(Wt){this.buttonClickListeners.push(Wt)},Qt.prototype.removeButtonClickListener=function(Wt){this.buttonClickListeners.indexOf(Wt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Wt),1)},Qt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Qt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Wt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Bt=0;Bt<this.markerButtons.length;Bt++)Bt<Wt||Bt===Wt&&this.markerButtons.length-1===Wt?this.markerButtonBlock.appendChild(this.markerButtons[Bt]):(Bt===Wt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Bt]))}},Qt.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")},Qt.prototype.resetButtonStyles=function(){var Wt=this;this.buttons.forEach(function(Bt){Bt.className=Bt.className.replace(Wt.uiStyleSettings.toolbarButtonStyleColorsClassName?Wt.uiStyleSettings.toolbarButtonStyleColorsClassName:Wt.toolbarButtonStyleColorsClass.name,"").trim(),Bt.className=Bt.className.replace(Wt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Wt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Wt.toolbarActiveButtonStyleColorsClass.name,"").trim(),Bt.className+=" "+(Wt.uiStyleSettings.toolbarButtonStyleColorsClassName?Wt.uiStyleSettings.toolbarButtonStyleColorsClassName:Wt.toolbarButtonStyleColorsClass.name)})},Qt.prototype.addActionButton=function(Wt,Bt,te){var ge=this,Jt=document.createElement("div");switch(Jt.className=""+this.toolbarButtonStyleClass.name,Jt.innerHTML=Bt,Jt.setAttribute("data-action",te),Jt.addEventListener("click",function(){ge.actionToolbarButtonClicked(Jt,te)}),te){case"select":Jt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Jt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Jt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Jt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Jt.style.fill=this.uiStyleSettings.closeButtonColor}Wt.appendChild(Jt),this.buttons.push(Jt)},Qt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ot("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 ot("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ot("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ot("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 ot("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Wt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ot("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Wt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Wt)+`px;
padding: `+Wt+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ot("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ot("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new z("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new z("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Qt.prototype.markerToolbarButtonClicked=function(Wt,Bt){this.setActiveButton(Wt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(te){return te("marker",Bt)}),this.markerButtonOverflowBlock.style.display="none"},Qt.prototype.actionToolbarButtonClicked=function(Wt,Bt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(te){return te("action",Bt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Qt.prototype.setActiveButton=function(Wt){this.resetButtonStyles(),Wt.className=Wt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Wt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Qt.prototype.setActiveMarkerButton=function(Wt){var Bt=this.markerButtons.find(function(te){return te.getAttribute("data-type-name")===Wt});Bt&&this.setActiveButton(Bt)},Qt.prototype.setCurrentMarker=function(Wt){var Bt=this;this.currentMarker=Wt,this.buttons.filter(function(te){return/delete|notes/.test(te.getAttribute("data-action"))}).forEach(function(te){Bt.currentMarker===void 0?(te.style.fillOpacity="0.4",te.style.pointerEvents="none"):(te.style.fillOpacity="1",te.style.pointerEvents="all")})},Qt}(),at=function(){function Qt(Wt,Bt,te,ge){this.panels=[],this.panelButtons=[],this.markerjsContainer=Wt,this.displayMode=Bt,this.uiStyleSettings=te,this.styles=ge,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Qt.prototype.addStyles=function(){var Wt;this.toolboxStyleClass=this.styles.addClass(new ot("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 ot("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Bt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ot("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ot("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ot("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 ot("toolbox-panel-row_colors",`
background-color: `+((Wt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Wt!==void 0?Wt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ot("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Bt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Bt)+`px;
padding: `+Bt+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ot("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ot("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new z("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new z("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Qt.prototype.show=function(Wt){var Bt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Wt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Qt.prototype.setPanelButtons=function(Wt){var Bt,te,ge=this;this.panels=Wt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((te=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Jt){var Ie;Jt.uiStyleSettings=ge.uiStyleSettings;var Ue=document.createElement("div");Ue.className=ge.toolboxButtonStyleClass.name+" "+((Ie=ge.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:ge.toolboxButtonStyleColorsClass.name),Ue.innerHTML=Jt.icon,Ue.title=Jt.title,Ue.addEventListener("click",function(){ge.panelButtonClick(Jt)}),ge.panelButtons.push(Ue),ge.buttonRow.appendChild(Ue)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Qt.prototype.panelButtonClick=function(Wt){var Bt=this,te=-1;if(Wt!==this.activePanel){te=this.panels.indexOf(Wt),this.panelRow.innerHTML="";var ge=Wt.getUi();ge.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ge),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=Wt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Bt.displayMode==="inline"?Bt.panelRow.style.display="none":Bt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Jt,Ie){var Ue,Je;Jt.className=Bt.toolboxButtonStyleClass.name+" "+(Ie===te?""+((Ue=Bt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:Bt.toolboxActiveButtonStyleColorsClass.name):""+((Je=Bt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Je!==void 0?Je:Bt.toolboxButtonStyleColorsClass.name))})},Qt}(),ut=function(Qt,Wt){this.title=Qt,this.icon=Wt},wt=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Ie.colors=[],Ie.addTransparent=!1,Ie.colorBoxes=[],Ie.colors=te,Ie.currentColor=ge,Ie.setCurrentColor=Ie.setCurrentColor.bind(Ie),Ie.getColorBox=Ie.getColorBox.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.whiteSpace="nowrap",this.colors.forEach(function(ge){var Jt=Bt.getColorBox(ge);te.appendChild(Jt),Bt.colorBoxes.push(Jt)}),te},Wt.prototype.getColorBox=function(Bt){var te=this,ge=this.uiStyleSettings.toolbarHeight/4,Jt=this.uiStyleSettings.toolbarHeight-ge,Ie=document.createElement("div");Ie.style.display="inline-block",Ie.style.boxSizing="content-box",Ie.style.width=Jt-2+"px",Ie.style.height=Jt-2+"px",Ie.style.padding="1px",Ie.style.marginRight="2px",Ie.style.marginBottom="2px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderRadius=(Jt+2)/2+"px",Ie.style.borderColor=Bt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){te.setCurrentColor(Bt,Ie)});var Ue=document.createElement("div");return Ue.style.display="inline-block",Ue.style.width=Jt-2+"px",Ue.style.height=Jt-2+"px",Ue.style.backgroundColor=Bt,Ue.style.borderRadius=Jt/2+"px",Bt==="transparent"&&(Ue.style.fill=this.uiStyleSettings.toolboxAccentColor,Ue.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),Ie.appendChild(Ue),Ie},Wt.prototype.setCurrentColor=function(Bt,te){var ge=this;this.currentColor=Bt,this.colorBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Bt)},Wt}(ut),Et=function(){function Qt(Wt,Bt,te){this._state="new",this._isSelected=!1,this._container=Wt,this._overlayContainer=Bt,this.globalSettings=te,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Qt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Qt.prototype.ownsTarget=function(Wt){return!1},Object.defineProperty(Qt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Qt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Qt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Qt.prototype.pointerDown=function(Wt,Bt){},Qt.prototype.dblClick=function(Wt,Bt){},Qt.prototype.manipulate=function(Wt){},Qt.prototype.pointerUp=function(Wt){this.stateChanged()},Qt.prototype.dispose=function(){},Qt.prototype.addMarkerVisualToContainer=function(Wt){this.container.childNodes.length>0?this.container.insertBefore(Wt,this.container.childNodes[0]):this.container.appendChild(Wt)},Qt.prototype.getState=function(){return{typeName:Qt.typeName,state:this.state,notes:this.notes}},Qt.prototype.restoreState=function(Wt){this._state=Wt.state,this.notes=Wt.notes},Qt.prototype.scale=function(Wt,Bt){},Qt.prototype.colorChanged=function(Wt){this.onColorChanged&&this.onColorChanged(Wt),this.stateChanged()},Qt.prototype.fillColorChanged=function(Wt){this.onFillColorChanged&&this.onFillColorChanged(Wt),this.stateChanged()},Qt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Wt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Wt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Wt)&&this.onStateChanged(this)}},Qt.typeName="MarkerBase",Qt}(),At=function(){function Qt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Qt.prototype.findGripByVisual=function(Wt){return this.topLeft.ownsTarget(Wt)?this.topLeft:this.topCenter.ownsTarget(Wt)?this.topCenter:this.topRight.ownsTarget(Wt)?this.topRight:this.centerLeft.ownsTarget(Wt)?this.centerLeft:this.centerRight.ownsTarget(Wt)?this.centerRight:this.bottomLeft.ownsTarget(Wt)?this.bottomLeft:this.bottomCenter.ownsTarget(Wt)?this.bottomCenter:this.bottomRight.ownsTarget(Wt)?this.bottomRight:void 0},Qt}(),_t=function(){function Qt(){this.GRIP_SIZE=10,this.visual=dt.createGroup(),this.visual.appendChild(dt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(dt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Qt.prototype.ownsTarget=function(Wt){return Wt===this.visual||Wt===this.visual.childNodes[0]||Wt===this.visual.childNodes[1]},Qt}(),Mt=function(){function Qt(){}return Qt.toITransformMatrix=function(Wt){return{a:Wt.a,b:Wt.b,c:Wt.c,d:Wt.d,e:Wt.e,f:Wt.f}},Qt.toSVGMatrix=function(Wt,Bt){return Wt.a=Bt.a,Wt.b=Bt.b,Wt.c=Bt.c,Wt.d=Bt.d,Wt.e=Bt.e,Wt.f=Bt.f,Wt},Qt}(),jt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.left=0,Jt.top=0,Jt.width=0,Jt.height=0,Jt.defaultSize={x:50,y:20},Jt.offsetX=0,Jt.offsetY=0,Jt.rotationAngle=0,Jt.CB_DISTANCE=10,Jt._suppressMarkerCreateEvent=!1,Jt.container.transform.baseVal.appendItem(dt.createTransform()),Jt.setupControlBox(),Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Wt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Wt.prototype,"visual",{get:function(){return this._visual},set:function(Bt){this._visual=Bt;var te=dt.createTransform();this._visual.transform.baseVal.appendItem(te)},enumerable:!1,configurable:!0}),Wt.prototype.ownsTarget=function(Bt){return!!Qt.prototype.ownsTarget.call(this,Bt)||!!(this.controlGrips.findGripByVisual(Bt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Bt))},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.left=Bt.x,this.top=Bt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ge=this.unrotatePoint(Bt);if(this.manipulationStartX=ge.x,this.manipulationStartY=ge.y,this.offsetX=ge.x-this.left,this.offsetY=ge.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(te),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te)){this.activeGrip=this.rotatorGrip;var Jt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Jt.x-this.width/2,this.top=Jt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ie=this.container.transform.baseVal.getItem(0);Ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ie,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Wt.prototype.pointerUp=function(Bt){var te=this.state;Qt.prototype.pointerUp.call(this,Bt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Bt),this._state="select",te==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Wt.prototype.moveVisual=function(Bt){this.visual.style.transform="translate("+Bt.x+"px, "+Bt.y+"px)"},Wt.prototype.manipulate=function(Bt){var te=this.unrotatePoint(Bt);this.state==="creating"?this.resize(Bt):this.state==="move"?(this.left=this.manipulationStartLeft+(te.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(te.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(te):this.state==="rotate"&&this.rotate(Bt)},Wt.prototype.resize=function(Bt){var te=this.manipulationStartLeft,ge=this.manipulationStartWidth,Jt=this.manipulationStartTop,Ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:te=this.manipulationStartLeft+Bt.x-this.manipulationStartX,ge=this.manipulationStartWidth+this.manipulationStartLeft-te;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ge=this.manipulationStartWidth+Bt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Jt=this.manipulationStartTop+Bt.y-this.manipulationStartY,Ie=this.manipulationStartHeight+this.manipulationStartTop-Jt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ie=this.manipulationStartHeight+Bt.y-this.manipulationStartY}ge>=0?(this.left=te,this.width=ge):(this.left=te+ge,this.width=-ge),Ie>=0?(this.top=Jt,this.height=Ie):(this.top=Jt+Ie,this.height=-Ie),this.setSize()},Wt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Wt.prototype.rotate=function(Bt){if(Math.abs(Bt.x-this.centerX)>.1){var te=Math.sign(Bt.x-this.centerX);this.rotationAngle=180*Math.atan((Bt.y-this.centerY)/(Bt.x-this.centerX))/Math.PI+90*te,this.applyRotation()}},Wt.prototype.applyRotation=function(){var Bt=this.container.transform.baseVal.getItem(0);Bt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Bt,0)},Wt.prototype.rotatePoint=function(Bt){if(this.rotationAngle===0)return Bt;var te=this.container.getCTM(),ge=dt.createPoint(Bt.x,Bt.y);return{x:(ge=ge.matrixTransform(te)).x,y:ge.y}},Wt.prototype.unrotatePoint=function(Bt){if(this.rotationAngle===0)return Bt;var te=this.container.getCTM();te=te.inverse();var ge=dt.createPoint(Bt.x,Bt.y);return{x:(ge=ge.matrixTransform(te)).x,y:ge.y}},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Wt.prototype.deselect=function(){Qt.prototype.deselect.call(this),this.controlBox.style.display="none"},Wt.prototype.setupControlBox=function(){this.controlBox=dt.createGroup();var Bt=dt.createTransform();Bt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Bt),this.container.appendChild(this.controlBox),this.controlRect=dt.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=dt.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 At,this.addControlGrips(),this.controlBox.style.display="none"},Wt.prototype.adjustControlBox=function(){var Bt=this.controlBox.transform.baseVal.getItem(0);Bt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Bt,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()},Wt.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()},Wt.prototype.createGrip=function(){var Bt=new _t;return Bt.visual.transform.baseVal.appendItem(dt.createTransform()),this.controlBox.appendChild(Bt.visual),Bt},Wt.prototype.positionGrips=function(){var Bt=this.controlGrips.topLeft.GRIP_SIZE,te=-Bt/2,ge=te,Jt=(this.width+this.CB_DISTANCE)/2-Bt/2,Ie=(this.height+this.CB_DISTANCE)/2-Bt/2,Ue=this.height+this.CB_DISTANCE-Bt/2,Je=this.width+this.CB_DISTANCE-Bt/2;this.positionGrip(this.controlGrips.topLeft.visual,te,ge),this.positionGrip(this.controlGrips.topCenter.visual,Jt,ge),this.positionGrip(this.controlGrips.topRight.visual,Je,ge),this.positionGrip(this.controlGrips.centerLeft.visual,te,Ie),this.positionGrip(this.controlGrips.centerRight.visual,Je,Ie),this.positionGrip(this.controlGrips.bottomLeft.visual,te,Ue),this.positionGrip(this.controlGrips.bottomCenter.visual,Jt,Ue),this.positionGrip(this.controlGrips.bottomRight.visual,Je,Ue),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Jt,ge-3*this.CB_DISTANCE)},Wt.prototype.positionGrip=function(Bt,te,ge){var Jt=Bt.transform.baseVal.getItem(0);Jt.setTranslate(te,ge),Bt.transform.baseVal.replaceItem(Jt,0)},Wt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Wt.prototype.showControlBox=function(){this.controlBox.style.display=""},Wt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.left=te.left,this.top=te.top,this.width=te.width,this.height=te.height,this.rotationAngle=te.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,te.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,te.containerTransformMatrix))},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te);var ge=this.rotatePoint({x:this.left,y:this.top}),Jt=this.unrotatePoint({x:ge.x*Bt,y:ge.y*te});this.left=Jt.x,this.top=Jt.y,this.width=this.width*Bt,this.height=this.height*te,this.adjustControlBox()},Wt}(Et),Lt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.fillColor="transparent",Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.opacity=1,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setFillColor=Jt.setFillColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.createVisual=Jt.createVisual.bind(Jt),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual)},Wt.prototype.createVisual=function(){this.visual=dt.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)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.setSize()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Wt.prototype.pointerUp=function(Bt){Qt.prototype.pointerUp.call(this,Bt),this.setSize()},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Bt),this.stateChanged()},Wt.prototype.setFillColor=function(Bt){this.fillColor=Bt,this.visual&&dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Wt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){var te=Bt;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.opacity=te.opacity,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize()},Wt.title="Rectangle marker",Wt}(jt),It=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ie.widths=[],Ie.widthBoxes=[],Ie.widths=te,Ie.currentWidth=ge,Ie.setCurrentWidth=Ie.setCurrentWidth.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.widths.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.flexGrow="2",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.borderColor=ge===Bt.currentWidth?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentWidth(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.innerText=ge.toString(),Ie.style.marginRight="5px",Jt.appendChild(Ie);var Ue=document.createElement("div");Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.display="flex",Ue.style.alignItems="center";var Je=document.createElement("hr");Je.style.minWidth="20px",Je.style.border="0px",Je.style.borderTop=ge+"px solid "+Bt.uiStyleSettings.toolboxColor,Je.style.flexGrow="2",Ue.appendChild(Je),Jt.appendChild(Ue),Bt.widthBoxes.push(Jt)}),te},Wt.prototype.setCurrentWidth=function(Bt,te){var ge=this;this.currentWidth=Bt,this.widthBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Wt}(ut),Ut=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Ie.styles=[],Ie.styleBoxes=[],Ie.styles=te,Ie.currentStyle=ge,Ie.setCurrentStyle=Ie.setCurrentStyle.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.styles.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.overflow="hidden",Jt.style.maxWidth=100/Bt.styles.length-5+"%",Jt.style.borderColor=ge===Bt.currentStyle?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentStyle(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.overflow="hidden";var Ue=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Bt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ge!==""?'stroke-dasharray="'+ge+'"':"")+` />
</svg>`;Ie.innerHTML=Ue,Jt.appendChild(Ie),Bt.styleBoxes.push(Jt)}),te},Wt.prototype.setCurrentStyle=function(Bt,te){var ge=this;this.currentStyle=Bt,this.styleBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Wt}(ut),Xt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",ge.defaultColorSet,ge.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="FrameMarker",Wt.title="Frame marker",Wt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Wt}(Lt),Gt=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"},Yt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.x1=0,Jt.y1=0,Jt.x2=0,Jt.y2=0,Jt.defaultLength=50,Jt.manipulationStartX=0,Jt.manipulationStartY=0,Jt.manipulationStartX1=0,Jt.manipulationStartY1=0,Jt.manipulationStartX2=0,Jt.manipulationStartY2=0,Jt.setupControlBox(),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!!Qt.prototype.ownsTarget.call(this,Bt)||!(!this.grip1.ownsTarget(Bt)&&!this.grip2.ownsTarget(Bt))},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.manipulationStartX=Bt.x,this.manipulationStartY=Bt.y,this.state==="new"&&(this.x1=Bt.x,this.y1=Bt.y,this.x2=Bt.x,this.y2=Bt.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(te)?this.activeGrip=this.grip1:this.grip2.ownsTarget(te)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Wt.prototype.pointerUp=function(Bt){var te=this.state;Qt.prototype.pointerUp.call(this,Bt),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(Bt),this._state="select",te==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Wt.prototype.adjustVisual=function(){},Wt.prototype.manipulate=function(Bt){this.state==="creating"?this.resize(Bt):this.state==="move"?(this.x1=this.manipulationStartX1+Bt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Bt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Bt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Bt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Bt)},Wt.prototype.resize=function(Bt){switch(this.activeGrip){case this.grip1:this.x1=Bt.x,this.y1=Bt.y;break;case this.grip2:case void 0:this.x2=Bt.x,this.y2=Bt.y}this.adjustVisual(),this.adjustControlBox()},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Wt.prototype.deselect=function(){Qt.prototype.deselect.call(this),this.controlBox.style.display="none"},Wt.prototype.setupControlBox=function(){this.controlBox=dt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Wt.prototype.adjustControlBox=function(){this.positionGrips()},Wt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Wt.prototype.createGrip=function(){var Bt=new _t;return Bt.visual.transform.baseVal.appendItem(dt.createTransform()),this.controlBox.appendChild(Bt.visual),Bt},Wt.prototype.positionGrips=function(){var Bt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Bt/2,this.y1-Bt/2),this.positionGrip(this.grip2.visual,this.x2-Bt/2,this.y2-Bt/2)},Wt.prototype.positionGrip=function(Bt,te,ge){var Jt=Bt.transform.baseVal.getItem(0);Jt.setTranslate(te,ge),Bt.transform.baseVal.replaceItem(Jt,0)},Wt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.x1=te.x1,this.y1=te.y1,this.x2=te.x2,this.y2=te.y2},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.x1=this.x1*Bt,this.y1=this.y1*te,this.x2=this.x2*Bt,this.y2=this.y2*te,this.adjustVisual(),this.adjustControlBox()},Wt}(Et),Ht=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",ge.defaultColorSet,ge.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.selectorLine&&Bt!==this.visibleLine)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.selectorLine=dt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=dt.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)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Wt.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()),dt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),dt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),dt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.adjustVisual(),this.colorChanged(Bt)},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.adjustVisual()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.createVisual(),this.adjustVisual()},Wt.typeName="LineMarker",Wt.title="Line marker",Wt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Wt}(Yt),ne=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Ie.fonts=[],Ie.fontBoxes=[],Ie.fonts=te,Ie.currentFont=ge,Ie.setCurrentFont=Ie.setCurrentFont.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.flexGrow="2",this.fonts.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="inline-block",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.overflow="hidden",Jt.style.maxWidth=100/Bt.fonts.length-5+"%",Jt.style.borderColor=ge===Bt.currentFont?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentFont(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.fontFamily=ge,Ie.style.overflow="hidden";var Ue=document.createElement("div");Ue.style.whiteSpace="nowrap",Ue.style.overflow="hidden",Ue.style.textOverflow="ellipsis",Ue.innerHTML="The quick brown fox jumps over the lazy dog",Ie.appendChild(Ue),Jt.appendChild(Ie),Bt.fontBoxes.push(Jt)}),te},Wt.prototype.setCurrentFont=function(Bt,te){var ge=this;this.currentFont=Bt,this.fontBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Wt}(ut),ae=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.color="transparent",Jt.padding=5,Jt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Jt.text=Jt.DEFAULT_TEXT,Jt.isMoved=!1,Jt.color=ge.defaultColor,Jt.fontFamily=ge.defaultFontFamily,Jt.defaultSize={x:100,y:30},Jt.setColor=Jt.setColor.bind(Jt),Jt.setFont=Jt.setFont.bind(Jt),Jt.renderText=Jt.renderText.bind(Jt),Jt.sizeText=Jt.sizeText.bind(Jt),Jt.textEditDivClicked=Jt.textEditDivClicked.bind(Jt),Jt.showTextEditor=Jt.showTextEditor.bind(Jt),Jt.setSize=Jt.setSize.bind(Jt),Jt.positionTextEditor=Jt.positionTextEditor.bind(Jt),Jt.colorPanel=new wt("Color",ge.defaultColorSet,ge.defaultColor),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.fontFamilyPanel=new ne("Font",ge.defaultFontFamilies,ge.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){if(Qt.prototype.ownsTarget.call(this,Bt)||Bt===this.visual||Bt===this.textElement||Bt===this.bgRectangle)return!0;var te=!1;return this.textElement.childNodes.forEach(function(ge){ge===Bt&&(te=!0)}),te},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.bgRectangle=dt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=dt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(dt.createTransform()),this.textElement.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.isMoved=!1,this.pointerDownPoint=Bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.renderText=function(){var Bt=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(te){Bt.textElement.appendChild(dt.createTSpan(te.trim()===""?" ":te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Wt.prototype.getTextScale=function(){var Bt=this.textElement.getBBox(),te=1;if(Bt.width>0&&Bt.height>0){var ge=(1*this.width-this.width*this.padding*2/100)/Bt.width,Jt=(1*this.height-this.height*this.padding*2/100)/Bt.height;te=Math.min(ge,Jt)}return te},Wt.prototype.getTextPosition=function(Bt){var te=this.textElement.getBBox(),ge=0,Jt=0;return te.width>0&&te.height>0&&(ge=(this.width-te.width*Bt)/2,Jt=this.height/2-te.height*Bt/2),{x:ge,y:Jt}},Wt.prototype.sizeText=function(){var Bt=this.textElement.getBBox(),te=this.getTextScale(),ge=this.getTextPosition(te);ge.y-=Bt.y*te,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ge.x+"px, "+ge.y+"px) scale("+te+", "+te+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ge.x,ge.y),this.textElement.transform.baseVal.getItem(1).setScale(te,te))},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Bt.x-this.pointerDownPoint.x)>5||Math.abs(Bt.y-this.pointerDownPoint.y)>5)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.isMoved=!0,this.setSize(),this.sizeText()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Wt.prototype.pointerUp=function(Bt){var te=this.state;te==="creating"&&(this._suppressMarkerCreateEvent=!0),Qt.prototype.pointerUp.call(this,Bt),this.setSize(),(te==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Wt.prototype.showTextEditor=function(){var Bt=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(te){te.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var te=Number.parseFloat(Bt.textEditor.style.fontSize);Bt.textEditor.clientWidth>=Number.parseInt(Bt.textEditor.style.maxWidth)&&te>.9;)te-=.1,Bt.textEditor.style.fontSize=Math.max(te,.9)+"em"}),this.textEditor.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(te){if(te.clipboardData){var ge=te.clipboardData.getData("text"),Jt=window.getSelection();if(!Jt.rangeCount)return!1;Jt.deleteFromDocument(),Jt.getRangeAt(0).insertNode(document.createTextNode(ge)),te.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Bt.textEditDivClicked(Bt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Wt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Bt=this.getTextScale(),te=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ge=this.textElement.getBBox(),Jt={x:ge.width*Bt,y:ge.height*Bt};te.x-=Jt.x/2,te.y-=Jt.y/2,this.textEditor.style.top=te.y+"px",this.textEditor.style.left=te.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-te.x+"px",this.textEditor.style.fontSize=Math.max(16*Bt,12)+"px",this.textElement.style.display="none"}},Wt.prototype.textEditDivClicked=function(Bt){this.text=Bt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Wt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Qt.prototype.deselect.call(this)},Wt.prototype.dblClick=function(Bt,te){Qt.prototype.dblClick.call(this,Bt,te),this.showTextEditor()},Wt.prototype.setColor=function(Bt){this.textElement&&dt.setAttributes(this.textElement,[["fill",Bt]]),this.color=Bt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Bt)},Wt.prototype.setFont=function(Bt){this.textElement&&dt.setAttributes(this.textElement,[["font-family",Bt]]),this.fontFamily=Bt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Wt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Wt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.color=te.color,this.fontFamily=te.fontFamily,this.padding=te.padding,this.text=te.text,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize(),this.sizeText(),this.positionTextEditor()},Wt.typeName="TextMarker",Wt.title="Text marker",Wt.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>',Wt}(jt),ve=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.color="transparent",Jt.lineWidth=3,Jt.drawing=!1,Jt.pixelRatio=1,Jt.color=ge.defaultColor,Jt.lineWidth=ge.defaultStrokeWidth,Jt.pixelRatio=ge.freehandPixelRatio,Jt.setColor=Jt.setColor.bind(Jt),Jt.addCanvas=Jt.addCanvas.bind(Jt),Jt.finishCreation=Jt.finishCreation.bind(Jt),Jt.setLineWidth=Jt.setLineWidth.bind(Jt),Jt.colorPanel=new wt("Color",ge.defaultColorSet,ge.defaultColor),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.lineWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.lineWidthPanel.onWidthChanged=Jt.setLineWidth,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.drawingImage)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.drawingImage=dt.createImage(),this.visual.appendChild(this.drawingImage);var Bt=dt.createTransform();this.visual.transform.baseVal.appendItem(Bt),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){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(Bt.x,Bt.y),this.drawing=!0):Qt.prototype.pointerDown.call(this,Bt,te)},Wt.prototype.manipulate=function(Bt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Bt.x,Bt.y),this.canvasContext.stroke()):Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Wt.prototype.pointerUp=function(Bt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Qt.prototype.pointerUp.call(this,Bt)},Wt.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)},Wt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Qt.prototype.select.call(this)},Wt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Qt.prototype.deselect.call(this)},Wt.prototype.finishCreation=function(){for(var Bt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),te=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ge=te[0],Jt=te[1],Ie=te[2],Ue=te[3],Je=!1,Ze=0;Ze<this.canvasElement.height;Ze++)for(var nn=0;nn<this.canvasElement.width;nn++)Bt.data[Ze*this.canvasElement.width*4+4*nn+3]>0&&(Je=!0,Ze<Jt&&(Jt=Ze),nn<ge&&(ge=nn),Ze>Ue&&(Ue=Ze),nn>Ie&&(Ie=nn));if(Je){this.left=ge/this.pixelRatio,this.top=Jt/this.pixelRatio,this.width=(Ie-ge)/this.pixelRatio,this.height=(Ue-Jt)/this.pixelRatio;var fn=document.createElement("canvas");fn.width=Ie-ge,fn.height=Ue-Jt,fn.getContext("2d").putImageData(this.canvasContext.getImageData(ge,Jt,Ie-ge,Ue-Jt),0,0),this.drawingImgUrl=fn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Wt.prototype.setDrawingImage=function(){dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Wt.prototype.setColor=function(Bt){this.color=Bt,this.colorChanged(Bt)},Wt.prototype.setLineWidth=function(Bt){this.lineWidth=Bt},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({drawingImgUrl:this.drawingImgUrl},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.drawingImgUrl=Bt.drawingImgUrl,this.setDrawingImage()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setDrawingImage()},Wt.typeName="FreehandMarker",Wt.title="Freehand marker",Wt.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>',Wt}(jt),Kt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,ge||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Jt.typeBoxes=[],Jt.currentType=te,Jt.setCurrentType=Jt.setCurrentType.bind(Jt),Jt}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2";for(var ge=function(Ue){var Je="both";switch(Ue){case 0:Je="both";break;case 1:Je="start";break;case 2:Je="end";break;case 3:Je="none"}var Ze=document.createElement("div");if(Ze.style.display="flex",Ze.style.flexGrow="2",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.borderColor=Je===Jt.currentType?Jt.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){Bt.setCurrentType(Je,Ze)}),te.appendChild(Ze),Je==="both"||Je==="start"){var nn=document.createElement("div");nn.style.display="flex",nn.style.alignItems="center",nn.style.minHeight="20px",nn.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="`+(Jt.uiStyleSettings!==void 0?Jt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,nn.style.marginLeft="5px",Ze.appendChild(nn)}var fn=document.createElement("div");fn.style.display="flex",fn.style.alignItems="center",fn.style.minHeight="20px",fn.style.flexGrow="2";var An=document.createElement("hr");if(An.style.minWidth="20px",An.style.border="0px",An.style.borderTop="3px solid "+(Jt.uiStyleSettings!==void 0?Jt.uiStyleSettings.toolboxColor:"#eeeeee"),An.style.flexGrow="2",fn.appendChild(An),Ze.appendChild(fn),Je==="both"||Je==="end"){var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.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="`+(Jt.uiStyleSettings!==void 0?Jt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,En.style.marginRight="5px",Ze.appendChild(En)}Jt.typeBoxes.push(Ze)},Jt=this,Ie=0;Ie<4;Ie++)ge(Ie);return te},Wt.prototype.setCurrentType=function(Bt,te){var ge=this;this.currentType=Bt,this.typeBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings!==void 0?ge.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Wt}(ut),re=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.arrowType="end",Jt.arrowBaseHeight=10,Jt.arrowBaseWidth=10,Jt.getArrowPoints=Jt.getArrowPoints.bind(Jt),Jt.setArrowType=Jt.setArrowType.bind(Jt),Jt.arrowTypePanel=new Kt("Arrow type","end"),Jt.arrowTypePanel.onArrowTypeChanged=Jt.setArrowType,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.arrow1&&Bt!==this.arrow2)},Wt.prototype.getArrowPoints=function(Bt,te){var ge=this.arrowBaseWidth+2*this.strokeWidth,Jt=this.arrowBaseHeight+2*this.strokeWidth;return Bt-ge/2+","+(te+Jt/2)+" "+Bt+","+(te-Jt/2)+" "+(Bt+ge/2)+","+(te+Jt/2)},Wt.prototype.createTips=function(){this.arrow1=dt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=dt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.arrow2)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="creating"&&this.createTips()},Wt.prototype.adjustVisual=function(){if(Qt.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",dt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),dt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Bt=0;Math.abs(this.x1-this.x2)>.1&&(Bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var te=this.arrow1.transform.baseVal.getItem(0);te.setRotate(Bt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(te,0);var ge=this.arrow2.transform.baseVal.getItem(0);ge.setRotate(Bt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ge,0)}},Wt.prototype.setArrowType=function(Bt){this.arrowType=Bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({arrowType:this.arrowType},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.arrowType=te.arrowType,this.createTips(),this.adjustVisual()},Wt.typeName="ArrowMarker",Wt.title="Arrow marker",Wt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Wt}(Ht),we=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.fillColor=ge.defaultFillColor,Jt.strokeWidth=0,Jt.fillPanel=new wt("Color",ge.defaultColorSet,ge.defaultFillColor),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="CoverMarker",Wt.title="Cover marker",Wt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Wt}(Lt),Me=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Ie.opacities=[],Ie.opacityBoxes=[],Ie.opacities=te,Ie.currentOpacity=ge,Ie.setCurrentOpacity=Ie.setCurrentOpacity.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",te.style.justifyContent="space-between",this.opacities.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.justifyContent="center",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.borderColor=ge===Bt.currentOpacity?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentOpacity(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.innerText=100*ge+"%",Jt.appendChild(Ie),Bt.opacityBoxes.push(Jt)}),te},Wt.prototype.setCurrentOpacity=function(Bt,te){var ge=this;this.currentOpacity=Bt,this.opacityBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Wt}(ut),ke=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.setOpacity=Jt.setOpacity.bind(Jt),Jt.fillColor=ge.defaultHighlightColor,Jt.strokeWidth=0,Jt.opacity=ge.defaultHighlightOpacity,Jt.fillPanel=new wt("Color",ge.defaultColorSet,Jt.fillColor),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt.opacityPanel=new Me("Opacity",ge.defaultOpacitySteps,Jt.opacity),Jt.opacityPanel.onOpacityChanged=Jt.setOpacity,Jt}return pt(Wt,Qt),Wt.prototype.setOpacity=function(Bt){this.opacity=Bt,this.visual&&dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="HighlightMarker",Wt.title="Highlight marker",Wt.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>',Wt}(we),me='<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>',fe='<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>',pe=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.bgColor="transparent",Jt.tipPosition={x:0,y:0},Jt.tipBase1Position={x:0,y:0},Jt.tipBase2Position={x:0,y:0},Jt.tipMoving=!1,Jt.color=ge.defaultStrokeColor,Jt.bgColor=ge.defaultFillColor,Jt.fontFamily=ge.defaultFontFamily,Jt.defaultSize={x:100,y:30},Jt.setBgColor=Jt.setBgColor.bind(Jt),Jt.getTipPoints=Jt.getTipPoints.bind(Jt),Jt.positionTip=Jt.positionTip.bind(Jt),Jt.setTipPoints=Jt.setTipPoints.bind(Jt),Jt.colorPanel=new wt("Text color",ge.defaultColorSet,Jt.color,me),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.bgColorPanel=new wt("Fill color",ge.defaultColorSet,Jt.bgColor,fe),Jt.bgColorPanel.onColorChanged=Jt.setBgColor,Jt.fontFamilyPanel=new ne("Font",ge.defaultFontFamilies,ge.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt.tipGrip=new _t,Jt.tipGrip.visual.transform.baseVal.appendItem(dt.createTransform()),Jt.controlBox.appendChild(Jt.tipGrip.visual),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return Qt.prototype.ownsTarget.call(this,Bt)||this.tipGrip.ownsTarget(Bt)||this.tip===Bt},Wt.prototype.createTip=function(){dt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=dt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Wt.prototype.pointerDown=function(Bt,te){this.state==="new"&&Qt.prototype.pointerDown.call(this,Bt,te),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(te)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Qt.prototype.pointerDown.call(this,Bt,te)},Wt.prototype.pointerUp=function(Bt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Qt.prototype.pointerUp.call(this,Bt);else{var te=this.state==="creating";Qt.prototype.pointerUp.call(this,Bt),this.setTipPoints(te),this.positionTip()}},Wt.prototype.manipulate=function(Bt){if(this.tipMoving){var te=this.unrotatePoint(Bt);this.tipPosition={x:te.x-this.manipulationStartLeft,y:te.y-this.manipulationStartTop},this.positionTip()}else Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.setBgColor=function(Bt){this.bgRectangle&&this.tip&&(dt.setAttributes(this.bgRectangle,[["fill",Bt]]),dt.setAttributes(this.tip,[["fill",Bt]])),this.bgColor=Bt,this.fillColorChanged(Bt)},Wt.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},Wt.prototype.setTipPoints=function(Bt){Bt===void 0&&(Bt=!1);var te=Math.min(this.height/2,15),ge=this.height/5;Bt&&(this.tipPosition={x:te+ge/2,y:this.height+20});var Jt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Jt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ge=this.width/5,te=Math.min(this.width/2,15),this.tipBase1Position={x:te,y:0},this.tipBase2Position={x:te+ge,y:0}):(this.tipBase1Position={x:0,y:te},this.tipBase2Position={x:0,y:te+ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Jt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ge=this.width/5,te=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-te-ge,y:0},this.tipBase2Position={x:this.width-te,y:0}):(this.tipBase1Position={x:this.width,y:te},this.tipBase2Position={x:this.width,y:te+ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Jt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ge=this.width/5,te=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-te-ge,y:this.height},this.tipBase2Position={x:this.width-te,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-te-ge},this.tipBase2Position={x:this.width,y:this.height-te}):Jt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ge=this.width/5,te=Math.min(this.width/2,15),this.tipBase1Position={x:te,y:this.height},this.tipBase2Position={x:te+ge,y:this.height}):(this.tipBase1Position={x:0,y:this.height-te},this.tipBase2Position={x:0,y:this.height-te-ge})},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.positionTip()},Wt.prototype.positionTip=function(){dt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Bt=this.tipGrip.visual.transform.baseVal.getItem(0);Bt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Bt,0)},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Wt.prototype.select=function(){this.positionTip(),Qt.prototype.select.call(this)},Wt.prototype.getState=function(){var Bt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.bgColor=te.bgColor,this.tipPosition=te.tipPosition,Qt.prototype.restoreState.call(this,Bt),this.createTip(),this.setTipPoints()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.tipPosition={x:this.tipPosition.x*Bt,y:this.tipPosition.y*te},this.positionTip()},Wt.typeName="CalloutMarker",Wt.title="Callout marker",Wt.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>',Wt}(ae),_e=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.fillColor="transparent",Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.opacity=1,Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.fillColor=ge.defaultFillColor,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setFillColor=Jt.setFillColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.setOpacity=Jt.setOpacity.bind(Jt),Jt.createVisual=Jt.createVisual.bind(Jt),Jt.strokePanel=new wt("Line color",xt(ge.defaultColorSet,["transparent"]),ge.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.fillPanel=new wt("Fill color",xt(ge.defaultColorSet,["transparent"]),Jt.fillColor,fe),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt.opacityPanel=new Me("Opacity",ge.defaultOpacitySteps,Jt.opacity),Jt.opacityPanel.onOpacityChanged=Jt.setOpacity,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual)},Wt.prototype.createVisual=function(){this.visual=dt.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)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.setSize()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),dt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Wt.prototype.pointerUp=function(Bt){Qt.prototype.pointerUp.call(this,Bt),this.setSize()},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Bt),this.stateChanged()},Wt.prototype.setFillColor=function(Bt){this.fillColor=Bt,this.visual&&dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Bt),this.stateChanged()},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Wt.prototype.setOpacity=function(Bt){this.opacity=Bt,this.visual&&dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.opacity=te.opacity,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize()},Wt.typeName="EllipseMarker",Wt.title="Ellipse marker",Wt.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>',Wt}(jt),je=function(Qt){function Wt(Bt,te,ge){return Qt.call(this,Bt,te,ge)||this}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.tip1&&Bt!==this.tip2)},Wt.prototype.createTips=function(){this.tip1=dt.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(dt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=dt.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(dt.createTransform()),this.visual.appendChild(this.tip2)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="creating"&&this.createTips()},Wt.prototype.adjustVisual=function(){if(Qt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(dt.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()]]),dt.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 Bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),te=this.tip1.transform.baseVal.getItem(0);te.setRotate(Bt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(te,0);var ge=this.tip2.transform.baseVal.getItem(0);ge.setRotate(Bt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ge,0)}},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt),this.createTips(),this.adjustVisual()},Wt.typeName="MeasurementMarker",Wt.title="Measurement marker",Wt.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>',Wt}(Ht),He=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokePanel.colors=ge.defaultColorSet,Jt.fillColor="transparent",Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="EllipseFrameMarker",Wt.title="Ellipse frame marker",Wt.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>',Wt}(_e),Se=function(){function Qt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Qt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Qt.prototype.addUndoStep=function(Wt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Wt)||(this.undoStack.push(Wt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Wt)&&this.redoStack.splice(0,this.redoStack.length))},Qt.prototype.replaceLastUndoStep=function(Wt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Wt)},Qt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Qt.prototype.undo=function(){if(this.undoStack.length>1){var Wt=this.undoStack.pop();return Wt!==void 0&&this.redoStack.push(Wt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Qt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Qt}(),xe=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.curveX=0,Jt.curveY=0,Jt.manipulationStartCurveX=0,Jt.manipulationStartCurveY=0,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.positionGrips=Jt.positionGrips.bind(Jt),Jt.addControlGrips=Jt.addControlGrips.bind(Jt),Jt.adjustVisual=Jt.adjustVisual.bind(Jt),Jt.setupControlBox=Jt.setupControlBox.bind(Jt),Jt.resize=Jt.resize.bind(Jt),Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",ge.defaultColorSet,ge.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.selectorCurve&&Bt!==this.visibleCurve&&!this.curveGrip.ownsTarget(Bt))},Wt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.selectorCurve=dt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=dt.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)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Bt.x,this.curveY=Bt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(te)&&(this.activeGrip=this.curveGrip,this._state="resize")},Wt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),dt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),dt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),dt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Wt.prototype.setupControlBox=function(){Qt.prototype.setupControlBox.call(this),this.curveControlLine1=dt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=dt.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)},Wt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Qt.prototype.addControlGrips.call(this)},Wt.prototype.positionGrips=function(){Qt.prototype.positionGrips.call(this);var Bt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Bt/2,this.curveY-Bt/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()))},Wt.prototype.manipulate=function(Bt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Bt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Bt.y-this.manipulationStartY),Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){this.activeGrip===this.curveGrip&&(this.curveX=Bt.x,this.curveY=Bt.y),Qt.prototype.resize.call(this,Bt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.adjustVisual(),this.colorChanged(Bt)},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.adjustVisual()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.adjustVisual()},Wt.prototype.scale=function(Bt,te){this.curveX=this.curveX*Bt,this.curveY=this.curveY*te,Qt.prototype.scale.call(this,Bt,te)},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.curveX=te.curveX,this.curveY=te.curveY,this.createVisual(),this.adjustVisual()},Wt.typeName="CurveMarker",Wt.title="Curve marker",Wt.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>',Wt}(Yt),le=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.fillColor="transparent",Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.textColor="transparent",Jt.fontSize="1rem",Jt.isMoved=!1,Jt.captionText="Caption",Jt.PADDING=5,Jt.captionBoxWidth=0,Jt.captionBoxHeight=0,Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.fillColor=ge.defaultFillColor,Jt.textColor=ge.defaultStrokeColor,Jt.fontFamily=ge.defaultFontFamily,Jt.fontSize=ge.defaultCaptionFontSize,Jt.captionText=ge.defaultCaptionText,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setFillColor=Jt.setFillColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.createVisual=Jt.createVisual.bind(Jt),Jt.sizeCaption=Jt.sizeCaption.bind(Jt),Jt.setCaptionText=Jt.setCaptionText.bind(Jt),Jt.showTextEditor=Jt.showTextEditor.bind(Jt),Jt.positionTextEditor=Jt.positionTextEditor.bind(Jt),Jt.finishTextEditing=Jt.finishTextEditing.bind(Jt),Jt.setFont=Jt.setFont.bind(Jt),Jt.setTextColor=Jt.setTextColor.bind(Jt),Jt.strokePanel=new wt("Line color",xt(ge.defaultColorSet,["transparent"]),Jt.strokeColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.fillPanel=new wt("Fill color",xt(ge.defaultColorSet,["transparent"]),Jt.fillColor,fe),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt.fontFamilyPanel=new ne("Font",ge.defaultFontFamilies,ge.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt.textColorPanel=new wt("Text color",ge.defaultColorSet,Jt.textColor,me),Jt.textColorPanel.onColorChanged=Jt.setTextColor,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.frame&&Bt!==this.captionBg&&Bt!==this.captionElement)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=dt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=dt.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=dt.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()},Wt.prototype.setCaptionText=function(Bt){this.captionText=Bt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.isMoved=!1,this.pointerDownPoint=Bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Bt.x-this.pointerDownPoint.x)>5||Math.abs(Bt.y-this.pointerDownPoint.y)>5)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.setSize()},Wt.prototype.sizeCaption=function(){var Bt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Bt.width+2*this.PADDING,this.captionBoxHeight=Bt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),dt.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')"]]),dt.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')"]])},Wt.prototype.showTextEditor=function(){var Bt=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(te){te.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(te){te.key==="Enter"&&Bt.finishTextEditing(Bt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Bt.finishTextEditing(Bt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Bt.finishTextEditing(Bt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Wt.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"))},Wt.prototype.finishTextEditing=function(Bt){this.setCaptionText(Bt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Wt.prototype.setFont=function(Bt){this.captionElement&&dt.setAttributes(this.captionElement,[["font-family",Bt]]),this.fontFamily=Bt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Wt.prototype.setTextColor=function(Bt){this.captionElement&&dt.setAttributes(this.captionElement,[["fill",Bt]]),this.textColor=Bt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),dt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Wt.prototype.pointerUp=function(Bt){Qt.prototype.pointerUp.call(this,Bt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Wt.prototype.dblClick=function(Bt,te){Qt.prototype.dblClick.call(this,Bt,te),this.showTextEditor()},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Bt),this.stateChanged()},Wt.prototype.setFillColor=function(Bt){this.fillColor=Bt,this.captionBg&&dt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Bt),this.stateChanged()},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=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},Qt.prototype.getState.call(this));return Bt.typeName=this.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.textColor=te.textColor,this.fontFamily=te.fontFamily,this.captionText=te.captionText,this.fontSize=te.fontSize,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize()},Wt.typeName="CaptionFrameMarker",Wt.title="Caption frame marker",Wt.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>',Wt}(jt),Ne=function(){function Qt(Wt,Bt){Bt===void 0&&(Bt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Wt,this.cancelable=Bt}return Object.defineProperty(Qt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Qt.prototype.preventDefault=function(){this._defaultPrevented=!0},Qt}(),se=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,!1)||this;return Jt.dataUrl=te,Jt.state=ge,Jt}return pt(Wt,Qt),Wt}(Ne),Ae=function(Qt){function Wt(Bt,te,ge){ge===void 0&&(ge=!1);var Jt=Qt.call(this,Bt,ge)||this;return Jt.marker=te,Jt}return pt(Wt,Qt),Wt}(Ne),Xe=function(){function Qt(){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 Qt.prototype.addEventListener=function(Wt,Bt){this[Wt].push(Bt)},Qt.prototype.removeEventListener=function(Wt,Bt){var te=this[Wt].indexOf(Bt);te>-1&&this[Wt].splice(te,1)},Qt}(),Be=function(){function Qt(Wt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Gt,this._isOpen=!1,this.undoRedoManager=new Se,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 Xe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Qt.instanceCounter++,this.styles=new E(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Wt,this.targetRoot=document.body,this.width=Wt.clientWidth,this.height=Wt.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(Qt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Xt,ve,re,ae,He,_e,ke,pe,je,we,Ht,xe,le]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Xt,ve,re,ae,_e,ke,pe]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Xt,ve,re,ae,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Wt){var Bt=this;this._availableMarkerTypes.splice(0),Wt.forEach(function(te){if(typeof te=="string"){var ge=Bt.ALL_MARKER_TYPES.find(function(Jt){return Jt.typeName===te});ge!==void 0&&Bt._availableMarkerTypes.push(ge)}else Bt._availableMarkerTypes.push(te)})},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Wt){this._zoomLevel=Wt,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(Qt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Qt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ft.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Qt.prototype.show=function(){var Wt=this;this.styles.styleSheetRoot===void 0&&lt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=lt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Bt){return Bt(new Ne(Wt))})},Qt.prototype.render=function(){return vt(this,void 0,void 0,function(){var Wt;return yt(this,function(Bt){switch(Bt.label){case 0:return this.setCurrentMarker(),(Wt=new ct).naturalSize=this.renderAtNaturalSize,Wt.imageType=this.renderImageType,Wt.imageQuality=this.renderImageQuality,Wt.markersOnly=this.renderMarkersOnly,Wt.width=this.renderWidth,Wt.height=this.renderHeight,[4,Wt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Bt.sent(),[4,Wt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Bt.sent()]}})})},Qt.prototype.close=function(Wt){var Bt=this;if(Wt===void 0&&(Wt=!1),this.isOpen){var te=!1;Wt||this.eventListeners.beforeclose.forEach(function(ge){var Jt=new Ne(Bt,!0);ge(Jt),Jt.defaultPrevented&&(te=!0)}),te||(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(ge){return ge(new Ne(Bt))}),this.detachEvents(),this._isOpen=!1)}},Qt.prototype.addMarkersToToolbar=function(){for(var Wt,Bt=[],te=0;te<arguments.length;te++)Bt[te]=arguments[te];(Wt=this._availableMarkerTypes).push.apply(Wt,Bt)},Qt.prototype.addRenderEventListener=function(Wt){this.addEventListener("render",function(Bt){Wt(Bt.dataUrl,Bt.state)})},Qt.prototype.removeRenderEventListener=function(Wt){},Qt.prototype.addCloseEventListener=function(Wt){this.addEventListener("close",function(){Wt()})},Qt.prototype.removeCloseEventListener=function(Wt){},Qt.prototype.setupResizeObserver=function(){var Wt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Wt.resize(Wt.target.clientWidth,Wt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Wt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Qt.prototype.onPopupTargetResize=function(){var Wt=1*this.target.clientWidth/this.target.clientHeight,Bt=this.editorCanvas.clientWidth/Wt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Wt:this.editorCanvas.clientWidth,te=Bt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Wt;this.resize(Bt,te)},Qt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Qt.prototype.resize=function(Wt,Bt){this._isResizing=!0;var te=Wt/this.imageWidth,ge=Bt/this.imageHeight;this.imageWidth=Math.round(Wt),this.imageHeight=Math.round(Bt),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(te,ge),this._isResizing=!1},Qt.prototype.scaleMarkers=function(Wt,Bt){var te,ge=this;this._currentMarker&&this._currentMarker instanceof ae?this._currentMarker.scale(Wt,Bt):(te=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Jt){Jt!==ge._currentMarker&&Jt.scale(Wt,Bt)}),te!==void 0&&this.setCurrentMarker(te)},Qt.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"},Qt.prototype.setTopLeft=function(){var Wt=this.editingTarget.getBoundingClientRect(),Bt=this.editorCanvas.getBoundingClientRect();this.left=Wt.left-Bt.left,this.top=Wt.top-Bt.top},Qt.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)},Qt.prototype.addDefs=function(){for(var Wt,Bt=[],te=0;te<arguments.length;te++)Bt[te]=arguments[te];this.defs=dt.createDefs(),this.addDefsToImage(),(Wt=this.defs).append.apply(Wt,Bt)},Qt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Qt.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)},Qt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Qt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Qt.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)},Qt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Qt.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)},Qt.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 Wt=document.createElement("a");Wt.href="https://markerjs.com/",Wt.target="_blank",Wt.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>',Wt.title="Powered by marker.js",Wt.style.display="grid",Wt.style.alignItems="center",Wt.style.justifyItems="center",Wt.style.padding="3px",Wt.style.width="20px",Wt.style.height="20px",this.logoUI.appendChild(Wt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Qt.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")},Qt.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"},Qt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Qt.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 Wt=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=Wt+"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 it(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 at(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Qt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Qt.prototype.removeMarker=function(Wt){this.markerImage.removeChild(Wt.container),this.markers.indexOf(Wt)>-1&&this.markers.splice(this.markers.indexOf(Wt),1),Wt.dispose()},Qt.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())},Qt.prototype.toolbarButtonClicked=function(Wt,Bt){if(Wt==="marker"&&Bt!==void 0)this.createNewMarker(Bt);else if(Wt==="action")switch(Bt){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()}},Qt.prototype.deleteSelectedMarker=function(){var Wt=this;if(this._currentMarker!==void 0){var Bt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ge){var Jt=new Ae(Wt,Wt._currentMarker,!0);ge(Jt),Jt.defaultPrevented&&(Bt=!0)}),!Bt){var te=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(ge){return ge(new Ae(Wt,te))})}}},Qt.prototype.clear=function(){var Wt=this,Bt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ie){var Ue=new Ae(Wt,void 0,!0);Ie(Ue),Ue.defaultPrevented&&(Bt=!0)}),!Bt)){this.setCurrentMarker();for(var te=function(Ie){var Ue=ge.markers[Ie];ge.setCurrentMarker(ge.markers[Ie]),ge._currentMarker.dispose(),ge.markerImage.removeChild(ge._currentMarker.container),ge.markers.splice(ge.markers.indexOf(ge._currentMarker),1),ge.eventListeners.markerdelete.forEach(function(Je){return Je(new Ae(Wt,Ue))})},ge=this,Jt=this.markers.length-1;Jt>=0;Jt--)te(Jt);this.addUndoStep()}},Object.defineProperty(Qt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Qt.prototype.showNotesEditor=function(){var Wt;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=(Wt=this._currentMarker.notes)!==null&&Wt!==void 0?Wt:"",this.overlayContainer.appendChild(this.notesArea))},Qt.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)},Qt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Qt.prototype.addUndoStep=function(){var Wt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Bt=this.getState(),te=this.undoRedoManager.getLastUndoStep();if(!te||te.width===Bt.width&&te.height===Bt.height){var ge=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Bt),ge<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Jt){return Jt(new Ne(Wt))})}else this.undoRedoManager.replaceLastUndoStep(Bt),this.eventListeners.statechange.forEach(function(Jt){return Jt(new Ne(Wt))})}},Qt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Qt.prototype.undoStep=function(){var Wt=this,Bt=this.undoRedoManager.undo();Bt!==void 0&&(this.restoreState(Bt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(te){return te(new Ne(Wt))}))},Qt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Qt.prototype.redoStep=function(){var Wt=this,Bt=this.undoRedoManager.redo();Bt!==void 0&&(this.restoreState(Bt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(te){return te(new Ne(Wt))}))},Qt.prototype.stepZoom=function(){var Wt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Wt<this.zoomSteps.length-1?this.zoomSteps[Wt+1]:this.zoomSteps[0]},Qt.prototype.panTo=function(Wt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Wt.x,top:this.prevPanPoint.y-Wt.y}),this.prevPanPoint=Wt},Qt.prototype.startRenderAndClose=function(){return vt(this,void 0,void 0,function(){var Wt,Bt,te=this;return yt(this,function(ge){switch(ge.label){case 0:return[4,this.render()];case 1:return Wt=ge.sent(),Bt=this.getState(),this.eventListeners.render.forEach(function(Jt){return Jt(new se(te,Wt,Bt))}),this.close(!0),[2]}})})},Qt.prototype.getState=function(Wt){Wt===!0&&this.setCurrentMarker();var Bt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(te){return Bt.markers.push(te.getState())}),Bt},Qt.prototype.restoreState=function(Wt){var Bt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Wt.markers.forEach(function(te){var ge=Bt._availableMarkerTypes.find(function(Ie){return Ie.typeName===te.typeName});if(ge!==void 0){var Jt=Bt.addNewMarker(ge);Jt.restoreState(te),Bt.markers.push(Jt)}}),Wt.width&&Wt.height&&(Wt.width!==this.imageWidth||Wt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Wt.width,this.imageHeight/Wt.height),this.eventListeners.restorestate.forEach(function(te){return te(new Ne(Bt))})},Qt.prototype.addNewMarker=function(Wt){var Bt=dt.createGroup();return this.markerImage.appendChild(Bt),new Wt(Bt,this.overlayContainer,this.settings)},Qt.prototype.createNewMarker=function(Wt){var Bt,te=this;(Bt=typeof Wt=="string"?this._availableMarkerTypes.find(function(ge){return ge.typeName===Wt}):Wt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Bt),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(Bt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ge){return ge(new Ae(te,te._currentMarker))}))},Qt.prototype.markerCreated=function(Wt){var Bt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Wt),this.setCurrentMarker(Wt),Wt instanceof ve&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ve):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(te){return te(new Ae(Bt,Bt._currentMarker))})},Qt.prototype.colorChanged=function(Wt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Wt,this.settings.defaultStrokeColor=Wt)},Qt.prototype.fillColorChanged=function(Wt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Wt)},Qt.prototype.markerStateChanged=function(Wt){var Bt=this;this.eventListeners.markerchange.forEach(function(te){return te(new Ae(Bt,Wt))})},Qt.prototype.setCurrentMarker=function(Wt){var Bt=this;this._currentMarker!==Wt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(te){return te(new Ae(Bt,Bt._currentMarker))})),this._currentMarker=Wt,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(te){return te(new Ae(Bt,Bt._currentMarker))}))},Qt.prototype.onPointerDown=function(Wt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Wt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Bt=this.markers.find(function(te){return te.ownsTarget(Wt.target)});Bt!==void 0?(this.setCurrentMarker(Bt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Wt.clientX,Wt.clientY),Wt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Wt.clientX,y:Wt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Wt.clientX,Wt.clientY))},Qt.prototype.onDblClick=function(Wt){if(this._isFocused||this.focus(),this.mode==="select"){var Bt=this.markers.find(function(te){return te.ownsTarget(Wt.target)});Bt!==void 0&&Bt!==this._currentMarker&&this.setCurrentMarker(Bt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Wt.clientX,Wt.clientY),Wt.target):this.setCurrentMarker()}},Qt.prototype.onPointerMove=function(Wt){this.touchPoints!==1&&Wt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Wt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Wt.clientX,Wt.clientY)):this.zoomLevel>1&&this.panTo({x:Wt.clientX,y:Wt.clientY}))},Qt.prototype.onPointerUp=function(Wt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Wt.clientX,Wt.clientY)),this.isDragging=!1,this.addUndoStep()},Qt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Qt.prototype.onKeyUp=function(Wt){this._currentMarker===void 0||this.notesArea!==void 0||Wt.key!=="Delete"&&Wt.key!=="Backspace"||this.deleteSelectedMarker()},Qt.prototype.clientToLocalCoordinates=function(Wt,Bt){var te=this.markerImage.getBoundingClientRect();return{x:(Wt-te.left)/this.zoomLevel,y:(Bt-te.top)/this.zoomLevel}},Qt.prototype.onWindowResize=function(){this.positionUI()},Qt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Wt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Wt+"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()},Qt.prototype.addLicenseKey=function(Wt){ft.addKey(Wt)},Qt.prototype.addEventListener=function(Wt,Bt){this.eventListeners.addEventListener(Wt,Bt)},Qt.prototype.removeEventListener=function(Wt,Bt){this.eventListeners.removeEventListener(Wt,Bt)},Qt.prototype.renderState=function(Wt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Wt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Qt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Qt.prototype.focus=function(){var Wt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Bt){return Bt(new Ne(Wt))}))},Qt.prototype.blur=function(){var Wt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Bt){return Bt(new Ne(Wt))}))},Qt.instanceCounter=0,Qt}(),Te=Rt(99064),ue=Rt(955),$t=(Qt,Wt,Bt)=>new Promise((te,ge)=>{var Jt=Je=>{try{Ue(Bt.next(Je))}catch(Ze){ge(Ze)}},Ie=Je=>{try{Ue(Bt.throw(Je))}catch(Ze){ge(Ze)}},Ue=Je=>Je.done?te(Je.value):Promise.resolve(Je.value).then(Jt,Ie);Ue((Bt=Bt.apply(Qt,Wt)).next())}),ye=({data:Qt,className:Wt,fullWidth:Bt,style:te={},onClose:ge,onOk:Jt,showFullTools:Ie,noAssociationId:Ue})=>{const Je=(0,Ft.useRef)(null),Ze=(0,Ft.useRef)(null),nn=(0,Ft.useRef)(null),fn=(0,Ft.useRef)(null),[An,En]=(0,Ft.useState)(!1),[Dn,ii]=(0,Ft.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ft.useEffect)(()=>(nn.current||(nn.current=document.createElement("style"),document.head.appendChild(nn.current)),Qt!=null&&Qt.visible?(document.body.setAttribute("data-custom","y-hidden"),nn.current.innerHTML=" html { overflow-y: hidden; }",Qt!=null&&Qt.src&&mi()):(document.body.removeAttribute("data-custom"),nn.current&&(document.head.removeChild(nn.current),nn.current=null)),()=>{document.body.removeAttribute("data-custom"),nn.current&&(document.head.removeChild(nn.current),nn.current=null)}),[Qt==null?void 0:Qt.visible]);const mi=()=>$t(void 0,null,function*(){En(!0),ii("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pi=yield(0,ue.ZJ)(Qt==null?void 0:Qt.src);Je.current.src="",Je.current.src=pi,Je.current.onload=function(){ki()},En(!1),ii("")}),Ti=pi=>$t(void 0,null,function*(){En(!0),ii("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bi=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Qt.title,file:pi.dataUrl}});Bi!=null&&Bi.id&&!Ue?(yield(0,Te.ZP)(`/api/attachments/${Qt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bi==null?void 0:Bi.id,settings:JSON.stringify(pi.state)}})).status===0&&Jt():Bi!=null&&Bi.id&&Jt(Bi),En(!1),ii("")}),Oi=()=>{const pi=document.querySelector('a[href="https://markerjs.com/"]');pi&&pi.parentNode&&(pi.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(Or=>{const yr=document.querySelector(Or.name);yr&&yr.setAttribute("title",Or.title)})},ki=()=>{Ze.current=new Be(Je.current),Ze.current.targetRoot=fn.current,Ze.current.addEventListener("render",Ti),Ze.current.addEventListener("beforeclose",ge),Ie&&(Ze.current.availableMarkerTypes=Ze.current.ALL_MARKER_TYPES,Ze.current.uiStyleSettings.redoButtonVisible=!0,Ze.current.uiStyleSettings.notesButtonVisible=!0,Ze.current.uiStyleSettings.zoomButtonVisible=!0,Ze.current.uiStyleSettings.zoomOutButtonVisible=!0,Ze.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ze.current.uiStyleSettings,Ze.current.show(),Qt!=null&&Qt.snapshotData&&Ze.current.restoreState(Qt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Oi()},300)};return Ft.createElement(Ft.Fragment,null,(Qt==null?void 0:Qt.visible)&&Ft.createElement(Ct.Z,{spinning:An,tip:Dn,style:{position:"absolute",width:"100vw"}},Ft.createElement("div",{ref:fn,className:kt()(ie.imageDimensions,Wt,Bt?ie.fullWidth:""),style:te},Ft.createElement("img",{className:ie.img,ref:Je}))))}},41588:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(95237),rt=Rt(43604),kt=Rt(99313),Ct=Rt(3113),St=Rt(85149),pt=Rt(88010),vt=Rt(48136),yt=Rt(59301);const xt=(0,Ft.forwardRef)(({callback:dt,showSaveButton:ft,value:ct=""},lt)=>{const E=(0,Ft.useRef)(),z=[{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 "}]}]}],ot=[{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}`}]}]}],it=wt=>{E.current.setValue(E.current.getValue()+" "+wt.value+" ")},at=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:yt.createElement(ie.Z,{className:pt.Z.lists,gutter:[10,10]},z.map((wt,Et)=>yt.createElement(rt.Z,{flex:"110px",className:pt.Z.item},yt.createElement("div",null,yt.createElement(St.Z,{value:`$$${wt.value}$$`}),wt.name),yt.createElement("div",{className:pt.Z.children},wt.children.map((At,_t)=>yt.createElement("div",{key:_t},yt.createElement("h1",null,At.name),yt.createElement(ie.Z,{gutter:[10,10]},At.data.map((Mt,jt)=>yt.createElement(rt.Z,{key:jt,onClick:()=>it(Mt),className:pt.Z.diamond},yt.createElement(St.Z,{value:"`$$"+Mt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:yt.createElement(ie.Z,{className:pt.Z.lists,gutter:[10,10]},ot.map((wt,Et)=>yt.createElement(rt.Z,{flex:"110px",className:pt.Z.item},yt.createElement("div",null,yt.createElement(St.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),yt.createElement("div",{className:pt.Z.children},wt.children.map((At,_t)=>yt.createElement("div",{key:_t},At.name&&yt.createElement("h1",null,At.name),yt.createElement(ie.Z,{gutter:[10,10]},At.data.map((Mt,jt)=>yt.createElement(rt.Z,{key:jt,onClick:()=>it(Mt),className:pt.Z.diamond},yt.createElement(St.Z,{value:"`$$"+Mt.value+"$$`"}))))))))))}],ut=()=>{var wt=document.createElement("div");wt.innerHTML=E.current.getValue();var Et=wt.innerText;return dt&&dt(Et),Et};return(0,Ft.useImperativeHandle)(lt,()=>({getData:ut})),yt.createElement("div",{className:pt.Z.mathWrap},yt.createElement(kt.default,{defaultActiveKey:"1",items:at}),yt.createElement("math-field",{locale:"zh_cn",className:pt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},ct||""),ft&&yt.createElement("div",{className:pt.Z.button},yt.createElement(Ct.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ke.Z=xt},8797:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(93314),rt=Rt(3113),kt=Object.defineProperty,Ct=Object.defineProperties,St=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,xt=(lt,E,z)=>E in lt?kt(lt,E,{enumerable:!0,configurable:!0,writable:!0,value:z}):lt[E]=z,dt=(lt,E)=>{for(var z in E||(E={}))vt.call(E,z)&&xt(lt,z,E[z]);if(pt)for(var z of pt(E))yt.call(E,z)&&xt(lt,z,E[z]);return lt},ft=(lt,E)=>Ct(lt,St(E));const ct=({img:lt,buttonProps:E={},styles:z={},customText:ot,ButtonText:it,ButtonClick:at,Buttonclass:ut,ButtonTwo:wt,imgStyles:Et,loading:At=!1,className:_t=""})=>Ft.createElement("section",{className:`tc animated fadeIn ${_t}`,style:dt({color:"#999",margin:"100px auto",visibility:At?"hidden":"visible"},z)},Ft.createElement("img",{src:lt||ie,style:ft(dt({},Et),{pointerEvents:"none",userSelect:"none"})}),Ft.createElement("p",{className:"mt20 font14"},ot||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),it&&Ft.createElement(rt.ZP,dt({className:ut,onClick:at},E),it),wt&&wt);Ke.Z=ct},23210:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ut}});var Ft=Rt(59301),ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},rt=Rt(3113),kt=Rt(70557),Ct=Rt(23954),St=Rt(6848),pt=Rt(955),vt=Rt(94941),yt=Rt(8797),xt=Rt(3294),dt=Rt(19381),ft=Rt(59301),ct=Object.defineProperty,lt=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ot=(wt,Et,At)=>Et in wt?ct(wt,Et,{enumerable:!0,configurable:!0,writable:!0,value:At}):wt[Et]=At,it=(wt,Et)=>{for(var At in Et||(Et={}))E.call(Et,At)&&ot(wt,At,Et[At]);if(lt)for(var At of lt(Et))z.call(Et,At)&&ot(wt,At,Et[At]);return wt},at=(wt,Et,At)=>new Promise((_t,Mt)=>{var jt=Ut=>{try{It(At.next(Ut))}catch(Xt){Mt(Xt)}},Lt=Ut=>{try{It(At.throw(Ut))}catch(Xt){Mt(Xt)}},It=Ut=>Ut.done?_t(Ut.value):Promise.resolve(Ut.value).then(jt,Lt);It((At=At.apply(wt,Et)).next())}),ut=({editOffice:wt="view",data:Et,theme:At,type:_t,filename:Mt,monacoEditor:jt,className:Lt,style:It,close:Ut,onClose:Xt,hasMask:Gt,disabledDownload:Yt,onImgDimensions:Ht,showNodata:ne,recordInfo:ae})=>{const[ve,Kt]=(0,Ft.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[re,we]=(0,Ft.useState)(""),[Me,ke]=(0,Ft.useState)(),me=window.ENV==="build"?"/react/build":"",fe=location.host.startsWith("localhost")?xt.Z.PROXY_SERVER:xt.Z.API_SERVER,_e=10*(1024*1024),je=(0,Ft.useRef)();Et!=null&&Et.startsWith("/api")&&_t!=="txt"&&(Et=xt.Z.API_SERVER+Et);const He=Ne=>Ne.substring(Ne.lastIndexOf("/")+1).split(".").pop();Mt&&jt&&(jt.filename=Mt),(0,Ft.useEffect)(()=>{var Ne,se;const Ae=(se=(Ne=document.cookie)==null?void 0:Ne.replace(/\s/g,""))==null?void 0:se.split(";");Ae==null||Ae.map(Xe=>{let Be=Xe.split("=");Be[0]==="_educoder_session"&&we(Be[1])})},[]),(0,Ft.useEffect)(()=>{_t==="office"&&(Et.indexOf("bigfilescdn.")>-1||Et.indexOf("bigfiles1")>-1?ke({url:Et,fileType:He(Et),model:Et.indexOf("model=edit")?"edit":"view"}):Se())},[_t,Et]);const Se=()=>at(void 0,null,function*(){console.log("data:",Et);let Ne=Et;Et.startsWith("http")||(Ne=location.origin+Ne);let se=new URL(Ne).pathname.split("/").pop();const Ae=yield(0,vt.gJ)({attachment_id:se});Ae.url=fe+Ae.url,ke(Ae)}),xe=()=>{if(Et.startsWith("http")||Et.startsWith("blob:")){le();return}(0,pt.Sv)(Mt||"educoder",Et,Mt)},le=()=>{ae&&(0,dt.fc)({id:ae==null?void 0:ae.id,watch_type:1,course_id:ae==null?void 0:ae.course_id}),(0,pt.Nd)(Mt||"educoder",decodeURIComponent(Et))};return ft.createElement("div",{style:it({},It||{}),className:`${Gt&&ie.bgBlack} ${_t?ie.wrp:"hide"}`},Ut&&ft.createElement("div",{className:ie.close,ref:je},!!Ht&&ft.createElement(St.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>je.current},ft.createElement("span",{onClick:()=>{Xt(),Ht()}},ft.createElement("i",{className:"icon-yulanpizhu"}))),!Yt&&ft.createElement(St.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>je.current},ft.createElement("span",{onClick:le},ft.createElement("i",{className:"icon-quxiaozhiding"}))),ft.createElement(St.Z,{title:"\u5173\u95ED",getPopupContainer:()=>je.current},ft.createElement("span",{className:"",onClick:Xt},ft.createElement("i",{className:"icon-guanbi1"})))),ft.createElement("div",{className:`${ie[Lt]} ${Lt} ${ie.monaco} ${_t==="txt"?"show":"hide"}`},_t==="txt"&&ft.createElement(ft.Fragment,null,ft.createElement(Ct.ZP,it({},jt)))),_t==="audio"&&ft.createElement("audio",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Et}`,autoPlay:!0}),_t==="video"&&ft.createElement(ft.Fragment,null,(Et==null?void 0:Et.indexOf("http"))>-1?ft.createElement("video",{controls:!0,src:`${Et}`,autoPlay:!0}):ft.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Et}`,autoPlay:!0})),_t==="office"&&Me&&ft.createElement("iframe",{src:`${me}/office.html?key=${Me.key}&url=${btoa(Me.url)}&callbackUrl=${fe+(Me.callbackUrl||"")}&fileType=${Me.fileType}&title=${Me.title||""}&model=${wt}&officeServer=${xt.Z.ONLYOFFICE}&disabledDownload=${!!Yt}`}),_t==="html"&&ft.createElement("iframe",{src:Et+"&disposition=inline"}),_t==="pdf"&&ft.createElement("iframe",{src:`${me}/js/pdfview/index.html?filename=${Mt||"educoder.pdf"}&url=${encodeURIComponent(Et)}&disabledDownload=${!!Yt}`}),_t==="image"&&ft.createElement("img",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Et}`}),(_t==="other"||_t==="download")&&ft.createElement(ft.Fragment,null,ne?ft.createElement(yt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ft.createElement(rt.ZP,{icon:ft.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:xe,disabled:Yt},"\u4E0B\u8F7D")}):ft.createElement(rt.ZP,{type:"primary",size:"middle",onClick:xe,disabled:Yt},ft.createElement(kt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{z:function(){return _t},Z:function(){return Mt}});var Ft=Rt(59301),ie=Rt(50304),rt=Rt(24768),kt=Rt(64018),Ct=Rt(65157),St=Rt(3294),pt=Rt(955),vt=Rt(15342),yt=Rt(1012),xt=Rt(23210),dt=Rt(59301),ct=({html:jt})=>{const Lt=(0,Ft.useRef)(null),It=(0,Ft.useRef)(null),Ut=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,Ft.useEffect)(()=>{const Xt=Lt.current.attachShadow({mode:"open"});It.current=document.createElement("div"),It.current.className="markdown-body",It.current.innerHTML=jt,Xt.appendChild(It.current);const Gt=document.createElement("style");return Gt.textContent=Ut,Xt.appendChild(Gt),()=>{Xt.innerHTML=""}},[]),(0,Ft.useEffect)(()=>{It.current&&(It.current.innerHTML=jt)},[jt]),dt.createElement("div",{ref:Lt})},lt=Object.defineProperty,E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,it=(jt,Lt,It)=>Lt in jt?lt(jt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:It}):jt[Lt]=It,at=(jt,Lt)=>{for(var It in Lt||(Lt={}))z.call(Lt,It)&&it(jt,It,Lt[It]);if(E)for(var It of E(Lt))ot.call(Lt,It)&&it(jt,It,Lt[It]);return jt};const ut="@\u2581\u2581@",wt="@\u2581@",Et=/<pre[^>]*>/g;function At(jt){let Lt=document.createElement("div");return Lt.innerHTML=jt,Lt.childNodes.length===0?"":Lt.childNodes[0].nodeValue}const _t=(jt,Lt)=>{jt=jt||"";const It=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ut=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Lt?jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(It,(Yt,Ht,ne,ae,ve,Kt,re)=>{const we=Ht||ae||Kt,Me=ne||ve||re||"?";return St.Z.API_SERVER+"/api/attachments/"+we+Me+"&t="+(0,pt.Jn)(we,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(jt=jt.replace(Gt,(Yt,Ht,ne,ae,ve,Kt,re)=>{const we=Ht||ae||Kt,Me=ne||ve||re||"?";return St.Z.API_SERVER+"/attachments/download/"+we+Me+"&t="+(0,pt.Jn)(we,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(It,(Yt,Ht,ne,ae,ve,Kt,re)=>{const we=Ht||ae||Kt,Me=ne||ve||re||"?";return St.Z.API_SERVER+"/api/attachments/"+we+Me+"&t="+(0,pt.Jn)(we,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(Ut,(Yt,Ht,ne,ae,ve)=>{const Kt=Ht||ae,re=ne||ve||"";return'"'+St.Z.API_SERVER+"/api/attachments/"+Kt+re+Kt+re+"&t="+(0,pt.Jn)(Kt,Date.now())}).replace(Xt,(Yt,Ht,ne,ae,ve)=>{const Kt=Ht||ae,re=ne||ve||"";return"("+St.Z.API_SERVER+"/files/uploads/"+Kt+re+Kt+re+"&t="+(0,pt.Jn)(Kt,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,`
`),jt)};var Mt=({value:jt="",className:Lt,showTextOnly:It,showLines:Ut,style:Xt={},stylesPrev:Gt={},highlightKeywords:Yt,showProgramFill:Ht,isProgramFill:ne,disabledFill:ae=!1,programFillValue:ve,onFillChange:Kt=Me=>{},onFillBlur:re=()=>{},onFillFocus:we=()=>{}})=>{let Me=String(jt);const[ke,me]=(0,Ft.useState)(""),[fe,pe]=(0,Ft.useState)("office"),[_e,je]=(0,Ft.useState)([]),He=(0,Ft.useRef)("a"+(0,yt.Z)()),Se={},xe=(Qt,Wt,Bt)=>{const te=document.createElement(Qt===wt?"input":"textarea");te.style.width="100%",te.style.height=Qt===wt?"40px":"151px",te.rows=5,te.spellcheck=!1,te.name="edu-program-fill",te.placeholder="\u8BF7\u8F93\u5165",te.dataset.id=Wt;const ge=Object.keys(Se).length;return Se[ge]=te,`<span class="edu-program-fill-wrap ${Qt===wt?"":"show"}" style="width:${Qt===wt?"400px":"100%"}" title=${Bt||""}><span>${te.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function le(Qt){return Qt=Qt.replace(/!\[.*?\]\(.*?\)/g,""),Qt=Qt.replace(/\[.*?\]\(.*?\)/g,""),Qt=Qt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Qt=Qt.replace(/<embed.*?>/g,""),Qt=Qt.replace(/<img.*?>/g,""),Qt=Qt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Qt=Qt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Qt=Qt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Qt=Qt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Qt}const Ne=Qt=>Qt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Wt,Bt){let te=Bt.replace(/(\n|\r)/g,"").split("}"),ge=[];return te.map(Jt=>{Jt!=""&&ge.push(`.${He.current} ${Jt}`)}),`<style>${ge.join("}")}</style>`}),se=(0,Ft.useMemo)(()=>{try{const te=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ge=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ie=/\(\/attachments\/download\//g;Me=Me.replace(Ie,"("+St.Z.API_SERVER+"/attachments/download/").replace(te,"("+St.Z.API_SERVER+"/api/attachments/").replace(ge,'"'+St.Z.API_SERVER+"/api/attachments/").replace(Jt,'"'+St.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(te){}if(Ht){let te=-1;return Me=Me.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(ge,Jt,Ie){var Ue;return++te,xe(ge,te,(Ue=ve==null?void 0:ve[te])==null?void 0:Ue.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ne(Me||"")}</pre>`}let Qt=Ne(Me);Qt=(0,rt.ZP)(Qt);const Wt=(0,rt.ez)();Me.match(/\[TOC\]/)&&(Qt=Qt.replace("<p>[TOC]</p>",(0,rt.Qv)()),(0,rt.Iy)()),Qt=Qt.replace(/(__special_katext_id_\d+__)/g,(te,ge)=>{const{type:Jt,expression:Ie}=Wt[ge];return(0,vt.renderToString)(At(Ie)||"",{displayMode:Jt==="block",throwOnError:!1,output:"html"})}),Qt=Qt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,rt.AL)();const Bt=document.createElement("div");if(Bt.innerHTML=Qt,It)return Bt.innerText;if(Yt){const te=Yt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Te(Bt,te),Bt.innerHTML}return setTimeout(()=>he(),500),Bt.innerHTML},[Me,Yt]);(0,Ft.useEffect)(()=>{ue.current&&ue.current.querySelectorAll(["input","textarea"]).forEach(Wt=>{Wt.oninput=Ae,Wt.onblur=Xe,Wt.onfocus=Be})},[_e]),(0,Ft.useEffect)(()=>{var Qt,Wt,Bt,te,ge;if(ve!=null&&ve.length)try{const Jt=ue.current.querySelectorAll(".edu-program-fill-score"),Ie=ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ue,Je]of Ie.entries())Je.value=((Qt=ve==null?void 0:ve[Ue])==null?void 0:Qt.value)||"",((Wt=ve==null?void 0:ve[Ue])==null?void 0:Wt.type)==="warning"?Je.className="program-fill-warning":((Bt=ve==null?void 0:ve[Ue])==null?void 0:Bt.type)==="success"?Je.className="program-fill-success":Je.className="";for(const[Ue,Je]of Jt.entries())Je.innerHTML=(te=ve==null?void 0:ve[Ue])!=null&&te.score?`${(ge=ve==null?void 0:ve[Ue])==null?void 0:ge.score}\u5206`:"";je(ve)}catch(Jt){console.log(Jt,"error")}},[ve]);const Ae=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,je([..._e]),Kt(_e,Qt.target.dataset.id)},Xe=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,je([..._e]),re(_e,Qt.target.dataset.id)},Be=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,je([..._e]),we(_e,Qt.target.dataset.id)};function Te(Qt,Wt){return Qt.childNodes.forEach(Bt=>{var te;if(Bt.childNodes.length>0)Te(Bt,Wt);else if(Bt.nodeName!=="IMG")if(Bt.innerHTML)Bt.innerHTML=(te=Bt.innerHTML)==null?void 0:te.replace(new RegExp(Wt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ge=document.createElement("span");ge.innerHTML=Bt.textContent.replace(new RegExp(Wt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Bt.replaceWith(ge)}})}const ue=(0,Ft.useRef)();rt.jb.WebkitLineClamp=Ut,Ut&&(Xt=at(at({},Xt),rt.jb));function $t(Qt){let Wt=Qt.target;if(Wt.tagName.toUpperCase()==="A"){let Bt=Wt.getAttribute("href");if(Bt.indexOf("office")>-1)Qt.preventDefault(),me(Bt),pe("office");else if(Bt.indexOf("application/pdf")>-1)Qt.preventDefault(),me(Bt),pe("pdf");else if(Bt.indexOf("text/html")>-1)Qt.preventDefault(),me(Bt),pe("html");else if(Bt.startsWith("#")){Qt.preventDefault();let te=document.getElementById(Bt.replace("#",""));te&&te.scrollIntoView(!0)}}}const he=()=>{var Qt;const Wt=(Qt=ue.current)==null?void 0:Qt.querySelectorAll("video");Wt==null||Wt.forEach(Bt=>{if(Bt.oncontextmenu=()=>!1,Bt.src.indexOf(".m3u8")>-1&&!Bt.canPlayType("application/vnd.apple.mpegurl")){if(Ct.ZP.isSupported()){var te=new Ct.ZP;te.loadSource(Bt.src),te.attachMedia(Bt)}}})};(0,Ft.useEffect)(()=>{if(ue.current&&se&&se.match(Et)&&window.PR.prettyPrint(),ue.current)return ue.current.addEventListener("click",$t),()=>{var Qt;(Qt=ue.current)==null||Qt.removeEventListener("click",$t),(0,rt.AL)(),(0,rt.Iy)()}},[se,ue.current,$t]),(0,Ft.useEffect)(()=>{var Qt;const Wt=Bt=>{Bt.preventDefault(),Bt.clipboardData.setData("text",window.getSelection().toString())};return(Qt=ue.current)==null||Qt.addEventListener("copy",Wt),()=>{var Bt;(Bt=ue.current)==null||Bt.removeEventListener("copy",Wt)}},[ue.current]);const ye=Qt=>/<style[\s\S]*?>/i.test(Qt||"");return Ft.createElement(Ft.Fragment,null,It&&Ft.createElement("div",{ref:ue},se),!It&&!ye(se)&&Ft.createElement("div",{ref:ue,style:at({},Xt),className:`${Lt||""} ${ae?"disabled-fill":""} markdown-body ${He.current}`,dangerouslySetInnerHTML:{__html:se}}),!It&&ye(se)&&Ft.createElement(ct,{html:se}),Ft.createElement(xt.Z,{close:!0,data:ke,type:ke!=null&&ke.length?fe:"",style:at({},Gt),onClose:()=>me("")}))}},33538:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return kt}});var Ft=Rt(89070),ie={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},rt=Rt(59301),kt=({message:Ct,className:St,children:pt,style:vt={}})=>rt.createElement("div",{className:`custom-spinner ${ie.idsRingWrapper} ${St}`},rt.createElement("div",{className:ie.ldsRing},rt.createElement("div",null),rt.createElement("div",null),rt.createElement("div",null),rt.createElement("div",null)),Ct?rt.createElement("p",{style:vt},Ct):null,pt,rt.createElement(Ft.Outlet,null))},13787:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return St}});var Ft=Rt(59301),ie={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},rt=Rt(92310),kt=Rt.n(rt),St=({className:pt,style:vt={},leftNode:yt,leftTitle:xt="\u81EA\u6D4B\u8F93\u5165",rightNode:dt,rightTitle:ft="\u8FD0\u884C\u7ED3\u679C"})=>Ft.createElement("div",{className:kt()(ie.result,pt),style:vt},Ft.createElement("div",{className:ie.left},Ft.createElement("div",{className:ie.title},Ft.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),Ft.createElement("span",null,xt)),Ft.createElement("div",{className:ie.leftNode},yt)),Ft.createElement("div",{className:ie.right},Ft.createElement("div",{className:ie.title},Ft.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),Ft.createElement("span",null,ft)),Ft.createElement("div",{className:ie.rightNode},dt)))},81939:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{cT:function(){return jt},pe:function(){return At}});var Ft=Rt(59301),ie=Rt(54580),rt=Rt(8591),kt=Rt(99064),Ct=Rt(28209),St=Rt.n(Ct),pt=Rt(1012),vt=Rt(89070),yt=Rt(47257),xt=Rt.n(yt),dt=Object.defineProperty,ft=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ot=(It,Ut,Xt)=>Ut in It?dt(It,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):It[Ut]=Xt,it=(It,Ut)=>{for(var Xt in Ut||(Ut={}))E.call(Ut,Xt)&&ot(It,Xt,Ut[Xt]);if(lt)for(var Xt of lt(Ut))z.call(Ut,Xt)&&ot(It,Xt,Ut[Xt]);return It},at=(It,Ut)=>ft(It,ct(Ut)),ut=(It,Ut)=>{var Xt={};for(var Gt in It)E.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&&lt)for(var Gt of lt(It))Ut.indexOf(Gt)<0&&z.call(It,Gt)&&(Xt[Gt]=It[Gt]);return Xt},wt=(It,Ut,Xt)=>new Promise((Gt,Yt)=>{var Ht=ve=>{try{ae(Xt.next(ve))}catch(Kt){Yt(Kt)}},ne=ve=>{try{ae(Xt.throw(ve))}catch(Kt){Yt(Kt)}},ae=ve=>ve.done?Gt(ve.value):Promise.resolve(ve.value).then(Ht,ne);ae((Xt=Xt.apply(It,Ut)).next())});const{Dragger:Et}=ie.default,At=It=>{const Ut="bf3c199c2470cb477d907b1e0917c17b",Xt="5183666c72eec9e4";var Gt=St().enc.Utf8.parse(Ut);let Yt=St().enc.Utf8.parse(Xt);var Ht=St().AES.decrypt(It,Gt,{iv:Yt,mode:St().mode.CBC});return Ht.toString(St().enc.Utf8)};let _t;const Mt=It=>wt(void 0,[It],function*({identifier:Ut,oldFilename:Xt,newFilename:Gt}){var Yt,Ht,ne,ae,ve,Kt;const re=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});re.data=JSON.parse(At(re.data));const we=new OSS({endpoint:(Yt=re==null?void 0:re.data)==null?void 0:Yt.end_point,region:(Ht=re==null?void 0:re.data)==null?void 0:Ht.region,accessKeyId:(ne=re==null?void 0:re.data)==null?void 0:ne.access_key_id,accessKeySecret:(ae=re==null?void 0:re.data)==null?void 0:ae.access_key_secret,bucket:(ve=re==null?void 0:re.data)==null?void 0:ve.bucket,stsToken:(Kt=re==null?void 0:re.data)==null?void 0:Kt.security_token});return new Promise((Me,ke)=>{console.log(11111,`${Ut}/${Xt}`,`${Ut}/${Gt}`,re.data),we.copy(`/${Ut}/${Xt}`,`/${Ut}/${Gt}`).then(me=>{console.log("\u62F7\u8D1D\u6210\u529F",me)}).catch(me=>{console.log(me)})})}),jt=(It,Ut,Xt)=>wt(void 0,null,function*(){var Gt,Yt,Ht,ne,ae,ve;Ut.file_name=It.name;const Kt=yield(0,kt.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",At(Kt.data)),Kt.data=JSON.parse(At(Kt.data));const re=It.name.split(".");re.pop();const we=Ut.realFileName?re.join(""):(0,pt.Z)(),Me=new(xt())({endpoint:(Gt=Kt==null?void 0:Kt.data)==null?void 0:Gt.end_point,region:(Yt=Kt==null?void 0:Kt.data)==null?void 0:Yt.region,accessKeyId:(Ht=Kt==null?void 0:Kt.data)==null?void 0:Ht.access_key_id,accessKeySecret:(ne=Kt==null?void 0:Kt.data)==null?void 0:ne.access_key_secret,bucket:(ae=Kt==null?void 0:Kt.data)==null?void 0:ae.bucket,stsToken:(ve=Kt==null?void 0:Kt.data)==null?void 0:ve.security_token});return new Promise((ke,me)=>{var fe;Me.multipartUpload(`${we}`,new Blob([It],{type:It.type}),at(it({timeout:200*1e3,partSize:102400},Xt),{callback:{url:(fe=Kt==null?void 0:Kt.data)==null?void 0:fe.callback_url,host:Kt==null?void 0:Kt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,kt.rz)(Ut)}})).then(function(pe){var _e;It.response=(_e=pe.data)==null?void 0:_e.data,ke(pe==null?void 0:pe.data)}).catch(function(pe){me(pe),console.log("err:",pe)})})}),Lt=It=>{var Ut=It,{user:Xt,cancelUpload:Gt}=Ut,Yt=ut(Ut,["user","cancelUpload"]);const[Ht,ne]=(0,Ft.useState)([]);let[ae,ve]=(0,Ft.useState)();const Kt={onRemove:we=>{ne([...Ht.filter(Me=>Me.name!==we.name)]),Yt.onChange(Ht.filter(Me=>Me.name!==we.name))},disabled:Yt.disabled,multiple:!0,fileList:Ht==null?void 0:Ht.map(we=>we.file),customRequest:()=>{},beforeUpload:we=>wt(void 0,null,function*(){let Me=Yt.maxSize||1073741824;if(Ht.filter(ke=>ke.name===we.name).length){rt.ZP.info(`${we.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(we==null?void 0:we.size)>Me?(rt.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${Me/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ht.push({name:we.name,file:we}),ne([...Ht]),Yt.onChange(Ht),!1)})},re=(we,Me)=>wt(void 0,null,function*(){var ke,me,fe,pe,_e,je;Me.file_name=we.name;const He=we.name,Se=yield(0,kt.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Se.data=JSON.parse(At(Se.data)),(Se==null?void 0:Se.status)!==0){Ht[Ht.findIndex(Ne=>Ne.name===He)].status="error",Ht[Ht.findIndex(Ne=>Ne.name===He)].file.status="error",Yt.onChange(Ht),rt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ae=new(xt())({endpoint:(ke=Se==null?void 0:Se.data)==null?void 0:ke.end_point,region:(me=Se==null?void 0:Se.data)==null?void 0:me.region,accessKeyId:(fe=Se==null?void 0:Se.data)==null?void 0:fe.access_key_id,accessKeySecret:(pe=Se==null?void 0:Se.data)==null?void 0:pe.access_key_secret,bucket:(_e=Se==null?void 0:Se.data)==null?void 0:_e.bucket,stsToken:(je=Se==null?void 0:Se.data)==null?void 0:je.security_token}),console.log(we,"file"),ve(ae);const xe=we.name.split(".");xe.pop();const le=He.indexOf(".")>-1?Me.realFileName?xe.join("."):(0,pt.Z)():He;return new Promise((Ne,se)=>{var Ae;try{ae.multipartUpload(`${Yt.identifier}/${le}${He.indexOf(".")>-1?"."+He.split(".").pop():""}`,new Blob([we.file],{type:we.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Xe,Be,Te)=>{try{console.log("\u8FDB\u5EA6",Xe,Be,Te);const ue=Ht.findIndex($t=>$t.name===He);Ht[ue].file.percent=Xe*100,Ht[ue].tempCheckpoint=Be,ne([...Ht])}catch(ue){}},checkpoint:Ht[Ht.findIndex(Xe=>Xe.name===He)].tempCheckpoint,callback:{customValue:{id:He+""},url:(Ae=Se==null?void 0:Se.data)==null?void 0:Ae.callback_url,host:Se==null?void 0:Se.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,kt.rz)(Me)}}).then(function(Xe){var Be,Te,ue;const $t=Ht.findIndex(ye=>ye.name===He);let he="done";if(((Be=Xe.data)==null?void 0:Be.status)===0){we.response=(Te=Xe.data)==null?void 0:Te.data;const ye=Ht.findIndex(Qt=>Qt.name===He);Ht[ye].status="done",Ht[ye].file.status="done"}else rt.ZP.warning((ue=Xe.data)==null?void 0:ue.message),he="error";Ht[$t].status=he,Ht[$t].file.status=he,Yt.onChange(Ht),Ne(Xe==null?void 0:Xe.data)}).catch(function(Xe){Ht[Ht.findIndex(Be=>Be.name===He)].status="error",Ht[Ht.findIndex(Be=>Be.name===He)].file.status="error",rt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ne([...Ht]),Yt.onChange(Ht),se(Xe),console.log("err:",Xe)})}catch(Xe){}})});return(0,Ft.useEffect)(()=>{Ht.every(we=>we==="done"||we==="error")&&Yt.onComplete(Ht)},[Ht]),(0,Ft.useEffect)(()=>{Gt&&(ae==null||ae.cancel())},[Gt]),(0,Ft.useEffect)(()=>{Yt.uploading&&Ht.map(we=>wt(void 0,null,function*(){var Me;if((!we.status||we.status==="error")&&!Gt){we.status="uploading",we.file.status="uploading";const ke=yield re(we,{login:(Me=Xt==null?void 0:Xt.userInfo)==null?void 0:Me.login,container_type:Yt.container_type,container_id:Yt.container_id,description:Yt.description,realFileName:Yt.realFileName})}}))},[Yt.uploading]),Ft.createElement(Et,at(it({},Kt),{height:Yt.height,className:Yt.className}),Ft.createElement("p",{className:"ant-upload-hint"},Yt.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Ke.ZP=(0,vt.connect)(({loading:It,globalSetting:Ut,user:Xt})=>({globalSetting:Ut,loading:It.models.competitions,user:Xt}))(Lt)},61398:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return kt}});var Ft=Rt(59301),ie=Rt(34604),rt=Rt(11611),kt=()=>{const[Ct,St]=(0,Ft.useState)(""),[pt,vt]=(0,Ft.useState)(0);let[yt,xt]=(0,Ft.useState)(),[dt,ft]=(0,Ft.useState)();const[ct,lt]=(0,Ft.useState)(!1),E=(0,Ft.useRef)("");(0,Ft.useEffect)(()=>ie.Z.subscribe("preview-image",jt=>{St(jt),console.log(At.current),document.body.style.overflow="hidden"}),[]),(0,Ft.useEffect)(()=>(document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}),[]),(0,Ft.useEffect)(()=>{E.current=Ct},[Ct]);function z(Mt){Mt.keyCode==27&&E.current&&ot()}function ot(){document.body.style.overflow="auto",xt(void 0),ft(void 0),vt(0),St("")}function it(){vt(pt+90)}function at(){yt=At.current.width*1.1,dt=At.current.height*1.1,ft(dt),xt(yt)}function ut(){yt=At.current.width/1.1,dt=At.current.height/1.1,ft(dt),xt(yt)}const wt=(0,Ft.useRef)(),Et=(0,Ft.useRef)(),At=(0,Ft.useRef)(),_t=Mt=>{(Mt.nativeEvent.target===wt.current||Mt.nativeEvent.target===Et.current)&&ot()};return Ft.createElement(Ft.Fragment,null,Ct?Ft.createElement("div",null,Ft.createElement("div",{className:"preview-wrp-group",ref:Et},Ft.createElement(rt.Z,{className:"image-preview",src:Ct,style:{display:"none"},preview:{visible:!0,src:Ct,onVisibleChange:Mt=>{St("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},53932:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{h:function(){return wt},Z:function(){return ut}});var Ft=Rt(59301),ie=Rt(57809),rt=Rt(78241),kt=Rt(3113),Ct=Rt(89780),St=Rt.n(Ct),pt=Rt(37036),vt=Object.defineProperty,yt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,lt=(Et,At,_t)=>At in Et?vt(Et,At,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Et[At]=_t,E=(Et,At)=>{for(var _t in At||(At={}))ft.call(At,_t)&&lt(Et,_t,At[_t]);if(dt)for(var _t of dt(At))ct.call(At,_t)&&lt(Et,_t,At[_t]);return Et},z=(Et,At)=>yt(Et,xt(At));const ot=ie.default.Option,it={labelCol:{span:4},wrapperCol:{span:20}},at={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var ut=({callback:Et,onCancel:At})=>{const[_t,Mt]=(0,Ft.useState)("python");function jt(It){Mt(at[It][1])}function Lt(It){Et(It)}return Ft.createElement(rt.default,z(E({},it),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Lt,style:{width:500}}),Ft.createElement(rt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ft.createElement(ie.default,{getPopupContainer:It=>It.parentNode,onChange:jt},Object.keys(at).map(It=>Ft.createElement(ot,{key:It,value:It},at[It][0])))),Ft.createElement(rt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ft.createElement(wt,{mode:_t})),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(kt.ZP,{type:"ghost",onClick:At},"\u53D6\u6D88")))};function wt({value:Et,onChange:At,mode:_t,options:Mt={}}){const jt=(0,Ft.useRef)(),[Lt,It]=(0,Ft.useState)();return(0,Ft.useEffect)(()=>{if(Lt){let Ut=function(Xt){const Gt=Xt.getValue();At&&At(Gt)};return Lt.on("change",Ut),()=>{Lt.off("change",Ut)}}},[Lt,At]),(0,Ft.useEffect)(()=>{Lt&&Lt.setOption("mode",_t)},[Lt,_t]),(0,Ft.useEffect)(()=>{Lt&&(Et!==Lt.getValue()||Et==="")&&setTimeout(()=>{Lt.setValue(Et||"")},300)},[Lt,Et]),(0,Ft.useEffect)(()=>{if(jt.current&&!Lt){const Ut=St().fromTextArea(jt.current,E({mode:_t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Mt));It(Ut)}},[jt.current,Lt]),Ft.createElement("div",{className:"my-codemirror-container"},Ft.createElement("textarea",{ref:jt}))}},12290:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return sa}});var Ft=Rt(59301),ie=Rt(89780),rt=Rt.n(ie),kt=Rt(76374),Ct=Rt(37036),St=Rt(6313),pt=Rt(25717),vt=Rt(99498),yt=Rt(25419),xt=Rt(67549),dt=Rt(85149),ft=({value:dn="",className:en,showTextOnly:qe,showLines:zn,style:Jn={}})=>{const hi=(0,Ft.useMemo)(()=>"",[dn]);return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{dangerouslySetInnerHTML:{__html:hi}}))},ct=Rt(59301),lt=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,ut=(dn,en,qe)=>en in dn?lt(dn,en,{enumerable:!0,configurable:!0,writable:!0,value:qe}):dn[en]=qe,wt=(dn,en)=>{for(var qe in en||(en={}))it.call(en,qe)&&ut(dn,qe,en[qe]);if(ot)for(var qe of ot(en))at.call(en,qe)&&ut(dn,qe,en[qe]);return dn},Et=(dn,en)=>E(dn,z(en));let At=[{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 _t({onActionCallback:dn,title:en,icon:qe,actionName:zn,className:Jn="",children:hi}){function bn(){dn(zn)}return ct.createElement("a",{title:en,className:Jn,onClick:bn},ct.createElement("i",{className:`${qe}`}),hi)}var Mt=({watch:dn,showNullButton:en,showNullProgramButton:qe,onActionCallback:zn,fullScreen:Jn,insertTemp:hi,hidetoolBar:bn,extraUse:Bn})=>{const Xi=[...At,{title:`${dn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${dn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ct.createElement("ul",{className:"markdown-toolbar-container"},!bn&&Xi.map((dr,ir)=>ct.createElement("li",{key:ir},dr.actionName?ct.createElement(_t,Et(wt({},dr),{onActionCallback:zn})):ct.createElement("span",{className:"v-line"}))),en?ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,qe?ct.createElement(ct.Fragment,null,ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,hi&&ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${hi}`,onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bn&&ct.createElement("li",null,Bn),ct.createElement("li",{className:"btn-full-screen"},ct.createElement(_t,{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:zn})))},jt=Rt(79346),Lt=Rt(78241),It=Rt(92832),Ut=Rt(3113),Xt=Object.defineProperty,Gt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ve=(dn,en,qe)=>en in dn?Xt(dn,en,{enumerable:!0,configurable:!0,writable:!0,value:qe}):dn[en]=qe,Kt=(dn,en)=>{for(var qe in en||(en={}))ne.call(en,qe)&&ve(dn,qe,en[qe]);if(Ht)for(var qe of Ht(en))ae.call(en,qe)&&ve(dn,qe,en[qe]);return dn},re=(dn,en)=>Gt(dn,Yt(en));const we={labelCol:{span:4},wrapperCol:{span:20}};var Me=({callback:dn,onCancel:en})=>{function qe(zn){dn(zn)}return Ft.createElement(Lt.default,re(Kt({},we),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:qe,style:{width:500}}),Ft.createElement(Lt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ft.createElement(It.default,null)),Ft.createElement(Lt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ft.createElement(It.default,null)),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ut.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},ke=Rt(53932),me=Rt(28451),fe=Rt(43418),pe=Rt(95237),_e=Rt(16406),je=Rt(59301),He=({callback:dn,onCancel:en})=>{const qe=document.createElement("canvas"),zn=qe.getContext("2d");qe.width=1e3,qe.height=800,zn.fillStyle="#ffffff",zn.fillRect(0,0,qe.width,qe.height);const Jn=qe.toDataURL("image/png");return je.createElement(fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},je.createElement(pe.Z,{style:{height:"100vh"}},je.createElement(_e.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jn,visible:!0,title:String(Date.now())},onOk:hi=>{dn({src:hi.url})},onClose:en})))},Se=Rt(12378);function xe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(xe,go.CommandHandler),xe.prototype.canAlignSelection=function(){var dn=this.diagram;return!(dn===null||dn.isReadOnly||dn.isModelReadOnly||dn.selection.count<2)},xe.prototype.alignLeft=function(){var dn=this.diagram;dn.startTransaction("aligning left");var en=1/0;dn.selection.each(function(qe){qe instanceof go.Link||(en=Math.min(qe.position.x,en))}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(en,qe.position.y))}),dn.commitTransaction("aligning left")},xe.prototype.alignRight=function(){var dn=this.diagram;dn.startTransaction("aligning right");var en=-1/0;dn.selection.each(function(qe){if(!(qe instanceof go.Link)){var zn=qe.actualBounds.x+qe.actualBounds.width;en=Math.max(zn,en)}}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(en-qe.actualBounds.width,qe.position.y))}),dn.commitTransaction("aligning right")},xe.prototype.alignTop=function(){var dn=this.diagram;dn.startTransaction("alignTop");var en=1/0;dn.selection.each(function(qe){qe instanceof go.Link||(en=Math.min(qe.position.y,en))}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.position.x,en))}),dn.commitTransaction("alignTop")},xe.prototype.alignBottom=function(){var dn=this.diagram;dn.startTransaction("aligning bottom");var en=-1/0;dn.selection.each(function(qe){if(!(qe instanceof go.Link)){var zn=qe.actualBounds.y+qe.actualBounds.height;en=Math.max(zn,en)}}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,en-qe.actualBounds.height))}),dn.commitTransaction("aligning bottom")},xe.prototype.alignCenterX=function(){var dn=this.diagram,en=dn.selection.first();if(en){dn.startTransaction("aligning Center X");var qe=en.actualBounds.x+en.actualBounds.width/2;dn.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(qe-zn.actualBounds.width/2,zn.actualBounds.y))}),dn.commitTransaction("aligning Center X")}},xe.prototype.alignCenterY=function(){var dn=this.diagram,en=dn.selection.first();if(en){dn.startTransaction("aligning Center Y");var qe=en.actualBounds.y+en.actualBounds.height/2;dn.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(zn.actualBounds.x,qe-zn.actualBounds.height/2))}),dn.commitTransaction("aligning Center Y")}},xe.prototype.alignColumn=function(dn){var en=this.diagram;en.startTransaction("align Column"),dn===void 0&&(dn=0),dn=parseFloat(dn);var qe=new Array;en.selection.each(function(Bn){Bn instanceof go.Link||qe.push(Bn)});for(var zn=0;zn<qe.length-1;zn++){var Jn=qe[zn],hi=Jn.actualBounds.y+Jn.actualBounds.height+dn,bn=qe[zn+1];bn.move(new go.Point(Jn.actualBounds.x,hi))}en.commitTransaction("align Column")},xe.prototype.alignRow=function(dn){dn===void 0&&(dn=0),dn=parseFloat(dn);var en=this.diagram;en.startTransaction("align Row");var qe=new Array;en.selection.each(function(Bn){Bn instanceof go.Link||qe.push(Bn)});for(var zn=0;zn<qe.length-1;zn++){var Jn=qe[zn],hi=Jn.actualBounds.x+Jn.actualBounds.width+dn,bn=qe[zn+1];bn.move(new go.Point(hi,Jn.actualBounds.y))}en.commitTransaction("align Row")},xe.prototype.canRotate=function(dn){var en=this.diagram;return!(en===null||en.isReadOnly||en.isModelReadOnly||en.selection.count<1)},xe.prototype.rotate=function(dn){dn===void 0&&(dn=90);var en=this.diagram;en.startTransaction("rotate "+dn.toString());var en=this.diagram;en.selection.each(function(qe){qe instanceof go.Link||qe instanceof go.Group||(qe.angle+=dn)}),en.commitTransaction("rotate "+dn.toString())},xe.prototype.pullToFront=function(){var dn=this.diagram;dn.startTransaction("pullToFront");var en=new go.Map;dn.selection.each(function(qe){en.set(qe.layer,0)}),en.iteratorKeys.each(function(qe){var zn=0;qe.parts.each(function(Jn){if(!Jn.isSelected){var hi=Jn.zOrder;isNaN(hi)?Jn.zOrder=0:zn=Math.max(zn,hi)}}),en.set(qe,zn)}),dn.selection.each(function(qe){xe._assignZOrder(qe,en.get(qe.layer)+1)}),dn.commitTransaction("pullToFront")},xe.prototype.pushToBack=function(){var dn=this.diagram;dn.startTransaction("pushToBack");var en=new go.Map;dn.selection.each(function(qe){en.set(qe.layer,0)}),en.iteratorKeys.each(function(qe){var zn=0;qe.parts.each(function(Jn){if(!Jn.isSelected){var hi=Jn.zOrder;isNaN(hi)?Jn.zOrder=0:zn=Math.min(zn,hi)}}),en.set(qe,zn)}),dn.selection.each(function(qe){xe._assignZOrder(qe,en.get(qe.layer)-1-xe._findGroupDepth(qe))}),dn.commitTransaction("pushToBack")},xe._assignZOrder=function(dn,en,qe){qe===void 0&&(qe=dn),dn.layer===qe.layer&&(dn.zOrder=en),dn instanceof go.Group&&dn.memberParts.each(function(zn){xe._assignZOrder(zn,en+1,qe)})},xe._findGroupDepth=function(dn){if(dn instanceof go.Group){var en=0;return dn.memberParts.each(function(qe){en=Math.max(en,xe._findGroupDepth(qe))}),en+1}else return 0},xe.prototype.doKeyDown=function(){var dn=this.diagram;if(dn!==null){var en=dn.lastInput;if(en.key==="Up"||en.key==="Down"||en.key==="Left"||en.key==="Right"){var qe=this.arrowKeyBehavior;if(qe==="none")return;if(qe==="select"){this._arrowKeySelect();return}else if(qe==="move"){this._arrowKeyMove();return}else if(qe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},xe.prototype._getAllParts=function(){var dn=new Array;return this.diagram.nodes.each(function(en){dn.push(en)}),this.diagram.parts.each(function(en){dn.push(en)}),dn},xe.prototype._arrowKeyMove=function(){var dn=this.diagram,en=dn.lastInput,qe=0,zn=0;if(en.control||en.meta)qe=1,zn=1;else if(dn.grid!==null){var Jn=dn.grid.gridCellSize;zn=Jn.width,qe=Jn.height}dn.startTransaction("arrowKeyMove"),dn.selection.each(function(hi){en.key==="Up"?hi.move(new go.Point(hi.actualBounds.x,hi.actualBounds.y-qe)):en.key==="Down"?hi.move(new go.Point(hi.actualBounds.x,hi.actualBounds.y+qe)):en.key==="Left"?hi.move(new go.Point(hi.actualBounds.x-zn,hi.actualBounds.y)):en.key==="Right"&&hi.move(new go.Point(hi.actualBounds.x+zn,hi.actualBounds.y))}),dn.commitTransaction("arrowKeyMove")},xe.prototype._arrowKeySelect=function(){var dn=this.diagram,en=dn.lastInput,qe=null;en.key==="Up"?qe=this._findNearestPartTowards(270):en.key==="Down"?qe=this._findNearestPartTowards(90):en.key==="Left"?qe=this._findNearestPartTowards(180):en.key==="Right"&&(qe=this._findNearestPartTowards(0)),qe!==null&&(en.shift?qe.isSelected=!0:en.control||en.meta?qe.isSelected=!qe.isSelected:dn.select(qe))},xe.prototype._findNearestPartTowards=function(dn){var en=this.diagram.selection.first();if(en===null)return null;for(var qe=en.actualBounds.center,zn=this._getAllParts(),Jn=1/0,hi=en,bn=0;bn<zn.length;bn++){var Bn=zn[bn];if(Bn!==en&&Bn.canSelect()){var Xi=Bn.actualBounds.center,dr=qe.directionPoint(Xi),ir=this._angleCloseness(dr,dn);if(ir<=45){var We=qe.distanceSquaredPoint(Xi);We*=1+Math.sin(ir*Math.PI/180),We<Jn&&(Jn=We,hi=Bn)}}}return hi},xe.prototype._angleCloseness=function(dn,en){return Math.min(Math.abs(en-dn),Math.min(Math.abs(en+360-dn),Math.abs(en-360-dn)))},xe.prototype._arrowKeyTree=function(){var dn=this.diagram,en=dn.selection.first();if(en instanceof go.Node){var qe=dn.lastInput;if(qe.key==="Right"){if(!en.isTreeLeaf)if(!en.isTreeExpanded)dn.commandHandler.canExpandTree(en)&&dn.commandHandler.expandTree(en);else{var zn=this._sortTreeChildrenByY(en).first();zn!==null&&dn.select(zn)}}else if(qe.key==="Left")if(!en.isTreeLeaf&&en.isTreeExpanded)dn.commandHandler.canCollapseTree(en)&&dn.commandHandler.collapseTree(en);else{var Jn=en.findTreeParentNode();Jn!==null&&dn.select(Jn)}else if(qe.key==="Up"){var Jn=en.findTreeParentNode();if(Jn!==null){var hi=this._sortTreeChildrenByY(Jn),bn=hi.indexOf(en);if(bn>0){for(var Bn=hi.elt(bn-1);Bn!==null&&Bn.isTreeExpanded&&!Bn.isTreeLeaf;){var Xi=this._sortTreeChildrenByY(Bn);Bn=Xi.last()}Bn!==null&&dn.select(Bn)}else dn.select(Jn)}}else if(qe.key==="Down")if(en.isTreeExpanded&&!en.isTreeLeaf){var zn=this._sortTreeChildrenByY(en).first();zn!==null&&dn.select(zn)}else for(;en!==null;){var Jn=en.findTreeParentNode();if(Jn===null)break;var hi=this._sortTreeChildrenByY(Jn),bn=hi.indexOf(en);if(bn<hi.length-1){dn.select(hi.elt(bn+1));break}else en=Jn}var dr=dn.selection.first();dr!==null&&dn.scrollToRect(dr.actualBounds)}},xe.prototype._sortTreeChildrenByY=function(dn){var en=new go.List().addAll(dn.findTreeChildrenNodes());return en.sort(function(qe,zn){var Jn=qe.location,hi=zn.location;return Jn.y<hi.y?-1:Jn.y>hi.y?1:Jn.x<hi.x?-1:Jn.x>hi.x?1:0}),en},xe.prototype.copyToClipboard=function(dn){go.CommandHandler.prototype.copyToClipboard.call(this,dn),this._lastPasteOffset.set(this.pasteOffset)},xe.prototype.pasteFromClipboard=function(){var dn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(dn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),dn},Object.defineProperty(xe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(dn){if(dn!=="move"&&dn!=="select"&&dn!=="scroll"&&dn!=="tree"&&dn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+dn);this._arrowKeyBehavior=dn}}),Object.defineProperty(xe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(dn){if(!(dn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+dn);this._pasteOffset.set(dn)}});var le=xe,Ne=Rt(74413),se=Rt(43604),Ae=Rt(99064),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Be=Rt(24065),Te=Rt(59301),ue=(dn,en,qe)=>new Promise((zn,Jn)=>{var hi=Xi=>{try{Bn(qe.next(Xi))}catch(dr){Jn(dr)}},bn=Xi=>{try{Bn(qe.throw(Xi))}catch(dr){Jn(dr)}},Bn=Xi=>Xi.done?zn(Xi.value):Promise.resolve(Xi.value).then(hi,bn);Bn((qe=qe.apply(dn,en)).next())});function $t({onCancel:dn,callback:en}){let qe=(0,Ft.useRef)(),zn=(0,Ft.useRef)(),Jn=(0,Ft.useRef)(),hi=(0,Ft.useRef)(!1);const bn=(0,Ft.useRef)(!1),[Bn,Xi]=(0,Ft.useState)(0);function dr(){const We=Se.bx.make,Nn={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"};qe.current=new Se.S0(zn.current,{padding:20,grid:We(Se.s_,"Grid",We(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),We(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:On=>{var Qn=On.diagram.commandHandler.addTopLevelParts(On.diagram.selection,!0);Qn||On.diagram.currentTool.doCancel()},commandHandler:We(le),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:On=>{var Qn=On.subject;Qn.location=Qn.location.copy().snapToGridPoint(On.diagram.grid.gridOrigin,On.diagram.grid.gridCellSize),setTimeout(()=>{On.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:On=>{var Qn=On.subject;setTimeout(()=>{On.diagram.commandHandler.editTextBlock()})},LinkRelinked:On=>{var Qn=On.parameter.part;Qn.invalidateConnectedLinks();var si=On.subject;On.diagram.toolManager.linkingTool.isForwards?si.toNode.invalidateConnectedLinks():si.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),qe.current.nodeTemplate=We(Se.NB,"Auto",{locationSpot:Se.z6.Center,locationObjectName:"SHAPE",desiredSize:new Se.$u(120,60),minSize:new Se.$u(40,40),resizable:!0,resizeCellSize:new Se.$u(10,10),rotatable:!0},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),new Se.KX("desiredSize","size",Se.$u.parse).makeTwoWay(Se.$u.stringify),We(Se.bn,{name:"SHAPE",fill:Nn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("figure"),new Se.KX("fill"),new Se.KX("stroke","borderColor"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),We(Se.al,{margin:1,textAlign:"center",overflow:Se.al.OverflowEllipsis,editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),qe.current.nodeTemplate.toolTip=We("ToolTip",We(Se.s_,"Vertical",{maxSize:new Se.$u(200,NaN)},We(Se.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Se.KX("text")),We(Se.al,{font:"10pt sans-serif",textAlign:"center"},new Se.KX("text","details"))));function ti(On,Qn){var si=(ei,Li)=>{ei.handled=!0,ei.diagram.model.commit(hr=>{var Vi=Li.part.adornedPart,Yi=new Se.E9().setRectSpot(Vi.actualBounds,On);Yi.subtract(Vi.location),Yi.scale(2,2),Yi.x+=Math.sign(Yi.x)*130,Yi.y+=Math.sign(Yi.y)*130,Yi.add(Vi.location),Yi.snapToGridPoint(ei.diagram.grid.gridOrigin,ei.diagram.grid.gridCellSize);var fr=hr.copyNodeData(Vi.data);hr.setGroupKeyForNodeData(fr,hr.getGroupKeyForNodeData(Vi.data)),hr.addNodeData(fr);var vn={from:Vi.key,to:hr.getKeyForNodeData(fr)};hr.addLinkData(vn);var Qi=ei.diagram.findNodeForData(fr);Qi.location=Yi,ei.diagram.select(Qi),setTimeout(()=>{ei.diagram.commandHandler.editTextBlock()},20)})};return We(Se.bn,{figure:Qn,alignment:On,alignmentFocus:On.opposite(),width:On.equals(Se.z6.Top)||On.equals(Se.z6.Bottom)?25:18,height:On.equals(Se.z6.Top)||On.equals(Se.z6.Bottom)?18:25,fill:"orange",stroke:Nn.white,strokeWidth:4,mouseEnter:(ei,Li)=>Li.fill="dodgerblue",mouseLeave:(ei,Li)=>Li.fill="orange",isActionable:!0,click:si,contextClick:si})}function pr(On){return We(Se.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:(Qn,si)=>si.fill="dodgerblue",mouseLeave:(Qn,si)=>si.fill="orange",click:(Qn,si)=>{Qn.diagram.commandHandler.showContextMenu(si.part.adornedPart)}},On||{})}qe.current.nodeTemplate.selectionAdornmentTemplate=We(Se.uz,"Spot",We(Se.Vm,{padding:10}),ti(Se.z6.Top,"TriangleUp"),ti(Se.z6.Left,"TriangleLeft"),ti(Se.z6.Right,"TriangleRight"),ti(Se.z6.Bottom,"TriangleDown"),pr({alignment:new Se.z6(.75,0)}));function on(On,Qn){return(si,ei)=>{si.handled=!0,si.diagram.model.commit(Li=>{Li.set(ei.part.adornedPart.data,On,Qn)})}}function Cn(On,Qn){return Qn||(Qn="color"),We(Se.bn,{width:16,height:16,stroke:"lightgray",fill:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.stroke="dodgerblue",mouseLeave:(si,ei)=>ei.stroke="lightgray",click:on(Qn,On),contextClick:on(Qn,On)})}function xi(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.white,"fill"),Cn(Nn.beige,"fill"),Cn(Nn.extralightblue,"fill"),Cn(Nn.extralightred,"fill"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.lightgray,"fill"),Cn(Nn.lightgreen,"fill"),Cn(Nn.lightblue,"fill"),Cn(Nn.lightred,"fill")))]}function Zi(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.black),Cn(Nn.green),Cn(Nn.blue),Cn(Nn.red))),We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.white),Cn(Nn.magenta),Cn(Nn.purple),Cn(Nn.orange)))]}function Wi(On,Qn){return Qn||(Qn="thickness"),We(Se.bn,"LineH",{width:16,height:16,strokeWidth:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on(Qn,On),contextClick:on(Qn,On)})}function oi(On,Qn){return Qn||(Qn="dash"),We(Se.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on(Qn,On),contextClick:on(Qn,On)})}function ri(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Wi(1),Wi(2),Wi(3),Wi(4))),We("ContextMenuButton",We(Se.s_,"Horizontal",oi(null),oi([2,4]),oi([4,4])))]}function Zn(On,Qn){return Qn||(Qn="figure"),We(Se.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.fill="dodgerblue",mouseLeave:(si,ei)=>ei.fill="lightgray",click:on(Qn,On),contextClick:on(Qn,On)})}qe.current.nodeTemplate.contextMenu=We("ContextMenu",We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Rectangle"),Zn("RoundedRectangle"),Zn("Ellipse"),Zn("Diamond"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Parallelogram2"),Zn("ManualOperation"),Zn("Procedure"),Zn("Cylinder1"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Terminator"),Zn("CreateRequest"),Zn("Document"),Zn("TriangleDown"))),xi(),Zi(),ri()),qe.current.groupTemplate=We(Se.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Se.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(On,Qn)=>{var si=Qn.addMembers(Qn.diagram.selection,!0);si||Qn.diagram.currentTool.doCancel()},avoidable:!1},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),We(Se.s_,"Auto",{name:"BODY"},We(Se.bn,{parameter1:10,fill:Nn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("fill"),new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.Vm,{background:"transparent",margin:20})),We(Se.al,{alignment:Se.z6.Top,alignmentFocus:Se.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Se.KX("text"),new Se.KX("stroke","color"))),qe.current.groupTemplate.selectionAdornmentTemplate=We(Se.uz,"Spot",We(Se.s_,"Auto",We(Se.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),We(Se.Vm,{margin:1.5})),pr({alignment:Se.z6.TopRight,alignmentFocus:Se.z6.BottomRight})),qe.current.groupTemplate.contextMenu=We("ContextMenu",xi(),Zi(),ri()),qe.current.linkTemplate=We(Se.rU,{layerName:"Foreground",routing:Se.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Se.KX("fromSpot","fromSpot",Se.z6.parse),new Se.KX("toSpot","toSpot",Se.z6.parse),new Se.KX("fromShortLength","dir",On=>On>=1?10:0),new Se.KX("toShortLength","dir",On=>On>=1?10:0),new Se.KX("points").makeTwoWay(),We(Se.bn,{strokeWidth:2},new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,0),segmentOrientation:Se.rU.OrientAlong,alignmentFocus:Se.z6.Right,figure:"circle",width:10,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On===1)),We(Se.bn,{segmentIndex:-1,segmentOffset:new Se.E9(-10,6),segmentOrientation:Se.rU.OrientPlus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On>=1),new Se.KX("width","thickness",On=>7+3*On),new Se.KX("height","thickness",On=>7+3*On),new Se.KX("segmentOffset","thickness",On=>new Se.E9(-15,4+1.5*On))),We(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,-6),segmentOrientation:Se.rU.OrientMinus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On===2),new Se.KX("width","thickness",On=>7+3*On),new Se.KX("height","thickness",On=>7+3*On),new Se.KX("segmentOffset","thickness",On=>new Se.E9(-15,4+1.5*On))),We(Se.al,{alignmentFocus:new Se.z6(0,1,-4,0),editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),qe.current.linkTemplate.selectionAdornmentTemplate=We(Se.uz,We(Se.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ur(2)},new Se.KX("pathPattern","thickness",ur)),pr({alignmentFocus:new Se.z6(0,0,-6,-4)}));function ur(On){return We(Se.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(On+4).toString()+" H3"})}function Yr(On){var Qn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return On===0?Qn="M0 0 M16 16 M0 8 L16 8":On===2&&(Qn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),We(Se.bn,{geometryString:Qn,margin:2,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on("dir",On),contextClick:on("dir",On)})}function br(On){var Qn=(si,ei)=>{si.handled=!0,si.diagram.model.commit(Li=>{var hr=ei.part.adornedPart;Li.set(hr.data,On?"toSpot":"fromSpot",Se.z6.stringify(Se.z6.AllSides)),(On?hr.toNode:hr.fromNode).invalidateConnectedLinks()})};return We(Se.bn,{width:12,height:12,fill:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:Qn,contextClick:Qn})}function mn(On,Qn){var si=0,ei=Se.z6.RightSide;On.equals(Se.z6.Top)?(si=270,ei=Se.z6.TopSide):On.equals(Se.z6.Left)?(si=180,ei=Se.z6.LeftSide):On.equals(Se.z6.Bottom)&&(si=90,ei=Se.z6.BottomSide),Qn||(si-=180);var Li=(hr,Vi)=>{hr.handled=!0,hr.diagram.model.commit(Yi=>{var fr=Vi.part.adornedPart;Yi.set(fr.data,Qn?"toSpot":"fromSpot",Se.z6.stringify(ei)),(Qn?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return We(Se.bn,{alignment:On,alignmentFocus:On.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:si,background:"transparent",mouseEnter:(hr,Vi)=>Vi.background="dodgerblue",mouseLeave:(hr,Vi)=>Vi.background="transparent",click:Li,contextClick:Li})}qe.current.linkTemplate.contextMenu=We("ContextMenu",Zi(),ri(),We("ContextMenuButton",We(Se.s_,"Horizontal",Yr(0),Yr(1),Yr(2))),We("ContextMenuButton",We(Se.s_,"Horizontal",We(Se.s_,"Spot",br(!1),mn(Se.z6.Top,!1),mn(Se.z6.Left,!1),mn(Se.z6.Right,!1),mn(Se.z6.Bottom,!1)),We(Se.s_,"Spot",{margin:new Se.Zt(0,0,0,2)},br(!0),mn(Se.z6.Top,!0),mn(Se.z6.Left,!0),mn(Se.z6.Right,!0),mn(Se.z6.Bottom,!0)))));const er=`{ "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 cr=["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 Mi(On){return console.log("shapeName:",On),cr.indexOf(On)>=0}var sn=new Se.YI(Jn.current,{maxSelectionCount:1,linkTemplate:We(Se.rU,{locationSpot:Se.z6.Center,selectionAdornmentTemplate:We(Se.uz,"Link",{locationSpot:Se.z6.Center},We(Se.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),We(Se.bn,{toArrow:"Standard",stroke:null}))},{routing:Se.rU.AvoidsNodes,curve:Se.rU.JumpOver,corner:5,toShortLength:4},new Se.KX("points"),We(Se.bn,{isPanelMain:!0,strokeWidth:2}),We(Se.bn,{toArrow:"Standard",stroke:null})),model:new Se.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Se.bn.getFigureGenerators().toArray().map(On=>({text:"\u672A\u547D\u540D",size:"100 100",figure:On.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return qe.current.addDiagramListener("TextEdited",function(On){var Qn;const si=On.subject.part;var ei=(Qn=document.activeElement)==null?void 0:Qn.value;typeof ei=="string"&&ei.trim()===""&&qe.current.model.commit(function(Li){Li.set(si.data,"text","\u672A\u547D\u540D"),qe.current.commandHandler.stopCommand()},"increment")}),sn.nodeTemplate=We(Se.NB,"Auto",{locationSpot:Se.z6.Center},new Se.KX("location","location",Se.E9.parse).makeTwoWay(Se.E9.stringify),We(Se.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 Se.KX("stroke").makeTwoWay(),new Se.KX("fill").makeTwoWay(),new Se.KX("figure")),We(Se.al,{margin:new Se.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Se.$u(16,16),maxSize:new Se.$u(10,NaN),textAlign:"center",editable:!0},new Se.KX("key").makeTwoWay())),setTimeout(()=>{qe.current.grid=We(Se.s_,"Grid",We(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),We(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),qe.current.grid.visible=!0,qe.current.grid.gridCellStroke="darkgray",qe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=qe.current,qe.current}const ir=()=>ue(this,null,function*(){var We,Nn=qe.current.makeImage();const ti=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Nn.src,file_data:JSON.stringify({login:(We=(0,Be.eY)())==null?void 0:We.login,data:JSON.parse(qe.current.model.toJson())})}});en({src:ti.url})});return(0,Ft.useEffect)(()=>(setTimeout(()=>{dr()},500),Xi(Bn+1),()=>{qe.current=null}),[]),Te.createElement("div",{ref:bn,className:hi.current?`${Xe.maxH60} body-overflow-initial`:"body-overflow-initial"},Te.createElement(fe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Te.createElement(pe.Z,null,Te.createElement(se.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Te.createElement(se.Z,{onClick:()=>{var We,Nn,ti=qe.current.selection.first();if(hi.current=!hi.current,document.activeElement&&ti){let pr=(Nn=(We=document.activeElement)==null?void 0:We.value)==null?void 0:Nn.trim();typeof pr=="string"&&qe.current.model.commit(function(on){on.set(ti.data,"text",pr||"\u672A\u547D\u540D"),qe.current.commandHandler.stopCommand()},"increment")}Xi(Bn+1)}},Te.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:dn},Te.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Xe.flowChartWrp},Te.createElement("div",{style:{display:"flex",height:"100%"}},Te.createElement("div",{style:{width:"300px",height:"100%"}},Te.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Te.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xe.myPaletteDiv,ref:Jn})),Te.createElement("div",{style:{flex:1,position:"relative"}},Te.createElement("div",{ref:zn,style:{height:"80vh"}}))),Te.createElement("div",{className:"tr"},Te.createElement(Ut.ZP,{size:"large",onClick:ir,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var he=$t,ye=Rt(5112),Qt=Rt(5871);const Wt=ye.ZP.Group,Bt={margin:"0 8px"};var te=({callback:dn,onCancel:en})=>{function qe(zn){dn(zn)}return Ft.createElement(Lt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:qe},Ft.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ft.createElement("span",{style:Bt},"\u5355\u5143\u683C\u6570\uFF1A"),Ft.createElement("span",{style:Bt},"\u884C\u6570"),Ft.createElement(Lt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ft.createElement(Qt.Z,null)),Ft.createElement("span",{style:Bt},"\u5217\u6570"),Ft.createElement(Lt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ft.createElement(Qt.Z,null))),Ft.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ft.createElement("span",{style:Bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ft.createElement(Lt.default.Item,{name:"align"},Ft.createElement(Wt,null,Ft.createElement(ye.ZP,{value:"default"},Ft.createElement("i",{className:"fa fa-align-justify"})),Ft.createElement(ye.ZP,{value:"left"},Ft.createElement("i",{className:"fa fa-align-left"})),Ft.createElement(ye.ZP,{value:"center"},Ft.createElement("i",{className:"fa fa-align-center"})),Ft.createElement(ye.ZP,{value:"right"},Ft.createElement("i",{className:"fa fa-align-right"}))))),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ut.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},ge=Rt(78673),Jt=Rt(80727),Ie=Rt.n(Jt),Je=(0,Ft.forwardRef)(({use3d:dn,width:en,height:qe,callback:zn,showSaveButton:Jn},hi)=>{const bn=(0,Ft.useRef)(),Bn=(0,Ft.useRef)(),[Xi,dr]=(0,Ft.useState)(!1),ir=(0,Ft.useRef)({id:bn,appName:"graphing",width:en||1e3,height:qe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ft.useEffect)(()=>{Bn.current=new(Ie())(ir.current,!0),window.onload=function(){Bn.current.inject("applet_container")}},[]);const We=()=>{var Nn=window.ggbApplet.getPNGBase64(1,!0,72);return zn&&zn(Nn),Nn};return(0,Ft.useEffect)(()=>{ir.current.appName=Xi?"3D":"graphing",Bn.current.inject("applet_container")},[Xi]),(0,Ft.useEffect)(()=>{dr(dn)},[dn]),(0,Ft.useImperativeHandle)(hi,()=>({getImgData:We})),Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:bn}),Ft.createElement(pe.Z,{align:"middle"},Ft.createElement(se.Z,{flex:1},Ft.createElement(ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Xi,onChange:Nn=>dr(Nn)})),Ft.createElement(se.Z,null,Ft.createElement(Ut.ZP,{size:"large",onClick:We,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ze=Rt(41588),nn=Rt(8591);const fn="link",An="upload-image",En="add-flowchart",Dn="draw-image",ii="add-flowchart",mi="code-block",Ti="add-table",Oi="------------",ki={default:Oi,left:`:${Oi}`,center:`:${Oi}:`,right:`${Oi}:`};var pi=Rt(58856);function Bi(){}let Or=0;const yr=1e4,lr="\u2581",Si="@\u2581\u2581@",ee="@\u2581@",Ds=`
**\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`,mr=["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 ms(dn){return/^\d+$/.test(dn)?`${dn}px`:dn}const Do=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Oo={[Do+"-B"]:"bold",[Do+"-I"]:"italic"},Gr={[fn]:"\u6DFB\u52A0\u94FE\u63A5",[mi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[An]:"\u6DFB\u52A0\u56FE\u7247",[Dn]:"\u6DFB\u52A0\u753B\u56FE",[En]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ti]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var sa=({defaultValue:dn="",onChange:en,width:qe="100%",height:zn=400,miniToolbar:Jn=!1,isFocus:hi=!1,watch:bn,insertTemp:Bn,mode:Xi="markdown",id:dr="markdown-editor-id",showResizeBar:ir=!1,noStorage:We=!1,showNullButton:Nn=!1,showNullProgramButton:ti=!1,hidetoolBar:pr=!1,fullScreen:on=!1,onBlur:Cn,onCMBeforeChange:xi,onFullScreen:Zi,className:Wi="",disablePaste:oi=!1,disabled:ri=!1,disabledFill:Zn=!1,placeholder:ur="",values:Yr="",extraUse:br})=>{const[mn,er]=(0,Ft.useState)(null),[cr,Mi]=(0,Ft.useState)(dn),[sn,On]=(0,Ft.useState)(bn),[Qn,si]=(0,Ft.useState)(on),[ei,Li]=(0,Ft.useState)(""),[hr,Vi]=(0,Ft.useState)(0),[Yi,fr]=(0,Ft.useState)(zn),[vn,Qi]=(0,Ft.useState)(!1),[gn,qi]=(0,Ft.useState)(0),[Io,Kr]=(0,Ft.useState)(0),Zo=(0,Ft.useRef)(),Xr=(0,Ft.useRef)(),Ri=(0,Ft.useRef)(),Cr=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{const vi=window.scrollY||window.pageYOffset;Mi(Yr),mn==null||mn.setValue(Yr),window.scrollTo(0,vi)},[Yr]),(0,Ft.useEffect)(()=>{Zi==null||Zi(Qn)},[Qn]),(0,Ft.useEffect)(()=>{if(Zo.current){let vi=function(xn,ai){var zi;if(oi){ai.preventDefault();return}const jr=ai.clipboardData;if(jr){const Qr=jr.types.toString(),Ur=jr.items;if(Qr==="Files"||jr.types.indexOf("Files")>-1){if(ai.preventDefault(),Xi=="stex")return;try{let mo=Ur[1];((zi=Ur[0])==null?void 0:zi.kind)==="file"&&(mo=Ur[0]);const Jr=mo.getAsFile(),Ca=Jr.name.split(".").pop();(0,me.I)(Jr,Is=>{var Ol,$e,Es;Is.id?((Ol=Jr==null?void 0:Jr.type)==null?void 0:Ol.indexOf("image"))>-1?qn.replaceSelection(`<img width="100%" src="/api/attachments/${Is.id}?type=${Is.content_type})" alt="" />`):(($e=Jr==null?void 0:Jr.type)==null?void 0:$e.indexOf("video"))>-1?qn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Is.id}"></video>`):((Es=Jr==null?void 0:Jr.type)==null?void 0:Es.indexOf("pdf"))>-1?qn.replaceSelection(`<a href="/api/attachments/${Is.id}?type=${Jr.type}&disposition=inline" target="_blank">${Jr.name}</a>`):mr.includes(Ca)?qn.replaceSelection(`<a href="/api/attachments/${Is.id}?type=office&disposition=inline" target="_blank">${Jr.name}</a>`):qn.replaceSelection(`[${Jr.name}](/api/attachments/${Is.id}?type=${Is.content_type})`):(Is==null?void 0:Is.status)===401&&(document.location.href="/user/login")})}catch(mo){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const qn=rt().fromTextArea(Zo.current,{mode:Xi,lineNumbers:!Jn,lineWrapping:!0,value:dn,autoCloseTags:!0,autoCloseBrackets:!0});return qn.on("keyup",function(xn,ai){ai.keyCode===8&&(xn.getValue()==""?qn.setOption("placeholder",ur):qn.setOption("placeholder",null))}),qn.on("keydown",function(xn,ai){if(ai.keyCode===8){var zi=uo(xn);zi&&ai.preventDefault()}}),hi&&qn.focus(),qn.on("paste",vi),ri&&qn.on("beforeChange",function(xn,ai){(ai.origin==="paste"||ai.origin==="+input")&&ai.cancel()}),er(qn),()=>{qn.off("paste",vi)}}},[]);const ba=(0,Ft.useCallback)(()=>{if(Xr.current)try{}catch(vi){console.log(vi,"---- to set md editor body height")}},[Yi,Xr,Qn]);(0,Ft.useEffect)(()=>{function vi(){let qn=new kt.Z(xn=>{for(let ai of xn)(ai.target.offsetHeight>0||ai.target.offsetWidth>0)&&(ba(),mn.setSize("100%","100%"),mn.refresh())});return qn.observe(Zo.current.parentElement),qn}if(mn){const qn=vi();return()=>{var xn,ai;(xn=Zo.current)!=null&&xn.parentElement&&qn.unobserve((ai=Zo.current)==null?void 0:ai.parentElement)}}},[mn,ba]),(0,Ft.useEffect)(()=>{if(mn){let vi=[];for(const[qn,xn]of Object.entries(Oo)){let ai={[qn]:()=>{Rn(xn)}};vi.push(ai),mn.addKeyMap(ai)}return()=>{for(let qn of vi)mn.removeKeyMap(qn)}}},[mn]),(0,Ft.useEffect)(()=>{on!==Qn&&si(on)},[on]),(0,pi.Z)(()=>{if(!We&&hr>0){let vi=new Date().getTime(),qn=window.sessionStorage.getItem(dr);vi>=hr+yr&&(!qn||qn!==cr)&&(window.sessionStorage.setItem(dr,cr),Qi(!0))}},yr),(0,Ft.useEffect)(()=>{On(bn)},[mn,bn]),(0,Ft.useEffect)(()=>{mn&&hi&&mn.focus()},[mn,hi]),(0,Ft.useEffect)(()=>{if(sn&&mn){let vi=function(xn){let ai=xn.target;if(Cr.current){let zi=ai.scrollTop/ai.scrollHeight;Cr.current.scrollTop=Cr.current.scrollHeight*zi}};const qn=mn.getScrollerElement();return qn.addEventListener("scroll",vi),()=>{qn.removeEventListener("scroll",vi)}}},[mn,sn]),(0,Ft.useEffect)(()=>{if(mn&&xi){let vi=function(qn,xn){xi(qn,xn)};return mn.on("beforeChange",vi),()=>{mn.off("beforeChange",vi)}}},[mn,xi]),(0,Ft.useEffect)(()=>{if(mn&&Cn){let vi=function(){Cn(mn.getValue())};return mn.on("blur",vi),()=>{mn.off("blur",vi)}}},[mn,Cn]);function uo(vi,qn){var xn=vi.getDoc(),ai=xn.getCursor(),zi=xn.getLine(ai.line),jr=zi.charAt(ai.ch-1),Qr=zi.lastIndexOf("@\u2581@",ai.ch),Ur=zi.lastIndexOf("@\u2581\u2581@",ai.ch),mo=Qr>Ur?Qr:Ur,Jr=Qr>Ur?3:4;if(Si.indexOf(jr)===-1)return null;if(console.log("change1:",qn,vi,zi,ai,mo,Qr,Ur,jr),mo>=0&&ai.ch-mo<5){var Ca=mo+Jr;return xn.replaceRange("",{line:ai.line,ch:mo},{line:ai.line,ch:Ca}),{line:ai.line,ch:Ca}}return null}(0,Ft.useEffect)(()=>{if(mn){let vi=function(qn,xn){const ai=qn.getValue();Mi(ai),Vi(new Date().getTime()),qn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(ti?en(ai,ec(ai)):en(ai))};return mn.on("change",vi),()=>{mn.off("change",vi)}}},[mn,en]),(0,Ft.useEffect)(()=>{if(mn)if(dn==null)mn.setValue(""),Mi("");else{const vi=window.scrollY||window.pageYOffset;dn!==mn.getValue()&&(mn.setValue(dn),Mi(dn),mn.setCursor(ri?1:mn.lineCount(),0),window.scrollTo(0,vi))}},[mn,dn]);const Rn=(0,Ft.useCallback)(vi=>{const qn=mn.getCursor(),xn=mn.getSelection();let ai=xn.split(`
`);switch(vi){case"bold":return mn.replaceSelection("**"+xn+"**"),xn===""&&mn.setCursor(qn.line,qn.ch+2),mn.focus();case"italic":return mn.replaceSelection("*"+xn+"*"),xn===""&&mn.setCursor(qn.line,qn.ch+1),mn.focus();case"code":return mn.replaceSelection("`"+xn+"`"),xn===""&&mn.setCursor(qn.line,qn.ch+1),mn.focus();case"inline-latex":return Li("inline-latex"),mn.focus();case"latex":return mn.replaceSelection("```latex\n"+xn+"\n```"),mn.setCursor(qn.line+1,xn.length+1),mn.focus();case"line-break":return mn.replaceSelection(`<br/>
`),mn.focus();case"list-ul":return xn===""?mn.replaceSelection("- "+xn):mn.replaceSelection(ai.map(zi=>zi===""?"":`- ${zi}`).join(`
`)),mn.focus();case"list-ol":return xn===""?mn.replaceSelection("1. "+xn):mn.replaceSelection(ai.map((zi,jr)=>zi===""?"":`${jr+1}. ${zi}`).join(`
`)),mn.focus();case"add-null-ch":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(lr),mn.focus();case"add-signal":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(ee),mn.focus();case"add-multiple":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(Si),mn.focus();case"inster-template-1":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(Ds),mn.focus();case"eraser":return mn.setValue(""),mn.focus();case"trigger-watch":return On(!sn),mn.focus();case"trigger-full-screen":return si(!Qn),mn.focus();case fn:Li(fn);return;case mi:Li(mi);return;case An:Li(An);return;case Dn:Li(Dn);return;case"maths-latex":Li("maths-latex");return;case En:Li(En);return;case Ti:Li(Ti);return;default:throw new Error}},[mn,sn,Qn]),Ee=(0,Ft.useCallback)((vi,qn)=>{var xn,ai,zi,jr,Qr,Ur;switch(Li(""),ei){case fn:const{title:Ol,link:$e}=vi;return mn.replaceSelection(`[${Ol}](${$e})`),mn.focus();case mi:const{language:Es,content:Pu}=vi;return mn.replaceSelection(["```"+Es,Pu,"```"].join(`
`)),mn.focus();case"maths-latex":for(var mo=atob(vi),Jr=new Uint8Array(mo.length),Ca=0;Ca<mo.length;Ca++)Jr[Ca]=mo.charCodeAt(Ca);var Is=new Blob([Jr],{type:"image/png"});(0,me.I)(Is,Jo=>{Jo.id?mn.replaceSelection(`![,](/api/attachments/${Jo.id}?type=${Jo.content_type})`):(Jo==null?void 0:Jo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":mn.replaceSelection("`$$"+vi+"$$`");break;case An:case Dn:case ii:const{src:Ba,alt:Cu}=vi,qr=qn,$a=(zi=(ai=(xn=qr==null?void 0:qr.name)==null?void 0:xn.split("."))==null?void 0:ai.pop)==null?void 0:zi.call(ai);return((jr=qr==null?void 0:qr.type)==null?void 0:jr.indexOf("image"))>-1||!(qr!=null&&qr.type)?qr!=null&&qr.align||qr!=null&&qr.width?mn.replaceSelection(`<p style="text-align:${qr.align||"initial"}"><img width="${qr.width?qr.width+"%":"initial"}" src="${Ba}" alt="${Cu||""}" /></p>`):mn.replaceSelection(`<img width="100%" src="${Ba}" alt="${Cu||""}" />`):((Qr=qr==null?void 0:qr.type)==null?void 0:Qr.indexOf("video"))>-1?mn.replaceSelection(`<video width="100%" controls src="${Ba}"></video>`):((Ur=qr==null?void 0:qr.type)==null?void 0:Ur.indexOf("pdf"))>-1?mn.replaceSelection(`<a href="${Ba}?type=${qr.type}&disposition=inline" target="_blank">${qr.name}</a>`):mr.includes($a)?mn.replaceSelection(`<a href="${Ba}?type=office&disposition=inline" target="_blank">${qr.name}</a>`):mn.replaceSelection(`[${qr.name}](${Ba})`),mn.focus();case Ti:const{row:tl,col:xr,align:Eo}=vi;let Eu=`
`;for(let Jo=0;Jo<tl;Jo++){let ch=[],la=[];for(let Yn=0;Yn<xr;Yn++)Jo===1&&la.push(ki[Eo]),ch.push(" ");Jo===1&&(Eu+=`| ${la.join(" | ")} |
`),Eu+=`| ${ch.join(xr===1?"":" | ")} |
`}return mn.replaceSelection(Eu+`
`),mn.focus();default:throw new Error}},[mn,ei]),jo=(0,Ft.useMemo)(()=>{switch(ei){case fn:return Ft.createElement(Me,{callback:Ee,onCancel:Qo});case mi:return Ft.createElement(ke.Z,{callback:Ee,onCancel:Qo});case An:return Ft.createElement(me.Z,{callback:Ee,onCancel:Qo});case En:return Ft.createElement(he,{callback:Ee,onCancel:Qo});case Ti:return Ft.createElement(te,{callback:Ee,onCancel:Qo});case"maths-latex":return Ft.createElement(Je,{showSaveButton:!0,callback:Ee});case"inline-latex":return Ft.createElement(Ze.Z,{showSaveButton:!0,callback:Ee});default:return null}},[ei]);function Qo(){Li("")}(0,Ft.useEffect)(()=>{if(Ri.current){let vi=function(Qr){zi=!0,jr=Qr.pageY},qn=function(){zi=!1},xn=function(Qr){if(zi){let Ur=Qr.pageY-jr;Ur<0&&(Ur=0),Ur>300&&(Ur=300);let mo=zn+Ur+"px";fr(mo)}},ai=Ri.current,zi=!1,jr=0;return ai.addEventListener("mousedown",vi),document.addEventListener("mousemove",xn),document.addEventListener("mouseup",qn),()=>{ai.removeEventListener("mousedown",vi),document.removeEventListener("mousemove",xn),document.removeEventListener("mouseup",qn)}}},[mn,Ri]),(0,Ft.useEffect)(()=>{fr(zn)},[zn]);const Tl=ms(qe),Pa=ms(Yi),_l={width:Tl,height:Pa},bu=(0,Ft.useMemo)(()=>{if(hr){let vi=new Date(hr),qn=vi.getHours(),xn=vi.getMinutes(),ai=vi.getSeconds();return qn=qn<10?"0"+qn:qn,xn=xn<10?"0"+xn:xn,ai=ai<10?"0"+ai:ai,`${qn}:${xn}:${ai}`}return 0},[hr]),ec=vi=>{const qn=[];if(ti){let xn=-1;vi=vi.replace(/(@▁▁@|@▁@)/g,function(ai,zi,jr){qn.push({multiLine:ai!==ee})})}return qn};function nc(){window.sessionStorage.removeItem(dr),Qi(!1),Vi(0)}function Er(){Qi(!1),Vi(0),mn.setValue(window.sessionStorage.getItem(dr))}(0,Ft.useEffect)(()=>{Gr[ei]&&ei!==Dn&&ei!==En&&setTimeout(()=>{const vi=document.getElementsByClassName("markdown-popup-form")[0],qn=window.innerWidth/2-vi.offsetWidth/2,xn=window.innerHeight/2-vi.offsetHeight/2;qi(qn),Kr(xn)},0)},[ei]);const Zr=vi=>{vi.preventDefault();const qn=vi.clientX-gn,xn=vi.clientY-Io;document.body.onmousemove=ai=>{let zi=ai.clientX-qn,jr=ai.clientY-xn;const Qr=document.getElementsByClassName("markdown-popup-form")[0],Ur=window.innerWidth-Qr.offsetWidth,mo=window.innerHeight-Qr.offsetHeight;zi=Math.max(0,Math.min(zi,Ur)),jr=Math.max(0,Math.min(jr,mo)),aa(ai.clientX,ai.clientY,qn,xn)&&(qi(zi),Kr(jr))},document.body.onmouseup=function(){document.body.onmousemove=null}},aa=(vi,qn,xn,ai)=>{const zi=document.body.clientHeight,jr=document.body.clientWidth;return vi<20&&xn>vi||vi>jr-20&&xn<vi||qn<20&&ai>qn||qn>zi-20&&ai<qn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:"markdown-editor-wrapper",ref:Xr},Ft.createElement("div",{className:`markdown-editor-container ${Wi} ${sn?"on-preview":""} ${Jn?"mini":""} ${Qn?"full-screen":""}`,style:_l},Ft.createElement(Mt,{insertTemp:Bn,watch:sn,fullScreen:Qn,showNullButton:Nn,showNullProgramButton:ti,onActionCallback:Rn,hidetoolBar:pr,extraUse:br}),Ft.createElement("div",{className:"markdown-editor-body"},Ft.createElement("div",{className:"codemirror-container"},Ft.createElement("textarea",{ref:Zo,placeholder:ur})),sn?Ft.createElement("div",{ref:Cr,className:"preview-container"},Xi==="stex"&&Ft.createElement(ft,{value:cr}),Xi!=="stex"&&Ft.createElement(dt.Z,{disabledFill:Zn,showProgramFill:ti,value:cr})):null))),ir?Ft.createElement("a",{ref:Ri,className:"editor-resize"}):null,ei===Dn&&Ft.createElement(He,{callback:Ee,onCancel:Qo}),ei===En&&Ft.createElement(he,{callback:Ee,onCancel:Qo}),Ft.createElement(jt.Z,null,Gr[ei]&&ei!==Dn&&ei!==En?Ft.createElement(fe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:gn,top:Io},title:Ft.createElement("div",{style:{cursor:"move"},onMouseDown:Zr},Gr[ei]),open:!0,onCancel:Qo,footer:null,destroyOnClose:!0,width:ei===En?"1200px":null,height:ei===En?"80vh":null,className:"markdown-popup-form"},jo):null))}},28451:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return At},I:function(){return Mt}});var Ft=Rt(78241),ie=Rt(8591),rt=Rt(92832),kt=Rt(81327),Ct=Rt(5871),St=Rt(5112),pt=Rt(3113),vt=Rt(77903),yt=Rt(59301),xt=Rt(59301),dt=Object.defineProperty,ft=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ot=(jt,Lt,It)=>Lt in jt?dt(jt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:It}):jt[Lt]=It,it=(jt,Lt)=>{for(var It in Lt||(Lt={}))E.call(Lt,It)&&ot(jt,It,Lt[It]);if(lt)for(var It of lt(Lt))z.call(Lt,It)&&ot(jt,It,Lt[It]);return jt},at=(jt,Lt)=>ft(jt,ct(Lt));const{useForm:ut}=Ft.default,wt={width:280,marginRight:10},Et={labelCol:{span:5},wrapperCol:{span:19}};var At=({callback:jt,onCancel:Lt})=>{const[It]=ut();let Ut=(0,yt.useRef)();function Xt(Ht){Ut.current.width=It.getFieldValue("width"),Ut.current.align=It.getFieldValue("align"),jt(Ht,Ut.current)}function Gt(Ht,ne){if(Ht.status===-1){ie.ZP.error(Ht.message);return}It.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:ne.type})}function Yt(Ht){let ne=Ht.target.files[0];Ut.current=ne,Mt(ne,Gt)}return xt.createElement(Ft.default,at(it({form:It},Et),{className:"upload-image-panel",onFinish:Xt,style:{width:470,overflow:"hidden"}}),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},xt.createElement("div",{className:"flex-container"},xt.createElement(Ft.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},xt.createElement(rt.default,{style:wt})),xt.createElement(_t,{onFileChange:Yt}))),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},xt.createElement(rt.default,{style:{width:264}})),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},xt.createElement(kt.Z,null,xt.createElement(Ft.default.Item,{name:"width",style:{margin:0}},xt.createElement(Ct.Z,{style:{width:264}})),xt.createElement("span",{className:"ml8"},"%"))),xt.createElement(Ft.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},xt.createElement(St.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"}]})),xt.createElement("aside",null,xt.createElement(Ft.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},xt.createElement(pt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xt.createElement(pt.ZP,{type:"default",onClick:Lt},"\u53D6\u6D88"))))};function _t({onFileChange:jt}){return xt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",xt.createElement("input",{type:"file",onChange:jt}))}function Mt(jt,Lt){if(!jt)throw new String("\u6CA1\u6709\u6587\u4EF6");let It=new FormData;It.append("editormd-image-file",jt),It.append("file_param_name","editormd-image-file"),It.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(Xt){Lt(JSON.parse(Xt.target.responseText),jt)},!1),Ut.addEventListener("error",function(Xt){console.error(Xt)},!1),Ut.open("POST",`${vt.KI}/api/attachments.json`),Ut.send(It)}},79346:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return rt}});var Ft=Rt(59301),ie=Rt(4676);class rt extends Ft.Component{constructor(Ct){super(Ct);const St=window.document;this.node=St.createElement("div"),St.body.appendChild(this.node)}render(){const{children:Ct}=this.props;return(0,ie.createPortal)(Ct,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{SV:function(){return ue},ZP:function(){return Te}});var Ft=Rt(59301),ie=Rt(76374);const rt={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"]},kt={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"]},Ct={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(`
`)}]},St={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(`
`)}]},pt={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 vt=Rt(53184),yt=Rt.n(vt),xt=Object.defineProperty,dt=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=($t,he,ye)=>he in $t?xt($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,ot=($t,he)=>{for(var ye in he||(he={}))lt.call(he,ye)&&z($t,ye,he[ye]);if(ct)for(var ye of ct(he))E.call(he,ye)&&z($t,ye,he[ye]);return $t},it=($t,he)=>dt($t,ft(he)),at=($t,he,ye)=>new Promise((Qt,Wt)=>{var Bt=Jt=>{try{ge(ye.next(Jt))}catch(Ie){Wt(Ie)}},te=Jt=>{try{ge(ye.throw(Jt))}catch(Ie){Wt(Ie)}},ge=Jt=>Jt.done?Qt(Jt.value):Promise.resolve(Jt.value).then(Bt,te);ge((ye=ye.apply($t,he)).next())});const ut={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"]}},wt=($t,he)=>he.map(ye=>({label:ye,kind:$t.languages.CompletionItemKind.Keyword,insertText:ye})),Et=$t=>Object.keys(ut.tables).map(he=>({label:he,kind:$t.languages.CompletionItemKind.Variable,insertText:he})),At=($t,he)=>{const ye=ut.tables[$t];return ye?ye.map(Qt=>({label:Qt,kind:he.languages.CompletionItemKind.Field,insertText:Qt})):[]};function _t($t,he,ye,Qt,Wt){let Bt=he.getWordUntilPosition(ye),te={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},ge=Qt.map(Jt=>({label:Jt,kind:$t.languages.CompletionItemKind.Keyword,insertText:Jt,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:te}));return Wt.map(Jt=>{ge.push(it(ot({},Jt),{range:te}))}),ge}var Mt=$t=>{ut.languages.map(Wt=>($t.languages.registerDocumentFormattingEditProvider(Wt,{provideDocumentFormattingEdits(Bt,te,ge){return at(this,null,function*(){const Jt=yt()(Bt.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:Bt.getFullModelRange(),text:Jt}]})}}),Wt));const he=Ct.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ye=St.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Qt=kt.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet}));$t.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...Ct.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...Ct.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn};return{suggestions:[...rt.keywords.map(Jt=>({label:Jt,kind:$t.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...kt.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...kt.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...pt.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...pt.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...St.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...St.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}})};const jt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Lt=Object.defineProperty,It=($t,he,ye)=>he in $t?Lt($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,Ut=($t,he,ye)=>It($t,typeof he!="symbol"?he+"":he,ye);const Xt=class mw{constructor(he,ye,Qt){this.placeholder=he,this.editor=ye,this.monaco=Qt,ye.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mw.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)}};Ut(Xt,"ID","editor.widget.placeholderHint");var Yt=Xt,Ht=Rt(96236),ne=Rt(8591),ae=Rt(6848),ve=Rt(89392),Kt=Rt(34604),re=Rt(56102),we=Object.defineProperty,Me=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,_e=($t,he,ye)=>he in $t?we($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,je=($t,he)=>{for(var ye in he||(he={}))fe.call(he,ye)&&_e($t,ye,he[ye]);if(me)for(var ye of me(he))pe.call(he,ye)&&_e($t,ye,he[ye]);return $t},He=($t,he)=>Me($t,ke(he)),Se=($t,he)=>{var ye={};for(var Qt in $t)fe.call($t,Qt)&&he.indexOf(Qt)<0&&(ye[Qt]=$t[Qt]);if($t!=null&&me)for(var Qt of me($t))he.indexOf(Qt)<0&&pe.call($t,Qt)&&(ye[Qt]=$t[Qt]);return ye},xe=($t,he,ye)=>new Promise((Qt,Wt)=>{var Bt=Jt=>{try{ge(ye.next(Jt))}catch(Ie){Wt(Ie)}},te=Jt=>{try{ge(ye.throw(Jt))}catch(Ie){Wt(Ie)}},ge=Jt=>Jt.done?Qt(Jt.value):Promise.resolve(Jt.value).then(Bt,te);ge((ye=ye.apply($t,he)).next())});function le($t){return/^\d+$/.test($t)?`${$t}px`:$t}function Ne(){}let se=!1;const Ae={"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 Xe($t=[]){let he=$t;if(Array.isArray($t)){for(let ye=0;ye<$t.length;ye++){let Qt=Ae[$t[ye]];if(Qt)return Qt}return he[0]}return Ae[he]||he}let Be=null;var Te=$t=>{var he=$t,{width:ye="100%",height:Qt="100%",value:Wt,language:Bt="javascript",style:te={},options:ge={},overrideServices:Jt={},theme:Ie="vs-dark",onEditBlur:Ue,isCopy:Je=!1,onSave:Ze,autoHeight:nn=!1,forbidCopy:fn=!1,onChange:An=Ne,editorDidMount:En=Ne,onFocus:Dn=Ne,onBreakPoint:ii=Ne,breakPointValue:mi=[],filename:Ti="educoder.txt",errorLine:Oi,errorContent:ki="",highlightLine:pi,openBreakPoint:Bi=!1,placeholder:Or=""}=he,yr=Se(he,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const lr=(0,Ft.useRef)(),Si=(0,Ft.useRef)({}),ee=(0,Ft.useRef)(),Ds=(0,Ft.useRef)(),mr=(0,Ft.useRef)([]),ms=(0,Ft.useRef)(!1),Xs=(0,Ft.useRef)(),Do=(0,Ft.useRef)(),Oo=(0,Ft.useRef)(!1),[Gr,sa]=(0,Ft.useState)(!1);function dn(){let on;return lr.current&&(on=new ie.Z(Cn=>{for(let xi of Cn)(xi.target.offsetHeight>0||xi.target.offsetWidth>0)&&Si.current.instance.layout()}),on.observe(lr.current)),on}function en(){ne.ZP.warning({content:decodeURIComponent(jt),key:"monaco-editor-tip"})}const qe=()=>{let on=Si.current.instance;if(Wt!=null&&on&&Gr){const Cn=on.getModel();Cn&&Wt!==Cn.getValue()&&(se=!0,Cn.setValue(Wt),on.layout(),se=!1)}};(0,Ft.useEffect)(()=>{const on=Kt.Z.subscribe("formatDocument",Cn=>{var xi;let Zi=Si.current.instance;(xi=Zi==null?void 0:Zi.getAction)==null||xi.call(Zi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{An(Cn)},on},[]),(0,Ft.useEffect)(()=>{var on;let Cn=Si.current.instance;Ds.current&&clearTimeout(Ds.current),Ds.current=setTimeout(()=>{qe()},500),Wt&&(Wt!=null&&Wt.length)&&((on=Cn==null?void 0:Cn.updateOptions)==null||on.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Wt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Wt,Gr,Si.current]),(0,Ft.useEffect)(()=>{if(Oi&&Si.current&&Si.current.instance){let Cn=Si.current.instance;Cn.changeViewZones(function(xi){var Zi=document.createElement("div");Zi.style.padding="10px 20px",Zi.style.width="calc(100% - 20px)",Zi.className="my-error-line-wrp",Zi.innerHTML=ki,xi.addZone({afterLineNumber:Oi||11,heightInLines:3,domNode:Zi})});var on={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}};Cn.addOverlayWidget(on),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[Oi,Si.current,Gr]);const zn=(on="",Cn)=>{if(!on||on.trim()==="")return!0;const Zi=Si.current.instance.getModel().getLineTokens(Cn);let Wi=!1;for(let oi=0;oi<2;oi++)Zi.getStandardTokenType(oi)===1&&(Wi=!0);return Wi};(0,Ft.useEffect)(()=>{var on;const Cn=(on=Si.current)==null?void 0:on.instance;if(Cn&&Gr&&fn){const xi=Cn.onDidBlurEditorWidget(()=>{Oo.current=!1}),Zi=Cn.onDidFocusEditorText(()=>{Oo.current=!0});return()=>{xi.dispose(),Zi.dispose()}}},[Si.current,Gr,fn]),(0,Ft.useEffect)(()=>{var on;if((on=Si.current)!=null&&on.instance&&Gr&&Bi){let Cn=Si.current.instance,xi=Cn.getModel();if(!xi)return;(()=>{var Mi;let sn=[],On=[];const Qn=xi.getAllDecorations();for(let ei of Qn)ei.options.className==="highlighted-line"&&(sn.push((Mi=ei==null?void 0:ei.range)==null?void 0:Mi.startLineNumber),On.push(ei==null?void 0:ei.id));if(pi===sn[0])return;xi.deltaDecorations(On,[]);const si=xi.getLineCount();pi&&pi<=si&&(Cn.deltaDecorations([],[{range:new Be.Range(pi,1,pi,xi.getLineMaxColumn(pi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(pi))})();const Wi=(Mi=!1)=>{var sn;let On=[],Qn=[];const si=xi.getAllDecorations();for(let ei of si)ei.options.linesDecorationsClassName==="breakpoints-select"&&(On.push((sn=ei==null?void 0:ei.range)==null?void 0:sn.startLineNumber),Qn.push(ei==null?void 0:ei.id));if(Mi)return{lines:On,ids:Qn};ii(On)},oi=Mi=>xe(void 0,null,function*(){let sn={range:new Be.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xi.deltaDecorations([],[sn]),Wi()}),ri=Mi=>xe(void 0,null,function*(){let sn=[];const On=Cn.getLineDecorations(Mi);for(let Qn of On)Qn.options.linesDecorationsClassName==="breakpoints-select"&&sn.push(Qn.id);yield xi.deltaDecorations(sn,[]),Wi()}),Zn=Mi=>{let sn=Cn.getLineDecorations(Mi);for(let On of sn)if(On.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ve.isEqual)(mi,Wi(!0).lines)){xi.deltaDecorations(Wi(!0).ids,[]);const Mi=mi.map(sn=>({range:new Be.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xi.deltaDecorations([],Mi)}const ur=Cn.onDidChangeModelContent(Mi=>{let sn=Cn.getPosition();if(sn){let On=sn.lineNumber;clearTimeout(Do.current),Do.current=setTimeout(()=>{zn(xi.getLineContent(On),On)?ri(On):Zn(On)?(ri(On),oi(On)):Wi()},100)}}),Yr=Cn.onMouseDown(Mi=>{var sn,On,Qn;if(Mi.target.detail&&((Qn=(On=(sn=Mi.target)==null?void 0:sn.element)==null?void 0:On.className)!=null&&Qn.includes("line-numbers"))){let si=Mi.target.position.lineNumber;if(zn(xi.getLineContent(si),si))return;Zn(si)?ri(si):oi(si)}}),br=Mi=>{let sn={range:new Be.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mr.current=Cn.deltaDecorations(mr.current,[sn])},mn=()=>{mr.current=Cn.deltaDecorations(mr.current,[])},er=Cn.onMouseMove(Mi=>{var sn,On,Qn;if(mn(),Mi.target.detail&&((Qn=(On=(sn=Mi.target)==null?void 0:sn.element)==null?void 0:On.className)!=null&&Qn.includes("line-numbers"))){let si=Mi.target.position.lineNumber;if(zn(xi.getLineContent(si),si))return;br(si)}}),cr=Cn.onMouseLeave(()=>{mn()});return()=>{ur.dispose(),Yr.dispose(),er.dispose(),cr.dispose()}}},[Si.current,Gr,mi,pi,Bi,Bt]),(0,Ft.useEffect)(()=>{var on;(on=Si.current)!=null&&on.instance&&Bi&&Si.current.instance.setPosition({lineNumber:0,column:0})},[pi]);function Jn(){let on=Si.current.instance;if(on){const Cn=on.getSelection(),xi=Si.current.pastePos||{},Zi=new Be.Range(xi.startLineNumber||Cn.endLineNumber,xi.startColumn||Cn.endColumn,xi.endLineNumber||Cn.endLineNumber,xi.endColumn||Cn.endColumn);setTimeout(()=>{on.executeEdits("",[{range:Zi,text:""}])},300)}}function hi(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),Ze())}const bn=()=>{if(nn&&Si.current.instance){const on=Si.current.instance.getContentHeight();ti(on<Qt?Qt:on)}else ti(Qt)};function Bn(on){var Cn=document.createEvent("MouseEvents");Cn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),on.dispatchEvent(Cn)}const Xi=on=>{if(!Oo.current)return;const{keyCode:Cn,ctrlKey:xi,metaKey:Zi,target:Wi,type:oi}=on;return(oi==="paste"||(Cn===67||Cn===86)&&(Zi||xi))&&Wi.nodeName==="TEXTAREA"&&(en(),on.preventDefault()),!1};function dr(on,Cn){var xi=window.URL||window.webkitURL||window,Zi=new Blob([Cn]),Wi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Wi.href=xi.createObjectURL(Zi),Wi.download=on,Bn(Wi)}(0,Ft.useEffect)(()=>{bn()},[bn]),(0,Ft.useEffect)(()=>{lr.current&&!Gr&&Promise.all([Rt.e(8909),Rt.e(3267)]).then(Rt.bind(Rt,71448)).then(on=>{try{Be=on,Si.current.instance=Be.editor.create(lr.current,{value:Wt,language:Xe(Bt),theme:Ie,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Jt);const Cn=Si.current.instance;let Wi=[...Ht.BH._menuItems].find(ur=>ur[0]._debugName=="EditorContext")[1],oi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ri=(ur,Yr)=>{var br,mn;let er=ur._first;do Yr.includes((mn=(br=er.element)==null?void 0:br.command)==null?void 0:mn.id)&&ur._remove(er);while(er=er.next)};if(En(Cn,Be),setTimeout(()=>{bn(),Si.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{dr(Ti||"educoder.txt",Cn.getValue())}})},500),Si.current.subscription=Cn.onDidChangeModelContent(ur=>{ms.current?clearTimeout(Xs.current):(bn(),An(Cn.getValue(),ur)),Xs.current=setTimeout(()=>{ms.current=!1},500)}),window.Monaco||Mt(Be,Xe(Bt)),fn&&(ri(Wi,oi),lr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Xi),window.removeEventListener("paste",Xi),window.addEventListener("keydown",Xi),window.addEventListener("paste",Xi)),window.Monaco=Be,Ue&&Cn.onDidBlurEditorWidget(()=>{Ue(Cn.getValue())}),Dn&&Cn.onDidFocusEditorText(()=>{Dn(Cn.getValue())}),fn)try{Cn.onDidPaste(ur=>{const Yr=Cn.getSelection(),br=Si.current.pastePos||{},mn=new Be.Range(br.startLineNumber||Yr.endLineNumber,br.startColumn||Yr.endColumn,br.endLineNumber||Yr.endLineNumber,br.endColumn||Yr.endColumn);Cn.executeEdits("",[{range:ur.range,text:""}])})}catch(ur){}let Zn=dn();return Or&&typeof Or=="string"&&new Yt(Or,Cn,Be),sa(!0),()=>{const ur=Si.current.instance;ur.dispose();const Yr=ur.getModel();Yr&&Yr.dispose(),Si.current.subscription&&Si.current.subscription.dispose(),Zn.unobserve(lr.current)}}catch(Cn){}})},[]),(0,Ft.useEffect)(()=>{if(Si.current.instance&&Gr)return document.addEventListener("keydown",hi,!1),()=>{document.removeEventListener("keydown",hi)}},[Ze,Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;if(on&&Gr){let Cn=Xe(Bt);Be.editor.setModelLanguage(on.getModel(),Cn)}},[Bt,Gr]),(0,Ft.useEffect)(()=>{Si.current.instance&&Gr&&Be.editor.setTheme(Ie)},[Ie,Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;ee.current=ge,on&&Gr&&(on.updateOptions(je({},ge)),setTimeout(()=>{on.getModel().updateOptions(je({},ge))},200))},[JSON.stringify(ge),Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;on&&Gr&&on.layout()},[ye,Qt,Gr]);const[ir,We]=(0,Ft.useState)(le(ye)),[Nn,ti]=(0,Ft.useState)(le(Qt)),pr=He(je({},te),{width:ir,height:Nn,position:"relative"});return Ft.createElement("div",{className:"my-monaco-editor",ref:lr,style:pr},Je&&Ft.createElement(re.CopyToClipboard,{text:Wt,onCopy:()=>ne.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(ae.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ft.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ft.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ue({width:$t="100%",height:he="100%",original:ye,modified:Qt,language:Wt,options:Bt={}}){const te=(0,Ft.useRef)(),[ge,Jt]=(0,Ft.useState)(null);function Ie(nn){let fn;return te.current&&(fn=new ie.Z(An=>{for(let En of An)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&nn.layout()}),fn.observe(te.current)),fn}(0,Ft.useEffect)(()=>(te.current&&Promise.all([Rt.e(8909),Rt.e(9404)]).then(Rt.bind(Rt,2550)).then(nn=>{Be=nn;const fn=Be.editor.createDiffEditor(te.current,He(je({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},Bt),{wordWrap:!0}));Jt(fn);let An=Ie(fn);return()=>{fn.dispose();const En=fn.getModel();En&&En.dispose(),An.unobserve(te.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ft.useEffect)(()=>{ge&&ge.setModel({original:Be.editor.createModel(ye,Wt),modified:Be.editor.createModel(Qt,Wt)})},[ye,Qt,Wt,ge]);const Ue=le($t),Je=le(he),Ze={width:Ue,height:Je};return Ft.createElement("div",{className:"my-diff-editor",ref:te,style:Ze})}},16869:function(tn,Ke,Rt){"use strict";var Ft=Rt(38476),ie=Rt(57809),rt=Rt(78673),kt=Rt(59301);const Ct=ie.default.Option;Ke.Z=({isTheoretical:St,onFontSizeChange:pt,cmFontSize:vt,cmCodeMode:yt,autoFormat:xt,onCodeModeChange:dt,onTabToSpace:ft,onAutoFormat:ct,formatDocument:lt,className:E="",tabToSpace:z,children:ot,code_editor:it,challenge:at})=>{const ut={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return kt.createElement("div",{className:`tpi-code-setting ${E}`},kt.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),kt.createElement(ie.default,{bordered:!1,size:"small",value:yt,onChange:dt},kt.createElement(Ct,{value:"vs"},"\u767D\u8272\u80CC\u666F"),kt.createElement(Ct,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!St&&kt.createElement(kt.Fragment,null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),kt.createElement(ie.default,{bordered:!1,size:"small",value:vt,onChange:pt},kt.createElement(Ct,{value:12},"12px"),kt.createElement(Ct,{value:14},"14px"),kt.createElement(Ct,{value:16},"16px"),kt.createElement(Ct,{value:18},"18px"),kt.createElement(Ct,{value:20},"20px"),kt.createElement(Ct,{value:22},"22px"))),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"Tab\u8F6C\u6362"),kt.createElement(rt.Z,{checked:z,onChange:ft})),kt.createElement("div",{className:"file-item",onClick:lt},kt.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!St&&kt.createElement(kt.Fragment,null,kt.createElement("h3",null,"\u5FEB\u6377\u952E"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),kt.createElement("span",null,"Ctrl + S")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),kt.createElement("span",null,"F1 / Alt + F1")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),kt.createElement("span",null,"Ctrl + ]/[")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),kt.createElement("span",null,"Ctrl + Shift + \\")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),kt.createElement("span",null,"Home")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),kt.createElement("span",null,"End"))),ot),!St&&kt.createElement(kt.Fragment,null,kt.createElement("h3",null,"\u5FEB\u6377\u952E"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),kt.createElement("span",null,ut[at==null?void 0:at.difficulty])),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),kt.createElement("span",null,it==null?void 0:it.name)),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),kt.createElement("span",null,it!=null&&it.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},58856:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ie}});var Ft=Rt(59301);function ie(rt,kt){const Ct=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{Ct.current=rt}),(0,Ft.useEffect)(()=>{function St(){Ct.current()}if(kt!==null){let pt=setInterval(St,kt);return()=>clearInterval(pt)}},[kt])}},31947:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(31797),rt=Rt(5871),kt=Rt(78241),Ct=Rt(43418),St=Rt(71418),pt=Rt(1710),vt=Rt(92832),yt=Rt(95237),xt=Rt(43604),dt=Rt(3113),ft=Rt(94941),ct=Rt(61186),lt=Rt.n(ct),E=Rt(89070),z=Rt(955),ot=Rt(16209),it=Rt(24065),at=Rt(83312),ut=Rt(59301),wt=(Mt,jt,Lt)=>new Promise((It,Ut)=>{var Xt=Ht=>{try{Yt(Lt.next(Ht))}catch(ne){Ut(ne)}},Gt=Ht=>{try{Yt(Lt.throw(Ht))}catch(ne){Ut(ne)}},Yt=Ht=>Ht.done?It(Ht.value):Promise.resolve(Ht.value).then(Xt,Gt);Yt((Lt=Lt.apply(Mt,jt)).next())});const{Countdown:Et}=ie.default,At=({value:Mt,onChange:jt,MaxMinutes:Lt})=>ut.createElement(ut.Fragment,null,ut.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",ut.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",ut.createElement("br",null)),ut.createElement(rt.Z,{value:Mt,onChange:jt,min:0,precision:0,max:Lt,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Lt}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),_t=({exercise:Mt,successCb:jt,dispatch:Lt})=>{var It,Ut,Xt,Gt;const Yt=(0,E.useParams)(),[Ht]=kt.default.useForm(),ne=kt.default.useWatch("time",Ht),[ae,ve]=(0,Ft.useState)(!1),Kt=(0,Ft.useRef)(),{actionTabs:re}=Mt,[we,Me]=(0,Ft.useState)(),[,ke,me,fe]=(0,at.U)(ft.n7,{id:Yt.categoryId}),[,pe,_e]=(0,at.U)(ft.Cd,{});(0,Ft.useEffect)(()=>{Mt.actionTabs.key==="student-unlock"&&(ve(!1),Ht.resetFields())},[Mt.actionTabs.key]);const je=()=>new Promise(Be=>wt(void 0,null,function*(){var Te,ue;return Kt.current=yield(0,ot.y)({ip_limit:(Te=re==null?void 0:re.exerciseParams)==null?void 0:Te.ip_limit,ip_bind:(ue=re==null?void 0:re.exerciseParams)==null?void 0:ue.ip_bind_type}),Be()})),He=()=>wt(void 0,null,function*(){var Be,Te,ue,$t,he;yield Ht.validateFields();const ye=Ht.getFieldsValue();if(ve(!0),(((Be=re==null?void 0:re.exerciseParams)==null?void 0:Be.ip_limit)!=="no"||(Te=re==null?void 0:re.exerciseParams)!=null&&Te.ip_bind_type)&&(yield je()),(yield(0,ft.ZD)((ue=re==null?void 0:re.exerciseParams)==null?void 0:ue.id,{exercise_user_id:($t=re==null?void 0:re.exerciseParams)==null?void 0:$t.exercise_user_id,unlock_key:ye.unlock_key,time:ye.time,ip:Kt.current})).status===0){if(jt){Lt({type:"exercise/setActionTabs",payload:{}}),jt();return}const Wt=re==null?void 0:re.exerciseParams;(0,z.nr)({inner_ip:Wt.inner_ip,public_ip:Wt.public_ip,open_camera:Wt.open_camera,ip_limit:Wt.ip_limit,ip_bind:Wt.ip_bind,ip_bind_type:Wt.ip_bind_type,exercise_tips:Wt.exercise_tips,exerciseId:Wt.id,screen_open:Wt.screen_open,screen_num:Wt.screen_num,screen_sec:Wt.screen_sec,coursesId:Yt.coursesId,login:(he=(0,it.eY)())==null?void 0:he.login,history,identity_verify:Wt.identity_verify,open_phone_video_recording:Wt.open_phone_video_recording,current_status:Wt.current_status}),Lt({type:"exercise/setActionTabs",payload:{}})}ve(!1)}),Se=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Be=>ut.createElement("span",{className:Be.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Be)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Be=>ut.createElement("span",{className:Be.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Be)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],xe=((It=re==null?void 0:re.exerciseParams)==null?void 0:It.errorMessage)&&typeof((Ut=re==null?void 0:re.exerciseParams)==null?void 0:Ut.errorMessage)=="object";(0,Ft.useEffect)(()=>{Mt.actionTabs.key==="student-unlock"&&wt(void 0,null,function*(){const Be=yield _e(Yt);yield me({}),Be.status||Me(Be)})},[Mt.actionTabs.key]);const{time:le,end_time:Ne}=(we==null?void 0:we.exercise)||{},se=fe!=null&&fe.user_end_time?lt()(fe==null?void 0:fe.user_end_time).add(1,"minutes"):lt()(),Ae=lt()(fe==null?void 0:fe.user_total_end_time)>se?Math.round(lt().duration(lt()(fe==null?void 0:fe.user_total_end_time).diff(se.startOf("minute"))).asMinutes()):0,Xe=((fe==null?void 0:fe.student_left_minutes)||0)+(ne||0);return ut.createElement(ut.Fragment,null,ut.createElement(Ct.default,{width:514,centered:!0,closable:!!((Xt=re==null?void 0:re.exerciseParams)!=null&&Xt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:Mt.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{Lt({type:"exercise/setActionTabs",payload:{}})}},ut.createElement(St.Z,{spinning:ke||pe},xe&&ut.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!xe&&ut.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),xe&&ut.createElement(pt.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((Gt=re==null?void 0:re.exerciseParams)==null?void 0:Gt.errorMessage)||{}],columns:Se}),ut.createElement("div",{className:""},ut.createElement(kt.default,{form:Ht,layout:"vertical",autoComplete:"off"},ut.createElement(kt.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ut.createElement(vt.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),le!==-1?ut.createElement(ut.Fragment,null,ut.createElement(kt.default.Item,{name:"time",label:ut.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",ut.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",lt()(fe==null?void 0:fe.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},ut.createElement(At,{MaxMinutes:Ae})),ut.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ut.createElement("span",{className:"ml5"},ke||pe?"--":Xe),"\u5206\u949F",Xe!==0&&(fe==null?void 0:fe.user_end_time)&&ut.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ut.createElement("span",{className:"ml5"},lt()(fe==null?void 0:fe.user_end_time).add(ne||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):ut.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",lt()(Ne).format("YYYY-MM-DD HH:mm")))),ut.createElement(yt.Z,{justify:"space-between",align:"middle"},ut.createElement(xt.Z,null),ut.createElement(xt.Z,null,ut.createElement(dt.ZP,{loading:ae,onClick:He},"\u8FDB\u5165\u8003\u8BD5"))))))};Ke.Z=(0,E.connect)(({exercise:Mt})=>({exercise:Mt}))(_t)},34362:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ct}});var Ft=Rt(59301),ie=Rt(8591),rt=Rt(6848),kt=Rt(71418),Ct=Rt(95237),St=Rt(43604),pt=Rt(58421),vt=Rt(3113),yt=Rt(12290),xt=Rt(99064),dt=Rt(85149),ft=(E,z,ot)=>new Promise((it,at)=>{var ut=At=>{try{Et(ot.next(At))}catch(_t){at(_t)}},wt=At=>{try{Et(ot.throw(At))}catch(_t){at(_t)}},Et=At=>At.done?it(At.value):Promise.resolve(At.value).then(ut,wt);Et((ot=ot.apply(E,z)).next())}),ct=({id:E,activeDiscussIndex:z,onReplyDiscuss:ot,adminOrOperator:it})=>{const[at,ut]=(0,Ft.useState)(""),[wt,Et]=(0,Ft.useState)(!1);function At(Mt){ut(Mt)}function _t(){if(!at){ie.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}ot(E,at),ut("")}return(0,Ft.useEffect)(()=>{z!=E&&Et(!1)},[z]),Ft.createElement("div",{key:E,className:"discuss-item-editor",style:{display:z===E?"block":"none",width:"100%"}},Ft.createElement(yt.Z,{miniToolbar:!0,startInit:z===E,defaultValue:at,id:E,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:At,extraUse:it&&Ft.createElement(rt.Z,{color:"#fff",open:wt,destroyTooltipOnHide:!0,title:lt({id:E,isOpen:wt,activeDiscussIndex:z,onChange:At,setIsOpen:Et}),overlayStyle:{maxWidth:600}},Ft.createElement("a",{title:wt?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>Et(!wt)},Ft.createElement("i",{className:"iconfont icon-dianzan11"})))}),Ft.createElement("a",{onClick:_t,className:"btn-send"},"\u53D1\u9001"))};const lt=E=>{const[z,ot]=(0,Ft.useState)(!1),[it,at]=(0,Ft.useState)([]),[ut,wt]=(0,Ft.useState)(1);(0,Ft.useEffect)(()=>{E!=null&&E.isOpen?Et():(wt(1),at([]))},[E==null?void 0:E.isOpen]);const Et=()=>ft(void 0,null,function*(){ot(!0);const At=yield(0,xt.ZP)(`/api/discusses/${E==null?void 0:E.id}/recommend_answer.json`,{method:"get"});(At==null?void 0:At.status)==0&&at(At==null?void 0:At.answer),ot(!1)});return Ft.createElement(kt.Z,{spinning:z},Ft.createElement("div",{style:{color:"#000"}},Ft.createElement(dt.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(it==null?void 0:it[ut-1])||""}),Ft.createElement(Ct.Z,{justify:"end",align:"middle"},Ft.createElement(St.Z,null,Ft.createElement(pt.Z,{simple:!0,current:ut,pageSize:1,total:(it==null?void 0:it.length)||0,onChange:At=>{wt(At)}})),Ft.createElement(St.Z,null,Ft.createElement(vt.ZP,{onClick:()=>ft(void 0,null,function*(){E==null||E.onChange(it==null?void 0:it[ut-1]),E==null||E.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},37518:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{CP:function(){return rt},_V:function(){return St}});var Ft=Rt(28209),ie=Rt.n(Ft);const rt={secret:Ft.enc.Utf8.parse("0a18e199b87f1a8d"),iv:Ft.enc.Utf8.parse("6e7b11a2d8475a3c"),recordScreen1:"8Cl7udD6KTt8HPYOZOopZQ==",recordScreen2:"2OizCBkuJOsBhw8rNenXhYCv3XTIsgM5YB4rOmXz7tSksBaXYYyAirzxs7TSR1vRsyWPVAt4owje5yiTfFsxAA==",recordScreen3:"neJjLaAaeW/dFCOx/cRGopZHNvjZTB0x8p9/TcYCsAGn0mWINwybT7VQlqzmJ55DjVgOrmi/iclg/G6uBGjm/Q==",recordScreen4:"SGYXWA9MzSO+02aOU0lf0g==",recordScreen5:"oCICX8dGCYMnb+4d1CTCTQ==",recordScreen6:"5MlFeP+Uwb/T5ADmGmB6NpaUgOJy3MlJ4WpA38wds8U=",recordScreen7:"TEQF1ezPIxvVVMQNJ08HIiHpj1mXdcVt5qmr6+ALw8Y=",recordScreen8:"9a9QOkgLXlgDq14d3ZEWzA==",recordScreen9:"O0prHhH+rDoUVnpw8acqwRQvRL7fh32v1bLyv4qv71U=",recordScreen10:"nfkbhFR34HkBQLpjlbNkk3FgEdBomIsnFLVgHA1RZVBeN/H3vWJpt0re6w4cjtaKmIkNgpJhxaFgyEkcJ7Z99GCAgC0CgxaaXNQNiDmz2MygiesZVZ9laQvHFQhZehEEaFKUozvNVQMkRw0MV0eoPg==",recordScreen11:"jarJWElZmu7HFZnjOTPwNx44FImKQVf8Bx2Jrm74G44=",recordScreen12:"e7Q/zr1KcI3oVpnQ3JeDgA==",recordScreen13:"pm38jjAC3l2p/JR8E3kDWg==",recordScreen14:"/mTQurqh9htD7+PNrTooMJgdPOE914grpIKomFnikk8=",recordScreen15:"bEPsKA+wwGyQEDShAMuQmQ==",recordScreen16:"uitMDSXWhi/tOOfbtHNmyNh8e9PCLJ0naA02kzBCOD/mdg+1g9ScswIEDpdHuE1l",recordScreen17:"4+bY5u3lx+VxRA/PjP/r3Tl9C0SmKM8CRtCpmkAJq+M=",recordScreen18:"L3Tz5XdvbIAqzHw/XxJnmrx8R+v3cPrYaho0/yDug6M=",recordScreen19:"bo+SiWR7f4uhJXP1wk3oQxBEFmQdbpZPV1in12O3jaj14CuNU2kP2g2MKMTFmRqE12Di4jS3RKzRI14yWpi6Zw==",recordScreen20:"9zp6SENXwO+8GNr4+g+xIzt6s/Gf38ukabRJjhQhQoY=",recordScreen21:"9zp6SENXwO+8GNr4+g+xIy36f4lSwnfFtW0weuO6Gj8=",recordScreen22:"JrbzlyV7pBS7Yw/W1geouw==",recordScreen23:"HBRPVLqnAH9kbzQ7clr8JsTgjT3nCOaP6D+q1lrMX0T6z7vU1Nh5XljgB+Qw/Hs8",recordScreen24:"bq3vruZCtCaGLs7egAWDrgXjmyW8iQX5L+nEwqCeguM=",recordScreen25:"CjveXk9FHEWiBbhwyVRzPQ==",recordScreen26:"FxZnr4aTDDJTcRMUEb3SfA==",answer1:"YXOzThjf+mcj1OALSFqA8A==",answer2:"iyOS4uLz85NAsAWdMjWs6A==",answer3:"cnZErv6FfE02OBkLzlWAeDAW3+ysEYfgoPhcC707e9kJN3PHMP7E05NC7nRf5ESWhemykQ0Y+JYQAd1PGsIJVIZFsA7OlceUwyOfid7oTeg=",answer4:"xXjNeCMbPG5xznAfVbSmjvHn/2xVBArzvsRXJZVk7yY=",answer5:"8Cl7udD6KTt8HPYOZOopZQ==",answer6:"r4qWdIzOZoUDAHIC6Rkiz3KJVZoKCNj9MmeR76VANv90Zyj57hrKtRcOipt3SZUPfZlt17GKyBf504lj5ROxVg==",answer7:"t1d0b8j3bdsJoH9adhzqOQ==",answer8:"0TBptfONacS/9JDvt/q9BO9S0+Jv0m1glMCiAQweO4E=",answer9:"2DA7p8Fws9TWo+O5djurjrORgQjZjMrKtuIbjfCoAI8ZpLy4+sq9PFZuua40lLxjTVb7vhKqm6exT5/R19YdjnUTh6Kyt+6Px8xr6JnEHVw=",answer10:"xcjM1HNI8s6ckETto63Gq83vw68ATty2i534hkfjKAa+izWStVVH5fvCEpQxd8rYYki3IW9Qy0NU8cLJsHQXWOsYtYD70yB44qG5j3fnlDahQUcsDWEBXzx2NlAp6x5R",answer11:"0/t7yKZD1CFg6kerAPJksqJATDsJMtkB06datFVfwac=",answer12:"SJ4yd9DEs9YHnGhybPplEg=="},kt={exam:rt};function Ct(pt="",vt="exam"){const{secret:yt,iv:xt}=kt[vt];return AES.encrypt(pt,yt,{iv:xt,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function St(pt="",vt="exam"){const{secret:yt,iv:xt}=kt[vt];return Ft.AES.decrypt(pt,yt,{iv:xt,mode:ie().mode.CBC,padding:ie().pad.Pkcs7}).toString(Ft.enc.Utf8)}},4901:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{BU:function(){return ie},Dj:function(){return Ft},gH:function(){return rt},vp:function(){return kt}});function Ft(Ct){try{Ct.mozRequestFullScreen?Ct.mozRequestFullScreen():Ct.webkitRequestFullScreen&&Ct.webkitRequestFullScreen()}catch(St){console.log(St,":e")}}function ie(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const rt=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function kt(){var Ct=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,St=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Ct),window.isFullScreen?window.isFullScreen:Ct!=null}},83312:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{U:function(){return yt}});var Ft=Rt(59301),ie=Object.defineProperty,rt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,St=(xt,dt,ft)=>dt in xt?ie(xt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):xt[dt]=ft,pt=(xt,dt)=>{for(var ft in dt||(dt={}))kt.call(dt,ft)&&St(xt,ft,dt[ft]);if(rt)for(var ft of rt(dt))Ct.call(dt,ft)&&St(xt,ft,dt[ft]);return xt},vt=(xt,dt,ft)=>new Promise((ct,lt)=>{var E=it=>{try{ot(ft.next(it))}catch(at){lt(at)}},z=it=>{try{ot(ft.throw(it))}catch(at){lt(at)}},ot=it=>it.done?ct(it.value):Promise.resolve(it.value).then(E,z);ot((ft=ft.apply(xt,dt)).next())});function yt(xt,dt){const[ft,ct]=(0,Ft.useState)(dt),[lt,E]=(0,Ft.useState)(!1),[z,ot]=(0,Ft.useState)();return[ft,lt,(at,ut=!1)=>vt(this,null,function*(){const wt=ut?dt:pt(pt({},ft),at);E(!0),ct(wt);const Et=yield xt(wt);return E(!1),ot(Et),Et}),z,ot]}},85219:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{_:function(){return rt}});var Ft=Rt(59301),ie=Rt(43418);const rt=kt=>{var Ct,St;const pt=(0,Ft.useRef)([]),vt=()=>{for(const yt of pt.current)clearTimeout(yt);pt.current=[]};return(0,Ft.useEffect)(()=>{var yt,xt,dt,ft,ct,lt;if(vt(),(yt=kt==null?void 0:kt.exercise)!=null&&yt.left_time&&((dt=(xt=kt==null?void 0:kt.exercise)==null?void 0:xt.exercise_events)==null?void 0:dt.length)>0){for(const E of(ft=kt==null?void 0:kt.exercise)==null?void 0:ft.exercise_events)if(((ct=kt==null?void 0:kt.exercise)==null?void 0:ct.left_time)>(E==null?void 0:E.reminder_time)*60){let z=(((lt=kt==null?void 0:kt.exercise)==null?void 0:lt.left_time)-(E==null?void 0:E.reminder_time)*60)*1e3;z=z>2147483647?2147483647:z;const ot=setTimeout(()=>{ie.default.info({content:`${E==null?void 0:E.reminder_content}`,icon:null,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u4E86"})},z);pt.current.push(ot)}}},[(Ct=kt==null?void 0:kt.exercise)==null?void 0:Ct.left_time,(St=kt==null?void 0:kt.exercise)==null?void 0:St.exercise_events]),vt}},24768:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{AL:function(){return wt},Iy:function(){return dt},Qv:function(){return lt},ez:function(){return ut},jb:function(){return ft}});var Ft=Rt(32834),ie=Rt.n(Ft),rt=Rt(11690),kt=Rt.n(rt);let Ct=1;function St(jt,Lt){const It=jt.match(/^(\s+)(?:```)/);if(It===null)return Lt;const Ut=It[1];return Lt.split(`
`).map(Xt=>{const Gt=Xt.match(/^\s+/);if(Gt===null)return Xt;const[Yt]=Gt;return Yt.length>=Ut.length?Xt.slice(Ut.length):Xt}).join(`
`)}let pt=[],vt=["<ul>"];const yt=new(ie()).Renderer,xt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function dt(){pt.length=0,vt=["<ul>"]}const ft={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ct(jt,Lt,It,Ut){if(Lt>=jt.length||jt[Lt].level<=It)return Lt;var Xt=jt[Lt];Ut.push("<li><a href='#"+Ct+Xt.anchor+"'>"+Xt.text+"</a>"),Lt++;var Gt=[];return Lt=ct(jt,Lt,Xt.level,Gt),Gt.length>0&&(Ut.push("<ul>"),Gt.forEach(function(Yt){Ut.push(Yt)}),Ut.push("</ul>")),Ut.push("</li>"),Lt=ct(jt,Lt,It,Ut),Lt}function lt(){return ct(pt,0,0,vt),vt.push("</ul>"),vt.join("")}const E={heading(jt){const Lt=xt.exec(jt);if(Ct+=1,Lt)return{type:"heading",raw:Lt[0],depth:Lt[1].length,text:Lt[2]}},fences(jt){const Lt=this.rules.block.fences.exec(jt);if(Lt){const It=Lt[0];let Ut=St(It,Lt[3]||"");const Xt=Lt[2]?Lt[2].trim():Lt[2];if(["latex","katex","math"].indexOf(Xt)>=0){const Gt=it(),Yt=Ut;Ut=Gt,at[Gt]={type:"block",expression:Yt}}return{type:"code",raw:It,lang:Xt,text:Ut}}}},z=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ot=0;const it=()=>`__special_katext_id_${ot++}__`;let at={};function ut(){return at}function wt(){ot=0,at={}}function Et(jt){return jt=jt.replace(z,(Lt,It)=>{const Ut=it();return at[Ut]={type:"inline",expression:It},Ut}),jt}const At=yt.listitem;yt.listitem=function(jt){return At(Et(jt))};const _t=yt.paragraph;yt.paragraph=function(jt){return _t(Et(jt))};const Mt=yt.tablecell;yt.tablecell=function(jt,Lt){return Mt(Et(jt),Lt)},yt.code=function(jt,Lt,It){const Ut=(Lt||"").match(/\S*/)[0];return Ut?["latex","katex","math"].indexOf(Ut)>=0?`<p class='editormd-tex'>${jt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Lt}">${It?jt:(0,rt.escape)(jt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(It?jt:(0,rt.escape)(jt,!0))+"</code></pre>"},yt.heading=function(jt,Lt,It){let Ut=this.options.headerPrefix+It.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return pt.push({anchor:Ut,level:Lt,text:jt}),"<h"+Lt+' id="'+Ct+Ut+'">'+jt+"</h"+Lt+">"},ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),ie().use({tokenizer:E,renderer:yt}),Ke.ZP=ie()},16479:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{G:function(){return Ct},t:function(){return kt}});var Ft=Rt(7062),ie=Rt.n(Ft);const rt=null;function kt(St,pt){let vt=ie().get("__ec");vt||(vt={}),vt[St]=pt,ie().set("__ec",vt)}function Ct(St,pt){let vt=ie().get("__ec");return vt?vt[St]===void 0?pt:vt[St]:pt}},47257:function(tn){(function(Ke){(function(Rt){if(1)tn.exports=Rt();else var Ft})(function(){var Rt,Ft,ie;return function(){function rt(kt,Ct,St){function pt(xt,dt){if(!Ct[xt]){if(!kt[xt]){var ft=void 0;if(!dt&&ft)return require(xt,!0);if(vt)return vt(xt,!0);var ct=new Error("Cannot find module '"+xt+"'");throw ct.code="MODULE_NOT_FOUND",ct}var lt=Ct[xt]={exports:{}};kt[xt][0].call(lt.exports,function(E){var z=kt[xt][1][E];return pt(z||E)},lt,lt.exports,rt,kt,Ct,St)}return Ct[xt].exports}for(var vt=void 0,yt=0;yt<St.length;yt++)pt(St[yt]);return pt}return rt}()({1:[function(rt,kt,Ct){"use strict";var St=rt("./browser/client");St.Buffer=rt("buffer").Buffer,St.urllib=rt("../shims/xhr"),St.version=rt("./browser/version").version,kt.exports=St},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.slice.js");var yt=rt("assert"),xt=rt("../common/utils/checkBucketName"),dt=xt.checkBucketName,ft=Ct;function ct(E){return Array.isArray?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"}function lt(E){return E?ct(E)?E:[E]:[]}ft.useBucket=function(z){return dt(z),this.options.bucket=z,this},ft.setBucket=function(z){return dt(z),this.options.bucket=z,this},ft.getBucket=function(){return this.options.bucket},ft.deleteBucket=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("DELETE",it,"",at),At.next=3,this.request(ut);case 3:if(wt=At.sent,!(wt.status===200||wt.status===204)){At.next=6;break}return At.abrupt("return",{res:wt.res});case 6:return At.next=8,this.requestError(wt);case 8:throw At.sent;case 9:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketACL=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut){var wt,Et;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return wt=this._bucketRequestParams("PUT",it,"acl",ut),wt.headers={"x-oss-acl":at},wt.successStatuses=[200],_t.next=5,this.request(wt);case 5:return Et=_t.sent,_t.abrupt("return",{bucket:Et.headers.location&&Et.headers.location.substring(1)||null,res:Et.res});case 7:case"end":return _t.stop()}},ot,this)}));function z(ot,it,at){return E.apply(this,arguments)}return z}(),ft.getBucketACL=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("GET",it,"acl",at),ut.successStatuses=[200],ut.xmlResponse=!0,At.next=5,this.request(ut);case 5:return wt=At.sent,At.abrupt("return",{acl:wt.data.AccessControlList.Grant,owner:{id:wt.data.Owner.ID,displayName:wt.data.Owner.DisplayName},res:wt.res});case 7:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketLogging=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut){var wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return wt=this._bucketRequestParams("PUT",it,"logging",ut),Et=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(it,`</TargetBucket>
`),at&&(Et+="<TargetPrefix>".concat(at,`</TargetPrefix>
`)),Et+=`</LoggingEnabled>
</BucketLoggingStatus>`,wt.content=Et,wt.mime="xml",wt.successStatuses=[200],Mt.next=9,this.request(wt);case 9:return At=Mt.sent,Mt.abrupt("return",{res:At.res});case 11:case"end":return Mt.stop()}},ot,this)}));function z(ot,it,at){return E.apply(this,arguments)}return z}(),ft.getBucketLogging=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ut=this._bucketRequestParams("GET",it,"logging",at),ut.successStatuses=[200],ut.xmlResponse=!0,_t.next=5,this.request(ut);case 5:return wt=_t.sent,Et=wt.data.LoggingEnabled,_t.abrupt("return",{enable:!!Et,prefix:Et&&Et.TargetPrefix||null,res:wt.res});case 8:case"end":return _t.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketLogging=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("DELETE",it,"logging",at),ut.successStatuses=[204,200],At.next=4,this.request(ut);case 4:return wt=At.sent,At.abrupt("return",{res:wt.res});case 6:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut){var wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt;return pt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:for(at=at||[],yt(at.length,"rules is required"),at.forEach(function(Ht){yt(Ht.allowedOrigin,"allowedOrigin is required"),yt(Ht.allowedMethod,"allowedMethod is required")}),wt=this._bucketRequestParams("PUT",it,"cors",ut),Et=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,At=function(ne){Et+="<AllowedOrigin>".concat(ne,"</AllowedOrigin>")},_t=function(ne){Et+="<AllowedMethod>".concat(ne,"</AllowedMethod>")},Mt=function(ne){Et+="<AllowedHeader>".concat(ne,"</AllowedHeader>")},jt=function(ne){Et+="<ExposeHeader>".concat(ne,"</ExposeHeader>")},Lt=0,It=at.length;Lt<It;Lt++)Ut=at[Lt],Et+="<CORSRule>",lt(Ut.allowedOrigin).forEach(At),lt(Ut.allowedMethod).forEach(_t),lt(Ut.allowedHeader).forEach(Mt),lt(Ut.exposeHeader).forEach(jt),Ut.maxAgeSeconds&&(Et+="<MaxAgeSeconds>".concat(Ut.maxAgeSeconds,"</MaxAgeSeconds>")),Et+="</CORSRule>";return Et+="</CORSConfiguration>",wt.content=Et,wt.mime="xml",wt.successStatuses=[200],Yt.next=16,this.request(wt);case 16:return Xt=Yt.sent,Yt.abrupt("return",{res:Xt.res});case 18:case"end":return Yt.stop()}},ot,this)}));function z(ot,it,at){return E.apply(this,arguments)}return z}(),ft.getBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return ut=this._bucketRequestParams("GET",it,"cors",at),ut.successStatuses=[200],ut.xmlResponse=!0,Mt.next=5,this.request(ut);case 5:return wt=Mt.sent,Et=[],wt.data&&wt.data.CORSRule&&(At=wt.data.CORSRule,ct(At)||(At=[At]),At.forEach(function(jt){var Lt={};Object.keys(jt).forEach(function(It){Lt[It.slice(0,1).toLowerCase()+It.slice(1,It.length)]=jt[It]}),Et.push(Lt)})),Mt.abrupt("return",{rules:Et,res:wt.res});case 9:case"end":return Mt.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("DELETE",it,"cors",at),ut.successStatuses=[204],At.next=4,this.request(ut);case 4:return wt=At.sent,At.abrupt("return",{res:wt.res});case 6:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut,wt){var Et,At,_t,Mt;return pt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Et=this._bucketRequestParams("PUT",it,"referer",wt),At=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,At+=" <AllowEmptyReferer>".concat(at?"true":"false",`</AllowEmptyReferer>
`),ut&&ut.length>0){for(At+=` <RefererList>
`,_t=0;_t<ut.length;_t++)At+=" <Referer>".concat(ut[_t],`</Referer>
`);At+=` </RefererList>
`}else At+=` <RefererList />
`;return At+="</RefererConfiguration>",Et.content=At,Et.mime="xml",Et.successStatuses=[200],Lt.next=10,this.request(Et);case 10:return Mt=Lt.sent,Lt.abrupt("return",{res:Mt.res});case 12:case"end":return Lt.stop()}},ot,this)}));function z(ot,it,at,ut){return E.apply(this,arguments)}return z}(),ft.getBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ut=this._bucketRequestParams("GET",it,"referer",at),ut.successStatuses=[200],ut.xmlResponse=!0,_t.next=5,this.request(ut);case 5:return wt=_t.sent,Et=wt.data.RefererList.Referer||null,Et&&(ct(Et)||(Et=[Et])),_t.abrupt("return",{allowEmpty:wt.data.AllowEmptyReferer==="true",referers:Et,res:wt.res});case 9:case"end":return _t.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,this.putBucketReferer(it,!0,null,at);case 2:return wt.abrupt("return",wt.sent);case 3:case"end":return wt.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft._bucketRequestParams=function(z,ot,it,at){return{method:z,bucket:ot,subres:it,timeout:at&&at.timeout,ctx:at&&at.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";var vt=rt("@babel/runtime/helpers/interopRequireDefault"),yt=vt(rt("@babel/runtime/regenerator")),xt=vt(rt("@babel/runtime/helpers/asyncToGenerator"));rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.symbol.js"),rt("core-js/modules/es.symbol.description.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.to-string.js");var dt=rt("debug")("ali-oss"),ft=rt("xml2js"),ct=rt("agentkeepalive"),lt=rt("merge-descriptors"),E=rt("platform"),z=rt("utility"),ot=rt("urllib"),it=rt("./version"),at=rt("bowser"),ut=rt("../common/signUtils"),wt=rt("../common/client/initOptions"),Et=rt("../common/utils/createRequest"),At=Et.createRequest,_t=rt("../common/utils/encoder"),Mt=_t.encoder,jt=rt("../common/client/getReqUrl"),Lt=jt.getReqUrl,It=rt("../common/utils/setSTSToken"),Ut=It.setSTSToken,Xt=rt("../common/utils/retry"),Gt=Xt.retry,Yt=rt("../common/utils/isFunction"),Ht=Yt.isFunction,ne=new ct;function ae(){var ke=E.name,me=E.version;ke&&ke.toLowerCase&&ke.toLowerCase()==="ie"&&me.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function ve(){return location&&location.protocol==="https:"}function Kt(ke,me){if(ae(),!(this instanceof Kt))return new Kt(ke,me);ke&&ke.inited?this.options=ke:this.options=Kt.initOptions(ke),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ot,this.agent=this.options.agent||ne),this.ctx=me,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}kt.exports=Kt,Kt.initOptions=function(me){me.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var fe=Object.assign({secure:ve(),useFetch:!1},me);return wt(fe)};var re=Kt.prototype;re.debug=dt,lt(re,rt("./object")),lt(re,rt("./bucket")),lt(re,rt("../common/bucket/getBucketWebsite")),lt(re,rt("../common/bucket/putBucketWebsite")),lt(re,rt("../common/bucket/deleteBucketWebsite")),lt(re,rt("../common/bucket/getBucketLifecycle")),lt(re,rt("../common/bucket/putBucketLifecycle")),lt(re,rt("../common/bucket/deleteBucketLifecycle")),lt(re,rt("../common/bucket/putBucketVersioning")),lt(re,rt("../common/bucket/getBucketVersioning")),lt(re,rt("../common/bucket/getBucketInventory")),lt(re,rt("../common/bucket/deleteBucketInventory")),lt(re,rt("../common/bucket/listBucketInventory")),lt(re,rt("../common/bucket/putBucketInventory")),lt(re,rt("../common/bucket/abortBucketWorm")),lt(re,rt("../common/bucket/completeBucketWorm")),lt(re,rt("../common/bucket/extendBucketWorm")),lt(re,rt("../common/bucket/getBucketWorm")),lt(re,rt("../common/bucket/initiateBucketWorm")),lt(re,rt("./managed-upload")),lt(re,rt("../common/multipart-copy")),lt(re,rt("../common/multipart")),lt(re,rt("../common/parallel")),re.signature=function(me){return this.debug("authorization stringToSign: %s",me,"info"),ut.computeSignature(this.options.accessKeySecret,me,this.options.headerEncoding)},re._getReqUrl=Lt,re.authorization=function(me,fe,pe,_e){var je=ut.buildCanonicalString(me.toUpperCase(),fe,{headers:_e,parameters:pe});return ut.authorization(this.options.accessKeyId,this.options.accessKeySecret,je,this.options.headerEncoding)},re.request=function(){var ke=(0,xt.default)(yt.default.mark(function me(fe){var pe=this;return yt.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!this.options.retryMax){je.next=6;break}return je.next=3,Gt(we.bind(this),this.options.retryMax,{errorHandler:function(Se){var xe=function(Ne){if(fe.stream)return!1;var se=[-1,-2].includes(Ne.status),Ae=pe.options.requestErrorRetryHandle||function(){return!0};return se&&Ae(Ne)};return!!xe(Se)}})(fe);case 3:return je.abrupt("return",je.sent);case 6:return je.abrupt("return",we.call(this,fe));case 7:case"end":return je.stop()}},me,this)}));return function(me){return ke.apply(this,arguments)}}();function we(ke){return Me.apply(this,arguments)}function Me(){return Me=(0,xt.default)(yt.default.mark(function ke(me){var fe,pe,_e,je,He,Se;return yt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!(this.options.stsToken&&Ht(this.options.refreshSTSToken))){le.next=3;break}return le.next=3,Ut.call(this);case 3:return fe=At.call(this,me),this.options.useFetch||(fe.params.mode="disable-fetch"),je=!!me.stream,le.prev=6,le.next=9,this.urllib.request(fe.url,fe.params);case 9:pe=le.sent,this.debug("response %s %s, got %s, headers: %j",me.method,fe.url,pe.status,pe.headers,"info"),le.next=16;break;case 13:le.prev=13,le.t0=le.catch(6),_e=le.t0;case 16:if(!(pe&&me.successStatuses&&me.successStatuses.indexOf(pe.status)===-1)){le.next=28;break}return le.next=19,this.requestError(pe);case 19:if(He=le.sent,!(He.code==="RequestTimeTooSkewed"&&!je)){le.next=25;break}return this.options.amendTimeSkewed=+new Date(He.serverTime)-new Date,le.next=24,this.request(me);case 24:return le.abrupt("return",le.sent);case 25:He.params=me,le.next=32;break;case 28:if(!_e){le.next=32;break}return le.next=31,this.requestError(_e);case 31:He=le.sent;case 32:if(!He){le.next=34;break}throw He;case 34:if(!me.xmlResponse){le.next=39;break}return le.next=37,this.parseXML(pe.data);case 37:Se=le.sent,pe.data=Se;case 39:return le.abrupt("return",pe);case 40:case"end":return le.stop()}},ke,this,[[6,13]])})),Me.apply(this,arguments)}re._getResource=function(me){var fe="/";return me.bucket&&(fe+="".concat(me.bucket,"/")),me.object&&(fe+=Mt(me.object,this.options.headerEncoding)),fe},re._escape=function(me){return z.encodeURIComponent(me).replace(/%2F/g,"/")},re._getUserAgent=function(){var me=pt&&pt.browser?"js":"nodejs",fe="aliyun-sdk-".concat(me,"/").concat(it.version),pe=E.description;return!pe&&pt&&(pe="Node.js ".concat(pt.version.slice(1)," on ").concat(pt.platform," ").concat(pt.arch)),this._checkUserAgent("".concat(fe," ").concat(pe))},re._checkUserAgent=function(me){var fe=me.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return fe},re.checkBrowserAndVersion=function(me,fe){return at.name===me&&at.version.split(".")[0]===fe},re.parseXML=function(me){return new Promise(function(fe,pe){St.isBuffer(me)&&(me=me.toString()),ft.parseString(me,{explicitRoot:!1,explicitArray:!1},function(_e,je){_e?pe(_e):fe(je)})})},re.requestError=function(){var ke=(0,xt.default)(yt.default.mark(function fe(pe){var _e,je,He,Se;return yt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(_e=null,!(!pe.data||!pe.data.length)){le.next=5;break}pe.status===-1||pe.status===-2?(_e=new Error(pe.message),_e.name=pe.name,_e.status=pe.status,_e.code=pe.name):(pe.status===404?(_e=new Error("Object not exists"),_e.name="NoSuchKeyError",_e.status=404,_e.code="NoSuchKey"):pe.status===412?(_e=new Error("Pre condition failed"),_e.name="PreconditionFailedError",_e.status=412,_e.code="PreconditionFailed"):(_e=new Error("Unknow error, status: ".concat(pe.status)),_e.name="UnknownError",_e.status=pe.status),_e.requestId=pe.headers["x-oss-request-id"],_e.host=""),le.next=32;break;case 5:return je=String(pe.data),this.debug("request response error data: %s",je,"error"),le.prev=7,le.next=10,this.parseXML(je);case 10:if(le.t0=le.sent,le.t0){le.next=13;break}le.t0={};case 13:He=le.t0,le.next=23;break;case 16:return le.prev=16,le.t1=le.catch(7),this.debug(je,"error"),le.t1.message+=`
raw xml: `.concat(je),le.t1.status=pe.status,le.t1.requestId=pe.headers["x-oss-request-id"],le.abrupt("return",le.t1);case 23:Se=He.Message||"unknow request error, status: ".concat(pe.status),He.Condition&&(Se+=" (condition: ".concat(He.Condition,")")),_e=new Error(Se),_e.name=He.Code?"".concat(He.Code,"Error"):"UnknownError",_e.status=pe.status,_e.code=He.Code,_e.requestId=He.RequestId,_e.hostId=He.HostId,_e.serverTime=He.ServerTime;case 32:return this.debug("generate error %j",_e,"error"),le.abrupt("return",_e);case 34:case"end":return le.stop()}},fe,this,[[7,16]])}));function me(fe){return ke.apply(this,arguments)}return me}()}).call(this)}).call(this,{isBuffer:rt("../../node_modules/is-buffer/index.js")},rt("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.array.filter.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.typed-array.uint8-array.js"),rt("core-js/modules/es.typed-array.copy-within.js"),rt("core-js/modules/es.typed-array.every.js"),rt("core-js/modules/es.typed-array.fill.js"),rt("core-js/modules/es.typed-array.filter.js"),rt("core-js/modules/es.typed-array.find.js"),rt("core-js/modules/es.typed-array.find-index.js"),rt("core-js/modules/es.typed-array.for-each.js"),rt("core-js/modules/es.typed-array.includes.js"),rt("core-js/modules/es.typed-array.index-of.js"),rt("core-js/modules/es.typed-array.iterator.js"),rt("core-js/modules/es.typed-array.join.js"),rt("core-js/modules/es.typed-array.last-index-of.js"),rt("core-js/modules/es.typed-array.map.js"),rt("core-js/modules/es.typed-array.reduce.js"),rt("core-js/modules/es.typed-array.reduce-right.js"),rt("core-js/modules/es.typed-array.reverse.js"),rt("core-js/modules/es.typed-array.set.js"),rt("core-js/modules/es.typed-array.slice.js"),rt("core-js/modules/es.typed-array.some.js"),rt("core-js/modules/es.typed-array.sort.js"),rt("core-js/modules/es.typed-array.subarray.js"),rt("core-js/modules/es.typed-array.to-locale-string.js"),rt("core-js/modules/es.typed-array.to-string.js");var yt=pt(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("util"),dt=rt("path"),ft=rt("mime"),ct=rt("copy-to"),lt=rt("../common/utils/isBlob"),E=lt.isBlob,z=rt("../common/utils/isFile"),ot=z.isFile,it=rt("../common/utils/isBuffer"),at=it.isBuffer,ut=Ct;ut.multipartUpload=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It,Ut){var Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re,we=arguments;return vt.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(Xt=we.length>2&&we[2]!==void 0?we[2]:{},this.resetCancelFlag(),Xt.disabledMD5=Xt.disabledMD5===void 0?!0:!!Xt.disabledMD5,!(Xt.checkpoint&&Xt.checkpoint.uploadId)){ke.next=8;break}return Ut&&ot(Ut)&&(Xt.checkpoint.file=Ut),ke.next=7,this._resumeMultipart(Xt.checkpoint,Xt);case 7:return ke.abrupt("return",ke.sent);case 8:return Gt=102400,Xt.mime||(ot(Ut)?Xt.mime=ft.getType(dt.extname(Ut.name)):E(Ut)?Xt.mime=Ut.type:at(Ut)?Xt.mime="":Xt.mime=ft.getType(dt.extname(Ut))),Xt.headers=Xt.headers||{},this._convertMetaToHeaders(Xt.meta,Xt.headers),ke.next=14,this._getFileSize(Ut);case 14:if(Yt=ke.sent,!(Yt<Gt)){ke.next=26;break}return Xt.contentLength=Yt,ke.next=19,this.put(It,Ut,Xt);case 19:if(Ht=ke.sent,!(Xt&&Xt.progress)){ke.next=23;break}return ke.next=23,Xt.progress(1);case 23:return ne={res:Ht.res,bucket:this.options.bucket,name:It,etag:Ht.res.headers.etag},(Xt.headers&&Xt.headers["x-oss-callback"]||Xt.callback)&&(ne.data=Ht.data),ke.abrupt("return",ne);case 26:if(!(Xt.partSize&&parseInt(Xt.partSize,10)!==Xt.partSize)){ke.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Xt.partSize&&Xt.partSize<Gt)){ke.next=30;break}throw new Error("partSize must not be smaller than ".concat(Gt));case 30:return ke.next=32,this.initMultipartUpload(It,Xt);case 32:if(ae=ke.sent,ve=ae.uploadId,Kt=this._getPartSize(Yt,Xt.partSize),re={file:Ut,name:It,fileSize:Yt,partSize:Kt,uploadId:ve,doneParts:[]},!(Xt&&Xt.progress)){ke.next=39;break}return ke.next=39,Xt.progress(0,re,ae.res);case 39:return ke.next=41,this._resumeMultipart(re,Xt);case 41:return ke.abrupt("return",ke.sent);case 42:case"end":return ke.stop()}},Lt,this)}));function jt(Lt,It){return Mt.apply(this,arguments)}return jt}(),ut._resumeMultipart=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It,Ut){var Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re,we,Me,ke,me,fe,pe,_e,je,He,Se;return vt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(Xt=this,!this.isCancel()){le.next=3;break}throw this._makeCancelEvent();case 3:return Gt=It.file,Yt=It.fileSize,Ht=It.partSize,ne=It.uploadId,ae=It.doneParts,ve=It.name,Kt=[],ae.length>0&&ct(ae).to(Kt),re=this._divideParts(Yt,Ht),we=re.length,Me=!1,ke=function(se,Ae){return new Promise(function(){var Xe=(0,yt.default)(vt.default.mark(function Be(Te,ue){var $t,he,ye,Qt,Wt;return vt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(te.prev=0,se.isCancel()){te.next=29;break}return $t=re[Ae-1],te.next=5,se._createBuffer(Gt,$t.start,$t.end);case 5:return he=te.sent,ye={content:he,size:$t.end-$t.start},te.prev=7,te.next=10,se._uploadPart(ve,ne,Ae,ye,Ut);case 10:Qt=te.sent,te.next=18;break;case 13:if(te.prev=13,te.t0=te.catch(7),te.t0.status!==404){te.next=17;break}throw se._makeAbortEvent();case 17:throw te.t0;case 18:if(!(!se.isCancel()&&!Me)){te.next=26;break}if(It.doneParts.push({number:Ae,etag:Qt.res.headers.etag}),!Ut.progress){te.next=23;break}return te.next=23,Ut.progress(ae.length/(we+1),It,Qt.res);case 23:Te({number:Ae,etag:Qt.res.headers.etag}),te.next=27;break;case 26:Te();case 27:te.next=30;break;case 29:Te();case 30:te.next=41;break;case 32:te.prev=32,te.t1=te.catch(0),Wt=new Error,Wt.name=te.t1.name,Wt.message=te.t1.message,Wt.stack=te.t1.stack,Wt.partNum=Ae,ct(te.t1).to(Wt),ue(Wt);case 41:case"end":return te.stop()}},Be,null,[[0,32],[7,13]])}));return function(Be,Te){return Xe.apply(this,arguments)}}())},me=Array.from(new Array(we),function(Ne,se){return se+1}),fe=Kt.map(function(Ne){return Ne.number}),pe=me.filter(function(Ne){return fe.indexOf(Ne)<0}),_e=5,je=Ut.parallel||_e,le.next=17,this._parallel(pe,je,function(Ne){return new Promise(function(se,Ae){ke(Xt,Ne).then(function(Xe){Xe&&Kt.push(Xe),se()}).catch(function(Xe){Ae(Xe)})})});case 17:if(He=le.sent,Me=!0,Se=He.find(function(Ne){return Ne.name==="abort"}),!Se){le.next=22;break}throw Se;case 22:if(!this.isCancel()){le.next=25;break}throw ke=null,this._makeCancelEvent();case 25:if(!(He&&He.length>0)){le.next=28;break}throw He[0].message="Failed to upload some parts with error: ".concat(He[0].toString()," part_num: ").concat(He[0].partNum),He[0];case 28:return le.next=30,this.completeMultipartUpload(ve,ne,Kt,Ut);case 30:return le.abrupt("return",le.sent);case 31:case"end":return le.stop()}},Lt,this)}));function jt(Lt,It){return Mt.apply(this,arguments)}return jt}(),ut._getFileSize=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It){return vt.default.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!at(It)){Xt.next=4;break}return Xt.abrupt("return",It.length);case 4:if(!(E(It)||ot(It))){Xt.next=6;break}return Xt.abrupt("return",It.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Xt.stop()}},Lt)}));function jt(Lt){return Mt.apply(this,arguments)}return jt}();var wt=rt("stream"),Et=wt.Readable;function At(Mt,jt){if(!(this instanceof At))return new At(Mt,jt);Et.call(this,jt),this.file=Mt,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}xt.inherits(At,Et),At.prototype.readFileAndPush=function(jt){if(this.fileBuffer)for(var Lt=!0;Lt&&this.fileBuffer&&this.start<this.fileBuffer.length;){var It=this.start,Ut=It+jt;Ut=Ut>this.fileBuffer.length?this.fileBuffer.length:Ut,this.start=Ut,Lt=this.push(this.fileBuffer.slice(It,Ut))}},At.prototype._read=function(jt){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Lt=16*1024;jt=jt||Lt;var It=this;this.reader.onload=function(Xt){It.fileBuffer=St.from(new Uint8Array(Xt.target.result)),It.file=null,It.readFileAndPush(jt)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(jt)};function _t(Mt){return Mt.arrayBuffer?Mt.arrayBuffer():new Promise(function(jt,Lt){var It=new FileReader;It.onload=function(Ut){jt(Ut.target.result)},It.onerror=function(Ut){Lt(Ut)},It.readAsArrayBuffer(Mt)})}ut._createBuffer=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It,Ut,Xt){var Gt,Yt;return vt.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!(E(It)||ot(It))){ne.next=8;break}return Gt=It.slice(Ut,Xt),ne.next=4,_t(Gt);case 4:return Yt=ne.sent,ne.abrupt("return",St.from(Yt));case 8:if(!at(It)){ne.next=12;break}return ne.abrupt("return",It.subarray(Ut,Xt));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ne.stop()}},Lt)}));function jt(Lt,It,Ut){return Mt.apply(this,arguments)}return jt}(),ut._getPartSize=function(jt,Lt){var It=1e4,Ut=1*1024*1024;Lt||(Lt=Ut);var Xt=Math.ceil(jt/It);return Lt<Xt&&(Lt=Xt,console.warn("partSize has been set to ".concat(Lt,", because the partSize you provided causes partNumber to be greater than 10,000"))),Lt},ut._divideParts=function(jt,Lt){for(var It=Math.ceil(jt/Lt),Ut=[],Xt=0;Xt<It;Xt++){var Gt=Lt*Xt,Yt=Math.min(Gt+Lt,jt);Ut.push({start:Gt,end:Yt})}return Ut}}).call(this)}).call(this,rt("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault");rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.number.constructor.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.promise.js");var pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("fs"),xt=rt("copy-to"),dt=rt("path"),ft=rt("mime"),ct=rt("../common/callback"),lt=rt("merge-descriptors"),E=rt("../common/utils/isBlob"),z=E.isBlob,ot=rt("../common/utils/isFile"),it=ot.isFile,at=rt("../common/utils/isBuffer"),ut=at.isBuffer,wt=rt("../common/utils/obj2xml"),Et=wt.obj2xml,At=Ct;At.append=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt,It,Ut){var Xt;return pt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Ut=Ut||{},Ut.position===void 0&&(Ut.position="0"),Ut.subres={append:"",position:Ut.position},Ut.method="POST",Yt.next=6,this.put(Lt,It,Ut);case 6:return Xt=Yt.sent,Xt.nextAppendPosition=Xt.res.headers["x-oss-next-append-position"],Yt.abrupt("return",Xt);case 9:case"end":return Yt.stop()}},jt,this)}));function Mt(jt,Lt,It){return _t.apply(this,arguments)}return Mt}(),At.put=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt,It,Ut){var Xt,Gt,Yt,Ht,ne;return pt.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(Ut=Ut||{},Ut.disabledMD5=Ut.disabledMD5===void 0?!0:!!Ut.disabledMD5,Ut.headers=Ut.headers||{},Lt=this._objectName(Lt),!ut(It)){ve.next=8;break}Xt=It,ve.next=19;break;case 8:if(!(z(It)||it(It))){ve.next=18;break}return Ut.mime||(it(It)?Ut.mime=ft.getType(dt.extname(It.name)):Ut.mime=It.type),ve.next=12,this._createBuffer(It,0,It.size);case 12:return Xt=ve.sent,ve.next=15,this._getFileSize(It);case 15:Ut.contentLength=ve.sent,ve.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Ut.meta,Ut.headers),Gt=Ut.method||"PUT",Yt=this._objectRequestParams(Gt,Lt,Ut),ct.encodeCallback(Yt,Ut),Yt.mime=Ut.mime,Yt.disabledMD5=Ut.disabledMD5,Yt.content=Xt,Yt.successStatuses=[200],ve.next=29,this.request(Yt);case 29:return Ht=ve.sent,ne={name:Lt,url:this._objectUrl(Lt),res:Ht.res},Yt.headers&&Yt.headers["x-oss-callback"]&&(ne.data=JSON.parse(Ht.data.toString())),ve.abrupt("return",ne);case 33:case"end":return ve.stop()}},jt,this)}));function Mt(jt,Lt,It){return _t.apply(this,arguments)}return Mt}(),At.putStream=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt,It,Ut){var Xt,Gt,Yt,Ht;return pt.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return Ut=Ut||{},Ut.headers=Ut.headers||{},Lt=this._objectName(Lt),Ut.contentLength?Ut.headers["Content-Length"]=Ut.contentLength:Ut.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Ut.meta,Ut.headers),Xt=Ut.method||"PUT",Gt=this._objectRequestParams(Xt,Lt,Ut),ct.encodeCallback(Gt,Ut),Gt.mime=Ut.mime,Gt.stream=It,Gt.successStatuses=[200],ae.next=13,this.request(Gt);case 13:return Yt=ae.sent,Ht={name:Lt,url:this._objectUrl(Lt),res:Yt.res},Gt.headers&&Gt.headers["x-oss-callback"]&&(Ht.data=JSON.parse(Yt.data.toString())),ae.abrupt("return",Ht);case 17:case"end":return ae.stop()}},jt,this)}));function Mt(jt,Lt,It){return _t.apply(this,arguments)}return Mt}(),lt(At,rt("../common/object/copyObject")),lt(At,rt("../common/object/getObjectTagging")),lt(At,rt("../common/object/putObjectTagging")),lt(At,rt("../common/object/deleteObjectTagging")),lt(At,rt("../common/image")),lt(At,rt("../common/object/getBucketVersions")),lt(At,rt("../common/object/getACL")),lt(At,rt("../common/object/putACL")),lt(At,rt("../common/object/head")),lt(At,rt("../common/object/delete")),lt(At,rt("../common/object/get")),lt(At,rt("../common/object/putSymlink")),lt(At,rt("../common/object/getSymlink")),lt(At,rt("../common/object/deleteMulti")),lt(At,rt("../common/object/getObjectMeta")),lt(At,rt("../common/object/getObjectUrl")),lt(At,rt("../common/object/generateObjectUrl")),lt(At,rt("../common/object/signatureUrl")),lt(At,rt("../common/object/asyncSignatureUrl")),At.putMeta=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt,It,Ut){var Xt;return pt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,this.copy(Lt,Lt,{meta:It||{},timeout:Ut&&Ut.timeout,ctx:Ut&&Ut.ctx});case 2:return Xt=Yt.sent,Yt.abrupt("return",Xt);case 4:case"end":return Yt.stop()}},jt,this)}));function Mt(jt,Lt,It){return _t.apply(this,arguments)}return Mt}(),At.list=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt,It){var Ut,Xt,Gt,Yt,Ht;return pt.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return Ut=this._objectRequestParams("GET","",It),Ut.query=Lt,Ut.xmlResponse=!0,Ut.successStatuses=[200],ae.next=6,this.request(Ut);case 6:return Xt=ae.sent,Gt=Xt.data.Contents||[],Yt=this,Gt&&(Array.isArray(Gt)||(Gt=[Gt]),Gt=Gt.map(function(ve){return{name:ve.Key,url:Yt._objectUrl(ve.Key),lastModified:ve.LastModified,etag:ve.ETag,type:ve.Type,size:Number(ve.Size),storageClass:ve.StorageClass,owner:{id:ve.Owner.ID,displayName:ve.Owner.DisplayName}}})),Ht=Xt.data.CommonPrefixes||null,Ht&&(Array.isArray(Ht)||(Ht=[Ht]),Ht=Ht.map(function(ve){return ve.Prefix})),ae.abrupt("return",{res:Xt.res,objects:Gt,prefixes:Ht,nextMarker:Xt.data.NextMarker||null,isTruncated:Xt.data.IsTruncated==="true"});case 13:case"end":return ae.stop()}},jt,this)}));function Mt(jt,Lt){return _t.apply(this,arguments)}return Mt}(),At.listV2=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt){var It,Ut,Xt,Gt,Yt,Ht,ne,ae=arguments;return pt.default.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return It=ae.length>1&&ae[1]!==void 0?ae[1]:{},Ut=Lt["continuation-token"]||Lt.continuationToken,Ut&&(It.subres=Object.assign({"continuation-token":Ut},It.subres)),Xt=this._objectRequestParams("GET","",It),Xt.query=Object.assign({"list-type":2},Lt),delete Xt.query["continuation-token"],delete Xt.query.continuationToken,Xt.xmlResponse=!0,Xt.successStatuses=[200],Kt.next=11,this.request(Xt);case 11:return Gt=Kt.sent,Yt=Gt.data.Contents||[],Ht=this,Yt&&(Array.isArray(Yt)||(Yt=[Yt]),Yt=Yt.map(function(re){var we=null;return re.Owner&&(we={id:re.Owner.ID,displayName:re.Owner.DisplayName}),{name:re.Key,url:Ht._objectUrl(re.Key),lastModified:re.LastModified,etag:re.ETag,type:re.Type,size:Number(re.Size),storageClass:re.StorageClass,owner:we}})),ne=Gt.data.CommonPrefixes||null,ne&&(Array.isArray(ne)||(ne=[ne]),ne=ne.map(function(re){return re.Prefix})),Kt.abrupt("return",{res:Gt.res,objects:Yt,prefixes:ne,isTruncated:Gt.data.IsTruncated==="true",keyCount:+Gt.data.KeyCount,continuationToken:Gt.data.ContinuationToken||null,nextContinuationToken:Gt.data.NextContinuationToken||null});case 18:case"end":return Kt.stop()}},jt,this)}));function Mt(jt){return _t.apply(this,arguments)}return Mt}(),At.restore=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt){var It,Ut,Xt,Gt,Yt=arguments;return pt.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return It=Yt.length>1&&Yt[1]!==void 0?Yt[1]:{type:"Archive"},It=It||{},It.subres=Object.assign({restore:""},It.subres),It.versionId&&(It.subres.versionId=It.versionId),Ut=this._objectRequestParams("POST",Lt,It),It.type==="ColdArchive"&&(Xt={RestoreRequest:{Days:It.Days?It.Days:2,JobParameters:{Tier:It.JobParameters?It.JobParameters:"Standard"}}},Ut.content=Et(Xt,{headers:!0}),Ut.mime="xml"),Ut.successStatuses=[202],ne.next=9,this.request(Ut);case 9:return Gt=ne.sent,ne.abrupt("return",{res:Gt.res});case 11:case"end":return ne.stop()}},jt,this)}));function Mt(jt){return _t.apply(this,arguments)}return Mt}(),At._objectUrl=function(Mt){return this._getReqUrl({bucket:this.options.bucket,object:Mt})},At._objectRequestParams=function(Mt,jt,Lt){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Lt=Lt||{},jt=this._objectName(jt);var It={object:jt,bucket:this.options.bucket,method:Mt,subres:Lt&&Lt.subres,timeout:Lt&&Lt.timeout,ctx:Lt&&Lt.ctx};return Lt.headers&&(It.headers={},xt(Lt.headers).to(It.headers)),It},At._objectName=function(Mt){return Mt.replace(/^\/+/,"")},At._convertMetaToHeaders=function(Mt,jt){Mt&&Object.keys(Mt).forEach(function(Lt){jt["x-oss-meta-".concat(Lt)]=Mt[Lt]})},At._deleteFileSafe=function(Mt){var jt=this;return new Promise(function(Lt){yt.exists(Mt,function(It){It?yt.unlink(Mt,function(Ut){Ut&&jt.debug("unlink %j error: %s",Mt,Ut,"error"),Lt()}):Lt()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(rt,kt,Ct){"use strict";Ct.version="6.18.1"},{}],7:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.abortBucketWorm=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z;return pt.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return yt.checkBucketName(ct),E=this._bucketRequestParams("DELETE",ct,"worm",lt),it.next=4,this.request(E);case 4:return z=it.sent,it.abrupt("return",{res:z.res,status:z.status});case 6:case"end":return it.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.abortBucketWorm=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.completeBucketWorm=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct,lt){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return yt.checkBucketName(ct),z=this._bucketRequestParams("POST",ct,{wormId:lt},E),at.next=4,this.request(z);case 4:return ot=at.sent,at.abrupt("return",{res:ot.res,status:ot.status});case 6:case"end":return at.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.completeBucketWorm=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.deleteBucketInventory=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z,ot,it,at=arguments;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return E=at.length>2&&at[2]!==void 0?at[2]:{},z=Object.assign({inventory:"",inventoryId:lt},E.subres),yt.checkBucketName(ct),ot=this._bucketRequestParams("DELETE",ct,z,E),ot.successStatuses=[204],wt.next=7,this.request(ot);case 7:return it=wt.sent,wt.abrupt("return",{status:it.status,res:it.res});case 9:case"end":return wt.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.deleteBucketInventory=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.deleteBucketLifecycle=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return xt(E),ot=this._bucketRequestParams("DELETE",E,"lifecycle",z),ot.successStatuses=[204],ut.next=5,this.request(ot);case 5:return it=ut.sent,ut.abrupt("return",{res:it.res});case 7:case"end":return ut.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.deleteBucketWebsite=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return xt(E),ot=this._bucketRequestParams("DELETE",E,"website",z),ot.successStatuses=[204],ut.next=5,this.request(ot);case 5:return it=ut.sent,ut.abrupt("return",{res:it.res});case 7:case"end":return ut.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.extendBucketWorm=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/obj2xml");function dt(ct,lt,E,z){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E,z,ot){var it,at,ut;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return yt.checkBucketName(lt),it=this._bucketRequestParams("POST",lt,{wormExtend:"",wormId:E},ot),at={ExtendWormConfiguration:{RetentionPeriodInDays:z}},it.mime="xml",it.content=xt.obj2xml(at,{headers:!0}),it.successStatuses=[200],Et.next=8,this.request(it);case 8:return ut=Et.sent,Et.abrupt("return",{res:ut.res,status:ut.status});case 10:case"end":return Et.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.extendBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/formatInventoryConfig");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot,it,at,ut=arguments;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return z=ut.length>2&&ut[2]!==void 0?ut[2]:{},ot=Object.assign({inventory:"",inventoryId:E},z.subres),yt.checkBucketName(lt),it=this._bucketRequestParams("GET",lt,ot,z),it.successStatuses=[200],it.xmlResponse=!0,Et.next=8,this.request(it);case 8:return at=Et.sent,Et.abrupt("return",{status:at.status,res:at.res,inventory:xt.formatInventoryConfig(at.data)});case 10:case"end":return Et.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.getBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.map.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isArray"),ft=dt.isArray,ct=rt("../utils/formatObjKey"),lt=ct.formatObjKey,E=Ct;E.getBucketLifecycle=function(){var z=(0,vt.default)(pt.default.mark(function it(at,ut){var wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return xt(at),wt=this._bucketRequestParams("GET",at,"lifecycle",ut),wt.successStatuses=[200],wt.xmlResponse=!0,Mt.next=6,this.request(wt);case 6:return Et=Mt.sent,At=Et.data.Rule||null,At&&(ft(At)||(At=[At]),At=At.map(function(jt){return jt.ID&&(jt.id=jt.ID,delete jt.ID),jt.Tag&&!ft(jt.Tag)&&(jt.Tag=[jt.Tag]),lt(jt,"firstLowerCase")})),Mt.abrupt("return",{rules:At,res:Et.res});case 10:case"end":return Mt.stop()}},it,this)}));function ot(it,at){return z.apply(this,arguments)}return ot}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.getBucketVersioning=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it,at;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return xt(E),ot=this._bucketRequestParams("GET",E,"versioning",z),ot.xmlResponse=!0,ot.successStatuses=[200],wt.next=6,this.request(ot);case 6:return it=wt.sent,at=it.data.Status,wt.abrupt("return",{status:it.status,versionStatus:at,res:it.res});case 9:case"end":return wt.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isObject"),ft=dt.isObject,ct=Ct;ct.getBucketWebsite=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return xt(ot),at=this._bucketRequestParams("GET",ot,"website",it),at.successStatuses=[200],at.xmlResponse=!0,At.next=6,this.request(at);case 6:return ut=At.sent,wt=[],ut.data.RoutingRules&&ut.data.RoutingRules.RoutingRule&&(ft(ut.data.RoutingRules.RoutingRule)?wt=[ut.data.RoutingRules.RoutingRule]:wt=ut.data.RoutingRules.RoutingRule),At.abrupt("return",{index:ut.data.IndexDocument&&ut.data.IndexDocument.Suffix||"",supportSubDir:ut.data.IndexDocument&&ut.data.IndexDocument.SupportSubDir||"false",type:ut.data.IndexDocument&&ut.data.IndexDocument.Type,routingRules:wt,error:ut.data.ErrorDocument&&ut.data.ErrorDocument.Key||null,res:ut.res});case 10:case"end":return At.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getBucketWorm=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/dataFix");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return yt.checkBucketName(lt),z=this._bucketRequestParams("GET",lt,"worm",E),z.successStatuses=[200],z.xmlResponse=!0,at.next=6,this.request(z);case 6:return ot=at.sent,xt.dataFix(ot.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),at.abrupt("return",Object.assign(Object.assign({},ot.data),{res:ot.res,status:ot.status}));case 9:case"end":return at.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.getBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.initiateBucketWorm=void 0;var yt=rt("../utils/obj2xml"),xt=rt("../utils/checkBucketName");function dt(ct,lt,E){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E,z){var ot,it,at;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return xt.checkBucketName(lt),ot=this._bucketRequestParams("POST",lt,"worm",z),it={InitiateWormConfiguration:{RetentionPeriodInDays:E}},ot.mime="xml",ot.content=yt.obj2xml(it,{headers:!0}),ot.successStatuses=[200],wt.next=8,this.request(ot);case 8:return at=wt.sent,wt.abrupt("return",{res:at.res,wormId:at.res.headers["x-oss-worm-id"],status:at.status});case 10:case"end":return wt.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.initiateBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.listBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/formatInventoryConfig");function dt(ct){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt){var E,z,ot,it,at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return E=At.length>1&&At[1]!==void 0?At[1]:{},z=E.continuationToken,ot=Object.assign({inventory:""},z&&{"continuation-token":z},E.subres),yt.checkBucketName(lt),it=this._bucketRequestParams("GET",lt,ot,E),it.successStatuses=[200],it.xmlResponse=!0,Mt.next=9,this.request(it);case 9:return at=Mt.sent,ut=at.data,wt=at.res,Et=at.status,Mt.abrupt("return",{isTruncated:ut.IsTruncated==="true",nextContinuationToken:ut.NextContinuationToken,inventoryList:xt.formatInventoryConfig(ut.InventoryConfiguration,!0),status:Et,res:wt});case 12:case"end":return Mt.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.listBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.concat.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.putBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/obj2xml");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return z=Lt.length>2&&Lt[2]!==void 0?Lt[2]:{},ot=Object.assign({inventory:"",inventoryId:E.id},z.subres),yt.checkBucketName(lt),it=E.OSSBucketDestination,at=E.optionalFields,ut=E.includedObjectVersions,wt="acs:oss:::",Et="acs:ram::".concat(it.accountId,":role/"),At={InventoryConfiguration:{Id:E.id,IsEnabled:E.isEnabled,Filter:{Prefix:E.prefix||""},Destination:{OSSBucketDestination:{Format:it.format,AccountId:it.accountId,RoleArn:"".concat(Et).concat(it.rolename),Bucket:"".concat(wt).concat(it.bucket),Prefix:it.prefix||"",Encryption:it.encryption||""}},Schedule:{Frequency:E.frequency},IncludedObjectVersions:ut,OptionalFields:{Field:(at==null?void 0:at.field)||[]}}},_t=xt.obj2xml(At,{headers:!0,firstUpperCase:!0}),Mt=this._bucketRequestParams("PUT",lt,ot,z),Mt.successStatuses=[200],Mt.mime="xml",Mt.content=_t,Ut.next=14,this.request(Mt);case 14:return jt=Ut.sent,Ut.abrupt("return",{status:jt.status,res:jt.res});case 16:case"end":return Ut.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.putBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.array.includes.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isArray"),ft=dt.isArray,ct=rt("../utils/deepCopy"),lt=ct.deepCopy,E=rt("../utils/isObject"),z=E.isObject,ot=rt("../utils/obj2xml"),it=ot.obj2xml,at=rt("../utils/checkObjectTag"),ut=at.checkObjectTag,wt=rt("../utils/getStrBytesCount"),Et=wt.getStrBytesCount,At=Ct;At.putBucketLifecycle=function(){var It=(0,vt.default)(pt.default.mark(function Xt(Gt,Yt,Ht){var ne,ae,ve,Kt,re;return pt.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(xt(Gt),ft(Yt)){Me.next=3;break}throw new Error("rules must be Array");case 3:return ne=this._bucketRequestParams("PUT",Gt,"lifecycle",Ht),ae=[],ve={LifecycleConfiguration:{Rule:ae}},Yt.forEach(function(ke){_t(ke),Lt(ke),ke.id&&(ke.ID=ke.id,delete ke.id),ae.push(ke)}),Kt=it(ve,{headers:!0,firstUpperCase:!0}),ne.content=Kt,ne.mime="xml",ne.successStatuses=[200],Me.next=13,this.request(ne);case 13:return re=Me.sent,Me.abrupt("return",{res:re.res});case 15:case"end":return Me.stop()}},Xt,this)}));function Ut(Xt,Gt,Yt){return It.apply(this,arguments)}return Ut}();function _t(It){It.days&&(It.expiration={days:It.days}),It.date&&(It.expiration={createdBeforeDate:It.date})}function Mt(It,Ut){var Xt=It.days,Gt=It.createdBeforeDate;if(!Xt&&!Gt)throw new Error("".concat(Ut," must includes days or createdBeforeDate"));if(Xt&&!/^[1-9][0-9]*$/.test(Xt))throw new Error("days must be a positive integer");if(Gt&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Gt))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function jt(It){if(!ft(It)&&!z(It))throw new Error("tag must be Object or Array");It=z(It)?[It]:It;var Ut={},Xt=lt(It);Xt.forEach(function(Gt){Ut[Gt.key]=Gt.value}),ut(Ut)}function Lt(It){if(It.id&&Et(It.id)>255)throw new Error("ID is composed of 255 bytes at most");if(It.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(It.status))throw new Error("Status must be Enabled or Disabled");if(It.transition){if(!["IA","Archive"].includes(It.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Mt(It.transition,"Transition")}if(It.expiration){if(!It.expiration.expiredObjectDeleteMarker)Mt(It.expiration,"Expiration");else if(It.expiration.days||It.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(It.abortMultipartUpload&&Mt(It.abortMultipartUpload,"AbortMultipartUpload"),!It.expiration&&!It.abortMultipartUpload&&!It.transition&&!It.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(It.tag){if(It.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");jt(It.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.includes.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/obj2xml"),ft=dt.obj2xml,ct=Ct;ct.putBucketVersioning=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(at=At.length>2&&At[2]!==void 0?At[2]:{},xt(ot),["Enabled","Suspended"].includes(it)){Mt.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ut=this._bucketRequestParams("PUT",ot,"versioning",at),wt={VersioningConfiguration:{Status:it}},ut.mime="xml",ut.content=ft(wt,{headers:!0}),Mt.next=10,this.request(ut);case 10:return Et=Mt.sent,Mt.abrupt("return",{res:Et.res,status:Et.status});case 12:case"end":return Mt.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/obj2xml"),ft=dt.obj2xml,ct=rt("../utils/isArray"),lt=ct.isArray,E=Ct;E.putBucketWebsite=function(){var z=(0,vt.default)(pt.default.mark(function it(at){var ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(ut=Lt.length>1&&Lt[1]!==void 0?Lt[1]:{},wt=Lt.length>2?Lt[2]:void 0,xt(at),Et=this._bucketRequestParams("PUT",at,"website",wt),At={Suffix:ut.index||"index.html"},_t={IndexDocument:At},Mt={WebsiteConfiguration:_t},ut.supportSubDir&&(At.SupportSubDir=ut.supportSubDir),ut.type&&(At.Type=ut.type),ut.error&&(_t.ErrorDocument={Key:ut.error}),ut.routingRules===void 0){Ut.next=14;break}if(lt(ut.routingRules)){Ut.next=13;break}throw new Error("RoutingRules must be Array");case 13:_t.RoutingRules={RoutingRule:ut.routingRules};case 14:return Mt=ft(Mt),Et.content=Mt,Et.mime="xml",Et.successStatuses=[200],Ut.next=20,this.request(Et);case 20:return jt=Ut.sent,Ut.abrupt("return",{res:jt.res});case 22:case"end":return Ut.stop()}},it,this)}));function ot(it){return z.apply(this,arguments)}return ot}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),Ct.encodeCallback=function(vt,yt){if(vt.headers=vt.headers||{},!Object.prototype.hasOwnProperty.call(vt.headers,"x-oss-callback")&&yt.callback){var xt={callbackUrl:encodeURI(yt.callback.url),callbackBody:yt.callback.body};yt.callback.host&&(xt.callbackHost=yt.callback.host),yt.callback.contentType&&(xt.callbackBodyType=yt.callback.contentType);var dt=St.from(JSON.stringify(xt)).toString("base64");if(vt.headers["x-oss-callback"]=dt,yt.callback.customValue){var ft={};Object.keys(yt.callback.customValue).forEach(function(ct){ft["x:".concat(ct)]=yt.callback.customValue[ct].toString()}),vt.headers["x-oss-callback-var"]=St.from(JSON.stringify(ft)).toString("base64")}}}}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js");var St=function(lt){return lt&&lt.__esModule?lt:{default:lt}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getReqUrl=void 0;var pt=St(rt("copy-to")),vt=St(rt("url")),yt=St(rt("merge-descriptors")),xt=St(rt("is-type-of")),dt=rt("../utils/isIP"),ft=rt("../utils/checkConfigValid");function ct(lt){var E={},z=this.options.cname;ft.checkConfigValid(this.options.endpoint,"endpoint"),pt.default(this.options.endpoint,!1).to(E),lt.bucket&&!z&&!dt.isIP(E.hostname)&&!this.options.sldEnable&&(E.host="".concat(lt.bucket,".").concat(E.host));var ot="/";lt.bucket&&this.options.sldEnable&&(ot+="".concat(lt.bucket,"/")),lt.object&&(ot+=this._escape(lt.object).replace(/\+/g,"%2B")),E.pathname=ot;var it={};if(lt.query&&yt.default(it,lt.query),lt.subres){var at={};xt.default.string(lt.subres)?at[lt.subres]="":xt.default.array(lt.subres)?lt.subres.forEach(function(ut){at[ut]=""}):at=lt.subres,yt.default(it,at)}return E.query=it,vt.default.format(E)}Ct.getReqUrl=ct},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.string.trim.js");var St=rt("humanize-ms"),pt=rt("url"),vt=rt("../utils/checkBucketName"),yt=vt.checkBucketName,xt=rt("../utils/setRegion"),dt=xt.setRegion,ft=rt("../utils/checkConfigValid"),ct=ft.checkConfigValid;function lt(E,z){ct(E,"endpoint");var ot=pt.parse(E);if(ot.protocol||(ot=pt.parse("http".concat(z?"s":"","://").concat(E))),ot.protocol!=="http:"&&ot.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ot}kt.exports=function(E){if(!E||!E.accessKeyId||!E.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");E.stsToken&&!E.refreshSTSToken&&!E.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),E.bucket&&yt(E.bucket);var z=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},E);if(z.accessKeyId=z.accessKeyId.trim(),z.accessKeySecret=z.accessKeySecret.trim(),z.timeout&&(z.timeout=St(z.timeout)),z.endpoint)z.endpoint=lt(z.endpoint,z.secure);else if(z.region)z.endpoint=dt(z.region,z.internal,z.secure);else throw new Error("require options.endpoint or options.region");return z.inited=!0,z}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(rt,kt,Ct){"use strict";var St=rt("merge-descriptors"),pt=Ct;St(pt,rt("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.concat.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("querystring"),ft=rt("js-base64"),ct=ft.Base64.encode,lt=Ct;lt.processObjectSave=function(){var z=(0,vt.default)(pt.default.mark(function it(at,ut,wt,Et){var At,_t,Mt,jt;return pt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return E(at,"sourceObject"),E(ut,"targetObject"),E(wt,"process"),ut=this._objectName(ut),Et&&xt(Et),At=this._objectRequestParams("POST",at,{subres:"x-oss-process"}),_t=Et?",b_".concat(ct(Et)):"",ut=ct(ut),Mt={"x-oss-process":"".concat(wt,"|sys/saveas,o_").concat(ut).concat(_t)},At.content=dt.stringify(Mt),It.next=12,this.request(At);case 12:return jt=It.sent,It.abrupt("return",{res:jt.res,status:jt.res.status});case 14:case"end":return It.stop()}},it,this)}));function ot(it,at,ut,wt){return z.apply(this,arguments)}return ot}();function E(z,ot){if(!z)throw new Error("".concat(ot," is required"));if(typeof z!="string")throw new Error("".concat(ot," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.array.filter.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.regexp.to-string.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("debug")("ali-oss:multipart-copy"),xt=rt("copy-to"),dt=Ct;dt.uploadPartCopy=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot,it,at){var ut,wt,Et,At,_t,Mt=arguments;return pt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return ut=Mt.length>5&&Mt[5]!==void 0?Mt[5]:{},ut.headers=ut.headers||{},wt=ut.versionId||ut.subres&&ut.subres.versionId||null,wt?Et="/".concat(at.sourceBucketName,"/").concat(encodeURIComponent(at.sourceKey),"?versionId=").concat(wt):Et="/".concat(at.sourceBucketName,"/").concat(encodeURIComponent(at.sourceKey)),ut.headers["x-oss-copy-source"]=Et,it&&(ut.headers["x-oss-copy-source-range"]="bytes=".concat(it)),ut.subres={partNumber:ot,uploadId:z},At=this._objectRequestParams("PUT",E,ut),At.mime=ut.mime,At.successStatuses=[200],Lt.next=12,this.request(At);case 12:return _t=Lt.sent,Lt.abrupt("return",{name:E,etag:_t.res.headers.etag,res:_t.res});case 14:case"end":return Lt.stop()}},lt,this)}));function ct(lt,E,z,ot,it){return ft.apply(this,arguments)}return ct}(),dt.multipartUploadCopy=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut=arguments;return pt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return ot=Ut.length>2&&Ut[2]!==void 0?Ut[2]:{},this.resetCancelFlag(),it=ot.versionId,at=it===void 0?null:it,ut={versionId:at},Gt.next=6,this._getObjectMeta(z.sourceBucketName,z.sourceKey,ut);case 6:if(wt=Gt.sent,Et=wt.res.headers["content-length"],z.startOffset=z.startOffset||0,z.endOffset=z.endOffset||Et,!(ot.checkpoint&&ot.checkpoint.uploadId)){Gt.next=14;break}return Gt.next=13,this._resumeMultipartCopy(ot.checkpoint,z,ot);case 13:return Gt.abrupt("return",Gt.sent);case 14:if(At=102400,_t=z.endOffset-z.startOffset,!(_t<At)){Gt.next=18;break}throw new Error("copySize must not be smaller than ".concat(At));case 18:if(!(ot.partSize&&ot.partSize<At)){Gt.next=20;break}throw new Error("partSize must not be smaller than ".concat(At));case 20:return Gt.next=22,this.initMultipartUpload(E,ot);case 22:if(Mt=Gt.sent,jt=Mt.uploadId,Lt=this._getPartSize(_t,ot.partSize),It={name:E,copySize:_t,partSize:Lt,uploadId:jt,doneParts:[]},!(ot&&ot.progress)){Gt.next=29;break}return Gt.next=29,ot.progress(0,It,Mt.res);case 29:return Gt.next=31,this._resumeMultipartCopy(It,z,ot);case 31:return Gt.abrupt("return",Gt.sent);case 32:case"end":return Gt.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}(),dt._resumeMultipartCopy=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot){var it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re;return pt.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!this.isCancel()){Me.next=2;break}throw this._makeCancelEvent();case 2:if(it=ot.versionId,at=it===void 0?null:it,ut={versionId:at},wt=E.copySize,Et=E.partSize,At=E.uploadId,_t=E.doneParts,Mt=E.name,jt=this._divideMultipartCopyParts(wt,Et,z.startOffset),Lt=jt.length,It={headers:{}},ot.copyheaders&&xt(ot.copyheaders).to(It.headers),at&&xt(ut).to(It),Ut=function(me,fe,pe){return new Promise(function(){var _e=(0,vt.default)(pt.default.mark(function je(He,Se){var xe,le,Ne;return pt.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Ae.prev=0,me.isCancel()){Ae.next=22;break}return xe=jt[fe-1],le="".concat(xe.start,"-").concat(xe.end-1),Ae.prev=4,Ae.next=7,me.uploadPartCopy(Mt,At,fe,le,pe,It);case 7:Ne=Ae.sent,Ae.next=15;break;case 10:if(Ae.prev=10,Ae.t0=Ae.catch(4),Ae.t0.status!==404){Ae.next=14;break}throw me._makeAbortEvent();case 14:throw Ae.t0;case 15:if(me.isCancel()){Ae.next=22;break}if(yt("content-range ".concat(Ne.res.headers["content-range"])),_t.push({number:fe,etag:Ne.res.headers.etag}),E.doneParts=_t,!(ot&&ot.progress)){Ae.next=22;break}return Ae.next=22,ot.progress(_t.length/Lt,E,Ne.res);case 22:He(),Ae.next=29;break;case 25:Ae.prev=25,Ae.t1=Ae.catch(0),Ae.t1.partNum=fe,Se(Ae.t1);case 29:case"end":return Ae.stop()}},je,null,[[0,25],[4,10]])}));return function(je,He){return _e.apply(this,arguments)}}())},Xt=Array.from(new Array(Lt),function(ke,me){return me+1}),Gt=_t.map(function(ke){return ke.number}),Yt=Xt.filter(function(ke){return Gt.indexOf(ke)<0}),Ht=5,ne=ot.parallel||Ht,!(this.checkBrowserAndVersion("Internet Explorer","10")||ne===1)){Me.next=28;break}ae=0;case 18:if(!(ae<Yt.length)){Me.next=26;break}if(!this.isCancel()){Me.next=21;break}throw this._makeCancelEvent();case 21:return Me.next=23,Ut(this,Yt[ae],z);case 23:ae++,Me.next=18;break;case 26:Me.next=40;break;case 28:return Me.next=30,this._parallelNode(Yt,ne,Ut,z);case 30:if(ve=Me.sent,Kt=ve.find(function(ke){return ke.name==="abort"}),!Kt){Me.next=34;break}throw Kt;case 34:if(!this.isCancel()){Me.next=36;break}throw this._makeCancelEvent();case 36:if(!(ve&&ve.length>0)){Me.next=40;break}throw re=ve[0],re.message="Failed to copy some parts with error: ".concat(re.toString()," part_num: ").concat(re.partNum),re;case 40:return Me.next=42,this.completeMultipartUpload(Mt,At,_t,ot);case 42:return Me.abrupt("return",Me.sent);case 43:case"end":return Me.stop()}},lt,this)}));function ct(lt,E,z){return ft.apply(this,arguments)}return ct}(),dt._divideMultipartCopyParts=function(ct,lt,E){for(var z=Math.ceil(ct/lt),ot=[],it=0;it<z;it++){var at=lt*it+E,ut=Math.min(at+lt,ct+E);ot.push({start:at,end:ut})}return ot},dt._getObjectMeta=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot){var it,at;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return it=this.getBucket(),this.setBucket(E),wt.next=4,this.head(z,ot);case 4:return at=wt.sent,this.setBucket(it),wt.abrupt("return",at);case 7:case"end":return wt.stop()}},lt,this)}));function ct(lt,E,z){return ft.apply(this,arguments)}return ct}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.array.filter.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.array.sort.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.to-string.js");var yt=pt(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("copy-to"),dt=rt("./callback"),ft=rt("./utils/deepCopy"),ct=ft.deepCopyWith,lt=rt("./utils/isBuffer"),E=lt.isBuffer,z=rt("./utils/omit"),ot=z.omit,it=Ct;it.listUploads=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At){var _t,Mt,jt,Lt;return vt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return At=At||{},_t={},xt(At).to(_t),_t.subres="uploads",Mt=this._objectRequestParams("GET","",_t),Mt.query=Et,Mt.xmlResponse=!0,Mt.successStatuses=[200],Ut.next=10,this.request(Mt);case 10:return jt=Ut.sent,Lt=jt.data.Upload||[],Array.isArray(Lt)||(Lt=[Lt]),Lt=Lt.map(function(Xt){return{name:Xt.Key,uploadId:Xt.UploadId,initiated:Xt.Initiated}}),Ut.abrupt("return",{res:jt.res,uploads:Lt,bucket:jt.data.Bucket,nextKeyMarker:jt.data.NextKeyMarker,nextUploadIdMarker:jt.data.NextUploadIdMarker,isTruncated:jt.data.IsTruncated==="true"});case 15:case"end":return Ut.stop()}},wt,this)}));function ut(wt,Et){return at.apply(this,arguments)}return ut}(),it.listParts=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At,_t,Mt){var jt,Lt,It;return vt.default.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Mt=Mt||{},jt={},xt(Mt).to(jt),jt.subres={uploadId:At},Lt=this._objectRequestParams("GET",Et,jt),Lt.query=_t,Lt.xmlResponse=!0,Lt.successStatuses=[200],Xt.next=10,this.request(Lt);case 10:return It=Xt.sent,Xt.abrupt("return",{res:It.res,uploadId:It.data.UploadId,bucket:It.data.Bucket,name:It.data.Key,partNumberMarker:It.data.PartNumberMarker,nextPartNumberMarker:It.data.NextPartNumberMarker,maxParts:It.data.MaxParts,isTruncated:It.data.IsTruncated,parts:It.data.Part||[]});case 12:case"end":return Xt.stop()}},wt,this)}));function ut(wt,Et,At,_t){return at.apply(this,arguments)}return ut}(),it.abortMultipartUpload=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At,_t){var Mt,jt,Lt;return vt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return this._stop(),_t=_t||{},Mt={},xt(_t).to(Mt),Mt.subres={uploadId:At},jt=this._objectRequestParams("DELETE",Et,Mt),jt.successStatuses=[204],Ut.next=9,this.request(jt);case 9:return Lt=Ut.sent,Ut.abrupt("return",{res:Lt.res});case 11:case"end":return Ut.stop()}},wt,this)}));function ut(wt,Et,At){return at.apply(this,arguments)}return ut}(),it.initMultipartUpload=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At){var _t,Mt,jt;return vt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return At=At||{},_t={},xt(At).to(_t),_t.headers=_t.headers||{},this._convertMetaToHeaders(At.meta,_t.headers),_t.subres="uploads",Mt=this._objectRequestParams("POST",Et,_t),Mt.mime=At.mime,Mt.xmlResponse=!0,Mt.successStatuses=[200],It.next=12,this.request(Mt);case 12:return jt=It.sent,It.abrupt("return",{res:jt.res,bucket:jt.data.Bucket,name:jt.data.Key,uploadId:jt.data.UploadId});case 14:case"end":return It.stop()}},wt,this)}));function ut(wt,Et){return at.apply(this,arguments)}return ut}(),it.uploadPart=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At,_t,Mt,jt,Lt,It){var Ut,Xt;return vt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(Ut={size:Lt-jt},Xt=St&&St.browser,!Xt){Yt.next=8;break}return Yt.next=5,this._createBuffer(Mt,jt,Lt);case 5:Ut.content=Yt.sent,Yt.next=11;break;case 8:return Yt.next=10,this._createStream(Mt,jt,Lt);case 10:Ut.stream=Yt.sent;case 11:return Yt.next=13,this._uploadPart(Et,At,_t,Ut,It);case 13:return Yt.abrupt("return",Yt.sent);case 14:case"end":return Yt.stop()}},wt,this)}));function ut(wt,Et,At,_t,Mt,jt,Lt){return at.apply(this,arguments)}return ut}(),it.completeMultipartUpload=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At,_t,Mt){var jt,Lt,It,Ut,Xt,Gt,Yt,Ht;return vt.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:for(jt=_t.concat().sort(function(ve,Kt){return ve.number-Kt.number}).filter(function(ve,Kt,re){return!Kt||ve.number!==re[Kt-1].number}),Lt=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,It=0;It<jt.length;It++)Ut=jt[It],Lt+=`<Part>
`,Lt+="<PartNumber>".concat(Ut.number,`</PartNumber>
`),Lt+="<ETag>".concat(Ut.etag,`</ETag>
`),Lt+=`</Part>
`;return Lt+="</CompleteMultipartUpload>",Mt=Mt||{},Xt={},Xt=ct(Mt,function(ve){if(E(ve))return null}),Xt.subres={uploadId:At},Xt.headers=ot(Xt.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Gt=this._objectRequestParams("POST",Et,Xt),dt.encodeCallback(Gt,Xt),Gt.mime="xml",Gt.content=Lt,Gt.headers&&Gt.headers["x-oss-callback"]||(Gt.xmlResponse=!0),Gt.successStatuses=[200],ae.next=17,this.request(Gt);case 17:if(Yt=ae.sent,!Mt.progress){ae.next=21;break}return ae.next=21,Mt.progress(1,null,Yt.res);case 21:return Ht={res:Yt.res,bucket:Gt.bucket,name:Et,etag:Yt.res.headers.etag},Gt.headers&&Gt.headers["x-oss-callback"]&&(Ht.data=JSON.parse(Yt.data.toString())),ae.abrupt("return",Ht);case 24:case"end":return ae.stop()}},wt,this)}));function ut(wt,Et,At,_t){return at.apply(this,arguments)}return ut}(),it._uploadPart=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At,_t,Mt,jt){var Lt,It,Ut,Xt;return vt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return jt=jt||{},Lt={},xt(jt).to(Lt),Lt.headers=Lt.headers||{},Lt.headers["Content-Length"]=Mt.size,Lt.headers=ot(Lt.headers,["x-oss-server-side-encryption"]),Lt.subres={partNumber:_t,uploadId:At},It=this._objectRequestParams("PUT",Et,Lt),It.mime=Lt.mime,Ut=St&&St.browser,Ut?It.content=Mt.content:It.stream=Mt.stream,It.successStatuses=[200],It.disabledMD5=jt.disabledMD5,Yt.next=15,this.request(It);case 15:if(Xt=Yt.sent,Xt.res.headers.etag){Yt.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 18:return Mt.stream&&(Mt.stream=null,It.stream=null),Yt.abrupt("return",{name:Et,etag:Xt.res.headers.etag,res:Xt.res});case 20:case"end":return Yt.stop()}},wt,this)}));function ut(wt,Et,At,_t,Mt){return at.apply(this,arguments)}return ut}()}).call(this)}).call(this,rt("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("url"),xt=rt("utility"),dt=rt("copy-to"),ft=rt("../../common/signUtils"),ct=rt("../utils/isIP"),lt=ct.isIP,E=rt("../utils/setSTSToken"),z=E.setSTSToken,ot=rt("../utils/isFunction"),it=ot.isFunction,at=Ct;at.asyncSignatureUrl=function(){var ut=(0,vt.default)(pt.default.mark(function Et(At,_t){var Mt,jt,Lt,It,Ut;return pt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(!lt(this.options.endpoint.hostname)){Gt.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(_t=_t||{},At=this._objectName(At),_t.method=_t.method||"GET",Mt=xt.timestamp()+(_t.expires||1800),jt={bucket:this.options.bucket,object:At},Lt=this._getResource(jt),!(this.options.stsToken&&it(this.options.refreshSTSToken))){Gt.next=11;break}return Gt.next=11,z.call(this);case 11:return this.options.stsToken&&(_t["security-token"]=this.options.stsToken),It=ft._signatureForURL(this.options.accessKeySecret,_t,Lt,Mt),Ut=yt.parse(this._getReqUrl(jt)),Ut.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Mt,Signature:It.Signature},dt(It.subResource).to(Ut.query),Gt.abrupt("return",Ut.format());case 17:case"end":return Gt.stop()}},Et,this)}));function wt(Et,At){return ut.apply(this,arguments)}return wt}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js");var vt=St(rt("@babel/runtime/helpers/typeof")),yt=St(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("../utils/checkBucketName"),dt=xt.checkBucketName,ft=Ct,ct=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ft.copy=function(){var lt=(0,yt.default)(pt.default.mark(function z(ot,it,at,ut){var wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return(0,vt.default)(at)==="object"&&(ut=at),ut=ut||{},ut.headers=ut.headers||{},Object.keys(ut.headers).forEach(function(jt){ut.headers["x-oss-copy-source-".concat(jt.toLowerCase())]=ut.headers[jt]}),(ut.meta||Object.keys(ut.headers).find(function(jt){return ct.includes(jt.toLowerCase())}))&&(ut.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ut.meta,ut.headers),it=this._getSourceName(it,at),ut.versionId&&(it="".concat(it,"?versionId=").concat(ut.versionId)),ut.headers["x-oss-copy-source"]=it,wt=this._objectRequestParams("PUT",ot,ut),wt.xmlResponse=!0,wt.successStatuses=[200,304],Mt.next=14,this.request(wt);case 14:return Et=Mt.sent,At=Et.data,At&&(At={etag:At.ETag,lastModified:At.LastModified}),Mt.abrupt("return",{data:At,res:Et.res});case 18:case"end":return Mt.stop()}},z,this)}));function E(z,ot,it,at){return lt.apply(this,arguments)}return E}(),ft._getSourceName=function(E,z){return typeof z=="string"?E=this._objectName(E):E[0]!=="/"?z=this.options.bucket:(z=E.replace(/\/(.+?)(\/.*)/,"$1"),E=E.replace(/(\/.+?\/)(.*)/,"$2")),dt(z),E=encodeURIComponent(E),E="/".concat(z,"/").concat(E),E}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.delete=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot=arguments;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return lt=ot.length>1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),E=this._objectRequestParams("DELETE",ct,lt),E.successStatuses=[204],at.next=7,this.request(E);case 7:return z=at.sent,at.abrupt("return",{res:z.res});case 9:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("utility"),xt=rt("../utils/obj2xml"),dt=xt.obj2xml,ft=Ct;ft.deleteMulti=function(){var ct=(0,vt.default)(pt.default.mark(function E(z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt=arguments;return pt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(ot=Xt.length>1&&Xt[1]!==void 0?Xt[1]:{},it=[],!(!z||!z.length)){Yt.next=4;break}throw new Error("names is required");case 4:for(at=0;at<z.length;at++)ut={},typeof z[at]=="string"?ut.Key=yt.escape(this._objectName(z[at])):(wt=z[at],Et=wt.key,At=wt.versionId,ut.Key=yt.escape(this._objectName(Et)),ut.VersionId=At),it.push(ut);return _t={Delete:{Quiet:!!ot.quiet,Object:it}},Mt=dt(_t,{headers:!0}),ot.subres=Object.assign({delete:""},ot.subres),ot.versionId&&(ot.subres.versionId=ot.versionId),jt=this._objectRequestParams("POST","",ot),jt.mime="xml",jt.content=Mt,jt.xmlResponse=!0,jt.successStatuses=[200],Yt.next=16,this.request(jt);case 16:return Lt=Yt.sent,It=Lt.data,Ut=It&&It.Deleted||null,Ut&&(Array.isArray(Ut)||(Ut=[Ut])),Yt.abrupt("return",{res:Lt.res,deleted:Ut||[]});case 21:case"end":return Yt.stop()}},E,this)}));function lt(E){return ct.apply(this,arguments)}return lt}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.deleteObjectTagging=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot=arguments;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return lt=ot.length>1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({tagging:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("DELETE",ct,lt),E.successStatuses=[204],at.next=8,this.request(E);case 8:return z=at.sent,at.abrupt("return",{status:z.status,res:z.res});case 10:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js");var St=rt("url"),pt=rt("../utils/isIP"),vt=pt.isIP,yt=Ct;yt.generateObjectUrl=function(dt,ft){if(vt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ft)ft[ft.length-1]!=="/"&&(ft+="/");else{ft=this.options.endpoint.format();var ct=St.parse(ft),lt=this.options.bucket;ct.hostname="".concat(lt,".").concat(ct.hostname),ct.host="".concat(lt,".").concat(ct.host),ft=ct.format()}return ft+this._escape(this._objectName(dt))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var yt=pt(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("fs"),dt=rt("is-type-of"),ft=Ct;ft.get=function(){var ct=(0,yt.default)(vt.default.mark(function E(z,ot){var it,at,ut,wt,Et,At,_t,Mt,jt=arguments;return vt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return it=jt.length>2&&jt[2]!==void 0?jt[2]:{},at=null,ut=!1,dt.writableStream(ot)?at=ot:dt.string(ot)?(at=xt.createWriteStream(ot),ut=!0):it=ot,it=it||{},wt=St&&St.browser,Et=it.responseCacheControl===null?"":"no-cache",At=wt&&Et?{"response-cache-control":Et}:{},it.subres=Object.assign(At,it.subres),it.versionId&&(it.subres.versionId=it.versionId),it.process&&(it.subres["x-oss-process"]=it.process),It.prev=11,Mt=this._objectRequestParams("GET",z,it),Mt.writeStream=at,Mt.successStatuses=[200,206,304],It.next=17,this.request(Mt);case 17:_t=It.sent,ut&&at.destroy(),It.next=28;break;case 21:if(It.prev=21,It.t0=It.catch(11),!ut){It.next=27;break}return at.destroy(),It.next=27,this._deleteFileSafe(ot);case 27:throw It.t0;case 28:return It.abrupt("return",{res:_t.res,content:_t.data});case 29:case"end":return It.stop()}},E,this,[[11,21]])}));function lt(E,z){return ct.apply(this,arguments)}return lt}()}).call(this)}).call(this,rt("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getACL=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot=arguments;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return lt=ot.length>1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({acl:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("GET",ct,lt),E.successStatuses=[200],E.xmlResponse=!0,at.next=9,this.request(E);case 9:return z=at.sent,at.abrupt("return",{acl:z.data.AccessControlList.Grant,owner:{id:z.data.Owner.ID,displayName:z.data.Owner.DisplayName},res:z.res});case 11:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.number.constructor.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct,xt=rt("../utils/isObject"),dt=xt.isObject,ft=rt("../utils/isArray"),ct=ft.isArray;yt.getBucketVersions=lt,yt.listObjectVersions=lt;function lt(){return E.apply(this,arguments)}function E(){return E=(0,vt.default)(pt.default.mark(function it(){var at,ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(at=Lt.length>0&&Lt[0]!==void 0?Lt[0]:{},ut=Lt.length>1&&Lt[1]!==void 0?Lt[1]:{},!(at.versionIdMarker&&at.keyMarker===void 0)){Ut.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ut.subres=Object.assign({versions:""},ut.subres),ut.versionId&&(ut.subres.versionId=ut.versionId),wt=this._objectRequestParams("GET","",ut),wt.xmlResponse=!0,wt.successStatuses=[200],wt.query=ot(at),Ut.next=12,this.request(wt);case 12:return Et=Ut.sent,At=Et.data.Version||[],_t=Et.data.DeleteMarker||[],Mt=this,At&&(Array.isArray(At)||(At=[At]),At=At.map(function(Xt){return{name:Xt.Key,url:Mt._objectUrl(Xt.Key),lastModified:Xt.LastModified,isLatest:Xt.IsLatest==="true",versionId:Xt.VersionId,etag:Xt.ETag,type:Xt.Type,size:Number(Xt.Size),storageClass:Xt.StorageClass,owner:{id:Xt.Owner.ID,displayName:Xt.Owner.DisplayName}}})),_t&&(ct(_t)||(_t=[_t]),_t=_t.map(function(Xt){return{name:Xt.Key,lastModified:Xt.LastModified,versionId:Xt.VersionId,owner:{id:Xt.Owner.ID,displayName:Xt.Owner.DisplayName}}})),jt=Et.data.CommonPrefixes||null,jt&&(ct(jt)||(jt=[jt]),jt=jt.map(function(Xt){return Xt.Prefix})),Ut.abrupt("return",{res:Et.res,objects:At,deleteMarker:_t,prefixes:jt,nextMarker:Et.data.NextKeyMarker||null,NextVersionIdMarker:Et.data.NextVersionIdMarker||null,nextKeyMarker:Et.data.NextKeyMarker||null,nextVersionIdMarker:Et.data.NextVersionIdMarker||null,isTruncated:Et.data.IsTruncated==="true"});case 21:case"end":return Ut.stop()}},it,this)})),E.apply(this,arguments)}function z(it){return it.replace(/([A-Z])/g,"-$1").toLowerCase()}function ot(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},at={};return dt(it)&&Object.keys(it).forEach(function(ut){at[z(ut)]=it[ut]}),at}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getObjectMeta=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z;return pt.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return lt=lt||{},ct=this._objectName(ct),lt.subres=Object.assign({objectMeta:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),E=this._objectRequestParams("HEAD",ct,lt),E.successStatuses=[200],it.next=8,this.request(E);case 8:return z=it.sent,it.abrupt("return",{status:z.status,res:z.res});case 10:case"end":return it.stop()}},ft,this)}));function dt(ft,ct){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct,xt=rt("../utils/isObject"),dt=xt.isObject;yt.getObjectTagging=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E){var z,ot,it,at,ut,wt,Et=arguments;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return z=Et.length>1&&Et[1]!==void 0?Et[1]:{},z.subres=Object.assign({tagging:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),E=this._objectName(E),ot=this._objectRequestParams("GET",E,z),ot.successStatuses=[200],_t.next=8,this.request(ot);case 8:return it=_t.sent,_t.next=11,this.parseXML(it.data);case 11:return at=_t.sent,ut=at.TagSet.Tag,ut=ut&&dt(ut)?[ut]:ut||[],wt={},ut.forEach(function(Mt){wt[Mt.Key]=Mt.Value}),_t.abrupt("return",{status:it.status,res:it.res,tag:wt});case 17:case"end":return _t.stop()}},lt,this)}));function ct(lt){return ft.apply(this,arguments)}return ct}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(rt,kt,Ct){"use strict";var St=rt("../utils/isIP"),pt=St.isIP,vt=Ct;vt.getObjectUrl=function(xt,dt){if(pt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return dt?dt[dt.length-1]!=="/"&&(dt+="/"):dt=this.options.endpoint.format(),dt+this._escape(this._objectName(xt))}},{"../utils/isIP":69}],43:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getSymlink=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot,it=arguments;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return lt=it.length>1&&it[1]!==void 0?it[1]:{},lt.subres=Object.assign({symlink:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("GET",ct,lt),E.successStatuses=[200],ut.next=8,this.request(E);case 8:return z=ut.sent,ot=z.res.headers["x-oss-symlink-target"],ut.abrupt("return",{targetName:decodeURIComponent(ot),res:z.res});case 11:case"end":return ut.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkEnv"),xt=yt.checkEnv,dt=Ct;dt.head=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E){var z,ot,it,at,ut=arguments;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return z=ut.length>1&&ut[1]!==void 0?ut[1]:{},xt("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),z.subres=Object.assign({},z.subres),z.versionId&&(z.subres.versionId=z.versionId),ot=this._objectRequestParams("HEAD",E,z),ot.successStatuses=[200,304],Et.next=8,this.request(ot);case 8:return it=Et.sent,at={meta:null,res:it.res,status:it.status},it.status===200&&Object.keys(it.headers).forEach(function(At){At.indexOf("x-oss-meta-")===0&&(at.meta||(at.meta={}),at.meta[At.substring(11)]=it.headers[At])}),Et.abrupt("return",at);case 12:case"end":return Et.stop()}},lt,this)}));function ct(lt){return ft.apply(this,arguments)}return ct}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.putACL=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return E=E||{},E.subres=Object.assign({acl:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.headers=E.headers||{},E.headers["x-oss-object-acl"]=lt,ct=this._objectName(ct),z=this._objectRequestParams("PUT",ct,E),z.successStatuses=[200],at.next=10,this.request(z);case 10:return ot=at.sent,at.abrupt("return",{res:ot.res});case 12:case"end":return at.stop()}},ft,this)}));function dt(ft,ct,lt){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.object.keys.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/obj2xml"),xt=yt.obj2xml,dt=rt("../utils/checkObjectTag"),ft=dt.checkObjectTag,ct=Ct;ct.putObjectTagging=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return at=At.length>2&&At[2]!==void 0?At[2]:{},ft(it),at.subres=Object.assign({tagging:""},at.subres),at.versionId&&(at.subres.versionId=at.versionId),ot=this._objectName(ot),ut=this._objectRequestParams("PUT",ot,at),ut.successStatuses=[200],it=Object.keys(it).map(function(jt){return{Key:jt,Value:it[jt]}}),wt={Tagging:{TagSet:{Tag:it}}},ut.mime="xml",ut.content=xt(wt),Mt.next=13,this.request(ut);case 13:return Et=Mt.sent,Mt.abrupt("return",{res:Et.res,status:Et.status});case 15:case"end":return Mt.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.putSymlink=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return E=E||{},E.headers=E.headers||{},lt=this._escape(this._objectName(lt)),this._convertMetaToHeaders(E.meta,E.headers),E.headers["x-oss-symlink-target"]=lt,E.subres=Object.assign({symlink:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.storageClass&&(E.headers["x-oss-storage-class"]=E.storageClass),ct=this._objectName(ct),z=this._objectRequestParams("PUT",ct,E),z.successStatuses=[200],at.next=13,this.request(z);case 13:return ot=at.sent,at.abrupt("return",{res:ot.res});case 15:case"end":return at.stop()}},ft,this)}));function dt(ft,ct,lt){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(rt,kt,Ct){"use strict";var St=rt("url"),pt=rt("utility"),vt=rt("copy-to"),yt=rt("../../common/signUtils"),xt=rt("../utils/isIP"),dt=xt.isIP,ft=Ct;ft.signatureUrl=function(lt,E){if(dt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");E=E||{},lt=this._objectName(lt),E.method=E.method||"GET";var z=pt.timestamp()+(E.expires||1800),ot={bucket:this.options.bucket,object:lt},it=this._getResource(ot);this.options.stsToken&&(E["security-token"]=this.options.stsToken);var at=yt._signatureForURL(this.options.accessKeySecret,E,it,z),ut=St.parse(this._getReqUrl(ot));return ut.query={OSSAccessKeyId:this.options.accessKeyId,Expires:z,Signature:at.Signature},vt(at.subResource).to(ut.query),ut.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/web.dom-collections.iterator.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.function.name.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("./utils/isArray"),xt=yt.isArray,dt=Ct;dt._parallelNode=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot,it){var at,ut,wt,Et,At,_t,Mt,jt;return pt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:at=this,ut=[],wt=[],Et=E.length/z,At=E.length%z,_t=At===0?Et:(E.length-At)/z+1,Mt=1,jt=0;case 8:if(!(jt<E.length)){It.next=26;break}if(!at.isCancel()){It.next=11;break}return It.abrupt("break",26);case 11:if(it?wt.push(ot(at,E[jt],it)):wt.push(ot(at,E[jt])),!(wt.length===z||Mt===_t&&jt===E.length-1)){It.next=23;break}return It.prev=13,Mt+=1,It.next=17,Promise.all(wt);case 17:It.next=22;break;case 19:It.prev=19,It.t0=It.catch(13),ut.push(It.t0);case 22:wt=[];case 23:jt++,It.next=8;break;case 26:return It.abrupt("return",ut);case 27:case"end":return It.stop()}},lt,this,[[13,19]])}));function ct(lt,E,z,ot){return ft.apply(this,arguments)}return ct}(),dt._parallel=function(ct,lt,E){var z=this;return new Promise(function(ot){var it=[];if(lt<=0||!ct){ot(it);return}function at(It){return function(){if(It===null)throw new Error("Callback was already called.");var Ut=It;It=null;for(var Xt=arguments.length,Gt=new Array(Xt),Yt=0;Yt<Xt;Yt++)Gt[Yt]=arguments[Yt];Ut.apply(this,Gt)}}function ut(It){var Ut=-1,Xt=It.length;return function(){return++Ut<Xt&&!z.isCancel()?{value:It[Ut],key:Ut}:null}}var wt=ut(ct),Et=!1,At=0,_t=!1;function Mt(It){At-=1,It?(Et=!0,it.push(It),ot(it)):Et&&At<=0?(Et=!0,ot(it)):_t||(z.isCancel()?ot(it):Lt())}function jt(It,Ut){E(It).then(function(Xt){Ut(null,Xt)}).catch(function(Xt){Ut(Xt)})}function Lt(){for(_t=!0;At<lt&&!Et&&!z.isCancel();){var It=wt();if(It===null||it.length>0){Et=!0,At<=0&&ot(it);return}At+=1,jt(It.value,at(Mt))}_t=!1}Lt()})},dt.cancel=function(ct){this.options.cancelFlag=!0,xt(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(lt){if(lt.destroyed===!1){var E={name:"cancel",message:"cancel"};lt.destroy(E)}}),this.multipartUploadStreams=[],ct&&this.abortMultipartUpload(ct.name,ct.uploadId,ct.options)},dt.isCancel=function(){return this.options.cancelFlag},dt.resetCancelFlag=function(){this.options.cancelFlag=!1},dt._stop=function(){this.options.cancelFlag=!0},dt._makeCancelEvent=function(){var ct={status:0,name:"cancel"};return ct},dt._makeAbortEvent=function(){var ct={status:0,name:"abort",message:"upload task has been abort"};return ct}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.array.sort.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.to-string.js");var pt=rt("./../../shims/crypto/crypto.js"),vt=rt("is-type-of"),yt=rt("./utils/lowercaseKeyHeader"),xt=yt.lowercaseKeyHeader;Ct.buildCanonicalizedResource=function(ft,ct){var lt="".concat(ft),E="?";if(vt.string(ct)&&ct.trim()!=="")lt+=E+ct;else if(vt.array(ct))ct.sort(),lt+=E+ct.join("&");else if(ct){var z=function(at,ut){return at[0]>ut[0]?1:at[0]<ut[0]?-1:0},ot=function(at){lt+=E+at,(ct[at]||ct[at]===0)&&(lt+="=".concat(ct[at])),E="&"};Object.keys(ct).sort(z).forEach(ot)}return lt},Ct.buildCanonicalString=function(ft,ct,lt,E){lt=lt||{};var z=xt(lt.headers),ot="x-oss-",it=[],at={},ut=[ft.toUpperCase(),z["content-md5"]||"",z["content-type"],E||z["x-oss-date"]];return Object.keys(z).forEach(function(wt){var Et=wt.toLowerCase();Et.indexOf(ot)===0&&(at[Et]=String(z[wt]).trim())}),Object.keys(at).sort().forEach(function(wt){it.push("".concat(wt,":").concat(at[wt]))}),ut=ut.concat(it),ut.push(this.buildCanonicalizedResource(ct,lt.parameters)),ut.join(`
`)},Ct.computeSignature=function(ft,ct){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",E=pt.createHmac("sha1",ft);return E.update(St.from(ct,lt)).digest("base64")},Ct.authorization=function(ft,ct,lt,E){return"OSS ".concat(ft,":").concat(this.computeSignature(ct,lt,E))},Ct._signatureForURL=function(ft){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lt=arguments.length>2?arguments[2]:void 0,E=arguments.length>3?arguments[3]:void 0,z=arguments.length>4?arguments[4]:void 0,ot={},it=ct.subResource,at=it===void 0?{}:it;if(ct.process){var ut="x-oss-process";at[ut]=ct.process}if(ct.trafficLimit){var wt="x-oss-traffic-limit";at[wt]=ct.trafficLimit}if(ct.response&&Object.keys(ct.response).forEach(function(Mt){var jt="response-".concat(Mt.toLowerCase());at[jt]=ct.response[Mt]}),Object.keys(ct).forEach(function(Mt){var jt=Mt.toLowerCase(),Lt=ct[Mt];jt.indexOf("x-oss-")===0?ot[jt]=Lt:(jt.indexOf("content-md5")===0||jt.indexOf("content-type")===0)&&(ot[Mt]=Lt)}),Object.prototype.hasOwnProperty.call(ct,"security-token")&&(at["security-token"]=ct["security-token"]),Object.prototype.hasOwnProperty.call(ct,"callback")){var Et={callbackUrl:encodeURI(ct.callback.url),callbackBody:ct.callback.body};if(ct.callback.host&&(Et.callbackHost=ct.callback.host),ct.callback.contentType&&(Et.callbackBodyType=ct.callback.contentType),at.callback=St.from(JSON.stringify(Et)).toString("base64"),ct.callback.customValue){var At={};Object.keys(ct.callback.customValue).forEach(function(Mt){At["x:".concat(Mt)]=ct.callback.customValue[Mt]}),at["callback-var"]=St.from(JSON.stringify(At)).toString("base64")}}var _t=this.buildCanonicalString(ct.method,lt,{headers:ot,parameters:at},E.toString());return{Signature:this.computeSignature(ft,_t,z),subResource:at}}}).call(this)}).call(this,rt("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkBucketName=void 0,Ct.checkBucketName=function(St){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=pt?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!vt.test(St))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkConfigValid=void 0;var St={endpoint:pt,region:/^[a-zA-Z0-9\-_]+$/};function pt(vt){return typeof vt=="string"?/^[a-zA-Z0-9._:/-]+$/.test(vt):vt.host?/^[a-zA-Z0-9._:/-]+$/.test(vt.host):!1}Ct.checkConfigValid=function(vt,yt){if(St[yt]){var xt=!0;if(St[yt]instanceof Function?xt=St[yt](vt):xt=St[yt].test(vt),!xt)throw new Error("The ".concat(yt," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(rt,kt,Ct){(function(St){(function(){"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkEnv=void 0;function pt(vt){St.browser&&console.warn(vt)}Ct.checkEnv=pt}).call(this)}).call(this,rt("_process"))},{_process:467}],54:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.object.entries.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkObjectTag=void 0;var St=rt("./checkValid"),pt=St.checkValid,vt=rt("./isObject"),yt=vt.isObject,xt=[{validator:function(lt){if(typeof lt!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],dt={key:[].concat(xt,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(xt,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ft(ct){if(!yt(ct))throw new Error("tag must be Object");var lt=Object.entries(ct);if(lt.length>10)throw new Error("maximum of 10 tags for a object");var E=["key","value"];lt.forEach(function(z){z.forEach(function(ot,it){pt(ot,dt[E[it]])})})}Ct.checkObjectTag=ft},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkValid=void 0;function St(pt,vt){vt.forEach(function(yt){if(yt.validator)yt.validator(pt);else if(yt.pattern&&!yt.pattern.test(pt))throw new Error(yt.msg)})}Ct.checkValid=St},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.includes.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.concat.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.createRequest=void 0;var pt=rt("./../../../shims/crypto/crypto.js"),vt=rt("debug")("ali-oss"),yt=rt("mime"),xt=rt("dateformat"),dt=rt("copy-to"),ft=rt("path"),ct=rt("./encoder"),lt=ct.encoder,E=rt("./isIP"),z=E.isIP,ot=rt("./setRegion"),it=ot.setRegion,at=rt("../client/getReqUrl"),ut=at.getReqUrl,wt=rt("./isDingTalk"),Et=wt.isDingTalk;function At(jt,Lt){return jt[Lt]||jt[Lt.toLowerCase()]}function _t(jt,Lt){delete jt[Lt],delete jt[Lt.toLowerCase()]}function Mt(jt){var Lt=new Date;this.options.amendTimeSkewed&&(Lt=+new Date+this.options.amendTimeSkewed);var It={"x-oss-date":xt(Lt,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(It["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(It["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(It,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(It["x-oss-security-token"]=this.options.stsToken),dt(jt.headers).to(It),At(It,"Content-Type")||(jt.mime&&jt.mime.indexOf("/")>0?It["Content-Type"]=jt.mime:Et()?It["Content-Type"]="application/octet-stream":It["Content-Type"]=yt.getType(jt.mime||ft.extname(jt.object||""))),At(It,"Content-Type")||_t(It,"Content-Type"),jt.content&&(jt.disabledMD5||(!jt.headers||!jt.headers["Content-MD5"]?It["Content-MD5"]=pt.createHash("md5").update(St.from(jt.content,"utf8")).digest("base64"):It["Content-MD5"]=jt.headers["Content-MD5"]),It["Content-Length"]||(It["Content-Length"]=jt.content.length));var Ut=Object.prototype.hasOwnProperty;for(var Xt in It)It[Xt]&&Ut.call(It,Xt)&&(It[Xt]=lt(String(It[Xt]),this.options.headerEncoding));var Gt=this._getResource(jt);if(It.authorization=this.authorization(jt.method,Gt,jt.subres,It,this.options.headerEncoding),z(this.options.endpoint.hostname)){var Yt=this.options,Ht=Yt.region,ne=Yt.internal,ae=Yt.secure,ve=it(Ht,ne,ae);It.host="".concat(jt.bucket,".").concat(ve.host)}var Kt=ut.bind(this)(jt);vt("request %s %s, with headers %j, !!stream: %s",jt.method,Kt,It,!!jt.stream);var re=jt.timeout||this.options.timeout,we={method:jt.method,content:jt.content,stream:jt.stream,headers:It,timeout:re,writeStream:jt.writeStream,customResponse:jt.customResponse,ctx:jt.ctx||this.ctx};return this.agent&&(we.agent=this.agent),this.httpsAgent&&(we.httpsAgent=this.httpsAgent),we.enableProxy=!!this.options.enableProxy,we.proxy=this.options.proxy?this.options.proxy:null,{url:Kt,params:we}}Ct.createRequest=Mt}).call(this)}).call(this,rt("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.entries.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.object.keys.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.dataFix=void 0;var St=rt("./isObject"),pt=["true","TRUE","1",1],vt=["false","FALSE","0",0];function yt(ft,ct,lt){if(St.isObject(ft)){var E=ct.remove,z=E===void 0?[]:E,ot=ct.rename,it=ot===void 0?{}:ot,at=ct.camel,ut=at===void 0?[]:at,wt=ct.bool,Et=wt===void 0?[]:wt,At=ct.lowerFirst,_t=At===void 0?!1:At;return z.forEach(function(Mt){return delete ft[Mt]}),Object.entries(it).forEach(function(Mt){ft[Mt[0]]&&(ft[Mt[1]]||(ft[Mt[1]]=ft[Mt[0]],delete ft[Mt[0]]))}),ut.forEach(function(Mt){if(ft[Mt]){var jt=Mt.replace(/^(.)/,function(Lt){return Lt.toLowerCase()}).replace(/-(\w)/g,function(Lt,It){return It.toUpperCase()});ft[jt]||(ft[jt]=ft[Mt])}}),Et.forEach(function(Mt){ft[Mt]=xt(ft[Mt])}),typeof lt=="function"&&lt(ft),dt(ft,_t),yt}}Ct.dataFix=yt;function xt(ft){return ft?pt.includes(ft)?!0:vt.includes(ft)?!1:ft:!1}function dt(ft,ct){ct&&Object.keys(ft).forEach(function(lt){var E=lt.replace(/^\w/,function(z){return z.toLowerCase()});typeof ft[E]=="undefined"&&(ft[E]=ft[lt],delete ft[lt])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault");rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js");var pt=St(rt("@babel/runtime/helpers/typeof"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.deepCopyWith=Ct.deepCopy=void 0;var vt=rt("./isBuffer");Ct.deepCopy=function(yt){if(yt===null||(0,pt.default)(yt)!=="object")return yt;if(vt.isBuffer(yt))return yt.slice();var xt=Array.isArray(yt)?[]:{};return Object.keys(yt).forEach(function(dt){xt[dt]=Ct.deepCopy(yt[dt])}),xt},Ct.deepCopyWith=function(yt,xt){function dt(ft,ct,lt){var E=xt(ft,ct,lt);if(E!==void 0)return E;if(ft===null||(0,pt.default)(ft)!=="object")return ft;if(vt.isBuffer(ft))return ft.slice();var z=Array.isArray(ft)?[]:{};return Object.keys(ft).forEach(function(ot){z[ot]=dt(ft[ot],ot,ft)}),z}return xt?dt(yt,"",null):Ct.deepCopy(yt)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.encoder=void 0;function pt(vt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return yt==="utf-8"?vt:St.from(vt).toString("latin1")}Ct.encoder=pt}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.formatInventoryConfig=void 0;var St=rt("../utils/dataFix"),pt=rt("../utils/isObject"),vt=rt("../utils/isArray"),yt=rt("../utils/formatObjKey");function xt(ft){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ct&&pt.isObject(ft)&&(ft=[ft]),vt.isArray(ft)?ft=ft.map(dt):ft=dt(ft),ft}Ct.formatInventoryConfig=xt;function dt(ft){return St.dataFix(ft,{bool:["IsEnabled"]},function(ct){var lt,E;ct.prefix=ct.Filter.Prefix,delete ct.Filter,ct.OSSBucketDestination=ct.Destination.OSSBucketDestination,ct.OSSBucketDestination.rolename=ct.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ct.OSSBucketDestination.RoleArn,ct.OSSBucketDestination.bucket=ct.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ct.OSSBucketDestination.Bucket,delete ct.Destination,ct.frequency=ct.Schedule.Frequency,delete ct.Schedule.Frequency,!((lt=ct==null?void 0:ct.OptionalFields)===null||lt===void 0)&&lt.Field&&!vt.isArray((E=ct.OptionalFields)===null||E===void 0?void 0:E.Field)&&(ct.OptionalFields.Field=[ct.OptionalFields.Field])}),ft=yt.formatObjKey(ft,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ft}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault");rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.includes.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js");var pt=St(rt("@babel/runtime/helpers/typeof"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.formatObjKey=void 0;function vt(xt,dt,ft){if(xt===null||(0,pt.default)(xt)!=="object")return xt;var ct;if(Array.isArray(xt)){ct=[];for(var lt=0;lt<xt.length;lt++)ct.push(vt(xt[lt],dt,ft))}else ct={},Object.keys(xt).forEach(function(E){ct[yt(E,dt,ft)]=vt(xt[E],dt,ft)});return ct}Ct.formatObjKey=vt;function yt(xt,dt,ft){return ft&&ft.exclude&&ft.exclude.includes(xt)||(dt==="firstUpperCase"?xt=xt.replace(/^./,function(ct){return ct.toUpperCase()}):dt==="firstLowerCase"&&(xt=xt.replace(/^./,function(ct){return ct.toLowerCase()}))),xt}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getStrBytesCount=void 0;function St(pt){for(var vt=0,yt=0;yt<pt.length;yt++){var xt=pt.charAt(yt);/^[\u00-\uff]$/.test(xt)?vt+=1:vt+=2}return vt}Ct.getStrBytesCount=St},{"core-js/modules/es.regexp.exec.js":300}],63:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isArray=void 0,Ct.isArray=function(St){return Object.prototype.toString.call(St)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(rt,kt,Ct){"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isBlob=void 0;function St(pt){return typeof Blob!="undefined"&&pt instanceof Blob}Ct.isBlob=St},{}],65:[function(rt,kt,Ct){(function(St){(function(){"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isBuffer=void 0;function pt(vt){return St.isBuffer(vt)}Ct.isBuffer=pt}).call(this)}).call(this,{isBuffer:rt("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.includes.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isDingTalk=void 0;function pt(){return!!(St.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}Ct.isDingTalk=pt}).call(this)}).call(this,rt("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(rt,kt,Ct){"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isFile=void 0,Ct.isFile=function(St){return typeof File!="undefined"&&St instanceof File}},{}],68:[function(rt,kt,Ct){"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isFunction=void 0,Ct.isFunction=function(St){return typeof St=="function"}},{}],69:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isIP=void 0,Ct.isIP=function(St){var pt=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,vt=/^\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 pt.test(St)||vt.test(St)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.isObject=void 0,Ct.isObject=function(St){return Object.prototype.toString.call(St)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.lowercaseKeyHeader=void 0;var St=rt("./isObject");function pt(vt){var yt={};return St.isObject(vt)&&Object.keys(vt).forEach(function(xt){yt[xt.toLowerCase()]=vt[xt]}),yt}Ct.lowercaseKeyHeader=pt},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.obj2xml=void 0;var St=rt("./formatObjKey");function pt(yt){return Object.prototype.toString.call(yt).replace(/(.*? |])/g,"").toLowerCase()}function vt(yt,xt){var dt="";return xt&&xt.headers&&(dt=`<?xml version="1.0" encoding="UTF-8"?>
`),xt&&xt.firstUpperCase&&(yt=St.formatObjKey(yt,"firstUpperCase")),pt(yt)==="object"?Object.keys(yt).forEach(function(ft){pt(yt[ft])!=="undefined"&&pt(yt[ft])!=="null"&&(pt(yt[ft])==="string"||pt(yt[ft])==="number"?dt+="<".concat(ft,">").concat(yt[ft],"</").concat(ft,">"):pt(yt[ft])==="object"?dt+="<".concat(ft,">").concat(vt(yt[ft]),"</").concat(ft,">"):pt(yt[ft])==="array"?dt+=yt[ft].map(function(ct){return"<".concat(ft,">").concat(vt(ct),"</").concat(ft,">")}).join(""):dt+="<".concat(ft,">").concat(yt[ft].toString(),"</").concat(ft,">"))}):dt+=yt.toString(),dt}Ct.obj2xml=vt},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.symbol.js"),rt("core-js/modules/es.symbol.description.js"),rt("core-js/modules/es.symbol.iterator.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/web.dom-collections.iterator.js"),rt("core-js/modules/es.object.assign.js");function St(xt,dt){var ft=typeof Symbol!="undefined"&&xt[Symbol.iterator]||xt["@@iterator"];if(!ft){if(Array.isArray(xt)||(ft=pt(xt))||dt&&xt&&typeof xt.length=="number"){ft&&(xt=ft);var ct=0,lt=function(){};return{s:lt,n:function(){return ct>=xt.length?{done:!0}:{done:!1,value:xt[ct++]}},e:function(at){throw at},f:lt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,z=!1,ot;return{s:function(){ft=ft.call(xt)},n:function(){var at=ft.next();return E=at.done,at},e:function(at){z=!0,ot=at},f:function(){try{!E&&ft.return!=null&&ft.return()}finally{if(z)throw ot}}}}function pt(xt,dt){if(xt){if(typeof xt=="string")return vt(xt,dt);var ft=Object.prototype.toString.call(xt).slice(8,-1);if(ft==="Object"&&xt.constructor&&(ft=xt.constructor.name),ft==="Map"||ft==="Set")return Array.from(xt);if(ft==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ft))return vt(xt,dt)}}function vt(xt,dt){(dt==null||dt>xt.length)&&(dt=xt.length);for(var ft=0,ct=new Array(dt);ft<dt;ft++)ct[ft]=xt[ft];return ct}Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.omit=void 0;function yt(xt,dt){var ft=Object.assign({},xt),ct=St(dt),lt;try{for(ct.s();!(lt=ct.n()).done;){var E=lt.value;delete ft[E]}}catch(z){ct.e(z)}finally{ct.f()}return ft}Ct.omit=yt},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.retry=void 0;function St(pt,vt){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=0,dt=yt.retryDelay,ft=dt===void 0?500:dt,ct=yt.errorHandler,lt=ct===void 0?function(){return!0}:ct,E=function z(){for(var ot=arguments.length,it=new Array(ot),at=0;at<ot;at++)it[at]=arguments[at];return new Promise(function(ut,wt){pt.apply(void 0,it).then(function(Et){xt=0,ut(Et)}).catch(function(Et){xt<vt&&lt(Et)?(xt++,setTimeout(function(){ut(z.apply(void 0,it))},ft)):(xt=0,wt(Et))})})};return E}Ct.retry=St},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(rt,kt,Ct){"use strict";var St=function(xt){return xt&&xt.__esModule?xt:{default:xt}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.setRegion=void 0;var pt=St(rt("url")),vt=rt("./checkConfigValid");function yt(xt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vt.checkConfigValid(xt,"region");var ct=ft?"https://":"http://",lt=dt?"-internal.aliyuncs.com":".aliyuncs.com",E="vpc100-oss-cn-";return xt.substr(0,E.length)===E&&(lt=".aliyuncs.com"),pt.default.parse(ct+xt+lt)}Ct.setRegion=yt},{"./checkConfigValid":52,url:472}],76:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkCredentials=Ct.setSTSToken=void 0;var yt=rt("./formatObjKey");function xt(){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ct(){var lt,E;return pt.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(this.options||(this.options={}),lt=new Date,!this.stsTokenFreshTime){ot.next=14;break}if(!(+lt-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ot.next=12;break}return this.stsTokenFreshTime=lt,ot.next=7,this.options.refreshSTSToken();case 7:E=ot.sent,E=yt.formatObjKey(E,"firstLowerCase"),E.securityToken&&(E.stsToken=E.securityToken),ft(E),Object.assign(this.options,E);case 12:ot.next=15;break;case 14:this.stsTokenFreshTime=lt;case 15:return ot.abrupt("return",null);case 16:case"end":return ot.stop()}},ct,this)})),dt.apply(this,arguments)}Ct.setSTSToken=xt;function ft(ct){var lt=["accessKeySecret","accessKeyId","stsToken"],E=Object.keys(ct);lt.forEach(function(z){if(!E.find(function(ot){return ot===z}))throw Error("refreshSTSToken must return contains ".concat(z))})}Ct.checkCredentials=ft},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(rt,kt,Ct){function St(vt,yt,xt,dt,ft,ct,lt){try{var E=vt[ct](lt),z=E.value}catch(ot){xt(ot);return}E.done?yt(z):Promise.resolve(z).then(dt,ft)}function pt(vt){return function(){var yt=this,xt=arguments;return new Promise(function(dt,ft){var ct=vt.apply(yt,xt);function lt(z){St(ct,dt,ft,lt,E,"next",z)}function E(z){St(ct,dt,ft,lt,E,"throw",z)}lt(void 0)})}}kt.exports=pt,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],78:[function(rt,kt,Ct){function St(pt){return pt&&pt.__esModule?pt:{default:pt}}kt.exports=St,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],79:[function(rt,kt,Ct){function St(pt){"@babel/helpers - typeof";return kt.exports=St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(vt){return typeof vt}:function(vt){return vt&&typeof Symbol=="function"&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt},kt.exports.__esModule=!0,kt.exports.default=kt.exports,St(pt)}kt.exports=St,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],80:[function(rt,kt,Ct){kt.exports=rt("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(rt,kt,Ct){kt.exports=St,kt.exports.HttpsAgent=St;function St(){}},{}],82:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("object-assign");function vt(Ht,ne){if(Ht===ne)return 0;for(var ae=Ht.length,ve=ne.length,Kt=0,re=Math.min(ae,ve);Kt<re;++Kt)if(Ht[Kt]!==ne[Kt]){ae=Ht[Kt],ve=ne[Kt];break}return ae<ve?-1:ve<ae?1:0}function yt(Ht){return St.Buffer&&typeof St.Buffer.isBuffer=="function"?St.Buffer.isBuffer(Ht):!!(Ht!=null&&Ht._isBuffer)}var xt=rt("util/"),dt=Object.prototype.hasOwnProperty,ft=Array.prototype.slice,ct=function(){return function(){}.name==="foo"}();function lt(Ht){return Object.prototype.toString.call(Ht)}function E(Ht){return yt(Ht)||typeof St.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ht):Ht?!!(Ht instanceof DataView||Ht.buffer&&Ht.buffer instanceof ArrayBuffer):!1}var z=kt.exports=At,ot=/\s*function\s+([^\(\s]*)\s*/;function it(Ht){if(xt.isFunction(Ht)){if(ct)return Ht.name;var ne=Ht.toString(),ae=ne.match(ot);return ae&&ae[1]}}z.AssertionError=function(ne){this.name="AssertionError",this.actual=ne.actual,this.expected=ne.expected,this.operator=ne.operator,ne.message?(this.message=ne.message,this.generatedMessage=!1):(this.message=wt(this),this.generatedMessage=!0);var ae=ne.stackStartFunction||Et;if(Error.captureStackTrace)Error.captureStackTrace(this,ae);else{var ve=new Error;if(ve.stack){var Kt=ve.stack,re=it(ae),we=Kt.indexOf(`
`+re);if(we>=0){var Me=Kt.indexOf(`
`,we+1);Kt=Kt.substring(Me+1)}this.stack=Kt}}},xt.inherits(z.AssertionError,Error);function at(Ht,ne){return typeof Ht=="string"?Ht.length<ne?Ht:Ht.slice(0,ne):Ht}function ut(Ht){if(ct||!xt.isFunction(Ht))return xt.inspect(Ht);var ne=it(Ht),ae=ne?": "+ne:"";return"[Function"+ae+"]"}function wt(Ht){return at(ut(Ht.actual),128)+" "+Ht.operator+" "+at(ut(Ht.expected),128)}function Et(Ht,ne,ae,ve,Kt){throw new z.AssertionError({message:ae,actual:Ht,expected:ne,operator:ve,stackStartFunction:Kt})}z.fail=Et;function At(Ht,ne){Ht||Et(Ht,!0,ne,"==",z.ok)}z.ok=At,z.equal=function(ne,ae,ve){ne!=ae&&Et(ne,ae,ve,"==",z.equal)},z.notEqual=function(ne,ae,ve){ne==ae&&Et(ne,ae,ve,"!=",z.notEqual)},z.deepEqual=function(ne,ae,ve){_t(ne,ae,!1)||Et(ne,ae,ve,"deepEqual",z.deepEqual)},z.deepStrictEqual=function(ne,ae,ve){_t(ne,ae,!0)||Et(ne,ae,ve,"deepStrictEqual",z.deepStrictEqual)};function _t(Ht,ne,ae,ve){if(Ht===ne)return!0;if(yt(Ht)&&yt(ne))return vt(Ht,ne)===0;if(xt.isDate(Ht)&&xt.isDate(ne))return Ht.getTime()===ne.getTime();if(xt.isRegExp(Ht)&&xt.isRegExp(ne))return Ht.source===ne.source&&Ht.global===ne.global&&Ht.multiline===ne.multiline&&Ht.lastIndex===ne.lastIndex&&Ht.ignoreCase===ne.ignoreCase;if((Ht===null||typeof Ht!="object")&&(ne===null||typeof ne!="object"))return ae?Ht===ne:Ht==ne;if(E(Ht)&&E(ne)&&lt(Ht)===lt(ne)&&!(Ht instanceof Float32Array||Ht instanceof Float64Array))return vt(new Uint8Array(Ht.buffer),new Uint8Array(ne.buffer))===0;if(yt(Ht)!==yt(ne))return!1;ve=ve||{actual:[],expected:[]};var Kt=ve.actual.indexOf(Ht);return Kt!==-1&&Kt===ve.expected.indexOf(ne)?!0:(ve.actual.push(Ht),ve.expected.push(ne),jt(Ht,ne,ae,ve))}function Mt(Ht){return Object.prototype.toString.call(Ht)=="[object Arguments]"}function jt(Ht,ne,ae,ve){if(Ht==null||ne===null||ne===void 0)return!1;if(xt.isPrimitive(Ht)||xt.isPrimitive(ne))return Ht===ne;if(ae&&Object.getPrototypeOf(Ht)!==Object.getPrototypeOf(ne))return!1;var Kt=Mt(Ht),re=Mt(ne);if(Kt&&!re||!Kt&&re)return!1;if(Kt)return Ht=ft.call(Ht),ne=ft.call(ne),_t(Ht,ne,ae);var we=Yt(Ht),Me=Yt(ne),ke,me;if(we.length!==Me.length)return!1;for(we.sort(),Me.sort(),me=we.length-1;me>=0;me--)if(we[me]!==Me[me])return!1;for(me=we.length-1;me>=0;me--)if(ke=we[me],!_t(Ht[ke],ne[ke],ae,ve))return!1;return!0}z.notDeepEqual=function(ne,ae,ve){_t(ne,ae,!1)&&Et(ne,ae,ve,"notDeepEqual",z.notDeepEqual)},z.notDeepStrictEqual=Lt;function Lt(Ht,ne,ae){_t(Ht,ne,!0)&&Et(Ht,ne,ae,"notDeepStrictEqual",Lt)}z.strictEqual=function(ne,ae,ve){ne!==ae&&Et(ne,ae,ve,"===",z.strictEqual)},z.notStrictEqual=function(ne,ae,ve){ne===ae&&Et(ne,ae,ve,"!==",z.notStrictEqual)};function It(Ht,ne){if(!Ht||!ne)return!1;if(Object.prototype.toString.call(ne)=="[object RegExp]")return ne.test(Ht);try{if(Ht instanceof ne)return!0}catch(ae){}return Error.isPrototypeOf(ne)?!1:ne.call({},Ht)===!0}function Ut(Ht){var ne;try{Ht()}catch(ae){ne=ae}return ne}function Xt(Ht,ne,ae,ve){var Kt;if(typeof ne!="function")throw new TypeError('"block" argument must be a function');typeof ae=="string"&&(ve=ae,ae=null),Kt=Ut(ne),ve=(ae&&ae.name?" ("+ae.name+").":".")+(ve?" "+ve:"."),Ht&&!Kt&&Et(Kt,ae,"Missing expected exception"+ve);var re=typeof ve=="string",we=!Ht&&xt.isError(Kt),Me=!Ht&&Kt&&!ae;if((we&&re&&It(Kt,ae)||Me)&&Et(Kt,ae,"Got unwanted exception"+ve),Ht&&Kt&&ae&&!It(Kt,ae)||!Ht&&Kt)throw Kt}z.throws=function(Ht,ne,ae){Xt(!0,Ht,ne,ae)},z.doesNotThrow=function(Ht,ne,ae){Xt(!1,Ht,ne,ae)},z.ifError=function(Ht){if(Ht)throw Ht};function Gt(Ht,ne){Ht||Et(Ht,!0,ne,"==",Gt)}z.strict=pt(Gt,z,{equal:z.strictEqual,deepEqual:z.deepStrictEqual,notEqual:z.notStrictEqual,notDeepEqual:z.notDeepStrictEqual}),z.strict.strict=z.strict;var Yt=Object.keys||function(Ht){var ne=[];for(var ae in Ht)dt.call(Ht,ae)&&ne.push(ae);return ne}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(rt,kt,Ct){typeof Object.create=="function"?kt.exports=function(pt,vt){pt.super_=vt,pt.prototype=Object.create(vt.prototype,{constructor:{value:pt,enumerable:!1,writable:!0,configurable:!0}})}:kt.exports=function(pt,vt){pt.super_=vt;var yt=function(){};yt.prototype=vt.prototype,pt.prototype=new yt,pt.prototype.constructor=pt}},{}],84:[function(rt,kt,Ct){kt.exports=function(pt){return pt&&typeof pt=="object"&&typeof pt.copy=="function"&&typeof pt.fill=="function"&&typeof pt.readUInt8=="function"}},{}],85:[function(rt,kt,Ct){(function(St,pt){(function(){var vt=/%[sdj%]/g;Ct.format=function(Me){if(!jt(Me)){for(var ke=[],me=0;me<arguments.length;me++)ke.push(dt(arguments[me]));return ke.join(" ")}for(var me=1,fe=arguments,pe=fe.length,_e=String(Me).replace(vt,function(He){if(He==="%%")return"%";if(me>=pe)return He;switch(He){case"%s":return String(fe[me++]);case"%d":return Number(fe[me++]);case"%j":try{return JSON.stringify(fe[me++])}catch(Se){return"[Circular]"}default:return He}}),je=fe[me];me<pe;je=fe[++me])At(je)||!Xt(je)?_e+=" "+je:_e+=" "+dt(je);return _e},Ct.deprecate=function(Me,ke){if(It(pt.process))return function(){return Ct.deprecate(Me,ke).apply(this,arguments)};if(St.noDeprecation===!0)return Me;var me=!1;function fe(){if(!me){if(St.throwDeprecation)throw new Error(ke);St.traceDeprecation?console.trace(ke):console.error(ke),me=!0}return Me.apply(this,arguments)}return fe};var yt={},xt;Ct.debuglog=function(Me){if(It(xt)&&(xt=St.env.NODE_DEBUG||""),Me=Me.toUpperCase(),!yt[Me])if(new RegExp("\\b"+Me+"\\b","i").test(xt)){var ke=St.pid;yt[Me]=function(){var me=Ct.format.apply(Ct,arguments);console.error("%s %d: %s",Me,ke,me)}}else yt[Me]=function(){};return yt[Me]};function dt(Me,ke){var me={seen:[],stylize:ct};return arguments.length>=3&&(me.depth=arguments[2]),arguments.length>=4&&(me.colors=arguments[3]),Et(ke)?me.showHidden=ke:ke&&Ct._extend(me,ke),It(me.showHidden)&&(me.showHidden=!1),It(me.depth)&&(me.depth=2),It(me.colors)&&(me.colors=!1),It(me.customInspect)&&(me.customInspect=!0),me.colors&&(me.stylize=ft),E(me,Me,me.depth)}Ct.inspect=dt,dt.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]},dt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ft(Me,ke){var me=dt.styles[ke];return me?"\x1B["+dt.colors[me][0]+"m"+Me+"\x1B["+dt.colors[me][1]+"m":Me}function ct(Me,ke){return Me}function lt(Me){var ke={};return Me.forEach(function(me,fe){ke[me]=!0}),ke}function E(Me,ke,me){if(Me.customInspect&&ke&&Ht(ke.inspect)&&ke.inspect!==Ct.inspect&&!(ke.constructor&&ke.constructor.prototype===ke)){var fe=ke.inspect(me,Me);return jt(fe)||(fe=E(Me,fe,me)),fe}var pe=z(Me,ke);if(pe)return pe;var _e=Object.keys(ke),je=lt(_e);if(Me.showHidden&&(_e=Object.getOwnPropertyNames(ke)),Yt(ke)&&(_e.indexOf("message")>=0||_e.indexOf("description")>=0))return ot(ke);if(_e.length===0){if(Ht(ke)){var He=ke.name?": "+ke.name:"";return Me.stylize("[Function"+He+"]","special")}if(Ut(ke))return Me.stylize(RegExp.prototype.toString.call(ke),"regexp");if(Gt(ke))return Me.stylize(Date.prototype.toString.call(ke),"date");if(Yt(ke))return ot(ke)}var Se="",xe=!1,le=["{","}"];if(wt(ke)&&(xe=!0,le=["[","]"]),Ht(ke)){var Ne=ke.name?": "+ke.name:"";Se=" [Function"+Ne+"]"}if(Ut(ke)&&(Se=" "+RegExp.prototype.toString.call(ke)),Gt(ke)&&(Se=" "+Date.prototype.toUTCString.call(ke)),Yt(ke)&&(Se=" "+ot(ke)),_e.length===0&&(!xe||ke.length==0))return le[0]+Se+le[1];if(me<0)return Ut(ke)?Me.stylize(RegExp.prototype.toString.call(ke),"regexp"):Me.stylize("[Object]","special");Me.seen.push(ke);var se;return xe?se=it(Me,ke,me,je,_e):se=_e.map(function(Ae){return at(Me,ke,me,je,Ae,xe)}),Me.seen.pop(),ut(se,Se,le)}function z(Me,ke){if(It(ke))return Me.stylize("undefined","undefined");if(jt(ke)){var me="'"+JSON.stringify(ke).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Me.stylize(me,"string")}if(Mt(ke))return Me.stylize(""+ke,"number");if(Et(ke))return Me.stylize(""+ke,"boolean");if(At(ke))return Me.stylize("null","null")}function ot(Me){return"["+Error.prototype.toString.call(Me)+"]"}function it(Me,ke,me,fe,pe){for(var _e=[],je=0,He=ke.length;je<He;++je)we(ke,String(je))?_e.push(at(Me,ke,me,fe,String(je),!0)):_e.push("");return pe.forEach(function(Se){Se.match(/^\d+$/)||_e.push(at(Me,ke,me,fe,Se,!0))}),_e}function at(Me,ke,me,fe,pe,_e){var je,He,Se;if(Se=Object.getOwnPropertyDescriptor(ke,pe)||{value:ke[pe]},Se.get?Se.set?He=Me.stylize("[Getter/Setter]","special"):He=Me.stylize("[Getter]","special"):Se.set&&(He=Me.stylize("[Setter]","special")),we(fe,pe)||(je="["+pe+"]"),He||(Me.seen.indexOf(Se.value)<0?(At(me)?He=E(Me,Se.value,null):He=E(Me,Se.value,me-1),He.indexOf(`
`)>-1&&(_e?He=He.split(`
`).map(function(xe){return" "+xe}).join(`
`).substr(2):He=`
`+He.split(`
`).map(function(xe){return" "+xe}).join(`
`))):He=Me.stylize("[Circular]","special")),It(je)){if(_e&&pe.match(/^\d+$/))return He;je=JSON.stringify(""+pe),je.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(je=je.substr(1,je.length-2),je=Me.stylize(je,"name")):(je=je.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),je=Me.stylize(je,"string"))}return je+": "+He}function ut(Me,ke,me){var fe=0,pe=Me.reduce(function(_e,je){return fe++,je.indexOf(`
`)>=0&&fe++,_e+je.replace(/\u001b\[\d\d?m/g,"").length+1},0);return pe>60?me[0]+(ke===""?"":ke+`
`)+" "+Me.join(`,
`)+" "+me[1]:me[0]+ke+" "+Me.join(", ")+" "+me[1]}function wt(Me){return Array.isArray(Me)}Ct.isArray=wt;function Et(Me){return typeof Me=="boolean"}Ct.isBoolean=Et;function At(Me){return Me===null}Ct.isNull=At;function _t(Me){return Me==null}Ct.isNullOrUndefined=_t;function Mt(Me){return typeof Me=="number"}Ct.isNumber=Mt;function jt(Me){return typeof Me=="string"}Ct.isString=jt;function Lt(Me){return typeof Me=="symbol"}Ct.isSymbol=Lt;function It(Me){return Me===void 0}Ct.isUndefined=It;function Ut(Me){return Xt(Me)&&ae(Me)==="[object RegExp]"}Ct.isRegExp=Ut;function Xt(Me){return typeof Me=="object"&&Me!==null}Ct.isObject=Xt;function Gt(Me){return Xt(Me)&&ae(Me)==="[object Date]"}Ct.isDate=Gt;function Yt(Me){return Xt(Me)&&(ae(Me)==="[object Error]"||Me instanceof Error)}Ct.isError=Yt;function Ht(Me){return typeof Me=="function"}Ct.isFunction=Ht;function ne(Me){return Me===null||typeof Me=="boolean"||typeof Me=="number"||typeof Me=="string"||typeof Me=="symbol"||typeof Me=="undefined"}Ct.isPrimitive=ne,Ct.isBuffer=rt("./support/isBuffer");function ae(Me){return Object.prototype.toString.call(Me)}function ve(Me){return Me<10?"0"+Me.toString(10):Me.toString(10)}var Kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function re(){var Me=new Date,ke=[ve(Me.getHours()),ve(Me.getMinutes()),ve(Me.getSeconds())].join(":");return[Me.getDate(),Kt[Me.getMonth()],ke].join(" ")}Ct.log=function(){console.log("%s - %s",re(),Ct.format.apply(Ct,arguments))},Ct.inherits=rt("inherits"),Ct._extend=function(Me,ke){if(!ke||!Xt(ke))return Me;for(var me=Object.keys(ke),fe=me.length;fe--;)Me[me[fe]]=ke[me[fe]];return Me};function we(Me,ke){return Object.prototype.hasOwnProperty.call(Me,ke)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],vt=typeof globalThis=="undefined"?St:globalThis;kt.exports=function(){for(var xt=[],dt=0;dt<pt.length;dt++)typeof vt[pt[dt]]=="function"&&(xt[xt.length]=pt[dt]);return xt}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(rt,kt,Ct){"use strict";Ct.byteLength=ct,Ct.toByteArray=E,Ct.fromByteArray=it;for(var St=[],pt=[],vt=typeof Uint8Array!="undefined"?Uint8Array:Array,yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xt=0,dt=yt.length;xt<dt;++xt)St[xt]=yt[xt],pt[yt.charCodeAt(xt)]=xt;pt[45]=62,pt[95]=63;function ft(at){var ut=at.length;if(ut%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var wt=at.indexOf("=");wt===-1&&(wt=ut);var Et=wt===ut?0:4-wt%4;return[wt,Et]}function ct(at){var ut=ft(at),wt=ut[0],Et=ut[1];return(wt+Et)*3/4-Et}function lt(at,ut,wt){return(ut+wt)*3/4-wt}function E(at){var ut,wt=ft(at),Et=wt[0],At=wt[1],_t=new vt(lt(at,Et,At)),Mt=0,jt=At>0?Et-4:Et,Lt;for(Lt=0;Lt<jt;Lt+=4)ut=pt[at.charCodeAt(Lt)]<<18|pt[at.charCodeAt(Lt+1)]<<12|pt[at.charCodeAt(Lt+2)]<<6|pt[at.charCodeAt(Lt+3)],_t[Mt++]=ut>>16&255,_t[Mt++]=ut>>8&255,_t[Mt++]=ut&255;return At===2&&(ut=pt[at.charCodeAt(Lt)]<<2|pt[at.charCodeAt(Lt+1)]>>4,_t[Mt++]=ut&255),At===1&&(ut=pt[at.charCodeAt(Lt)]<<10|pt[at.charCodeAt(Lt+1)]<<4|pt[at.charCodeAt(Lt+2)]>>2,_t[Mt++]=ut>>8&255,_t[Mt++]=ut&255),_t}function z(at){return St[at>>18&63]+St[at>>12&63]+St[at>>6&63]+St[at&63]}function ot(at,ut,wt){for(var Et,At=[],_t=ut;_t<wt;_t+=3)Et=(at[_t]<<16&16711680)+(at[_t+1]<<8&65280)+(at[_t+2]&255),At.push(z(Et));return At.join("")}function it(at){for(var ut,wt=at.length,Et=wt%3,At=[],_t=16383,Mt=0,jt=wt-Et;Mt<jt;Mt+=_t)At.push(ot(at,Mt,Mt+_t>jt?jt:Mt+_t));return Et===1?(ut=at[wt-1],At.push(St[ut>>2]+St[ut<<4&63]+"==")):Et===2&&(ut=(at[wt-2]<<8)+at[wt-1],At.push(St[ut>>10]+St[ut>>4&63]+St[ut<<2&63]+"=")),At.join("")}},{}],88:[function(rt,kt,Ct){(function(St,pt,vt){typeof kt!="undefined"&&kt.exports?kt.exports=vt():typeof Rt=="function"&&Rt.amd?Rt(pt,vt):St[pt]=vt()})(this,"bowser",function(){var St=!0;function pt(lt){function E(ke){var me=lt.match(ke);return me&&me.length>1&&me[1]||""}function z(ke){var me=lt.match(ke);return me&&me.length>1&&me[2]||""}var ot=E(/(ipod|iphone|ipad)/i).toLowerCase(),it=/like android/i.test(lt),at=!it&&/android/i.test(lt),ut=/nexus\s*[0-6]\s*/i.test(lt),wt=!ut&&/nexus\s*[0-9]+/i.test(lt),Et=/CrOS/.test(lt),At=/silk/i.test(lt),_t=/sailfish/i.test(lt),Mt=/tizen/i.test(lt),jt=/(web|hpw)(o|0)s/i.test(lt),Lt=/windows phone/i.test(lt),It=/SamsungBrowser/i.test(lt),Ut=!Lt&&/windows/i.test(lt),Xt=!ot&&!At&&/macintosh/i.test(lt),Gt=!at&&!_t&&!Mt&&!jt&&/linux/i.test(lt),Yt=z(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ht=E(/version\/(\d+(\.\d+)?)/i),ne=/tablet/i.test(lt)&&!/tablet pc/i.test(lt),ae=!ne&&/[^-]mobi/i.test(lt),ve=/xbox/i.test(lt),Kt;/opera/i.test(lt)?Kt={name:"Opera",opera:St,version:Ht||E(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(lt)?Kt={name:"Opera",opera:St,version:E(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ht}:/SamsungBrowser/i.test(lt)?Kt={name:"Samsung Internet for Android",samsungBrowser:St,version:Ht||E(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(lt)?Kt={name:"NAVER Whale browser",whale:St,version:E(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(lt)?Kt={name:"MZ Browser",mzbrowser:St,version:E(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(lt)?Kt={name:"Opera Coast",coast:St,version:Ht||E(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(lt)?Kt={name:"Focus",focus:St,version:E(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(lt)?Kt={name:"Yandex Browser",yandexbrowser:St,version:Ht||E(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(lt)?Kt={name:"UC Browser",ucbrowser:St,version:E(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(lt)?Kt={name:"Maxthon",maxthon:St,version:E(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(lt)?Kt={name:"Epiphany",epiphany:St,version:E(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(lt)?Kt={name:"Puffin",puffin:St,version:E(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(lt)?Kt={name:"Sleipnir",sleipnir:St,version:E(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(lt)?Kt={name:"K-Meleon",kMeleon:St,version:E(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Lt?(Kt={name:"Windows Phone",osname:"Windows Phone",windowsphone:St},Yt?(Kt.msedge=St,Kt.version=Yt):(Kt.msie=St,Kt.version=E(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(lt)?Kt={name:"Internet Explorer",msie:St,version:E(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Et?Kt={name:"Chrome",osname:"Chrome OS",chromeos:St,chromeBook:St,chrome:St,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(lt)?Kt={name:"Microsoft Edge",msedge:St,version:Yt}:/vivaldi/i.test(lt)?Kt={name:"Vivaldi",vivaldi:St,version:E(/vivaldi\/(\d+(\.\d+)?)/i)||Ht}:_t?Kt={name:"Sailfish",osname:"Sailfish OS",sailfish:St,version:E(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(lt)?Kt={name:"SeaMonkey",seamonkey:St,version:E(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(lt)?(Kt={name:"Firefox",firefox:St,version:E(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(lt)&&(Kt.firefoxos=St,Kt.osname="Firefox OS")):At?Kt={name:"Amazon Silk",silk:St,version:E(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(lt)?Kt={name:"PhantomJS",phantom:St,version:E(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(lt)?Kt={name:"SlimerJS",slimer:St,version:E(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(lt)||/rim\stablet/i.test(lt)?Kt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:St,version:Ht||E(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:jt?(Kt={name:"WebOS",osname:"WebOS",webos:St,version:Ht||E(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(lt)&&(Kt.touchpad=St)):/bada/i.test(lt)?Kt={name:"Bada",osname:"Bada",bada:St,version:E(/dolfin\/(\d+(\.\d+)?)/i)}:Mt?Kt={name:"Tizen",osname:"Tizen",tizen:St,version:E(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ht}:/qupzilla/i.test(lt)?Kt={name:"QupZilla",qupzilla:St,version:E(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ht}:/chromium/i.test(lt)?Kt={name:"Chromium",chromium:St,version:E(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ht}:/chrome|crios|crmo/i.test(lt)?Kt={name:"Chrome",chrome:St,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:at?Kt={name:"Android",version:Ht}:/safari|applewebkit/i.test(lt)?(Kt={name:"Safari",safari:St},Ht&&(Kt.version=Ht)):ot?(Kt={name:ot=="iphone"?"iPhone":ot=="ipad"?"iPad":"iPod"},Ht&&(Kt.version=Ht)):/googlebot/i.test(lt)?Kt={name:"Googlebot",googlebot:St,version:E(/googlebot\/(\d+(\.\d+))/i)||Ht}:Kt={name:E(/^(.*)\/(.*) /),version:z(/^(.*)\/(.*) /)},!Kt.msedge&&/(apple)?webkit/i.test(lt)?(/(apple)?webkit\/537\.36/i.test(lt)?(Kt.name=Kt.name||"Blink",Kt.blink=St):(Kt.name=Kt.name||"Webkit",Kt.webkit=St),!Kt.version&&Ht&&(Kt.version=Ht)):!Kt.opera&&/gecko\//i.test(lt)&&(Kt.name=Kt.name||"Gecko",Kt.gecko=St,Kt.version=Kt.version||E(/gecko\/(\d+(\.\d+)?)/i)),!Kt.windowsphone&&(at||Kt.silk)?(Kt.android=St,Kt.osname="Android"):!Kt.windowsphone&&ot?(Kt[ot]=St,Kt.ios=St,Kt.osname="iOS"):Xt?(Kt.mac=St,Kt.osname="macOS"):ve?(Kt.xbox=St,Kt.osname="Xbox"):Ut?(Kt.windows=St,Kt.osname="Windows"):Gt&&(Kt.linux=St,Kt.osname="Linux");function re(ke){switch(ke){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var we="";Kt.windows?we=re(E(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Kt.windowsphone?we=E(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Kt.mac?(we=E(/Mac OS X (\d+([_\.\s]\d+)*)/i),we=we.replace(/[_\s]/g,".")):ot?(we=E(/os (\d+([_\s]\d+)*) like mac os x/i),we=we.replace(/[_\s]/g,".")):at?we=E(/android[ \/-](\d+(\.\d+)*)/i):Kt.webos?we=E(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Kt.blackberry?we=E(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Kt.bada?we=E(/bada\/(\d+(\.\d+)*)/i):Kt.tizen&&(we=E(/tizen[\/\s](\d+(\.\d+)*)/i)),we&&(Kt.osversion=we);var Me=!Kt.windows&&we.split(".")[0];return ne||wt||ot=="ipad"||at&&(Me==3||Me>=4&&!ae)||Kt.silk?Kt.tablet=St:(ae||ot=="iphone"||ot=="ipod"||at||ut||Kt.blackberry||Kt.webos||Kt.bada)&&(Kt.mobile=St),Kt.msedge||Kt.msie&&Kt.version>=10||Kt.yandexbrowser&&Kt.version>=15||Kt.vivaldi&&Kt.version>=1||Kt.chrome&&Kt.version>=20||Kt.samsungBrowser&&Kt.version>=4||Kt.whale&&dt([Kt.version,"1.0"])===1||Kt.mzbrowser&&dt([Kt.version,"6.0"])===1||Kt.focus&&dt([Kt.version,"1.0"])===1||Kt.firefox&&Kt.version>=20||Kt.safari&&Kt.version>=6||Kt.opera&&Kt.version>=10||Kt.ios&&Kt.osversion&&Kt.osversion.split(".")[0]>=6||Kt.blackberry&&Kt.version>=10.1||Kt.chromium&&Kt.version>=20?Kt.a=St:Kt.msie&&Kt.version<10||Kt.chrome&&Kt.version<20||Kt.firefox&&Kt.version<20||Kt.safari&&Kt.version<6||Kt.opera&&Kt.version<10||Kt.ios&&Kt.osversion&&Kt.osversion.split(".")[0]<6||Kt.chromium&&Kt.version<20?Kt.c=St:Kt.x=St,Kt}var vt=pt(typeof navigator!="undefined"&&navigator.userAgent||"");vt.test=function(lt){for(var E=0;E<lt.length;++E){var z=lt[E];if(typeof z=="string"&&z in vt)return!0}return!1};function yt(lt){return lt.split(".").length}function xt(lt,E){var z=[],ot;if(Array.prototype.map)return Array.prototype.map.call(lt,E);for(ot=0;ot<lt.length;ot++)z.push(E(lt[ot]));return z}function dt(lt){for(var E=Math.max(yt(lt[0]),yt(lt[1])),z=xt(lt,function(ot){var it=E-yt(ot);return ot=ot+new Array(it+1).join(".0"),xt(ot.split("."),function(at){return new Array(20-at.length).join("0")+at}).reverse()});--E>=0;){if(z[0][E]>z[1][E])return 1;if(z[0][E]===z[1][E]){if(E===0)return 0}else return-1}}function ft(lt,E,z){var ot=vt;typeof E=="string"&&(z=E,E=void 0),E===void 0&&(E=!1),z&&(ot=pt(z));var it=""+ot.version;for(var at in lt)if(lt.hasOwnProperty(at)&&ot[at]){if(typeof lt[at]!="string")throw new Error("Browser version in the minVersion map should be a string: "+at+": "+String(lt));return dt([it,lt[at]])<0}return E}function ct(lt,E,z){return!ft(lt,E,z)}return vt.isUnsupportedBrowser=ft,vt.compareVersions=dt,vt.check=ct,vt._detect=pt,vt.detect=pt,vt})},{}],89:[function(rt,kt,Ct){},{}],90:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("base64-js"),vt=rt("ieee754");Ct.Buffer=ft,Ct.SlowBuffer=Et,Ct.INSPECT_MAX_BYTES=50;var yt=2147483647;Ct.kMaxLength=yt,ft.TYPED_ARRAY_SUPPORT=xt(),!ft.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function xt(){try{var ue=new Uint8Array(1);return ue.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ue.foo()===42}catch($t){return!1}}Object.defineProperty(ft.prototype,"parent",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.buffer}}),Object.defineProperty(ft.prototype,"offset",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.byteOffset}});function dt(ue){if(ue>yt)throw new RangeError('The value "'+ue+'" is invalid for option "size"');var $t=new Uint8Array(ue);return $t.__proto__=ft.prototype,$t}function ft(ue,$t,he){if(typeof ue=="number"){if(typeof $t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(ue)}return ct(ue,$t,he)}typeof Symbol!="undefined"&&Symbol.species!=null&&ft[Symbol.species]===ft&&Object.defineProperty(ft,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ft.poolSize=8192;function ct(ue,$t,he){if(typeof ue=="string")return ot(ue,$t);if(ArrayBuffer.isView(ue))return it(ue);if(ue==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue);if(Be(ue,ArrayBuffer)||ue&&Be(ue.buffer,ArrayBuffer))return at(ue,$t,he);if(typeof ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ye=ue.valueOf&&ue.valueOf();if(ye!=null&&ye!==ue)return ft.from(ye,$t,he);var Qt=ut(ue);if(Qt)return Qt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ue[Symbol.toPrimitive]=="function")return ft.from(ue[Symbol.toPrimitive]("string"),$t,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue)}ft.from=function(ue,$t,he){return ct(ue,$t,he)},ft.prototype.__proto__=Uint8Array.prototype,ft.__proto__=Uint8Array;function lt(ue){if(typeof ue!="number")throw new TypeError('"size" argument must be of type number');if(ue<0)throw new RangeError('The value "'+ue+'" is invalid for option "size"')}function E(ue,$t,he){return lt(ue),ue<=0?dt(ue):$t!==void 0?typeof he=="string"?dt(ue).fill($t,he):dt(ue).fill($t):dt(ue)}ft.alloc=function(ue,$t,he){return E(ue,$t,he)};function z(ue){return lt(ue),dt(ue<0?0:wt(ue)|0)}ft.allocUnsafe=function(ue){return z(ue)},ft.allocUnsafeSlow=function(ue){return z(ue)};function ot(ue,$t){if((typeof $t!="string"||$t==="")&&($t="utf8"),!ft.isEncoding($t))throw new TypeError("Unknown encoding: "+$t);var he=At(ue,$t)|0,ye=dt(he),Qt=ye.write(ue,$t);return Qt!==he&&(ye=ye.slice(0,Qt)),ye}function it(ue){for(var $t=ue.length<0?0:wt(ue.length)|0,he=dt($t),ye=0;ye<$t;ye+=1)he[ye]=ue[ye]&255;return he}function at(ue,$t,he){if($t<0||ue.byteLength<$t)throw new RangeError('"offset" is outside of buffer bounds');if(ue.byteLength<$t+(he||0))throw new RangeError('"length" is outside of buffer bounds');var ye;return $t===void 0&&he===void 0?ye=new Uint8Array(ue):he===void 0?ye=new Uint8Array(ue,$t):ye=new Uint8Array(ue,$t,he),ye.__proto__=ft.prototype,ye}function ut(ue){if(ft.isBuffer(ue)){var $t=wt(ue.length)|0,he=dt($t);return he.length===0||ue.copy(he,0,0,$t),he}if(ue.length!==void 0)return typeof ue.length!="number"||Te(ue.length)?dt(0):it(ue);if(ue.type==="Buffer"&&Array.isArray(ue.data))return it(ue.data)}function wt(ue){if(ue>=yt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yt.toString(16)+" bytes");return ue|0}function Et(ue){return+ue!=ue&&(ue=0),ft.alloc(+ue)}ft.isBuffer=function($t){return $t!=null&&$t._isBuffer===!0&&$t!==ft.prototype},ft.compare=function($t,he){if(Be($t,Uint8Array)&&($t=ft.from($t,$t.offset,$t.byteLength)),Be(he,Uint8Array)&&(he=ft.from(he,he.offset,he.byteLength)),!ft.isBuffer($t)||!ft.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($t===he)return 0;for(var ye=$t.length,Qt=he.length,Wt=0,Bt=Math.min(ye,Qt);Wt<Bt;++Wt)if($t[Wt]!==he[Wt]){ye=$t[Wt],Qt=he[Wt];break}return ye<Qt?-1:Qt<ye?1:0},ft.isEncoding=function($t){switch(String($t).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}},ft.concat=function($t,he){if(!Array.isArray($t))throw new TypeError('"list" argument must be an Array of Buffers');if($t.length===0)return ft.alloc(0);var ye;if(he===void 0)for(he=0,ye=0;ye<$t.length;++ye)he+=$t[ye].length;var Qt=ft.allocUnsafe(he),Wt=0;for(ye=0;ye<$t.length;++ye){var Bt=$t[ye];if(Be(Bt,Uint8Array)&&(Bt=ft.from(Bt)),!ft.isBuffer(Bt))throw new TypeError('"list" argument must be an Array of Buffers');Bt.copy(Qt,Wt),Wt+=Bt.length}return Qt};function At(ue,$t){if(ft.isBuffer(ue))return ue.length;if(ArrayBuffer.isView(ue)||Be(ue,ArrayBuffer))return ue.byteLength;if(typeof ue!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ue);var he=ue.length,ye=arguments.length>2&&arguments[2]===!0;if(!ye&&he===0)return 0;for(var Qt=!1;;)switch($t){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return le(ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he*2;case"hex":return he>>>1;case"base64":return Ae(ue).length;default:if(Qt)return ye?-1:le(ue).length;$t=(""+$t).toLowerCase(),Qt=!0}}ft.byteLength=At;function _t(ue,$t,he){var ye=!1;if(($t===void 0||$t<0)&&($t=0),$t>this.length||((he===void 0||he>this.length)&&(he=this.length),he<=0)||(he>>>=0,$t>>>=0,he<=$t))return"";for(ue||(ue="utf8");;)switch(ue){case"hex":return Me(this,$t,he);case"utf8":case"utf-8":return ae(this,$t,he);case"ascii":return re(this,$t,he);case"latin1":case"binary":return we(this,$t,he);case"base64":return ne(this,$t,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,$t,he);default:if(ye)throw new TypeError("Unknown encoding: "+ue);ue=(ue+"").toLowerCase(),ye=!0}}ft.prototype._isBuffer=!0;function Mt(ue,$t,he){var ye=ue[$t];ue[$t]=ue[he],ue[he]=ye}ft.prototype.swap16=function(){var $t=this.length;if($t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;he<$t;he+=2)Mt(this,he,he+1);return this},ft.prototype.swap32=function(){var $t=this.length;if($t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var he=0;he<$t;he+=4)Mt(this,he,he+3),Mt(this,he+1,he+2);return this},ft.prototype.swap64=function(){var $t=this.length;if($t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var he=0;he<$t;he+=8)Mt(this,he,he+7),Mt(this,he+1,he+6),Mt(this,he+2,he+5),Mt(this,he+3,he+4);return this},ft.prototype.toString=function(){var $t=this.length;return $t===0?"":arguments.length===0?ae(this,0,$t):_t.apply(this,arguments)},ft.prototype.toLocaleString=ft.prototype.toString,ft.prototype.equals=function($t){if(!ft.isBuffer($t))throw new TypeError("Argument must be a Buffer");return this===$t?!0:ft.compare(this,$t)===0},ft.prototype.inspect=function(){var $t="",he=Ct.INSPECT_MAX_BYTES;return $t=this.toString("hex",0,he).replace(/(.{2})/g,"$1 ").trim(),this.length>he&&($t+=" ... "),"<Buffer "+$t+">"},ft.prototype.compare=function($t,he,ye,Qt,Wt){if(Be($t,Uint8Array)&&($t=ft.from($t,$t.offset,$t.byteLength)),!ft.isBuffer($t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $t);if(he===void 0&&(he=0),ye===void 0&&(ye=$t?$t.length:0),Qt===void 0&&(Qt=0),Wt===void 0&&(Wt=this.length),he<0||ye>$t.length||Qt<0||Wt>this.length)throw new RangeError("out of range index");if(Qt>=Wt&&he>=ye)return 0;if(Qt>=Wt)return-1;if(he>=ye)return 1;if(he>>>=0,ye>>>=0,Qt>>>=0,Wt>>>=0,this===$t)return 0;for(var Bt=Wt-Qt,te=ye-he,ge=Math.min(Bt,te),Jt=this.slice(Qt,Wt),Ie=$t.slice(he,ye),Ue=0;Ue<ge;++Ue)if(Jt[Ue]!==Ie[Ue]){Bt=Jt[Ue],te=Ie[Ue];break}return Bt<te?-1:te<Bt?1:0};function jt(ue,$t,he,ye,Qt){if(ue.length===0)return-1;if(typeof he=="string"?(ye=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),he=+he,Te(he)&&(he=Qt?0:ue.length-1),he<0&&(he=ue.length+he),he>=ue.length){if(Qt)return-1;he=ue.length-1}else if(he<0)if(Qt)he=0;else return-1;if(typeof $t=="string"&&($t=ft.from($t,ye)),ft.isBuffer($t))return $t.length===0?-1:Lt(ue,$t,he,ye,Qt);if(typeof $t=="number")return $t=$t&255,typeof Uint8Array.prototype.indexOf=="function"?Qt?Uint8Array.prototype.indexOf.call(ue,$t,he):Uint8Array.prototype.lastIndexOf.call(ue,$t,he):Lt(ue,[$t],he,ye,Qt);throw new TypeError("val must be string, number or Buffer")}function Lt(ue,$t,he,ye,Qt){var Wt=1,Bt=ue.length,te=$t.length;if(ye!==void 0&&(ye=String(ye).toLowerCase(),ye==="ucs2"||ye==="ucs-2"||ye==="utf16le"||ye==="utf-16le")){if(ue.length<2||$t.length<2)return-1;Wt=2,Bt/=2,te/=2,he/=2}function ge(Ze,nn){return Wt===1?Ze[nn]:Ze.readUInt16BE(nn*Wt)}var Jt;if(Qt){var Ie=-1;for(Jt=he;Jt<Bt;Jt++)if(ge(ue,Jt)===ge($t,Ie===-1?0:Jt-Ie)){if(Ie===-1&&(Ie=Jt),Jt-Ie+1===te)return Ie*Wt}else Ie!==-1&&(Jt-=Jt-Ie),Ie=-1}else for(he+te>Bt&&(he=Bt-te),Jt=he;Jt>=0;Jt--){for(var Ue=!0,Je=0;Je<te;Je++)if(ge(ue,Jt+Je)!==ge($t,Je)){Ue=!1;break}if(Ue)return Jt}return-1}ft.prototype.includes=function($t,he,ye){return this.indexOf($t,he,ye)!==-1},ft.prototype.indexOf=function($t,he,ye){return jt(this,$t,he,ye,!0)},ft.prototype.lastIndexOf=function($t,he,ye){return jt(this,$t,he,ye,!1)};function It(ue,$t,he,ye){he=Number(he)||0;var Qt=ue.length-he;ye?(ye=Number(ye),ye>Qt&&(ye=Qt)):ye=Qt;var Wt=$t.length;ye>Wt/2&&(ye=Wt/2);for(var Bt=0;Bt<ye;++Bt){var te=parseInt($t.substr(Bt*2,2),16);if(Te(te))return Bt;ue[he+Bt]=te}return Bt}function Ut(ue,$t,he,ye){return Xe(le($t,ue.length-he),ue,he,ye)}function Xt(ue,$t,he,ye){return Xe(Ne($t),ue,he,ye)}function Gt(ue,$t,he,ye){return Xt(ue,$t,he,ye)}function Yt(ue,$t,he,ye){return Xe(Ae($t),ue,he,ye)}function Ht(ue,$t,he,ye){return Xe(se($t,ue.length-he),ue,he,ye)}ft.prototype.write=function($t,he,ye,Qt){if(he===void 0)Qt="utf8",ye=this.length,he=0;else if(ye===void 0&&typeof he=="string")Qt=he,ye=this.length,he=0;else if(isFinite(he))he=he>>>0,isFinite(ye)?(ye=ye>>>0,Qt===void 0&&(Qt="utf8")):(Qt=ye,ye=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Wt=this.length-he;if((ye===void 0||ye>Wt)&&(ye=Wt),$t.length>0&&(ye<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");Qt||(Qt="utf8");for(var Bt=!1;;)switch(Qt){case"hex":return It(this,$t,he,ye);case"utf8":case"utf-8":return Ut(this,$t,he,ye);case"ascii":return Xt(this,$t,he,ye);case"latin1":case"binary":return Gt(this,$t,he,ye);case"base64":return Yt(this,$t,he,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ht(this,$t,he,ye);default:if(Bt)throw new TypeError("Unknown encoding: "+Qt);Qt=(""+Qt).toLowerCase(),Bt=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(ue,$t,he){return $t===0&&he===ue.length?pt.fromByteArray(ue):pt.fromByteArray(ue.slice($t,he))}function ae(ue,$t,he){he=Math.min(ue.length,he);for(var ye=[],Qt=$t;Qt<he;){var Wt=ue[Qt],Bt=null,te=Wt>239?4:Wt>223?3:Wt>191?2:1;if(Qt+te<=he){var ge,Jt,Ie,Ue;switch(te){case 1:Wt<128&&(Bt=Wt);break;case 2:ge=ue[Qt+1],(ge&192)===128&&(Ue=(Wt&31)<<6|ge&63,Ue>127&&(Bt=Ue));break;case 3:ge=ue[Qt+1],Jt=ue[Qt+2],(ge&192)===128&&(Jt&192)===128&&(Ue=(Wt&15)<<12|(ge&63)<<6|Jt&63,Ue>2047&&(Ue<55296||Ue>57343)&&(Bt=Ue));break;case 4:ge=ue[Qt+1],Jt=ue[Qt+2],Ie=ue[Qt+3],(ge&192)===128&&(Jt&192)===128&&(Ie&192)===128&&(Ue=(Wt&15)<<18|(ge&63)<<12|(Jt&63)<<6|Ie&63,Ue>65535&&Ue<1114112&&(Bt=Ue))}}Bt===null?(Bt=65533,te=1):Bt>65535&&(Bt-=65536,ye.push(Bt>>>10&1023|55296),Bt=56320|Bt&1023),ye.push(Bt),Qt+=te}return Kt(ye)}var ve=4096;function Kt(ue){var $t=ue.length;if($t<=ve)return String.fromCharCode.apply(String,ue);for(var he="",ye=0;ye<$t;)he+=String.fromCharCode.apply(String,ue.slice(ye,ye+=ve));return he}function re(ue,$t,he){var ye="";he=Math.min(ue.length,he);for(var Qt=$t;Qt<he;++Qt)ye+=String.fromCharCode(ue[Qt]&127);return ye}function we(ue,$t,he){var ye="";he=Math.min(ue.length,he);for(var Qt=$t;Qt<he;++Qt)ye+=String.fromCharCode(ue[Qt]);return ye}function Me(ue,$t,he){var ye=ue.length;(!$t||$t<0)&&($t=0),(!he||he<0||he>ye)&&(he=ye);for(var Qt="",Wt=$t;Wt<he;++Wt)Qt+=xe(ue[Wt]);return Qt}function ke(ue,$t,he){for(var ye=ue.slice($t,he),Qt="",Wt=0;Wt<ye.length;Wt+=2)Qt+=String.fromCharCode(ye[Wt]+ye[Wt+1]*256);return Qt}ft.prototype.slice=function($t,he){var ye=this.length;$t=~~$t,he=he===void 0?ye:~~he,$t<0?($t+=ye,$t<0&&($t=0)):$t>ye&&($t=ye),he<0?(he+=ye,he<0&&(he=0)):he>ye&&(he=ye),he<$t&&(he=$t);var Qt=this.subarray($t,he);return Qt.__proto__=ft.prototype,Qt};function me(ue,$t,he){if(ue%1!==0||ue<0)throw new RangeError("offset is not uint");if(ue+$t>he)throw new RangeError("Trying to access beyond buffer length")}ft.prototype.readUIntLE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=this[$t],Wt=1,Bt=0;++Bt<he&&(Wt*=256);)Qt+=this[$t+Bt]*Wt;return Qt},ft.prototype.readUIntBE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=this[$t+--he],Wt=1;he>0&&(Wt*=256);)Qt+=this[$t+--he]*Wt;return Qt},ft.prototype.readUInt8=function($t,he){return $t=$t>>>0,he||me($t,1,this.length),this[$t]},ft.prototype.readUInt16LE=function($t,he){return $t=$t>>>0,he||me($t,2,this.length),this[$t]|this[$t+1]<<8},ft.prototype.readUInt16BE=function($t,he){return $t=$t>>>0,he||me($t,2,this.length),this[$t]<<8|this[$t+1]},ft.prototype.readUInt32LE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),(this[$t]|this[$t+1]<<8|this[$t+2]<<16)+this[$t+3]*16777216},ft.prototype.readUInt32BE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),this[$t]*16777216+(this[$t+1]<<16|this[$t+2]<<8|this[$t+3])},ft.prototype.readIntLE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=this[$t],Wt=1,Bt=0;++Bt<he&&(Wt*=256);)Qt+=this[$t+Bt]*Wt;return Wt*=128,Qt>=Wt&&(Qt-=Math.pow(2,8*he)),Qt},ft.prototype.readIntBE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=he,Wt=1,Bt=this[$t+--Qt];Qt>0&&(Wt*=256);)Bt+=this[$t+--Qt]*Wt;return Wt*=128,Bt>=Wt&&(Bt-=Math.pow(2,8*he)),Bt},ft.prototype.readInt8=function($t,he){return $t=$t>>>0,he||me($t,1,this.length),this[$t]&128?(255-this[$t]+1)*-1:this[$t]},ft.prototype.readInt16LE=function($t,he){$t=$t>>>0,he||me($t,2,this.length);var ye=this[$t]|this[$t+1]<<8;return ye&32768?ye|4294901760:ye},ft.prototype.readInt16BE=function($t,he){$t=$t>>>0,he||me($t,2,this.length);var ye=this[$t+1]|this[$t]<<8;return ye&32768?ye|4294901760:ye},ft.prototype.readInt32LE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),this[$t]|this[$t+1]<<8|this[$t+2]<<16|this[$t+3]<<24},ft.prototype.readInt32BE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),this[$t]<<24|this[$t+1]<<16|this[$t+2]<<8|this[$t+3]},ft.prototype.readFloatLE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),vt.read(this,$t,!0,23,4)},ft.prototype.readFloatBE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),vt.read(this,$t,!1,23,4)},ft.prototype.readDoubleLE=function($t,he){return $t=$t>>>0,he||me($t,8,this.length),vt.read(this,$t,!0,52,8)},ft.prototype.readDoubleBE=function($t,he){return $t=$t>>>0,he||me($t,8,this.length),vt.read(this,$t,!1,52,8)};function fe(ue,$t,he,ye,Qt,Wt){if(!ft.isBuffer(ue))throw new TypeError('"buffer" argument must be a Buffer instance');if($t>Qt||$t<Wt)throw new RangeError('"value" argument is out of bounds');if(he+ye>ue.length)throw new RangeError("Index out of range")}ft.prototype.writeUIntLE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,ye=ye>>>0,!Qt){var Wt=Math.pow(2,8*ye)-1;fe(this,$t,he,ye,Wt,0)}var Bt=1,te=0;for(this[he]=$t&255;++te<ye&&(Bt*=256);)this[he+te]=$t/Bt&255;return he+ye},ft.prototype.writeUIntBE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,ye=ye>>>0,!Qt){var Wt=Math.pow(2,8*ye)-1;fe(this,$t,he,ye,Wt,0)}var Bt=ye-1,te=1;for(this[he+Bt]=$t&255;--Bt>=0&&(te*=256);)this[he+Bt]=$t/te&255;return he+ye},ft.prototype.writeUInt8=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,1,255,0),this[he]=$t&255,he+1},ft.prototype.writeUInt16LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,65535,0),this[he]=$t&255,this[he+1]=$t>>>8,he+2},ft.prototype.writeUInt16BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,65535,0),this[he]=$t>>>8,this[he+1]=$t&255,he+2},ft.prototype.writeUInt32LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,4294967295,0),this[he+3]=$t>>>24,this[he+2]=$t>>>16,this[he+1]=$t>>>8,this[he]=$t&255,he+4},ft.prototype.writeUInt32BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,4294967295,0),this[he]=$t>>>24,this[he+1]=$t>>>16,this[he+2]=$t>>>8,this[he+3]=$t&255,he+4},ft.prototype.writeIntLE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,!Qt){var Wt=Math.pow(2,8*ye-1);fe(this,$t,he,ye,Wt-1,-Wt)}var Bt=0,te=1,ge=0;for(this[he]=$t&255;++Bt<ye&&(te*=256);)$t<0&&ge===0&&this[he+Bt-1]!==0&&(ge=1),this[he+Bt]=($t/te>>0)-ge&255;return he+ye},ft.prototype.writeIntBE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,!Qt){var Wt=Math.pow(2,8*ye-1);fe(this,$t,he,ye,Wt-1,-Wt)}var Bt=ye-1,te=1,ge=0;for(this[he+Bt]=$t&255;--Bt>=0&&(te*=256);)$t<0&&ge===0&&this[he+Bt+1]!==0&&(ge=1),this[he+Bt]=($t/te>>0)-ge&255;return he+ye},ft.prototype.writeInt8=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,1,127,-128),$t<0&&($t=255+$t+1),this[he]=$t&255,he+1},ft.prototype.writeInt16LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,32767,-32768),this[he]=$t&255,this[he+1]=$t>>>8,he+2},ft.prototype.writeInt16BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,32767,-32768),this[he]=$t>>>8,this[he+1]=$t&255,he+2},ft.prototype.writeInt32LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,2147483647,-2147483648),this[he]=$t&255,this[he+1]=$t>>>8,this[he+2]=$t>>>16,this[he+3]=$t>>>24,he+4},ft.prototype.writeInt32BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,2147483647,-2147483648),$t<0&&($t=4294967295+$t+1),this[he]=$t>>>24,this[he+1]=$t>>>16,this[he+2]=$t>>>8,this[he+3]=$t&255,he+4};function pe(ue,$t,he,ye,Qt,Wt){if(he+ye>ue.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function _e(ue,$t,he,ye,Qt){return $t=+$t,he=he>>>0,Qt||pe(ue,$t,he,4,34028234663852886e22,-34028234663852886e22),vt.write(ue,$t,he,ye,23,4),he+4}ft.prototype.writeFloatLE=function($t,he,ye){return _e(this,$t,he,!0,ye)},ft.prototype.writeFloatBE=function($t,he,ye){return _e(this,$t,he,!1,ye)};function je(ue,$t,he,ye,Qt){return $t=+$t,he=he>>>0,Qt||pe(ue,$t,he,8,17976931348623157e292,-17976931348623157e292),vt.write(ue,$t,he,ye,52,8),he+8}ft.prototype.writeDoubleLE=function($t,he,ye){return je(this,$t,he,!0,ye)},ft.prototype.writeDoubleBE=function($t,he,ye){return je(this,$t,he,!1,ye)},ft.prototype.copy=function($t,he,ye,Qt){if(!ft.isBuffer($t))throw new TypeError("argument should be a Buffer");if(ye||(ye=0),!Qt&&Qt!==0&&(Qt=this.length),he>=$t.length&&(he=$t.length),he||(he=0),Qt>0&&Qt<ye&&(Qt=ye),Qt===ye||$t.length===0||this.length===0)return 0;if(he<0)throw new RangeError("targetStart out of bounds");if(ye<0||ye>=this.length)throw new RangeError("Index out of range");if(Qt<0)throw new RangeError("sourceEnd out of bounds");Qt>this.length&&(Qt=this.length),$t.length-he<Qt-ye&&(Qt=$t.length-he+ye);var Wt=Qt-ye;if(this===$t&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(he,ye,Qt);else if(this===$t&&ye<he&&he<Qt)for(var Bt=Wt-1;Bt>=0;--Bt)$t[Bt+he]=this[Bt+ye];else Uint8Array.prototype.set.call($t,this.subarray(ye,Qt),he);return Wt},ft.prototype.fill=function($t,he,ye,Qt){if(typeof $t=="string"){if(typeof he=="string"?(Qt=he,he=0,ye=this.length):typeof ye=="string"&&(Qt=ye,ye=this.length),Qt!==void 0&&typeof Qt!="string")throw new TypeError("encoding must be a string");if(typeof Qt=="string"&&!ft.isEncoding(Qt))throw new TypeError("Unknown encoding: "+Qt);if($t.length===1){var Wt=$t.charCodeAt(0);(Qt==="utf8"&&Wt<128||Qt==="latin1")&&($t=Wt)}}else typeof $t=="number"&&($t=$t&255);if(he<0||this.length<he||this.length<ye)throw new RangeError("Out of range index");if(ye<=he)return this;he=he>>>0,ye=ye===void 0?this.length:ye>>>0,$t||($t=0);var Bt;if(typeof $t=="number")for(Bt=he;Bt<ye;++Bt)this[Bt]=$t;else{var te=ft.isBuffer($t)?$t:ft.from($t,Qt),ge=te.length;if(ge===0)throw new TypeError('The value "'+$t+'" is invalid for argument "value"');for(Bt=0;Bt<ye-he;++Bt)this[Bt+he]=te[Bt%ge]}return this};var He=/[^+/0-9A-Za-z-_]/g;function Se(ue){if(ue=ue.split("=")[0],ue=ue.trim().replace(He,""),ue.length<2)return"";for(;ue.length%4!==0;)ue=ue+"=";return ue}function xe(ue){return ue<16?"0"+ue.toString(16):ue.toString(16)}function le(ue,$t){$t=$t||1/0;for(var he,ye=ue.length,Qt=null,Wt=[],Bt=0;Bt<ye;++Bt){if(he=ue.charCodeAt(Bt),he>55295&&he<57344){if(!Qt){if(he>56319){($t-=3)>-1&&Wt.push(239,191,189);continue}else if(Bt+1===ye){($t-=3)>-1&&Wt.push(239,191,189);continue}Qt=he;continue}if(he<56320){($t-=3)>-1&&Wt.push(239,191,189),Qt=he;continue}he=(Qt-55296<<10|he-56320)+65536}else Qt&&($t-=3)>-1&&Wt.push(239,191,189);if(Qt=null,he<128){if(($t-=1)<0)break;Wt.push(he)}else if(he<2048){if(($t-=2)<0)break;Wt.push(he>>6|192,he&63|128)}else if(he<65536){if(($t-=3)<0)break;Wt.push(he>>12|224,he>>6&63|128,he&63|128)}else if(he<1114112){if(($t-=4)<0)break;Wt.push(he>>18|240,he>>12&63|128,he>>6&63|128,he&63|128)}else throw new Error("Invalid code point")}return Wt}function Ne(ue){for(var $t=[],he=0;he<ue.length;++he)$t.push(ue.charCodeAt(he)&255);return $t}function se(ue,$t){for(var he,ye,Qt,Wt=[],Bt=0;Bt<ue.length&&!(($t-=2)<0);++Bt)he=ue.charCodeAt(Bt),ye=he>>8,Qt=he%256,Wt.push(Qt),Wt.push(ye);return Wt}function Ae(ue){return pt.toByteArray(Se(ue))}function Xe(ue,$t,he,ye){for(var Qt=0;Qt<ye&&!(Qt+he>=$t.length||Qt>=ue.length);++Qt)$t[Qt+he]=ue[Qt];return Qt}function Be(ue,$t){return ue instanceof $t||ue!=null&&ue.constructor!=null&&ue.constructor.name!=null&&ue.constructor.name===$t.name}function Te(ue){return ue!==ue}}).call(this)}).call(this,rt("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(rt,kt,Ct){kt.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(rt,kt,Ct){"use strict";var St=rt("get-intrinsic"),pt=rt("./"),vt=pt(St("String.prototype.indexOf"));kt.exports=function(xt,dt){var ft=St(xt,!!dt);return typeof ft=="function"&&vt(xt,".prototype.")>-1?pt(ft):ft}},{"./":93,"get-intrinsic":348}],93:[function(rt,kt,Ct){"use strict";var St=rt("function-bind"),pt=rt("get-intrinsic"),vt=pt("%Function.prototype.apply%"),yt=pt("%Function.prototype.call%"),xt=pt("%Reflect.apply%",!0)||St.call(yt,vt),dt=pt("%Object.getOwnPropertyDescriptor%",!0),ft=pt("%Object.defineProperty%",!0),ct=pt("%Math.max%");if(ft)try{ft({},"a",{value:1})}catch(E){ft=null}kt.exports=function(z){var ot=xt(St,yt,arguments);if(dt&&ft){var it=dt(ot,"length");it.configurable&&ft(ot,"length",{value:1+ct(0,z.length-(arguments.length-1))})}return ot};var lt=function(){return xt(St,vt,arguments)};ft?ft(kt.exports,"apply",{value:lt}):kt.exports.apply=lt},{"function-bind":347,"get-intrinsic":348}],94:[function(rt,kt,Ct){"use strict";var St=Array.prototype.slice;kt.exports=pt;function pt(yt,xt){if(!(this instanceof pt))return new pt(yt,xt);this.src=yt,this._withAccess=xt}pt.prototype.withAccess=function(yt){return this._withAccess=yt!==!1,this},pt.prototype.pick=function(yt){return Array.isArray(yt)||(yt=St.call(arguments)),yt.length&&(this.keys=yt),this},pt.prototype.to=function(yt){if(yt=yt||{},!this.src)return yt;var xt=this.keys||Object.keys(this.src);if(!this._withAccess){for(var dt=0;dt<xt.length;dt++)ft=xt[dt],yt[ft]===void 0&&(yt[ft]=this.src[ft]);return yt}for(var dt=0;dt<xt.length;dt++){var ft=xt[dt];if(vt(yt,ft)){var ct=this.src.__lookupGetter__(ft),lt=this.src.__lookupSetter__(ft);ct&&yt.__defineGetter__(ft,ct),lt&&yt.__defineSetter__(ft,lt),!ct&&!lt&&(yt[ft]=this.src[ft])}}return yt},pt.prototype.toCover=function(yt){for(var xt=this.keys||Object.keys(this.src),dt=0;dt<xt.length;dt++){var ft=xt[dt];delete yt[ft];var ct=this.src.__lookupGetter__(ft),lt=this.src.__lookupSetter__(ft);ct&&yt.__defineGetter__(ft,ct),lt&&yt.__defineSetter__(ft,lt),!ct&&!lt&&(yt[ft]=this.src[ft])}},pt.prototype.override=pt.prototype.toCover,pt.prototype.and=function(yt){var xt={};return this.to(xt),this.src=yt,this.to(xt),this.src=xt,this};function vt(yt,xt){return yt[xt]===void 0&&yt.__lookupGetter__(xt)===void 0&&yt.__lookupSetter__(xt)===void 0}},{}],95:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=rt("../internals/try-to-string"),yt=St.TypeError;kt.exports=function(xt){if(pt(xt))return xt;throw yt(vt(xt)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-constructor"),vt=rt("../internals/try-to-string"),yt=St.TypeError;kt.exports=function(xt){if(pt(xt))return xt;throw yt(vt(xt)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=St.String,yt=St.TypeError;kt.exports=function(xt){if(typeof xt=="object"||pt(xt))return xt;throw yt("Can't set "+vt(xt)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=rt("../internals/object-create"),vt=rt("../internals/object-define-property"),yt=St("unscopables"),xt=Array.prototype;xt[yt]==null&&vt.f(xt,yt,{configurable:!0,value:pt(null)}),kt.exports=function(dt){xt[yt][dt]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(rt,kt,Ct){"use strict";var St=rt("../internals/string-multibyte").charAt;kt.exports=function(pt,vt,yt){return vt+(yt?St(pt,vt).length:1)}},{"../internals/string-multibyte":239}],100:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/object-is-prototype-of"),vt=St.TypeError;kt.exports=function(yt,xt){if(pt(xt,yt))return yt;throw vt("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-object"),vt=St.String,yt=St.TypeError;kt.exports=function(xt){if(pt(xt))return xt;throw yt(vt(xt)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(rt,kt,Ct){kt.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-native"),pt=rt("../internals/descriptors"),vt=rt("../internals/global"),yt=rt("../internals/is-callable"),xt=rt("../internals/is-object"),dt=rt("../internals/has-own-property"),ft=rt("../internals/classof"),ct=rt("../internals/try-to-string"),lt=rt("../internals/create-non-enumerable-property"),E=rt("../internals/redefine"),z=rt("../internals/object-define-property").f,ot=rt("../internals/object-is-prototype-of"),it=rt("../internals/object-get-prototype-of"),at=rt("../internals/object-set-prototype-of"),ut=rt("../internals/well-known-symbol"),wt=rt("../internals/uid"),Et=vt.Int8Array,At=Et&&Et.prototype,_t=vt.Uint8ClampedArray,Mt=_t&&_t.prototype,jt=Et&&it(Et),Lt=At&&it(At),It=Object.prototype,Ut=vt.TypeError,Xt=ut("toStringTag"),Gt=wt("TYPED_ARRAY_TAG"),Yt=wt("TYPED_ARRAY_CONSTRUCTOR"),Ht=St&&!!at&&ft(vt.opera)!=="Opera",ne=!1,ae,ve,Kt,re={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},we={BigInt64Array:8,BigUint64Array:8},Me=function(He){if(!xt(He))return!1;var Se=ft(He);return Se==="DataView"||dt(re,Se)||dt(we,Se)},ke=function(je){if(!xt(je))return!1;var He=ft(je);return dt(re,He)||dt(we,He)},me=function(je){if(ke(je))return je;throw Ut("Target is not a typed array")},fe=function(je){if(yt(je)&&(!at||ot(jt,je)))return je;throw Ut(ct(je)+" is not a typed array constructor")},pe=function(je,He,Se,xe){if(pt){if(Se)for(var le in re){var Ne=vt[le];if(Ne&&dt(Ne.prototype,je))try{delete Ne.prototype[je]}catch(se){try{Ne.prototype[je]=He}catch(Ae){}}}(!Lt[je]||Se)&&E(Lt,je,Se?He:Ht&&At[je]||He,xe)}},_e=function(je,He,Se){var xe,le;if(pt){if(at){if(Se){for(xe in re)if(le=vt[xe],le&&dt(le,je))try{delete le[je]}catch(Ne){}}if(!jt[je]||Se)try{return E(jt,je,Se?He:Ht&&jt[je]||He)}catch(Ne){}else return}for(xe in re)le=vt[xe],le&&(!le[je]||Se)&&E(le,je,He)}};for(ae in re)ve=vt[ae],Kt=ve&&ve.prototype,Kt?lt(Kt,Yt,ve):Ht=!1;for(ae in we)ve=vt[ae],Kt=ve&&ve.prototype,Kt&&lt(Kt,Yt,ve);if((!Ht||!yt(jt)||jt===Function.prototype)&&(jt=function(){throw Ut("Incorrect invocation")},Ht))for(ae in re)vt[ae]&&at(vt[ae],jt);if((!Ht||!Lt||Lt===It)&&(Lt=jt.prototype,Ht))for(ae in re)vt[ae]&&at(vt[ae].prototype,Lt);if(Ht&&it(Mt)!==Lt&&at(Mt,Lt),pt&&!dt(Lt,Xt)){ne=!0,z(Lt,Xt,{get:function(){return xt(this)?this[Gt]:void 0}});for(ae in re)vt[ae]&&lt(vt[ae],Gt,ae)}kt.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ht,TYPED_ARRAY_CONSTRUCTOR:Yt,TYPED_ARRAY_TAG:ne&&Gt,aTypedArray:me,aTypedArrayConstructor:fe,exportTypedArrayMethod:pe,exportTypedArrayStaticMethod:_e,isView:Me,isTypedArray:ke,TypedArray:jt,TypedArrayPrototype:Lt}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/descriptors"),yt=rt("../internals/array-buffer-native"),xt=rt("../internals/function-name"),dt=rt("../internals/create-non-enumerable-property"),ft=rt("../internals/redefine-all"),ct=rt("../internals/fails"),lt=rt("../internals/an-instance"),E=rt("../internals/to-integer-or-infinity"),z=rt("../internals/to-length"),ot=rt("../internals/to-index"),it=rt("../internals/ieee754"),at=rt("../internals/object-get-prototype-of"),ut=rt("../internals/object-set-prototype-of"),wt=rt("../internals/object-get-own-property-names").f,Et=rt("../internals/object-define-property").f,At=rt("../internals/array-fill"),_t=rt("../internals/array-slice-simple"),Mt=rt("../internals/set-to-string-tag"),jt=rt("../internals/internal-state"),Lt=xt.PROPER,It=xt.CONFIGURABLE,Ut=jt.get,Xt=jt.set,Gt="ArrayBuffer",Yt="DataView",Ht="prototype",ne="Wrong length",ae="Wrong index",ve=St[Gt],Kt=ve,re=Kt&&Kt[Ht],we=St[Yt],Me=we&&we[Ht],ke=Object.prototype,me=St.Array,fe=St.RangeError,pe=pt(At),_e=pt([].reverse),je=it.pack,He=it.unpack,Se=function(Bt){return[Bt&255]},xe=function(Bt){return[Bt&255,Bt>>8&255]},le=function(Bt){return[Bt&255,Bt>>8&255,Bt>>16&255,Bt>>24&255]},Ne=function(Bt){return Bt[3]<<24|Bt[2]<<16|Bt[1]<<8|Bt[0]},se=function(Bt){return je(Bt,23,4)},Ae=function(Bt){return je(Bt,52,8)},Xe=function(Bt,te){Et(Bt[Ht],te,{get:function(){return Ut(this)[te]}})},Be=function(Bt,te,ge,Jt){var Ie=ot(ge),Ue=Ut(Bt);if(Ie+te>Ue.byteLength)throw fe(ae);var Je=Ut(Ue.buffer).bytes,Ze=Ie+Ue.byteOffset,nn=_t(Je,Ze,Ze+te);return Jt?nn:_e(nn)},Te=function(Bt,te,ge,Jt,Ie,Ue){var Je=ot(ge),Ze=Ut(Bt);if(Je+te>Ze.byteLength)throw fe(ae);for(var nn=Ut(Ze.buffer).bytes,fn=Je+Ze.byteOffset,An=Jt(+Ie),En=0;En<te;En++)nn[fn+En]=An[Ue?En:te-En-1]};if(!yt)Kt=function(te){lt(this,re);var ge=ot(te);Xt(this,{bytes:pe(me(ge),0),byteLength:ge}),vt||(this.byteLength=ge)},re=Kt[Ht],we=function(te,ge,Jt){lt(this,Me),lt(te,re);var Ie=Ut(te).byteLength,Ue=E(ge);if(Ue<0||Ue>Ie)throw fe("Wrong offset");if(Jt=Jt===void 0?Ie-Ue:z(Jt),Ue+Jt>Ie)throw fe(ne);Xt(this,{buffer:te,byteLength:Jt,byteOffset:Ue}),vt||(this.buffer=te,this.byteLength=Jt,this.byteOffset=Ue)},Me=we[Ht],vt&&(Xe(Kt,"byteLength"),Xe(we,"buffer"),Xe(we,"byteLength"),Xe(we,"byteOffset")),ft(Me,{getInt8:function(te){return Be(this,1,te)[0]<<24>>24},getUint8:function(te){return Be(this,1,te)[0]},getInt16:function(te){var ge=Be(this,2,te,arguments.length>1?arguments[1]:void 0);return(ge[1]<<8|ge[0])<<16>>16},getUint16:function(te){var ge=Be(this,2,te,arguments.length>1?arguments[1]:void 0);return ge[1]<<8|ge[0]},getInt32:function(te){return Ne(Be(this,4,te,arguments.length>1?arguments[1]:void 0))},getUint32:function(te){return Ne(Be(this,4,te,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(te){return He(Be(this,4,te,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(te){return He(Be(this,8,te,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(te,ge){Te(this,1,te,Se,ge)},setUint8:function(te,ge){Te(this,1,te,Se,ge)},setInt16:function(te,ge){Te(this,2,te,xe,ge,arguments.length>2?arguments[2]:void 0)},setUint16:function(te,ge){Te(this,2,te,xe,ge,arguments.length>2?arguments[2]:void 0)},setInt32:function(te,ge){Te(this,4,te,le,ge,arguments.length>2?arguments[2]:void 0)},setUint32:function(te,ge){Te(this,4,te,le,ge,arguments.length>2?arguments[2]:void 0)},setFloat32:function(te,ge){Te(this,4,te,se,ge,arguments.length>2?arguments[2]:void 0)},setFloat64:function(te,ge){Te(this,8,te,Ae,ge,arguments.length>2?arguments[2]:void 0)}});else{var ue=Lt&&ve.name!==Gt;if(!ct(function(){ve(1)})||!ct(function(){new ve(-1)})||ct(function(){return new ve,new ve(1.5),new ve(NaN),ue&&!It})){Kt=function(te){return lt(this,re),new ve(ot(te))},Kt[Ht]=re;for(var $t=wt(ve),he=0,ye;$t.length>he;)(ye=$t[he++])in Kt||dt(Kt,ye,ve[ye]);re.constructor=Kt}else ue&&It&&dt(ve,"name",Gt);ut&&at(Me)!==ke&&ut(Me,ke);var Qt=new we(new Kt(2)),Wt=pt(Me.setInt8);Qt.setInt8(0,2147483648),Qt.setInt8(1,2147483649),(Qt.getInt8(0)||!Qt.getInt8(1))&&ft(Me,{setInt8:function(te,ge){Wt(this,te,ge<<24>>24)},setUint8:function(te,ge){Wt(this,te,ge<<24>>24)}},{unsafe:!0})}Mt(Kt,Gt),Mt(we,Yt),kt.exports={ArrayBuffer:Kt,DataView:we}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=Math.min;kt.exports=[].copyWithin||function(dt,ft){var ct=St(this),lt=vt(ct),E=pt(dt,lt),z=pt(ft,lt),ot=arguments.length>2?arguments[2]:void 0,it=yt((ot===void 0?lt:pt(ot,lt))-z,lt-E),at=1;for(z<E&&E<z+it&&(at=-1,z+=it-1,E+=it-1);it-- >0;)z in ct?ct[E]=ct[z]:delete ct[E],E+=at,z+=at;return ct}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like");kt.exports=function(xt){for(var dt=St(this),ft=vt(dt),ct=arguments.length,lt=pt(ct>1?arguments[1]:void 0,ft),E=ct>2?arguments[2]:void 0,z=E===void 0?ft:pt(E,ft);z>lt;)dt[lt++]=xt;return dt}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-iteration").forEach,pt=rt("../internals/array-method-is-strict"),vt=pt("forEach");kt.exports=vt?[].forEach:function(xt){return St(this,xt,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(rt,kt,Ct){var St=rt("../internals/length-of-array-like");kt.exports=function(pt,vt){for(var yt=0,xt=St(vt),dt=new pt(xt);xt>yt;)dt[yt]=vt[yt++];return dt}},{"../internals/length-of-array-like":188}],109:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/function-call"),yt=rt("../internals/to-object"),xt=rt("../internals/call-with-safe-iteration-closing"),dt=rt("../internals/is-array-iterator-method"),ft=rt("../internals/is-constructor"),ct=rt("../internals/length-of-array-like"),lt=rt("../internals/create-property"),E=rt("../internals/get-iterator"),z=rt("../internals/get-iterator-method"),ot=St.Array;kt.exports=function(at){var ut=yt(at),wt=ft(this),Et=arguments.length,At=Et>1?arguments[1]:void 0,_t=At!==void 0;_t&&(At=pt(At,Et>2?arguments[2]:void 0));var Mt=z(ut),jt=0,Lt,It,Ut,Xt,Gt,Yt;if(Mt&&!(this==ot&&dt(Mt)))for(Xt=E(ut,Mt),Gt=Xt.next,It=wt?new this:[];!(Ut=vt(Gt,Xt)).done;jt++)Yt=_t?xt(Xt,At,[Ut.value,jt],!0):Ut.value,lt(It,jt,Yt);else for(Lt=ct(ut),It=wt?new this(Lt):ot(Lt);Lt>jt;jt++)Yt=_t?At(ut[jt],jt):ut[jt],lt(It,jt,Yt);return It.length=jt,It}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(rt,kt,Ct){var St=rt("../internals/to-indexed-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=function(xt){return function(dt,ft,ct){var lt=St(dt),E=vt(lt),z=pt(ct,E),ot;if(xt&&ft!=ft){for(;E>z;)if(ot=lt[z++],ot!=ot)return!0}else for(;E>z;z++)if((xt||z in lt)&&lt[z]===ft)return xt||z||0;return!xt&&-1}};kt.exports={includes:yt(!0),indexOf:yt(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(rt,kt,Ct){var St=rt("../internals/function-bind-context"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/indexed-object"),yt=rt("../internals/to-object"),xt=rt("../internals/length-of-array-like"),dt=rt("../internals/array-species-create"),ft=pt([].push),ct=function(lt){var E=lt==1,z=lt==2,ot=lt==3,it=lt==4,at=lt==6,ut=lt==7,wt=lt==5||at;return function(Et,At,_t,Mt){for(var jt=yt(Et),Lt=vt(jt),It=St(At,_t),Ut=xt(Lt),Xt=0,Gt=Mt||dt,Yt=E?Gt(Et,Ut):z||ut?Gt(Et,0):void 0,Ht,ne;Ut>Xt;Xt++)if((wt||Xt in Lt)&&(Ht=Lt[Xt],ne=It(Ht,Xt,jt),lt))if(E)Yt[Xt]=ne;else if(ne)switch(lt){case 3:return!0;case 5:return Ht;case 6:return Xt;case 2:ft(Yt,Ht)}else switch(lt){case 4:return!1;case 7:ft(Yt,Ht)}return at?-1:ot||it?it:Yt}};kt.exports={forEach:ct(0),map:ct(1),filter:ct(2),some:ct(3),every:ct(4),find:ct(5),findIndex:ct(6),filterReject:ct(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/to-indexed-object"),vt=rt("../internals/to-integer-or-infinity"),yt=rt("../internals/length-of-array-like"),xt=rt("../internals/array-method-is-strict"),dt=Math.min,ft=[].lastIndexOf,ct=!!ft&&1/[1].lastIndexOf(1,-0)<0,lt=xt("lastIndexOf"),E=ct||!lt;kt.exports=E?function(ot){if(ct)return St(ft,this,arguments)||0;var it=pt(this),at=yt(it),ut=at-1;for(arguments.length>1&&(ut=dt(ut,vt(arguments[1]))),ut<0&&(ut=at+ut);ut>=0;ut--)if(ut in it&&it[ut]===ot)return ut||0;return-1}:ft},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/well-known-symbol"),vt=rt("../internals/engine-v8-version"),yt=pt("species");kt.exports=function(xt){return vt>=51||!St(function(){var dt=[],ft=dt.constructor={};return ft[yt]=function(){return{foo:1}},dt[xt](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(rt,kt,Ct){"use strict";var St=rt("../internals/fails");kt.exports=function(pt,vt){var yt=[][pt];return!!yt&&St(function(){yt.call(null,vt||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/a-callable"),vt=rt("../internals/to-object"),yt=rt("../internals/indexed-object"),xt=rt("../internals/length-of-array-like"),dt=St.TypeError,ft=function(ct){return function(lt,E,z,ot){pt(E);var it=vt(lt),at=yt(it),ut=xt(it),wt=ct?ut-1:0,Et=ct?-1:1;if(z<2)for(;;){if(wt in at){ot=at[wt],wt+=Et;break}if(wt+=Et,ct?wt<0:ut<=wt)throw dt("Reduce of empty array with no initial value")}for(;ct?wt>=0:ut>wt;wt+=Et)wt in at&&(ot=E(ot,at[wt],wt,it));return ot}};kt.exports={left:ft(!1),right:ft(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=rt("../internals/create-property"),xt=St.Array,dt=Math.max;kt.exports=function(ft,ct,lt){for(var E=vt(ft),z=pt(ct,E),ot=pt(lt===void 0?E:lt,E),it=xt(dt(ot-z,0)),at=0;z<ot;z++,at++)yt(it,at,ft[z]);return it.length=at,it}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this");kt.exports=St([].slice)},{"../internals/function-uncurry-this":157}],118:[function(rt,kt,Ct){var St=rt("../internals/array-slice-simple"),pt=Math.floor,vt=function(dt,ft){var ct=dt.length,lt=pt(ct/2);return ct<8?yt(dt,ft):xt(dt,vt(St(dt,0,lt),ft),vt(St(dt,lt),ft),ft)},yt=function(dt,ft){for(var ct=dt.length,lt=1,E,z;lt<ct;){for(z=lt,E=dt[lt];z&&ft(dt[z-1],E)>0;)dt[z]=dt[--z];z!==lt++&&(dt[z]=E)}return dt},xt=function(dt,ft,ct,lt){for(var E=ft.length,z=ct.length,ot=0,it=0;ot<E||it<z;)dt[ot+it]=ot<E&&it<z?lt(ft[ot],ct[it])<=0?ft[ot++]:ct[it++]:ot<E?ft[ot++]:ct[it++];return dt};kt.exports=vt},{"../internals/array-slice-simple":116}],119:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-array"),vt=rt("../internals/is-constructor"),yt=rt("../internals/is-object"),xt=rt("../internals/well-known-symbol"),dt=xt("species"),ft=St.Array;kt.exports=function(ct){var lt;return pt(ct)&&(lt=ct.constructor,vt(lt)&&(lt===ft||pt(lt.prototype))?lt=void 0:yt(lt)&&(lt=lt[dt],lt===null&&(lt=void 0))),lt===void 0?ft:lt}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(rt,kt,Ct){var St=rt("../internals/array-species-constructor");kt.exports=function(pt,vt){return new(St(pt))(vt===0?0:vt)}},{"../internals/array-species-constructor":119}],121:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/iterator-close");kt.exports=function(vt,yt,xt,dt){try{return dt?yt(St(xt)[0],xt[1]):yt(xt)}catch(ft){pt(vt,"throw",ft)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=St("iterator"),vt=!1;try{var yt=0,xt={next:function(){return{done:!!yt++}},return:function(){vt=!0}};xt[pt]=function(){return this},Array.from(xt,function(){throw 2})}catch(dt){}kt.exports=function(dt,ft){if(!ft&&!vt)return!1;var ct=!1;try{var lt={};lt[pt]=function(){return{next:function(){return{done:ct=!0}}}},dt(lt)}catch(E){}return ct}},{"../internals/well-known-symbol":268}],123:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=St({}.toString),vt=St("".slice);kt.exports=function(yt){return vt(pt(yt),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-string-tag-support"),vt=rt("../internals/is-callable"),yt=rt("../internals/classof-raw"),xt=rt("../internals/well-known-symbol"),dt=xt("toStringTag"),ft=St.Object,ct=yt(function(){return arguments}())=="Arguments",lt=function(E,z){try{return E[z]}catch(ot){}};kt.exports=pt?yt:function(E){var z,ot,it;return E===void 0?"Undefined":E===null?"Null":typeof(ot=lt(z=ft(E),dt))=="string"?ot:ct?yt(z):(it=yt(z))=="Object"&&vt(z.callee)?"Arguments":it}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(rt,kt,Ct){var St=rt("../internals/has-own-property"),pt=rt("../internals/own-keys"),vt=rt("../internals/object-get-own-property-descriptor"),yt=rt("../internals/object-define-property");kt.exports=function(xt,dt,ft){for(var ct=pt(dt),lt=yt.f,E=vt.f,z=0;z<ct.length;z++){var ot=ct[z];!St(xt,ot)&&!(ft&&St(ft,ot))&&lt(xt,ot,E(dt,ot))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=St("match");kt.exports=function(vt){var yt=/./;try{"/./"[vt](yt)}catch(xt){try{return yt[pt]=!1,"/./"[vt](yt)}catch(dt){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(rt,kt,Ct){var St=rt("../internals/fails");kt.exports=!St(function(){function pt(){}return pt.prototype.constructor=null,Object.getPrototypeOf(new pt)!==pt.prototype})},{"../internals/fails":150}],128:[function(rt,kt,Ct){"use strict";var St=rt("../internals/iterators-core").IteratorPrototype,pt=rt("../internals/object-create"),vt=rt("../internals/create-property-descriptor"),yt=rt("../internals/set-to-string-tag"),xt=rt("../internals/iterators"),dt=function(){return this};kt.exports=function(ft,ct,lt,E){var z=ct+" Iterator";return ft.prototype=pt(St,{next:vt(+!E,lt)}),yt(ft,z,!1,!0),xt[z]=dt,ft}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/object-define-property"),vt=rt("../internals/create-property-descriptor");kt.exports=St?function(yt,xt,dt){return pt.f(yt,xt,vt(1,dt))}:function(yt,xt,dt){return yt[xt]=dt,yt}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(rt,kt,Ct){kt.exports=function(St,pt){return{enumerable:!(St&1),configurable:!(St&2),writable:!(St&4),value:pt}}},{}],131:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-property-key"),pt=rt("../internals/object-define-property"),vt=rt("../internals/create-property-descriptor");kt.exports=function(yt,xt,dt){var ft=St(xt);ft in yt?pt.f(yt,ft,vt(0,dt)):yt[ft]=dt}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/is-pure"),yt=rt("../internals/function-name"),xt=rt("../internals/is-callable"),dt=rt("../internals/create-iterator-constructor"),ft=rt("../internals/object-get-prototype-of"),ct=rt("../internals/object-set-prototype-of"),lt=rt("../internals/set-to-string-tag"),E=rt("../internals/create-non-enumerable-property"),z=rt("../internals/redefine"),ot=rt("../internals/well-known-symbol"),it=rt("../internals/iterators"),at=rt("../internals/iterators-core"),ut=yt.PROPER,wt=yt.CONFIGURABLE,Et=at.IteratorPrototype,At=at.BUGGY_SAFARI_ITERATORS,_t=ot("iterator"),Mt="keys",jt="values",Lt="entries",It=function(){return this};kt.exports=function(Ut,Xt,Gt,Yt,Ht,ne,ae){dt(Gt,Xt,Yt);var ve=function(je){if(je===Ht&&ke)return ke;if(!At&&je in we)return we[je];switch(je){case Mt:return function(){return new Gt(this,je)};case jt:return function(){return new Gt(this,je)};case Lt:return function(){return new Gt(this,je)}}return function(){return new Gt(this)}},Kt=Xt+" Iterator",re=!1,we=Ut.prototype,Me=we[_t]||we["@@iterator"]||Ht&&we[Ht],ke=!At&&Me||ve(Ht),me=Xt=="Array"&&we.entries||Me,fe,pe,_e;if(me&&(fe=ft(me.call(new Ut)),fe!==Object.prototype&&fe.next&&(!vt&&ft(fe)!==Et&&(ct?ct(fe,Et):xt(fe[_t])||z(fe,_t,It)),lt(fe,Kt,!0,!0),vt&&(it[Kt]=It))),ut&&Ht==jt&&Me&&Me.name!==jt&&(!vt&&wt?E(we,"name",jt):(re=!0,ke=function(){return pt(Me,this)})),Ht)if(pe={values:ve(jt),keys:ne?ke:ve(Mt),entries:ve(Lt)},ae)for(_e in pe)(At||re||!(_e in we))&&z(we,_e,pe[_e]);else St({target:Xt,proto:!0,forced:At||re},pe);return(!vt||ae)&&we[_t]!==ke&&z(we,_t,ke,{name:Ht}),it[Xt]=ke,pe}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(rt,kt,Ct){var St=rt("../internals/path"),pt=rt("../internals/has-own-property"),vt=rt("../internals/well-known-symbol-wrapped"),yt=rt("../internals/object-define-property").f;kt.exports=function(xt){var dt=St.Symbol||(St.Symbol={});pt(dt,xt)||yt(dt,xt,{value:vt.f(xt)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(rt,kt,Ct){var St=rt("../internals/fails");kt.exports=!St(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-object"),vt=St.document,yt=pt(vt)&&pt(vt.createElement);kt.exports=function(xt){return yt?vt.createElement(xt):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(rt,kt,Ct){kt.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(rt,kt,Ct){var St=rt("../internals/document-create-element"),pt=St("span").classList,vt=pt&&pt.constructor&&pt.constructor.prototype;kt.exports=vt===Object.prototype?void 0:vt},{"../internals/document-create-element":135}],138:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent"),pt=St.match(/firefox\/(\d+)/i);kt.exports=!!pt&&+pt[1]},{"../internals/engine-user-agent":145}],139:[function(rt,kt,Ct){kt.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent");kt.exports=/MSIE|Trident/.test(St)},{"../internals/engine-user-agent":145}],141:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent"),pt=rt("../internals/global");kt.exports=/ipad|iphone|ipod/i.test(St)&&pt.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent");kt.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(St)},{"../internals/engine-user-agent":145}],143:[function(rt,kt,Ct){var St=rt("../internals/classof-raw"),pt=rt("../internals/global");kt.exports=St(pt.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent");kt.exports=/web0s(?!.*chrome)/i.test(St)},{"../internals/engine-user-agent":145}],145:[function(rt,kt,Ct){var St=rt("../internals/get-built-in");kt.exports=St("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/engine-user-agent"),vt=St.process,yt=St.Deno,xt=vt&&vt.versions||yt&&yt.version,dt=xt&&xt.v8,ft,ct;dt&&(ft=dt.split("."),ct=ft[0]>0&&ft[0]<4?1:+(ft[0]+ft[1])),!ct&&pt&&(ft=pt.match(/Edge\/(\d+)/),(!ft||ft[1]>=74)&&(ft=pt.match(/Chrome\/(\d+)/),ft&&(ct=+ft[1]))),kt.exports=ct},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent"),pt=St.match(/AppleWebKit\/(\d+)\./);kt.exports=!!pt&&+pt[1]},{"../internals/engine-user-agent":145}],148:[function(rt,kt,Ct){kt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/object-get-own-property-descriptor").f,vt=rt("../internals/create-non-enumerable-property"),yt=rt("../internals/redefine"),xt=rt("../internals/set-global"),dt=rt("../internals/copy-constructor-properties"),ft=rt("../internals/is-forced");kt.exports=function(ct,lt){var E=ct.target,z=ct.global,ot=ct.stat,it,at,ut,wt,Et,At;if(z?at=St:ot?at=St[E]||xt(E,{}):at=(St[E]||{}).prototype,at)for(ut in lt){if(Et=lt[ut],ct.noTargetGet?(At=pt(at,ut),wt=At&&At.value):wt=at[ut],it=ft(z?ut:E+(ot?".":"#")+ut,ct.forced),!it&&wt!==void 0){if(typeof Et==typeof wt)continue;dt(Et,wt)}(ct.sham||wt&&wt.sham)&&vt(Et,"sham",!0),yt(at,ut,Et,ct)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(rt,kt,Ct){kt.exports=function(St){try{return!!St()}catch(pt){return!0}}},{}],151:[function(rt,kt,Ct){"use strict";rt("../modules/es.regexp.exec");var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/redefine"),vt=rt("../internals/regexp-exec"),yt=rt("../internals/fails"),xt=rt("../internals/well-known-symbol"),dt=rt("../internals/create-non-enumerable-property"),ft=xt("species"),ct=RegExp.prototype;kt.exports=function(lt,E,z,ot){var it=xt(lt),at=!yt(function(){var At={};return At[it]=function(){return 7},""[lt](At)!=7}),ut=at&&!yt(function(){var At=!1,_t=/a/;return lt==="split"&&(_t={},_t.constructor={},_t.constructor[ft]=function(){return _t},_t.flags="",_t[it]=/./[it]),_t.exec=function(){return At=!0,null},_t[it](""),!At});if(!at||!ut||z){var wt=St(/./[it]),Et=E(it,""[lt],function(At,_t,Mt,jt,Lt){var It=St(At),Ut=_t.exec;return Ut===vt||Ut===ct.exec?at&&!Lt?{done:!0,value:wt(_t,Mt,jt)}:{done:!0,value:It(Mt,_t,jt)}:{done:!1}});pt(String.prototype,lt,Et[0]),pt(ct,it,Et[1])}ot&&dt(ct[it],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype,vt=pt.apply,yt=pt.call;kt.exports=typeof Reflect=="object"&&Reflect.apply||(St?yt.bind(vt):function(){return yt.apply(vt,arguments)})},{"../internals/function-bind-native":154}],153:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/a-callable"),vt=rt("../internals/function-bind-native"),yt=St(St.bind);kt.exports=function(xt,dt){return pt(xt),dt===void 0?xt:vt?yt(xt,dt):function(){return xt.apply(dt,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(rt,kt,Ct){var St=rt("../internals/fails");kt.exports=!St(function(){var pt=function(){}.bind();return typeof pt!="function"||pt.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype.call;kt.exports=St?pt.bind(pt):function(){return pt.apply(pt,arguments)}},{"../internals/function-bind-native":154}],156:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/has-own-property"),vt=Function.prototype,yt=St&&Object.getOwnPropertyDescriptor,xt=pt(vt,"name"),dt=xt&&function(){}.name==="something",ft=xt&&(!St||St&&yt(vt,"name").configurable);kt.exports={EXISTS:xt,PROPER:dt,CONFIGURABLE:ft}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype,vt=pt.bind,yt=pt.call,xt=St&&vt.bind(yt,yt);kt.exports=St?function(dt){return dt&&xt(dt)}:function(dt){return dt&&function(){return yt.apply(dt,arguments)}}},{"../internals/function-bind-native":154}],158:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=function(yt){return pt(yt)?yt:void 0};kt.exports=function(yt,xt){return arguments.length<2?vt(St[yt]):St[yt]&&St[yt][xt]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(rt,kt,Ct){var St=rt("../internals/classof"),pt=rt("../internals/get-method"),vt=rt("../internals/iterators"),yt=rt("../internals/well-known-symbol"),xt=yt("iterator");kt.exports=function(dt){if(dt!=null)return pt(dt,xt)||pt(dt,"@@iterator")||vt[St(dt)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/an-object"),xt=rt("../internals/try-to-string"),dt=rt("../internals/get-iterator-method"),ft=St.TypeError;kt.exports=function(ct,lt){var E=arguments.length<2?dt(ct):lt;if(vt(E))return yt(pt(E,ct));throw ft(xt(ct)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(rt,kt,Ct){var St=rt("../internals/a-callable");kt.exports=function(pt,vt){var yt=pt[vt];return yt==null?void 0:St(yt)}},{"../internals/a-callable":95}],162:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-object"),vt=Math.floor,yt=St("".charAt),xt=St("".replace),dt=St("".slice),ft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ct=/\$([$&'`]|\d{1,2})/g;kt.exports=function(lt,E,z,ot,it,at){var ut=z+lt.length,wt=ot.length,Et=ct;return it!==void 0&&(it=pt(it),Et=ft),xt(at,Et,function(At,_t){var Mt;switch(yt(_t,0)){case"$":return"$";case"&":return lt;case"`":return dt(E,0,z);case"'":return dt(E,ut);case"<":Mt=it[dt(_t,1,-1)];break;default:var jt=+_t;if(jt===0)return At;if(jt>wt){var Lt=vt(jt/10);return Lt===0?At:Lt<=wt?ot[Lt-1]===void 0?yt(_t,1):ot[Lt-1]+yt(_t,1):At}Mt=ot[jt-1]}return Mt===void 0?"":Mt})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(rt,kt,Ct){(function(St){(function(){var pt=function(vt){return vt&&vt.Math==Math&&vt};kt.exports=pt(typeof globalThis=="object"&&globalThis)||pt(typeof window=="object"&&window)||pt(typeof self=="object"&&self)||pt(typeof St=="object"&&St)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-object"),vt=St({}.hasOwnProperty);kt.exports=Object.hasOwn||function(xt,dt){return vt(pt(xt),dt)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(rt,kt,Ct){kt.exports={}},{}],166:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=function(pt,vt){var yt=St.console;yt&&yt.error&&(arguments.length==1?yt.error(pt):yt.error(pt,vt))}},{"../internals/global":163}],167:[function(rt,kt,Ct){var St=rt("../internals/get-built-in");kt.exports=St("document","documentElement")},{"../internals/get-built-in":158}],168:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/fails"),vt=rt("../internals/document-create-element");kt.exports=!St&&!pt(function(){return Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.Array,vt=Math.abs,yt=Math.pow,xt=Math.floor,dt=Math.log,ft=Math.LN2,ct=function(E,z,ot){var it=pt(ot),at=ot*8-z-1,ut=(1<<at)-1,wt=ut>>1,Et=z===23?yt(2,-24)-yt(2,-77):0,At=E<0||E===0&&1/E<0?1:0,_t=0,Mt,jt,Lt;for(E=vt(E),E!=E||E===1/0?(jt=E!=E?1:0,Mt=ut):(Mt=xt(dt(E)/ft),Lt=yt(2,-Mt),E*Lt<1&&(Mt--,Lt*=2),Mt+wt>=1?E+=Et/Lt:E+=Et*yt(2,1-wt),E*Lt>=2&&(Mt++,Lt/=2),Mt+wt>=ut?(jt=0,Mt=ut):Mt+wt>=1?(jt=(E*Lt-1)*yt(2,z),Mt=Mt+wt):(jt=E*yt(2,wt-1)*yt(2,z),Mt=0));z>=8;)it[_t++]=jt&255,jt/=256,z-=8;for(Mt=Mt<<z|jt,at+=z;at>0;)it[_t++]=Mt&255,Mt/=256,at-=8;return it[--_t]|=At*128,it},lt=function(E,z){var ot=E.length,it=ot*8-z-1,at=(1<<it)-1,ut=at>>1,wt=it-7,Et=ot-1,At=E[Et--],_t=At&127,Mt;for(At>>=7;wt>0;)_t=_t*256+E[Et--],wt-=8;for(Mt=_t&(1<<-wt)-1,_t>>=-wt,wt+=z;wt>0;)Mt=Mt*256+E[Et--],wt-=8;if(_t===0)_t=1-ut;else{if(_t===at)return Mt?NaN:At?-1/0:1/0;Mt=Mt+yt(2,z),_t=_t-ut}return(At?-1:1)*Mt*yt(2,_t-z)};kt.exports={pack:ct,unpack:lt}},{"../internals/global":163}],170:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/fails"),yt=rt("../internals/classof-raw"),xt=St.Object,dt=pt("".split);kt.exports=vt(function(){return!xt("z").propertyIsEnumerable(0)})?function(ft){return yt(ft)=="String"?dt(ft,""):xt(ft)}:xt},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(rt,kt,Ct){var St=rt("../internals/is-callable"),pt=rt("../internals/is-object"),vt=rt("../internals/object-set-prototype-of");kt.exports=function(yt,xt,dt){var ft,ct;return vt&&St(ft=xt.constructor)&&ft!==dt&&pt(ct=ft.prototype)&&ct!==dt.prototype&&vt(yt,ct),yt}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/is-callable"),vt=rt("../internals/shared-store"),yt=St(Function.toString);pt(vt.inspectSource)||(vt.inspectSource=function(xt){return yt(xt)}),kt.exports=vt.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(rt,kt,Ct){var St=rt("../internals/native-weak-map"),pt=rt("../internals/global"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/is-object"),xt=rt("../internals/create-non-enumerable-property"),dt=rt("../internals/has-own-property"),ft=rt("../internals/shared-store"),ct=rt("../internals/shared-key"),lt=rt("../internals/hidden-keys"),E="Object already initialized",z=pt.TypeError,ot=pt.WeakMap,it,at,ut,wt=function(It){return ut(It)?at(It):it(It,{})},Et=function(It){return function(Ut){var Xt;if(!yt(Ut)||(Xt=at(Ut)).type!==It)throw z("Incompatible receiver, "+It+" required");return Xt}};if(St||ft.state){var At=ft.state||(ft.state=new ot),_t=vt(At.get),Mt=vt(At.has),jt=vt(At.set);it=function(It,Ut){if(Mt(At,It))throw new z(E);return Ut.facade=It,jt(At,It,Ut),Ut},at=function(It){return _t(At,It)||{}},ut=function(It){return Mt(At,It)}}else{var Lt=ct("state");lt[Lt]=!0,it=function(It,Ut){if(dt(It,Lt))throw new z(E);return Ut.facade=It,xt(It,Lt,Ut),Ut},at=function(It){return dt(It,Lt)?It[Lt]:{}},ut=function(It){return dt(It,Lt)}}kt.exports={set:it,get:at,has:ut,enforce:wt,getterFor:Et}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=rt("../internals/iterators"),vt=St("iterator"),yt=Array.prototype;kt.exports=function(xt){return xt!==void 0&&(pt.Array===xt||yt[vt]===xt)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(rt,kt,Ct){var St=rt("../internals/classof-raw");kt.exports=Array.isArray||function(vt){return St(vt)=="Array"}},{"../internals/classof-raw":123}],176:[function(rt,kt,Ct){kt.exports=function(St){return typeof St=="function"}},{}],177:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/fails"),vt=rt("../internals/is-callable"),yt=rt("../internals/classof"),xt=rt("../internals/get-built-in"),dt=rt("../internals/inspect-source"),ft=function(){},ct=[],lt=xt("Reflect","construct"),E=/^\s*(?:class|function)\b/,z=St(E.exec),ot=!E.exec(ft),it=function(wt){if(!vt(wt))return!1;try{return lt(ft,ct,wt),!0}catch(Et){return!1}},at=function(wt){if(!vt(wt))return!1;switch(yt(wt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ot||!!z(E,dt(wt))}catch(Et){return!0}};at.sham=!0,kt.exports=!lt||pt(function(){var ut;return it(it.call)||!it(Object)||!it(function(){ut=!0})||ut})?at:it},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/is-callable"),vt=/#|\.prototype\./,yt=function(lt,E){var z=dt[xt(lt)];return z==ct?!0:z==ft?!1:pt(E)?St(E):!!E},xt=yt.normalize=function(lt){return String(lt).replace(vt,".").toLowerCase()},dt=yt.data={},ft=yt.NATIVE="N",ct=yt.POLYFILL="P";kt.exports=yt},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(rt,kt,Ct){var St=rt("../internals/is-object"),pt=Math.floor;kt.exports=Number.isInteger||function(yt){return!St(yt)&&isFinite(yt)&&pt(yt)===yt}},{"../internals/is-object":180}],180:[function(rt,kt,Ct){var St=rt("../internals/is-callable");kt.exports=function(pt){return typeof pt=="object"?pt!==null:St(pt)}},{"../internals/is-callable":176}],181:[function(rt,kt,Ct){kt.exports=!1},{}],182:[function(rt,kt,Ct){var St=rt("../internals/is-object"),pt=rt("../internals/classof-raw"),vt=rt("../internals/well-known-symbol"),yt=vt("match");kt.exports=function(xt){var dt;return St(xt)&&((dt=xt[yt])!==void 0?!!dt:pt(xt)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/get-built-in"),vt=rt("../internals/is-callable"),yt=rt("../internals/object-is-prototype-of"),xt=rt("../internals/use-symbol-as-uid"),dt=St.Object;kt.exports=xt?function(ft){return typeof ft=="symbol"}:function(ft){var ct=pt("Symbol");return vt(ct)&&yt(ct.prototype,dt(ft))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/function-call"),yt=rt("../internals/an-object"),xt=rt("../internals/try-to-string"),dt=rt("../internals/is-array-iterator-method"),ft=rt("../internals/length-of-array-like"),ct=rt("../internals/object-is-prototype-of"),lt=rt("../internals/get-iterator"),E=rt("../internals/get-iterator-method"),z=rt("../internals/iterator-close"),ot=St.TypeError,it=function(ut,wt){this.stopped=ut,this.result=wt},at=it.prototype;kt.exports=function(ut,wt,Et){var At=Et&&Et.that,_t=!!(Et&&Et.AS_ENTRIES),Mt=!!(Et&&Et.IS_ITERATOR),jt=!!(Et&&Et.INTERRUPTED),Lt=pt(wt,At),It,Ut,Xt,Gt,Yt,Ht,ne,ae=function(Kt){return It&&z(It,"normal",Kt),new it(!0,Kt)},ve=function(Kt){return _t?(yt(Kt),jt?Lt(Kt[0],Kt[1],ae):Lt(Kt[0],Kt[1])):jt?Lt(Kt,ae):Lt(Kt)};if(Mt)It=ut;else{if(Ut=E(ut),!Ut)throw ot(xt(ut)+" is not iterable");if(dt(Ut)){for(Xt=0,Gt=ft(ut);Gt>Xt;Xt++)if(Yt=ve(ut[Xt]),Yt&&ct(at,Yt))return Yt;return new it(!1)}It=lt(ut,Ut)}for(Ht=It.next;!(ne=vt(Ht,It)).done;){try{Yt=ve(ne.value)}catch(Kt){z(It,"throw",Kt)}if(typeof Yt=="object"&&Yt&&ct(at,Yt))return Yt}return new it(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(rt,kt,Ct){var St=rt("../internals/function-call"),pt=rt("../internals/an-object"),vt=rt("../internals/get-method");kt.exports=function(yt,xt,dt){var ft,ct;pt(yt);try{if(ft=vt(yt,"return"),!ft){if(xt==="throw")throw dt;return dt}ft=St(ft,yt)}catch(lt){ct=!0,ft=lt}if(xt==="throw")throw dt;if(ct)throw ft;return pt(ft),dt}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(rt,kt,Ct){"use strict";var St=rt("../internals/fails"),pt=rt("../internals/is-callable"),vt=rt("../internals/object-create"),yt=rt("../internals/object-get-prototype-of"),xt=rt("../internals/redefine"),dt=rt("../internals/well-known-symbol"),ft=rt("../internals/is-pure"),ct=dt("iterator"),lt=!1,E,z,ot;[].keys&&(ot=[].keys(),"next"in ot?(z=yt(yt(ot)),z!==Object.prototype&&(E=z)):lt=!0);var it=E==null||St(function(){var at={};return E[ct].call(at)!==at});it?E={}:ft&&(E=vt(E)),pt(E[ct])||xt(E,ct,function(){return this}),kt.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:lt}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(rt,kt,Ct){arguments[4][165][0].apply(Ct,arguments)},{dup:165}],188:[function(rt,kt,Ct){var St=rt("../internals/to-length");kt.exports=function(pt){return St(pt.length)}},{"../internals/to-length":249}],189:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/object-get-own-property-descriptor").f,yt=rt("../internals/task").set,xt=rt("../internals/engine-is-ios"),dt=rt("../internals/engine-is-ios-pebble"),ft=rt("../internals/engine-is-webos-webkit"),ct=rt("../internals/engine-is-node"),lt=St.MutationObserver||St.WebKitMutationObserver,E=St.document,z=St.process,ot=St.Promise,it=vt(St,"queueMicrotask"),at=it&&it.value,ut,wt,Et,At,_t,Mt,jt,Lt;at||(ut=function(){var It,Ut;for(ct&&(It=z.domain)&&It.exit();wt;){Ut=wt.fn,wt=wt.next;try{Ut()}catch(Xt){throw wt?At():Et=void 0,Xt}}Et=void 0,It&&It.enter()},!xt&&!ct&&!ft&&lt&&E?(_t=!0,Mt=E.createTextNode(""),new lt(ut).observe(Mt,{characterData:!0}),At=function(){Mt.data=_t=!_t}):!dt&&ot&&ot.resolve?(jt=ot.resolve(void 0),jt.constructor=ot,Lt=pt(jt.then,jt),At=function(){Lt(ut)}):ct?At=function(){z.nextTick(ut)}:(yt=pt(yt,St),At=function(){yt(ut)})),kt.exports=at||function(It){var Ut={fn:It,next:void 0};Et&&(Et.next=Ut),wt||(wt=Ut,At()),Et=Ut}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(rt,kt,Ct){var St=rt("../internals/native-symbol");kt.exports=St&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(rt,kt,Ct){var St=rt("../internals/engine-v8-version"),pt=rt("../internals/fails");kt.exports=!!Object.getOwnPropertySymbols&&!pt(function(){var vt=Symbol();return!String(vt)||!(Object(vt)instanceof Symbol)||!Symbol.sham&&St&&St<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=rt("../internals/inspect-source"),yt=St.WeakMap;kt.exports=pt(yt)&&/native code/.test(vt(yt))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(rt,kt,Ct){"use strict";var St=rt("../internals/a-callable"),pt=function(vt){var yt,xt;this.promise=new vt(function(dt,ft){if(yt!==void 0||xt!==void 0)throw TypeError("Bad Promise constructor");yt=dt,xt=ft}),this.resolve=St(yt),this.reject=St(xt)};kt.exports.f=function(vt){return new pt(vt)}},{"../internals/a-callable":95}],194:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-regexp"),vt=St.TypeError;kt.exports=function(yt){if(pt(yt))throw vt("The method doesn't accept regular expressions");return yt}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(rt,kt,Ct){"use strict";var St=rt("../internals/descriptors"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/function-call"),yt=rt("../internals/fails"),xt=rt("../internals/object-keys"),dt=rt("../internals/object-get-own-property-symbols"),ft=rt("../internals/object-property-is-enumerable"),ct=rt("../internals/to-object"),lt=rt("../internals/indexed-object"),E=Object.assign,z=Object.defineProperty,ot=pt([].concat);kt.exports=!E||yt(function(){if(St&&E({b:1},E(z({},"a",{enumerable:!0,get:function(){z(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var it={},at={},ut=Symbol(),wt="abcdefghijklmnopqrst";return it[ut]=7,wt.split("").forEach(function(Et){at[Et]=Et}),E({},it)[ut]!=7||xt(E({},at)).join("")!=wt})?function(at,ut){for(var wt=ct(at),Et=arguments.length,At=1,_t=dt.f,Mt=ft.f;Et>At;)for(var jt=lt(arguments[At++]),Lt=_t?ot(xt(jt),_t(jt)):xt(jt),It=Lt.length,Ut=0,Xt;It>Ut;)Xt=Lt[Ut++],(!St||vt(Mt,jt,Xt))&&(wt[Xt]=jt[Xt]);return wt}:E},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/object-define-properties"),vt=rt("../internals/enum-bug-keys"),yt=rt("../internals/hidden-keys"),xt=rt("../internals/html"),dt=rt("../internals/document-create-element"),ft=rt("../internals/shared-key"),ct=">",lt="<",E="prototype",z="script",ot=ft("IE_PROTO"),it=function(){},at=function(_t){return lt+z+ct+_t+lt+"/"+z+ct},ut=function(_t){_t.write(at("")),_t.close();var Mt=_t.parentWindow.Object;return _t=null,Mt},wt=function(){var _t=dt("iframe"),Mt="java"+z+":",jt;return _t.style.display="none",xt.appendChild(_t),_t.src=String(Mt),jt=_t.contentWindow.document,jt.open(),jt.write(at("document.F=Object")),jt.close(),jt.F},Et,At=function(){try{Et=new ActiveXObject("htmlfile")}catch(Mt){}At=typeof document!="undefined"?document.domain&&Et?ut(Et):wt():ut(Et);for(var _t=vt.length;_t--;)delete At[E][vt[_t]];return At()};yt[ot]=!0,kt.exports=Object.create||function(Mt,jt){var Lt;return Mt!==null?(it[E]=St(Mt),Lt=new it,it[E]=null,Lt[ot]=Mt):Lt=At(),jt===void 0?Lt:pt.f(Lt,jt)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/v8-prototype-define-bug"),vt=rt("../internals/object-define-property"),yt=rt("../internals/an-object"),xt=rt("../internals/to-indexed-object"),dt=rt("../internals/object-keys");Ct.f=St&&!pt?Object.defineProperties:function(ct,lt){yt(ct);for(var E=xt(lt),z=dt(lt),ot=z.length,it=0,at;ot>it;)vt.f(ct,at=z[it++],E[at]);return ct}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/descriptors"),vt=rt("../internals/ie8-dom-define"),yt=rt("../internals/v8-prototype-define-bug"),xt=rt("../internals/an-object"),dt=rt("../internals/to-property-key"),ft=St.TypeError,ct=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,E="enumerable",z="configurable",ot="writable";Ct.f=pt?yt?function(at,ut,wt){if(xt(at),ut=dt(ut),xt(wt),typeof at=="function"&&ut==="prototype"&&"value"in wt&&ot in wt&&!wt[ot]){var Et=lt(at,ut);Et&&Et[ot]&&(at[ut]=wt.value,wt={configurable:z in wt?wt[z]:Et[z],enumerable:E in wt?wt[E]:Et[E],writable:!1})}return ct(at,ut,wt)}:ct:function(at,ut,wt){if(xt(at),ut=dt(ut),xt(wt),vt)try{return ct(at,ut,wt)}catch(Et){}if("get"in wt||"set"in wt)throw ft("Accessors not supported");return"value"in wt&&(at[ut]=wt.value),at}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/function-call"),vt=rt("../internals/object-property-is-enumerable"),yt=rt("../internals/create-property-descriptor"),xt=rt("../internals/to-indexed-object"),dt=rt("../internals/to-property-key"),ft=rt("../internals/has-own-property"),ct=rt("../internals/ie8-dom-define"),lt=Object.getOwnPropertyDescriptor;Ct.f=St?lt:function(z,ot){if(z=xt(z),ot=dt(ot),ct)try{return lt(z,ot)}catch(it){}if(ft(z,ot))return yt(!pt(vt.f,z,ot),z[ot])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(rt,kt,Ct){var St=rt("../internals/classof-raw"),pt=rt("../internals/to-indexed-object"),vt=rt("../internals/object-get-own-property-names").f,yt=rt("../internals/array-slice-simple"),xt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dt=function(ft){try{return vt(ft)}catch(ct){return yt(xt)}};kt.exports.f=function(ct){return xt&&St(ct)=="Window"?dt(ct):vt(pt(ct))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(rt,kt,Ct){var St=rt("../internals/object-keys-internal"),pt=rt("../internals/enum-bug-keys"),vt=pt.concat("length","prototype");Ct.f=Object.getOwnPropertyNames||function(xt){return St(xt,vt)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(rt,kt,Ct){Ct.f=Object.getOwnPropertySymbols},{}],203:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/has-own-property"),vt=rt("../internals/is-callable"),yt=rt("../internals/to-object"),xt=rt("../internals/shared-key"),dt=rt("../internals/correct-prototype-getter"),ft=xt("IE_PROTO"),ct=St.Object,lt=ct.prototype;kt.exports=dt?ct.getPrototypeOf:function(E){var z=yt(E);if(pt(z,ft))return z[ft];var ot=z.constructor;return vt(ot)&&z instanceof ot?ot.prototype:z instanceof ct?lt:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this");kt.exports=St({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/has-own-property"),vt=rt("../internals/to-indexed-object"),yt=rt("../internals/array-includes").indexOf,xt=rt("../internals/hidden-keys"),dt=St([].push);kt.exports=function(ft,ct){var lt=vt(ft),E=0,z=[],ot;for(ot in lt)!pt(xt,ot)&&pt(lt,ot)&&dt(z,ot);for(;ct.length>E;)pt(lt,ot=ct[E++])&&(~yt(z,ot)||dt(z,ot));return z}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(rt,kt,Ct){var St=rt("../internals/object-keys-internal"),pt=rt("../internals/enum-bug-keys");kt.exports=Object.keys||function(yt){return St(yt,pt)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(rt,kt,Ct){"use strict";var St={}.propertyIsEnumerable,pt=Object.getOwnPropertyDescriptor,vt=pt&&!St.call({1:2},1);Ct.f=vt?function(xt){var dt=pt(this,xt);return!!dt&&dt.enumerable}:St},{}],208:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/an-object"),vt=rt("../internals/a-possible-prototype");kt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var yt=!1,xt={},dt;try{dt=St(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),dt(xt,[]),yt=xt instanceof Array}catch(ft){}return function(ct,lt){return pt(ct),vt(lt),yt?dt(ct,lt):ct.__proto__=lt,ct}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/object-keys"),yt=rt("../internals/to-indexed-object"),xt=rt("../internals/object-property-is-enumerable").f,dt=pt(xt),ft=pt([].push),ct=function(lt){return function(E){for(var z=yt(E),ot=vt(z),it=ot.length,at=0,ut=[],wt;it>at;)wt=ot[at++],(!St||dt(z,wt))&&ft(ut,lt?[wt,z[wt]]:z[wt]);return ut}};kt.exports={entries:ct(!0),values:ct(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-string-tag-support"),pt=rt("../internals/classof");kt.exports=St?{}.toString:function(){return"[object "+pt(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/is-callable"),yt=rt("../internals/is-object"),xt=St.TypeError;kt.exports=function(dt,ft){var ct,lt;if(ft==="string"&&vt(ct=dt.toString)&&!yt(lt=pt(ct,dt))||vt(ct=dt.valueOf)&&!yt(lt=pt(ct,dt))||ft!=="string"&&vt(ct=dt.toString)&&!yt(lt=pt(ct,dt)))return lt;throw xt("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(rt,kt,Ct){var St=rt("../internals/get-built-in"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/object-get-own-property-names"),yt=rt("../internals/object-get-own-property-symbols"),xt=rt("../internals/an-object"),dt=pt([].concat);kt.exports=St("Reflect","ownKeys")||function(ct){var lt=vt.f(xt(ct)),E=yt.f;return E?dt(lt,E(ct)):lt}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=St},{"../internals/global":163}],214:[function(rt,kt,Ct){kt.exports=function(St){try{return{error:!1,value:St()}}catch(pt){return{error:!0,value:pt}}}},{}],215:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/promise-native-constructor"),vt=rt("../internals/is-callable"),yt=rt("../internals/is-forced"),xt=rt("../internals/inspect-source"),dt=rt("../internals/well-known-symbol"),ft=rt("../internals/engine-is-browser"),ct=rt("../internals/is-pure"),lt=rt("../internals/engine-v8-version"),E=pt&&pt.prototype,z=dt("species"),ot=!1,it=vt(St.PromiseRejectionEvent),at=yt("Promise",function(){var ut=xt(pt),wt=ut!==String(pt);if(!wt&&lt===66||ct&&!(E.catch&&E.finally))return!0;if(lt>=51&&/native code/.test(ut))return!1;var Et=new pt(function(Mt){Mt(1)}),At=function(Mt){Mt(function(){},function(){})},_t=Et.constructor={};return _t[z]=At,ot=Et.then(function(){})instanceof At,ot?!wt&&ft&&!it:!0});kt.exports={CONSTRUCTOR:at,REJECTION_EVENT:it,SUBCLASSING:ot}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=St.Promise},{"../internals/global":163}],217:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/is-object"),vt=rt("../internals/new-promise-capability");kt.exports=function(yt,xt){if(St(yt),pt(xt)&&xt.constructor===yt)return xt;var dt=vt.f(yt),ft=dt.resolve;return ft(xt),dt.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(rt,kt,Ct){var St=rt("../internals/promise-native-constructor"),pt=rt("../internals/check-correctness-of-iteration"),vt=rt("../internals/promise-constructor-detection").CONSTRUCTOR;kt.exports=vt||!pt(function(yt){St.all(yt).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(rt,kt,Ct){var St=rt("../internals/object-define-property").f;kt.exports=function(pt,vt,yt){yt in pt||St(pt,yt,{configurable:!0,get:function(){return vt[yt]},set:function(xt){vt[yt]=xt}})}},{"../internals/object-define-property":198}],220:[function(rt,kt,Ct){var St=function(){this.head=null,this.tail=null};St.prototype={add:function(pt){var vt={item:pt,next:null};this.head?this.tail.next=vt:this.head=vt,this.tail=vt},get:function(){var pt=this.head;if(pt)return this.head=pt.next,this.tail===pt&&(this.tail=null),pt.item}},kt.exports=St},{}],221:[function(rt,kt,Ct){var St=rt("../internals/redefine");kt.exports=function(pt,vt,yt){for(var xt in vt)St(pt,xt,vt[xt],yt);return pt}},{"../internals/redefine":222}],222:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=rt("../internals/has-own-property"),yt=rt("../internals/create-non-enumerable-property"),xt=rt("../internals/set-global"),dt=rt("../internals/inspect-source"),ft=rt("../internals/internal-state"),ct=rt("../internals/function-name").CONFIGURABLE,lt=ft.get,E=ft.enforce,z=String(String).split("String");(kt.exports=function(ot,it,at,ut){var wt=ut?!!ut.unsafe:!1,Et=ut?!!ut.enumerable:!1,At=ut?!!ut.noTargetGet:!1,_t=ut&&ut.name!==void 0?ut.name:it,Mt;if(pt(at)&&(String(_t).slice(0,7)==="Symbol("&&(_t="["+String(_t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vt(at,"name")||ct&&at.name!==_t)&&yt(at,"name",_t),Mt=E(at),Mt.source||(Mt.source=z.join(typeof _t=="string"?_t:""))),ot===St){Et?ot[it]=at:xt(it,at);return}else wt?!At&&ot[it]&&(Et=!0):delete ot[it];Et?ot[it]=at:yt(ot,it,at)})(Function.prototype,"toString",function(){return pt(this)&&lt(this).source||dt(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/an-object"),yt=rt("../internals/is-callable"),xt=rt("../internals/classof-raw"),dt=rt("../internals/regexp-exec"),ft=St.TypeError;kt.exports=function(ct,lt){var E=ct.exec;if(yt(E)){var z=pt(E,ct,lt);return z!==null&&vt(z),z}if(xt(ct)==="RegExp")return pt(dt,ct,lt);throw ft("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/to-string"),yt=rt("../internals/regexp-flags"),xt=rt("../internals/regexp-sticky-helpers"),dt=rt("../internals/shared"),ft=rt("../internals/object-create"),ct=rt("../internals/internal-state").get,lt=rt("../internals/regexp-unsupported-dot-all"),E=rt("../internals/regexp-unsupported-ncg"),z=dt("native-string-replace",String.prototype.replace),ot=RegExp.prototype.exec,it=ot,at=pt("".charAt),ut=pt("".indexOf),wt=pt("".replace),Et=pt("".slice),At=function(){var Lt=/a/,It=/b*/g;return St(ot,Lt,"a"),St(ot,It,"a"),Lt.lastIndex!==0||It.lastIndex!==0}(),_t=xt.BROKEN_CARET,Mt=/()??/.exec("")[1]!==void 0,jt=At||Mt||_t||lt||E;jt&&(it=function(It){var Ut=this,Xt=ct(Ut),Gt=vt(It),Yt=Xt.raw,Ht,ne,ae,ve,Kt,re,we;if(Yt)return Yt.lastIndex=Ut.lastIndex,Ht=St(it,Yt,Gt),Ut.lastIndex=Yt.lastIndex,Ht;var Me=Xt.groups,ke=_t&&Ut.sticky,me=St(yt,Ut),fe=Ut.source,pe=0,_e=Gt;if(ke&&(me=wt(me,"y",""),ut(me,"g")===-1&&(me+="g"),_e=Et(Gt,Ut.lastIndex),Ut.lastIndex>0&&(!Ut.multiline||Ut.multiline&&at(Gt,Ut.lastIndex-1)!==`
`)&&(fe="(?: "+fe+")",_e=" "+_e,pe++),ne=new RegExp("^(?:"+fe+")",me)),Mt&&(ne=new RegExp("^"+fe+"$(?!\\s)",me)),At&&(ae=Ut.lastIndex),ve=St(ot,ke?ne:Ut,_e),ke?ve?(ve.input=Et(ve.input,pe),ve[0]=Et(ve[0],pe),ve.index=Ut.lastIndex,Ut.lastIndex+=ve[0].length):Ut.lastIndex=0:At&&ve&&(Ut.lastIndex=Ut.global?ve.index+ve[0].length:ae),Mt&&ve&&ve.length>1&&St(z,ve[0],ne,function(){for(Kt=1;Kt<arguments.length-2;Kt++)arguments[Kt]===void 0&&(ve[Kt]=void 0)}),ve&&Me)for(ve.groups=re=ft(null),Kt=0;Kt<Me.length;Kt++)we=Me[Kt],re[we[0]]=ve[we[1]];return ve}),kt.exports=it},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(rt,kt,Ct){"use strict";var St=rt("../internals/an-object");kt.exports=function(){var pt=St(this),vt="";return pt.hasIndices&&(vt+="d"),pt.global&&(vt+="g"),pt.ignoreCase&&(vt+="i"),pt.multiline&&(vt+="m"),pt.dotAll&&(vt+="s"),pt.unicode&&(vt+="u"),pt.sticky&&(vt+="y"),vt}},{"../internals/an-object":101}],226:[function(rt,kt,Ct){var St=rt("../internals/function-call"),pt=rt("../internals/has-own-property"),vt=rt("../internals/object-is-prototype-of"),yt=rt("../internals/regexp-flags"),xt=RegExp.prototype;kt.exports=function(dt){var ft=dt.flags;return ft===void 0&&!("flags"in xt)&&!pt(dt,"flags")&&vt(xt,dt)?St(yt,dt):ft}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/global"),vt=pt.RegExp,yt=St(function(){var ft=vt("a","y");return ft.lastIndex=2,ft.exec("abcd")!=null}),xt=yt||St(function(){return!vt("a","y").sticky}),dt=yt||St(function(){var ft=vt("^r","gy");return ft.lastIndex=2,ft.exec("str")!=null});kt.exports={BROKEN_CARET:dt,MISSED_STICKY:xt,UNSUPPORTED_Y:yt}},{"../internals/fails":150,"../internals/global":163}],228:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/global"),vt=pt.RegExp;kt.exports=St(function(){var yt=vt(".","s");return!(yt.dotAll&&yt.exec(`
`)&&yt.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/global"),vt=pt.RegExp;kt.exports=St(function(){var yt=vt("(?<a>b)","g");return yt.exec("b").groups.a!=="b"||"b".replace(yt,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.TypeError;kt.exports=function(vt){if(vt==null)throw pt("Can't call method on "+vt);return vt}},{"../internals/global":163}],231:[function(rt,kt,Ct){kt.exports=Object.is||function(pt,vt){return pt===vt?pt!==0||1/pt===1/vt:pt!=pt&&vt!=vt}},{}],232:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=Object.defineProperty;kt.exports=function(vt,yt){try{pt(St,vt,{value:yt,configurable:!0,writable:!0})}catch(xt){St[vt]=yt}return yt}},{"../internals/global":163}],233:[function(rt,kt,Ct){"use strict";var St=rt("../internals/get-built-in"),pt=rt("../internals/object-define-property"),vt=rt("../internals/well-known-symbol"),yt=rt("../internals/descriptors"),xt=vt("species");kt.exports=function(dt){var ft=St(dt),ct=pt.f;yt&&ft&&!ft[xt]&&ct(ft,xt,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(rt,kt,Ct){var St=rt("../internals/object-define-property").f,pt=rt("../internals/has-own-property"),vt=rt("../internals/well-known-symbol"),yt=vt("toStringTag");kt.exports=function(xt,dt,ft){xt&&!ft&&(xt=xt.prototype),xt&&!pt(xt,yt)&&St(xt,yt,{configurable:!0,value:dt})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(rt,kt,Ct){var St=rt("../internals/shared"),pt=rt("../internals/uid"),vt=St("keys");kt.exports=function(yt){return vt[yt]||(vt[yt]=pt(yt))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/set-global"),vt="__core-js_shared__",yt=St[vt]||pt(vt,{});kt.exports=yt},{"../internals/global":163,"../internals/set-global":232}],237:[function(rt,kt,Ct){var St=rt("../internals/is-pure"),pt=rt("../internals/shared-store");(kt.exports=function(vt,yt){return pt[vt]||(pt[vt]=yt!==void 0?yt:{})})("versions",[]).push({version:"3.22.1",mode:St?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/a-constructor"),vt=rt("../internals/well-known-symbol"),yt=vt("species");kt.exports=function(xt,dt){var ft=St(xt).constructor,ct;return ft===void 0||(ct=St(ft)[yt])==null?dt:pt(ct)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-integer-or-infinity"),vt=rt("../internals/to-string"),yt=rt("../internals/require-object-coercible"),xt=St("".charAt),dt=St("".charCodeAt),ft=St("".slice),ct=function(lt){return function(E,z){var ot=vt(yt(E)),it=pt(z),at=ot.length,ut,wt;return it<0||it>=at?lt?"":void 0:(ut=dt(ot,it),ut<55296||ut>56319||it+1===at||(wt=dt(ot,it+1))<56320||wt>57343?lt?xt(ot,it):ut:lt?ft(ot,it,it+2):(ut-55296<<10)+(wt-56320)+65536)}};kt.exports={codeAt:ct(!1),charAt:ct(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(rt,kt,Ct){var St=rt("../internals/function-name").PROPER,pt=rt("../internals/fails"),vt=rt("../internals/whitespaces"),yt="\u200B\x85\u180E";kt.exports=function(xt){return pt(function(){return!!vt[xt]()||yt[xt]()!==yt||St&&vt[xt].name!==xt})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/require-object-coercible"),vt=rt("../internals/to-string"),yt=rt("../internals/whitespaces"),xt=St("".replace),dt="["+yt+"]",ft=RegExp("^"+dt+dt+"*"),ct=RegExp(dt+dt+"*$"),lt=function(E){return function(z){var ot=vt(pt(z));return E&1&&(ot=xt(ot,ft,"")),E&2&&(ot=xt(ot,ct,"")),ot}};kt.exports={start:lt(1),end:lt(2),trim:lt(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(rt,kt,Ct){var St=rt("../internals/function-call"),pt=rt("../internals/get-built-in"),vt=rt("../internals/well-known-symbol"),yt=rt("../internals/redefine");kt.exports=function(){var xt=pt("Symbol"),dt=xt&&xt.prototype,ft=dt&&dt.valueOf,ct=vt("toPrimitive");dt&&!dt[ct]&&yt(dt,ct,function(lt){return St(ft,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-apply"),vt=rt("../internals/function-bind-context"),yt=rt("../internals/is-callable"),xt=rt("../internals/has-own-property"),dt=rt("../internals/fails"),ft=rt("../internals/html"),ct=rt("../internals/array-slice"),lt=rt("../internals/document-create-element"),E=rt("../internals/validate-arguments-length"),z=rt("../internals/engine-is-ios"),ot=rt("../internals/engine-is-node"),it=St.setImmediate,at=St.clearImmediate,ut=St.process,wt=St.Dispatch,Et=St.Function,At=St.MessageChannel,_t=St.String,Mt=0,jt={},Lt="onreadystatechange",It,Ut,Xt,Gt;try{It=St.location}catch(ve){}var Yt=function(ve){if(xt(jt,ve)){var Kt=jt[ve];delete jt[ve],Kt()}},Ht=function(ve){return function(){Yt(ve)}},ne=function(ve){Yt(ve.data)},ae=function(ve){St.postMessage(_t(ve),It.protocol+"//"+It.host)};(!it||!at)&&(it=function(Kt){E(arguments.length,1);var re=yt(Kt)?Kt:Et(Kt),we=ct(arguments,1);return jt[++Mt]=function(){pt(re,void 0,we)},Ut(Mt),Mt},at=function(Kt){delete jt[Kt]},ot?Ut=function(ve){ut.nextTick(Ht(ve))}:wt&&wt.now?Ut=function(ve){wt.now(Ht(ve))}:At&&!z?(Xt=new At,Gt=Xt.port2,Xt.port1.onmessage=ne,Ut=vt(Gt.postMessage,Gt)):St.addEventListener&&yt(St.postMessage)&&!St.importScripts&&It&&It.protocol!=="file:"&&!dt(ae)?(Ut=ae,St.addEventListener("message",ne,!1)):Lt in lt("script")?Ut=function(ve){ft.appendChild(lt("script"))[Lt]=function(){ft.removeChild(this),Yt(ve)}}:Ut=function(ve){setTimeout(Ht(ve),0)}),kt.exports={set:it,clear:at}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this");kt.exports=St(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(rt,kt,Ct){var St=rt("../internals/to-integer-or-infinity"),pt=Math.max,vt=Math.min;kt.exports=function(yt,xt){var dt=St(yt);return dt<0?pt(dt+xt,0):vt(dt,xt)}},{"../internals/to-integer-or-infinity":248}],246:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-integer-or-infinity"),vt=rt("../internals/to-length"),yt=St.RangeError;kt.exports=function(xt){if(xt===void 0)return 0;var dt=pt(xt),ft=vt(dt);if(dt!==ft)throw yt("Wrong length or index");return ft}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(rt,kt,Ct){var St=rt("../internals/indexed-object"),pt=rt("../internals/require-object-coercible");kt.exports=function(vt){return St(pt(vt))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(rt,kt,Ct){var St=Math.ceil,pt=Math.floor;kt.exports=function(vt){var yt=+vt;return yt!==yt||yt===0?0:(yt>0?pt:St)(yt)}},{}],249:[function(rt,kt,Ct){var St=rt("../internals/to-integer-or-infinity"),pt=Math.min;kt.exports=function(vt){return vt>0?pt(St(vt),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/require-object-coercible"),vt=St.Object;kt.exports=function(yt){return vt(pt(yt))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-positive-integer"),vt=St.RangeError;kt.exports=function(yt,xt){var dt=pt(yt);if(dt%xt)throw vt("Wrong offset");return dt}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-integer-or-infinity"),vt=St.RangeError;kt.exports=function(yt){var xt=pt(yt);if(xt<0)throw vt("The argument can't be less than 0");return xt}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/is-object"),yt=rt("../internals/is-symbol"),xt=rt("../internals/get-method"),dt=rt("../internals/ordinary-to-primitive"),ft=rt("../internals/well-known-symbol"),ct=St.TypeError,lt=ft("toPrimitive");kt.exports=function(E,z){if(!vt(E)||yt(E))return E;var ot=xt(E,lt),it;if(ot){if(z===void 0&&(z="default"),it=pt(ot,E,z),!vt(it)||yt(it))return it;throw ct("Can't convert object to primitive value")}return z===void 0&&(z="number"),dt(E,z)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(rt,kt,Ct){var St=rt("../internals/to-primitive"),pt=rt("../internals/is-symbol");kt.exports=function(vt){var yt=St(vt,"string");return pt(yt)?yt:yt+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=St("toStringTag"),vt={};vt[pt]="z",kt.exports=String(vt)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/classof"),vt=St.String;kt.exports=function(yt){if(pt(yt)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vt(yt)}},{"../internals/classof":124,"../internals/global":163}],257:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.String;kt.exports=function(vt){try{return pt(vt)}catch(yt){return"Object"}}},{"../internals/global":163}],258:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/function-call"),yt=rt("../internals/descriptors"),xt=rt("../internals/typed-array-constructors-require-wrappers"),dt=rt("../internals/array-buffer-view-core"),ft=rt("../internals/array-buffer"),ct=rt("../internals/an-instance"),lt=rt("../internals/create-property-descriptor"),E=rt("../internals/create-non-enumerable-property"),z=rt("../internals/is-integral-number"),ot=rt("../internals/to-length"),it=rt("../internals/to-index"),at=rt("../internals/to-offset"),ut=rt("../internals/to-property-key"),wt=rt("../internals/has-own-property"),Et=rt("../internals/classof"),At=rt("../internals/is-object"),_t=rt("../internals/is-symbol"),Mt=rt("../internals/object-create"),jt=rt("../internals/object-is-prototype-of"),Lt=rt("../internals/object-set-prototype-of"),It=rt("../internals/object-get-own-property-names").f,Ut=rt("../internals/typed-array-from"),Xt=rt("../internals/array-iteration").forEach,Gt=rt("../internals/set-species"),Yt=rt("../internals/object-define-property"),Ht=rt("../internals/object-get-own-property-descriptor"),ne=rt("../internals/internal-state"),ae=rt("../internals/inherit-if-required"),ve=ne.get,Kt=ne.set,re=Yt.f,we=Ht.f,Me=Math.round,ke=pt.RangeError,me=ft.ArrayBuffer,fe=me.prototype,pe=ft.DataView,_e=dt.NATIVE_ARRAY_BUFFER_VIEWS,je=dt.TYPED_ARRAY_CONSTRUCTOR,He=dt.TYPED_ARRAY_TAG,Se=dt.TypedArray,xe=dt.TypedArrayPrototype,le=dt.aTypedArrayConstructor,Ne=dt.isTypedArray,se="BYTES_PER_ELEMENT",Ae="Wrong length",Xe=function(ye,Qt){le(ye);for(var Wt=0,Bt=Qt.length,te=new ye(Bt);Bt>Wt;)te[Wt]=Qt[Wt++];return te},Be=function(ye,Qt){re(ye,Qt,{get:function(){return ve(this)[Qt]}})},Te=function(ye){var Qt;return jt(fe,ye)||(Qt=Et(ye))=="ArrayBuffer"||Qt=="SharedArrayBuffer"},ue=function(ye,Qt){return Ne(ye)&&!_t(Qt)&&Qt in ye&&z(+Qt)&&Qt>=0},$t=function(Qt,Wt){return Wt=ut(Wt),ue(Qt,Wt)?lt(2,Qt[Wt]):we(Qt,Wt)},he=function(Qt,Wt,Bt){return Wt=ut(Wt),ue(Qt,Wt)&&At(Bt)&&wt(Bt,"value")&&!wt(Bt,"get")&&!wt(Bt,"set")&&!Bt.configurable&&(!wt(Bt,"writable")||Bt.writable)&&(!wt(Bt,"enumerable")||Bt.enumerable)?(Qt[Wt]=Bt.value,Qt):re(Qt,Wt,Bt)};yt?(_e||(Ht.f=$t,Yt.f=he,Be(xe,"buffer"),Be(xe,"byteOffset"),Be(xe,"byteLength"),Be(xe,"length")),St({target:"Object",stat:!0,forced:!_e},{getOwnPropertyDescriptor:$t,defineProperty:he}),kt.exports=function(ye,Qt,Wt){var Bt=ye.match(/\d+$/)[0]/8,te=ye+(Wt?"Clamped":"")+"Array",ge="get"+ye,Jt="set"+ye,Ie=pt[te],Ue=Ie,Je=Ue&&Ue.prototype,Ze={},nn=function(En,Dn){var ii=ve(En);return ii.view[ge](Dn*Bt+ii.byteOffset,!0)},fn=function(En,Dn,ii){var mi=ve(En);Wt&&(ii=(ii=Me(ii))<0?0:ii>255?255:ii&255),mi.view[Jt](Dn*Bt+mi.byteOffset,ii,!0)},An=function(En,Dn){re(En,Dn,{get:function(){return nn(this,Dn)},set:function(ii){return fn(this,Dn,ii)},enumerable:!0})};_e?xt&&(Ue=Qt(function(En,Dn,ii,mi){return ct(En,Je),ae(function(){return At(Dn)?Te(Dn)?mi!==void 0?new Ie(Dn,at(ii,Bt),mi):ii!==void 0?new Ie(Dn,at(ii,Bt)):new Ie(Dn):Ne(Dn)?Xe(Ue,Dn):vt(Ut,Ue,Dn):new Ie(it(Dn))}(),En,Ue)}),Lt&&Lt(Ue,Se),Xt(It(Ie),function(En){En in Ue||E(Ue,En,Ie[En])}),Ue.prototype=Je):(Ue=Qt(function(En,Dn,ii,mi){ct(En,Je);var Ti=0,Oi=0,ki,pi,Bi;if(!At(Dn))Bi=it(Dn),pi=Bi*Bt,ki=new me(pi);else if(Te(Dn)){ki=Dn,Oi=at(ii,Bt);var Or=Dn.byteLength;if(mi===void 0){if(Or%Bt||(pi=Or-Oi,pi<0))throw ke(Ae)}else if(pi=ot(mi)*Bt,pi+Oi>Or)throw ke(Ae);Bi=pi/Bt}else return Ne(Dn)?Xe(Ue,Dn):vt(Ut,Ue,Dn);for(Kt(En,{buffer:ki,byteOffset:Oi,byteLength:pi,length:Bi,view:new pe(ki)});Ti<Bi;)An(En,Ti++)}),Lt&&Lt(Ue,Se),Je=Ue.prototype=Mt(xe)),Je.constructor!==Ue&&E(Je,"constructor",Ue),E(Je,je,Ue),He&&E(Je,He,te),Ze[te]=Ue,St({global:!0,forced:Ue!=Ie,sham:!_e},Ze),se in Ue||E(Ue,se,Bt),se in Je||E(Je,se,Bt),Gt(te)}):kt.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/fails"),vt=rt("../internals/check-correctness-of-iteration"),yt=rt("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,xt=St.ArrayBuffer,dt=St.Int8Array;kt.exports=!yt||!pt(function(){dt(1)})||!pt(function(){new dt(-1)})||!vt(function(ft){new dt,new dt(null),new dt(1.5),new dt(ft)},!0)||pt(function(){return new dt(new xt(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(rt,kt,Ct){var St=rt("../internals/array-from-constructor-and-list"),pt=rt("../internals/typed-array-species-constructor");kt.exports=function(vt,yt){return St(pt(vt),yt)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(rt,kt,Ct){var St=rt("../internals/function-bind-context"),pt=rt("../internals/function-call"),vt=rt("../internals/a-constructor"),yt=rt("../internals/to-object"),xt=rt("../internals/length-of-array-like"),dt=rt("../internals/get-iterator"),ft=rt("../internals/get-iterator-method"),ct=rt("../internals/is-array-iterator-method"),lt=rt("../internals/array-buffer-view-core").aTypedArrayConstructor;kt.exports=function(z){var ot=vt(this),it=yt(z),at=arguments.length,ut=at>1?arguments[1]:void 0,wt=ut!==void 0,Et=ft(it),At,_t,Mt,jt,Lt,It;if(Et&&!ct(Et))for(Lt=dt(it,Et),It=Lt.next,it=[];!(jt=pt(It,Lt)).done;)it.push(jt.value);for(wt&&at>2&&(ut=St(ut,arguments[2])),_t=xt(it),Mt=new(lt(ot))(_t),At=0;_t>At;At++)Mt[At]=wt?ut(it[At],At):it[At];return Mt}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(rt,kt,Ct){var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/species-constructor"),vt=St.TYPED_ARRAY_CONSTRUCTOR,yt=St.aTypedArrayConstructor;kt.exports=function(xt){return yt(pt(xt,xt[vt]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=0,vt=Math.random(),yt=St(1 .toString);kt.exports=function(xt){return"Symbol("+(xt===void 0?"":xt)+")_"+yt(++pt+vt,36)}},{"../internals/function-uncurry-this":157}],264:[function(rt,kt,Ct){var St=rt("../internals/native-symbol");kt.exports=St&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/fails");kt.exports=St&&pt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.TypeError;kt.exports=function(vt,yt){if(vt<yt)throw pt("Not enough arguments");return vt}},{"../internals/global":163}],267:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol");Ct.f=St},{"../internals/well-known-symbol":268}],268:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/shared"),vt=rt("../internals/has-own-property"),yt=rt("../internals/uid"),xt=rt("../internals/native-symbol"),dt=rt("../internals/use-symbol-as-uid"),ft=pt("wks"),ct=St.Symbol,lt=ct&&ct.for,E=dt?ct:ct&&ct.withoutSetter||yt;kt.exports=function(z){if(!vt(ft,z)||!(xt||typeof ft[z]=="string")){var ot="Symbol."+z;xt&&vt(ct,z)?ft[z]=ct[z]:dt&&lt?ft[z]=lt(ot):ft[z]=E(ot)}return ft[z]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(rt,kt,Ct){kt.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/array-buffer"),yt=rt("../internals/set-species"),xt="ArrayBuffer",dt=vt[xt],ft=pt[xt];St({global:!0,forced:ft!==dt},{ArrayBuffer:dt}),yt(xt)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/fails"),yt=rt("../internals/array-buffer"),xt=rt("../internals/an-object"),dt=rt("../internals/to-absolute-index"),ft=rt("../internals/to-length"),ct=rt("../internals/species-constructor"),lt=yt.ArrayBuffer,E=yt.DataView,z=E.prototype,ot=pt(lt.prototype.slice),it=pt(z.getUint8),at=pt(z.setUint8),ut=vt(function(){return!new lt(2).slice(1,void 0).byteLength});St({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ut},{slice:function(Et,At){if(ot&&At===void 0)return ot(xt(this),Et);for(var _t=xt(this).byteLength,Mt=dt(Et,_t),jt=dt(At===void 0?_t:At,_t),Lt=new(ct(this,lt))(ft(jt-Mt)),It=new E(this),Ut=new E(Lt),Xt=0;Mt<jt;)at(Ut,Xt++,it(It,Mt++));return Lt}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/fails"),yt=rt("../internals/is-array"),xt=rt("../internals/is-object"),dt=rt("../internals/to-object"),ft=rt("../internals/length-of-array-like"),ct=rt("../internals/create-property"),lt=rt("../internals/array-species-create"),E=rt("../internals/array-method-has-species-support"),z=rt("../internals/well-known-symbol"),ot=rt("../internals/engine-v8-version"),it=z("isConcatSpreadable"),at=9007199254740991,ut="Maximum allowed index exceeded",wt=pt.TypeError,Et=ot>=51||!vt(function(){var jt=[];return jt[it]=!1,jt.concat()[0]!==jt}),At=E("concat"),_t=function(jt){if(!xt(jt))return!1;var Lt=jt[it];return Lt!==void 0?!!Lt:yt(jt)},Mt=!Et||!At;St({target:"Array",proto:!0,forced:Mt},{concat:function(Lt){var It=dt(this),Ut=lt(It,0),Xt=0,Gt,Yt,Ht,ne,ae;for(Gt=-1,Ht=arguments.length;Gt<Ht;Gt++)if(ae=Gt===-1?It:arguments[Gt],_t(ae)){if(ne=ft(ae),Xt+ne>at)throw wt(ut);for(Yt=0;Yt<ne;Yt++,Xt++)Yt in ae&&ct(Ut,Xt,ae[Yt])}else{if(Xt>=at)throw wt(ut);ct(Ut,Xt++,ae)}return Ut.length=Xt,Ut}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/array-fill"),vt=rt("../internals/add-to-unscopables");St({target:"Array",proto:!0},{fill:pt}),vt("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").filter,vt=rt("../internals/array-method-has-species-support"),yt=vt("filter");St({target:"Array",proto:!0,forced:!yt},{filter:function(dt){return pt(this,dt,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").find,vt=rt("../internals/add-to-unscopables"),yt="find",xt=!0;yt in[]&&Array(1)[yt](function(){xt=!1}),St({target:"Array",proto:!0,forced:xt},{find:function(ft){return pt(this,ft,arguments.length>1?arguments[1]:void 0)}}),vt(yt)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/array-from"),vt=rt("../internals/check-correctness-of-iteration"),yt=!vt(function(xt){Array.from(xt)});St({target:"Array",stat:!0,forced:yt},{from:pt})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-includes").includes,vt=rt("../internals/add-to-unscopables");St({target:"Array",proto:!0},{includes:function(xt){return pt(this,xt,arguments.length>1?arguments[1]:void 0)}}),vt("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-indexed-object"),pt=rt("../internals/add-to-unscopables"),vt=rt("../internals/iterators"),yt=rt("../internals/internal-state"),xt=rt("../internals/object-define-property").f,dt=rt("../internals/define-iterator"),ft=rt("../internals/is-pure"),ct=rt("../internals/descriptors"),lt="Array Iterator",E=yt.set,z=yt.getterFor(lt);kt.exports=dt(Array,"Array",function(it,at){E(this,{type:lt,target:St(it),index:0,kind:at})},function(){var it=z(this),at=it.target,ut=it.kind,wt=it.index++;return!at||wt>=at.length?(it.target=void 0,{value:void 0,done:!0}):ut=="keys"?{value:wt,done:!1}:ut=="values"?{value:at[wt],done:!1}:{value:[wt,at[wt]],done:!1}},"values");var ot=vt.Arguments=vt.Array;if(pt("keys"),pt("values"),pt("entries"),!ft&&ct&&ot.name!=="values")try{xt(ot,"name",{value:"values"})}catch(it){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/indexed-object"),yt=rt("../internals/to-indexed-object"),xt=rt("../internals/array-method-is-strict"),dt=pt([].join),ft=vt!=Object,ct=xt("join",",");St({target:"Array",proto:!0,forced:ft||!ct},{join:function(E){return dt(yt(this),E===void 0?",":E)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").map,vt=rt("../internals/array-method-has-species-support"),yt=vt("map");St({target:"Array",proto:!0,forced:!yt},{map:function(dt){return pt(this,dt,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/is-array"),yt=rt("../internals/is-constructor"),xt=rt("../internals/is-object"),dt=rt("../internals/to-absolute-index"),ft=rt("../internals/length-of-array-like"),ct=rt("../internals/to-indexed-object"),lt=rt("../internals/create-property"),E=rt("../internals/well-known-symbol"),z=rt("../internals/array-method-has-species-support"),ot=rt("../internals/array-slice"),it=z("slice"),at=E("species"),ut=pt.Array,wt=Math.max;St({target:"Array",proto:!0,forced:!it},{slice:function(At,_t){var Mt=ct(this),jt=ft(Mt),Lt=dt(At,jt),It=dt(_t===void 0?jt:_t,jt),Ut,Xt,Gt;if(vt(Mt)&&(Ut=Mt.constructor,yt(Ut)&&(Ut===ut||vt(Ut.prototype))?Ut=void 0:xt(Ut)&&(Ut=Ut[at],Ut===null&&(Ut=void 0)),Ut===ut||Ut===void 0))return ot(Mt,Lt,It);for(Xt=new(Ut===void 0?ut:Ut)(wt(It-Lt,0)),Gt=0;Lt<It;Lt++,Gt++)Lt in Mt&&lt(Xt,Gt,Mt[Lt]);return Xt.length=Gt,Xt}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/a-callable"),yt=rt("../internals/to-object"),xt=rt("../internals/length-of-array-like"),dt=rt("../internals/to-string"),ft=rt("../internals/fails"),ct=rt("../internals/array-sort"),lt=rt("../internals/array-method-is-strict"),E=rt("../internals/engine-ff-version"),z=rt("../internals/engine-is-ie-or-edge"),ot=rt("../internals/engine-v8-version"),it=rt("../internals/engine-webkit-version"),at=[],ut=pt(at.sort),wt=pt(at.push),Et=ft(function(){at.sort(void 0)}),At=ft(function(){at.sort(null)}),_t=lt("sort"),Mt=!ft(function(){if(ot)return ot<70;if(!(E&&E>3)){if(z)return!0;if(it)return it<603;var It="",Ut,Xt,Gt,Yt;for(Ut=65;Ut<76;Ut++){switch(Xt=String.fromCharCode(Ut),Ut){case 66:case 69:case 70:case 72:Gt=3;break;case 68:case 71:Gt=4;break;default:Gt=2}for(Yt=0;Yt<47;Yt++)at.push({k:Xt+Yt,v:Gt})}for(at.sort(function(Ht,ne){return ne.v-Ht.v}),Yt=0;Yt<at.length;Yt++)Xt=at[Yt].k.charAt(0),It.charAt(It.length-1)!==Xt&&(It+=Xt);return It!=="DGBEFHACIJK"}}),jt=Et||!At||!_t||!Mt,Lt=function(It){return function(Ut,Xt){return Xt===void 0?-1:Ut===void 0?1:It!==void 0?+It(Ut,Xt)||0:dt(Ut)>dt(Xt)?1:-1}};St({target:"Array",proto:!0,forced:jt},{sort:function(Ut){Ut!==void 0&&vt(Ut);var Xt=yt(this);if(Mt)return Ut===void 0?ut(Xt):ut(Xt,Ut);var Gt=[],Yt=xt(Xt),Ht,ne;for(ne=0;ne<Yt;ne++)ne in Xt&&wt(Gt,Xt[ne]);for(ct(Gt,Lt(Ut)),Ht=Gt.length,ne=0;ne<Ht;)Xt[ne]=Gt[ne++];for(;ne<Yt;)delete Xt[ne++];return Xt}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/to-absolute-index"),yt=rt("../internals/to-integer-or-infinity"),xt=rt("../internals/length-of-array-like"),dt=rt("../internals/to-object"),ft=rt("../internals/array-species-create"),ct=rt("../internals/create-property"),lt=rt("../internals/array-method-has-species-support"),E=lt("splice"),z=pt.TypeError,ot=Math.max,it=Math.min,at=9007199254740991,ut="Maximum allowed length exceeded";St({target:"Array",proto:!0,forced:!E},{splice:function(Et,At){var _t=dt(this),Mt=xt(_t),jt=vt(Et,Mt),Lt=arguments.length,It,Ut,Xt,Gt,Yt,Ht;if(Lt===0?It=Ut=0:Lt===1?(It=0,Ut=Mt-jt):(It=Lt-2,Ut=it(ot(yt(At),0),Mt-jt)),Mt+It-Ut>at)throw z(ut);for(Xt=ft(_t,Ut),Gt=0;Gt<Ut;Gt++)Yt=jt+Gt,Yt in _t&&ct(Xt,Gt,_t[Yt]);if(Xt.length=Ut,It<Ut){for(Gt=jt;Gt<Mt-Ut;Gt++)Yt=Gt+Ut,Ht=Gt+It,Yt in _t?_t[Ht]=_t[Yt]:delete _t[Ht];for(Gt=Mt;Gt>Mt-Ut+It;Gt--)delete _t[Gt-1]}else if(It>Ut)for(Gt=Mt-Ut;Gt>jt;Gt--)Yt=Gt+Ut-1,Ht=Gt+It-1,Yt in _t?_t[Ht]=_t[Yt]:delete _t[Ht];for(Gt=0;Gt<It;Gt++)_t[Gt+jt]=arguments[Gt+2];return _t.length=Mt-Ut+It,Xt}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/function-name").EXISTS,vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/object-define-property").f,xt=Function.prototype,dt=vt(xt.toString),ft=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ct=vt(ft.exec),lt="name";St&&!pt&&yt(xt,lt,{configurable:!0,get:function(){try{return ct(ft,dt(this))[1]}catch(E){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/get-built-in"),vt=rt("../internals/function-apply"),yt=rt("../internals/function-call"),xt=rt("../internals/function-uncurry-this"),dt=rt("../internals/fails"),ft=rt("../internals/is-array"),ct=rt("../internals/is-callable"),lt=rt("../internals/is-object"),E=rt("../internals/is-symbol"),z=rt("../internals/array-slice"),ot=rt("../internals/native-symbol"),it=pt("JSON","stringify"),at=xt(/./.exec),ut=xt("".charAt),wt=xt("".charCodeAt),Et=xt("".replace),At=xt(1 .toString),_t=/[\uD800-\uDFFF]/g,Mt=/^[\uD800-\uDBFF]$/,jt=/^[\uDC00-\uDFFF]$/,Lt=!ot||dt(function(){var Gt=pt("Symbol")();return it([Gt])!="[null]"||it({a:Gt})!="{}"||it(Object(Gt))!="{}"}),It=dt(function(){return it("\uDF06\uD834")!=='"\\udf06\\ud834"'||it("\uDEAD")!=='"\\udead"'}),Ut=function(Gt,Yt){var Ht=z(arguments),ne=Yt;if(!(!lt(Yt)&&Gt===void 0||E(Gt)))return ft(Yt)||(Yt=function(ae,ve){if(ct(ne)&&(ve=yt(ne,this,ae,ve)),!E(ve))return ve}),Ht[1]=Yt,vt(it,null,Ht)},Xt=function(Gt,Yt,Ht){var ne=ut(Ht,Yt-1),ae=ut(Ht,Yt+1);return at(Mt,Gt)&&!at(jt,ae)||at(jt,Gt)&&!at(Mt,ne)?"\\u"+At(wt(Gt,0),16):Gt};it&&St({target:"JSON",stat:!0,forced:Lt||It},{stringify:function(Yt,Ht,ne){var ae=z(arguments),ve=vt(Lt?Ut:it,null,ae);return It&&typeof ve=="string"?Et(ve,_t,Xt):ve}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(rt,kt,Ct){"use strict";var St=rt("../internals/descriptors"),pt=rt("../internals/global"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/is-forced"),xt=rt("../internals/redefine"),dt=rt("../internals/has-own-property"),ft=rt("../internals/inherit-if-required"),ct=rt("../internals/object-is-prototype-of"),lt=rt("../internals/is-symbol"),E=rt("../internals/to-primitive"),z=rt("../internals/fails"),ot=rt("../internals/object-get-own-property-names").f,it=rt("../internals/object-get-own-property-descriptor").f,at=rt("../internals/object-define-property").f,ut=rt("../internals/this-number-value"),wt=rt("../internals/string-trim").trim,Et="Number",At=pt[Et],_t=At.prototype,Mt=pt.TypeError,jt=vt("".slice),Lt=vt("".charCodeAt),It=function(ne){var ae=E(ne,"number");return typeof ae=="bigint"?ae:Ut(ae)},Ut=function(ne){var ae=E(ne,"number"),ve,Kt,re,we,Me,ke,me,fe;if(lt(ae))throw Mt("Cannot convert a Symbol value to a number");if(typeof ae=="string"&&ae.length>2){if(ae=wt(ae),ve=Lt(ae,0),ve===43||ve===45){if(Kt=Lt(ae,2),Kt===88||Kt===120)return NaN}else if(ve===48){switch(Lt(ae,1)){case 66:case 98:re=2,we=49;break;case 79:case 111:re=8,we=55;break;default:return+ae}for(Me=jt(ae,2),ke=Me.length,me=0;me<ke;me++)if(fe=Lt(Me,me),fe<48||fe>we)return NaN;return parseInt(Me,re)}}return+ae};if(yt(Et,!At(" 0o1")||!At("0b1")||At("+0x1"))){for(var Xt=function(ae){var ve=arguments.length<1?0:At(It(ae)),Kt=this;return ct(_t,Kt)&&z(function(){ut(Kt)})?ft(Object(ve),Kt,Xt):ve},Gt=St?ot(At):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Yt=0,Ht;Gt.length>Yt;Yt++)dt(At,Ht=Gt[Yt])&&!dt(Xt,Ht)&&at(Xt,Ht,it(At,Ht));Xt.prototype=_t,_t.constructor=Xt,xt(pt,Et,Xt)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/object-assign");St({target:"Object",stat:!0,forced:Object.assign!==pt},{assign:pt})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/object-to-array").entries;St({target:"Object",stat:!0},{entries:function(yt){return pt(yt)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/native-symbol"),vt=rt("../internals/fails"),yt=rt("../internals/object-get-own-property-symbols"),xt=rt("../internals/to-object"),dt=!pt||vt(function(){yt.f(1)});St({target:"Object",stat:!0,forced:dt},{getOwnPropertySymbols:function(ct){var lt=yt.f;return lt?lt(xt(ct)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/to-object"),vt=rt("../internals/object-keys"),yt=rt("../internals/fails"),xt=yt(function(){vt(1)});St({target:"Object",stat:!0,forced:xt},{keys:function(ft){return vt(pt(ft))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(rt,kt,Ct){var St=rt("../internals/to-string-tag-support"),pt=rt("../internals/redefine"),vt=rt("../internals/object-to-string");St||pt(Object.prototype,"toString",vt,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/new-promise-capability"),xt=rt("../internals/perform"),dt=rt("../internals/iterate"),ft=rt("../internals/promise-statics-incorrect-iteration");St({target:"Promise",stat:!0,forced:ft},{all:function(lt){var E=this,z=yt.f(E),ot=z.resolve,it=z.reject,at=xt(function(){var ut=vt(E.resolve),wt=[],Et=0,At=1;dt(lt,function(_t){var Mt=Et++,jt=!1;At++,pt(ut,E,_t).then(function(Lt){jt||(jt=!0,wt[Mt]=Lt,--At||ot(wt))},it)}),--At||ot(wt)});return at.error&&it(at.value),z.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/is-pure"),vt=rt("../internals/promise-constructor-detection").CONSTRUCTOR,yt=rt("../internals/promise-native-constructor"),xt=rt("../internals/get-built-in"),dt=rt("../internals/is-callable"),ft=rt("../internals/redefine"),ct=yt&&yt.prototype;if(St({target:"Promise",proto:!0,forced:vt,real:!0},{catch:function(E){return this.then(void 0,E)}}),!pt&&dt(yt)){var lt=xt("Promise").prototype.catch;ct.catch!==lt&&ft(ct,"catch",lt,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/is-pure"),vt=rt("../internals/engine-is-node"),yt=rt("../internals/global"),xt=rt("../internals/function-call"),dt=rt("../internals/redefine"),ft=rt("../internals/redefine-all"),ct=rt("../internals/object-set-prototype-of"),lt=rt("../internals/set-to-string-tag"),E=rt("../internals/set-species"),z=rt("../internals/a-callable"),ot=rt("../internals/is-callable"),it=rt("../internals/is-object"),at=rt("../internals/an-instance"),ut=rt("../internals/species-constructor"),wt=rt("../internals/task").set,Et=rt("../internals/microtask"),At=rt("../internals/host-report-errors"),_t=rt("../internals/perform"),Mt=rt("../internals/queue"),jt=rt("../internals/internal-state"),Lt=rt("../internals/promise-native-constructor"),It=rt("../internals/promise-constructor-detection"),Ut=rt("../internals/new-promise-capability"),Xt="Promise",Gt=It.CONSTRUCTOR,Yt=It.REJECTION_EVENT,Ht=It.SUBCLASSING,ne=jt.getterFor(Xt),ae=jt.set,ve=Lt&&Lt.prototype,Kt=Lt,re=ve,we=yt.TypeError,Me=yt.document,ke=yt.process,me=Ut.f,fe=me,pe=!!(Me&&Me.createEvent&&yt.dispatchEvent),_e="unhandledrejection",je="rejectionhandled",He=0,Se=1,xe=2,le=1,Ne=2,se,Ae,Xe,Be,Te=function(Jt){var Ie;return it(Jt)&&ot(Ie=Jt.then)?Ie:!1},ue=function(Jt,Ie){var Ue=Ie.value,Je=Ie.state==Se,Ze=Je?Jt.ok:Jt.fail,nn=Jt.resolve,fn=Jt.reject,An=Jt.domain,En,Dn,ii;try{Ze?(Je||(Ie.rejection===Ne&&Wt(Ie),Ie.rejection=le),Ze===!0?En=Ue:(An&&An.enter(),En=Ze(Ue),An&&(An.exit(),ii=!0)),En===Jt.promise?fn(we("Promise-chain cycle")):(Dn=Te(En))?xt(Dn,En,nn,fn):nn(En)):fn(Ue)}catch(mi){An&&!ii&&An.exit(),fn(mi)}},$t=function(Jt,Ie){Jt.notified||(Jt.notified=!0,Et(function(){for(var Ue=Jt.reactions,Je;Je=Ue.get();)ue(Je,Jt);Jt.notified=!1,Ie&&!Jt.rejection&&ye(Jt)}))},he=function(Jt,Ie,Ue){var Je,Ze;pe?(Je=Me.createEvent("Event"),Je.promise=Ie,Je.reason=Ue,Je.initEvent(Jt,!1,!0),yt.dispatchEvent(Je)):Je={promise:Ie,reason:Ue},!Yt&&(Ze=yt["on"+Jt])?Ze(Je):Jt===_e&&At("Unhandled promise rejection",Ue)},ye=function(Jt){xt(wt,yt,function(){var Ie=Jt.facade,Ue=Jt.value,Je=Qt(Jt),Ze;if(Je&&(Ze=_t(function(){vt?ke.emit("unhandledRejection",Ue,Ie):he(_e,Ie,Ue)}),Jt.rejection=vt||Qt(Jt)?Ne:le,Ze.error))throw Ze.value})},Qt=function(Jt){return Jt.rejection!==le&&!Jt.parent},Wt=function(Jt){xt(wt,yt,function(){var Ie=Jt.facade;vt?ke.emit("rejectionHandled",Ie):he(je,Ie,Jt.value)})},Bt=function(Jt,Ie,Ue){return function(Je){Jt(Ie,Je,Ue)}},te=function(Jt,Ie,Ue){Jt.done||(Jt.done=!0,Ue&&(Jt=Ue),Jt.value=Ie,Jt.state=xe,$t(Jt,!0))},ge=function(Jt,Ie,Ue){if(!Jt.done){Jt.done=!0,Ue&&(Jt=Ue);try{if(Jt.facade===Ie)throw we("Promise can't be resolved itself");var Je=Te(Ie);Je?Et(function(){var Ze={done:!1};try{xt(Je,Ie,Bt(ge,Ze,Jt),Bt(te,Ze,Jt))}catch(nn){te(Ze,nn,Jt)}}):(Jt.value=Ie,Jt.state=Se,$t(Jt,!1))}catch(Ze){te({done:!1},Ze,Jt)}}};if(Gt&&(Kt=function(Ie){at(this,re),z(Ie),xt(se,this);var Ue=ne(this);try{Ie(Bt(ge,Ue),Bt(te,Ue))}catch(Je){te(Ue,Je)}},re=Kt.prototype,se=function(Ie){ae(this,{type:Xt,done:!1,notified:!1,parent:!1,reactions:new Mt,rejection:!1,state:He,value:void 0})},se.prototype=ft(re,{then:function(Ie,Ue){var Je=ne(this),Ze=me(ut(this,Kt));return Je.parent=!0,Ze.ok=ot(Ie)?Ie:!0,Ze.fail=ot(Ue)&&Ue,Ze.domain=vt?ke.domain:void 0,Je.state==He?Je.reactions.add(Ze):Et(function(){ue(Ze,Je)}),Ze.promise}}),Ae=function(){var Jt=new se,Ie=ne(Jt);this.promise=Jt,this.resolve=Bt(ge,Ie),this.reject=Bt(te,Ie)},Ut.f=me=function(Jt){return Jt===Kt||Jt===Xe?new Ae(Jt):fe(Jt)},!pt&&ot(Lt)&&ve!==Object.prototype)){Be=ve.then,Ht||dt(ve,"then",function(Ie,Ue){var Je=this;return new Kt(function(Ze,nn){xt(Be,Je,Ze,nn)}).then(Ie,Ue)},{unsafe:!0});try{delete ve.constructor}catch(Jt){}ct&&ct(ve,re)}St({global:!0,wrap:!0,forced:Gt},{Promise:Kt}),lt(Kt,Xt,!1,!0),E(Xt)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(rt,kt,Ct){rt("../modules/es.promise.constructor"),rt("../modules/es.promise.all"),rt("../modules/es.promise.catch"),rt("../modules/es.promise.race"),rt("../modules/es.promise.reject"),rt("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/new-promise-capability"),xt=rt("../internals/perform"),dt=rt("../internals/iterate"),ft=rt("../internals/promise-statics-incorrect-iteration");St({target:"Promise",stat:!0,forced:ft},{race:function(lt){var E=this,z=yt.f(E),ot=z.reject,it=xt(function(){var at=vt(E.resolve);dt(lt,function(ut){pt(at,E,ut).then(z.resolve,ot)})});return it.error&&ot(it.value),z.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/new-promise-capability"),yt=rt("../internals/promise-constructor-detection").CONSTRUCTOR;St({target:"Promise",stat:!0,forced:yt},{reject:function(dt){var ft=vt.f(this);return pt(ft.reject,void 0,dt),ft.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/get-built-in"),vt=rt("../internals/is-pure"),yt=rt("../internals/promise-native-constructor"),xt=rt("../internals/promise-constructor-detection").CONSTRUCTOR,dt=rt("../internals/promise-resolve"),ft=pt("Promise"),ct=vt&&!xt;St({target:"Promise",stat:!0,forced:vt||xt},{resolve:function(E){return dt(ct&&this===ft?yt:this,E)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/global"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/is-forced"),xt=rt("../internals/inherit-if-required"),dt=rt("../internals/create-non-enumerable-property"),ft=rt("../internals/object-get-own-property-names").f,ct=rt("../internals/object-is-prototype-of"),lt=rt("../internals/is-regexp"),E=rt("../internals/to-string"),z=rt("../internals/regexp-get-flags"),ot=rt("../internals/regexp-sticky-helpers"),it=rt("../internals/proxy-accessor"),at=rt("../internals/redefine"),ut=rt("../internals/fails"),wt=rt("../internals/has-own-property"),Et=rt("../internals/internal-state").enforce,At=rt("../internals/set-species"),_t=rt("../internals/well-known-symbol"),Mt=rt("../internals/regexp-unsupported-dot-all"),jt=rt("../internals/regexp-unsupported-ncg"),Lt=_t("match"),It=pt.RegExp,Ut=It.prototype,Xt=pt.SyntaxError,Gt=vt(Ut.exec),Yt=vt("".charAt),Ht=vt("".replace),ne=vt("".indexOf),ae=vt("".slice),ve=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Kt=/a/g,re=/a/g,we=new It(Kt)!==Kt,Me=ot.MISSED_STICKY,ke=ot.UNSUPPORTED_Y,me=St&&(!we||Me||Mt||jt||ut(function(){return re[Lt]=!1,It(Kt)!=Kt||It(re)==re||It(Kt,"i")!="/a/i"})),fe=function(Se){for(var xe=Se.length,le=0,Ne="",se=!1,Ae;le<=xe;le++){if(Ae=Yt(Se,le),Ae==="\\"){Ne+=Ae+Yt(Se,++le);continue}!se&&Ae==="."?Ne+="[\\s\\S]":(Ae==="["?se=!0:Ae==="]"&&(se=!1),Ne+=Ae)}return Ne},pe=function(Se){for(var xe=Se.length,le=0,Ne="",se=[],Ae={},Xe=!1,Be=!1,Te=0,ue="",$t;le<=xe;le++){if($t=Yt(Se,le),$t==="\\")$t=$t+Yt(Se,++le);else if($t==="]")Xe=!1;else if(!Xe)switch(!0){case $t==="[":Xe=!0;break;case $t==="(":Gt(ve,ae(Se,le+1))&&(le+=2,Be=!0),Ne+=$t,Te++;continue;case($t===">"&&Be):if(ue===""||wt(Ae,ue))throw new Xt("Invalid capture group name");Ae[ue]=!0,se[se.length]=[ue,Te],Be=!1,ue="";continue}Be?ue+=$t:Ne+=$t}return[Ne,se]};if(yt("RegExp",me)){for(var _e=function(xe,le){var Ne=ct(Ut,this),se=lt(xe),Ae=le===void 0,Xe=[],Be=xe,Te,ue,$t,he,ye,Qt;if(!Ne&&se&&Ae&&xe.constructor===_e)return xe;if((se||ct(Ut,xe))&&(xe=xe.source,Ae&&(le=z(Be))),xe=xe===void 0?"":E(xe),le=le===void 0?"":E(le),Be=xe,Mt&&"dotAll"in Kt&&(ue=!!le&&ne(le,"s")>-1,ue&&(le=Ht(le,/s/g,""))),Te=le,Me&&"sticky"in Kt&&($t=!!le&&ne(le,"y")>-1,$t&&ke&&(le=Ht(le,/y/g,""))),jt&&(he=pe(xe),xe=he[0],Xe=he[1]),ye=xt(It(xe,le),Ne?this:Ut,_e),(ue||$t||Xe.length)&&(Qt=Et(ye),ue&&(Qt.dotAll=!0,Qt.raw=_e(fe(xe),Te)),$t&&(Qt.sticky=!0),Xe.length&&(Qt.groups=Xe)),xe!==Be)try{dt(ye,"source",Be===""?"(?:)":Be)}catch(Wt){}return ye},je=ft(It),He=0;je.length>He;)it(_e,It,je[He++]);Ut.constructor=_e,_e.prototype=Ut,at(pt,"RegExp",_e)}At("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/regexp-exec");St({target:"RegExp",proto:!0,forced:/./.exec!==pt},{exec:pt})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-name").PROPER,pt=rt("../internals/redefine"),vt=rt("../internals/an-object"),yt=rt("../internals/to-string"),xt=rt("../internals/fails"),dt=rt("../internals/regexp-get-flags"),ft="toString",ct=RegExp.prototype,lt=ct[ft],E=xt(function(){return lt.call({source:"a",flags:"b"})!="/a/b"}),z=St&&lt.name!=ft;(E||z)&&pt(RegExp.prototype,ft,function(){var it=vt(this),at=yt(it.source),ut=yt(dt(it));return"/"+at+"/"+ut},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/not-a-regexp"),yt=rt("../internals/require-object-coercible"),xt=rt("../internals/to-string"),dt=rt("../internals/correct-is-regexp-logic"),ft=pt("".indexOf);St({target:"String",proto:!0,forced:!dt("includes")},{includes:function(lt){return!!~ft(xt(yt(this)),xt(vt(lt)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(rt,kt,Ct){"use strict";var St=rt("../internals/string-multibyte").charAt,pt=rt("../internals/to-string"),vt=rt("../internals/internal-state"),yt=rt("../internals/define-iterator"),xt="String Iterator",dt=vt.set,ft=vt.getterFor(xt);yt(String,"String",function(ct){dt(this,{type:xt,string:pt(ct),index:0})},function(){var lt=ft(this),E=lt.string,z=lt.index,ot;return z>=E.length?{value:void 0,done:!0}:(ot=St(E,z),lt.index+=ot.length,{value:ot,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/fix-regexp-well-known-symbol-logic"),vt=rt("../internals/an-object"),yt=rt("../internals/to-length"),xt=rt("../internals/to-string"),dt=rt("../internals/require-object-coercible"),ft=rt("../internals/get-method"),ct=rt("../internals/advance-string-index"),lt=rt("../internals/regexp-exec-abstract");pt("match",function(E,z,ot){return[function(at){var ut=dt(this),wt=at==null?void 0:ft(at,E);return wt?St(wt,at,ut):new RegExp(at)[E](xt(ut))},function(it){var at=vt(this),ut=xt(it),wt=ot(z,at,ut);if(wt.done)return wt.value;if(!at.global)return lt(at,ut);var Et=at.unicode;at.lastIndex=0;for(var At=[],_t=0,Mt;(Mt=lt(at,ut))!==null;){var jt=xt(Mt[0]);At[_t]=jt,jt===""&&(at.lastIndex=ct(ut,yt(at.lastIndex),Et)),_t++}return _t===0?null:At}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/function-call"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/fix-regexp-well-known-symbol-logic"),xt=rt("../internals/fails"),dt=rt("../internals/an-object"),ft=rt("../internals/is-callable"),ct=rt("../internals/to-integer-or-infinity"),lt=rt("../internals/to-length"),E=rt("../internals/to-string"),z=rt("../internals/require-object-coercible"),ot=rt("../internals/advance-string-index"),it=rt("../internals/get-method"),at=rt("../internals/get-substitution"),ut=rt("../internals/regexp-exec-abstract"),wt=rt("../internals/well-known-symbol"),Et=wt("replace"),At=Math.max,_t=Math.min,Mt=vt([].concat),jt=vt([].push),Lt=vt("".indexOf),It=vt("".slice),Ut=function(Ht){return Ht===void 0?Ht:String(Ht)},Xt=function(){return"a".replace(/./,"$0")==="$0"}(),Gt=function(){return/./[Et]?/./[Et]("a","$0")==="":!1}(),Yt=!xt(function(){var Ht=/./;return Ht.exec=function(){var ne=[];return ne.groups={a:"7"},ne},"".replace(Ht,"$<a>")!=="7"});yt("replace",function(Ht,ne,ae){var ve=Gt?"$":"$0";return[function(re,we){var Me=z(this),ke=re==null?void 0:it(re,Et);return ke?pt(ke,re,Me,we):pt(ne,E(Me),re,we)},function(Kt,re){var we=dt(this),Me=E(Kt);if(typeof re=="string"&&Lt(re,ve)===-1&&Lt(re,"$<")===-1){var ke=ae(ne,we,Me,re);if(ke.done)return ke.value}var me=ft(re);me||(re=E(re));var fe=we.global;if(fe){var pe=we.unicode;we.lastIndex=0}for(var _e=[];;){var je=ut(we,Me);if(je===null||(jt(_e,je),!fe))break;var He=E(je[0]);He===""&&(we.lastIndex=ot(Me,lt(we.lastIndex),pe))}for(var Se="",xe=0,le=0;le<_e.length;le++){je=_e[le];for(var Ne=E(je[0]),se=At(_t(ct(je.index),Me.length),0),Ae=[],Xe=1;Xe<je.length;Xe++)jt(Ae,Ut(je[Xe]));var Be=je.groups;if(me){var Te=Mt([Ne],Ae,se,Me);Be!==void 0&&jt(Te,Be);var ue=E(St(re,void 0,Te))}else ue=at(Ne,Me,se,Ae,Be,re);se>=xe&&(Se+=It(Me,xe,se)+ue,xe=se+Ne.length)}return Se+It(Me,xe)}]},!Yt||!Xt||Gt)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/fix-regexp-well-known-symbol-logic"),vt=rt("../internals/an-object"),yt=rt("../internals/require-object-coercible"),xt=rt("../internals/same-value"),dt=rt("../internals/to-string"),ft=rt("../internals/get-method"),ct=rt("../internals/regexp-exec-abstract");pt("search",function(lt,E,z){return[function(it){var at=yt(this),ut=it==null?void 0:ft(it,lt);return ut?St(ut,it,at):new RegExp(it)[lt](dt(at))},function(ot){var it=vt(this),at=dt(ot),ut=z(E,it,at);if(ut.done)return ut.value;var wt=it.lastIndex;xt(wt,0)||(it.lastIndex=0);var Et=ct(it,at);return xt(it.lastIndex,wt)||(it.lastIndex=wt),Et===null?-1:Et.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/function-call"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/fix-regexp-well-known-symbol-logic"),xt=rt("../internals/is-regexp"),dt=rt("../internals/an-object"),ft=rt("../internals/require-object-coercible"),ct=rt("../internals/species-constructor"),lt=rt("../internals/advance-string-index"),E=rt("../internals/to-length"),z=rt("../internals/to-string"),ot=rt("../internals/get-method"),it=rt("../internals/array-slice-simple"),at=rt("../internals/regexp-exec-abstract"),ut=rt("../internals/regexp-exec"),wt=rt("../internals/regexp-sticky-helpers"),Et=rt("../internals/fails"),At=wt.UNSUPPORTED_Y,_t=4294967295,Mt=Math.min,jt=[].push,Lt=vt(/./.exec),It=vt(jt),Ut=vt("".slice),Xt=!Et(function(){var Gt=/(?:)/,Yt=Gt.exec;Gt.exec=function(){return Yt.apply(this,arguments)};var Ht="ab".split(Gt);return Ht.length!==2||Ht[0]!=="a"||Ht[1]!=="b"});yt("split",function(Gt,Yt,Ht){var ne;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ne=function(ae,ve){var Kt=z(ft(this)),re=ve===void 0?_t:ve>>>0;if(re===0)return[];if(ae===void 0)return[Kt];if(!xt(ae))return pt(Yt,Kt,ae,re);for(var we=[],Me=(ae.ignoreCase?"i":"")+(ae.multiline?"m":"")+(ae.unicode?"u":"")+(ae.sticky?"y":""),ke=0,me=new RegExp(ae.source,Me+"g"),fe,pe,_e;(fe=pt(ut,me,Kt))&&(pe=me.lastIndex,!(pe>ke&&(It(we,Ut(Kt,ke,fe.index)),fe.length>1&&fe.index<Kt.length&&St(jt,we,it(fe,1)),_e=fe[0].length,ke=pe,we.length>=re)));)me.lastIndex===fe.index&&me.lastIndex++;return ke===Kt.length?(_e||!Lt(me,""))&&It(we,""):It(we,Ut(Kt,ke)),we.length>re?it(we,0,re):we}:"0".split(void 0,0).length?ne=function(ae,ve){return ae===void 0&&ve===0?[]:pt(Yt,this,ae,ve)}:ne=Yt,[function(ve,Kt){var re=ft(this),we=ve==null?void 0:ot(ve,Gt);return we?pt(we,ve,re,Kt):pt(ne,z(re),ve,Kt)},function(ae,ve){var Kt=dt(this),re=z(ae),we=Ht(ne,Kt,re,ve,ne!==Yt);if(we.done)return we.value;var Me=ct(Kt,RegExp),ke=Kt.unicode,me=(Kt.ignoreCase?"i":"")+(Kt.multiline?"m":"")+(Kt.unicode?"u":"")+(At?"g":"y"),fe=new Me(At?"^(?:"+Kt.source+")":Kt,me),pe=ve===void 0?_t:ve>>>0;if(pe===0)return[];if(re.length===0)return at(fe,re)===null?[re]:[];for(var _e=0,je=0,He=[];je<re.length;){fe.lastIndex=At?0:je;var Se=at(fe,At?Ut(re,je):re),xe;if(Se===null||(xe=Mt(E(fe.lastIndex+(At?je:0)),re.length))===_e)je=lt(re,je,ke);else{if(It(He,Ut(re,_e,je)),He.length===pe)return He;for(var le=1;le<=Se.length-1;le++)if(It(He,Se[le]),He.length===pe)return He;je=_e=xe}}return It(He,Ut(re,_e)),He}]},!Xt,At)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/string-trim").trim,vt=rt("../internals/string-trim-forced");St({target:"String",proto:!0,forced:vt("trim")},{trim:function(){return pt(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/function-call"),yt=rt("../internals/function-uncurry-this"),xt=rt("../internals/is-pure"),dt=rt("../internals/descriptors"),ft=rt("../internals/native-symbol"),ct=rt("../internals/fails"),lt=rt("../internals/has-own-property"),E=rt("../internals/object-is-prototype-of"),z=rt("../internals/an-object"),ot=rt("../internals/to-indexed-object"),it=rt("../internals/to-property-key"),at=rt("../internals/to-string"),ut=rt("../internals/create-property-descriptor"),wt=rt("../internals/object-create"),Et=rt("../internals/object-keys"),At=rt("../internals/object-get-own-property-names"),_t=rt("../internals/object-get-own-property-names-external"),Mt=rt("../internals/object-get-own-property-symbols"),jt=rt("../internals/object-get-own-property-descriptor"),Lt=rt("../internals/object-define-property"),It=rt("../internals/object-define-properties"),Ut=rt("../internals/object-property-is-enumerable"),Xt=rt("../internals/redefine"),Gt=rt("../internals/shared"),Yt=rt("../internals/shared-key"),Ht=rt("../internals/hidden-keys"),ne=rt("../internals/uid"),ae=rt("../internals/well-known-symbol"),ve=rt("../internals/well-known-symbol-wrapped"),Kt=rt("../internals/define-well-known-symbol"),re=rt("../internals/symbol-define-to-primitive"),we=rt("../internals/set-to-string-tag"),Me=rt("../internals/internal-state"),ke=rt("../internals/array-iteration").forEach,me=Yt("hidden"),fe="Symbol",pe="prototype",_e=Me.set,je=Me.getterFor(fe),He=Object[pe],Se=pt.Symbol,xe=Se&&Se[pe],le=pt.TypeError,Ne=pt.QObject,se=jt.f,Ae=Lt.f,Xe=_t.f,Be=Ut.f,Te=yt([].push),ue=Gt("symbols"),$t=Gt("op-symbols"),he=Gt("wks"),ye=!Ne||!Ne[pe]||!Ne[pe].findChild,Qt=dt&&ct(function(){return wt(Ae({},"a",{get:function(){return Ae(this,"a",{value:7}).a}})).a!=7})?function(Ze,nn,fn){var An=se(He,nn);An&&delete He[nn],Ae(Ze,nn,fn),An&&Ze!==He&&Ae(He,nn,An)}:Ae,Wt=function(Ze,nn){var fn=ue[Ze]=wt(xe);return _e(fn,{type:fe,tag:Ze,description:nn}),dt||(fn.description=nn),fn},Bt=function(nn,fn,An){nn===He&&Bt($t,fn,An),z(nn);var En=it(fn);return z(An),lt(ue,En)?(An.enumerable?(lt(nn,me)&&nn[me][En]&&(nn[me][En]=!1),An=wt(An,{enumerable:ut(0,!1)})):(lt(nn,me)||Ae(nn,me,ut(1,{})),nn[me][En]=!0),Qt(nn,En,An)):Ae(nn,En,An)},te=function(nn,fn){z(nn);var An=ot(fn),En=Et(An).concat(Je(An));return ke(En,function(Dn){(!dt||vt(Jt,An,Dn))&&Bt(nn,Dn,An[Dn])}),nn},ge=function(nn,fn){return fn===void 0?wt(nn):te(wt(nn),fn)},Jt=function(nn){var fn=it(nn),An=vt(Be,this,fn);return this===He&&lt(ue,fn)&&!lt($t,fn)?!1:An||!lt(this,fn)||!lt(ue,fn)||lt(this,me)&&this[me][fn]?An:!0},Ie=function(nn,fn){var An=ot(nn),En=it(fn);if(!(An===He&&lt(ue,En)&&!lt($t,En))){var Dn=se(An,En);return Dn&&lt(ue,En)&&!(lt(An,me)&&An[me][En])&&(Dn.enumerable=!0),Dn}},Ue=function(nn){var fn=Xe(ot(nn)),An=[];return ke(fn,function(En){!lt(ue,En)&&!lt(Ht,En)&&Te(An,En)}),An},Je=function(Ze){var nn=Ze===He,fn=Xe(nn?$t:ot(Ze)),An=[];return ke(fn,function(En){lt(ue,En)&&(!nn||lt(He,En))&&Te(An,ue[En])}),An};ft||(Se=function(){if(E(xe,this))throw le("Symbol is not a constructor");var nn=!arguments.length||arguments[0]===void 0?void 0:at(arguments[0]),fn=ne(nn),An=function(En){this===He&&vt(An,$t,En),lt(this,me)&&lt(this[me],fn)&&(this[me][fn]=!1),Qt(this,fn,ut(1,En))};return dt&&ye&&Qt(He,fn,{configurable:!0,set:An}),Wt(fn,nn)},xe=Se[pe],Xt(xe,"toString",function(){return je(this).tag}),Xt(Se,"withoutSetter",function(Ze){return Wt(ne(Ze),Ze)}),Ut.f=Jt,Lt.f=Bt,It.f=te,jt.f=Ie,At.f=_t.f=Ue,Mt.f=Je,ve.f=function(Ze){return Wt(ae(Ze),Ze)},dt&&(Ae(xe,"description",{configurable:!0,get:function(){return je(this).description}}),xt||Xt(He,"propertyIsEnumerable",Jt,{unsafe:!0}))),St({global:!0,wrap:!0,forced:!ft,sham:!ft},{Symbol:Se}),ke(Et(he),function(Ze){Kt(Ze)}),St({target:fe,stat:!0,forced:!ft},{useSetter:function(){ye=!0},useSimple:function(){ye=!1}}),St({target:"Object",stat:!0,forced:!ft,sham:!dt},{create:ge,defineProperty:Bt,defineProperties:te,getOwnPropertyDescriptor:Ie}),St({target:"Object",stat:!0,forced:!ft},{getOwnPropertyNames:Ue}),re(),we(Se,fe),Ht[me]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/descriptors"),vt=rt("../internals/global"),yt=rt("../internals/function-uncurry-this"),xt=rt("../internals/has-own-property"),dt=rt("../internals/is-callable"),ft=rt("../internals/object-is-prototype-of"),ct=rt("../internals/to-string"),lt=rt("../internals/object-define-property").f,E=rt("../internals/copy-constructor-properties"),z=vt.Symbol,ot=z&&z.prototype;if(pt&&dt(z)&&(!("description"in ot)||z().description!==void 0)){var it={},at=function(){var Lt=arguments.length<1||arguments[0]===void 0?void 0:ct(arguments[0]),It=ft(ot,this)?new z(Lt):Lt===void 0?z():z(Lt);return Lt===""&&(it[It]=!0),It};E(at,z),at.prototype=ot,ot.constructor=at;var ut=String(z("test"))=="Symbol(test)",wt=yt(ot.toString),Et=yt(ot.valueOf),At=/^Symbol\((.*)\)[^)]+$/,_t=yt("".replace),Mt=yt("".slice);lt(ot,"description",{configurable:!0,get:function(){var Lt=Et(this),It=wt(Lt);if(xt(it,Lt))return"";var Ut=ut?Mt(It,7,-1):_t(It,At,"$1");return Ut===""?void 0:Ut}}),St({global:!0,forced:!0},{Symbol:at})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/get-built-in"),vt=rt("../internals/has-own-property"),yt=rt("../internals/to-string"),xt=rt("../internals/shared"),dt=rt("../internals/native-symbol-registry"),ft=xt("string-to-symbol-registry"),ct=xt("symbol-to-string-registry");St({target:"Symbol",stat:!0,forced:!dt},{for:function(lt){var E=yt(lt);if(vt(ft,E))return ft[E];var z=pt("Symbol")(E);return ft[E]=z,ct[z]=E,z}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(rt,kt,Ct){var St=rt("../internals/define-well-known-symbol");St("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(rt,kt,Ct){rt("../modules/es.symbol.constructor"),rt("../modules/es.symbol.for"),rt("../modules/es.symbol.key-for"),rt("../modules/es.json.stringify"),rt("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/has-own-property"),vt=rt("../internals/is-symbol"),yt=rt("../internals/try-to-string"),xt=rt("../internals/shared"),dt=rt("../internals/native-symbol-registry"),ft=xt("symbol-to-string-registry");St({target:"Symbol",stat:!0,forced:!dt},{keyFor:function(lt){if(!vt(lt))throw TypeError(yt(lt)+" is not a symbol");if(pt(ft,lt))return ft[lt]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/array-buffer-view-core"),vt=rt("../internals/array-copy-within"),yt=St(vt),xt=pt.aTypedArray,dt=pt.exportTypedArrayMethod;dt("copyWithin",function(ct,lt){return yt(xt(this),ct,lt,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").every,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("every",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-call"),vt=rt("../internals/array-fill"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("fill",function(ft){var ct=arguments.length;return pt(vt,yt(this),ft,ct>1?arguments[1]:void 0,ct>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").filter,vt=rt("../internals/typed-array-from-species-and-list"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("filter",function(ft){var ct=pt(yt(this),ft,arguments.length>1?arguments[1]:void 0);return vt(this,ct)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").findIndex,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("findIndex",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").find,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("find",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").forEach,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("forEach",function(dt){pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-includes").includes,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("includes",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-includes").indexOf,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("indexOf",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/fails"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/array-buffer-view-core"),xt=rt("../modules/es.array.iterator"),dt=rt("../internals/well-known-symbol"),ft=dt("iterator"),ct=St.Uint8Array,lt=vt(xt.values),E=vt(xt.keys),z=vt(xt.entries),ot=yt.aTypedArray,it=yt.exportTypedArrayMethod,at=ct&&ct.prototype,ut=!pt(function(){at[ft].call([1])}),wt=!!at&&at.values&&at[ft]===at.values&&at.values.name==="values",Et=function(){return lt(ot(this))};it("entries",function(){return z(ot(this))},ut),it("keys",function(){return E(ot(this))},ut),it("values",Et,ut||!wt,{name:"values"}),it(ft,Et,ut||!wt,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-uncurry-this"),vt=St.aTypedArray,yt=St.exportTypedArrayMethod,xt=pt([].join);yt("join",function(ft){return xt(vt(this),ft)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-apply"),vt=rt("../internals/array-last-index-of"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("lastIndexOf",function(ft){var ct=arguments.length;return pt(vt,yt(this),ct>1?[ft,arguments[1]]:[ft])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").map,vt=rt("../internals/typed-array-species-constructor"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("map",function(ft){return pt(yt(this),ft,arguments.length>1?arguments[1]:void 0,function(ct,lt){return new(vt(ct))(lt)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-reduce").right,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("reduceRight",function(dt){var ft=arguments.length;return pt(vt(this),dt,ft,ft>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-reduce").left,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("reduce",function(dt){var ft=arguments.length;return pt(vt(this),dt,ft,ft>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=St.aTypedArray,vt=St.exportTypedArrayMethod,yt=Math.floor;vt("reverse",function(){for(var dt=this,ft=pt(dt).length,ct=yt(ft/2),lt=0,E;lt<ct;)E=dt[lt],dt[lt++]=dt[--ft],dt[ft]=E;return dt})},{"../internals/array-buffer-view-core":103}],331:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/array-buffer-view-core"),yt=rt("../internals/length-of-array-like"),xt=rt("../internals/to-offset"),dt=rt("../internals/to-object"),ft=rt("../internals/fails"),ct=St.RangeError,lt=St.Int8Array,E=lt&&lt.prototype,z=E&&E.set,ot=vt.aTypedArray,it=vt.exportTypedArrayMethod,at=!ft(function(){var wt=new Uint8ClampedArray(2);return pt(z,wt,{length:1,0:3},1),wt[1]!==3}),ut=at&&vt.NATIVE_ARRAY_BUFFER_VIEWS&&ft(function(){var wt=new lt(2);return wt.set(1),wt.set("2",1),wt[0]!==0||wt[1]!==2});it("set",function(Et){ot(this);var At=xt(arguments.length>1?arguments[1]:void 0,1),_t=dt(Et);if(at)return pt(z,this,_t,At);var Mt=this.length,jt=yt(_t),Lt=0;if(jt+At>Mt)throw ct("Wrong length");for(;Lt<jt;)this[At+Lt]=_t[Lt++]},!at||ut)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/typed-array-species-constructor"),vt=rt("../internals/fails"),yt=rt("../internals/array-slice"),xt=St.aTypedArray,dt=St.exportTypedArrayMethod,ft=vt(function(){new Int8Array(1).slice()});dt("slice",function(lt,E){for(var z=yt(xt(this),lt,E),ot=pt(this),it=0,at=z.length,ut=new ot(at);at>it;)ut[it]=z[it++];return ut},ft)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").some,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("some",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/fails"),yt=rt("../internals/a-callable"),xt=rt("../internals/array-sort"),dt=rt("../internals/array-buffer-view-core"),ft=rt("../internals/engine-ff-version"),ct=rt("../internals/engine-is-ie-or-edge"),lt=rt("../internals/engine-v8-version"),E=rt("../internals/engine-webkit-version"),z=dt.aTypedArray,ot=dt.exportTypedArrayMethod,it=St.Uint16Array,at=it&&pt(it.prototype.sort),ut=!!at&&!(vt(function(){at(new it(2),null)})&&vt(function(){at(new it(2),{})})),wt=!!at&&!vt(function(){if(lt)return lt<74;if(ft)return ft<67;if(ct)return!0;if(E)return E<602;var At=new it(516),_t=Array(516),Mt,jt;for(Mt=0;Mt<516;Mt++)jt=Mt%4,At[Mt]=515-Mt,_t[Mt]=Mt-2*jt+3;for(at(At,function(Lt,It){return(Lt/4|0)-(It/4|0)}),Mt=0;Mt<516;Mt++)if(At[Mt]!==_t[Mt])return!0}),Et=function(At){return function(_t,Mt){return At!==void 0?+At(_t,Mt)||0:Mt!==Mt?-1:_t!==_t?1:_t===0&&Mt===0?1/_t>0&&1/Mt<0?1:-1:_t>Mt}};ot("sort",function(_t){return _t!==void 0&&yt(_t),wt?at(this,_t):xt(z(this),Et(_t))},!wt||ut)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/to-length"),vt=rt("../internals/to-absolute-index"),yt=rt("../internals/typed-array-species-constructor"),xt=St.aTypedArray,dt=St.exportTypedArrayMethod;dt("subarray",function(ct,lt){var E=xt(this),z=E.length,ot=vt(ct,z),it=yt(E);return new it(E.buffer,E.byteOffset+ot*E.BYTES_PER_ELEMENT,pt((lt===void 0?z:vt(lt,z))-ot))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-apply"),vt=rt("../internals/array-buffer-view-core"),yt=rt("../internals/fails"),xt=rt("../internals/array-slice"),dt=St.Int8Array,ft=vt.aTypedArray,ct=vt.exportTypedArrayMethod,lt=[].toLocaleString,E=!!dt&&yt(function(){lt.call(new dt(1))}),z=yt(function(){return[1,2].toLocaleString()!=new dt([1,2]).toLocaleString()})||!yt(function(){dt.prototype.toLocaleString.call([1,2])});ct("toLocaleString",function(){return pt(lt,E?xt(ft(this)):ft(this),xt(arguments))},z)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core").exportTypedArrayMethod,pt=rt("../internals/fails"),vt=rt("../internals/global"),yt=rt("../internals/function-uncurry-this"),xt=vt.Uint8Array,dt=xt&&xt.prototype||{},ft=[].toString,ct=yt([].join);pt(function(){ft.call({})})&&(ft=function(){return ct(this)});var lt=dt.toString!=ft;St("toString",ft,lt)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(rt,kt,Ct){var St=rt("../internals/typed-array-constructor");St("Uint8",function(pt){return function(yt,xt,dt){return pt(this,yt,xt,dt)}})},{"../internals/typed-array-constructor":258}],339:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/dom-iterables"),vt=rt("../internals/dom-token-list-prototype"),yt=rt("../internals/array-for-each"),xt=rt("../internals/create-non-enumerable-property"),dt=function(ct){if(ct&&ct.forEach!==yt)try{xt(ct,"forEach",yt)}catch(lt){ct.forEach=yt}};for(var ft in pt)pt[ft]&&dt(St[ft]&&St[ft].prototype);dt(vt)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/dom-iterables"),vt=rt("../internals/dom-token-list-prototype"),yt=rt("../modules/es.array.iterator"),xt=rt("../internals/create-non-enumerable-property"),dt=rt("../internals/well-known-symbol"),ft=dt("iterator"),ct=dt("toStringTag"),lt=yt.values,E=function(ot,it){if(ot){if(ot[ft]!==lt)try{xt(ot,ft,lt)}catch(ut){ot[ft]=lt}if(ot[ct]||xt(ot,ct,it),pt[it]){for(var at in yt)if(ot[at]!==yt[at])try{xt(ot,at,yt[at])}catch(ut){ot[at]=yt[at]}}}};for(var z in pt)E(St[z]&&St[z].prototype,z);E(vt,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(rt,kt,Ct){function St(wt){return Array.isArray?Array.isArray(wt):ut(wt)==="[object Array]"}Ct.isArray=St;function pt(wt){return typeof wt=="boolean"}Ct.isBoolean=pt;function vt(wt){return wt===null}Ct.isNull=vt;function yt(wt){return wt==null}Ct.isNullOrUndefined=yt;function xt(wt){return typeof wt=="number"}Ct.isNumber=xt;function dt(wt){return typeof wt=="string"}Ct.isString=dt;function ft(wt){return typeof wt=="symbol"}Ct.isSymbol=ft;function ct(wt){return wt===void 0}Ct.isUndefined=ct;function lt(wt){return ut(wt)==="[object RegExp]"}Ct.isRegExp=lt;function E(wt){return typeof wt=="object"&&wt!==null}Ct.isObject=E;function z(wt){return ut(wt)==="[object Date]"}Ct.isDate=z;function ot(wt){return ut(wt)==="[object Error]"||wt instanceof Error}Ct.isError=ot;function it(wt){return typeof wt=="function"}Ct.isFunction=it;function at(wt){return wt===null||typeof wt=="boolean"||typeof wt=="number"||typeof wt=="string"||typeof wt=="symbol"||typeof wt=="undefined"}Ct.isPrimitive=at,Ct.isBuffer=rt("buffer").Buffer.isBuffer;function ut(wt){return Object.prototype.toString.call(wt)}},{buffer:90}],342:[function(rt,kt,Ct){(function(St){"use strict";var pt=function(){var ft=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ct=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,lt=/[^-+\dA-Z]/g;return function(E,z,ot,it){if(arguments.length===1&&dt(E)==="string"&&!/\d/.test(E)&&(z=E,E=void 0),E=E||new Date,E instanceof Date||(E=new Date(E)),isNaN(E))throw TypeError("Invalid date");z=String(pt.masks[z]||z||pt.masks.default);var at=z.slice(0,4);(at==="UTC:"||at==="GMT:")&&(z=z.slice(4),ot=!0,at==="GMT:"&&(it=!0));var ut=ot?"getUTC":"get",wt=E[ut+"Date"](),Et=E[ut+"Day"](),At=E[ut+"Month"](),_t=E[ut+"FullYear"](),Mt=E[ut+"Hours"](),jt=E[ut+"Minutes"](),Lt=E[ut+"Seconds"](),It=E[ut+"Milliseconds"](),Ut=ot?0:E.getTimezoneOffset(),Xt=yt(E),Gt=xt(E),Yt={d:wt,dd:vt(wt),ddd:pt.i18n.dayNames[Et],dddd:pt.i18n.dayNames[Et+7],m:At+1,mm:vt(At+1),mmm:pt.i18n.monthNames[At],mmmm:pt.i18n.monthNames[At+12],yy:String(_t).slice(2),yyyy:_t,h:Mt%12||12,hh:vt(Mt%12||12),H:Mt,HH:vt(Mt),M:jt,MM:vt(jt),s:Lt,ss:vt(Lt),l:vt(It,3),L:vt(Math.round(It/10)),t:Mt<12?"a":"p",tt:Mt<12?"am":"pm",T:Mt<12?"A":"P",TT:Mt<12?"AM":"PM",Z:it?"GMT":ot?"UTC":(String(E).match(ct)||[""]).pop().replace(lt,""),o:(Ut>0?"-":"+")+vt(Math.floor(Math.abs(Ut)/60)*100+Math.abs(Ut)%60,4),S:["th","st","nd","rd"][wt%10>3?0:(wt%100-wt%10!=10)*wt%10],W:Xt,N:Gt};return z.replace(ft,function(Ht){return Ht in Yt?Yt[Ht]:Ht.slice(1,Ht.length-1)})}}();pt.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"},pt.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function vt(ft,ct){for(ft=String(ft),ct=ct||2;ft.length<ct;)ft="0"+ft;return ft}function yt(ft){var ct=new Date(ft.getFullYear(),ft.getMonth(),ft.getDate());ct.setDate(ct.getDate()-(ct.getDay()+6)%7+3);var lt=new Date(ct.getFullYear(),0,4);lt.setDate(lt.getDate()-(lt.getDay()+6)%7+3);var E=ct.getTimezoneOffset()-lt.getTimezoneOffset();ct.setHours(ct.getHours()-E);var z=(ct-lt)/(864e5*7);return 1+Math.floor(z)}function xt(ft){var ct=ft.getDay();return ct===0&&(ct=7),ct}function dt(ft){return ft===null?"null":ft===void 0?"undefined":typeof ft!="object"?typeof ft:Array.isArray(ft)?"array":{}.toString.call(ft).slice(8,-1).toLowerCase()}typeof Rt=="function"&&Rt.amd?Rt(function(){return pt}):typeof Ct=="object"?kt.exports=pt:St.dateFormat=pt})(this)},{}],343:[function(rt,kt,Ct){"use strict";var St=/["'&<>]/;kt.exports=pt;function pt(vt){var yt=""+vt,xt=St.exec(yt);if(!xt)return yt;var dt,ft="",ct=0,lt=0;for(ct=xt.index;ct<yt.length;ct++){switch(yt.charCodeAt(ct)){case 34:dt="&quot;";break;case 38:dt="&amp;";break;case 39:dt="&#39;";break;case 60:dt="&lt;";break;case 62:dt="&gt;";break;default:continue}lt!==ct&&(ft+=yt.substring(lt,ct)),lt=ct+1,ft+=dt}return lt!==ct?ft+yt.substring(lt,ct):ft}},{}],344:[function(rt,kt,Ct){"use strict";var St=typeof Reflect=="object"?Reflect:null,pt=St&&typeof St.apply=="function"?St.apply:function(Lt,It,Ut){return Function.prototype.apply.call(Lt,It,Ut)},vt;St&&typeof St.ownKeys=="function"?vt=St.ownKeys:Object.getOwnPropertySymbols?vt=function(Lt){return Object.getOwnPropertyNames(Lt).concat(Object.getOwnPropertySymbols(Lt))}:vt=function(Lt){return Object.getOwnPropertyNames(Lt)};function yt(jt){console&&console.warn&&console.warn(jt)}var xt=Number.isNaN||function(Lt){return Lt!==Lt};function dt(){dt.init.call(this)}kt.exports=dt,kt.exports.once=At,dt.EventEmitter=dt,dt.prototype._events=void 0,dt.prototype._eventsCount=0,dt.prototype._maxListeners=void 0;var ft=10;function ct(jt){if(typeof jt!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof jt)}Object.defineProperty(dt,"defaultMaxListeners",{enumerable:!0,get:function(){return ft},set:function(jt){if(typeof jt!="number"||jt<0||xt(jt))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+jt+".");ft=jt}}),dt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},dt.prototype.setMaxListeners=function(Lt){if(typeof Lt!="number"||Lt<0||xt(Lt))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Lt+".");return this._maxListeners=Lt,this};function lt(jt){return jt._maxListeners===void 0?dt.defaultMaxListeners:jt._maxListeners}dt.prototype.getMaxListeners=function(){return lt(this)},dt.prototype.emit=function(Lt){for(var It=[],Ut=1;Ut<arguments.length;Ut++)It.push(arguments[Ut]);var Xt=Lt==="error",Gt=this._events;if(Gt!==void 0)Xt=Xt&&Gt.error===void 0;else if(!Xt)return!1;if(Xt){var Yt;if(It.length>0&&(Yt=It[0]),Yt instanceof Error)throw Yt;var Ht=new Error("Unhandled error."+(Yt?" ("+Yt.message+")":""));throw Ht.context=Yt,Ht}var ne=Gt[Lt];if(ne===void 0)return!1;if(typeof ne=="function")pt(ne,this,It);else for(var ae=ne.length,ve=ut(ne,ae),Ut=0;Ut<ae;++Ut)pt(ve[Ut],this,It);return!0};function E(jt,Lt,It,Ut){var Xt,Gt,Yt;if(ct(It),Gt=jt._events,Gt===void 0?(Gt=jt._events=Object.create(null),jt._eventsCount=0):(Gt.newListener!==void 0&&(jt.emit("newListener",Lt,It.listener?It.listener:It),Gt=jt._events),Yt=Gt[Lt]),Yt===void 0)Yt=Gt[Lt]=It,++jt._eventsCount;else if(typeof Yt=="function"?Yt=Gt[Lt]=Ut?[It,Yt]:[Yt,It]:Ut?Yt.unshift(It):Yt.push(It),Xt=lt(jt),Xt>0&&Yt.length>Xt&&!Yt.warned){Yt.warned=!0;var Ht=new Error("Possible EventEmitter memory leak detected. "+Yt.length+" "+String(Lt)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ht.name="MaxListenersExceededWarning",Ht.emitter=jt,Ht.type=Lt,Ht.count=Yt.length,yt(Ht)}return jt}dt.prototype.addListener=function(Lt,It){return E(this,Lt,It,!1)},dt.prototype.on=dt.prototype.addListener,dt.prototype.prependListener=function(Lt,It){return E(this,Lt,It,!0)};function z(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ot(jt,Lt,It){var Ut={fired:!1,wrapFn:void 0,target:jt,type:Lt,listener:It},Xt=z.bind(Ut);return Xt.listener=It,Ut.wrapFn=Xt,Xt}dt.prototype.once=function(Lt,It){return ct(It),this.on(Lt,ot(this,Lt,It)),this},dt.prototype.prependOnceListener=function(Lt,It){return ct(It),this.prependListener(Lt,ot(this,Lt,It)),this},dt.prototype.removeListener=function(Lt,It){var Ut,Xt,Gt,Yt,Ht;if(ct(It),Xt=this._events,Xt===void 0)return this;if(Ut=Xt[Lt],Ut===void 0)return this;if(Ut===It||Ut.listener===It)--this._eventsCount===0?this._events=Object.create(null):(delete Xt[Lt],Xt.removeListener&&this.emit("removeListener",Lt,Ut.listener||It));else if(typeof Ut!="function"){for(Gt=-1,Yt=Ut.length-1;Yt>=0;Yt--)if(Ut[Yt]===It||Ut[Yt].listener===It){Ht=Ut[Yt].listener,Gt=Yt;break}if(Gt<0)return this;Gt===0?Ut.shift():wt(Ut,Gt),Ut.length===1&&(Xt[Lt]=Ut[0]),Xt.removeListener!==void 0&&this.emit("removeListener",Lt,Ht||It)}return this},dt.prototype.off=dt.prototype.removeListener,dt.prototype.removeAllListeners=function(Lt){var It,Ut,Xt;if(Ut=this._events,Ut===void 0)return this;if(Ut.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ut[Lt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ut[Lt]),this;if(arguments.length===0){var Gt=Object.keys(Ut),Yt;for(Xt=0;Xt<Gt.length;++Xt)Yt=Gt[Xt],Yt!=="removeListener"&&this.removeAllListeners(Yt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(It=Ut[Lt],typeof It=="function")this.removeListener(Lt,It);else if(It!==void 0)for(Xt=It.length-1;Xt>=0;Xt--)this.removeListener(Lt,It[Xt]);return this};function it(jt,Lt,It){var Ut=jt._events;if(Ut===void 0)return[];var Xt=Ut[Lt];return Xt===void 0?[]:typeof Xt=="function"?It?[Xt.listener||Xt]:[Xt]:It?Et(Xt):ut(Xt,Xt.length)}dt.prototype.listeners=function(Lt){return it(this,Lt,!0)},dt.prototype.rawListeners=function(Lt){return it(this,Lt,!1)},dt.listenerCount=function(jt,Lt){return typeof jt.listenerCount=="function"?jt.listenerCount(Lt):at.call(jt,Lt)},dt.prototype.listenerCount=at;function at(jt){var Lt=this._events;if(Lt!==void 0){var It=Lt[jt];if(typeof It=="function")return 1;if(It!==void 0)return It.length}return 0}dt.prototype.eventNames=function(){return this._eventsCount>0?vt(this._events):[]};function ut(jt,Lt){for(var It=new Array(Lt),Ut=0;Ut<Lt;++Ut)It[Ut]=jt[Ut];return It}function wt(jt,Lt){for(;Lt+1<jt.length;Lt++)jt[Lt]=jt[Lt+1];jt.pop()}function Et(jt){for(var Lt=new Array(jt.length),It=0;It<Lt.length;++It)Lt[It]=jt[It].listener||jt[It];return Lt}function At(jt,Lt){return new Promise(function(It,Ut){function Xt(Yt){jt.removeListener(Lt,Gt),Ut(Yt)}function Gt(){typeof jt.removeListener=="function"&&jt.removeListener("error",Xt),It([].slice.call(arguments))}Mt(jt,Lt,Gt,{once:!0}),Lt!=="error"&&_t(jt,Xt,{once:!0})})}function _t(jt,Lt,It){typeof jt.on=="function"&&Mt(jt,"error",Lt,It)}function Mt(jt,Lt,It,Ut){if(typeof jt.on=="function")Ut.once?jt.once(Lt,It):jt.on(Lt,It);else if(typeof jt.addEventListener=="function")jt.addEventListener(Lt,function Xt(Gt){Ut.once&&jt.removeEventListener(Lt,Xt),It(Gt)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof jt)}},{}],345:[function(rt,kt,Ct){"use strict";var St=rt("is-callable"),pt=Object.prototype.toString,vt=Object.prototype.hasOwnProperty,yt=function(lt,E,z){for(var ot=0,it=lt.length;ot<it;ot++)vt.call(lt,ot)&&(z==null?E(lt[ot],ot,lt):E.call(z,lt[ot],ot,lt))},xt=function(lt,E,z){for(var ot=0,it=lt.length;ot<it;ot++)z==null?E(lt.charAt(ot),ot,lt):E.call(z,lt.charAt(ot),ot,lt)},dt=function(lt,E,z){for(var ot in lt)vt.call(lt,ot)&&(z==null?E(lt[ot],ot,lt):E.call(z,lt[ot],ot,lt))},ft=function(lt,E,z){if(!St(E))throw new TypeError("iterator must be a function");var ot;arguments.length>=3&&(ot=z),pt.call(lt)==="[object Array]"?yt(lt,E,ot):typeof lt=="string"?xt(lt,E,ot):dt(lt,E,ot)};kt.exports=ft},{"is-callable":367}],346:[function(rt,kt,Ct){"use strict";var St="Function.prototype.bind called on incompatible ",pt=Array.prototype.slice,vt=Object.prototype.toString,yt="[object Function]";kt.exports=function(dt){var ft=this;if(typeof ft!="function"||vt.call(ft)!==yt)throw new TypeError(St+ft);for(var ct=pt.call(arguments,1),lt,E=function(){if(this instanceof lt){var ut=ft.apply(this,ct.concat(pt.call(arguments)));return Object(ut)===ut?ut:this}else return ft.apply(dt,ct.concat(pt.call(arguments)))},z=Math.max(0,ft.length-ct.length),ot=[],it=0;it<z;it++)ot.push("$"+it);if(lt=Function("binder","return function ("+ot.join(",")+"){ return binder.apply(this,arguments); }")(E),ft.prototype){var at=function(){};at.prototype=ft.prototype,lt.prototype=new at,at.prototype=null}return lt}},{}],347:[function(rt,kt,Ct){"use strict";var St=rt("./implementation");kt.exports=Function.prototype.bind||St},{"./implementation":346}],348:[function(rt,kt,Ct){"use strict";var St,pt=SyntaxError,vt=Function,yt=TypeError,xt=function(ne){try{return vt('"use strict"; return ('+ne+").constructor;")()}catch(ae){}},dt=Object.getOwnPropertyDescriptor;if(dt)try{dt({},"")}catch(ne){dt=null}var ft=function(){throw new yt},ct=dt?function(){try{return arguments.callee,ft}catch(ne){try{return dt(arguments,"callee").get}catch(ae){return ft}}}():ft,lt=rt("has-symbols")(),E=rt("has-proto")(),z=Object.getPrototypeOf||(E?function(ne){return ne.__proto__}:null),ot={},it=typeof Uint8Array=="undefined"||!z?St:z(Uint8Array),at={"%AggregateError%":typeof AggregateError=="undefined"?St:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?St:ArrayBuffer,"%ArrayIteratorPrototype%":lt&&z?z([][Symbol.iterator]()):St,"%AsyncFromSyncIteratorPrototype%":St,"%AsyncFunction%":ot,"%AsyncGenerator%":ot,"%AsyncGeneratorFunction%":ot,"%AsyncIteratorPrototype%":ot,"%Atomics%":typeof Atomics=="undefined"?St:Atomics,"%BigInt%":typeof BigInt=="undefined"?St:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?St:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?St:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?St:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?St:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?St:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?St:FinalizationRegistry,"%Function%":vt,"%GeneratorFunction%":ot,"%Int8Array%":typeof Int8Array=="undefined"?St:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?St:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?St:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lt&&z?z(z([][Symbol.iterator]())):St,"%JSON%":typeof JSON=="object"?JSON:St,"%Map%":typeof Map=="undefined"?St:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!lt||!z?St:z(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?St:Promise,"%Proxy%":typeof Proxy=="undefined"?St:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?St:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?St:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!lt||!z?St:z(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?St:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lt&&z?z(""[Symbol.iterator]()):St,"%Symbol%":lt?Symbol:St,"%SyntaxError%":pt,"%ThrowTypeError%":ct,"%TypedArray%":it,"%TypeError%":yt,"%Uint8Array%":typeof Uint8Array=="undefined"?St:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?St:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?St:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?St:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?St:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?St:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?St:WeakSet};if(z)try{null.error}catch(ne){var ut=z(z(ne));at["%Error.prototype%"]=ut}var wt=function ne(ae){var ve;if(ae==="%AsyncFunction%")ve=xt("async function () {}");else if(ae==="%GeneratorFunction%")ve=xt("function* () {}");else if(ae==="%AsyncGeneratorFunction%")ve=xt("async function* () {}");else if(ae==="%AsyncGenerator%"){var Kt=ne("%AsyncGeneratorFunction%");Kt&&(ve=Kt.prototype)}else if(ae==="%AsyncIteratorPrototype%"){var re=ne("%AsyncGenerator%");re&&z&&(ve=z(re.prototype))}return at[ae]=ve,ve},Et={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},At=rt("function-bind"),_t=rt("has"),Mt=At.call(Function.call,Array.prototype.concat),jt=At.call(Function.apply,Array.prototype.splice),Lt=At.call(Function.call,String.prototype.replace),It=At.call(Function.call,String.prototype.slice),Ut=At.call(Function.call,RegExp.prototype.exec),Xt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gt=/\\(\\)?/g,Yt=function(ae){var ve=It(ae,0,1),Kt=It(ae,-1);if(ve==="%"&&Kt!=="%")throw new pt("invalid intrinsic syntax, expected closing `%`");if(Kt==="%"&&ve!=="%")throw new pt("invalid intrinsic syntax, expected opening `%`");var re=[];return Lt(ae,Xt,function(we,Me,ke,me){re[re.length]=ke?Lt(me,Gt,"$1"):Me||we}),re},Ht=function(ae,ve){var Kt=ae,re;if(_t(Et,Kt)&&(re=Et[Kt],Kt="%"+re[0]+"%"),_t(at,Kt)){var we=at[Kt];if(we===ot&&(we=wt(Kt)),typeof we=="undefined"&&!ve)throw new yt("intrinsic "+ae+" exists, but is not available. Please file an issue!");return{alias:re,name:Kt,value:we}}throw new pt("intrinsic "+ae+" does not exist!")};kt.exports=function(ae,ve){if(typeof ae!="string"||ae.length===0)throw new yt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new yt('"allowMissing" argument must be a boolean');if(Ut(/^%?[^%]*%?$/,ae)===null)throw new pt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Kt=Yt(ae),re=Kt.length>0?Kt[0]:"",we=Ht("%"+re+"%",ve),Me=we.name,ke=we.value,me=!1,fe=we.alias;fe&&(re=fe[0],jt(Kt,Mt([0,1],fe)));for(var pe=1,_e=!0;pe<Kt.length;pe+=1){var je=Kt[pe],He=It(je,0,1),Se=It(je,-1);if((He==='"'||He==="'"||He==="`"||Se==='"'||Se==="'"||Se==="`")&&He!==Se)throw new pt("property names with quotes must have matching quotes");if((je==="constructor"||!_e)&&(me=!0),re+="."+je,Me="%"+re+"%",_t(at,Me))ke=at[Me];else if(ke!=null){if(!(je in ke)){if(!ve)throw new yt("base intrinsic for "+ae+" exists, but the property is not available.");return}if(dt&&pe+1>=Kt.length){var xe=dt(ke,je);_e=!!xe,_e&&"get"in xe&&!("originalValue"in xe.get)?ke=xe.get:ke=ke[je]}else _e=_t(ke,je),ke=ke[je];_e&&!me&&(at[Me]=ke)}}return ke}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(rt,kt,Ct){"use strict";var St=rt("get-intrinsic"),pt=St("%Object.getOwnPropertyDescriptor%",!0);if(pt)try{pt([],"length")}catch(vt){pt=null}kt.exports=pt},{"get-intrinsic":348}],350:[function(rt,kt,Ct){"use strict";var St={foo:{}},pt=Object;kt.exports=function(){return{__proto__:St}.foo===St.foo&&!({__proto__:null}instanceof pt)}},{}],351:[function(rt,kt,Ct){"use strict";var St=typeof Symbol!="undefined"&&Symbol,pt=rt("./shams");kt.exports=function(){return typeof St!="function"||typeof Symbol!="function"||typeof St("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:pt()}},{"./shams":352}],352:[function(rt,kt,Ct){"use strict";kt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var pt={},vt=Symbol("test"),yt=Object(vt);if(typeof vt=="string"||Object.prototype.toString.call(vt)!=="[object Symbol]"||Object.prototype.toString.call(yt)!=="[object Symbol]")return!1;var xt=42;pt[vt]=xt;for(vt in pt)return!1;if(typeof Object.keys=="function"&&Object.keys(pt).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(pt).length!==0)return!1;var dt=Object.getOwnPropertySymbols(pt);if(dt.length!==1||dt[0]!==vt||!Object.prototype.propertyIsEnumerable.call(pt,vt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ft=Object.getOwnPropertyDescriptor(pt,vt);if(ft.value!==xt||ft.enumerable!==!0)return!1}return!0}},{}],353:[function(rt,kt,Ct){"use strict";var St=rt("has-symbols/shams");kt.exports=function(){return St()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(rt,kt,Ct){"use strict";var St=rt("function-bind");kt.exports=St.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(rt,kt,Ct){var St=rt("http"),pt=rt("url"),vt=kt.exports;for(var yt in St)St.hasOwnProperty(yt)&&(vt[yt]=St[yt]);vt.request=function(dt,ft){return dt=xt(dt),St.request.call(this,dt,ft)},vt.get=function(dt,ft){return dt=xt(dt),St.get.call(this,dt,ft)};function xt(dt){if(typeof dt=="string"&&(dt=pt.parse(dt)),dt.protocol||(dt.protocol="https:"),dt.protocol!=="https:")throw new Error('Protocol "'+dt.protocol+'" not supported. Expected "https:"');return dt}},{http:468,url:472}],356:[function(rt,kt,Ct){"use strict";var St=rt("util"),pt=rt("ms");kt.exports=function(vt){if(typeof vt=="number")return vt;var yt=pt(vt);if(yt===void 0){var xt=new Error(St.format("humanize-ms(%j) result undefined",vt));console.warn(xt.stack)}return yt}},{ms:376,util:419}],357:[function(rt,kt,Ct){Ct.read=function(St,pt,vt,yt,xt){var dt,ft,ct=xt*8-yt-1,lt=(1<<ct)-1,E=lt>>1,z=-7,ot=vt?xt-1:0,it=vt?-1:1,at=St[pt+ot];for(ot+=it,dt=at&(1<<-z)-1,at>>=-z,z+=ct;z>0;dt=dt*256+St[pt+ot],ot+=it,z-=8);for(ft=dt&(1<<-z)-1,dt>>=-z,z+=yt;z>0;ft=ft*256+St[pt+ot],ot+=it,z-=8);if(dt===0)dt=1-E;else{if(dt===lt)return ft?NaN:(at?-1:1)*(1/0);ft=ft+Math.pow(2,yt),dt=dt-E}return(at?-1:1)*ft*Math.pow(2,dt-yt)},Ct.write=function(St,pt,vt,yt,xt,dt){var ft,ct,lt,E=dt*8-xt-1,z=(1<<E)-1,ot=z>>1,it=xt===23?Math.pow(2,-24)-Math.pow(2,-77):0,at=yt?0:dt-1,ut=yt?1:-1,wt=pt<0||pt===0&&1/pt<0?1:0;for(pt=Math.abs(pt),isNaN(pt)||pt===1/0?(ct=isNaN(pt)?1:0,ft=z):(ft=Math.floor(Math.log(pt)/Math.LN2),pt*(lt=Math.pow(2,-ft))<1&&(ft--,lt*=2),ft+ot>=1?pt+=it/lt:pt+=it*Math.pow(2,1-ot),pt*lt>=2&&(ft++,lt/=2),ft+ot>=z?(ct=0,ft=z):ft+ot>=1?(ct=(pt*lt-1)*Math.pow(2,xt),ft=ft+ot):(ct=pt*Math.pow(2,ot-1)*Math.pow(2,xt),ft=0));xt>=8;St[vt+at]=ct&255,at+=ut,ct/=256,xt-=8);for(ft=ft<<xt|ct,E+=xt;E>0;St[vt+at]=ft&255,at+=ut,ft/=256,E-=8);St[vt+at-ut]|=wt*128}},{}],358:[function(rt,kt,Ct){"use strict";var St=[rt("./nextTick"),rt("./queueMicrotask"),rt("./mutation.js"),rt("./messageChannel"),rt("./stateChange"),rt("./timeout")],pt,vt,yt=-1,xt=[],dt=!1;function ft(){!pt||!vt||(pt=!1,vt.length?xt=vt.concat(xt):yt=-1,xt.length&&ct())}function ct(){if(!pt){dt=!1,pt=!0;for(var at=xt.length,ut=setTimeout(ft);at;){for(vt=xt,xt=[];vt&&++yt<at;)vt[yt].run();yt=-1,at=xt.length}vt=null,yt=-1,pt=!1,clearTimeout(ut)}}for(var lt,E=-1,z=St.length;++E<z;)if(St[E]&&St[E].test&&St[E].test()){lt=St[E].install(ct);break}function ot(at,ut){this.fun=at,this.array=ut}ot.prototype.run=function(){var at=this.fun,ut=this.array;switch(ut.length){case 0:return at();case 1:return at(ut[0]);case 2:return at(ut[0],ut[1]);case 3:return at(ut[0],ut[1],ut[2]);default:return at.apply(null,ut)}},kt.exports=it;function it(at){var ut=new Array(arguments.length-1);if(arguments.length>1)for(var wt=1;wt<arguments.length;wt++)ut[wt-1]=arguments[wt];xt.push(new ot(at,ut)),!dt&&!pt&&(dt=!0,lt())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(rt,kt,Ct){(function(St){(function(){"use strict";Ct.test=function(){return St.setImmediate?!1:typeof St.MessageChannel!="undefined"},Ct.install=function(pt){var vt=new St.MessageChannel;return vt.port1.onmessage=pt,function(){vt.port2.postMessage(0)}}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=St.MutationObserver||St.WebKitMutationObserver;Ct.test=function(){return pt},Ct.install=function(vt){var yt=0,xt=new pt(vt),dt=St.document.createTextNode("");return xt.observe(dt,{characterData:!0}),function(){dt.data=yt=++yt%2}}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(rt,kt,Ct){(function(St){(function(){"use strict";Ct.test=function(){return typeof St.queueMicrotask=="function"},Ct.install=function(pt){return function(){St.queueMicrotask(pt)}}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(rt,kt,Ct){(function(St){(function(){"use strict";Ct.test=function(){return"document"in St&&"onreadystatechange"in St.document.createElement("script")},Ct.install=function(pt){return function(){var vt=St.document.createElement("script");return vt.onreadystatechange=function(){pt(),vt.onreadystatechange=null,vt.parentNode.removeChild(vt),vt=null},St.document.documentElement.appendChild(vt),pt}}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(rt,kt,Ct){"use strict";Ct.test=function(){return!0},Ct.install=function(St){return function(){setTimeout(St,0)}}},{}],364:[function(rt,kt,Ct){typeof Object.create=="function"?kt.exports=function(pt,vt){vt&&(pt.super_=vt,pt.prototype=Object.create(vt.prototype,{constructor:{value:pt,enumerable:!1,writable:!0,configurable:!0}}))}:kt.exports=function(pt,vt){if(vt){pt.super_=vt;var yt=function(){};yt.prototype=vt.prototype,pt.prototype=new yt,pt.prototype.constructor=pt}}},{}],365:[function(rt,kt,Ct){"use strict";var St=rt("has-tostringtag/shams")(),pt=rt("call-bind/callBound"),vt=pt("Object.prototype.toString"),yt=function(ct){return St&&ct&&typeof ct=="object"&&Symbol.toStringTag in ct?!1:vt(ct)==="[object Arguments]"},xt=function(ct){return yt(ct)?!0:ct!==null&&typeof ct=="object"&&typeof ct.length=="number"&&ct.length>=0&&vt(ct)!=="[object Array]"&&vt(ct.callee)==="[object Function]"},dt=function(){return yt(arguments)}();yt.isLegacyArguments=xt,kt.exports=dt?yt:xt},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(rt,kt,Ct){kt.exports=function(vt){return vt!=null&&(St(vt)||pt(vt)||!!vt._isBuffer)};function St(vt){return!!vt.constructor&&typeof vt.constructor.isBuffer=="function"&&vt.constructor.isBuffer(vt)}function pt(vt){return typeof vt.readFloatLE=="function"&&typeof vt.slice=="function"&&St(vt.slice(0,0))}},{}],367:[function(rt,kt,Ct){"use strict";var St=Function.prototype.toString,pt=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,vt,yt;if(typeof pt=="function"&&typeof Object.defineProperty=="function")try{vt=Object.defineProperty({},"length",{get:function(){throw yt}}),yt={},pt(function(){throw 42},null,vt)}catch(_t){_t!==yt&&(pt=null)}else pt=null;var xt=/^\s*class\b/,dt=function(Mt){try{var jt=St.call(Mt);return xt.test(jt)}catch(Lt){return!1}},ft=function(Mt){try{return dt(Mt)?!1:(St.call(Mt),!0)}catch(jt){return!1}},ct=Object.prototype.toString,lt="[object Object]",E="[object Function]",z="[object GeneratorFunction]",ot="[object HTMLAllCollection]",it="[object HTML document.all class]",at="[object HTMLCollection]",ut=typeof Symbol=="function"&&!!Symbol.toStringTag,wt=!(0 in[,]),Et=function(){return!1};if(typeof document=="object"){var At=document.all;ct.call(At)===ct.call(document.all)&&(Et=function(Mt){if((wt||!Mt)&&(typeof Mt=="undefined"||typeof Mt=="object"))try{var jt=ct.call(Mt);return(jt===ot||jt===it||jt===at||jt===lt)&&Mt("")==null}catch(Lt){}return!1})}kt.exports=pt?function(Mt){if(Et(Mt))return!0;if(!Mt||typeof Mt!="function"&&typeof Mt!="object")return!1;try{pt(Mt,null,vt)}catch(jt){if(jt!==yt)return!1}return!dt(Mt)&&ft(Mt)}:function(Mt){if(Et(Mt))return!0;if(!Mt||typeof Mt!="function"&&typeof Mt!="object")return!1;if(ut)return ft(Mt);if(dt(Mt))return!1;var jt=ct.call(Mt);return jt!==E&&jt!==z&&!/^\[object HTML/.test(jt)?!1:ft(Mt)}},{}],368:[function(rt,kt,Ct){"use strict";var St=Object.prototype.toString,pt=Function.prototype.toString,vt=/^\s*(?:function)?\*/,yt=rt("has-tostringtag/shams")(),xt=Object.getPrototypeOf,dt=function(){if(!yt)return!1;try{return Function("return function*() {}")()}catch(ct){}},ft;kt.exports=function(lt){if(typeof lt!="function")return!1;if(vt.test(pt.call(lt)))return!0;if(!yt){var E=St.call(lt);return E==="[object GeneratorFunction]"}if(!xt)return!1;if(typeof ft=="undefined"){var z=dt();ft=z?xt(z):!1}return xt(lt)===ft}},{"has-tostringtag/shams":353}],369:[function(rt,kt,Ct){"use strict";var St=rt("which-typed-array");kt.exports=function(vt){return!!St(vt)}},{"which-typed-array":420}],370:[function(rt,kt,Ct){var St={}.toString;kt.exports=Array.isArray||function(pt){return St.call(pt)=="[object Array]"}},{}],371:[function(rt,kt,Ct){(function(St){(function(){(function(pt,vt){typeof Ct=="object"&&typeof kt!="undefined"?kt.exports=vt(pt):typeof Rt=="function"&&Rt.amd?Rt(vt):vt(pt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof St!="undefined"?St:this,function(pt){"use strict";pt=pt||{};var vt=pt.Base64,yt="2.6.4",xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dt=function(ae){for(var ve={},Kt=0,re=ae.length;Kt<re;Kt++)ve[ae.charAt(Kt)]=Kt;return ve}(xt),ft=String.fromCharCode,ct=function(ae){if(ae.length<2){var ve=ae.charCodeAt(0);return ve<128?ae:ve<2048?ft(192|ve>>>6)+ft(128|ve&63):ft(224|ve>>>12&15)+ft(128|ve>>>6&63)+ft(128|ve&63)}else{var ve=65536+(ae.charCodeAt(0)-55296)*1024+(ae.charCodeAt(1)-56320);return ft(240|ve>>>18&7)+ft(128|ve>>>12&63)+ft(128|ve>>>6&63)+ft(128|ve&63)}},lt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(ae){return ae.replace(lt,ct)},z=function(ae){var ve=[0,2,1][ae.length%3],Kt=ae.charCodeAt(0)<<16|(ae.length>1?ae.charCodeAt(1):0)<<8|(ae.length>2?ae.charCodeAt(2):0),re=[xt.charAt(Kt>>>18),xt.charAt(Kt>>>12&63),ve>=2?"=":xt.charAt(Kt>>>6&63),ve>=1?"=":xt.charAt(Kt&63)];return re.join("")},ot=pt.btoa&&typeof pt.btoa=="function"?function(ae){return pt.btoa(ae)}:function(ae){if(ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ae.replace(/[\s\S]{1,3}/g,z)},it=function(ae){return ot(E(String(ae)))},at=function(ae){return ae.replace(/[+\/]/g,function(ve){return ve=="+"?"-":"_"}).replace(/=/g,"")},ut=function(ae,ve){return ve?at(it(ae)):it(ae)},wt=function(ae){return ut(ae,!0)},Et;pt.Uint8Array&&(Et=function(ae,ve){for(var Kt="",re=0,we=ae.length;re<we;re+=3){var Me=ae[re],ke=ae[re+1],me=ae[re+2],fe=Me<<16|ke<<8|me;Kt+=xt.charAt(fe>>>18)+xt.charAt(fe>>>12&63)+(typeof ke!="undefined"?xt.charAt(fe>>>6&63):"=")+(typeof me!="undefined"?xt.charAt(fe&63):"=")}return ve?at(Kt):Kt});var At=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,_t=function(ae){switch(ae.length){case 4:var ve=(7&ae.charCodeAt(0))<<18|(63&ae.charCodeAt(1))<<12|(63&ae.charCodeAt(2))<<6|63&ae.charCodeAt(3),Kt=ve-65536;return ft((Kt>>>10)+55296)+ft((Kt&1023)+56320);case 3:return ft((15&ae.charCodeAt(0))<<12|(63&ae.charCodeAt(1))<<6|63&ae.charCodeAt(2));default:return ft((31&ae.charCodeAt(0))<<6|63&ae.charCodeAt(1))}},Mt=function(ae){return ae.replace(At,_t)},jt=function(ae){var ve=ae.length,Kt=ve%4,re=(ve>0?dt[ae.charAt(0)]<<18:0)|(ve>1?dt[ae.charAt(1)]<<12:0)|(ve>2?dt[ae.charAt(2)]<<6:0)|(ve>3?dt[ae.charAt(3)]:0),we=[ft(re>>>16),ft(re>>>8&255),ft(re&255)];return we.length-=[0,0,2,1][Kt],we.join("")},Lt=pt.atob&&typeof pt.atob=="function"?function(ae){return pt.atob(ae)}:function(ae){return ae.replace(/\S{1,4}/g,jt)},It=function(ae){return Lt(String(ae).replace(/[^A-Za-z0-9\+\/]/g,""))},Ut=function(ae){return Mt(Lt(ae))},Xt=function(ae){return String(ae).replace(/[-_]/g,function(ve){return ve=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Gt=function(ae){return Ut(Xt(ae))},Yt;pt.Uint8Array&&(Yt=function(ae){return Uint8Array.from(It(Xt(ae)),function(ve){return ve.charCodeAt(0)})});var Ht=function(){var ae=pt.Base64;return pt.Base64=vt,ae};if(pt.Base64={VERSION:yt,atob:It,btoa:ot,fromBase64:Gt,toBase64:ut,utob:E,encode:ut,encodeURI:wt,btou:Mt,decode:Gt,noConflict:Ht,fromUint8Array:Et,toUint8Array:Yt},typeof Object.defineProperty=="function"){var ne=function(ae){return{value:ae,enumerable:!1,writable:!0,configurable:!0}};pt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ne(function(){return Gt(this)})),Object.defineProperty(String.prototype,"toBase64",ne(function(ae){return ut(this,ae)})),Object.defineProperty(String.prototype,"toBase64URI",ne(function(){return ut(this,!0)}))}}return pt.Meteor&&(Base64=pt.Base64),typeof kt!="undefined"&&kt.exports?kt.exports.Base64=pt.Base64:typeof Rt=="function"&&Rt.amd&&Rt([],function(){return pt.Base64}),{Base64:pt.Base64}})}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(rt,kt,Ct){"use strict";kt.exports=pt;var St=Object.prototype.hasOwnProperty;function pt(vt,yt,xt){if(!vt)throw new TypeError("argument dest is required");if(!yt)throw new TypeError("argument src is required");return xt===void 0&&(xt=!0),Object.getOwnPropertyNames(yt).forEach(function(ft){if(!(!xt&&St.call(vt,ft))){var ct=Object.getOwnPropertyDescriptor(yt,ft);Object.defineProperty(vt,ft,ct)}}),vt}},{}],373:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.regexp.constructor.js"),rt("core-js/modules/es.regexp.to-string.js");function St(){this._types=Object.create(null),this._extensions=Object.create(null);for(var pt=0;pt<arguments.length;pt++)this.define(arguments[pt]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}St.prototype.define=function(pt,vt){for(var yt in pt){var xt=pt[yt].map(function(lt){return lt.toLowerCase()});yt=yt.toLowerCase();for(var dt=0;dt<xt.length;dt++){var ft=xt[dt];if(ft[0]!=="*"){if(!vt&&ft in this._types)throw new Error('Attempt to change mapping for "'+ft+'" extension from "'+this._types[ft]+'" to "'+yt+'". Pass `force=true` to allow this, otherwise remove "'+ft+'" from the list of extensions for "'+yt+'".');this._types[ft]=yt}}if(vt||!this._extensions[yt]){var ct=xt[0];this._extensions[yt]=ct[0]!=="*"?ct:ct.substr(1)}}},St.prototype.getType=function(pt){pt=String(pt);var vt=pt.replace(/^.*[/\\]/,"").toLowerCase(),yt=vt.replace(/^.*\./,"").toLowerCase(),xt=vt.length<pt.length,dt=yt.length<vt.length-1;return(dt||!xt)&&this._types[yt]||null},St.prototype.getExtension=function(pt){return pt=/^\s*([^;\s]*)/.test(pt)&&RegExp.$1,pt&&this._extensions[pt.toLowerCase()]||null},kt.exports=St},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(rt,kt,Ct){"use strict";var St=rt("./Mime");kt.exports=new St(rt("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(rt,kt,Ct){"use strict";kt.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(rt,kt,Ct){var St=1e3,pt=St*60,vt=pt*60,yt=vt*24,xt=yt*7,dt=yt*365.25;kt.exports=function(z,ot){ot=ot||{};var it=typeof z;if(it==="string"&&z.length>0)return ft(z);if(it==="number"&&isFinite(z))return ot.long?lt(z):ct(z);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(z))};function ft(z){if(z=String(z),!(z.length>100)){var ot=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(z);if(ot){var it=parseFloat(ot[1]),at=(ot[2]||"ms").toLowerCase();switch(at){case"years":case"year":case"yrs":case"yr":case"y":return it*dt;case"weeks":case"week":case"w":return it*xt;case"days":case"day":case"d":return it*yt;case"hours":case"hour":case"hrs":case"hr":case"h":return it*vt;case"minutes":case"minute":case"mins":case"min":case"m":return it*pt;case"seconds":case"second":case"secs":case"sec":case"s":return it*St;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return it;default:return}}}}function ct(z){var ot=Math.abs(z);return ot>=yt?Math.round(z/yt)+"d":ot>=vt?Math.round(z/vt)+"h":ot>=pt?Math.round(z/pt)+"m":ot>=St?Math.round(z/St)+"s":z+"ms"}function lt(z){var ot=Math.abs(z);return ot>=yt?E(z,ot,yt,"day"):ot>=vt?E(z,ot,vt,"hour"):ot>=pt?E(z,ot,pt,"minute"):ot>=St?E(z,ot,St,"second"):z+" ms"}function E(z,ot,it,at){var ut=ot>=it*1.5;return Math.round(z/it)+" "+at+(ut?"s":"")}},{}],377:[function(rt,kt,Ct){"use strict";var St=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable;function yt(dt){if(dt==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(dt)}function xt(){try{if(!Object.assign)return!1;var dt=new String("abc");if(dt[5]="de",Object.getOwnPropertyNames(dt)[0]==="5")return!1;for(var ft={},ct=0;ct<10;ct++)ft["_"+String.fromCharCode(ct)]=ct;var lt=Object.getOwnPropertyNames(ft).map(function(z){return ft[z]});if(lt.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(z){E[z]=z}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch(z){return!1}}kt.exports=xt()?Object.assign:function(dt,ft){for(var ct,lt=yt(dt),E,z=1;z<arguments.length;z++){ct=Object(arguments[z]);for(var ot in ct)pt.call(ct,ot)&&(lt[ot]=ct[ot]);if(St){E=St(ct);for(var it=0;it<E.length;it++)vt.call(ct,E[it])&&(lt[E[it]]=ct[E[it]])}}return lt}},{}],378:[function(rt,kt,Ct){(function(St){(function(){"use strict";function pt(dt){if(typeof dt!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(dt))}function vt(dt,ft){for(var ct="",lt=0,E=-1,z=0,ot,it=0;it<=dt.length;++it){if(it<dt.length)ot=dt.charCodeAt(it);else{if(ot===47)break;ot=47}if(ot===47){if(!(E===it-1||z===1))if(E!==it-1&&z===2){if(ct.length<2||lt!==2||ct.charCodeAt(ct.length-1)!==46||ct.charCodeAt(ct.length-2)!==46){if(ct.length>2){var at=ct.lastIndexOf("/");if(at!==ct.length-1){at===-1?(ct="",lt=0):(ct=ct.slice(0,at),lt=ct.length-1-ct.lastIndexOf("/")),E=it,z=0;continue}}else if(ct.length===2||ct.length===1){ct="",lt=0,E=it,z=0;continue}}ft&&(ct.length>0?ct+="/..":ct="..",lt=2)}else ct.length>0?ct+="/"+dt.slice(E+1,it):ct=dt.slice(E+1,it),lt=it-E-1;E=it,z=0}else ot===46&&z!==-1?++z:z=-1}return ct}function yt(dt,ft){var ct=ft.dir||ft.root,lt=ft.base||(ft.name||"")+(ft.ext||"");return ct?ct===ft.root?ct+lt:ct+dt+lt:lt}var xt={resolve:function(){for(var ft="",ct=!1,lt,E=arguments.length-1;E>=-1&&!ct;E--){var z;E>=0?z=arguments[E]:(lt===void 0&&(lt=St.cwd()),z=lt),pt(z),z.length!==0&&(ft=z+"/"+ft,ct=z.charCodeAt(0)===47)}return ft=vt(ft,!ct),ct?ft.length>0?"/"+ft:"/":ft.length>0?ft:"."},normalize:function(ft){if(pt(ft),ft.length===0)return".";var ct=ft.charCodeAt(0)===47,lt=ft.charCodeAt(ft.length-1)===47;return ft=vt(ft,!ct),ft.length===0&&!ct&&(ft="."),ft.length>0&&lt&&(ft+="/"),ct?"/"+ft:ft},isAbsolute:function(ft){return pt(ft),ft.length>0&&ft.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ft,ct=0;ct<arguments.length;++ct){var lt=arguments[ct];pt(lt),lt.length>0&&(ft===void 0?ft=lt:ft+="/"+lt)}return ft===void 0?".":xt.normalize(ft)},relative:function(ft,ct){if(pt(ft),pt(ct),ft===ct||(ft=xt.resolve(ft),ct=xt.resolve(ct),ft===ct))return"";for(var lt=1;lt<ft.length&&ft.charCodeAt(lt)===47;++lt);for(var E=ft.length,z=E-lt,ot=1;ot<ct.length&&ct.charCodeAt(ot)===47;++ot);for(var it=ct.length,at=it-ot,ut=z<at?z:at,wt=-1,Et=0;Et<=ut;++Et){if(Et===ut){if(at>ut){if(ct.charCodeAt(ot+Et)===47)return ct.slice(ot+Et+1);if(Et===0)return ct.slice(ot+Et)}else z>ut&&(ft.charCodeAt(lt+Et)===47?wt=Et:Et===0&&(wt=0));break}var At=ft.charCodeAt(lt+Et),_t=ct.charCodeAt(ot+Et);if(At!==_t)break;At===47&&(wt=Et)}var Mt="";for(Et=lt+wt+1;Et<=E;++Et)(Et===E||ft.charCodeAt(Et)===47)&&(Mt.length===0?Mt+="..":Mt+="/..");return Mt.length>0?Mt+ct.slice(ot+wt):(ot+=wt,ct.charCodeAt(ot)===47&&++ot,ct.slice(ot))},_makeLong:function(ft){return ft},dirname:function(ft){if(pt(ft),ft.length===0)return".";for(var ct=ft.charCodeAt(0),lt=ct===47,E=-1,z=!0,ot=ft.length-1;ot>=1;--ot)if(ct=ft.charCodeAt(ot),ct===47){if(!z){E=ot;break}}else z=!1;return E===-1?lt?"/":".":lt&&E===1?"//":ft.slice(0,E)},basename:function(ft,ct){if(ct!==void 0&&typeof ct!="string")throw new TypeError('"ext" argument must be a string');pt(ft);var lt=0,E=-1,z=!0,ot;if(ct!==void 0&&ct.length>0&&ct.length<=ft.length){if(ct.length===ft.length&&ct===ft)return"";var it=ct.length-1,at=-1;for(ot=ft.length-1;ot>=0;--ot){var ut=ft.charCodeAt(ot);if(ut===47){if(!z){lt=ot+1;break}}else at===-1&&(z=!1,at=ot+1),it>=0&&(ut===ct.charCodeAt(it)?--it===-1&&(E=ot):(it=-1,E=at))}return lt===E?E=at:E===-1&&(E=ft.length),ft.slice(lt,E)}else{for(ot=ft.length-1;ot>=0;--ot)if(ft.charCodeAt(ot)===47){if(!z){lt=ot+1;break}}else E===-1&&(z=!1,E=ot+1);return E===-1?"":ft.slice(lt,E)}},extname:function(ft){pt(ft);for(var ct=-1,lt=0,E=-1,z=!0,ot=0,it=ft.length-1;it>=0;--it){var at=ft.charCodeAt(it);if(at===47){if(!z){lt=it+1;break}continue}E===-1&&(z=!1,E=it+1),at===46?ct===-1?ct=it:ot!==1&&(ot=1):ct!==-1&&(ot=-1)}return ct===-1||E===-1||ot===0||ot===1&&ct===E-1&&ct===lt+1?"":ft.slice(ct,E)},format:function(ft){if(ft===null||typeof ft!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ft);return yt("/",ft)},parse:function(ft){pt(ft);var ct={root:"",dir:"",base:"",ext:"",name:""};if(ft.length===0)return ct;var lt=ft.charCodeAt(0),E=lt===47,z;E?(ct.root="/",z=1):z=0;for(var ot=-1,it=0,at=-1,ut=!0,wt=ft.length-1,Et=0;wt>=z;--wt){if(lt=ft.charCodeAt(wt),lt===47){if(!ut){it=wt+1;break}continue}at===-1&&(ut=!1,at=wt+1),lt===46?ot===-1?ot=wt:Et!==1&&(Et=1):ot!==-1&&(Et=-1)}return ot===-1||at===-1||Et===0||Et===1&&ot===at-1&&ot===it+1?at!==-1&&(it===0&&E?ct.base=ct.name=ft.slice(1,at):ct.base=ct.name=ft.slice(it,at)):(it===0&&E?(ct.name=ft.slice(1,ot),ct.base=ft.slice(1,at)):(ct.name=ft.slice(it,ot),ct.base=ft.slice(it,at)),ct.ext=ft.slice(ot,at)),it>0?ct.dir=ft.slice(0,it-1):E&&(ct.dir="/"),ct},sep:"/",delimiter:":",win32:null,posix:null};xt.posix=xt,kt.exports=xt}).call(this)}).call(this,rt("_process"))},{_process:467}],379:[function(rt,kt,Ct){(function(St){(function(){(function(){"use strict";var pt={function:!0,object:!0},vt=pt[typeof window]&&window||this,yt=vt,xt=pt[typeof Ct]&&Ct,dt=pt[typeof kt]&&kt&&!kt.nodeType&&kt,ft=xt&&dt&&typeof St=="object"&&St;ft&&(ft.global===ft||ft.window===ft||ft.self===ft)&&(vt=ft);var ct=Math.pow(2,53)-1,lt=/\bOpera/,E=this,z=Object.prototype,ot=z.hasOwnProperty,it=z.toString;function at(Gt){return Gt=String(Gt),Gt.charAt(0).toUpperCase()+Gt.slice(1)}function ut(Gt,Yt,Ht){var ne={"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 Yt&&Ht&&/^Win/i.test(Gt)&&!/^Windows Phone /i.test(Gt)&&(ne=ne[/[\d.]+$/.exec(Gt)])&&(Gt="Windows "+ne),Gt=String(Gt),Yt&&Ht&&(Gt=Gt.replace(RegExp(Yt,"i"),Ht)),Gt=Et(Gt.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]),Gt}function wt(Gt,Yt){var Ht=-1,ne=Gt?Gt.length:0;if(typeof ne=="number"&&ne>-1&&ne<=ct)for(;++Ht<ne;)Yt(Gt[Ht],Ht,Gt);else At(Gt,Yt)}function Et(Gt){return Gt=It(Gt),/^(?:webOS|i(?:OS|P))/.test(Gt)?Gt:at(Gt)}function At(Gt,Yt){for(var Ht in Gt)ot.call(Gt,Ht)&&Yt(Gt[Ht],Ht,Gt)}function _t(Gt){return Gt==null?at(Gt):it.call(Gt).slice(8,-1)}function Mt(Gt,Yt){var Ht=Gt!=null?typeof Gt[Yt]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ht)&&(Ht=="object"?!!Gt[Yt]:!0)}function jt(Gt){return String(Gt).replace(/([ -])(?!$)/g,"$1?")}function Lt(Gt,Yt){var Ht=null;return wt(Gt,function(ne,ae){Ht=Yt(Ht,ne,ae,Gt)}),Ht}function It(Gt){return String(Gt).replace(/^ +| +$/g,"")}function Ut(Gt){var Yt=vt,Ht=Gt&&typeof Gt=="object"&&_t(Gt)!="String";Ht&&(Yt=Gt,Gt=null);var ne=Yt.navigator||{},ae=ne.userAgent||"";Gt||(Gt=ae);var ve=Ht||E==yt,Kt=Ht?!!ne.likeChrome:/\bChrome\b/.test(Gt)&&!/internal|\n/i.test(it.toString()),re="Object",we=Ht?re:"ScriptBridgingProxyObject",Me=Ht?re:"Environment",ke=Ht&&Yt.java?"JavaPackage":_t(Yt.java),me=Ht?re:"RuntimeObject",fe=/\bJava/.test(ke)&&Yt.java,pe=fe&&_t(Yt.environment)==Me,_e=fe?"a":"\u03B1",je=fe?"b":"\u03B2",He=Yt.document||{},Se=Yt.operamini||Yt.opera,xe=lt.test(xe=Ht&&Se?Se["[[Class]]"]:_t(Se))?xe:Se=null,le,Ne=Gt,se=[],Ae=null,Xe=Gt==ae,Be=Xe&&Se&&typeof Se.version=="function"&&Se.version(),Te,ue=Wt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),$t=te(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),he=Jt([{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"]),ye=Bt({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Qt=ge(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Wt(Ze){return Lt(Ze,function(nn,fn){return nn||RegExp("\\b"+(fn.pattern||jt(fn))+"\\b","i").exec(Gt)&&(fn.label||fn)})}function Bt(Ze){return Lt(Ze,function(nn,fn,An){return nn||(fn[he]||fn[/^[a-z]+(?: +[a-z]+\b)*/i.exec(he)]||RegExp("\\b"+jt(An)+"(?:\\b|\\w*\\d)","i").exec(Gt))&&An})}function te(Ze){return Lt(Ze,function(nn,fn){return nn||RegExp("\\b"+(fn.pattern||jt(fn))+"\\b","i").exec(Gt)&&(fn.label||fn)})}function ge(Ze){return Lt(Ze,function(nn,fn){var An=fn.pattern||jt(fn);return!nn&&(nn=RegExp("\\b"+An+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Gt))&&(nn=ut(nn,An,fn.label||fn)),nn})}function Jt(Ze){return Lt(Ze,function(nn,fn){var An=fn.pattern||jt(fn);return!nn&&(nn=RegExp("\\b"+An+" *\\d+[.\\w_]*","i").exec(Gt)||RegExp("\\b"+An+" *\\w+-[\\w]*","i").exec(Gt)||RegExp("\\b"+An+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Gt))&&((nn=String(fn.label&&!RegExp(An,"i").test(fn.label)?fn.label:nn).split("/"))[1]&&!/[\d.]+/.test(nn[0])&&(nn[0]+=" "+nn[1]),fn=fn.label||fn,nn=Et(nn[0].replace(RegExp(An,"i"),fn).replace(RegExp("; *(?:"+fn+"[_-])?","i")," ").replace(RegExp("("+fn+")[-_.]?(\\w)","i"),"$1 $2"))),nn})}function Ie(Ze){return Lt(Ze,function(nn,fn){return nn||(RegExp(fn+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Gt)||0)[1]||null})}function Ue(){return this.description||""}if(ue&&(ue=[ue]),/\bAndroid\b/.test(Qt)&&!he&&(le=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Gt))&&(he=It(le[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ye&&!he?he=Jt([ye]):ye&&he&&(he=he.replace(RegExp("^("+jt(ye)+")[-_.\\s]","i"),ye+" ").replace(RegExp("^("+jt(ye)+")[-_.]?(\\w)","i"),ye+" $2")),(le=/\bGoogle TV\b/.exec(he))&&(he=le[0]),/\bSimulator\b/i.test(Gt)&&(he=(he?he+" ":"")+"Simulator"),$t=="Opera Mini"&&/\bOPiOS\b/.test(Gt)&&se.push("running in Turbo/Uncompressed mode"),$t=="IE"&&/\blike iPhone OS\b/.test(Gt)?(le=Ut(Gt.replace(/like iPhone OS/,"")),ye=le.manufacturer,he=le.product):/^iP/.test(he)?($t||($t="Safari"),Qt="iOS"+((le=/ OS ([\d_]+)/i.exec(Gt))?" "+le[1].replace(/_/g,"."):"")):$t=="Konqueror"&&/^Linux\b/i.test(Qt)?Qt="Kubuntu":ye&&ye!="Google"&&(/Chrome/.test($t)&&!/\bMobile Safari\b/i.test(Gt)||/\bVita\b/.test(he))||/\bAndroid\b/.test(Qt)&&/^Chrome/.test($t)&&/\bVersion\//i.test(Gt)?($t="Android Browser",Qt=/\bAndroid\b/.test(Qt)?Qt:"Android"):$t=="Silk"?(/\bMobi/i.test(Gt)||(Qt="Android",se.unshift("desktop mode")),/Accelerated *= *true/i.test(Gt)&&se.unshift("accelerated")):$t=="UC Browser"&&/\bUCWEB\b/.test(Gt)?se.push("speed mode"):$t=="PaleMoon"&&(le=/\bFirefox\/([\d.]+)\b/.exec(Gt))?se.push("identifying as Firefox "+le[1]):$t=="Firefox"&&(le=/\b(Mobile|Tablet|TV)\b/i.exec(Gt))?(Qt||(Qt="Firefox OS"),he||(he=le[1])):!$t||(le=!/\bMinefield\b/i.test(Gt)&&/\b(?:Firefox|Safari)\b/.exec($t))?($t&&!he&&/[\/,]|^[^(]+?\)/.test(Gt.slice(Gt.indexOf(le+"/")+8))&&($t=null),(le=he||ye||Qt)&&(he||ye||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Qt))&&($t=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Qt)?Qt:le)+" Browser")):$t=="Electron"&&(le=(/\bChrome\/([\d.]+)\b/.exec(Gt)||0)[1])&&se.push("Chromium "+le),Be||(Be=Ie(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",jt($t),"(?:Firefox|Minefield|NetFront)"])),(le=ue=="iCab"&&parseFloat(Be)>3&&"WebKit"||/\bOpera\b/.test($t)&&(/\bOPR\b/.test(Gt)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Gt)&&!/^(?:Trident|EdgeHTML)$/.test(ue)&&"WebKit"||!ue&&/\bMSIE\b/i.test(Gt)&&(Qt=="Mac OS"?"Tasman":"Trident")||ue=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test($t)&&"NetFront")&&(ue=[le]),$t=="IE"&&(le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Gt)||0)[1])?($t+=" Mobile",Qt="Windows Phone "+(/\+$/.test(le)?le:le+".x"),se.unshift("desktop mode")):/\bWPDesktop\b/i.test(Gt)?($t="IE Mobile",Qt="Windows Phone 8.x",se.unshift("desktop mode"),Be||(Be=(/\brv:([\d.]+)/.exec(Gt)||0)[1])):$t!="IE"&&ue=="Trident"&&(le=/\brv:([\d.]+)/.exec(Gt))&&($t&&se.push("identifying as "+$t+(Be?" "+Be:"")),$t="IE",Be=le[1]),Xe){if(Mt(Yt,"global"))if(fe&&(le=fe.lang.System,Ne=le.getProperty("os.arch"),Qt=Qt||le.getProperty("os.name")+" "+le.getProperty("os.version")),pe){try{Be=Yt.require("ringo/engine").version.join("."),$t="RingoJS"}catch(Ze){(le=Yt.system)&&le.global.system==Yt.system&&($t="Narwhal",Qt||(Qt=le[0].os||null))}$t||($t="Rhino")}else typeof Yt.process=="object"&&!Yt.process.browser&&(le=Yt.process)&&(typeof le.versions=="object"&&(typeof le.versions.electron=="string"?(se.push("Node "+le.versions.node),$t="Electron",Be=le.versions.electron):typeof le.versions.nw=="string"&&(se.push("Chromium "+Be,"Node "+le.versions.node),$t="NW.js",Be=le.versions.nw)),$t||($t="Node.js",Ne=le.arch,Qt=le.platform,Be=/[\d.]+/.exec(le.version),Be=Be?Be[0]:null));else _t(le=Yt.runtime)==we?($t="Adobe AIR",Qt=le.flash.system.Capabilities.os):_t(le=Yt.phantom)==me?($t="PhantomJS",Be=(le=le.version||null)&&le.major+"."+le.minor+"."+le.patch):typeof He.documentMode=="number"&&(le=/\bTrident\/(\d+)/i.exec(Gt))?(Be=[Be,He.documentMode],(le=+le[1]+4)!=Be[1]&&(se.push("IE "+Be[1]+" mode"),ue&&(ue[1]=""),Be[1]=le),Be=$t=="IE"?String(Be[1].toFixed(1)):Be[0]):typeof He.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test($t)&&(se.push("masking as "+$t+" "+Be),$t="IE",Be="11.0",ue=["Trident"],Qt="Windows");Qt=Qt&&Et(Qt)}if(Be&&(le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Be)||/(?:alpha|beta)(?: ?\d)?/i.exec(Gt+";"+(Xe&&ne.appMinorVersion))||/\bMinefield\b/i.test(Gt)&&"a")&&(Ae=/b/i.test(le)?"beta":"alpha",Be=Be.replace(RegExp(le+"\\+?$"),"")+(Ae=="beta"?je:_e)+(/\d+\+?/.exec(le)||"")),$t=="Fennec"||$t=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Qt))$t="Firefox Mobile";else if($t=="Maxthon"&&Be)Be=Be.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))he=="Xbox 360"&&(Qt=null),he=="Xbox 360"&&/\bIEMobile\b/.test(Gt)&&se.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test($t)||$t&&!he&&!/Browser|Mobi/.test($t))&&(Qt=="Windows CE"||/Mobi/i.test(Gt)))$t+=" Mobile";else if($t=="IE"&&Xe)try{Yt.external===null&&se.unshift("platform preview")}catch(Ze){se.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test(Gt))&&(le=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Gt)||0)[1]||Be)?(le=[le,/BB10/.test(Gt)],Qt=(le[1]?(he=null,ye="BlackBerry"):"Device Software")+" "+le[0],Be=null):this!=At&&he!="Wii"&&(Xe&&Se||/Opera/.test($t)&&/\b(?:MSIE|Firefox)\b/i.test(Gt)||$t=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Qt)||$t=="IE"&&(Qt&&!/^Win/.test(Qt)&&Be>5.5||/\bWindows XP\b/.test(Qt)&&Be>8||Be==8&&!/\bTrident\b/.test(Gt)))&&!lt.test(le=Ut.call(At,Gt.replace(lt,"")+";"))&&le.name&&(le="ing as "+le.name+((le=le.version)?" "+le:""),lt.test($t)?(/\bIE\b/.test(le)&&Qt=="Mac OS"&&(Qt=null),le="identify"+le):(le="mask"+le,xe?$t=Et(xe.replace(/([a-z])([A-Z])/g,"$1 $2")):$t="Opera",/\bIE\b/.test(le)&&(Qt=null),Xe||(Be=null)),ue=["Presto"],se.push(le));(le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Gt)||0)[1])&&(le=[parseFloat(le.replace(/\.(\d)$/,".0$1")),le],$t=="Safari"&&le[1].slice(-1)=="+"?($t="WebKit Nightly",Ae="alpha",Be=le[1].slice(0,-1)):(Be==le[1]||Be==(le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Gt)||0)[1]))&&(Be=null),le[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Gt)||0)[1],le[0]==537.36&&le[2]==537.36&&parseFloat(le[1])>=28&&ue=="WebKit"&&(ue=["Blink"]),!Xe||!Kt&&!le[1]?(ue&&(ue[1]="like Safari"),le=(le=le[0],le<400?1:le<500?2:le<526?3:le<533?4:le<534?"4+":le<535?5:le<537?6:le<538?7:le<601?8:le<602?9:le<604?10:le<606?11:le<608?12:"12")):(ue&&(ue[1]="like Chrome"),le=le[1]||(le=le[0],le<530?1:le<532?2:le<532.05?3:le<533?4:le<534.03?5:le<534.07?6:le<534.1?7:le<534.13?8:le<534.16?9:le<534.24?10:le<534.3?11:le<535.01?12:le<535.02?"13+":le<535.07?15:le<535.11?16:le<535.19?17:le<536.05?18:le<536.1?19:le<537.01?20:le<537.11?"21+":le<537.13?23:le<537.18?24:le<537.24?25:le<537.36?26:ue!="Blink"?"27":"28")),ue&&(ue[1]+=" "+(le+=typeof le=="number"?".x":/[.+]/.test(le)?"":"+")),$t=="Safari"&&(!Be||parseInt(Be)>45)?Be=le:$t=="Chrome"&&/\bHeadlessChrome/i.test(Gt)&&se.unshift("headless")),$t=="Opera"&&(le=/\bzbov|zvav$/.exec(Qt))?($t+=" ",se.unshift("desktop mode"),le=="zvav"?($t+="Mini",Be=null):$t+="Mobile",Qt=Qt.replace(RegExp(" *"+le+"$"),"")):$t=="Safari"&&/\bChrome\b/.exec(ue&&ue[1])?(se.unshift("desktop mode"),$t="Chrome Mobile",Be=null,/\bOS X\b/.test(Qt)?(ye="Apple",Qt="iOS 4.3+"):Qt=null):/\bSRWare Iron\b/.test($t)&&!Be&&(Be=Ie("Chrome")),Be&&Be.indexOf(le=/[\d.]+$/.exec(Qt))==0&&Gt.indexOf("/"+le+"-")>-1&&(Qt=It(Qt.replace(le,""))),Qt&&Qt.indexOf($t)!=-1&&!RegExp($t+" OS").test(Qt)&&(Qt=Qt.replace(RegExp(" *"+jt($t)+" *"),"")),ue&&!/\b(?:Avant|Nook)\b/.test($t)&&(/Browser|Lunascape|Maxthon/.test($t)||$t!="Safari"&&/^iOS/.test(Qt)&&/\bSafari\b/.test(ue[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test($t)&&ue[1])&&(le=ue[ue.length-1])&&se.push(le),se.length&&(se=["("+se.join("; ")+")"]),ye&&he&&he.indexOf(ye)<0&&se.push("on "+ye),he&&se.push((/^on /.test(se[se.length-1])?"":"on ")+he),Qt&&(le=/ ([\d.+]+)$/.exec(Qt),Te=le&&Qt.charAt(Qt.length-le[0].length-1)=="/",Qt={architecture:32,family:le&&!Te?Qt.replace(le[0],""):Qt,version:le?le[1]:null,toString:function(){var Ze=this.version;return this.family+(Ze&&!Te?" "+Ze:"")+(this.architecture==64?" 64-bit":"")}}),(le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ne))&&!/\bi686\b/i.test(Ne)?(Qt&&(Qt.architecture=64,Qt.family=Qt.family.replace(RegExp(" *"+le),"")),$t&&(/\bWOW64\b/i.test(Gt)||Xe&&/\w(?:86|32)$/.test(ne.cpuClass||ne.platform)&&!/\bWin64; x64\b/i.test(Gt))&&se.unshift("32-bit")):Qt&&/^OS X/.test(Qt.family)&&$t=="Chrome"&&parseFloat(Be)>=39&&(Qt.architecture=64),Gt||(Gt=null);var Je={};return Je.description=Gt,Je.layout=ue&&ue[0],Je.manufacturer=ye,Je.name=$t,Je.prerelease=Ae,Je.product=he,Je.ua=Gt,Je.version=$t&&Be,Je.os=Qt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Je.parse=Ut,Je.toString=Ue,Je.version&&se.unshift(Be),Je.name&&se.unshift($t),Qt&&$t&&!(Qt==String(Qt).split(" ")[0]&&(Qt==$t.split(" ")[0]||he))&&se.push(he?"("+Qt+")":"on "+Qt),se.length&&(Je.description=se.join(" ")),Je}var Xt=Ut();typeof Rt=="function"&&typeof Rt.amd=="object"&&Rt.amd?(vt.platform=Xt,Rt(function(){return Xt})):xt&&dt?At(Xt,function(Gt,Yt){xt[Yt]=Gt}):vt.platform=Xt}).call(this)}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(rt,kt,Ct){(function(St){(function(){"use strict";typeof St=="undefined"||!St.version||St.version.indexOf("v0.")===0||St.version.indexOf("v1.")===0&&St.version.indexOf("v1.8.")!==0?kt.exports={nextTick:pt}:kt.exports=St;function pt(vt,yt,xt,dt){if(typeof vt!="function")throw new TypeError('"callback" argument must be a function');var ft=arguments.length,ct,lt;switch(ft){case 0:case 1:return St.nextTick(vt);case 2:return St.nextTick(function(){vt.call(null,yt)});case 3:return St.nextTick(function(){vt.call(null,yt,xt)});case 4:return St.nextTick(function(){vt.call(null,yt,xt,dt)});default:for(ct=new Array(ft-1),lt=0;lt<ct.length;)ct[lt++]=arguments[lt];return St.nextTick(function(){vt.apply(null,ct)})}}}).call(this)}).call(this,rt("_process"))},{_process:467}],381:[function(rt,kt,Ct){var St=kt.exports={},pt,vt;function yt(){throw new Error("setTimeout has not been defined")}function xt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?pt=setTimeout:pt=yt}catch(wt){pt=yt}try{typeof clearTimeout=="function"?vt=clearTimeout:vt=xt}catch(wt){vt=xt}})();function dt(wt){if(pt===setTimeout)return setTimeout(wt,0);if((pt===yt||!pt)&&setTimeout)return pt=setTimeout,setTimeout(wt,0);try{return pt(wt,0)}catch(Et){try{return pt.call(null,wt,0)}catch(At){return pt.call(this,wt,0)}}}function ft(wt){if(vt===clearTimeout)return clearTimeout(wt);if((vt===xt||!vt)&&clearTimeout)return vt=clearTimeout,clearTimeout(wt);try{return vt(wt)}catch(Et){try{return vt.call(null,wt)}catch(At){return vt.call(this,wt)}}}var ct=[],lt=!1,E,z=-1;function ot(){!lt||!E||(lt=!1,E.length?ct=E.concat(ct):z=-1,ct.length&&it())}function it(){if(!lt){var wt=dt(ot);lt=!0;for(var Et=ct.length;Et;){for(E=ct,ct=[];++z<Et;)E&&E[z].run();z=-1,Et=ct.length}E=null,lt=!1,ft(wt)}}St.nextTick=function(wt){var Et=new Array(arguments.length-1);if(arguments.length>1)for(var At=1;At<arguments.length;At++)Et[At-1]=arguments[At];ct.push(new at(wt,Et)),ct.length===1&&!lt&&dt(it)};function at(wt,Et){this.fun=wt,this.array=Et}at.prototype.run=function(){this.fun.apply(null,this.array)},St.title="browser",St.browser=!0,St.env={},St.argv=[],St.version="",St.versions={};function ut(){}St.on=ut,St.addListener=ut,St.once=ut,St.off=ut,St.removeListener=ut,St.removeAllListeners=ut,St.emit=ut,St.prependListener=ut,St.prependOnceListener=ut,St.listeners=function(wt){return[]},St.binding=function(wt){throw new Error("process.binding is not supported")},St.cwd=function(){return"/"},St.chdir=function(wt){throw new Error("process.chdir is not supported")},St.umask=function(){return 0}},{}],382:[function(rt,kt,Ct){(function(St){(function(){(function(pt){var vt=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,yt=typeof kt=="object"&&kt&&!kt.nodeType&&kt,xt=typeof St=="object"&&St;(xt.global===xt||xt.window===xt||xt.self===xt)&&(pt=xt);var dt,ft=2147483647,ct=36,lt=1,E=26,z=38,ot=700,it=72,at=128,ut="-",wt=/^xn--/,Et=/[^\x20-\x7E]/,At=/[\x2E\u3002\uFF0E\uFF61]/g,_t={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mt=ct-lt,jt=Math.floor,Lt=String.fromCharCode,It;function Ut(ke){throw new RangeError(_t[ke])}function Xt(ke,me){for(var fe=ke.length,pe=[];fe--;)pe[fe]=me(ke[fe]);return pe}function Gt(ke,me){var fe=ke.split("@"),pe="";fe.length>1&&(pe=fe[0]+"@",ke=fe[1]),ke=ke.replace(At,".");var _e=ke.split("."),je=Xt(_e,me).join(".");return pe+je}function Yt(ke){for(var me=[],fe=0,pe=ke.length,_e,je;fe<pe;)_e=ke.charCodeAt(fe++),_e>=55296&&_e<=56319&&fe<pe?(je=ke.charCodeAt(fe++),(je&64512)==56320?me.push(((_e&1023)<<10)+(je&1023)+65536):(me.push(_e),fe--)):me.push(_e);return me}function Ht(ke){return Xt(ke,function(me){var fe="";return me>65535&&(me-=65536,fe+=Lt(me>>>10&1023|55296),me=56320|me&1023),fe+=Lt(me),fe}).join("")}function ne(ke){return ke-48<10?ke-22:ke-65<26?ke-65:ke-97<26?ke-97:ct}function ae(ke,me){return ke+22+75*(ke<26)-((me!=0)<<5)}function ve(ke,me,fe){var pe=0;for(ke=fe?jt(ke/ot):ke>>1,ke+=jt(ke/me);ke>Mt*E>>1;pe+=ct)ke=jt(ke/Mt);return jt(pe+(Mt+1)*ke/(ke+z))}function Kt(ke){var me=[],fe=ke.length,pe,_e=0,je=at,He=it,Se,xe,le,Ne,se,Ae,Xe,Be,Te;for(Se=ke.lastIndexOf(ut),Se<0&&(Se=0),xe=0;xe<Se;++xe)ke.charCodeAt(xe)>=128&&Ut("not-basic"),me.push(ke.charCodeAt(xe));for(le=Se>0?Se+1:0;le<fe;){for(Ne=_e,se=1,Ae=ct;le>=fe&&Ut("invalid-input"),Xe=ne(ke.charCodeAt(le++)),(Xe>=ct||Xe>jt((ft-_e)/se))&&Ut("overflow"),_e+=Xe*se,Be=Ae<=He?lt:Ae>=He+E?E:Ae-He,!(Xe<Be);Ae+=ct)Te=ct-Be,se>jt(ft/Te)&&Ut("overflow"),se*=Te;pe=me.length+1,He=ve(_e-Ne,pe,Ne==0),jt(_e/pe)>ft-je&&Ut("overflow"),je+=jt(_e/pe),_e%=pe,me.splice(_e++,0,je)}return Ht(me)}function re(ke){var me,fe,pe,_e,je,He,Se,xe,le,Ne,se,Ae=[],Xe,Be,Te,ue;for(ke=Yt(ke),Xe=ke.length,me=at,fe=0,je=it,He=0;He<Xe;++He)se=ke[He],se<128&&Ae.push(Lt(se));for(pe=_e=Ae.length,_e&&Ae.push(ut);pe<Xe;){for(Se=ft,He=0;He<Xe;++He)se=ke[He],se>=me&&se<Se&&(Se=se);for(Be=pe+1,Se-me>jt((ft-fe)/Be)&&Ut("overflow"),fe+=(Se-me)*Be,me=Se,He=0;He<Xe;++He)if(se=ke[He],se<me&&++fe>ft&&Ut("overflow"),se==me){for(xe=fe,le=ct;Ne=le<=je?lt:le>=je+E?E:le-je,!(xe<Ne);le+=ct)ue=xe-Ne,Te=ct-Ne,Ae.push(Lt(ae(Ne+ue%Te,0))),xe=jt(ue/Te);Ae.push(Lt(ae(xe,0))),je=ve(fe,Be,pe==_e),fe=0,++pe}++fe,++me}return Ae.join("")}function we(ke){return Gt(ke,function(me){return wt.test(me)?Kt(me.slice(4).toLowerCase()):me})}function Me(ke){return Gt(ke,function(me){return Et.test(me)?"xn--"+re(me):me})}if(dt={version:"1.4.1",ucs2:{decode:Yt,encode:Ht},decode:Kt,encode:re,toASCII:Me,toUnicode:we},typeof Rt=="function"&&typeof Rt.amd=="object"&&Rt.amd)Rt("punycode",function(){return dt});else if(vt&&yt)if(kt.exports==vt)yt.exports=dt;else for(It in dt)dt.hasOwnProperty(It)&&(vt[It]=dt[It]);else pt.punycode=dt})(this)}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(rt,kt,Ct){"use strict";function St(vt,yt){return Object.prototype.hasOwnProperty.call(vt,yt)}kt.exports=function(vt,yt,xt,dt){yt=yt||"&",xt=xt||"=";var ft={};if(typeof vt!="string"||vt.length===0)return ft;var ct=/\+/g;vt=vt.split(yt);var lt=1e3;dt&&typeof dt.maxKeys=="number"&&(lt=dt.maxKeys);var E=vt.length;lt>0&&E>lt&&(E=lt);for(var z=0;z<E;++z){var ot=vt[z].replace(ct,"%20"),it=ot.indexOf(xt),at,ut,wt,Et;it>=0?(at=ot.substr(0,it),ut=ot.substr(it+1)):(at=ot,ut=""),wt=decodeURIComponent(at),Et=decodeURIComponent(ut),St(ft,wt)?pt(ft[wt])?ft[wt].push(Et):ft[wt]=[ft[wt],Et]:ft[wt]=Et}return ft};var pt=Array.isArray||function(vt){return Object.prototype.toString.call(vt)==="[object Array]"}},{}],384:[function(rt,kt,Ct){"use strict";var St=function(xt){switch(typeof xt){case"string":return xt;case"boolean":return xt?"true":"false";case"number":return isFinite(xt)?xt:"";default:return""}};kt.exports=function(xt,dt,ft,ct){return dt=dt||"&",ft=ft||"=",xt===null&&(xt=void 0),typeof xt=="object"?vt(yt(xt),function(lt){var E=encodeURIComponent(St(lt))+ft;return pt(xt[lt])?vt(xt[lt],function(z){return E+encodeURIComponent(St(z))}).join(dt):E+encodeURIComponent(St(xt[lt]))}).join(dt):ct?encodeURIComponent(St(ct))+ft+encodeURIComponent(St(xt)):""};var pt=Array.isArray||function(xt){return Object.prototype.toString.call(xt)==="[object Array]"};function vt(xt,dt){if(xt.map)return xt.map(dt);for(var ft=[],ct=0;ct<xt.length;ct++)ft.push(dt(xt[ct],ct));return ft}var yt=Object.keys||function(xt){var dt=[];for(var ft in xt)Object.prototype.hasOwnProperty.call(xt,ft)&&dt.push(ft);return dt}},{}],385:[function(rt,kt,Ct){"use strict";Ct.decode=Ct.parse=rt("./decode"),Ct.encode=Ct.stringify=rt("./encode")},{"./decode":383,"./encode":384}],386:[function(rt,kt,Ct){"use strict";var St=rt("process-nextick-args"),pt=Object.keys||function(ot){var it=[];for(var at in ot)it.push(at);return it};kt.exports=lt;var vt=Object.create(rt("core-util-is"));vt.inherits=rt("inherits");var yt=rt("./_stream_readable"),xt=rt("./_stream_writable");vt.inherits(lt,yt);for(var dt=pt(xt.prototype),ft=0;ft<dt.length;ft++){var ct=dt[ft];lt.prototype[ct]||(lt.prototype[ct]=xt.prototype[ct])}function lt(ot){if(!(this instanceof lt))return new lt(ot);yt.call(this,ot),xt.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",E)}Object.defineProperty(lt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function E(){this.allowHalfOpen||this._writableState.ended||St.nextTick(z,this)}function z(ot){ot.end()}Object.defineProperty(lt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1: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)}}),lt.prototype._destroy=function(ot,it){this.push(null),this.end(),St.nextTick(it,ot)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(rt,kt,Ct){"use strict";kt.exports=vt;var St=rt("./_stream_transform"),pt=Object.create(rt("core-util-is"));pt.inherits=rt("inherits"),pt.inherits(vt,St);function vt(yt){if(!(this instanceof vt))return new vt(yt);St.call(this,yt)}vt.prototype._transform=function(yt,xt,dt){dt(null,yt)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";var vt=rt("process-nextick-args");kt.exports=Lt;var yt=rt("isarray"),xt;Lt.ReadableState=jt;var dt=rt("events").EventEmitter,ft=function(se,Ae){return se.listeners(Ae).length},ct=rt("./internal/streams/stream"),lt=rt("safe-buffer").Buffer,E=pt.Uint8Array||function(){};function z(se){return lt.from(se)}function ot(se){return lt.isBuffer(se)||se instanceof E}var it=Object.create(rt("core-util-is"));it.inherits=rt("inherits");var at=rt("util"),ut=void 0;at&&at.debuglog?ut=at.debuglog("stream"):ut=function(){};var wt=rt("./internal/streams/BufferList"),Et=rt("./internal/streams/destroy"),At;it.inherits(Lt,ct);var _t=["error","close","destroy","pause","resume"];function Mt(se,Ae,Xe){if(typeof se.prependListener=="function")return se.prependListener(Ae,Xe);!se._events||!se._events[Ae]?se.on(Ae,Xe):yt(se._events[Ae])?se._events[Ae].unshift(Xe):se._events[Ae]=[Xe,se._events[Ae]]}function jt(se,Ae){xt=xt||rt("./_stream_duplex"),se=se||{};var Xe=Ae instanceof xt;this.objectMode=!!se.objectMode,Xe&&(this.objectMode=this.objectMode||!!se.readableObjectMode);var Be=se.highWaterMark,Te=se.readableHighWaterMark,ue=this.objectMode?16:16*1024;Be||Be===0?this.highWaterMark=Be:Xe&&(Te||Te===0)?this.highWaterMark=Te:this.highWaterMark=ue,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new wt,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=se.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,se.encoding&&(At||(At=rt("string_decoder/").StringDecoder),this.decoder=new At(se.encoding),this.encoding=se.encoding)}function Lt(se){if(xt=xt||rt("./_stream_duplex"),!(this instanceof Lt))return new Lt(se);this._readableState=new jt(se,this),this.readable=!0,se&&(typeof se.read=="function"&&(this._read=se.read),typeof se.destroy=="function"&&(this._destroy=se.destroy)),ct.call(this)}Object.defineProperty(Lt.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(se){this._readableState&&(this._readableState.destroyed=se)}}),Lt.prototype.destroy=Et.destroy,Lt.prototype._undestroy=Et.undestroy,Lt.prototype._destroy=function(se,Ae){this.push(null),Ae(se)},Lt.prototype.push=function(se,Ae){var Xe=this._readableState,Be;return Xe.objectMode?Be=!0:typeof se=="string"&&(Ae=Ae||Xe.defaultEncoding,Ae!==Xe.encoding&&(se=lt.from(se,Ae),Ae=""),Be=!0),It(this,se,Ae,!1,Be)},Lt.prototype.unshift=function(se){return It(this,se,null,!0,!1)};function It(se,Ae,Xe,Be,Te){var ue=se._readableState;if(Ae===null)ue.reading=!1,ae(se,ue);else{var $t;Te||($t=Xt(ue,Ae)),$t?se.emit("error",$t):ue.objectMode||Ae&&Ae.length>0?(typeof Ae!="string"&&!ue.objectMode&&Object.getPrototypeOf(Ae)!==lt.prototype&&(Ae=z(Ae)),Be?ue.endEmitted?se.emit("error",new Error("stream.unshift() after end event")):Ut(se,ue,Ae,!0):ue.ended?se.emit("error",new Error("stream.push() after EOF")):(ue.reading=!1,ue.decoder&&!Xe?(Ae=ue.decoder.write(Ae),ue.objectMode||Ae.length!==0?Ut(se,ue,Ae,!1):re(se,ue)):Ut(se,ue,Ae,!1))):Be||(ue.reading=!1)}return Gt(ue)}function Ut(se,Ae,Xe,Be){Ae.flowing&&Ae.length===0&&!Ae.sync?(se.emit("data",Xe),se.read(0)):(Ae.length+=Ae.objectMode?1:Xe.length,Be?Ae.buffer.unshift(Xe):Ae.buffer.push(Xe),Ae.needReadable&&ve(se)),re(se,Ae)}function Xt(se,Ae){var Xe;return!ot(Ae)&&typeof Ae!="string"&&Ae!==void 0&&!se.objectMode&&(Xe=new TypeError("Invalid non-string/buffer chunk")),Xe}function Gt(se){return!se.ended&&(se.needReadable||se.length<se.highWaterMark||se.length===0)}Lt.prototype.isPaused=function(){return this._readableState.flowing===!1},Lt.prototype.setEncoding=function(se){return At||(At=rt("string_decoder/").StringDecoder),this._readableState.decoder=new At(se),this._readableState.encoding=se,this};var Yt=8388608;function Ht(se){return se>=Yt?se=Yt:(se--,se|=se>>>1,se|=se>>>2,se|=se>>>4,se|=se>>>8,se|=se>>>16,se++),se}function ne(se,Ae){return se<=0||Ae.length===0&&Ae.ended?0:Ae.objectMode?1:se!==se?Ae.flowing&&Ae.length?Ae.buffer.head.data.length:Ae.length:(se>Ae.highWaterMark&&(Ae.highWaterMark=Ht(se)),se<=Ae.length?se:Ae.ended?Ae.length:(Ae.needReadable=!0,0))}Lt.prototype.read=function(se){ut("read",se),se=parseInt(se,10);var Ae=this._readableState,Xe=se;if(se!==0&&(Ae.emittedReadable=!1),se===0&&Ae.needReadable&&(Ae.length>=Ae.highWaterMark||Ae.ended))return ut("read: emitReadable",Ae.length,Ae.ended),Ae.length===0&&Ae.ended?xe(this):ve(this),null;if(se=ne(se,Ae),se===0&&Ae.ended)return Ae.length===0&&xe(this),null;var Be=Ae.needReadable;ut("need readable",Be),(Ae.length===0||Ae.length-se<Ae.highWaterMark)&&(Be=!0,ut("length less than watermark",Be)),Ae.ended||Ae.reading?(Be=!1,ut("reading or ended",Be)):Be&&(ut("do read"),Ae.reading=!0,Ae.sync=!0,Ae.length===0&&(Ae.needReadable=!0),this._read(Ae.highWaterMark),Ae.sync=!1,Ae.reading||(se=ne(Xe,Ae)));var Te;return se>0?Te=_e(se,Ae):Te=null,Te===null?(Ae.needReadable=!0,se=0):Ae.length-=se,Ae.length===0&&(Ae.ended||(Ae.needReadable=!0),Xe!==se&&Ae.ended&&xe(this)),Te!==null&&this.emit("data",Te),Te};function ae(se,Ae){if(!Ae.ended){if(Ae.decoder){var Xe=Ae.decoder.end();Xe&&Xe.length&&(Ae.buffer.push(Xe),Ae.length+=Ae.objectMode?1:Xe.length)}Ae.ended=!0,ve(se)}}function ve(se){var Ae=se._readableState;Ae.needReadable=!1,Ae.emittedReadable||(ut("emitReadable",Ae.flowing),Ae.emittedReadable=!0,Ae.sync?vt.nextTick(Kt,se):Kt(se))}function Kt(se){ut("emit readable"),se.emit("readable"),pe(se)}function re(se,Ae){Ae.readingMore||(Ae.readingMore=!0,vt.nextTick(we,se,Ae))}function we(se,Ae){for(var Xe=Ae.length;!Ae.reading&&!Ae.flowing&&!Ae.ended&&Ae.length<Ae.highWaterMark&&(ut("maybeReadMore read 0"),se.read(0),Xe!==Ae.length);)Xe=Ae.length;Ae.readingMore=!1}Lt.prototype._read=function(se){this.emit("error",new Error("_read() is not implemented"))},Lt.prototype.pipe=function(se,Ae){var Xe=this,Be=this._readableState;switch(Be.pipesCount){case 0:Be.pipes=se;break;case 1:Be.pipes=[Be.pipes,se];break;default:Be.pipes.push(se);break}Be.pipesCount+=1,ut("pipe count=%d opts=%j",Be.pipesCount,Ae);var Te=(!Ae||Ae.end!==!1)&&se!==St.stdout&&se!==St.stderr,ue=Te?he:Ue;Be.endEmitted?vt.nextTick(ue):Xe.once("end",ue),se.on("unpipe",$t);function $t(Je,Ze){ut("onunpipe"),Je===Xe&&Ze&&Ze.hasUnpiped===!1&&(Ze.hasUnpiped=!0,Wt())}function he(){ut("onend"),se.end()}var ye=Me(Xe);se.on("drain",ye);var Qt=!1;function Wt(){ut("cleanup"),se.removeListener("close",Jt),se.removeListener("finish",Ie),se.removeListener("drain",ye),se.removeListener("error",ge),se.removeListener("unpipe",$t),Xe.removeListener("end",he),Xe.removeListener("end",Ue),Xe.removeListener("data",te),Qt=!0,Be.awaitDrain&&(!se._writableState||se._writableState.needDrain)&&ye()}var Bt=!1;Xe.on("data",te);function te(Je){ut("ondata"),Bt=!1;var Ze=se.write(Je);Ze===!1&&!Bt&&((Be.pipesCount===1&&Be.pipes===se||Be.pipesCount>1&&Ne(Be.pipes,se)!==-1)&&!Qt&&(ut("false write response, pause",Xe._readableState.awaitDrain),Xe._readableState.awaitDrain++,Bt=!0),Xe.pause())}function ge(Je){ut("onerror",Je),Ue(),se.removeListener("error",ge),ft(se,"error")===0&&se.emit("error",Je)}Mt(se,"error",ge);function Jt(){se.removeListener("finish",Ie),Ue()}se.once("close",Jt);function Ie(){ut("onfinish"),se.removeListener("close",Jt),Ue()}se.once("finish",Ie);function Ue(){ut("unpipe"),Xe.unpipe(se)}return se.emit("pipe",Xe),Be.flowing||(ut("pipe resume"),Xe.resume()),se};function Me(se){return function(){var Ae=se._readableState;ut("pipeOnDrain",Ae.awaitDrain),Ae.awaitDrain&&Ae.awaitDrain--,Ae.awaitDrain===0&&ft(se,"data")&&(Ae.flowing=!0,pe(se))}}Lt.prototype.unpipe=function(se){var Ae=this._readableState,Xe={hasUnpiped:!1};if(Ae.pipesCount===0)return this;if(Ae.pipesCount===1)return se&&se!==Ae.pipes?this:(se||(se=Ae.pipes),Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1,se&&se.emit("unpipe",this,Xe),this);if(!se){var Be=Ae.pipes,Te=Ae.pipesCount;Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1;for(var ue=0;ue<Te;ue++)Be[ue].emit("unpipe",this,Xe);return this}var $t=Ne(Ae.pipes,se);return $t===-1?this:(Ae.pipes.splice($t,1),Ae.pipesCount-=1,Ae.pipesCount===1&&(Ae.pipes=Ae.pipes[0]),se.emit("unpipe",this,Xe),this)},Lt.prototype.on=function(se,Ae){var Xe=ct.prototype.on.call(this,se,Ae);if(se==="data")this._readableState.flowing!==!1&&this.resume();else if(se==="readable"){var Be=this._readableState;!Be.endEmitted&&!Be.readableListening&&(Be.readableListening=Be.needReadable=!0,Be.emittedReadable=!1,Be.reading?Be.length&&ve(this):vt.nextTick(ke,this))}return Xe},Lt.prototype.addListener=Lt.prototype.on;function ke(se){ut("readable nexttick read 0"),se.read(0)}Lt.prototype.resume=function(){var se=this._readableState;return se.flowing||(ut("resume"),se.flowing=!0,me(this,se)),this};function me(se,Ae){Ae.resumeScheduled||(Ae.resumeScheduled=!0,vt.nextTick(fe,se,Ae))}function fe(se,Ae){Ae.reading||(ut("resume read 0"),se.read(0)),Ae.resumeScheduled=!1,Ae.awaitDrain=0,se.emit("resume"),pe(se),Ae.flowing&&!Ae.reading&&se.read(0)}Lt.prototype.pause=function(){return ut("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ut("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function pe(se){var Ae=se._readableState;for(ut("flow",Ae.flowing);Ae.flowing&&se.read()!==null;);}Lt.prototype.wrap=function(se){var Ae=this,Xe=this._readableState,Be=!1;se.on("end",function(){if(ut("wrapped end"),Xe.decoder&&!Xe.ended){var $t=Xe.decoder.end();$t&&$t.length&&Ae.push($t)}Ae.push(null)}),se.on("data",function($t){if(ut("wrapped data"),Xe.decoder&&($t=Xe.decoder.write($t)),!(Xe.objectMode&&$t==null)&&!(!Xe.objectMode&&(!$t||!$t.length))){var he=Ae.push($t);he||(Be=!0,se.pause())}});for(var Te in se)this[Te]===void 0&&typeof se[Te]=="function"&&(this[Te]=function($t){return function(){return se[$t].apply(se,arguments)}}(Te));for(var ue=0;ue<_t.length;ue++)se.on(_t[ue],this.emit.bind(this,_t[ue]));return this._read=function($t){ut("wrapped _read",$t),Be&&(Be=!1,se.resume())},this},Object.defineProperty(Lt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Lt._fromList=_e;function _e(se,Ae){if(Ae.length===0)return null;var Xe;return Ae.objectMode?Xe=Ae.buffer.shift():!se||se>=Ae.length?(Ae.decoder?Xe=Ae.buffer.join(""):Ae.buffer.length===1?Xe=Ae.buffer.head.data:Xe=Ae.buffer.concat(Ae.length),Ae.buffer.clear()):Xe=je(se,Ae.buffer,Ae.decoder),Xe}function je(se,Ae,Xe){var Be;return se<Ae.head.data.length?(Be=Ae.head.data.slice(0,se),Ae.head.data=Ae.head.data.slice(se)):se===Ae.head.data.length?Be=Ae.shift():Be=Xe?He(se,Ae):Se(se,Ae),Be}function He(se,Ae){var Xe=Ae.head,Be=1,Te=Xe.data;for(se-=Te.length;Xe=Xe.next;){var ue=Xe.data,$t=se>ue.length?ue.length:se;if($t===ue.length?Te+=ue:Te+=ue.slice(0,se),se-=$t,se===0){$t===ue.length?(++Be,Xe.next?Ae.head=Xe.next:Ae.head=Ae.tail=null):(Ae.head=Xe,Xe.data=ue.slice($t));break}++Be}return Ae.length-=Be,Te}function Se(se,Ae){var Xe=lt.allocUnsafe(se),Be=Ae.head,Te=1;for(Be.data.copy(Xe),se-=Be.data.length;Be=Be.next;){var ue=Be.data,$t=se>ue.length?ue.length:se;if(ue.copy(Xe,Xe.length-se,0,$t),se-=$t,se===0){$t===ue.length?(++Te,Be.next?Ae.head=Be.next:Ae.head=Ae.tail=null):(Ae.head=Be,Be.data=ue.slice($t));break}++Te}return Ae.length-=Te,Xe}function xe(se){var Ae=se._readableState;if(Ae.length>0)throw new Error('"endReadable()" called on non-empty stream');Ae.endEmitted||(Ae.ended=!0,vt.nextTick(le,Ae,se))}function le(se,Ae){!se.endEmitted&&se.length===0&&(se.endEmitted=!0,Ae.readable=!1,Ae.emit("end"))}function Ne(se,Ae){for(var Xe=0,Be=se.length;Xe<Be;Xe++)if(se[Xe]===Ae)return Xe;return-1}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(rt,kt,Ct){"use strict";kt.exports=yt;var St=rt("./_stream_duplex"),pt=Object.create(rt("core-util-is"));pt.inherits=rt("inherits"),pt.inherits(yt,St);function vt(ft,ct){var lt=this._transformState;lt.transforming=!1;var E=lt.writecb;if(!E)return this.emit("error",new Error("write callback called multiple times"));lt.writechunk=null,lt.writecb=null,ct!=null&&this.push(ct),E(ft);var z=this._readableState;z.reading=!1,(z.needReadable||z.length<z.highWaterMark)&&this._read(z.highWaterMark)}function yt(ft){if(!(this instanceof yt))return new yt(ft);St.call(this,ft),this._transformState={afterTransform:vt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ft&&(typeof ft.transform=="function"&&(this._transform=ft.transform),typeof ft.flush=="function"&&(this._flush=ft.flush)),this.on("prefinish",xt)}function xt(){var ft=this;typeof this._flush=="function"?this._flush(function(ct,lt){dt(ft,ct,lt)}):dt(this,null,null)}yt.prototype.push=function(ft,ct){return this._transformState.needTransform=!1,St.prototype.push.call(this,ft,ct)},yt.prototype._transform=function(ft,ct,lt){throw new Error("_transform() is not implemented")},yt.prototype._write=function(ft,ct,lt){var E=this._transformState;if(E.writecb=lt,E.writechunk=ft,E.writeencoding=ct,!E.transforming){var z=this._readableState;(E.needTransform||z.needReadable||z.length<z.highWaterMark)&&this._read(z.highWaterMark)}},yt.prototype._read=function(ft){var ct=this._transformState;ct.writechunk!==null&&ct.writecb&&!ct.transforming?(ct.transforming=!0,this._transform(ct.writechunk,ct.writeencoding,ct.afterTransform)):ct.needTransform=!0},yt.prototype._destroy=function(ft,ct){var lt=this;St.prototype._destroy.call(this,ft,function(E){ct(E),lt.emit("close")})};function dt(ft,ct,lt){if(ct)return ft.emit("error",ct);if(lt!=null&&ft.push(lt),ft._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(ft._transformState.transforming)throw new Error("Calling transform done when still transforming");return ft.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(rt,kt,Ct){(function(St,pt,vt){(function(){"use strict";var yt=rt("process-nextick-args");kt.exports=Mt;function xt(fe,pe,_e){this.chunk=fe,this.encoding=pe,this.callback=_e,this.next=null}function dt(fe){var pe=this;this.next=null,this.entry=null,this.finish=function(){me(pe,fe)}}var ft=!St.browser&&["v0.10","v0.9."].indexOf(St.version.slice(0,5))>-1?vt:yt.nextTick,ct;Mt.WritableState=At;var lt=Object.create(rt("core-util-is"));lt.inherits=rt("inherits");var E={deprecate:rt("util-deprecate")},z=rt("./internal/streams/stream"),ot=rt("safe-buffer").Buffer,it=pt.Uint8Array||function(){};function at(fe){return ot.from(fe)}function ut(fe){return ot.isBuffer(fe)||fe instanceof it}var wt=rt("./internal/streams/destroy");lt.inherits(Mt,z);function Et(){}function At(fe,pe){ct=ct||rt("./_stream_duplex"),fe=fe||{};var _e=pe instanceof ct;this.objectMode=!!fe.objectMode,_e&&(this.objectMode=this.objectMode||!!fe.writableObjectMode);var je=fe.highWaterMark,He=fe.writableHighWaterMark,Se=this.objectMode?16:16*1024;je||je===0?this.highWaterMark=je:_e&&(He||He===0)?this.highWaterMark=He:this.highWaterMark=Se,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 xe=fe.decodeStrings===!1;this.decodeStrings=!xe,this.defaultEncoding=fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){Ht(pe,le)},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 dt(this)}At.prototype.getBuffer=function(){for(var pe=this.bufferedRequest,_e=[];pe;)_e.push(pe),pe=pe.next;return _e},function(){try{Object.defineProperty(At.prototype,"buffer",{get:E.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(fe){}}();var _t;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_t=Function.prototype[Symbol.hasInstance],Object.defineProperty(Mt,Symbol.hasInstance,{value:function(fe){return _t.call(this,fe)?!0:this!==Mt?!1:fe&&fe._writableState instanceof At}})):_t=function(fe){return fe instanceof this};function Mt(fe){if(ct=ct||rt("./_stream_duplex"),!_t.call(Mt,this)&&!(this instanceof ct))return new Mt(fe);this._writableState=new At(fe,this),this.writable=!0,fe&&(typeof fe.write=="function"&&(this._write=fe.write),typeof fe.writev=="function"&&(this._writev=fe.writev),typeof fe.destroy=="function"&&(this._destroy=fe.destroy),typeof fe.final=="function"&&(this._final=fe.final)),z.call(this)}Mt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function jt(fe,pe){var _e=new Error("write after end");fe.emit("error",_e),yt.nextTick(pe,_e)}function Lt(fe,pe,_e,je){var He=!0,Se=!1;return _e===null?Se=new TypeError("May not write null values to stream"):typeof _e!="string"&&_e!==void 0&&!pe.objectMode&&(Se=new TypeError("Invalid non-string/buffer chunk")),Se&&(fe.emit("error",Se),yt.nextTick(je,Se),He=!1),He}Mt.prototype.write=function(fe,pe,_e){var je=this._writableState,He=!1,Se=!je.objectMode&&ut(fe);return Se&&!ot.isBuffer(fe)&&(fe=at(fe)),typeof pe=="function"&&(_e=pe,pe=null),Se?pe="buffer":pe||(pe=je.defaultEncoding),typeof _e!="function"&&(_e=Et),je.ended?jt(this,_e):(Se||Lt(this,je,fe,_e))&&(je.pendingcb++,He=Ut(this,je,Se,fe,pe,_e)),He},Mt.prototype.cork=function(){var fe=this._writableState;fe.corked++},Mt.prototype.uncork=function(){var fe=this._writableState;fe.corked&&(fe.corked--,!fe.writing&&!fe.corked&&!fe.finished&&!fe.bufferProcessing&&fe.bufferedRequest&&ve(this,fe))},Mt.prototype.setDefaultEncoding=function(pe){if(typeof pe=="string"&&(pe=pe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((pe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+pe);return this._writableState.defaultEncoding=pe,this};function It(fe,pe,_e){return!fe.objectMode&&fe.decodeStrings!==!1&&typeof pe=="string"&&(pe=ot.from(pe,_e)),pe}Object.defineProperty(Mt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ut(fe,pe,_e,je,He,Se){if(!_e){var xe=It(pe,je,He);je!==xe&&(_e=!0,He="buffer",je=xe)}var le=pe.objectMode?1:je.length;pe.length+=le;var Ne=pe.length<pe.highWaterMark;if(Ne||(pe.needDrain=!0),pe.writing||pe.corked){var se=pe.lastBufferedRequest;pe.lastBufferedRequest={chunk:je,encoding:He,isBuf:_e,callback:Se,next:null},se?se.next=pe.lastBufferedRequest:pe.bufferedRequest=pe.lastBufferedRequest,pe.bufferedRequestCount+=1}else Xt(fe,pe,!1,le,je,He,Se);return Ne}function Xt(fe,pe,_e,je,He,Se,xe){pe.writelen=je,pe.writecb=xe,pe.writing=!0,pe.sync=!0,_e?fe._writev(He,pe.onwrite):fe._write(He,Se,pe.onwrite),pe.sync=!1}function Gt(fe,pe,_e,je,He){--pe.pendingcb,_e?(yt.nextTick(He,je),yt.nextTick(Me,fe,pe),fe._writableState.errorEmitted=!0,fe.emit("error",je)):(He(je),fe._writableState.errorEmitted=!0,fe.emit("error",je),Me(fe,pe))}function Yt(fe){fe.writing=!1,fe.writecb=null,fe.length-=fe.writelen,fe.writelen=0}function Ht(fe,pe){var _e=fe._writableState,je=_e.sync,He=_e.writecb;if(Yt(_e),pe)Gt(fe,_e,je,pe,He);else{var Se=Kt(_e);!Se&&!_e.corked&&!_e.bufferProcessing&&_e.bufferedRequest&&ve(fe,_e),je?ft(ne,fe,_e,Se,He):ne(fe,_e,Se,He)}}function ne(fe,pe,_e,je){_e||ae(fe,pe),pe.pendingcb--,je(),Me(fe,pe)}function ae(fe,pe){pe.length===0&&pe.needDrain&&(pe.needDrain=!1,fe.emit("drain"))}function ve(fe,pe){pe.bufferProcessing=!0;var _e=pe.bufferedRequest;if(fe._writev&&_e&&_e.next){var je=pe.bufferedRequestCount,He=new Array(je),Se=pe.corkedRequestsFree;Se.entry=_e;for(var xe=0,le=!0;_e;)He[xe]=_e,_e.isBuf||(le=!1),_e=_e.next,xe+=1;He.allBuffers=le,Xt(fe,pe,!0,pe.length,He,"",Se.finish),pe.pendingcb++,pe.lastBufferedRequest=null,Se.next?(pe.corkedRequestsFree=Se.next,Se.next=null):pe.corkedRequestsFree=new dt(pe),pe.bufferedRequestCount=0}else{for(;_e;){var Ne=_e.chunk,se=_e.encoding,Ae=_e.callback,Xe=pe.objectMode?1:Ne.length;if(Xt(fe,pe,!1,Xe,Ne,se,Ae),_e=_e.next,pe.bufferedRequestCount--,pe.writing)break}_e===null&&(pe.lastBufferedRequest=null)}pe.bufferedRequest=_e,pe.bufferProcessing=!1}Mt.prototype._write=function(fe,pe,_e){_e(new Error("_write() is not implemented"))},Mt.prototype._writev=null,Mt.prototype.end=function(fe,pe,_e){var je=this._writableState;typeof fe=="function"?(_e=fe,fe=null,pe=null):typeof pe=="function"&&(_e=pe,pe=null),fe!=null&&this.write(fe,pe),je.corked&&(je.corked=1,this.uncork()),!je.ending&&!je.finished&&ke(this,je,_e)};function Kt(fe){return fe.ending&&fe.length===0&&fe.bufferedRequest===null&&!fe.finished&&!fe.writing}function re(fe,pe){fe._final(function(_e){pe.pendingcb--,_e&&fe.emit("error",_e),pe.prefinished=!0,fe.emit("prefinish"),Me(fe,pe)})}function we(fe,pe){!pe.prefinished&&!pe.finalCalled&&(typeof fe._final=="function"?(pe.pendingcb++,pe.finalCalled=!0,yt.nextTick(re,fe,pe)):(pe.prefinished=!0,fe.emit("prefinish")))}function Me(fe,pe){var _e=Kt(pe);return _e&&(we(fe,pe),pe.pendingcb===0&&(pe.finished=!0,fe.emit("finish"))),_e}function ke(fe,pe,_e){pe.ending=!0,Me(fe,pe),_e&&(pe.finished?yt.nextTick(_e):fe.once("finish",_e)),pe.ended=!0,fe.writable=!1}function me(fe,pe,_e){var je=fe.entry;for(fe.entry=null;je;){var He=je.callback;pe.pendingcb--,He(_e),je=je.next}pe.corkedRequestsFree?pe.corkedRequestsFree.next=fe:pe.corkedRequestsFree=fe}Object.defineProperty(Mt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(fe){this._writableState&&(this._writableState.destroyed=fe)}}),Mt.prototype.destroy=wt.destroy,Mt.prototype._undestroy=wt.undestroy,Mt.prototype._destroy=function(fe,pe){this.end(),pe(fe)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},rt("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(rt,kt,Ct){"use strict";function St(xt,dt){if(!(xt instanceof dt))throw new TypeError("Cannot call a class as a function")}var pt=rt("safe-buffer").Buffer,vt=rt("util");function yt(xt,dt,ft){xt.copy(dt,ft)}kt.exports=function(){function xt(){St(this,xt),this.head=null,this.tail=null,this.length=0}return xt.prototype.push=function(ft){var ct={data:ft,next:null};this.length>0?this.tail.next=ct:this.head=ct,this.tail=ct,++this.length},xt.prototype.unshift=function(ft){var ct={data:ft,next:this.head};this.length===0&&(this.tail=ct),this.head=ct,++this.length},xt.prototype.shift=function(){if(this.length!==0){var ft=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ft}},xt.prototype.clear=function(){this.head=this.tail=null,this.length=0},xt.prototype.join=function(ft){if(this.length===0)return"";for(var ct=this.head,lt=""+ct.data;ct=ct.next;)lt+=ft+ct.data;return lt},xt.prototype.concat=function(ft){if(this.length===0)return pt.alloc(0);if(this.length===1)return this.head.data;for(var ct=pt.allocUnsafe(ft>>>0),lt=this.head,E=0;lt;)yt(lt.data,ct,E),E+=lt.data.length,lt=lt.next;return ct},xt}(),vt&&vt.inspect&&vt.inspect.custom&&(kt.exports.prototype[vt.inspect.custom]=function(){var xt=vt.inspect({length:this.length});return this.constructor.name+" "+xt})},{"safe-buffer":396,util:89}],392:[function(rt,kt,Ct){"use strict";var St=rt("process-nextick-args");function pt(xt,dt){var ft=this,ct=this._readableState&&this._readableState.destroyed,lt=this._writableState&&this._writableState.destroyed;return ct||lt?(dt?dt(xt):xt&&(!this._writableState||!this._writableState.errorEmitted)&&St.nextTick(yt,this,xt),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(xt||null,function(E){!dt&&E?(St.nextTick(yt,ft,E),ft._writableState&&(ft._writableState.errorEmitted=!0)):dt&&dt(E)}),this)}function vt(){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 yt(xt,dt){xt.emit("error",dt)}kt.exports={destroy:pt,undestroy:vt}},{"process-nextick-args":380}],393:[function(rt,kt,Ct){kt.exports=rt("events").EventEmitter},{events:344}],394:[function(rt,kt,Ct){Ct=kt.exports=rt("./lib/_stream_readable.js"),Ct.Stream=Ct,Ct.Readable=Ct,Ct.Writable=rt("./lib/_stream_writable.js"),Ct.Duplex=rt("./lib/_stream_duplex.js"),Ct.Transform=rt("./lib/_stream_transform.js"),Ct.PassThrough=rt("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(rt,kt,Ct){var St=function(pt){"use strict";var vt=Object.prototype,yt=vt.hasOwnProperty,xt,dt=typeof Symbol=="function"?Symbol:{},ft=dt.iterator||"@@iterator",ct=dt.asyncIterator||"@@asyncIterator",lt=dt.toStringTag||"@@toStringTag";function E(we,Me,ke){return Object.defineProperty(we,Me,{value:ke,enumerable:!0,configurable:!0,writable:!0}),we[Me]}try{E({},"")}catch(we){E=function(Me,ke,me){return Me[ke]=me}}function z(we,Me,ke,me){var fe=Me&&Me.prototype instanceof At?Me:At,pe=Object.create(fe.prototype),_e=new ve(me||[]);return pe._invoke=Yt(we,ke,_e),pe}pt.wrap=z;function ot(we,Me,ke){try{return{type:"normal",arg:we.call(Me,ke)}}catch(me){return{type:"throw",arg:me}}}var it="suspendedStart",at="suspendedYield",ut="executing",wt="completed",Et={};function At(){}function _t(){}function Mt(){}var jt={};E(jt,ft,function(){return this});var Lt=Object.getPrototypeOf,It=Lt&&Lt(Lt(Kt([])));It&&It!==vt&&yt.call(It,ft)&&(jt=It);var Ut=Mt.prototype=At.prototype=Object.create(jt);_t.prototype=Mt,E(Ut,"constructor",Mt),E(Mt,"constructor",_t),_t.displayName=E(Mt,lt,"GeneratorFunction");function Xt(we){["next","throw","return"].forEach(function(Me){E(we,Me,function(ke){return this._invoke(Me,ke)})})}pt.isGeneratorFunction=function(we){var Me=typeof we=="function"&&we.constructor;return Me?Me===_t||(Me.displayName||Me.name)==="GeneratorFunction":!1},pt.mark=function(we){return Object.setPrototypeOf?Object.setPrototypeOf(we,Mt):(we.__proto__=Mt,E(we,lt,"GeneratorFunction")),we.prototype=Object.create(Ut),we},pt.awrap=function(we){return{__await:we}};function Gt(we,Me){function ke(pe,_e,je,He){var Se=ot(we[pe],we,_e);if(Se.type==="throw")He(Se.arg);else{var xe=Se.arg,le=xe.value;return le&&typeof le=="object"&&yt.call(le,"__await")?Me.resolve(le.__await).then(function(Ne){ke("next",Ne,je,He)},function(Ne){ke("throw",Ne,je,He)}):Me.resolve(le).then(function(Ne){xe.value=Ne,je(xe)},function(Ne){return ke("throw",Ne,je,He)})}}var me;function fe(pe,_e){function je(){return new Me(function(He,Se){ke(pe,_e,He,Se)})}return me=me?me.then(je,je):je()}this._invoke=fe}Xt(Gt.prototype),E(Gt.prototype,ct,function(){return this}),pt.AsyncIterator=Gt,pt.async=function(we,Me,ke,me,fe){fe===void 0&&(fe=Promise);var pe=new Gt(z(we,Me,ke,me),fe);return pt.isGeneratorFunction(Me)?pe:pe.next().then(function(_e){return _e.done?_e.value:pe.next()})};function Yt(we,Me,ke){var me=it;return function(pe,_e){if(me===ut)throw new Error("Generator is already running");if(me===wt){if(pe==="throw")throw _e;return re()}for(ke.method=pe,ke.arg=_e;;){var je=ke.delegate;if(je){var He=Ht(je,ke);if(He){if(He===Et)continue;return He}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(me===it)throw me=wt,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);me=ut;var Se=ot(we,Me,ke);if(Se.type==="normal"){if(me=ke.done?wt:at,Se.arg===Et)continue;return{value:Se.arg,done:ke.done}}else Se.type==="throw"&&(me=wt,ke.method="throw",ke.arg=Se.arg)}}}function Ht(we,Me){var ke=we.iterator[Me.method];if(ke===xt){if(Me.delegate=null,Me.method==="throw"){if(we.iterator.return&&(Me.method="return",Me.arg=xt,Ht(we,Me),Me.method==="throw"))return Et;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return Et}var me=ot(ke,we.iterator,Me.arg);if(me.type==="throw")return Me.method="throw",Me.arg=me.arg,Me.delegate=null,Et;var fe=me.arg;if(!fe)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,Et;if(fe.done)Me[we.resultName]=fe.value,Me.next=we.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=xt);else return fe;return Me.delegate=null,Et}Xt(Ut),E(Ut,lt,"Generator"),E(Ut,ft,function(){return this}),E(Ut,"toString",function(){return"[object Generator]"});function ne(we){var Me={tryLoc:we[0]};1 in we&&(Me.catchLoc=we[1]),2 in we&&(Me.finallyLoc=we[2],Me.afterLoc=we[3]),this.tryEntries.push(Me)}function ae(we){var Me=we.completion||{};Me.type="normal",delete Me.arg,we.completion=Me}function ve(we){this.tryEntries=[{tryLoc:"root"}],we.forEach(ne,this),this.reset(!0)}pt.keys=function(we){var Me=[];for(var ke in we)Me.push(ke);return Me.reverse(),function me(){for(;Me.length;){var fe=Me.pop();if(fe in we)return me.value=fe,me.done=!1,me}return me.done=!0,me}};function Kt(we){if(we){var Me=we[ft];if(Me)return Me.call(we);if(typeof we.next=="function")return we;if(!isNaN(we.length)){var ke=-1,me=function fe(){for(;++ke<we.length;)if(yt.call(we,ke))return fe.value=we[ke],fe.done=!1,fe;return fe.value=xt,fe.done=!0,fe};return me.next=me}}return{next:re}}pt.values=Kt;function re(){return{value:xt,done:!0}}return ve.prototype={constructor:ve,reset:function(we){if(this.prev=0,this.next=0,this.sent=this._sent=xt,this.done=!1,this.delegate=null,this.method="next",this.arg=xt,this.tryEntries.forEach(ae),!we)for(var Me in this)Me.charAt(0)==="t"&&yt.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=xt)},stop:function(){this.done=!0;var we=this.tryEntries[0],Me=we.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(we){if(this.done)throw we;var Me=this;function ke(He,Se){return pe.type="throw",pe.arg=we,Me.next=He,Se&&(Me.method="next",Me.arg=xt),!!Se}for(var me=this.tryEntries.length-1;me>=0;--me){var fe=this.tryEntries[me],pe=fe.completion;if(fe.tryLoc==="root")return ke("end");if(fe.tryLoc<=this.prev){var _e=yt.call(fe,"catchLoc"),je=yt.call(fe,"finallyLoc");if(_e&&je){if(this.prev<fe.catchLoc)return ke(fe.catchLoc,!0);if(this.prev<fe.finallyLoc)return ke(fe.finallyLoc)}else if(_e){if(this.prev<fe.catchLoc)return ke(fe.catchLoc,!0)}else if(je){if(this.prev<fe.finallyLoc)return ke(fe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(we,Me){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var me=this.tryEntries[ke];if(me.tryLoc<=this.prev&&yt.call(me,"finallyLoc")&&this.prev<me.finallyLoc){var fe=me;break}}fe&&(we==="break"||we==="continue")&&fe.tryLoc<=Me&&Me<=fe.finallyLoc&&(fe=null);var pe=fe?fe.completion:{};return pe.type=we,pe.arg=Me,fe?(this.method="next",this.next=fe.finallyLoc,Et):this.complete(pe)},complete:function(we,Me){if(we.type==="throw")throw we.arg;return we.type==="break"||we.type==="continue"?this.next=we.arg:we.type==="return"?(this.rval=this.arg=we.arg,this.method="return",this.next="end"):we.type==="normal"&&Me&&(this.next=Me),Et},finish:function(we){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var ke=this.tryEntries[Me];if(ke.finallyLoc===we)return this.complete(ke.completion,ke.afterLoc),ae(ke),Et}},catch:function(we){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var ke=this.tryEntries[Me];if(ke.tryLoc===we){var me=ke.completion;if(me.type==="throw"){var fe=me.arg;ae(ke)}return fe}}throw new Error("illegal catch attempt")},delegateYield:function(we,Me,ke){return this.delegate={iterator:Kt(we),resultName:Me,nextLoc:ke},this.method==="next"&&(this.arg=xt),Et}},pt}(typeof kt=="object"?kt.exports:{});try{regeneratorRuntime=St}catch(pt){typeof globalThis=="object"?globalThis.regeneratorRuntime=St:Function("r","regeneratorRuntime = r")(St)}},{}],396:[function(rt,kt,Ct){var St=rt("buffer"),pt=St.Buffer;function vt(xt,dt){for(var ft in xt)dt[ft]=xt[ft]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?kt.exports=St:(vt(St,Ct),Ct.Buffer=yt);function yt(xt,dt,ft){return pt(xt,dt,ft)}vt(pt,yt),yt.from=function(xt,dt,ft){if(typeof xt=="number")throw new TypeError("Argument must not be a number");return pt(xt,dt,ft)},yt.alloc=function(xt,dt,ft){if(typeof xt!="number")throw new TypeError("Argument must be a number");var ct=pt(xt);return dt!==void 0?typeof ft=="string"?ct.fill(dt,ft):ct.fill(dt):ct.fill(0),ct},yt.allocUnsafe=function(xt){if(typeof xt!="number")throw new TypeError("Argument must be a number");return pt(xt)},yt.allocUnsafeSlow=function(xt){if(typeof xt!="number")throw new TypeError("Argument must be a number");return St.SlowBuffer(xt)}},{buffer:90}],397:[function(rt,kt,Ct){(function(St){(function(){(function(pt){pt.parser=function(xe,le){return new yt(xe,le)},pt.SAXParser=yt,pt.SAXStream=z,pt.createStream=E,pt.MAX_BUFFER_LENGTH=64*1024;var vt=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];pt.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function yt(xe,le){if(!(this instanceof yt))return new yt(xe,le);var Ne=this;dt(Ne),Ne.q=Ne.c="",Ne.bufferCheckPosition=pt.MAX_BUFFER_LENGTH,Ne.opt=le||{},Ne.opt.lowercase=Ne.opt.lowercase||Ne.opt.lowercasetags,Ne.looseCase=Ne.opt.lowercase?"toLowerCase":"toUpperCase",Ne.tags=[],Ne.closed=Ne.closedRoot=Ne.sawRoot=!1,Ne.tag=Ne.error=null,Ne.strict=!!xe,Ne.noscript=!!(xe||Ne.opt.noscript),Ne.state=Gt.BEGIN,Ne.strictEntities=Ne.opt.strictEntities,Ne.ENTITIES=Ne.strictEntities?Object.create(pt.XML_ENTITIES):Object.create(pt.ENTITIES),Ne.attribList=[],Ne.opt.xmlns&&(Ne.ns=Object.create(wt)),Ne.trackPosition=Ne.opt.position!==!1,Ne.trackPosition&&(Ne.position=Ne.line=Ne.column=0),Ht(Ne,"onready")}Object.create||(Object.create=function(xe){function le(){}le.prototype=xe;var Ne=new le;return Ne}),Object.keys||(Object.keys=function(xe){var le=[];for(var Ne in xe)xe.hasOwnProperty(Ne)&&le.push(Ne);return le});function xt(xe){for(var le=Math.max(pt.MAX_BUFFER_LENGTH,10),Ne=0,se=0,Ae=vt.length;se<Ae;se++){var Xe=xe[vt[se]].length;if(Xe>le)switch(vt[se]){case"textNode":ae(xe);break;case"cdata":ne(xe,"oncdata",xe.cdata),xe.cdata="";break;case"script":ne(xe,"onscript",xe.script),xe.script="";break;default:Kt(xe,"Max buffer length exceeded: "+vt[se])}Ne=Math.max(Ne,Xe)}var Be=pt.MAX_BUFFER_LENGTH-Ne;xe.bufferCheckPosition=Be+xe.position}function dt(xe){for(var le=0,Ne=vt.length;le<Ne;le++)xe[vt[le]]=""}function ft(xe){ae(xe),xe.cdata!==""&&(ne(xe,"oncdata",xe.cdata),xe.cdata=""),xe.script!==""&&(ne(xe,"onscript",xe.script),xe.script="")}yt.prototype={end:function(){re(this)},write:Se,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){ft(this)}};var ct;try{ct=rt("stream").Stream}catch(xe){ct=function(){}}var lt=pt.EVENTS.filter(function(xe){return xe!=="error"&&xe!=="end"});function E(xe,le){return new z(xe,le)}function z(xe,le){if(!(this instanceof z))return new z(xe,le);ct.apply(this),this._parser=new yt(xe,le),this.writable=!0,this.readable=!0;var Ne=this;this._parser.onend=function(){Ne.emit("end")},this._parser.onerror=function(se){Ne.emit("error",se),Ne._parser.error=null},this._decoder=null,lt.forEach(function(se){Object.defineProperty(Ne,"on"+se,{get:function(){return Ne._parser["on"+se]},set:function(Ae){if(!Ae)return Ne.removeAllListeners(se),Ne._parser["on"+se]=Ae,Ae;Ne.on(se,Ae)},enumerable:!0,configurable:!1})})}z.prototype=Object.create(ct.prototype,{constructor:{value:z}}),z.prototype.write=function(xe){if(typeof St=="function"&&typeof St.isBuffer=="function"&&St.isBuffer(xe)){if(!this._decoder){var le=rt("string_decoder").StringDecoder;this._decoder=new le("utf8")}xe=this._decoder.write(xe)}return this._parser.write(xe.toString()),this.emit("data",xe),!0},z.prototype.end=function(xe){return xe&&xe.length&&this.write(xe),this._parser.end(),!0},z.prototype.on=function(xe,le){var Ne=this;return!Ne._parser["on"+xe]&&lt.indexOf(xe)!==-1&&(Ne._parser["on"+xe]=function(){var se=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);se.splice(0,0,xe),Ne.emit.apply(Ne,se)}),ct.prototype.on.call(Ne,xe,le)};var ot="[CDATA[",it="DOCTYPE",at="http://www.w3.org/XML/1998/namespace",ut="http://www.w3.org/2000/xmlns/",wt={xml:at,xmlns:ut},Et=/[:_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]/,At=/[:_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-]/,_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]/,Mt=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function jt(xe){return xe===" "||xe===`
`||xe==="\r"||xe===" "}function Lt(xe){return xe==='"'||xe==="'"}function It(xe){return xe===">"||jt(xe)}function Ut(xe,le){return xe.test(le)}function Xt(xe,le){return!Ut(xe,le)}var Gt=0;pt.STATE={BEGIN:Gt++,BEGIN_WHITESPACE:Gt++,TEXT:Gt++,TEXT_ENTITY:Gt++,OPEN_WAKA:Gt++,SGML_DECL:Gt++,SGML_DECL_QUOTED:Gt++,DOCTYPE:Gt++,DOCTYPE_QUOTED:Gt++,DOCTYPE_DTD:Gt++,DOCTYPE_DTD_QUOTED:Gt++,COMMENT_STARTING:Gt++,COMMENT:Gt++,COMMENT_ENDING:Gt++,COMMENT_ENDED:Gt++,CDATA:Gt++,CDATA_ENDING:Gt++,CDATA_ENDING_2:Gt++,PROC_INST:Gt++,PROC_INST_BODY:Gt++,PROC_INST_ENDING:Gt++,OPEN_TAG:Gt++,OPEN_TAG_SLASH:Gt++,ATTRIB:Gt++,ATTRIB_NAME:Gt++,ATTRIB_NAME_SAW_WHITE:Gt++,ATTRIB_VALUE:Gt++,ATTRIB_VALUE_QUOTED:Gt++,ATTRIB_VALUE_CLOSED:Gt++,ATTRIB_VALUE_UNQUOTED:Gt++,ATTRIB_VALUE_ENTITY_Q:Gt++,ATTRIB_VALUE_ENTITY_U:Gt++,CLOSE_TAG:Gt++,CLOSE_TAG_SAW_WHITE:Gt++,SCRIPT:Gt++,SCRIPT_ENDING:Gt++},pt.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},pt.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(pt.ENTITIES).forEach(function(xe){var le=pt.ENTITIES[xe],Ne=typeof le=="number"?String.fromCharCode(le):le;pt.ENTITIES[xe]=Ne});for(var Yt in pt.STATE)pt.STATE[pt.STATE[Yt]]=Yt;Gt=pt.STATE;function Ht(xe,le,Ne){xe[le]&&xe[le](Ne)}function ne(xe,le,Ne){xe.textNode&&ae(xe),Ht(xe,le,Ne)}function ae(xe){xe.textNode=ve(xe.opt,xe.textNode),xe.textNode&&Ht(xe,"ontext",xe.textNode),xe.textNode=""}function ve(xe,le){return xe.trim&&(le=le.trim()),xe.normalize&&(le=le.replace(/\s+/g," ")),le}function Kt(xe,le){return ae(xe),xe.trackPosition&&(le+=`
Line: `+xe.line+`
Column: `+xe.column+`
Char: `+xe.c),le=new Error(le),xe.error=le,Ht(xe,"onerror",le),xe}function re(xe){return xe.sawRoot&&!xe.closedRoot&&we(xe,"Unclosed root tag"),xe.state!==Gt.BEGIN&&xe.state!==Gt.BEGIN_WHITESPACE&&xe.state!==Gt.TEXT&&Kt(xe,"Unexpected end"),ae(xe),xe.c="",xe.closed=!0,Ht(xe,"onend"),yt.call(xe,xe.strict,xe.opt),xe}function we(xe,le){if(typeof xe!="object"||!(xe instanceof yt))throw new Error("bad call to strictFail");xe.strict&&Kt(xe,le)}function Me(xe){xe.strict||(xe.tagName=xe.tagName[xe.looseCase]());var le=xe.tags[xe.tags.length-1]||xe,Ne=xe.tag={name:xe.tagName,attributes:{}};xe.opt.xmlns&&(Ne.ns=le.ns),xe.attribList.length=0,ne(xe,"onopentagstart",Ne)}function ke(xe,le){var Ne=xe.indexOf(":"),se=Ne<0?["",xe]:xe.split(":"),Ae=se[0],Xe=se[1];return le&&xe==="xmlns"&&(Ae="xmlns",Xe=""),{prefix:Ae,local:Xe}}function me(xe){if(xe.strict||(xe.attribName=xe.attribName[xe.looseCase]()),xe.attribList.indexOf(xe.attribName)!==-1||xe.tag.attributes.hasOwnProperty(xe.attribName)){xe.attribName=xe.attribValue="";return}if(xe.opt.xmlns){var le=ke(xe.attribName,!0),Ne=le.prefix,se=le.local;if(Ne==="xmlns")if(se==="xml"&&xe.attribValue!==at)we(xe,"xml: prefix must be bound to "+at+`
Actual: `+xe.attribValue);else if(se==="xmlns"&&xe.attribValue!==ut)we(xe,"xmlns: prefix must be bound to "+ut+`
Actual: `+xe.attribValue);else{var Ae=xe.tag,Xe=xe.tags[xe.tags.length-1]||xe;Ae.ns===Xe.ns&&(Ae.ns=Object.create(Xe.ns)),Ae.ns[se]=xe.attribValue}xe.attribList.push([xe.attribName,xe.attribValue])}else xe.tag.attributes[xe.attribName]=xe.attribValue,ne(xe,"onattribute",{name:xe.attribName,value:xe.attribValue});xe.attribName=xe.attribValue=""}function fe(xe,le){if(xe.opt.xmlns){var Ne=xe.tag,se=ke(xe.tagName);Ne.prefix=se.prefix,Ne.local=se.local,Ne.uri=Ne.ns[se.prefix]||"",Ne.prefix&&!Ne.uri&&(we(xe,"Unbound namespace prefix: "+JSON.stringify(xe.tagName)),Ne.uri=se.prefix);var Ae=xe.tags[xe.tags.length-1]||xe;Ne.ns&&Ae.ns!==Ne.ns&&Object.keys(Ne.ns).forEach(function(te){ne(xe,"onopennamespace",{prefix:te,uri:Ne.ns[te]})});for(var Xe=0,Be=xe.attribList.length;Xe<Be;Xe++){var Te=xe.attribList[Xe],ue=Te[0],$t=Te[1],he=ke(ue,!0),ye=he.prefix,Qt=he.local,Wt=ye===""?"":Ne.ns[ye]||"",Bt={name:ue,value:$t,prefix:ye,local:Qt,uri:Wt};ye&&ye!=="xmlns"&&!Wt&&(we(xe,"Unbound namespace prefix: "+JSON.stringify(ye)),Bt.uri=ye),xe.tag.attributes[ue]=Bt,ne(xe,"onattribute",Bt)}xe.attribList.length=0}xe.tag.isSelfClosing=!!le,xe.sawRoot=!0,xe.tags.push(xe.tag),ne(xe,"onopentag",xe.tag),le||(!xe.noscript&&xe.tagName.toLowerCase()==="script"?xe.state=Gt.SCRIPT:xe.state=Gt.TEXT,xe.tag=null,xe.tagName=""),xe.attribName=xe.attribValue="",xe.attribList.length=0}function pe(xe){if(!xe.tagName){we(xe,"Weird empty close tag."),xe.textNode+="</>",xe.state=Gt.TEXT;return}if(xe.script){if(xe.tagName!=="script"){xe.script+="</"+xe.tagName+">",xe.tagName="",xe.state=Gt.SCRIPT;return}ne(xe,"onscript",xe.script),xe.script=""}var le=xe.tags.length,Ne=xe.tagName;xe.strict||(Ne=Ne[xe.looseCase]());for(var se=Ne;le--;){var Ae=xe.tags[le];if(Ae.name!==se)we(xe,"Unexpected close tag");else break}if(le<0){we(xe,"Unmatched closing tag: "+xe.tagName),xe.textNode+="</"+xe.tagName+">",xe.state=Gt.TEXT;return}xe.tagName=Ne;for(var Xe=xe.tags.length;Xe-- >le;){var Be=xe.tag=xe.tags.pop();xe.tagName=xe.tag.name,ne(xe,"onclosetag",xe.tagName);var Te={};for(var ue in Be.ns)Te[ue]=Be.ns[ue];var $t=xe.tags[xe.tags.length-1]||xe;xe.opt.xmlns&&Be.ns!==$t.ns&&Object.keys(Be.ns).forEach(function(he){var ye=Be.ns[he];ne(xe,"onclosenamespace",{prefix:he,uri:ye})})}le===0&&(xe.closedRoot=!0),xe.tagName=xe.attribValue=xe.attribName="",xe.attribList.length=0,xe.state=Gt.TEXT}function _e(xe){var le=xe.entity,Ne=le.toLowerCase(),se,Ae="";return xe.ENTITIES[le]?xe.ENTITIES[le]:xe.ENTITIES[Ne]?xe.ENTITIES[Ne]:(le=Ne,le.charAt(0)==="#"&&(le.charAt(1)==="x"?(le=le.slice(2),se=parseInt(le,16),Ae=se.toString(16)):(le=le.slice(1),se=parseInt(le,10),Ae=se.toString(10))),le=le.replace(/^0+/,""),isNaN(se)||Ae.toLowerCase()!==le?(we(xe,"Invalid character entity"),"&"+xe.entity+";"):String.fromCodePoint(se))}function je(xe,le){le==="<"?(xe.state=Gt.OPEN_WAKA,xe.startTagPosition=xe.position):jt(le)||(we(xe,"Non-whitespace before first tag."),xe.textNode=le,xe.state=Gt.TEXT)}function He(xe,le){var Ne="";return le<xe.length&&(Ne=xe.charAt(le)),Ne}function Se(xe){var le=this;if(this.error)throw this.error;if(le.closed)return Kt(le,"Cannot write after close. Assign an onready handler.");if(xe===null)return re(le);typeof xe=="object"&&(xe=xe.toString());for(var Ne=0,se="";se=He(xe,Ne++),le.c=se,!!se;)switch(le.trackPosition&&(le.position++,se===`
`?(le.line++,le.column=0):le.column++),le.state){case Gt.BEGIN:if(le.state=Gt.BEGIN_WHITESPACE,se==="\uFEFF")continue;je(le,se);continue;case Gt.BEGIN_WHITESPACE:je(le,se);continue;case Gt.TEXT:if(le.sawRoot&&!le.closedRoot){for(var Ae=Ne-1;se&&se!=="<"&&se!=="&";)se=He(xe,Ne++),se&&le.trackPosition&&(le.position++,se===`
`?(le.line++,le.column=0):le.column++);le.textNode+=xe.substring(Ae,Ne-1)}se==="<"&&!(le.sawRoot&&le.closedRoot&&!le.strict)?(le.state=Gt.OPEN_WAKA,le.startTagPosition=le.position):(!jt(se)&&(!le.sawRoot||le.closedRoot)&&we(le,"Text data outside of root node."),se==="&"?le.state=Gt.TEXT_ENTITY:le.textNode+=se);continue;case Gt.SCRIPT:se==="<"?le.state=Gt.SCRIPT_ENDING:le.script+=se;continue;case Gt.SCRIPT_ENDING:se==="/"?le.state=Gt.CLOSE_TAG:(le.script+="<"+se,le.state=Gt.SCRIPT);continue;case Gt.OPEN_WAKA:if(se==="!")le.state=Gt.SGML_DECL,le.sgmlDecl="";else if(!jt(se))if(Ut(Et,se))le.state=Gt.OPEN_TAG,le.tagName=se;else if(se==="/")le.state=Gt.CLOSE_TAG,le.tagName="";else if(se==="?")le.state=Gt.PROC_INST,le.procInstName=le.procInstBody="";else{if(we(le,"Unencoded <"),le.startTagPosition+1<le.position){var Xe=le.position-le.startTagPosition;se=new Array(Xe).join(" ")+se}le.textNode+="<"+se,le.state=Gt.TEXT}continue;case Gt.SGML_DECL:(le.sgmlDecl+se).toUpperCase()===ot?(ne(le,"onopencdata"),le.state=Gt.CDATA,le.sgmlDecl="",le.cdata=""):le.sgmlDecl+se==="--"?(le.state=Gt.COMMENT,le.comment="",le.sgmlDecl=""):(le.sgmlDecl+se).toUpperCase()===it?(le.state=Gt.DOCTYPE,(le.doctype||le.sawRoot)&&we(le,"Inappropriately located doctype declaration"),le.doctype="",le.sgmlDecl=""):se===">"?(ne(le,"onsgmldeclaration",le.sgmlDecl),le.sgmlDecl="",le.state=Gt.TEXT):(Lt(se)&&(le.state=Gt.SGML_DECL_QUOTED),le.sgmlDecl+=se);continue;case Gt.SGML_DECL_QUOTED:se===le.q&&(le.state=Gt.SGML_DECL,le.q=""),le.sgmlDecl+=se;continue;case Gt.DOCTYPE:se===">"?(le.state=Gt.TEXT,ne(le,"ondoctype",le.doctype),le.doctype=!0):(le.doctype+=se,se==="["?le.state=Gt.DOCTYPE_DTD:Lt(se)&&(le.state=Gt.DOCTYPE_QUOTED,le.q=se));continue;case Gt.DOCTYPE_QUOTED:le.doctype+=se,se===le.q&&(le.q="",le.state=Gt.DOCTYPE);continue;case Gt.DOCTYPE_DTD:le.doctype+=se,se==="]"?le.state=Gt.DOCTYPE:Lt(se)&&(le.state=Gt.DOCTYPE_DTD_QUOTED,le.q=se);continue;case Gt.DOCTYPE_DTD_QUOTED:le.doctype+=se,se===le.q&&(le.state=Gt.DOCTYPE_DTD,le.q="");continue;case Gt.COMMENT:se==="-"?le.state=Gt.COMMENT_ENDING:le.comment+=se;continue;case Gt.COMMENT_ENDING:se==="-"?(le.state=Gt.COMMENT_ENDED,le.comment=ve(le.opt,le.comment),le.comment&&ne(le,"oncomment",le.comment),le.comment=""):(le.comment+="-"+se,le.state=Gt.COMMENT);continue;case Gt.COMMENT_ENDED:se!==">"?(we(le,"Malformed comment"),le.comment+="--"+se,le.state=Gt.COMMENT):le.state=Gt.TEXT;continue;case Gt.CDATA:se==="]"?le.state=Gt.CDATA_ENDING:le.cdata+=se;continue;case Gt.CDATA_ENDING:se==="]"?le.state=Gt.CDATA_ENDING_2:(le.cdata+="]"+se,le.state=Gt.CDATA);continue;case Gt.CDATA_ENDING_2:se===">"?(le.cdata&&ne(le,"oncdata",le.cdata),ne(le,"onclosecdata"),le.cdata="",le.state=Gt.TEXT):se==="]"?le.cdata+="]":(le.cdata+="]]"+se,le.state=Gt.CDATA);continue;case Gt.PROC_INST:se==="?"?le.state=Gt.PROC_INST_ENDING:jt(se)?le.state=Gt.PROC_INST_BODY:le.procInstName+=se;continue;case Gt.PROC_INST_BODY:if(!le.procInstBody&&jt(se))continue;se==="?"?le.state=Gt.PROC_INST_ENDING:le.procInstBody+=se;continue;case Gt.PROC_INST_ENDING:se===">"?(ne(le,"onprocessinginstruction",{name:le.procInstName,body:le.procInstBody}),le.procInstName=le.procInstBody="",le.state=Gt.TEXT):(le.procInstBody+="?"+se,le.state=Gt.PROC_INST_BODY);continue;case Gt.OPEN_TAG:Ut(At,se)?le.tagName+=se:(Me(le),se===">"?fe(le):se==="/"?le.state=Gt.OPEN_TAG_SLASH:(jt(se)||we(le,"Invalid character in tag name"),le.state=Gt.ATTRIB));continue;case Gt.OPEN_TAG_SLASH:se===">"?(fe(le,!0),pe(le)):(we(le,"Forward-slash in opening tag not followed by >"),le.state=Gt.ATTRIB);continue;case Gt.ATTRIB:if(jt(se))continue;se===">"?fe(le):se==="/"?le.state=Gt.OPEN_TAG_SLASH:Ut(Et,se)?(le.attribName=se,le.attribValue="",le.state=Gt.ATTRIB_NAME):we(le,"Invalid attribute name");continue;case Gt.ATTRIB_NAME:se==="="?le.state=Gt.ATTRIB_VALUE:se===">"?(we(le,"Attribute without value"),le.attribValue=le.attribName,me(le),fe(le)):jt(se)?le.state=Gt.ATTRIB_NAME_SAW_WHITE:Ut(At,se)?le.attribName+=se:we(le,"Invalid attribute name");continue;case Gt.ATTRIB_NAME_SAW_WHITE:if(se==="=")le.state=Gt.ATTRIB_VALUE;else{if(jt(se))continue;we(le,"Attribute without value"),le.tag.attributes[le.attribName]="",le.attribValue="",ne(le,"onattribute",{name:le.attribName,value:""}),le.attribName="",se===">"?fe(le):Ut(Et,se)?(le.attribName=se,le.state=Gt.ATTRIB_NAME):(we(le,"Invalid attribute name"),le.state=Gt.ATTRIB)}continue;case Gt.ATTRIB_VALUE:if(jt(se))continue;Lt(se)?(le.q=se,le.state=Gt.ATTRIB_VALUE_QUOTED):(we(le,"Unquoted attribute value"),le.state=Gt.ATTRIB_VALUE_UNQUOTED,le.attribValue=se);continue;case Gt.ATTRIB_VALUE_QUOTED:if(se!==le.q){se==="&"?le.state=Gt.ATTRIB_VALUE_ENTITY_Q:le.attribValue+=se;continue}me(le),le.q="",le.state=Gt.ATTRIB_VALUE_CLOSED;continue;case Gt.ATTRIB_VALUE_CLOSED:jt(se)?le.state=Gt.ATTRIB:se===">"?fe(le):se==="/"?le.state=Gt.OPEN_TAG_SLASH:Ut(Et,se)?(we(le,"No whitespace between attributes"),le.attribName=se,le.attribValue="",le.state=Gt.ATTRIB_NAME):we(le,"Invalid attribute name");continue;case Gt.ATTRIB_VALUE_UNQUOTED:if(!It(se)){se==="&"?le.state=Gt.ATTRIB_VALUE_ENTITY_U:le.attribValue+=se;continue}me(le),se===">"?fe(le):le.state=Gt.ATTRIB;continue;case Gt.CLOSE_TAG:if(le.tagName)se===">"?pe(le):Ut(At,se)?le.tagName+=se:le.script?(le.script+="</"+le.tagName,le.tagName="",le.state=Gt.SCRIPT):(jt(se)||we(le,"Invalid tagname in closing tag"),le.state=Gt.CLOSE_TAG_SAW_WHITE);else{if(jt(se))continue;Xt(Et,se)?le.script?(le.script+="</"+se,le.state=Gt.SCRIPT):we(le,"Invalid tagname in closing tag."):le.tagName=se}continue;case Gt.CLOSE_TAG_SAW_WHITE:if(jt(se))continue;se===">"?pe(le):we(le,"Invalid characters in closing tag");continue;case Gt.TEXT_ENTITY:case Gt.ATTRIB_VALUE_ENTITY_Q:case Gt.ATTRIB_VALUE_ENTITY_U:var Be,Te;switch(le.state){case Gt.TEXT_ENTITY:Be=Gt.TEXT,Te="textNode";break;case Gt.ATTRIB_VALUE_ENTITY_Q:Be=Gt.ATTRIB_VALUE_QUOTED,Te="attribValue";break;case Gt.ATTRIB_VALUE_ENTITY_U:Be=Gt.ATTRIB_VALUE_UNQUOTED,Te="attribValue";break}se===";"?(le[Te]+=_e(le),le.entity="",le.state=Be):Ut(le.entity.length?Mt:_t,se)?le.entity+=se:(we(le,"Invalid character in entity name"),le[Te]+="&"+le.entity+se,le.entity="",le.state=Be);continue;default:throw new Error(le,"Unknown state: "+le.state)}return le.position>=le.bufferCheckPosition&&xt(le),le}String.fromCodePoint||function(){var xe=String.fromCharCode,le=Math.floor,Ne=function(){var se=16384,Ae=[],Xe,Be,Te=-1,ue=arguments.length;if(!ue)return"";for(var $t="";++Te<ue;){var he=Number(arguments[Te]);if(!isFinite(he)||he<0||he>1114111||le(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?Ae.push(he):(he-=65536,Xe=(he>>10)+55296,Be=he%1024+56320,Ae.push(Xe,Be)),(Te+1===ue||Ae.length>se)&&($t+=xe.apply(null,Ae),Ae.length=0)}return $t};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ne,configurable:!0,writable:!0}):String.fromCodePoint=Ne}()})(typeof Ct=="undefined"?this.sax={}:Ct)}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(rt,kt,Ct){kt.exports=vt;var St=rt("events").EventEmitter,pt=rt("inherits");pt(vt,St),vt.Readable=rt("readable-stream/lib/_stream_readable.js"),vt.Writable=rt("readable-stream/lib/_stream_writable.js"),vt.Duplex=rt("readable-stream/lib/_stream_duplex.js"),vt.Transform=rt("readable-stream/lib/_stream_transform.js"),vt.PassThrough=rt("readable-stream/lib/_stream_passthrough.js"),vt.finished=rt("readable-stream/lib/internal/streams/end-of-stream.js"),vt.pipeline=rt("readable-stream/lib/internal/streams/pipeline.js"),vt.Stream=vt;function vt(){St.call(this)}vt.prototype.pipe=function(yt,xt){var dt=this;function ft(at){yt.writable&&yt.write(at)===!1&&dt.pause&&dt.pause()}dt.on("data",ft);function ct(){dt.readable&&dt.resume&&dt.resume()}yt.on("drain",ct),!yt._isStdio&&(!xt||xt.end!==!1)&&(dt.on("end",E),dt.on("close",z));var lt=!1;function E(){lt||(lt=!0,yt.end())}function z(){lt||(lt=!0,typeof yt.destroy=="function"&&yt.destroy())}function ot(at){if(it(),St.listenerCount(this,"error")===0)throw at}dt.on("error",ot),yt.on("error",ot);function it(){dt.removeListener("data",ft),yt.removeListener("drain",ct),dt.removeListener("end",E),dt.removeListener("close",z),dt.removeListener("error",ot),yt.removeListener("error",ot),dt.removeListener("end",it),dt.removeListener("close",it),yt.removeListener("close",it)}return dt.on("end",it),dt.on("close",it),yt.on("close",it),yt.emit("pipe",dt),yt}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(rt,kt,Ct){"use strict";function St(ct,lt){ct.prototype=Object.create(lt.prototype),ct.prototype.constructor=ct,ct.__proto__=lt}var pt={};function vt(ct,lt,E){E||(E=Error);function z(it,at,ut){return typeof lt=="string"?lt:lt(it,at,ut)}var ot=function(it){St(at,it);function at(ut,wt,Et){return it.call(this,z(ut,wt,Et))||this}return at}(E);ot.prototype.name=E.name,ot.prototype.code=ct,pt[ct]=ot}function yt(ct,lt){if(Array.isArray(ct)){var E=ct.length;return ct=ct.map(function(z){return String(z)}),E>2?"one of ".concat(lt," ").concat(ct.slice(0,E-1).join(", "),", or ")+ct[E-1]:E===2?"one of ".concat(lt," ").concat(ct[0]," or ").concat(ct[1]):"of ".concat(lt," ").concat(ct[0])}else return"of ".concat(lt," ").concat(String(ct))}function xt(ct,lt,E){return ct.substr(!E||E<0?0:+E,lt.length)===lt}function dt(ct,lt,E){return(E===void 0||E>ct.length)&&(E=ct.length),ct.substring(E-lt.length,E)===lt}function ft(ct,lt,E){return typeof E!="number"&&(E=0),E+lt.length>ct.length?!1:ct.indexOf(lt,E)!==-1}vt("ERR_INVALID_OPT_VALUE",function(ct,lt){return'The value "'+lt+'" is invalid for option "'+ct+'"'},TypeError),vt("ERR_INVALID_ARG_TYPE",function(ct,lt,E){var z;typeof lt=="string"&&xt(lt,"not ")?(z="must not be",lt=lt.replace(/^not /,"")):z="must be";var ot;if(dt(ct," argument"))ot="The ".concat(ct," ").concat(z," ").concat(yt(lt,"type"));else{var it=ft(ct,".")?"property":"argument";ot='The "'.concat(ct,'" ').concat(it," ").concat(z," ").concat(yt(lt,"type"))}return ot+=". Received type ".concat(typeof E),ot},TypeError),vt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),vt("ERR_METHOD_NOT_IMPLEMENTED",function(ct){return"The "+ct+" method is not implemented"}),vt("ERR_STREAM_PREMATURE_CLOSE","Premature close"),vt("ERR_STREAM_DESTROYED",function(ct){return"Cannot call "+ct+" after a stream was destroyed"}),vt("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),vt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),vt("ERR_STREAM_WRITE_AFTER_END","write after end"),vt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),vt("ERR_UNKNOWN_ENCODING",function(ct){return"Unknown encoding: "+ct},TypeError),vt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),kt.exports.codes=pt},{}],400:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=Object.keys||function(z){var ot=[];for(var it in z)ot.push(it);return ot};kt.exports=ct;var vt=rt("./_stream_readable"),yt=rt("./_stream_writable");rt("inherits")(ct,vt);for(var xt=pt(yt.prototype),dt=0;dt<xt.length;dt++){var ft=xt[dt];ct.prototype[ft]||(ct.prototype[ft]=yt.prototype[ft])}function ct(z){if(!(this instanceof ct))return new ct(z);vt.call(this,z),yt.call(this,z),this.allowHalfOpen=!0,z&&(z.readable===!1&&(this.readable=!1),z.writable===!1&&(this.writable=!1),z.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",lt)))}Object.defineProperty(ct.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ct.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ct.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function lt(){this._writableState.ended||St.nextTick(E,this)}function E(z){z.end()}Object.defineProperty(ct.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1: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)}})}).call(this)}).call(this,rt("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(rt,kt,Ct){"use strict";kt.exports=pt;var St=rt("./_stream_transform");rt("inherits")(pt,St);function pt(vt){if(!(this instanceof pt))return new pt(vt);St.call(this,vt)}pt.prototype._transform=function(vt,yt,xt){xt(null,vt)}},{"./_stream_transform":403,inherits:364}],402:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";kt.exports=ne;var vt;ne.ReadableState=Ht;var yt=rt("events").EventEmitter,xt=function(ue,$t){return ue.listeners($t).length},dt=rt("./internal/streams/stream"),ft=rt("buffer").Buffer,ct=(typeof pt!="undefined"?pt:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function lt(Te){return ft.from(Te)}function E(Te){return ft.isBuffer(Te)||Te instanceof ct}var z=rt("util"),ot;z&&z.debuglog?ot=z.debuglog("stream"):ot=function(){};var it=rt("./internal/streams/buffer_list"),at=rt("./internal/streams/destroy"),ut=rt("./internal/streams/state"),wt=ut.getHighWaterMark,Et=rt("../errors").codes,At=Et.ERR_INVALID_ARG_TYPE,_t=Et.ERR_STREAM_PUSH_AFTER_EOF,Mt=Et.ERR_METHOD_NOT_IMPLEMENTED,jt=Et.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Lt,It,Ut;rt("inherits")(ne,dt);var Xt=at.errorOrDestroy,Gt=["error","close","destroy","pause","resume"];function Yt(Te,ue,$t){if(typeof Te.prependListener=="function")return Te.prependListener(ue,$t);!Te._events||!Te._events[ue]?Te.on(ue,$t):Array.isArray(Te._events[ue])?Te._events[ue].unshift($t):Te._events[ue]=[$t,Te._events[ue]]}function Ht(Te,ue,$t){vt=vt||rt("./_stream_duplex"),Te=Te||{},typeof $t!="boolean"&&($t=ue instanceof vt),this.objectMode=!!Te.objectMode,$t&&(this.objectMode=this.objectMode||!!Te.readableObjectMode),this.highWaterMark=wt(this,Te,"readableHighWaterMark",$t),this.buffer=new it,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Te.emitClose!==!1,this.autoDestroy=!!Te.autoDestroy,this.destroyed=!1,this.defaultEncoding=Te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Te.encoding&&(Lt||(Lt=rt("string_decoder/").StringDecoder),this.decoder=new Lt(Te.encoding),this.encoding=Te.encoding)}function ne(Te){if(vt=vt||rt("./_stream_duplex"),!(this instanceof ne))return new ne(Te);var ue=this instanceof vt;this._readableState=new Ht(Te,this,ue),this.readable=!0,Te&&(typeof Te.read=="function"&&(this._read=Te.read),typeof Te.destroy=="function"&&(this._destroy=Te.destroy)),dt.call(this)}Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ue){this._readableState&&(this._readableState.destroyed=ue)}}),ne.prototype.destroy=at.destroy,ne.prototype._undestroy=at.undestroy,ne.prototype._destroy=function(Te,ue){ue(Te)},ne.prototype.push=function(Te,ue){var $t=this._readableState,he;return $t.objectMode?he=!0:typeof Te=="string"&&(ue=ue||$t.defaultEncoding,ue!==$t.encoding&&(Te=ft.from(Te,ue),ue=""),he=!0),ae(this,Te,ue,!1,he)},ne.prototype.unshift=function(Te){return ae(this,Te,null,!0,!1)};function ae(Te,ue,$t,he,ye){ot("readableAddChunk",ue);var Qt=Te._readableState;if(ue===null)Qt.reading=!1,ke(Te,Qt);else{var Wt;if(ye||(Wt=Kt(Qt,ue)),Wt)Xt(Te,Wt);else if(Qt.objectMode||ue&&ue.length>0)if(typeof ue!="string"&&!Qt.objectMode&&Object.getPrototypeOf(ue)!==ft.prototype&&(ue=lt(ue)),he)Qt.endEmitted?Xt(Te,new jt):ve(Te,Qt,ue,!0);else if(Qt.ended)Xt(Te,new _t);else{if(Qt.destroyed)return!1;Qt.reading=!1,Qt.decoder&&!$t?(ue=Qt.decoder.write(ue),Qt.objectMode||ue.length!==0?ve(Te,Qt,ue,!1):pe(Te,Qt)):ve(Te,Qt,ue,!1)}else he||(Qt.reading=!1,pe(Te,Qt))}return!Qt.ended&&(Qt.length<Qt.highWaterMark||Qt.length===0)}function ve(Te,ue,$t,he){ue.flowing&&ue.length===0&&!ue.sync?(ue.awaitDrain=0,Te.emit("data",$t)):(ue.length+=ue.objectMode?1:$t.length,he?ue.buffer.unshift($t):ue.buffer.push($t),ue.needReadable&&me(Te)),pe(Te,ue)}function Kt(Te,ue){var $t;return!E(ue)&&typeof ue!="string"&&ue!==void 0&&!Te.objectMode&&($t=new At("chunk",["string","Buffer","Uint8Array"],ue)),$t}ne.prototype.isPaused=function(){return this._readableState.flowing===!1},ne.prototype.setEncoding=function(Te){Lt||(Lt=rt("string_decoder/").StringDecoder);var ue=new Lt(Te);this._readableState.decoder=ue,this._readableState.encoding=this._readableState.decoder.encoding;for(var $t=this._readableState.buffer.head,he="";$t!==null;)he+=ue.write($t.data),$t=$t.next;return this._readableState.buffer.clear(),he!==""&&this._readableState.buffer.push(he),this._readableState.length=he.length,this};var re=1073741824;function we(Te){return Te>=re?Te=re:(Te--,Te|=Te>>>1,Te|=Te>>>2,Te|=Te>>>4,Te|=Te>>>8,Te|=Te>>>16,Te++),Te}function Me(Te,ue){return Te<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:Te!==Te?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(Te>ue.highWaterMark&&(ue.highWaterMark=we(Te)),Te<=ue.length?Te:ue.ended?ue.length:(ue.needReadable=!0,0))}ne.prototype.read=function(Te){ot("read",Te),Te=parseInt(Te,10);var ue=this._readableState,$t=Te;if(Te!==0&&(ue.emittedReadable=!1),Te===0&&ue.needReadable&&((ue.highWaterMark!==0?ue.length>=ue.highWaterMark:ue.length>0)||ue.ended))return ot("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Ae(this):me(this),null;if(Te=Me(Te,ue),Te===0&&ue.ended)return ue.length===0&&Ae(this),null;var he=ue.needReadable;ot("need readable",he),(ue.length===0||ue.length-Te<ue.highWaterMark)&&(he=!0,ot("length less than watermark",he)),ue.ended||ue.reading?(he=!1,ot("reading or ended",he)):he&&(ot("do read"),ue.reading=!0,ue.sync=!0,ue.length===0&&(ue.needReadable=!0),this._read(ue.highWaterMark),ue.sync=!1,ue.reading||(Te=Me($t,ue)));var ye;return Te>0?ye=se(Te,ue):ye=null,ye===null?(ue.needReadable=ue.length<=ue.highWaterMark,Te=0):(ue.length-=Te,ue.awaitDrain=0),ue.length===0&&(ue.ended||(ue.needReadable=!0),$t!==Te&&ue.ended&&Ae(this)),ye!==null&&this.emit("data",ye),ye};function ke(Te,ue){if(ot("onEofChunk"),!ue.ended){if(ue.decoder){var $t=ue.decoder.end();$t&&$t.length&&(ue.buffer.push($t),ue.length+=ue.objectMode?1:$t.length)}ue.ended=!0,ue.sync?me(Te):(ue.needReadable=!1,ue.emittedReadable||(ue.emittedReadable=!0,fe(Te)))}}function me(Te){var ue=Te._readableState;ot("emitReadable",ue.needReadable,ue.emittedReadable),ue.needReadable=!1,ue.emittedReadable||(ot("emitReadable",ue.flowing),ue.emittedReadable=!0,St.nextTick(fe,Te))}function fe(Te){var ue=Te._readableState;ot("emitReadable_",ue.destroyed,ue.length,ue.ended),!ue.destroyed&&(ue.length||ue.ended)&&(Te.emit("readable"),ue.emittedReadable=!1),ue.needReadable=!ue.flowing&&!ue.ended&&ue.length<=ue.highWaterMark,Ne(Te)}function pe(Te,ue){ue.readingMore||(ue.readingMore=!0,St.nextTick(_e,Te,ue))}function _e(Te,ue){for(;!ue.reading&&!ue.ended&&(ue.length<ue.highWaterMark||ue.flowing&&ue.length===0);){var $t=ue.length;if(ot("maybeReadMore read 0"),Te.read(0),$t===ue.length)break}ue.readingMore=!1}ne.prototype._read=function(Te){Xt(this,new Mt("_read()"))},ne.prototype.pipe=function(Te,ue){var $t=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=Te;break;case 1:he.pipes=[he.pipes,Te];break;default:he.pipes.push(Te);break}he.pipesCount+=1,ot("pipe count=%d opts=%j",he.pipesCount,ue);var ye=(!ue||ue.end!==!1)&&Te!==St.stdout&&Te!==St.stderr,Qt=ye?Bt:nn;he.endEmitted?St.nextTick(Qt):$t.once("end",Qt),Te.on("unpipe",Wt);function Wt(fn,An){ot("onunpipe"),fn===$t&&An&&An.hasUnpiped===!1&&(An.hasUnpiped=!0,Jt())}function Bt(){ot("onend"),Te.end()}var te=je($t);Te.on("drain",te);var ge=!1;function Jt(){ot("cleanup"),Te.removeListener("close",Je),Te.removeListener("finish",Ze),Te.removeListener("drain",te),Te.removeListener("error",Ue),Te.removeListener("unpipe",Wt),$t.removeListener("end",Bt),$t.removeListener("end",nn),$t.removeListener("data",Ie),ge=!0,he.awaitDrain&&(!Te._writableState||Te._writableState.needDrain)&&te()}$t.on("data",Ie);function Ie(fn){ot("ondata");var An=Te.write(fn);ot("dest.write",An),An===!1&&((he.pipesCount===1&&he.pipes===Te||he.pipesCount>1&&Be(he.pipes,Te)!==-1)&&!ge&&(ot("false write response, pause",he.awaitDrain),he.awaitDrain++),$t.pause())}function Ue(fn){ot("onerror",fn),nn(),Te.removeListener("error",Ue),xt(Te,"error")===0&&Xt(Te,fn)}Yt(Te,"error",Ue);function Je(){Te.removeListener("finish",Ze),nn()}Te.once("close",Je);function Ze(){ot("onfinish"),Te.removeListener("close",Je),nn()}Te.once("finish",Ze);function nn(){ot("unpipe"),$t.unpipe(Te)}return Te.emit("pipe",$t),he.flowing||(ot("pipe resume"),$t.resume()),Te};function je(Te){return function(){var $t=Te._readableState;ot("pipeOnDrain",$t.awaitDrain),$t.awaitDrain&&$t.awaitDrain--,$t.awaitDrain===0&&xt(Te,"data")&&($t.flowing=!0,Ne(Te))}}ne.prototype.unpipe=function(Te){var ue=this._readableState,$t={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return Te&&Te!==ue.pipes?this:(Te||(Te=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,Te&&Te.emit("unpipe",this,$t),this);if(!Te){var he=ue.pipes,ye=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var Qt=0;Qt<ye;Qt++)he[Qt].emit("unpipe",this,{hasUnpiped:!1});return this}var Wt=Be(ue.pipes,Te);return Wt===-1?this:(ue.pipes.splice(Wt,1),ue.pipesCount-=1,ue.pipesCount===1&&(ue.pipes=ue.pipes[0]),Te.emit("unpipe",this,$t),this)},ne.prototype.on=function(Te,ue){var $t=dt.prototype.on.call(this,Te,ue),he=this._readableState;return Te==="data"?(he.readableListening=this.listenerCount("readable")>0,he.flowing!==!1&&this.resume()):Te==="readable"&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,ot("on readable",he.length,he.reading),he.length?me(this):he.reading||St.nextTick(Se,this)),$t},ne.prototype.addListener=ne.prototype.on,ne.prototype.removeListener=function(Te,ue){var $t=dt.prototype.removeListener.call(this,Te,ue);return Te==="readable"&&St.nextTick(He,this),$t},ne.prototype.removeAllListeners=function(Te){var ue=dt.prototype.removeAllListeners.apply(this,arguments);return(Te==="readable"||Te===void 0)&&St.nextTick(He,this),ue};function He(Te){var ue=Te._readableState;ue.readableListening=Te.listenerCount("readable")>0,ue.resumeScheduled&&!ue.paused?ue.flowing=!0:Te.listenerCount("data")>0&&Te.resume()}function Se(Te){ot("readable nexttick read 0"),Te.read(0)}ne.prototype.resume=function(){var Te=this._readableState;return Te.flowing||(ot("resume"),Te.flowing=!Te.readableListening,xe(this,Te)),Te.paused=!1,this};function xe(Te,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,St.nextTick(le,Te,ue))}function le(Te,ue){ot("resume",ue.reading),ue.reading||Te.read(0),ue.resumeScheduled=!1,Te.emit("resume"),Ne(Te),ue.flowing&&!ue.reading&&Te.read(0)}ne.prototype.pause=function(){return ot("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ot("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ne(Te){var ue=Te._readableState;for(ot("flow",ue.flowing);ue.flowing&&Te.read()!==null;);}ne.prototype.wrap=function(Te){var ue=this,$t=this._readableState,he=!1;Te.on("end",function(){if(ot("wrapped end"),$t.decoder&&!$t.ended){var Wt=$t.decoder.end();Wt&&Wt.length&&ue.push(Wt)}ue.push(null)}),Te.on("data",function(Wt){if(ot("wrapped data"),$t.decoder&&(Wt=$t.decoder.write(Wt)),!($t.objectMode&&Wt==null)&&!(!$t.objectMode&&(!Wt||!Wt.length))){var Bt=ue.push(Wt);Bt||(he=!0,Te.pause())}});for(var ye in Te)this[ye]===void 0&&typeof Te[ye]=="function"&&(this[ye]=function(Bt){return function(){return Te[Bt].apply(Te,arguments)}}(ye));for(var Qt=0;Qt<Gt.length;Qt++)Te.on(Gt[Qt],this.emit.bind(this,Gt[Qt]));return this._read=function(Wt){ot("wrapped _read",Wt),he&&(he=!1,Te.resume())},this},typeof Symbol=="function"&&(ne.prototype[Symbol.asyncIterator]=function(){return It===void 0&&(It=rt("./internal/streams/async_iterator")),It(this)}),Object.defineProperty(ne.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ne.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ne.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ue){this._readableState&&(this._readableState.flowing=ue)}}),ne._fromList=se,Object.defineProperty(ne.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function se(Te,ue){if(ue.length===0)return null;var $t;return ue.objectMode?$t=ue.buffer.shift():!Te||Te>=ue.length?(ue.decoder?$t=ue.buffer.join(""):ue.buffer.length===1?$t=ue.buffer.first():$t=ue.buffer.concat(ue.length),ue.buffer.clear()):$t=ue.buffer.consume(Te,ue.decoder),$t}function Ae(Te){var ue=Te._readableState;ot("endReadable",ue.endEmitted),ue.endEmitted||(ue.ended=!0,St.nextTick(Xe,ue,Te))}function Xe(Te,ue){if(ot("endReadableNT",Te.endEmitted,Te.length),!Te.endEmitted&&Te.length===0&&(Te.endEmitted=!0,ue.readable=!1,ue.emit("end"),Te.autoDestroy)){var $t=ue._writableState;(!$t||$t.autoDestroy&&$t.finished)&&ue.destroy()}}typeof Symbol=="function"&&(ne.from=function(Te,ue){return Ut===void 0&&(Ut=rt("./internal/streams/from")),Ut(ne,Te,ue)});function Be(Te,ue){for(var $t=0,he=Te.length;$t<he;$t++)if(Te[$t]===ue)return $t;return-1}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(rt,kt,Ct){"use strict";kt.exports=ct;var St=rt("../errors").codes,pt=St.ERR_METHOD_NOT_IMPLEMENTED,vt=St.ERR_MULTIPLE_CALLBACK,yt=St.ERR_TRANSFORM_ALREADY_TRANSFORMING,xt=St.ERR_TRANSFORM_WITH_LENGTH_0,dt=rt("./_stream_duplex");rt("inherits")(ct,dt);function ft(z,ot){var it=this._transformState;it.transforming=!1;var at=it.writecb;if(at===null)return this.emit("error",new vt);it.writechunk=null,it.writecb=null,ot!=null&&this.push(ot),at(z);var ut=this._readableState;ut.reading=!1,(ut.needReadable||ut.length<ut.highWaterMark)&&this._read(ut.highWaterMark)}function ct(z){if(!(this instanceof ct))return new ct(z);dt.call(this,z),this._transformState={afterTransform:ft.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,z&&(typeof z.transform=="function"&&(this._transform=z.transform),typeof z.flush=="function"&&(this._flush=z.flush)),this.on("prefinish",lt)}function lt(){var z=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ot,it){E(z,ot,it)}):E(this,null,null)}ct.prototype.push=function(z,ot){return this._transformState.needTransform=!1,dt.prototype.push.call(this,z,ot)},ct.prototype._transform=function(z,ot,it){it(new pt("_transform()"))},ct.prototype._write=function(z,ot,it){var at=this._transformState;if(at.writecb=it,at.writechunk=z,at.writeencoding=ot,!at.transforming){var ut=this._readableState;(at.needTransform||ut.needReadable||ut.length<ut.highWaterMark)&&this._read(ut.highWaterMark)}},ct.prototype._read=function(z){var ot=this._transformState;ot.writechunk!==null&&!ot.transforming?(ot.transforming=!0,this._transform(ot.writechunk,ot.writeencoding,ot.afterTransform)):ot.needTransform=!0},ct.prototype._destroy=function(z,ot){dt.prototype._destroy.call(this,z,function(it){ot(it)})};function E(z,ot,it){if(ot)return z.emit("error",ot);if(it!=null&&z.push(it),z._writableState.length)throw new xt;if(z._transformState.transforming)throw new yt;return z.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";kt.exports=Ht;function vt(Ne,se,Ae){this.chunk=Ne,this.encoding=se,this.callback=Ae,this.next=null}function yt(Ne){var se=this;this.next=null,this.entry=null,this.finish=function(){le(se,Ne)}}var xt;Ht.WritableState=Gt;var dt={deprecate:rt("util-deprecate")},ft=rt("./internal/streams/stream"),ct=rt("buffer").Buffer,lt=(typeof pt!="undefined"?pt:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function E(Ne){return ct.from(Ne)}function z(Ne){return ct.isBuffer(Ne)||Ne instanceof lt}var ot=rt("./internal/streams/destroy"),it=rt("./internal/streams/state"),at=it.getHighWaterMark,ut=rt("../errors").codes,wt=ut.ERR_INVALID_ARG_TYPE,Et=ut.ERR_METHOD_NOT_IMPLEMENTED,At=ut.ERR_MULTIPLE_CALLBACK,_t=ut.ERR_STREAM_CANNOT_PIPE,Mt=ut.ERR_STREAM_DESTROYED,jt=ut.ERR_STREAM_NULL_VALUES,Lt=ut.ERR_STREAM_WRITE_AFTER_END,It=ut.ERR_UNKNOWN_ENCODING,Ut=ot.errorOrDestroy;rt("inherits")(Ht,ft);function Xt(){}function Gt(Ne,se,Ae){xt=xt||rt("./_stream_duplex"),Ne=Ne||{},typeof Ae!="boolean"&&(Ae=se instanceof xt),this.objectMode=!!Ne.objectMode,Ae&&(this.objectMode=this.objectMode||!!Ne.writableObjectMode),this.highWaterMark=at(this,Ne,"writableHighWaterMark",Ae),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Xe=Ne.decodeStrings===!1;this.decodeStrings=!Xe,this.defaultEncoding=Ne.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Be){ke(se,Be)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ne.emitClose!==!1,this.autoDestroy=!!Ne.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new yt(this)}Gt.prototype.getBuffer=function(){for(var se=this.bufferedRequest,Ae=[];se;)Ae.push(se),se=se.next;return Ae},function(){try{Object.defineProperty(Gt.prototype,"buffer",{get:dt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ne){}}();var Yt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Yt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ht,Symbol.hasInstance,{value:function(se){return Yt.call(this,se)?!0:this!==Ht?!1:se&&se._writableState instanceof Gt}})):Yt=function(se){return se instanceof this};function Ht(Ne){xt=xt||rt("./_stream_duplex");var se=this instanceof xt;if(!se&&!Yt.call(Ht,this))return new Ht(Ne);this._writableState=new Gt(Ne,this,se),this.writable=!0,Ne&&(typeof Ne.write=="function"&&(this._write=Ne.write),typeof Ne.writev=="function"&&(this._writev=Ne.writev),typeof Ne.destroy=="function"&&(this._destroy=Ne.destroy),typeof Ne.final=="function"&&(this._final=Ne.final)),ft.call(this)}Ht.prototype.pipe=function(){Ut(this,new _t)};function ne(Ne,se){var Ae=new Lt;Ut(Ne,Ae),St.nextTick(se,Ae)}function ae(Ne,se,Ae,Xe){var Be;return Ae===null?Be=new jt:typeof Ae!="string"&&!se.objectMode&&(Be=new wt("chunk",["string","Buffer"],Ae)),Be?(Ut(Ne,Be),St.nextTick(Xe,Be),!1):!0}Ht.prototype.write=function(Ne,se,Ae){var Xe=this._writableState,Be=!1,Te=!Xe.objectMode&&z(Ne);return Te&&!ct.isBuffer(Ne)&&(Ne=E(Ne)),typeof se=="function"&&(Ae=se,se=null),Te?se="buffer":se||(se=Xe.defaultEncoding),typeof Ae!="function"&&(Ae=Xt),Xe.ending?ne(this,Ae):(Te||ae(this,Xe,Ne,Ae))&&(Xe.pendingcb++,Be=Kt(this,Xe,Te,Ne,se,Ae)),Be},Ht.prototype.cork=function(){this._writableState.corked++},Ht.prototype.uncork=function(){var Ne=this._writableState;Ne.corked&&(Ne.corked--,!Ne.writing&&!Ne.corked&&!Ne.bufferProcessing&&Ne.bufferedRequest&&pe(this,Ne))},Ht.prototype.setDefaultEncoding=function(se){if(typeof se=="string"&&(se=se.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((se+"").toLowerCase())>-1))throw new It(se);return this._writableState.defaultEncoding=se,this},Object.defineProperty(Ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ve(Ne,se,Ae){return!Ne.objectMode&&Ne.decodeStrings!==!1&&typeof se=="string"&&(se=ct.from(se,Ae)),se}Object.defineProperty(Ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kt(Ne,se,Ae,Xe,Be,Te){if(!Ae){var ue=ve(se,Xe,Be);Xe!==ue&&(Ae=!0,Be="buffer",Xe=ue)}var $t=se.objectMode?1:Xe.length;se.length+=$t;var he=se.length<se.highWaterMark;if(he||(se.needDrain=!0),se.writing||se.corked){var ye=se.lastBufferedRequest;se.lastBufferedRequest={chunk:Xe,encoding:Be,isBuf:Ae,callback:Te,next:null},ye?ye.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else re(Ne,se,!1,$t,Xe,Be,Te);return he}function re(Ne,se,Ae,Xe,Be,Te,ue){se.writelen=Xe,se.writecb=ue,se.writing=!0,se.sync=!0,se.destroyed?se.onwrite(new Mt("write")):Ae?Ne._writev(Be,se.onwrite):Ne._write(Be,Te,se.onwrite),se.sync=!1}function we(Ne,se,Ae,Xe,Be){--se.pendingcb,Ae?(St.nextTick(Be,Xe),St.nextTick(Se,Ne,se),Ne._writableState.errorEmitted=!0,Ut(Ne,Xe)):(Be(Xe),Ne._writableState.errorEmitted=!0,Ut(Ne,Xe),Se(Ne,se))}function Me(Ne){Ne.writing=!1,Ne.writecb=null,Ne.length-=Ne.writelen,Ne.writelen=0}function ke(Ne,se){var Ae=Ne._writableState,Xe=Ae.sync,Be=Ae.writecb;if(typeof Be!="function")throw new At;if(Me(Ae),se)we(Ne,Ae,Xe,se,Be);else{var Te=_e(Ae)||Ne.destroyed;!Te&&!Ae.corked&&!Ae.bufferProcessing&&Ae.bufferedRequest&&pe(Ne,Ae),Xe?St.nextTick(me,Ne,Ae,Te,Be):me(Ne,Ae,Te,Be)}}function me(Ne,se,Ae,Xe){Ae||fe(Ne,se),se.pendingcb--,Xe(),Se(Ne,se)}function fe(Ne,se){se.length===0&&se.needDrain&&(se.needDrain=!1,Ne.emit("drain"))}function pe(Ne,se){se.bufferProcessing=!0;var Ae=se.bufferedRequest;if(Ne._writev&&Ae&&Ae.next){var Xe=se.bufferedRequestCount,Be=new Array(Xe),Te=se.corkedRequestsFree;Te.entry=Ae;for(var ue=0,$t=!0;Ae;)Be[ue]=Ae,Ae.isBuf||($t=!1),Ae=Ae.next,ue+=1;Be.allBuffers=$t,re(Ne,se,!0,se.length,Be,"",Te.finish),se.pendingcb++,se.lastBufferedRequest=null,Te.next?(se.corkedRequestsFree=Te.next,Te.next=null):se.corkedRequestsFree=new yt(se),se.bufferedRequestCount=0}else{for(;Ae;){var he=Ae.chunk,ye=Ae.encoding,Qt=Ae.callback,Wt=se.objectMode?1:he.length;if(re(Ne,se,!1,Wt,he,ye,Qt),Ae=Ae.next,se.bufferedRequestCount--,se.writing)break}Ae===null&&(se.lastBufferedRequest=null)}se.bufferedRequest=Ae,se.bufferProcessing=!1}Ht.prototype._write=function(Ne,se,Ae){Ae(new Et("_write()"))},Ht.prototype._writev=null,Ht.prototype.end=function(Ne,se,Ae){var Xe=this._writableState;return typeof Ne=="function"?(Ae=Ne,Ne=null,se=null):typeof se=="function"&&(Ae=se,se=null),Ne!=null&&this.write(Ne,se),Xe.corked&&(Xe.corked=1,this.uncork()),Xe.ending||xe(this,Xe,Ae),this},Object.defineProperty(Ht.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function _e(Ne){return Ne.ending&&Ne.length===0&&Ne.bufferedRequest===null&&!Ne.finished&&!Ne.writing}function je(Ne,se){Ne._final(function(Ae){se.pendingcb--,Ae&&Ut(Ne,Ae),se.prefinished=!0,Ne.emit("prefinish"),Se(Ne,se)})}function He(Ne,se){!se.prefinished&&!se.finalCalled&&(typeof Ne._final=="function"&&!se.destroyed?(se.pendingcb++,se.finalCalled=!0,St.nextTick(je,Ne,se)):(se.prefinished=!0,Ne.emit("prefinish")))}function Se(Ne,se){var Ae=_e(se);if(Ae&&(He(Ne,se),se.pendingcb===0&&(se.finished=!0,Ne.emit("finish"),se.autoDestroy))){var Xe=Ne._readableState;(!Xe||Xe.autoDestroy&&Xe.endEmitted)&&Ne.destroy()}return Ae}function xe(Ne,se,Ae){se.ending=!0,Se(Ne,se),Ae&&(se.finished?St.nextTick(Ae):Ne.once("finish",Ae)),se.ended=!0,Ne.writable=!1}function le(Ne,se,Ae){var Xe=Ne.entry;for(Ne.entry=null;Xe;){var Be=Xe.callback;se.pendingcb--,Be(Ae),Xe=Xe.next}se.corkedRequestsFree.next=Ne}Object.defineProperty(Ht.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(se){this._writableState&&(this._writableState.destroyed=se)}}),Ht.prototype.destroy=ot.destroy,Ht.prototype._undestroy=ot.undestroy,Ht.prototype._destroy=function(Ne,se){se(Ne)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt;function vt(jt,Lt,It){return Lt=yt(Lt),Lt in jt?Object.defineProperty(jt,Lt,{value:It,enumerable:!0,configurable:!0,writable:!0}):jt[Lt]=It,jt}function yt(jt){var Lt=xt(jt,"string");return typeof Lt=="symbol"?Lt:String(Lt)}function xt(jt,Lt){if(typeof jt!="object"||jt===null)return jt;var It=jt[Symbol.toPrimitive];if(It!==void 0){var Ut=It.call(jt,Lt||"default");if(typeof Ut!="object")return Ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Lt==="string"?String:Number)(jt)}var dt=rt("./end-of-stream"),ft=Symbol("lastResolve"),ct=Symbol("lastReject"),lt=Symbol("error"),E=Symbol("ended"),z=Symbol("lastPromise"),ot=Symbol("handlePromise"),it=Symbol("stream");function at(jt,Lt){return{value:jt,done:Lt}}function ut(jt){var Lt=jt[ft];if(Lt!==null){var It=jt[it].read();It!==null&&(jt[z]=null,jt[ft]=null,jt[ct]=null,Lt(at(It,!1)))}}function wt(jt){St.nextTick(ut,jt)}function Et(jt,Lt){return function(It,Ut){jt.then(function(){if(Lt[E]){It(at(void 0,!0));return}Lt[ot](It,Ut)},Ut)}}var At=Object.getPrototypeOf(function(){}),_t=Object.setPrototypeOf((pt={get stream(){return this[it]},next:function(){var Lt=this,It=this[lt];if(It!==null)return Promise.reject(It);if(this[E])return Promise.resolve(at(void 0,!0));if(this[it].destroyed)return new Promise(function(Yt,Ht){St.nextTick(function(){Lt[lt]?Ht(Lt[lt]):Yt(at(void 0,!0))})});var Ut=this[z],Xt;if(Ut)Xt=new Promise(Et(Ut,this));else{var Gt=this[it].read();if(Gt!==null)return Promise.resolve(at(Gt,!1));Xt=new Promise(this[ot])}return this[z]=Xt,Xt}},vt(pt,Symbol.asyncIterator,function(){return this}),vt(pt,"return",function(){var Lt=this;return new Promise(function(It,Ut){Lt[it].destroy(null,function(Xt){if(Xt){Ut(Xt);return}It(at(void 0,!0))})})}),pt),At),Mt=function(Lt){var It,Ut=Object.create(_t,(It={},vt(It,it,{value:Lt,writable:!0}),vt(It,ft,{value:null,writable:!0}),vt(It,ct,{value:null,writable:!0}),vt(It,lt,{value:null,writable:!0}),vt(It,E,{value:Lt._readableState.endEmitted,writable:!0}),vt(It,ot,{value:function(Gt,Yt){var Ht=Ut[it].read();Ht?(Ut[z]=null,Ut[ft]=null,Ut[ct]=null,Gt(at(Ht,!1))):(Ut[ft]=Gt,Ut[ct]=Yt)},writable:!0}),It));return Ut[z]=null,dt(Lt,function(Xt){if(Xt&&Xt.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Gt=Ut[ct];Gt!==null&&(Ut[z]=null,Ut[ft]=null,Ut[ct]=null,Gt(Xt)),Ut[lt]=Xt;return}var Yt=Ut[ft];Yt!==null&&(Ut[z]=null,Ut[ft]=null,Ut[ct]=null,Yt(at(void 0,!0))),Ut[E]=!0}),Lt.on("readable",wt.bind(null,Ut)),Ut};kt.exports=Mt}).call(this)}).call(this,rt("_process"))},{"./end-of-stream":408,_process:467}],406:[function(rt,kt,Ct){"use strict";function St(ut,wt){var Et=Object.keys(ut);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ut);wt&&(At=At.filter(function(_t){return Object.getOwnPropertyDescriptor(ut,_t).enumerable})),Et.push.apply(Et,At)}return Et}function pt(ut){for(var wt=1;wt<arguments.length;wt++){var Et=arguments[wt]!=null?arguments[wt]:{};wt%2?St(Object(Et),!0).forEach(function(At){vt(ut,At,Et[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ut,Object.getOwnPropertyDescriptors(Et)):St(Object(Et)).forEach(function(At){Object.defineProperty(ut,At,Object.getOwnPropertyDescriptor(Et,At))})}return ut}function vt(ut,wt,Et){return wt=ft(wt),wt in ut?Object.defineProperty(ut,wt,{value:Et,enumerable:!0,configurable:!0,writable:!0}):ut[wt]=Et,ut}function yt(ut,wt){if(!(ut instanceof wt))throw new TypeError("Cannot call a class as a function")}function xt(ut,wt){for(var Et=0;Et<wt.length;Et++){var At=wt[Et];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(ut,ft(At.key),At)}}function dt(ut,wt,Et){return wt&&xt(ut.prototype,wt),Et&&xt(ut,Et),Object.defineProperty(ut,"prototype",{writable:!1}),ut}function ft(ut){var wt=ct(ut,"string");return typeof wt=="symbol"?wt:String(wt)}function ct(ut,wt){if(typeof ut!="object"||ut===null)return ut;var Et=ut[Symbol.toPrimitive];if(Et!==void 0){var At=Et.call(ut,wt||"default");if(typeof At!="object")return At;throw new TypeError("@@toPrimitive must return a primitive value.")}return(wt==="string"?String:Number)(ut)}var lt=rt("buffer"),E=lt.Buffer,z=rt("util"),ot=z.inspect,it=ot&&ot.custom||"inspect";function at(ut,wt,Et){E.prototype.copy.call(ut,wt,Et)}kt.exports=function(){function ut(){yt(this,ut),this.head=null,this.tail=null,this.length=0}return dt(ut,[{key:"push",value:function(Et){var At={data:Et,next:null};this.length>0?this.tail.next=At:this.head=At,this.tail=At,++this.length}},{key:"unshift",value:function(Et){var At={data:Et,next:this.head};this.length===0&&(this.tail=At),this.head=At,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Et=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Et}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Et){if(this.length===0)return"";for(var At=this.head,_t=""+At.data;At=At.next;)_t+=Et+At.data;return _t}},{key:"concat",value:function(Et){if(this.length===0)return E.alloc(0);for(var At=E.allocUnsafe(Et>>>0),_t=this.head,Mt=0;_t;)at(_t.data,At,Mt),Mt+=_t.data.length,_t=_t.next;return At}},{key:"consume",value:function(Et,At){var _t;return Et<this.head.data.length?(_t=this.head.data.slice(0,Et),this.head.data=this.head.data.slice(Et)):Et===this.head.data.length?_t=this.shift():_t=At?this._getString(Et):this._getBuffer(Et),_t}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Et){var At=this.head,_t=1,Mt=At.data;for(Et-=Mt.length;At=At.next;){var jt=At.data,Lt=Et>jt.length?jt.length:Et;if(Lt===jt.length?Mt+=jt:Mt+=jt.slice(0,Et),Et-=Lt,Et===0){Lt===jt.length?(++_t,At.next?this.head=At.next:this.head=this.tail=null):(this.head=At,At.data=jt.slice(Lt));break}++_t}return this.length-=_t,Mt}},{key:"_getBuffer",value:function(Et){var At=E.allocUnsafe(Et),_t=this.head,Mt=1;for(_t.data.copy(At),Et-=_t.data.length;_t=_t.next;){var jt=_t.data,Lt=Et>jt.length?jt.length:Et;if(jt.copy(At,At.length-Et,0,Lt),Et-=Lt,Et===0){Lt===jt.length?(++Mt,_t.next?this.head=_t.next:this.head=this.tail=null):(this.head=_t,_t.data=jt.slice(Lt));break}++Mt}return this.length-=Mt,At}},{key:it,value:function(Et,At){return ot(this,pt(pt({},At),{},{depth:0,customInspect:!1}))}}]),ut}()},{buffer:90,util:89}],407:[function(rt,kt,Ct){(function(St){(function(){"use strict";function pt(ct,lt){var E=this,z=this._readableState&&this._readableState.destroyed,ot=this._writableState&&this._writableState.destroyed;return z||ot?(lt?lt(ct):ct&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,St.nextTick(dt,this,ct)):St.nextTick(dt,this,ct)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ct||null,function(it){!lt&&it?E._writableState?E._writableState.errorEmitted?St.nextTick(yt,E):(E._writableState.errorEmitted=!0,St.nextTick(vt,E,it)):St.nextTick(vt,E,it):lt?(St.nextTick(yt,E),lt(it)):St.nextTick(yt,E)}),this)}function vt(ct,lt){dt(ct,lt),yt(ct)}function yt(ct){ct._writableState&&!ct._writableState.emitClose||ct._readableState&&!ct._readableState.emitClose||ct.emit("close")}function xt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dt(ct,lt){ct.emit("error",lt)}function ft(ct,lt){var E=ct._readableState,z=ct._writableState;E&&E.autoDestroy||z&&z.autoDestroy?ct.destroy(lt):ct.emit("error",lt)}kt.exports={destroy:pt,undestroy:xt,errorOrDestroy:ft}}).call(this)}).call(this,rt("_process"))},{_process:467}],408:[function(rt,kt,Ct){"use strict";var St=rt("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function pt(dt){var ft=!1;return function(){if(!ft){ft=!0;for(var ct=arguments.length,lt=new Array(ct),E=0;E<ct;E++)lt[E]=arguments[E];dt.apply(this,lt)}}}function vt(){}function yt(dt){return dt.setHeader&&typeof dt.abort=="function"}function xt(dt,ft,ct){if(typeof ft=="function")return xt(dt,null,ft);ft||(ft={}),ct=pt(ct||vt);var lt=ft.readable||ft.readable!==!1&&dt.readable,E=ft.writable||ft.writable!==!1&&dt.writable,z=function(){dt.writable||it()},ot=dt._writableState&&dt._writableState.finished,it=function(){E=!1,ot=!0,lt||ct.call(dt)},at=dt._readableState&&dt._readableState.endEmitted,ut=function(){lt=!1,at=!0,E||ct.call(dt)},wt=function(Mt){ct.call(dt,Mt)},Et=function(){var Mt;if(lt&&!at)return(!dt._readableState||!dt._readableState.ended)&&(Mt=new St),ct.call(dt,Mt);if(E&&!ot)return(!dt._writableState||!dt._writableState.ended)&&(Mt=new St),ct.call(dt,Mt)},At=function(){dt.req.on("finish",it)};return yt(dt)?(dt.on("complete",it),dt.on("abort",Et),dt.req?At():dt.on("request",At)):E&&!dt._writableState&&(dt.on("end",z),dt.on("close",z)),dt.on("end",ut),dt.on("finish",it),ft.error!==!1&&dt.on("error",wt),dt.on("close",Et),function(){dt.removeListener("complete",it),dt.removeListener("abort",Et),dt.removeListener("request",At),dt.req&&dt.req.removeListener("finish",it),dt.removeListener("end",z),dt.removeListener("close",z),dt.removeListener("finish",it),dt.removeListener("end",ut),dt.removeListener("error",wt),dt.removeListener("close",Et)}}kt.exports=xt},{"../../../errors":399}],409:[function(rt,kt,Ct){kt.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(rt,kt,Ct){"use strict";var St;function pt(it){var at=!1;return function(){at||(at=!0,it.apply(void 0,arguments))}}var vt=rt("../../../errors").codes,yt=vt.ERR_MISSING_ARGS,xt=vt.ERR_STREAM_DESTROYED;function dt(it){if(it)throw it}function ft(it){return it.setHeader&&typeof it.abort=="function"}function ct(it,at,ut,wt){wt=pt(wt);var Et=!1;it.on("close",function(){Et=!0}),St===void 0&&(St=rt("./end-of-stream")),St(it,{readable:at,writable:ut},function(_t){if(_t)return wt(_t);Et=!0,wt()});var At=!1;return function(_t){if(!Et&&!At){if(At=!0,ft(it))return it.abort();if(typeof it.destroy=="function")return it.destroy();wt(_t||new xt("pipe"))}}}function lt(it){it()}function E(it,at){return it.pipe(at)}function z(it){return!it.length||typeof it[it.length-1]!="function"?dt:it.pop()}function ot(){for(var it=arguments.length,at=new Array(it),ut=0;ut<it;ut++)at[ut]=arguments[ut];var wt=z(at);if(Array.isArray(at[0])&&(at=at[0]),at.length<2)throw new yt("streams");var Et,At=at.map(function(_t,Mt){var jt=Mt<at.length-1,Lt=Mt>0;return ct(_t,jt,Lt,function(It){Et||(Et=It),It&&At.forEach(lt),!jt&&(At.forEach(lt),wt(Et))})});return at.reduce(E)}kt.exports=ot},{"../../../errors":399,"./end-of-stream":408}],411:[function(rt,kt,Ct){"use strict";var St=rt("../../../errors").codes.ERR_INVALID_OPT_VALUE;function pt(yt,xt,dt){return yt.highWaterMark!=null?yt.highWaterMark:xt?yt[dt]:null}function vt(yt,xt,dt,ft){var ct=pt(xt,ft,dt);if(ct!=null){if(!(isFinite(ct)&&Math.floor(ct)===ct)||ct<0){var lt=ft?dt:"highWaterMark";throw new St(lt,ct)}return Math.floor(ct)}return yt.objectMode?16:16*1024}kt.exports={getHighWaterMark:vt}},{"../../../errors":399}],412:[function(rt,kt,Ct){arguments[4][393][0].apply(Ct,arguments)},{dup:393,events:344}],413:[function(rt,kt,Ct){"use strict";var St=rt("safe-buffer").Buffer,pt=St.isEncoding||function(At){switch(At=""+At,At&&At.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function vt(At){if(!At)return"utf8";for(var _t;;)switch(At){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 At;default:if(_t)return;At=(""+At).toLowerCase(),_t=!0}}function yt(At){var _t=vt(At);if(typeof _t!="string"&&(St.isEncoding===pt||!pt(At)))throw new Error("Unknown encoding: "+At);return _t||At}Ct.StringDecoder=xt;function xt(At){this.encoding=yt(At);var _t;switch(this.encoding){case"utf16le":this.text=ot,this.end=it,_t=4;break;case"utf8":this.fillLast=lt,_t=4;break;case"base64":this.text=at,this.end=ut,_t=3;break;default:this.write=wt,this.end=Et;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=St.allocUnsafe(_t)}xt.prototype.write=function(At){if(At.length===0)return"";var _t,Mt;if(this.lastNeed){if(_t=this.fillLast(At),_t===void 0)return"";Mt=this.lastNeed,this.lastNeed=0}else Mt=0;return Mt<At.length?_t?_t+this.text(At,Mt):this.text(At,Mt):_t||""},xt.prototype.end=z,xt.prototype.text=E,xt.prototype.fillLast=function(At){if(this.lastNeed<=At.length)return At.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);At.copy(this.lastChar,this.lastTotal-this.lastNeed,0,At.length),this.lastNeed-=At.length};function dt(At){return At<=127?0:At>>5===6?2:At>>4===14?3:At>>3===30?4:At>>6===2?-1:-2}function ft(At,_t,Mt){var jt=_t.length-1;if(jt<Mt)return 0;var Lt=dt(_t[jt]);return Lt>=0?(Lt>0&&(At.lastNeed=Lt-1),Lt):--jt<Mt||Lt===-2?0:(Lt=dt(_t[jt]),Lt>=0?(Lt>0&&(At.lastNeed=Lt-2),Lt):--jt<Mt||Lt===-2?0:(Lt=dt(_t[jt]),Lt>=0?(Lt>0&&(Lt===2?Lt=0:At.lastNeed=Lt-3),Lt):0))}function ct(At,_t,Mt){if((_t[0]&192)!==128)return At.lastNeed=0,"\uFFFD";if(At.lastNeed>1&&_t.length>1){if((_t[1]&192)!==128)return At.lastNeed=1,"\uFFFD";if(At.lastNeed>2&&_t.length>2&&(_t[2]&192)!==128)return At.lastNeed=2,"\uFFFD"}}function lt(At){var _t=this.lastTotal-this.lastNeed,Mt=ct(this,At,_t);if(Mt!==void 0)return Mt;if(this.lastNeed<=At.length)return At.copy(this.lastChar,_t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);At.copy(this.lastChar,_t,0,At.length),this.lastNeed-=At.length}function E(At,_t){var Mt=ft(this,At,_t);if(!this.lastNeed)return At.toString("utf8",_t);this.lastTotal=Mt;var jt=At.length-(Mt-this.lastNeed);return At.copy(this.lastChar,0,jt),At.toString("utf8",_t,jt)}function z(At){var _t=At&&At.length?this.write(At):"";return this.lastNeed?_t+"\uFFFD":_t}function ot(At,_t){if((At.length-_t)%2===0){var Mt=At.toString("utf16le",_t);if(Mt){var jt=Mt.charCodeAt(Mt.length-1);if(jt>=55296&&jt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=At[At.length-2],this.lastChar[1]=At[At.length-1],Mt.slice(0,-1)}return Mt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=At[At.length-1],At.toString("utf16le",_t,At.length-1)}function it(At){var _t=At&&At.length?this.write(At):"";if(this.lastNeed){var Mt=this.lastTotal-this.lastNeed;return _t+this.lastChar.toString("utf16le",0,Mt)}return _t}function at(At,_t){var Mt=(At.length-_t)%3;return Mt===0?At.toString("base64",_t):(this.lastNeed=3-Mt,this.lastTotal=3,Mt===1?this.lastChar[0]=At[At.length-1]:(this.lastChar[0]=At[At.length-2],this.lastChar[1]=At[At.length-1]),At.toString("base64",_t,At.length-Mt))}function ut(At){var _t=At&&At.length?this.write(At):"";return this.lastNeed?_t+this.lastChar.toString("base64",0,3-this.lastNeed):_t}function wt(At){return At.toString(this.encoding)}function Et(At){return At&&At.length?this.write(At):""}},{"safe-buffer":396}],414:[function(rt,kt,Ct){(function(St,pt){(function(){var vt=rt("process/browser.js").nextTick,yt=Function.prototype.apply,xt=Array.prototype.slice,dt={},ft=0;Ct.setTimeout=function(){return new ct(yt.call(setTimeout,window,arguments),clearTimeout)},Ct.setInterval=function(){return new ct(yt.call(setInterval,window,arguments),clearInterval)},Ct.clearTimeout=Ct.clearInterval=function(lt){lt.close()};function ct(lt,E){this._id=lt,this._clearFn=E}ct.prototype.unref=ct.prototype.ref=function(){},ct.prototype.close=function(){this._clearFn.call(window,this._id)},Ct.enroll=function(lt,E){clearTimeout(lt._idleTimeoutId),lt._idleTimeout=E},Ct.unenroll=function(lt){clearTimeout(lt._idleTimeoutId),lt._idleTimeout=-1},Ct._unrefActive=Ct.active=function(lt){clearTimeout(lt._idleTimeoutId);var E=lt._idleTimeout;E>=0&&(lt._idleTimeoutId=setTimeout(function(){lt._onTimeout&&lt._onTimeout()},E))},Ct.setImmediate=typeof St=="function"?St:function(lt){var E=ft++,z=arguments.length<2?!1:xt.call(arguments,1);return dt[E]=!0,vt(function(){dt[E]&&(z?lt.apply(null,z):lt.call(null),Ct.clearImmediate(E))}),E},Ct.clearImmediate=typeof pt=="function"?pt:function(lt){delete dt[lt]}}).call(this)}).call(this,rt("timers").setImmediate,rt("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(rt,kt,Ct){var St=rt("buffer").Buffer;kt.exports=function(pt){if(pt instanceof Uint8Array){if(pt.byteOffset===0&&pt.byteLength===pt.buffer.byteLength)return pt.buffer;if(typeof pt.buffer.slice=="function")return pt.buffer.slice(pt.byteOffset,pt.byteOffset+pt.byteLength)}if(St.isBuffer(pt)){for(var vt=new Uint8Array(pt.length),yt=pt.length,xt=0;xt<yt;xt++)vt[xt]=pt[xt];return vt.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(rt,kt,Ct){(function(St){(function(){kt.exports=pt;function pt(yt,xt){if(vt("noDeprecation"))return yt;var dt=!1;function ft(){if(!dt){if(vt("throwDeprecation"))throw new Error(xt);vt("traceDeprecation")?console.trace(xt):console.warn(xt),dt=!0}return yt.apply(this,arguments)}return ft}function vt(yt){try{if(!St.localStorage)return!1}catch(dt){return!1}var xt=St.localStorage[yt];return xt==null?!1:String(xt).toLowerCase()==="true"}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(rt,kt,Ct){arguments[4][84][0].apply(Ct,arguments)},{dup:84}],418:[function(rt,kt,Ct){"use strict";var St=rt("is-arguments"),pt=rt("is-generator-function"),vt=rt("which-typed-array"),yt=rt("is-typed-array");function xt(ye){return ye.call.bind(ye)}var dt=typeof BigInt!="undefined",ft=typeof Symbol!="undefined",ct=xt(Object.prototype.toString),lt=xt(Number.prototype.valueOf),E=xt(String.prototype.valueOf),z=xt(Boolean.prototype.valueOf);if(dt)var ot=xt(BigInt.prototype.valueOf);if(ft)var it=xt(Symbol.prototype.valueOf);function at(ye,Qt){if(typeof ye!="object")return!1;try{return Qt(ye),!0}catch(Wt){return!1}}Ct.isArgumentsObject=St,Ct.isGeneratorFunction=pt,Ct.isTypedArray=yt;function ut(ye){return typeof Promise!="undefined"&&ye instanceof Promise||ye!==null&&typeof ye=="object"&&typeof ye.then=="function"&&typeof ye.catch=="function"}Ct.isPromise=ut;function wt(ye){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ye):yt(ye)||pe(ye)}Ct.isArrayBufferView=wt;function Et(ye){return vt(ye)==="Uint8Array"}Ct.isUint8Array=Et;function At(ye){return vt(ye)==="Uint8ClampedArray"}Ct.isUint8ClampedArray=At;function _t(ye){return vt(ye)==="Uint16Array"}Ct.isUint16Array=_t;function Mt(ye){return vt(ye)==="Uint32Array"}Ct.isUint32Array=Mt;function jt(ye){return vt(ye)==="Int8Array"}Ct.isInt8Array=jt;function Lt(ye){return vt(ye)==="Int16Array"}Ct.isInt16Array=Lt;function It(ye){return vt(ye)==="Int32Array"}Ct.isInt32Array=It;function Ut(ye){return vt(ye)==="Float32Array"}Ct.isFloat32Array=Ut;function Xt(ye){return vt(ye)==="Float64Array"}Ct.isFloat64Array=Xt;function Gt(ye){return vt(ye)==="BigInt64Array"}Ct.isBigInt64Array=Gt;function Yt(ye){return vt(ye)==="BigUint64Array"}Ct.isBigUint64Array=Yt;function Ht(ye){return ct(ye)==="[object Map]"}Ht.working=typeof Map!="undefined"&&Ht(new Map);function ne(ye){return typeof Map=="undefined"?!1:Ht.working?Ht(ye):ye instanceof Map}Ct.isMap=ne;function ae(ye){return ct(ye)==="[object Set]"}ae.working=typeof Set!="undefined"&&ae(new Set);function ve(ye){return typeof Set=="undefined"?!1:ae.working?ae(ye):ye instanceof Set}Ct.isSet=ve;function Kt(ye){return ct(ye)==="[object WeakMap]"}Kt.working=typeof WeakMap!="undefined"&&Kt(new WeakMap);function re(ye){return typeof WeakMap=="undefined"?!1:Kt.working?Kt(ye):ye instanceof WeakMap}Ct.isWeakMap=re;function we(ye){return ct(ye)==="[object WeakSet]"}we.working=typeof WeakSet!="undefined"&&we(new WeakSet);function Me(ye){return we(ye)}Ct.isWeakSet=Me;function ke(ye){return ct(ye)==="[object ArrayBuffer]"}ke.working=typeof ArrayBuffer!="undefined"&&ke(new ArrayBuffer);function me(ye){return typeof ArrayBuffer=="undefined"?!1:ke.working?ke(ye):ye instanceof ArrayBuffer}Ct.isArrayBuffer=me;function fe(ye){return ct(ye)==="[object DataView]"}fe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&fe(new DataView(new ArrayBuffer(1),0,1));function pe(ye){return typeof DataView=="undefined"?!1:fe.working?fe(ye):ye instanceof DataView}Ct.isDataView=pe;var _e=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function je(ye){return ct(ye)==="[object SharedArrayBuffer]"}function He(ye){return typeof _e=="undefined"?!1:(typeof je.working=="undefined"&&(je.working=je(new _e)),je.working?je(ye):ye instanceof _e)}Ct.isSharedArrayBuffer=He;function Se(ye){return ct(ye)==="[object AsyncFunction]"}Ct.isAsyncFunction=Se;function xe(ye){return ct(ye)==="[object Map Iterator]"}Ct.isMapIterator=xe;function le(ye){return ct(ye)==="[object Set Iterator]"}Ct.isSetIterator=le;function Ne(ye){return ct(ye)==="[object Generator]"}Ct.isGeneratorObject=Ne;function se(ye){return ct(ye)==="[object WebAssembly.Module]"}Ct.isWebAssemblyCompiledModule=se;function Ae(ye){return at(ye,lt)}Ct.isNumberObject=Ae;function Xe(ye){return at(ye,E)}Ct.isStringObject=Xe;function Be(ye){return at(ye,z)}Ct.isBooleanObject=Be;function Te(ye){return dt&&at(ye,ot)}Ct.isBigIntObject=Te;function ue(ye){return ft&&at(ye,it)}Ct.isSymbolObject=ue;function $t(ye){return Ae(ye)||Xe(ye)||Be(ye)||Te(ye)||ue(ye)}Ct.isBoxedPrimitive=$t;function he(ye){return typeof Uint8Array!="undefined"&&(me(ye)||He(ye))}Ct.isAnyArrayBuffer=he,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ye){Object.defineProperty(Ct,ye,{enumerable:!1,value:function(){throw new Error(ye+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(rt,kt,Ct){(function(St){(function(){var pt=Object.getOwnPropertyDescriptors||function(_e){for(var je=Object.keys(_e),He={},Se=0;Se<je.length;Se++)He[je[Se]]=Object.getOwnPropertyDescriptor(_e,je[Se]);return He},vt=/%[sdj%]/g;Ct.format=function(pe){if(!Lt(pe)){for(var _e=[],je=0;je<arguments.length;je++)_e.push(ft(arguments[je]));return _e.join(" ")}for(var je=1,He=arguments,Se=He.length,xe=String(pe).replace(vt,function(Ne){if(Ne==="%%")return"%";if(je>=Se)return Ne;switch(Ne){case"%s":return String(He[je++]);case"%d":return Number(He[je++]);case"%j":try{return JSON.stringify(He[je++])}catch(se){return"[Circular]"}default:return Ne}}),le=He[je];je<Se;le=He[++je])_t(le)||!Gt(le)?xe+=" "+le:xe+=" "+ft(le);return xe},Ct.deprecate=function(pe,_e){if(typeof St!="undefined"&&St.noDeprecation===!0)return pe;if(typeof St=="undefined")return function(){return Ct.deprecate(pe,_e).apply(this,arguments)};var je=!1;function He(){if(!je){if(St.throwDeprecation)throw new Error(_e);St.traceDeprecation?console.trace(_e):console.error(_e),je=!0}return pe.apply(this,arguments)}return He};var yt={},xt=/^$/;if(St.env.NODE_DEBUG){var dt=St.env.NODE_DEBUG;dt=dt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),xt=new RegExp("^"+dt+"$","i")}Ct.debuglog=function(pe){if(pe=pe.toUpperCase(),!yt[pe])if(xt.test(pe)){var _e=St.pid;yt[pe]=function(){var je=Ct.format.apply(Ct,arguments);console.error("%s %d: %s",pe,_e,je)}}else yt[pe]=function(){};return yt[pe]};function ft(pe,_e){var je={seen:[],stylize:lt};return arguments.length>=3&&(je.depth=arguments[2]),arguments.length>=4&&(je.colors=arguments[3]),At(_e)?je.showHidden=_e:_e&&Ct._extend(je,_e),Ut(je.showHidden)&&(je.showHidden=!1),Ut(je.depth)&&(je.depth=2),Ut(je.colors)&&(je.colors=!1),Ut(je.customInspect)&&(je.customInspect=!0),je.colors&&(je.stylize=ct),z(je,pe,je.depth)}Ct.inspect=ft,ft.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]},ft.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ct(pe,_e){var je=ft.styles[_e];return je?"\x1B["+ft.colors[je][0]+"m"+pe+"\x1B["+ft.colors[je][1]+"m":pe}function lt(pe,_e){return pe}function E(pe){var _e={};return pe.forEach(function(je,He){_e[je]=!0}),_e}function z(pe,_e,je){if(pe.customInspect&&_e&&ne(_e.inspect)&&_e.inspect!==Ct.inspect&&!(_e.constructor&&_e.constructor.prototype===_e)){var He=_e.inspect(je,pe);return Lt(He)||(He=z(pe,He,je)),He}var Se=ot(pe,_e);if(Se)return Se;var xe=Object.keys(_e),le=E(xe);if(pe.showHidden&&(xe=Object.getOwnPropertyNames(_e)),Ht(_e)&&(xe.indexOf("message")>=0||xe.indexOf("description")>=0))return it(_e);if(xe.length===0){if(ne(_e)){var Ne=_e.name?": "+_e.name:"";return pe.stylize("[Function"+Ne+"]","special")}if(Xt(_e))return pe.stylize(RegExp.prototype.toString.call(_e),"regexp");if(Yt(_e))return pe.stylize(Date.prototype.toString.call(_e),"date");if(Ht(_e))return it(_e)}var se="",Ae=!1,Xe=["{","}"];if(Et(_e)&&(Ae=!0,Xe=["[","]"]),ne(_e)){var Be=_e.name?": "+_e.name:"";se=" [Function"+Be+"]"}if(Xt(_e)&&(se=" "+RegExp.prototype.toString.call(_e)),Yt(_e)&&(se=" "+Date.prototype.toUTCString.call(_e)),Ht(_e)&&(se=" "+it(_e)),xe.length===0&&(!Ae||_e.length==0))return Xe[0]+se+Xe[1];if(je<0)return Xt(_e)?pe.stylize(RegExp.prototype.toString.call(_e),"regexp"):pe.stylize("[Object]","special");pe.seen.push(_e);var Te;return Ae?Te=at(pe,_e,je,le,xe):Te=xe.map(function(ue){return ut(pe,_e,je,le,ue,Ae)}),pe.seen.pop(),wt(Te,se,Xe)}function ot(pe,_e){if(Ut(_e))return pe.stylize("undefined","undefined");if(Lt(_e)){var je="'"+JSON.stringify(_e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return pe.stylize(je,"string")}if(jt(_e))return pe.stylize(""+_e,"number");if(At(_e))return pe.stylize(""+_e,"boolean");if(_t(_e))return pe.stylize("null","null")}function it(pe){return"["+Error.prototype.toString.call(pe)+"]"}function at(pe,_e,je,He,Se){for(var xe=[],le=0,Ne=_e.length;le<Ne;++le)Me(_e,String(le))?xe.push(ut(pe,_e,je,He,String(le),!0)):xe.push("");return Se.forEach(function(se){se.match(/^\d+$/)||xe.push(ut(pe,_e,je,He,se,!0))}),xe}function ut(pe,_e,je,He,Se,xe){var le,Ne,se;if(se=Object.getOwnPropertyDescriptor(_e,Se)||{value:_e[Se]},se.get?se.set?Ne=pe.stylize("[Getter/Setter]","special"):Ne=pe.stylize("[Getter]","special"):se.set&&(Ne=pe.stylize("[Setter]","special")),Me(He,Se)||(le="["+Se+"]"),Ne||(pe.seen.indexOf(se.value)<0?(_t(je)?Ne=z(pe,se.value,null):Ne=z(pe,se.value,je-1),Ne.indexOf(`
`)>-1&&(xe?Ne=Ne.split(`
`).map(function(Ae){return" "+Ae}).join(`
`).slice(2):Ne=`
`+Ne.split(`
`).map(function(Ae){return" "+Ae}).join(`
`))):Ne=pe.stylize("[Circular]","special")),Ut(le)){if(xe&&Se.match(/^\d+$/))return Ne;le=JSON.stringify(""+Se),le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(le=le.slice(1,-1),le=pe.stylize(le,"name")):(le=le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),le=pe.stylize(le,"string"))}return le+": "+Ne}function wt(pe,_e,je){var He=0,Se=pe.reduce(function(xe,le){return He++,le.indexOf(`
`)>=0&&He++,xe+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Se>60?je[0]+(_e===""?"":_e+`
`)+" "+pe.join(`,
`)+" "+je[1]:je[0]+_e+" "+pe.join(", ")+" "+je[1]}Ct.types=rt("./support/types");function Et(pe){return Array.isArray(pe)}Ct.isArray=Et;function At(pe){return typeof pe=="boolean"}Ct.isBoolean=At;function _t(pe){return pe===null}Ct.isNull=_t;function Mt(pe){return pe==null}Ct.isNullOrUndefined=Mt;function jt(pe){return typeof pe=="number"}Ct.isNumber=jt;function Lt(pe){return typeof pe=="string"}Ct.isString=Lt;function It(pe){return typeof pe=="symbol"}Ct.isSymbol=It;function Ut(pe){return pe===void 0}Ct.isUndefined=Ut;function Xt(pe){return Gt(pe)&&ve(pe)==="[object RegExp]"}Ct.isRegExp=Xt,Ct.types.isRegExp=Xt;function Gt(pe){return typeof pe=="object"&&pe!==null}Ct.isObject=Gt;function Yt(pe){return Gt(pe)&&ve(pe)==="[object Date]"}Ct.isDate=Yt,Ct.types.isDate=Yt;function Ht(pe){return Gt(pe)&&(ve(pe)==="[object Error]"||pe instanceof Error)}Ct.isError=Ht,Ct.types.isNativeError=Ht;function ne(pe){return typeof pe=="function"}Ct.isFunction=ne;function ae(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}Ct.isPrimitive=ae,Ct.isBuffer=rt("./support/isBuffer");function ve(pe){return Object.prototype.toString.call(pe)}function Kt(pe){return pe<10?"0"+pe.toString(10):pe.toString(10)}var re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(){var pe=new Date,_e=[Kt(pe.getHours()),Kt(pe.getMinutes()),Kt(pe.getSeconds())].join(":");return[pe.getDate(),re[pe.getMonth()],_e].join(" ")}Ct.log=function(){console.log("%s - %s",we(),Ct.format.apply(Ct,arguments))},Ct.inherits=rt("inherits"),Ct._extend=function(pe,_e){if(!_e||!Gt(_e))return pe;for(var je=Object.keys(_e),He=je.length;He--;)pe[je[He]]=_e[je[He]];return pe};function Me(pe,_e){return Object.prototype.hasOwnProperty.call(pe,_e)}var ke=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ct.promisify=function(_e){if(typeof _e!="function")throw new TypeError('The "original" argument must be of type Function');if(ke&&_e[ke]){var je=_e[ke];if(typeof je!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(je,ke,{value:je,enumerable:!1,writable:!1,configurable:!0}),je}function je(){for(var He,Se,xe=new Promise(function(se,Ae){He=se,Se=Ae}),le=[],Ne=0;Ne<arguments.length;Ne++)le.push(arguments[Ne]);le.push(function(se,Ae){se?Se(se):He(Ae)});try{_e.apply(this,le)}catch(se){Se(se)}return xe}return Object.setPrototypeOf(je,Object.getPrototypeOf(_e)),ke&&Object.defineProperty(je,ke,{value:je,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(je,pt(_e))},Ct.promisify.custom=ke;function me(pe,_e){if(!pe){var je=new Error("Promise was rejected with a falsy value");je.reason=pe,pe=je}return _e(pe)}function fe(pe){if(typeof pe!="function")throw new TypeError('The "original" argument must be of type Function');function _e(){for(var je=[],He=0;He<arguments.length;He++)je.push(arguments[He]);var Se=je.pop();if(typeof Se!="function")throw new TypeError("The last argument must be of type Function");var xe=this,le=function(){return Se.apply(xe,arguments)};pe.apply(this,je).then(function(Ne){St.nextTick(le.bind(null,null,Ne))},function(Ne){St.nextTick(me.bind(null,Ne,le))})}return Object.setPrototypeOf(_e,Object.getPrototypeOf(pe)),Object.defineProperties(_e,pt(pe)),_e}Ct.callbackify=fe}).call(this)}).call(this,rt("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("for-each"),vt=rt("available-typed-arrays"),yt=rt("call-bind"),xt=rt("call-bind/callBound"),dt=rt("gopd"),ft=xt("Object.prototype.toString"),ct=rt("has-tostringtag/shams")(),lt=typeof globalThis=="undefined"?St:globalThis,E=vt(),z=xt("String.prototype.slice"),ot=Object.getPrototypeOf,it=xt("Array.prototype.indexOf",!0)||function(At,_t){for(var Mt=0;Mt<At.length;Mt+=1)if(At[Mt]===_t)return Mt;return-1},at={__proto__:null};ct&&dt&&ot?pt(E,function(Et){var At=new lt[Et];if(Symbol.toStringTag in At){var _t=ot(At),Mt=dt(_t,Symbol.toStringTag);if(!Mt){var jt=ot(_t);Mt=dt(jt,Symbol.toStringTag)}at["$"+Et]=yt(Mt.get)}}):pt(E,function(Et){var At=new lt[Et];at["$"+Et]=yt(At.slice)});var ut=function(At){var _t=!1;return pt(at,function(Mt,jt){if(!_t)try{"$"+Mt(At)===jt&&(_t=z(jt,1))}catch(Lt){}}),_t},wt=function(At){var _t=!1;return pt(at,function(Mt,jt){if(!_t)try{Mt(At),_t=z(jt,1)}catch(Lt){}}),_t};kt.exports=function(At){if(!At||typeof At!="object")return!1;if(!ct){var _t=z(ft(At),8,-1);return it(E,_t)>-1?_t:_t!=="Object"?!1:wt(At)}return dt?ut(At):null}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(rt,kt,Ct){(function(){"use strict";Ct.stripBOM=function(St){return St[0]==="\uFEFF"?St.substring(1):St}}).call(this)},{}],422:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt,dt={}.hasOwnProperty;St=rt("xmlbuilder"),pt=rt("./defaults").defaults,yt=function(ft){return typeof ft=="string"&&(ft.indexOf("&")>=0||ft.indexOf(">")>=0||ft.indexOf("<")>=0)},xt=function(ft){return"<![CDATA["+vt(ft)+"]]>"},vt=function(ft){return ft.replace("]]>","]]]]><![CDATA[>")},Ct.Builder=function(){function ft(ct){var lt,E,z;this.options={},E=pt["0.2"];for(lt in E)dt.call(E,lt)&&(z=E[lt],this.options[lt]=z);for(lt in ct)dt.call(ct,lt)&&(z=ct[lt],this.options[lt]=z)}return ft.prototype.buildObject=function(ct){var lt,E,z,ot,it;return lt=this.options.attrkey,E=this.options.charkey,Object.keys(ct).length===1&&this.options.rootName===pt["0.2"].rootName?(it=Object.keys(ct)[0],ct=ct[it]):it=this.options.rootName,z=function(at){return function(ut,wt){var Et,At,_t,Mt,jt,Lt;if(typeof wt!="object")at.options.cdata&&yt(wt)?ut.raw(xt(wt)):ut.txt(wt);else if(Array.isArray(wt)){for(Mt in wt)if(dt.call(wt,Mt)){At=wt[Mt];for(jt in At)_t=At[jt],ut=z(ut.ele(jt),_t).up()}}else for(jt in wt)if(dt.call(wt,jt))if(At=wt[jt],jt===lt){if(typeof At=="object")for(Et in At)Lt=At[Et],ut=ut.att(Et,Lt)}else if(jt===E)at.options.cdata&&yt(At)?ut=ut.raw(xt(At)):ut=ut.txt(At);else if(Array.isArray(At))for(Mt in At)dt.call(At,Mt)&&(_t=At[Mt],typeof _t=="string"?at.options.cdata&&yt(_t)?ut=ut.ele(jt).raw(xt(_t)).up():ut=ut.ele(jt,_t).up():ut=z(ut.ele(jt),_t).up());else typeof At=="object"?ut=z(ut.ele(jt),At).up():typeof At=="string"&&at.options.cdata&&yt(At)?ut=ut.ele(jt).raw(xt(At)).up():(At==null&&(At=""),ut=ut.ele(jt,At.toString()).up());return ut}}(this),ot=St.create(it,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),z(ot,ct).end(this.options.renderOpts)},ft}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(rt,kt,Ct){(function(){Ct.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(it,at){return function(){return it.apply(at,arguments)}},z=function(it,at){for(var ut in at)ot.call(at,ut)&&(it[ut]=at[ut]);function wt(){this.constructor=it}return wt.prototype=at.prototype,it.prototype=new wt,it.__super__=at.prototype,it},ot={}.hasOwnProperty;ct=rt("sax"),yt=rt("events"),St=rt("./bom"),ft=rt("./processors"),lt=rt("timers").setImmediate,pt=rt("./defaults").defaults,xt=function(it){return typeof it=="object"&&it!=null&&Object.keys(it).length===0},dt=function(it,at,ut){var wt,Et,At;for(wt=0,Et=it.length;wt<Et;wt++)At=it[wt],at=At(at,ut);return at},vt=function(it,at,ut){var wt;return wt=Object.create(null),wt.value=ut,wt.writable=!0,wt.enumerable=!0,wt.configurable=!0,Object.defineProperty(it,at,wt)},Ct.Parser=function(it){z(at,it);function at(ut){this.parseStringPromise=E(this.parseStringPromise,this),this.parseString=E(this.parseString,this),this.reset=E(this.reset,this),this.assignOrPush=E(this.assignOrPush,this),this.processAsync=E(this.processAsync,this);var wt,Et,At;if(!(this instanceof Ct.Parser))return new Ct.Parser(ut);this.options={},Et=pt["0.2"];for(wt in Et)ot.call(Et,wt)&&(At=Et[wt],this.options[wt]=At);for(wt in ut)ot.call(ut,wt)&&(At=ut[wt],this.options[wt]=At);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(ft.normalize)),this.reset()}return at.prototype.processAsync=function(){var ut,wt;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),lt(this.processAsync))}catch(Et){if(wt=Et,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(wt)}},at.prototype.assignOrPush=function(ut,wt,Et){return wt in ut?(ut[wt]instanceof Array||vt(ut,wt,[ut[wt]]),ut[wt].push(Et)):this.options.explicitArray?vt(ut,wt,[Et]):vt(ut,wt,Et)},at.prototype.reset=function(){var ut,wt,Et,At;return this.removeAllListeners(),this.saxParser=ct.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(_t){return function(Mt){if(_t.saxParser.resume(),!_t.saxParser.errThrown)return _t.saxParser.errThrown=!0,_t.emit("error",Mt)}}(this),this.saxParser.onend=function(_t){return function(){if(!_t.saxParser.ended)return _t.saxParser.ended=!0,_t.emit("end",_t.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,At=[],ut=this.options.attrkey,wt=this.options.charkey,this.saxParser.onopentag=function(_t){return function(Mt){var jt,Lt,It,Ut,Xt;if(It={},It[wt]="",!_t.options.ignoreAttrs){Xt=Mt.attributes;for(jt in Xt)ot.call(Xt,jt)&&(!(ut in It)&&!_t.options.mergeAttrs&&(It[ut]={}),Lt=_t.options.attrValueProcessors?dt(_t.options.attrValueProcessors,Mt.attributes[jt],jt):Mt.attributes[jt],Ut=_t.options.attrNameProcessors?dt(_t.options.attrNameProcessors,jt):jt,_t.options.mergeAttrs?_t.assignOrPush(It,Ut,Lt):vt(It[ut],Ut,Lt))}return It["#name"]=_t.options.tagNameProcessors?dt(_t.options.tagNameProcessors,Mt.name):Mt.name,_t.options.xmlns&&(It[_t.options.xmlnskey]={uri:Mt.uri,local:Mt.local}),At.push(It)}}(this),this.saxParser.onclosetag=function(_t){return function(){var Mt,jt,Lt,It,Ut,Xt,Gt,Yt,Ht,ne;if(Xt=At.pop(),Ut=Xt["#name"],(!_t.options.explicitChildren||!_t.options.preserveChildrenOrder)&&delete Xt["#name"],Xt.cdata===!0&&(Mt=Xt.cdata,delete Xt.cdata),Ht=At[At.length-1],Xt[wt].match(/^\s*$/)&&!Mt?(jt=Xt[wt],delete Xt[wt]):(_t.options.trim&&(Xt[wt]=Xt[wt].trim()),_t.options.normalize&&(Xt[wt]=Xt[wt].replace(/\s{2,}/g," ").trim()),Xt[wt]=_t.options.valueProcessors?dt(_t.options.valueProcessors,Xt[wt],Ut):Xt[wt],Object.keys(Xt).length===1&&wt in Xt&&!_t.EXPLICIT_CHARKEY&&(Xt=Xt[wt])),xt(Xt)&&(typeof _t.options.emptyTag=="function"?Xt=_t.options.emptyTag():Xt=_t.options.emptyTag!==""?_t.options.emptyTag:jt),_t.options.validator!=null&&(ne="/"+function(){var ae,ve,Kt;for(Kt=[],ae=0,ve=At.length;ae<ve;ae++)It=At[ae],Kt.push(It["#name"]);return Kt}().concat(Ut).join("/"),function(){var ae;try{return Xt=_t.options.validator(ne,Ht&&Ht[Ut],Xt)}catch(ve){return ae=ve,_t.emit("error",ae)}}()),_t.options.explicitChildren&&!_t.options.mergeAttrs&&typeof Xt=="object"){if(!_t.options.preserveChildrenOrder)It={},_t.options.attrkey in Xt&&(It[_t.options.attrkey]=Xt[_t.options.attrkey],delete Xt[_t.options.attrkey]),!_t.options.charsAsChildren&&_t.options.charkey in Xt&&(It[_t.options.charkey]=Xt[_t.options.charkey],delete Xt[_t.options.charkey]),Object.getOwnPropertyNames(Xt).length>0&&(It[_t.options.childkey]=Xt),Xt=It;else if(Ht){Ht[_t.options.childkey]=Ht[_t.options.childkey]||[],Gt={};for(Lt in Xt)ot.call(Xt,Lt)&&vt(Gt,Lt,Xt[Lt]);Ht[_t.options.childkey].push(Gt),delete Xt["#name"],Object.keys(Xt).length===1&&wt in Xt&&!_t.EXPLICIT_CHARKEY&&(Xt=Xt[wt])}}return At.length>0?_t.assignOrPush(Ht,Ut,Xt):(_t.options.explicitRoot&&(Yt=Xt,Xt={},vt(Xt,Ut,Yt)),_t.resultObject=Xt,_t.saxParser.ended=!0,_t.emit("end",_t.resultObject))}}(this),Et=function(_t){return function(Mt){var jt,Lt;if(Lt=At[At.length-1],Lt)return Lt[wt]+=Mt,_t.options.explicitChildren&&_t.options.preserveChildrenOrder&&_t.options.charsAsChildren&&(_t.options.includeWhiteChars||Mt.replace(/\\n/g,"").trim()!=="")&&(Lt[_t.options.childkey]=Lt[_t.options.childkey]||[],jt={"#name":"__text__"},jt[wt]=Mt,_t.options.normalize&&(jt[wt]=jt[wt].replace(/\s{2,}/g," ").trim()),Lt[_t.options.childkey].push(jt)),Lt}}(this),this.saxParser.ontext=Et,this.saxParser.oncdata=function(_t){return function(Mt){var jt;if(jt=Et(Mt),jt)return jt.cdata=!0}}(this)},at.prototype.parseString=function(ut,wt){var Et;wt!=null&&typeof wt=="function"&&(this.on("end",function(At){return this.reset(),wt(null,At)}),this.on("error",function(At){return this.reset(),wt(At)}));try{return ut=ut.toString(),ut.trim()===""?(this.emit("end",null),!0):(ut=St.stripBOM(ut),this.options.async?(this.remaining=ut,lt(this.processAsync),this.saxParser):this.saxParser.write(ut).close())}catch(At){if(Et=At,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Et}else return this.emit("error",Et),this.saxParser.errThrown=!0}},at.prototype.parseStringPromise=function(ut){return new Promise(function(wt){return function(Et,At){return wt.parseString(ut,function(_t,Mt){return _t?At(_t):Et(Mt)})}}(this))},at}(yt),Ct.parseString=function(it,at,ut){var wt,Et,At;return ut!=null?(typeof ut=="function"&&(wt=ut),typeof at=="object"&&(Et=at)):(typeof at=="function"&&(wt=at),Et={}),At=new Ct.Parser(Et),At.parseString(it,wt)},Ct.parseStringPromise=function(it,at){var ut,wt;return typeof at=="object"&&(ut=at),wt=new Ct.Parser(ut),wt.parseStringPromise(it)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(rt,kt,Ct){(function(){"use strict";var St;St=new RegExp(/(?!xmlns)^.*:/),Ct.normalize=function(pt){return pt.toLowerCase()},Ct.firstCharLowerCase=function(pt){return pt.charAt(0).toLowerCase()+pt.slice(1)},Ct.stripPrefix=function(pt){return pt.replace(St,"")},Ct.parseNumbers=function(pt){return isNaN(pt)||(pt=pt%1===0?parseInt(pt,10):parseFloat(pt)),pt},Ct.parseBooleans=function(pt){return/^(?:true|false)$/i.test(pt)&&(pt=pt.toLowerCase()==="true"),pt}}).call(this)},{}],426:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;pt=rt("./defaults"),St=rt("./builder"),vt=rt("./parser"),yt=rt("./processors"),Ct.defaults=pt.defaults,Ct.processors=yt,Ct.ValidationError=function(ft){xt(ct,ft);function ct(lt){this.message=lt}return ct}(Error),Ct.Builder=St.Builder,Ct.Parser=vt.Parser,Ct.parseString=vt.parseString,Ct.parseStringPromise=vt.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(rt,kt,Ct){(function(){kt.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(rt,kt,Ct){(function(){kt.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct=[].slice,lt={}.hasOwnProperty;St=function(){var E,z,ot,it,at,ut;if(ut=arguments[0],at=2<=arguments.length?ct.call(arguments,1):[],xt(Object.assign))Object.assign.apply(null,arguments);else for(E=0,ot=at.length;E<ot;E++)if(it=at[E],it!=null)for(z in it)lt.call(it,z)&&(ut[z]=it[z]);return ut},xt=function(E){return!!E&&Object.prototype.toString.call(E)==="[object Function]"},dt=function(E){var z;return!!E&&((z=typeof E)=="function"||z==="object")},vt=function(E){return xt(Array.isArray)?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"},yt=function(E){var z;if(vt(E))return!E.length;for(z in E)if(lt.call(E,z))return!1;return!0},ft=function(E){var z,ot;return dt(E)&&(ot=Object.getPrototypeOf(E))&&(z=ot.constructor)&&typeof z=="function"&&z instanceof z&&Function.prototype.toString.call(z)===Function.prototype.toString.call(Object)},pt=function(E){return xt(E.valueOf)?E.valueOf():E},kt.exports.assign=St,kt.exports.isFunction=xt,kt.exports.isObject=dt,kt.exports.isArray=vt,kt.exports.isEmpty=yt,kt.exports.isPlainObject=ft,kt.exports.getValue=pt}).call(this)},{}],430:[function(rt,kt,Ct){(function(){kt.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(rt,kt,Ct){(function(){var St,pt,vt;St=rt("./NodeType"),vt=rt("./XMLNode"),kt.exports=pt=function(){function yt(xt,dt,ft){if(this.parent=xt,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),dt==null)throw new Error("Missing attribute name. "+this.debugInfo(dt));this.name=this.stringify.name(dt),this.value=this.stringify.attValue(ft),this.type=St.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(yt.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(yt.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(yt.prototype,"textContent",{get:function(){return this.value},set:function(xt){return this.value=xt||""}}),Object.defineProperty(yt.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(yt.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(yt.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(yt.prototype,"specified",{get:function(){return!0}}),yt.prototype.clone=function(){return Object.create(this)},yt.prototype.toString=function(xt){return this.options.writer.attribute(this,this.options.writer.filterOptions(xt))},yt.prototype.debugInfo=function(xt){return xt=xt||this.name,xt==null?"parent: <"+this.parent.name+">":"attribute: {"+xt+"}, parent: <"+this.parent.name+">"},yt.prototype.isEqualNode=function(xt){return!(xt.namespaceURI!==this.namespaceURI||xt.prefix!==this.prefix||xt.localName!==this.localName||xt.value!==this.value)},yt}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),vt=rt("./XMLCharacterData"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=St.CData,this.value=this.stringify.cdata(lt)}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.cdata(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(rt,kt,Ct){(function(){var St,pt,vt=function(xt,dt){for(var ft in dt)yt.call(dt,ft)&&(xt[ft]=dt[ft]);function ct(){this.constructor=xt}return ct.prototype=dt.prototype,xt.prototype=new ct,xt.__super__=dt.prototype,xt},yt={}.hasOwnProperty;pt=rt("./XMLNode"),kt.exports=St=function(xt){vt(dt,xt);function dt(ft){dt.__super__.constructor.call(this,ft),this.value=""}return Object.defineProperty(dt.prototype,"data",{get:function(){return this.value},set:function(ft){return this.value=ft||""}}),Object.defineProperty(dt.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(dt.prototype,"textContent",{get:function(){return this.value},set:function(ft){return this.value=ft||""}}),dt.prototype.clone=function(){return Object.create(this)},dt.prototype.substringData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.appendData=function(ft){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.insertData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.deleteData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.replaceData=function(ft,ct,lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.isEqualNode=function(ft){return!(!dt.__super__.isEqualNode.apply(this,arguments).isEqualNode(ft)||ft.data!==this.data)},dt}(pt)}).call(this)},{"./XMLNode":450}],434:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),pt=rt("./XMLCharacterData"),kt.exports=vt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=St.Comment,this.value=this.stringify.comment(lt)}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.comment(this,this.options.writer.filterOptions(ct))},ft}(pt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(rt,kt,Ct){(function(){var St,pt,vt;pt=rt("./XMLDOMErrorHandler"),vt=rt("./XMLDOMStringList"),kt.exports=St=function(){function yt(){var xt;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new pt,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=xt=Object.create(this.defaultParams)}return Object.defineProperty(yt.prototype,"parameterNames",{get:function(){return new vt(Object.keys(this.defaultParams))}}),yt.prototype.getParameter=function(xt){return this.params.hasOwnProperty(xt)?this.params[xt]:null},yt.prototype.canSetParameter=function(xt,dt){return!0},yt.prototype.setParameter=function(xt,dt){return dt!=null?this.params[xt]=dt:delete this.params[xt]},yt}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(){}return pt.prototype.handleError=function(vt){throw new Error(vt)},pt}()}).call(this)},{}],437:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(){}return pt.prototype.hasFeature=function(vt,yt){return!0},pt.prototype.createDocumentType=function(vt,yt,xt){throw new Error("This DOM method is not implemented.")},pt.prototype.createDocument=function(vt,yt,xt){throw new Error("This DOM method is not implemented.")},pt.prototype.createHTMLDocument=function(vt){throw new Error("This DOM method is not implemented.")},pt.prototype.getFeature=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt}()}).call(this)},{}],438:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(vt){this.arr=vt||[]}return Object.defineProperty(pt.prototype,"length",{get:function(){return this.arr.length}}),pt.prototype.item=function(vt){return this.arr[vt]||null},pt.prototype.contains=function(vt){return this.arr.indexOf(vt)!==-1},pt}()}).call(this)},{}],439:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E,z,ot,it){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(E==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(lt));if(!z)throw new Error("Missing DTD attribute type. "+this.debugInfo(lt));if(!ot)throw new Error("Missing DTD attribute default. "+this.debugInfo(lt));if(ot.indexOf("#")!==0&&(ot="#"+ot),!ot.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(lt));if(it&&!ot.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(lt));this.elementName=this.stringify.name(lt),this.type=St.AttributeDeclaration,this.attributeName=this.stringify.name(E),this.attributeType=this.stringify.dtdAttType(z),it&&(this.defaultValue=this.stringify.dtdAttDefault(it)),this.defaultValueType=ot}return ft.prototype.toString=function(ct){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD element name. "+this.debugInfo());E||(E="(#PCDATA)"),Array.isArray(E)&&(E="("+E.join(",")+")"),this.name=this.stringify.name(lt),this.type=St.ElementDeclaration,this.value=this.stringify.dtdElementValue(E)}return ft.prototype.toString=function(ct){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;yt=rt("./Utility").isObject,vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(ft){xt(ct,ft);function ct(lt,E,z,ot){if(ct.__super__.constructor.call(this,lt),z==null)throw new Error("Missing DTD entity name. "+this.debugInfo(z));if(ot==null)throw new Error("Missing DTD entity value. "+this.debugInfo(z));if(this.pe=!!E,this.name=this.stringify.name(z),this.type=St.EntityDeclaration,!yt(ot))this.value=this.stringify.dtdEntityValue(ot),this.internal=!0;else{if(!ot.pubID&&!ot.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(z));if(ot.pubID&&!ot.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(z));if(this.internal=!1,ot.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ot.pubID)),ot.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ot.sysID)),ot.nData!=null&&(this.nData=this.stringify.dtdNData(ot.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(z))}}return Object.defineProperty(ct.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ct.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ct.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ct.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ct.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ct.prototype,"xmlVersion",{get:function(){return null}}),ct.prototype.toString=function(lt){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(lt))},ct}(vt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD notation name. "+this.debugInfo(lt));if(!E.pubID&&!E.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(lt));this.name=this.stringify.name(lt),this.type=St.NotationDeclaration,E.pubID!=null&&(this.pubID=this.stringify.dtdPubID(E.pubID)),E.sysID!=null&&(this.sysID=this.stringify.dtdSysID(E.sysID))}return Object.defineProperty(ft.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ft.prototype,"systemId",{get:function(){return this.sysID}}),ft.prototype.toString=function(ct){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;yt=rt("./Utility").isObject,vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(ft){xt(ct,ft);function ct(lt,E,z,ot){var it;ct.__super__.constructor.call(this,lt),yt(E)&&(it=E,E=it.version,z=it.encoding,ot=it.standalone),E||(E="1.0"),this.type=St.Declaration,this.version=this.stringify.xmlVersion(E),z!=null&&(this.encoding=this.stringify.xmlEncoding(z)),ot!=null&&(this.standalone=this.stringify.xmlStandalone(ot))}return ct.prototype.toString=function(lt){return this.options.writer.declaration(this,this.options.writer.filterOptions(lt))},ct}(vt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(ot,it){for(var at in it)z.call(it,at)&&(ot[at]=it[at]);function ut(){this.constructor=ot}return ut.prototype=it.prototype,ot.prototype=new ut,ot.__super__=it.prototype,ot},z={}.hasOwnProperty;lt=rt("./Utility").isObject,ct=rt("./XMLNode"),St=rt("./NodeType"),pt=rt("./XMLDTDAttList"),yt=rt("./XMLDTDEntity"),vt=rt("./XMLDTDElement"),xt=rt("./XMLDTDNotation"),ft=rt("./XMLNamedNodeMap"),kt.exports=dt=function(ot){E(it,ot);function it(at,ut,wt){var Et,At,_t,Mt,jt,Lt;if(it.__super__.constructor.call(this,at),this.type=St.DocType,at.children){for(Mt=at.children,At=0,_t=Mt.length;At<_t;At++)if(Et=Mt[At],Et.type===St.Element){this.name=Et.name;break}}this.documentObject=at,lt(ut)&&(jt=ut,ut=jt.pubID,wt=jt.sysID),wt==null&&(Lt=[ut,wt],wt=Lt[0],ut=Lt[1]),ut!=null&&(this.pubID=this.stringify.dtdPubID(ut)),wt!=null&&(this.sysID=this.stringify.dtdSysID(wt))}return Object.defineProperty(it.prototype,"entities",{get:function(){var at,ut,wt,Et,At;for(Et={},At=this.children,ut=0,wt=At.length;ut<wt;ut++)at=At[ut],at.type===St.EntityDeclaration&&!at.pe&&(Et[at.name]=at);return new ft(Et)}}),Object.defineProperty(it.prototype,"notations",{get:function(){var at,ut,wt,Et,At;for(Et={},At=this.children,ut=0,wt=At.length;ut<wt;ut++)at=At[ut],at.type===St.NotationDeclaration&&(Et[at.name]=at);return new ft(Et)}}),Object.defineProperty(it.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(it.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(it.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),it.prototype.element=function(at,ut){var wt;return wt=new vt(this,at,ut),this.children.push(wt),this},it.prototype.attList=function(at,ut,wt,Et,At){var _t;return _t=new pt(this,at,ut,wt,Et,At),this.children.push(_t),this},it.prototype.entity=function(at,ut){var wt;return wt=new yt(this,!1,at,ut),this.children.push(wt),this},it.prototype.pEntity=function(at,ut){var wt;return wt=new yt(this,!0,at,ut),this.children.push(wt),this},it.prototype.notation=function(at,ut){var wt;return wt=new xt(this,at,ut),this.children.push(wt),this},it.prototype.toString=function(at){return this.options.writer.docType(this,this.options.writer.filterOptions(at))},it.prototype.ele=function(at,ut){return this.element(at,ut)},it.prototype.att=function(at,ut,wt,Et,At){return this.attList(at,ut,wt,Et,At)},it.prototype.ent=function(at,ut){return this.entity(at,ut)},it.prototype.pent=function(at,ut){return this.pEntity(at,ut)},it.prototype.not=function(at,ut){return this.notation(at,ut)},it.prototype.up=function(){return this.root()||this.documentObject},it.prototype.isEqualNode=function(at){return!(!it.__super__.isEqualNode.apply(this,arguments).isEqualNode(at)||at.name!==this.name||at.publicId!==this.publicId||at.systemId!==this.systemId)},it}(ct)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt=function(z,ot){for(var it in ot)E.call(ot,it)&&(z[it]=ot[it]);function at(){this.constructor=z}return at.prototype=ot.prototype,z.prototype=new at,z.__super__=ot.prototype,z},E={}.hasOwnProperty;ct=rt("./Utility").isPlainObject,vt=rt("./XMLDOMImplementation"),pt=rt("./XMLDOMConfiguration"),xt=rt("./XMLNode"),St=rt("./NodeType"),ft=rt("./XMLStringifier"),dt=rt("./XMLStringWriter"),kt.exports=yt=function(z){lt(ot,z);function ot(it){ot.__super__.constructor.call(this,null),this.name="#document",this.type=St.Document,this.documentURI=null,this.domConfig=new pt,it||(it={}),it.writer||(it.writer=new dt),this.options=it,this.stringify=new ft(it)}return Object.defineProperty(ot.prototype,"implementation",{value:new vt}),Object.defineProperty(ot.prototype,"doctype",{get:function(){var it,at,ut,wt;for(wt=this.children,at=0,ut=wt.length;at<ut;at++)if(it=wt[at],it.type===St.DocType)return it;return null}}),Object.defineProperty(ot.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ot.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ot.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ot.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===St.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ot.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===St.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ot.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===St.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ot.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ot.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ot.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ot.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ot.prototype,"contentType",{get:function(){return null}}),ot.prototype.end=function(it){var at;return at={},it?ct(it)&&(at=it,it=this.options.writer):it=this.options.writer,it.document(this,it.filterOptions(at))},ot.prototype.toString=function(it){return this.options.writer.document(this,this.options.writer.filterOptions(it))},ot.prototype.createElement=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createTextNode=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createComment=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createCDATASection=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createProcessingInstruction=function(it,at){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createAttribute=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createEntityReference=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.getElementsByTagName=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.importNode=function(it,at){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createElementNS=function(it,at){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createAttributeNS=function(it,at){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.getElementsByTagNameNS=function(it,at){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.getElementById=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.adoptNode=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.renameNode=function(it,at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.getElementsByClassName=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createEvent=function(it){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createNodeIterator=function(it,at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot.prototype.createTreeWalker=function(it,at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},ot}(xt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E,z,ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt={}.hasOwnProperty;Ut=rt("./Utility"),Lt=Ut.isObject,jt=Ut.isFunction,It=Ut.isPlainObject,Mt=Ut.getValue,St=rt("./NodeType"),ot=rt("./XMLDocument"),at=rt("./XMLElement"),yt=rt("./XMLCData"),xt=rt("./XMLComment"),wt=rt("./XMLRaw"),_t=rt("./XMLText"),ut=rt("./XMLProcessingInstruction"),E=rt("./XMLDeclaration"),z=rt("./XMLDocType"),dt=rt("./XMLDTDAttList"),ct=rt("./XMLDTDEntity"),ft=rt("./XMLDTDElement"),lt=rt("./XMLDTDNotation"),vt=rt("./XMLAttribute"),At=rt("./XMLStringifier"),Et=rt("./XMLStringWriter"),pt=rt("./WriterState"),kt.exports=it=function(){function Gt(Yt,Ht,ne){var ae;this.name="?xml",this.type=St.Document,Yt||(Yt={}),ae={},Yt.writer?It(Yt.writer)&&(ae=Yt.writer,Yt.writer=new Et):Yt.writer=new Et,this.options=Yt,this.writer=Yt.writer,this.writerOptions=this.writer.filterOptions(ae),this.stringify=new At(Yt),this.onDataCallback=Ht||function(){},this.onEndCallback=ne||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Gt.prototype.createChildNode=function(Yt){var Ht,ne,ae,ve,Kt,re,we,Me;switch(Yt.type){case St.CData:this.cdata(Yt.value);break;case St.Comment:this.comment(Yt.value);break;case St.Element:ae={},we=Yt.attribs;for(ne in we)Xt.call(we,ne)&&(Ht=we[ne],ae[ne]=Ht.value);this.node(Yt.name,ae);break;case St.Dummy:this.dummy();break;case St.Raw:this.raw(Yt.value);break;case St.Text:this.text(Yt.value);break;case St.ProcessingInstruction:this.instruction(Yt.target,Yt.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Yt.constructor.name)}for(Me=Yt.children,Kt=0,re=Me.length;Kt<re;Kt++)ve=Me[Kt],this.createChildNode(ve),ve.type===St.Element&&this.up();return this},Gt.prototype.dummy=function(){return this},Gt.prototype.node=function(Yt,Ht,ne){var ae;if(Yt==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Yt));return this.openCurrent(),Yt=Mt(Yt),Ht==null&&(Ht={}),Ht=Mt(Ht),Lt(Ht)||(ae=[Ht,ne],ne=ae[0],Ht=ae[1]),this.currentNode=new at(this,Yt,Ht),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ne!=null&&this.text(ne),this},Gt.prototype.element=function(Yt,Ht,ne){var ae,ve,Kt,re,we,Me;if(this.currentNode&&this.currentNode.type===St.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Yt)||Lt(Yt)||jt(Yt))for(re=this.options.noValidation,this.options.noValidation=!0,Me=new ot(this.options).element("TEMP_ROOT"),Me.element(Yt),this.options.noValidation=re,we=Me.children,ve=0,Kt=we.length;ve<Kt;ve++)ae=we[ve],this.createChildNode(ae),ae.type===St.Element&&this.up();else this.node(Yt,Ht,ne);return this},Gt.prototype.attribute=function(Yt,Ht){var ne,ae;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Yt));if(Yt!=null&&(Yt=Mt(Yt)),Lt(Yt))for(ne in Yt)Xt.call(Yt,ne)&&(ae=Yt[ne],this.attribute(ne,ae));else jt(Ht)&&(Ht=Ht.apply()),this.options.keepNullAttributes&&Ht==null?this.currentNode.attribs[Yt]=new vt(this,Yt,""):Ht!=null&&(this.currentNode.attribs[Yt]=new vt(this,Yt,Ht));return this},Gt.prototype.text=function(Yt){var Ht;return this.openCurrent(),Ht=new _t(this,Yt),this.onData(this.writer.text(Ht,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.cdata=function(Yt){var Ht;return this.openCurrent(),Ht=new yt(this,Yt),this.onData(this.writer.cdata(Ht,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.comment=function(Yt){var Ht;return this.openCurrent(),Ht=new xt(this,Yt),this.onData(this.writer.comment(Ht,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.raw=function(Yt){var Ht;return this.openCurrent(),Ht=new wt(this,Yt),this.onData(this.writer.raw(Ht,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.instruction=function(Yt,Ht){var ne,ae,ve,Kt,re;if(this.openCurrent(),Yt!=null&&(Yt=Mt(Yt)),Ht!=null&&(Ht=Mt(Ht)),Array.isArray(Yt))for(ne=0,Kt=Yt.length;ne<Kt;ne++)ae=Yt[ne],this.instruction(ae);else if(Lt(Yt))for(ae in Yt)Xt.call(Yt,ae)&&(ve=Yt[ae],this.instruction(ae,ve));else jt(Ht)&&(Ht=Ht.apply()),re=new ut(this,Yt,Ht),this.onData(this.writer.processingInstruction(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Gt.prototype.declaration=function(Yt,Ht,ne){var ae;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ae=new E(this,Yt,Ht,ne),this.onData(this.writer.declaration(ae,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.doctype=function(Yt,Ht,ne){if(this.openCurrent(),Yt==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 z(this,Ht,ne),this.currentNode.rootNodeName=Yt,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Gt.prototype.dtdElement=function(Yt,Ht){var ne;return this.openCurrent(),ne=new ft(this,Yt,Ht),this.onData(this.writer.dtdElement(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.attList=function(Yt,Ht,ne,ae,ve){var Kt;return this.openCurrent(),Kt=new dt(this,Yt,Ht,ne,ae,ve),this.onData(this.writer.dtdAttList(Kt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.entity=function(Yt,Ht){var ne;return this.openCurrent(),ne=new ct(this,!1,Yt,Ht),this.onData(this.writer.dtdEntity(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.pEntity=function(Yt,Ht){var ne;return this.openCurrent(),ne=new ct(this,!0,Yt,Ht),this.onData(this.writer.dtdEntity(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.prototype.notation=function(Yt,Ht){var ne;return this.openCurrent(),ne=new lt(this,Yt,Ht),this.onData(this.writer.dtdNotation(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Gt.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},Gt.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Gt.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Gt.prototype.openNode=function(Yt){var Ht,ne,ae,ve;if(!Yt.isOpen){if(!this.root&&this.currentLevel===0&&Yt.type===St.Element&&(this.root=Yt),ne="",Yt.type===St.Element){this.writerOptions.state=pt.OpenTag,ne=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+"<"+Yt.name,ve=Yt.attribs;for(ae in ve)Xt.call(ve,ae)&&(Ht=ve[ae],ne+=this.writer.attribute(Ht,this.writerOptions,this.currentLevel));ne+=(Yt.children?">":"/>")+this.writer.endline(Yt,this.writerOptions,this.currentLevel),this.writerOptions.state=pt.InsideTag}else this.writerOptions.state=pt.OpenTag,ne=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Yt.rootNodeName,Yt.pubID&&Yt.sysID?ne+=' PUBLIC "'+Yt.pubID+'" "'+Yt.sysID+'"':Yt.sysID&&(ne+=' SYSTEM "'+Yt.sysID+'"'),Yt.children?(ne+=" [",this.writerOptions.state=pt.InsideTag):(this.writerOptions.state=pt.CloseTag,ne+=">"),ne+=this.writer.endline(Yt,this.writerOptions,this.currentLevel);return this.onData(ne,this.currentLevel),Yt.isOpen=!0}},Gt.prototype.closeNode=function(Yt){var Ht;if(!Yt.isClosed)return Ht="",this.writerOptions.state=pt.CloseTag,Yt.type===St.Element?Ht=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+"</"+Yt.name+">"+this.writer.endline(Yt,this.writerOptions,this.currentLevel):Ht=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Yt,this.writerOptions,this.currentLevel),this.writerOptions.state=pt.None,this.onData(Ht,this.currentLevel),Yt.isClosed=!0},Gt.prototype.onData=function(Yt,Ht){return this.documentStarted=!0,this.onDataCallback(Yt,Ht+1)},Gt.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Gt.prototype.debugInfo=function(Yt){return Yt==null?"":"node: <"+Yt+">"},Gt.prototype.ele=function(){return this.element.apply(this,arguments)},Gt.prototype.nod=function(Yt,Ht,ne){return this.node(Yt,Ht,ne)},Gt.prototype.txt=function(Yt){return this.text(Yt)},Gt.prototype.dat=function(Yt){return this.cdata(Yt)},Gt.prototype.com=function(Yt){return this.comment(Yt)},Gt.prototype.ins=function(Yt,Ht){return this.instruction(Yt,Ht)},Gt.prototype.dec=function(Yt,Ht,ne){return this.declaration(Yt,Ht,ne)},Gt.prototype.dtd=function(Yt,Ht,ne){return this.doctype(Yt,Ht,ne)},Gt.prototype.e=function(Yt,Ht,ne){return this.element(Yt,Ht,ne)},Gt.prototype.n=function(Yt,Ht,ne){return this.node(Yt,Ht,ne)},Gt.prototype.t=function(Yt){return this.text(Yt)},Gt.prototype.d=function(Yt){return this.cdata(Yt)},Gt.prototype.c=function(Yt){return this.comment(Yt)},Gt.prototype.r=function(Yt){return this.raw(Yt)},Gt.prototype.i=function(Yt,Ht){return this.instruction(Yt,Ht)},Gt.prototype.att=function(){return this.currentNode&&this.currentNode.type===St.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Gt.prototype.a=function(){return this.currentNode&&this.currentNode.type===St.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Gt.prototype.ent=function(Yt,Ht){return this.entity(Yt,Ht)},Gt.prototype.pent=function(Yt,Ht){return this.pEntity(Yt,Ht)},Gt.prototype.not=function(Yt,Ht){return this.notation(Yt,Ht)},Gt}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct){ft.__super__.constructor.call(this,ct),this.type=St.Dummy}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return""},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(ot,it){for(var at in it)z.call(it,at)&&(ot[at]=it[at]);function ut(){this.constructor=ot}return ut.prototype=it.prototype,ot.prototype=new ut,ot.__super__=it.prototype,ot},z={}.hasOwnProperty;lt=rt("./Utility"),ct=lt.isObject,ft=lt.isFunction,dt=lt.getValue,xt=rt("./XMLNode"),St=rt("./NodeType"),pt=rt("./XMLAttribute"),yt=rt("./XMLNamedNodeMap"),kt.exports=vt=function(ot){E(it,ot);function it(at,ut,wt){var Et,At,_t,Mt;if(it.__super__.constructor.call(this,at),ut==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ut),this.type=St.Element,this.attribs={},this.schemaTypeInfo=null,wt!=null&&this.attribute(wt),at.type===St.Document&&(this.isRoot=!0,this.documentObject=at,at.rootObject=this,at.children)){for(Mt=at.children,At=0,_t=Mt.length;At<_t;At++)if(Et=Mt[At],Et.type===St.DocType){Et.name=this.name;break}}}return Object.defineProperty(it.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(it.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(it.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(it.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(it.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new yt(this.attribs)),this.attributeMap}}),it.prototype.clone=function(){var at,ut,wt,Et;wt=Object.create(this),wt.isRoot&&(wt.documentObject=null),wt.attribs={},Et=this.attribs;for(ut in Et)z.call(Et,ut)&&(at=Et[ut],wt.attribs[ut]=at.clone());return wt.children=[],this.children.forEach(function(At){var _t;return _t=At.clone(),_t.parent=wt,wt.children.push(_t)}),wt},it.prototype.attribute=function(at,ut){var wt,Et;if(at!=null&&(at=dt(at)),ct(at))for(wt in at)z.call(at,wt)&&(Et=at[wt],this.attribute(wt,Et));else ft(ut)&&(ut=ut.apply()),this.options.keepNullAttributes&&ut==null?this.attribs[at]=new pt(this,at,""):ut!=null&&(this.attribs[at]=new pt(this,at,ut));return this},it.prototype.removeAttribute=function(at){var ut,wt,Et;if(at==null)throw new Error("Missing attribute name. "+this.debugInfo());if(at=dt(at),Array.isArray(at))for(wt=0,Et=at.length;wt<Et;wt++)ut=at[wt],delete this.attribs[ut];else delete this.attribs[at];return this},it.prototype.toString=function(at){return this.options.writer.element(this,this.options.writer.filterOptions(at))},it.prototype.att=function(at,ut){return this.attribute(at,ut)},it.prototype.a=function(at,ut){return this.attribute(at,ut)},it.prototype.getAttribute=function(at){return this.attribs.hasOwnProperty(at)?this.attribs[at].value:null},it.prototype.setAttribute=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getAttributeNode=function(at){return this.attribs.hasOwnProperty(at)?this.attribs[at]:null},it.prototype.setAttributeNode=function(at){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.removeAttributeNode=function(at){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getElementsByTagName=function(at){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getAttributeNS=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.setAttributeNS=function(at,ut,wt){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.removeAttributeNS=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getAttributeNodeNS=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.setAttributeNodeNS=function(at){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getElementsByTagNameNS=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.hasAttribute=function(at){return this.attribs.hasOwnProperty(at)},it.prototype.hasAttributeNS=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.setIdAttribute=function(at,ut){return this.attribs.hasOwnProperty(at)?this.attribs[at].isId:ut},it.prototype.setIdAttributeNS=function(at,ut,wt){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.setIdAttributeNode=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getElementsByTagName=function(at){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getElementsByTagNameNS=function(at,ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.getElementsByClassName=function(at){throw new Error("This DOM method is not implemented."+this.debugInfo())},it.prototype.isEqualNode=function(at){var ut,wt,Et;if(!it.__super__.isEqualNode.apply(this,arguments).isEqualNode(at)||at.namespaceURI!==this.namespaceURI||at.prefix!==this.prefix||at.localName!==this.localName||at.attribs.length!==this.attribs.length)return!1;for(ut=wt=0,Et=this.attribs.length-1;0<=Et?wt<=Et:wt>=Et;ut=0<=Et?++wt:--wt)if(!this.attribs[ut].isEqualNode(at.attribs[ut]))return!1;return!0},it}(xt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(vt){this.nodes=vt}return Object.defineProperty(pt.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),pt.prototype.clone=function(){return this.nodes=null},pt.prototype.getNamedItem=function(vt){return this.nodes[vt]},pt.prototype.setNamedItem=function(vt){var yt;return yt=this.nodes[vt.nodeName],this.nodes[vt.nodeName]=vt,yt||null},pt.prototype.removeNamedItem=function(vt){var yt;return yt=this.nodes[vt],delete this.nodes[vt],yt||null},pt.prototype.item=function(vt){return this.nodes[Object.keys(this.nodes)[vt]]||null},pt.prototype.getNamedItemNS=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt.prototype.setNamedItemNS=function(vt){throw new Error("This DOM method is not implemented.")},pt.prototype.removeNamedItemNS=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt}()}).call(this)},{}],450:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E,z,ot,it,at,ut,wt,Et,At,_t,Mt={}.hasOwnProperty;_t=rt("./Utility"),At=_t.isObject,Et=_t.isFunction,wt=_t.isEmpty,ut=_t.getValue,ct=null,vt=null,yt=null,xt=null,dt=null,it=null,at=null,ot=null,ft=null,pt=null,z=null,lt=null,St=null,kt.exports=E=function(){function jt(Lt){this.parent=Lt,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ct||(ct=rt("./XMLElement"),vt=rt("./XMLCData"),yt=rt("./XMLComment"),xt=rt("./XMLDeclaration"),dt=rt("./XMLDocType"),it=rt("./XMLRaw"),at=rt("./XMLText"),ot=rt("./XMLProcessingInstruction"),ft=rt("./XMLDummy"),pt=rt("./NodeType"),z=rt("./XMLNodeList"),lt=rt("./XMLNamedNodeMap"),St=rt("./DocumentPosition"))}return Object.defineProperty(jt.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(jt.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(jt.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(jt.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(jt.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new z(this.children)),this.childNodeList}}),Object.defineProperty(jt.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(jt.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(jt.prototype,"previousSibling",{get:function(){var Lt;return Lt=this.parent.children.indexOf(this),this.parent.children[Lt-1]||null}}),Object.defineProperty(jt.prototype,"nextSibling",{get:function(){var Lt;return Lt=this.parent.children.indexOf(this),this.parent.children[Lt+1]||null}}),Object.defineProperty(jt.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(jt.prototype,"textContent",{get:function(){var Lt,It,Ut,Xt,Gt;if(this.nodeType===pt.Element||this.nodeType===pt.DocumentFragment){for(Gt="",Xt=this.children,It=0,Ut=Xt.length;It<Ut;It++)Lt=Xt[It],Lt.textContent&&(Gt+=Lt.textContent);return Gt}else return null},set:function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),jt.prototype.setParent=function(Lt){var It,Ut,Xt,Gt,Yt;for(this.parent=Lt,Lt&&(this.options=Lt.options,this.stringify=Lt.stringify),Gt=this.children,Yt=[],Ut=0,Xt=Gt.length;Ut<Xt;Ut++)It=Gt[Ut],Yt.push(It.setParent(this));return Yt},jt.prototype.element=function(Lt,It,Ut){var Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re,we,Me;if(ae=null,It===null&&Ut==null&&(re=[{},null],It=re[0],Ut=re[1]),It==null&&(It={}),It=ut(It),At(It)||(we=[It,Ut],Ut=we[0],It=we[1]),Lt!=null&&(Lt=ut(Lt)),Array.isArray(Lt))for(Yt=0,ve=Lt.length;Yt<ve;Yt++)Gt=Lt[Yt],ae=this.element(Gt);else if(Et(Lt))ae=this.element(Lt.apply());else if(At(Lt)){for(ne in Lt)if(Mt.call(Lt,ne))if(Me=Lt[ne],Et(Me)&&(Me=Me.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ne.indexOf(this.stringify.convertAttKey)===0)ae=this.attribute(ne.substr(this.stringify.convertAttKey.length),Me);else if(!this.options.separateArrayItems&&Array.isArray(Me)&&wt(Me))ae=this.dummy();else if(At(Me)&&wt(Me))ae=this.element(ne);else if(!this.options.keepNullNodes&&Me==null)ae=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Me))for(Ht=0,Kt=Me.length;Ht<Kt;Ht++)Gt=Me[Ht],Xt={},Xt[ne]=Gt,ae=this.element(Xt);else At(Me)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ne.indexOf(this.stringify.convertTextKey)===0?ae=this.element(Me):(ae=this.element(ne),ae.element(Me)):ae=this.element(ne,Me)}else!this.options.keepNullNodes&&Ut===null?ae=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Lt.indexOf(this.stringify.convertTextKey)===0?ae=this.text(Ut):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Lt.indexOf(this.stringify.convertCDataKey)===0?ae=this.cdata(Ut):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Lt.indexOf(this.stringify.convertCommentKey)===0?ae=this.comment(Ut):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Lt.indexOf(this.stringify.convertRawKey)===0?ae=this.raw(Ut):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Lt.indexOf(this.stringify.convertPIKey)===0?ae=this.instruction(Lt.substr(this.stringify.convertPIKey.length),Ut):ae=this.node(Lt,It,Ut);if(ae==null)throw new Error("Could not create any elements with: "+Lt+". "+this.debugInfo());return ae},jt.prototype.insertBefore=function(Lt,It,Ut){var Xt,Gt,Yt,Ht,ne;if(Lt!=null&&Lt.type)return Yt=Lt,Ht=It,Yt.setParent(this),Ht?(Gt=children.indexOf(Ht),ne=children.splice(Gt),children.push(Yt),Array.prototype.push.apply(children,ne)):children.push(Yt),Yt;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Lt));return Gt=this.parent.children.indexOf(this),ne=this.parent.children.splice(Gt),Xt=this.parent.element(Lt,It,Ut),Array.prototype.push.apply(this.parent.children,ne),Xt},jt.prototype.insertAfter=function(Lt,It,Ut){var Xt,Gt,Yt;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Lt));return Gt=this.parent.children.indexOf(this),Yt=this.parent.children.splice(Gt+1),Xt=this.parent.element(Lt,It,Ut),Array.prototype.push.apply(this.parent.children,Yt),Xt},jt.prototype.remove=function(){var Lt,It;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Lt=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Lt,Lt-Lt+1].concat(It=[])),this.parent},jt.prototype.node=function(Lt,It,Ut){var Xt,Gt;return Lt!=null&&(Lt=ut(Lt)),It||(It={}),It=ut(It),At(It)||(Gt=[It,Ut],Ut=Gt[0],It=Gt[1]),Xt=new ct(this,Lt,It),Ut!=null&&Xt.text(Ut),this.children.push(Xt),Xt},jt.prototype.text=function(Lt){var It;return At(Lt)&&this.element(Lt),It=new at(this,Lt),this.children.push(It),this},jt.prototype.cdata=function(Lt){var It;return It=new vt(this,Lt),this.children.push(It),this},jt.prototype.comment=function(Lt){var It;return It=new yt(this,Lt),this.children.push(It),this},jt.prototype.commentBefore=function(Lt){var It,Ut,Xt;return Ut=this.parent.children.indexOf(this),Xt=this.parent.children.splice(Ut),It=this.parent.comment(Lt),Array.prototype.push.apply(this.parent.children,Xt),this},jt.prototype.commentAfter=function(Lt){var It,Ut,Xt;return Ut=this.parent.children.indexOf(this),Xt=this.parent.children.splice(Ut+1),It=this.parent.comment(Lt),Array.prototype.push.apply(this.parent.children,Xt),this},jt.prototype.raw=function(Lt){var It;return It=new it(this,Lt),this.children.push(It),this},jt.prototype.dummy=function(){var Lt;return Lt=new ft(this),Lt},jt.prototype.instruction=function(Lt,It){var Ut,Xt,Gt,Yt,Ht;if(Lt!=null&&(Lt=ut(Lt)),It!=null&&(It=ut(It)),Array.isArray(Lt))for(Yt=0,Ht=Lt.length;Yt<Ht;Yt++)Ut=Lt[Yt],this.instruction(Ut);else if(At(Lt))for(Ut in Lt)Mt.call(Lt,Ut)&&(Xt=Lt[Ut],this.instruction(Ut,Xt));else Et(It)&&(It=It.apply()),Gt=new ot(this,Lt,It),this.children.push(Gt);return this},jt.prototype.instructionBefore=function(Lt,It){var Ut,Xt,Gt;return Xt=this.parent.children.indexOf(this),Gt=this.parent.children.splice(Xt),Ut=this.parent.instruction(Lt,It),Array.prototype.push.apply(this.parent.children,Gt),this},jt.prototype.instructionAfter=function(Lt,It){var Ut,Xt,Gt;return Xt=this.parent.children.indexOf(this),Gt=this.parent.children.splice(Xt+1),Ut=this.parent.instruction(Lt,It),Array.prototype.push.apply(this.parent.children,Gt),this},jt.prototype.declaration=function(Lt,It,Ut){var Xt,Gt;return Xt=this.document(),Gt=new xt(Xt,Lt,It,Ut),Xt.children.length===0?Xt.children.unshift(Gt):Xt.children[0].type===pt.Declaration?Xt.children[0]=Gt:Xt.children.unshift(Gt),Xt.root()||Xt},jt.prototype.dtd=function(Lt,It){var Ut,Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re;for(Xt=this.document(),Gt=new dt(Xt,Lt,It),Kt=Xt.children,Yt=Ht=0,ae=Kt.length;Ht<ae;Yt=++Ht)if(Ut=Kt[Yt],Ut.type===pt.DocType)return Xt.children[Yt]=Gt,Gt;for(re=Xt.children,Yt=ne=0,ve=re.length;ne<ve;Yt=++ne)if(Ut=re[Yt],Ut.isRoot)return Xt.children.splice(Yt,0,Gt),Gt;return Xt.children.push(Gt),Gt},jt.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},jt.prototype.root=function(){var Lt;for(Lt=this;Lt;){if(Lt.type===pt.Document)return Lt.rootObject;if(Lt.isRoot)return Lt;Lt=Lt.parent}},jt.prototype.document=function(){var Lt;for(Lt=this;Lt;){if(Lt.type===pt.Document)return Lt;Lt=Lt.parent}},jt.prototype.end=function(Lt){return this.document().end(Lt)},jt.prototype.prev=function(){var Lt;if(Lt=this.parent.children.indexOf(this),Lt<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Lt-1]},jt.prototype.next=function(){var Lt;if(Lt=this.parent.children.indexOf(this),Lt===-1||Lt===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Lt+1]},jt.prototype.importDocument=function(Lt){var It;return It=Lt.root().clone(),It.parent=this,It.isRoot=!1,this.children.push(It),this},jt.prototype.debugInfo=function(Lt){var It,Ut;return Lt=Lt||this.name,Lt==null&&!((It=this.parent)!=null&&It.name)?"":Lt==null?"parent: <"+this.parent.name+">":(Ut=this.parent)!=null&&Ut.name?"node: <"+Lt+">, parent: <"+this.parent.name+">":"node: <"+Lt+">"},jt.prototype.ele=function(Lt,It,Ut){return this.element(Lt,It,Ut)},jt.prototype.nod=function(Lt,It,Ut){return this.node(Lt,It,Ut)},jt.prototype.txt=function(Lt){return this.text(Lt)},jt.prototype.dat=function(Lt){return this.cdata(Lt)},jt.prototype.com=function(Lt){return this.comment(Lt)},jt.prototype.ins=function(Lt,It){return this.instruction(Lt,It)},jt.prototype.doc=function(){return this.document()},jt.prototype.dec=function(Lt,It,Ut){return this.declaration(Lt,It,Ut)},jt.prototype.e=function(Lt,It,Ut){return this.element(Lt,It,Ut)},jt.prototype.n=function(Lt,It,Ut){return this.node(Lt,It,Ut)},jt.prototype.t=function(Lt){return this.text(Lt)},jt.prototype.d=function(Lt){return this.cdata(Lt)},jt.prototype.c=function(Lt){return this.comment(Lt)},jt.prototype.r=function(Lt){return this.raw(Lt)},jt.prototype.i=function(Lt,It){return this.instruction(Lt,It)},jt.prototype.u=function(){return this.up()},jt.prototype.importXMLBuilder=function(Lt){return this.importDocument(Lt)},jt.prototype.replaceChild=function(Lt,It){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.removeChild=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.appendChild=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.hasChildNodes=function(){return this.children.length!==0},jt.prototype.cloneNode=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isSupported=function(Lt,It){return!0},jt.prototype.hasAttributes=function(){return this.attribs.length!==0},jt.prototype.compareDocumentPosition=function(Lt){var It,Ut;return It=this,It===Lt?0:this.document()!==Lt.document()?(Ut=St.Disconnected|St.ImplementationSpecific,Math.random()<.5?Ut|=St.Preceding:Ut|=St.Following,Ut):It.isAncestor(Lt)?St.Contains|St.Preceding:It.isDescendant(Lt)?St.Contains|St.Following:It.isPreceding(Lt)?St.Preceding:St.Following},jt.prototype.isSameNode=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.lookupPrefix=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isDefaultNamespace=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.lookupNamespaceURI=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isEqualNode=function(Lt){var It,Ut,Xt;if(Lt.nodeType!==this.nodeType||Lt.children.length!==this.children.length)return!1;for(It=Ut=0,Xt=this.children.length-1;0<=Xt?Ut<=Xt:Ut>=Xt;It=0<=Xt?++Ut:--Ut)if(!this.children[It].isEqualNode(Lt.children[It]))return!1;return!0},jt.prototype.getFeature=function(Lt,It){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.setUserData=function(Lt,It,Ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.getUserData=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.contains=function(Lt){return Lt?Lt===this||this.isDescendant(Lt):!1},jt.prototype.isDescendant=function(Lt){var It,Ut,Xt,Gt,Yt;for(Yt=this.children,Xt=0,Gt=Yt.length;Xt<Gt;Xt++)if(It=Yt[Xt],Lt===It||(Ut=It.isDescendant(Lt),Ut))return!0;return!1},jt.prototype.isAncestor=function(Lt){return Lt.isDescendant(this)},jt.prototype.isPreceding=function(Lt){var It,Ut;return It=this.treePosition(Lt),Ut=this.treePosition(this),It===-1||Ut===-1?!1:It<Ut},jt.prototype.isFollowing=function(Lt){var It,Ut;return It=this.treePosition(Lt),Ut=this.treePosition(this),It===-1||Ut===-1?!1:It>Ut},jt.prototype.treePosition=function(Lt){var It,Ut;return Ut=0,It=!1,this.foreachTreeNode(this.document(),function(Xt){if(Ut++,!It&&Xt===Lt)return It=!0}),It?Ut:-1},jt.prototype.foreachTreeNode=function(Lt,It){var Ut,Xt,Gt,Yt,Ht;for(Lt||(Lt=this.document()),Yt=Lt.children,Xt=0,Gt=Yt.length;Xt<Gt;Xt++){if(Ut=Yt[Xt],Ht=It(Ut))return Ht;if(Ht=this.foreachTreeNode(Ut,It),Ht)return Ht}},jt}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(vt){this.nodes=vt}return Object.defineProperty(pt.prototype,"length",{get:function(){return this.nodes.length||0}}),pt.prototype.clone=function(){return this.nodes=null},pt.prototype.item=function(vt){return this.nodes[vt]||null},pt}()}).call(this)},{}],452:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),pt=rt("./XMLCharacterData"),kt.exports=vt=function(dt){yt(ft,dt);function ft(ct,lt,E){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=St.ProcessingInstruction,this.target=this.stringify.insTarget(lt),this.name=this.target,E&&(this.value=this.stringify.insValue(E))}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ct))},ft.prototype.isEqualNode=function(ct){return!(!ft.__super__.isEqualNode.apply(this,arguments).isEqualNode(ct)||ct.target!==this.target)},ft}(pt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),pt=rt("./XMLNode"),kt.exports=vt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=St.Raw,this.value=this.stringify.raw(lt)}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.raw(this,this.options.writer.filterOptions(ct))},ft}(pt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;St=rt("./NodeType"),yt=rt("./XMLWriterBase"),pt=rt("./WriterState"),kt.exports=vt=function(ft){xt(ct,ft);function ct(lt,E){this.stream=lt,ct.__super__.constructor.call(this,E)}return ct.prototype.endline=function(lt,E,z){return lt.isLastRootNode&&E.state===pt.CloseTag?"":ct.__super__.endline.call(this,lt,E,z)},ct.prototype.document=function(lt,E){var z,ot,it,at,ut,wt,Et,At,_t;for(Et=lt.children,ot=it=0,ut=Et.length;it<ut;ot=++it)z=Et[ot],z.isLastRootNode=ot===lt.children.length-1;for(E=this.filterOptions(E),At=lt.children,_t=[],at=0,wt=At.length;at<wt;at++)z=At[at],_t.push(this.writeChildNode(z,E,0));return _t},ct.prototype.attribute=function(lt,E,z){return this.stream.write(ct.__super__.attribute.call(this,lt,E,z))},ct.prototype.cdata=function(lt,E,z){return this.stream.write(ct.__super__.cdata.call(this,lt,E,z))},ct.prototype.comment=function(lt,E,z){return this.stream.write(ct.__super__.comment.call(this,lt,E,z))},ct.prototype.declaration=function(lt,E,z){return this.stream.write(ct.__super__.declaration.call(this,lt,E,z))},ct.prototype.docType=function(lt,E,z){var ot,it,at,ut;if(z||(z=0),this.openNode(lt,E,z),E.state=pt.OpenTag,this.stream.write(this.indent(lt,E,z)),this.stream.write("<!DOCTYPE "+lt.root().name),lt.pubID&&lt.sysID?this.stream.write(' PUBLIC "'+lt.pubID+'" "'+lt.sysID+'"'):lt.sysID&&this.stream.write(' SYSTEM "'+lt.sysID+'"'),lt.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(lt,E,z)),E.state=pt.InsideTag,ut=lt.children,it=0,at=ut.length;it<at;it++)ot=ut[it],this.writeChildNode(ot,E,z+1);E.state=pt.CloseTag,this.stream.write("]")}return E.state=pt.CloseTag,this.stream.write(E.spaceBeforeSlash+">"),this.stream.write(this.endline(lt,E,z)),E.state=pt.None,this.closeNode(lt,E,z)},ct.prototype.element=function(lt,E,z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt;z||(z=0),this.openNode(lt,E,z),E.state=pt.OpenTag,this.stream.write(this.indent(lt,E,z)+"<"+lt.name),Mt=lt.attribs;for(At in Mt)dt.call(Mt,At)&&(ot=Mt[At],this.attribute(ot,E,z));if(at=lt.children.length,ut=at===0?null:lt.children[0],at===0||lt.children.every(function(Lt){return(Lt.type===St.Text||Lt.type===St.Raw)&&Lt.value===""}))E.allowEmpty?(this.stream.write(">"),E.state=pt.CloseTag,this.stream.write("</"+lt.name+">")):(E.state=pt.CloseTag,this.stream.write(E.spaceBeforeSlash+"/>"));else if(E.pretty&&at===1&&(ut.type===St.Text||ut.type===St.Raw)&&ut.value!=null)this.stream.write(">"),E.state=pt.InsideTag,E.suppressPrettyCount++,_t=!0,this.writeChildNode(ut,E,z+1),E.suppressPrettyCount--,_t=!1,E.state=pt.CloseTag,this.stream.write("</"+lt.name+">");else{for(this.stream.write(">"+this.endline(lt,E,z)),E.state=pt.InsideTag,jt=lt.children,wt=0,Et=jt.length;wt<Et;wt++)it=jt[wt],this.writeChildNode(it,E,z+1);E.state=pt.CloseTag,this.stream.write(this.indent(lt,E,z)+"</"+lt.name+">")}return this.stream.write(this.endline(lt,E,z)),E.state=pt.None,this.closeNode(lt,E,z)},ct.prototype.processingInstruction=function(lt,E,z){return this.stream.write(ct.__super__.processingInstruction.call(this,lt,E,z))},ct.prototype.raw=function(lt,E,z){return this.stream.write(ct.__super__.raw.call(this,lt,E,z))},ct.prototype.text=function(lt,E,z){return this.stream.write(ct.__super__.text.call(this,lt,E,z))},ct.prototype.dtdAttList=function(lt,E,z){return this.stream.write(ct.__super__.dtdAttList.call(this,lt,E,z))},ct.prototype.dtdElement=function(lt,E,z){return this.stream.write(ct.__super__.dtdElement.call(this,lt,E,z))},ct.prototype.dtdEntity=function(lt,E,z){return this.stream.write(ct.__super__.dtdEntity.call(this,lt,E,z))},ct.prototype.dtdNotation=function(lt,E,z){return this.stream.write(ct.__super__.dtdNotation.call(this,lt,E,z))},ct}(yt)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(rt,kt,Ct){(function(){var St,pt,vt=function(xt,dt){for(var ft in dt)yt.call(dt,ft)&&(xt[ft]=dt[ft]);function ct(){this.constructor=xt}return ct.prototype=dt.prototype,xt.prototype=new ct,xt.__super__=dt.prototype,xt},yt={}.hasOwnProperty;pt=rt("./XMLWriterBase"),kt.exports=St=function(xt){vt(dt,xt);function dt(ft){dt.__super__.constructor.call(this,ft)}return dt.prototype.document=function(ft,ct){var lt,E,z,ot,it;for(ct=this.filterOptions(ct),ot="",it=ft.children,E=0,z=it.length;E<z;E++)lt=it[E],ot+=this.writeChildNode(lt,ct,0);return ct.pretty&&ot.slice(-ct.newline.length)===ct.newline&&(ot=ot.slice(0,-ct.newline.length)),ot},dt}(pt)}).call(this)},{"./XMLWriterBase":458}],456:[function(rt,kt,Ct){(function(){var St,pt=function(yt,xt){return function(){return yt.apply(xt,arguments)}},vt={}.hasOwnProperty;kt.exports=St=function(){function yt(xt){this.assertLegalName=pt(this.assertLegalName,this),this.assertLegalChar=pt(this.assertLegalChar,this);var dt,ft,ct;xt||(xt={}),this.options=xt,this.options.version||(this.options.version="1.0"),ft=xt.stringify||{};for(dt in ft)vt.call(ft,dt)&&(ct=ft[dt],this[dt]=ct)}return yt.prototype.name=function(xt){return this.options.noValidation?xt:this.assertLegalName(""+xt||"")},yt.prototype.text=function(xt){return this.options.noValidation?xt:this.assertLegalChar(this.textEscape(""+xt||""))},yt.prototype.cdata=function(xt){return this.options.noValidation?xt:(xt=""+xt||"",xt=xt.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(xt))},yt.prototype.comment=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",xt.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+xt);return this.assertLegalChar(xt)},yt.prototype.raw=function(xt){return this.options.noValidation?xt:""+xt||""},yt.prototype.attValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(this.attEscape(xt=""+xt||""))},yt.prototype.insTarget=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.insValue=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",xt.match(/\?>/))throw new Error("Invalid processing instruction value: "+xt);return this.assertLegalChar(xt)},yt.prototype.xmlVersion=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",!xt.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+xt);return xt},yt.prototype.xmlEncoding=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",!xt.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+xt);return this.assertLegalChar(xt)},yt.prototype.xmlStandalone=function(xt){return this.options.noValidation?xt:xt?"yes":"no"},yt.prototype.dtdPubID=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdSysID=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdElementValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdAttType=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdAttDefault=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdEntityValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdNData=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.convertAttKey="@",yt.prototype.convertPIKey="?",yt.prototype.convertTextKey="#text",yt.prototype.convertCDataKey="#cdata",yt.prototype.convertCommentKey="#comment",yt.prototype.convertRawKey="#raw",yt.prototype.assertLegalChar=function(xt){var dt,ft;if(this.options.noValidation)return xt;if(dt="",this.options.version==="1.0"){if(dt=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ft=xt.match(dt))throw new Error("Invalid character in string: "+xt+" at index "+ft.index)}else if(this.options.version==="1.1"&&(dt=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ft=xt.match(dt)))throw new Error("Invalid character in string: "+xt+" at index "+ft.index);return xt},yt.prototype.assertLegalName=function(xt){var dt;if(this.options.noValidation)return xt;if(this.assertLegalChar(xt),dt=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!xt.match(dt))throw new Error("Invalid character in name");return xt},yt.prototype.textEscape=function(xt){var dt;return this.options.noValidation?xt:(dt=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,xt.replace(dt,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},yt.prototype.attEscape=function(xt){var dt;return this.options.noValidation?xt:(dt=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,xt.replace(dt,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},yt}()}).call(this)},{}],457:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),pt=rt("./XMLCharacterData"),kt.exports=vt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=St.Text,this.value=this.stringify.text(lt)}return Object.defineProperty(ft.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ft.prototype,"wholeText",{get:function(){var ct,lt,E;for(E="",lt=this.previousSibling;lt;)E=lt.data+E,lt=lt.previousSibling;for(E+=this.data,ct=this.nextSibling;ct;)E=E+ct.data,ct=ct.nextSibling;return E}}),ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.text(this,this.options.writer.filterOptions(ct))},ft.prototype.splitText=function(ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},ft.prototype.replaceWholeText=function(ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},ft}(pt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E,z,ot,it,at,ut,wt,Et,At={}.hasOwnProperty;Et=rt("./Utility").assign,St=rt("./NodeType"),lt=rt("./XMLDeclaration"),E=rt("./XMLDocType"),vt=rt("./XMLCData"),yt=rt("./XMLComment"),ot=rt("./XMLElement"),at=rt("./XMLRaw"),ut=rt("./XMLText"),it=rt("./XMLProcessingInstruction"),z=rt("./XMLDummy"),xt=rt("./XMLDTDAttList"),dt=rt("./XMLDTDElement"),ft=rt("./XMLDTDEntity"),ct=rt("./XMLDTDNotation"),pt=rt("./WriterState"),kt.exports=wt=function(){function _t(Mt){var jt,Lt,It;Mt||(Mt={}),this.options=Mt,Lt=Mt.writer||{};for(jt in Lt)At.call(Lt,jt)&&(It=Lt[jt],this["_"+jt]=this[jt],this[jt]=It)}return _t.prototype.filterOptions=function(Mt){var jt,Lt,It,Ut,Xt,Gt,Yt,Ht;return Mt||(Mt={}),Mt=Et({},this.options,Mt),jt={writer:this},jt.pretty=Mt.pretty||!1,jt.allowEmpty=Mt.allowEmpty||!1,jt.indent=(Lt=Mt.indent)!=null?Lt:" ",jt.newline=(It=Mt.newline)!=null?It:`
`,jt.offset=(Ut=Mt.offset)!=null?Ut:0,jt.dontPrettyTextNodes=(Xt=(Gt=Mt.dontPrettyTextNodes)!=null?Gt:Mt.dontprettytextnodes)!=null?Xt:0,jt.spaceBeforeSlash=(Yt=(Ht=Mt.spaceBeforeSlash)!=null?Ht:Mt.spacebeforeslash)!=null?Yt:"",jt.spaceBeforeSlash===!0&&(jt.spaceBeforeSlash=" "),jt.suppressPrettyCount=0,jt.user={},jt.state=pt.None,jt},_t.prototype.indent=function(Mt,jt,Lt){var It;return!jt.pretty||jt.suppressPrettyCount?"":jt.pretty&&(It=(Lt||0)+jt.offset+1,It>0)?new Array(It).join(jt.indent):""},_t.prototype.endline=function(Mt,jt,Lt){return!jt.pretty||jt.suppressPrettyCount?"":jt.newline},_t.prototype.attribute=function(Mt,jt,Lt){var It;return this.openAttribute(Mt,jt,Lt),It=" "+Mt.name+'="'+Mt.value+'"',this.closeAttribute(Mt,jt,Lt),It},_t.prototype.cdata=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<![CDATA[",jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+="]]>"+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.comment=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<!-- ",jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+=" -->"+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.declaration=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<?xml",jt.state=pt.InsideTag,It+=' version="'+Mt.version+'"',Mt.encoding!=null&&(It+=' encoding="'+Mt.encoding+'"'),Mt.standalone!=null&&(It+=' standalone="'+Mt.standalone+'"'),jt.state=pt.CloseTag,It+=jt.spaceBeforeSlash+"?>",It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.docType=function(Mt,jt,Lt){var It,Ut,Xt,Gt,Yt;if(Lt||(Lt=0),this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,Gt=this.indent(Mt,jt,Lt),Gt+="<!DOCTYPE "+Mt.root().name,Mt.pubID&&Mt.sysID?Gt+=' PUBLIC "'+Mt.pubID+'" "'+Mt.sysID+'"':Mt.sysID&&(Gt+=' SYSTEM "'+Mt.sysID+'"'),Mt.children.length>0){for(Gt+=" [",Gt+=this.endline(Mt,jt,Lt),jt.state=pt.InsideTag,Yt=Mt.children,Ut=0,Xt=Yt.length;Ut<Xt;Ut++)It=Yt[Ut],Gt+=this.writeChildNode(It,jt,Lt+1);jt.state=pt.CloseTag,Gt+="]"}return jt.state=pt.CloseTag,Gt+=jt.spaceBeforeSlash+">",Gt+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),Gt},_t.prototype.element=function(Mt,jt,Lt){var It,Ut,Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re,we,Me,ke;Lt||(Lt=0),Kt=!1,re="",this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,re+=this.indent(Mt,jt,Lt)+"<"+Mt.name,we=Mt.attribs;for(ve in we)At.call(we,ve)&&(It=we[ve],re+=this.attribute(It,jt,Lt));if(Xt=Mt.children.length,Gt=Xt===0?null:Mt.children[0],Xt===0||Mt.children.every(function(me){return(me.type===St.Text||me.type===St.Raw)&&me.value===""}))jt.allowEmpty?(re+=">",jt.state=pt.CloseTag,re+="</"+Mt.name+">"+this.endline(Mt,jt,Lt)):(jt.state=pt.CloseTag,re+=jt.spaceBeforeSlash+"/>"+this.endline(Mt,jt,Lt));else if(jt.pretty&&Xt===1&&(Gt.type===St.Text||Gt.type===St.Raw)&&Gt.value!=null)re+=">",jt.state=pt.InsideTag,jt.suppressPrettyCount++,Kt=!0,re+=this.writeChildNode(Gt,jt,Lt+1),jt.suppressPrettyCount--,Kt=!1,jt.state=pt.CloseTag,re+="</"+Mt.name+">"+this.endline(Mt,jt,Lt);else{if(jt.dontPrettyTextNodes){for(Me=Mt.children,Yt=0,ne=Me.length;Yt<ne;Yt++)if(Ut=Me[Yt],(Ut.type===St.Text||Ut.type===St.Raw)&&Ut.value!=null){jt.suppressPrettyCount++,Kt=!0;break}}for(re+=">"+this.endline(Mt,jt,Lt),jt.state=pt.InsideTag,ke=Mt.children,Ht=0,ae=ke.length;Ht<ae;Ht++)Ut=ke[Ht],re+=this.writeChildNode(Ut,jt,Lt+1);jt.state=pt.CloseTag,re+=this.indent(Mt,jt,Lt)+"</"+Mt.name+">",Kt&&jt.suppressPrettyCount--,re+=this.endline(Mt,jt,Lt),jt.state=pt.None}return this.closeNode(Mt,jt,Lt),re},_t.prototype.writeChildNode=function(Mt,jt,Lt){switch(Mt.type){case St.CData:return this.cdata(Mt,jt,Lt);case St.Comment:return this.comment(Mt,jt,Lt);case St.Element:return this.element(Mt,jt,Lt);case St.Raw:return this.raw(Mt,jt,Lt);case St.Text:return this.text(Mt,jt,Lt);case St.ProcessingInstruction:return this.processingInstruction(Mt,jt,Lt);case St.Dummy:return"";case St.Declaration:return this.declaration(Mt,jt,Lt);case St.DocType:return this.docType(Mt,jt,Lt);case St.AttributeDeclaration:return this.dtdAttList(Mt,jt,Lt);case St.ElementDeclaration:return this.dtdElement(Mt,jt,Lt);case St.EntityDeclaration:return this.dtdEntity(Mt,jt,Lt);case St.NotationDeclaration:return this.dtdNotation(Mt,jt,Lt);default:throw new Error("Unknown XML node type: "+Mt.constructor.name)}},_t.prototype.processingInstruction=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<?",jt.state=pt.InsideTag,It+=Mt.target,Mt.value&&(It+=" "+Mt.value),jt.state=pt.CloseTag,It+=jt.spaceBeforeSlash+"?>",It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.raw=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt),jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.text=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt),jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdAttList=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<!ATTLIST",jt.state=pt.InsideTag,It+=" "+Mt.elementName+" "+Mt.attributeName+" "+Mt.attributeType,Mt.defaultValueType!=="#DEFAULT"&&(It+=" "+Mt.defaultValueType),Mt.defaultValue&&(It+=' "'+Mt.defaultValue+'"'),jt.state=pt.CloseTag,It+=jt.spaceBeforeSlash+">"+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdElement=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<!ELEMENT",jt.state=pt.InsideTag,It+=" "+Mt.name+" "+Mt.value,jt.state=pt.CloseTag,It+=jt.spaceBeforeSlash+">"+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdEntity=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<!ENTITY",jt.state=pt.InsideTag,Mt.pe&&(It+=" %"),It+=" "+Mt.name,Mt.value?It+=' "'+Mt.value+'"':(Mt.pubID&&Mt.sysID?It+=' PUBLIC "'+Mt.pubID+'" "'+Mt.sysID+'"':Mt.sysID&&(It+=' SYSTEM "'+Mt.sysID+'"'),Mt.nData&&(It+=" NDATA "+Mt.nData)),jt.state=pt.CloseTag,It+=jt.spaceBeforeSlash+">"+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdNotation=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"<!NOTATION",jt.state=pt.InsideTag,It+=" "+Mt.name,Mt.pubID&&Mt.sysID?It+=' PUBLIC "'+Mt.pubID+'" "'+Mt.sysID+'"':Mt.pubID?It+=' PUBLIC "'+Mt.pubID+'"':Mt.sysID&&(It+=' SYSTEM "'+Mt.sysID+'"'),jt.state=pt.CloseTag,It+=jt.spaceBeforeSlash+">"+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.openNode=function(Mt,jt,Lt){},_t.prototype.closeNode=function(Mt,jt,Lt){},_t.prototype.openAttribute=function(Mt,jt,Lt){},_t.prototype.closeAttribute=function(Mt,jt,Lt){},_t}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E;E=rt("./Utility"),ct=E.assign,lt=E.isFunction,vt=rt("./XMLDOMImplementation"),yt=rt("./XMLDocument"),xt=rt("./XMLDocumentCB"),ft=rt("./XMLStringWriter"),dt=rt("./XMLStreamWriter"),St=rt("./NodeType"),pt=rt("./WriterState"),kt.exports.create=function(z,ot,it,at){var ut,wt;if(z==null)throw new Error("Root element needs a name.");return at=ct({},ot,it,at),ut=new yt(at),wt=ut.element(z),at.headless||(ut.declaration(at),(at.pubID!=null||at.sysID!=null)&&ut.dtd(at)),wt},kt.exports.begin=function(z,ot,it){var at;return lt(z)&&(at=[z,ot],ot=at[0],it=at[1],z={}),ot?new xt(z,ot,it):new yt(z)},kt.exports.stringWriter=function(z){return new ft(z)},kt.exports.streamWriter=function(z,ot){return new dt(z,ot)},kt.exports.implementation=new vt,kt.exports.nodeType=St,kt.exports.writerState=pt}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(rt,kt,Ct){kt.exports=pt;var St=Object.prototype.hasOwnProperty;function pt(){for(var vt={},yt=0;yt<arguments.length;yt++){var xt=arguments[yt];for(var dt in xt)St.call(xt,dt)&&(vt[dt]=xt[dt])}return vt}},{}],461:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.fill.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.array.slice.js");var St=rt("buffer").Buffer,pt=rt("./sha"),vt=rt("./md5"),yt={sha1:pt,md5:vt},xt=64,dt=St.alloc(xt);dt.fill(0);function ft(E,z,ot){St.isBuffer(z)||(z=St.from(z)),St.isBuffer(ot)||(ot=St.from(ot)),z.length>xt?z=E(z):z.length<xt&&(z=St.concat([z,dt],xt));for(var it=St.alloc(xt),at=St.alloc(xt),ut=0;ut<xt;ut++)it[ut]=z[ut]^54,at[ut]=z[ut]^92;var wt=E(St.concat([it,ot]));return E(St.concat([at,wt]))}function ct(E,z){E=E||"sha1";var ot=yt[E],it=[],at=0;return ot||lt("algorithm:",E,"is not yet supported"),{update:function(wt){return St.isBuffer(wt)||(wt=St.from(wt)),it.push(wt),at+=wt.length,this},digest:function(wt){var Et=St.concat(it),At=z?ft(ot,z,Et):ot(Et);return it=null,wt?At.toString(wt):At}}}function lt(){var E=[].slice.call(arguments).join(" ");throw new Error([E,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}Ct.createHash=function(E){return ct(E)},Ct.createHmac=function(E,z){return ct(E,z)},Ct.createCredentials=function(){lt("sorry,createCredentials is not implemented yet")},Ct.createCipher=function(){lt("sorry,createCipher is not implemented yet")},Ct.createCipheriv=function(){lt("sorry,createCipheriv is not implemented yet")},Ct.createDecipher=function(){lt("sorry,createDecipher is not implemented yet")},Ct.createDecipheriv=function(){lt("sorry,createDecipheriv is not implemented yet")},Ct.createSign=function(){lt("sorry,createSign is not implemented yet")},Ct.createVerify=function(){lt("sorry,createVerify is not implemented yet")},Ct.createDiffieHellman=function(){lt("sorry,createDiffieHellman is not implemented yet")},Ct.pbkdf2=function(){lt("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.fill.js"),rt("core-js/modules/es.array.concat.js");var St=rt("buffer").Buffer,pt=4,vt=St.alloc(pt);vt.fill(0);var yt=8;function xt(ct,lt){if(ct.length%pt!==0){var E=ct.length+(pt-ct.length%pt);ct=St.concat([ct,vt],E)}for(var z=[],ot=lt?ct.readInt32BE:ct.readInt32LE,it=0;it<ct.length;it+=pt)z.push(ot.call(ct,it));return z}function dt(ct,lt,E){for(var z=St.alloc(lt),ot=E?z.writeInt32BE:z.writeInt32LE,it=0;it<ct.length;it++)ot.call(z,ct[it],it*4,!0);return z}function ft(ct,lt,E,z){St.isBuffer(ct)||(ct=St.from(ct));var ot=lt(xt(ct,z),ct.length*yt);return dt(ot,E,z)}kt.exports={hash:ft}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(rt,kt,Ct){"use strict";var St=rt("./helpers");function pt(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function vt(z,ot){z[ot>>5]|=128<<ot%32,z[(ot+64>>>9<<4)+14]=ot;for(var it=1732584193,at=-271733879,ut=-1732584194,wt=271733878,Et=0;Et<z.length;Et+=16){var At=it,_t=at,Mt=ut,jt=wt;it=xt(it,at,ut,wt,z[Et+0],7,-680876936),wt=xt(wt,it,at,ut,z[Et+1],12,-389564586),ut=xt(ut,wt,it,at,z[Et+2],17,606105819),at=xt(at,ut,wt,it,z[Et+3],22,-1044525330),it=xt(it,at,ut,wt,z[Et+4],7,-176418897),wt=xt(wt,it,at,ut,z[Et+5],12,1200080426),ut=xt(ut,wt,it,at,z[Et+6],17,-1473231341),at=xt(at,ut,wt,it,z[Et+7],22,-45705983),it=xt(it,at,ut,wt,z[Et+8],7,1770035416),wt=xt(wt,it,at,ut,z[Et+9],12,-1958414417),ut=xt(ut,wt,it,at,z[Et+10],17,-42063),at=xt(at,ut,wt,it,z[Et+11],22,-1990404162),it=xt(it,at,ut,wt,z[Et+12],7,1804603682),wt=xt(wt,it,at,ut,z[Et+13],12,-40341101),ut=xt(ut,wt,it,at,z[Et+14],17,-1502002290),at=xt(at,ut,wt,it,z[Et+15],22,1236535329),it=dt(it,at,ut,wt,z[Et+1],5,-165796510),wt=dt(wt,it,at,ut,z[Et+6],9,-1069501632),ut=dt(ut,wt,it,at,z[Et+11],14,643717713),at=dt(at,ut,wt,it,z[Et+0],20,-373897302),it=dt(it,at,ut,wt,z[Et+5],5,-701558691),wt=dt(wt,it,at,ut,z[Et+10],9,38016083),ut=dt(ut,wt,it,at,z[Et+15],14,-660478335),at=dt(at,ut,wt,it,z[Et+4],20,-405537848),it=dt(it,at,ut,wt,z[Et+9],5,568446438),wt=dt(wt,it,at,ut,z[Et+14],9,-1019803690),ut=dt(ut,wt,it,at,z[Et+3],14,-187363961),at=dt(at,ut,wt,it,z[Et+8],20,1163531501),it=dt(it,at,ut,wt,z[Et+13],5,-1444681467),wt=dt(wt,it,at,ut,z[Et+2],9,-51403784),ut=dt(ut,wt,it,at,z[Et+7],14,1735328473),at=dt(at,ut,wt,it,z[Et+12],20,-1926607734),it=ft(it,at,ut,wt,z[Et+5],4,-378558),wt=ft(wt,it,at,ut,z[Et+8],11,-2022574463),ut=ft(ut,wt,it,at,z[Et+11],16,1839030562),at=ft(at,ut,wt,it,z[Et+14],23,-35309556),it=ft(it,at,ut,wt,z[Et+1],4,-1530992060),wt=ft(wt,it,at,ut,z[Et+4],11,1272893353),ut=ft(ut,wt,it,at,z[Et+7],16,-155497632),at=ft(at,ut,wt,it,z[Et+10],23,-1094730640),it=ft(it,at,ut,wt,z[Et+13],4,681279174),wt=ft(wt,it,at,ut,z[Et+0],11,-358537222),ut=ft(ut,wt,it,at,z[Et+3],16,-722521979),at=ft(at,ut,wt,it,z[Et+6],23,76029189),it=ft(it,at,ut,wt,z[Et+9],4,-640364487),wt=ft(wt,it,at,ut,z[Et+12],11,-421815835),ut=ft(ut,wt,it,at,z[Et+15],16,530742520),at=ft(at,ut,wt,it,z[Et+2],23,-995338651),it=ct(it,at,ut,wt,z[Et+0],6,-198630844),wt=ct(wt,it,at,ut,z[Et+7],10,1126891415),ut=ct(ut,wt,it,at,z[Et+14],15,-1416354905),at=ct(at,ut,wt,it,z[Et+5],21,-57434055),it=ct(it,at,ut,wt,z[Et+12],6,1700485571),wt=ct(wt,it,at,ut,z[Et+3],10,-1894986606),ut=ct(ut,wt,it,at,z[Et+10],15,-1051523),at=ct(at,ut,wt,it,z[Et+1],21,-2054922799),it=ct(it,at,ut,wt,z[Et+8],6,1873313359),wt=ct(wt,it,at,ut,z[Et+15],10,-30611744),ut=ct(ut,wt,it,at,z[Et+6],15,-1560198380),at=ct(at,ut,wt,it,z[Et+13],21,1309151649),it=ct(it,at,ut,wt,z[Et+4],6,-145523070),wt=ct(wt,it,at,ut,z[Et+11],10,-1120210379),ut=ct(ut,wt,it,at,z[Et+2],15,718787259),at=ct(at,ut,wt,it,z[Et+9],21,-343485551),it=lt(it,At),at=lt(at,_t),ut=lt(ut,Mt),wt=lt(wt,jt)}return Array(it,at,ut,wt)}function yt(z,ot,it,at,ut,wt){return lt(E(lt(lt(ot,z),lt(at,wt)),ut),it)}function xt(z,ot,it,at,ut,wt,Et){return yt(ot&it|~ot&at,z,ot,ut,wt,Et)}function dt(z,ot,it,at,ut,wt,Et){return yt(ot&at|it&~at,z,ot,ut,wt,Et)}function ft(z,ot,it,at,ut,wt,Et){return yt(ot^it^at,z,ot,ut,wt,Et)}function ct(z,ot,it,at,ut,wt,Et){return yt(it^(ot|~at),z,ot,ut,wt,Et)}function lt(z,ot){var it=(z&65535)+(ot&65535),at=(z>>16)+(ot>>16)+(it>>16);return at<<16|it&65535}function E(z,ot){return z<<ot|z>>>32-ot}kt.exports=function(ot){return St.hash(ot,vt,16)}},{"./helpers":462}],464:[function(rt,kt,Ct){"use strict";var St=rt("./helpers");function pt(ft,ct){ft[ct>>5]|=128<<24-ct%32,ft[(ct+64>>9<<4)+15]=ct;for(var lt=Array(80),E=1732584193,z=-271733879,ot=-1732584194,it=271733878,at=-1009589776,ut=0;ut<ft.length;ut+=16){for(var wt=E,Et=z,At=ot,_t=it,Mt=at,jt=0;jt<80;jt++){jt<16?lt[jt]=ft[ut+jt]:lt[jt]=dt(lt[jt-3]^lt[jt-8]^lt[jt-14]^lt[jt-16],1);var Lt=xt(xt(dt(E,5),vt(jt,z,ot,it)),xt(xt(at,lt[jt]),yt(jt)));at=it,it=ot,ot=dt(z,30),z=E,E=Lt}E=xt(E,wt),z=xt(z,Et),ot=xt(ot,At),it=xt(it,_t),at=xt(at,Mt)}return Array(E,z,ot,it,at)}function vt(ft,ct,lt,E){return ft<20?ct&lt|~ct&E:ft<40?ct^lt^E:ft<60?ct&lt|ct&E|lt&E:ct^lt^E}function yt(ft){return ft<20?1518500249:ft<40?1859775393:ft<60?-1894007588:-899497514}function xt(ft,ct){var lt=(ft&65535)+(ct&65535),E=(ft>>16)+(ct>>16)+(lt>>16);return E<<16|lt&65535}function dt(ft,ct){return ft<<ct|ft>>>32-ct}kt.exports=function(ct){return St.hash(ct,pt,20,!0)}},{"./helpers":462}],465:[function(rt,kt,Ct){"use strict";kt.exports=function(){return function(){}}},{}],466:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/helpers/typeof")),yt=rt("stream"),xt=yt.Stream,dt=rt("../lib/common/utils/isArray"),ft=dt.isArray;kt.exports.string=function(E){return typeof E=="string"},kt.exports.array=ft,kt.exports.buffer=St.isBuffer;function ct(lt){return lt instanceof xt}kt.exports.writableStream=function(E){return ct(E)&&typeof E._write=="function"&&(0,vt.default)(E._writableState)==="object"}}).call(this)}).call(this,{isBuffer:rt("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(rt,kt,Ct){"use strict";var St=rt("immediate"),pt=kt.exports={};pt.nextTick=St,pt.title="browser",pt.browser=!0,pt.env={},pt.argv=[],pt.version="",pt.versions={};function vt(){}pt.on=vt,pt.addListener=vt,pt.once=vt,pt.off=vt,pt.removeListener=vt,pt.removeAllListeners=vt,pt.emit=vt,pt.prependListener=vt,pt.prependOnceListener=vt,pt.listeners=function(yt){return[]},pt.binding=function(yt){throw new Error("process.binding is not supported")},pt.cwd=function(){return"/"},pt.chdir=function(yt){throw new Error("process.chdir is not supported")},pt.umask=function(){return 0}},{immediate:358}],468:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.search.js");var pt=rt("./lib/request"),vt=rt("./lib/response"),yt=rt("xtend"),xt=rt("builtin-status-codes"),dt=rt("url"),ft=Ct;ft.request=function(ct,lt){typeof ct=="string"?ct=dt.parse(ct):ct=yt(ct);var E=St.location.protocol.search(/^https?:$/)===-1?"http:":"",z=ct.protocol||E,ot=ct.hostname||ct.host,it=ct.port,at=ct.path||"/";ot&&ot.indexOf(":")!==-1&&(ot="["+ot+"]"),ct.url=(ot?z+"//"+ot:"")+(it?":"+it:"")+at,ct.method=(ct.method||"GET").toUpperCase(),ct.headers=ct.headers||{};var ut=new pt(ct);return lt&&ut.on("response",lt),ut},ft.get=function(lt,E){var z=ft.request(lt,E);return z.end(),z},ft.ClientRequest=pt,ft.IncomingMessage=vt.IncomingMessage,ft.Agent=function(){},ft.Agent.defaultMaxSockets=4,ft.globalAgent=new ft.Agent,ft.STATUS_CODES=xt,ft.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array-buffer.constructor.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.array.slice.js"),Ct.fetch=ft(St.fetch)&&ft(St.ReadableStream),Ct.writableStream=ft(St.WritableStream),Ct.abortController=ft(St.AbortController),Ct.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Ct.blobConstructor=!0}catch(ct){}var pt;function vt(){if(pt!==void 0)return pt;if(St.XMLHttpRequest){pt=new St.XMLHttpRequest;try{pt.open("GET",St.XDomainRequest?"/":"https://example.com")}catch(ct){pt=null}}else pt=null;return pt}function yt(ct){var lt=vt();if(!lt)return!1;try{return lt.responseType=ct,lt.responseType===ct}catch(E){}return!1}var xt=typeof St.ArrayBuffer!="undefined",dt=xt&&ft(St.ArrayBuffer.prototype.slice);Ct.arraybuffer=Ct.fetch||xt&&yt("arraybuffer"),Ct.msstream=!Ct.fetch&&dt&&yt("ms-stream"),Ct.mozchunkedarraybuffer=!Ct.fetch&&xt&&yt("moz-chunked-arraybuffer"),Ct.overrideMimeType=Ct.fetch||(vt()?ft(vt().overrideMimeType):!1),Ct.vbArray=ft(St.VBArray);function ft(ct){return typeof ct=="function"}pt=null}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(rt,kt,Ct){(function(St,pt,vt){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js");var yt=rt("./capability"),xt=rt("inherits"),dt=rt("./response"),ft=rt("readable-stream"),ct=rt("to-arraybuffer"),lt=dt.IncomingMessage,E=dt.readyStates;function z(ut,wt){return yt.fetch&&wt?"fetch":yt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":yt.msstream?"ms-stream":yt.arraybuffer&&ut?"arraybuffer":yt.vbArray&&ut?"text:vbarray":"text"}var ot=kt.exports=function(ut){var wt=this;ft.Writable.call(wt),wt._opts=ut,wt._body=[],wt._headers={},ut.auth&&wt.setHeader("Authorization","Basic "+new vt(ut.auth).toString("base64")),Object.keys(ut.headers).forEach(function(_t){wt.setHeader(_t,ut.headers[_t])});var Et,At=!0;if(ut.mode==="disable-fetch"||"requestTimeout"in ut&&!yt.abortController)At=!1,Et=!0;else if(ut.mode==="prefer-streaming")Et=!1;else if(ut.mode==="allow-wrong-content-type")Et=!yt.overrideMimeType;else if(!ut.mode||ut.mode==="default"||ut.mode==="prefer-fast")Et=!0;else throw new Error("Invalid value for opts.mode");wt._mode=z(Et,At),wt._fetchTimer=null,wt.on("finish",function(){wt._onFinish()})};xt(ot,ft.Writable),ot.prototype.setHeader=function(ut,wt){var Et=this,At=ut.toLowerCase();at.indexOf(At)===-1&&(Et._headers[At]={name:ut,value:wt})},ot.prototype.getHeader=function(ut){var wt=this._headers[ut.toLowerCase()];return wt?wt.value:null},ot.prototype.removeHeader=function(ut){var wt=this;delete wt._headers[ut.toLowerCase()]},ot.prototype._onFinish=function(){var ut=this;if(!ut._destroyed){var wt=ut._opts,Et=ut._headers,At=null;wt.method!=="GET"&&wt.method!=="HEAD"&&(yt.arraybuffer?At=ct(vt.concat(ut._body)):yt.blobConstructor?At=new pt.Blob(ut._body.map(function(Ut){return ct(Ut)}),{type:(Et["content-type"]||{}).value||""}):At=vt.concat(ut._body).toString());var _t=[];if(Object.keys(Et).forEach(function(Ut){var Xt=Et[Ut].name,Gt=Et[Ut].value;Array.isArray(Gt)?Gt.forEach(function(Yt){_t.push([Xt,Yt])}):_t.push([Xt,Gt])}),ut._mode==="fetch"){var Mt=null,jt=null;if(yt.abortController){var Lt=new AbortController;Mt=Lt.signal,ut._fetchAbortController=Lt,"requestTimeout"in wt&&wt.requestTimeout!==0&&(ut._fetchTimer=pt.setTimeout(function(){ut.emit("requestTimeout"),ut._fetchAbortController&&ut._fetchAbortController.abort()},wt.requestTimeout))}pt.fetch(ut._opts.url,{method:ut._opts.method,headers:_t,body:At||void 0,mode:"cors",credentials:wt.withCredentials?"include":"same-origin",signal:Mt}).then(function(Ut){ut._fetchResponse=Ut,ut._connect()},function(Ut){pt.clearTimeout(ut._fetchTimer),ut._destroyed||ut.emit("error",Ut)})}else{var It=ut._xhr=new pt.XMLHttpRequest;try{It.open(ut._opts.method,ut._opts.url,!0)}catch(Ut){St.nextTick(function(){ut.emit("error",Ut)});return}"responseType"in It&&(It.responseType=ut._mode.split(":")[0]),"withCredentials"in It&&(It.withCredentials=!!wt.withCredentials),ut._mode==="text"&&"overrideMimeType"in It&&It.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in wt&&(It.timeout=wt.requestTimeout,It.ontimeout=function(){ut.emit("requestTimeout")}),_t.forEach(function(Ut){It.setRequestHeader(Ut[0],Ut[1])}),ut._response=null,It.onreadystatechange=function(){switch(It.readyState){case E.LOADING:case E.DONE:ut._onXHRProgress();break}},ut._mode==="moz-chunked-arraybuffer"&&(It.onprogress=function(){ut._onXHRProgress()}),It.onerror=function(){ut._destroyed||ut.emit("error",new Error("XHR error"))};try{It.send(At)}catch(Ut){St.nextTick(function(){ut.emit("error",Ut)});return}}}};function it(ut){try{var wt=ut.status;return wt!==null&&wt!==0}catch(Et){return!1}}ot.prototype._onXHRProgress=function(){var ut=this;!it(ut._xhr)||ut._destroyed||(ut._response||ut._connect(),ut._response._onXHRProgress())},ot.prototype._connect=function(){var ut=this;ut._destroyed||(ut._response=new lt(ut._xhr,ut._fetchResponse,ut._mode,ut._fetchTimer),ut._response.on("error",function(wt){ut.emit("error",wt)}),ut.emit("response",ut._response))},ot.prototype._write=function(ut,wt,Et){var At=this;At._body.push(ut),Et()},ot.prototype.abort=ot.prototype.destroy=function(){var ut=this;ut._destroyed=!0,pt.clearTimeout(ut._fetchTimer),ut._response&&(ut._response._destroyed=!0),ut._xhr?ut._xhr.abort():ut._fetchAbortController&&ut._fetchAbortController.abort()},ot.prototype.end=function(ut,wt,Et){var At=this;typeof ut=="function"&&(Et=ut,ut=void 0),ft.Writable.prototype.end.call(At,ut,wt,Et)},ot.prototype.flushHeaders=function(){},ot.prototype.setTimeout=function(){},ot.prototype.setNoDelay=function(){},ot.prototype.setSocketKeepAlive=function(){};var at=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},rt("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(rt,kt,Ct){(function(St,pt,vt){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.string.match.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.typed-array.uint8-array.js"),rt("core-js/modules/es.typed-array.copy-within.js"),rt("core-js/modules/es.typed-array.every.js"),rt("core-js/modules/es.typed-array.fill.js"),rt("core-js/modules/es.typed-array.filter.js"),rt("core-js/modules/es.typed-array.find.js"),rt("core-js/modules/es.typed-array.find-index.js"),rt("core-js/modules/es.typed-array.for-each.js"),rt("core-js/modules/es.typed-array.includes.js"),rt("core-js/modules/es.typed-array.index-of.js"),rt("core-js/modules/es.typed-array.iterator.js"),rt("core-js/modules/es.typed-array.join.js"),rt("core-js/modules/es.typed-array.last-index-of.js"),rt("core-js/modules/es.typed-array.map.js"),rt("core-js/modules/es.typed-array.reduce.js"),rt("core-js/modules/es.typed-array.reduce-right.js"),rt("core-js/modules/es.typed-array.reverse.js"),rt("core-js/modules/es.typed-array.set.js"),rt("core-js/modules/es.typed-array.slice.js"),rt("core-js/modules/es.typed-array.some.js"),rt("core-js/modules/es.typed-array.sort.js"),rt("core-js/modules/es.typed-array.subarray.js"),rt("core-js/modules/es.typed-array.to-locale-string.js"),rt("core-js/modules/es.typed-array.to-string.js"),rt("core-js/modules/es.array.slice.js");var yt=rt("./capability"),xt=rt("inherits"),dt=rt("readable-stream"),ft=Ct.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ct=Ct.IncomingMessage=function(lt,E,z,ot){var it=this;if(dt.Readable.call(it),it._mode=z,it.headers={},it.rawHeaders=[],it.trailers={},it.rawTrailers=[],it.on("end",function(){St.nextTick(function(){it.emit("close")})}),z==="fetch"){var at=function Mt(){wt.read().then(function(jt){if(!it._destroyed){if(jt.done){pt.clearTimeout(ot),it.push(null);return}it.push(new vt(jt.value)),Mt()}}).catch(function(jt){pt.clearTimeout(ot),it._destroyed||it.emit("error",jt)})};if(it._fetchResponse=E,it.url=E.url,it.statusCode=E.status,it.statusMessage=E.statusText,E.headers.forEach(function(Mt,jt){it.headers[jt.toLowerCase()]=Mt,it.rawHeaders.push(jt,Mt)}),yt.writableStream){var ut=new WritableStream({write:function(jt){return new Promise(function(Lt,It){it._destroyed?It():it.push(new vt(jt))?Lt():it._resumeFetch=Lt})},close:function(){pt.clearTimeout(ot),it._destroyed||it.push(null)},abort:function(jt){it._destroyed||it.emit("error",jt)}});try{E.body.pipeTo(ut).catch(function(Mt){pt.clearTimeout(ot),it._destroyed||it.emit("error",Mt)});return}catch(Mt){}}var wt=E.body.getReader();at()}else{it._xhr=lt,it._pos=0,it.url=lt.responseURL,it.statusCode=lt.status,it.statusMessage=lt.statusText;var Et=lt.getAllResponseHeaders().split(/\r?\n/);if(Et.forEach(function(Mt){var jt=Mt.match(/^([^:]+):\s*(.*)/);if(jt){var Lt=jt[1].toLowerCase();Lt==="set-cookie"?(it.headers[Lt]===void 0&&(it.headers[Lt]=[]),it.headers[Lt].push(jt[2])):it.headers[Lt]!==void 0?it.headers[Lt]+=", "+jt[2]:it.headers[Lt]=jt[2],it.rawHeaders.push(jt[1],jt[2])}}),it._charset="x-user-defined",!yt.overrideMimeType){var At=it.rawHeaders["mime-type"];if(At){var _t=At.match(/;\s*charset=([^;])(;|$)/);_t&&(it._charset=_t[1].toLowerCase())}it._charset||(it._charset="utf-8")}}};xt(ct,dt.Readable),ct.prototype._read=function(){var lt=this,E=lt._resumeFetch;E&&(lt._resumeFetch=null,E())},ct.prototype._onXHRProgress=function(){var lt=this,E=lt._xhr,z=null;switch(lt._mode){case"text:vbarray":if(E.readyState!==ft.DONE)break;try{z=new pt.VBArray(E.responseBody).toArray()}catch(wt){}if(z!==null){lt.push(new vt(z));break}case"text":try{z=E.responseText}catch(wt){lt._mode="text:vbarray";break}if(z.length>lt._pos){var ot=z.substr(lt._pos);if(lt._charset==="x-user-defined"){for(var it=new vt(ot.length),at=0;at<ot.length;at++)it[at]=ot.charCodeAt(at)&255;lt.push(it)}else lt.push(ot,lt._charset);lt._pos=z.length}break;case"arraybuffer":if(E.readyState!==ft.DONE||!E.response)break;z=E.response,lt.push(new vt(new Uint8Array(z)));break;case"moz-chunked-arraybuffer":if(z=E.response,E.readyState!==ft.LOADING||!z)break;lt.push(new vt(new Uint8Array(z)));break;case"ms-stream":if(z=E.response,E.readyState!==ft.LOADING)break;var ut=new pt.MSStreamReader;ut.onprogress=function(){ut.result.byteLength>lt._pos&&(lt.push(new vt(new Uint8Array(ut.result.slice(lt._pos)))),lt._pos=ut.result.byteLength)},ut.onload=function(){lt.push(null)},ut.readAsArrayBuffer(z);break}lt._xhr.readyState===ft.DONE&&lt._mode!=="ms-stream"&&lt.push(null)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},rt("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/helpers/typeof"));rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.search.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.string.match.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.splice.js");var vt=rt("punycode"),yt=rt("./util");Ct.parse=jt,Ct.resolve=It,Ct.resolveObject=Ut,Ct.format=Lt,Ct.Url=xt;function xt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var dt=/^([a-z0-9.+-]+:)/i,ft=/:[0-9]*$/,ct=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,lt=["<",">",'"',"`"," ","\r",`
`," "],E=["{","}","|","\\","^","`"].concat(lt),z=["'"].concat(E),ot=["%","/","?",";","#"].concat(z),it=["/","?","#"],at=255,ut=/^[+a-z0-9A-Z_-]{0,63}$/,wt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Et={javascript:!0,"javascript:":!0},At={javascript:!0,"javascript:":!0},_t={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Mt=rt("querystring");function jt(Xt,Gt,Yt){if(Xt&&yt.isObject(Xt)&&Xt instanceof xt)return Xt;var Ht=new xt;return Ht.parse(Xt,Gt,Yt),Ht}xt.prototype.parse=function(Xt,Gt,Yt){if(!yt.isString(Xt))throw new TypeError("Parameter 'url' must be a string, not "+(0,pt.default)(Xt));var Ht=Xt.indexOf("?"),ne=Ht!==-1&&Ht<Xt.indexOf("#")?"?":"#",ae=Xt.split(ne),ve=/\\/g;ae[0]=ae[0].replace(ve,"/"),Xt=ae.join(ne);var Kt=Xt;if(Kt=Kt.trim(),!Yt&&Xt.split("#").length===1){var re=ct.exec(Kt);if(re)return this.path=Kt,this.href=Kt,this.pathname=re[1],re[2]?(this.search=re[2],Gt?this.query=Mt.parse(this.search.substr(1)):this.query=this.search.substr(1)):Gt&&(this.search="",this.query={}),this}var we=dt.exec(Kt);if(we){we=we[0];var Me=we.toLowerCase();this.protocol=Me,Kt=Kt.substr(we.length)}if(Yt||we||Kt.match(/^\/\/[^@\/]+@[^@\/]+/)){var ke=Kt.substr(0,2)==="//";ke&&!(we&&At[we])&&(Kt=Kt.substr(2),this.slashes=!0)}if(!At[we]&&(ke||we&&!_t[we])){for(var me=-1,fe=0;fe<it.length;fe++){var pe=Kt.indexOf(it[fe]);pe!==-1&&(me===-1||pe<me)&&(me=pe)}var _e,je;me===-1?je=Kt.lastIndexOf("@"):je=Kt.lastIndexOf("@",me),je!==-1&&(_e=Kt.slice(0,je),Kt=Kt.slice(je+1),this.auth=decodeURIComponent(_e)),me=-1;for(var fe=0;fe<ot.length;fe++){var pe=Kt.indexOf(ot[fe]);pe!==-1&&(me===-1||pe<me)&&(me=pe)}me===-1&&(me=Kt.length),this.host=Kt.slice(0,me),Kt=Kt.slice(me),this.parseHost(),this.hostname=this.hostname||"";var He=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!He)for(var Se=this.hostname.split("."),fe=0,xe=Se.length;fe<xe;fe++){var le=Se[fe];if(le&&!le.match(ut)){for(var Ne="",se=0,Ae=le.length;se<Ae;se++)le.charCodeAt(se)>127?Ne+="x":Ne+=le[se];if(!Ne.match(ut)){var Xe=Se.slice(0,fe),Be=Se.slice(fe+1),Te=le.match(wt);Te&&(Xe.push(Te[1]),Be.unshift(Te[2])),Be.length&&(Kt="/"+Be.join(".")+Kt),this.hostname=Xe.join(".");break}}}this.hostname.length>at?this.hostname="":this.hostname=this.hostname.toLowerCase(),He||(this.hostname=vt.toASCII(this.hostname));var ue=this.port?":"+this.port:"",$t=this.hostname||"";this.host=$t+ue,this.href+=this.host,He&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Kt[0]!=="/"&&(Kt="/"+Kt))}if(!Et[Me])for(var fe=0,xe=z.length;fe<xe;fe++){var he=z[fe];if(Kt.indexOf(he)!==-1){var ye=encodeURIComponent(he);ye===he&&(ye=escape(he)),Kt=Kt.split(he).join(ye)}}var Qt=Kt.indexOf("#");Qt!==-1&&(this.hash=Kt.substr(Qt),Kt=Kt.slice(0,Qt));var Wt=Kt.indexOf("?");if(Wt!==-1?(this.search=Kt.substr(Wt),this.query=Kt.substr(Wt+1),Gt&&(this.query=Mt.parse(this.query)),Kt=Kt.slice(0,Wt)):Gt&&(this.search="",this.query={}),Kt&&(this.pathname=Kt),_t[Me]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ue=this.pathname||"",Bt=this.search||"";this.path=ue+Bt}return this.href=this.format(),this};function Lt(Xt){return yt.isString(Xt)&&(Xt=jt(Xt)),Xt instanceof xt?Xt.format():xt.prototype.format.call(Xt)}xt.prototype.format=function(){var Xt=this.auth||"";Xt&&(Xt=encodeURIComponent(Xt),Xt=Xt.replace(/%3A/i,":"),Xt+="@");var Gt=this.protocol||"",Yt=this.pathname||"",Ht=this.hash||"",ne=!1,ae="";this.host?ne=Xt+this.host:this.hostname&&(ne=Xt+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ne+=":"+this.port)),this.query&&yt.isObject(this.query)&&Object.keys(this.query).length&&(ae=Mt.stringify(this.query));var ve=this.search||ae&&"?"+ae||"";return Gt&&Gt.substr(-1)!==":"&&(Gt+=":"),this.slashes||(!Gt||_t[Gt])&&ne!==!1?(ne="//"+(ne||""),Yt&&Yt.charAt(0)!=="/"&&(Yt="/"+Yt)):ne||(ne=""),Ht&&Ht.charAt(0)!=="#"&&(Ht="#"+Ht),ve&&ve.charAt(0)!=="?"&&(ve="?"+ve),Yt=Yt.replace(/[?#]/g,function(Kt){return encodeURIComponent(Kt)}),ve=ve.replace("#","%23"),Gt+ne+Yt+ve+Ht};function It(Xt,Gt){return jt(Xt,!1,!0).resolve(Gt)}xt.prototype.resolve=function(Xt){return this.resolveObject(jt(Xt,!1,!0)).format()};function Ut(Xt,Gt){return Xt?jt(Xt,!1,!0).resolveObject(Gt):Gt}xt.prototype.resolveObject=function(Xt){if(yt.isString(Xt)){var Gt=new xt;Gt.parse(Xt,!1,!0),Xt=Gt}for(var Yt=new xt,Ht=Object.keys(this),ne=0;ne<Ht.length;ne++){var ae=Ht[ne];Yt[ae]=this[ae]}if(Yt.hash=Xt.hash,Xt.href==="")return Yt.href=Yt.format(),Yt;if(Xt.slashes&&!Xt.protocol){for(var ve=Object.keys(Xt),Kt=0;Kt<ve.length;Kt++){var re=ve[Kt];re!=="protocol"&&(Yt[re]=Xt[re])}return _t[Yt.protocol]&&Yt.hostname&&!Yt.pathname&&(Yt.path=Yt.pathname="/"),Yt.href=Yt.format(),Yt}if(Xt.protocol&&Xt.protocol!==Yt.protocol){if(!_t[Xt.protocol]){for(var we=Object.keys(Xt),Me=0;Me<we.length;Me++){var ke=we[Me];Yt[ke]=Xt[ke]}return Yt.href=Yt.format(),Yt}if(Yt.protocol=Xt.protocol,!Xt.host&&!At[Xt.protocol]){for(var xe=(Xt.pathname||"").split("/");xe.length&&!(Xt.host=xe.shift()););Xt.host||(Xt.host=""),Xt.hostname||(Xt.hostname=""),xe[0]!==""&&xe.unshift(""),xe.length<2&&xe.unshift(""),Yt.pathname=xe.join("/")}else Yt.pathname=Xt.pathname;if(Yt.search=Xt.search,Yt.query=Xt.query,Yt.host=Xt.host||"",Yt.auth=Xt.auth,Yt.hostname=Xt.hostname||Xt.host,Yt.port=Xt.port,Yt.pathname||Yt.search){var me=Yt.pathname||"",fe=Yt.search||"";Yt.path=me+fe}return Yt.slashes=Yt.slashes||Xt.slashes,Yt.href=Yt.format(),Yt}var pe=Yt.pathname&&Yt.pathname.charAt(0)==="/",_e=Xt.host||Xt.pathname&&Xt.pathname.charAt(0)==="/",je=_e||pe||Yt.host&&Xt.pathname,He=je,Se=Yt.pathname&&Yt.pathname.split("/")||[],xe=Xt.pathname&&Xt.pathname.split("/")||[],le=Yt.protocol&&!_t[Yt.protocol];if(le&&(Yt.hostname="",Yt.port=null,Yt.host&&(Se[0]===""?Se[0]=Yt.host:Se.unshift(Yt.host)),Yt.host="",Xt.protocol&&(Xt.hostname=null,Xt.port=null,Xt.host&&(xe[0]===""?xe[0]=Xt.host:xe.unshift(Xt.host)),Xt.host=null),je=je&&(xe[0]===""||Se[0]==="")),_e)Yt.host=Xt.host||Xt.host===""?Xt.host:Yt.host,Yt.hostname=Xt.hostname||Xt.hostname===""?Xt.hostname:Yt.hostname,Yt.search=Xt.search,Yt.query=Xt.query,Se=xe;else if(xe.length)Se||(Se=[]),Se.pop(),Se=Se.concat(xe),Yt.search=Xt.search,Yt.query=Xt.query;else if(!yt.isNullOrUndefined(Xt.search)){if(le){Yt.hostname=Yt.host=Se.shift();var Ne=Yt.host&&Yt.host.indexOf("@")>0?Yt.host.split("@"):!1;Ne&&(Yt.auth=Ne.shift(),Yt.host=Yt.hostname=Ne.shift())}return Yt.search=Xt.search,Yt.query=Xt.query,(!yt.isNull(Yt.pathname)||!yt.isNull(Yt.search))&&(Yt.path=(Yt.pathname?Yt.pathname:"")+(Yt.search?Yt.search:"")),Yt.href=Yt.format(),Yt}if(!Se.length)return Yt.pathname=null,Yt.search?Yt.path="/"+Yt.search:Yt.path=null,Yt.href=Yt.format(),Yt;for(var se=Se.slice(-1)[0],Ae=(Yt.host||Xt.host||Se.length>1)&&(se==="."||se==="..")||se==="",Xe=0,Be=Se.length;Be>=0;Be--)se=Se[Be],se==="."?Se.splice(Be,1):se===".."?(Se.splice(Be,1),Xe++):Xe&&(Se.splice(Be,1),Xe--);if(!je&&!He)for(;Xe--;Xe)Se.unshift("..");je&&Se[0]!==""&&(!Se[0]||Se[0].charAt(0)!=="/")&&Se.unshift(""),Ae&&Se.join("/").substr(-1)!=="/"&&Se.push("");var Te=Se[0]===""||Se[0]&&Se[0].charAt(0)==="/";if(le){Yt.hostname=Yt.host=Te?"":Se.length?Se.shift():"";var Ne=Yt.host&&Yt.host.indexOf("@")>0?Yt.host.split("@"):!1;Ne&&(Yt.auth=Ne.shift(),Yt.host=Yt.hostname=Ne.shift())}return je=je||Yt.host&&Se.length,je&&!Te&&Se.unshift(""),Se.length?Yt.pathname=Se.join("/"):(Yt.pathname=null,Yt.path=null),(!yt.isNull(Yt.pathname)||!yt.isNull(Yt.search))&&(Yt.path=(Yt.pathname?Yt.pathname:"")+(Yt.search?Yt.search:"")),Yt.auth=Xt.auth||Yt.auth,Yt.slashes=Yt.slashes||Xt.slashes,Yt.href=Yt.format(),Yt},xt.prototype.parseHost=function(){var Xt=this.host,Gt=ft.exec(Xt);Gt&&(Gt=Gt[0],Gt!==":"&&(this.port=Gt.substr(1)),Xt=Xt.substr(0,Xt.length-Gt.length)),Xt&&(this.hostname=Xt)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/helpers/typeof"));kt.exports={isString:function(yt){return typeof yt=="string"},isObject:function(yt){return(0,pt.default)(yt)==="object"&&yt!==null},isNull:function(yt){return yt===null},isNullOrUndefined:function(yt){return yt==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.number.constructor.js"),Ct.encodeURIComponent=function(St){try{return encodeURIComponent(St)}catch(pt){return St}},Ct.escape=rt("escape-html"),Ct.timestamp=function(pt){if(pt){var vt=pt;return typeof vt=="string"&&(vt=Number(vt)),String(pt).length===10&&(vt*=1e3),new Date(vt)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";var vt=rt("@babel/runtime/helpers/interopRequireDefault"),yt=vt(rt("@babel/runtime/helpers/typeof"));rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.array.concat.js");var xt=rt("util"),dt=rt("url"),ft=rt("http"),ct=rt("https"),lt=rt("debug")("urllib"),E=rt("humanize-ms"),z=0,ot=Math.pow(2,31)-10,it=/^https?:\/\//i;function at(At,_t){return At===void 0?_t:At}function ut(At){return At?At.split(";")[0].trim().toLowerCase():""}function wt(At,_t){return function(Mt,jt,Lt){if(Mt)return _t(Mt);At({data:jt,status:Lt.statusCode,headers:Lt.headers,res:Lt})}}Ct.TIMEOUTS=[E("300s"),E("300s")];var Et=["json","text"];Ct.request=function(_t,Mt,jt){return arguments.length===2&&typeof Mt=="function"&&(jt=Mt,Mt=null),typeof jt=="function"?Ct.requestWithCallback(_t,Mt,jt):new Promise(function(Lt,It){Ct.requestWithCallback(_t,Mt,wt(Lt,It))})},Ct.requestWithCallback=function(_t,Mt,jt){if(!_t||typeof _t!="string"&&(0,yt.default)(_t)!=="object"){var Lt=xt.format("expect request url to be a string or a http request options, but got %j",_t);throw new Error(Lt)}arguments.length===2&&typeof Mt=="function"&&(jt=Mt,Mt=null),Mt=Mt||{},z>=ot&&(z=0);var It=++z;Mt.requestUrls=Mt.requestUrls||[];var Ut={requestId:It,url:_t,args:Mt,ctx:Mt.ctx};Mt.emitter&&Mt.emitter.emit("request",Ut),Mt.timeout=Mt.timeout||Ct.TIMEOUTS,Mt.maxRedirects=Mt.maxRedirects||10,Mt.streaming=Mt.streaming||Mt.customResponse;var Xt=Date.now(),Gt;typeof _t=="string"?(it.test(_t)||(_t="https://"+_t),Gt=dt.parse(_t)):Gt=_t;var Yt=(Mt.type||Mt.method||Gt.method||"GET").toUpperCase(),Ht=Gt.port||80,ne=ft,ae=at(Mt.agent,Ct.agent),ve=Mt.fixJSONCtlChars;Gt.protocol==="https:"&&(ne=ct,ae=at(Mt.httpsAgent,Ct.httpsAgent),Gt.port||(Ht=443));var Kt={host:Gt.hostname||Gt.host||"localhost",path:Gt.path||"/",method:Yt,port:Ht,agent:ae,headers:Mt.headers||{},lookup:Mt.lookup};Array.isArray(Mt.timeout)?Kt.requestTimeout=Mt.timeout[Mt.timeout.length-1]:typeof Mt.timeout!="undefined"&&(Kt.requestTimeout=Mt.timeout);var re=Mt.auth||Gt.auth;re&&(Kt.auth=re);var we=Mt.content||Mt.data,Me=Yt==="GET"||Yt==="HEAD"||Mt.dataAsQueryString;if(!Mt.content&&we&&!(typeof we=="string"||pt.isBuffer(we)))if(Me)we=Mt.nestedQuerystring?qs.stringify(we):querystring.stringify(we);else{var ke=Kt.headers["Content-Type"]||Kt.headers["content-type"];ke||(Mt.contentType==="json"?ke="application/json":ke="application/x-www-form-urlencoded",Kt.headers["Content-Type"]=ke),ut(ke)==="application/json"?we=JSON.stringify(we):we=Mt.nestedQuerystring?qs.stringify(we):querystring.stringify(we)}Me&&we&&(Kt.path+=(Gt.query?"&":"?")+we,we=null);var me=0;if(we){var fe=we.length;pt.isBuffer(we)||(fe=pt.byteLength(we)),me=Kt.headers["Content-Length"]=fe}Mt.dataType==="json"&&(Kt.headers.Accept="application/json"),typeof Mt.beforeRequest=="function"&&Mt.beforeRequest(Kt);var pe=null,_e=null,je=null,He=!1,Se=!1,xe=0,le=-1,Ne=!1,se="",Ae="",Xe=null;Mt.timing&&(Xe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Be(){pe&&(clearTimeout(pe),pe=null)}function Te(){_e&&(clearTimeout(_e),_e=null)}function ue(Ue,Je,Ze){if(Te(),!jt){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),It,St.pid,Kt.method,_t),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),It,St.pid,Ue.name,Ue.message,Ue.stack);return}var nn=jt;jt=null;var fn={};Ze&&(le=Ze.statusCode,fn=Ze.headers);var An=Date.now()-Xt;Xe&&(Xe.contentDownload=An),lt("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",An,xe,le,Kt.method,Kt.host,Kt.path,Se,Xe);var En={status:le,statusCode:le,headers:fn,size:xe,aborted:Ne,rt:An,keepAliveSocket:Se,data:Je,requestUrls:Mt.requestUrls,timing:Xe,remoteAddress:se,remotePort:Ae};if(Ue){var Dn="";ae&&typeof ae.getCurrentStatus=="function"&&(Dn=", agent status: "+JSON.stringify(ae.getCurrentStatus())),Ue.message+=", "+Kt.method+" "+_t+" "+le+" (connected: "+He+", keepalive socket: "+Se+Dn+`)
headers: `+JSON.stringify(fn),Ue.data=Je,Ue.path=Kt.path,Ue.status=le,Ue.headers=fn,Ue.res=En}nn(Ue,Je,Mt.streaming?Ze:En),Mt.emitter&&(Ut.url=_t,Ut.socket=Jt&&Jt.connection,Ut.options=Kt,Ut.size=me,Mt.emitter.emit("response",{requestId:It,error:Ue,ctx:Mt.ctx,req:Ut,res:En}))}function $t(Ue){var Je=null;if(Mt.followRedirect&&statuses.redirect[Ue.statusCode]){Mt._followRedirectCount=(Mt._followRedirectCount||0)+1;var Ze=Ue.headers.location;if(!Ze)Je=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),Je.name="FollowRedirectError";else if(Mt._followRedirectCount>Mt.maxRedirects)Je=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+_t),Je.name="MaxRedirectError";else{var nn=Mt.formatRedirectUrl?Mt.formatRedirectUrl(_t,Ze):dt.resolve(_t,Ze);lt("Request#%d %s: `redirected` from %s to %s",It,Kt.path,_t,nn),Te(),Mt.headers&&Mt.headers.Host&&it.test(Ze)&&(Mt.headers.Host=null);var fn=jt;return jt=null,Ct.requestWithCallback(nn,Mt,fn),{redirect:!0,error:null}}}return{redirect:!1,error:Je}}Mt.gzip&&!Kt.headers["Accept-Encoding"]&&!Kt.headers["accept-encoding"]&&(Kt.headers["Accept-Encoding"]="gzip");function he(Ue,Je,Ze){var nn=Ue.headers["content-encoding"];return Ze(null,Je,nn)}var ye=Mt.writeStream;lt("Request#%d %s %s with headers %j, options.path: %s",It,Yt,_t,Kt.headers,Kt.path),Mt.requestUrls.push(_t);function Qt(Ue){if(Xe&&(Xe.waiting=Date.now()-Xt),lt("Request#%d %s `req response` event emit: status %d, headers: %j",It,_t,Ue.statusCode,Ue.headers),Mt.streaming){var Je=$t(Ue);if(Je.redirect){Ue.resume();return}return Je.error?(Ue.resume(),ue(Je.error,null,Ue)):ue(null,null,Ue)}if(Ue.on("close",function(){lt("Request#%d %s: `res close` event emit, total size %d",It,_t,xe)}),Ue.on("error",function(){lt("Request#%d %s: `res error` event emit, total size %d",It,_t,xe)}),Ue.on("aborted",function(){Ne=!0,lt("Request#%d %s: `res aborted` event emit, total size %d",It,_t,xe)}),ye){var Ze=$t(Ue);if(Ze.redirect){Ue.resume();return}return Ze.error?(Ue.resume(),ye.end(),ue(Ze.error,null,Ue)):(Mt.consumeWriteStream===!1?Ue.on("end",ue.bind(null,null,null,Ue)):ye.on("close",function(){lt("Request#%d %s: writeStream close event emitted",It,_t),ue(je||null,null,Ue)}),Ue.pipe(ye))}var nn=[];Ue.on("data",function(fn){lt("Request#%d %s: `res data` event emit, size %d",It,_t,fn.length),xe+=fn.length,nn.push(fn)}),Ue.on("end",function(){var fn=pt.concat(nn,xe);if(lt("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",It,_t,xe,Ue._dumped),je)return ue(je,fn,Ue);var An=$t(Ue);if(An.error)return ue(An.error,fn,Ue);An.redirect||he(Ue,fn,function(En,Dn,ii){if(En)return ue(En,fn,Ue);if(!ii&&Et.indexOf(Mt.dataType)>=0){try{Dn=decodeBodyByCharset(Dn,Ue)}catch(Ti){return lt("decodeBodyByCharset error: %s",Ti),ue(null,Dn,Ue)}if(Mt.dataType==="json")if(xe===0)Dn=null;else{var mi=parseJSON(Dn,ve);mi.error?En=mi.error:Dn=mi.data}}Ne&&lt("Request#%d %s: Remote socket was terminated before `response.end()` was called",It,_t),ue(En,Dn,Ue)})})}var Wt,Bt;Array.isArray(Mt.timeout)?(Wt=E(Mt.timeout[0]),Bt=E(Mt.timeout[1])):Wt=Bt=E(Mt.timeout),lt("ConnectTimeout: %d, ResponseTimeout: %d",Wt,Bt);function te(){lt("Connect timer ticking, timeout: %d",Wt),pe=setTimeout(function(){pe=null,le===-1&&(le=-2);var Ue="Connect timeout for "+Wt+"ms",Je="ConnectionTimeoutError";Jt.socket||(Je="SocketAssignTimeoutError",Ue+=", working sockets is full"),je=new Error(Ue),je.name=Je,je.requestId=It,lt("ConnectTimeout: Request#%d %s %s: %s, connected: %s",It,_t,je.name,Ue,He),Ie()},Wt)}function ge(){lt("Response timer ticking, timeout: %d",Bt),_e=setTimeout(function(){_e=null;var Ue="Response timeout for "+Bt+"ms",Je="ResponseTimeoutError";je=new Error(Ue),je.name=Je,je.requestId=It,lt("ResponseTimeout: Request#%d %s %s: %s, connected: %s",It,_t,je.name,Ue,He),Ie()},Bt)}var Jt;Kt.mode=Mt.mode?Mt.mode:"";try{Jt=ne.request(Kt,Qt)}catch(Ue){return ue(Ue)}typeof window=="undefined"?te():Jt.on("requestTimeout",function(){le===-1&&(le=-2);var Ue="Connect timeout for "+Wt+"ms",Je="ConnectionTimeoutError";je=new Error(Ue),je.name=Je,je.requestId=It,Ie()});function Ie(){lt("Request#%d %s abort, connected: %s",It,_t,He),Jt.socket||(je.noSocket=!0,ue(je)),Jt.abort()}return Xe&&Jt.on("finish",function(){Xe.requestSent=Date.now()-Xt}),Jt.once("socket",function(Ue){Xe&&(Xe.queuing=Date.now()-Xt);var Je=Ue.readyState;if(Je==="opening"){Ue.once("lookup",function(Ze,nn,fn){lt("Request#%d %s lookup: %s, %s, %s",It,_t,Ze,nn,fn),Xe&&(Xe.dnslookup=Date.now()-Xt),nn&&(se=nn)}),Ue.once("connect",function(){Xe&&(Xe.connected=Date.now()-Xt),Be(),ge(),lt("Request#%d %s new socket connected",It,_t),He=!0,se||(se=Ue.remoteAddress),Ae=Ue.remotePort});return}lt("Request#%d %s reuse socket connected, readyState: %s",It,_t,Je),He=!0,Se=!0,se||(se=Ue.remoteAddress),Ae=Ue.remotePort,Be(),ge()}),Jt.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=He?"ResponseError":"RequestError"),Ue.message+=' (req "error")',lt("Request#%d %s `req error` event emit, %s: %s",It,_t,Ue.name,Ue.message),ue(je||Ue)}),ye&&ye.once("error",function(Ue){Ue.message+=' (writeStream "error")',je=Ue,lt("Request#%d %s `writeStream error` event emit, %s: %s",It,_t,Ue.name,Ue.message),Ie()}),Mt.stream?(Mt.stream.pipe(Jt),Mt.stream.once("error",function(Ue){Ue.message+=' (stream "error")',je=Ue,lt("Request#%d %s `readStream error` event emit, %s: %s",It,_t,Ue.name,Ue.message),Ie()})):Jt.end(we),Jt.requestId=It,Jt}}).call(this)}).call(this,rt("_process"),rt("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},77578:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ft}});const Ft=ie=>ie?typeof ie=="function"?ie():ie:null},14478:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Lt}});var Ft=Rt(96512),ie=Rt(92310),rt=Rt.n(ie),kt=Rt(10228),Ct=Rt(18929),St=Rt(2738),pt=Rt(59301),vt=Rt(92343),yt=Rt(36355),xt=Rt(60324),dt=Rt(92806),ft=Rt(77578),ct=Rt(3113),lt=Rt(67797),E=Rt(9763),z=Rt(31724),ot=Rt(39722),it=Rt(83116);const at=It=>{const{componentCls:Ut,iconCls:Xt,antCls:Gt,zIndexPopup:Yt,colorText:Ht,colorWarning:ne,marginXXS:ae,marginXS:ve,fontSize:Kt,fontWeightStrong:re,colorTextHeading:we}=It;return{[Ut]:{zIndex:Yt,[`&${Gt}-popover`]:{fontSize:Kt},[`${Ut}-message`]:{marginBottom:ve,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Ut}-message-icon ${Xt}`]:{color:ne,fontSize:Kt,lineHeight:1,marginInlineEnd:ve},[`${Ut}-title`]:{fontWeight:re,color:we,"&:only-child":{fontWeight:"normal"}},[`${Ut}-description`]:{marginTop:ae,color:Ht}},[`${Ut}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ve}}}}};var ut=(0,it.Z)("Popconfirm",It=>at(It),It=>{const{zIndexPopupBase:Ut}=It;return{zIndexPopup:Ut+60}},{resetStyle:!1}),wt=function(It,Ut){var Xt={};for(var Gt in It)Object.prototype.hasOwnProperty.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Gt=Object.getOwnPropertySymbols(It);Yt<Gt.length;Yt++)Ut.indexOf(Gt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(It,Gt[Yt])&&(Xt[Gt[Yt]]=It[Gt[Yt]]);return Xt};const Et=It=>{const{prefixCls:Ut,okButtonProps:Xt,cancelButtonProps:Gt,title:Yt,description:Ht,cancelText:ne,okText:ae,okType:ve="primary",icon:Kt=pt.createElement(Ft.Z,null),showCancel:re=!0,close:we,onConfirm:Me,onCancel:ke,onPopupClick:me}=It,{getPrefixCls:fe}=pt.useContext(yt.E_),[pe]=(0,E.Z)("Popconfirm",z.Z.Popconfirm),_e=(0,ft.Z)(Yt),je=(0,ft.Z)(Ht);return pt.createElement("div",{className:`${Ut}-inner-content`,onClick:me},pt.createElement("div",{className:`${Ut}-message`},Kt&&pt.createElement("span",{className:`${Ut}-message-icon`},Kt),pt.createElement("div",{className:`${Ut}-message-text`},_e&&pt.createElement("div",{className:rt()(`${Ut}-title`)},_e),je&&pt.createElement("div",{className:`${Ut}-description`},je))),pt.createElement("div",{className:`${Ut}-buttons`},re&&pt.createElement(ct.ZP,Object.assign({onClick:ke,size:"small"},Gt),ne!=null?ne:pe==null?void 0:pe.cancelText),pt.createElement(dt.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,lt.n)(ve)),Xt),actionFn:Me,close:we,prefixCls:fe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ae!=null?ae:pe==null?void 0:pe.okText)))};var _t=It=>{const{prefixCls:Ut,placement:Xt,className:Gt,style:Yt}=It,Ht=wt(It,["prefixCls","placement","className","style"]),{getPrefixCls:ne}=pt.useContext(yt.E_),ae=ne("popconfirm",Ut),[ve]=ut(ae);return ve(pt.createElement(ot.ZP,{placement:Xt,className:rt()(ae,Gt),style:Yt,content:pt.createElement(Et,Object.assign({prefixCls:ae},Ht))}))},Mt=function(It,Ut){var Xt={};for(var Gt in It)Object.prototype.hasOwnProperty.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Gt=Object.getOwnPropertySymbols(It);Yt<Gt.length;Yt++)Ut.indexOf(Gt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(It,Gt[Yt])&&(Xt[Gt[Yt]]=It[Gt[Yt]]);return Xt};const jt=pt.forwardRef((It,Ut)=>{const{prefixCls:Xt,placement:Gt="top",trigger:Yt="click",okType:Ht="primary",icon:ne=pt.createElement(Ft.Z,null),children:ae,overlayClassName:ve,onOpenChange:Kt,onVisibleChange:re}=It,we=Mt(It,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Me}=pt.useContext(yt.E_),[ke,me]=(0,Ct.Z)(!1,{value:It.open,defaultValue:It.defaultOpen}),fe=(se,Ae)=>{me(se,!0),re==null||re(se),Kt==null||Kt(se,Ae)},pe=se=>{fe(!1,se)},_e=se=>{var Ae;return(Ae=It.onConfirm)===null||Ae===void 0?void 0:Ae.call(void 0,se)},je=se=>{var Ae;fe(!1,se),(Ae=It.onCancel)===null||Ae===void 0||Ae.call(void 0,se)},He=se=>{se.keyCode===kt.Z.ESC&&ke&&fe(!1,se)},Se=se=>{const{disabled:Ae=!1}=It;Ae||fe(se)},xe=Me("popconfirm",Xt),le=rt()(xe,ve),[Ne]=ut(xe);return Ne(pt.createElement(xt.Z,Object.assign({},(0,St.Z)(we,["title"]),{trigger:Yt,placement:Gt,onOpenChange:Se,open:ke,ref:Ut,overlayClassName:le,content:pt.createElement(Et,Object.assign({okType:Ht,icon:ne},It,{prefixCls:xe,close:pe,onConfirm:_e,onCancel:je})),"data-popover-inject":!0}),(0,vt.Tm)(ae,{onKeyDown:se=>{var Ae,Xe;pt.isValidElement(ae)&&((Xe=ae==null?void 0:(Ae=ae.props).onKeyDown)===null||Xe===void 0||Xe.call(Ae,se)),He(se)}})))});jt._InternalPanelDoNotUseOrYouWillBeFired=_t;var Lt=jt},39722:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{t5:function(){return xt}});var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(55477),kt=Rt(59301),Ct=Rt(36355),St=Rt(77578),pt=Rt(17356),vt=function(ft,ct){var lt={};for(var E in ft)Object.prototype.hasOwnProperty.call(ft,E)&&ct.indexOf(E)<0&&(lt[E]=ft[E]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(ft);z<E.length;z++)ct.indexOf(E[z])<0&&Object.prototype.propertyIsEnumerable.call(ft,E[z])&&(lt[E[z]]=ft[E[z]]);return lt};const yt=(ft,ct,lt)=>{if(!(!ct&&!lt))return kt.createElement(kt.Fragment,null,ct&&kt.createElement("div",{className:`${ft}-title`},(0,St.Z)(ct)),kt.createElement("div",{className:`${ft}-inner-content`},(0,St.Z)(lt)))},xt=ft=>{const{hashId:ct,prefixCls:lt,className:E,style:z,placement:ot="top",title:it,content:at,children:ut}=ft;return kt.createElement("div",{className:ie()(ct,lt,`${lt}-pure`,`${lt}-placement-${ot}`,E),style:z},kt.createElement("div",{className:`${lt}-arrow`}),kt.createElement(rt.G,Object.assign({},ft,{className:ct,prefixCls:lt}),ut||yt(lt,it,at)))},dt=ft=>{const{prefixCls:ct}=ft,lt=vt(ft,["prefixCls"]),{getPrefixCls:E}=kt.useContext(Ct.E_),z=E("popover",ct),[ot,it]=(0,pt.Z)(z);return ot(kt.createElement(xt,Object.assign({},lt,{prefixCls:z,hashId:it})))};Ke.ZP=dt},60324:function(tn,Ke,Rt){"use strict";var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(59301),kt=Rt(77578),Ct=Rt(62892),St=Rt(36355),pt=Rt(6848),vt=Rt(39722),yt=Rt(17356),xt=function(ct,lt){var E={};for(var z in ct)Object.prototype.hasOwnProperty.call(ct,z)&&lt.indexOf(z)<0&&(E[z]=ct[z]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,z=Object.getOwnPropertySymbols(ct);ot<z.length;ot++)lt.indexOf(z[ot])<0&&Object.prototype.propertyIsEnumerable.call(ct,z[ot])&&(E[z[ot]]=ct[z[ot]]);return E};const dt=ct=>{let{title:lt,content:E,prefixCls:z}=ct;return rt.createElement(rt.Fragment,null,lt&&rt.createElement("div",{className:`${z}-title`},(0,kt.Z)(lt)),rt.createElement("div",{className:`${z}-inner-content`},(0,kt.Z)(E)))},ft=rt.forwardRef((ct,lt)=>{const{prefixCls:E,title:z,content:ot,overlayClassName:it,placement:at="top",trigger:ut="hover",mouseEnterDelay:wt=.1,mouseLeaveDelay:Et=.1,overlayStyle:At={}}=ct,_t=xt(ct,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Mt}=rt.useContext(St.E_),jt=Mt("popover",E),[Lt,It]=(0,yt.Z)(jt),Ut=Mt(),Xt=ie()(it,It);return Lt(rt.createElement(pt.Z,Object.assign({placement:at,trigger:ut,mouseEnterDelay:wt,mouseLeaveDelay:Et,overlayStyle:At},_t,{prefixCls:jt,overlayClassName:Xt,ref:lt,overlay:z||ot?rt.createElement(dt,{prefixCls:jt,title:z,content:ot}):null,transitionName:(0,Ct.m)(Ut,"zoom-big",_t.transitionName),"data-popover-inject":!0})))});ft._InternalPanelDoNotUseOrYouWillBeFired=vt.ZP,Ke.Z=ft},17356:function(tn,Ke,Rt){"use strict";var Ft=Rt(17313),ie=Rt(29878),rt=Rt(19447),kt=Rt(33166),Ct=Rt(83116),St=Rt(37613);const pt=xt=>{const{componentCls:dt,popoverColor:ft,minWidth:ct,fontWeightStrong:lt,popoverPadding:E,boxShadowSecondary:z,colorTextHeading:ot,borderRadiusLG:it,zIndexPopup:at,marginXS:ut,colorBgElevated:wt,popoverBg:Et}=xt;return[{[dt]:Object.assign(Object.assign({},(0,Ft.Wf)(xt)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:at,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":wt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${dt}-content`]:{position:"relative"},[`${dt}-inner`]:{backgroundColor:Et,backgroundClip:"padding-box",borderRadius:it,boxShadow:z,padding:E},[`${dt}-title`]:{minWidth:ct,marginBottom:ut,color:ot,fontWeight:lt},[`${dt}-inner-content`]:{color:ft}})},(0,rt.ZP)(xt,{colorBg:"var(--antd-arrow-background-color)"}),{[`${dt}-pure`]:{position:"relative",maxWidth:"none",margin:xt.sizePopupArrow,display:"inline-block",[`${dt}-content`]:{display:"inline-block"}}}]},vt=xt=>{const{componentCls:dt}=xt;return{[dt]:kt.i.map(ft=>{const ct=xt[`${ft}6`];return{[`&${dt}-${ft}`]:{"--antd-arrow-background-color":ct,[`${dt}-inner`]:{backgroundColor:ct},[`${dt}-arrow`]:{background:"transparent"}}}})}},yt=xt=>{const{componentCls:dt,lineWidth:ft,lineType:ct,colorSplit:lt,paddingSM:E,controlHeight:z,fontSize:ot,lineHeight:it,padding:at}=xt,ut=z-Math.round(ot*it),wt=ut/2,Et=ut/2-ft,At=at;return{[dt]:{[`${dt}-inner`]:{padding:0},[`${dt}-title`]:{margin:0,padding:`${wt}px ${At}px ${Et}px`,borderBottom:`${ft}px ${ct} ${lt}`},[`${dt}-inner-content`]:{padding:`${E}px ${At}px`}}}};Ke.Z=(0,Ct.Z)("Popover",xt=>{const{colorBgElevated:dt,colorText:ft,wireframe:ct}=xt,lt=(0,St.TS)(xt,{popoverPadding:12,popoverBg:dt,popoverColor:ft});return[pt(lt),vt(lt),ct&&yt(lt),(0,ie._y)(lt,"zoom-big")]},xt=>({width:177,minWidth:177,zIndexPopup:xt.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},61621:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Xe}});var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(59301),kt=Rt(36355),Ct=Rt(2738),pt=Be=>{const{prefixCls:Te,className:ue,style:$t,size:he,shape:ye}=Be,Qt=ie()({[`${Te}-lg`]:he==="large",[`${Te}-sm`]:he==="small"}),Wt=ie()({[`${Te}-circle`]:ye==="circle",[`${Te}-square`]:ye==="square",[`${Te}-round`]:ye==="round"}),Bt=rt.useMemo(()=>typeof he=="number"?{width:he,height:he,lineHeight:`${he}px`}:{},[he]);return rt.createElement("span",{className:ie()(Te,Qt,Wt,ue),style:Object.assign(Object.assign({},Bt),$t)})},vt=Rt(93083),yt=Rt(83116),xt=Rt(37613);const dt=new vt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ft=Be=>({height:Be,lineHeight:`${Be}px`}),ct=Be=>Object.assign({width:Be},ft(Be)),lt=Be=>({background:Be.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:dt,animationDuration:Be.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=Be=>Object.assign({width:Be*5,minWidth:Be*5},ft(Be)),z=Be=>{const{skeletonAvatarCls:Te,gradientFromColor:ue,controlHeight:$t,controlHeightLG:he,controlHeightSM:ye}=Be;return{[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ue},ct($t)),[`${Te}${Te}-circle`]:{borderRadius:"50%"},[`${Te}${Te}-lg`]:Object.assign({},ct(he)),[`${Te}${Te}-sm`]:Object.assign({},ct(ye))}},ot=Be=>{const{controlHeight:Te,borderRadiusSM:ue,skeletonInputCls:$t,controlHeightLG:he,controlHeightSM:ye,gradientFromColor:Qt}=Be;return{[`${$t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qt,borderRadius:ue},E(Te)),[`${$t}-lg`]:Object.assign({},E(he)),[`${$t}-sm`]:Object.assign({},E(ye))}},it=Be=>Object.assign({width:Be},ft(Be)),at=Be=>{const{skeletonImageCls:Te,imageSizeBase:ue,gradientFromColor:$t,borderRadiusSM:he}=Be;return{[`${Te}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:$t,borderRadius:he},it(ue*2)),{[`${Te}-path`]:{fill:"#bfbfbf"},[`${Te}-svg`]:Object.assign(Object.assign({},it(ue)),{maxWidth:ue*4,maxHeight:ue*4}),[`${Te}-svg${Te}-svg-circle`]:{borderRadius:"50%"}}),[`${Te}${Te}-circle`]:{borderRadius:"50%"}}},ut=(Be,Te,ue)=>{const{skeletonButtonCls:$t}=Be;return{[`${ue}${$t}-circle`]:{width:Te,minWidth:Te,borderRadius:"50%"},[`${ue}${$t}-round`]:{borderRadius:Te}}},wt=Be=>Object.assign({width:Be*2,minWidth:Be*2},ft(Be)),Et=Be=>{const{borderRadiusSM:Te,skeletonButtonCls:ue,controlHeight:$t,controlHeightLG:he,controlHeightSM:ye,gradientFromColor:Qt}=Be;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qt,borderRadius:Te,width:$t*2,minWidth:$t*2},wt($t))},ut(Be,$t,ue)),{[`${ue}-lg`]:Object.assign({},wt(he))}),ut(Be,he,`${ue}-lg`)),{[`${ue}-sm`]:Object.assign({},wt(ye))}),ut(Be,ye,`${ue}-sm`))},At=Be=>{const{componentCls:Te,skeletonAvatarCls:ue,skeletonTitleCls:$t,skeletonParagraphCls:he,skeletonButtonCls:ye,skeletonInputCls:Qt,skeletonImageCls:Wt,controlHeight:Bt,controlHeightLG:te,controlHeightSM:ge,gradientFromColor:Jt,padding:Ie,marginSM:Ue,borderRadius:Je,titleHeight:Ze,blockRadius:nn,paragraphLiHeight:fn,controlHeightXS:An,paragraphMarginTop:En}=Be;return{[`${Te}`]:{display:"table",width:"100%",[`${Te}-header`]:{display:"table-cell",paddingInlineEnd:Ie,verticalAlign:"top",[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Jt},ct(Bt)),[`${ue}-circle`]:{borderRadius:"50%"},[`${ue}-lg`]:Object.assign({},ct(te)),[`${ue}-sm`]:Object.assign({},ct(ge))},[`${Te}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${$t}`]:{width:"100%",height:Ze,background:Jt,borderRadius:nn,[`+ ${he}`]:{marginBlockStart:ge}},[`${he}`]:{padding:0,"> li":{width:"100%",height:fn,listStyle:"none",background:Jt,borderRadius:nn,"+ li":{marginBlockStart:An}}},[`${he}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Te}-content`]:{[`${$t}, ${he} > li`]:{borderRadius:Je}}},[`${Te}-with-avatar ${Te}-content`]:{[`${$t}`]:{marginBlockStart:Ue,[`+ ${he}`]:{marginBlockStart:En}}},[`${Te}${Te}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Et(Be)),z(Be)),ot(Be)),at(Be)),[`${Te}${Te}-block`]:{width:"100%",[`${ye}`]:{width:"100%"},[`${Qt}`]:{width:"100%"}},[`${Te}${Te}-active`]:{[`
${$t},
${he} > li,
${ue},
${ye},
${Qt},
${Wt}
`]:Object.assign({},lt(Be))}}};var _t=(0,yt.Z)("Skeleton",Be=>{const{componentCls:Te}=Be,ue=(0,xt.TS)(Be,{skeletonAvatarCls:`${Te}-avatar`,skeletonTitleCls:`${Te}-title`,skeletonParagraphCls:`${Te}-paragraph`,skeletonButtonCls:`${Te}-button`,skeletonInputCls:`${Te}-input`,skeletonImageCls:`${Te}-image`,imageSizeBase:Be.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Be.gradientFromColor} 25%, ${Be.gradientToColor} 37%, ${Be.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[At(ue)]},Be=>{const{colorFillContent:Te,colorFill:ue}=Be,$t=Te,he=ue;return{color:$t,colorGradientEnd:he,gradientFromColor:$t,gradientToColor:he,titleHeight:Be.controlHeight/2,blockRadius:Be.borderRadiusSM,paragraphMarginTop:Be.marginLG+Be.marginXXS,paragraphLiHeight:Be.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),jt=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,shape:ye="circle",size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls","className"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he},ue,$t,ge);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-avatar`,shape:ye,size:Qt},Jt))))},It=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,block:ye=!1,size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he,[`${Bt}-block`]:ye},ue,$t,ge);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-button`,size:Qt},Jt))))};const Ut="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Gt=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,style:he,active:ye}=Be,{getPrefixCls:Qt}=rt.useContext(kt.E_),Wt=Qt("skeleton",Te),[Bt,te]=_t(Wt),ge=ie()(Wt,`${Wt}-element`,{[`${Wt}-active`]:ye},ue,$t,te);return Bt(rt.createElement("div",{className:ge},rt.createElement("div",{className:ie()(`${Wt}-image`,ue),style:he},rt.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Wt}-image-svg`},rt.createElement("path",{d:Ut,className:`${Wt}-image-path`})))))},Ht=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,block:ye,size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he,[`${Bt}-block`]:ye},ue,$t,ge);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-input`,size:Qt},Jt))))},ne=Rt(72308),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ve=ae,Kt=Rt(7657),re=function(Te,ue){return rt.createElement(Kt.Z,(0,ne.Z)({},Te,{ref:ue,icon:ve}))},we=rt.forwardRef(re),Me=we,me=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,style:he,active:ye,children:Qt}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:ye},ge,ue,$t),Ie=Qt!=null?Qt:rt.createElement(Me,null);return te(rt.createElement("div",{className:Jt},rt.createElement("div",{className:ie()(`${Bt}-image`,ue),style:he},Ie)))},fe=Rt(80702),_e=Be=>{const Te=Wt=>{const{width:Bt,rows:te=2}=Be;if(Array.isArray(Bt))return Bt[Wt];if(te-1===Wt)return Bt},{prefixCls:ue,className:$t,style:he,rows:ye}=Be,Qt=(0,fe.Z)(Array(ye)).map((Wt,Bt)=>rt.createElement("li",{key:Bt,style:{width:Te(Bt)}}));return rt.createElement("ul",{className:ie()(ue,$t),style:he},Qt)},He=Be=>{let{prefixCls:Te,className:ue,width:$t,style:he}=Be;return rt.createElement("h3",{className:ie()(Te,ue),style:Object.assign({width:$t},he)})};function Se(Be){return Be&&typeof Be=="object"?Be:{}}function xe(Be,Te){return Be&&!Te?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function le(Be,Te){return!Be&&Te?{width:"38%"}:Be&&Te?{width:"50%"}:{}}function Ne(Be,Te){const ue={};return(!Be||!Te)&&(ue.width="61%"),!Be&&Te?ue.rows=3:ue.rows=2,ue}const se=Be=>{const{prefixCls:Te,loading:ue,className:$t,rootClassName:he,style:ye,children:Qt,avatar:Wt=!1,title:Bt=!0,paragraph:te=!0,active:ge,round:Jt}=Be,{getPrefixCls:Ie,direction:Ue,skeleton:Je}=rt.useContext(kt.E_),Ze=Ie("skeleton",Te),[nn,fn]=_t(Ze);if(ue||!("loading"in Be)){const An=!!Wt,En=!!Bt,Dn=!!te;let ii;if(An){const Oi=Object.assign(Object.assign({prefixCls:`${Ze}-avatar`},xe(En,Dn)),Se(Wt));ii=rt.createElement("div",{className:`${Ze}-header`},rt.createElement(pt,Object.assign({},Oi)))}let mi;if(En||Dn){let Oi;if(En){const pi=Object.assign(Object.assign({prefixCls:`${Ze}-title`},le(An,Dn)),Se(Bt));Oi=rt.createElement(He,Object.assign({},pi))}let ki;if(Dn){const pi=Object.assign(Object.assign({prefixCls:`${Ze}-paragraph`},Ne(An,En)),Se(te));ki=rt.createElement(_e,Object.assign({},pi))}mi=rt.createElement("div",{className:`${Ze}-content`},Oi,ki)}const Ti=ie()(Ze,{[`${Ze}-with-avatar`]:An,[`${Ze}-active`]:ge,[`${Ze}-rtl`]:Ue==="rtl",[`${Ze}-round`]:Jt},Je==null?void 0:Je.className,$t,he,fn);return nn(rt.createElement("div",{className:Ti,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),ye)},ii,mi))}return typeof Qt!="undefined"?Qt:null};se.Button=It,se.Avatar=jt,se.Input=Ht,se.Image=Gt,se.Node=me;var Ae=se,Xe=Ae},31797:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{default:function(){return _t}});var Ft=Rt(59301),ie=Rt(56762),rt=Rt(92343),kt=Rt(92310),Ct=Rt.n(kt),St=Rt(36355),pt=Rt(61621),yt=Mt=>{const{value:jt,formatter:Lt,precision:It,decimalSeparator:Ut,groupSeparator:Xt="",prefixCls:Gt}=Mt;let Yt;if(typeof Lt=="function")Yt=Lt(jt);else{const Ht=String(jt),ne=Ht.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ne||Ht==="-")Yt=Ht;else{const ae=ne[1];let ve=ne[2]||"0",Kt=ne[4]||"";ve=ve.replace(/\B(?=(\d{3})+(?!\d))/g,Xt),typeof It=="number"&&(Kt=Kt.padEnd(It,"0").slice(0,It>0?It:0)),Kt&&(Kt=`${Ut}${Kt}`),Yt=[Ft.createElement("span",{key:"int",className:`${Gt}-content-value-int`},ae,ve),Kt&&Ft.createElement("span",{key:"decimal",className:`${Gt}-content-value-decimal`},Kt)]}}return Ft.createElement("span",{className:`${Gt}-content-value`},Yt)},xt=Rt(17313),dt=Rt(83116),ft=Rt(37613);const ct=Mt=>{const{componentCls:jt,marginXXS:Lt,padding:It,colorTextDescription:Ut,titleFontSize:Xt,colorTextHeading:Gt,contentFontSize:Yt,fontFamily:Ht}=Mt;return{[`${jt}`]:Object.assign(Object.assign({},(0,xt.Wf)(Mt)),{[`${jt}-title`]:{marginBottom:Lt,color:Ut,fontSize:Xt},[`${jt}-skeleton`]:{paddingTop:It},[`${jt}-content`]:{color:Gt,fontSize:Yt,fontFamily:Ht,[`${jt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${jt}-content-prefix, ${jt}-content-suffix`]:{display:"inline-block"},[`${jt}-content-prefix`]:{marginInlineEnd:Lt},[`${jt}-content-suffix`]:{marginInlineStart:Lt}}})}};var lt=(0,dt.Z)("Statistic",Mt=>{const jt=(0,ft.TS)(Mt,{});return[ct(jt)]},Mt=>{const{fontSizeHeading3:jt,fontSize:Lt}=Mt;return{titleFontSize:Lt,contentFontSize:jt}}),z=Mt=>{const{prefixCls:jt,className:Lt,rootClassName:It,style:Ut,valueStyle:Xt,value:Gt=0,title:Yt,valueRender:Ht,prefix:ne,suffix:ae,loading:ve=!1,onMouseEnter:Kt,onMouseLeave:re,decimalSeparator:we=".",groupSeparator:Me=","}=Mt,{getPrefixCls:ke,direction:me,statistic:fe}=Ft.useContext(St.E_),pe=ke("statistic",jt),[_e,je]=lt(pe),He=Ft.createElement(yt,Object.assign({decimalSeparator:we,groupSeparator:Me,prefixCls:pe},Mt,{value:Gt})),Se=Ct()(pe,{[`${pe}-rtl`]:me==="rtl"},fe==null?void 0:fe.className,Lt,It,je);return _e(Ft.createElement("div",{className:Se,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),Ut),onMouseEnter:Kt,onMouseLeave:re},Yt&&Ft.createElement("div",{className:`${pe}-title`},Yt),Ft.createElement(pt.Z,{paragraph:!1,loading:ve,className:`${pe}-skeleton`},Ft.createElement("div",{style:Xt,className:`${pe}-content`},ne&&Ft.createElement("span",{className:`${pe}-content-prefix`},ne),Ht?Ht(He):He,ae&&Ft.createElement("span",{className:`${pe}-content-suffix`},ae)))))};const ot=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function it(Mt,jt){let Lt=Mt;const It=/\[[^\]]*]/g,Ut=(jt.match(It)||[]).map(Ht=>Ht.slice(1,-1)),Xt=jt.replace(It,"[]"),Gt=ot.reduce((Ht,ne)=>{let[ae,ve]=ne;if(Ht.includes(ae)){const Kt=Math.floor(Lt/ve);return Lt-=Kt*ve,Ht.replace(new RegExp(`${ae}+`,"g"),re=>{const we=re.length;return Kt.toString().padStart(we,"0")})}return Ht},Xt);let Yt=0;return Gt.replace(It,()=>{const Ht=Ut[Yt];return Yt+=1,Ht})}function at(Mt,jt){const{format:Lt=""}=jt,It=new Date(Mt).getTime(),Ut=Date.now(),Xt=Math.max(It-Ut,0);return it(Xt,Lt)}const ut=1e3/30;function wt(Mt){return new Date(Mt).getTime()}const Et=Mt=>{const{value:jt,format:Lt="HH:mm:ss",onChange:It,onFinish:Ut}=Mt,Xt=(0,ie.Z)(),Gt=Ft.useRef(null),Yt=()=>{Ut==null||Ut(),Gt.current&&(clearInterval(Gt.current),Gt.current=null)},Ht=()=>{const ve=wt(jt);ve>=Date.now()&&(Gt.current=setInterval(()=>{Xt(),It==null||It(ve-Date.now()),ve<Date.now()&&Yt()},ut))};Ft.useEffect(()=>(Ht(),()=>{Gt.current&&(clearInterval(Gt.current),Gt.current=null)}),[jt]);const ne=(ve,Kt)=>at(ve,Object.assign(Object.assign({},Kt),{format:Lt})),ae=ve=>(0,rt.Tm)(ve,{title:void 0});return Ft.createElement(z,Object.assign({},Mt,{valueRender:ae,formatter:ne}))};var At=Ft.memo(Et);z.Countdown=At;var _t=z},78673:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Xt}});var Ft=Rt(58617),ie=Rt(92310),rt=Rt.n(ie),kt=Rt(72308),Ct=Rt(49618),St=Rt(52487),pt=Rt(74416),vt=Rt(59301),yt=Rt(18929),xt=Rt(10228),dt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ft=vt.forwardRef(function(Gt,Yt){var Ht,ne=Gt.prefixCls,ae=ne===void 0?"rc-switch":ne,ve=Gt.className,Kt=Gt.checked,re=Gt.defaultChecked,we=Gt.disabled,Me=Gt.loadingIcon,ke=Gt.checkedChildren,me=Gt.unCheckedChildren,fe=Gt.onClick,pe=Gt.onChange,_e=Gt.onKeyDown,je=(0,pt.Z)(Gt,dt),He=(0,yt.Z)(!1,{value:Kt,defaultValue:re}),Se=(0,St.Z)(He,2),xe=Se[0],le=Se[1];function Ne(Be,Te){var ue=xe;return we||(ue=Be,le(ue),pe==null||pe(ue,Te)),ue}function se(Be){Be.which===xt.Z.LEFT?Ne(!1,Be):Be.which===xt.Z.RIGHT&&Ne(!0,Be),_e==null||_e(Be)}function Ae(Be){var Te=Ne(!xe,Be);fe==null||fe(Te,Be)}var Xe=rt()(ae,ve,(Ht={},(0,Ct.Z)(Ht,"".concat(ae,"-checked"),xe),(0,Ct.Z)(Ht,"".concat(ae,"-disabled"),we),Ht));return vt.createElement("button",(0,kt.Z)({},je,{type:"button",role:"switch","aria-checked":xe,disabled:we,className:Xe,ref:Yt,onKeyDown:se,onClick:Ae}),Me,vt.createElement("span",{className:"".concat(ae,"-inner")},vt.createElement("span",{className:"".concat(ae,"-inner-checked")},ke),vt.createElement("span",{className:"".concat(ae,"-inner-unchecked")},me)))});ft.displayName="Switch";var ct=ft,lt=Rt(14088),E=Rt(36355),z=Rt(1684),ot=Rt(19716),it=Rt(64993),at=Rt(17313),ut=Rt(83116),wt=Rt(37613);const Et=Gt=>{const{componentCls:Yt,trackHeightSM:Ht,trackPadding:ne,trackMinWidthSM:ae,innerMinMarginSM:ve,innerMaxMarginSM:Kt,handleSizeSM:re}=Gt,we=`${Yt}-inner`;return{[Yt]:{[`&${Yt}-small`]:{minWidth:ae,height:Ht,lineHeight:`${Ht}px`,[`${Yt}-inner`]:{paddingInlineStart:Kt,paddingInlineEnd:ve,[`${we}-checked`]:{marginInlineStart:`calc(-100% + ${re+ne*2}px - ${Kt*2}px)`,marginInlineEnd:`calc(100% - ${re+ne*2}px + ${Kt*2}px)`},[`${we}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`${Yt}-handle`]:{width:re,height:re},[`${Yt}-loading-icon`]:{top:(re-Gt.switchLoadingIconSize)/2,fontSize:Gt.switchLoadingIconSize},[`&${Yt}-checked`]:{[`${Yt}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:Kt,[`${we}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${we}-unchecked`]:{marginInlineStart:`calc(100% - ${re+ne*2}px + ${Kt*2}px)`,marginInlineEnd:`calc(-100% + ${re+ne*2}px - ${Kt*2}px)`}},[`${Yt}-handle`]:{insetInlineStart:`calc(100% - ${re+ne}px)`}},[`&:not(${Yt}-disabled):active`]:{[`&:not(${Yt}-checked) ${we}`]:{[`${we}-unchecked`]:{marginInlineStart:Gt.marginXXS/2,marginInlineEnd:-Gt.marginXXS/2}},[`&${Yt}-checked ${we}`]:{[`${we}-checked`]:{marginInlineStart:-Gt.marginXXS/2,marginInlineEnd:Gt.marginXXS/2}}}}}}},At=Gt=>{const{componentCls:Yt,handleSize:Ht}=Gt;return{[Yt]:{[`${Yt}-loading-icon${Gt.iconCls}`]:{position:"relative",top:(Ht-Gt.fontSize)/2,color:Gt.switchLoadingIconColor,verticalAlign:"top"},[`&${Yt}-checked ${Yt}-loading-icon`]:{color:Gt.switchColor}}}},_t=Gt=>{const{componentCls:Yt,motion:Ht,trackPadding:ne,handleBg:ae,handleShadow:ve,handleSize:Kt}=Gt,re=`${Yt}-handle`;return{[Yt]:{[re]:{position:"absolute",top:ne,insetInlineStart:ne,width:Kt,height:Kt,transition:`all ${Gt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ae,borderRadius:Kt/2,boxShadow:ve,transition:`all ${Gt.switchDuration} ease-in-out`,content:'""'}},[`&${Yt}-checked ${re}`]:{insetInlineStart:`calc(100% - ${Kt+ne}px)`},[`&:not(${Yt}-disabled):active`]:Ht?{[`${re}::before`]:{insetInlineEnd:Gt.switchHandleActiveInset,insetInlineStart:0},[`&${Yt}-checked ${re}::before`]:{insetInlineEnd:0,insetInlineStart:Gt.switchHandleActiveInset}}:{}}}},Mt=Gt=>{const{componentCls:Yt,trackHeight:Ht,trackPadding:ne,innerMinMargin:ae,innerMaxMargin:ve,handleSize:Kt}=Gt,re=`${Yt}-inner`;return{[Yt]:{[re]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ve,paddingInlineEnd:ae,transition:`padding-inline-start ${Gt.switchDuration} ease-in-out, padding-inline-end ${Gt.switchDuration} ease-in-out`,[`${re}-checked, ${re}-unchecked`]:{display:"block",color:Gt.colorTextLightSolid,fontSize:Gt.fontSizeSM,transition:`margin-inline-start ${Gt.switchDuration} ease-in-out, margin-inline-end ${Gt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${re}-checked`]:{marginInlineStart:`calc(-100% + ${Kt+ne*2}px - ${ve*2}px)`,marginInlineEnd:`calc(100% - ${Kt+ne*2}px + ${ve*2}px)`},[`${re}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`&${Yt}-checked ${re}`]:{paddingInlineStart:ae,paddingInlineEnd:ve,[`${re}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${re}-unchecked`]:{marginInlineStart:`calc(100% - ${Kt+ne*2}px + ${ve*2}px)`,marginInlineEnd:`calc(-100% + ${Kt+ne*2}px - ${ve*2}px)`}},[`&:not(${Yt}-disabled):active`]:{[`&:not(${Yt}-checked) ${re}`]:{[`${re}-unchecked`]:{marginInlineStart:ne*2,marginInlineEnd:-ne*2}},[`&${Yt}-checked ${re}`]:{[`${re}-checked`]:{marginInlineStart:-ne*2,marginInlineEnd:ne*2}}}}}},jt=Gt=>{const{componentCls:Yt,trackHeight:Ht,trackMinWidth:ne}=Gt;return{[Yt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(Gt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ne,height:Ht,lineHeight:`${Ht}px`,verticalAlign:"middle",background:Gt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Gt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Yt}-disabled)`]:{background:Gt.colorTextTertiary}}),(0,at.Qy)(Gt)),{[`&${Yt}-checked`]:{background:Gt.switchColor,[`&:hover:not(${Yt}-disabled)`]:{background:Gt.colorPrimaryHover}},[`&${Yt}-loading, &${Yt}-disabled`]:{cursor:"not-allowed",opacity:Gt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Yt}-rtl`]:{direction:"rtl"}})}};var Lt=(0,ut.Z)("Switch",Gt=>{const Yt=(0,wt.TS)(Gt,{switchDuration:Gt.motionDurationMid,switchColor:Gt.colorPrimary,switchDisabledOpacity:Gt.opacityLoading,switchLoadingIconSize:Gt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Gt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[jt(Yt),Mt(Yt),_t(Yt),At(Yt),Et(Yt)]},Gt=>{const{fontSize:Yt,lineHeight:Ht,controlHeight:ne,colorWhite:ae}=Gt,ve=Yt*Ht,Kt=ne/2,re=2,we=ve-re*2,Me=Kt-re*2;return{trackHeight:ve,trackHeightSM:Kt,trackMinWidth:we*2+re*4,trackMinWidthSM:Me*2+re*2,trackPadding:re,handleBg:ae,handleSize:we,handleSizeSM:Me,handleShadow:`0 2px 4px 0 ${new it.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:we/2,innerMaxMargin:we+re+re*2,innerMinMarginSM:Me/2,innerMaxMarginSM:Me+re+re*2}}),It=function(Gt,Yt){var Ht={};for(var ne in Gt)Object.prototype.hasOwnProperty.call(Gt,ne)&&Yt.indexOf(ne)<0&&(Ht[ne]=Gt[ne]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ne=Object.getOwnPropertySymbols(Gt);ae<ne.length;ae++)Yt.indexOf(ne[ae])<0&&Object.prototype.propertyIsEnumerable.call(Gt,ne[ae])&&(Ht[ne[ae]]=Gt[ne[ae]]);return Ht};const Ut=vt.forwardRef((Gt,Yt)=>{const{prefixCls:Ht,size:ne,disabled:ae,loading:ve,className:Kt,rootClassName:re,style:we}=Gt,Me=It(Gt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ke,direction:me,switch:fe}=vt.useContext(E.E_),pe=vt.useContext(z.Z),_e=(ae!=null?ae:pe)||ve,je=ke("switch",Ht),He=vt.createElement("div",{className:`${je}-handle`},ve&&vt.createElement(Ft.Z,{className:`${je}-loading-icon`})),[Se,xe]=Lt(je),le=(0,ot.Z)(ne),Ne=rt()(fe==null?void 0:fe.className,{[`${je}-small`]:le==="small",[`${je}-loading`]:ve,[`${je}-rtl`]:me==="rtl"},Kt,re,xe),se=Object.assign(Object.assign({},fe==null?void 0:fe.style),we);return Se(vt.createElement(lt.Z,{component:"Switch"},vt.createElement(ct,Object.assign({},Me,{prefixCls:je,className:Ne,style:se,disabled:_e,ref:Yt,loadingIcon:He}))))});Ut.__ANT_SWITCH=!0;var Xt=Ut},65615:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Wt}});var Ft=Rt(59301),ie=Rt(77321),rt=Rt(72308),kt=Rt(62853),Ct=Rt(52487),St=Rt(74416),pt=Rt(43403),vt=Rt(35593),yt=Rt(92310),xt=Rt.n(yt),dt=Rt(34280),ft=Rt(18929),ct=Rt(6089);function lt(Bt){var te=window.innerWidth||document.documentElement.clientWidth,ge=window.innerHeight||document.documentElement.clientHeight,Jt=Bt.getBoundingClientRect(),Ie=Jt.top,Ue=Jt.right,Je=Jt.bottom,Ze=Jt.left;return Ie>=0&&Ze>=0&&Ue<=te&&Je<=ge}function E(Bt,te,ge){var Jt;return(Jt=ge!=null?ge:te)!==null&&Jt!==void 0?Jt:Bt===null?"center":"bottom"}function z(Bt,te,ge,Jt){var Ie=(0,Ft.useState)(void 0),Ue=(0,Ct.Z)(Ie,2),Je=Ue[0],Ze=Ue[1];(0,dt.Z)(function(){var Ti=typeof Bt=="function"?Bt():Bt;Ze(Ti||null)});var nn=(0,Ft.useState)(null),fn=(0,Ct.Z)(nn,2),An=fn[0],En=fn[1],Dn=(0,ct.Z)(function(){if(Je){!lt(Je)&&te&&Je.scrollIntoView(Jt);var Ti=Je.getBoundingClientRect(),Oi=Ti.left,ki=Ti.top,pi=Ti.width,Bi=Ti.height,Or={left:Oi,top:ki,width:pi,height:Bi,radius:0};En(function(yr){return JSON.stringify(yr)!==JSON.stringify(Or)?Or:yr})}else En(null)}),ii=function(Oi){var ki;return(ki=Array.isArray(ge==null?void 0:ge.offset)?ge==null?void 0:ge.offset[Oi]:ge==null?void 0:ge.offset)!==null&&ki!==void 0?ki:6};(0,dt.Z)(function(){return Dn(),window.addEventListener("resize",Dn),function(){window.removeEventListener("resize",Dn)}},[Je,te,Dn]);var mi=(0,Ft.useMemo)(function(){if(!An)return An;var Ti=ii(0),Oi=ii(1),ki=(ge==null?void 0:ge.radius)||2;return{left:An.left-Ti,top:An.top-Oi,width:An.width+Ti*2,height:An.height+Oi*2,radius:ki}},[An,ge]);return[mi,Je]}var ot=Rt(80402),it={fill:"transparent",pointerEvents:"auto"},at=function(te){var ge=te.prefixCls,Jt=te.rootClassName,Ie=te.pos,Ue=te.showMask,Je=te.style,Ze=Je===void 0?{}:Je,nn=te.fill,fn=nn===void 0?"rgba(0,0,0,0.5)":nn,An=te.open,En=te.animated,Dn=te.zIndex,ii=(0,ot.Z)(),mi="".concat(ge,"-mask-").concat(ii),Ti=(0,kt.Z)(En)==="object"?En==null?void 0:En.placeholder:En;return Ft.createElement(pt.Z,{open:An,autoLock:!0},Ft.createElement("div",{className:xt()("".concat(ge,"-mask"),Jt),style:(0,ie.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:Dn,pointerEvents:"none"},Ze)},Ue?Ft.createElement("svg",{style:{width:"100%",height:"100%"}},Ft.createElement("defs",null,Ft.createElement("mask",{id:mi},Ft.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Ie&&Ft.createElement("rect",{x:Ie.left,y:Ie.top,rx:Ie.radius,width:Ie.width,height:Ie.height,fill:"black",className:Ti?"".concat(ge,"-placeholder-animated"):""}))),Ft.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:fn,mask:"url(#".concat(mi,")")}),Ie&&Ft.createElement(Ft.Fragment,null,Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:"0",width:"100%",height:Ie.top})),Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:"0",width:Ie.left,height:"100%"})),Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:Ie.top+Ie.height,width:"100%",height:"calc(100vh - ".concat(Ie.top+Ie.height,"px)")})),Ft.createElement("rect",(0,rt.Z)({},it,{x:Ie.left+Ie.width,y:"0",width:"calc(100vw - ".concat(Ie.left+Ie.width,"px)"),height:"100%"})))):null))},ut=at,wt={adjustX:1,adjustY:1},Et=[0,0],At={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function _t(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,te={};return Object.keys(At).forEach(function(ge){te[ge]=(0,ie.Z)((0,ie.Z)({},At[ge]),{},{autoArrow:Bt,targetOffset:Et})}),te}var Mt=_t(),jt=Rt(80702);function Lt(Bt){var te=Bt.prefixCls,ge=Bt.current,Jt=Bt.total,Ie=Bt.title,Ue=Bt.description,Je=Bt.onClose,Ze=Bt.onPrev,nn=Bt.onNext,fn=Bt.onFinish,An=Bt.className,En=Bt.closeIcon,Dn=En!==!1&&En!==null,ii=En!==void 0&&En!==!0?En:Ft.createElement("span",{className:"".concat(te,"-close-x")},"\xD7");return Ft.createElement("div",{className:xt()("".concat(te,"-content"),An)},Ft.createElement("div",{className:"".concat(te,"-inner")},Dn&&Ft.createElement("button",{type:"button",onClick:Je,"aria-label":"Close",className:"".concat(te,"-close")},ii),Ft.createElement("div",{className:"".concat(te,"-header")},Ft.createElement("div",{className:"".concat(te,"-title")},Ie)),Ft.createElement("div",{className:"".concat(te,"-description")},Ue),Ft.createElement("div",{className:"".concat(te,"-footer")},Ft.createElement("div",{className:"".concat(te,"-sliders")},Jt>1?(0,jt.Z)(Array.from({length:Jt}).keys()).map(function(mi,Ti){return Ft.createElement("span",{key:mi,className:Ti===ge?"active":""})}):null),Ft.createElement("div",{className:"".concat(te,"-buttons")},ge!==0?Ft.createElement("button",{className:"".concat(te,"-prev-btn"),onClick:Ze},"Prev"):null,ge===Jt-1?Ft.createElement("button",{className:"".concat(te,"-finish-btn"),onClick:fn},"Finish"):Ft.createElement("button",{className:"".concat(te,"-next-btn"),onClick:nn},"Next")))))}var It=function(te){var ge=te.current,Jt=te.renderPanel;return Ft.createElement(Ft.Fragment,null,typeof Jt=="function"?Jt(te,ge):Ft.createElement(Lt,te))},Ut=It,Xt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Gt={left:"50%",top:"50%",width:1,height:1},Yt=function(te){var ge=te.prefixCls,Jt=ge===void 0?"rc-tour":ge,Ie=te.steps,Ue=Ie===void 0?[]:Ie,Je=te.defaultCurrent,Ze=te.current,nn=te.onChange,fn=te.onClose,An=te.onFinish,En=te.open,Dn=te.mask,ii=Dn===void 0?!0:Dn,mi=te.arrow,Ti=mi===void 0?!0:mi,Oi=te.rootClassName,ki=te.placement,pi=te.renderPanel,Bi=te.gap,Or=te.animated,yr=te.scrollIntoViewOptions,lr=yr===void 0?!0:yr,Si=te.zIndex,ee=Si===void 0?1001:Si,Ds=te.closeIcon,mr=(0,St.Z)(te,Xt),ms=Ft.useRef(),Xs=(0,ft.Z)(0,{value:Ze,defaultValue:Je}),Do=(0,Ct.Z)(Xs,2),Oo=Do[0],Gr=Do[1],sa=(0,ft.Z)(void 0,{value:En,postState:function(sn){return Oo<0||Oo>=Ue.length?!1:sn!=null?sn:!0}}),dn=(0,Ct.Z)(sa,2),en=dn[0],qe=dn[1],zn=Ft.useRef(en);(0,dt.Z)(function(){en&&!zn.current&&Gr(0),zn.current=en},[en]);var Jn=Ue[Oo]||{},hi=Jn.target,bn=Jn.placement,Bn=Jn.style,Xi=Jn.arrow,dr=Jn.className,ir=Jn.mask,We=Jn.scrollIntoViewOptions,Nn=Jn.closeIcon,ti=en&&(ir!=null?ir:ii),pr=Nn!=null?Nn:Ds,on=We!=null?We:lr,Cn=z(hi,En,Bi,on),xi=(0,Ct.Z)(Cn,2),Zi=xi[0],Wi=xi[1],oi=E(Wi,ki,bn),ri=Wi?typeof Xi=="undefined"?Ti:Xi:!1,Zn=(0,kt.Z)(ri)==="object"?ri.pointAtCenter:!1;(0,dt.Z)(function(){var Mi;(Mi=ms.current)===null||Mi===void 0||Mi.forceAlign()},[Zn,Oo]);var ur=function(sn){Gr(sn),nn==null||nn(sn)};if(Wi===void 0)return null;var Yr=function(){qe(!1),fn==null||fn(Oo)},br=function(){return Ft.createElement(Ut,(0,rt.Z)({arrow:ri,key:"content",prefixCls:Jt,total:Ue.length,renderPanel:pi,onPrev:function(){ur(Oo-1)},onNext:function(){ur(Oo+1)},onClose:Yr,current:Oo,onFinish:function(){Yr(),An==null||An()},closeIcon:pr},Ue[Oo]))},mn=typeof ti=="boolean"?ti:!!ti,er=typeof ti=="boolean"?void 0:ti,cr=function(sn){return sn||Wi||document.body};return Ft.createElement(Ft.Fragment,null,Ft.createElement(ut,{zIndex:ee,prefixCls:Jt,pos:Zi,showMask:mn,style:er==null?void 0:er.style,fill:er==null?void 0:er.color,open:en,animated:Or,rootClassName:Oi}),Ft.createElement(vt.Z,(0,rt.Z)({builtinPlacements:_t(Zn)},mr,{ref:ms,popupStyle:Bn,popupPlacement:oi,popupVisible:en,popupClassName:xt()(Oi,dr),prefixCls:Jt,popup:br,forceRender:!1,destroyPopupOnHide:!0,zIndex:ee,getTriggerDOMNode:cr,arrow:!!ri}),Ft.createElement(pt.Z,{open:en,autoLock:!0},Ft.createElement("div",{className:xt()(Oi,"".concat(Jt,"-target-placeholder")),style:(0,ie.Z)((0,ie.Z)({},Zi||Gt),{},{position:"fixed",pointerEvents:"none"})}))))},Ht=Yt,ne=Ht,ae=Rt(79676),ve=Rt(36355),Kt=Rt(88088),re=Rt(99267),we=Rt(3113),Me=Rt(9763),ke=Rt(31724),me=Rt(47729);function fe(Bt){return Bt!=null}var _e=Bt=>{let{stepProps:te,current:ge,type:Jt,indicatorsRender:Ie,closeIcon:Ue}=Bt;var Je,Ze;const{prefixCls:nn,total:fn=1,title:An,onClose:En,onPrev:Dn,onNext:ii,onFinish:mi,cover:Ti,description:Oi,nextButtonProps:ki,prevButtonProps:pi,type:Bi,className:Or,closeIcon:yr}=te,lr=Bi!=null?Bi:Jt,Si=yr!=null?yr:Ue,ee=Si!==!1&&Si!==null,[Ds,mr]=(0,me.Z)(ee,Si,Jn=>Ft.createElement("span",{onClick:En,"aria-label":"Close",className:`${nn}-close`},Jn),Ft.createElement(re.Z,{className:`${nn}-close-icon`}),!0),ms=ge===fn-1,Xs=()=>{var Jn;Dn==null||Dn(),(Jn=pi==null?void 0:pi.onClick)===null||Jn===void 0||Jn.call(pi)},Do=()=>{var Jn;ms?mi==null||mi():ii==null||ii(),(Jn=ki==null?void 0:ki.onClick)===null||Jn===void 0||Jn.call(ki)},Oo=fe(An)?Ft.createElement("div",{className:`${nn}-header`},Ft.createElement("div",{className:`${nn}-title`},An)):null,Gr=fe(Oi)?Ft.createElement("div",{className:`${nn}-description`},Oi):null,sa=fe(Ti)?Ft.createElement("div",{className:`${nn}-cover`},Ti):null;let dn;Ie?dn=Ie(ge,fn):dn=(0,jt.Z)(Array.from({length:fn}).keys()).map((Jn,hi)=>Ft.createElement("span",{key:Jn,className:xt()(hi===ge&&`${nn}-indicator-active`,`${nn}-indicator`)}));const en=lr==="primary"?"default":"primary",qe={type:"default",ghost:lr==="primary"},[zn]=(0,Me.Z)("Tour",ke.Z.Tour);return Ft.createElement("div",{className:xt()(Or,`${nn}-content`)},Ft.createElement("div",{className:`${nn}-inner`},Ds&&mr,sa,Oo,Gr,Ft.createElement("div",{className:`${nn}-footer`},fn>1&&Ft.createElement("div",{className:`${nn}-indicators`},dn),Ft.createElement("div",{className:`${nn}-buttons`},ge!==0?Ft.createElement(we.ZP,Object.assign({},qe,pi,{onClick:Xs,size:"small",className:xt()(`${nn}-prev-btn`,pi==null?void 0:pi.className)}),(Je=pi==null?void 0:pi.children)!==null&&Je!==void 0?Je:zn==null?void 0:zn.Previous):null,Ft.createElement(we.ZP,Object.assign({type:en},ki,{onClick:Do,size:"small",className:xt()(`${nn}-next-btn`,ki==null?void 0:ki.className)}),(Ze=ki==null?void 0:ki.children)!==null&&Ze!==void 0?Ze:ms?zn==null?void 0:zn.Finish:zn==null?void 0:zn.Next)))))},je=Rt(39722),He=Rt(64993),Se=Rt(17313),xe=Rt(19447),le=Rt(83116),Ne=Rt(37613);const se=Bt=>{const{componentCls:te,lineHeight:ge,padding:Jt,paddingXS:Ie,borderRadius:Ue,borderRadiusXS:Je,colorPrimary:Ze,colorText:nn,colorFill:fn,indicatorHeight:An,indicatorWidth:En,boxShadowTertiary:Dn,tourZIndexPopup:ii,fontSize:mi,colorBgElevated:Ti,fontWeightStrong:Oi,marginXS:ki,colorTextLightSolid:pi,tourBorderRadius:Bi,colorWhite:Or,colorBgTextHover:yr,tourCloseSize:lr,motionDurationSlow:Si,antCls:ee}=Bt;return[{[te]:Object.assign(Object.assign({},(0,Se.Wf)(Bt)),{color:nn,position:"absolute",zIndex:ii,display:"block",visibility:"visible",fontSize:mi,lineHeight:ge,width:520,"--antd-arrow-background-color":Ti,"&-pure":{maxWidth:"100%",position:"relative"},[`&${te}-hidden`]:{display:"none"},[`${te}-content`]:{position:"relative"},[`${te}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Bi,boxShadow:Dn,position:"relative",backgroundColor:Ti,border:"none",backgroundClip:"padding-box",[`${te}-close`]:{position:"absolute",top:Jt,insetInlineEnd:Jt,color:Bt.colorIcon,outline:"none",width:lr,height:lr,borderRadius:Bt.borderRadiusSM,transition:`background-color ${Bt.motionDurationMid}, color ${Bt.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:Bt.colorIconHover,backgroundColor:Bt.wireframe?"transparent":Bt.colorFillContent}},[`${te}-cover`]:{textAlign:"center",padding:`${Jt+lr+Ie}px ${Jt}px 0`,img:{width:"100%"}},[`${te}-header`]:{padding:`${Jt}px ${Jt}px ${Ie}px`,[`${te}-title`]:{lineHeight:ge,fontSize:mi,fontWeight:Oi}},[`${te}-description`]:{padding:`0 ${Jt}px`,lineHeight:ge,wordWrap:"break-word"},[`${te}-footer`]:{padding:`${Ie}px ${Jt}px ${Jt}px`,textAlign:"end",borderRadius:`0 0 ${Je}px ${Je}px`,display:"flex",[`${te}-indicators`]:{display:"inline-block",[`${te}-indicator`]:{width:En,height:An,display:"inline-block",borderRadius:"50%",background:fn,"&:not(:last-child)":{marginInlineEnd:An},"&-active":{background:Ze}}},[`${te}-buttons`]:{marginInlineStart:"auto",[`${ee}-btn`]:{marginInlineStart:ki}}}},[`${te}-primary, &${te}-primary`]:{"--antd-arrow-background-color":Ze,[`${te}-inner`]:{color:pi,textAlign:"start",textDecoration:"none",backgroundColor:Ze,borderRadius:Ue,boxShadow:Dn,[`${te}-close`]:{color:pi},[`${te}-indicators`]:{[`${te}-indicator`]:{background:new He.C(pi).setAlpha(.15).toRgbString(),"&-active":{background:pi}}},[`${te}-prev-btn`]:{color:pi,borderColor:new He.C(pi).setAlpha(.15).toRgbString(),backgroundColor:Ze,"&:hover":{backgroundColor:new He.C(pi).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${te}-next-btn`]:{color:Ze,borderColor:"transparent",background:Or,"&:hover":{background:new He.C(yr).onBackground(Or).toRgbString()}}}}}),[`${te}-mask`]:{[`${te}-placeholder-animated`]:{transition:`all ${Si}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${te}-inner`]:{borderRadius:Math.min(Bi,xe.qN)}}},(0,xe.ZP)(Bt,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Bi,limitVerticalRadius:!0})]};var Ae=(0,le.Z)("Tour",Bt=>{const{borderRadiusLG:te,fontSize:ge,lineHeight:Jt}=Bt,Ie=(0,Ne.TS)(Bt,{tourZIndexPopup:Bt.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:te,tourCloseSize:ge*Jt});return[se(Ie)]}),Xe=Rt(53487),Be=function(Bt,te){var ge={};for(var Jt in Bt)Object.prototype.hasOwnProperty.call(Bt,Jt)&&te.indexOf(Jt)<0&&(ge[Jt]=Bt[Jt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Jt=Object.getOwnPropertySymbols(Bt);Ie<Jt.length;Ie++)te.indexOf(Jt[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Jt[Ie])&&(ge[Jt[Ie]]=Bt[Jt[Ie]]);return ge};const Te=Bt=>{const{prefixCls:te,current:ge=0,total:Jt=6,className:Ie,style:Ue,type:Je}=Bt,Ze=Be(Bt,["prefixCls","current","total","className","style","type"]),{getPrefixCls:nn}=Ft.useContext(ve.E_),fn=nn("tour",te),[An,En]=Ae(fn);return An(Ft.createElement(je.t5,{prefixCls:fn,hashId:En,className:xt()(Ie,`${fn}-pure`,Je&&`${fn}-${Je}`),style:Ue},Ft.createElement(_e,{stepProps:Object.assign(Object.assign({},Ze),{prefixCls:fn,total:Jt}),current:ge,type:Je})))};var ue=(0,Xe.i)(Te),he=Bt=>{let{defaultType:te,steps:ge=[],current:Jt,defaultCurrent:Ie}=Bt;var Ue;const[Je,Ze]=(0,ft.Z)(Ie,{value:Jt});(0,Ft.useLayoutEffect)(()=>{Jt!==void 0&&Ze(Jt)},[Jt]);const nn=typeof Je=="number"?(Ue=ge[Je])===null||Ue===void 0?void 0:Ue.type:te;return{currentMergedType:nn!=null?nn:te,updateInnerCurrent:Ze}},ye=function(Bt,te){var ge={};for(var Jt in Bt)Object.prototype.hasOwnProperty.call(Bt,Jt)&&te.indexOf(Jt)<0&&(ge[Jt]=Bt[Jt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Jt=Object.getOwnPropertySymbols(Bt);Ie<Jt.length;Ie++)te.indexOf(Jt[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Jt[Ie])&&(ge[Jt[Ie]]=Bt[Jt[Ie]]);return ge};const Qt=Bt=>{const{prefixCls:te,current:ge,defaultCurrent:Jt,type:Ie,rootClassName:Ue,indicatorsRender:Je,steps:Ze}=Bt,nn=ye(Bt,["prefixCls","current","defaultCurrent","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:fn,direction:An}=(0,Ft.useContext)(ve.E_),En=fn("tour",te),[Dn,ii]=Ae(En),[,mi]=(0,Kt.Z)(),{currentMergedType:Ti,updateInnerCurrent:Oi}=he({defaultType:Ie,steps:Ze,current:ge,defaultCurrent:Jt}),ki=(0,ae.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:mi.marginXXS,arrowWidth:mi.sizePopupArrow,borderRadius:mi.borderRadius}),pi=xt()({[`${En}-primary`]:Ti==="primary",[`${En}-rtl`]:An==="rtl"},ii,Ue),Bi=(yr,lr)=>Ft.createElement(_e,{type:Ie,stepProps:yr,current:lr,indicatorsRender:Je}),Or=yr=>{var lr;Oi(yr),(lr=Bt.onChange)===null||lr===void 0||lr.call(Bt,yr)};return Dn(Ft.createElement(ne,Object.assign({},nn,{rootClassName:pi,prefixCls:En,current:ge,defaultCurrent:Jt,animated:!0,renderPanel:Bi,builtinPlacements:ki,onChange:Or,steps:Ze})))};Qt._InternalPanelDoNotUseOrYouWillBeFired=ue;var Wt=Qt},99498:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){Ft.defineOption("placeholder","",function(vt,yt,xt){var dt=xt&&xt!=Ft.Init;if(yt&&!dt)vt.on("blur",Ct),vt.on("change",St),vt.on("swapDoc",St),Ft.on(vt.getInputField(),"compositionupdate",vt.state.placeholderCompose=function(){kt(vt)}),St(vt);else if(!yt&&dt){vt.off("blur",Ct),vt.off("change",St),vt.off("swapDoc",St),Ft.off(vt.getInputField(),"compositionupdate",vt.state.placeholderCompose),ie(vt);var ft=vt.getWrapperElement();ft.className=ft.className.replace(" CodeMirror-empty","")}yt&&!vt.hasFocus()&&Ct(vt)});function ie(vt){vt.state.placeholder&&(vt.state.placeholder.parentNode.removeChild(vt.state.placeholder),vt.state.placeholder=null)}function rt(vt){ie(vt);var yt=vt.state.placeholder=document.createElement("pre");yt.style.cssText="height: 0; overflow: visible",yt.style.direction=vt.getOption("direction"),yt.className="CodeMirror-placeholder CodeMirror-line-like";var xt=vt.getOption("placeholder");typeof xt=="string"&&(xt=document.createTextNode(xt)),yt.appendChild(xt),vt.display.lineSpace.insertBefore(yt,vt.display.lineSpace.firstChild)}function kt(vt){setTimeout(function(){var yt=!1,xt=vt.getInputField();xt.nodeName=="TEXTAREA"?yt=!xt.value:vt.lineCount()==1&&(yt=!/[^\u200b]/.test(xt.querySelector(".CodeMirror-line").textContent)),yt?rt(vt):ie(vt)},20)}function Ct(vt){pt(vt)&&rt(vt)}function St(vt){var yt=vt.getWrapperElement(),xt=pt(vt);yt.className=yt.className.replace(" CodeMirror-empty","")+(xt?" CodeMirror-empty":""),xt?rt(vt):ie(vt)}function pt(vt){return vt.lineCount()===1&&vt.getLine(0)===""}})},25717:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){var ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},rt=Ft.Pos;Ft.defineOption("autoCloseBrackets",!1,function(E,z,ot){ot&&ot!=Ft.Init&&(E.removeKeyMap(Ct),E.state.closeBrackets=null),z&&(St(kt(z,"pairs")),E.state.closeBrackets=z,E.addKeyMap(Ct))});function kt(E,z){return z=="pairs"&&typeof E=="string"?E:typeof E=="object"&&E[z]!=null?E[z]:ie[z]}var Ct={Backspace:yt,Enter:xt};function St(E){for(var z=0;z<E.length;z++){var ot=E.charAt(z),it="'"+ot+"'";Ct[it]||(Ct[it]=pt(ot))}}St(ie.pairs+"`");function pt(E){return function(z){return ft(z,E)}}function vt(E){var z=E.state.closeBrackets;if(!z||z.override)return z;var ot=E.getModeAt(E.getCursor());return ot.closeBrackets||z}function yt(E){var z=vt(E);if(!z||E.getOption("disableInput"))return Ft.Pass;for(var ot=kt(z,"pairs"),it=E.listSelections(),at=0;at<it.length;at++){if(!it[at].empty())return Ft.Pass;var ut=ct(E,it[at].head);if(!ut||ot.indexOf(ut)%2!=0)return Ft.Pass}for(var at=it.length-1;at>=0;at--){var wt=it[at].head;E.replaceRange("",rt(wt.line,wt.ch-1),rt(wt.line,wt.ch+1),"+delete")}}function xt(E){var z=vt(E),ot=z&&kt(z,"explode");if(!ot||E.getOption("disableInput"))return Ft.Pass;for(var it=E.listSelections(),at=0;at<it.length;at++){if(!it[at].empty())return Ft.Pass;var ut=ct(E,it[at].head);if(!ut||ot.indexOf(ut)%2!=0)return Ft.Pass}E.operation(function(){var wt=E.lineSeparator()||`
`;E.replaceSelection(wt+wt,null),E.execCommand("goCharLeft"),it=E.listSelections();for(var Et=0;Et<it.length;Et++){var At=it[Et].head.line;E.indentLine(At,null,!0),E.indentLine(At+1,null,!0)}})}function dt(E){var z=Ft.cmpPos(E.anchor,E.head)>0;return{anchor:new rt(E.anchor.line,E.anchor.ch+(z?-1:1)),head:new rt(E.head.line,E.head.ch+(z?1:-1))}}function ft(E,z){var ot=vt(E);if(!ot||E.getOption("disableInput"))return Ft.Pass;var it=kt(ot,"pairs"),at=it.indexOf(z);if(at==-1)return Ft.Pass;for(var ut=kt(ot,"closeBefore"),wt=kt(ot,"triples"),Et=it.charAt(at+1)==z,At=E.listSelections(),_t=at%2==0,Mt,jt=0;jt<At.length;jt++){var Lt=At[jt],It=Lt.head,Ut,Xt=E.getRange(It,rt(It.line,It.ch+1));if(_t&&!Lt.empty())Ut="surround";else if((Et||!_t)&&Xt==z)Et&&lt(E,It)?Ut="both":wt.indexOf(z)>=0&&E.getRange(It,rt(It.line,It.ch+3))==z+z+z?Ut="skipThree":Ut="skip";else if(Et&&It.ch>1&&wt.indexOf(z)>=0&&E.getRange(rt(It.line,It.ch-2),It)==z+z){if(It.ch>2&&/\bstring/.test(E.getTokenTypeAt(rt(It.line,It.ch-2))))return Ft.Pass;Ut="addFour"}else if(Et){var Gt=It.ch==0?" ":E.getRange(rt(It.line,It.ch-1),It);if(!Ft.isWordChar(Xt)&&Gt!=z&&!Ft.isWordChar(Gt))Ut="both";else return Ft.Pass}else if(_t&&(Xt.length===0||/\s/.test(Xt)||ut.indexOf(Xt)>-1))Ut="both";else return Ft.Pass;if(!Mt)Mt=Ut;else if(Mt!=Ut)return Ft.Pass}var Yt=at%2?it.charAt(at-1):z,Ht=at%2?z:it.charAt(at+1);E.operation(function(){if(Mt=="skip")E.execCommand("goCharRight");else if(Mt=="skipThree")for(var ne=0;ne<3;ne++)E.execCommand("goCharRight");else if(Mt=="surround"){for(var ae=E.getSelections(),ne=0;ne<ae.length;ne++)ae[ne]=Yt+ae[ne]+Ht;E.replaceSelections(ae,"around"),ae=E.listSelections().slice();for(var ne=0;ne<ae.length;ne++)ae[ne]=dt(ae[ne]);E.setSelections(ae)}else Mt=="both"?(E.replaceSelection(Yt+Ht,null),E.triggerElectric(Yt+Ht),E.execCommand("goCharLeft")):Mt=="addFour"&&(E.replaceSelection(Yt+Yt+Yt+Yt,"before"),E.execCommand("goCharRight"))})}function ct(E,z){var ot=E.getRange(rt(z.line,z.ch-1),rt(z.line,z.ch+1));return ot.length==2?ot:null}function lt(E,z){var ot=E.getTokenAt(rt(z.line,z.ch+1));return/\bstring/.test(ot.type)&&ot.start==z.ch&&(z.ch==0||!/\bstring/.test(E.getTokenTypeAt(z)))}})},6313:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780),Rt(32855))})(function(Ft){Ft.defineOption("autoCloseTags",!1,function(yt,xt,dt){if(dt!=Ft.Init&&dt&&yt.removeKeyMap("autoCloseTags"),!!xt){var ft={name:"autoCloseTags"};(typeof xt!="object"||xt.whenClosing!==!1)&&(ft["'/'"]=function(ct){return St(ct)}),(typeof xt!="object"||xt.whenOpening!==!1)&&(ft["'>'"]=function(ct){return kt(ct)}),yt.addKeyMap(ft)}});var ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],rt=["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 kt(yt){if(yt.getOption("disableInput"))return Ft.Pass;for(var xt=yt.listSelections(),dt=[],ft=yt.getOption("autoCloseTags"),ct=0;ct<xt.length;ct++){if(!xt[ct].empty())return Ft.Pass;var lt=xt[ct].head,E=yt.getTokenAt(lt),z=Ft.innerMode(yt.getMode(),E.state),ot=z.state,it=z.mode.xmlCurrentTag&&z.mode.xmlCurrentTag(ot),at=it&&it.name;if(!at)return Ft.Pass;var ut=z.mode.configuration=="html",wt=typeof ft=="object"&&ft.dontCloseTags||ut&&ie,Et=typeof ft=="object"&&ft.indentTags||ut&&rt;E.end>lt.ch&&(at=at.slice(0,at.length-E.end+lt.ch));var At=at.toLowerCase();if(!at||E.type=="string"&&(E.end!=lt.ch||!/[\"\']/.test(E.string.charAt(E.string.length-1))||E.string.length==1)||E.type=="tag"&&it.close||E.string.indexOf("/")==lt.ch-E.start-1||wt&&pt(wt,At)>-1||vt(yt,z.mode.xmlCurrentContext&&z.mode.xmlCurrentContext(ot)||[],at,lt,!0))return Ft.Pass;var _t=typeof ft=="object"&&ft.emptyTags;if(_t&&pt(_t,at)>-1){dt[ct]={text:"/>",newPos:Ft.Pos(lt.line,lt.ch+2)};continue}var Mt=Et&&pt(Et,At)>-1;dt[ct]={indent:Mt,text:">"+(Mt?`
`:"")+"</"+at+">",newPos:Mt?Ft.Pos(lt.line+1,0):Ft.Pos(lt.line,lt.ch+1)}}for(var jt=typeof ft=="object"&&ft.dontIndentOnAutoClose,ct=xt.length-1;ct>=0;ct--){var Lt=dt[ct];yt.replaceRange(Lt.text,xt[ct].head,xt[ct].anchor,"+insert");var It=yt.listSelections().slice(0);It[ct]={head:Lt.newPos,anchor:Lt.newPos},yt.setSelections(It),!jt&&Lt.indent&&(yt.indentLine(Lt.newPos.line,null,!0),yt.indentLine(Lt.newPos.line+1,null,!0))}}function Ct(yt,xt){for(var dt=yt.listSelections(),ft=[],ct=xt?"/":"</",lt=yt.getOption("autoCloseTags"),E=typeof lt=="object"&&lt.dontIndentOnSlash,z=0;z<dt.length;z++){if(!dt[z].empty())return Ft.Pass;var ot=dt[z].head,it=yt.getTokenAt(ot),at=Ft.innerMode(yt.getMode(),it.state),ut=at.state;if(xt&&(it.type=="string"||it.string.charAt(0)!="<"||it.start!=ot.ch-1))return Ft.Pass;var wt,Et=at.mode.name!="xml"&&yt.getMode().name=="htmlmixed";if(Et&&at.mode.name=="javascript")wt=ct+"script";else if(Et&&at.mode.name=="css")wt=ct+"style";else{var At=at.mode.xmlCurrentContext&&at.mode.xmlCurrentContext(ut);if(!At||At.length&&vt(yt,At,At[At.length-1],ot))return Ft.Pass;wt=ct+At[At.length-1]}yt.getLine(ot.line).charAt(it.end)!=">"&&(wt+=">"),ft[z]=wt}if(yt.replaceSelections(ft),dt=yt.listSelections(),!E)for(var z=0;z<dt.length;z++)(z==dt.length-1||dt[z].head.line<dt[z+1].head.line)&&yt.indentLine(dt[z].head.line)}function St(yt){return yt.getOption("disableInput")?Ft.Pass:Ct(yt,!0)}Ft.commands.closeTag=function(yt){return Ct(yt)};function pt(yt,xt){if(yt.indexOf)return yt.indexOf(xt);for(var dt=0,ft=yt.length;dt<ft;++dt)if(yt[dt]==xt)return dt;return-1}function vt(yt,xt,dt,ft,ct){if(!Ft.scanForClosingTag)return!1;var lt=Math.min(yt.lastLine()+1,ft.line+500),E=Ft.scanForClosingTag(yt,ft,null,lt);if(!E||E.tag!=dt)return!1;for(var z=ct?1:0,ot=xt.length-1;ot>=0&&xt[ot]==dt;ot--)++z;ft=E.to;for(var ot=1;ot<z;ot++){var it=Ft.scanForClosingTag(yt,ft,null,lt);if(!it||it.tag!=dt)return!1;ft=it.to}return!0}})},32855:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";var ie=Ft.Pos;function rt(ot,it){return ot.line-it.line||ot.ch-it.ch}var kt="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",Ct=kt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",St=new RegExp("<(/?)(["+kt+"]["+Ct+"]*)","g");function pt(ot,it,at,ut){this.line=it,this.ch=at,this.cm=ot,this.text=ot.getLine(it),this.min=ut?Math.max(ut.from,ot.firstLine()):ot.firstLine(),this.max=ut?Math.min(ut.to-1,ot.lastLine()):ot.lastLine()}function vt(ot,it){var at=ot.cm.getTokenTypeAt(ie(ot.line,it));return at&&/\btag\b/.test(at)}function yt(ot){if(!(ot.line>=ot.max))return ot.ch=0,ot.text=ot.cm.getLine(++ot.line),!0}function xt(ot){if(!(ot.line<=ot.min))return ot.text=ot.cm.getLine(--ot.line),ot.ch=ot.text.length,!0}function dt(ot){for(;;){var it=ot.text.indexOf(">",ot.ch);if(it==-1){if(yt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it+1;continue}var at=ot.text.lastIndexOf("/",it),ut=at>-1&&!/\S/.test(ot.text.slice(at+1,it));return ot.ch=it+1,ut?"selfClose":"regular"}}function ft(ot){for(;;){var it=ot.ch?ot.text.lastIndexOf("<",ot.ch-1):-1;if(it==-1){if(xt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it;continue}St.lastIndex=it,ot.ch=it;var at=St.exec(ot.text);if(at&&at.index==it)return at}}function ct(ot){for(;;){St.lastIndex=ot.ch;var it=St.exec(ot.text);if(!it){if(yt(ot))continue;return}if(!vt(ot,it.index+1)){ot.ch=it.index+1;continue}return ot.ch=it.index+it[0].length,it}}function lt(ot){for(;;){var it=ot.ch?ot.text.lastIndexOf(">",ot.ch-1):-1;if(it==-1){if(xt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it;continue}var at=ot.text.lastIndexOf("/",it),ut=at>-1&&!/\S/.test(ot.text.slice(at+1,it));return ot.ch=it+1,ut?"selfClose":"regular"}}function E(ot,it){for(var at=[];;){var ut=ct(ot),wt,Et=ot.line,At=ot.ch-(ut?ut[0].length:0);if(!ut||!(wt=dt(ot)))return;if(wt!="selfClose")if(ut[1]){for(var _t=at.length-1;_t>=0;--_t)if(at[_t]==ut[2]){at.length=_t;break}if(_t<0&&(!it||it==ut[2]))return{tag:ut[2],from:ie(Et,At),to:ie(ot.line,ot.ch)}}else at.push(ut[2])}}function z(ot,it){for(var at=[];;){var ut=lt(ot);if(!ut)return;if(ut=="selfClose"){ft(ot);continue}var wt=ot.line,Et=ot.ch,At=ft(ot);if(!At)return;if(At[1])at.push(At[2]);else{for(var _t=at.length-1;_t>=0;--_t)if(at[_t]==At[2]){at.length=_t;break}if(_t<0&&(!it||it==At[2]))return{tag:At[2],from:ie(ot.line,ot.ch),to:ie(wt,Et)}}}}Ft.registerHelper("fold","xml",function(ot,it){for(var at=new pt(ot,it.line,0);;){var ut=ct(at);if(!ut||at.line!=it.line)return;var wt=dt(at);if(!wt)return;if(!ut[1]&&wt!="selfClose"){var Et=ie(at.line,at.ch),At=E(at,ut[2]);return At&&rt(At.from,Et)>0?{from:Et,to:At.from}:null}}}),Ft.findMatchingTag=function(ot,it,at){var ut=new pt(ot,it.line,it.ch,at);if(!(ut.text.indexOf(">")==-1&&ut.text.indexOf("<")==-1)){var wt=dt(ut),Et=wt&&ie(ut.line,ut.ch),At=wt&&ft(ut);if(!(!wt||!At||rt(ut,it)>0)){var _t={from:ie(ut.line,ut.ch),to:Et,tag:At[2]};return wt=="selfClose"?{open:_t,close:null,at:"open"}:At[1]?{open:z(ut,At[2]),close:_t,at:"close"}:(ut=new pt(ot,Et.line,Et.ch,at),{open:_t,close:E(ut,At[2]),at:"open"})}}},Ft.findEnclosingTag=function(ot,it,at,ut){for(var wt=new pt(ot,it.line,it.ch,at);;){var Et=z(wt,ut);if(!Et)break;var At=new pt(ot,it.line,it.ch,at),_t=E(At,Et.tag);if(_t)return{open:Et,close:_t}}},Ft.scanForClosingTag=function(ot,it,at,ut){var wt=new pt(ot,it.line,it.ch,ut?{from:0,to:ut}:null);return E(wt,at)}})},89780:function(tn){(function(Ke,Rt){tn.exports=Rt()})(this,function(){"use strict";var Ke=navigator.userAgent,Rt=navigator.platform,Ft=/gecko\/\d/i.test(Ke),ie=/MSIE \d/.test(Ke),rt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ke),kt=/Edge\/(\d+)/.exec(Ke),Ct=ie||rt||kt,St=Ct&&(ie?document.documentMode||6:+(kt||rt)[1]),pt=!kt&&/WebKit\//.test(Ke),vt=pt&&/Qt\/\d+\.\d+/.test(Ke),yt=!kt&&/Chrome\//.test(Ke),xt=/Opera\//.test(Ke),dt=/Apple Computer/.test(navigator.vendor),ft=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ke),ct=/PhantomJS/.test(Ke),lt=!kt&&/AppleWebKit/.test(Ke)&&/Mobile\/\w+/.test(Ke),E=/Android/.test(Ke),z=lt||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ke),ot=lt||/Mac/.test(Rt),it=/\bCrOS\b/.test(Ke),at=/win/i.test(Rt),ut=xt&&Ke.match(/Version\/(\d*\.\d*)/);ut&&(ut=Number(ut[1])),ut&&ut>=15&&(xt=!1,pt=!0);var wt=ot&&(vt||xt&&(ut==null||ut<12.11)),Et=Ft||Ct&&St>=9;function At(st){return new RegExp("(^|\\s)"+st+"(?:$|\\s)\\s*")}var _t=function(st,mt){var Ot=st.className,Tt=At(mt).exec(Ot);if(Tt){var Dt=Ot.slice(Tt.index+Tt[0].length);st.className=Ot.slice(0,Tt.index)+(Dt?Tt[1]+Dt:"")}};function Mt(st){for(var mt=st.childNodes.length;mt>0;--mt)st.removeChild(st.firstChild);return st}function jt(st,mt){return Mt(st).appendChild(mt)}function Lt(st,mt,Ot,Tt){var Dt=document.createElement(st);if(Ot&&(Dt.className=Ot),Tt&&(Dt.style.cssText=Tt),typeof mt=="string")Dt.appendChild(document.createTextNode(mt));else if(mt)for(var qt=0;qt<mt.length;++qt)Dt.appendChild(mt[qt]);return Dt}function It(st,mt,Ot,Tt){var Dt=Lt(st,mt,Ot,Tt);return Dt.setAttribute("role","presentation"),Dt}var Ut;document.createRange?Ut=function(st,mt,Ot,Tt){var Dt=document.createRange();return Dt.setEnd(Tt||st,Ot),Dt.setStart(st,mt),Dt}:Ut=function(st,mt,Ot){var Tt=document.body.createTextRange();try{Tt.moveToElementText(st.parentNode)}catch(Dt){return Tt}return Tt.collapse(!0),Tt.moveEnd("character",Ot),Tt.moveStart("character",mt),Tt};function Xt(st,mt){if(mt.nodeType==3&&(mt=mt.parentNode),st.contains)return st.contains(mt);do if(mt.nodeType==11&&(mt=mt.host),mt==st)return!0;while(mt=mt.parentNode)}function Gt(){var st;try{st=document.activeElement}catch(mt){st=document.body||null}for(;st&&st.shadowRoot&&st.shadowRoot.activeElement;)st=st.shadowRoot.activeElement;return st}function Yt(st,mt){var Ot=st.className;At(mt).test(Ot)||(st.className+=(Ot?" ":"")+mt)}function Ht(st,mt){for(var Ot=st.split(" "),Tt=0;Tt<Ot.length;Tt++)Ot[Tt]&&!At(Ot[Tt]).test(mt)&&(mt+=" "+Ot[Tt]);return mt}var ne=function(st){st.select()};lt?ne=function(st){st.selectionStart=0,st.selectionEnd=st.value.length}:Ct&&(ne=function(st){try{st.select()}catch(mt){}});function ae(st){var mt=Array.prototype.slice.call(arguments,1);return function(){return st.apply(null,mt)}}function ve(st,mt,Ot){mt||(mt={});for(var Tt in st)st.hasOwnProperty(Tt)&&(Ot!==!1||!mt.hasOwnProperty(Tt))&&(mt[Tt]=st[Tt]);return mt}function Kt(st,mt,Ot,Tt,Dt){mt==null&&(mt=st.search(/[^\s\u00a0]/),mt==-1&&(mt=st.length));for(var qt=Tt||0,ce=Dt||0;;){var Ce=st.indexOf(" ",qt);if(Ce<0||Ce>=mt)return ce+(mt-qt);ce+=Ce-qt,ce+=Ot-ce%Ot,qt=Ce+1}}var re=function(){this.id=null,this.f=null,this.time=0,this.handler=ae(this.onTimeout,this)};re.prototype.onTimeout=function(st){st.id=0,st.time<=+new Date?st.f():setTimeout(st.handler,st.time-+new Date)},re.prototype.set=function(st,mt){this.f=mt;var Ot=+new Date+st;(!this.id||Ot<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,st),this.time=Ot)};function we(st,mt){for(var Ot=0;Ot<st.length;++Ot)if(st[Ot]==mt)return Ot;return-1}var Me=50,ke={toString:function(){return"CodeMirror.Pass"}},me={scroll:!1},fe={origin:"*mouse"},pe={origin:"+move"};function _e(st,mt,Ot){for(var Tt=0,Dt=0;;){var qt=st.indexOf(" ",Tt);qt==-1&&(qt=st.length);var ce=qt-Tt;if(qt==st.length||Dt+ce>=mt)return Tt+Math.min(ce,mt-Dt);if(Dt+=qt-Tt,Dt+=Ot-Dt%Ot,Tt=qt+1,Dt>=mt)return Tt}}var je=[""];function He(st){for(;je.length<=st;)je.push(Se(je)+" ");return je[st]}function Se(st){return st[st.length-1]}function xe(st,mt){for(var Ot=[],Tt=0;Tt<st.length;Tt++)Ot[Tt]=mt(st[Tt],Tt);return Ot}function le(st,mt,Ot){for(var Tt=0,Dt=Ot(mt);Tt<st.length&&Ot(st[Tt])<=Dt;)Tt++;st.splice(Tt,0,mt)}function Ne(){}function se(st,mt){var Ot;return Object.create?Ot=Object.create(st):(Ne.prototype=st,Ot=new Ne),mt&&ve(mt,Ot),Ot}var Ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Xe(st){return/\w/.test(st)||st>"\x80"&&(st.toUpperCase()!=st.toLowerCase()||Ae.test(st))}function Be(st,mt){return mt?mt.source.indexOf("\\w")>-1&&Xe(st)?!0:mt.test(st):Xe(st)}function Te(st){for(var mt in st)if(st.hasOwnProperty(mt)&&st[mt])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function $t(st){return st.charCodeAt(0)>=768&&ue.test(st)}function he(st,mt,Ot){for(;(Ot<0?mt>0:mt<st.length)&&$t(st.charAt(mt));)mt+=Ot;return mt}function ye(st,mt,Ot){for(var Tt=mt>Ot?-1:1;;){if(mt==Ot)return mt;var Dt=(mt+Ot)/2,qt=Tt<0?Math.ceil(Dt):Math.floor(Dt);if(qt==mt)return st(qt)?mt:Ot;st(qt)?Ot=qt:mt=qt+Tt}}function Qt(st,mt,Ot,Tt){if(!st)return Tt(mt,Ot,"ltr",0);for(var Dt=!1,qt=0;qt<st.length;++qt){var ce=st[qt];(ce.from<Ot&&ce.to>mt||mt==Ot&&ce.to==mt)&&(Tt(Math.max(ce.from,mt),Math.min(ce.to,Ot),ce.level==1?"rtl":"ltr",qt),Dt=!0)}Dt||Tt(mt,Ot,"ltr")}var Wt=null;function Bt(st,mt,Ot){var Tt;Wt=null;for(var Dt=0;Dt<st.length;++Dt){var qt=st[Dt];if(qt.from<mt&&qt.to>mt)return Dt;qt.to==mt&&(qt.from!=qt.to&&Ot=="before"?Tt=Dt:Wt=Dt),qt.from==mt&&(qt.from!=qt.to&&Ot!="before"?Tt=Dt:Wt=Dt)}return Tt!=null?Tt:Wt}var te=function(){var st="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",mt="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ot(Fe){return Fe<=247?st.charAt(Fe):1424<=Fe&&Fe<=1524?"R":1536<=Fe&&Fe<=1785?mt.charAt(Fe-1536):1774<=Fe&&Fe<=2220?"r":8192<=Fe&&Fe<=8203?"w":Fe==8204?"b":"L"}var Tt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Dt=/[stwN]/,qt=/[LRr]/,ce=/[Lb1n]/,Ce=/[1n]/;function be(Fe,Qe,ze){this.level=Fe,this.from=Qe,this.to=ze}return function(Fe,Qe){var ze=Qe=="ltr"?"L":"R";if(Fe.length==0||Qe=="ltr"&&!Tt.test(Fe))return!1;for(var ln=Fe.length,an=[],kn=0;kn<ln;++kn)an.push(Ot(Fe.charCodeAt(kn)));for(var Tn=0,In=ze;Tn<ln;++Tn){var Hn=an[Tn];Hn=="m"?an[Tn]=In:In=Hn}for(var ni=0,Kn=ze;ni<ln;++ni){var ui=an[ni];ui=="1"&&Kn=="r"?an[ni]="n":qt.test(ui)&&(Kn=ui,ui=="r"&&(an[ni]="R"))}for(var Ai=1,Vn=an[0];Ai<ln-1;++Ai){var Hi=an[Ai];Hi=="+"&&Vn=="1"&&an[Ai+1]=="1"?an[Ai]="1":Hi==","&&Vn==an[Ai+1]&&(Vn=="1"||Vn=="n")&&(an[Ai]=Vn),Vn=Hi}for(var no=0;no<ln;++no){var Vo=an[no];if(Vo==",")an[no]="N";else if(Vo=="%"){var fo=void 0;for(fo=no+1;fo<ln&&an[fo]=="%";++fo);for(var ta=no&&an[no-1]=="!"||fo<ln&&an[fo]=="1"?"1":"N",Ls=no;Ls<fo;++Ls)an[Ls]=ta;no=fo-1}}for(var Ro=0,da=ze;Ro<ln;++Ro){var Ss=an[Ro];da=="L"&&Ss=="1"?an[Ro]="L":qt.test(Ss)&&(da=Ss)}for(var zo=0;zo<ln;++zo)if(Dt.test(an[zo])){var vr=void 0;for(vr=zo+1;vr<ln&&Dt.test(an[vr]);++vr);for(var So=(zo?an[zo-1]:ze)=="L",os=(vr<ln?an[vr]:ze)=="L",ws=So==os?So?"L":"R":ze,ol=zo;ol<vr;++ol)an[ol]=ws;zo=vr-1}for(var po=[],Wa,Co=0;Co<ln;)if(ce.test(an[Co])){var df=Co;for(++Co;Co<ln&&ce.test(an[Co]);++Co);po.push(new be(0,df,Co))}else{var Ta=Co,pa=po.length,ea=Qe=="rtl"?1:0;for(++Co;Co<ln&&an[Co]!="L";++Co);for(var Br=Ta;Br<Co;)if(Ce.test(an[Br])){Ta<Br&&(po.splice(pa,0,new be(1,Ta,Br)),pa+=ea);var ss=Br;for(++Br;Br<Co&&Ce.test(an[Br]);++Br);po.splice(pa,0,new be(2,ss,Br)),pa+=ea,Ta=Br}else++Br;Ta<Co&&po.splice(pa,0,new be(1,Ta,Co))}return Qe=="ltr"&&(po[0].level==1&&(Wa=Fe.match(/^\s+/))&&(po[0].from=Wa[0].length,po.unshift(new be(0,0,Wa[0].length))),Se(po).level==1&&(Wa=Fe.match(/\s+$/))&&(Se(po).to-=Wa[0].length,po.push(new be(0,ln-Wa[0].length,ln)))),Qe=="rtl"?po.reverse():po}}();function ge(st,mt){var Ot=st.order;return Ot==null&&(Ot=st.order=te(st.text,mt)),Ot}var Jt=[],Ie=function(st,mt,Ot){if(st.addEventListener)st.addEventListener(mt,Ot,!1);else if(st.attachEvent)st.attachEvent("on"+mt,Ot);else{var Tt=st._handlers||(st._handlers={});Tt[mt]=(Tt[mt]||Jt).concat(Ot)}};function Ue(st,mt){return st._handlers&&st._handlers[mt]||Jt}function Je(st,mt,Ot){if(st.removeEventListener)st.removeEventListener(mt,Ot,!1);else if(st.detachEvent)st.detachEvent("on"+mt,Ot);else{var Tt=st._handlers,Dt=Tt&&Tt[mt];if(Dt){var qt=we(Dt,Ot);qt>-1&&(Tt[mt]=Dt.slice(0,qt).concat(Dt.slice(qt+1)))}}}function Ze(st,mt){var Ot=Ue(st,mt);if(Ot.length)for(var Tt=Array.prototype.slice.call(arguments,2),Dt=0;Dt<Ot.length;++Dt)Ot[Dt].apply(null,Tt)}function nn(st,mt,Ot){return typeof mt=="string"&&(mt={type:mt,preventDefault:function(){this.defaultPrevented=!0}}),Ze(st,Ot||mt.type,st,mt),mi(mt)||mt.codemirrorIgnore}function fn(st){var mt=st._handlers&&st._handlers.cursorActivity;if(mt)for(var Ot=st.curOp.cursorActivityHandlers||(st.curOp.cursorActivityHandlers=[]),Tt=0;Tt<mt.length;++Tt)we(Ot,mt[Tt])==-1&&Ot.push(mt[Tt])}function An(st,mt){return Ue(st,mt).length>0}function En(st){st.prototype.on=function(mt,Ot){Ie(this,mt,Ot)},st.prototype.off=function(mt,Ot){Je(this,mt,Ot)}}function Dn(st){st.preventDefault?st.preventDefault():st.returnValue=!1}function ii(st){st.stopPropagation?st.stopPropagation():st.cancelBubble=!0}function mi(st){return st.defaultPrevented!=null?st.defaultPrevented:st.returnValue==!1}function Ti(st){Dn(st),ii(st)}function Oi(st){return st.target||st.srcElement}function ki(st){var mt=st.which;return mt==null&&(st.button&1?mt=1:st.button&2?mt=3:st.button&4&&(mt=2)),ot&&st.ctrlKey&&mt==1&&(mt=3),mt}var pi=function(){if(Ct&&St<9)return!1;var st=Lt("div");return"draggable"in st||"dragDrop"in st}(),Bi;function Or(st){if(Bi==null){var mt=Lt("span","\u200B");jt(st,Lt("span",[mt,document.createTextNode("x")])),st.firstChild.offsetHeight!=0&&(Bi=mt.offsetWidth<=1&&mt.offsetHeight>2&&!(Ct&&St<8))}var Ot=Bi?Lt("span","\u200B"):Lt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ot.setAttribute("cm-text",""),Ot}var yr;function lr(st){if(yr!=null)return yr;var mt=jt(st,document.createTextNode("A\u062EA")),Ot=Ut(mt,0,1).getBoundingClientRect(),Tt=Ut(mt,1,2).getBoundingClientRect();return Mt(st),!Ot||Ot.left==Ot.right?!1:yr=Tt.right-Ot.right<3}var Si=`
b`.split(/\n/).length!=3?function(st){for(var mt=0,Ot=[],Tt=st.length;mt<=Tt;){var Dt=st.indexOf(`
`,mt);Dt==-1&&(Dt=st.length);var qt=st.slice(mt,st.charAt(Dt-1)=="\r"?Dt-1:Dt),ce=qt.indexOf("\r");ce!=-1?(Ot.push(qt.slice(0,ce)),mt+=ce+1):(Ot.push(qt),mt=Dt+1)}return Ot}:function(st){return st.split(/\r\n?|\n/)},ee=window.getSelection?function(st){try{return st.selectionStart!=st.selectionEnd}catch(mt){return!1}}:function(st){var mt;try{mt=st.ownerDocument.selection.createRange()}catch(Ot){}return!mt||mt.parentElement()!=st?!1:mt.compareEndPoints("StartToEnd",mt)!=0},Ds=function(){var st=Lt("div");return"oncopy"in st?!0:(st.setAttribute("oncopy","return;"),typeof st.oncopy=="function")}(),mr=null;function ms(st){if(mr!=null)return mr;var mt=jt(st,Lt("span","x")),Ot=mt.getBoundingClientRect(),Tt=Ut(mt,0,1).getBoundingClientRect();return mr=Math.abs(Ot.left-Tt.left)>1}var Xs={},Do={};function Oo(st,mt){arguments.length>2&&(mt.dependencies=Array.prototype.slice.call(arguments,2)),Xs[st]=mt}function Gr(st,mt){Do[st]=mt}function sa(st){if(typeof st=="string"&&Do.hasOwnProperty(st))st=Do[st];else if(st&&typeof st.name=="string"&&Do.hasOwnProperty(st.name)){var mt=Do[st.name];typeof mt=="string"&&(mt={name:mt}),st=se(mt,st),st.name=mt.name}else{if(typeof st=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(st))return sa("application/xml");if(typeof st=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(st))return sa("application/json")}return typeof st=="string"?{name:st}:st||{name:"null"}}function dn(st,mt){mt=sa(mt);var Ot=Xs[mt.name];if(!Ot)return dn(st,"text/plain");var Tt=Ot(st,mt);if(en.hasOwnProperty(mt.name)){var Dt=en[mt.name];for(var qt in Dt)Dt.hasOwnProperty(qt)&&(Tt.hasOwnProperty(qt)&&(Tt["_"+qt]=Tt[qt]),Tt[qt]=Dt[qt])}if(Tt.name=mt.name,mt.helperType&&(Tt.helperType=mt.helperType),mt.modeProps)for(var ce in mt.modeProps)Tt[ce]=mt.modeProps[ce];return Tt}var en={};function qe(st,mt){var Ot=en.hasOwnProperty(st)?en[st]:en[st]={};ve(mt,Ot)}function zn(st,mt){if(mt===!0)return mt;if(st.copyState)return st.copyState(mt);var Ot={};for(var Tt in mt){var Dt=mt[Tt];Dt instanceof Array&&(Dt=Dt.concat([])),Ot[Tt]=Dt}return Ot}function Jn(st,mt){for(var Ot;st.innerMode&&(Ot=st.innerMode(mt),!(!Ot||Ot.mode==st));)mt=Ot.state,st=Ot.mode;return Ot||{mode:st,state:mt}}function hi(st,mt,Ot){return st.startState?st.startState(mt,Ot):!0}var bn=function(st,mt,Ot){this.pos=this.start=0,this.string=st,this.tabSize=mt||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ot};bn.prototype.eol=function(){return this.pos>=this.string.length},bn.prototype.sol=function(){return this.pos==this.lineStart},bn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},bn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},bn.prototype.eat=function(st){var mt=this.string.charAt(this.pos),Ot;if(typeof st=="string"?Ot=mt==st:Ot=mt&&(st.test?st.test(mt):st(mt)),Ot)return++this.pos,mt},bn.prototype.eatWhile=function(st){for(var mt=this.pos;this.eat(st););return this.pos>mt},bn.prototype.eatSpace=function(){for(var st=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>st},bn.prototype.skipToEnd=function(){this.pos=this.string.length},bn.prototype.skipTo=function(st){var mt=this.string.indexOf(st,this.pos);if(mt>-1)return this.pos=mt,!0},bn.prototype.backUp=function(st){this.pos-=st},bn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Kt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Kt(this.string,this.lineStart,this.tabSize):0)},bn.prototype.indentation=function(){return Kt(this.string,null,this.tabSize)-(this.lineStart?Kt(this.string,this.lineStart,this.tabSize):0)},bn.prototype.match=function(st,mt,Ot){if(typeof st=="string"){var Tt=function(ce){return Ot?ce.toLowerCase():ce},Dt=this.string.substr(this.pos,st.length);if(Tt(Dt)==Tt(st))return mt!==!1&&(this.pos+=st.length),!0}else{var qt=this.string.slice(this.pos).match(st);return qt&&qt.index>0?null:(qt&&mt!==!1&&(this.pos+=qt[0].length),qt)}},bn.prototype.current=function(){return this.string.slice(this.start,this.pos)},bn.prototype.hideFirstChars=function(st,mt){this.lineStart+=st;try{return mt()}finally{this.lineStart-=st}},bn.prototype.lookAhead=function(st){var mt=this.lineOracle;return mt&&mt.lookAhead(st)},bn.prototype.baseToken=function(){var st=this.lineOracle;return st&&st.baseToken(this.pos)};function Bn(st,mt){if(mt-=st.first,mt<0||mt>=st.size)throw new Error("There is no line "+(mt+st.first)+" in the document.");for(var Ot=st;!Ot.lines;)for(var Tt=0;;++Tt){var Dt=Ot.children[Tt],qt=Dt.chunkSize();if(mt<qt){Ot=Dt;break}mt-=qt}return Ot.lines[mt]}function Xi(st,mt,Ot){var Tt=[],Dt=mt.line;return st.iter(mt.line,Ot.line+1,function(qt){var ce=qt.text;Dt==Ot.line&&(ce=ce.slice(0,Ot.ch)),Dt==mt.line&&(ce=ce.slice(mt.ch)),Tt.push(ce),++Dt}),Tt}function dr(st,mt,Ot){var Tt=[];return st.iter(mt,Ot,function(Dt){Tt.push(Dt.text)}),Tt}function ir(st,mt){var Ot=mt-st.height;if(Ot)for(var Tt=st;Tt;Tt=Tt.parent)Tt.height+=Ot}function We(st){if(st.parent==null)return null;for(var mt=st.parent,Ot=we(mt.lines,st),Tt=mt.parent;Tt;mt=Tt,Tt=Tt.parent)for(var Dt=0;Tt.children[Dt]!=mt;++Dt)Ot+=Tt.children[Dt].chunkSize();return Ot+mt.first}function Nn(st,mt){var Ot=st.first;t:do{for(var Tt=0;Tt<st.children.length;++Tt){var Dt=st.children[Tt],qt=Dt.height;if(mt<qt){st=Dt;continue t}mt-=qt,Ot+=Dt.chunkSize()}return Ot}while(!st.lines);for(var ce=0;ce<st.lines.length;++ce){var Ce=st.lines[ce],be=Ce.height;if(mt<be)break;mt-=be}return Ot+ce}function ti(st,mt){return mt>=st.first&&mt<st.first+st.size}function pr(st,mt){return String(st.lineNumberFormatter(mt+st.firstLineNumber))}function on(st,mt,Ot){if(Ot===void 0&&(Ot=null),!(this instanceof on))return new on(st,mt,Ot);this.line=st,this.ch=mt,this.sticky=Ot}function Cn(st,mt){return st.line-mt.line||st.ch-mt.ch}function xi(st,mt){return st.sticky==mt.sticky&&Cn(st,mt)==0}function Zi(st){return on(st.line,st.ch)}function Wi(st,mt){return Cn(st,mt)<0?mt:st}function oi(st,mt){return Cn(st,mt)<0?st:mt}function ri(st,mt){return Math.max(st.first,Math.min(mt,st.first+st.size-1))}function Zn(st,mt){if(mt.line<st.first)return on(st.first,0);var Ot=st.first+st.size-1;return mt.line>Ot?on(Ot,Bn(st,Ot).text.length):ur(mt,Bn(st,mt.line).text.length)}function ur(st,mt){var Ot=st.ch;return Ot==null||Ot>mt?on(st.line,mt):Ot<0?on(st.line,0):st}function Yr(st,mt){for(var Ot=[],Tt=0;Tt<mt.length;Tt++)Ot[Tt]=Zn(st,mt[Tt]);return Ot}var br=function(st,mt){this.state=st,this.lookAhead=mt},mn=function(st,mt,Ot,Tt){this.state=mt,this.doc=st,this.line=Ot,this.maxLookAhead=Tt||0,this.baseTokens=null,this.baseTokenPos=1};mn.prototype.lookAhead=function(st){var mt=this.doc.getLine(this.line+st);return mt!=null&&st>this.maxLookAhead&&(this.maxLookAhead=st),mt},mn.prototype.baseToken=function(st){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=st;)this.baseTokenPos+=2;var mt=this.baseTokens[this.baseTokenPos+1];return{type:mt&&mt.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-st}},mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mn.fromSaved=function(st,mt,Ot){return mt instanceof br?new mn(st,zn(st.mode,mt.state),Ot,mt.lookAhead):new mn(st,zn(st.mode,mt),Ot)},mn.prototype.save=function(st){var mt=st!==!1?zn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new br(mt,this.maxLookAhead):mt};function er(st,mt,Ot,Tt){var Dt=[st.state.modeGen],qt={};hr(st,mt.text,st.doc.mode,Ot,function(Fe,Qe){return Dt.push(Fe,Qe)},qt,Tt);for(var ce=Ot.state,Ce=function(Fe){Ot.baseTokens=Dt;var Qe=st.state.overlays[Fe],ze=1,ln=0;Ot.state=!0,hr(st,mt.text,Qe.mode,Ot,function(an,kn){for(var Tn=ze;ln<an;){var In=Dt[ze];In>an&&Dt.splice(ze,1,an,Dt[ze+1],In),ze+=2,ln=Math.min(an,In)}if(kn)if(Qe.opaque)Dt.splice(Tn,ze-Tn,an,"overlay "+kn),ze=Tn+2;else for(;Tn<ze;Tn+=2){var Hn=Dt[Tn+1];Dt[Tn+1]=(Hn?Hn+" ":"")+"overlay "+kn}},qt),Ot.state=ce,Ot.baseTokens=null,Ot.baseTokenPos=1},be=0;be<st.state.overlays.length;++be)Ce(be);return{styles:Dt,classes:qt.bgClass||qt.textClass?qt:null}}function cr(st,mt,Ot){if(!mt.styles||mt.styles[0]!=st.state.modeGen){var Tt=Mi(st,We(mt)),Dt=mt.text.length>st.options.maxHighlightLength&&zn(st.doc.mode,Tt.state),qt=er(st,mt,Tt);Dt&&(Tt.state=Dt),mt.stateAfter=Tt.save(!Dt),mt.styles=qt.styles,qt.classes?mt.styleClasses=qt.classes:mt.styleClasses&&(mt.styleClasses=null),Ot===st.doc.highlightFrontier&&(st.doc.modeFrontier=Math.max(st.doc.modeFrontier,++st.doc.highlightFrontier))}return mt.styles}function Mi(st,mt,Ot){var Tt=st.doc,Dt=st.display;if(!Tt.mode.startState)return new mn(Tt,!0,mt);var qt=Vi(st,mt,Ot),ce=qt>Tt.first&&Bn(Tt,qt-1).stateAfter,Ce=ce?mn.fromSaved(Tt,ce,qt):new mn(Tt,hi(Tt.mode),qt);return Tt.iter(qt,mt,function(be){sn(st,be.text,Ce);var Fe=Ce.line;be.stateAfter=Fe==mt-1||Fe%5==0||Fe>=Dt.viewFrom&&Fe<Dt.viewTo?Ce.save():null,Ce.nextLine()}),Ot&&(Tt.modeFrontier=Ce.line),Ce}function sn(st,mt,Ot,Tt){var Dt=st.doc.mode,qt=new bn(mt,st.options.tabSize,Ot);for(qt.start=qt.pos=Tt||0,mt==""&&On(Dt,Ot.state);!qt.eol();)Qn(Dt,qt,Ot.state),qt.start=qt.pos}function On(st,mt){if(st.blankLine)return st.blankLine(mt);if(st.innerMode){var Ot=Jn(st,mt);if(Ot.mode.blankLine)return Ot.mode.blankLine(Ot.state)}}function Qn(st,mt,Ot,Tt){for(var Dt=0;Dt<10;Dt++){Tt&&(Tt[0]=Jn(st,Ot).mode);var qt=st.token(mt,Ot);if(mt.pos>mt.start)return qt}throw new Error("Mode "+st.name+" failed to advance stream.")}var si=function(st,mt,Ot){this.start=st.start,this.end=st.pos,this.string=st.current(),this.type=mt||null,this.state=Ot};function ei(st,mt,Ot,Tt){var Dt=st.doc,qt=Dt.mode,ce;mt=Zn(Dt,mt);var Ce=Bn(Dt,mt.line),be=Mi(st,mt.line,Ot),Fe=new bn(Ce.text,st.options.tabSize,be),Qe;for(Tt&&(Qe=[]);(Tt||Fe.pos<mt.ch)&&!Fe.eol();)Fe.start=Fe.pos,ce=Qn(qt,Fe,be.state),Tt&&Qe.push(new si(Fe,ce,zn(Dt.mode,be.state)));return Tt?Qe:new si(Fe,ce,be.state)}function Li(st,mt){if(st)for(;;){var Ot=st.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Ot)break;st=st.slice(0,Ot.index)+st.slice(Ot.index+Ot[0].length);var Tt=Ot[1]?"bgClass":"textClass";mt[Tt]==null?mt[Tt]=Ot[2]:new RegExp("(?:^|\\s)"+Ot[2]+"(?:$|\\s)").test(mt[Tt])||(mt[Tt]+=" "+Ot[2])}return st}function hr(st,mt,Ot,Tt,Dt,qt,ce){var Ce=Ot.flattenSpans;Ce==null&&(Ce=st.options.flattenSpans);var be=0,Fe=null,Qe=new bn(mt,st.options.tabSize,Tt),ze,ln=st.options.addModeClass&&[null];for(mt==""&&Li(On(Ot,Tt.state),qt);!Qe.eol();){if(Qe.pos>st.options.maxHighlightLength?(Ce=!1,ce&&sn(st,mt,Tt,Qe.pos),Qe.pos=mt.length,ze=null):ze=Li(Qn(Ot,Qe,Tt.state,ln),qt),ln){var an=ln[0].name;an&&(ze="m-"+(ze?an+" "+ze:an))}if(!Ce||Fe!=ze){for(;be<Qe.start;)be=Math.min(Qe.start,be+5e3),Dt(be,Fe);Fe=ze}Qe.start=Qe.pos}for(;be<Qe.pos;){var kn=Math.min(Qe.pos,be+5e3);Dt(kn,Fe),be=kn}}function Vi(st,mt,Ot){for(var Tt,Dt,qt=st.doc,ce=Ot?-1:mt-(st.doc.mode.innerMode?1e3:100),Ce=mt;Ce>ce;--Ce){if(Ce<=qt.first)return qt.first;var be=Bn(qt,Ce-1),Fe=be.stateAfter;if(Fe&&(!Ot||Ce+(Fe instanceof br?Fe.lookAhead:0)<=qt.modeFrontier))return Ce;var Qe=Kt(be.text,null,st.options.tabSize);(Dt==null||Tt>Qe)&&(Dt=Ce-1,Tt=Qe)}return Dt}function Yi(st,mt){if(st.modeFrontier=Math.min(st.modeFrontier,mt),!(st.highlightFrontier<mt-10)){for(var Ot=st.first,Tt=mt-1;Tt>Ot;Tt--){var Dt=Bn(st,Tt).stateAfter;if(Dt&&(!(Dt instanceof br)||Tt+Dt.lookAhead<mt)){Ot=Tt+1;break}}st.highlightFrontier=Math.min(st.highlightFrontier,Ot)}}var fr=!1,vn=!1;function Qi(){fr=!0}function gn(){vn=!0}function qi(st,mt,Ot){this.marker=st,this.from=mt,this.to=Ot}function Io(st,mt){if(st)for(var Ot=0;Ot<st.length;++Ot){var Tt=st[Ot];if(Tt.marker==mt)return Tt}}function Kr(st,mt){for(var Ot,Tt=0;Tt<st.length;++Tt)st[Tt]!=mt&&(Ot||(Ot=[])).push(st[Tt]);return Ot}function Zo(st,mt){st.markedSpans=st.markedSpans?st.markedSpans.concat([mt]):[mt],mt.marker.attachLine(st)}function Xr(st,mt,Ot){var Tt;if(st)for(var Dt=0;Dt<st.length;++Dt){var qt=st[Dt],ce=qt.marker,Ce=qt.from==null||(ce.inclusiveLeft?qt.from<=mt:qt.from<mt);if(Ce||qt.from==mt&&ce.type=="bookmark"&&(!Ot||!qt.marker.insertLeft)){var be=qt.to==null||(ce.inclusiveRight?qt.to>=mt:qt.to>mt);(Tt||(Tt=[])).push(new qi(ce,qt.from,be?null:qt.to))}}return Tt}function Ri(st,mt,Ot){var Tt;if(st)for(var Dt=0;Dt<st.length;++Dt){var qt=st[Dt],ce=qt.marker,Ce=qt.to==null||(ce.inclusiveRight?qt.to>=mt:qt.to>mt);if(Ce||qt.from==mt&&ce.type=="bookmark"&&(!Ot||qt.marker.insertLeft)){var be=qt.from==null||(ce.inclusiveLeft?qt.from<=mt:qt.from<mt);(Tt||(Tt=[])).push(new qi(ce,be?null:qt.from-mt,qt.to==null?null:qt.to-mt))}}return Tt}function Cr(st,mt){if(mt.full)return null;var Ot=ti(st,mt.from.line)&&Bn(st,mt.from.line).markedSpans,Tt=ti(st,mt.to.line)&&Bn(st,mt.to.line).markedSpans;if(!Ot&&!Tt)return null;var Dt=mt.from.ch,qt=mt.to.ch,ce=Cn(mt.from,mt.to)==0,Ce=Xr(Ot,Dt,ce),be=Ri(Tt,qt,ce),Fe=mt.text.length==1,Qe=Se(mt.text).length+(Fe?Dt:0);if(Ce)for(var ze=0;ze<Ce.length;++ze){var ln=Ce[ze];if(ln.to==null){var an=Io(be,ln.marker);an?Fe&&(ln.to=an.to==null?null:an.to+Qe):ln.to=Dt}}if(be)for(var kn=0;kn<be.length;++kn){var Tn=be[kn];if(Tn.to!=null&&(Tn.to+=Qe),Tn.from==null){var In=Io(Ce,Tn.marker);In||(Tn.from=Qe,Fe&&(Ce||(Ce=[])).push(Tn))}else Tn.from+=Qe,Fe&&(Ce||(Ce=[])).push(Tn)}Ce&&(Ce=ba(Ce)),be&&be!=Ce&&(be=ba(be));var Hn=[Ce];if(!Fe){var ni=mt.text.length-2,Kn;if(ni>0&&Ce)for(var ui=0;ui<Ce.length;++ui)Ce[ui].to==null&&(Kn||(Kn=[])).push(new qi(Ce[ui].marker,null,null));for(var Ai=0;Ai<ni;++Ai)Hn.push(Kn);Hn.push(be)}return Hn}function ba(st){for(var mt=0;mt<st.length;++mt){var Ot=st[mt];Ot.from!=null&&Ot.from==Ot.to&&Ot.marker.clearWhenEmpty!==!1&&st.splice(mt--,1)}return st.length?st:null}function uo(st,mt,Ot){var Tt=null;if(st.iter(mt.line,Ot.line+1,function(an){if(an.markedSpans)for(var kn=0;kn<an.markedSpans.length;++kn){var Tn=an.markedSpans[kn].marker;Tn.readOnly&&(!Tt||we(Tt,Tn)==-1)&&(Tt||(Tt=[])).push(Tn)}}),!Tt)return null;for(var Dt=[{from:mt,to:Ot}],qt=0;qt<Tt.length;++qt)for(var ce=Tt[qt],Ce=ce.find(0),be=0;be<Dt.length;++be){var Fe=Dt[be];if(!(Cn(Fe.to,Ce.from)<0||Cn(Fe.from,Ce.to)>0)){var Qe=[be,1],ze=Cn(Fe.from,Ce.from),ln=Cn(Fe.to,Ce.to);(ze<0||!ce.inclusiveLeft&&!ze)&&Qe.push({from:Fe.from,to:Ce.from}),(ln>0||!ce.inclusiveRight&&!ln)&&Qe.push({from:Ce.to,to:Fe.to}),Dt.splice.apply(Dt,Qe),be+=Qe.length-3}}return Dt}function Rn(st){var mt=st.markedSpans;if(mt){for(var Ot=0;Ot<mt.length;++Ot)mt[Ot].marker.detachLine(st);st.markedSpans=null}}function Ee(st,mt){if(mt){for(var Ot=0;Ot<mt.length;++Ot)mt[Ot].marker.attachLine(st);st.markedSpans=mt}}function jo(st){return st.inclusiveLeft?-1:0}function Qo(st){return st.inclusiveRight?1:0}function Tl(st,mt){var Ot=st.lines.length-mt.lines.length;if(Ot!=0)return Ot;var Tt=st.find(),Dt=mt.find(),qt=Cn(Tt.from,Dt.from)||jo(st)-jo(mt);if(qt)return-qt;var ce=Cn(Tt.to,Dt.to)||Qo(st)-Qo(mt);return ce||mt.id-st.id}function Pa(st,mt){var Ot=vn&&st.markedSpans,Tt;if(Ot)for(var Dt=void 0,qt=0;qt<Ot.length;++qt)Dt=Ot[qt],Dt.marker.collapsed&&(mt?Dt.from:Dt.to)==null&&(!Tt||Tl(Tt,Dt.marker)<0)&&(Tt=Dt.marker);return Tt}function _l(st){return Pa(st,!0)}function bu(st){return Pa(st,!1)}function ec(st,mt){var Ot=vn&&st.markedSpans,Tt;if(Ot)for(var Dt=0;Dt<Ot.length;++Dt){var qt=Ot[Dt];qt.marker.collapsed&&(qt.from==null||qt.from<mt)&&(qt.to==null||qt.to>mt)&&(!Tt||Tl(Tt,qt.marker)<0)&&(Tt=qt.marker)}return Tt}function nc(st,mt,Ot,Tt,Dt){var qt=Bn(st,mt),ce=vn&&qt.markedSpans;if(ce)for(var Ce=0;Ce<ce.length;++Ce){var be=ce[Ce];if(be.marker.collapsed){var Fe=be.marker.find(0),Qe=Cn(Fe.from,Ot)||jo(be.marker)-jo(Dt),ze=Cn(Fe.to,Tt)||Qo(be.marker)-Qo(Dt);if(!(Qe>=0&&ze<=0||Qe<=0&&ze>=0)&&(Qe<=0&&(be.marker.inclusiveRight&&Dt.inclusiveLeft?Cn(Fe.to,Ot)>=0:Cn(Fe.to,Ot)>0)||Qe>=0&&(be.marker.inclusiveRight&&Dt.inclusiveLeft?Cn(Fe.from,Tt)<=0:Cn(Fe.from,Tt)<0)))return!0}}}function Er(st){for(var mt;mt=_l(st);)st=mt.find(-1,!0).line;return st}function Zr(st){for(var mt;mt=bu(st);)st=mt.find(1,!0).line;return st}function aa(st){for(var mt,Ot;mt=bu(st);)st=mt.find(1,!0).line,(Ot||(Ot=[])).push(st);return Ot}function vi(st,mt){var Ot=Bn(st,mt),Tt=Er(Ot);return Ot==Tt?mt:We(Tt)}function qn(st,mt){if(mt>st.lastLine())return mt;var Ot=Bn(st,mt),Tt;if(!xn(st,Ot))return mt;for(;Tt=bu(Ot);)Ot=Tt.find(1,!0).line;return We(Ot)+1}function xn(st,mt){var Ot=vn&&mt.markedSpans;if(Ot){for(var Tt=void 0,Dt=0;Dt<Ot.length;++Dt)if(Tt=Ot[Dt],!!Tt.marker.collapsed){if(Tt.from==null)return!0;if(!Tt.marker.widgetNode&&Tt.from==0&&Tt.marker.inclusiveLeft&&ai(st,mt,Tt))return!0}}}function ai(st,mt,Ot){if(Ot.to==null){var Tt=Ot.marker.find(1,!0);return ai(st,Tt.line,Io(Tt.line.markedSpans,Ot.marker))}if(Ot.marker.inclusiveRight&&Ot.to==mt.text.length)return!0;for(var Dt=void 0,qt=0;qt<mt.markedSpans.length;++qt)if(Dt=mt.markedSpans[qt],Dt.marker.collapsed&&!Dt.marker.widgetNode&&Dt.from==Ot.to&&(Dt.to==null||Dt.to!=Ot.from)&&(Dt.marker.inclusiveLeft||Ot.marker.inclusiveRight)&&ai(st,mt,Dt))return!0}function zi(st){st=Er(st);for(var mt=0,Ot=st.parent,Tt=0;Tt<Ot.lines.length;++Tt){var Dt=Ot.lines[Tt];if(Dt==st)break;mt+=Dt.height}for(var qt=Ot.parent;qt;Ot=qt,qt=Ot.parent)for(var ce=0;ce<qt.children.length;++ce){var Ce=qt.children[ce];if(Ce==Ot)break;mt+=Ce.height}return mt}function jr(st){if(st.height==0)return 0;for(var mt=st.text.length,Ot,Tt=st;Ot=_l(Tt);){var Dt=Ot.find(0,!0);Tt=Dt.from.line,mt+=Dt.from.ch-Dt.to.ch}for(Tt=st;Ot=bu(Tt);){var qt=Ot.find(0,!0);mt-=Tt.text.length-qt.from.ch,Tt=qt.to.line,mt+=Tt.text.length-qt.to.ch}return mt}function Qr(st){var mt=st.display,Ot=st.doc;mt.maxLine=Bn(Ot,Ot.first),mt.maxLineLength=jr(mt.maxLine),mt.maxLineChanged=!0,Ot.iter(function(Tt){var Dt=jr(Tt);Dt>mt.maxLineLength&&(mt.maxLineLength=Dt,mt.maxLine=Tt)})}var Ur=function(st,mt,Ot){this.text=st,Ee(this,mt),this.height=Ot?Ot(this):1};Ur.prototype.lineNo=function(){return We(this)},En(Ur);function mo(st,mt,Ot,Tt){st.text=mt,st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null),st.order!=null&&(st.order=null),Rn(st),Ee(st,Ot);var Dt=Tt?Tt(st):1;Dt!=st.height&&ir(st,Dt)}function Jr(st){st.parent=null,Rn(st)}var Ca={},Is={};function Ol(st,mt){if(!st||/^\s*$/.test(st))return null;var Ot=mt.addModeClass?Is:Ca;return Ot[st]||(Ot[st]=st.replace(/\S+/g,"cm-$&"))}function $e(st,mt){var Ot=It("span",null,null,pt?"padding-right: .1px":null),Tt={pre:It("pre",[Ot],"CodeMirror-line"),content:Ot,col:0,pos:0,cm:st,trailingSpace:!1,splitSpaces:st.getOption("lineWrapping")};mt.measure={};for(var Dt=0;Dt<=(mt.rest?mt.rest.length:0);Dt++){var qt=Dt?mt.rest[Dt-1]:mt.line,ce=void 0;Tt.pos=0,Tt.addToken=Pu,lr(st.display.measure)&&(ce=ge(qt,st.doc.direction))&&(Tt.addToken=Cu(Tt.addToken,ce)),Tt.map=[];var Ce=mt!=st.display.externalMeasured&&We(qt);$a(qt,Tt,cr(st,qt,Ce)),qt.styleClasses&&(qt.styleClasses.bgClass&&(Tt.bgClass=Ht(qt.styleClasses.bgClass,Tt.bgClass||"")),qt.styleClasses.textClass&&(Tt.textClass=Ht(qt.styleClasses.textClass,Tt.textClass||""))),Tt.map.length==0&&Tt.map.push(0,0,Tt.content.appendChild(Or(st.display.measure))),Dt==0?(mt.measure.map=Tt.map,mt.measure.cache={}):((mt.measure.maps||(mt.measure.maps=[])).push(Tt.map),(mt.measure.caches||(mt.measure.caches=[])).push({}))}if(pt){var be=Tt.content.lastChild;(/\bcm-tab\b/.test(be.className)||be.querySelector&&be.querySelector(".cm-tab"))&&(Tt.content.className="cm-tab-wrap-hack")}return Ze(st,"renderLine",st,mt.line,Tt.pre),Tt.pre.className&&(Tt.textClass=Ht(Tt.pre.className,Tt.textClass||"")),Tt}function Es(st){var mt=Lt("span","\u2022","cm-invalidchar");return mt.title="\\u"+st.charCodeAt(0).toString(16),mt.setAttribute("aria-label",mt.title),mt}function Pu(st,mt,Ot,Tt,Dt,qt,ce){if(mt){var Ce=st.splitSpaces?Ba(mt,st.trailingSpace):mt,be=st.cm.state.specialChars,Fe=!1,Qe;if(!be.test(mt))st.col+=mt.length,Qe=document.createTextNode(Ce),st.map.push(st.pos,st.pos+mt.length,Qe),Ct&&St<9&&(Fe=!0),st.pos+=mt.length;else{Qe=document.createDocumentFragment();for(var ze=0;;){be.lastIndex=ze;var ln=be.exec(mt),an=ln?ln.index-ze:mt.length-ze;if(an){var kn=document.createTextNode(Ce.slice(ze,ze+an));Ct&&St<9?Qe.appendChild(Lt("span",[kn])):Qe.appendChild(kn),st.map.push(st.pos,st.pos+an,kn),st.col+=an,st.pos+=an}if(!ln)break;ze+=an+1;var Tn=void 0;if(ln[0]==" "){var In=st.cm.options.tabSize,Hn=In-st.col%In;Tn=Qe.appendChild(Lt("span",He(Hn),"cm-tab")),Tn.setAttribute("role","presentation"),Tn.setAttribute("cm-text"," "),st.col+=Hn}else ln[0]=="\r"||ln[0]==`
`?(Tn=Qe.appendChild(Lt("span",ln[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Tn.setAttribute("cm-text",ln[0]),st.col+=1):(Tn=st.cm.options.specialCharPlaceholder(ln[0]),Tn.setAttribute("cm-text",ln[0]),Ct&&St<9?Qe.appendChild(Lt("span",[Tn])):Qe.appendChild(Tn),st.col+=1);st.map.push(st.pos,st.pos+1,Tn),st.pos++}}if(st.trailingSpace=Ce.charCodeAt(mt.length-1)==32,Ot||Tt||Dt||Fe||qt||ce){var ni=Ot||"";Tt&&(ni+=Tt),Dt&&(ni+=Dt);var Kn=Lt("span",[Qe],ni,qt);if(ce)for(var ui in ce)ce.hasOwnProperty(ui)&&ui!="style"&&ui!="class"&&Kn.setAttribute(ui,ce[ui]);return st.content.appendChild(Kn)}st.content.appendChild(Qe)}}function Ba(st,mt){if(st.length>1&&!/ /.test(st))return st;for(var Ot=mt,Tt="",Dt=0;Dt<st.length;Dt++){var qt=st.charAt(Dt);qt==" "&&Ot&&(Dt==st.length-1||st.charCodeAt(Dt+1)==32)&&(qt="\xA0"),Tt+=qt,Ot=qt==" "}return Tt}function Cu(st,mt){return function(Ot,Tt,Dt,qt,ce,Ce,be){Dt=Dt?Dt+" cm-force-border":"cm-force-border";for(var Fe=Ot.pos,Qe=Fe+Tt.length;;){for(var ze=void 0,ln=0;ln<mt.length&&(ze=mt[ln],!(ze.to>Fe&&ze.from<=Fe));ln++);if(ze.to>=Qe)return st(Ot,Tt,Dt,qt,ce,Ce,be);st(Ot,Tt.slice(0,ze.to-Fe),Dt,qt,null,Ce,be),qt=null,Tt=Tt.slice(ze.to-Fe),Fe=ze.to}}}function qr(st,mt,Ot,Tt){var Dt=!Tt&&Ot.widgetNode;Dt&&st.map.push(st.pos,st.pos+mt,Dt),!Tt&&st.cm.display.input.needsContentAttribute&&(Dt||(Dt=st.content.appendChild(document.createElement("span"))),Dt.setAttribute("cm-marker",Ot.id)),Dt&&(st.cm.display.input.setUneditable(Dt),st.content.appendChild(Dt)),st.pos+=mt,st.trailingSpace=!1}function $a(st,mt,Ot){var Tt=st.markedSpans,Dt=st.text,qt=0;if(!Tt){for(var ce=1;ce<Ot.length;ce+=2)mt.addToken(mt,Dt.slice(qt,qt=Ot[ce]),Ol(Ot[ce+1],mt.cm.options));return}for(var Ce=Dt.length,be=0,Fe=1,Qe="",ze,ln,an=0,kn,Tn,In,Hn,ni;;){if(an==be){kn=Tn=In=ln="",ni=null,Hn=null,an=1/0;for(var Kn=[],ui=void 0,Ai=0;Ai<Tt.length;++Ai){var Vn=Tt[Ai],Hi=Vn.marker;if(Hi.type=="bookmark"&&Vn.from==be&&Hi.widgetNode)Kn.push(Hi);else if(Vn.from<=be&&(Vn.to==null||Vn.to>be||Hi.collapsed&&Vn.to==be&&Vn.from==be)){if(Vn.to!=null&&Vn.to!=be&&an>Vn.to&&(an=Vn.to,Tn=""),Hi.className&&(kn+=" "+Hi.className),Hi.css&&(ln=(ln?ln+";":"")+Hi.css),Hi.startStyle&&Vn.from==be&&(In+=" "+Hi.startStyle),Hi.endStyle&&Vn.to==an&&(ui||(ui=[])).push(Hi.endStyle,Vn.to),Hi.title&&((ni||(ni={})).title=Hi.title),Hi.attributes)for(var no in Hi.attributes)(ni||(ni={}))[no]=Hi.attributes[no];Hi.collapsed&&(!Hn||Tl(Hn.marker,Hi)<0)&&(Hn=Vn)}else Vn.from>be&&an>Vn.from&&(an=Vn.from)}if(ui)for(var Vo=0;Vo<ui.length;Vo+=2)ui[Vo+1]==an&&(Tn+=" "+ui[Vo]);if(!Hn||Hn.from==be)for(var fo=0;fo<Kn.length;++fo)qr(mt,0,Kn[fo]);if(Hn&&(Hn.from||0)==be){if(qr(mt,(Hn.to==null?Ce+1:Hn.to)-be,Hn.marker,Hn.from==null),Hn.to==null)return;Hn.to==be&&(Hn=!1)}}if(be>=Ce)break;for(var ta=Math.min(Ce,an);;){if(Qe){var Ls=be+Qe.length;if(!Hn){var Ro=Ls>ta?Qe.slice(0,ta-be):Qe;mt.addToken(mt,Ro,ze?ze+kn:kn,In,be+Ro.length==an?Tn:"",ln,ni)}if(Ls>=ta){Qe=Qe.slice(ta-be),be=ta;break}be=Ls,In=""}Qe=Dt.slice(qt,qt=Ot[Fe++]),ze=Ol(Ot[Fe++],mt.cm.options)}}}function tl(st,mt,Ot){this.line=mt,this.rest=aa(mt),this.size=this.rest?We(Se(this.rest))-Ot+1:1,this.node=this.text=null,this.hidden=xn(st,mt)}function xr(st,mt,Ot){for(var Tt=[],Dt,qt=mt;qt<Ot;qt=Dt){var ce=new tl(st.doc,Bn(st.doc,qt),qt);Dt=qt+ce.size,Tt.push(ce)}return Tt}var Eo=null;function Eu(st){Eo?Eo.ops.push(st):st.ownsGroup=Eo={ops:[st],delayedCallbacks:[]}}function Jo(st){var mt=st.delayedCallbacks,Ot=0;do{for(;Ot<mt.length;Ot++)mt[Ot].call(null);for(var Tt=0;Tt<st.ops.length;Tt++){var Dt=st.ops[Tt];if(Dt.cursorActivityHandlers)for(;Dt.cursorActivityCalled<Dt.cursorActivityHandlers.length;)Dt.cursorActivityHandlers[Dt.cursorActivityCalled++].call(null,Dt.cm)}}while(Ot<mt.length)}function ch(st,mt){var Ot=st.ownsGroup;if(Ot)try{Jo(Ot)}finally{Eo=null,mt(Ot)}}var la=null;function Yn(st,mt){var Ot=Ue(st,mt);if(Ot.length){var Tt=Array.prototype.slice.call(arguments,2),Dt;Eo?Dt=Eo.delayedCallbacks:la?Dt=la:(Dt=la=[],setTimeout(If,0));for(var qt=function(Ce){Dt.push(function(){return Ot[Ce].apply(null,Tt)})},ce=0;ce<Ot.length;++ce)qt(ce)}}function If(){var st=la;la=null;for(var mt=0;mt<st.length;++mt)st[mt]()}function ic(st,mt,Ot,Tt){for(var Dt=0;Dt<mt.changes.length;Dt++){var qt=mt.changes[Dt];qt=="text"?jn(st,mt):qt=="gutter"?vo(st,mt,Ot,Tt):qt=="class"?$r(st,mt):qt=="widget"&&Zs(st,mt,Tt)}mt.changes=null}function Ra(st){return st.node==st.text&&(st.node=Lt("div",null,null,"position: relative"),st.text.parentNode&&st.text.parentNode.replaceChild(st.node,st.text),st.node.appendChild(st.text),Ct&&St<8&&(st.node.style.zIndex=2)),st.node}function Gc(st,mt){var Ot=mt.bgClass?mt.bgClass+" "+(mt.line.bgClass||""):mt.line.bgClass;if(Ot&&(Ot+=" CodeMirror-linebackground"),mt.background)Ot?mt.background.className=Ot:(mt.background.parentNode.removeChild(mt.background),mt.background=null);else if(Ot){var Tt=Ra(mt);mt.background=Tt.insertBefore(Lt("div",null,Ot),Tt.firstChild),st.display.input.setUneditable(mt.background)}}function Uc(st,mt){var Ot=st.display.externalMeasured;return Ot&&Ot.line==mt.line?(st.display.externalMeasured=null,mt.measure=Ot.measure,Ot.built):$e(st,mt)}function jn(st,mt){var Ot=mt.text.className,Tt=Uc(st,mt);mt.text==mt.node&&(mt.node=Tt.pre),mt.text.parentNode.replaceChild(Tt.pre,mt.text),mt.text=Tt.pre,Tt.bgClass!=mt.bgClass||Tt.textClass!=mt.textClass?(mt.bgClass=Tt.bgClass,mt.textClass=Tt.textClass,$r(st,mt)):Ot&&(mt.text.className=Ot)}function $r(st,mt){Gc(st,mt),mt.line.wrapClass?Ra(mt).className=mt.line.wrapClass:mt.node!=mt.text&&(mt.node.className="");var Ot=mt.textClass?mt.textClass+" "+(mt.line.textClass||""):mt.line.textClass;mt.text.className=Ot||""}function vo(st,mt,Ot,Tt){if(mt.gutter&&(mt.node.removeChild(mt.gutter),mt.gutter=null),mt.gutterBackground&&(mt.node.removeChild(mt.gutterBackground),mt.gutterBackground=null),mt.line.gutterClass){var Dt=Ra(mt);mt.gutterBackground=Lt("div",null,"CodeMirror-gutter-background "+mt.line.gutterClass,"left: "+(st.options.fixedGutter?Tt.fixedPos:-Tt.gutterTotalWidth)+"px; width: "+Tt.gutterTotalWidth+"px"),st.display.input.setUneditable(mt.gutterBackground),Dt.insertBefore(mt.gutterBackground,mt.text)}var qt=mt.line.gutterMarkers;if(st.options.lineNumbers||qt){var ce=Ra(mt),Ce=mt.gutter=Lt("div",null,"CodeMirror-gutter-wrapper","left: "+(st.options.fixedGutter?Tt.fixedPos:-Tt.gutterTotalWidth)+"px");if(st.display.input.setUneditable(Ce),ce.insertBefore(Ce,mt.text),mt.line.gutterClass&&(Ce.className+=" "+mt.line.gutterClass),st.options.lineNumbers&&(!qt||!qt["CodeMirror-linenumbers"])&&(mt.lineNumber=Ce.appendChild(Lt("div",pr(st.options,Ot),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Tt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+st.display.lineNumInnerWidth+"px"))),qt)for(var be=0;be<st.display.gutterSpecs.length;++be){var Fe=st.display.gutterSpecs[be].className,Qe=qt.hasOwnProperty(Fe)&&qt[Fe];Qe&&Ce.appendChild(Lt("div",[Qe],"CodeMirror-gutter-elt","left: "+Tt.gutterLeft[Fe]+"px; width: "+Tt.gutterWidth[Fe]+"px"))}}}function Zs(st,mt,Ot){mt.alignable&&(mt.alignable=null);for(var Tt=At("CodeMirror-linewidget"),Dt=mt.node.firstChild,qt=void 0;Dt;Dt=qt)qt=Dt.nextSibling,Tt.test(Dt.className)&&mt.node.removeChild(Dt);jl(st,mt,Ot)}function $l(st,mt,Ot,Tt){var Dt=Uc(st,mt);return mt.text=mt.node=Dt.pre,Dt.bgClass&&(mt.bgClass=Dt.bgClass),Dt.textClass&&(mt.textClass=Dt.textClass),$r(st,mt),vo(st,mt,Ot,Tt),jl(st,mt,Tt),mt.node}function jl(st,mt,Ot){if(wi(st,mt.line,mt,Ot,!0),mt.rest)for(var Tt=0;Tt<mt.rest.length;Tt++)wi(st,mt.rest[Tt],mt,Ot,!1)}function wi(st,mt,Ot,Tt,Dt){if(mt.widgets)for(var qt=Ra(Ot),ce=0,Ce=mt.widgets;ce<Ce.length;++ce){var be=Ce[ce],Fe=Lt("div",[be.node],"CodeMirror-linewidget"+(be.className?" "+be.className:""));be.handleMouseEvents||Fe.setAttribute("cm-ignore-events","true"),fh(be,Fe,Ot,Tt),st.display.input.setUneditable(Fe),Dt&&be.above?qt.insertBefore(Fe,Ot.gutter||Ot.text):qt.appendChild(Fe),Yn(be,"redraw")}}function fh(st,mt,Ot,Tt){if(st.noHScroll){(Ot.alignable||(Ot.alignable=[])).push(mt);var Dt=Tt.wrapperWidth;mt.style.left=Tt.fixedPos+"px",st.coverGutter||(Dt-=Tt.gutterTotalWidth,mt.style.paddingLeft=Tt.gutterTotalWidth+"px"),mt.style.width=Dt+"px"}st.coverGutter&&(mt.style.zIndex=5,mt.style.position="relative",st.noHScroll||(mt.style.marginLeft=-Tt.gutterTotalWidth+"px"))}function el(st){if(st.height!=null)return st.height;var mt=st.doc.cm;if(!mt)return 0;if(!Xt(document.body,st.node)){var Ot="position: relative;";st.coverGutter&&(Ot+="margin-left: -"+mt.display.gutters.offsetWidth+"px;"),st.noHScroll&&(Ot+="width: "+mt.display.wrapper.clientWidth+"px;"),jt(mt.display.measure,Lt("div",[st.node],null,Ot))}return st.height=st.node.parentNode.offsetHeight}function Fs(st,mt){for(var Ot=Oi(mt);Ot!=st.wrapper;Ot=Ot.parentNode)if(!Ot||Ot.nodeType==1&&Ot.getAttribute("cm-ignore-events")=="true"||Ot.parentNode==st.sizer&&Ot!=st.mover)return!0}function qo(st){return st.lineSpace.offsetTop}function gl(st){return st.mover.offsetHeight-st.lineSpace.offsetHeight}function ml(st){if(st.cachedPaddingH)return st.cachedPaddingH;var mt=jt(st.measure,Lt("pre","x","CodeMirror-line-like")),Ot=window.getComputedStyle?window.getComputedStyle(mt):mt.currentStyle,Tt={left:parseInt(Ot.paddingLeft),right:parseInt(Ot.paddingRight)};return!isNaN(Tt.left)&&!isNaN(Tt.right)&&(st.cachedPaddingH=Tt),Tt}function As(st){return Me-st.display.nativeBarWidth}function Ea(st){return st.display.scroller.clientWidth-As(st)-st.display.barWidth}function yn(st){return st.display.scroller.clientHeight-As(st)-st.display.barHeight}function ci(st,mt,Ot){var Tt=st.options.lineWrapping,Dt=Tt&&Ea(st);if(!mt.measure.heights||Tt&&mt.measure.width!=Dt){var qt=mt.measure.heights=[];if(Tt){mt.measure.width=Dt;for(var ce=mt.text.firstChild.getClientRects(),Ce=0;Ce<ce.length-1;Ce++){var be=ce[Ce],Fe=ce[Ce+1];Math.abs(be.bottom-Fe.bottom)>2&&qt.push((be.bottom+Fe.top)/2-Ot.top)}}qt.push(Ot.bottom-Ot.top)}}function Ei(st,mt,Ot){if(st.line==mt)return{map:st.measure.map,cache:st.measure.cache};for(var Tt=0;Tt<st.rest.length;Tt++)if(st.rest[Tt]==mt)return{map:st.measure.maps[Tt],cache:st.measure.caches[Tt]};for(var Dt=0;Dt<st.rest.length;Dt++)if(We(st.rest[Dt])>Ot)return{map:st.measure.maps[Dt],cache:st.measure.caches[Dt],before:!0}}function Ii(st,mt){mt=Er(mt);var Ot=We(mt),Tt=st.display.externalMeasured=new tl(st.doc,mt,Ot);Tt.lineN=Ot;var Dt=Tt.built=$e(st,Tt);return Tt.text=Dt.pre,jt(st.display.lineMeasure,Dt.pre),Tt}function rr(st,mt,Ot,Tt){return Nr(st,Ir(st,mt),Ot,Tt)}function ji(st,mt){if(mt>=st.display.viewFrom&&mt<st.display.viewTo)return st.display.view[Aa(st,mt)];var Ot=st.display.externalMeasured;if(Ot&&mt>=Ot.lineN&&mt<Ot.lineN+Ot.size)return Ot}function Ir(st,mt){var Ot=We(mt),Tt=ji(st,Ot);Tt&&!Tt.text?Tt=null:Tt&&Tt.changes&&(ic(st,Tt,Ot,zf(st)),st.curOp.forceUpdate=!0),Tt||(Tt=Ii(st,mt));var Dt=Ei(Tt,mt,Ot);return{line:mt,view:Tt,rect:null,map:Dt.map,cache:Dt.cache,before:Dt.before,hasHeights:!1}}function Nr(st,mt,Ot,Tt,Dt){mt.before&&(Ot=-1);var qt=Ot+(Tt||""),ce;return mt.cache.hasOwnProperty(qt)?ce=mt.cache[qt]:(mt.rect||(mt.rect=mt.view.text.getBoundingClientRect()),mt.hasHeights||(ci(st,mt.view,mt.rect),mt.hasHeights=!0),ce=oo(st,mt,Ot,Tt),ce.bogus||(mt.cache[qt]=ce)),{left:ce.left,right:ce.right,top:Dt?ce.rtop:ce.top,bottom:Dt?ce.rbottom:ce.bottom}}var $o={left:0,right:0,top:0,bottom:0};function bo(st,mt,Ot){for(var Tt,Dt,qt,ce,Ce,be,Fe=0;Fe<st.length;Fe+=3)if(Ce=st[Fe],be=st[Fe+1],mt<Ce?(Dt=0,qt=1,ce="left"):mt<be?(Dt=mt-Ce,qt=Dt+1):(Fe==st.length-3||mt==be&&st[Fe+3]>mt)&&(qt=be-Ce,Dt=qt-1,mt>=be&&(ce="right")),Dt!=null){if(Tt=st[Fe+2],Ce==be&&Ot==(Tt.insertLeft?"left":"right")&&(ce=Ot),Ot=="left"&&Dt==0)for(;Fe&&st[Fe-2]==st[Fe-3]&&st[Fe-1].insertLeft;)Tt=st[(Fe-=3)+2],ce="left";if(Ot=="right"&&Dt==be-Ce)for(;Fe<st.length-3&&st[Fe+3]==st[Fe+4]&&!st[Fe+5].insertLeft;)Tt=st[(Fe+=3)+2],ce="right";break}return{node:Tt,start:Dt,end:qt,collapse:ce,coverStart:Ce,coverEnd:be}}function Ms(st,mt){var Ot=$o;if(mt=="left")for(var Tt=0;Tt<st.length&&(Ot=st[Tt]).left==Ot.right;Tt++);else for(var Dt=st.length-1;Dt>=0&&(Ot=st[Dt]).left==Ot.right;Dt--);return Ot}function oo(st,mt,Ot,Tt){var Dt=bo(mt.map,Ot,Tt),qt=Dt.node,ce=Dt.start,Ce=Dt.end,be=Dt.collapse,Fe;if(qt.nodeType==3){for(var Qe=0;Qe<4;Qe++){for(;ce&&$t(mt.line.text.charAt(Dt.coverStart+ce));)--ce;for(;Dt.coverStart+Ce<Dt.coverEnd&&$t(mt.line.text.charAt(Dt.coverStart+Ce));)++Ce;if(Ct&&St<9&&ce==0&&Ce==Dt.coverEnd-Dt.coverStart?Fe=qt.parentNode.getBoundingClientRect():Fe=Ms(Ut(qt,ce,Ce).getClientRects(),Tt),Fe.left||Fe.right||ce==0)break;Ce=ce,ce=ce-1,be="right"}Ct&&St<11&&(Fe=rc(st.display.measure,Fe))}else{ce>0&&(be=Tt="right");var ze;st.options.lineWrapping&&(ze=qt.getClientRects()).length>1?Fe=ze[Tt=="right"?ze.length-1:0]:Fe=qt.getBoundingClientRect()}if(Ct&&St<9&&!ce&&(!Fe||!Fe.left&&!Fe.right)){var ln=qt.parentNode.getClientRects()[0];ln?Fe={left:ln.left,right:ln.left+ph(st.display),top:ln.top,bottom:ln.bottom}:Fe=$o}for(var an=Fe.top-mt.rect.top,kn=Fe.bottom-mt.rect.top,Tn=(an+kn)/2,In=mt.view.measure.heights,Hn=0;Hn<In.length-1&&!(Tn<In[Hn]);Hn++);var ni=Hn?In[Hn-1]:0,Kn=In[Hn],ui={left:(be=="right"?Fe.right:Fe.left)-mt.rect.left,right:(be=="left"?Fe.left:Fe.right)-mt.rect.left,top:ni,bottom:Kn};return!Fe.left&&!Fe.right&&(ui.bogus=!0),st.options.singleCursorHeightPerLine||(ui.rtop=an,ui.rbottom=kn),ui}function rc(st,mt){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ms(st))return mt;var Ot=screen.logicalXDPI/screen.deviceXDPI,Tt=screen.logicalYDPI/screen.deviceYDPI;return{left:mt.left*Ot,right:mt.right*Ot,top:mt.top*Tt,bottom:mt.bottom*Tt}}function dh(st){if(st.measure&&(st.measure.cache={},st.measure.heights=null,st.rest))for(var mt=0;mt<st.rest.length;mt++)st.measure.caches[mt]={}}function vl(st){st.display.externalMeasure=null,Mt(st.display.lineMeasure);for(var mt=0;mt<st.display.view.length;mt++)dh(st.display.view[mt])}function nl(st){vl(st),st.display.cachedCharWidth=st.display.cachedTextHeight=st.display.cachedPaddingH=null,st.options.lineWrapping||(st.display.maxLineChanged=!0),st.display.lineNumChars=null}function Fo(){return yt&&E?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function vs(){return yt&&E?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ao(st){var mt=0;if(st.widgets)for(var Ot=0;Ot<st.widgets.length;++Ot)st.widgets[Ot].above&&(mt+=el(st.widgets[Ot]));return mt}function Po(st,mt,Ot,Tt,Dt){if(!Dt){var qt=Ao(mt);Ot.top+=qt,Ot.bottom+=qt}if(Tt=="line")return Ot;Tt||(Tt="local");var ce=zi(mt);if(Tt=="local"?ce+=qo(st.display):ce-=st.display.viewOffset,Tt=="page"||Tt=="window"){var Ce=st.display.lineSpace.getBoundingClientRect();ce+=Ce.top+(Tt=="window"?0:vs());var be=Ce.left+(Tt=="window"?0:Fo());Ot.left+=be,Ot.right+=be}return Ot.top+=ce,Ot.bottom+=ce,Ot}function il(st,mt,Ot){if(Ot=="div")return mt;var Tt=mt.left,Dt=mt.top;if(Ot=="page")Tt-=Fo(),Dt-=vs();else if(Ot=="local"||!Ot){var qt=st.display.sizer.getBoundingClientRect();Tt+=qt.left,Dt+=qt.top}var ce=st.display.lineSpace.getBoundingClientRect();return{left:Tt-ce.left,top:Dt-ce.top}}function tu(st,mt,Ot,Tt,Dt){return Tt||(Tt=Bn(st.doc,mt.line)),Po(st,Tt,rr(st,Tt,mt.ch,Dt),Ot)}function ho(st,mt,Ot,Tt,Dt,qt){Tt=Tt||Bn(st.doc,mt.line),Dt||(Dt=Ir(st,Tt));function ce(kn,Tn){var In=Nr(st,Dt,kn,Tn?"right":"left",qt);return Tn?In.left=In.right:In.right=In.left,Po(st,Tt,In,Ot)}var Ce=ge(Tt,st.doc.direction),be=mt.ch,Fe=mt.sticky;if(be>=Tt.text.length?(be=Tt.text.length,Fe="before"):be<=0&&(be=0,Fe="after"),!Ce)return ce(Fe=="before"?be-1:be,Fe=="before");function Qe(kn,Tn,In){var Hn=Ce[Tn],ni=Hn.level==1;return ce(In?kn-1:kn,ni!=In)}var ze=Bt(Ce,be,Fe),ln=Wt,an=Qe(be,ze,Fe=="before");return ln!=null&&(an.other=Qe(be,ln,Fe!="before")),an}function Ff(st,mt){var Ot=0;mt=Zn(st.doc,mt),st.options.lineWrapping||(Ot=ph(st.display)*mt.ch);var Tt=Bn(st.doc,mt.line),Dt=zi(Tt)+qo(st.display);return{left:Ot,right:Ot,top:Dt,bottom:Dt+Tt.height}}function Bf(st,mt,Ot,Tt,Dt){var qt=on(st,mt,Ot);return qt.xRel=Dt,Tt&&(qt.outside=Tt),qt}function Rf(st,mt,Ot){var Tt=st.doc;if(Ot+=st.display.viewOffset,Ot<0)return Bf(Tt.first,0,null,-1,-1);var Dt=Nn(Tt,Ot),qt=Tt.first+Tt.size-1;if(Dt>qt)return Bf(Tt.first+Tt.size-1,Bn(Tt,qt).text.length,null,1,1);mt<0&&(mt=0);for(var ce=Bn(Tt,Dt);;){var Ce=pn(st,ce,Dt,mt,Ot),be=ec(ce,Ce.ch+(Ce.xRel>0||Ce.outside>0?1:0));if(!be)return Ce;var Fe=be.find(1);if(Fe.line==Dt)return Fe;ce=Bn(Tt,Dt=Fe.line)}}function Xn(st,mt,Ot,Tt){Tt-=Ao(mt);var Dt=mt.text.length,qt=ye(function(ce){return Nr(st,Ot,ce-1).bottom<=Tt},Dt,0);return Dt=ye(function(ce){return Nr(st,Ot,ce).top>Tt},qt,Dt),{begin:qt,end:Dt}}function qd(st,mt,Ot,Tt){Ot||(Ot=Ir(st,mt));var Dt=Po(st,mt,Nr(st,Ot,Tt),"line").top;return Xn(st,mt,Ot,Dt)}function Ge(st,mt,Ot,Tt){return st.bottom<=Ot?!1:st.top>Ot?!0:(Tt?st.left:st.right)>mt}function pn(st,mt,Ot,Tt,Dt){Dt-=zi(mt);var qt=Ir(st,mt),ce=Ao(mt),Ce=0,be=mt.text.length,Fe=!0,Qe=ge(mt,st.doc.direction);if(Qe){var ze=(st.options.lineWrapping?Ng:jg)(st,mt,Ot,qt,Qe,Tt,Dt);Fe=ze.level!=1,Ce=Fe?ze.from:ze.to-1,be=Fe?ze.to:ze.from-1}var ln=null,an=null,kn=ye(function(Ai){var Vn=Nr(st,qt,Ai);return Vn.top+=ce,Vn.bottom+=ce,Ge(Vn,Tt,Dt,!1)?(Vn.top<=Dt&&Vn.left<=Tt&&(ln=Ai,an=Vn),!0):!1},Ce,be),Tn,In,Hn=!1;if(an){var ni=Tt-an.left<an.right-Tt,Kn=ni==Fe;kn=ln+(Kn?0:1),In=Kn?"after":"before",Tn=ni?an.left:an.right}else{!Fe&&(kn==be||kn==Ce)&&kn++,In=kn==0?"after":kn==mt.text.length?"before":Nr(st,qt,kn-(Fe?1:0)).bottom+ce<=Dt==Fe?"after":"before";var ui=ho(st,on(Ot,kn,In),"line",mt,qt);Tn=ui.left,Hn=Dt<ui.top?-1:Dt>=ui.bottom?1:0}return kn=he(mt.text,kn,1),Bf(Ot,kn,In,Hn,Tt-Tn)}function jg(st,mt,Ot,Tt,Dt,qt,ce){var Ce=ye(function(ze){var ln=Dt[ze],an=ln.level!=1;return Ge(ho(st,on(Ot,an?ln.to:ln.from,an?"before":"after"),"line",mt,Tt),qt,ce,!0)},0,Dt.length-1),be=Dt[Ce];if(Ce>0){var Fe=be.level!=1,Qe=ho(st,on(Ot,Fe?be.from:be.to,Fe?"after":"before"),"line",mt,Tt);Ge(Qe,qt,ce,!0)&&Qe.top>ce&&(be=Dt[Ce-1])}return be}function Ng(st,mt,Ot,Tt,Dt,qt,ce){var Ce=Xn(st,mt,Tt,ce),be=Ce.begin,Fe=Ce.end;/\s/.test(mt.text.charAt(Fe-1))&&Fe--;for(var Qe=null,ze=null,ln=0;ln<Dt.length;ln++){var an=Dt[ln];if(!(an.from>=Fe||an.to<=be)){var kn=an.level!=1,Tn=Nr(st,Tt,kn?Math.min(Fe,an.to)-1:Math.max(be,an.from)).right,In=Tn<qt?qt-Tn+1e9:Tn-qt;(!Qe||ze>In)&&(Qe=an,ze=In)}}return Qe||(Qe=Dt[Dt.length-1]),Qe.from<be&&(Qe={from:be,to:Qe.to,level:Qe.level}),Qe.to>Fe&&(Qe={from:Qe.from,to:Fe,level:Qe.level}),Qe}var eu;function nu(st){if(st.cachedTextHeight!=null)return st.cachedTextHeight;if(eu==null){eu=Lt("pre",null,"CodeMirror-line-like");for(var mt=0;mt<49;++mt)eu.appendChild(document.createTextNode("x")),eu.appendChild(Lt("br"));eu.appendChild(document.createTextNode("x"))}jt(st.measure,eu);var Ot=eu.offsetHeight/50;return Ot>3&&(st.cachedTextHeight=Ot),Mt(st.measure),Ot||1}function ph(st){if(st.cachedCharWidth!=null)return st.cachedCharWidth;var mt=Lt("span","xxxxxxxxxx"),Ot=Lt("pre",[mt],"CodeMirror-line-like");jt(st.measure,Ot);var Tt=mt.getBoundingClientRect(),Dt=(Tt.right-Tt.left)/10;return Dt>2&&(st.cachedCharWidth=Dt),Dt||10}function zf(st){for(var mt=st.display,Ot={},Tt={},Dt=mt.gutters.clientLeft,qt=mt.gutters.firstChild,ce=0;qt;qt=qt.nextSibling,++ce){var Ce=st.display.gutterSpecs[ce].className;Ot[Ce]=qt.offsetLeft+qt.clientLeft+Dt,Tt[Ce]=qt.clientWidth}return{fixedPos:Hc(mt),gutterTotalWidth:mt.gutters.offsetWidth,gutterLeft:Ot,gutterWidth:Tt,wrapperWidth:mt.wrapper.clientWidth}}function Hc(st){return st.scroller.getBoundingClientRect().left-st.sizer.getBoundingClientRect().left}function to(st){var mt=nu(st.display),Ot=st.options.lineWrapping,Tt=Ot&&Math.max(5,st.display.scroller.clientWidth/ph(st.display)-3);return function(Dt){if(xn(st.doc,Dt))return 0;var qt=0;if(Dt.widgets)for(var ce=0;ce<Dt.widgets.length;ce++)Dt.widgets[ce].height&&(qt+=Dt.widgets[ce].height);return Ot?qt+(Math.ceil(Dt.text.length/Tt)||1)*mt:qt+mt}}function gi(st){var mt=st.doc,Ot=to(st);mt.iter(function(Tt){var Dt=Ot(Tt);Dt!=Tt.height&&ir(Tt,Dt)})}function Bs(st,mt,Ot,Tt){var Dt=st.display;if(!Ot&&Oi(mt).getAttribute("cm-not-content")=="true")return null;var qt,ce,Ce=Dt.lineSpace.getBoundingClientRect();try{qt=mt.clientX-Ce.left,ce=mt.clientY-Ce.top}catch(ze){return null}var be=Rf(st,qt,ce),Fe;if(Tt&&be.xRel>0&&(Fe=Bn(st.doc,be.line).text).length==be.ch){var Qe=Kt(Fe,Fe.length,st.options.tabSize)-Fe.length;be=on(be.line,Math.max(0,Math.round((qt-ml(st.display).left)/ph(st.display))-Qe))}return be}function Aa(st,mt){if(mt>=st.display.viewTo||(mt-=st.display.viewFrom,mt<0))return null;for(var Ot=st.display.view,Tt=0;Tt<Ot.length;Tt++)if(mt-=Ot[Tt].size,mt<0)return Tt}function eo(st,mt,Ot,Tt){mt==null&&(mt=st.doc.first),Ot==null&&(Ot=st.doc.first+st.doc.size),Tt||(Tt=0);var Dt=st.display;if(Tt&&Ot<Dt.viewTo&&(Dt.updateLineNumbers==null||Dt.updateLineNumbers>mt)&&(Dt.updateLineNumbers=mt),st.curOp.viewChanged=!0,mt>=Dt.viewTo)vn&&vi(st.doc,mt)<Dt.viewTo&&Mo(st);else if(Ot<=Dt.viewFrom)vn&&qn(st.doc,Ot+Tt)>Dt.viewFrom?Mo(st):(Dt.viewFrom+=Tt,Dt.viewTo+=Tt);else if(mt<=Dt.viewFrom&&Ot>=Dt.viewTo)Mo(st);else if(mt<=Dt.viewFrom){var qt=Qs(st,Ot,Ot+Tt,1);qt?(Dt.view=Dt.view.slice(qt.index),Dt.viewFrom=qt.lineN,Dt.viewTo+=Tt):Mo(st)}else if(Ot>=Dt.viewTo){var ce=Qs(st,mt,mt,-1);ce?(Dt.view=Dt.view.slice(0,ce.index),Dt.viewTo=ce.lineN):Mo(st)}else{var Ce=Qs(st,mt,mt,-1),be=Qs(st,Ot,Ot+Tt,1);Ce&&be?(Dt.view=Dt.view.slice(0,Ce.index).concat(xr(st,Ce.lineN,be.lineN)).concat(Dt.view.slice(be.index)),Dt.viewTo+=Tt):Mo(st)}var Fe=Dt.externalMeasured;Fe&&(Ot<Fe.lineN?Fe.lineN+=Tt:mt<Fe.lineN+Fe.size&&(Dt.externalMeasured=null))}function Gi(st,mt,Ot){st.curOp.viewChanged=!0;var Tt=st.display,Dt=st.display.externalMeasured;if(Dt&&mt>=Dt.lineN&&mt<Dt.lineN+Dt.size&&(Tt.externalMeasured=null),!(mt<Tt.viewFrom||mt>=Tt.viewTo)){var qt=Tt.view[Aa(st,mt)];if(qt.node!=null){var ce=qt.changes||(qt.changes=[]);we(ce,Ot)==-1&&ce.push(Ot)}}}function Mo(st){st.display.viewFrom=st.display.viewTo=st.doc.first,st.display.view=[],st.display.viewOffset=0}function Qs(st,mt,Ot,Tt){var Dt=Aa(st,mt),qt,ce=st.display.view;if(!vn||Ot==st.doc.first+st.doc.size)return{index:Dt,lineN:Ot};for(var Ce=st.display.viewFrom,be=0;be<Dt;be++)Ce+=ce[be].size;if(Ce!=mt){if(Tt>0){if(Dt==ce.length-1)return null;qt=Ce+ce[Dt].size-mt,Dt++}else qt=Ce-mt;mt+=qt,Ot+=qt}for(;vi(st.doc,Ot)!=Ot;){if(Dt==(Tt<0?0:ce.length-1))return null;Ot+=Tt*ce[Dt-(Tt<0?1:0)].size,Dt+=Tt}return{index:Dt,lineN:Ot}}function Dr(st,mt,Ot){var Tt=st.display,Dt=Tt.view;Dt.length==0||mt>=Tt.viewTo||Ot<=Tt.viewFrom?(Tt.view=xr(st,mt,Ot),Tt.viewFrom=mt):(Tt.viewFrom>mt?Tt.view=xr(st,mt,Tt.viewFrom).concat(Tt.view):Tt.viewFrom<mt&&(Tt.view=Tt.view.slice(Aa(st,mt))),Tt.viewFrom=mt,Tt.viewTo<Ot?Tt.view=Tt.view.concat(xr(st,Tt.viewTo,Ot)):Tt.viewTo>Ot&&(Tt.view=Tt.view.slice(0,Aa(st,Ot)))),Tt.viewTo=Ot}function ua(st){for(var mt=st.display.view,Ot=0,Tt=0;Tt<mt.length;Tt++){var Dt=mt[Tt];!Dt.hidden&&(!Dt.node||Dt.changes)&&++Ot}return Ot}function Uo(st){st.display.input.showSelection(st.display.input.prepareSelection())}function Au(st,mt){mt===void 0&&(mt=!0);for(var Ot=st.doc,Tt={},Dt=Tt.cursors=document.createDocumentFragment(),qt=Tt.selection=document.createDocumentFragment(),ce=0;ce<Ot.sel.ranges.length;ce++)if(!(!mt&&ce==Ot.sel.primIndex)){var Ce=Ot.sel.ranges[ce];if(!(Ce.from().line>=st.display.viewTo||Ce.to().line<st.display.viewFrom)){var be=Ce.empty();(be||st.options.showCursorWhenSelecting)&&nr(st,Ce.head,Dt),be||tr(st,Ce,qt)}}return Tt}function nr(st,mt,Ot){var Tt=ho(st,mt,"div",null,null,!st.options.singleCursorHeightPerLine),Dt=Ot.appendChild(Lt("div","\xA0","CodeMirror-cursor"));if(Dt.style.left=Tt.left+"px",Dt.style.top=Tt.top+"px",Dt.style.height=Math.max(0,Tt.bottom-Tt.top)*st.options.cursorHeight+"px",Tt.other){var qt=Ot.appendChild(Lt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));qt.style.display="",qt.style.left=Tt.other.left+"px",qt.style.top=Tt.other.top+"px",qt.style.height=(Tt.other.bottom-Tt.other.top)*.85+"px"}}function Rs(st,mt){return st.top-mt.top||st.left-mt.left}function tr(st,mt,Ot){var Tt=st.display,Dt=st.doc,qt=document.createDocumentFragment(),ce=ml(st.display),Ce=ce.left,be=Math.max(Tt.sizerWidth,Ea(st)-Tt.sizer.offsetLeft)-ce.right,Fe=Dt.direction=="ltr";function Qe(Kn,ui,Ai,Vn){ui<0&&(ui=0),ui=Math.round(ui),Vn=Math.round(Vn),qt.appendChild(Lt("div",null,"CodeMirror-selected","position: absolute; left: "+Kn+`px;
top: `+ui+"px; width: "+(Ai==null?be-Kn:Ai)+`px;
height: `+(Vn-ui)+"px"))}function ze(Kn,ui,Ai){var Vn=Bn(Dt,Kn),Hi=Vn.text.length,no,Vo;function fo(Ro,da){return tu(st,on(Kn,Ro),"div",Vn,da)}function ta(Ro,da,Ss){var zo=qd(st,Vn,null,Ro),vr=da=="ltr"==(Ss=="after")?"left":"right",So=Ss=="after"?zo.begin:zo.end-(/\s/.test(Vn.text.charAt(zo.end-1))?2:1);return fo(So,vr)[vr]}var Ls=ge(Vn,Dt.direction);return Qt(Ls,ui||0,Ai==null?Hi:Ai,function(Ro,da,Ss,zo){var vr=Ss=="ltr",So=fo(Ro,vr?"left":"right"),os=fo(da-1,vr?"right":"left"),ws=ui==null&&Ro==0,ol=Ai==null&&da==Hi,po=zo==0,Wa=!Ls||zo==Ls.length-1;if(os.top-So.top<=3){var Co=(Fe?ws:ol)&&po,df=(Fe?ol:ws)&&Wa,Ta=Co?Ce:(vr?So:os).left,pa=df?be:(vr?os:So).right;Qe(Ta,So.top,pa-Ta,So.bottom)}else{var ea,Br,ss,Rl;vr?(ea=Fe&&ws&&po?Ce:So.left,Br=Fe?be:ta(Ro,Ss,"before"),ss=Fe?Ce:ta(da,Ss,"after"),Rl=Fe&&ol&&Wa?be:os.right):(ea=Fe?ta(Ro,Ss,"before"):Ce,Br=!Fe&&ws&&po?be:So.right,ss=!Fe&&ol&&Wa?Ce:os.left,Rl=Fe?ta(da,Ss,"after"):be),Qe(ea,So.top,Br-ea,So.bottom),So.bottom<os.top&&Qe(Ce,So.bottom,null,os.top),Qe(ss,os.top,Rl-ss,os.bottom)}(!no||Rs(So,no)<0)&&(no=So),Rs(os,no)<0&&(no=os),(!Vo||Rs(So,Vo)<0)&&(Vo=So),Rs(os,Vo)<0&&(Vo=os)}),{start:no,end:Vo}}var ln=mt.from(),an=mt.to();if(ln.line==an.line)ze(ln.line,ln.ch,an.ch);else{var kn=Bn(Dt,ln.line),Tn=Bn(Dt,an.line),In=Er(kn)==Er(Tn),Hn=ze(ln.line,ln.ch,In?kn.text.length+1:null).end,ni=ze(an.line,In?0:null,an.ch).start;In&&(Hn.top<ni.top-2?(Qe(Hn.right,Hn.top,null,Hn.bottom),Qe(Ce,ni.top,ni.left,ni.bottom)):Qe(Hn.right,Hn.top,ni.left-Hn.right,Hn.bottom)),Hn.bottom<ni.top&&Qe(Ce,Hn.bottom,null,ni.top)}Ot.appendChild(qt)}function Ar(st){if(st.state.focused){var mt=st.display;clearInterval(mt.blinker);var Ot=!0;mt.cursorDiv.style.visibility="",st.options.cursorBlinkRate>0?mt.blinker=setInterval(function(){st.hasFocus()||gh(st),mt.cursorDiv.style.visibility=(Ot=!Ot)?"":"hidden"},st.options.cursorBlinkRate):st.options.cursorBlinkRate<0&&(mt.cursorDiv.style.visibility="hidden")}}function Hr(st){st.state.focused||(st.display.input.focus(),or(st))}function so(st){st.state.delayingBlurEvent=!0,setTimeout(function(){st.state.delayingBlurEvent&&(st.state.delayingBlurEvent=!1,gh(st))},100)}function or(st,mt){st.state.delayingBlurEvent&&(st.state.delayingBlurEvent=!1),st.options.readOnly!="nocursor"&&(st.state.focused||(Ze(st,"focus",st,mt),st.state.focused=!0,Yt(st.display.wrapper,"CodeMirror-focused"),!st.curOp&&st.display.selForContextMenu!=st.doc.sel&&(st.display.input.reset(),pt&&setTimeout(function(){return st.display.input.reset(!0)},20)),st.display.input.receivedFocus()),Ar(st))}function gh(st,mt){st.state.delayingBlurEvent||(st.state.focused&&(Ze(st,"blur",st,mt),st.state.focused=!1,_t(st.display.wrapper,"CodeMirror-focused")),clearInterval(st.display.blinker),setTimeout(function(){st.state.focused||(st.display.shift=!1)},150))}function fi(st){for(var mt=st.display,Ot=mt.lineDiv.offsetTop,Tt=0;Tt<mt.view.length;Tt++){var Dt=mt.view[Tt],qt=st.options.lineWrapping,ce=void 0,Ce=0;if(!Dt.hidden){if(Ct&&St<8){var be=Dt.node.offsetTop+Dt.node.offsetHeight;ce=be-Ot,Ot=be}else{var Fe=Dt.node.getBoundingClientRect();ce=Fe.bottom-Fe.top,!qt&&Dt.text.firstChild&&(Ce=Dt.text.firstChild.getBoundingClientRect().right-Fe.left-1)}var Qe=Dt.line.height-ce;if((Qe>.005||Qe<-.005)&&(ir(Dt.line,ce),Dg(Dt.line),Dt.rest))for(var ze=0;ze<Dt.rest.length;ze++)Dg(Dt.rest[ze]);if(Ce>st.display.sizerWidth){var ln=Math.ceil(Ce/ph(st.display));ln>st.display.maxLineLength&&(st.display.maxLineLength=ln,st.display.maxLine=Dt.line,st.display.maxLineChanged=!0)}}}}function Dg(st){if(st.widgets)for(var mt=0;mt<st.widgets.length;++mt){var Ot=st.widgets[mt],Tt=Ot.node.parentNode;Tt&&(Ot.height=Tt.offsetHeight)}}function $i(st,mt,Ot){var Tt=Ot&&Ot.top!=null?Math.max(0,Ot.top):st.scroller.scrollTop;Tt=Math.floor(Tt-qo(st));var Dt=Ot&&Ot.bottom!=null?Ot.bottom:Tt+st.wrapper.clientHeight,qt=Nn(mt,Tt),ce=Nn(mt,Dt);if(Ot&&Ot.ensure){var Ce=Ot.ensure.from.line,be=Ot.ensure.to.line;Ce<qt?(qt=Ce,ce=Nn(mt,zi(Bn(mt,Ce))+st.wrapper.clientHeight)):Math.min(be,mt.lastLine())>=ce&&(qt=Nn(mt,zi(Bn(mt,be))-st.wrapper.clientHeight),ce=be)}return{from:qt,to:Math.max(ce,qt+1)}}function Ig(st,mt){if(!nn(st,"scrollCursorIntoView")){var Ot=st.display,Tt=Ot.sizer.getBoundingClientRect(),Dt=null;if(mt.top+Tt.top<0?Dt=!0:mt.bottom+Tt.top>(window.innerHeight||document.documentElement.clientHeight)&&(Dt=!1),Dt!=null&&!ct){var qt=Lt("div","\u200B",null,`position: absolute;
top: `+(mt.top-Ot.viewOffset-qo(st.display))+`px;
height: `+(mt.bottom-mt.top+As(st)+Ot.barHeight)+`px;
left: `+mt.left+"px; width: "+Math.max(2,mt.right-mt.left)+"px;");st.display.lineSpace.appendChild(qt),qt.scrollIntoView(Dt),st.display.lineSpace.removeChild(qt)}}}function oc(st,mt,Ot,Tt){Tt==null&&(Tt=0);var Dt;!st.options.lineWrapping&&mt==Ot&&(mt=mt.ch?on(mt.line,mt.sticky=="before"?mt.ch-1:mt.ch,"after"):mt,Ot=mt.sticky=="before"?on(mt.line,mt.ch+1,"before"):mt);for(var qt=0;qt<5;qt++){var ce=!1,Ce=ho(st,mt),be=!Ot||Ot==mt?Ce:ho(st,Ot);Dt={left:Math.min(Ce.left,be.left),top:Math.min(Ce.top,be.top)-Tt,right:Math.max(Ce.left,be.left),bottom:Math.max(Ce.bottom,be.bottom)+Tt};var Fe=$d(st,Dt),Qe=st.doc.scrollTop,ze=st.doc.scrollLeft;if(Fe.scrollTop!=null&&(vh(st,Fe.scrollTop),Math.abs(st.doc.scrollTop-Qe)>1&&(ce=!0)),Fe.scrollLeft!=null&&(ru(st,Fe.scrollLeft),Math.abs(st.doc.scrollLeft-ze)>1&&(ce=!0)),!ce)break}return Dt}function Wc(st,mt){var Ot=$d(st,mt);Ot.scrollTop!=null&&vh(st,Ot.scrollTop),Ot.scrollLeft!=null&&ru(st,Ot.scrollLeft)}function $d(st,mt){var Ot=st.display,Tt=nu(st.display);mt.top<0&&(mt.top=0);var Dt=st.curOp&&st.curOp.scrollTop!=null?st.curOp.scrollTop:Ot.scroller.scrollTop,qt=yn(st),ce={};mt.bottom-mt.top>qt&&(mt.bottom=mt.top+qt);var Ce=st.doc.height+gl(Ot),be=mt.top<Tt,Fe=mt.bottom>Ce-Tt;if(mt.top<Dt)ce.scrollTop=be?0:mt.top;else if(mt.bottom>Dt+qt){var Qe=Math.min(mt.top,(Fe?Ce:mt.bottom)-qt);Qe!=Dt&&(ce.scrollTop=Qe)}var ze=st.options.fixedGutter?0:Ot.gutters.offsetWidth,ln=st.curOp&&st.curOp.scrollLeft!=null?st.curOp.scrollLeft:Ot.scroller.scrollLeft-ze,an=Ea(st)-Ot.gutters.offsetWidth,kn=mt.right-mt.left>an;return kn&&(mt.right=mt.left+an),mt.left<10?ce.scrollLeft=0:mt.left<ln?ce.scrollLeft=Math.max(0,mt.left+ze-(kn?0:10)):mt.right>an+ln-3&&(ce.scrollLeft=mt.right+(kn?0:10)-an),ce}function Gf(st,mt){mt!=null&&(Nl(st),st.curOp.scrollTop=(st.curOp.scrollTop==null?st.doc.scrollTop:st.curOp.scrollTop)+mt)}function iu(st){Nl(st);var mt=st.getCursor();st.curOp.scrollToPos={from:mt,to:mt,margin:st.options.cursorScrollMargin}}function mh(st,mt,Ot){(mt!=null||Ot!=null)&&Nl(st),mt!=null&&(st.curOp.scrollLeft=mt),Ot!=null&&(st.curOp.scrollTop=Ot)}function sr(st,mt){Nl(st),st.curOp.scrollToPos=mt}function Nl(st){var mt=st.curOp.scrollToPos;if(mt){st.curOp.scrollToPos=null;var Ot=Ff(st,mt.from),Tt=Ff(st,mt.to);Uf(st,Ot,Tt,mt.margin)}}function Uf(st,mt,Ot,Tt){var Dt=$d(st,{left:Math.min(mt.left,Ot.left),top:Math.min(mt.top,Ot.top)-Tt,right:Math.max(mt.right,Ot.right),bottom:Math.max(mt.bottom,Ot.bottom)+Tt});mh(st,Dt.scrollLeft,Dt.scrollTop)}function vh(st,mt){Math.abs(st.doc.scrollTop-mt)<2||(Ft||Ou(st,{top:mt}),tp(st,mt,!0),Ft&&Ou(st),sc(st,100))}function tp(st,mt,Ot){mt=Math.max(0,Math.min(st.display.scroller.scrollHeight-st.display.scroller.clientHeight,mt)),!(st.display.scroller.scrollTop==mt&&!Ot)&&(st.doc.scrollTop=mt,st.display.scrollbars.setScrollTop(mt),st.display.scroller.scrollTop!=mt&&(st.display.scroller.scrollTop=mt))}function ru(st,mt,Ot,Tt){mt=Math.max(0,Math.min(mt,st.display.scroller.scrollWidth-st.display.scroller.clientWidth)),!((Ot?mt==st.doc.scrollLeft:Math.abs(st.doc.scrollLeft-mt)<2)&&!Tt)&&(st.doc.scrollLeft=mt,Vf(st),st.display.scroller.scrollLeft!=mt&&(st.display.scroller.scrollLeft=mt),st.display.scrollbars.setScrollLeft(mt))}function za(st){var mt=st.display,Ot=mt.gutters.offsetWidth,Tt=Math.round(st.doc.height+gl(st.display));return{clientHeight:mt.scroller.clientHeight,viewHeight:mt.wrapper.clientHeight,scrollWidth:mt.scroller.scrollWidth,clientWidth:mt.scroller.clientWidth,viewWidth:mt.wrapper.clientWidth,barLeft:st.options.fixedGutter?Ot:0,docHeight:Tt,scrollHeight:Tt+As(st)+mt.barHeight,nativeBarWidth:mt.nativeBarWidth,gutterWidth:Ot}}var Mu=function(st,mt,Ot){this.cm=Ot;var Tt=this.vert=Lt("div",[Lt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Dt=this.horiz=Lt("div",[Lt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Tt.tabIndex=Dt.tabIndex=-1,st(Tt),st(Dt),Ie(Tt,"scroll",function(){Tt.clientHeight&&mt(Tt.scrollTop,"vertical")}),Ie(Dt,"scroll",function(){Dt.clientWidth&&mt(Dt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ct&&St<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mu.prototype.update=function(st){var mt=st.scrollWidth>st.clientWidth+1,Ot=st.scrollHeight>st.clientHeight+1,Tt=st.nativeBarWidth;if(Ot){this.vert.style.display="block",this.vert.style.bottom=mt?Tt+"px":"0";var Dt=st.viewHeight-(mt?Tt:0);this.vert.firstChild.style.height=Math.max(0,st.scrollHeight-st.clientHeight+Dt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(mt){this.horiz.style.display="block",this.horiz.style.right=Ot?Tt+"px":"0",this.horiz.style.left=st.barLeft+"px";var qt=st.viewWidth-st.barLeft-(Ot?Tt:0);this.horiz.firstChild.style.width=Math.max(0,st.scrollWidth-st.clientWidth+qt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&st.clientHeight>0&&(Tt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Ot?Tt:0,bottom:mt?Tt:0}},Mu.prototype.setScrollLeft=function(st){this.horiz.scrollLeft!=st&&(this.horiz.scrollLeft=st),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mu.prototype.setScrollTop=function(st){this.vert.scrollTop!=st&&(this.vert.scrollTop=st),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mu.prototype.zeroWidthHack=function(){var st=ot&&!ft?"12px":"18px";this.horiz.style.height=this.vert.style.width=st,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new re,this.disableVert=new re},Mu.prototype.enableZeroWidthBar=function(st,mt,Ot){st.style.pointerEvents="auto";function Tt(){var Dt=st.getBoundingClientRect(),qt=Ot=="vert"?document.elementFromPoint(Dt.right-1,(Dt.top+Dt.bottom)/2):document.elementFromPoint((Dt.right+Dt.left)/2,Dt.bottom-1);qt!=st?st.style.pointerEvents="none":mt.set(1e3,Tt)}mt.set(1e3,Tt)},Mu.prototype.clear=function(){var st=this.horiz.parentNode;st.removeChild(this.horiz),st.removeChild(this.vert)};var yl=function(){};yl.prototype.update=function(){return{bottom:0,right:0}},yl.prototype.setScrollLeft=function(){},yl.prototype.setScrollTop=function(){},yl.prototype.clear=function(){};function ku(st,mt){mt||(mt=za(st));var Ot=st.display.barWidth,Tt=st.display.barHeight;Hf(st,mt);for(var Dt=0;Dt<4&&Ot!=st.display.barWidth||Tt!=st.display.barHeight;Dt++)Ot!=st.display.barWidth&&st.options.lineWrapping&&fi(st),Hf(st,za(st)),Ot=st.display.barWidth,Tt=st.display.barHeight}function Hf(st,mt){var Ot=st.display,Tt=Ot.scrollbars.update(mt);Ot.sizer.style.paddingRight=(Ot.barWidth=Tt.right)+"px",Ot.sizer.style.paddingBottom=(Ot.barHeight=Tt.bottom)+"px",Ot.heightForcer.style.borderBottom=Tt.bottom+"px solid transparent",Tt.right&&Tt.bottom?(Ot.scrollbarFiller.style.display="block",Ot.scrollbarFiller.style.height=Tt.bottom+"px",Ot.scrollbarFiller.style.width=Tt.right+"px"):Ot.scrollbarFiller.style.display="",Tt.bottom&&st.options.coverGutterNextToScrollbar&&st.options.fixedGutter?(Ot.gutterFiller.style.display="block",Ot.gutterFiller.style.height=Tt.bottom+"px",Ot.gutterFiller.style.width=mt.gutterWidth+"px"):Ot.gutterFiller.style.display=""}var ep={native:Mu,null:yl};function np(st){st.display.scrollbars&&(st.display.scrollbars.clear(),st.display.scrollbars.addClass&&_t(st.display.wrapper,st.display.scrollbars.addClass)),st.display.scrollbars=new ep[st.options.scrollbarStyle](function(mt){st.display.wrapper.insertBefore(mt,st.display.scrollbarFiller),Ie(mt,"mousedown",function(){st.state.focused&&setTimeout(function(){return st.display.input.focus()},0)}),mt.setAttribute("cm-not-content","true")},function(mt,Ot){Ot=="horizontal"?ru(st,mt):vh(st,mt)},st),st.display.scrollbars.addClass&&Yt(st.display.wrapper,st.display.scrollbars.addClass)}var Fg=0;function Lu(st){st.curOp={cm:st,viewChanged:!1,startHeight:st.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:++Fg},Eu(st.curOp)}function Tu(st){var mt=st.curOp;mt&&ch(mt,function(Ot){for(var Tt=0;Tt<Ot.ops.length;Tt++)Ot.ops[Tt].cm.curOp=null;J0(Ot)})}function J0(st){for(var mt=st.ops,Ot=0;Ot<mt.length;Ot++)q0(mt[Ot]);for(var Tt=0;Tt<mt.length;Tt++)$0(mt[Tt]);for(var Dt=0;Dt<mt.length;Dt++)Bg(mt[Dt]);for(var qt=0;qt<mt.length;qt++)yo(mt[qt]);for(var ce=0;ce<mt.length;ce++)_u(mt[ce])}function q0(st){var mt=st.cm,Ot=mt.display;Rg(mt),st.updateMaxLine&&Qr(mt),st.mustUpdate=st.viewChanged||st.forceUpdate||st.scrollTop!=null||st.scrollToPos&&(st.scrollToPos.from.line<Ot.viewFrom||st.scrollToPos.to.line>=Ot.viewTo)||Ot.maxLineChanged&&mt.options.lineWrapping,st.update=st.mustUpdate&&new yh(mt,st.mustUpdate&&{top:st.scrollTop,ensure:st.scrollToPos},st.forceUpdate)}function $0(st){st.updatedDisplay=st.mustUpdate&&Wf(st.cm,st.update)}function Bg(st){var mt=st.cm,Ot=mt.display;st.updatedDisplay&&fi(mt),st.barMeasure=za(mt),Ot.maxLineChanged&&!mt.options.lineWrapping&&(st.adjustWidthTo=rr(mt,Ot.maxLine,Ot.maxLine.text.length).left+3,mt.display.sizerWidth=st.adjustWidthTo,st.barMeasure.scrollWidth=Math.max(Ot.scroller.clientWidth,Ot.sizer.offsetLeft+st.adjustWidthTo+As(mt)+mt.display.barWidth),st.maxScrollLeft=Math.max(0,Ot.sizer.offsetLeft+st.adjustWidthTo-Ea(mt))),(st.updatedDisplay||st.selectionChanged)&&(st.preparedSelection=Ot.input.prepareSelection())}function yo(st){var mt=st.cm;st.adjustWidthTo!=null&&(mt.display.sizer.style.minWidth=st.adjustWidthTo+"px",st.maxScrollLeft<mt.doc.scrollLeft&&ru(mt,Math.min(mt.display.scroller.scrollLeft,st.maxScrollLeft),!0),mt.display.maxLineChanged=!1);var Ot=st.focus&&st.focus==Gt();st.preparedSelection&&mt.display.input.showSelection(st.preparedSelection,Ot),(st.updatedDisplay||st.startHeight!=mt.doc.height)&&ku(mt,st.barMeasure),st.updatedDisplay&&Nu(mt,st.barMeasure),st.selectionChanged&&Ar(mt),mt.state.focused&&st.updateInput&&mt.display.input.reset(st.typing),Ot&&Hr(st.cm)}function _u(st){var mt=st.cm,Ot=mt.display,Tt=mt.doc;if(st.updatedDisplay&&Mr(mt,st.update),Ot.wheelStartX!=null&&(st.scrollTop!=null||st.scrollLeft!=null||st.scrollToPos)&&(Ot.wheelStartX=Ot.wheelStartY=null),st.scrollTop!=null&&tp(mt,st.scrollTop,st.forceScroll),st.scrollLeft!=null&&ru(mt,st.scrollLeft,!0,!0),st.scrollToPos){var Dt=oc(mt,Zn(Tt,st.scrollToPos.from),Zn(Tt,st.scrollToPos.to),st.scrollToPos.margin);Ig(mt,Dt)}var qt=st.maybeHiddenMarkers,ce=st.maybeUnhiddenMarkers;if(qt)for(var Ce=0;Ce<qt.length;++Ce)qt[Ce].lines.length||Ze(qt[Ce],"hide");if(ce)for(var be=0;be<ce.length;++be)ce[be].lines.length&&Ze(ce[be],"unhide");Ot.wrapper.offsetHeight&&(Tt.scrollTop=mt.display.scroller.scrollTop),st.changeObjs&&Ze(mt,"changes",mt,st.changeObjs),st.update&&st.update.finish()}function Sr(st,mt){if(st.curOp)return mt();Lu(st);try{return mt()}finally{Tu(st)}}function Ho(st,mt){return function(){if(st.curOp)return mt.apply(st,arguments);Lu(st);try{return mt.apply(st,arguments)}finally{Tu(st)}}}function ts(st){return function(){if(this.curOp)return st.apply(this,arguments);Lu(this);try{return st.apply(this,arguments)}finally{Tu(this)}}}function es(st){return function(){var mt=this.cm;if(!mt||mt.curOp)return st.apply(this,arguments);Lu(mt);try{return st.apply(this,arguments)}finally{Tu(mt)}}}function sc(st,mt){st.doc.highlightFrontier<st.display.viewTo&&st.state.highlight.set(mt,ae(ns,st))}function ns(st){var mt=st.doc;if(!(mt.highlightFrontier>=st.display.viewTo)){var Ot=+new Date+st.options.workTime,Tt=Mi(st,mt.highlightFrontier),Dt=[];mt.iter(Tt.line,Math.min(mt.first+mt.size,st.display.viewTo+500),function(qt){if(Tt.line>=st.display.viewFrom){var ce=qt.styles,Ce=qt.text.length>st.options.maxHighlightLength?zn(mt.mode,Tt.state):null,be=er(st,qt,Tt,!0);Ce&&(Tt.state=Ce),qt.styles=be.styles;var Fe=qt.styleClasses,Qe=be.classes;Qe?qt.styleClasses=Qe:Fe&&(qt.styleClasses=null);for(var ze=!ce||ce.length!=qt.styles.length||Fe!=Qe&&(!Fe||!Qe||Fe.bgClass!=Qe.bgClass||Fe.textClass!=Qe.textClass),ln=0;!ze&&ln<ce.length;++ln)ze=ce[ln]!=qt.styles[ln];ze&&Dt.push(Tt.line),qt.stateAfter=Tt.save(),Tt.nextLine()}else qt.text.length<=st.options.maxHighlightLength&&sn(st,qt.text,Tt),qt.stateAfter=Tt.line%5==0?Tt.save():null,Tt.nextLine();if(+new Date>Ot)return sc(st,st.options.workDelay),!0}),mt.highlightFrontier=Tt.line,mt.modeFrontier=Math.max(mt.modeFrontier,Tt.line),Dt.length&&Sr(st,function(){for(var qt=0;qt<Dt.length;qt++)Gi(st,Dt[qt],"text")})}}var yh=function(st,mt,Ot){var Tt=st.display;this.viewport=mt,this.visible=$i(Tt,st.doc,mt),this.editorIsHidden=!Tt.wrapper.offsetWidth,this.wrapperHeight=Tt.wrapper.clientHeight,this.wrapperWidth=Tt.wrapper.clientWidth,this.oldDisplayWidth=Ea(st),this.force=Ot,this.dims=zf(st),this.events=[]};yh.prototype.signal=function(st,mt){An(st,mt)&&this.events.push(arguments)},yh.prototype.finish=function(){for(var st=0;st<this.events.length;st++)Ze.apply(null,this.events[st])};function Rg(st){var mt=st.display;!mt.scrollbarsClipped&&mt.scroller.offsetWidth&&(mt.nativeBarWidth=mt.scroller.offsetWidth-mt.scroller.clientWidth,mt.heightForcer.style.height=As(st)+"px",mt.sizer.style.marginBottom=-mt.nativeBarWidth+"px",mt.sizer.style.borderRightWidth=As(st)+"px",mt.scrollbarsClipped=!0)}function zg(st){if(st.hasFocus())return null;var mt=Gt();if(!mt||!Xt(st.display.lineDiv,mt))return null;var Ot={activeElt:mt};if(window.getSelection){var Tt=window.getSelection();Tt.anchorNode&&Tt.extend&&Xt(st.display.lineDiv,Tt.anchorNode)&&(Ot.anchorNode=Tt.anchorNode,Ot.anchorOffset=Tt.anchorOffset,Ot.focusNode=Tt.focusNode,Ot.focusOffset=Tt.focusOffset)}return Ot}function Js(st){if(!(!st||!st.activeElt||st.activeElt==Gt())&&(st.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(st.activeElt.nodeName)&&st.anchorNode&&Xt(document.body,st.anchorNode)&&Xt(document.body,st.focusNode))){var mt=window.getSelection(),Ot=document.createRange();Ot.setEnd(st.anchorNode,st.anchorOffset),Ot.collapse(!1),mt.removeAllRanges(),mt.addRange(Ot),mt.extend(st.focusNode,st.focusOffset)}}function Wf(st,mt){var Ot=st.display,Tt=st.doc;if(mt.editorIsHidden)return Mo(st),!1;if(!mt.force&&mt.visible.from>=Ot.viewFrom&&mt.visible.to<=Ot.viewTo&&(Ot.updateLineNumbers==null||Ot.updateLineNumbers>=Ot.viewTo)&&Ot.renderedView==Ot.view&&ua(st)==0)return!1;No(st)&&(Mo(st),mt.dims=zf(st));var Dt=Tt.first+Tt.size,qt=Math.max(mt.visible.from-st.options.viewportMargin,Tt.first),ce=Math.min(Dt,mt.visible.to+st.options.viewportMargin);Ot.viewFrom<qt&&qt-Ot.viewFrom<20&&(qt=Math.max(Tt.first,Ot.viewFrom)),Ot.viewTo>ce&&Ot.viewTo-ce<20&&(ce=Math.min(Dt,Ot.viewTo)),vn&&(qt=vi(st.doc,qt),ce=qn(st.doc,ce));var Ce=qt!=Ot.viewFrom||ce!=Ot.viewTo||Ot.lastWrapHeight!=mt.wrapperHeight||Ot.lastWrapWidth!=mt.wrapperWidth;Dr(st,qt,ce),Ot.viewOffset=zi(Bn(st.doc,Ot.viewFrom)),st.display.mover.style.top=Ot.viewOffset+"px";var be=ua(st);if(!Ce&&be==0&&!mt.force&&Ot.renderedView==Ot.view&&(Ot.updateLineNumbers==null||Ot.updateLineNumbers>=Ot.viewTo))return!1;var Fe=zg(st);return be>4&&(Ot.lineDiv.style.display="none"),ip(st,Ot.updateLineNumbers,mt.dims),be>4&&(Ot.lineDiv.style.display=""),Ot.renderedView=Ot.view,Js(Fe),Mt(Ot.cursorDiv),Mt(Ot.selectionDiv),Ot.gutters.style.height=Ot.sizer.style.minHeight=0,Ce&&(Ot.lastWrapHeight=mt.wrapperHeight,Ot.lastWrapWidth=mt.wrapperWidth,sc(st,400)),Ot.updateLineNumbers=null,!0}function Mr(st,mt){for(var Ot=mt.viewport,Tt=!0;;Tt=!1){if(!Tt||!st.options.lineWrapping||mt.oldDisplayWidth==Ea(st)){if(Ot&&Ot.top!=null&&(Ot={top:Math.min(st.doc.height+gl(st.display)-yn(st),Ot.top)}),mt.visible=$i(st.display,st.doc,Ot),mt.visible.from>=st.display.viewFrom&&mt.visible.to<=st.display.viewTo)break}else Tt&&(mt.visible=$i(st.display,st.doc,Ot));if(!Wf(st,mt))break;fi(st);var Dt=za(st);Uo(st),ku(st,Dt),Nu(st,Dt),mt.force=!1}mt.signal(st,"update",st),(st.display.viewFrom!=st.display.reportedViewFrom||st.display.viewTo!=st.display.reportedViewTo)&&(mt.signal(st,"viewportChange",st,st.display.viewFrom,st.display.viewTo),st.display.reportedViewFrom=st.display.viewFrom,st.display.reportedViewTo=st.display.viewTo)}function Ou(st,mt){var Ot=new yh(st,mt);if(Wf(st,Ot)){fi(st),Mr(st,Ot);var Tt=za(st);Uo(st),ku(st,Tt),Nu(st,Tt),Ot.finish()}}function ip(st,mt,Ot){var Tt=st.display,Dt=st.options.lineNumbers,qt=Tt.lineDiv,ce=qt.firstChild;function Ce(kn){var Tn=kn.nextSibling;return pt&&ot&&st.display.currentWheelTarget==kn?kn.style.display="none":kn.parentNode.removeChild(kn),Tn}for(var be=Tt.view,Fe=Tt.viewFrom,Qe=0;Qe<be.length;Qe++){var ze=be[Qe];if(!ze.hidden)if(!ze.node||ze.node.parentNode!=qt){var ln=$l(st,ze,Fe,Ot);qt.insertBefore(ln,ce)}else{for(;ce!=ze.node;)ce=Ce(ce);var an=Dt&&mt!=null&&mt<=Fe&&ze.lineNumber;ze.changes&&(we(ze.changes,"gutter")>-1&&(an=!1),ic(st,ze,Fe,Ot)),an&&(Mt(ze.lineNumber),ze.lineNumber.appendChild(document.createTextNode(pr(st.options,Fe)))),ce=ze.node.nextSibling}Fe+=ze.size}for(;ce;)ce=Ce(ce)}function ju(st){var mt=st.gutters.offsetWidth;st.sizer.style.marginLeft=mt+"px"}function Nu(st,mt){st.display.sizer.style.minHeight=mt.docHeight+"px",st.display.heightForcer.style.top=mt.docHeight+"px",st.display.gutters.style.height=mt.docHeight+st.display.barHeight+As(st)+"px"}function Vf(st){var mt=st.display,Ot=mt.view;if(!(!mt.alignWidgets&&(!mt.gutters.firstChild||!st.options.fixedGutter))){for(var Tt=Hc(mt)-mt.scroller.scrollLeft+st.doc.scrollLeft,Dt=mt.gutters.offsetWidth,qt=Tt+"px",ce=0;ce<Ot.length;ce++)if(!Ot[ce].hidden){st.options.fixedGutter&&(Ot[ce].gutter&&(Ot[ce].gutter.style.left=qt),Ot[ce].gutterBackground&&(Ot[ce].gutterBackground.style.left=qt));var Ce=Ot[ce].alignable;if(Ce)for(var be=0;be<Ce.length;be++)Ce[be].style.left=qt}st.options.fixedGutter&&(mt.gutters.style.left=Tt+Dt+"px")}}function No(st){if(!st.options.lineNumbers)return!1;var mt=st.doc,Ot=pr(st.options,mt.first+mt.size-1),Tt=st.display;if(Ot.length!=Tt.lineNumChars){var Dt=Tt.measure.appendChild(Lt("div",[Lt("div",Ot)],"CodeMirror-linenumber CodeMirror-gutter-elt")),qt=Dt.firstChild.offsetWidth,ce=Dt.offsetWidth-qt;return Tt.lineGutter.style.width="",Tt.lineNumInnerWidth=Math.max(qt,Tt.lineGutter.offsetWidth-ce)+1,Tt.lineNumWidth=Tt.lineNumInnerWidth+ce,Tt.lineNumChars=Tt.lineNumInnerWidth?Ot.length:-1,Tt.lineGutter.style.width=Tt.lineNumWidth+"px",ju(st.display),!0}return!1}function is(st,mt){for(var Ot=[],Tt=!1,Dt=0;Dt<st.length;Dt++){var qt=st[Dt],ce=null;if(typeof qt!="string"&&(ce=qt.style,qt=qt.className),qt=="CodeMirror-linenumbers")if(mt)Tt=!0;else continue;Ot.push({className:qt,style:ce})}return mt&&!Tt&&Ot.push({className:"CodeMirror-linenumbers",style:null}),Ot}function Sh(st){var mt=st.gutters,Ot=st.gutterSpecs;Mt(mt),st.lineGutter=null;for(var Tt=0;Tt<Ot.length;++Tt){var Dt=Ot[Tt],qt=Dt.className,ce=Dt.style,Ce=mt.appendChild(Lt("div",null,"CodeMirror-gutter "+qt));ce&&(Ce.style.cssText=ce),qt=="CodeMirror-linenumbers"&&(st.lineGutter=Ce,Ce.style.width=(st.lineNumWidth||1)+"px")}mt.style.display=Ot.length?"":"none",ju(st)}function Ma(st){Sh(st.display),eo(st),Vf(st)}function Du(st,mt,Ot,Tt){var Dt=this;this.input=Ot,Dt.scrollbarFiller=Lt("div",null,"CodeMirror-scrollbar-filler"),Dt.scrollbarFiller.setAttribute("cm-not-content","true"),Dt.gutterFiller=Lt("div",null,"CodeMirror-gutter-filler"),Dt.gutterFiller.setAttribute("cm-not-content","true"),Dt.lineDiv=It("div",null,"CodeMirror-code"),Dt.selectionDiv=Lt("div",null,null,"position: relative; z-index: 1"),Dt.cursorDiv=Lt("div",null,"CodeMirror-cursors"),Dt.measure=Lt("div",null,"CodeMirror-measure"),Dt.lineMeasure=Lt("div",null,"CodeMirror-measure"),Dt.lineSpace=It("div",[Dt.measure,Dt.lineMeasure,Dt.selectionDiv,Dt.cursorDiv,Dt.lineDiv],null,"position: relative; outline: none");var qt=It("div",[Dt.lineSpace],"CodeMirror-lines");Dt.mover=Lt("div",[qt],null,"position: relative"),Dt.sizer=Lt("div",[Dt.mover],"CodeMirror-sizer"),Dt.sizerWidth=null,Dt.heightForcer=Lt("div",null,null,"position: absolute; height: "+Me+"px; width: 1px;"),Dt.gutters=Lt("div",null,"CodeMirror-gutters"),Dt.lineGutter=null,Dt.scroller=Lt("div",[Dt.sizer,Dt.heightForcer,Dt.gutters],"CodeMirror-scroll"),Dt.scroller.setAttribute("tabIndex","-1"),Dt.wrapper=Lt("div",[Dt.scrollbarFiller,Dt.gutterFiller,Dt.scroller],"CodeMirror"),Ct&&St<8&&(Dt.gutters.style.zIndex=-1,Dt.scroller.style.paddingRight=0),!pt&&!(Ft&&z)&&(Dt.scroller.draggable=!0),st&&(st.appendChild?st.appendChild(Dt.wrapper):st(Dt.wrapper)),Dt.viewFrom=Dt.viewTo=mt.first,Dt.reportedViewFrom=Dt.reportedViewTo=mt.first,Dt.view=[],Dt.renderedView=null,Dt.externalMeasured=null,Dt.viewOffset=0,Dt.lastWrapHeight=Dt.lastWrapWidth=0,Dt.updateLineNumbers=null,Dt.nativeBarWidth=Dt.barHeight=Dt.barWidth=0,Dt.scrollbarsClipped=!1,Dt.lineNumWidth=Dt.lineNumInnerWidth=Dt.lineNumChars=null,Dt.alignWidgets=!1,Dt.cachedCharWidth=Dt.cachedTextHeight=Dt.cachedPaddingH=null,Dt.maxLine=null,Dt.maxLineLength=0,Dt.maxLineChanged=!1,Dt.wheelDX=Dt.wheelDY=Dt.wheelStartX=Dt.wheelStartY=null,Dt.shift=!1,Dt.selForContextMenu=null,Dt.activeTouch=null,Dt.gutterSpecs=is(Tt.gutters,Tt.lineNumbers),Sh(Dt),Ot.init(Dt)}var ha=0,ko=null;Ct?ko=-.53:Ft?ko=15:yt?ko=-.7:dt&&(ko=-1/3);function Sl(st){var mt=st.wheelDeltaX,Ot=st.wheelDeltaY;return mt==null&&st.detail&&st.axis==st.HORIZONTAL_AXIS&&(mt=st.detail),Ot==null&&st.detail&&st.axis==st.VERTICAL_AXIS?Ot=st.detail:Ot==null&&(Ot=st.wheelDelta),{x:mt,y:Ot}}function ka(st){var mt=Sl(st);return mt.x*=ko,mt.y*=ko,mt}function rs(st,mt){var Ot=Sl(mt),Tt=Ot.x,Dt=Ot.y,qt=st.display,ce=qt.scroller,Ce=ce.scrollWidth>ce.clientWidth,be=ce.scrollHeight>ce.clientHeight;if(Tt&&Ce||Dt&&be){if(Dt&&ot&&pt){t:for(var Fe=mt.target,Qe=qt.view;Fe!=ce;Fe=Fe.parentNode)for(var ze=0;ze<Qe.length;ze++)if(Qe[ze].node==Fe){st.display.currentWheelTarget=Fe;break t}}if(Tt&&!Ft&&!xt&&ko!=null){Dt&&be&&vh(st,Math.max(0,ce.scrollTop+Dt*ko)),ru(st,Math.max(0,ce.scrollLeft+Tt*ko)),(!Dt||Dt&&be)&&Dn(mt),qt.wheelStartX=null;return}if(Dt&&ko!=null){var ln=Dt*ko,an=st.doc.scrollTop,kn=an+qt.wrapper.clientHeight;ln<0?an=Math.max(0,an+ln-50):kn=Math.min(st.doc.height,kn+ln+50),Ou(st,{top:an,bottom:kn})}ha<20&&(qt.wheelStartX==null?(qt.wheelStartX=ce.scrollLeft,qt.wheelStartY=ce.scrollTop,qt.wheelDX=Tt,qt.wheelDY=Dt,setTimeout(function(){if(qt.wheelStartX!=null){var Tn=ce.scrollLeft-qt.wheelStartX,In=ce.scrollTop-qt.wheelStartY,Hn=In&&qt.wheelDY&&In/qt.wheelDY||Tn&&qt.wheelDX&&Tn/qt.wheelDX;qt.wheelStartX=qt.wheelStartY=null,Hn&&(ko=(ko*ha+Hn)/(ha+1),++ha)}},200)):(qt.wheelDX+=Tt,qt.wheelDY+=Dt))}}var Ga=function(st,mt){this.ranges=st,this.primIndex=mt};Ga.prototype.primary=function(){return this.ranges[this.primIndex]},Ga.prototype.equals=function(st){if(st==this)return!0;if(st.primIndex!=this.primIndex||st.ranges.length!=this.ranges.length)return!1;for(var mt=0;mt<this.ranges.length;mt++){var Ot=this.ranges[mt],Tt=st.ranges[mt];if(!xi(Ot.anchor,Tt.anchor)||!xi(Ot.head,Tt.head))return!1}return!0},Ga.prototype.deepCopy=function(){for(var st=[],mt=0;mt<this.ranges.length;mt++)st[mt]=new kr(Zi(this.ranges[mt].anchor),Zi(this.ranges[mt].head));return new Ga(st,this.primIndex)},Ga.prototype.somethingSelected=function(){for(var st=0;st<this.ranges.length;st++)if(!this.ranges[st].empty())return!0;return!1},Ga.prototype.contains=function(st,mt){mt||(mt=st);for(var Ot=0;Ot<this.ranges.length;Ot++){var Tt=this.ranges[Ot];if(Cn(mt,Tt.from())>=0&&Cn(st,Tt.to())<=0)return Ot}return-1};var kr=function(st,mt){this.anchor=st,this.head=mt};kr.prototype.from=function(){return oi(this.anchor,this.head)},kr.prototype.to=function(){return Wi(this.anchor,this.head)},kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function rl(st,mt,Ot){var Tt=st&&st.options.selectionsMayTouch,Dt=mt[Ot];mt.sort(function(ln,an){return Cn(ln.from(),an.from())}),Ot=we(mt,Dt);for(var qt=1;qt<mt.length;qt++){var ce=mt[qt],Ce=mt[qt-1],be=Cn(Ce.to(),ce.from());if(Tt&&!ce.empty()?be>0:be>=0){var Fe=oi(Ce.from(),ce.from()),Qe=Wi(Ce.to(),ce.to()),ze=Ce.empty()?ce.from()==ce.head:Ce.from()==Ce.head;qt<=Ot&&--Ot,mt.splice(--qt,2,new kr(ze?Qe:Fe,ze?Fe:Qe))}}return new Ga(mt,Ot)}function ou(st,mt){return new Ga([new kr(st,mt||st)],0)}function Iu(st){return st.text?on(st.from.line+st.text.length-1,Se(st.text).length+(st.text.length==1?st.from.ch:0)):st.to}function wh(st,mt){if(Cn(st,mt.from)<0)return st;if(Cn(st,mt.to)<=0)return Iu(mt);var Ot=st.line+mt.text.length-(mt.to.line-mt.from.line)-1,Tt=st.ch;return st.line==mt.to.line&&(Tt+=Iu(mt).ch-mt.to.ch),on(Ot,Tt)}function Vc(st,mt){for(var Ot=[],Tt=0;Tt<st.sel.ranges.length;Tt++){var Dt=st.sel.ranges[Tt];Ot.push(new kr(wh(Dt.anchor,mt),wh(Dt.head,mt)))}return rl(st.cm,Ot,st.sel.primIndex)}function ac(st,mt,Ot){return st.line==mt.line?on(Ot.line,st.ch-mt.ch+Ot.ch):on(Ot.line+(st.line-mt.line),st.ch)}function Yc(st,mt,Ot){for(var Tt=[],Dt=on(st.first,0),qt=Dt,ce=0;ce<mt.length;ce++){var Ce=mt[ce],be=ac(Ce.from,Dt,qt),Fe=ac(Iu(Ce),Dt,qt);if(Dt=Ce.to,qt=Fe,Ot=="around"){var Qe=st.sel.ranges[ce],ze=Cn(Qe.head,Qe.anchor)<0;Tt[ce]=new kr(ze?Fe:be,ze?be:Fe)}else Tt[ce]=new kr(be,be)}return new Ga(Tt,st.sel.primIndex)}function Ui(st){st.doc.mode=dn(st.options,st.doc.modeOption),Kc(st)}function Kc(st){st.doc.iter(function(mt){mt.stateAfter&&(mt.stateAfter=null),mt.styles&&(mt.styles=null)}),st.doc.modeFrontier=st.doc.highlightFrontier=st.doc.first,sc(st,100),st.state.modeGen++,st.curOp&&eo(st)}function rp(st,mt){return mt.from.ch==0&&mt.to.ch==0&&Se(mt.text)==""&&(!st.cm||st.cm.options.wholeLineUpdateBefore)}function Yf(st,mt,Ot,Tt){function Dt(ni){return Ot?Ot[ni]:null}function qt(ni,Kn,ui){mo(ni,Kn,ui,Tt),Yn(ni,"change",ni,mt)}function ce(ni,Kn){for(var ui=[],Ai=ni;Ai<Kn;++Ai)ui.push(new Ur(Fe[Ai],Dt(Ai),Tt));return ui}var Ce=mt.from,be=mt.to,Fe=mt.text,Qe=Bn(st,Ce.line),ze=Bn(st,be.line),ln=Se(Fe),an=Dt(Fe.length-1),kn=be.line-Ce.line;if(mt.full)st.insert(0,ce(0,Fe.length)),st.remove(Fe.length,st.size-Fe.length);else if(rp(st,mt)){var Tn=ce(0,Fe.length-1);qt(ze,ze.text,an),kn&&st.remove(Ce.line,kn),Tn.length&&st.insert(Ce.line,Tn)}else if(Qe==ze)if(Fe.length==1)qt(Qe,Qe.text.slice(0,Ce.ch)+ln+Qe.text.slice(be.ch),an);else{var In=ce(1,Fe.length-1);In.push(new Ur(ln+Qe.text.slice(be.ch),an,Tt)),qt(Qe,Qe.text.slice(0,Ce.ch)+Fe[0],Dt(0)),st.insert(Ce.line+1,In)}else if(Fe.length==1)qt(Qe,Qe.text.slice(0,Ce.ch)+Fe[0]+ze.text.slice(be.ch),Dt(0)),st.remove(Ce.line+1,kn);else{qt(Qe,Qe.text.slice(0,Ce.ch)+Fe[0],Dt(0)),qt(ze,ln+ze.text.slice(be.ch),an);var Hn=ce(1,Fe.length-1);kn>1&&st.remove(Ce.line+1,kn-1),st.insert(Ce.line+1,Hn)}Yn(st,"change",st,mt)}function wl(st,mt,Ot){function Tt(Dt,qt,ce){if(Dt.linked)for(var Ce=0;Ce<Dt.linked.length;++Ce){var be=Dt.linked[Ce];if(be.doc!=qt){var Fe=ce&&be.sharedHist;Ot&&!Fe||(mt(be.doc,Fe),Tt(be.doc,Dt,Fe))}}}Tt(st,null,!0)}function Kf(st,mt){if(mt.cm)throw new Error("This document is already in use.");st.doc=mt,mt.cm=st,gi(st),Ui(st),Xc(st),st.options.lineWrapping||Qr(st),st.options.mode=mt.modeOption,eo(st)}function Xc(st){(st.doc.direction=="rtl"?Yt:_t)(st.display.lineDiv,"CodeMirror-rtl")}function tv(st){Sr(st,function(){Xc(st),eo(st)})}function lc(st){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=st||1}function Xf(st,mt){var Ot={from:Zi(mt.from),to:Iu(mt),text:Xi(st,mt.from,mt.to)};return Fu(st,Ot,mt.from.line,mt.to.line+1),wl(st,function(Tt){return Fu(Tt,Ot,mt.from.line,mt.to.line+1)},!0),Ot}function uc(st){for(;st.length;){var mt=Se(st);if(mt.ranges)st.pop();else break}}function Zc(st,mt){if(mt)return uc(st.done),Se(st.done);if(st.done.length&&!Se(st.done).ranges)return Se(st.done);if(st.done.length>1&&!st.done[st.done.length-2].ranges)return st.done.pop(),Se(st.done)}function Qc(st,mt,Ot,Tt){var Dt=st.history;Dt.undone.length=0;var qt=+new Date,ce,Ce;if((Dt.lastOp==Tt||Dt.lastOrigin==mt.origin&&mt.origin&&(mt.origin.charAt(0)=="+"&&Dt.lastModTime>qt-(st.cm?st.cm.options.historyEventDelay:500)||mt.origin.charAt(0)=="*"))&&(ce=Zc(Dt,Dt.lastOp==Tt)))Ce=Se(ce.changes),Cn(mt.from,mt.to)==0&&Cn(mt.from,Ce.to)==0?Ce.to=Iu(mt):ce.changes.push(Xf(st,mt));else{var be=Se(Dt.done);for((!be||!be.ranges)&&hc(st.sel,Dt.done),ce={changes:[Xf(st,mt)],generation:Dt.generation},Dt.done.push(ce);Dt.done.length>Dt.undoDepth;)Dt.done.shift(),Dt.done[0].ranges||Dt.done.shift()}Dt.done.push(Ot),Dt.generation=++Dt.maxGeneration,Dt.lastModTime=Dt.lastSelTime=qt,Dt.lastOp=Dt.lastSelOp=Tt,Dt.lastOrigin=Dt.lastSelOrigin=mt.origin,Ce||Ze(st,"historyAdded")}function op(st,mt,Ot,Tt){var Dt=mt.charAt(0);return Dt=="*"||Dt=="+"&&Ot.ranges.length==Tt.ranges.length&&Ot.somethingSelected()==Tt.somethingSelected()&&new Date-st.history.lastSelTime<=(st.cm?st.cm.options.historyEventDelay:500)}function Jc(st,mt,Ot,Tt){var Dt=st.history,qt=Tt&&Tt.origin;Ot==Dt.lastSelOp||qt&&Dt.lastSelOrigin==qt&&(Dt.lastModTime==Dt.lastSelTime&&Dt.lastOrigin==qt||op(st,qt,Se(Dt.done),mt))?Dt.done[Dt.done.length-1]=mt:hc(mt,Dt.done),Dt.lastSelTime=+new Date,Dt.lastSelOrigin=qt,Dt.lastSelOp=Ot,Tt&&Tt.clearRedo!==!1&&uc(Dt.undone)}function hc(st,mt){var Ot=Se(mt);Ot&&Ot.ranges&&Ot.equals(st)||mt.push(st)}function Fu(st,mt,Ot,Tt){var Dt=mt["spans_"+st.id],qt=0;st.iter(Math.max(st.first,Ot),Math.min(st.first+st.size,Tt),function(ce){ce.markedSpans&&((Dt||(Dt=mt["spans_"+st.id]={}))[qt]=ce.markedSpans),++qt})}function zs(st){if(!st)return null;for(var mt,Ot=0;Ot<st.length;++Ot)st[Ot].marker.explicitlyCleared?mt||(mt=st.slice(0,Ot)):mt&&mt.push(st[Ot]);return mt?mt.length?mt:null:st}function Dl(st,mt){var Ot=mt["spans_"+st.id];if(!Ot)return null;for(var Tt=[],Dt=0;Dt<mt.text.length;++Dt)Tt.push(zs(Ot[Dt]));return Tt}function Zf(st,mt){var Ot=Dl(st,mt),Tt=Cr(st,mt);if(!Ot)return Tt;if(!Tt)return Ot;for(var Dt=0;Dt<Ot.length;++Dt){var qt=Ot[Dt],ce=Tt[Dt];if(qt&&ce)t:for(var Ce=0;Ce<ce.length;++Ce){for(var be=ce[Ce],Fe=0;Fe<qt.length;++Fe)if(qt[Fe].marker==be.marker)continue t;qt.push(be)}else ce&&(Ot[Dt]=ce)}return Ot}function su(st,mt,Ot){for(var Tt=[],Dt=0;Dt<st.length;++Dt){var qt=st[Dt];if(qt.ranges){Tt.push(Ot?Ga.prototype.deepCopy.call(qt):qt);continue}var ce=qt.changes,Ce=[];Tt.push({changes:Ce});for(var be=0;be<ce.length;++be){var Fe=ce[be],Qe=void 0;if(Ce.push({from:Fe.from,to:Fe.to,text:Fe.text}),mt)for(var ze in Fe)(Qe=ze.match(/^spans_(\d+)$/))&&we(mt,Number(Qe[1]))>-1&&(Se(Ce)[ze]=Fe[ze],delete Fe[ze])}}return Tt}function Qf(st,mt,Ot,Tt){if(Tt){var Dt=st.anchor;if(Ot){var qt=Cn(mt,Dt)<0;qt!=Cn(Ot,Dt)<0?(Dt=mt,mt=Ot):qt!=Cn(mt,Ot)<0&&(mt=Ot)}return new kr(Dt,mt)}else return new kr(Ot||mt,mt)}function Jf(st,mt,Ot,Tt,Dt){Dt==null&&(Dt=st.cm&&(st.cm.display.shift||st.extend)),ks(st,new Ga([Qf(st.sel.primary(),mt,Ot,Dt)],0),Tt)}function Gg(st,mt,Ot){for(var Tt=[],Dt=st.cm&&(st.cm.display.shift||st.extend),qt=0;qt<st.sel.ranges.length;qt++)Tt[qt]=Qf(st.sel.ranges[qt],mt[qt],null,Dt);var ce=rl(st.cm,Tt,st.sel.primIndex);ks(st,ce,Ot)}function Bu(st,mt,Ot,Tt){var Dt=st.sel.ranges.slice(0);Dt[mt]=Ot,ks(st,rl(st.cm,Dt,st.sel.primIndex),Tt)}function xh(st,mt,Ot,Tt){ks(st,ou(mt,Ot),Tt)}function Ug(st,mt,Ot){var Tt={ranges:mt.ranges,update:function(Dt){this.ranges=[];for(var qt=0;qt<Dt.length;qt++)this.ranges[qt]=new kr(Zn(st,Dt[qt].anchor),Zn(st,Dt[qt].head))},origin:Ot&&Ot.origin};return Ze(st,"beforeSelectionChange",st,Tt),st.cm&&Ze(st.cm,"beforeSelectionChange",st.cm,Tt),Tt.ranges!=mt.ranges?rl(st.cm,Tt.ranges,Tt.ranges.length-1):mt}function qf(st,mt,Ot){var Tt=st.history.done,Dt=Se(Tt);Dt&&Dt.ranges?(Tt[Tt.length-1]=mt,bh(st,mt,Ot)):ks(st,mt,Ot)}function ks(st,mt,Ot){bh(st,mt,Ot),Jc(st,st.sel,st.cm?st.cm.curOp.id:NaN,Ot)}function bh(st,mt,Ot){(An(st,"beforeSelectionChange")||st.cm&&An(st.cm,"beforeSelectionChange"))&&(mt=Ug(st,mt,Ot));var Tt=Ot&&Ot.bias||(Cn(mt.primary().head,st.sel.primary().head)<0?-1:1);sp(st,$c(st,mt,Tt,!0)),!(Ot&&Ot.scroll===!1)&&st.cm&&iu(st.cm)}function sp(st,mt){mt.equals(st.sel)||(st.sel=mt,st.cm&&(st.cm.curOp.updateInput=1,st.cm.curOp.selectionChanged=!0,fn(st.cm)),Yn(st,"cursorActivity",st))}function qc(st){sp(st,$c(st,st.sel,null,!1))}function $c(st,mt,Ot,Tt){for(var Dt,qt=0;qt<mt.ranges.length;qt++){var ce=mt.ranges[qt],Ce=mt.ranges.length==st.sel.ranges.length&&st.sel.ranges[qt],be=tf(st,ce.anchor,Ce&&Ce.anchor,Ot,Tt),Fe=tf(st,ce.head,Ce&&Ce.head,Ot,Tt);(Dt||be!=ce.anchor||Fe!=ce.head)&&(Dt||(Dt=mt.ranges.slice(0,qt)),Dt[qt]=new kr(be,Fe))}return Dt?rl(st.cm,Dt,mt.primIndex):mt}function au(st,mt,Ot,Tt,Dt){var qt=Bn(st,mt.line);if(qt.markedSpans)for(var ce=0;ce<qt.markedSpans.length;++ce){var Ce=qt.markedSpans[ce],be=Ce.marker,Fe="selectLeft"in be?!be.selectLeft:be.inclusiveLeft,Qe="selectRight"in be?!be.selectRight:be.inclusiveRight;if((Ce.from==null||(Fe?Ce.from<=mt.ch:Ce.from<mt.ch))&&(Ce.to==null||(Qe?Ce.to>=mt.ch:Ce.to>mt.ch))){if(Dt&&(Ze(be,"beforeCursorEnter"),be.explicitlyCleared))if(qt.markedSpans){--ce;continue}else break;if(!be.atomic)continue;if(Ot){var ze=be.find(Tt<0?1:-1),ln=void 0;if((Tt<0?Qe:Fe)&&(ze=ap(st,ze,-Tt,ze&&ze.line==mt.line?qt:null)),ze&&ze.line==mt.line&&(ln=Cn(ze,Ot))&&(Tt<0?ln<0:ln>0))return au(st,ze,mt,Tt,Dt)}var an=be.find(Tt<0?-1:1);return(Tt<0?Fe:Qe)&&(an=ap(st,an,Tt,an.line==mt.line?qt:null)),an?au(st,an,mt,Tt,Dt):null}}return mt}function tf(st,mt,Ot,Tt,Dt){var qt=Tt||1,ce=au(st,mt,Ot,qt,Dt)||!Dt&&au(st,mt,Ot,qt,!0)||au(st,mt,Ot,-qt,Dt)||!Dt&&au(st,mt,Ot,-qt,!0);return ce||(st.cantEdit=!0,on(st.first,0))}function ap(st,mt,Ot,Tt){return Ot<0&&mt.ch==0?mt.line>st.first?Zn(st,on(mt.line-1)):null:Ot>0&&mt.ch==(Tt||Bn(st,mt.line)).text.length?mt.line<st.first+st.size-1?on(mt.line+1,0):null:new on(mt.line,mt.ch+Ot)}function Lo(st){st.setSelection(on(st.firstLine(),0),on(st.lastLine()),me)}function ef(st,mt,Ot){var Tt={canceled:!1,from:mt.from,to:mt.to,text:mt.text,origin:mt.origin,cancel:function(){return Tt.canceled=!0}};return Ot&&(Tt.update=function(Dt,qt,ce,Ce){Dt&&(Tt.from=Zn(st,Dt)),qt&&(Tt.to=Zn(st,qt)),ce&&(Tt.text=ce),Ce!==void 0&&(Tt.origin=Ce)}),Ze(st,"beforeChange",st,Tt),st.cm&&Ze(st.cm,"beforeChange",st.cm,Tt),Tt.canceled?(st.cm&&(st.cm.curOp.updateInput=2),null):{from:Tt.from,to:Tt.to,text:Tt.text,origin:Tt.origin}}function Ru(st,mt,Ot){if(st.cm){if(!st.cm.curOp)return Ho(st.cm,Ru)(st,mt,Ot);if(st.cm.state.suppressEdits)return}if(!((An(st,"beforeChange")||st.cm&&An(st.cm,"beforeChange"))&&(mt=ef(st,mt,!0),!mt))){var Tt=fr&&!Ot&&uo(st,mt.from,mt.to);if(Tt)for(var Dt=Tt.length-1;Dt>=0;--Dt)Ph(st,{from:Tt[Dt].from,to:Tt[Dt].to,text:Dt?[""]:mt.text,origin:mt.origin});else Ph(st,mt)}}function Ph(st,mt){if(!(mt.text.length==1&&mt.text[0]==""&&Cn(mt.from,mt.to)==0)){var Ot=Vc(st,mt);Qc(st,mt,Ot,st.cm?st.cm.curOp.id:NaN),cc(st,mt,Ot,Cr(st,mt));var Tt=[];wl(st,function(Dt,qt){!qt&&we(Tt,Dt.history)==-1&&(up(Dt.history,mt),Tt.push(Dt.history)),cc(Dt,mt,null,Cr(Dt,mt))})}}function nf(st,mt,Ot){var Tt=st.cm&&st.cm.state.suppressEdits;if(!(Tt&&!Ot)){for(var Dt=st.history,qt,ce=st.sel,Ce=mt=="undo"?Dt.done:Dt.undone,be=mt=="undo"?Dt.undone:Dt.done,Fe=0;Fe<Ce.length&&(qt=Ce[Fe],!(Ot?qt.ranges&&!qt.equals(st.sel):!qt.ranges));Fe++);if(Fe!=Ce.length){for(Dt.lastOrigin=Dt.lastSelOrigin=null;;)if(qt=Ce.pop(),qt.ranges){if(hc(qt,be),Ot&&!qt.equals(st.sel)){ks(st,qt,{clearRedo:!1});return}ce=qt}else if(Tt){Ce.push(qt);return}else break;var Qe=[];hc(ce,be),be.push({changes:Qe,generation:Dt.generation}),Dt.generation=qt.generation||++Dt.maxGeneration;for(var ze=An(st,"beforeChange")||st.cm&&An(st.cm,"beforeChange"),ln=function(Tn){var In=qt.changes[Tn];if(In.origin=mt,ze&&!ef(st,In,!1))return Ce.length=0,{};Qe.push(Xf(st,In));var Hn=Tn?Vc(st,In):Se(Ce);cc(st,In,Hn,Zf(st,In)),!Tn&&st.cm&&st.cm.scrollIntoView({from:In.from,to:Iu(In)});var ni=[];wl(st,function(Kn,ui){!ui&&we(ni,Kn.history)==-1&&(up(Kn.history,In),ni.push(Kn.history)),cc(Kn,In,null,Zf(Kn,In))})},an=qt.changes.length-1;an>=0;--an){var kn=ln(an);if(kn)return kn.v}}}}function lp(st,mt){if(mt!=0&&(st.first+=mt,st.sel=new Ga(xe(st.sel.ranges,function(Dt){return new kr(on(Dt.anchor.line+mt,Dt.anchor.ch),on(Dt.head.line+mt,Dt.head.ch))}),st.sel.primIndex),st.cm)){eo(st.cm,st.first,st.first-mt,mt);for(var Ot=st.cm.display,Tt=Ot.viewFrom;Tt<Ot.viewTo;Tt++)Gi(st.cm,Tt,"gutter")}}function cc(st,mt,Ot,Tt){if(st.cm&&!st.cm.curOp)return Ho(st.cm,cc)(st,mt,Ot,Tt);if(mt.to.line<st.first){lp(st,mt.text.length-1-(mt.to.line-mt.from.line));return}if(!(mt.from.line>st.lastLine())){if(mt.from.line<st.first){var Dt=mt.text.length-1-(st.first-mt.from.line);lp(st,Dt),mt={from:on(st.first,0),to:on(mt.to.line+Dt,mt.to.ch),text:[Se(mt.text)],origin:mt.origin}}var qt=st.lastLine();mt.to.line>qt&&(mt={from:mt.from,to:on(qt,Bn(st,qt).text.length),text:[mt.text[0]],origin:mt.origin}),mt.removed=Xi(st,mt.from,mt.to),Ot||(Ot=Vc(st,mt)),st.cm?Hg(st.cm,mt,Tt):Yf(st,mt,Tt),bh(st,Ot,me),st.cantEdit&&tf(st,on(st.firstLine(),0))&&(st.cantEdit=!1)}}function Hg(st,mt,Ot){var Tt=st.doc,Dt=st.display,qt=mt.from,ce=mt.to,Ce=!1,be=qt.line;st.options.lineWrapping||(be=We(Er(Bn(Tt,qt.line))),Tt.iter(be,ce.line+1,function(an){if(an==Dt.maxLine)return Ce=!0,!0})),Tt.sel.contains(mt.from,mt.to)>-1&&fn(st),Yf(Tt,mt,Ot,to(st)),st.options.lineWrapping||(Tt.iter(be,qt.line+mt.text.length,function(an){var kn=jr(an);kn>Dt.maxLineLength&&(Dt.maxLine=an,Dt.maxLineLength=kn,Dt.maxLineChanged=!0,Ce=!1)}),Ce&&(st.curOp.updateMaxLine=!0)),Yi(Tt,qt.line),sc(st,400);var Fe=mt.text.length-(ce.line-qt.line)-1;mt.full?eo(st):qt.line==ce.line&&mt.text.length==1&&!rp(st.doc,mt)?Gi(st,qt.line,"text"):eo(st,qt.line,ce.line+1,Fe);var Qe=An(st,"changes"),ze=An(st,"change");if(ze||Qe){var ln={from:qt,to:ce,text:mt.text,removed:mt.removed,origin:mt.origin};ze&&Yn(st,"change",st,ln),Qe&&(st.curOp.changeObjs||(st.curOp.changeObjs=[])).push(ln)}st.display.selForContextMenu=null}function Ch(st,mt,Ot,Tt,Dt){var qt;Tt||(Tt=Ot),Cn(Tt,Ot)<0&&(qt=[Tt,Ot],Ot=qt[0],Tt=qt[1]),typeof mt=="string"&&(mt=st.splitLines(mt)),Ru(st,{from:Ot,to:Tt,text:mt,origin:Dt})}function Ua(st,mt,Ot,Tt){Ot<st.line?st.line+=Tt:mt<st.line&&(st.line=mt,st.ch=0)}function Wg(st,mt,Ot,Tt){for(var Dt=0;Dt<st.length;++Dt){var qt=st[Dt],ce=!0;if(qt.ranges){qt.copied||(qt=st[Dt]=qt.deepCopy(),qt.copied=!0);for(var Ce=0;Ce<qt.ranges.length;Ce++)Ua(qt.ranges[Ce].anchor,mt,Ot,Tt),Ua(qt.ranges[Ce].head,mt,Ot,Tt);continue}for(var be=0;be<qt.changes.length;++be){var Fe=qt.changes[be];if(Ot<Fe.from.line)Fe.from=on(Fe.from.line+Tt,Fe.from.ch),Fe.to=on(Fe.to.line+Tt,Fe.to.ch);else if(mt<=Fe.to.line){ce=!1;break}}ce||(st.splice(0,Dt+1),Dt=0)}}function up(st,mt){var Ot=mt.from.line,Tt=mt.to.line,Dt=mt.text.length-(Tt-Ot)-1;Wg(st.done,Ot,Tt,Dt),Wg(st.undone,Ot,Tt,Dt)}function Eh(st,mt,Ot,Tt){var Dt=mt,qt=mt;return typeof mt=="number"?qt=Bn(st,ri(st,mt)):Dt=We(mt),Dt==null?null:(Tt(qt,Dt)&&st.cm&&Gi(st.cm,Dt,Ot),qt)}function fc(st){this.lines=st,this.parent=null;for(var mt=0,Ot=0;Ot<st.length;++Ot)st[Ot].parent=this,mt+=st[Ot].height;this.height=mt}fc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(st,mt){for(var Ot=st,Tt=st+mt;Ot<Tt;++Ot){var Dt=this.lines[Ot];this.height-=Dt.height,Jr(Dt),Yn(Dt,"delete")}this.lines.splice(st,mt)},collapse:function(st){st.push.apply(st,this.lines)},insertInner:function(st,mt,Ot){this.height+=Ot,this.lines=this.lines.slice(0,st).concat(mt).concat(this.lines.slice(st));for(var Tt=0;Tt<mt.length;++Tt)mt[Tt].parent=this},iterN:function(st,mt,Ot){for(var Tt=st+mt;st<Tt;++st)if(Ot(this.lines[st]))return!0}};function co(st){this.children=st;for(var mt=0,Ot=0,Tt=0;Tt<st.length;++Tt){var Dt=st[Tt];mt+=Dt.chunkSize(),Ot+=Dt.height,Dt.parent=this}this.size=mt,this.height=Ot,this.parent=null}co.prototype={chunkSize:function(){return this.size},removeInner:function(st,mt){this.size-=mt;for(var Ot=0;Ot<this.children.length;++Ot){var Tt=this.children[Ot],Dt=Tt.chunkSize();if(st<Dt){var qt=Math.min(mt,Dt-st),ce=Tt.height;if(Tt.removeInner(st,qt),this.height-=ce-Tt.height,Dt==qt&&(this.children.splice(Ot--,1),Tt.parent=null),(mt-=qt)==0)break;st=0}else st-=Dt}if(this.size-mt<25&&(this.children.length>1||!(this.children[0]instanceof fc))){var Ce=[];this.collapse(Ce),this.children=[new fc(Ce)],this.children[0].parent=this}},collapse:function(st){for(var mt=0;mt<this.children.length;++mt)this.children[mt].collapse(st)},insertInner:function(st,mt,Ot){this.size+=mt.length,this.height+=Ot;for(var Tt=0;Tt<this.children.length;++Tt){var Dt=this.children[Tt],qt=Dt.chunkSize();if(st<=qt){if(Dt.insertInner(st,mt,Ot),Dt.lines&&Dt.lines.length>50){for(var ce=Dt.lines.length%25+25,Ce=ce;Ce<Dt.lines.length;){var be=new fc(Dt.lines.slice(Ce,Ce+=25));Dt.height-=be.height,this.children.splice(++Tt,0,be),be.parent=this}Dt.lines=Dt.lines.slice(0,ce),this.maybeSpill()}break}st-=qt}},maybeSpill:function(){if(!(this.children.length<=10)){var st=this;do{var mt=st.children.splice(st.children.length-5,5),Ot=new co(mt);if(st.parent){st.size-=Ot.size,st.height-=Ot.height;var Dt=we(st.parent.children,st);st.parent.children.splice(Dt+1,0,Ot)}else{var Tt=new co(st.children);Tt.parent=st,st.children=[Tt,Ot],st=Tt}Ot.parent=st.parent}while(st.children.length>10);st.parent.maybeSpill()}},iterN:function(st,mt,Ot){for(var Tt=0;Tt<this.children.length;++Tt){var Dt=this.children[Tt],qt=Dt.chunkSize();if(st<qt){var ce=Math.min(mt,qt-st);if(Dt.iterN(st,ce,Ot))return!0;if((mt-=ce)==0)break;st=0}else st-=qt}}};var lu=function(st,mt,Ot){if(Ot)for(var Tt in Ot)Ot.hasOwnProperty(Tt)&&(this[Tt]=Ot[Tt]);this.doc=st,this.node=mt};lu.prototype.clear=function(){var st=this.doc.cm,mt=this.line.widgets,Ot=this.line,Tt=We(Ot);if(!(Tt==null||!mt)){for(var Dt=0;Dt<mt.length;++Dt)mt[Dt]==this&&mt.splice(Dt--,1);mt.length||(Ot.widgets=null);var qt=el(this);ir(Ot,Math.max(0,Ot.height-qt)),st&&(Sr(st,function(){Vg(st,Ot,-qt),Gi(st,Tt,"widget")}),Yn(st,"lineWidgetCleared",st,this,Tt))}},lu.prototype.changed=function(){var st=this,mt=this.height,Ot=this.doc.cm,Tt=this.line;this.height=null;var Dt=el(this)-mt;Dt&&(xn(this.doc,Tt)||ir(Tt,Tt.height+Dt),Ot&&Sr(Ot,function(){Ot.curOp.forceUpdate=!0,Vg(Ot,Tt,Dt),Yn(Ot,"lineWidgetChanged",Ot,st,We(Tt))}))},En(lu);function Vg(st,mt,Ot){zi(mt)<(st.curOp&&st.curOp.scrollTop||st.doc.scrollTop)&&Gf(st,Ot)}function $f(st,mt,Ot,Tt){var Dt=new lu(st,Ot,Tt),qt=st.cm;return qt&&Dt.noHScroll&&(qt.display.alignWidgets=!0),Eh(st,mt,"widget",function(ce){var Ce=ce.widgets||(ce.widgets=[]);if(Dt.insertAt==null?Ce.push(Dt):Ce.splice(Math.min(Ce.length-1,Math.max(0,Dt.insertAt)),0,Dt),Dt.line=ce,qt&&!xn(st,ce)){var be=zi(ce)<st.scrollTop;ir(ce,ce.height+el(Dt)),be&&Gf(qt,Dt.height),qt.curOp.forceUpdate=!0}return!0}),qt&&Yn(qt,"lineWidgetAdded",qt,Dt,typeof mt=="number"?mt:We(mt)),Dt}var Yg=0,Ye=function(st,mt){this.lines=[],this.type=mt,this.doc=st,this.id=++Yg};Ye.prototype.clear=function(){if(!this.explicitlyCleared){var st=this.doc.cm,mt=st&&!st.curOp;if(mt&&Lu(st),An(this,"clear")){var Ot=this.find();Ot&&Yn(this,"clear",Ot.from,Ot.to)}for(var Tt=null,Dt=null,qt=0;qt<this.lines.length;++qt){var ce=this.lines[qt],Ce=Io(ce.markedSpans,this);st&&!this.collapsed?Gi(st,We(ce),"text"):st&&(Ce.to!=null&&(Dt=We(ce)),Ce.from!=null&&(Tt=We(ce))),ce.markedSpans=Kr(ce.markedSpans,Ce),Ce.from==null&&this.collapsed&&!xn(this.doc,ce)&&st&&ir(ce,nu(st.display))}if(st&&this.collapsed&&!st.options.lineWrapping)for(var be=0;be<this.lines.length;++be){var Fe=Er(this.lines[be]),Qe=jr(Fe);Qe>st.display.maxLineLength&&(st.display.maxLine=Fe,st.display.maxLineLength=Qe,st.display.maxLineChanged=!0)}Tt!=null&&st&&this.collapsed&&eo(st,Tt,Dt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,st&&qc(st.doc)),st&&Yn(st,"markerCleared",st,this,Tt,Dt),mt&&Tu(st),this.parent&&this.parent.clear()}},Ye.prototype.find=function(st,mt){st==null&&this.type=="bookmark"&&(st=1);for(var Ot,Tt,Dt=0;Dt<this.lines.length;++Dt){var qt=this.lines[Dt],ce=Io(qt.markedSpans,this);if(ce.from!=null&&(Ot=on(mt?qt:We(qt),ce.from),st==-1))return Ot;if(ce.to!=null&&(Tt=on(mt?qt:We(qt),ce.to),st==1))return Tt}return Ot&&{from:Ot,to:Tt}},Ye.prototype.changed=function(){var st=this,mt=this.find(-1,!0),Ot=this,Tt=this.doc.cm;!mt||!Tt||Sr(Tt,function(){var Dt=mt.line,qt=We(mt.line),ce=ji(Tt,qt);if(ce&&(dh(ce),Tt.curOp.selectionChanged=Tt.curOp.forceUpdate=!0),Tt.curOp.updateMaxLine=!0,!xn(Ot.doc,Dt)&&Ot.height!=null){var Ce=Ot.height;Ot.height=null;var be=el(Ot)-Ce;be&&ir(Dt,Dt.height+be)}Yn(Tt,"markerChanged",Tt,st)})},Ye.prototype.attachLine=function(st){if(!this.lines.length&&this.doc.cm){var mt=this.doc.cm.curOp;(!mt.maybeHiddenMarkers||we(mt.maybeHiddenMarkers,this)==-1)&&(mt.maybeUnhiddenMarkers||(mt.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(st)},Ye.prototype.detachLine=function(st){if(this.lines.splice(we(this.lines,st),1),!this.lines.length&&this.doc.cm){var mt=this.doc.cm.curOp;(mt.maybeHiddenMarkers||(mt.maybeHiddenMarkers=[])).push(this)}},En(Ye);function Ah(st,mt,Ot,Tt,Dt){if(Tt&&Tt.shared)return Kg(st,mt,Ot,Tt,Dt);if(st.cm&&!st.cm.curOp)return Ho(st.cm,Ah)(st,mt,Ot,Tt,Dt);var qt=new Ye(st,Dt),ce=Cn(mt,Ot);if(Tt&&ve(Tt,qt,!1),ce>0||ce==0&&qt.clearWhenEmpty!==!1)return qt;if(qt.replacedWith&&(qt.collapsed=!0,qt.widgetNode=It("span",[qt.replacedWith],"CodeMirror-widget"),Tt.handleMouseEvents||qt.widgetNode.setAttribute("cm-ignore-events","true"),Tt.insertLeft&&(qt.widgetNode.insertLeft=!0)),qt.collapsed){if(nc(st,mt.line,mt,Ot,qt)||mt.line!=Ot.line&&nc(st,Ot.line,mt,Ot,qt))throw new Error("Inserting collapsed marker partially overlapping an existing one");gn()}qt.addToHistory&&Qc(st,{from:mt,to:Ot,origin:"markText"},st.sel,NaN);var Ce=mt.line,be=st.cm,Fe;if(st.iter(Ce,Ot.line+1,function(ze){be&&qt.collapsed&&!be.options.lineWrapping&&Er(ze)==be.display.maxLine&&(Fe=!0),qt.collapsed&&Ce!=mt.line&&ir(ze,0),Zo(ze,new qi(qt,Ce==mt.line?mt.ch:null,Ce==Ot.line?Ot.ch:null)),++Ce}),qt.collapsed&&st.iter(mt.line,Ot.line+1,function(ze){xn(st,ze)&&ir(ze,0)}),qt.clearOnEnter&&Ie(qt,"beforeCursorEnter",function(){return qt.clear()}),qt.readOnly&&(Qi(),(st.history.done.length||st.history.undone.length)&&st.clearHistory()),qt.collapsed&&(qt.id=++Yg,qt.atomic=!0),be){if(Fe&&(be.curOp.updateMaxLine=!0),qt.collapsed)eo(be,mt.line,Ot.line+1);else if(qt.className||qt.startStyle||qt.endStyle||qt.css||qt.attributes||qt.title)for(var Qe=mt.line;Qe<=Ot.line;Qe++)Gi(be,Qe,"text");qt.atomic&&qc(be.doc),Yn(be,"markerAdded",be,qt)}return qt}var Il=function(st,mt){this.markers=st,this.primary=mt;for(var Ot=0;Ot<st.length;++Ot)st[Ot].parent=this};Il.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var st=0;st<this.markers.length;++st)this.markers[st].clear();Yn(this,"clear")}},Il.prototype.find=function(st,mt){return this.primary.find(st,mt)},En(Il);function Kg(st,mt,Ot,Tt,Dt){Tt=ve(Tt),Tt.shared=!1;var qt=[Ah(st,mt,Ot,Tt,Dt)],ce=qt[0],Ce=Tt.widgetNode;return wl(st,function(be){Ce&&(Tt.widgetNode=Ce.cloneNode(!0)),qt.push(Ah(be,Zn(be,mt),Zn(be,Ot),Tt,Dt));for(var Fe=0;Fe<be.linked.length;++Fe)if(be.linked[Fe].isParent)return;ce=Se(qt)}),new Il(qt,ce)}function hp(st){return st.findMarks(on(st.first,0),st.clipPos(on(st.lastLine())),function(mt){return mt.parent})}function Xg(st,mt){for(var Ot=0;Ot<mt.length;Ot++){var Tt=mt[Ot],Dt=Tt.find(),qt=st.clipPos(Dt.from),ce=st.clipPos(Dt.to);if(Cn(qt,ce)){var Ce=Ah(st,qt,ce,Tt.primary,Tt.primary.type);Tt.markers.push(Ce),Ce.parent=Tt}}}function cp(st){for(var mt=function(Tt){var Dt=st[Tt],qt=[Dt.primary.doc];wl(Dt.primary.doc,function(be){return qt.push(be)});for(var ce=0;ce<Dt.markers.length;ce++){var Ce=Dt.markers[ce];we(qt,Ce.doc)==-1&&(Ce.parent=null,Dt.markers.splice(ce--,1))}},Ot=0;Ot<st.length;Ot++)mt(Ot)}var ev=0,ys=function(st,mt,Ot,Tt,Dt){if(!(this instanceof ys))return new ys(st,mt,Ot,Tt,Dt);Ot==null&&(Ot=0),co.call(this,[new fc([new Ur("",null)])]),this.first=Ot,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Ot;var qt=on(Ot,0);this.sel=ou(qt),this.history=new lc(null),this.id=++ev,this.modeOption=mt,this.lineSep=Tt,this.direction=Dt=="rtl"?"rtl":"ltr",this.extend=!1,typeof st=="string"&&(st=this.splitLines(st)),Yf(this,{from:qt,to:qt,text:st}),ks(this,ou(qt),me)};ys.prototype=se(co.prototype,{constructor:ys,iter:function(st,mt,Ot){Ot?this.iterN(st-this.first,mt-st,Ot):this.iterN(this.first,this.first+this.size,st)},insert:function(st,mt){for(var Ot=0,Tt=0;Tt<mt.length;++Tt)Ot+=mt[Tt].height;this.insertInner(st-this.first,mt,Ot)},remove:function(st,mt){this.removeInner(st-this.first,mt)},getValue:function(st){var mt=dr(this,this.first,this.first+this.size);return st===!1?mt:mt.join(st||this.lineSeparator())},setValue:es(function(st){var mt=on(this.first,0),Ot=this.first+this.size-1;Ru(this,{from:mt,to:on(Ot,Bn(this,Ot).text.length),text:this.splitLines(st),origin:"setValue",full:!0},!0),this.cm&&mh(this.cm,0,0),ks(this,ou(mt),me)}),replaceRange:function(st,mt,Ot,Tt){mt=Zn(this,mt),Ot=Ot?Zn(this,Ot):mt,Ch(this,st,mt,Ot,Tt)},getRange:function(st,mt,Ot){var Tt=Xi(this,Zn(this,st),Zn(this,mt));return Ot===!1?Tt:Tt.join(Ot||this.lineSeparator())},getLine:function(st){var mt=this.getLineHandle(st);return mt&&mt.text},getLineHandle:function(st){if(ti(this,st))return Bn(this,st)},getLineNumber:function(st){return We(st)},getLineHandleVisualStart:function(st){return typeof st=="number"&&(st=Bn(this,st)),Er(st)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(st){return Zn(this,st)},getCursor:function(st){var mt=this.sel.primary(),Ot;return st==null||st=="head"?Ot=mt.head:st=="anchor"?Ot=mt.anchor:st=="end"||st=="to"||st===!1?Ot=mt.to():Ot=mt.from(),Ot},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:es(function(st,mt,Ot){xh(this,Zn(this,typeof st=="number"?on(st,mt||0):st),null,Ot)}),setSelection:es(function(st,mt,Ot){xh(this,Zn(this,st),Zn(this,mt||st),Ot)}),extendSelection:es(function(st,mt,Ot){Jf(this,Zn(this,st),mt&&Zn(this,mt),Ot)}),extendSelections:es(function(st,mt){Gg(this,Yr(this,st),mt)}),extendSelectionsBy:es(function(st,mt){var Ot=xe(this.sel.ranges,st);Gg(this,Yr(this,Ot),mt)}),setSelections:es(function(st,mt,Ot){if(st.length){for(var Tt=[],Dt=0;Dt<st.length;Dt++)Tt[Dt]=new kr(Zn(this,st[Dt].anchor),Zn(this,st[Dt].head));mt==null&&(mt=Math.min(st.length-1,this.sel.primIndex)),ks(this,rl(this.cm,Tt,mt),Ot)}}),addSelection:es(function(st,mt,Ot){var Tt=this.sel.ranges.slice(0);Tt.push(new kr(Zn(this,st),Zn(this,mt||st))),ks(this,rl(this.cm,Tt,Tt.length-1),Ot)}),getSelection:function(st){for(var mt=this.sel.ranges,Ot,Tt=0;Tt<mt.length;Tt++){var Dt=Xi(this,mt[Tt].from(),mt[Tt].to());Ot=Ot?Ot.concat(Dt):Dt}return st===!1?Ot:Ot.join(st||this.lineSeparator())},getSelections:function(st){for(var mt=[],Ot=this.sel.ranges,Tt=0;Tt<Ot.length;Tt++){var Dt=Xi(this,Ot[Tt].from(),Ot[Tt].to());st!==!1&&(Dt=Dt.join(st||this.lineSeparator())),mt[Tt]=Dt}return mt},replaceSelection:function(st,mt,Ot){for(var Tt=[],Dt=0;Dt<this.sel.ranges.length;Dt++)Tt[Dt]=st;this.replaceSelections(Tt,mt,Ot||"+input")},replaceSelections:es(function(st,mt,Ot){for(var Tt=[],Dt=this.sel,qt=0;qt<Dt.ranges.length;qt++){var ce=Dt.ranges[qt];Tt[qt]={from:ce.from(),to:ce.to(),text:this.splitLines(st[qt]),origin:Ot}}for(var Ce=mt&&mt!="end"&&Yc(this,Tt,mt),be=Tt.length-1;be>=0;be--)Ru(this,Tt[be]);Ce?qf(this,Ce):this.cm&&iu(this.cm)}),undo:es(function(){nf(this,"undo")}),redo:es(function(){nf(this,"redo")}),undoSelection:es(function(){nf(this,"undo",!0)}),redoSelection:es(function(){nf(this,"redo",!0)}),setExtending:function(st){this.extend=st},getExtending:function(){return this.extend},historySize:function(){for(var st=this.history,mt=0,Ot=0,Tt=0;Tt<st.done.length;Tt++)st.done[Tt].ranges||++mt;for(var Dt=0;Dt<st.undone.length;Dt++)st.undone[Dt].ranges||++Ot;return{undo:mt,redo:Ot}},clearHistory:function(){var st=this;this.history=new lc(this.history.maxGeneration),wl(this,function(mt){return mt.history=st.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(st){return st&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(st){return this.history.generation==(st||this.cleanGeneration)},getHistory:function(){return{done:su(this.history.done),undone:su(this.history.undone)}},setHistory:function(st){var mt=this.history=new lc(this.history.maxGeneration);mt.done=su(st.done.slice(0),null,!0),mt.undone=su(st.undone.slice(0),null,!0)},setGutterMarker:es(function(st,mt,Ot){return Eh(this,st,"gutter",function(Tt){var Dt=Tt.gutterMarkers||(Tt.gutterMarkers={});return Dt[mt]=Ot,!Ot&&Te(Dt)&&(Tt.gutterMarkers=null),!0})}),clearGutter:es(function(st){var mt=this;this.iter(function(Ot){Ot.gutterMarkers&&Ot.gutterMarkers[st]&&Eh(mt,Ot,"gutter",function(){return Ot.gutterMarkers[st]=null,Te(Ot.gutterMarkers)&&(Ot.gutterMarkers=null),!0})})}),lineInfo:function(st){var mt;if(typeof st=="number"){if(!ti(this,st)||(mt=st,st=Bn(this,st),!st))return null}else if(mt=We(st),mt==null)return null;return{line:mt,handle:st,text:st.text,gutterMarkers:st.gutterMarkers,textClass:st.textClass,bgClass:st.bgClass,wrapClass:st.wrapClass,widgets:st.widgets}},addLineClass:es(function(st,mt,Ot){return Eh(this,st,mt=="gutter"?"gutter":"class",function(Tt){var Dt=mt=="text"?"textClass":mt=="background"?"bgClass":mt=="gutter"?"gutterClass":"wrapClass";if(!Tt[Dt])Tt[Dt]=Ot;else{if(At(Ot).test(Tt[Dt]))return!1;Tt[Dt]+=" "+Ot}return!0})}),removeLineClass:es(function(st,mt,Ot){return Eh(this,st,mt=="gutter"?"gutter":"class",function(Tt){var Dt=mt=="text"?"textClass":mt=="background"?"bgClass":mt=="gutter"?"gutterClass":"wrapClass",qt=Tt[Dt];if(qt)if(Ot==null)Tt[Dt]=null;else{var ce=qt.match(At(Ot));if(!ce)return!1;var Ce=ce.index+ce[0].length;Tt[Dt]=qt.slice(0,ce.index)+(!ce.index||Ce==qt.length?"":" ")+qt.slice(Ce)||null}else return!1;return!0})}),addLineWidget:es(function(st,mt,Ot){return $f(this,st,mt,Ot)}),removeLineWidget:function(st){st.clear()},markText:function(st,mt,Ot){return Ah(this,Zn(this,st),Zn(this,mt),Ot,Ot&&Ot.type||"range")},setBookmark:function(st,mt){var Ot={replacedWith:mt&&(mt.nodeType==null?mt.widget:mt),insertLeft:mt&&mt.insertLeft,clearWhenEmpty:!1,shared:mt&&mt.shared,handleMouseEvents:mt&&mt.handleMouseEvents};return st=Zn(this,st),Ah(this,st,st,Ot,"bookmark")},findMarksAt:function(st){st=Zn(this,st);var mt=[],Ot=Bn(this,st.line).markedSpans;if(Ot)for(var Tt=0;Tt<Ot.length;++Tt){var Dt=Ot[Tt];(Dt.from==null||Dt.from<=st.ch)&&(Dt.to==null||Dt.to>=st.ch)&&mt.push(Dt.marker.parent||Dt.marker)}return mt},findMarks:function(st,mt,Ot){st=Zn(this,st),mt=Zn(this,mt);var Tt=[],Dt=st.line;return this.iter(st.line,mt.line+1,function(qt){var ce=qt.markedSpans;if(ce)for(var Ce=0;Ce<ce.length;Ce++){var be=ce[Ce];!(be.to!=null&&Dt==st.line&&st.ch>=be.to||be.from==null&&Dt!=st.line||be.from!=null&&Dt==mt.line&&be.from>=mt.ch)&&(!Ot||Ot(be.marker))&&Tt.push(be.marker.parent||be.marker)}++Dt}),Tt},getAllMarks:function(){var st=[];return this.iter(function(mt){var Ot=mt.markedSpans;if(Ot)for(var Tt=0;Tt<Ot.length;++Tt)Ot[Tt].from!=null&&st.push(Ot[Tt].marker)}),st},posFromIndex:function(st){var mt,Ot=this.first,Tt=this.lineSeparator().length;return this.iter(function(Dt){var qt=Dt.text.length+Tt;if(qt>st)return mt=st,!0;st-=qt,++Ot}),Zn(this,on(Ot,mt))},indexFromPos:function(st){st=Zn(this,st);var mt=st.ch;if(st.line<this.first||st.ch<0)return 0;var Ot=this.lineSeparator().length;return this.iter(this.first,st.line,function(Tt){mt+=Tt.text.length+Ot}),mt},copy:function(st){var mt=new ys(dr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return mt.scrollTop=this.scrollTop,mt.scrollLeft=this.scrollLeft,mt.sel=this.sel,mt.extend=!1,st&&(mt.history.undoDepth=this.history.undoDepth,mt.setHistory(this.getHistory())),mt},linkedDoc:function(st){st||(st={});var mt=this.first,Ot=this.first+this.size;st.from!=null&&st.from>mt&&(mt=st.from),st.to!=null&&st.to<Ot&&(Ot=st.to);var Tt=new ys(dr(this,mt,Ot),st.mode||this.modeOption,mt,this.lineSep,this.direction);return st.sharedHist&&(Tt.history=this.history),(this.linked||(this.linked=[])).push({doc:Tt,sharedHist:st.sharedHist}),Tt.linked=[{doc:this,isParent:!0,sharedHist:st.sharedHist}],Xg(Tt,hp(this)),Tt},unlinkDoc:function(st){if(st instanceof gr&&(st=st.doc),this.linked)for(var mt=0;mt<this.linked.length;++mt){var Ot=this.linked[mt];if(Ot.doc==st){this.linked.splice(mt,1),st.unlinkDoc(this),cp(hp(this));break}}if(st.history==this.history){var Tt=[st.id];wl(st,function(Dt){return Tt.push(Dt.id)},!0),st.history=new lc(null),st.history.done=su(this.history.done,Tt),st.history.undone=su(this.history.undone,Tt)}},iterLinkedDocs:function(st){wl(this,st)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(st){return this.lineSep?st.split(this.lineSep):Si(st)},lineSeparator:function(){return this.lineSep||`
`},setDirection:es(function(st){st!="rtl"&&(st="ltr"),st!=this.direction&&(this.direction=st,this.iter(function(mt){return mt.order=null}),this.cm&&tv(this.cm))})}),ys.prototype.eachLine=ys.prototype.iter;var rf=0;function fp(st){var mt=this;if(Jg(mt),!(nn(mt,st)||Fs(mt.display,st))){Dn(st),Ct&&(rf=+new Date);var Ot=Bs(mt,st,!0),Tt=st.dataTransfer.files;if(!(!Ot||mt.isReadOnly()))if(Tt&&Tt.length&&window.FileReader&&window.File)for(var Dt=Tt.length,qt=Array(Dt),ce=0,Ce=function(){++ce==Dt&&Ho(mt,function(){Ot=Zn(mt.doc,Ot);var an={from:Ot,to:Ot,text:mt.doc.splitLines(qt.filter(function(kn){return kn!=null}).join(mt.doc.lineSeparator())),origin:"paste"};Ru(mt.doc,an),qf(mt.doc,ou(Zn(mt.doc,Ot),Zn(mt.doc,Iu(an))))})()},be=function(an,kn){if(mt.options.allowDropFileTypes&&we(mt.options.allowDropFileTypes,an.type)==-1){Ce();return}var Tn=new FileReader;Tn.onerror=function(){return Ce()},Tn.onload=function(){var In=Tn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(In)){Ce();return}qt[kn]=In,Ce()},Tn.readAsText(an)},Fe=0;Fe<Tt.length;Fe++)be(Tt[Fe],Fe);else{if(mt.state.draggingText&&mt.doc.sel.contains(Ot)>-1){mt.state.draggingText(st),setTimeout(function(){return mt.display.input.focus()},20);return}try{var Qe=st.dataTransfer.getData("Text");if(Qe){var ze;if(mt.state.draggingText&&!mt.state.draggingText.copy&&(ze=mt.listSelections()),bh(mt.doc,ou(Ot,Ot)),ze)for(var ln=0;ln<ze.length;++ln)Ch(mt.doc,"",ze[ln].anchor,ze[ln].head,"drag");mt.replaceSelection(Qe,"around","paste"),mt.display.input.focus()}}catch(an){}}}}function Zg(st,mt){if(Ct&&(!st.state.draggingText||+new Date-rf<100)){Ti(mt);return}if(!(nn(st,mt)||Fs(st.display,mt))&&(mt.dataTransfer.setData("Text",st.getSelection()),mt.dataTransfer.effectAllowed="copyMove",mt.dataTransfer.setDragImage&&!dt)){var Ot=Lt("img",null,null,"position: fixed; left: 0; top: 0;");Ot.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",xt&&(Ot.width=Ot.height=1,st.display.wrapper.appendChild(Ot),Ot._top=Ot.offsetTop),mt.dataTransfer.setDragImage(Ot,0,0),xt&&Ot.parentNode.removeChild(Ot)}}function Qg(st,mt){var Ot=Bs(st,mt);if(Ot){var Tt=document.createDocumentFragment();nr(st,Ot,Tt),st.display.dragCursor||(st.display.dragCursor=Lt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),st.display.lineSpace.insertBefore(st.display.dragCursor,st.display.cursorDiv)),jt(st.display.dragCursor,Tt)}}function Jg(st){st.display.dragCursor&&(st.display.lineSpace.removeChild(st.display.dragCursor),st.display.dragCursor=null)}function qg(st){if(document.getElementsByClassName){for(var mt=document.getElementsByClassName("CodeMirror"),Ot=[],Tt=0;Tt<mt.length;Tt++){var Dt=mt[Tt].CodeMirror;Dt&&Ot.push(Dt)}Ot.length&&Ot[0].operation(function(){for(var qt=0;qt<Ot.length;qt++)st(Ot[qt])})}}var dp=!1;function La(){dp||(dc(),dp=!0)}function dc(){var st;Ie(window,"resize",function(){st==null&&(st=setTimeout(function(){st=null,qg(pp)},100))}),Ie(window,"blur",function(){return qg(gh)})}function pp(st){var mt=st.display;mt.cachedCharWidth=mt.cachedTextHeight=mt.cachedPaddingH=null,mt.scrollbarsClipped=!1,st.setSize()}for(var Fl={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"},of=0;of<10;of++)Fl[of+48]=Fl[of+96]=String(of);for(var td=65;td<=90;td++)Fl[td]=String.fromCharCode(td);for(var sf=1;sf<=12;sf++)Fl[sf+111]=Fl[sf+63235]="F"+sf;var ca={};ca.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"},ca.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"},ca.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"},ca.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"]},ca.default=ot?ca.macDefault:ca.pcDefault;function gp(st){var mt=st.split(/-(?!$)/);st=mt[mt.length-1];for(var Ot,Tt,Dt,qt,ce=0;ce<mt.length-1;ce++){var Ce=mt[ce];if(/^(cmd|meta|m)$/i.test(Ce))qt=!0;else if(/^a(lt)?$/i.test(Ce))Ot=!0;else if(/^(c|ctrl|control)$/i.test(Ce))Tt=!0;else if(/^s(hift)?$/i.test(Ce))Dt=!0;else throw new Error("Unrecognized modifier name: "+Ce)}return Ot&&(st="Alt-"+st),Tt&&(st="Ctrl-"+st),qt&&(st="Cmd-"+st),Dt&&(st="Shift-"+st),st}function mp(st){var mt={};for(var Ot in st)if(st.hasOwnProperty(Ot)){var Tt=st[Ot];if(/^(name|fallthrough|(de|at)tach)$/.test(Ot))continue;if(Tt=="..."){delete st[Ot];continue}for(var Dt=xe(Ot.split(" "),gp),qt=0;qt<Dt.length;qt++){var ce=void 0,Ce=void 0;qt==Dt.length-1?(Ce=Dt.join(" "),ce=Tt):(Ce=Dt.slice(0,qt+1).join(" "),ce="...");var be=mt[Ce];if(!be)mt[Ce]=ce;else if(be!=ce)throw new Error("Inconsistent bindings for "+Ce)}delete st[Ot]}for(var Fe in mt)st[Fe]=mt[Fe];return st}function Ha(st,mt,Ot,Tt){mt=Mh(mt);var Dt=mt.call?mt.call(st,Tt):mt[st];if(Dt===!1)return"nothing";if(Dt==="...")return"multi";if(Dt!=null&&Ot(Dt))return"handled";if(mt.fallthrough){if(Object.prototype.toString.call(mt.fallthrough)!="[object Array]")return Ha(st,mt.fallthrough,Ot,Tt);for(var qt=0;qt<mt.fallthrough.length;qt++){var ce=Ha(st,mt.fallthrough[qt],Ot,Tt);if(ce)return ce}}}function pc(st){var mt=typeof st=="string"?st:Fl[st.keyCode];return mt=="Ctrl"||mt=="Alt"||mt=="Shift"||mt=="Mod"}function vp(st,mt,Ot){var Tt=st;return mt.altKey&&Tt!="Alt"&&(st="Alt-"+st),(wt?mt.metaKey:mt.ctrlKey)&&Tt!="Ctrl"&&(st="Ctrl-"+st),(wt?mt.ctrlKey:mt.metaKey)&&Tt!="Mod"&&(st="Cmd-"+st),!Ot&&mt.shiftKey&&Tt!="Shift"&&(st="Shift-"+st),st}function $g(st,mt){if(xt&&st.keyCode==34&&st.char)return!1;var Ot=Fl[st.keyCode];return Ot==null||st.altGraphKey?!1:(st.keyCode==3&&st.code&&(Ot=st.code),vp(Ot,st,mt))}function Mh(st){return typeof st=="string"?ca[st]:st}function fa(st,mt){for(var Ot=st.doc.sel.ranges,Tt=[],Dt=0;Dt<Ot.length;Dt++){for(var qt=mt(Ot[Dt]);Tt.length&&Cn(qt.from,Se(Tt).to)<=0;){var ce=Tt.pop();if(Cn(ce.from,qt.from)<0){qt.from=ce.from;break}}Tt.push(qt)}Sr(st,function(){for(var Ce=Tt.length-1;Ce>=0;Ce--)Ch(st.doc,"",Tt[Ce].from,Tt[Ce].to,"+delete");iu(st)})}function yp(st,mt,Ot){var Tt=he(st.text,mt+Ot,Ot);return Tt<0||Tt>st.text.length?null:Tt}function To(st,mt,Ot){var Tt=yp(st,mt.ch,Ot);return Tt==null?null:new on(mt.line,Tt,Ot<0?"after":"before")}function af(st,mt,Ot,Tt,Dt){if(st){mt.doc.direction=="rtl"&&(Dt=-Dt);var qt=ge(Ot,mt.doc.direction);if(qt){var ce=Dt<0?Se(qt):qt[0],Ce=Dt<0==(ce.level==1),be=Ce?"after":"before",Fe;if(ce.level>0||mt.doc.direction=="rtl"){var Qe=Ir(mt,Ot);Fe=Dt<0?Ot.text.length-1:0;var ze=Nr(mt,Qe,Fe).top;Fe=ye(function(ln){return Nr(mt,Qe,ln).top==ze},Dt<0==(ce.level==1)?ce.from:ce.to-1,Fe),be=="before"&&(Fe=yp(Ot,Fe,1))}else Fe=Dt<0?ce.to:ce.from;return new on(Tt,Fe,be)}}return new on(Tt,Dt<0?Ot.text.length:0,Dt<0?"before":"after")}function ed(st,mt,Ot,Tt){var Dt=ge(mt,st.doc.direction);if(!Dt)return To(mt,Ot,Tt);Ot.ch>=mt.text.length?(Ot.ch=mt.text.length,Ot.sticky="before"):Ot.ch<=0&&(Ot.ch=0,Ot.sticky="after");var qt=Bt(Dt,Ot.ch,Ot.sticky),ce=Dt[qt];if(st.doc.direction=="ltr"&&ce.level%2==0&&(Tt>0?ce.to>Ot.ch:ce.from<Ot.ch))return To(mt,Ot,Tt);var Ce=function(Hn,ni){return yp(mt,Hn instanceof on?Hn.ch:Hn,ni)},be,Fe=function(Hn){return st.options.lineWrapping?(be=be||Ir(st,mt),qd(st,mt,be,Hn)):{begin:0,end:mt.text.length}},Qe=Fe(Ot.sticky=="before"?Ce(Ot,-1):Ot.ch);if(st.doc.direction=="rtl"||ce.level==1){var ze=ce.level==1==Tt<0,ln=Ce(Ot,ze?1:-1);if(ln!=null&&(ze?ln<=ce.to&&ln<=Qe.end:ln>=ce.from&&ln>=Qe.begin)){var an=ze?"before":"after";return new on(Ot.line,ln,an)}}var kn=function(Hn,ni,Kn){for(var ui=function(no,Vo){return Vo?new on(Ot.line,Ce(no,1),"before"):new on(Ot.line,no,"after")};Hn>=0&&Hn<Dt.length;Hn+=ni){var Ai=Dt[Hn],Vn=ni>0==(Ai.level!=1),Hi=Vn?Kn.begin:Ce(Kn.end,-1);if(Ai.from<=Hi&&Hi<Ai.to||(Hi=Vn?Ai.from:Ce(Ai.to,-1),Kn.begin<=Hi&&Hi<Kn.end))return ui(Hi,Vn)}},Tn=kn(qt+Tt,Tt,Qe);if(Tn)return Tn;var In=Tt>0?Qe.end:Ce(Qe.begin,-1);return In!=null&&!(Tt>0&&In==mt.text.length)&&(Tn=kn(Tt>0?0:Dt.length-1,Tt,Fe(In)),Tn)?Tn:null}var zu={selectAll:Lo,singleSelection:function(st){return st.setSelection(st.getCursor("anchor"),st.getCursor("head"),me)},killLine:function(st){return fa(st,function(mt){if(mt.empty()){var Ot=Bn(st.doc,mt.head.line).text.length;return mt.head.ch==Ot&&mt.head.line<st.lastLine()?{from:mt.head,to:on(mt.head.line+1,0)}:{from:mt.head,to:on(mt.head.line,Ot)}}else return{from:mt.from(),to:mt.to()}})},deleteLine:function(st){return fa(st,function(mt){return{from:on(mt.from().line,0),to:Zn(st.doc,on(mt.to().line+1,0))}})},delLineLeft:function(st){return fa(st,function(mt){return{from:on(mt.from().line,0),to:mt.from()}})},delWrappedLineLeft:function(st){return fa(st,function(mt){var Ot=st.charCoords(mt.head,"div").top+5,Tt=st.coordsChar({left:0,top:Ot},"div");return{from:Tt,to:mt.from()}})},delWrappedLineRight:function(st){return fa(st,function(mt){var Ot=st.charCoords(mt.head,"div").top+5,Tt=st.coordsChar({left:st.display.lineDiv.offsetWidth+100,top:Ot},"div");return{from:mt.from(),to:Tt}})},undo:function(st){return st.undo()},redo:function(st){return st.redo()},undoSelection:function(st){return st.undoSelection()},redoSelection:function(st){return st.redoSelection()},goDocStart:function(st){return st.extendSelection(on(st.firstLine(),0))},goDocEnd:function(st){return st.extendSelection(on(st.lastLine()))},goLineStart:function(st){return st.extendSelectionsBy(function(mt){return gc(st,mt.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(st){return st.extendSelectionsBy(function(mt){return Sp(st,mt.head)},{origin:"+move",bias:1})},goLineEnd:function(st){return st.extendSelectionsBy(function(mt){return mc(st,mt.head.line)},{origin:"+move",bias:-1})},goLineRight:function(st){return st.extendSelectionsBy(function(mt){var Ot=st.cursorCoords(mt.head,"div").top+5;return st.coordsChar({left:st.display.lineDiv.offsetWidth+100,top:Ot},"div")},pe)},goLineLeft:function(st){return st.extendSelectionsBy(function(mt){var Ot=st.cursorCoords(mt.head,"div").top+5;return st.coordsChar({left:0,top:Ot},"div")},pe)},goLineLeftSmart:function(st){return st.extendSelectionsBy(function(mt){var Ot=st.cursorCoords(mt.head,"div").top+5,Tt=st.coordsChar({left:0,top:Ot},"div");return Tt.ch<st.getLine(Tt.line).search(/\S/)?Sp(st,mt.head):Tt},pe)},goLineUp:function(st){return st.moveV(-1,"line")},goLineDown:function(st){return st.moveV(1,"line")},goPageUp:function(st){return st.moveV(-1,"page")},goPageDown:function(st){return st.moveV(1,"page")},goCharLeft:function(st){return st.moveH(-1,"char")},goCharRight:function(st){return st.moveH(1,"char")},goColumnLeft:function(st){return st.moveH(-1,"column")},goColumnRight:function(st){return st.moveH(1,"column")},goWordLeft:function(st){return st.moveH(-1,"word")},goGroupRight:function(st){return st.moveH(1,"group")},goGroupLeft:function(st){return st.moveH(-1,"group")},goWordRight:function(st){return st.moveH(1,"word")},delCharBefore:function(st){return st.deleteH(-1,"codepoint")},delCharAfter:function(st){return st.deleteH(1,"char")},delWordBefore:function(st){return st.deleteH(-1,"word")},delWordAfter:function(st){return st.deleteH(1,"word")},delGroupBefore:function(st){return st.deleteH(-1,"group")},delGroupAfter:function(st){return st.deleteH(1,"group")},indentAuto:function(st){return st.indentSelection("smart")},indentMore:function(st){return st.indentSelection("add")},indentLess:function(st){return st.indentSelection("subtract")},insertTab:function(st){return st.replaceSelection(" ")},insertSoftTab:function(st){for(var mt=[],Ot=st.listSelections(),Tt=st.options.tabSize,Dt=0;Dt<Ot.length;Dt++){var qt=Ot[Dt].from(),ce=Kt(st.getLine(qt.line),qt.ch,Tt);mt.push(He(Tt-ce%Tt))}st.replaceSelections(mt)},defaultTab:function(st){st.somethingSelected()?st.indentSelection("add"):st.execCommand("insertTab")},transposeChars:function(st){return Sr(st,function(){for(var mt=st.listSelections(),Ot=[],Tt=0;Tt<mt.length;Tt++)if(mt[Tt].empty()){var Dt=mt[Tt].head,qt=Bn(st.doc,Dt.line).text;if(qt){if(Dt.ch==qt.length&&(Dt=new on(Dt.line,Dt.ch-1)),Dt.ch>0)Dt=new on(Dt.line,Dt.ch+1),st.replaceRange(qt.charAt(Dt.ch-1)+qt.charAt(Dt.ch-2),on(Dt.line,Dt.ch-2),Dt,"+transpose");else if(Dt.line>st.doc.first){var ce=Bn(st.doc,Dt.line-1).text;ce&&(Dt=new on(Dt.line,1),st.replaceRange(qt.charAt(0)+st.doc.lineSeparator()+ce.charAt(ce.length-1),on(Dt.line-1,ce.length-1),Dt,"+transpose"))}}Ot.push(new kr(Dt,Dt))}st.setSelections(Ot)})},newlineAndIndent:function(st){return Sr(st,function(){for(var mt=st.listSelections(),Ot=mt.length-1;Ot>=0;Ot--)st.replaceRange(st.doc.lineSeparator(),mt[Ot].anchor,mt[Ot].head,"+input");mt=st.listSelections();for(var Tt=0;Tt<mt.length;Tt++)st.indentLine(mt[Tt].from().line,null,!0);iu(st)})},openLine:function(st){return st.replaceSelection(`
`,"start")},toggleOverwrite:function(st){return st.toggleOverwrite()}};function gc(st,mt){var Ot=Bn(st.doc,mt),Tt=Er(Ot);return Tt!=Ot&&(mt=We(Tt)),af(!0,st,Tt,mt,1)}function mc(st,mt){var Ot=Bn(st.doc,mt),Tt=Zr(Ot);return Tt!=Ot&&(mt=We(Tt)),af(!0,st,Ot,mt,-1)}function Sp(st,mt){var Ot=gc(st,mt.line),Tt=Bn(st.doc,Ot.line),Dt=ge(Tt,st.doc.direction);if(!Dt||Dt[0].level==0){var qt=Math.max(Ot.ch,Tt.text.search(/\S/)),ce=mt.line==Ot.line&&mt.ch<=qt&&mt.ch;return on(Ot.line,ce?0:qt,Ot.sticky)}return Ot}function vc(st,mt,Ot){if(typeof mt=="string"&&(mt=zu[mt],!mt))return!1;st.display.input.ensurePolled();var Tt=st.display.shift,Dt=!1;try{st.isReadOnly()&&(st.state.suppressEdits=!0),Ot&&(st.display.shift=!1),Dt=mt(st)!=ke}finally{st.display.shift=Tt,st.state.suppressEdits=!1}return Dt}function wp(st,mt,Ot){for(var Tt=0;Tt<st.state.keyMaps.length;Tt++){var Dt=Ha(mt,st.state.keyMaps[Tt],Ot,st);if(Dt)return Dt}return st.options.extraKeys&&Ha(mt,st.options.extraKeys,Ot,st)||Ha(mt,st.options.keyMap,Ot,st)}var Bl=new re;function kh(st,mt,Ot,Tt){var Dt=st.state.keySeq;if(Dt){if(pc(mt))return"handled";if(/\'$/.test(mt)?st.state.keySeq=null:Bl.set(50,function(){st.state.keySeq==Dt&&(st.state.keySeq=null,st.display.input.reset())}),nd(st,Dt+" "+mt,Ot,Tt))return!0}return nd(st,mt,Ot,Tt)}function nd(st,mt,Ot,Tt){var Dt=wp(st,mt,Tt);return Dt=="multi"&&(st.state.keySeq=mt),Dt=="handled"&&Yn(st,"keyHandled",st,mt,Ot),(Dt=="handled"||Dt=="multi")&&(Dn(Ot),Ar(st)),!!Dt}function id(st,mt){var Ot=$g(mt,!0);return Ot?mt.shiftKey&&!st.state.keySeq?kh(st,"Shift-"+Ot,mt,function(Tt){return vc(st,Tt,!0)})||kh(st,Ot,mt,function(Tt){if(typeof Tt=="string"?/^go[A-Z]/.test(Tt):Tt.motion)return vc(st,Tt)}):kh(st,Ot,mt,function(Tt){return vc(st,Tt)}):!1}function rd(st,mt,Ot){return kh(st,"'"+Ot+"'",mt,function(Tt){return vc(st,Tt,!0)})}var Lh=null;function xp(st){var mt=this;if(!(st.target&&st.target!=mt.display.input.getField())&&(mt.curOp.focus=Gt(),!nn(mt,st))){Ct&&St<11&&st.keyCode==27&&(st.returnValue=!1);var Ot=st.keyCode;mt.display.shift=Ot==16||st.shiftKey;var Tt=id(mt,st);xt&&(Lh=Tt?Ot:null,!Tt&&Ot==88&&!Ds&&(ot?st.metaKey:st.ctrlKey)&&mt.replaceSelection("",null,"cut")),Ft&&!ot&&!Tt&&Ot==46&&st.shiftKey&&!st.ctrlKey&&document.execCommand&&document.execCommand("cut"),Ot==18&&!/\bCodeMirror-crosshair\b/.test(mt.display.lineDiv.className)&&bp(mt)}}function bp(st){var mt=st.display.lineDiv;Yt(mt,"CodeMirror-crosshair");function Ot(Tt){(Tt.keyCode==18||!Tt.altKey)&&(_t(mt,"CodeMirror-crosshair"),Je(document,"keyup",Ot),Je(document,"mouseover",Ot))}Ie(document,"keyup",Ot),Ie(document,"mouseover",Ot)}function Pp(st){st.keyCode==16&&(this.doc.sel.shift=!1),nn(this,st)}function xl(st){var mt=this;if(!(st.target&&st.target!=mt.display.input.getField())&&!(Fs(mt.display,st)||nn(mt,st)||st.ctrlKey&&!st.altKey||ot&&st.metaKey)){var Ot=st.keyCode,Tt=st.charCode;if(xt&&Ot==Lh){Lh=null,Dn(st);return}if(!(xt&&(!st.which||st.which<10)&&id(mt,st))){var Dt=String.fromCharCode(Tt==null?Ot:Tt);Dt!="\b"&&(rd(mt,st,Dt)||mt.display.input.onKeyPress(st))}}}var tm=400,Cp=function(st,mt,Ot){this.time=st,this.pos=mt,this.button=Ot};Cp.prototype.compare=function(st,mt,Ot){return this.time+tm>st&&Cn(mt,this.pos)==0&&Ot==this.button};var yc,Th;function Ep(st,mt){var Ot=+new Date;return Th&&Th.compare(Ot,st,mt)?(yc=Th=null,"triple"):yc&&yc.compare(Ot,st,mt)?(Th=new Cp(Ot,st,mt),yc=null,"double"):(yc=new Cp(Ot,st,mt),Th=null,"single")}function bl(st){var mt=this,Ot=mt.display;if(!(nn(mt,st)||Ot.activeTouch&&Ot.input.supportsTouch())){if(Ot.input.ensurePolled(),Ot.shift=st.shiftKey,Fs(Ot,st)){pt||(Ot.scroller.draggable=!1,setTimeout(function(){return Ot.scroller.draggable=!0},100));return}if(!ad(mt,st)){var Tt=Bs(mt,st),Dt=ki(st),qt=Tt?Ep(Tt,Dt):"single";window.focus(),Dt==1&&mt.state.selectingText&&mt.state.selectingText(st),!(Tt&&Ap(mt,Dt,Tt,qt,st))&&(Dt==1?Tt?em(mt,Tt,qt,st):Oi(st)==Ot.scroller&&Dn(st):Dt==2?(Tt&&Jf(mt.doc,Tt),setTimeout(function(){return Ot.input.focus()},20)):Dt==3&&(Et?mt.display.input.onContextMenu(st):so(mt)))}}}function Ap(st,mt,Ot,Tt,Dt){var qt="Click";return Tt=="double"?qt="Double"+qt:Tt=="triple"&&(qt="Triple"+qt),qt=(mt==1?"Left":mt==2?"Middle":"Right")+qt,kh(st,vp(qt,Dt),Dt,function(ce){if(typeof ce=="string"&&(ce=zu[ce]),!ce)return!1;var Ce=!1;try{st.isReadOnly()&&(st.state.suppressEdits=!0),Ce=ce(st,Ot)!=ke}finally{st.state.suppressEdits=!1}return Ce})}function od(st,mt,Ot){var Tt=st.getOption("configureMouse"),Dt=Tt?Tt(st,mt,Ot):{};if(Dt.unit==null){var qt=it?Ot.shiftKey&&Ot.metaKey:Ot.altKey;Dt.unit=qt?"rectangle":mt=="single"?"char":mt=="double"?"word":"line"}return(Dt.extend==null||st.doc.extend)&&(Dt.extend=st.doc.extend||Ot.shiftKey),Dt.addNew==null&&(Dt.addNew=ot?Ot.metaKey:Ot.ctrlKey),Dt.moveOnDrag==null&&(Dt.moveOnDrag=!(ot?Ot.altKey:Ot.ctrlKey)),Dt}function em(st,mt,Ot,Tt){Ct?setTimeout(ae(Hr,st),0):st.curOp.focus=Gt();var Dt=od(st,Ot,Tt),qt=st.doc.sel,ce;st.options.dragDrop&&pi&&!st.isReadOnly()&&Ot=="single"&&(ce=qt.contains(mt))>-1&&(Cn((ce=qt.ranges[ce]).from(),mt)<0||mt.xRel>0)&&(Cn(ce.to(),mt)>0||mt.xRel<0)?Mp(st,Tt,mt,Dt):nv(st,Tt,mt,Dt)}function Mp(st,mt,Ot,Tt){var Dt=st.display,qt=!1,ce=Ho(st,function(Fe){pt&&(Dt.scroller.draggable=!1),st.state.draggingText=!1,Je(Dt.wrapper.ownerDocument,"mouseup",ce),Je(Dt.wrapper.ownerDocument,"mousemove",Ce),Je(Dt.scroller,"dragstart",be),Je(Dt.scroller,"drop",ce),qt||(Dn(Fe),Tt.addNew||Jf(st.doc,Ot,null,null,Tt.extend),pt&&!dt||Ct&&St==9?setTimeout(function(){Dt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Dt.input.focus()},20):Dt.input.focus())}),Ce=function(Fe){qt=qt||Math.abs(mt.clientX-Fe.clientX)+Math.abs(mt.clientY-Fe.clientY)>=10},be=function(){return qt=!0};pt&&(Dt.scroller.draggable=!0),st.state.draggingText=ce,ce.copy=!Tt.moveOnDrag,Dt.scroller.dragDrop&&Dt.scroller.dragDrop(),Ie(Dt.wrapper.ownerDocument,"mouseup",ce),Ie(Dt.wrapper.ownerDocument,"mousemove",Ce),Ie(Dt.scroller,"dragstart",be),Ie(Dt.scroller,"drop",ce),so(st),setTimeout(function(){return Dt.input.focus()},20)}function kp(st,mt,Ot){if(Ot=="char")return new kr(mt,mt);if(Ot=="word")return st.findWordAt(mt);if(Ot=="line")return new kr(on(mt.line,0),Zn(st.doc,on(mt.line+1,0)));var Tt=Ot(st,mt);return new kr(Tt.from,Tt.to)}function nv(st,mt,Ot,Tt){var Dt=st.display,qt=st.doc;Dn(mt);var ce,Ce,be=qt.sel,Fe=be.ranges;if(Tt.addNew&&!Tt.extend?(Ce=qt.sel.contains(Ot),Ce>-1?ce=Fe[Ce]:ce=new kr(Ot,Ot)):(ce=qt.sel.primary(),Ce=qt.sel.primIndex),Tt.unit=="rectangle")Tt.addNew||(ce=new kr(Ot,Ot)),Ot=Bs(st,mt,!0,!0),Ce=-1;else{var Qe=kp(st,Ot,Tt.unit);Tt.extend?ce=Qf(ce,Qe.anchor,Qe.head,Tt.extend):ce=Qe}Tt.addNew?Ce==-1?(Ce=Fe.length,ks(qt,rl(st,Fe.concat([ce]),Ce),{scroll:!1,origin:"*mouse"})):Fe.length>1&&Fe[Ce].empty()&&Tt.unit=="char"&&!Tt.extend?(ks(qt,rl(st,Fe.slice(0,Ce).concat(Fe.slice(Ce+1)),0),{scroll:!1,origin:"*mouse"}),be=qt.sel):Bu(qt,Ce,ce,fe):(Ce=0,ks(qt,new Ga([ce],0),fe),be=qt.sel);var ze=Ot;function ln(Kn){if(Cn(ze,Kn)!=0)if(ze=Kn,Tt.unit=="rectangle"){for(var ui=[],Ai=st.options.tabSize,Vn=Kt(Bn(qt,Ot.line).text,Ot.ch,Ai),Hi=Kt(Bn(qt,Kn.line).text,Kn.ch,Ai),no=Math.min(Vn,Hi),Vo=Math.max(Vn,Hi),fo=Math.min(Ot.line,Kn.line),ta=Math.min(st.lastLine(),Math.max(Ot.line,Kn.line));fo<=ta;fo++){var Ls=Bn(qt,fo).text,Ro=_e(Ls,no,Ai);no==Vo?ui.push(new kr(on(fo,Ro),on(fo,Ro))):Ls.length>Ro&&ui.push(new kr(on(fo,Ro),on(fo,_e(Ls,Vo,Ai))))}ui.length||ui.push(new kr(Ot,Ot)),ks(qt,rl(st,be.ranges.slice(0,Ce).concat(ui),Ce),{origin:"*mouse",scroll:!1}),st.scrollIntoView(Kn)}else{var da=ce,Ss=kp(st,Kn,Tt.unit),zo=da.anchor,vr;Cn(Ss.anchor,zo)>0?(vr=Ss.head,zo=oi(da.from(),Ss.anchor)):(vr=Ss.anchor,zo=Wi(da.to(),Ss.head));var So=be.ranges.slice(0);So[Ce]=nm(st,new kr(Zn(qt,zo),vr)),ks(qt,rl(st,So,Ce),fe)}}var an=Dt.wrapper.getBoundingClientRect(),kn=0;function Tn(Kn){var ui=++kn,Ai=Bs(st,Kn,!0,Tt.unit=="rectangle");if(Ai)if(Cn(Ai,ze)!=0){st.curOp.focus=Gt(),ln(Ai);var Vn=$i(Dt,qt);(Ai.line>=Vn.to||Ai.line<Vn.from)&&setTimeout(Ho(st,function(){kn==ui&&Tn(Kn)}),150)}else{var Hi=Kn.clientY<an.top?-20:Kn.clientY>an.bottom?20:0;Hi&&setTimeout(Ho(st,function(){kn==ui&&(Dt.scroller.scrollTop+=Hi,Tn(Kn))}),50)}}function In(Kn){st.state.selectingText=!1,kn=1/0,Kn&&(Dn(Kn),Dt.input.focus()),Je(Dt.wrapper.ownerDocument,"mousemove",Hn),Je(Dt.wrapper.ownerDocument,"mouseup",ni),qt.history.lastSelOrigin=null}var Hn=Ho(st,function(Kn){Kn.buttons===0||!ki(Kn)?In(Kn):Tn(Kn)}),ni=Ho(st,In);st.state.selectingText=ni,Ie(Dt.wrapper.ownerDocument,"mousemove",Hn),Ie(Dt.wrapper.ownerDocument,"mouseup",ni)}function nm(st,mt){var Ot=mt.anchor,Tt=mt.head,Dt=Bn(st.doc,Ot.line);if(Cn(Ot,Tt)==0&&Ot.sticky==Tt.sticky)return mt;var qt=ge(Dt);if(!qt)return mt;var ce=Bt(qt,Ot.ch,Ot.sticky),Ce=qt[ce];if(Ce.from!=Ot.ch&&Ce.to!=Ot.ch)return mt;var be=ce+(Ce.from==Ot.ch==(Ce.level!=1)?0:1);if(be==0||be==qt.length)return mt;var Fe;if(Tt.line!=Ot.line)Fe=(Tt.line-Ot.line)*(st.doc.direction=="ltr"?1:-1)>0;else{var Qe=Bt(qt,Tt.ch,Tt.sticky),ze=Qe-ce||(Tt.ch-Ot.ch)*(Ce.level==1?-1:1);Qe==be-1||Qe==be?Fe=ze<0:Fe=ze>0}var ln=qt[be+(Fe?-1:0)],an=Fe==(ln.level==1),kn=an?ln.from:ln.to,Tn=an?"after":"before";return Ot.ch==kn&&Ot.sticky==Tn?mt:new kr(new on(Ot.line,kn,Tn),Tt)}function sd(st,mt,Ot,Tt){var Dt,qt;if(mt.touches)Dt=mt.touches[0].clientX,qt=mt.touches[0].clientY;else try{Dt=mt.clientX,qt=mt.clientY}catch(ln){return!1}if(Dt>=Math.floor(st.display.gutters.getBoundingClientRect().right))return!1;Tt&&Dn(mt);var ce=st.display,Ce=ce.lineDiv.getBoundingClientRect();if(qt>Ce.bottom||!An(st,Ot))return mi(mt);qt-=Ce.top-ce.viewOffset;for(var be=0;be<st.display.gutterSpecs.length;++be){var Fe=ce.gutters.childNodes[be];if(Fe&&Fe.getBoundingClientRect().right>=Dt){var Qe=Nn(st.doc,qt),ze=st.display.gutterSpecs[be];return Ze(st,Ot,st,Qe,ze.className,mt),mi(mt)}}}function ad(st,mt){return sd(st,mt,"gutterClick",!0)}function ld(st,mt){Fs(st.display,mt)||im(st,mt)||nn(st,mt,"contextmenu")||Et||st.display.input.onContextMenu(mt)}function im(st,mt){return An(st,"gutterContextMenu")?sd(st,mt,"gutterContextMenu",!1):!1}function ud(st){st.display.wrapper.className=st.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+st.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nl(st)}var Gu={toString:function(){return"CodeMirror.Init"}},Lp={},lf={};function rm(st){var mt=st.optionHandlers;function Ot(Tt,Dt,qt,ce){st.defaults[Tt]=Dt,qt&&(mt[Tt]=ce?function(Ce,be,Fe){Fe!=Gu&&qt(Ce,be,Fe)}:qt)}st.defineOption=Ot,st.Init=Gu,Ot("value","",function(Tt,Dt){return Tt.setValue(Dt)},!0),Ot("mode",null,function(Tt,Dt){Tt.doc.modeOption=Dt,Ui(Tt)},!0),Ot("indentUnit",2,Ui,!0),Ot("indentWithTabs",!1),Ot("smartIndent",!0),Ot("tabSize",4,function(Tt){Kc(Tt),nl(Tt),eo(Tt)},!0),Ot("lineSeparator",null,function(Tt,Dt){if(Tt.doc.lineSep=Dt,!!Dt){var qt=[],ce=Tt.doc.first;Tt.doc.iter(function(be){for(var Fe=0;;){var Qe=be.text.indexOf(Dt,Fe);if(Qe==-1)break;Fe=Qe+Dt.length,qt.push(on(ce,Qe))}ce++});for(var Ce=qt.length-1;Ce>=0;Ce--)Ch(Tt.doc,Dt,qt[Ce],on(qt[Ce].line,qt[Ce].ch+Dt.length))}}),Ot("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Tt,Dt,qt){Tt.state.specialChars=new RegExp(Dt.source+(Dt.test(" ")?"":"| "),"g"),qt!=Gu&&Tt.refresh()}),Ot("specialCharPlaceholder",Es,function(Tt){return Tt.refresh()},!0),Ot("electricChars",!0),Ot("inputStyle",z?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ot("spellcheck",!1,function(Tt,Dt){return Tt.getInputField().spellcheck=Dt},!0),Ot("autocorrect",!1,function(Tt,Dt){return Tt.getInputField().autocorrect=Dt},!0),Ot("autocapitalize",!1,function(Tt,Dt){return Tt.getInputField().autocapitalize=Dt},!0),Ot("rtlMoveVisually",!at),Ot("wholeLineUpdateBefore",!0),Ot("theme","default",function(Tt){ud(Tt),Ma(Tt)},!0),Ot("keyMap","default",function(Tt,Dt,qt){var ce=Mh(Dt),Ce=qt!=Gu&&Mh(qt);Ce&&Ce.detach&&Ce.detach(Tt,ce),ce.attach&&ce.attach(Tt,Ce||null)}),Ot("extraKeys",null),Ot("configureMouse",null),Ot("lineWrapping",!1,om,!0),Ot("gutters",[],function(Tt,Dt){Tt.display.gutterSpecs=is(Dt,Tt.options.lineNumbers),Ma(Tt)},!0),Ot("fixedGutter",!0,function(Tt,Dt){Tt.display.gutters.style.left=Dt?Hc(Tt.display)+"px":"0",Tt.refresh()},!0),Ot("coverGutterNextToScrollbar",!1,function(Tt){return ku(Tt)},!0),Ot("scrollbarStyle","native",function(Tt){np(Tt),ku(Tt),Tt.display.scrollbars.setScrollTop(Tt.doc.scrollTop),Tt.display.scrollbars.setScrollLeft(Tt.doc.scrollLeft)},!0),Ot("lineNumbers",!1,function(Tt,Dt){Tt.display.gutterSpecs=is(Tt.options.gutters,Dt),Ma(Tt)},!0),Ot("firstLineNumber",1,Ma,!0),Ot("lineNumberFormatter",function(Tt){return Tt},Ma,!0),Ot("showCursorWhenSelecting",!1,Uo,!0),Ot("resetSelectionOnContextMenu",!0),Ot("lineWiseCopyCut",!0),Ot("pasteLinesPerSelection",!0),Ot("selectionsMayTouch",!1),Ot("readOnly",!1,function(Tt,Dt){Dt=="nocursor"&&(gh(Tt),Tt.display.input.blur()),Tt.display.input.readOnlyChanged(Dt)}),Ot("screenReaderLabel",null,function(Tt,Dt){Dt=Dt===""?null:Dt,Tt.display.input.screenReaderLabelChanged(Dt)}),Ot("disableInput",!1,function(Tt,Dt){Dt||Tt.display.input.reset()},!0),Ot("dragDrop",!0,hd),Ot("allowDropFileTypes",null),Ot("cursorBlinkRate",530),Ot("cursorScrollMargin",0),Ot("cursorHeight",1,Uo,!0),Ot("singleCursorHeightPerLine",!0,Uo,!0),Ot("workTime",100),Ot("workDelay",100),Ot("flattenSpans",!0,Kc,!0),Ot("addModeClass",!1,Kc,!0),Ot("pollInterval",100),Ot("undoDepth",200,function(Tt,Dt){return Tt.doc.history.undoDepth=Dt}),Ot("historyEventDelay",1250),Ot("viewportMargin",10,function(Tt){return Tt.refresh()},!0),Ot("maxHighlightLength",1e4,Kc,!0),Ot("moveInputWithCursor",!0,function(Tt,Dt){Dt||Tt.display.input.resetPosition()}),Ot("tabindex",null,function(Tt,Dt){return Tt.display.input.getField().tabIndex=Dt||""}),Ot("autofocus",null),Ot("direction","ltr",function(Tt,Dt){return Tt.doc.setDirection(Dt)},!0),Ot("phrases",null)}function hd(st,mt,Ot){var Tt=Ot&&Ot!=Gu;if(!mt!=!Tt){var Dt=st.display.dragFunctions,qt=mt?Ie:Je;qt(st.display.scroller,"dragstart",Dt.start),qt(st.display.scroller,"dragenter",Dt.enter),qt(st.display.scroller,"dragover",Dt.over),qt(st.display.scroller,"dragleave",Dt.leave),qt(st.display.scroller,"drop",Dt.drop)}}function om(st){st.options.lineWrapping?(Yt(st.display.wrapper,"CodeMirror-wrap"),st.display.sizer.style.minWidth="",st.display.sizerWidth=null):(_t(st.display.wrapper,"CodeMirror-wrap"),Qr(st)),gi(st),eo(st),nl(st),setTimeout(function(){return ku(st)},100)}function gr(st,mt){var Ot=this;if(!(this instanceof gr))return new gr(st,mt);this.options=mt=mt?ve(mt):{},ve(Lp,mt,!1);var Tt=mt.value;typeof Tt=="string"?Tt=new ys(Tt,mt.mode,null,mt.lineSeparator,mt.direction):mt.mode&&(Tt.modeOption=mt.mode),this.doc=Tt;var Dt=new gr.inputStyles[mt.inputStyle](this),qt=this.display=new Du(st,Tt,Dt,mt);qt.wrapper.CodeMirror=this,ud(this),mt.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),np(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 re,keySeq:null,specialChars:null},mt.autofocus&&!z&&qt.input.focus(),Ct&&St<11&&setTimeout(function(){return Ot.display.input.reset(!0)},20),Sc(this),La(),Lu(this),this.curOp.forceUpdate=!0,Kf(this,Tt),mt.autofocus&&!z||this.hasFocus()?setTimeout(function(){Ot.hasFocus()&&!Ot.state.focused&&or(Ot)},20):gh(this);for(var ce in lf)lf.hasOwnProperty(ce)&&lf[ce](this,mt[ce],Gu);No(this),mt.finishInit&&mt.finishInit(this);for(var Ce=0;Ce<_h.length;++Ce)_h[Ce](this);Tu(this),pt&&mt.lineWrapping&&getComputedStyle(qt.lineDiv).textRendering=="optimizelegibility"&&(qt.lineDiv.style.textRendering="auto")}gr.defaults=Lp,gr.optionHandlers=lf;function Sc(st){var mt=st.display;Ie(mt.scroller,"mousedown",Ho(st,bl)),Ct&&St<11?Ie(mt.scroller,"dblclick",Ho(st,function(be){if(!nn(st,be)){var Fe=Bs(st,be);if(!(!Fe||ad(st,be)||Fs(st.display,be))){Dn(be);var Qe=st.findWordAt(Fe);Jf(st.doc,Qe.anchor,Qe.head)}}})):Ie(mt.scroller,"dblclick",function(be){return nn(st,be)||Dn(be)}),Ie(mt.scroller,"contextmenu",function(be){return ld(st,be)}),Ie(mt.input.getField(),"contextmenu",function(be){mt.scroller.contains(be.target)||ld(st,be)});var Ot,Tt={end:0};function Dt(){mt.activeTouch&&(Ot=setTimeout(function(){return mt.activeTouch=null},1e3),Tt=mt.activeTouch,Tt.end=+new Date)}function qt(be){if(be.touches.length!=1)return!1;var Fe=be.touches[0];return Fe.radiusX<=1&&Fe.radiusY<=1}function ce(be,Fe){if(Fe.left==null)return!0;var Qe=Fe.left-be.left,ze=Fe.top-be.top;return Qe*Qe+ze*ze>20*20}Ie(mt.scroller,"touchstart",function(be){if(!nn(st,be)&&!qt(be)&&!ad(st,be)){mt.input.ensurePolled(),clearTimeout(Ot);var Fe=+new Date;mt.activeTouch={start:Fe,moved:!1,prev:Fe-Tt.end<=300?Tt:null},be.touches.length==1&&(mt.activeTouch.left=be.touches[0].pageX,mt.activeTouch.top=be.touches[0].pageY)}}),Ie(mt.scroller,"touchmove",function(){mt.activeTouch&&(mt.activeTouch.moved=!0)}),Ie(mt.scroller,"touchend",function(be){var Fe=mt.activeTouch;if(Fe&&!Fs(mt,be)&&Fe.left!=null&&!Fe.moved&&new Date-Fe.start<300){var Qe=st.coordsChar(mt.activeTouch,"page"),ze;!Fe.prev||ce(Fe,Fe.prev)?ze=new kr(Qe,Qe):!Fe.prev.prev||ce(Fe,Fe.prev.prev)?ze=st.findWordAt(Qe):ze=new kr(on(Qe.line,0),Zn(st.doc,on(Qe.line+1,0))),st.setSelection(ze.anchor,ze.head),st.focus(),Dn(be)}Dt()}),Ie(mt.scroller,"touchcancel",Dt),Ie(mt.scroller,"scroll",function(){mt.scroller.clientHeight&&(vh(st,mt.scroller.scrollTop),ru(st,mt.scroller.scrollLeft,!0),Ze(st,"scroll",st))}),Ie(mt.scroller,"mousewheel",function(be){return rs(st,be)}),Ie(mt.scroller,"DOMMouseScroll",function(be){return rs(st,be)}),Ie(mt.wrapper,"scroll",function(){return mt.wrapper.scrollTop=mt.wrapper.scrollLeft=0}),mt.dragFunctions={enter:function(be){nn(st,be)||Ti(be)},over:function(be){nn(st,be)||(Qg(st,be),Ti(be))},start:function(be){return Zg(st,be)},drop:Ho(st,fp),leave:function(be){nn(st,be)||Jg(st)}};var Ce=mt.input.getField();Ie(Ce,"keyup",function(be){return Pp.call(st,be)}),Ie(Ce,"keydown",Ho(st,xp)),Ie(Ce,"keypress",Ho(st,xl)),Ie(Ce,"focus",function(be){return or(st,be)}),Ie(Ce,"blur",function(be){return gh(st,be)})}var _h=[];gr.defineInitHook=function(st){return _h.push(st)};function Wo(st,mt,Ot,Tt){var Dt=st.doc,qt;Ot==null&&(Ot="add"),Ot=="smart"&&(Dt.mode.indent?qt=Mi(st,mt).state:Ot="prev");var ce=st.options.tabSize,Ce=Bn(Dt,mt),be=Kt(Ce.text,null,ce);Ce.stateAfter&&(Ce.stateAfter=null);var Fe=Ce.text.match(/^\s*/)[0],Qe;if(!Tt&&!/\S/.test(Ce.text))Qe=0,Ot="not";else if(Ot=="smart"&&(Qe=Dt.mode.indent(qt,Ce.text.slice(Fe.length),Ce.text),Qe==ke||Qe>150)){if(!Tt)return;Ot="prev"}Ot=="prev"?mt>Dt.first?Qe=Kt(Bn(Dt,mt-1).text,null,ce):Qe=0:Ot=="add"?Qe=be+st.options.indentUnit:Ot=="subtract"?Qe=be-st.options.indentUnit:typeof Ot=="number"&&(Qe=be+Ot),Qe=Math.max(0,Qe);var ze="",ln=0;if(st.options.indentWithTabs)for(var an=Math.floor(Qe/ce);an;--an)ln+=ce,ze+=" ";if(ln<Qe&&(ze+=He(Qe-ln)),ze!=Fe)return Ch(Dt,ze,on(mt,0),on(mt,Fe.length),"+input"),Ce.stateAfter=null,!0;for(var kn=0;kn<Dt.sel.ranges.length;kn++){var Tn=Dt.sel.ranges[kn];if(Tn.head.line==mt&&Tn.head.ch<Fe.length){var In=on(mt,Fe.length);Bu(Dt,kn,new kr(In,In));break}}}var $s=null;function Oh(st){$s=st}function uf(st,mt,Ot,Tt,Dt){var qt=st.doc;st.display.shift=!1,Tt||(Tt=qt.sel);var ce=+new Date-200,Ce=Dt=="paste"||st.state.pasteIncoming>ce,be=Si(mt),Fe=null;if(Ce&&Tt.ranges.length>1)if($s&&$s.text.join(`
`)==mt){if(Tt.ranges.length%$s.text.length==0){Fe=[];for(var Qe=0;Qe<$s.text.length;Qe++)Fe.push(qt.splitLines($s.text[Qe]))}}else be.length==Tt.ranges.length&&st.options.pasteLinesPerSelection&&(Fe=xe(be,function(Hn){return[Hn]}));for(var ze=st.curOp.updateInput,ln=Tt.ranges.length-1;ln>=0;ln--){var an=Tt.ranges[ln],kn=an.from(),Tn=an.to();an.empty()&&(Ot&&Ot>0?kn=on(kn.line,kn.ch-Ot):st.state.overwrite&&!Ce?Tn=on(Tn.line,Math.min(Bn(qt,Tn.line).text.length,Tn.ch+Se(be).length)):Ce&&$s&&$s.lineWise&&$s.text.join(`
`)==be.join(`
`)&&(kn=Tn=on(kn.line,0)));var In={from:kn,to:Tn,text:Fe?Fe[ln%Fe.length]:be,origin:Dt||(Ce?"paste":st.state.cutIncoming>ce?"cut":"+input")};Ru(st.doc,In),Yn(st,"inputRead",st,In)}mt&&!Ce&&_p(st,mt),iu(st),st.curOp.updateInput<2&&(st.curOp.updateInput=ze),st.curOp.typing=!0,st.state.pasteIncoming=st.state.cutIncoming=-1}function Tp(st,mt){var Ot=st.clipboardData&&st.clipboardData.getData("Text");if(Ot)return st.preventDefault(),!mt.isReadOnly()&&!mt.options.disableInput&&Sr(mt,function(){return uf(mt,Ot,0,null,"paste")}),!0}function _p(st,mt){if(!(!st.options.electricChars||!st.options.smartIndent))for(var Ot=st.doc.sel,Tt=Ot.ranges.length-1;Tt>=0;Tt--){var Dt=Ot.ranges[Tt];if(!(Dt.head.ch>100||Tt&&Ot.ranges[Tt-1].head.line==Dt.head.line)){var qt=st.getModeAt(Dt.head),ce=!1;if(qt.electricChars){for(var Ce=0;Ce<qt.electricChars.length;Ce++)if(mt.indexOf(qt.electricChars.charAt(Ce))>-1){ce=Wo(st,Dt.head.line,"smart");break}}else qt.electricInput&&qt.electricInput.test(Bn(st.doc,Dt.head.line).text.slice(0,Dt.head.ch))&&(ce=Wo(st,Dt.head.line,"smart"));ce&&Yn(st,"electricInput",st,Dt.head.line)}}}function Op(st){for(var mt=[],Ot=[],Tt=0;Tt<st.doc.sel.ranges.length;Tt++){var Dt=st.doc.sel.ranges[Tt].head.line,qt={anchor:on(Dt,0),head:on(Dt+1,0)};Ot.push(qt),mt.push(st.getRange(qt.anchor,qt.head))}return{text:mt,ranges:Ot}}function jp(st,mt,Ot,Tt){st.setAttribute("autocorrect",Ot?"":"off"),st.setAttribute("autocapitalize",Tt?"":"off"),st.setAttribute("spellcheck",!!mt)}function Np(){var st=Lt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),mt=Lt("div",[st],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return pt?st.style.width="1000px":st.setAttribute("wrap","off"),lt&&(st.style.border="1px solid black"),jp(st),mt}function Uu(st){var mt=st.optionHandlers,Ot=st.helpers={};st.prototype={constructor:st,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Tt,Dt){var qt=this.options,ce=qt[Tt];qt[Tt]==Dt&&Tt!="mode"||(qt[Tt]=Dt,mt.hasOwnProperty(Tt)&&Ho(this,mt[Tt])(this,Dt,ce),Ze(this,"optionChange",this,Tt))},getOption:function(Tt){return this.options[Tt]},getDoc:function(){return this.doc},addKeyMap:function(Tt,Dt){this.state.keyMaps[Dt?"push":"unshift"](Mh(Tt))},removeKeyMap:function(Tt){for(var Dt=this.state.keyMaps,qt=0;qt<Dt.length;++qt)if(Dt[qt]==Tt||Dt[qt].name==Tt)return Dt.splice(qt,1),!0},addOverlay:ts(function(Tt,Dt){var qt=Tt.token?Tt:st.getMode(this.options,Tt);if(qt.startState)throw new Error("Overlays may not be stateful.");le(this.state.overlays,{mode:qt,modeSpec:Tt,opaque:Dt&&Dt.opaque,priority:Dt&&Dt.priority||0},function(ce){return ce.priority}),this.state.modeGen++,eo(this)}),removeOverlay:ts(function(Tt){for(var Dt=this.state.overlays,qt=0;qt<Dt.length;++qt){var ce=Dt[qt].modeSpec;if(ce==Tt||typeof Tt=="string"&&ce.name==Tt){Dt.splice(qt,1),this.state.modeGen++,eo(this);return}}}),indentLine:ts(function(Tt,Dt,qt){typeof Dt!="string"&&typeof Dt!="number"&&(Dt==null?Dt=this.options.smartIndent?"smart":"prev":Dt=Dt?"add":"subtract"),ti(this.doc,Tt)&&Wo(this,Tt,Dt,qt)}),indentSelection:ts(function(Tt){for(var Dt=this.doc.sel.ranges,qt=-1,ce=0;ce<Dt.length;ce++){var Ce=Dt[ce];if(Ce.empty())Ce.head.line>qt&&(Wo(this,Ce.head.line,Tt,!0),qt=Ce.head.line,ce==this.doc.sel.primIndex&&iu(this));else{var be=Ce.from(),Fe=Ce.to(),Qe=Math.max(qt,be.line);qt=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var ze=Qe;ze<qt;++ze)Wo(this,ze,Tt);var ln=this.doc.sel.ranges;be.ch==0&&Dt.length==ln.length&&ln[ce].from().ch>0&&Bu(this.doc,ce,new kr(be,ln[ce].to()),me)}}}),getTokenAt:function(Tt,Dt){return ei(this,Tt,Dt)},getLineTokens:function(Tt,Dt){return ei(this,on(Tt),Dt,!0)},getTokenTypeAt:function(Tt){Tt=Zn(this.doc,Tt);var Dt=cr(this,Bn(this.doc,Tt.line)),qt=0,ce=(Dt.length-1)/2,Ce=Tt.ch,be;if(Ce==0)be=Dt[2];else for(;;){var Fe=qt+ce>>1;if((Fe?Dt[Fe*2-1]:0)>=Ce)ce=Fe;else if(Dt[Fe*2+1]<Ce)qt=Fe+1;else{be=Dt[Fe*2+2];break}}var Qe=be?be.indexOf("overlay "):-1;return Qe<0?be:Qe==0?null:be.slice(0,Qe-1)},getModeAt:function(Tt){var Dt=this.doc.mode;return Dt.innerMode?st.innerMode(Dt,this.getTokenAt(Tt).state).mode:Dt},getHelper:function(Tt,Dt){return this.getHelpers(Tt,Dt)[0]},getHelpers:function(Tt,Dt){var qt=[];if(!Ot.hasOwnProperty(Dt))return qt;var ce=Ot[Dt],Ce=this.getModeAt(Tt);if(typeof Ce[Dt]=="string")ce[Ce[Dt]]&&qt.push(ce[Ce[Dt]]);else if(Ce[Dt])for(var be=0;be<Ce[Dt].length;be++){var Fe=ce[Ce[Dt][be]];Fe&&qt.push(Fe)}else Ce.helperType&&ce[Ce.helperType]?qt.push(ce[Ce.helperType]):ce[Ce.name]&&qt.push(ce[Ce.name]);for(var Qe=0;Qe<ce._global.length;Qe++){var ze=ce._global[Qe];ze.pred(Ce,this)&&we(qt,ze.val)==-1&&qt.push(ze.val)}return qt},getStateAfter:function(Tt,Dt){var qt=this.doc;return Tt=ri(qt,Tt==null?qt.first+qt.size-1:Tt),Mi(this,Tt+1,Dt).state},cursorCoords:function(Tt,Dt){var qt,ce=this.doc.sel.primary();return Tt==null?qt=ce.head:typeof Tt=="object"?qt=Zn(this.doc,Tt):qt=Tt?ce.from():ce.to(),ho(this,qt,Dt||"page")},charCoords:function(Tt,Dt){return tu(this,Zn(this.doc,Tt),Dt||"page")},coordsChar:function(Tt,Dt){return Tt=il(this,Tt,Dt||"page"),Rf(this,Tt.left,Tt.top)},lineAtHeight:function(Tt,Dt){return Tt=il(this,{top:Tt,left:0},Dt||"page").top,Nn(this.doc,Tt+this.display.viewOffset)},heightAtLine:function(Tt,Dt,qt){var ce=!1,Ce;if(typeof Tt=="number"){var be=this.doc.first+this.doc.size-1;Tt<this.doc.first?Tt=this.doc.first:Tt>be&&(Tt=be,ce=!0),Ce=Bn(this.doc,Tt)}else Ce=Tt;return Po(this,Ce,{top:0,left:0},Dt||"page",qt||ce).top+(ce?this.doc.height-zi(Ce):0)},defaultTextHeight:function(){return nu(this.display)},defaultCharWidth:function(){return ph(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Tt,Dt,qt,ce,Ce){var be=this.display;Tt=ho(this,Zn(this.doc,Tt));var Fe=Tt.bottom,Qe=Tt.left;if(Dt.style.position="absolute",Dt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Dt),be.sizer.appendChild(Dt),ce=="over")Fe=Tt.top;else if(ce=="above"||ce=="near"){var ze=Math.max(be.wrapper.clientHeight,this.doc.height),ln=Math.max(be.sizer.clientWidth,be.lineSpace.clientWidth);(ce=="above"||Tt.bottom+Dt.offsetHeight>ze)&&Tt.top>Dt.offsetHeight?Fe=Tt.top-Dt.offsetHeight:Tt.bottom+Dt.offsetHeight<=ze&&(Fe=Tt.bottom),Qe+Dt.offsetWidth>ln&&(Qe=ln-Dt.offsetWidth)}Dt.style.top=Fe+"px",Dt.style.left=Dt.style.right="",Ce=="right"?(Qe=be.sizer.clientWidth-Dt.offsetWidth,Dt.style.right="0px"):(Ce=="left"?Qe=0:Ce=="middle"&&(Qe=(be.sizer.clientWidth-Dt.offsetWidth)/2),Dt.style.left=Qe+"px"),qt&&Wc(this,{left:Qe,top:Fe,right:Qe+Dt.offsetWidth,bottom:Fe+Dt.offsetHeight})},triggerOnKeyDown:ts(xp),triggerOnKeyPress:ts(xl),triggerOnKeyUp:Pp,triggerOnMouseDown:ts(bl),execCommand:function(Tt){if(zu.hasOwnProperty(Tt))return zu[Tt].call(null,this)},triggerElectric:ts(function(Tt){_p(this,Tt)}),findPosH:function(Tt,Dt,qt,ce){var Ce=1;Dt<0&&(Ce=-1,Dt=-Dt);for(var be=Zn(this.doc,Tt),Fe=0;Fe<Dt&&(be=hf(this.doc,be,Ce,qt,ce),!be.hitSide);++Fe);return be},moveH:ts(function(Tt,Dt){var qt=this;this.extendSelectionsBy(function(ce){return qt.display.shift||qt.doc.extend||ce.empty()?hf(qt.doc,ce.head,Tt,Dt,qt.options.rtlMoveVisually):Tt<0?ce.from():ce.to()},pe)}),deleteH:ts(function(Tt,Dt){var qt=this.doc.sel,ce=this.doc;qt.somethingSelected()?ce.replaceSelection("",null,"+delete"):fa(this,function(Ce){var be=hf(ce,Ce.head,Tt,Dt,!1);return Tt<0?{from:be,to:Ce.head}:{from:Ce.head,to:be}})}),findPosV:function(Tt,Dt,qt,ce){var Ce=1,be=ce;Dt<0&&(Ce=-1,Dt=-Dt);for(var Fe=Zn(this.doc,Tt),Qe=0;Qe<Dt;++Qe){var ze=ho(this,Fe,"div");if(be==null?be=ze.left:ze.left=be,Fe=Hu(this,ze,Ce,qt),Fe.hitSide)break}return Fe},moveV:ts(function(Tt,Dt){var qt=this,ce=this.doc,Ce=[],be=!this.display.shift&&!ce.extend&&ce.sel.somethingSelected();if(ce.extendSelectionsBy(function(Qe){if(be)return Tt<0?Qe.from():Qe.to();var ze=ho(qt,Qe.head,"div");Qe.goalColumn!=null&&(ze.left=Qe.goalColumn),Ce.push(ze.left);var ln=Hu(qt,ze,Tt,Dt);return Dt=="page"&&Qe==ce.sel.primary()&&Gf(qt,tu(qt,ln,"div").top-ze.top),ln},pe),Ce.length)for(var Fe=0;Fe<ce.sel.ranges.length;Fe++)ce.sel.ranges[Fe].goalColumn=Ce[Fe]}),findWordAt:function(Tt){var Dt=this.doc,qt=Bn(Dt,Tt.line).text,ce=Tt.ch,Ce=Tt.ch;if(qt){var be=this.getHelper(Tt,"wordChars");(Tt.sticky=="before"||Ce==qt.length)&&ce?--ce:++Ce;for(var Fe=qt.charAt(ce),Qe=Be(Fe,be)?function(ze){return Be(ze,be)}:/\s/.test(Fe)?function(ze){return/\s/.test(ze)}:function(ze){return!/\s/.test(ze)&&!Be(ze)};ce>0&&Qe(qt.charAt(ce-1));)--ce;for(;Ce<qt.length&&Qe(qt.charAt(Ce));)++Ce}return new kr(on(Tt.line,ce),on(Tt.line,Ce))},toggleOverwrite:function(Tt){Tt!=null&&Tt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Yt(this.display.cursorDiv,"CodeMirror-overwrite"):_t(this.display.cursorDiv,"CodeMirror-overwrite"),Ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Gt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ts(function(Tt,Dt){mh(this,Tt,Dt)}),getScrollInfo:function(){var Tt=this.display.scroller;return{left:Tt.scrollLeft,top:Tt.scrollTop,height:Tt.scrollHeight-As(this)-this.display.barHeight,width:Tt.scrollWidth-As(this)-this.display.barWidth,clientHeight:yn(this),clientWidth:Ea(this)}},scrollIntoView:ts(function(Tt,Dt){Tt==null?(Tt={from:this.doc.sel.primary().head,to:null},Dt==null&&(Dt=this.options.cursorScrollMargin)):typeof Tt=="number"?Tt={from:on(Tt,0),to:null}:Tt.from==null&&(Tt={from:Tt,to:null}),Tt.to||(Tt.to=Tt.from),Tt.margin=Dt||0,Tt.from.line!=null?sr(this,Tt):Uf(this,Tt.from,Tt.to,Tt.margin)}),setSize:ts(function(Tt,Dt){var qt=this,ce=function(be){return typeof be=="number"||/^\d+$/.test(String(be))?be+"px":be};Tt!=null&&(this.display.wrapper.style.width=ce(Tt)),Dt!=null&&(this.display.wrapper.style.height=ce(Dt)),this.options.lineWrapping&&vl(this);var Ce=this.display.viewFrom;this.doc.iter(Ce,this.display.viewTo,function(be){if(be.widgets){for(var Fe=0;Fe<be.widgets.length;Fe++)if(be.widgets[Fe].noHScroll){Gi(qt,Ce,"widget");break}}++Ce}),this.curOp.forceUpdate=!0,Ze(this,"refresh",this)}),operation:function(Tt){return Sr(this,Tt)},startOperation:function(){return Lu(this)},endOperation:function(){return Tu(this)},refresh:ts(function(){var Tt=this.display.cachedTextHeight;eo(this),this.curOp.forceUpdate=!0,nl(this),mh(this,this.doc.scrollLeft,this.doc.scrollTop),ju(this.display),(Tt==null||Math.abs(Tt-nu(this.display))>.5||this.options.lineWrapping)&&gi(this),Ze(this,"refresh",this)}),swapDoc:ts(function(Tt){var Dt=this.doc;return Dt.cm=null,this.state.selectingText&&this.state.selectingText(),Kf(this,Tt),nl(this),this.display.input.reset(),mh(this,Tt.scrollLeft,Tt.scrollTop),this.curOp.forceScroll=!0,Yn(this,"swapDoc",this,Dt),Dt}),phrase:function(Tt){var Dt=this.options.phrases;return Dt&&Object.prototype.hasOwnProperty.call(Dt,Tt)?Dt[Tt]:Tt},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}},En(st),st.registerHelper=function(Tt,Dt,qt){Ot.hasOwnProperty(Tt)||(Ot[Tt]=st[Tt]={_global:[]}),Ot[Tt][Dt]=qt},st.registerGlobalHelper=function(Tt,Dt,qt,ce){st.registerHelper(Tt,Dt,ce),Ot[Tt]._global.push({pred:qt,val:ce})}}function hf(st,mt,Ot,Tt,Dt){var qt=mt,ce=Ot,Ce=Bn(st,mt.line),be=Dt&&st.direction=="rtl"?-Ot:Ot;function Fe(){var ni=mt.line+be;return ni<st.first||ni>=st.first+st.size?!1:(mt=new on(ni,mt.ch,mt.sticky),Ce=Bn(st,ni))}function Qe(ni){var Kn;if(Tt=="codepoint"){var ui=Ce.text.charCodeAt(mt.ch+(Tt>0?0:-1));isNaN(ui)?Kn=null:Kn=new on(mt.line,Math.max(0,Math.min(Ce.text.length,mt.ch+Ot*(ui>=55296&&ui<56320?2:1))),-Ot)}else Dt?Kn=ed(st.cm,Ce,mt,Ot):Kn=To(Ce,mt,Ot);if(Kn==null)if(!ni&&Fe())mt=af(Dt,st.cm,Ce,mt.line,be);else return!1;else mt=Kn;return!0}if(Tt=="char"||Tt=="codepoint")Qe();else if(Tt=="column")Qe(!0);else if(Tt=="word"||Tt=="group")for(var ze=null,ln=Tt=="group",an=st.cm&&st.cm.getHelper(mt,"wordChars"),kn=!0;!(Ot<0&&!Qe(!kn));kn=!1){var Tn=Ce.text.charAt(mt.ch)||`
`,In=Be(Tn,an)?"w":ln&&Tn==`
`?"n":!ln||/\s/.test(Tn)?null:"p";if(ln&&!kn&&!In&&(In="s"),ze&&ze!=In){Ot<0&&(Ot=1,Qe(),mt.sticky="after");break}if(In&&(ze=In),Ot>0&&!Qe(!kn))break}var Hn=tf(st,mt,qt,ce,!0);return xi(qt,Hn)&&(Hn.hitSide=!0),Hn}function Hu(st,mt,Ot,Tt){var Dt=st.doc,qt=mt.left,ce;if(Tt=="page"){var Ce=Math.min(st.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),be=Math.max(Ce-.5*nu(st.display),3);ce=(Ot>0?mt.bottom:mt.top)+Ot*be}else Tt=="line"&&(ce=Ot>0?mt.bottom+3:mt.top-3);for(var Fe;Fe=Rf(st,qt,ce),!!Fe.outside;){if(Ot<0?ce<=0:ce>=Dt.height){Fe.hitSide=!0;break}ce+=Ot*5}return Fe}var Fr=function(st){this.cm=st,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fr.prototype.init=function(st){var mt=this,Ot=this,Tt=Ot.cm,Dt=Ot.div=st.lineDiv;jp(Dt,Tt.options.spellcheck,Tt.options.autocorrect,Tt.options.autocapitalize);function qt(Ce){for(var be=Ce.target;be;be=be.parentNode){if(be==Dt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(be.className))break}return!1}Ie(Dt,"paste",function(Ce){!qt(Ce)||nn(Tt,Ce)||Tp(Ce,Tt)||St<=11&&setTimeout(Ho(Tt,function(){return mt.updateFromDOM()}),20)}),Ie(Dt,"compositionstart",function(Ce){mt.composing={data:Ce.data,done:!1}}),Ie(Dt,"compositionupdate",function(Ce){mt.composing||(mt.composing={data:Ce.data,done:!1})}),Ie(Dt,"compositionend",function(Ce){mt.composing&&(Ce.data!=mt.composing.data&&mt.readFromDOMSoon(),mt.composing.done=!0)}),Ie(Dt,"touchstart",function(){return Ot.forceCompositionEnd()}),Ie(Dt,"input",function(){mt.composing||mt.readFromDOMSoon()});function ce(Ce){if(!(!qt(Ce)||nn(Tt,Ce))){if(Tt.somethingSelected())Oh({lineWise:!1,text:Tt.getSelections()}),Ce.type=="cut"&&Tt.replaceSelection("",null,"cut");else if(Tt.options.lineWiseCopyCut){var be=Op(Tt);Oh({lineWise:!0,text:be.text}),Ce.type=="cut"&&Tt.operation(function(){Tt.setSelections(be.ranges,0,me),Tt.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var Fe=$s.text.join(`
`);if(Ce.clipboardData.setData("Text",Fe),Ce.clipboardData.getData("Text")==Fe){Ce.preventDefault();return}}var Qe=Np(),ze=Qe.firstChild;Tt.display.lineSpace.insertBefore(Qe,Tt.display.lineSpace.firstChild),ze.value=$s.text.join(`
`);var ln=document.activeElement;ne(ze),setTimeout(function(){Tt.display.lineSpace.removeChild(Qe),ln.focus(),ln==Dt&&Ot.showPrimarySelection()},50)}}Ie(Dt,"copy",ce),Ie(Dt,"cut",ce)},Fr.prototype.screenReaderLabelChanged=function(st){st?this.div.setAttribute("aria-label",st):this.div.removeAttribute("aria-label")},Fr.prototype.prepareSelection=function(){var st=Au(this.cm,!1);return st.focus=document.activeElement==this.div,st},Fr.prototype.showSelection=function(st,mt){!st||!this.cm.display.view.length||((st.focus||mt)&&this.showPrimarySelection(),this.showMultipleSelections(st))},Fr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fr.prototype.showPrimarySelection=function(){var st=this.getSelection(),mt=this.cm,Ot=mt.doc.sel.primary(),Tt=Ot.from(),Dt=Ot.to();if(mt.display.viewTo==mt.display.viewFrom||Tt.line>=mt.display.viewTo||Dt.line<mt.display.viewFrom){st.removeAllRanges();return}var qt=cf(mt,st.anchorNode,st.anchorOffset),ce=cf(mt,st.focusNode,st.focusOffset);if(!(qt&&!qt.bad&&ce&&!ce.bad&&Cn(oi(qt,ce),Tt)==0&&Cn(Wi(qt,ce),Dt)==0)){var Ce=mt.display.view,be=Tt.line>=mt.display.viewFrom&&cd(mt,Tt)||{node:Ce[0].measure.map[2],offset:0},Fe=Dt.line<mt.display.viewTo&&cd(mt,Dt);if(!Fe){var Qe=Ce[Ce.length-1].measure,ze=Qe.maps?Qe.maps[Qe.maps.length-1]:Qe.map;Fe={node:ze[ze.length-1],offset:ze[ze.length-2]-ze[ze.length-3]}}if(!be||!Fe){st.removeAllRanges();return}var ln=st.rangeCount&&st.getRangeAt(0),an;try{an=Ut(be.node,be.offset,Fe.offset,Fe.node)}catch(kn){}an&&(!Ft&&mt.state.focused?(st.collapse(be.node,be.offset),an.collapsed||(st.removeAllRanges(),st.addRange(an))):(st.removeAllRanges(),st.addRange(an)),ln&&st.anchorNode==null?st.addRange(ln):Ft&&this.startGracePeriod()),this.rememberSelection()}},Fr.prototype.startGracePeriod=function(){var st=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){st.gracePeriod=!1,st.selectionChanged()&&st.cm.operation(function(){return st.cm.curOp.selectionChanged=!0})},20)},Fr.prototype.showMultipleSelections=function(st){jt(this.cm.display.cursorDiv,st.cursors),jt(this.cm.display.selectionDiv,st.selection)},Fr.prototype.rememberSelection=function(){var st=this.getSelection();this.lastAnchorNode=st.anchorNode,this.lastAnchorOffset=st.anchorOffset,this.lastFocusNode=st.focusNode,this.lastFocusOffset=st.focusOffset},Fr.prototype.selectionInEditor=function(){var st=this.getSelection();if(!st.rangeCount)return!1;var mt=st.getRangeAt(0).commonAncestorContainer;return Xt(this.div,mt)},Fr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Fr.prototype.blur=function(){this.div.blur()},Fr.prototype.getField=function(){return this.div},Fr.prototype.supportsTouch=function(){return!0},Fr.prototype.receivedFocus=function(){var st=this;this.selectionInEditor()?this.pollSelection():Sr(this.cm,function(){return st.cm.curOp.selectionChanged=!0});function mt(){st.cm.state.focused&&(st.pollSelection(),st.polling.set(st.cm.options.pollInterval,mt))}this.polling.set(this.cm.options.pollInterval,mt)},Fr.prototype.selectionChanged=function(){var st=this.getSelection();return st.anchorNode!=this.lastAnchorNode||st.anchorOffset!=this.lastAnchorOffset||st.focusNode!=this.lastFocusNode||st.focusOffset!=this.lastFocusOffset},Fr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var st=this.getSelection(),mt=this.cm;if(E&&yt&&this.cm.display.gutterSpecs.length&&Dp(st.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Ot=cf(mt,st.anchorNode,st.anchorOffset),Tt=cf(mt,st.focusNode,st.focusOffset);Ot&&Tt&&Sr(mt,function(){ks(mt.doc,ou(Ot,Tt),me),(Ot.bad||Tt.bad)&&(mt.curOp.selectionChanged=!0)})}}},Fr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var st=this.cm,mt=st.display,Ot=st.doc.sel.primary(),Tt=Ot.from(),Dt=Ot.to();if(Tt.ch==0&&Tt.line>st.firstLine()&&(Tt=on(Tt.line-1,Bn(st.doc,Tt.line-1).length)),Dt.ch==Bn(st.doc,Dt.line).text.length&&Dt.line<st.lastLine()&&(Dt=on(Dt.line+1,0)),Tt.line<mt.viewFrom||Dt.line>mt.viewTo-1)return!1;var qt,ce,Ce;Tt.line==mt.viewFrom||(qt=Aa(st,Tt.line))==0?(ce=We(mt.view[0].line),Ce=mt.view[0].node):(ce=We(mt.view[qt].line),Ce=mt.view[qt-1].node.nextSibling);var be=Aa(st,Dt.line),Fe,Qe;if(be==mt.view.length-1?(Fe=mt.viewTo-1,Qe=mt.lineDiv.lastChild):(Fe=We(mt.view[be+1].line)-1,Qe=mt.view[be+1].node.previousSibling),!Ce)return!1;for(var ze=st.doc.splitLines(xc(st,Ce,Qe,ce,Fe)),ln=Xi(st.doc,on(ce,0),on(Fe,Bn(st.doc,Fe).text.length));ze.length>1&&ln.length>1;)if(Se(ze)==Se(ln))ze.pop(),ln.pop(),Fe--;else if(ze[0]==ln[0])ze.shift(),ln.shift(),ce++;else break;for(var an=0,kn=0,Tn=ze[0],In=ln[0],Hn=Math.min(Tn.length,In.length);an<Hn&&Tn.charCodeAt(an)==In.charCodeAt(an);)++an;for(var ni=Se(ze),Kn=Se(ln),ui=Math.min(ni.length-(ze.length==1?an:0),Kn.length-(ln.length==1?an:0));kn<ui&&ni.charCodeAt(ni.length-kn-1)==Kn.charCodeAt(Kn.length-kn-1);)++kn;if(ze.length==1&&ln.length==1&&ce==Tt.line)for(;an&&an>Tt.ch&&ni.charCodeAt(ni.length-kn-1)==Kn.charCodeAt(Kn.length-kn-1);)an--,kn++;ze[ze.length-1]=ni.slice(0,ni.length-kn).replace(/^\u200b+/,""),ze[0]=ze[0].slice(an).replace(/\u200b+$/,"");var Ai=on(ce,an),Vn=on(Fe,ln.length?Se(ln).length-kn:0);if(ze.length>1||ze[0]||Cn(Ai,Vn))return Ch(st.doc,ze,Ai,Vn,"+input"),!0},Fr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fr.prototype.reset=function(){this.forceCompositionEnd()},Fr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fr.prototype.readFromDOMSoon=function(){var st=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(st.readDOMTimeout=null,st.composing)if(st.composing.done)st.composing=null;else return;st.updateFromDOM()},80))},Fr.prototype.updateFromDOM=function(){var st=this;(this.cm.isReadOnly()||!this.pollContent())&&Sr(this.cm,function(){return eo(st.cm)})},Fr.prototype.setUneditable=function(st){st.contentEditable="false"},Fr.prototype.onKeyPress=function(st){st.charCode==0||this.composing||(st.preventDefault(),this.cm.isReadOnly()||Ho(this.cm,uf)(this.cm,String.fromCharCode(st.charCode==null?st.keyCode:st.charCode),0))},Fr.prototype.readOnlyChanged=function(st){this.div.contentEditable=String(st!="nocursor")},Fr.prototype.onContextMenu=function(){},Fr.prototype.resetPosition=function(){},Fr.prototype.needsContentAttribute=!0;function cd(st,mt){var Ot=ji(st,mt.line);if(!Ot||Ot.hidden)return null;var Tt=Bn(st.doc,mt.line),Dt=Ei(Ot,Tt,mt.line),qt=ge(Tt,st.doc.direction),ce="left";if(qt){var Ce=Bt(qt,mt.ch);ce=Ce%2?"right":"left"}var be=bo(Dt.map,mt.ch,ce);return be.offset=be.collapse=="right"?be.end:be.start,be}function Dp(st){for(var mt=st;mt;mt=mt.parentNode)if(/CodeMirror-gutter-wrapper/.test(mt.className))return!0;return!1}function wc(st,mt){return mt&&(st.bad=!0),st}function xc(st,mt,Ot,Tt,Dt){var qt="",ce=!1,Ce=st.doc.lineSeparator(),be=!1;function Fe(an){return function(kn){return kn.id==an}}function Qe(){ce&&(qt+=Ce,be&&(qt+=Ce),ce=be=!1)}function ze(an){an&&(Qe(),qt+=an)}function ln(an){if(an.nodeType==1){var kn=an.getAttribute("cm-text");if(kn){ze(kn);return}var Tn=an.getAttribute("cm-marker"),In;if(Tn){var Hn=st.findMarks(on(Tt,0),on(Dt+1,0),Fe(+Tn));Hn.length&&(In=Hn[0].find(0))&&ze(Xi(st.doc,In.from,In.to).join(Ce));return}if(an.getAttribute("contenteditable")=="false")return;var ni=/^(pre|div|p|li|table|br)$/i.test(an.nodeName);if(!/^br$/i.test(an.nodeName)&&an.textContent.length==0)return;ni&&Qe();for(var Kn=0;Kn<an.childNodes.length;Kn++)ln(an.childNodes[Kn]);/^(pre|p)$/i.test(an.nodeName)&&(be=!0),ni&&(ce=!0)}else an.nodeType==3&&ze(an.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ln(mt),mt!=Ot;)mt=mt.nextSibling,be=!1;return qt}function cf(st,mt,Ot){var Tt;if(mt==st.display.lineDiv){if(Tt=st.display.lineDiv.childNodes[Ot],!Tt)return wc(st.clipPos(on(st.display.viewTo-1)),!0);mt=null,Ot=0}else for(Tt=mt;;Tt=Tt.parentNode){if(!Tt||Tt==st.display.lineDiv)return null;if(Tt.parentNode&&Tt.parentNode==st.display.lineDiv)break}for(var Dt=0;Dt<st.display.view.length;Dt++){var qt=st.display.view[Dt];if(qt.node==Tt)return sm(qt,mt,Ot)}}function sm(st,mt,Ot){var Tt=st.text.firstChild,Dt=!1;if(!mt||!Xt(Tt,mt))return wc(on(We(st.line),0),!0);if(mt==Tt&&(Dt=!0,mt=Tt.childNodes[Ot],Ot=0,!mt)){var qt=st.rest?Se(st.rest):st.line;return wc(on(We(qt),qt.text.length),Dt)}var ce=mt.nodeType==3?mt:null,Ce=mt;for(!ce&&mt.childNodes.length==1&&mt.firstChild.nodeType==3&&(ce=mt.firstChild,Ot&&(Ot=ce.nodeValue.length));Ce.parentNode!=Tt;)Ce=Ce.parentNode;var be=st.measure,Fe=be.maps;function Qe(In,Hn,ni){for(var Kn=-1;Kn<(Fe?Fe.length:0);Kn++)for(var ui=Kn<0?be.map:Fe[Kn],Ai=0;Ai<ui.length;Ai+=3){var Vn=ui[Ai+2];if(Vn==In||Vn==Hn){var Hi=We(Kn<0?st.line:st.rest[Kn]),no=ui[Ai]+ni;return(ni<0||Vn!=In)&&(no=ui[Ai+(ni?1:0)]),on(Hi,no)}}}var ze=Qe(ce,Ce,Ot);if(ze)return wc(ze,Dt);for(var ln=Ce.nextSibling,an=ce?ce.nodeValue.length-Ot:0;ln;ln=ln.nextSibling){if(ze=Qe(ln,ln.firstChild,0),ze)return wc(on(ze.line,ze.ch-an),Dt);an+=ln.textContent.length}for(var kn=Ce.previousSibling,Tn=Ot;kn;kn=kn.previousSibling){if(ze=Qe(kn,kn.firstChild,-1),ze)return wc(on(ze.line,ze.ch+Tn),Dt);Tn+=kn.textContent.length}}var Bo=function(st){this.cm=st,this.prevInput="",this.pollingFast=!1,this.polling=new re,this.hasSelection=!1,this.composing=null};Bo.prototype.init=function(st){var mt=this,Ot=this,Tt=this.cm;this.createField(st);var Dt=this.textarea;st.wrapper.insertBefore(this.wrapper,st.wrapper.firstChild),lt&&(Dt.style.width="0px"),Ie(Dt,"input",function(){Ct&&St>=9&&mt.hasSelection&&(mt.hasSelection=null),Ot.poll()}),Ie(Dt,"paste",function(ce){nn(Tt,ce)||Tp(ce,Tt)||(Tt.state.pasteIncoming=+new Date,Ot.fastPoll())});function qt(ce){if(!nn(Tt,ce)){if(Tt.somethingSelected())Oh({lineWise:!1,text:Tt.getSelections()});else if(Tt.options.lineWiseCopyCut){var Ce=Op(Tt);Oh({lineWise:!0,text:Ce.text}),ce.type=="cut"?Tt.setSelections(Ce.ranges,null,me):(Ot.prevInput="",Dt.value=Ce.text.join(`
`),ne(Dt))}else return;ce.type=="cut"&&(Tt.state.cutIncoming=+new Date)}}Ie(Dt,"cut",qt),Ie(Dt,"copy",qt),Ie(st.scroller,"paste",function(ce){if(!(Fs(st,ce)||nn(Tt,ce))){if(!Dt.dispatchEvent){Tt.state.pasteIncoming=+new Date,Ot.focus();return}var Ce=new Event("paste");Ce.clipboardData=ce.clipboardData,Dt.dispatchEvent(Ce)}}),Ie(st.lineSpace,"selectstart",function(ce){Fs(st,ce)||Dn(ce)}),Ie(Dt,"compositionstart",function(){var ce=Tt.getCursor("from");Ot.composing&&Ot.composing.range.clear(),Ot.composing={start:ce,range:Tt.markText(ce,Tt.getCursor("to"),{className:"CodeMirror-composing"})}}),Ie(Dt,"compositionend",function(){Ot.composing&&(Ot.poll(),Ot.composing.range.clear(),Ot.composing=null)})},Bo.prototype.createField=function(st){this.wrapper=Np(),this.textarea=this.wrapper.firstChild},Bo.prototype.screenReaderLabelChanged=function(st){st?this.textarea.setAttribute("aria-label",st):this.textarea.removeAttribute("aria-label")},Bo.prototype.prepareSelection=function(){var st=this.cm,mt=st.display,Ot=st.doc,Tt=Au(st);if(st.options.moveInputWithCursor){var Dt=ho(st,Ot.sel.primary().head,"div"),qt=mt.wrapper.getBoundingClientRect(),ce=mt.lineDiv.getBoundingClientRect();Tt.teTop=Math.max(0,Math.min(mt.wrapper.clientHeight-10,Dt.top+ce.top-qt.top)),Tt.teLeft=Math.max(0,Math.min(mt.wrapper.clientWidth-10,Dt.left+ce.left-qt.left))}return Tt},Bo.prototype.showSelection=function(st){var mt=this.cm,Ot=mt.display;jt(Ot.cursorDiv,st.cursors),jt(Ot.selectionDiv,st.selection),st.teTop!=null&&(this.wrapper.style.top=st.teTop+"px",this.wrapper.style.left=st.teLeft+"px")},Bo.prototype.reset=function(st){if(!(this.contextMenuPending||this.composing)){var mt=this.cm;if(mt.somethingSelected()){this.prevInput="";var Ot=mt.getSelection();this.textarea.value=Ot,mt.state.focused&&ne(this.textarea),Ct&&St>=9&&(this.hasSelection=Ot)}else st||(this.prevInput=this.textarea.value="",Ct&&St>=9&&(this.hasSelection=null))}},Bo.prototype.getField=function(){return this.textarea},Bo.prototype.supportsTouch=function(){return!1},Bo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!z||Gt()!=this.textarea))try{this.textarea.focus()}catch(st){}},Bo.prototype.blur=function(){this.textarea.blur()},Bo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bo.prototype.receivedFocus=function(){this.slowPoll()},Bo.prototype.slowPoll=function(){var st=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){st.poll(),st.cm.state.focused&&st.slowPoll()})},Bo.prototype.fastPoll=function(){var st=!1,mt=this;mt.pollingFast=!0;function Ot(){var Tt=mt.poll();!Tt&&!st?(st=!0,mt.polling.set(60,Ot)):(mt.pollingFast=!1,mt.slowPoll())}mt.polling.set(20,Ot)},Bo.prototype.poll=function(){var st=this,mt=this.cm,Ot=this.textarea,Tt=this.prevInput;if(this.contextMenuPending||!mt.state.focused||ee(Ot)&&!Tt&&!this.composing||mt.isReadOnly()||mt.options.disableInput||mt.state.keySeq)return!1;var Dt=Ot.value;if(Dt==Tt&&!mt.somethingSelected())return!1;if(Ct&&St>=9&&this.hasSelection===Dt||ot&&/[\uf700-\uf7ff]/.test(Dt))return mt.display.input.reset(),!1;if(mt.doc.sel==mt.display.selForContextMenu){var qt=Dt.charCodeAt(0);if(qt==8203&&!Tt&&(Tt="\u200B"),qt==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,Ce=Math.min(Tt.length,Dt.length);ce<Ce&&Tt.charCodeAt(ce)==Dt.charCodeAt(ce);)++ce;return Sr(mt,function(){uf(mt,Dt.slice(ce),Tt.length-ce,null,st.composing?"*compose":null),Dt.length>1e3||Dt.indexOf(`
`)>-1?Ot.value=st.prevInput="":st.prevInput=Dt,st.composing&&(st.composing.range.clear(),st.composing.range=mt.markText(st.composing.start,mt.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Bo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bo.prototype.onKeyPress=function(){Ct&&St>=9&&(this.hasSelection=null),this.fastPoll()},Bo.prototype.onContextMenu=function(st){var mt=this,Ot=mt.cm,Tt=Ot.display,Dt=mt.textarea;mt.contextMenuPending&&mt.contextMenuPending();var qt=Bs(Ot,st),ce=Tt.scroller.scrollTop;if(!qt||xt)return;var Ce=Ot.options.resetSelectionOnContextMenu;Ce&&Ot.doc.sel.contains(qt)==-1&&Ho(Ot,ks)(Ot.doc,ou(qt),me);var be=Dt.style.cssText,Fe=mt.wrapper.style.cssText,Qe=mt.wrapper.offsetParent.getBoundingClientRect();mt.wrapper.style.cssText="position: static",Dt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(st.clientY-Qe.top-5)+"px; left: "+(st.clientX-Qe.left-5)+`px;
z-index: 1000; background: `+(Ct?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ze;pt&&(ze=window.scrollY),Tt.input.focus(),pt&&window.scrollTo(null,ze),Tt.input.reset(),Ot.somethingSelected()||(Dt.value=mt.prevInput=" "),mt.contextMenuPending=an,Tt.selForContextMenu=Ot.doc.sel,clearTimeout(Tt.detectingSelectAll);function ln(){if(Dt.selectionStart!=null){var Tn=Ot.somethingSelected(),In="\u200B"+(Tn?Dt.value:"");Dt.value="\u21DA",Dt.value=In,mt.prevInput=Tn?"":"\u200B",Dt.selectionStart=1,Dt.selectionEnd=In.length,Tt.selForContextMenu=Ot.doc.sel}}function an(){if(mt.contextMenuPending==an&&(mt.contextMenuPending=!1,mt.wrapper.style.cssText=Fe,Dt.style.cssText=be,Ct&&St<9&&Tt.scrollbars.setScrollTop(Tt.scroller.scrollTop=ce),Dt.selectionStart!=null)){(!Ct||Ct&&St<9)&&ln();var Tn=0,In=function(){Tt.selForContextMenu==Ot.doc.sel&&Dt.selectionStart==0&&Dt.selectionEnd>0&&mt.prevInput=="\u200B"?Ho(Ot,Lo)(Ot):Tn++<10?Tt.detectingSelectAll=setTimeout(In,500):(Tt.selForContextMenu=null,Tt.input.reset())};Tt.detectingSelectAll=setTimeout(In,200)}}if(Ct&&St>=9&&ln(),Et){Ti(st);var kn=function(){Je(window,"mouseup",kn),setTimeout(an,20)};Ie(window,"mouseup",kn)}else setTimeout(an,50)},Bo.prototype.readOnlyChanged=function(st){st||this.reset(),this.textarea.disabled=st=="nocursor",this.textarea.readOnly=!!st},Bo.prototype.setUneditable=function(){},Bo.prototype.needsContentAttribute=!1;function am(st,mt){if(mt=mt?ve(mt):{},mt.value=st.value,!mt.tabindex&&st.tabIndex&&(mt.tabindex=st.tabIndex),!mt.placeholder&&st.placeholder&&(mt.placeholder=st.placeholder),mt.autofocus==null){var Ot=Gt();mt.autofocus=Ot==st||st.getAttribute("autofocus")!=null&&Ot==document.body}function Tt(){st.value=Ce.getValue()}var Dt;if(st.form&&(Ie(st.form,"submit",Tt),!mt.leaveSubmitMethodAlone)){var qt=st.form;Dt=qt.submit;try{var ce=qt.submit=function(){Tt(),qt.submit=Dt,qt.submit(),qt.submit=ce}}catch(be){}}mt.finishInit=function(be){be.save=Tt,be.getTextArea=function(){return st},be.toTextArea=function(){be.toTextArea=isNaN,Tt(),st.parentNode.removeChild(be.getWrapperElement()),st.style.display="",st.form&&(Je(st.form,"submit",Tt),!mt.leaveSubmitMethodAlone&&typeof st.form.submit=="function"&&(st.form.submit=Dt))}},st.style.display="none";var Ce=gr(function(be){return st.parentNode.insertBefore(be,st.nextSibling)},mt);return Ce}function bc(st){st.off=Je,st.on=Ie,st.wheelEventPixels=ka,st.Doc=ys,st.splitLines=Si,st.countColumn=Kt,st.findColumn=_e,st.isWordChar=Xe,st.Pass=ke,st.signal=Ze,st.Line=Ur,st.changeEnd=Iu,st.scrollbarModel=ep,st.Pos=on,st.cmpPos=Cn,st.modes=Xs,st.mimeModes=Do,st.resolveMode=sa,st.getMode=dn,st.modeExtensions=en,st.extendMode=qe,st.copyState=zn,st.startState=hi,st.innerMode=Jn,st.commands=zu,st.keyMap=ca,st.keyName=$g,st.isModifierKey=pc,st.lookupKey=Ha,st.normalizeKeyMap=mp,st.StringStream=bn,st.SharedTextMarker=Il,st.TextMarker=Ye,st.LineWidget=lu,st.e_preventDefault=Dn,st.e_stopPropagation=ii,st.e_stop=Ti,st.addClass=Yt,st.contains=Xt,st.rmClass=_t,st.keyNames=Fl}rm(gr),Uu(gr);var uu="iter insert remove copy getEditor constructor".split(" ");for(var ff in ys.prototype)ys.prototype.hasOwnProperty(ff)&&we(uu,ff)<0&&(gr.prototype[ff]=function(st){return function(){return st.apply(this.doc,arguments)}}(ys.prototype[ff]));return En(ys),gr.inputStyles={textarea:Bo,contenteditable:Fr},gr.defineMode=function(st){!gr.defaults.mode&&st!="null"&&(gr.defaults.mode=st),Oo.apply(this,arguments)},gr.defineMIME=Gr,gr.defineMode("null",function(){return{token:function(st){return st.skipToEnd()}}}),gr.defineMIME("text/plain","null"),gr.defineExtension=function(st,mt){gr.prototype[st]=mt},gr.defineDocExtension=function(st,mt){ys.prototype[st]=mt},gr.fromTextArea=am,bc(gr),gr.version="5.58.2",gr})},25419:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780),Rt(15525),Rt(98101))})(function(Ft){"use strict";Ft.defineMode("markdown",function(ie,rt){var kt=Ft.getMode(ie,"text/html"),Ct=kt.name=="null";function St(Kt){if(Ft.findModeByName){var re=Ft.findModeByName(Kt);re&&(Kt=re.mime||re.mimes[0])}var we=Ft.getMode(ie,Kt);return we.name=="null"?null:we}rt.highlightFormatting===void 0&&(rt.highlightFormatting=!1),rt.maxBlockquoteDepth===void 0&&(rt.maxBlockquoteDepth=0),rt.taskLists===void 0&&(rt.taskLists=!1),rt.strikethrough===void 0&&(rt.strikethrough=!1),rt.emoji===void 0&&(rt.emoji=!1),rt.fencedCodeBlockHighlighting===void 0&&(rt.fencedCodeBlockHighlighting=!0),rt.fencedCodeBlockDefaultMode===void 0&&(rt.fencedCodeBlockDefaultMode="text/plain"),rt.xml===void 0&&(rt.xml=!0),rt.tokenTypeOverrides===void 0&&(rt.tokenTypeOverrides={});var pt={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 vt in pt)pt.hasOwnProperty(vt)&&rt.tokenTypeOverrides[vt]&&(pt[vt]=rt.tokenTypeOverrides[vt]);var yt=/^([*\-_])(?:\s*\1){2,}\s*$/,xt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,dt=/^\[(x| )\](?=\s)/i,ft=rt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,lt=/^[^#!\[\]*_\\<>` "'(~:]+/,E=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,z=/^\s*\[[^\]]+?\]:.*$/,ot=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,it=" ";function at(Kt,re,we){return re.f=re.inline=we,we(Kt,re)}function ut(Kt,re,we){return re.f=re.block=we,we(Kt,re)}function wt(Kt){return!Kt||!/\S/.test(Kt.string)}function Et(Kt){if(Kt.linkTitle=!1,Kt.linkHref=!1,Kt.linkText=!1,Kt.em=!1,Kt.strong=!1,Kt.strikethrough=!1,Kt.quote=0,Kt.indentedCode=!1,Kt.f==_t){var re=Ct;if(!re){var we=Ft.innerMode(kt,Kt.htmlState);re=we.mode.name=="xml"&&we.state.tagStart===null&&!we.state.context&&we.state.tokenize.isInText}re&&(Kt.f=It,Kt.block=At,Kt.htmlState=null)}return Kt.trailingSpace=0,Kt.trailingSpaceNewLine=!1,Kt.prevLine=Kt.thisLine,Kt.thisLine={stream:null},null}function At(Kt,re){var we=Kt.column()===re.indentation,Me=wt(re.prevLine.stream),ke=re.indentedCode,me=re.prevLine.hr,fe=re.list!==!1,pe=(re.listStack[re.listStack.length-1]||0)+3;re.indentedCode=!1;var _e=re.indentation;if(re.indentationDiff===null&&(re.indentationDiff=re.indentation,fe)){for(re.list=null;_e<re.listStack[re.listStack.length-1];)re.listStack.pop(),re.listStack.length?re.indentation=re.listStack[re.listStack.length-1]:re.list=!1;re.list!==!1&&(re.indentationDiff=_e-re.listStack[re.listStack.length-1])}var je=!Me&&!me&&!re.prevLine.header&&(!fe||!ke)&&!re.prevLine.fencedCodeEnd,He=(re.list===!1||me||Me)&&re.indentation<=pe&&Kt.match(yt),Se=null;if(re.indentationDiff>=4&&(ke||re.prevLine.fencedCodeEnd||re.prevLine.header||Me))return Kt.skipToEnd(),re.indentedCode=!0,pt.code;if(Kt.eatSpace())return null;if(we&&re.indentation<=pe&&(Se=Kt.match(ft))&&Se[1].length<=6)return re.quote=0,re.header=Se[1].length,re.thisLine.header=!0,rt.highlightFormatting&&(re.formatting="header"),re.f=re.inline,jt(re);if(re.indentation<=pe&&Kt.eat(">"))return re.quote=we?1:re.quote+1,rt.highlightFormatting&&(re.formatting="quote"),Kt.eatSpace(),jt(re);if(!He&&!re.setext&&we&&re.indentation<=pe&&(Se=Kt.match(xt))){var xe=Se[1]?"ol":"ul";return re.indentation=_e+Kt.current().length,re.list=!0,re.quote=0,re.listStack.push(re.indentation),re.em=!1,re.strong=!1,re.code=!1,re.strikethrough=!1,rt.taskLists&&Kt.match(dt,!1)&&(re.taskList=!0),re.f=re.inline,rt.highlightFormatting&&(re.formatting=["list","list-"+xe]),jt(re)}else{if(we&&re.indentation<=pe&&(Se=Kt.match(E,!0)))return re.quote=0,re.fencedEndRE=new RegExp(Se[1]+"+ *$"),re.localMode=rt.fencedCodeBlockHighlighting&&St(Se[2]||rt.fencedCodeBlockDefaultMode),re.localMode&&(re.localState=Ft.startState(re.localMode)),re.f=re.block=Mt,rt.highlightFormatting&&(re.formatting="code-block"),re.code=-1,jt(re);if(re.setext||(!je||!fe)&&!re.quote&&re.list===!1&&!re.code&&!He&&!z.test(Kt.string)&&(Se=Kt.lookAhead(1))&&(Se=Se.match(ct)))return re.setext?(re.header=re.setext,re.setext=0,Kt.skipToEnd(),rt.highlightFormatting&&(re.formatting="header")):(re.header=Se[0].charAt(0)=="="?1:2,re.setext=re.header),re.thisLine.header=!0,re.f=re.inline,jt(re);if(He)return Kt.skipToEnd(),re.hr=!0,re.thisLine.hr=!0,pt.hr;if(Kt.peek()==="[")return at(Kt,re,Ht)}return at(Kt,re,re.inline)}function _t(Kt,re){var we=kt.token(Kt,re.htmlState);if(!Ct){var Me=Ft.innerMode(kt,re.htmlState);(Me.mode.name=="xml"&&Me.state.tagStart===null&&!Me.state.context&&Me.state.tokenize.isInText||re.md_inside&&Kt.current().indexOf(">")>-1)&&(re.f=It,re.block=At,re.htmlState=null)}return we}function Mt(Kt,re){var we=re.listStack[re.listStack.length-1]||0,Me=re.indentation<we,ke=we+3;if(re.fencedEndRE&&re.indentation<=ke&&(Me||Kt.match(re.fencedEndRE))){rt.highlightFormatting&&(re.formatting="code-block");var me;return Me||(me=jt(re)),re.localMode=re.localState=null,re.block=At,re.f=It,re.fencedEndRE=null,re.code=0,re.thisLine.fencedCodeEnd=!0,Me?ut(Kt,re,re.block):me}else return re.localMode?re.localMode.token(Kt,re.localState):(Kt.skipToEnd(),pt.code)}function jt(Kt){var re=[];if(Kt.formatting){re.push(pt.formatting),typeof Kt.formatting=="string"&&(Kt.formatting=[Kt.formatting]);for(var we=0;we<Kt.formatting.length;we++)re.push(pt.formatting+"-"+Kt.formatting[we]),Kt.formatting[we]==="header"&&re.push(pt.formatting+"-"+Kt.formatting[we]+"-"+Kt.header),Kt.formatting[we]==="quote"&&(!rt.maxBlockquoteDepth||rt.maxBlockquoteDepth>=Kt.quote?re.push(pt.formatting+"-"+Kt.formatting[we]+"-"+Kt.quote):re.push("error"))}if(Kt.taskOpen)return re.push("meta"),re.length?re.join(" "):null;if(Kt.taskClosed)return re.push("property"),re.length?re.join(" "):null;if(Kt.linkHref?re.push(pt.linkHref,"url"):(Kt.strong&&re.push(pt.strong),Kt.em&&re.push(pt.em),Kt.strikethrough&&re.push(pt.strikethrough),Kt.emoji&&re.push(pt.emoji),Kt.linkText&&re.push(pt.linkText),Kt.code&&re.push(pt.code),Kt.image&&re.push(pt.image),Kt.imageAltText&&re.push(pt.imageAltText,"link"),Kt.imageMarker&&re.push(pt.imageMarker)),Kt.header&&re.push(pt.header,pt.header+"-"+Kt.header),Kt.quote&&(re.push(pt.quote),!rt.maxBlockquoteDepth||rt.maxBlockquoteDepth>=Kt.quote?re.push(pt.quote+"-"+Kt.quote):re.push(pt.quote+"-"+rt.maxBlockquoteDepth)),Kt.list!==!1){var Me=(Kt.listStack.length-1)%3;Me?Me===1?re.push(pt.list2):re.push(pt.list3):re.push(pt.list1)}return Kt.trailingSpaceNewLine?re.push("trailing-space-new-line"):Kt.trailingSpace&&re.push("trailing-space-"+(Kt.trailingSpace%2?"a":"b")),re.length?re.join(" "):null}function Lt(Kt,re){if(Kt.match(lt,!0))return jt(re)}function It(Kt,re){var we=re.text(Kt,re);if(typeof we!="undefined")return we;if(re.list)return re.list=null,jt(re);if(re.taskList){var Me=Kt.match(dt,!0)[1]===" ";return Me?re.taskOpen=!0:re.taskClosed=!0,rt.highlightFormatting&&(re.formatting="task"),re.taskList=!1,jt(re)}if(re.taskOpen=!1,re.taskClosed=!1,re.header&&Kt.match(/^#+$/,!0))return rt.highlightFormatting&&(re.formatting="header"),jt(re);var ke=Kt.next();if(re.linkTitle){re.linkTitle=!1;var me=ke;ke==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(Kt.match(new RegExp(fe),!0))return pt.linkHref}if(ke==="`"){var pe=re.formatting;rt.highlightFormatting&&(re.formatting="code"),Kt.eatWhile("`");var _e=Kt.current().length;if(re.code==0&&(!re.quote||_e==1))return re.code=_e,jt(re);if(_e==re.code){var je=jt(re);return re.code=0,je}else return re.formatting=pe,jt(re)}else if(re.code)return jt(re);if(ke==="\\"&&(Kt.next(),rt.highlightFormatting)){var He=jt(re),Se=pt.formatting+"-escape";return He?He+" "+Se:Se}if(ke==="!"&&Kt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return re.imageMarker=!0,re.image=!0,rt.highlightFormatting&&(re.formatting="image"),jt(re);if(ke==="["&&re.imageMarker&&Kt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return re.imageMarker=!1,re.imageAltText=!0,rt.highlightFormatting&&(re.formatting="image"),jt(re);if(ke==="]"&&re.imageAltText){rt.highlightFormatting&&(re.formatting="image");var He=jt(re);return re.imageAltText=!1,re.image=!1,re.inline=re.f=Xt,He}if(ke==="["&&!re.image)return re.linkText&&Kt.match(/^.*?\]/)||(re.linkText=!0,rt.highlightFormatting&&(re.formatting="link")),jt(re);if(ke==="]"&&re.linkText){rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return re.linkText=!1,re.inline=re.f=Kt.match(/\(.*?\)| ?\[.*?\]/,!1)?Xt:It,He}if(ke==="<"&&Kt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){re.f=re.inline=Ut,rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return He?He+=" ":He="",He+pt.linkInline}if(ke==="<"&&Kt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){re.f=re.inline=Ut,rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return He?He+=" ":He="",He+pt.linkEmail}if(rt.xml&&ke==="<"&&Kt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var xe=Kt.string.indexOf(">",Kt.pos);if(xe!=-1){var le=Kt.string.substring(Kt.start,xe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(le)&&(re.md_inside=!0)}return Kt.backUp(1),re.htmlState=Ft.startState(kt),ut(Kt,re,_t)}if(rt.xml&&ke==="<"&&Kt.match(/^\/\w*?>/))return re.md_inside=!1,"tag";if(ke==="*"||ke==="_"){for(var Ne=1,se=Kt.pos==1?" ":Kt.string.charAt(Kt.pos-2);Ne<3&&Kt.eat(ke);)Ne++;var Ae=Kt.peek()||" ",Xe=!/\s/.test(Ae)&&(!ot.test(Ae)||/\s/.test(se)||ot.test(se)),Be=!/\s/.test(se)&&(!ot.test(se)||/\s/.test(Ae)||ot.test(Ae)),Te=null,ue=null;if(Ne%2&&(!re.em&&Xe&&(ke==="*"||!Be||ot.test(se))?Te=!0:re.em==ke&&Be&&(ke==="*"||!Xe||ot.test(Ae))&&(Te=!1)),Ne>1&&(!re.strong&&Xe&&(ke==="*"||!Be||ot.test(se))?ue=!0:re.strong==ke&&Be&&(ke==="*"||!Xe||ot.test(Ae))&&(ue=!1)),ue!=null||Te!=null){rt.highlightFormatting&&(re.formatting=Te==null?"strong":ue==null?"em":"strong em"),Te===!0&&(re.em=ke),ue===!0&&(re.strong=ke);var je=jt(re);return Te===!1&&(re.em=!1),ue===!1&&(re.strong=!1),je}}else if(ke===" "&&(Kt.eat("*")||Kt.eat("_"))){if(Kt.peek()===" ")return jt(re);Kt.backUp(1)}if(rt.strikethrough){if(ke==="~"&&Kt.eatWhile(ke)){if(re.strikethrough){rt.highlightFormatting&&(re.formatting="strikethrough");var je=jt(re);return re.strikethrough=!1,je}else if(Kt.match(/^[^\s]/,!1))return re.strikethrough=!0,rt.highlightFormatting&&(re.formatting="strikethrough"),jt(re)}else if(ke===" "&&Kt.match(/^~~/,!0)){if(Kt.peek()===" ")return jt(re);Kt.backUp(2)}}if(rt.emoji&&ke===":"&&Kt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){re.emoji=!0,rt.highlightFormatting&&(re.formatting="emoji");var $t=jt(re);return re.emoji=!1,$t}return ke===" "&&(Kt.match(/^ +$/,!1)?re.trailingSpace++:re.trailingSpace&&(re.trailingSpaceNewLine=!0)),jt(re)}function Ut(Kt,re){var we=Kt.next();if(we===">"){re.f=re.inline=It,rt.highlightFormatting&&(re.formatting="link");var Me=jt(re);return Me?Me+=" ":Me="",Me+pt.linkInline}return Kt.match(/^[^>]+/,!0),pt.linkInline}function Xt(Kt,re){if(Kt.eatSpace())return null;var we=Kt.next();return we==="("||we==="["?(re.f=re.inline=Yt(we==="("?")":"]"),rt.highlightFormatting&&(re.formatting="link-string"),re.linkHref=!0,jt(re)):"error"}var Gt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Yt(Kt){return function(re,we){var Me=re.next();if(Me===Kt){we.f=we.inline=It,rt.highlightFormatting&&(we.formatting="link-string");var ke=jt(we);return we.linkHref=!1,ke}return re.match(Gt[Kt]),we.linkHref=!0,jt(we)}}function Ht(Kt,re){return Kt.match(/^([^\]\\]|\\.)*\]:/,!1)?(re.f=ne,Kt.next(),rt.highlightFormatting&&(re.formatting="link"),re.linkText=!0,jt(re)):at(Kt,re,It)}function ne(Kt,re){if(Kt.match(/^\]:/,!0)){re.f=re.inline=ae,rt.highlightFormatting&&(re.formatting="link");var we=jt(re);return re.linkText=!1,we}return Kt.match(/^([^\]\\]|\\.)+/,!0),pt.linkText}function ae(Kt,re){return Kt.eatSpace()?null:(Kt.match(/^[^\s]+/,!0),Kt.peek()===void 0?re.linkTitle=!0:Kt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),re.f=re.inline=It,pt.linkHref+" url")}var ve={startState:function(){return{f:At,prevLine:{stream:null},thisLine:{stream:null},block:At,htmlState:null,indentation:0,inline:It,text:Lt,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(Kt){return{f:Kt.f,prevLine:Kt.prevLine,thisLine:Kt.thisLine,block:Kt.block,htmlState:Kt.htmlState&&Ft.copyState(kt,Kt.htmlState),indentation:Kt.indentation,localMode:Kt.localMode,localState:Kt.localMode?Ft.copyState(Kt.localMode,Kt.localState):null,inline:Kt.inline,text:Kt.text,formatting:!1,linkText:Kt.linkText,linkTitle:Kt.linkTitle,linkHref:Kt.linkHref,code:Kt.code,em:Kt.em,strong:Kt.strong,strikethrough:Kt.strikethrough,emoji:Kt.emoji,header:Kt.header,setext:Kt.setext,hr:Kt.hr,taskList:Kt.taskList,list:Kt.list,listStack:Kt.listStack.slice(0),quote:Kt.quote,indentedCode:Kt.indentedCode,trailingSpace:Kt.trailingSpace,trailingSpaceNewLine:Kt.trailingSpaceNewLine,md_inside:Kt.md_inside,fencedEndRE:Kt.fencedEndRE}},token:function(Kt,re){if(re.formatting=!1,Kt!=re.thisLine.stream){if(re.header=0,re.hr=!1,Kt.match(/^\s*$/,!0))return Et(re),null;if(re.prevLine=re.thisLine,re.thisLine={stream:Kt},re.taskList=!1,re.trailingSpace=0,re.trailingSpaceNewLine=!1,!re.localState&&(re.f=re.block,re.f!=_t)){var we=Kt.match(/^\s*/,!0)[0].replace(/\t/g,it).length;if(re.indentation=we,re.indentationDiff=null,we>0)return null}}return re.f(Kt,re)},innerMode:function(Kt){return Kt.block==_t?{state:Kt.htmlState,mode:kt}:Kt.localState?{state:Kt.localState,mode:Kt.localMode}:{state:Kt,mode:ve}},indent:function(Kt,re,we){return Kt.block==_t&&kt.indent?kt.indent(Kt.htmlState,re,we):Kt.localState&&Kt.localMode.indent?Kt.localMode.indent(Kt.localState,re,we):Ft.Pass},blankLine:Et,getType:jt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ve},"xml"),Ft.defineMIME("text/markdown","markdown"),Ft.defineMIME("text/x-markdown","markdown")})},98101:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";Ft.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 ie=0;ie<Ft.modeInfo.length;ie++){var rt=Ft.modeInfo[ie];rt.mimes&&(rt.mime=rt.mimes[0])}Ft.findModeByMIME=function(kt){kt=kt.toLowerCase();for(var Ct=0;Ct<Ft.modeInfo.length;Ct++){var St=Ft.modeInfo[Ct];if(St.mime==kt)return St;if(St.mimes){for(var pt=0;pt<St.mimes.length;pt++)if(St.mimes[pt]==kt)return St}}if(/\+xml$/.test(kt))return Ft.findModeByMIME("application/xml");if(/\+json$/.test(kt))return Ft.findModeByMIME("application/json")},Ft.findModeByExtension=function(kt){kt=kt.toLowerCase();for(var Ct=0;Ct<Ft.modeInfo.length;Ct++){var St=Ft.modeInfo[Ct];if(St.ext){for(var pt=0;pt<St.ext.length;pt++)if(St.ext[pt]==kt)return St}}},Ft.findModeByFileName=function(kt){for(var Ct=0;Ct<Ft.modeInfo.length;Ct++){var St=Ft.modeInfo[Ct];if(St.file&&St.file.test(kt))return St}var pt=kt.lastIndexOf("."),vt=pt>-1&&kt.substring(pt+1,kt.length);if(vt)return Ft.findModeByExtension(vt)},Ft.findModeByName=function(kt){kt=kt.toLowerCase();for(var Ct=0;Ct<Ft.modeInfo.length;Ct++){var St=Ft.modeInfo[Ct];if(St.name.toLowerCase()==kt)return St;if(St.alias){for(var pt=0;pt<St.alias.length;pt++)if(St.alias[pt].toLowerCase()==kt)return St}}}})},67549:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";Ft.defineMode("stex",function(ie,rt){"use strict";function kt(lt,E){lt.cmdState.push(E)}function Ct(lt){return lt.cmdState.length>0?lt.cmdState[lt.cmdState.length-1]:null}function St(lt){var E=lt.cmdState.pop();E&&E.closeBracket()}function pt(lt){for(var E=lt.cmdState,z=E.length-1;z>=0;z--){var ot=E[z];if(ot.name!="DEFAULT")return ot}return{styleIdentifier:function(){return null}}}function vt(lt,E,z){return function(){this.name=lt,this.bracketNo=0,this.style=E,this.styles=z,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var yt={};yt.importmodule=vt("importmodule","tag",["string","builtin"]),yt.documentclass=vt("documentclass","tag",["","atom"]),yt.usepackage=vt("usepackage","tag",["atom"]),yt.begin=vt("begin","tag",["atom"]),yt.end=vt("end","tag",["atom"]),yt.label=vt("label","tag",["atom"]),yt.ref=vt("ref","tag",["atom"]),yt.eqref=vt("eqref","tag",["atom"]),yt.cite=vt("cite","tag",["atom"]),yt.bibitem=vt("bibitem","tag",["atom"]),yt.Bibitem=vt("Bibitem","tag",["atom"]),yt.RBibitem=vt("RBibitem","tag",["atom"]),yt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function xt(lt,E){lt.f=E}function dt(lt,E){var z;if(lt.match(/^\\[a-zA-Z@]+/)){var ot=lt.current().slice(1);return z=yt.hasOwnProperty(ot)?yt[ot]:yt.DEFAULT,z=new z,kt(E,z),xt(E,ct),z.style}if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/\\]/))return"tag";if(lt.match("\\["))return xt(E,function(at,ut){return ft(at,ut,"\\]")}),"keyword";if(lt.match("\\("))return xt(E,function(at,ut){return ft(at,ut,"\\)")}),"keyword";if(lt.match("$$"))return xt(E,function(at,ut){return ft(at,ut,"$$")}),"keyword";if(lt.match("$"))return xt(E,function(at,ut){return ft(at,ut,"$")}),"keyword";var it=lt.next();if(it=="%")return lt.skipToEnd(),"comment";if(it=="}"||it=="]"){if(z=Ct(E),z)z.closeBracket(it),xt(E,ct);else return"error";return"bracket"}else return it=="{"||it=="["?(z=yt.DEFAULT,z=new z,kt(E,z),"bracket"):/\d/.test(it)?(lt.eatWhile(/[\w.%]/),"atom"):(lt.eatWhile(/[\w\-_]/),z=pt(E),z.name=="begin"&&(z.argument=lt.current()),z.styleIdentifier())}function ft(lt,E,z){if(lt.eatSpace())return null;if(z&&lt.match(z))return xt(E,dt),"keyword";if(lt.match(/^\\[a-zA-Z@]+/))return"tag";if(lt.match(/^[a-zA-Z]+/))return"variable-2";if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/]/)||lt.match(/^[\^_&]/))return"tag";if(lt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(lt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ot=lt.next();return ot=="{"||ot=="}"||ot=="["||ot=="]"||ot=="("||ot==")"?"bracket":ot=="%"?(lt.skipToEnd(),"comment"):"error"}function ct(lt,E){var z=lt.peek(),ot;return z=="{"||z=="["?(ot=Ct(E),ot.openBracket(z),lt.eat(z),xt(E,dt),"bracket"):/[ \t\r]/.test(z)?(lt.eat(z),null):(xt(E,dt),St(E),dt(lt,E))}return{startState:function(){var lt=rt.inMathMode?function(E,z){return ft(E,z)}:dt;return{cmdState:[],f:lt}},copyState:function(lt){return{cmdState:lt.cmdState.slice(),f:lt.f}},token:function(lt,E){return E.f(lt,E)},blankLine:function(lt){lt.f=dt,lt.cmdState.length=0},lineComment:"%"}}),Ft.defineMIME("text/x-stex","stex"),Ft.defineMIME("text/x-latex","stex")})},15525:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";var ie={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},rt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ft.defineMode("xml",function(kt,Ct){var St=kt.indentUnit,pt={},vt=Ct.htmlMode?ie:rt;for(var yt in vt)pt[yt]=vt[yt];for(var yt in Ct)pt[yt]=Ct[yt];var xt,dt;function ft(Ut,Xt){function Gt(ne){return Xt.tokenize=ne,ne(Ut,Xt)}var Yt=Ut.next();if(Yt=="<")return Ut.eat("!")?Ut.eat("[")?Ut.match("CDATA[")?Gt(E("atom","]]>")):null:Ut.match("--")?Gt(E("comment","-->")):Ut.match("DOCTYPE",!0,!0)?(Ut.eatWhile(/[\w\._\-]/),Gt(z(1))):null:Ut.eat("?")?(Ut.eatWhile(/[\w\._\-]/),Xt.tokenize=E("meta","?>"),"meta"):(xt=Ut.eat("/")?"closeTag":"openTag",Xt.tokenize=ct,"tag bracket");if(Yt=="&"){var Ht;return Ut.eat("#")?Ut.eat("x")?Ht=Ut.eatWhile(/[a-fA-F\d]/)&&Ut.eat(";"):Ht=Ut.eatWhile(/[\d]/)&&Ut.eat(";"):Ht=Ut.eatWhile(/[\w\.\-:]/)&&Ut.eat(";"),Ht?"atom":"error"}else return Ut.eatWhile(/[^&<]/),null}ft.isInText=!0;function ct(Ut,Xt){var Gt=Ut.next();if(Gt==">"||Gt=="/"&&Ut.eat(">"))return Xt.tokenize=ft,xt=Gt==">"?"endTag":"selfcloseTag","tag bracket";if(Gt=="=")return xt="equals",null;if(Gt=="<"){Xt.tokenize=ft,Xt.state=ut,Xt.tagName=Xt.tagStart=null;var Yt=Xt.tokenize(Ut,Xt);return Yt?Yt+" tag error":"tag error"}else return/[\'\"]/.test(Gt)?(Xt.tokenize=lt(Gt),Xt.stringStartCol=Ut.column(),Xt.tokenize(Ut,Xt)):(Ut.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function lt(Ut){var Xt=function(Gt,Yt){for(;!Gt.eol();)if(Gt.next()==Ut){Yt.tokenize=ct;break}return"string"};return Xt.isInAttribute=!0,Xt}function E(Ut,Xt){return function(Gt,Yt){for(;!Gt.eol();){if(Gt.match(Xt)){Yt.tokenize=ft;break}Gt.next()}return Ut}}function z(Ut){return function(Xt,Gt){for(var Yt;(Yt=Xt.next())!=null;){if(Yt=="<")return Gt.tokenize=z(Ut+1),Gt.tokenize(Xt,Gt);if(Yt==">")if(Ut==1){Gt.tokenize=ft;break}else return Gt.tokenize=z(Ut-1),Gt.tokenize(Xt,Gt)}return"meta"}}function ot(Ut,Xt,Gt){this.prev=Ut.context,this.tagName=Xt,this.indent=Ut.indented,this.startOfLine=Gt,(pt.doNotIndent.hasOwnProperty(Xt)||Ut.context&&Ut.context.noIndent)&&(this.noIndent=!0)}function it(Ut){Ut.context&&(Ut.context=Ut.context.prev)}function at(Ut,Xt){for(var Gt;;){if(!Ut.context||(Gt=Ut.context.tagName,!pt.contextGrabbers.hasOwnProperty(Gt)||!pt.contextGrabbers[Gt].hasOwnProperty(Xt)))return;it(Ut)}}function ut(Ut,Xt,Gt){return Ut=="openTag"?(Gt.tagStart=Xt.column(),wt):Ut=="closeTag"?Et:ut}function wt(Ut,Xt,Gt){return Ut=="word"?(Gt.tagName=Xt.current(),dt="tag",Mt):pt.allowMissingTagName&&Ut=="endTag"?(dt="tag bracket",Mt(Ut,Xt,Gt)):(dt="error",wt)}function Et(Ut,Xt,Gt){if(Ut=="word"){var Yt=Xt.current();return Gt.context&&Gt.context.tagName!=Yt&&pt.implicitlyClosed.hasOwnProperty(Gt.context.tagName)&&it(Gt),Gt.context&&Gt.context.tagName==Yt||pt.matchClosing===!1?(dt="tag",At):(dt="tag error",_t)}else return pt.allowMissingTagName&&Ut=="endTag"?(dt="tag bracket",At(Ut,Xt,Gt)):(dt="error",_t)}function At(Ut,Xt,Gt){return Ut!="endTag"?(dt="error",At):(it(Gt),ut)}function _t(Ut,Xt,Gt){return dt="error",At(Ut,Xt,Gt)}function Mt(Ut,Xt,Gt){if(Ut=="word")return dt="attribute",jt;if(Ut=="endTag"||Ut=="selfcloseTag"){var Yt=Gt.tagName,Ht=Gt.tagStart;return Gt.tagName=Gt.tagStart=null,Ut=="selfcloseTag"||pt.autoSelfClosers.hasOwnProperty(Yt)?at(Gt,Yt):(at(Gt,Yt),Gt.context=new ot(Gt,Yt,Ht==Gt.indented)),ut}return dt="error",Mt}function jt(Ut,Xt,Gt){return Ut=="equals"?Lt:(pt.allowMissing||(dt="error"),Mt(Ut,Xt,Gt))}function Lt(Ut,Xt,Gt){return Ut=="string"?It:Ut=="word"&&pt.allowUnquoted?(dt="string",Mt):(dt="error",Mt(Ut,Xt,Gt))}function It(Ut,Xt,Gt){return Ut=="string"?It:Mt(Ut,Xt,Gt)}return{startState:function(Ut){var Xt={tokenize:ft,state:ut,indented:Ut||0,tagName:null,tagStart:null,context:null};return Ut!=null&&(Xt.baseIndent=Ut),Xt},token:function(Ut,Xt){if(!Xt.tagName&&Ut.sol()&&(Xt.indented=Ut.indentation()),Ut.eatSpace())return null;xt=null;var Gt=Xt.tokenize(Ut,Xt);return(Gt||xt)&&Gt!="comment"&&(dt=null,Xt.state=Xt.state(xt||Gt,Ut,Xt),dt&&(Gt=dt=="error"?Gt+" error":dt)),Gt},indent:function(Ut,Xt,Gt){var Yt=Ut.context;if(Ut.tokenize.isInAttribute)return Ut.tagStart==Ut.indented?Ut.stringStartCol+1:Ut.indented+St;if(Yt&&Yt.noIndent)return Ft.Pass;if(Ut.tokenize!=ct&&Ut.tokenize!=ft)return Gt?Gt.match(/^(\s*)/)[0].length:0;if(Ut.tagName)return pt.multilineTagIndentPastTag!==!1?Ut.tagStart+Ut.tagName.length+2:Ut.tagStart+St*(pt.multilineTagIndentFactor||1);if(pt.alignCDATA&&/<!\[CDATA\[/.test(Xt))return 0;var Ht=Xt&&/^<(\/)?([\w_:\.-]*)/.exec(Xt);if(Ht&&Ht[1])for(;Yt;)if(Yt.tagName==Ht[2]){Yt=Yt.prev;break}else if(pt.implicitlyClosed.hasOwnProperty(Yt.tagName))Yt=Yt.prev;else break;else if(Ht)for(;Yt;){var ne=pt.contextGrabbers[Yt.tagName];if(ne&&ne.hasOwnProperty(Ht[2]))Yt=Yt.prev;else break}for(;Yt&&Yt.prev&&!Yt.startOfLine;)Yt=Yt.prev;return Yt?Yt.indent+St:Ut.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:pt.htmlMode?"html":"xml",helperType:pt.htmlMode?"html":"xml",skipAttribute:function(Ut){Ut.state==Lt&&(Ut.state=Mt)},xmlCurrentTag:function(Ut){return Ut.tagName?{name:Ut.tagName,close:Ut.type=="closeTag"}:null},xmlCurrentContext:function(Ut){for(var Xt=[],Gt=Ut.context;Gt;Gt=Gt.prev)Gt.tagName&&Xt.push(Gt.tagName);return Xt.reverse()}}}),Ft.defineMIME("text/xml","xml"),Ft.defineMIME("application/xml","xml"),Ft.mimeModes.hasOwnProperty("text/html")||Ft.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{$u:function(){return yt},BD:function(){return Ne},E9:function(){return vt},FF:function(){return Bi},FJ:function(){return ut},Hn:function(){return at},KX:function(){return Et},NB:function(){return Qt},S0:function(){return Se},UL:function(){return xt},Vk:function(){return it},Vm:function(){return Bt},YI:function(){return xe},ZA:function(){return rt},Zt:function(){return dt},al:function(){return Te},bn:function(){return Be},bx:function(){return se},g2:function(){return le},h1:function(){return Lt},hD:function(){return En},l4:function(){return St},rU:function(){return Wt},s_:function(){return Ae},uz:function(){return ye},z6:function(){return ft}}),tn=Rt.hmd(tn),function(){var ee;function Ds(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function mr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Ds(a)}}function ms(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Xs=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Do;if(typeof Object.setPrototypeOf=="function")Do=Object.setPrototypeOf;else{var Oo;t:{var Gr={a:!0},sa={};try{sa.__proto__=Gr,Oo=sa.a;break t}catch(a){}Oo=!1}Do=Oo?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var dn=Do;function en(a,y){if(a.prototype=Xs(y.prototype),a.prototype.constructor=a,dn)dn(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 qe=typeof Rt.g!="undefined"&&Rt.g!=null?Rt.g:self,zn=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 tt in b)Object.prototype.hasOwnProperty.call(b,tt)&&(a[tt]=b[tt])}return a},Jn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function hi(a,y){if(y){var x=qe;a=a.split(".");for(var b=0;b<a.length-1;b++){var tt=a[b];tt in x||(x[tt]={}),x=x[tt]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Jn(x,a,{writable:!0,value:y})}}hi("Object.assign",function(a){return a||zn}),hi("Array.prototype.fill",function(a){return a||function(y,x,b){var tt=this.length||0;for(0>x&&(x=Math.max(0,tt+x)),(b==null||b>tt)&&(b=tt),b=Number(b),0>b&&(b=Math.max(0,tt+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var bn=typeof globalThis=="object"&&globalThis||typeof Rt.g=="object"&&Rt.g.global===Rt.g&&Rt.g||typeof self=="object"&&self.self===self&&self||{};bn.requestAnimationFrame===void 0&&(bn.setImmediate===void 0?bn.requestAnimationFrame=function(a){bn.setTimeout(a,0)}:bn.requestAnimationFrame=bn.setImmediate);function Bn(){}function Xi(a,y){var x=-1;return function(){var b=this,tt=arguments;x!==-1&&bn.clearTimeout(x),x=dr(function(){x=-1,a.apply(b,tt)},y)}}function dr(a,y){return bn.setTimeout(a,y)}function ir(a){return bn.document.createElement(a)}function We(a){throw Error(a)}function Nn(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 ti(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 pr(a){bn.console&&bn.console.log(a)}function on(a){return typeof a=="object"&&a!==null}function Cn(a){return Array.isArray(a)||bn.NodeList&&a instanceof bn.NodeList||bn.HTMLCollection&&a instanceof bn.HTMLCollection}function xi(a){return Array.prototype.slice.call(a)}function Zi(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 Wi(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 oi(){var a=Mi.pop();return a===void 0?[]:a}function ri(a){a.length=0,Mi.push(a)}function Zn(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(on(a)&&a.constructor)return Zn(a.constructor);return typeof a}function ur(a){var y=a;return on(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 Yr(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 br(a,y,x){Object.defineProperty($i.prototype,a,{get:y,set:x})}function mn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,tt=0;tt<a.length;tt+=2)x[b++]=y[a.substr(tt,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,tt=y[x],y[x]=y[b],y[b]=tt;b=x=0;for(var et="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,tt=y[x],y[x]=y[b],y[b]=tt,et+=String.fromCharCode(a.charCodeAt(nt)^y[(y[x]+y[b])%256]);return et.indexOf("GoJS 2.1 evaluation")>-1||et.indexOf("\xA9 1998-2021 Northwoods Software")>-1||et.indexOf("Not for distribution or production use")>-1||et.indexOf("gojs.net")>-1?"":et}var er=bn.navigator!==void 0&&0<bn.navigator.userAgent.indexOf("Trident/7"),cr=bn.navigator!==void 0&&bn.navigator.platform!==void 0&&bn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Mi=[];Object.freeze([]),Bn.className="Util",Bn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Bn.adym="gojs.net",Bn.vfo="28e645fdb266",Bn.className="Util";function sn(a,y,x){qi(this),this.j=a,this.xa=y,this.o=x}sn.prototype.toString=function(){return"EnumValue."+this.xa};function On(a,y){return y==null||y===""?null:a[y]}qe.Object.defineProperties(sn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),sn.className="EnumValue";function Qn(){this.ew=[]}Qn.prototype.toString=function(){return this.ew.join("")},Qn.prototype.add=function(a){a!==""&&this.ew.push(a)},Qn.className="StringBuilder";function si(){}si.className="PropertyCollection";var ei={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){bn.console&&bn.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 tt={Tj:0};tt.Tj<y.Zl.length;tt={Tj:tt.Tj},tt.Tj++){var et=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[tt.Tj]);et.get!==void 0&&et.set===void 0&&Object.defineProperty(b.prototype,y.Zl[tt.Tj],{set:function(nt,ht){return function(){throw Error("Property "+nt.Zl[ht.Tj]+" of "+nt.x+" is read-only.")}}(y,tt)})}}}y={Zl:y.Zl,x:y.x}}}};function Li(){}Li.prototype.reset=function(){},Li.prototype.next=function(){return!1},Li.prototype.Ad=function(){return!1},Li.prototype.first=function(){return null},Li.prototype.any=function(){return!1},Li.prototype.all=function(){return!0},Li.prototype.each=function(){return this},Li.prototype.map=function(){return this},Li.prototype.filter=function(){return this},Li.prototype.de=function(){},Li.prototype.toString=function(){return"EmptyIterator"},qe.Object.defineProperties(Li.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Li.prototype.first=Li.prototype.first,Li.prototype.hasNext=Li.prototype.Ad,Li.prototype.next=Li.prototype.next,Li.prototype.reset=Li.prototype.reset;var hr=null;Li.className="EmptyIterator",hr=new Li;function Vi(a){this.key=-1,this.value=a}Vi.prototype.reset=function(){this.key=-1},Vi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Vi.prototype.Ad=function(){return this.next()},Vi.prototype.first=function(){return this.key=0,this.value},Vi.prototype.any=function(a){return this.key=-1,a(this.value)},Vi.prototype.all=function(a){return this.key=-1,a(this.value)},Vi.prototype.each=function(a){return this.key=-1,a(this.value),this},Vi.prototype.map=function(a){return new Vi(a(this.value))},Vi.prototype.filter=function(a){return a(this.value)?new Vi(this.value):hr},Vi.prototype.de=function(){this.value=null},Vi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},qe.Object.defineProperties(Vi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Vi.prototype.first=Vi.prototype.first,Vi.prototype.hasNext=Vi.prototype.Ad,Vi.prototype.next=Vi.prototype.next,Vi.prototype.reset=Vi.prototype.reset,Vi.className="SingletonIterator";function Yi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Yi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Yi.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 tt=a[x];if(b(tt))return this.key=this.Za=x,this.value=tt,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Yi.prototype.Ad=function(){return this.next()},Yi.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 tt=a[b];if(x(tt))return this.key=this.Za=b,this.value=tt;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Yi.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,tt=0;tt<x;tt++){var et=y[tt];if((b===null||b(et))&&a(et))return!0}return!1},Yi.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,tt=0;tt<x;tt++){var et=y[tt];if((b===null||b(et))&&!a(et))return!1}return!0},Yi.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,tt=0;tt<x;tt++){var et=y[tt];(b===null||b(et))&&a(et)}return this},Yi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,tt=this.qf,et=0;et<b;et++){var nt=y[et];(tt===null||tt(nt))&&x.push(a(nt))}return a=new vn,a.s=x,a.xb(),a.iterator},Yi.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,tt=this.qf,et=0;et<b;et++){var nt=y[et];(tt===null||tt(nt))&&a(nt)&&x.push(nt)}return a=new vn,a.s=x,a.xb(),a.iterator},Yi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Yi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},qe.Object.defineProperties(Yi.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,tt=0;tt<b;tt++)a(x[tt])&&y++;return y}return this.Bb.s.length}}}),Yi.prototype.first=Yi.prototype.first,Yi.prototype.hasNext=Yi.prototype.Ad,Yi.prototype.next=Yi.prototype.next,Yi.prototype.reset=Yi.prototype.reset,Yi.className="ListIterator";function fr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}fr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},fr.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)},fr.prototype.Ad=function(){return this.next()},fr.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},fr.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},fr.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},fr.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},fr.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 vn,a.s=x,a.xb(),a.iterator},fr.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 tt=y[b];a(tt)&&x.push(tt)}return a=new vn,a.s=x,a.xb(),a.iterator},fr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},fr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},qe.Object.defineProperties(fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),fr.prototype.first=fr.prototype.first,fr.prototype.hasNext=fr.prototype.Ad,fr.prototype.next=fr.prototype.next,fr.prototype.reset=fr.prototype.reset,fr.className="ListIteratorBackwards";function vn(a){qi(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)}ee=vn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return this._isFrozen=!1,this},ee.toString=function(){return"List()#"+Kr(this)},ee.add=function(a){return a===null?this:(this._isFrozen&&Nn(this,a),this.s.push(a),this.xb(),this)},ee.push=function(a){this.add(a)},ee.addAll=function(a){if(a===null)return this;this._isFrozen&&Nn(this);var y=this.s;if(Cn(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},ee.clear=function(){this._isFrozen&&Nn(this),this.s.length=0,this.xb()},ee.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},ee.has=function(a){return this.contains(a)},ee.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},ee.M=function(a){var y=this.s;return(0>a||a>=y.length)&&ti(a,"0 <= i < length",vn,"elt:i"),y[a]},ee.get=function(a){return this.M(a)},ee.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&ti(a,"0 <= i < length",vn,"setElt:i"),this._isFrozen&&Nn(this,a),x[a]=y},ee.set=function(a,y){this.cd(a,y)},ee.first=function(){var a=this.s;return a.length===0?null:a[0]},ee.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},ee.pop=function(){this._isFrozen&&Nn(this);var a=this.s;return 0<a.length?a.pop():null},vn.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},vn.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},vn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},vn.prototype.map=function(a){for(var y=new vn,x=[],b=this.s,tt=b.length,et=0;et<tt;et++)x.push(a(b[et]));return y.s=x,y.xb(),y},vn.prototype.filter=function(a){for(var y=new vn,x=[],b=this.s,tt=b.length,et=0;et<tt;et++){var nt=b[et];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},ee=vn.prototype,ee.Gb=function(a,y){0>a&&ti(a,">= 0",vn,"insertAt:i"),this._isFrozen&&Nn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(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)},ee.delete=function(a){return this.remove(a)},ee.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ti(a,"0 <= i < length",vn,"removeAt:i"),this._isFrozen&&Nn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},ee.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&&Nn(this);for(var tt=a,et=y+1;et<b;)x[tt++]=x[et++];return x.length=b-(y-a+1),this.xb(),this},vn.prototype.copy=function(){var a=new vn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},ee=vn.prototype,ee.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},ee.Iv=function(){for(var a=new gn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},ee.sort=function(a){return this._isFrozen&&Nn(this),this.s.sort(a),this.xb(),this},ee.zi=function(a,y,x){var b=this.s,tt=b.length;y===void 0&&(y=0),x===void 0&&(x=tt),this._isFrozen&&Nn(this);var et=x-y;if(1>=et)return this;if((0>y||y>=tt-1)&&ti(y,"0 <= from < length",vn,"sortRange:from"),et===2)return x=b[y],tt=b[y+1],0<a(x,tt)&&(b[y]=tt,b[y+1]=x,this.xb()),this;if(y===0)if(x>=tt)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>=tt)for(x=b.slice(y),x.sort(a),a=y;a<tt;a++)b[a]=x[a-y];else for(tt=b.slice(y,x),tt.sort(a),a=y;a<x;a++)b[a]=tt[a-y];return this.xb(),this},ee.reverse=function(){return this._isFrozen&&Nn(this),this.s.reverse(),this.xb(),this},qe.Object.defineProperties(vn.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 hr;var a=this.Sa;return a!==null?(a.reset(),a):new Yi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return hr;var a=this.Hg;return a!==null?(a.reset(),a):new fr(this)}}}),vn.prototype.reverse=vn.prototype.reverse,vn.prototype.sortRange=vn.prototype.zi,vn.prototype.sort=vn.prototype.sort,vn.prototype.toSet=vn.prototype.Iv,vn.prototype.toArray=vn.prototype.Fa,vn.prototype.removeRange=vn.prototype.removeRange,vn.prototype.removeAt=vn.prototype.mb,vn.prototype.delete=vn.prototype.delete,vn.prototype.remove=vn.prototype.remove,vn.prototype.insertAt=vn.prototype.Gb,vn.prototype.pop=vn.prototype.pop,vn.prototype.last=vn.prototype.jc,vn.prototype.first=vn.prototype.first,vn.prototype.set=vn.prototype.set,vn.prototype.setElt=vn.prototype.cd,vn.prototype.get=vn.prototype.get,vn.prototype.elt=vn.prototype.M,vn.prototype.indexOf=vn.prototype.indexOf,vn.prototype.has=vn.prototype.has,vn.prototype.contains=vn.prototype.contains,vn.prototype.clear=vn.prototype.clear,vn.prototype.addAll=vn.prototype.addAll,vn.prototype.push=vn.prototype.push,vn.prototype.add=vn.prototype.add,vn.prototype.thaw=vn.prototype.ka,vn.prototype.freeze=vn.prototype.freeze,vn.className="List";function Qi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Qi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Qi.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)},Qi.prototype.Ad=function(){return this.next()},Qi.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},Qi.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},Qi.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},Qi.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},Qi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Qi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Qi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Qi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},qe.Object.defineProperties(Qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),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="SetIterator";function gn(a){qi(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)}ee=gn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return this._isFrozen=!1,this},ee.toString=function(){return"Set()#"+Kr(this)},ee.add=function(a){if(a===null)return this;this._isFrozen&&Nn(this,a);var y=a;return on(a)&&(y=Io(a)),this.Tb[y]===void 0&&(this.Sb++,a=new ba(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},ee.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Nn(this),Cn(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},ee.contains=function(a){if(a===null)return!1;var y=a;return on(a)&&(y=Kr(a),y===void 0)?!1:this.Tb[y]!==void 0},ee.has=function(a){return this.contains(a)},ee.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},ee.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},ee.first=function(){var a=this.ea;return a===null?null:a.value},gn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},gn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},gn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},gn.prototype.map=function(a){for(var y=new gn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},gn.prototype.filter=function(a){for(var y=new gn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},ee=gn.prototype,ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(this,a);var y=a;if(on(a)&&(y=Kr(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},ee.delete=function(a){return this.remove(a)},ee.hp=function(a){if(a===null)return this;if(this._isFrozen&&Nn(this),Cn(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},ee.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Nn(this);var y=new gn;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},ee.clear=function(){this._isFrozen&&Nn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},gn.prototype.copy=function(){var a=new gn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},gn.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},gn.prototype.Hv=function(){var a=new vn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function qi(a){a.__gohashid=Zo++}function Io(a){var y=a.__gohashid;return y===void 0&&(y=Zo++,a.__gohashid=y),y}function Kr(a){return a.__gohashid}qe.Object.defineProperties(gn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new Qi(this)}}}),gn.prototype.toList=gn.prototype.Hv,gn.prototype.toArray=gn.prototype.Fa,gn.prototype.clear=gn.prototype.clear,gn.prototype.retainAll=gn.prototype.pA,gn.prototype.removeAll=gn.prototype.hp,gn.prototype.delete=gn.prototype.delete,gn.prototype.remove=gn.prototype.remove,gn.prototype.first=gn.prototype.first,gn.prototype.containsAny=gn.prototype.Ty,gn.prototype.containsAll=gn.prototype.Sy,gn.prototype.has=gn.prototype.has,gn.prototype.contains=gn.prototype.contains,gn.prototype.addAll=gn.prototype.addAll,gn.prototype.add=gn.prototype.add,gn.prototype.thaw=gn.prototype.ka,gn.prototype.freeze=gn.prototype.freeze;var Zo=1;gn.className="Set",gn.uniqueHash=qi,gn.hashIdUnique=Io,gn.hashId=Kr;function Xr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Xr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Xr.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)},Xr.prototype.Ad=function(){return this.next()},Xr.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},Xr.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},Xr.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},Xr.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},Xr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Xr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Xr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Xr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},qe.Object.defineProperties(Xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xr.prototype.first=Xr.prototype.first,Xr.prototype.hasNext=Xr.prototype.Ad,Xr.prototype.next=Xr.prototype.next,Xr.prototype.reset=Xr.prototype.reset,Xr.className="MapKeySetIterator";function Ri(a){gn.call(this),qi(this),this._isFrozen=!0,this.ma=a}en(Ri,gn),ee=Ri.prototype,ee.freeze=function(){return this},ee.ka=function(){return this},ee.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ee.add=function(){We("This Set is read-only: "+this.toString())},ee.contains=function(a){return this.ma.contains(a)},ee.has=function(a){return this.contains(a)},ee.remove=function(){We("This Set is read-only: "+this.toString())},ee.delete=function(a){return this.remove(a)},ee.clear=function(){We("This Set is read-only: "+this.toString())},ee.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ri.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ri.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ri.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ri.prototype.map=function(a){for(var y=new gn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ri.prototype.filter=function(a){for(var y=new gn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ri.prototype.copy=function(){return new Ri(this.ma)},Ri.prototype.Iv=function(){var a=new gn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ri.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},Ri.prototype.Hv=function(){var a=new vn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},qe.Object.defineProperties(Ri.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?hr:new Xr(this.ma)}}}),Ri.prototype.toList=Ri.prototype.Hv,Ri.prototype.toArray=Ri.prototype.Fa,Ri.prototype.toSet=Ri.prototype.Iv,Ri.prototype.first=Ri.prototype.first,Ri.prototype.clear=Ri.prototype.clear,Ri.prototype.delete=Ri.prototype.delete,Ri.prototype.remove=Ri.prototype.remove,Ri.prototype.has=Ri.prototype.has,Ri.prototype.contains=Ri.prototype.contains,Ri.prototype.add=Ri.prototype.add,Ri.prototype.thaw=Ri.prototype.ka,Ri.prototype.freeze=Ri.prototype.freeze,Ri.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 vn;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 vn;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"},qe.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 ba(a,y){this.key=a,this.value=y,this.ll=this.va=null}ba.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},ba.className="KeyValuePair";function uo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}uo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},uo.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)},uo.prototype.Ad=function(){return this.next()},uo.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},uo.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},uo.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},uo.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},uo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},uo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},uo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},uo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},qe.Object.defineProperties(uo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),uo.prototype.first=uo.prototype.first,uo.prototype.hasNext=uo.prototype.Ad,uo.prototype.next=uo.prototype.next,uo.prototype.reset=uo.prototype.reset,uo.className="MapIterator";function Rn(a){qi(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)}ee=Rn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return this._isFrozen=!1,this},ee.toString=function(){return"Map()#"+Kr(this)},ee.add=function(a,y){this._isFrozen&&Nn(this,a);var x=a;on(a)&&(x=Io(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new ba(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},ee.set=function(a,y){return this.add(a,y)},ee.addAll=function(a){if(a===null)return this;if(Cn(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 Rn)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},ee.first=function(){return this.ea},Rn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Rn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Rn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Rn.prototype.map=function(a){for(var y=new Rn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Rn.prototype.filter=function(a){for(var y=new Rn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},ee=Rn.prototype,ee.contains=function(a){var y=a;return on(a)&&(y=Kr(a),y===void 0)?!1:this.Tb[y]!==void 0},ee.has=function(a){return this.contains(a)},ee.I=function(a){var y=a;return on(a)&&(y=Kr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},ee.get=function(a){return this.I(a)},ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(this,a);var y=a;if(on(a)&&(y=Kr(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},ee.delete=function(a){return this.remove(a)},ee.clear=function(){this._isFrozen&&Nn(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()},Rn.prototype.copy=function(){var a=new Rn,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Rn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var tt=a[b];y[x]=new ba(tt.key,tt.value),x++}return y},Rn.prototype.Lf=function(){return new Ri(this)},qe.Object.defineProperties(Rn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new uo(this)}},iteratorKeys:{get:function(){return 0>=this.count?hr:new Xr(this)}},iteratorValues:{get:function(){if(0>=this.count)return hr;var a=this.jf;return a!==null?(a.reset(),a):new Cr(this)}}}),Rn.prototype.toKeySet=Rn.prototype.Lf,Rn.prototype.toArray=Rn.prototype.Fa,Rn.prototype.clear=Rn.prototype.clear,Rn.prototype.delete=Rn.prototype.delete,Rn.prototype.remove=Rn.prototype.remove,Rn.prototype.get=Rn.prototype.get,Rn.prototype.getValue=Rn.prototype.I,Rn.prototype.has=Rn.prototype.has,Rn.prototype.contains=Rn.prototype.contains,Rn.prototype.first=Rn.prototype.first,Rn.prototype.addAll=Rn.prototype.addAll,Rn.prototype.set=Rn.prototype.set,Rn.prototype.add=Rn.prototype.add,Rn.prototype.thaw=Rn.prototype.ka,Rn.prototype.freeze=Rn.prototype.freeze,Rn.className="Map";function Ee(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 jo,Qo,Tl,Pa,_l;Ee.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ee.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ee.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ee.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ee.prototype.copy=function(){var a=new Ee;return a.x=this.x,a.y=this.y,a},ee=Ee.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function bu(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 tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new Ee(x,tt)}return new Ee}function ec(a){return a.x.toString()+" "+a.y.toString()}ee.toString=function(){return"Point("+this.x+","+this.y+")"},ee.D=function(a){return a instanceof Ee?this.x===a.x&&this.y===a.y:!1},ee.hi=function(a,y){return this.x===a&&this.y===y},ee.Xa=function(a){return Ge.B(this.x,a.x)&&Ge.B(this.y,a.y)},ee.add=function(a){return this.x+=a.x,this.y+=a.y,this},ee.re=function(a){return this.x-=a.x,this.y-=a.y,this},ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Ee.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},ee=Ee.prototype,ee.scale=function(a,y){return this.x*=a,this.y*=y,this},ee.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},ee.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},ee.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},ee.ab=function(a){return nc(a.x-this.x,a.y-this.y)},ee.direction=function(a,y){return nc(a-this.x,y-this.y)};function nc(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}ee.Ry=function(a,y){return Ge.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ee.fA=function(a,y,x,b){return Ge.qh(a,y,x,b,this.x,this.y,this),this},ee.gA=function(a,y){return Ge.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ee.uA=function(a,y,x,b){return Ge.No(this.x,this.y,a,y,x,b,this),this},ee.vA=function(a,y){return Ge.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},ee.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},ee.yi=function(a,y,x,b,tt){return this.x=a+tt.x*x+tt.offsetX,this.y=y+tt.y*b+tt.offsetY,this},ee.transform=function(a){return a.Ga(this),this};function Er(a,y){return y.Cd(a),a}function Zr(a,y,x,b,tt,et){var nt=tt-x,ht=et-b,gt=nt*nt+ht*ht;x-=a,b-=y;var bt=-x*nt-b*ht;return 0>=bt||bt>=gt?(nt=tt-a,ht=et-y,Math.min(x*x+b*b,nt*nt+ht*ht)):(a=nt*b-ht*x,a*a/gt)}function aa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function vi(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)}ee.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ee.alloc=function(){var a=qn.pop();return a===void 0?new Ee:a},Ee.allocAt=function(a,y){var x=qn.pop();return x===void 0?new Ee(a,y):(x.x=a,x.y=y,x)},Ee.free=function(a){qn.push(a)},Ee.prototype.isReal=Ee.prototype.w,Ee.prototype.setSpot=Ee.prototype.yi,Ee.prototype.setRectSpot=Ee.prototype.xi,Ee.prototype.snapToGridPoint=Ee.prototype.vA,Ee.prototype.snapToGrid=Ee.prototype.uA,Ee.prototype.projectOntoLineSegmentPoint=Ee.prototype.gA,Ee.prototype.projectOntoLineSegment=Ee.prototype.fA,Ee.intersectingLineSegments=function(a,y,x,b,tt,et,nt,ht){return Ge.Rl(a,y,x,b,tt,et,nt,ht)},Ee.prototype.compareWithLineSegmentPoint=Ee.prototype.Ry,Ee.compareWithLineSegment=function(a,y,x,b,tt,et){return Ge.Fl(a,y,x,b,tt,et)},Ee.prototype.direction=Ee.prototype.direction,Ee.prototype.directionPoint=Ee.prototype.ab,Ee.prototype.normalize=Ee.prototype.normalize,Ee.prototype.distanceSquared=Ee.prototype.zd,Ee.prototype.distanceSquaredPoint=Ee.prototype.Bf,Ee.prototype.scale=Ee.prototype.scale,Ee.prototype.rotate=Ee.prototype.rotate,Ee.prototype.offset=Ee.prototype.offset,Ee.prototype.subtract=Ee.prototype.re,Ee.prototype.add=Ee.prototype.add,Ee.prototype.equalsApprox=Ee.prototype.Xa,Ee.prototype.equalTo=Ee.prototype.hi,Ee.prototype.equals=Ee.prototype.D,Ee.prototype.set=Ee.prototype.set,Ee.prototype.setTo=Ee.prototype.sg;var qn=[];Ee.className="Point",Ee.parse=bu,Ee.stringify=ec,Ee.distanceLineSegmentSquared=Zr,Ee.distanceSquared=aa,Ee.direction=vi,Ee.Origin=jo=new Ee(0,0).ja(),Ee.InfiniteTopLeft=Qo=new Ee(-1/0,-1/0).ja(),Ee.InfiniteBottomRight=Tl=new Ee(1/0,1/0).ja(),Ee.SixPoint=Pa=new Ee(6,6).ja(),Ee.NoPoint=_l=new Ee(NaN,NaN).ja(),Ee.parse=bu,Ee.stringify=ec,Ee.distanceLineSegmentSquared=Zr,Ee.distanceSquared=aa,Ee.direction=vi;function xn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):We("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ai,zi,jr,Qr,Ur,mo,Jr;xn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.h=function(a,y){return this.width=a,this.height=y,this},xn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},xn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.copy=function(){var a=new xn;return a.width=this.width,a.height=this.height,a},ee=xn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ca(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 tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new xn(x,tt)}return new xn}function Is(a){return a.width.toString()+" "+a.height.toString()}ee.toString=function(){return"Size("+this.width+","+this.height+")"},ee.D=function(a){return a instanceof xn?this.width===a.width&&this.height===a.height:!1},ee.hi=function(a,y){return this.width===a&&this.height===y},ee.Xa=function(a){return Ge.B(this.width,a.width)&&Ge.B(this.height,a.height)},ee.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},ee.w=function(){return isFinite(this.width)&&isFinite(this.height)},xn.alloc=function(){var a=Ol.pop();return a===void 0?new xn:a},xn.free=function(a){Ol.push(a)},xn.prototype.isReal=xn.prototype.w,xn.prototype.inflate=xn.prototype.Bc,xn.prototype.equalsApprox=xn.prototype.Xa,xn.prototype.equalTo=xn.prototype.hi,xn.prototype.equals=xn.prototype.D,xn.prototype.set=xn.prototype.set,xn.prototype.setTo=xn.prototype.sg;var Ol=[];xn.className="Size",xn.parse=Ca,xn.stringify=Is,xn.ZeroSize=ai=new xn(0,0).ja(),xn.OneSize=zi=new xn(1,1).ja(),xn.SixSize=jr=new xn(6,6).ja(),xn.EightSize=Qr=new xn(8,8).ja(),xn.TenSize=Ur=new xn(10,10).ja(),xn.InfiniteSize=mo=new xn(1/0,1/0).ja(),xn.NoSize=Jr=new xn(NaN,NaN).ja(),xn.parse=Ca,xn.stringify=Is;function $e(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 Ee?(x=a.x,a=a.y,y instanceof Ee?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof xn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):We("Incorrect second argument supplied to Rect constructor "+y)):We("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ee=$e.prototype,ee.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ee.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Es(a,y,x){a.width=y,a.height=x}ee.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},ee.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ee.dd=function(a){return this.x=a.x,this.y=a.y,this},ee.tA=function(a){return this.width=a.width,this.height=a.height,this},$e.prototype.copy=function(){var a=new $e;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ee=$e.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pu(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 tt=0;a[y]==="";)y++;(b=a[y++])&&(tt=parseFloat(b));for(var et=0;a[y]==="";)y++;(b=a[y++])&&(et=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new $e(x,tt,et,nt)}return new $e}function Ba(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}ee.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ee.D=function(a){return a instanceof $e?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},ee.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},ee.Xa=function(a){return Ge.B(this.x,a.x)&&Ge.B(this.y,a.y)&&Ge.B(this.width,a.width)&&Ge.B(this.height,a.height)};function Cu(a,y){return Ge.$(a.x,y.x)&&Ge.$(a.y,y.y)&&Ge.$(a.width,y.width)&&Ge.$(a.height,y.height)}ee.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},ee.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},ee.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},ee.offset=function(a,y){return this.x+=a,this.y+=y,this},ee.Bc=function(a,y){return qr(this,y,a,y,a)},ee.Co=function(a){return qr(this,a.top,a.right,a.bottom,a.left)},ee.Fv=function(a){return qr(this,-a.top,-a.right,-a.bottom,-a.left)},ee.Hz=function(a,y,x,b){return qr(this,a,y,x,b)};function qr(a,y,x,b,tt){var et=a.width;return x+tt<=-et?(a.x+=et/2,a.width=0):(a.x-=tt,a.width+=x+tt),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}ee.Ex=function(a){return $a(this,a.x,a.y,a.width,a.height)},ee.Uu=function(a,y,x,b){return $a(this,a,y,x,b)};function $a(a,y,x,b,tt){var et=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+tt),a.x=et,a.y=nt,a.width=Math.max(0,y-et),a.height=Math.max(0,x-nt),a}ee.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},ee.Vu=function(a,y,x,b){var tt=this.width,et=this.x;return tt!==1/0&&x!==1/0&&(tt+=et,x+=a,isNaN(x)||isNaN(tt)||et>x||a>tt)?!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 tl(a,y){var x=a.width,b=a.x,tt=y.x-10;return b>y.width+10+10+tt||tt>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}ee.Ye=function(a){return xr(this,a.x,a.y,0,0)},ee.ed=function(a){return xr(this,a.x,a.y,a.width,a.height)},ee.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),xr(this,a,y,x,b)};function xr(a,y,x,b,tt){var et=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+tt),a.x=et,a.y=nt,a.width=y-et,a.height=x-nt,a}ee.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 Eo(a,y,x,b,tt,et,nt,ht){return nt===void 0&&(nt=0),ht===void 0&&(ht=0),a<=tt&&tt+nt<=a+x&&y<=et&&et+ht<=y+b}function Eu(a,y,x,b,tt,et,nt,ht){return a>nt+tt||tt>x+a?!1:!(y>ht+et||et>b+y)}ee.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ee.Mz=function(){return this.width===0&&this.height===0},$e.alloc=function(){var a=la.pop();return a===void 0?new $e:a},$e.allocAt=function(a,y,x,b){var tt=la.pop();return tt===void 0?new $e(a,y,x,b):tt.h(a,y,x,b)},$e.free=function(a){la.push(a)},qe.Object.defineProperties($e.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 Ee(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new xn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ee(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}}}),$e.prototype.isEmpty=$e.prototype.Mz,$e.prototype.isReal=$e.prototype.w,$e.intersectsLineSegment=function(a,y,x,b,tt,et,nt,ht){return Ge.Fx(a,y,x,b,tt,et,nt,ht)},$e.prototype.setSpot=$e.prototype.yi,$e.prototype.union=$e.prototype.Kv,$e.prototype.unionRect=$e.prototype.ed,$e.prototype.unionPoint=$e.prototype.Ye,$e.prototype.intersects=$e.prototype.Vu,$e.prototype.intersectsRect=$e.prototype.Yc,$e.prototype.intersect=$e.prototype.Uu,$e.prototype.intersectRect=$e.prototype.Ex,$e.prototype.grow=$e.prototype.Hz,$e.prototype.subtractMargin=$e.prototype.Fv,$e.prototype.addMargin=$e.prototype.Co,$e.prototype.inflate=$e.prototype.Bc,$e.prototype.offset=$e.prototype.offset,$e.prototype.contains=$e.prototype.contains,$e.prototype.containsRect=$e.prototype.Re,$e.prototype.containsPoint=$e.prototype.ca,$e.prototype.equalsApprox=$e.prototype.Xa,$e.prototype.equalTo=$e.prototype.hi,$e.prototype.equals=$e.prototype.D,$e.prototype.setSize=$e.prototype.tA,$e.prototype.setPoint=$e.prototype.dd,$e.prototype.set=$e.prototype.set,$e.prototype.setTo=$e.prototype.sg;var Jo=null,ch=null,la=[];$e.className="Rect",$e.parse=Pu,$e.stringify=Ba,$e.contains=Eo,$e.intersects=Eu,$e.ZeroRect=Jo=new $e(0,0,0,0).ja(),$e.NoRect=ch=new $e(NaN,NaN,NaN,NaN).ja(),$e.parse=Pu,$e.stringify=Ba,$e.contains=Eo,$e.intersects=Eu;function Yn(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}Yn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Yn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.copy=function(){var a=new Yn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ee=Yn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function If(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 Yn;for(var tt=NaN;a[y]==="";)y++;if((b=a[y++])&&(tt=parseFloat(b)),isNaN(tt))return new Yn(x);for(var et=NaN;a[y]==="";)y++;if((b=a[y++])&&(et=parseFloat(b)),isNaN(et))return new Yn(x,tt);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Yn(x,tt):new Yn(x,tt,et,nt)}return new Yn}function ic(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}ee.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ee.D=function(a){return a instanceof Yn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},ee.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},ee.Xa=function(a){return Ge.B(this.top,a.top)&&Ge.B(this.right,a.right)&&Ge.B(this.bottom,a.bottom)&&Ge.B(this.left,a.left)},ee.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Yn.alloc=function(){var a=Uc.pop();return a===void 0?new Yn:a},Yn.free=function(a){Uc.push(a)},Yn.prototype.isReal=Yn.prototype.w,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.prototype.equalTo=Yn.prototype.hi,Yn.prototype.equals=Yn.prototype.D,Yn.prototype.set=Yn.prototype.set,Yn.prototype.setTo=Yn.prototype.sg;var Ra=null,Gc=null,Uc=[];Yn.className="Margin",Yn.parse=If,Yn.stringify=ic,Yn.ZeroMargin=Ra=new Yn(0,0,0,0).ja(),Yn.TwoMargin=Gc=new Yn(2,2,2,2).ja(),Yn.parse=If,Yn.stringify=ic;function jn(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 $r,vo,Zs,$l,jl,wi,fh,el,Fs,qo,gl,ml,As,Ea,yn,ci,Ei,Ii,rr,ji,Ir,Nr,$o,bo,Ms,oo,rc,dh,vl,nl,Fo,vs,Ao,Po,il,tu;jn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},jn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.copy=function(){var a=new jn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ee=jn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function ho(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ff(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return $r;if(a==="TopLeft")return vo;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Zs;if(a==="TopRight")return $l;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return jl;if(a==="Center")return wi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return fh;if(a==="BottomLeft")return el;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Fs;if(a==="BottomRight")return qo;if(a==="TopSide")return gl;if(a==="LeftSide")return ml;if(a==="RightSide")return As;if(a==="BottomSide")return Ea;if(a==="TopBottomSides")return yn;if(a==="LeftRightSides")return ci;if(a==="TopLeftSides")return Ei;if(a==="TopRightSides")return Ii;if(a==="BottomLeftSides")return rr;if(a==="BottomRightSides")return ji;if(a==="NotTopSide")return Ir;if(a==="NotLeftSide")return Nr;if(a==="NotRightSide")return $o;if(a==="NotBottomSide")return bo;if(a==="AllSides")return Ms;if(a==="Default")return oo;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 tt=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b));for(var et=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(et=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new jn(x,tt,et,nt)}return new jn}function Bf(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}ee.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($r)?"None":this.D(vo)?"TopLeft":this.D(Zs)?"Top":this.D($l)?"TopRight":this.D(jl)?"Left":this.D(wi)?"Center":this.D(fh)?"Right":this.D(el)?"BottomLeft":this.D(Fs)?"Bottom":this.D(qo)?"BottomRight":this.D(gl)?"TopSide":this.D(ml)?"LeftSide":this.D(As)?"RightSide":this.D(Ea)?"BottomSide":this.D(yn)?"TopBottomSides":this.D(ci)?"LeftRightSides":this.D(Ei)?"TopLeftSides":this.D(Ii)?"TopRightSides":this.D(rr)?"BottomLeftSides":this.D(ji)?"BottomRightSides":this.D(Ir)?"NotTopSide":this.D(Nr)?"NotLeftSide":this.D($o)?"NotRightSide":this.D(bo)?"NotBottomSide":this.D(Ms)?"AllSides":this.D(oo)?"Default":"None"},ee.D=function(a){return a instanceof jn?(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},ee.gv=function(){return new jn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},ee.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(rc))a=ml;else if(a.D(dh))a=As;else if(a.D(vl))a=gl;else if(a.D(nl))a=Ea;else return!1;return a=a.offsetY,(this.offsetY&a)===a},ee.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},ee.Mc=function(){return isNaN(this.x)||isNaN(this.y)},ee.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},ee.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},ee.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},jn.alloc=function(){var a=Rf.pop();return a===void 0?new jn:a},jn.free=function(a){Rf.push(a)},jn.prototype.isDefault=jn.prototype.Xb,jn.prototype.isNone=jn.prototype.ys,jn.prototype.isSide=jn.prototype.$c,jn.prototype.isNoSpot=jn.prototype.Mc,jn.prototype.isSpot=jn.prototype.sb,jn.prototype.includesSide=jn.prototype.Hf,jn.prototype.opposite=jn.prototype.gv,jn.prototype.equals=jn.prototype.D,jn.prototype.set=jn.prototype.set,jn.prototype.setTo=jn.prototype.sg;var Rf=[];jn.className="Spot",jn.parse=Ff,jn.stringify=Bf,jn.None=$r=ho(new jn(0,0,0,0),0).ja(),jn.Default=oo=ho(new jn(0,0,-1,0),-1).ja(),jn.TopLeft=vo=new jn(0,0,0,0).ja(),jn.TopCenter=Zs=new jn(.5,0,0,0).ja(),jn.TopRight=$l=new jn(1,0,0,0).ja(),jn.LeftCenter=jl=new jn(0,.5,0,0).ja(),jn.Center=wi=new jn(.5,.5,0,0).ja(),jn.RightCenter=fh=new jn(1,.5,0,0).ja(),jn.BottomLeft=el=new jn(0,1,0,0).ja(),jn.BottomCenter=Fs=new jn(.5,1,0,0).ja(),jn.BottomRight=qo=new jn(1,1,0,0).ja(),jn.MiddleTop=Fo=Zs,jn.MiddleLeft=vs=jl,jn.MiddleRight=Ao=fh,jn.MiddleBottom=Po=Fs,jn.Top=vl=Zs,jn.Left=rc=jl,jn.Right=dh=fh,jn.Bottom=nl=Fs,jn.TopSide=gl=ho(new jn(0,0,1,1),1).ja(),jn.LeftSide=ml=ho(new jn(0,0,1,2),1).ja(),jn.RightSide=As=ho(new jn(0,0,1,4),1).ja(),jn.BottomSide=Ea=ho(new jn(0,0,1,8),1).ja(),jn.TopBottomSides=yn=ho(new jn(0,0,1,9),1).ja(),jn.LeftRightSides=ci=ho(new jn(0,0,1,6),1).ja(),jn.TopLeftSides=Ei=ho(new jn(0,0,1,3),1).ja(),jn.TopRightSides=Ii=ho(new jn(0,0,1,5),1).ja(),jn.BottomLeftSides=rr=ho(new jn(0,0,1,10),1).ja(),jn.BottomRightSides=ji=ho(new jn(0,0,1,12),1).ja(),jn.NotTopSide=Ir=ho(new jn(0,0,1,14),1).ja(),jn.NotLeftSide=Nr=ho(new jn(0,0,1,13),1).ja(),jn.NotRightSide=$o=ho(new jn(0,0,1,11),1).ja(),jn.NotBottomSide=bo=ho(new jn(0,0,1,7),1).ja(),jn.AllSides=Ms=ho(new jn(0,0,1,15),1).ja(),il=new jn(.156,.156).ja(),tu=new jn(.844,.844).ja(),jn.parse=Ff,jn.stringify=Bf;function Xn(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Xn.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},Xn.prototype.setTransform=function(a,y,x,b,tt,et){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=tt,this.dy=et,this},Xn.prototype.copy=function(){var a=new Xn;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},Xn.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Xn.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},Xn.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Xn.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Xn.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,tt=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=tt,this},Xn.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,tt=-a.m21*y,et=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*tt+this.m21*et,tt=this.m12*tt+this.m22*et,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=tt,this},Xn.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,tt=a*(this.m21*this.dy-this.m22*this.dx),et=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=tt,this.dy=et,this},Xn.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 tt=this.m12*a+this.m22*b,et=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=tt,this.m21=et,this.m22=nt,this.translate(-y,-x),this},ee=Xn.prototype,ee.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},ee.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},ee.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)},ee.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))},ee.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))},ee.pp=function(a){var y=a.x,x=a.y,b=y+a.width,tt=x+a.height,et=this.m11,nt=this.m12,ht=this.m21,gt=this.m22,bt=this.dx,Pt=this.dy,Nt=y*et+x*ht+bt,zt=y*nt+x*gt+Pt,Vt=b*et+x*ht+bt,Zt=b*nt+x*gt+Pt;return x=y*et+tt*ht+bt,y=y*nt+tt*gt+Pt,et=b*et+tt*ht+bt,b=b*nt+tt*gt+Pt,tt=Math.min(Nt,Vt),Nt=Math.max(Nt,Vt),Vt=Math.min(zt,Zt),zt=Math.max(zt,Zt),tt=Math.min(tt,x),Nt=Math.max(Nt,x),Vt=Math.min(Vt,y),zt=Math.max(zt,y),tt=Math.min(tt,et),Nt=Math.max(Nt,et),Vt=Math.min(Vt,b),zt=Math.max(zt,b),a.h(tt,Vt,Nt-tt,zt-Vt),a},Xn.alloc=function(){var a=qd.pop();return a===void 0?new Xn:a},Xn.free=function(a){qd.push(a)},Xn.prototype.transformRect=Xn.prototype.pp,Xn.prototype.transformPoint=Xn.prototype.Ga,Xn.prototype.scale=Xn.prototype.scale,Xn.prototype.translate=Xn.prototype.translate,Xn.prototype.rotate=Xn.prototype.rotate,Xn.prototype.invert=Xn.prototype.Vj,Xn.prototype.multiplyInverted=Xn.prototype.bv,Xn.prototype.multiply=Xn.prototype.multiply,Xn.prototype.reset=Xn.prototype.reset,Xn.prototype.isIdentity=Xn.prototype.ws,Xn.prototype.equals=Xn.prototype.D,Xn.prototype.setTransform=Xn.prototype.setTransform,Xn.prototype.set=Xn.prototype.set;var qd=[];Xn.className="Transform",Xn.xF="54a702f3e53909c447824c6706603faf4c";var Ge={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ge.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ge.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,tt,et,nt){if(0>=tt&&(tt=1e-6),a<x)var ht=a,gt=x;else ht=x,gt=a;if(y<b)var bt=y,Pt=b;else bt=b,Pt=y;if(a===x)return bt<=nt&&nt<=Pt&&a-tt<=et&&et<=a+tt;if(y===b)return ht<=et&&et<=gt&&y-tt<=nt&&nt<=y+tt;if(gt+=tt,ht-=tt,ht<=et&&et<=gt&&(Pt+=tt,bt-=tt,bt<=nt&&nt<=Pt))if(gt-ht>Pt-bt)if(a-x>tt||x-a>tt){if(et=(b-y)/(x-a)*(et-a)+y,et-tt<=nt&&nt<=et+tt)return!0}else return!0;else if(y-b>tt||b-y>tt){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-tt<=et&&et<=nt+tt)return!0}else return!0;return!1},cs:function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt,Nt){if(Ge.Yb(a,y,nt,ht,Nt,x,b)&&Ge.Yb(a,y,nt,ht,Nt,tt,et))return Ge.Yb(a,y,nt,ht,Nt,bt,Pt);var zt=(a+x)/2,Vt=(y+b)/2,Zt=(x+tt)/2,oe=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(zt+Zt)/2,x=(Vt+oe)/2,Zt=(Zt+tt)/2,oe=(oe+et)/2;var Pe=(b+Zt)/2,de=(x+oe)/2;return Ge.cs(a,y,zt,Vt,b,x,Pe,de,gt,bt,Pt,Nt)||Ge.cs(Pe,de,Zt,oe,tt,et,nt,ht,gt,bt,Pt,Nt)},ax:function(a,y,x,b,tt,et,nt,ht,gt){var bt=(x+tt)/2,Pt=(b+et)/2;return gt.h((((a+x)/2+bt)/2+(bt+(tt+nt)/2)/2)/2,(((y+b)/2+Pt)/2+(Pt+(et+ht)/2)/2)/2),gt},My:function(a,y,x,b,tt,et,nt,ht){var gt=(x+tt)/2,bt=(b+et)/2;return vi(((a+x)/2+gt)/2,((y+b)/2+bt)/2,(gt+(tt+nt)/2)/2,(bt+(et+ht)/2)/2)},Dl:function(a,y,x,b,tt,et,nt,ht,gt,bt){if(Ge.Yb(a,y,nt,ht,gt,x,b)&&Ge.Yb(a,y,nt,ht,gt,tt,et))xr(bt,a,y,0,0),xr(bt,nt,ht,0,0);else{var Pt=(a+x)/2,Nt=(y+b)/2,zt=(x+tt)/2,Vt=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(Pt+zt)/2,x=(Nt+Vt)/2,zt=(zt+tt)/2,Vt=(Vt+et)/2;var Zt=(b+zt)/2,oe=(x+Vt)/2;Ge.Dl(a,y,Pt,Nt,b,x,Zt,oe,gt,bt),Ge.Dl(Zt,oe,zt,Vt,tt,et,nt,ht,gt,bt)}return bt},Qe:function(a,y,x,b,tt,et,nt,ht,gt,bt){if(Ge.Yb(a,y,nt,ht,gt,x,b)&&Ge.Yb(a,y,nt,ht,gt,tt,et))bt.length===0&&(bt.push(a),bt.push(y)),bt.push(nt),bt.push(ht);else{var Pt=(a+x)/2,Nt=(y+b)/2,zt=(x+tt)/2,Vt=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(Pt+zt)/2,x=(Nt+Vt)/2,zt=(zt+tt)/2,Vt=(Vt+et)/2;var Zt=(b+zt)/2,oe=(x+Vt)/2;Ge.Qe(a,y,Pt,Nt,b,x,Zt,oe,gt,bt),Ge.Qe(Zt,oe,zt,Vt,tt,et,nt,ht,gt,bt)}return bt},jv:function(a,y,x,b,tt,et,nt,ht,gt,bt){if(Ge.Yb(a,y,tt,et,bt,x,b))return Ge.Yb(a,y,tt,et,bt,ht,gt);var Pt=(a+x)/2,Nt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var zt=(Pt+x)/2,Vt=(Nt+b)/2;return Ge.jv(a,y,Pt,Nt,zt,Vt,nt,ht,gt,bt)||Ge.jv(zt,Vt,x,b,tt,et,nt,ht,gt,bt)},OA:function(a,y,x,b,tt,et,nt){return nt.h(((a+x)/2+(x+tt)/2)/2,((y+b)/2+(b+et)/2)/2),nt},iv:function(a,y,x,b,tt,et,nt,ht){if(Ge.Yb(a,y,tt,et,nt,x,b))xr(ht,a,y,0,0),xr(ht,tt,et,0,0);else{var gt=(a+x)/2,bt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var Pt=(gt+x)/2,Nt=(bt+b)/2;Ge.iv(a,y,gt,bt,Pt,Nt,nt,ht),Ge.iv(Pt,Nt,x,b,tt,et,nt,ht)}return ht},ep:function(a,y,x,b,tt,et,nt,ht){if(Ge.Yb(a,y,tt,et,nt,x,b))ht.length===0&&(ht.push(a),ht.push(y)),ht.push(tt),ht.push(et);else{var gt=(a+x)/2,bt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var Pt=(gt+x)/2,Nt=(bt+b)/2;Ge.ep(a,y,gt,bt,Pt,Nt,nt,ht),Ge.ep(Pt,Nt,x,b,tt,et,nt,ht)}return ht},Eo:function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt,Nt,zt,Vt){if(Ge.Yb(a,y,nt,ht,zt,x,b)&&Ge.Yb(a,y,nt,ht,zt,tt,et))return!Ge.Rl(a,y,nt,ht,gt,bt,Pt,Nt)||(zt=(a-nt)*(bt-Nt)-(y-ht)*(gt-Pt),zt===0)?!1:(Vt.h(((a*ht-y*nt)*(gt-Pt)-(a-nt)*(gt*Nt-bt*Pt))/zt,((a*ht-y*nt)*(bt-Nt)-(y-ht)*(gt*Nt-bt*Pt))/zt),!0);var Zt=(a+x)/2,oe=(y+b)/2,Pe=(x+tt)/2,de=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(Zt+Pe)/2,x=(oe+de)/2,Pe=(Pe+tt)/2,de=(de+et)/2;var Le=(b+Pe)/2,Oe=(x+de)/2,De=1/0,Re=!1,Ve=0,Sn=0;return Ge.Eo(a,y,Zt,oe,b,x,Le,Oe,gt,bt,Pt,Nt,zt,Vt)&&(a=(Vt.x-gt)*(Vt.x-gt)+(Vt.y-bt)*(Vt.y-bt),a<De&&(De=a,Re=!0,Ve=Vt.x,Sn=Vt.y)),Ge.Eo(Le,Oe,Pe,de,tt,et,nt,ht,gt,bt,Pt,Nt,zt,Vt)&&(Vt.x-gt)*(Vt.x-gt)+(Vt.y-bt)*(Vt.y-bt)<De&&(Re=!0,Ve=Vt.x,Sn=Vt.y),Re&&(Vt.x=Ve,Vt.y=Sn),Re},Fo:function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt,Nt,zt){var Vt=0;if(Ge.Yb(a,y,nt,ht,zt,x,b)&&Ge.Yb(a,y,nt,ht,zt,tt,et)){if(zt=(a-nt)*(bt-Nt)-(y-ht)*(gt-Pt),zt===0)return Vt;var Zt=((a*ht-y*nt)*(gt-Pt)-(a-nt)*(gt*Nt-bt*Pt))/zt,oe=((a*ht-y*nt)*(bt-Nt)-(y-ht)*(gt*Nt-bt*Pt))/zt;if(Zt>=Pt)return Vt;if((gt>Pt?gt-Pt:Pt-gt)<(bt>Nt?bt-Nt:Nt-bt)){if(y<ht?(gt=y,a=ht):(gt=ht,a=y),oe<gt||oe>a)return Vt}else if(a<nt?(gt=a,a=nt):gt=nt,Zt<gt||Zt>a)return Vt;0<zt?Vt++:0>zt&&Vt--}else{Zt=(a+x)/2,oe=(y+b)/2;var Pe=(x+tt)/2,de=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(Zt+Pe)/2,x=(oe+de)/2,Pe=(Pe+tt)/2,de=(de+et)/2;var Le=(b+Pe)/2,Oe=(x+de)/2;Vt+=Ge.Fo(a,y,Zt,oe,b,x,Le,Oe,gt,bt,Pt,Nt,zt),Vt+=Ge.Fo(Le,Oe,Pe,de,tt,et,nt,ht,gt,bt,Pt,Nt,zt)}return Vt},qh:function(a,y,x,b,tt,et,nt){return Ge.$(a,x)?(y<b?(x=y,y=b):x=b,et<x?(nt.h(a,x),!1):et>y?(nt.h(a,y),!1):(nt.h(a,et),!0)):Ge.$(y,b)?(a<x?(b=a,a=x):b=x,tt<b?(nt.h(b,y),!1):tt>a?(nt.h(a,y),!1):(nt.h(tt,y),!0)):(tt=((a-tt)*(a-x)+(y-et)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>tt?(nt.h(a,y),!1):1.000005<tt?(nt.h(x,b),!1):(nt.h(a+tt*(x-a),y+tt*(b-y)),!0))},Ve:function(a,y,x,b,tt,et,nt,ht,gt){return Ge.B(a,x)&&Ge.B(y,b)?(gt.h(a,y),!1):Ge.$(tt,nt)?Ge.$(a,x)?(Ge.qh(a,y,x,b,tt,et,gt),!1):Ge.qh(a,y,x,b,tt,(b-y)/(x-a)*(tt-a)+y,gt):(ht=(ht-et)/(nt-tt),Ge.$(a,x)?(x=ht*(a-tt)+et,y<b?(tt=y,y=b):tt=b,x<tt?(gt.h(a,tt),!1):x>y?(gt.h(a,y),!1):(gt.h(a,x),!0)):(nt=(b-y)/(x-a),Ge.$(ht,nt)?(Ge.qh(a,y,x,b,tt,et,gt),!1):(tt=(nt*a-ht*tt+et-y)/(nt-ht),Ge.$(nt,0)?(a<x?(b=a,a=x):b=x,tt<b?(gt.h(b,y),!1):tt>a?(gt.h(a,y),!1):(gt.h(tt,y),!0)):Ge.qh(a,y,x,b,tt,nt*(tt-a)+y,gt))))},MA:function(a,y,x,b,tt){return Ge.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,tt)},KA:function(a,y,x,b,tt,et,nt,ht,gt,bt){function Pt(Pe,de){var Le=(Pe-a)*(Pe-a)+(de-y)*(de-y);Le<Nt&&(Nt=Le,gt.h(Pe,de))}var Nt=1/0;Pt(gt.x,gt.y);var zt=0,Vt=0,Zt=0,oe=0;if(tt<nt?(zt=tt,Vt=nt):(zt=nt,Vt=tt),et<ht?(Zt=tt,oe=nt):(Zt=nt,oe=tt),zt=(Vt-zt)/2+bt,bt=(oe-Zt)/2+bt,tt=(tt+nt)/2,et=(et+ht)/2,zt===0||bt===0)return gt;if(.5>(x>a?x-a:a-x)){if(zt=1-(x-tt)*(x-tt)/(zt*zt),0>zt)return gt;zt=Math.sqrt(zt),b=-bt*zt+et,Pt(x,bt*zt+et),Pt(x,b)}else{if(x=(b-y)/(x-a),b=1/(zt*zt)+x*x/(bt*bt),ht=2*x*(y-x*a)/(bt*bt)-2*x*et/(bt*bt)-2*tt/(zt*zt),zt=ht*ht-4*b*(2*x*a*et/(bt*bt)-2*y*et/(bt*bt)+et*et/(bt*bt)+tt*tt/(zt*zt)-1+(y-x*a)*(y-x*a)/(bt*bt)),0>zt)return gt;zt=Math.sqrt(zt),bt=(-ht+zt)/(2*b),Pt(bt,x*bt-x*a+y),zt=(-ht-zt)/(2*b),Pt(zt,x*zt-x*a+y)}return gt},Ff:function(a,y,x,b,tt,et,nt,ht,gt){var bt=1e21,Pt=a,Nt=y;if(Ge.Ve(a,y,a,b,tt,et,nt,ht,gt)){var zt=(gt.x-tt)*(gt.x-tt)+(gt.y-et)*(gt.y-et);zt<bt&&(bt=zt,Pt=gt.x,Nt=gt.y)}return Ge.Ve(x,y,x,b,tt,et,nt,ht,gt)&&(zt=(gt.x-tt)*(gt.x-tt)+(gt.y-et)*(gt.y-et),zt<bt&&(bt=zt,Pt=gt.x,Nt=gt.y)),Ge.Ve(a,y,x,y,tt,et,nt,ht,gt)&&(y=(gt.x-tt)*(gt.x-tt)+(gt.y-et)*(gt.y-et),y<bt&&(bt=y,Pt=gt.x,Nt=gt.y)),Ge.Ve(a,b,x,b,tt,et,nt,ht,gt)&&(a=(gt.x-tt)*(gt.x-tt)+(gt.y-et)*(gt.y-et),a<bt&&(bt=a,Pt=gt.x,Nt=gt.y)),gt.h(Pt,Nt),1e21>bt},us:function(a,y,x){return Ge.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,tt,et,nt,ht){var gt=a+x,bt=y+b;return tt===nt?(et<ht?(nt=et,et=ht):nt=ht,a<=tt&&tt<=gt&&nt<=bt&&et>=y):et===ht?(tt<nt?(ht=tt,tt=nt):ht=nt,y<=et&&et<=bt&&ht<=gt&&tt>=a):!!(Eo(a,y,x,b,tt,et)||Eo(a,y,x,b,nt,ht)||Ge.Rl(a,y,gt,y,tt,et,nt,ht)||Ge.Rl(gt,y,gt,bt,tt,et,nt,ht)||Ge.Rl(gt,bt,a,bt,tt,et,nt,ht)||Ge.Rl(a,bt,a,y,tt,et,nt,ht))},Rl:function(a,y,x,b,tt,et,nt,ht){return a===x&&y===b&&tt===nt&&et===ht?a===tt&&y===et:0>=Ge.Fl(a,y,x,b,tt,et)*Ge.Fl(a,y,x,b,nt,ht)&&0>=Ge.Fl(tt,et,nt,ht,a,y)*Ge.Fl(tt,et,nt,ht,x,b)},Fl:function(a,y,x,b,tt,et){return x-=a,b-=y,a=tt-a,y=et-y,et=a*b-y*x,et===0&&(et=a*x+y*b,0<et&&(et=(a-x)*x+(y-b)*b,0>et&&(et=0))),et},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,tt,et){var nt=Math.PI;et||(b*=nt/180,tt*=nt/180);var ht=b>tt?-1:1;et=[];var gt=nt/2,bt=b;if(b=Math.min(2*nt,Math.abs(tt-b)),1e-5>b)return gt=bt+ht*Math.min(b,gt),ht=a+x*Math.cos(bt),bt=y+x*Math.sin(bt),a+=x*Math.cos(gt),y+=x*Math.sin(gt),x=(ht+a)/2,gt=(bt+y)/2,et.push([ht,bt,x,gt,x,gt,a,y]),et;for(;1e-5<b;)tt=bt+ht*Math.min(b,gt),et.push(Ge.Vy(x,bt,tt,a,y)),b-=Math.abs(tt-bt),bt=tt;return et},Vy:function(a,y,x,b,tt){var et=(x-y)/2,nt=a*Math.cos(et),ht=a*Math.sin(et),gt=-ht,bt=nt*nt+gt*gt,Pt=bt+nt*nt+gt*ht;return bt=4/3*(Math.sqrt(2*bt*Pt)-Pt)/(nt*ht-gt*nt),ht=nt-bt*gt,nt=gt+bt*nt,gt=-nt,bt=et+y,et=Math.cos(bt),bt=Math.sin(bt),[b+a*Math.cos(y),tt+a*Math.sin(y),b+ht*et-nt*bt,tt+ht*bt+nt*et,b+ht*et-gt*bt,tt+ht*bt+gt*et,b+a*Math.cos(x),tt+a*Math.sin(x)]},No:function(a,y,x,b,tt,et,nt){x=Math.floor((a-x)/tt)*tt+x,b=Math.floor((y-b)/et)*et+b;var ht=x;return x+tt-a<tt/2&&(ht=x+tt),a=b,b+et-y<et/2&&(a=b+et),nt.h(ht,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 tt=0>x,et=0>b;if(a<y)var nt=1,ht=0;else nt=0,ht=1;var gt=nt===0?a:y,bt=nt===0?x:b;return(nt===0?tt:et)&&(bt=-bt),nt=ht,x=nt===0?x:b,(nt===0?tt:et)&&(x=-x),Ge.az(gt,nt===0?a:y,bt,x,0,0)},az:function(a,y,x,b,tt,et){if(0<b)if(0<x){tt=a*a,et=y*y,a*=x;var nt=y*b,ht=-et+nt,gt=-et+Math.sqrt(a*a+nt*nt);y=ht;for(var bt=0;9999999999>bt&&(y=.5*(ht+gt),!(y===ht||y===gt));++bt){var Pt=a/(y+tt),Nt=nt/(y+et);if(Pt=Pt*Pt+Nt*Nt-1,0<Pt)ht=y;else if(0>Pt)gt=y;else break}x=tt*x/(y+tt)-x,b=et*b/(y+et)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,et=a*x,et<b?(b=et/b,et=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+et*et)):x=Math.abs(x-a);return x},Ze:new si,um:new si,Mf:new si,Nf:0,vm:100};Ge.za=Ge.AA;function pn(a){qi(this),this.l=2,a===void 0&&(a=pn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===pn.o?this.ee=new vn:(pn.V===null&&(pn.V=new vn().freeze()),this.ee=pn.V),this.aq=this.ee.Ja,this.Ip=new $e().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=vo,this.gg=qo,this.Rk=this.Sk=NaN,this.Uf=ln}pn.prototype.copy=function(){var a=new pn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===pn.o){for(var y=this.ee.s,x=a.ee,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},pn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},pn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==pn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},pn.prototype.ka=function(){if(Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==pn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},pn.prototype.Xa=function(a){if(!(a instanceof pn))return!1;if(this.type!==a.type)return this.type===pn.j&&a.type===pn.o?jg(this,a):a.type===pn.j&&this.type===pn.o?jg(a,this):!1;if(this.type===pn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Ge.B(this.startX,a.startX)&&Ge.B(this.startY,a.startY)&&Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)};function jg(a,y){return a.type!==pn.j||y.type!==pn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ge.B(a.startX,y.startX)&&Ge.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Gi&&Ge.B(a.endX,y.endX)&&Ge.B(a.endY,y.endY))))}pn.ia=function(a){return a.toString()},pn.prototype.qb=function(a){a.classType===pn&&(this.type=a)},pn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case pn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case pn.u:var y=new $e(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case pn.F:if(y=new $e(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case pn.o:y="",x=this.figures.s;for(var b=x.length,tt=0;tt<b;tt++){var et=x[tt];0<tt&&(y+=" x "),et.isFilled&&(y+="F "),y+=et.toString(a)}return y;default:return this.type.toString()}},pn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var tt=a[b];x=tt.match(/[Ff]/)!==null?b===0?x+tt:x+("X"+(tt[0]===" "?"":" ")+tt):x+((b===0?"":"X ")+"F"+(tt[0]===" "?"":" ")+tt)}return x},pn.parse=function(a,y){function x(){return oe>=De-1?!0:bt[oe+1].match(Re)!==null}function b(){return oe++,bt[oe]}function tt(Gn){var Fn=parseFloat(b()),yi=parseFloat(b());Pe===Pe.toLowerCase()&&(Fn=Oe.x+Fn,yi=Oe.y+yi),Gn.h(Fn,yi)}function et(){return tt(Oe),Oe}function nt(){return tt(Le),Le}function ht(){var Gn=de.toLowerCase();return Gn!=="c"&&Gn!=="s"&&Gn!=="q"&&Gn!=="t"?Oe:new Ee(2*Oe.x-Le.x,2*Oe.y-Le.y)}y===void 0&&(y=!1);var gt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(gt,"$1 $2"),a=a.replace(gt,"$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 bt=a.split(" ");for(a=0;a<bt.length;a++){var Pt=bt[a];if(Pt.match(/(\.[0-9]*)(\.)/gm)!==null){gt=oi();for(var Nt="",zt=!1,Vt=0;Vt<Pt.length;Vt++){var Zt=Pt[Vt];Zt!=="."||zt?Zt==="."?(gt.push(Nt),Nt="."):Nt+=Zt:(zt=!0,Nt+=Zt)}for(gt.push(Nt),bt.splice(a,1),Pt=0;Pt<gt.length;Pt++)bt.splice(a+Pt,0,gt[Pt]);a+=gt.length-1,ri(gt)}}var oe=-1,Pe="",de="";gt=new Ee(0,0);var Le=new Ee(0,0),Oe=new Ee(0,0),De=bt.length;a=_1(null),zt=Nt=Pt=!1,Vt=!0,Zt=null;for(var Re=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(oe>=De-1);)if(de=Pe,Pe=b(),Pe!=="")switch(Pe.toUpperCase()){case"X":Vt=!0,Nt=Pt=!1;break;case"M":for(Zt=et(),a.mc===null||Vt===!0?(Ed(a,Zt.x,Zt.y,Pt,!Nt,zt),Vt=!1):a.moveTo(Zt.x,Zt.y),gt.assign(Oe);!x();)Zt=et(),a.lineTo(Zt.x,Zt.y);break;case"L":for(;!x();)Zt=et(),a.lineTo(Zt.x,Zt.y);break;case"H":for(;!x();)Oe=new Ee((Pe===Pe.toLowerCase()?Oe.x:0)+parseFloat(b()),Oe.y),a.lineTo(Oe.x,Oe.y);break;case"V":for(;!x();)Oe=new Ee(Oe.x,(Pe===Pe.toLowerCase()?Oe.y:0)+parseFloat(b())),a.lineTo(Oe.x,Oe.y);break;case"C":for(;!x();){Zt=new Ee,tt(Zt);var Ve=nt(),Sn=et();Ku(a,Zt.x,Zt.y,Ve.x,Ve.y,Sn.x,Sn.y)}break;case"S":for(;!x();)Zt=ht(),Ve=nt(),Sn=et(),Ku(a,Zt.x,Zt.y,Ve.x,Ve.y,Sn.x,Sn.y);break;case"Q":for(;!x();)Zt=nt(),Ve=et(),Fm(a,Zt.x,Zt.y,Ve.x,Ve.y);break;case"T":for(;!x();)Le=Zt=ht(),Ve=et(),Fm(a,Zt.x,Zt.y,Ve.x,Ve.y);break;case"B":for(;!x();){Zt=parseFloat(b()),Ve=parseFloat(b()),Sn=parseFloat(b());var Mn=parseFloat(b()),Pn=parseFloat(b()),hn=Pn,rn=!1;x()||(hn=parseFloat(b()),x()||(rn=parseFloat(b())!==0)),Pe===Pe.toLowerCase()&&(Sn+=Oe.x,Mn+=Oe.y),a.arcTo(Zt,Ve,Sn,Mn,Pn,hn,rn)}break;case"A":for(;!x();)Zt=Math.abs(parseFloat(b())),Ve=Math.abs(parseFloat(b())),Sn=parseFloat(b()),Pn=Mn=!1,rn=hn=0,hn=b(),hn.length===1?(Mn=!!parseFloat(hn),Pn=!!parseFloat(b()),hn=parseFloat(b())):hn.length===2?(Mn=!!parseFloat(hn[0]),Pn=!!parseFloat(hn[1]),hn=parseFloat(b())):(Mn=!!parseFloat(hn[0]),Pn=!!parseFloat(hn[1]),hn=parseFloat(hn.slice(2))),rn=parseFloat(b()),Pe===Pe.toLowerCase()&&(hn=Oe.x+hn,rn=Oe.y+rn),Oe.h(hn,rn),Pw(a,Zt,Ve,Sn,Mn,Pn,hn,rn);break;case"Z":bw(a),Oe.assign(gt);break;case"F":for(Zt="",Ve=1;bt[oe+Ve];)if(bt[oe+Ve]==="0")zt=!0,Ve++;else if(bt[oe+Ve].match(/[Uu]/)!==null)Ve++;else if(bt[oe+Ve].match(Re)===null)Ve++;else{Zt=bt[oe+Ve];break}Zt.match(/[Mm]/)?Pt=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Zt="",Ve=1;bt[oe+Ve];)if(bt[oe+Ve].match(/[Ff]/)!==null)Ve++;else if(bt[oe+Ve].match(Re)===null)Ve++;else{Zt=bt[oe+Ve];break}Zt.match(/[Mm]/)?Nt=!0:a.mc.isShadowed=!1}if(gt=a.os,Bm=a,y)for(y=gt.figures.iterator;y.next();)y.value.isFilled=!0;return gt},pn.Ha=function(a,y){for(var x=a.length,b=Ee.alloc(),tt=0;tt<x;tt++){var et=a[tt];b.x=et[0],b.y=et[1],y.Ga(b),et[0]=b.x,et[1]=b.y,b.x=et[2],b.y=et[3],y.Ga(b),et[2]=b.x,et[3]=b.y,b.x=et[4],b.y=et[5],y.Ga(b),et[4]=b.x,et[5]=b.y,b.x=et[6],b.y=et[7],y.Ga(b),et[6]=b.x,et[7]=b.y}Ee.free(b)},pn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===pn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},pn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===pn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var tt=b.segments;b.sr=tt.Ja,b=tt.s,tt=b.length;for(var et=0;et<tt;et++){var nt=b[et];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),Ng(this,a,!1),xr(a,0,0,0,0),a.freeze()},pn.prototype.ix=function(){var a=new $e;return Ng(this,a,!0),a};function Ng(a,y,x){switch(a.type){case pn.j:case pn.u:case pn.F:x?y.h(a.od,a.pd,0,0):xr(y,a.od,a.pd,0,0),xr(y,a.Dc,a.Ec,0,0);break;case pn.o:var b=a.figures;a=b.s,b=b.length;for(var tt=0;tt<b;tt++){var et=a[tt];x&&tt===0?y.h(et.startX,et.startY,0,0):xr(y,et.startX,et.startY,0,0);for(var nt=et.segments.s,ht=nt.length,gt=et.startX,bt=et.startY,Pt=0;Pt<ht;Pt++){var Nt=nt[Pt];switch(Nt.type){case Gi:case eo:gt=Nt.endX,bt=Nt.endY,xr(y,gt,bt,0,0);break;case Mo:Ge.Dl(gt,bt,Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY,.5,y),gt=Nt.endX,bt=Nt.endY;break;case Qs:Ge.iv(gt,bt,Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY,.5,y),gt=Nt.endX,bt=Nt.endY;break;case Dr:case ua:var zt=Nt.type===Dr?Bs(Nt,et):Aa(Nt,et,gt,bt),Vt=zt.length;if(Vt===0){gt=Nt.type===Dr?Nt.centerX:Nt.endX,bt=Nt.type===Dr?Nt.centerY:Nt.endY,xr(y,gt,bt,0,0);break}Nt=null;for(var Zt=0;Zt<Vt;Zt++)Nt=zt[Zt],Ge.Dl(Nt[0],Nt[1],Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.5,y);Nt!==null&&(gt=Nt[6],bt=Nt[7]);break;default:We("Unknown Segment type: "+Nt.type)}}}break;default:We("Unknown Geometry type: "+a.type)}}pn.prototype.normalize=function(){this._isFrozen&&Nn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ee(-a.x,-a.y)},pn.prototype.offset=function(a,y){return this._isFrozen&&Nn(this),this.transform(1,0,0,1,a,y),this},pn.prototype.scale=function(a,y){return this._isFrozen&&Nn(this),this.transform(a,0,0,y,0,0),this},pn.prototype.rotate=function(a,y,x){this._isFrozen&&Nn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Xn.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Xn.free(b),this},ee=pn.prototype,ee.transform=function(a,y,x,b,tt,et){switch(this.type){case pn.j:case pn.u:case pn.F:var nt=this.od,ht=this.pd;this.od=nt*a+ht*x+tt,this.pd=nt*y+ht*b+et,nt=this.Dc,ht=this.Ec,this.Dc=nt*a+ht*x+tt,this.Ec=nt*y+ht*b+et;break;case pn.o:for(var gt=this.figures.s,bt=gt.length,Pt=0;Pt<bt;Pt++){var Nt=gt[Pt];nt=Nt.startX,ht=Nt.startY,Nt.startX=nt*a+ht*x+tt,Nt.startY=nt*y+ht*b+et,Nt=Nt.segments.s;for(var zt=Nt.length,Vt=0;Vt<zt;Vt++){var Zt=Nt[Vt];switch(Zt.type){case Gi:case eo:nt=Zt.endX,ht=Zt.endY,Zt.endX=nt*a+ht*x+tt,Zt.endY=nt*y+ht*b+et;break;case Mo:nt=Zt.point1X,ht=Zt.point1Y,Zt.point1X=nt*a+ht*x+tt,Zt.point1Y=nt*y+ht*b+et,nt=Zt.point2X,ht=Zt.point2Y,Zt.point2X=nt*a+ht*x+tt,Zt.point2Y=nt*y+ht*b+et,nt=Zt.endX,ht=Zt.endY,Zt.endX=nt*a+ht*x+tt,Zt.endY=nt*y+ht*b+et;break;case Qs:nt=Zt.point1X,ht=Zt.point1Y,Zt.point1X=nt*a+ht*x+tt,Zt.point1Y=nt*y+ht*b+et,nt=Zt.endX,ht=Zt.endY,Zt.endX=nt*a+ht*x+tt,Zt.endY=nt*y+ht*b+et;break;case Dr:nt=Zt.centerX,ht=Zt.centerY,Zt.centerX=nt*a+ht*x+tt,Zt.centerY=nt*y+ht*b+et,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.startAngle+=nt),0>a&&(Zt.startAngle=180-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),0>b&&(Zt.startAngle=-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY!==void 0&&(Zt.radiusY*=Math.sqrt(y*y+b*b));break;case ua:if(nt=Zt.endX,ht=Zt.endY,Zt.endX=nt*a+ht*x+tt,Zt.endY=nt*y+ht*b+et,Zt.radiusX===0||Zt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.xAxisRotation+=nt),0>a&&(Zt.xAxisRotation=180-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),0>b&&(Zt.xAxisRotation=-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY*=Math.sqrt(y*y+b*b);break;default:We("Unknown Segment type: "+Zt.type)}}}}return this._isInvalidBounds=!0,this},ee.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,tt=this.Dc,et=this.Ec;switch(this.type){case pn.j:return Ge.Yb(x,b,tt,et,y,a.x,a.y);case pn.u:var nt=$e.allocAt(Math.min(x,tt)-y,Math.min(b,et)-y,Math.abs(tt-x)+2*y,Math.abs(et-b)+2*y);return a=nt.ca(a),$e.free(nt),a;case pn.F:nt=Math.min(x,tt)-y;var ht=Math.min(b,et)-y;return x=(Math.abs(tt-x)+2*y)/2,y=(Math.abs(et-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),ht=a.y-(ht+y),1>=nt*nt/(x*x)+ht*ht/(y*y));case pn.o:return eu(this,a,y,!0,!1);default:return!1}};function eu(a,y,x,b,tt){var et=y.x;y=y.y;for(var nt=a.bounds.x-20,ht=0,gt,bt,Pt,Nt,zt=a.figures.s,Vt=zt.length,Zt=0;Zt<Vt;Zt++){var oe=zt[Zt],Pe=!oe.isEvenOdd;if(oe.isFilled){if(b&&oe.ca(et,y,x))return!0;var de=oe.segments;gt=oe.startX,bt=oe.startY;for(var Le=gt,Oe=bt,De=de.s,Re=0;Re<=de.length;Re++){var Ve=void 0;if(Re!==de.length){Ve=De[Re];var Sn=Ve.type;a=Ve.endX,Nt=Ve.endY}else Sn=Gi,a=Le,Nt=Oe;switch(Sn){case eo:if(Le=nu(et,y,nt,y,gt,bt,Le,Oe),isNaN(Le))return!0;ht+=Le,Le=a,Oe=Nt;break;case Gi:if(gt=nu(et,y,nt,y,gt,bt,a,Nt),isNaN(gt))return!0;ht+=gt;break;case Mo:Pt=Ge.Fo(gt,bt,Ve.point1X,Ve.point1Y,Ve.point2X,Ve.point2Y,a,Nt,nt,y,et,y,.5),ht+=Pt;break;case Qs:Pt=Ge.Fo(gt,bt,(gt+2*Ve.point1X)/3,(bt+2*Ve.point1Y)/3,(2*Ve.point1X+a)/3,(2*Ve.point1Y+Nt)/3,a,Nt,nt,y,et,y,.5),ht+=Pt;break;case Dr:case ua:Sn=Ve.type===Dr?Bs(Ve,oe):Aa(Ve,oe,gt,bt);var Mn=Sn.length;if(Mn===0){if(gt=nu(et,y,nt,y,gt,bt,Ve.type===Dr?Ve.centerX:Ve.endX,Ve.type===Dr?Ve.centerY:Ve.endY),isNaN(gt))return!0;ht+=gt;break}Ve=null;for(var Pn=0;Pn<Mn;Pn++){if(Ve=Sn[Pn],Pn===0){if(Pt=nu(et,y,nt,y,gt,bt,Ve[0],Ve[1]),isNaN(Pt))return!0;ht+=Pt}Pt=Ge.Fo(Ve[0],Ve[1],Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],nt,y,et,y,.5),ht+=Pt}Ve!==null&&(a=Ve[6],Nt=Ve[7]);break;default:We("Unknown Segment type: "+Ve.type)}gt=a,bt=Nt}if(Pe){if(ht!==0)return!0}else if(ht%2!==0)return!0;ht=0}else if(oe.ca(et,y,tt?x:x+2))return!0}return!1}function nu(a,y,x,b,tt,et,nt,ht){if(Ge.Yb(tt,et,nt,ht,.05,a,y))return NaN;var gt=(a-x)*(et-ht);if(gt===0)return 0;var bt=((a*b-y*x)*(tt-nt)-(a-x)*(tt*ht-et*nt))/gt;if(y=(a*b-y*x)*(et-ht)/gt,bt>=a)return 0;if((tt>nt?tt-nt:nt-tt)<(et>ht?et-ht:ht-et)){if(et<ht){if(y<et||y>ht)return 0}else if(y<ht||y>et)return 0}else if(tt<nt){if(bt<tt||bt>nt)return 0}else if(bt<nt||bt>tt)return 0;return 0<gt?1:-1}function ph(a,y,x,b){a=a.figures.s;for(var tt=a.length,et=0;et<tt;et++)if(a[et].ca(y,x,b))return!0;return!1}ee.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ee),this.type===pn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,tt=x.length,et=this.flattenedTotalLength*a,nt=0,ht=0;ht<tt;ht++){var gt=b[ht],bt=gt.length;for(a=0;a<bt;a++){var Pt=gt[a];if(nt+Pt>=et)return b=et-nt,b=Pt===0?0:b/Pt,x=x[ht],ht=x[2*a],tt=x[2*a+1],y.h(ht+(x[2*a+2]-ht)*b,tt+(x[2*a+3]-tt)*b),y;nt+=Pt}}return y},ee.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===pn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,tt=this.flattenedTotalLength*a,et=0,nt=0;nt<b;nt++){var ht=x[nt],gt=ht.length;for(a=0;a<gt;a++){var bt=ht[a];if(et+bt>=tt)return tt=y[nt],y=tt[2*a],x=tt[2*a+1],b=tt[2*a+2],a=tt[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;et+=bt}}return NaN},ee.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===pn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,tt=x.length,et=this.flattenedTotalLength*a,nt=0,ht=0;ht<tt;ht++){var gt=b[ht],bt=gt.length;for(a=0;a<bt;a++){var Pt=gt[a];if(nt+Pt>=et)return b=et-nt,b=Pt===0?0:b/Pt,Pt=x[ht],x=Pt[2*a],ht=Pt[2*a+1],tt=Pt[2*a+2],a=Pt[2*a+3],y[0]=x+(tt-x)*b,y[1]=ht+(a-ht)*b,y[2]=1>Math.abs(tt-x)&&1>Math.abs(a-ht)?0:1>Math.abs(tt-x)?0<=a-ht?90:270:1>Math.abs(a-ht)?0<=tt-x?0:180:180*Math.atan2(a-ht,tt-x)/Math.PI,y;nt+=Pt}}return y},ee.xx=function(a){if(this.type===pn.j){var y=this.startX,x=this.startY,b=this.endX,tt=this.endY;if(y!==b||x!==tt){var et=a.x;if(a=a.y,y===b){if(x<tt){var nt=x;b=tt}else nt=tt,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===tt)return y<b?nt=y:(nt=b,b=y),et<=nt?nt===y?0:1:et>=b?b===y?0:1:Math.abs(et-y)/(b-nt);nt=(b-y)*(b-y)+(tt-x)*(tt-x);var ht=Ee.alloc();return Ge.qh(y,x,b,tt,et,a,ht),a=ht.x,et=ht.y,Ee.free(ht),Math.sqrt(((a-y)*(a-y)+(et-x)*(et-x))/nt)}}else if(this.type===pn.u){nt=this.startX,ht=this.startY;var gt=this.endX;if(tt=this.endY,nt!==gt||ht!==tt){y=gt-nt,x=tt-ht,et=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),gt),a=Math.min(Math.max(a,ht),tt),nt=Math.abs(b-nt),gt=Math.abs(b-gt),ht=Math.abs(a-ht),tt=Math.abs(a-tt);var bt=Math.min(nt,gt,ht,tt);if(bt===ht)return b/et;if(bt===gt)return(y+a)/et;if(bt===tt)return(2*y+x-b)/et;if(bt===nt)return(2*y+2*x-a)/et}}else{y=this.flattenedSegments,x=this.flattenedLengths,et=this.flattenedTotalLength,b=Ee.alloc(),tt=1/0,ht=nt=0,gt=y.length;for(var Pt=bt=0,Nt=0;Nt<gt;Nt++)for(var zt=y[Nt],Vt=x[Nt],Zt=zt.length,oe=0;oe<Zt;oe+=2){var Pe=zt[oe],de=zt[oe+1];if(oe!==0){Ge.qh(bt,Pt,Pe,de,a.x,a.y,b);var Le=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Le<tt&&(tt=Le,nt=ht,nt+=Math.sqrt((b.x-bt)*(b.x-bt)+(b.y-Pt)*(b.y-Pt))),ht+=Vt[(oe-2)/2]}bt=Pe,Pt=de}return Ee.free(b),a=nt/et,0>a?0:1<a?1:a}return 0};function zf(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],tt=[];if(a.type===pn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),tt.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(tt);else if(a.type===pn.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),tt.push(Math.abs(a.startX-a.endX)),tt.push(Math.abs(a.startY-a.endY)),tt.push(Math.abs(a.startX-a.endX)),tt.push(Math.abs(a.startY-a.endY)),x.push(tt);else if(a.type===pn.F){var et=new to;et.startX=a.endX,et.startY=(a.startY+a.endY)/2;var nt=new gi(Dr);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,et.add(nt),a=Bs(nt,et),tt=a.length,tt===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=et.startX,et=et.startY;for(var ht=0;ht<tt;ht++){var gt=a[ht];Ge.Qe(nt,et,gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.5,b),nt=gt[6],et=gt[7]}}y.push(b),x.push(Hc(b))}else for(a=a.figures.iterator;a.next();){tt=a.value,b=[],b.push(tt.startX),b.push(tt.startY),nt=tt.startX,et=tt.startY,ht=nt,gt=et;for(var bt=tt.segments.s,Pt=bt.length,Nt=0;Nt<Pt;Nt++){var zt=bt[Nt];switch(zt.type){case eo:4<=b.length&&(y.push(b),x.push(Hc(b))),b=[],b.push(zt.endX),b.push(zt.endY),nt=zt.endX,et=zt.endY,ht=nt,gt=et;break;case Gi:b.push(zt.endX),b.push(zt.endY),nt=zt.endX,et=zt.endY;break;case Mo:Ge.Qe(nt,et,zt.point1X,zt.point1Y,zt.point2X,zt.point2Y,zt.endX,zt.endY,.5,b),nt=zt.endX,et=zt.endY;break;case Qs:Ge.ep(nt,et,zt.point1X,zt.point1Y,zt.endX,zt.endY,.5,b),nt=zt.endX,et=zt.endY;break;case Dr:var Vt=Bs(zt,tt),Zt=Vt.length;if(Zt===0){b.push(zt.centerX),b.push(zt.centerY),nt=zt.centerX,et=zt.centerY;break}for(var oe=0;oe<Zt;oe++){var Pe=Vt[oe];Ge.Qe(nt,et,Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],.5,b),nt=Pe[6],et=Pe[7]}break;case ua:if(Vt=Aa(zt,tt,nt,et),Zt=Vt.length,oe=zt.endX,Pe=zt.endY,Zt===0){b.push(oe),b.push(Pe),nt=oe,et=Pe;break}for(oe=0;oe<Zt;oe++)Pe=Vt[oe],Ge.Qe(nt,et,Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],.5,b),nt=Pe[6],et=Pe[7];break;default:We("Segment not of valid type: "+zt.type)}zt.isClosed&&(b.push(ht),b.push(gt))}4<=b.length&&(y.push(b),x.push(Hc(b)))}}}function Hc(a){for(var y=[],x=0,b=0,tt=a.length,et=0;et<tt;et+=2){var nt=a[et],ht=a[et+1];et!==0&&y.push(Math.sqrt(aa(x,b,nt,ht))),x=nt,b=ht}return y}ee.add=function(a){return this.ee.add(a),this},ee.pm=function(a,y,x,b,tt,et,nt,ht){return this._isFrozen&&Nn(this),this.fg=new jn(a,y,tt,et).freeze(),this.gg=new jn(x,b,nt,ht).freeze(),this},qe.Object.defineProperties(pn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return zf(this),this.tk}},flattenedLengths:{get:function(){return zf(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===pn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===pn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var tt=y[b],et=tt.length,nt=0;nt<et;nt++)a+=tt[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Nn(this,a),this.na=a,a===pn.o?this.ee=new vn:(pn.V===null&&(pn.V=new vn().freeze()),this.ee=pn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Nn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Nn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Nn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Nn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Nn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Nn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Nn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Nn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),pn.prototype.setSpots=pn.prototype.pm,pn.prototype.add=pn.prototype.add,pn.prototype.getFractionForPoint=pn.prototype.xx,pn.prototype.getPointAndAngleAlongPath=pn.prototype.Qu,pn.prototype.getAngleAlongPath=pn.prototype.wx,pn.prototype.getPointAlongPath=pn.prototype.Pu,pn.prototype.containsPoint=pn.prototype.ca,pn.prototype.transform=pn.prototype.transform,pn.prototype.rotate=pn.prototype.rotate,pn.prototype.scale=pn.prototype.scale,pn.prototype.offset=pn.prototype.offset,pn.prototype.normalize=pn.prototype.normalize,pn.prototype.computeBoundsWithoutOrigin=pn.prototype.ix,pn.prototype.equalsApprox=pn.prototype.Xa,pn.className="Geometry",pn.j=new sn(pn,"Line",0),pn.u=new sn(pn,"Rectangle",1),pn.F=new sn(pn,"Ellipse",2),pn.o=new sn(pn,"Path",3),pn.V=null,pn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",pn.className="Geometry",pn.stringify=pn.ia,pn.fillPath=pn.nb,pn.parse=pn.parse,pn.Line=pn.j,pn.Rectangle=pn.u,pn.Ellipse=pn.F,pn.Path=pn.o;function to(a,y,x,b,tt){qi(this),x===void 0&&(x=!0),b===void 0&&(b=!0),tt===void 0&&(tt=!1),this.l=2|(x?4:0)|(b?8:0)|(tt?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new vn,this.sr=this.pl.Ja,this.fw=null}to.prototype.copy=function(){var a=new to;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,tt=0;tt<x;tt++){var et=y[tt].copy();b.add(et)}return a.sr=this.sr,a.fw=this.fw,a},ee=to.prototype,ee.Xa=function(a){if(!(a instanceof to&&Ge.B(this.startX,a.startX)&&Ge.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},ee.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,tt=0;tt<b;tt++)y+=" "+x[tt].toString(a);return y},ee.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},ee.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},ee.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},ee.add=function(a){return this.pl.add(a),this},ee.ca=function(a,y,x){for(var b=this.startX,tt=this.startY,et=b,nt=tt,ht=this.segments.s,gt=ht.length,bt=0;bt<gt;bt++){var Pt=ht[bt];switch(Pt.type){case eo:et=Pt.endX,nt=Pt.endY,b=Pt.endX,tt=Pt.endY;break;case Gi:if(Ge.Yb(b,tt,Pt.endX,Pt.endY,x,a,y))return!0;b=Pt.endX,tt=Pt.endY;break;case Mo:if(Ge.cs(b,tt,Pt.point1X,Pt.point1Y,Pt.point2X,Pt.point2Y,Pt.endX,Pt.endY,.5,a,y,x))return!0;b=Pt.endX,tt=Pt.endY;break;case Qs:if(Ge.jv(b,tt,Pt.point1X,Pt.point1Y,Pt.endX,Pt.endY,.5,a,y,x))return!0;b=Pt.endX,tt=Pt.endY;break;case Dr:case ua:var Nt=Pt.type===Dr?Bs(Pt,this):Aa(Pt,this,b,tt),zt=Nt.length,Vt=Pt.type===Dr?Pt.centerX:Pt.endX,Zt=Pt.type===Dr?Pt.centerY:Pt.endY;if(zt===0){if(Ge.Yb(b,tt,Vt,Zt,x,a,y))return!0;b=Vt,tt=Zt;break}for(Vt=null,Zt=0;Zt<zt;Zt++)if(Vt=Nt[Zt],Zt===0&&Ge.Yb(b,tt,Vt[0],Vt[1],x,a,y)||Ge.cs(Vt[0],Vt[1],Vt[2],Vt[3],Vt[4],Vt[5],Vt[6],Vt[7],.5,a,y,x))return!0;Vt!==null&&(b=Vt[6],tt=Vt[7]);break;default:We("Unknown Segment type: "+Pt.type)}if(Pt.isClosed&&(b!==et||tt!==nt)&&Ge.Yb(b,tt,et,nt,x,a,y))return!0}return!1},qe.Object.defineProperties(to.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&&Nn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Nn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Nn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Nn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),to.prototype.add=to.prototype.add,to.prototype.equalsApprox=to.prototype.Xa,to.className="PathFigure";function gi(a,y,x,b,tt,et,nt,ht){qi(this),a===void 0&&(a=Gi),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),tt===void 0&&(tt=0),et===void 0&&(et=0),nt===void 0&&(nt=0),a===ua?(a=et%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(tt,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ht&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=tt,a===Dr&&(et=Math.max(et,0)),this.Wh=et,typeof nt=="number"?(a===Dr&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}gi.prototype.copy=function(){var a=new gi;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},ee=gi.prototype,ee.Xa=function(a){if(!(a instanceof gi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case eo:case Gi:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY);case Mo:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.point1X,a.point1X)&&Ge.B(this.point1Y,a.point1Y)&&Ge.B(this.point2X,a.point2X)&&Ge.B(this.point2Y,a.point2Y);case Qs:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.point1X,a.point1X)&&Ge.B(this.point1Y,a.point1Y);case Dr:return Ge.B(this.startAngle,a.startAngle)&&Ge.B(this.sweepAngle,a.sweepAngle)&&Ge.B(this.centerX,a.centerX)&&Ge.B(this.centerY,a.centerY)&&Ge.B(this.radiusX,a.radiusX)&&Ge.B(this.radiusY,a.radiusY);case ua:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ge.B(this.xAxisRotation,a.xAxisRotation)&&Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.radiusX,a.radiusX)&&Ge.B(this.radiusY,a.radiusY);default:return!1}},ee.qb=function(a){a.classType===gi&&(this.type=a)},ee.toString=function(a){switch(a===void 0&&(a=-1),this.type){case eo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Gi:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Mo: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 Qs: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 Dr: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 ua: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":"")},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return this._isFrozen=!1,this},ee.close=function(){return this.isClosed=!0,this};function Bs(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 tt=a.Vh,et=Ge.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Xn.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),pn.Ha(et,nt),Xn.free(nt)}for(x=et.length,b=0;b<x;b++)nt=et[b],nt[0]+=y,nt[1]+=tt,nt[2]+=y,nt[3]+=tt,nt[4]+=y,nt[5]+=tt,nt[6]+=y,nt[7]+=tt;return a.ae=et,a.ae}function Aa(a,y,x,b){function tt(oe,Pe,de,Le){return(oe*Le<Pe*de?-1:1)*Math.acos((oe*de+Pe*Le)/(Math.sqrt(oe*oe+Pe*Pe)*Math.sqrt(de*de+Le*Le)))}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 et=a.Pg;y===0&&(y=1e-4),et===0&&(et=1e-4);var nt=Math.PI/180*a.Ne,ht=a.isLargeArc,gt=a.isClockwiseArc,bt=a.Dc,Pt=a.Ec,Nt=Math.cos(nt),zt=Math.sin(nt),Vt=Nt*(x-bt)/2+zt*(b-Pt)/2;nt=-zt*(x-bt)/2+Nt*(b-Pt)/2;var Zt=Vt*Vt/(y*y)+nt*nt/(et*et);return 1<Zt&&(y*=Math.sqrt(Zt),et*=Math.sqrt(Zt)),Zt=(ht===gt?-1:1)*Math.sqrt((y*y*et*et-y*y*nt*nt-et*et*Vt*Vt)/(y*y*nt*nt+et*et*Vt*Vt)),isNaN(Zt)&&(Zt=0),ht=Zt*y*nt/et,Zt=Zt*-et*Vt/y,isNaN(ht)&&(ht=0),isNaN(Zt)&&(Zt=0),x=(x+bt)/2+Nt*ht-zt*Zt,b=(b+Pt)/2+zt*ht+Nt*Zt,Pt=tt(1,0,(Vt-ht)/y,(nt-Zt)/et),Nt=(Vt-ht)/y,bt=(nt-Zt)/et,Vt=(-Vt-ht)/y,ht=(-nt-Zt)/et,nt=tt(Nt,bt,Vt,ht),Vt=(Nt*Vt+bt*ht)/(Math.sqrt(Nt*Nt+bt*bt)*Math.sqrt(Vt*Vt+ht*ht)),-1>=Vt?nt=Math.PI:1<=Vt&&(nt=0),!gt&&0<nt&&(nt-=2*Math.PI),gt&&0>nt&&(nt+=2*Math.PI),gt=y>et?1:y/et,Vt=y>et?et/y:1,y=Ge.jx(0,0,y>et?y:et,Pt,Pt+nt,!0),et=Xn.alloc(),et.reset(),et.translate(x,b),et.rotate(a.Ne,0,0),et.scale(gt,Vt),pn.Ha(y,et),Xn.free(et),a.ae=y,a.ae}qe.Object.defineProperties(gi.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&&Nn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Nn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ti(a,">= zero",gi,"radiusX"),this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ti(a,">= zero",gi,"radiusY"),this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(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&&Nn(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&&Nn(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&&Nn(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&&Nn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),gi.prototype.equalsApprox=gi.prototype.Xa;var eo=new sn(gi,"Move",0),Gi=new sn(gi,"Line",1),Mo=new sn(gi,"Bezier",2),Qs=new sn(gi,"QuadraticBezier",3),Dr=new sn(gi,"Arc",4),ua=new sn(gi,"SvgArc",4);gi.className="PathSegment",gi.Move=eo,gi.Line=Gi,gi.Bezier=Mo,gi.QuadraticBezier=Qs,gi.Arc=Dr,gi.SvgArc=ua;function Uo(){this.H=null,this.xu=new Ee(0,0).freeze(),this.mt=new Ee(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}Uo.prototype.copy=function(){var a=new Uo;return this.clone(a)},Uo.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},Uo.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},Uo.prototype.So=function(a,y){var x=this.diagram;return x===null||vp(x,a,y),y},Uo.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(vp(x,a,y),y.assign(x.Ps(y))),y},qe.Object.defineProperties(Uo.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}}}),Uo.prototype.getMultiTouchDocumentPoint=Uo.prototype.Bz,Uo.prototype.getMultiTouchViewPoint=Uo.prototype.So,Uo.className="InputEvent";function Au(){this.H=null,this.xa="",this.ar=this.Lr=null}Au.prototype.copy=function(){var a=new Au;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Au.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},qe.Object.defineProperties(Au.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}}}),Au.className="DiagramEvent";function nr(){this.Fm=tr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}nr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},nr.prototype.copy=function(){var a=new nr;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=on(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=on(y)&&typeof y.J=="function"?y.J():y,a},nr.prototype.qb=function(a){a.classType===nr&&(this.change=a)},nr.prototype.toString=function(){var a="";return a=this.change===Rs?a+"* ":this.change===tr?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===Rs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ur(this.object)),this.oldValue!==null&&(a+=" old: "+ur(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ur(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},nr.prototype.I=function(a){return a?this.oldValue:this.newValue},nr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},nr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},nr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},nr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},nr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},qe.Object.defineProperties(nr.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===Rs&&(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}}}),nr.prototype.redo=nr.prototype.redo,nr.prototype.canRedo=nr.prototype.canRedo,nr.prototype.undo=nr.prototype.undo,nr.prototype.canUndo=nr.prototype.canUndo,nr.prototype.getParam=nr.prototype.Dz,nr.prototype.getValue=nr.prototype.I,nr.prototype.clear=nr.prototype.clear;var Rs=new sn(nr,"Transaction",-1),tr=new sn(nr,"Property",0),Ar=new sn(nr,"Insert",1),Hr=new sn(nr,"Remove",2);nr.className="ChangedEvent",nr.Transaction=Rs,nr.Property=tr,nr.Insert=Ar,nr.Remove=Hr;function so(){this.o=new vn().freeze(),this.xa="",this.j=!1}so.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},so.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()},so.prototype.canUndo=function(){return this.isComplete},so.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()}},so.prototype.canRedo=function(){return this.isComplete},so.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()}},so.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Rn,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===tr&&b.object){var tt=y.get(b.object);tt||(tt=new Rn,y.set(b.object,tt));var et=tt.get(b.propertyName);et===null?tt.set(b.propertyName,-1):(0<et&&a.cd(et,null),tt.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()}},qe.Object.defineProperties(so.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}}}),so.prototype.optimize=so.prototype.ak,so.prototype.redo=so.prototype.redo,so.prototype.canRedo=so.prototype.canRedo,so.prototype.undo=so.prototype.undo,so.prototype.canUndo=so.prototype.canUndo,so.prototype.clear=so.prototype.clear,so.className="Transaction";function or(){this.Pt=new gn,this.Jd=!1,this.u=new vn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new vn().freeze(),this.hl=new vn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}or.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},or.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},or.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},ee=or.prototype,ee.Xw=function(a){this.Pt.add(a)},ee.Rx=function(a){this.Pt.remove(a)},ee.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},ee.eb=function(a){return a===void 0&&(a=""),gh(this,!0,a)},ee.Kf=function(){return gh(this,!1,"")};function gh(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&pr("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,tt=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,tt));var et=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&&(et=a.hl.M(nt-1),a.hl.mb(nt-1))}if(b){if(y)a.rq=!1,tt===null&&x!==""&&(tt=a.currentTransaction),a.isEnabled&&tt!==null&&(tt.isComplete||(tt.isComplete=!0,tt.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(et=y.M(0),et!==null&&et.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===tt||(y.add(tt),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,tt);else{a.Fe=!0;try{a.isEnabled&&tt!==null&&(tt.isComplete=!0,tt.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,tt),a.Fe=!1}tt!==null&&tt.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&tt!==null){for(a=et,x=tt.changes,tt=x.count-1;tt>=a;tt--)y=x.M(tt),y!==null&&y.undo(),x.ka(),x.mb(tt);x.freeze()}return!1}ee.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()}},or.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},or.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){pr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},or.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},or.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){pr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},or.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new nr;for(b.change=Rs,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},or.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new so);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||pr("Change not within a transaction: "+x.toString()))}},or.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},qe.Object.defineProperties(or.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}}}),or.prototype.handleChanged=or.prototype.Tu,or.prototype.redo=or.prototype.redo,or.prototype.undo=or.prototype.undo,or.prototype.canUndo=or.prototype.canUndo,or.prototype.discardHistoryAfterIndex=or.prototype.lx,or.prototype.rollbackTransaction=or.prototype.Kf,or.prototype.commitTransaction=or.prototype.eb,or.prototype.startTransaction=or.prototype.Ea,or.prototype.removeModel=or.prototype.Rx,or.prototype.addModel=or.prototype.Xw,or.prototype.clear=or.prototype.clear,or.className="UndoManager";function fi(){qi(this),this.H=Il,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Uo,this.Zr=-1}fi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Zn(this.constructor)},fi.prototype.updateAdornments=function(){},fi.prototype.canStart=function(){return this.isEnabled},fi.prototype.doStart=function(){},fi.prototype.doActivate=function(){this.isActive=!0},fi.prototype.doDeactivate=function(){this.isActive=!1},fi.prototype.doStop=function(){},fi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},fi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},fi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},fi.prototype.doMouseMove=function(){},fi.prototype.doMouseUp=function(){this.stopTool()},fi.prototype.doMouseWheel=function(){},fi.prototype.canStartMultiTouch=function(){return!0},fi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ee.allocAt(NaN,NaN)),b=y.So(1,Ee.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var tt=b.x-x.x,et=b.y-x.y;a.Jw=Math.sqrt(tt*tt+et*et),y.bubbles=!1}Ee.free(x),Ee.free(b)},fi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ee.allocAt(NaN,NaN)),b=y.So(1,Ee.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var tt=b.x-x.x,et=b.y-x.y;et=Math.sqrt(tt*tt+et*et)/a.Jw,tt=new Ee((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),et*=a.Bw;var nt=a.commandHandler;if(et!==a.scale&&nt.canResetZoom(et)){var ht=a.zoomPoint;a.zoomPoint=tt,nt.resetZoom(et),a.zoomPoint=ht}y.bubbles=!1}Ee.free(x),Ee.free(b)},fi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},fi.prototype.doKeyUp=function(){},fi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},fi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},fi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(cr?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||(cr?y.meta:y.control)||y.shift||a.clearSelection()}},fi.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(tt){return!tt.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Dg(a,b,x),b.handled};function Dg(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 tt="ObjectSingleClicked";if(a!==null){switch(b){case 1:tt="ObjectSingleClicked";break;case 2:tt="ObjectDoubleClicked";break;case 3:tt="ObjectContextClicked"}b!==0&&x.R(tt,a)}else{switch(b){case 1:tt="BackgroundSingleClicked";break;case 2:tt="BackgroundDoubleClicked";break;case 3:tt="BackgroundContextClicked"}b!==0&&x.R(tt)}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)}}}fi.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 tt=!1;if(b!==a.Ck){var et=a.Ck,nt=et;for(a.Ck=b,this.doCurrentObjectChanged(et,b),y.handled=!1;et!==null;){var ht=et.mouseLeave;if(ht!==null&&(b===et||b!==null&&b.rg(et)||(ht(y,et,b),tt=!0,y.handled)))break;et=et.panel}for(et=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(et===b||et!==null&&et.rg(b)||(nt(y,b,et),tt=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(et=b,nt="";et!==null&&(nt=et.cursor,nt==="");)et=et.panel;for(a.currentCursor=nt,y.handled=!1,et=b;et!==null&&(b=et.mouseOver,!(b!==null&&(b(y,et),tt=!0,y.handled)));)et=et.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),tt=!0);tt&&a.$b(),a.skipsUndoManager=x}},fi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},fi.prototype.doCurrentObjectChanged=function(){},fi.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,tt=a.toolManager.mouseWheelBehavior;if(b!==null&&(tt===Wc&&!y.shift||tt===oc&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(tt=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=tt),y.bubbles=!1;else if(tt===Wc&&y.shift||tt===oc&&!y.control){b=a.position.copy();var et=y.event;tt=et.deltaMode;var nt=et.deltaX;et=et.deltaY;var ht="pixel";if(nt===0&&et===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ht,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ht,0<x?"left":"right",Math.abs(x)));else{switch(tt){case 0:ht="pixel";break;case 1:ht="line";break;case 2:ht="page"}nt!==0&&a.allowHorizontalScroll&&(nt*=a.scrollHorizontalLineChange/16,a.scroll(ht,0<nt?"right":"left",Math.abs(nt))),et!==0&&a.allowVerticalScroll&&(et*=a.scrollVerticalLineChange/16,a.scroll(ht,0<et?"down":"up",Math.abs(et)))}this.doWheelChange(a,b,y)}}},fi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},fi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=dr(function(){x.doWaitAfter(b)},a)},fi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&bn.clearTimeout(this.Zr),this.Zr=-1},fi.prototype.doWaitAfter=function(){},fi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof di);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},fi.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,tt=b.width;return b=b.height,x.firstInput.isTouchEvent&&(tt+=6,b+=6),Math.abs(y.x-a.x)>tt||Math.abs(y.y-a.y)>b},qe.Object.defineProperties(fi.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}}}),fi.prototype.startTransaction=fi.prototype.Ea,fi.className="Tool";function $i(){fi.call(this),this.name="ToolManager",this.hb=new vn,this.ob=new vn,this.Hb=new vn,this.F=this.V=850,this.o=new xn(2,2).ja(),this.Ha=5e3,this.ia=oc,this.u=Gf,this.Mp=this.j=null,this.zj=-1}en($i,fi),$i.prototype.initializeStandardTools=function(){},$i.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof di&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},$i.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===iu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===mh){y.bubbles=!0;return}if(this.gestureBehavior===iu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var tt=this.mouseDownTools.M(b);if(tt.diagram=this.diagram,tt.canStart()){a.doFocus(),a.currentTool=tt,a.currentTool===tt&&(tt.isActive||tt.doActivate(),tt.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===oc?this.mouseWheelBehavior=Wc:this.mouseWheelBehavior===Wc&&(this.mouseWheelBehavior=oc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},$i.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===mh){y.bubbles=!0;return}if(this.gestureBehavior===iu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var tt=this.mouseMoveTools.M(b);if(tt.diagram=this.diagram,tt.canStart()){a.doFocus(),a.currentTool=tt,a.currentTool===tt&&(tt.isActive||tt.doActivate(),tt.doMouseMove());return}}Ig(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Ig(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}$i.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof di&&(y===a||y.rg(a))||this.hideToolTip()},$i.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()))},$i.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)},$i.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 di)||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()},$i.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof di){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 Sl&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(bn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var tt=this;this.zj=dr(function(){tt.hideToolTip()},a)}},$i.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,tt=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>tt.right&&(x.x-=b.width+5/y.scale),x.x<tt.x&&(x.x=tt.x),x.y=x.y+20/y.scale+b.height>tt.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<tt.y&&(x.y=tt.y),a.position=x}},$i.prototype.hideToolTip=function(){this.zj!==-1&&(bn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof di?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Sl&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},$i.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()},$i.prototype.doMouseWheel=function(){this.standardMouseWheel()},$i.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},$i.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},$i.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},$i.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var tt=this.mouseDownTools.M(b);if(tt.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),tt}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(tt=this.mouseMoveTools.M(b),tt.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),tt;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(tt=this.mouseUpTools.M(b),tt.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),tt;return null},$i.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)},qe.Object.defineProperties($i.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 di?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}}}),$i.prototype.replaceStandardTool=$i.prototype.gb;var oc=new sn($i,"WheelScroll",0),Wc=new sn($i,"WheelZoom",1),$d=new sn($i,"WheelNone",2),Gf=new sn($i,"GestureZoom",3),iu=new sn($i,"GestureCancel",4),mh=new sn($i,"GestureNone",5);$i.className="ToolManager",$i.WheelScroll=oc,$i.WheelZoom=Wc,$i.WheelNone=$d,$i.GestureZoom=Gf,$i.GestureCancel=iu,$i.GestureNone=mh;function sr(){fi.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 Ee(NaN,NaN),this.Fr=new Ee,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new gn().freeze(),this.ia=new mt,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Nl;en(sr,fi),sr.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},sr.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},sr.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,(cr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},sr.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),yo=null,this.isActive=!0,this.tl.set(a.position),Uf(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&&ys(a),rd(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,yo=this,_u=this.diagram,this.doSimulatedDragOut()))};function Uf(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof cn?(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 Js,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}sr.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},sr.prototype.Pd=function(a){return a===void 0?new uu(jo):this.isGridSnapEnabled?new uu(new Ee(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new uu(a.copy())},sr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),vh(this),Lh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Nl.count){for(var y=Nl,x=y.length,b=0;b<x;b++){var tt=y.M(b);Mu(tt),za(tt),vh(tt),tt.diagram.ug()}y.clear()}Mu(this),this.tl.h(NaN,NaN),_u!==null&&(_u.currentCursor=""),yo=_u=null,za(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),rf(a,!0)},sr.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function vh(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,ep(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function tp(){var a=yo;za(a),ku(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}sr.prototype.doCancel=function(){za(this),ku(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},sr.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},sr.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function ru(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")):ku(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 Rn,b=a.draggedParts.iterator;b.next();){var tt=b.key;if(tt.Zc()&&tt.canCopy()){var et=y.I(tt);et!==null&&(et.location=tt.location,et.Va(),x.add(et,a.Pd(et.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof cn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Uf(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Qu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function za(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 cn&&(x.value.point=new Ee(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Mu(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 yl(a,y,x){var b=a.diagram,tt=a.startPoint,et=Ee.alloc();et.assign(b.lastInput.documentPoint),a.moveParts(y,et.re(tt),x),Ee.free(et),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(ys(b),b.hk())}sr.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&kh(b,a,y,this.dragOptions,x)};function ku(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 cn&&b.suspendsRouting){var tt=x.value.point;a.draggedParts.add(b,a.Pd()),Qu(b,-tt.x,-tt.y)}y.bd()}}function Hf(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Lu(a,!1));var b=a.findDragOverObject(y),tt=x.lastInput;tt.targetObject=b,a.doUpdateCursor(b);var et=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=ep(a,tt,b),!a.isActive&&yo===null)return;var ht=b!==null?b.part:null;if(ht===null||x.handlesDragDropForTopLevelParts&&ht.isTopLevel&&!(ht instanceof Un)){var gt=x.mouseDragOver;gt!==null&&(gt(tt),nt=!0)}if(!a.isActive&&yo===null||(a.doDragOver(y,b),!a.isActive&&yo===null))return}finally{x.skipsUndoManager=et,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(tt.viewPoint)}sr.prototype.findDragOverObject=function(a){var y=this;return Fl(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof di||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},sr.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 ep(a,y,x){var b=!1,tt=a.Cg.length,et=0<tt?a.Cg[0]:null;if(x===et)return!1;y.handled=!1;for(var nt=0;nt<tt;nt++){var ht=a.Cg[nt],gt=ht.mouseDragLeave;if(gt!==null&&(gt(y,ht,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&yo===null||x===null)return b;for(y.handled=!1,tt=x;tt!==null;)a.Cg.push(tt),tt=np(tt);for(tt=a.Cg.length,x=0;x<tt&&(nt=a.Cg[x],ht=nt.mouseDragEnter,ht===null||(ht(y,nt,et),b=!0,!y.handled));x++);return b}function np(a){var y=a.panel;return y!==null?y:a instanceof _n&&!(a instanceof Un)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Fg(a,y,x){var b=a.Oe;if(b===null)return null;var tt=a.diagram.og(y,b.portGravity,function(bt){return b.findValidLinkablePort(bt,x)});a=Ee.alloc();var et=1/0,nt=null;for(tt=tt.iterator;tt.next();){var ht=tt.value;if(ht.part!==null){var gt=ht.ga(wi,a);gt=y.Bf(gt),gt<et&&(nt=ht,et=gt)}}return Ee.free(a),nt}function Lu(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var tt=a.Oe;if(tt!==null){var et=null,nt=null;x.fromNode===null&&(et=Fg(a,x.i(0),!1),et!==null&&(nt=et.part));var ht=null,gt=null;x.toNode===null&&(ht=Fg(a,x.i(x.pointsCount-1),!0),ht!==null&&(gt=ht.part)),tt.isValidLink(nt,et,gt,ht)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,et!==null&&(x.fromPortId=et.portId),x.toNode=gt,ht!==null&&(x.toPortId=ht.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Wf(tt,nt,et,gt,ht):Wf(tt,null,null,null,null)}}}}sr.prototype.doDragOver=function(){};function Tu(a,y){var x=a.diagram;a.dragsLink&&Lu(a,!0),vh(a);var b=a.findDragOverObject(y),tt=x.lastInput;if(tt.targetObject=b,b!==null){tt.handled=!1;for(var et=b;et!==null;){var nt=et.mouseDrop;if(nt!==null&&(nt(tt,et),tt.handled))break;J0(a,tt,et),et=np(et)}}else et=x.mouseDrop,et!==null&&et(tt);if(a.isActive||yo!==null){for(tt=(a.copiedParts||a.draggedParts).iterator;tt.next();)et=tt.key,et instanceof wn&&et.linksConnected.each(function(ht){ht.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||yo!==null){for(a=$e.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof wn&&q0(x,b,a);$e.free(a)}}}function J0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Un||(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(tt){return tt.part},function(tt){return tt instanceof cn},!0,function(tt){return tt instanceof cn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}sr.prototype.doDropOnto=function(){},sr.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()?(ru(this,!1),rd(a,this.copiedParts),yl(this,this.copiedParts,!1),Lh(a,this.copiedParts)):this.mayMove()?(za(this),yl(this,this.draggedParts,!0)):this.mayDragOut()?(ru(this,!1),yl(this,this.copiedParts,!1)):za(this),Hf(this,a.lastInput.documentPoint))}},sr.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?(za(this),ru(this,!0),rd(a,this.copiedParts),yl(this,this.copiedParts,!1),Lh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(tt){tt.isSelected=!0}))):(y=!0,za(this),this.mayMove()&&(yl(this,this.draggedParts,!0),Hf(this,a.lastInput.documentPoint))),this.Ym=!0,Tu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$0(this),a.Ya(),Lh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},sr.prototype.simulatedMouseMove=function(a,y,x){if(yo===null)return!1;var b=yo.diagram;x instanceof Ye||(x=null);var tt=_u;return x!==tt&&(tt!==null&&tt!==b&&(tt.ug(),yo.isDragOutStarted=!1,tt=tt.toolManager.findTool("Dragging"),tt!==null&&tt.doSimulatedDragLeave()),_u=x,x!==null&&x!==b&&(tp(),tt=x.toolManager.findTool("Dragging"),tt!==null&&(Nl.contains(tt)||Nl.add(tt),tt.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)},sr.prototype.simulatedMouseUp=function(a,y,x){if(yo===null)return!1;var b=_u,tt=yo.diagram;if(x===null)return yo.doCancel(),!0;if(x!==b){var et=b.toolManager.findTool("Dragging");if(b!==null&&b!==tt&&et!==null)return b.ug(),yo.isDragOutStarted=!1,et.doSimulatedDragLeave(),!1;_u=x,b=x.toolManager.findTool("Dragging"),b!==null&&(tp(),Nl.contains(b)||Nl.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 Ee),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=yo,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 wn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}sr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(cr?!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())},sr.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())},sr.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())},sr.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},sr.prototype.Az=function(){return yo},sr.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=yo;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},sr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),fa(a),a.animationManager.Cc(),a=yo,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},sr.prototype.doSimulatedDragLeave=function(){var a=yo;a!==null&&a.doSimulatedDragOut(),this.doCancel()},sr.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=yo;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Bg(this,y.draggedParts.Lf(),!1,a.firstInput),yl(this,this.copiedParts,!1),Hf(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},sr.prototype.doSimulatedDrop=function(){var a=this.diagram,y=yo;if(y!==null){var x=y.diagram;if(y.Ym=!0,za(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Bg(this,y.draggedParts.Lf(),!0,a.lastInput),yl(this,this.copiedParts,!1);var b=new gn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(tt){tt.isSelected=!0,b.add(tt)})),Tu(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 Bg(a,y,x,b){if(a.copiedParts===null){var tt=a.diagram;if(!tt.isReadOnly&&!tt.isModelReadOnly){tt.skipsUndoManager=!x,tt.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=tt.Kj(y,tt,!0);var et=$e.alloc();tt=b=1/0;for(var nt=-1/0,ht=-1/0,gt=y.iterator;gt.next();){var bt=gt.value;if(bt.isVisible()){var Pt=bt.location;bt=Pt.x,Pt=Pt.y,isNaN(bt)||isNaN(Pt)||(bt<b&&(b=bt),Pt<tt&&(tt=Pt),bt>nt&&(nt=bt),Pt>ht&&(ht=Pt))}}for(b===1/0?et.h(0,0,0,0):et.h(b,tt,nt-b,ht-tt),b=et.x+et.width/2,tt=et.y+et.height/2,$e.free(et),et=a.Fr,nt=new Rn,ht=Ee.alloc(),gt=y.iterator;gt.next();)bt=gt.value,bt instanceof cn&&bt.canCopy()&&(Pt=x.I(bt),Pt!==null&&(Pt.points=bt.points,Qu(Pt,et.x-b,et.y-tt),Pt.suspendsRouting=!0,nt.add(Pt,a.Pd())));for(y=y.iterator;y.next();)bt=y.value,bt.Zc()&&bt.canCopy()&&(gt=x.I(bt),gt!==null&&(bt=bt.location,ht.h(et.x-(b-bt.x),et.y-(tt-bt.y)),gt.location=ht,gt.Va(),nt.add(gt,a.Pd(ht))));Ee.free(ht),a.copiedParts=nt,Uf(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Qu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}sr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},sr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ee},qe.Object.defineProperties(sr.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}}}),sr.prototype.getDraggingSource=sr.prototype.Az;var yo=null,_u=null;sr.className="DraggingTool",Nl=new vn,br("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),$i.prototype.doCancel=function(){yo!==null&&yo.doCancel(),fi.prototype.doCancel.call(this)};function Sr(){fi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new cn,y=new Wn;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Wn,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new wn,y=new Wn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new wn,y=new Wn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zi,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 Rn,this.Of=this.gj=this.Pf=null}en(Sr,fi),Sr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Sr.prototype.copyPortProperties=function(a,y,x,b,tt){if(a!==null&&y!==null&&x!==null&&b!==null){var et=y.Df(),nt=xn.alloc();nt.width=y.naturalBounds.width*et,nt.height=y.naturalBounds.height*et,b.desiredSize=nt,xn.free(nt),tt?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=wi,et=Ee.alloc(),x.location=y.ga(wi,et),Ee.free(et),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,tt)}},Sr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=zi,y.fromSpot=$r,y.toSpot=$r),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Sr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Sr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof wn){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)}},Sr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof wn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof wn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Sr.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var tt=this,et=y.og(x,b,function(Nt){return tt.findValidLinkablePort(Nt,a)},null,!0);for(b=1/0,y=null,et=et.iterator;et.next();){var nt=et.value,ht=nt.part;if(ht instanceof wn){var gt=nt.ga(wi,Ee.alloc()),bt=x.x-gt.x,Pt=x.y-gt.y;Ee.free(gt),gt=bt*bt+Pt*Pt,gt<b&&(bt=this.validPortsCache.I(nt),bt!==null?bt&&(y=nt,b=gt):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ht,nt)||!a&&this.isValidLink(ht,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=gt):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof wn&&(x.layer===null||x.layer.allowLink))?y:null},Sr.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},Sr.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},Sr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Sr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof wn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof wn))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},Sr.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 tt=a.linkValidation;if(tt!==null&&!tt(a,y,x,b,this.originalLink))return!1}return x!==null&&(tt=x.linkValidation,tt!==null&&!tt(a,y,x,b,this.originalLink))?!1:(tt=this.linkValidation,tt!==null?tt(a,y,x,b,this.originalLink):!0)},Sr.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 gn;return b.add(a),Ho(this,x,y,b)};function Ho(a,y,x,b){if(y===x)return!0;var tt=y.fromNode;return tt!==null&&tt.isLinkLabel&&(b.add(tt),Ho(a,tt.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Ho(a,y.labeledLink,x,b))))}Sr.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!==uf){if(b===jp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var tt=b.value;if(tt!==x&&tt.isTreeLink&&tt.toNode===y)return!1}return!ts(this,a,y,x,!0)}if(b===Np){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(tt=b.value,tt!==x&&tt.isTreeLink&&tt.fromNode===a)return!1;return!ts(this,a,y,x,!0)}if(b===Tp)return a===y?a=!0:(b=new gn,b.add(y),a=es(this,b,a,y,x)),!a;if(b===_p)return!ts(this,a,y,x,!1);if(b===Op)return a===y?a=!0:(b=new gn,b.add(y),a=sc(this,b,a,y,x)),!a}return!0};function ts(a,y,x,b,tt){if(y===x)return!0;if(y===null||x===null)return!1;for(var et=y.linksConnected;et.next();){var nt=et.value;if(nt!==b&&(!tt||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&ts(a,nt,x,b,tt)))return!0}return!1}function es(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&es(a,y,nt,b,tt)))return!0}return!1}function sc(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt){var ht=nt.fromNode;if(nt=nt.toNode,ht=ht===x?nt:ht,ht!==x&&sc(a,y,ht,b,tt))return!0}}return!1}qe.Object.defineProperties(Sr.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}}}),Sr.className="LinkingBaseTool";function ns(){Sr.call(this),this.name="Linking",this.V={},this.F=null,this.K=yh,this.Xd=null}en(ns,Sr),ns.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},ns.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 wn)))return null;var x=this.direction;if(x===yh||x===Rg){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===yh||x===zg)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ns.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 wn&&(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 wn&&(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)},ns.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()},ns.prototype.doStop=function(){Sr.prototype.doStop.call(this),this.startObject=null},ns.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,tt=null,et=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ht=nt.part;ht instanceof wn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ht,tt=nt):(y=ht,x=nt,this.originalToNode!==null&&(b=this.originalToNode,tt=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,tt=this.originalToPort);y!==null||b!==null?(et=this.insertLink(y,x,b,tt),et!==null?(nt===null&&(this.isForwards?et.defaultToPoint=a.lastInput.documentPoint:et.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),et.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",et)):this.doNoLink(y,x,b,tt)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),et&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ns.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof cn)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)},ns.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ns.prototype.doNoLink=function(){},qe.Object.defineProperties(ns.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 yh=new sn(ns,"Either",0),Rg=new sn(ns,"ForwardsOnly",0),zg=new sn(ns,"BackwardsOnly",0);ns.className="LinkingTool",ns.Either=yh,ns.ForwardsOnly=Rg,ns.BackwardsOnly=zg;function Js(){Sr.call(this),this.name="Relinking";var a=new Wn;a.figure="Diamond",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Wn,a.figure="Diamond",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new $e}en(Js,Sr),Js.prototype.updateAdornments=function(a){if(a!==null&&a instanceof cn){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)}},Js.prototype.makeAdornment=function(a,y){var x=new di;return x.type=un.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Js.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},Js.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 di&&x.adornedPart instanceof cn))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=ai),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ai),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},Js.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===kd||x===Ju)&&(x=us),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}},Js.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()},Js.prototype.doStop=function(){Sr.prototype.doStop.call(this),this.handle=null},Js.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,tt=this.originalToPort,et=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof wn&&(this.isForwards?(b=nt,tt=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?tt=b=null:x=y=null:et=null;et!==null?(this.reconnectLink(et,this.isForwards?b:y,this.isForwards?tt:x,this.isForwards),this.targetPort===null&&(this.isForwards?et.defaultToPoint=a.lastInput.documentPoint:et.defaultFromPoint=a.lastInput.documentPoint,et.bb()),this.transactionResult=this.name,a.R("LinkRelinked",et,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Js.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},Js.prototype.doNoRelink=function(){};function Wf(a,y,x,b,tt){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,tt,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}qe.Object.defineProperties(Js.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 di))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Js.className="RelinkingTool",br("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),br("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Mr(){fi.call(this),this.name="LinkReshaping";var a=new Wn;a.figure="Rectangle",a.desiredSize=jr,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Wn,a.figure="Diamond",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ee,this.Yq=new vn}en(Mr,fi),Mr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ip},Mr.prototype.om=function(a,y){a.reshapingBehavior=y},Mr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof cn){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)}},Mr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,tt=null;if(y.points!==null&&1<x){tt=new di,tt.type=un.Link,x=y.firstPickIndex;var et=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==ia)for(var ht=x+nt;ht<et-nt;ht++){var gt=this.makeResegmentHandle(a,ht);gt!==null&&(gt.segmentIndex=ht,gt.segmentFraction=.5,gt.fromMaxLinks=999,tt.add(gt))}for(nt=x+1;nt<et;nt++)if(ht=this.makeHandle(a,nt),ht!==null){if(ht.segmentIndex=nt,nt!==x)if(nt===x+1&&b){gt=y.i(x);var bt=y.i(x+1);Ge.B(gt.x,bt.x)&&Ge.B(gt.y,bt.y)&&(bt=y.i(x-1)),Ge.B(gt.x,bt.x)?(this.om(ht,Nu),ht.cursor="n-resize"):Ge.B(gt.y,bt.y)&&(this.om(ht,ju),ht.cursor="w-resize")}else nt===et-1&&b?(gt=y.i(et-1),bt=y.i(et),Ge.B(gt.x,bt.x)&&Ge.B(gt.y,bt.y)&&(gt=y.i(et+1)),Ge.B(gt.x,bt.x)?(this.om(ht,Nu),ht.cursor="n-resize"):Ge.B(gt.y,bt.y)&&(this.om(ht,ju),ht.cursor="w-resize")):nt!==et&&(this.om(ht,Vf),ht.cursor="move");tt.add(ht)}tt.adornedObject=a}return tt},Mr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Mr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Mr.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},Mr.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 cn){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}}},Mr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Mr.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Mr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Mr.prototype.getResegmentingPoint=function(){return this.handle.ga(wi)},Mr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Mr.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),tt=y.i(x),et=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-tt.x)<this.resegmentingDistance&&Math.abs(b.y-tt.y)<this.resegmentingDistance&&(Ou(this,nt,b,tt,et,!0)||Ou(this,nt,b,tt,et,!1))){var ht=y.points.copy();Ou(this,nt,b,tt,et,!0)?(ht.cd(x-2,new Ee(nt.x,(et.y+nt.y)/2)),ht.cd(x+1,new Ee(et.x,(et.y+nt.y)/2))):(ht.cd(x-2,new Ee((et.x+nt.x)/2,nt.y)),ht.cd(x+1,new Ee((et.x+nt.x)/2,et.y))),ht.mb(x),ht.mb(x-1),y.points=ht,y.Wb()}else nt=y.i(x+2),Math.abs(tt.x-et.x)<this.resegmentingDistance&&Math.abs(tt.y-et.y)<this.resegmentingDistance&&(Ou(this,b,tt,et,nt,!0)||Ou(this,b,tt,et,nt,!1))&&(ht=y.points.copy(),Ou(this,b,tt,et,nt,!0)?(ht.cd(x-1,new Ee(b.x,(b.y+nt.y)/2)),ht.cd(x+2,new Ee(nt.x,(b.y+nt.y)/2))):(ht.cd(x-1,new Ee((b.x+nt.x)/2,b.y)),ht.cd(x+2,new Ee((b.x+nt.x)/2,nt.y))),ht.mb(x+1),ht.mb(x),y.points=ht,y.Wb())}}else nt=Ee.alloc(),Ge.qh(b.x,b.y,et.x,et.y,tt.x,tt.y,nt)&&nt.Bf(tt)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Ee.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ou(a,y,x,b,tt,et){return et?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-tt.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-tt.x)<a.resegmentingDistance}Mr.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===Nu?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===ju&&(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===Nu?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===ju&&(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 tt=y.i(b),et=y.i(b-1),nt=y.i(b+1);Ge.B(et.x,tt.x)&&Ge.B(tt.y,nt.y)?(Ge.B(et.x,y.i(b-2).x)&&!Ge.B(et.y,y.i(b-2).y)?(y.m(b,a.x,et.y),x++,b++):y.L(b-1,a.x,et.y),Ge.B(nt.y,y.i(b+2).y)&&!Ge.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):Ge.B(et.y,tt.y)&&Ge.B(tt.x,nt.x)?(Ge.B(et.y,y.i(b-2).y)&&!Ge.B(et.x,y.i(b-2).x)?(y.m(b,et.x,a.y),x++,b++):y.L(b-1,et.x,a.y),Ge.B(nt.x,y.i(b+2).x)&&!Ge.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ge.B(et.x,tt.x)&&Ge.B(tt.x,nt.x)?(Ge.B(et.x,y.i(b-2).x)&&!Ge.B(et.y,y.i(b-2).y)?(y.m(b,a.x,et.y),x++,b++):y.L(b-1,a.x,et.y),Ge.B(nt.x,y.i(b+2).x)&&!Ge.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ge.B(et.y,tt.y)&&Ge.B(tt.y,nt.y)&&(Ge.B(et.y,y.i(b-2).y)&&!Ge.B(et.x,y.i(b-2).x)?(y.m(b,et.x,a.y),x++,b++):y.L(b-1,et.x,a.y),Ge.B(nt.y,y.i(b+2).y)&&!Ge.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,tt=y.fromPort,b!==null&&(et=b.findVisibleNode(),et!==null&&et!==b&&(b=et,tt=b.port)),x===1&&y.computeSpot(!0,tt).Mc()&&(et=tt.ga(wi,Ee.alloc()),b=y.getLinkPointFromPoint(b,tt,et,a,!0,Ee.alloc()),y.L(0,b.x,b.y),Ee.free(et),Ee.free(b)),b=y.toNode,tt=y.toPort,b!==null&&(et=b.findVisibleNode(),et!==null&&et!==b&&(b=et,tt=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,tt).Mc()&&(x=tt.ga(wi,Ee.alloc()),a=y.getLinkPointFromPoint(b,tt,x,a,!1,Ee.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ee.free(x),Ee.free(a));y.zf()},Mr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Vf:return a;case Nu:return new Ee(y.i(x).x,a.y);case ju:return new Ee(a.x,y.i(x).y);default:case ip:return y.i(x)}},qe.Object.defineProperties(Mr.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 di))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}}}),Mr.prototype.setReshapingBehavior=Mr.prototype.om,Mr.prototype.getReshapingBehavior=Mr.prototype.Ru;var ip=new sn(Mr,"None",0),ju=new sn(Mr,"Horizontal",1),Nu=new sn(Mr,"Vertical",2),Vf=new sn(Mr,"All",3);Mr.className="LinkReshapingTool",Mr.None=ip,Mr.Horizontal=ju,Mr.Vertical=Nu,Mr.All=Vf,br("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function No(){fi.call(this),this.name="Resizing",this.o=new xn(1,1).freeze(),this.j=new xn(9999,9999).freeze(),this.yg=new xn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Wn;a.alignmentFocus=wi,a.figure="Rectangle",a.desiredSize=jr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ee,this.Dw=new xn,this.Tn=new Ee,this.rt=new xn(0,0),this.qt=new xn(1/0,1/0),this.pt=new xn(1,1)}en(No,fi),No.prototype.updateAdornments=function(a){if(!(a===null||a instanceof cn)){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(),Dh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},No.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new di,y.type=un.Spot,y.locationSpot=wi;var x=new ls;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,vo)),y.add(this.makeHandle(a,$l)),y.add(this.makeHandle(a,qo)),y.add(this.makeHandle(a,el)),y.add(this.makeHandle(a,Fo)),y.add(this.makeHandle(a,Ao)),y.add(this.makeHandle(a,Po)),y.add(this.makeHandle(a,vs))}else if(Oa(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},No.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},No.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=wi),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 un)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},No.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},No.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))},No.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},No.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},No.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},No.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Ee.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),a.bd(),Ee.free(tt)}},No.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Ee.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),Ee.free(tt),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},No.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 Un){var b=new vn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var tt=new mt;tt.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,tt)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},No.prototype.computeResize=function(a,y,x,b,tt,et){y.Mc()&&(y=wi);var nt=this.adornedObject.naturalBounds,ht=nt.x,gt=nt.y,bt=nt.x+nt.width,Pt=nt.y+nt.height,Nt=1;if(!et){Nt=nt.width;var zt=nt.height;0>=Nt&&(Nt=1),0>=zt&&(zt=1),Nt=zt/Nt}return zt=Ee.alloc(),Ge.No(a.x,a.y,ht,gt,tt.width,tt.height,zt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=Math.max(bt-a.x,x.width),a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Math.max(Pt-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.x=bt-a.width,a.y=Pt-a.height)):1<=y.y?(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=Math.max(bt-a.x,x.width),a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.x=bt-a.width)):(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=bt-a.x,et||(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt,a.y=gt+.5*(Pt-gt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Math.max(Pt-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.y=Pt-a.height)):1<=y.y?(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width))):(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),et||(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt,a.y=gt+.5*(Pt-gt-a.height))):0>=y.y?(a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Pt-a.y,et||(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width,a.x=ht+.5*(bt-ht-a.width))):1<=y.y&&(a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width,a.x=ht+.5*(bt-ht-a.width))),Ee.free(zt),a},No.prototype.computeReshape=function(){var a=an;return this.adornedObject instanceof Wn&&(a=Ev(this.adornedObject)),!(a===kn||this.diagram.lastInput.shift)},No.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},No.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},No.prototype.computeCellSize=function(){var a=new xn(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},qe.Object.defineProperties(No.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 di))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 di)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}}}),No.className="ResizingTool",br("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function is(){fi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ee,this.ue=null;var a=new Wn;a.figure="Ellipse",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ee(NaN,NaN),this.u=0,this.F=50}en(is,fi),is.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)}},is.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new di,y.type=un.Position,y.locationSpot=wi;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Oa(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},is.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},is.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)},is.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(wi)},is.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)},is.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ee(NaN,NaN),this.isActive=a.isMouseCaptured=!1},is.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},is.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},is.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},is.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()},is.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()}},is.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},qe.Object.defineProperties(is.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 di))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 di)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}}}),is.className="RotatingTool",br("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Sh(){fi.call(this),this.name="ClickSelecting"}en(Sh,fi),Sh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Sh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Sh.className="ClickSelectingTool";function Ma(){fi.call(this),this.name="Action",this.pk=null}en(Ma,fi),Ma.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},Ma.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()},Ma.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))}},Ma.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()},Ma.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())},Ma.prototype.doStop=function(){this.pk=null},Ma.className="ActionTool";function Du(){fi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ee(0,0)}en(Du,fi),Du.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)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.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()&&(Oa(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var tt=y.model.copyNodeData(x);on(tt)&&(y.model.xf(tt),b=y.Lc(tt))}if(b!==null){var et=Ee.allocAt(a.x,a.y);this.isGridSnapEnabled&&id(this.diagram,b,a,et),b.location=et,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ee.free(et)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},qe.Object.defineProperties(Du.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}}}),Du.className="ClickCreatingTool";function ha(){fi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new _n;a.layerName="Tool",a.selectable=!1;var y=new Wn;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}en(ha,fi),ha.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))},ha.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ha.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ha.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=xn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),xn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ha.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()},ha.prototype.computeBoxBounds=function(){var a=this.diagram;return new $e(a.firstInput.documentPoint,a.lastInput.documentPoint)},ha.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),cr?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 vn,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)}},qe.Object.defineProperties(ha.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}}}),ha.className="DragSelectingTool";function ko(){fi.call(this),this.name="Panning",this.Xt=new Ee,this.xy=new Ee,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(bn.document,"scroll",a.Kw,!1),a.stopTool()}}en(ko,fi),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(bn.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,tt=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(tt=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(tt,x)}},qe.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",br("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),br("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),br("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),br("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),br("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Sl(){this.F=this.u=this.j=this.o=null}qe.Object.defineProperties(Sl.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}}}),Sl.className="HTMLInfo";function ka(a,y,x){this.text=a,this.hx=y,this.visible=x}ka.className="ContextMenuButtonInfo";function rs(){fi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ee,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}en(rs,fi);function Ga(a){var y=new Sl;y.show=function(tt,et,nt){nt.showDefaultContextMenu()},y.hide=function(tt,et){et.hideDefaultContextMenu()},wh=y,a.tu=function(){a.stopTool()},y=ir("div");var x=ir("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=ir("style");bn.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",kr,!1),b.addEventListener(y,"selectstart",kr,!1),b.addEventListener(x,"contextmenu",kr,!1)),y.className="goCXforeground",x.className="goCXbackground",bn.document.body&&(bn.document.body.appendChild(y),bn.document.body.appendChild(x)),Yc=y,ac=x,Vc=!0}function kr(a){return a.preventDefault(),!1}rs.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)},rs.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},rs.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},rs.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Ye||(a instanceof ze?b=a:b=y.ic(x.documentPoint,null,function(tt){return!tt.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},rs.prototype.doActivate=function(){},rs.prototype.doMouseDown=function(){if(fi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof di){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&rl(this)},rs.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof di){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}rl(this)};function rl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Sl||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(ou(a,!0),a.isActive||a.stopTool())}rs.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function ou(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=wh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof ze?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof di&&!a.currentContextMenu.visible&&a.stopTool()}}rs.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},rs.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof di){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 Sl&&a.show(y,x,this);this.currentContextMenu=a},rs.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,tt=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>tt.right&&(x.x-=b.width+5/y.scale),x.x<tt.x&&(x.x=tt.x),x.y+b.height>tt.bottom&&(x.y-=b.height+5/y.scale),x.y<tt.y&&(x.y=tt.y),a.position=x}},rs.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof di?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Sl&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Iu(a){var y=new vn;return y.add(new ka("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new ka("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new ka("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new ka("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new ka("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new ka("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new ka("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new ka("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new ka("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new ka("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new ka("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new ka("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new ka("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}rs.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Iu(this)),Yc.innerHTML="",ac.addEventListener("pointerdown",this.tu,!1);var y=this,x=ir("ul");x.className="goCXul",Yc.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var tt=b.value,et=tt.visible;if(typeof tt.hx=="function"&&(typeof et!="function"||et(a))){et=ir("li"),et.className="goCXli";var nt=ir("a");nt.className="goCXa",nt.href="#",nt.ky=tt.hx,nt.addEventListener("pointerdown",function(ht){return this.ky(a),y.stopTool(),ht.preventDefault(),!1},!1),nt.textContent=tt.text,et.appendChild(nt),x.appendChild(et)}}Yc.style.display="block",ac.style.display="block"},rs.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===wh){Yc.style.display="none",ac.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ac,"pointerdown",this.tu,!1),this.currentContextMenu=null}},qe.Object.defineProperties(rs.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof di?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Vc===!1&&wh===null&&gr&&Ga(this),wh},set:function(a){a===null&&(Vc=!0),wh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var wh=null,Vc=!1,ac=null,Yc=null;rs.className="ContextMenuTool",br("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Ui(){fi.call(this),this.name="TextEditing",this.Zh=new Ni,this.ia=null,this.V=lc,this.vj=null,this.qa=uc,this.u=1,this.F=!0,this.o=null,this.j=new Sl,this.kt=null,Kc(this,this.j)}en(Ui,fi);function Kc(a,y){if(gr){var x=ir("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 tt=b.key;tt==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Xc)):tt==="Tab"?(a.acceptText(Kf),b.preventDefault()):tt==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==uc){var b=a.kt;a.qa===Zc&&(a.qa=Qc),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==uc){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,tt,et){if(b instanceof Ni&&et instanceof Ui)if(et.state===Jc)x.style.border="3px solid red",x.focus();else{var nt=b.ga(wi),ht=tt.position,gt=tt.scale,bt=b.Df()*gt;bt<et.minimumEditorScale&&(bt=et.minimumEditorScale);var Pt=b.naturalBounds.width*bt+6,Nt=b.naturalBounds.height*bt+2,zt=(nt.x-ht.x)*gt;nt=(nt.y-ht.y)*gt,ht=b.verticalAlignment,gt=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*bt,Nt=ht.y*Nt-ht.y*gt+ht.offsetY-(.5*Nt-.5*gt)-gt/2,x.value=b.text,tt.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*bt+"%",x.style.lineHeight="normal",x.style.width=Pt+"px",x.style.left=(zt-Pt/2|0)-1+"px",x.style.top=(nt+Nt|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=bt,x.className="goTXarea",tt.div.appendChild(x),x.focus(),et.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Ui.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Fu&&Fu!==this&&(Fu.acceptText(wl),Fu&&Fu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ni&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===lc&&!y.isSelected||this.starting===Xf&&2>a.lastInput.clickCount)):!1},Ui.prototype.doStart=function(){Fu=this,this.textBlock!==null&&this.doActivate()},Ui.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 Ni&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Zc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new $e(this.textBlock.ga(vo),this.textBlock.ga(qo));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Ui.prototype.doCancel=function(){this.stopTool()},Ui.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ui.prototype.doMouseDown=function(){this.isActive&&this.acceptText(wl)},Ui.prototype.acceptText=function(a){switch(a){case wl:this.qa===hc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Zc||this.qa===Jc||this.qa===Qc)&&(this.qa=op,rp(this));break;case Yf:case Xc:case Kf:(Xc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Zc||this.qa===Jc||this.qa===Qc)&&(this.qa=op,rp(this))}};function rp(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var tt=y.text,et="";b.valueFunction!==null&&(et=b.valueFunction()),a.isValidText(y,tt,et)?(a.Ea(a.name),a.qa=hc,a.transactionResult=a.name,y.text=et,a.doSuccess(tt,et),x!==null&&x.R("TextEdited",y,tt),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Jc,a.doError(tt,et))}}Ui.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)},Ui.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ui.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=uc,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ui.prototype.doStop=function(){Fu=null},Ui.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)))},Ui.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},qe.Object.defineProperties(Ui.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)}}}),Ui.prototype.measureTemporaryTextBlock=Ui.prototype.Lx;var Yf=new sn(Ui,"LostFocus",0),wl=new sn(Ui,"MouseDown",1),Kf=new sn(Ui,"Tab",2),Xc=new sn(Ui,"Enter",3),tv=new sn(Ui,"SingleClick",0),lc=new sn(Ui,"SingleClickSelected",1),Xf=new sn(Ui,"DoubleClick",2),uc=new sn(Ui,"StateNone",0),Zc=new sn(Ui,"StateActive",1),Qc=new sn(Ui,"StateEditing",2),op=new sn(Ui,"StateValidating",3),Jc=new sn(Ui,"StateInvalid",4),hc=new sn(Ui,"StateValidated",5),Fu=null;Ui.className="TextEditingTool",Ui.LostFocus=Yf,Ui.MouseDown=wl,Ui.Tab=Kf,Ui.Enter=Xc,Ui.SingleClick=tv,Ui.SingleClickSelected=lc,Ui.DoubleClick=Xf,Ui.StateNone=uc,Ui.StateActive=Zc,Ui.StateEditing=Qc,Ui.StateValidating=op,Ui.StateInvalid=Jc,Ui.StateValidated=hc,br("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function zs(a){$c||(sp(),$c=!0),this.H=Il,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=au,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new gn,this.ce=new Lo,this.ce.Yd=this,this.Ei=new gn,this.pu=new gn,this.Sr=new gn,this.pr=new gn,a&&Object.assign(this,a)}zs.prototype.Xe=function(a){this.H=a},zs.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),To(a.H),a.zb=!0)}function Zf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===au?(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===ap&&y.vc.clear(),a.Qw=!!(a.Pk===tf&&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(),ef(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Wo&&b!==null&&(delete b.start.scale,delete b.end.scale),bn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ys(x),fp(x),a.zb=!1,y.start(),y.bc&&(Bu(a),x.Ya(),lp(y,0),fa(x,!0),xh(a),x.R("AnimationStarting",a)))}))}}function su(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qf(a,y,x,b){a.isTicking||su(a)||y instanceof cn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}ee=zs.prototype,ee.fv=function(a){return this.ce.fv(a)},ee.Xu=function(a){return this.ce.Xu(a)};function Jf(a,y){function x(){if(0<tt.Sr.count&&(b.addAll(tt.Sr),tt.Sr.clear(),tt.bc=!0),tt.bc!==!1&&b.count!==0){tt.pu.addAll(b);for(var et=tt.pu.iterator;et.next();){var nt=et.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var ht=!0;else{for(ht=nt.vc.iterator;ht.next();){var gt=ht.key;if(gt instanceof ze&&gt.diagram!==null||gt instanceof Ye){ht=!0;break t}}ht=!1}ht?nf(nt,!1):nt.Xk=!0}}tt.pu.clear(),tt.bc!==!1&&(Bu(tt),fa(tt.H),xh(tt)),bn.requestAnimationFrame(x)}}var b=a.Ei,tt=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),bn.requestAnimationFrame(function(){x()}))}function Gg(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Bu(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function xh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}ee.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(),ef(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ef(y,this.H)},ee.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))},ee.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ks(this,a))},ee.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ru(this.ce,y,"position",y.position,y.position),ks(this,a))};function Ug(a,y,x){!a.zb||y.D(x)||su(a)||(a.H.pi||(y=x.copy()),Ru(a.ce,a.H,"position",y,x))}function qf(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function ks(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function bh(a,y,x,b,tt){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var et=a[0],nt=a[1],ht=a[2];a=a[3];var gt=y[0],bt=y[1],Pt=y[2];return y=y[3],ht===0||ht===100?(et=gt,nt=bt):(Pt===0||Pt===100)&&(gt=et,bt=nt),180<Math.abs(gt-et)&&(gt>et?et+=360:gt+=360),et=tt(x,et,gt-et,b)%360,nt=tt(x,nt,bt-nt,b),ht=tt(x,ht,Pt-ht,b),x=tt(x,a,y-a,b),"hsla("+et+", "+nt+"%, "+ht+"%, "+x+")"}function sp(){function a(x,b,tt,et,nt,ht){x.position=new Ee(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht))}var y=new Rn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,tt,et,nt,ht){nt<ht?x.mm(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht),!1):x.position=new Ee(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht))}),y.add("location",function(x,b,tt,et,nt,ht){nt<ht?x.mm(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht),!0):x.location=new Ee(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht))}),y.add("position:placeholder",function(x,b,tt,et,nt,ht){nt<ht?x.mm(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht),!1):x.position=new Ee(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht))}),y.add("position:nodeCollapse",function(x,b,tt,et,nt,ht){var gt=x.actualBounds,bt=tt.actualBounds;tt=bt.x+bt.width/2-gt.width/2,gt=bt.y+bt.height/2-gt.height/2,nt<ht?x.mm(et(nt,b.x,tt-b.x,ht),et(nt,b.y,gt-b.y,ht),!1):x.position=new Ee(et(nt,b.x,tt-b.x,ht),et(nt,b.y,gt-b.y,ht))}),y.add("desiredSize",function(x,b,tt,et,nt,ht){x.desiredSize=new $e(et(nt,b.width,tt.width-b.width,ht),et(nt,b.height,tt.height-b.height,ht))}),y.add("width",function(x,b,tt,et,nt,ht){x.width=et(nt,b,tt-b,ht)}),y.add("height",function(x,b,tt,et,nt,ht){x.height=et(nt,b,tt-b,ht)}),y.add("fill",function(x,b,tt,et,nt,ht){x.fill=bh(b,tt,nt,ht,et)}),y.add("stroke",function(x,b,tt,et,nt,ht){x.stroke=bh(b,tt,nt,ht,et)}),y.add("strokeWidth",function(x,b,tt,et,nt,ht){x.strokeWidth=et(nt,b,tt-b,ht)}),y.add("strokeDashOffset",function(x,b,tt,et,nt,ht){x.strokeDashOffset=et(nt,b,tt-b,ht)}),y.add("background",function(x,b,tt,et,nt,ht){x.background=bh(b,tt,nt,ht,et)}),y.add("areaBackground",function(x,b,tt,et,nt,ht){x.areaBackground=bh(b,tt,nt,ht,et)}),y.add("opacity",function(x,b,tt,et,nt,ht){x.opacity=et(nt,b,tt-b,ht)}),y.add("scale",function(x,b,tt,et,nt,ht){x.scale=et(nt,b,tt-b,ht)}),y.add("angle",function(x,b,tt,et,nt,ht){x.angle=et(nt,b,tt-b,ht)}),qc=y}qe.Object.defineProperties(zs.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&&ti(a,">= 1",zs,"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}}}),zs.prototype.stopAnimation=zs.prototype.Cc;var qc=null,$c=!1,au=new sn(zs,"Default",1),tf=new sn(zs,"AnimateLocations",2),ap=new sn(zs,"None",3);zs.className="AnimationManager",zs.defineAnimationEffect=function(a,y){$c||(sp(),$c=!0),qc.add(a,y)},zs.Default=au,zs.AnimateLocations=tf,zs.None=ap;function Lo(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=cc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=jo,this.vc=new Rn,this.Tt=new Rn,this.yl=new gn,this.Ut=new gn,this.dw=Uu,a&&Object.assign(this,a)}Lo.prototype.suspend=function(){this.Xk=!0},Lo.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,nf(this,!0),Bu(this.Yd),fa(this.H),xh(this.Yd),this.H.redraw()};function ef(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}ee=Lo.prototype,ee.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 ze&&(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===au&&this===y.defaultAnimation&&(this.Lp=Hg,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=hf),Bu(y),this.yl.each(function(b){b.data=null,a.add(b)}),xh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Jf(y,this),this)},ee.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},ee.add=function(a,y,x,b,tt){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Ye?this.H=a:a instanceof ze&&a.diagram!==null&&(this.H=a.diagram)),a instanceof _n){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ru(this,a,y,x,b,tt),this};function Ru(a,y,x,b,tt,et){var nt=a.vc;if(y instanceof Ye&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(cu(b),av(),b=[na.j,na.u,na.o,na.F],cu(tt),av(),tt=[na.j,na.u,na.o,na.F]),nt.contains(y)){var ht=nt.I(y),gt=ht.start,bt=ht.end;gt[x]===void 0&&(gt[x]=Ph(b)),bt[x]=Ph(tt)}else gt={},bt={},gt[x]=Ph(b),bt[x]=Ph(tt),ht=gt.position,y instanceof ze&&ht instanceof Ee&&!ht.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ht.assign(bt.position),ht=new Ch(gt,bt,et),nt.add(y,ht);nt=gt[x],nt instanceof Ee&&!nt.w()&&nt.assign(a.o),et&&x.indexOf("position:")===0&&y instanceof _n?ht.Ku.location=Ph(y.location):et&&(ht.Ku[x]=Ph(b))}function Ph(a){return a instanceof Ee||a instanceof xn?a.copy():a}ee.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},ee.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function nf(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,tt=b>a.cn?a.Gd:b-a.Qd;y&&(tt=a.gw,tt<a.Gd?(a.Qd=+new Date-tt,a.cn=a.Qd+a.Gd):tt=a.Gd),Bu(x),lp(a,tt),fa(a.H,!0),xh(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 lp(a,y){for(var x=a.Gd,b=a.vc.iterator,tt=a.Wk;b.next();){var et=b.key;if(!(et instanceof ze&&et.diagram===null)){var nt=b.value,ht=tt?nt.end:nt.start;nt=tt?nt.start:nt.end;var gt=qc,bt;for(bt in nt)bt==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||gt.get(bt)===null||gt.get(bt)(et,ht[bt],nt[bt],a.Lp,y,x,a)}}}ee.stop=function(){return this.bc?(this.Ml(!0),this):this},ee.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,Bu(x);for(var b=this.vc,tt=this.yl.iterator;tt.next();)y.remove(tt.value);for(tt=this.Ut.iterator;tt.next();)tt.value.v();tt=this.ho,b=b.iterator;for(var et=qc;b.next();){var nt=b.key,ht=b.value,gt=tt?ht.end:ht.start,bt=tt?ht.start:ht.end,Pt=ht.Ku,Nt;for(Nt in bt)if(et.get(Nt)!==null){var zt=Nt;!ht.Hu||zt!=="position:nodeCollapse"&&zt!=="position:placeholder"||(zt="position"),et.get(zt)(nt,gt[Nt],Pt[Nt]!==void 0?Pt[Nt]:ht.Hu?gt[Nt]:bt[Nt],this.Lp,this.Gd,this.Gd,this)}ht.Hu&&Pt.location!==void 0&&nt instanceof _n&&(nt.location=Pt.location),ht.nv&&nt instanceof _n&&nt.Zb(!1)}if(y.As.clear(),rf(y,!1),y.Ya(),y.N(),fa(y,!0),x.defaultAnimation===this){for(Nt=x.pr.iterator;Nt.next();)tt=Nt.value,tt.Tg!==null&&(tt.points=tt.Tg,tt.Tg=null);x.pr.clear()}fa(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),xh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ef(this,null),x.Ml(this),y.$b())}},ee.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Un&&(b=y.placeholder),b!==null?(x=b.ga(vo),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ee(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Un)for(a=a.memberParts;a.next();)b=a.value,b instanceof wn&&this.Cj(b,y)},ee.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Un&&(x=y.placeholder),x!==null){var b=x.ga(vo);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 Un)for(a=a.memberParts;a.next();)b=a.value,b instanceof wn&&this.Aj(b,y)}},ee.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},qe.Object.defineProperties(Lo.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ti(a,">= 1",Lo,"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}}}),Lo.prototype.getTemporaryState=Lo.prototype.Ez,Lo.prototype.stop=Lo.prototype.stop,Lo.prototype.add=Lo.prototype.add,Lo.prototype.addTemporaryPart=Lo.prototype.Iy;function cc(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Hg(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Lo.className="Animation",Lo.EaseLinear=function(a,y,x,b){return x*a/b+y},Lo.EaseInOutQuad=cc,Lo.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Lo.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Lo.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Lo.EaseOutExpo=Hg;function Ch(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ch.className="AnimationState";function Ua(a,y,x){this.xd=null,this.rf=a,this.so=x||up,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Eh))}Ua.prototype.copy=function(){var a=new Ua(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 Wg(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))}qe.Object.defineProperties(Ua.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 up=new sn(Ua,"Default",1),Eh=new sn(Ua,"Immediate",2),fc=new sn(Ua,"Bundled",3);Ua.className="AnimationTrigger",Ua.Default=up,Ua.Immediate=Eh,Ua.Bundled=fc;function co(a){qi(this),this.H=null,this.Pa=new vn,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)}ee=co.prototype,ee.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,zo(x)}a.clear(),this.Zq.length=0},ee.Xe=function(a){this.H=a},ee.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,tt=0,et=0,nt=0,ht=this.Pa.iterator;ht.next();){var gt=ht.value;gt instanceof Un?tt++:gt instanceof wn?b++:gt instanceof cn?et++:gt instanceof di?nt++:x++}if(ht="",0<x&&(ht+=x+" Parts "),0<b&&(ht+=b+" Nodes "),0<tt&&(ht+=tt+" Groups "),0<et&&(ht+=et+" Links "),0<nt&&(ht+=nt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ht+=`
`+x.toString(),b=x.data,b!==null&&Kr(b)&&(ht+=" #"+Kr(b)),x instanceof wn?ht+=" "+ur(b):x instanceof cn&&(ht+=" "+ur(x.fromNode)+" "+ur(x.toNode));return y+" "+this.Pa.count+": "+ht},ee.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 tt=Ee.alloc(),et=this.Pa.s,nt=et.length;nt--;){var ht=et[nt];if((b!==!0||Dh(ht)!==!1)&&ht.isVisible()&&(tt.assign(a),Er(tt,ht.oe),ht=ht.ic(tt,y,x),ht!==null&&(y!==null&&(ht=y(ht)),ht!==null&&(x===null||x(ht)))))return Ee.free(tt),ht}return Ee.free(tt),null},ee.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof vn||b instanceof gn||(b=new gn),this.Uh===!1)return b;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var et=Ee.alloc(),nt=this.Pa.s,ht=nt.length;ht--;){var gt=nt[ht];if((tt!==!0||Dh(gt)!==!1)&&gt.isVisible()){et.assign(a),Er(et,gt.oe);var bt=gt;gt.ji(et,y,x,b)&&(y!==null&&(bt=y(bt)),bt===null||x!==null&&!x(bt)||b.add(bt))}}return Ee.free(et),b},ee.Cf=function(a,y,x,b,tt){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),tt instanceof vn||tt instanceof gn||(tt=new gn),this.Uh===!1)return tt;var et=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(et=!0);for(var nt=this.Pa.s,ht=nt.length;ht--;){var gt=nt[ht];if((et!==!0||Dh(gt)!==!1)&&gt.isVisible()){var bt=gt;gt.Cf(a,y,x,b,tt)&&(y!==null&&(bt=y(bt)),bt===null||x!==null&&!x(bt)||tt.add(bt))}}return tt},ee.Nu=function(a,y,x,b,tt,et,nt){if(this.Uh===!1)return tt;for(var ht=this.Pa.s,gt=ht.length;gt--;){var bt=ht[gt];if((nt!==!0||Dh(bt)!==!1)&&et(bt)&&bt.isVisible()){var Pt=bt;bt.Cf(a,y,x,b,tt)&&(y!==null&&(Pt=y(Pt)),Pt===null||x!==null&&!x(Pt)||tt.add(Pt))}}return tt},ee.og=function(a,y,x,b,tt,et){if(x===void 0&&(x=null),b===void 0&&(b=null),tt===void 0&&(tt=!0),tt!==!1&&tt!==!0&&((tt instanceof vn||tt instanceof gn)&&(et=tt),tt=!0),et instanceof vn||et instanceof gn||(et=new gn),this.Uh===!1)return et;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ht=Ee.alloc(),gt=Ee.alloc(),bt=this.Pa.s,Pt=bt.length;Pt--;){var Nt=bt[Pt];if((nt!==!0||Dh(Nt)!==!1)&&Nt.isVisible()){ht.assign(a),Er(ht,Nt.oe),gt.h(a.x+y,a.y),Er(gt,Nt.oe);var zt=Nt;Nt.og(ht,gt,x,b,tt,et)&&(x!==null&&(zt=x(zt)),zt===null||b!==null&&!b(zt)||et.add(zt))}}return Ee.free(ht),Ee.free(gt),et},ee.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=oi();for(var tt=oi(),et=0;et<b;et++){var nt=x[et];if(nt.vw=et,nt instanceof cn){if(nt.fd===!1)continue}else if(nt instanceof di&&nt.adornedPart!==null)continue;var ht=nt.actualBounds;nt.isVisible()&&tl(ht,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&tt.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<tt.length;y++)Iv(tt[y]);ri(a),ri(tt)}}};function lu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}ee.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 tt=0;tt<b;tt++)x[tt].Gj();tt=lu(this,a);var et=this.Zq;et.length=0;for(var nt=y.scale,ht=$e.alloc(),gt=0;gt<b;gt++)this.Oj(a,x[gt],y,et,nt,ht,!0);if($e.free(ht),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=tt}}};function Vg(a,y,x,b,tt){if(a.visible&&a.pb!==0&&(tt||!a.isTemporary)){tt=a.Pa.s;var et=tt.length;if(et!==0){var nt=lu(a,y),ht=a.Zq;ht.length=0;for(var gt=x.scale,bt=$e.alloc(),Pt=0;Pt<et;Pt++){var Nt=tt[Pt];b.contains(Nt)&&a.Oj(y,Nt,x,ht,gt,bt,!1)}$e.free(bt),y.globalAlpha=nt}}}ee.Oj=function(a,y,x,b,tt,et,nt){if(nt&&!Dh(y))a.Hs(y);else{if(b!==null&&y instanceof cn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&et.Ex(b.tb):b.tb!==null&&(nt=!0,et.assign(b.tb)),b=b.containingGroup;var ht=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!et.Yc(ht)){a.Hs(y);return}b=!et.Re(ht)}b&&(a.save(),a instanceof Gs?a.bk=et.copy():(a.beginPath(),a.rect(et.x,et.y,et.width,et.height),a.clip())),ht.width*tt>x.Oq||ht.height*tt>x.Oq?y.gc(a,x):(tt=y.actualBounds,et=y.naturalBounds,tt.width===0||tt.height===0||isNaN(tt.x)||isNaN(tt.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(vr(y,a,y.areaBackground,!0,!0,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.height)),y.areaBackground===null&&y.background===null&&(vr(y,a,"rgba(0,0,0,0.3)",!0,!1,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.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,et,tt),a.fillRect(0,0,et.width/2,et.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))}},ee.g=function(a,y,x,b,tt){var et=this.diagram;et!==null&&et.cb(tr,a,this,y,x,b,tt)},ee.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&zo(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)),$f(this,a,y),a},ee.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,zo(y),a};function $f(a,y,x){if(y=Yg(a,y,x),x instanceof Un&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,tt=a.Pa.s,et=tt.length,nt=0;nt<et;nt++){var ht=tt[nt];if(ht===x&&(y=nt,0<=b)||0>b&&ht.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(tt=a.Pa,tt.mb(y),tt.Gb(b,x))}y=x.containingGroup,y!==null&&$f(a,-1,y)}x.svg!==null&&x.svg.remove()}function Yg(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var tt=a.count;if(1>=tt)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var et=y-1,nt=NaN;0<=et&&(nt=a.M(et).zOrder,!!isNaN(nt));)et--;for(var ht=y+1,gt=NaN;ht<tt&&(gt=a.M(ht).zOrder,!!isNaN(gt));)ht++;if(!isNaN(nt)&&nt>b)for(;;){if(et===-1||nt<=b){if(et++,et===y)break;return a.mb(y),a.Gb(et,x),et}for(nt=NaN;0<=--et&&(nt=a.M(et).zOrder,isNaN(nt)););}else if(!isNaN(gt)&&gt<b)for(;;){if(ht===tt||gt>=b){if(ht--,ht===y)break;return a.mb(y),a.Gb(ht,x),ht}for(gt=NaN;++ht<tt&&(gt=a.M(ht).zOrder,isNaN(gt)););}return y}qe.Object.defineProperties(co.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)&&ti(a,"0 <= value <= 1",co,"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))}}}),co.prototype.findObjectsNear=co.prototype.og,co.prototype.findObjectsIn=co.prototype.Cf,co.prototype.findObjectsAt=co.prototype.ji,co.prototype.findObjectAt=co.prototype.ic,co.className="Layer";function Ye(a,y){if(sm||(Bo(),sm=!0),qi(this),Il=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,gr){var x=this,b=function(){x.removeEventListener(bn.document,"DOMContentLoaded",b,!1),x.setRTL()};bn.document.body!==null?this.setRTL():x.addEventListener(bn.document,"DOMContentLoaded",b,!1)}this.ol=null,hd.add("Model",Pi);var tt=this;return this.Hb=function(et){var nt=tt.partManager;if(et.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var ht=et.change;et.modelChange===""&&ht===tr&&nt.updateDataBindings(et.object,et.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(et){tt.partManager.doModelChanged(et)},this.hu=this.ku=null,Kg(this),this.model=cy(),this.Wg=!0,Zg(this),this.layout=new Ji,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"||bn.Element&&a instanceof Element?cp(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Ah,Il;function Kg(a){a.Yd=new zs,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new vn,a.pj=new Rn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ee(NaN,NaN).freeze(),a.du=new Ee(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ee(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Xn,a.zu=new Ee(NaN,NaN).freeze(),a.ut=new $e(NaN,NaN,NaN,NaN).freeze(),a.rj=new Yn(0,0,0,0).freeze(),a.sj=Uu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Wo,a.zk=oo,a.Fg=Wo,a.pq=oo,a.yt=vo,a.Bt=vo,a.Fc=!0,a.pn=!1,a.De=new gn,a.Eh=new Rn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Yn(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Uo,a.bq.diagram=a,a.Qg=new Uo,a.Qg.diagram=a,a.cj=new Uo,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,nv(a),a.ai=new gn,a.Ht=!0,a.uu=Hu,a.pw=!1,a.wu=uf,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 Rn,a.Xn=new vn,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 Yn(5).freeze(),a.Hw=new gn().freeze(),a.Nt=999999999,a.nw=new gn().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 gn,a.ow=new gn,a.Xh=null,a.aw=new xn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ee,bounds:new $e,Py:new xn,bA:new xn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new $e(NaN,NaN,NaN,NaN).freeze(),a.wo=new xn(NaN,NaN).freeze(),a.Sp=new $e(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Rn;var y=new wn,x=new Ni;x.bind(new Lr("text","",ur)),y.add(x),a.ny=y,a.Lg.add("",y),y=new wn,x=new Ni,x.stroke="brown",x.bind(new Lr("text","",ur)),y.add(x),a.Lg.add("Comment",y),y=new wn,y.selectable=!1,y.avoidable=!1,x=new Wn,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new xn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Rn,y=new Un,y.selectionObjectName="GROUPPANEL",y.type=un.Vertical,x=new Ni,x.font="bold 12pt sans-serif",x.bind(new Lr("text","",ur)),y.add(x),x=new un(un.Auto),x.name="GROUPPANEL";var b=new Wn;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new ls,b.padding=new Yn(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Rn,y=new cn,x=new Wn,x.isPanelMain=!0,y.add(x),x=new Wn,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new cn,x=new Wn,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new di,y.type=un.Auto,x=new Wn,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new ls,x.margin=new Yn(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new di,y.type=un.Link,x=new Wn,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 Pi,a.toolManager=new $i,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new mt,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Xg(),a.eq=null,a.fq=_l,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 Ee,a.zy=500,a.wp=new Ee,a.wq=!1}Ye.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Sc=null,_h="",hp(this,!1),this.Xn.clear(),Pd(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function hp(a,y){a.animationManager.Cc(!0),a.Hw=new gn().freeze(),a.nw=new gn().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var tt=null;a.fe!==null&&(tt=a.fe.part,tt!==null&&a.remove(tt));var et=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var ht=a.Wa.s[y].parts;ht.next();){var gt=ht.value;gt!==tt&&gt.data===null&&et.push(gt)}for(y=0;y<et.length;y++)a.remove(et[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(),Pd(),a.Og.clear(),Mi=[],tt!==null&&(a.add(tt),a.partManager.parts.remove(tt)),b&&(a.skipsUndoManager=x),et}function Xg(){return null}Ye.prototype.reset=function(){this.clear(),this.vb=!0,Kg(this),bl(this),this.Wg=!0,Zg(this),this.layout=new Ji,this.Wg=!1,this.model=cy(),this.model.undoManager=new or,this.vb=this.rn=!1,this.N()},Ye.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=bn.document.body);var y=ir("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=bn.document.body);var y=0;if(gr){var x=om;y=Ah,x===null&&(x=om=ir("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Ah=ir("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||cr||(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 cp(a,y){if(gr){if(y!=null||We("Diagram setup requires an argument DIV."),a.Ka!==null&&We("Diagram has already completed setup."),typeof y=="string"?a.Ka=bn.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&&bn.ResizeObserver){var x=Xi(function(){a.$b()},250);a.ol=new bn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}bn.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=bn.go;var tt=new _a(a);if(tt.style!==void 0&&(tt.style.position="absolute",tt.style.top="0px",tt.style.left="0px",bn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),tt.style.zIndex="2",tt.style.userSelect="none",tt.style.MozUserSelect="none",tt.style.touchAction="none",tt.style.letterSpacing="normal !important",tt.style.wordSpacing="normal !important"),a.ta=tt,a.ib=tt.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Sp(a,a.Aa,a.ya),a.Ka.insertBefore(tt.Oa,a.Ka.firstChild),tt=new _a(null),tt.width=1,tt.height=1,a.jw=tt,a.oy=tt.context,gr){tt=ir("div");var et=ir("div");tt.style.position="absolute",tt.style.overflow="auto",tt.style.width=a.Aa+"px",tt.style.height=a.ya+"px",tt.style.zIndex="1",et.style.position="absolute",et.style.width="1px",et.style.height="1px",a.Ka.appendChild(tt),tt.appendChild(et),tt.onscroll=Jg,tt.addEventListener("pointerdown",qg),tt.H=a,tt.uy=!0,tt.vy=!0,a.ku=tt,a.hu=et}a.hk=Xi(function(){a.Yh=null,a.N()},300),a.Ov=Xi(function(){fp(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ht=ca(a,nt,!0);ht.bubbles=!0;var gt=0,bt=0;ht.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(gt=0<nt.deltaX?1:-1),nt.deltaY!==0&&(bt=0<nt.deltaY?1:-1),ht.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-gt:-bt):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(gt=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(bt=0<nt.wheelDeltaY?-1:1),ht.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-gt:-bt):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ht.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),Ha(ht,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,ca(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var ht=a.Yt;ht[nt.pointerId]===void 0&&(ht[nt.pointerId]=nt),ht=a.oj;var gt=!1;if(ht[0]===null||ht[0].pointerId!==nt.pointerId&&ht[0].pointerType===nt.pointerType)if(ht[1]!==null&&ht[1].pointerId===nt.pointerId)ht[1]=nt,gt=!0;else if(ht[0]===null)ht[0]=nt;else if(ht[1]===null)ht[1]=nt,gt=!0;else{nt.preventDefault();return}else ht[0]=nt;(ht=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var bt=gt;gt=mp(a,nt,!0,!1,!0,bt),pc(a,nt,gt),gt.targetDiagram=gp(nt,nt.target),gt.targetObject=null,bt||gt.clone(a.bq),bt=a.uw,ht=ht?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(bt.x-nt.screenX)>ht||Math.abs(bt.y-nt.screenY)>ht)?a.yq++:a.yq=1,gt.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():Ha(gt,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ht=a.oj;if(ht[0]===null||ht[0].pointerId!==nt.pointerId&&ht[0].pointerType===nt.pointerType){if(ht[1]!==null&&ht[1].pointerId===nt.pointerId){ht[1]=nt;return}if(ht[0]===null)ht[0]=nt;else return}else ht[0]=nt;if(ht[0].pointerId===nt.pointerId){ht=mp(a,nt,!1,!1,!1,ht[1]!==null);var gt=bn.document.elementFromPoint(nt.clientX,nt.clientY)||null;gt!==null&&gt.shadowRoot!==void 0&&gt.shadowRoot!==null&&(gt=gt.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var bt=a,Pt=nt;gt&&gt.H&&(Pt=nt,bt=gt.H),ht.targetDiagram=bt,pc(a,Pt,ht),ht.targetObject=null,a.doMouseMove(),Ha(ht,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ht=nt.pointerType==="touch"||nt.pointerType==="pen",gt=a.Yt;if(ht&&a.qu)delete gt[nt.pointerId],nt.preventDefault();else if(gt=a.oj,gt[0]===null||gt[0].pointerId!==nt.pointerId&&gt[0].pointerType===nt.pointerType)gt[1]!==null&&gt[1].pointerId===nt.pointerId&&(gt[1]=null);else{gt[0]=null,gt=mp(a,nt,!1,!0,!0,!1);var bt=bn.document.elementFromPoint(nt.clientX,nt.clientY)||null;bt!==null&&bt.shadowRoot!==void 0&&bt.shadowRoot!==null&&(bt=bt.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),bt!==null&&bt.H instanceof Ye&&bt.H!==a&&pc(bt.H,nt,gt),bt===null&&(bt=nt.target),pc(a,nt,gt),gt.clickCount=a.yq,gt.targetDiagram=gp(nt,bt),gt.targetObject=null,a.doMouseUp(),Ha(gt,nt),ht&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ht=a.Yt;ht[nt.pointerId]&&delete ht[nt.pointerId],ht=a.oj,ht[0]!==null&&ht[0].pointerId===nt.pointerId&&(ht[0]=null),ht[1]!==null&&ht[1].pointerId===nt.pointerId&&(ht[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ht=a.oj;ht[0]!==null&&ht[0].pointerId===nt.pointerId?(ht[0]=null,a.wq=!1):ht[1]!==null&&ht[1].pointerId===nt.pointerId&&(ht[1]=null)},a.Vp=b.Z["d"+ff[1]+ff[2]+"wI"+xc.slice(1,5)]["b"+jw.slice(1,y)](b.Z,cf,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(bn,"resize",a.Ov,!1)}function ys(a){30<a.Sq&&(a.Yh=1)}function rf(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ei&&ei.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Ye.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:bn.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=bn.scrollX||bn.pageXOffset,y=bn.scrollY||bn.pageYOffset;this.ta.focus(),bn.scrollTo(a,y)}},Ye.prototype.Oy=function(){this.H.R("GainedFocus")},Ye.prototype.Ny=function(){this.H.R("LostFocus")};function fp(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,tt=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==tt&&(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===Wo&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Zg(a){var y=new co;y.name="Background",a.Al(y),y=new co,y.name="",a.Al(y),y=new co,y.name="Foreground",a.Al(y),y=new co,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new co,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new co,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Qg(a){var y=new un(un.Grid);y.name="GRID";var x=new Wn;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wn,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wn,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Wn,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wn,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wn,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 Jg(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):vc(this.H)}function qg(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):vc(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,tt=this.viewportBounds,et=this.rj,nt=b.x-et.left,ht=b.y-et.top,gt=b.width+et.left+et.right,bt=b.height+et.top+et.bottom,Pt=b.right+et.right;et=b.bottom+et.bottom;var Nt=tt.x;b=tt.y;var zt=tt.width,Vt=tt.height,Zt=tt.right,oe=tt.bottom;tt=this.scale;var Pe=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Pe=Pe+a.scrollWidth-a.clientWidth;break;case"reverse":Pe=a.scrollWidth-Pe-a.clientWidth}var de=Pe;zt<gt||Vt<bt?(Pe=Ee.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==de&&(Pe.x=de/tt+nt,this.ju=de),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Pe.y=a.scrollTop/tt+ht,this.lu=a.scrollTop),this.position=Pe,Ee.free(Pe),this.Ee=this.qr=!1):(Pe=Ee.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<Nt&&(this.position=Pe.h(de+nt,this.position.y)),Pt>Zt&&(this.position=Pe.h(-(y.scrollWidth-this.Aa)+de-this.Aa/tt+Pt,this.position.y))),a.vy&&this.allowVerticalScroll&&(ht<b&&(this.position=Pe.h(this.position.x,a.scrollTop+ht)),et>oe&&(this.position=Pe.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/tt+et))),Ee.free(Pe),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,tt=this.viewportBounds,Pt=b.right,Zt=tt.right,et=b.bottom,oe=tt.bottom,nt=b.x,Nt=tt.x,ht=b.y,b=tt.y,zt>=gt&&nt>=Nt&&Pt<=Zt&&(x.style.width="1px"),Vt>=bt&&ht>=b&&et<=oe&&(x.style.height="1px"))}},Ye.prototype.computeBounds=function(a){return a===void 0&&(a=new $e),To(this),dp(this,a)};function dp(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,tt=b.length,et=0;et<tt;et++){var nt=b[et];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var ht=nt.length,gt=0;gt<ht;gt++){var bt=nt[gt];bt.isInDocumentBounds&&bt.isVisible()&&(bt=bt.actualBounds,bt.w()&&(x?(x=!1,y.assign(bt)):y.ed(bt)))}}}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(Cn(a))for(var b=0;b<a.length;b++){var tt=a[b];!y&&tt instanceof cn||(tt.Va(),x===null?x=tt.actualBounds.copy():x.ed(tt.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof cn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new $e(NaN,NaN,0,0):x};function La(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=Ee.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=$e.allocAt(0,0,b.width,b.height);var tt=Ee.alloc();tt.xi(b,a.initialViewportSpot),tt.h(x.x-tt.x,x.y-tt.y),a.position=tt,$e.free(b),Ee.free(tt),Ee.free(x)}x=a.yh,y&&a.Fg!==Wo&&(x=a.Fg);var et=x!==Wo?dc(a,x):a.scale;x=a.pa.x,b=a.pa.y,tt=a.Aa/et;var nt=a.ya/et,ht=a.zk,gt=a.pq;y&&!ht.sb()&&(gt.sb()||gt.Xb())&&(ht=gt.Xb()?wi:gt),pp(a,a.documentBounds,tt,nt,ht,y),y=a.scale,a.scale=et,a.vb=!1,et=a.viewportBounds,Ge.B(et.x,x)&&Ge.B(et.y,b)&&Ge.B(et.width,tt)&&Ge.B(et.height,nt)||a.onViewportBoundsChanged(new $e(x,b,tt,nt),et,y,!1)}}function dc(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var tt=b.width;b=b.height;var et=a.Aa+(a.gf?a.Db:0),nt=a.ya+(a.Be?a.Db:0),ht=et/tt,gt=nt/b;return y===$s?(y=Math.min(gt,ht),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Oh?(y=gt>ht?(nt-a.Db)/b:(et-a.Db)/tt,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=Uu,this.scale=dc(this,$s),a!==Uu&&(La(this,!1),pp(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ee=Ye.prototype,ee.BA=function(a,y){y===void 0&&(y=$s);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var tt=1;if(y===$s||y===Oh)if(isNaN(x))tt=this.viewportBounds.height*this.scale/b;else if(isNaN(b))tt=this.viewportBounds.width*this.scale/x;else{tt=this.Aa;var et=this.ya;tt=y===Oh?et/b>tt/x?(et-(this.Be?this.Db:0))/b:(tt-(this.gf?this.Db:0))/x:Math.min(et/b,tt/x)}this.scale=tt,this.position=new Ee(a.x,a.y)}},ee.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ee(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))},ee.zz=function(a){if(a instanceof ze){this.eq=a;var y=Ee.alloc();this.fq=this.op(a.ga(vo,y)),Ee.free(y)}else this.eq=null,this.fq=_l};function pp(a,y,x,b,tt,et){var nt=Ee.allocAt(a.pa.x,a.pa.y),ht=nt.x,gt=nt.y;if(a.eq!==null){var bt=Ee.alloc();bt=a.eq.ga(vo,bt),ht=bt.x-a.fq.x/a.scale,gt=bt.y-a.fq.y/a.scale,tt=$r,Ee.free(bt)}(et||a.scrollMode===Uu)&&(tt.sb()&&(x>y.width&&(ht=y.x+(tt.x*y.width+tt.offsetX)-(tt.x*x-tt.offsetX)),b>y.height&&(gt=y.y+(tt.y*y.height+tt.offsetY)-(tt.y*b-tt.offsetY))),tt=a.rj,et=x-y.width,x<y.width+tt.left+tt.right?(ht=Math.min(ht+x/2,y.right+Math.max(et,tt.right)-x/2),ht=Math.max(ht,y.left-Math.max(et,tt.left)+x/2),ht-=x/2):ht>y.left?ht=y.left:ht<y.right-x&&(ht=y.right-x),x=b-y.height,b<y.height+tt.top+tt.bottom?(gt=Math.min(gt+b/2,y.bottom+Math.max(x,tt.bottom)-b/2),gt=Math.max(gt,y.top-Math.max(x,tt.top)+b/2),gt-=b/2):gt>y.top?gt=y.top:gt<y.bottom-b&&(gt=y.bottom-b)),nt.x=isFinite(ht)?ht:-a.yb.left,nt.y=isFinite(gt)?gt:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),Ug(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),bl(a),Ee.free(nt)}ee.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Fl(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof _n)return a}else if(a=Fl(this,a,function(x){return x.part}),a instanceof _n)return a;return null},ee.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),To(this);for(var b=this.Wa.iteratorBackwards;b.next();){var tt=b.value;if(tt.visible&&(tt=tt.ic(a,y,x),tt!==null))return tt}return null};function Fl(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),To(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;if(tt.visible&&!tt.isTemporary&&(tt=tt.ic(y,x,b),tt!==null))return tt}return null}ee.lz=function(a,y,x){return y===void 0&&(y=!0),of(this,a,function(b){return b.part},y?function(b){return b instanceof _n&&b.canSelect()}:null,x)};function of(a,y,x,b,tt){for(x===void 0&&(x=null),b===void 0&&(b=null),tt instanceof vn||tt instanceof gn||(tt=new gn),To(a),a=a.Wa.iteratorBackwards;a.next();){var et=a.value;et.visible&&!et.isTemporary&&et.ji(y,x,b,tt)}return tt}ee.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof vn||b instanceof gn||(b=new gn),To(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var et=tt.value;et.visible&&et.ji(a,y,x,b)}return b},ee.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),td(this,a,function(tt){return tt instanceof _n&&(!x||tt.canSelect())},y,b)},ee.Cf=function(a,y,x,b,tt){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),tt instanceof vn||tt instanceof gn||(tt=new gn),To(this);for(var et=this.Wa.iteratorBackwards;et.next();){var nt=et.value;nt.visible&&nt.Cf(a,y,x,b,tt)}return tt},ee.Nu=function(a,y,x,b,tt,et){var nt=new gn;To(this);for(var ht=this.Wa.iteratorBackwards;ht.next();){var gt=ht.value;gt.visible&&gt.Nu(a,y,x,b,nt,tt,et)}return nt};function td(a,y,x,b,tt){var et=null;for(et===void 0&&(et=null),x===void 0&&(x=null),b===void 0&&(b=!1),tt instanceof vn||tt instanceof gn||(tt=new gn),To(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,et,x,b,tt)}return tt}ee.mz=function(a,y,x,b,tt){return x===void 0&&(x=!0),b===void 0&&(b=!0),sf(this,a,y,function(et){return et instanceof _n&&(!b||et.canSelect())},x,tt)},ee.og=function(a,y,x,b,tt,et){x===void 0&&(x=null),b===void 0&&(b=null),tt===void 0&&(tt=!0),tt!==!1&&tt!==!0&&((tt instanceof vn||tt instanceof gn)&&(et=tt),tt=!0),et instanceof vn||et instanceof gn||(et=new gn),To(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ht=nt.value;ht.visible&&ht.og(a,y,x,b,tt,et)}return et};function sf(a,y,x,b,tt,et){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),tt===void 0&&(tt=!0),tt!==!1&&tt!==!0&&((tt instanceof vn||tt instanceof gn)&&(et=tt),tt=!0),et instanceof vn||et instanceof gn||(et=new gn),To(a),a=a.Wa.iteratorBackwards;a.next();){var ht=a.value;ht.visible&&!ht.isTemporary&&ht.og(y,x,nt,b,tt,et)}return et}Ye.prototype.acceptEvent=function(a){return ca(this,a,a instanceof MouseEvent)};function ca(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?pc(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),cr&&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=gp(y,y.target),b.targetObject=null,b}function gp(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 mp(a,y,x,b,tt,et){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,cr&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=tt,nt.isMultiTouch=et,nt}function Ha(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=ca(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(),Ha(x,a)},Ye.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ca(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(),Ha(x,a)},Ye.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ca(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Ha(x,a)},Ye.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ca(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Ha(x,a)},Ye.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ee(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?Er(new Ee(y,a),this.Ab):new Ee(y,a)};function pc(a,y,x){var b=a.ta,tt=a.Aa,et=a.ya,nt=0,ht=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-tt/b.width*b.left,ht=y.clientY-et/b.height*b.top),x.viewPoint.h(nt,ht),a.Ab!==null?(y=Ee.allocAt(nt,ht),a.Ab.Cd(y),x.documentPoint.assign(y),Ee.free(y)):x.documentPoint.h(nt,ht)}function vp(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 $g(a){a.ld||To(a),a.Va()}Ye.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ee=Ye.prototype,ee.Pz=function(){return this.kg},ee.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,fa(this),this.hf=!1,this.du=new Ee(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&dr(function(){b.ld=!1,Dl(y,"Model"),a(b)},1)},ee.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;bn.requestAnimationFrame(function(){y.kg&&y.bd()})}},ee.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),fa(this))};function Mh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||vc(a)||(y&&To(a),x&&La(a,!1))}function fa(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 tt=b.s,et=tt.length,nt=0;nt<et;nt++){var ht=tt[nt];Br(ht,!1),ht.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(gt){gt.Nv()}),b.clear()),tt=b=!1,x.defaultAnimation.isAnimating&&(tt=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||fp(a),Mh(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(xl(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),To(a),et=!1,(!a.hf||a.xh)&&(a.hf?Mp(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Mp(a,!1)),et=!0),a.Jk=!1,To(a),a.ou||$g(a),Mh(a,!0,!1),nt=!1,et?(x=$e.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,yp(a)),a.R("LayoutCompleted"),Mh(a,!0,!1),$e.free(x)):x.Ok&&x.Qw&&(a.Fg!==Wo?a.scale=dc(a,a.Fg):a.yh!==Wo?a.scale=dc(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),La(a,!0)),et&&nt&&a.eb("Initial Layout"),To(a),y||a.gc(a.ib),tt&&(a.skipsUndoManager=b),a.ld=!1}}function yp(a){if(a.Fg!==Wo)a.scale=dc(a,a.Fg);else if(a.yh!==Wo)a.scale=dc(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}La(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),xl(a)}function To(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 gn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Un&&b.U&65536&&(b.U=b.U^65536)})}}ee.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Un||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Un&&x.isVisible()&&af(this,x);for(a.reset();a.next();)x=a.value,x instanceof cn&&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 di&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function af(a,y){for(var x=oi(),b=oi(),tt=y.memberParts;tt.next();){var et=tt.value;et.isVisible()&&(et instanceof Un?(ea(et)||ss(et)||Nh(et))&&af(a,et):et instanceof cn?et.fromNode===y||et.toNode===y?b.push(et):x.push(et):(et.measure(1/0,1/0),et.arrange()))}for(a=x.length,tt=0;tt<a;tt++)et=x[tt],et.measure(1/0,1/0),et.arrange();for(ri(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();ri(b)}ee.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var tt=0;tt<y;tt++)a[tt].Fd(x,b)},ee.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)){mc(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 tt=this.Ca,et=Math.round(y.x*tt)/tt,nt=Math.round(y.y*tt)/tt,ht=this.Ab;for(ht.reset(),tt!==1&&ht.scale(tt),y.x===0&&y.y===0||ht.translate(-et,-nt),a.ti=null,Zy(a,ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy),this.pb!==1&&(a.globalAlpha=this.pb),zu(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?bc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Xn.prototype.Cd=Xn.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(et=this.animationManager,!et.zb&&(!et.isAnimating||et.isTicking)&&(x=new Date,mc(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,tt=y.length,this.Fd(y,tt,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!et.isAnimating)break t;et=this.Ab,et.reset(),nt=this.Mb,ht=this.pa;var gt=this.Ca,bt=Math.round(ht.x*gt)/gt,Pt=Math.round(ht.y*gt)/gt;for(gt!==1&&et.scale(gt),ht.x===0&&ht.y===0||et.translate(-bt,-Pt),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),zu(this,a),ht=0;ht<tt;ht++)a.setTransform(nt,0,0,nt,0,0),a.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),a.yc(),y[ht].gc(a,this);if(y=!1,this.Yf?bc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Xn.prototype.Cd=Xn.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=ei&&ei.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,tt=y=0;tt<x.length;tt++)y+=x[tt];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 ed(a,y,x,b,tt,et,nt,ht,gt,bt){if(a.Ka!==null){a.ta===null&&We("No canvas specified"),nt===void 0&&(nt=null),ht===void 0&&(ht=null),gt===void 0&&(gt=!1),bt===void 0&&(bt=!1),mc(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var Pt=a.Ca;a.Ca=tt;var Nt=a.Wa.s,zt=Nt.length;try{var Vt=new $e(et.x,et.y,b.width/tt,b.height/tt),Zt=Vt.copy();Zt.Co(x),xl(a,Zt),To(a),a.Fd(Nt,zt,a,Vt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ht!==null&&ht!==""&&(y.fillStyle=ht,y.ox(0,0,b.width,b.height));var oe=a.Mb;y.scale(oe,oe);var Pe=Xn.alloc();Pe.reset(),Pe.translate(x.left,x.top),Pe.scale(tt),et.x===0&&et.y===0||Pe.translate(-et.x,-et.y),y.setTransform(Pe.m11,Pe.m12,Pe.m21,Pe.m22,Pe.dx,Pe.dy),y.yc(),y instanceof Gs&&Zy(y,Pe.m11,Pe.m12,Pe.m21,Pe.m22,Pe.dx,Pe.dy),Xn.free(Pe),zu(a,y),y.globalAlpha=a.pb;var de=a.Qj("Grid");if(nt){var Le=new gn,Oe=nt.iterator;for(Oe.reset();Oe.next();){var De=Oe.value;De instanceof _n&&(bt||De.layer!==de)&&(De.Gj(),Le.add(De))}for(bt=0;bt<zt;bt++)Vg(Nt[bt],y,a,Le,gt);Le.each(function(Ve){return Ve.Gj()})}else for(Le=0;Le<zt;Le++){var Re=Nt[Le];Re===de?bt&&Re.gc(y,a,!0):Re.gc(y,a,gt)}a.$i=!1,a.Yf&&bc(a.Yf,a)&&a.Vp()}finally{a.Ca=Pt,a.ib.Vc(!0),a.vd=!0,a.Fd(Nt,zt,a,a.viewportBounds),xl(a),a.ib instanceof Gs&&(a.ib.Nj.PA(),a.redraw())}}}ee.Gf=function(a){return this.Rg[a]},ee.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},ee.Tx=function(){this.Rg=new si,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(cr||er),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function zu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}ee.Ql=function(a){return this.on[a]},ee.sA=function(a,y){this.on[a]=y},ee.Sx=function(){this.on=new si,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},ee.set=function(a){return Object.assign(this,a),this},ee.Du=function(a){return this.nm(a)},ee.nm=function(a){return gc(this,a),this};function gc(a,y){var x=a instanceof un,b=a instanceof Ye,tt;for(tt in y){tt===""&&We("Setting properties requires non-empty property names");var et=a,nt=tt;if(x||b){var ht=tt.indexOf(".");if(0<ht){var gt=tt.substring(0,ht);x?et=a.fb(gt):(et=a[gt],et==null&&(et=a.toolManager[gt])),on(et)?nt=tt.substr(ht+1):We("Unable to find object named: "+gt+" in "+a.toString()+" when trying to set property: "+tt)}}if(nt[0]!=="_"&&!Yr(et,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&Yr(a.toolManager,nt))et=a.toolManager;else if(b&&nm(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Ln&&nt==="Changed"){a.Pe(y[nt]);continue}else We('Trying to set undefined property "'+nt+'" on object: '+et.toString());et[nt]=y[tt],nt[0]==="_"&&et instanceof ze&&et.Vw(nt)}}ee.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Rn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},ee.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!==hf&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,tt=Math.max(a.y,y.y),et=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,et-tt)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=$e.alloc(),Ap(this,this.computeBounds(b)),$e.free(b)),b=this.ta,b===null||b instanceof Pl)))){var nt=this.Mb;tt=this.Aa*nt;var ht=this.ya*nt,gt=this.scale*nt;et=Math.round(Math.round(y.x*gt)-Math.round(a.x*gt)),y=Math.round(Math.round(y.y*gt)-Math.round(a.y*gt)),gt=this.jw,a=this.oy,gt.width!==tt&&(gt.width=tt),gt.height!==ht&&(gt.height=ht),a.clearRect(0,0,tt,ht),gt=190*nt;var bt=70*nt,Pt=Math.max(et,0),Nt=Math.max(y,0),zt=Math.floor(tt-Pt),Vt=Math.floor(ht-Nt);a.drawImage(b.Oa,Pt,Nt,zt,Vt,0,0,zt,Vt),bc(this.Yf,this)&&a.clearRect(0,0,gt,bt),b=oi(),a=oi(),Vt=Math.abs(et),zt=Math.abs(y);var Zt=Pt===0?0:tt-Vt;Pt=Ee.allocAt(Zt,0),Vt=Ee.allocAt(Vt+Zt,ht),a.push(new $e(Math.min(Pt.x,Vt.x),Math.min(Pt.y,Vt.y),Math.abs(Pt.x-Vt.x),Math.abs(Pt.y-Vt.y)));var oe=this.Ab;if(oe.reset(),oe.scale(nt,nt),this.Ca!==1&&oe.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&oe.translate(-nt.x,-nt.y),Er(Pt,oe),Er(Vt,oe),b.push(new $e(Math.min(Pt.x,Vt.x),Math.min(Pt.y,Vt.y),Math.abs(Pt.x-Vt.x),Math.abs(Pt.y-Vt.y))),Zt=Nt===0?0:ht-zt,Pt.h(0,Zt),Vt.h(tt,zt+Zt),a.push(new $e(Math.min(Pt.x,Vt.x),Math.min(Pt.y,Vt.y),Math.abs(Pt.x-Vt.x),Math.abs(Pt.y-Vt.y))),Er(Pt,oe),Er(Vt,oe),b.push(new $e(Math.min(Pt.x,Vt.x),Math.min(Pt.y,Vt.y),Math.abs(Pt.x-Vt.x),Math.abs(Pt.y-Vt.y))),bc(this.Yf,this)&&(tt=0<et?0:-et,ht=0<y?0:-y,Pt.h(tt,ht),Vt.h(gt+tt,bt+ht),a.push(new $e(Math.min(Pt.x,Vt.x),Math.min(Pt.y,Vt.y),Math.abs(Pt.x-Vt.x),Math.abs(Pt.y-Vt.y))),Er(Pt,oe),Er(Vt,oe),b.push(new $e(Math.min(Pt.x,Vt.x),Math.min(Pt.y,Vt.y),Math.abs(Pt.x-Vt.x),Math.abs(Pt.y-Vt.y)))),Ee.free(Pt),Ee.free(Vt),Mh(this,!1,!0),this.Ka===null&&We("No div specified"),this.ta===null&&We("No canvas specified"),!this.animationManager.zb&&(tt=this.ib,this.Fc)){for(mc(this),ht=this.Mb,tt.setTransform(1,0,0,1,0,0),tt.clearRect(0,0,this.Aa*ht,this.ya*ht),tt.drawImage(this.jw.Oa,0<et?0:Math.round(-et),0<y?0:Math.round(-y)),et=this.pa,nt=this.Ca,gt=Math.round(et.x*nt)/nt,bt=Math.round(et.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),et.x===0&&et.y===0||y.translate(-gt,-bt),tt.save(),tt.beginPath(),et=a.length,nt=0;nt<et;nt++)gt=a[nt],gt.width!==0&&gt.height!==0&&tt.rect(Math.floor(gt.x),Math.floor(gt.y),Math.ceil(gt.width),Math.ceil(gt.height));for(tt.clip(),tt.setTransform(ht,0,0,ht,0,0),tt.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),tt.yc(),y=this.Wa.s,et=y.length,this.Fd(y,et,this,this.viewportBounds),zu(this,tt),tt.globalAlpha=this.pb,ht=0;ht<et;ht++)if(nt=y[ht],gt=b,nt.visible&&nt.pb!==0){bt=lu(nt,tt),Nt=nt.Zq,Nt.length=0,Pt=this.scale,zt=$e.alloc(),Vt=nt.Pa.s,oe=Vt.length,Zt=gt.length;for(var Pe=0;Pe<oe;Pe++){var de=Vt[Pe],Le=Lc(de,de.actualBounds);t:{for(var Oe=2/Pt,De=4/Pt,Re=0;Re<Zt;Re++){var Ve=gt[Re];if(Ve.width!==0&&Ve.height!==0&&Le.Vu(Ve.x-Oe,Ve.y-Oe,Ve.width+De,Ve.height+De)){Le=!0;break t}}Le=!1}Le&&nt.Oj(tt,de,this,Nt,Pt,zt,!0)}$e.free(zt),tt.globalAlpha=bt}tt.restore(),tt.Vc(!0),this.Yf&&bc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}ri(b),ri(a),this.ld=!1}}else this.bd();x&&(ys(this),this.bd(),rf(this,!0))}else x?(ys(this),this.bd(),rf(this,!0)):this.bd()}};function mc(a){a.pn!==!1&&(a.pn=!1,Sp(a,a.Aa,a.ya))}function Sp(a,y,x){bl(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function vc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,tt=a.Ka,et=!1,nt=a.gf?a.Db:0,ht=a.Be?a.Db:0,gt=tt.clientWidth||x+nt,bt=tt.clientHeight||b+ht,Pt=a.viewportBounds;tt=Pt.x;var Nt=Pt.y,zt=Pt.width,Vt=Pt.height;if((gt!==x+nt||bt!==b+ht)&&(a.gf=!1,a.Be=!1,ht=nt=0,a.Aa=gt,a.ya=bt,et=a.pn=!0,bl(a)),!a.hf||!a.viewportBounds.w())return!0;var Zt=a.ku,oe=a.hu;if(a.Ee=!1,!(et||a.gf||a.Be||a.mn||a.nn))return!0;var Pe=a.documentBounds,de=0,Le=0,Oe=0,De=0,Re=Pt.width,Ve=Pt.height,Sn=a.rj;a.contentAlignment.sb()?(Pe.width>Re&&(de=Sn.left,Le=Sn.right),Pe.height>Ve&&(Oe=Sn.top,De=Sn.bottom)):(de=Sn.left,Le=Sn.right,Oe=Sn.top,De=Sn.bottom);var Mn=Pe.width+de+Le,Pn=Pe.height+Oe+De;Sn=a.scale;var hn=Mn>gt/Sn,rn=Pn>bt/Sn;if(!(et||a.gf||a.Be||hn||rn))return!0;de=Pe.x-de,gt=Pt.x,Le=Pe.right+Le,bt=Pt.right+nt,Oe=Pe.y-Oe;var Gn=Pt.y;Pe=Pe.bottom+De,Pt=Pt.bottom+ht;var Fn="1px";if(De="1px",a.scrollMode===Uu&&(hn||rn)&&(hn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(hn=1,de+1<gt&&(hn=Math.max((gt-de)*Sn+a.Aa,hn)),Le>bt+1&&(hn=Math.max((Le-bt)*Sn+a.Aa,hn)),Re+nt+1<Mn&&(hn=Math.max((Mn-Re)*Sn+a.Aa,hn)),Fn=hn.toString()+"px"),rn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(hn=1,Oe+1<Gn&&(hn=Math.max((Gn-Oe)*Sn+a.ya,hn)),Pe>Pt+1&&(hn=Math.max((Pe-Pt)*Sn+a.ya,hn)),Ve+ht+1<Pn&&(hn=Math.max((Pn-Ve)*Sn+a.ya,hn)),De=hn.toString()+"px")),hn=Fn!=="1px",rn=De!=="1px",hn&&rn||!hn&&!rn||(rn&&(bt-=a.Db),hn&&(Pt-=a.Db),Mn<Re+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,de+1<gt&&(nt=Math.max((gt-de)*Sn+a.Aa,nt)),Le>bt+1&&(nt=Math.max((Le-bt)*Sn+a.Aa,nt)),Re+1<Mn&&(nt=Math.max((Mn-Re)*Sn+a.Aa,nt)),Fn=nt.toString()+"px"),hn=Fn!=="1px",nt=a.ya,hn!==a.Be&&(nt=hn?a.ya-a.Db:a.ya+a.Db),Pn<Ve+ht||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ht=1,Oe+1<Gn&&(ht=Math.max((Gn-Oe)*Sn+nt,ht)),Pe>Pt+1&&(ht=Math.max((Pe-Pt)*Sn+nt,ht)),Ve+1<Pn&&(ht=Math.max((Pn-Ve)*Sn+nt,ht)),De=ht.toString()+"px"),rn=De!=="1px"),a.qr&&hn===a.Be&&rn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(hn!==a.Be&&(Fn==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),et=!0),a.Be=hn,oe.style.width=Fn,rn!==a.gf&&(De==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),et=!0,a.tn&&(ht=Ee.alloc(),rn?(y.style.left=a.Db+"px",a.position=ht.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ht.h(a.pa.x-a.Db/a.scale,a.pa.y)),Ee.free(ht))),et&&bl(a),a.gf=rn,oe.style.height=De,a.gu=!0,et&&(a.pn=!0),y=Zt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Re+1<Mn?y=(a.position.x-de)*Sn:de+1<gt?y=Zt.scrollWidth-Zt.clientWidth:Le>bt+1&&(y=a.position.x*Sn)),a.tn)switch(a.bu){case"negative":y=-(Zt.scrollWidth-y-Zt.clientWidth);break;case"reverse":y=Zt.scrollWidth-y-Zt.clientWidth}return Zt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ve+1<Pn?Zt.scrollTop=(a.position.y-Oe)*Sn:Oe+1<Gn?Zt.scrollTop=Zt.scrollHeight-Zt.clientHeight:Pe>Pt+1&&(Zt.scrollTop=a.position.y*Sn)),gt=a.Aa,bt=a.ya,Zt.style.width=gt+(a.gf?a.Db:0)+"px",Zt.style.height=bt+(a.Be?a.Db:0)+"px",x!==gt||b!==bt||a.animationManager.zb?(x=$e.allocAt(tt,Nt,zt,Vt),a.onViewportBoundsChanged(x,a.viewportBounds,Sn,et),$e.free(x),!1):!0}ee=Ye.prototype,ee.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(Ar,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},ee.oi=function(a){this.partManager.oi(a);var y=this;Ac(a,function(x){yc(y,x)}),(a instanceof di||a instanceof Un&&a.placeholder!==null)&&a.v(),a.data!==null&&Ac(a,function(x){ly(y.partManager,x)}),ss(a)!==!0&&Nh(a)!==!0||this.De.add(a),B1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.$b()},ee.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ac(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.$b()},ee.remove=function(a){wp(this,a,!0)};function wp(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(Hr,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}ee.Is=function(a,y){if(y===void 0&&(y=!1),Cn(a))for(var x=a.length,b=0;b<x;b++){var tt=a[b];y&&!tt.canDelete()||this.remove(tt)}else for(x=new gn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},ee.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=nd(this)),this.toolManager!==null){var tt=new Rn;if(a!==null)if(Cn(a))for(var et=0;et<a.length;et++)Bl(this,tt,a[et],x,b);else for(a=a.iterator;a.next();)Bl(this,tt,a.value,x,b);else{for(a=this.parts;a.next();)Bl(this,tt,a.value,x,b);for(a=this.nodes;a.next();)Bl(this,tt,a.value,x,b);for(a=this.links;a.next();)Bl(this,tt,a.value,x,b)}kh(this,tt,y,b,x)}};function Bl(a,y,x,b,tt,et){if(!y.contains(x)&&(et===void 0&&(et=!1),!b||et||x.canMove()||x.canCopy()))if(tt===void 0&&(tt=nd(a)),x instanceof wn){if(y.add(x,a.Pd(tt,x,x.location)),x instanceof Un&&(x.placeholder!==null||tt.dragsMembers))for(et=x.memberParts;et.next();)Bl(a,y,et.value,b,tt,tt.groupsAlwaysMove);for(et=x.linksConnected;et.next();){var nt=et.value;if(!y.contains(nt)){var ht=nt.fromNode,gt=nt.toNode;ht!==null&&y.contains(ht)&&gt!==null&&y.contains(gt)&&Bl(a,y,nt,b,tt)}}if(tt.dragsTree)for(x=x.Ou();x.next();)Bl(a,y,x.value,b,tt)}else if(x instanceof cn)for(y.add(x,a.Pd(tt,x)),x=x.labelNodes;x.next();)Bl(a,y,x.value,b,tt);else x instanceof di||y.add(x,a.Pd(tt,x,x.location))}function kh(a,y,x,b,tt){if(y!==null&&y.count!==0){var et=Ee.alloc(),nt=Ee.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||rd(a,y);for(var ht=oi(),gt=oi(),bt=y.iterator,Pt=Ee.alloc();bt.next();){var Nt=bt.key,zt=bt.value;if(Nt.Zc()){var Vt=xp(a,Nt,y);Vt!==null?ht.push(new st(Nt,zt,Vt)):(!tt||Nt.canMove())&&(Vt=zt.point,et.assign(Vt),a.computeMove(Nt,et.add(nt),b,Pt),Nt.location=Pt,zt.shifted===void 0&&(zt.shifted=new Ee),zt.shifted.assign(Pt.re(Vt)))}else bt.key instanceof cn&&gt.push(bt.sa)}for(Ee.free(Pt),tt=ht.length,bt=0;bt<tt;bt++)Nt=ht[bt],et.assign(Nt.info.point),Nt.Su.shifted===void 0&&(Nt.Su.shifted=new Ee),Nt.node.location=et.add(Nt.Su.shifted);for(tt=Ee.alloc(),bt=Ee.alloc(),Nt=gt.length,zt=0;zt<Nt;zt++){var Zt=gt[zt];if(Vt=Zt.key,Vt instanceof cn)if(Vt.suspendsRouting){Vt.Tg=null,Pt=Vt.fromNode;var oe=Vt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(oe=Zt.value.point,Vt.dragComputation===null)y.add(Vt,a.Pd(b,Vt,nt)),Qu(Vt,nt.x-oe.x,nt.y-oe.y);else{Zt=Ee.allocAt(0,0),(Pt=Vt.i(0))&&Pt.w()&&Zt.assign(Pt);var Pe=Pt=Ee.alloc().assign(Zt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Pe=Ee.alloc(),id(a,Vt,Pt,Pe,b)),Pt.assign(Vt.dragComputation(Vt,Pt,Pe)).re(Zt),y.add(Vt,a.Pd(b,Vt,Pt)),Qu(Vt,Pt.x-oe.x,Pt.y-oe.y),Ee.free(Zt),Ee.free(Pt),Pe!==Pt&&Ee.free(Pe)}else Pt!==null&&(tt.assign(Pt.location),Pe=y.I(Pt),Pe!==null&&tt.re(Pe.point)),oe!==null&&(bt.assign(oe.location),Pe=y.I(oe),Pe!==null&&bt.re(Pe.point)),Pt!==null&&oe!==null?tt.Xa(bt)?(Pt=Zt.value.point,oe=et,oe.assign(tt),oe.re(Pt),y.add(Vt,a.Pd(b,Vt,tt)),Qu(Vt,oe.x,oe.y)):(Vt.suspendsRouting=!1,Vt.bb()):(Zt=Zt.value.point,Pt=Pt!==null?tt:oe!==null?bt:nt,y.add(Vt,a.Pd(b,Vt,Pt)),Qu(Vt,Pt.x-Zt.x,Pt.y-Zt.y))}else(Vt.fromNode===null||Vt.toNode===null)&&(Pt=Zt.value.point,y.add(Vt,a.Pd(b,Vt,nt)),Qu(Vt,nt.x-Pt.x,nt.y-Pt.y))}Ee.free(et),Ee.free(nt),Ee.free(tt),Ee.free(bt),ri(ht),ri(gt),x||(To(a),Lh(a,y))}}Ye.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ee),b.assign(y),a===null)return b;var tt=y,et=x.isGridSnapEnabled;et&&(x.isGridSnapRealtime||this.lastInput.up)&&(tt=Ee.alloc(),id(this,a,y,tt,x)),x=a.dragComputation!==null?a.dragComputation(a,y,tt):tt;var nt=a.minLocation,ht=nt.x;isNaN(ht)&&(ht=et?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=et?Math.round(1e3*a.location.y)/1e3:a.location.y);var gt=a.maxLocation,bt=gt.x;return isNaN(bt)&&(bt=et?Math.round(1e3*a.location.x)/1e3:a.location.x),gt=gt.y,isNaN(gt)&&(gt=et?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ht,Math.min(x.x,bt)),Math.max(nt,Math.min(x.y,gt))),tt!==y&&Ee.free(tt),b};function nd(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function id(a,y,x,b,tt){if(tt===void 0&&(tt=nd(a)),b.assign(x),y!==null){var et=a.grid;y=tt.gridSnapCellSize,a=y.width,y=y.height;var nt=tt.gridSnapOrigin,ht=nt.x;if(nt=nt.y,tt=tt.gridSnapCellSpot,et!==null){var gt=et.gridCellSize;isNaN(a)&&(a=gt.width),isNaN(y)&&(y=gt.height),et=et.gridOrigin,isNaN(ht)&&(ht=et.x),isNaN(nt)&&(nt=et.y)}et=Ee.allocAt(0,0),et.yi(0,0,a,y,tt),Ge.No(x.x,x.y,ht+et.x,nt+et.y,a,y,b),Ee.free(et)}}function rd(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof cn&&(y.suspendsRouting=!0)}function Lh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof cn&&(x.suspendsRouting=!1,Xv(x)&&x.bb())}a.Mr=!1}}function xp(a,y,x){return y=y.containingGroup,y!==null&&(a=xp(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}ee=Ye.prototype,ee.Pd=function(a,y,x){if(x===void 0)return new uu(jo);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new uu(new Ee(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new uu(x.copy())};function bp(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.")}}ee.Al=function(a){bp(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(Ar,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},ee.Ww=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Hr,"layers",this,a,null,b,null));var tt=x.count,et;for(et=0;et<tt;et++)if(x.M(et)===y){x.Gb(et,a);break}return this.cc!==null&&this.cb(Ar,"layers",this,null,a,null,et),this.N(),0>b&&this.Ya(),this},ee.Cy=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Hr,"layers",this,a,null,b,null));var tt=x.count,et;for(et=0;et<tt;et++)if(x.M(et)===y){x.Gb(et+1,a);break}return this.cc!==null&&this.cb(Ar,"layers",this,null,a,null,et+1),this.N(),0>b&&this.Ya(),this},ee.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,tt=b.layerName;tt!==a.name?b.layerName=tt:b.layerName=""}this.cc!==null&&this.cb(Hr,"layers",this,a,null,x,null),this.N(),this.Ya()}}},ee.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},ee.Yw=function(a){return this.pf===null&&(this.pf=new vn),this.pf.add(a),this.model.Pe(a),this},ee.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},ee.Pe=function(a){return this.zg===null&&(this.zg=new vn),this.zg.add(a),this},ee.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},ee.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Rs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},ee.cb=function(a,y,x,b,tt,et,nt){et===void 0&&(et=null),nt===void 0&&(nt=null);var ht=new nr;ht.diagram=this,ht.change=a,ht.propertyName=y,ht.object=x,ht.oldValue=b,ht.oldParam=et,ht.newValue=tt,ht.newParam=nt,this.ds(ht)},ee.g=function(a,y,x,b,tt){this.cb(tr,a,this,y,x,b,tt)},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===tr){var tt=a.object;if(Ki(tt,a.propertyName,a.I(y)),tt instanceof ze){var et=tt.part;et!==null&&et.Wb()}this.isModified=!0}else if(b===Ar){var nt=a.object,ht=a.newParam,gt=a.newValue;if(nt instanceof un)if(typeof ht=="number"&&gt instanceof ze){y?nt.pc(ht):nt.Gb(ht,gt);var bt=nt.part;bt!==null&&bt.Wb()}else typeof ht=="number"&&gt instanceof Rr&&(gt.isRow?c1(nt,ht,y?void 0:gt):f1(nt,ht,y?void 0:gt));else if(nt instanceof co){var Pt=a.oldParam===!0;typeof ht=="number"&&gt instanceof _n&&(y?(gt.isSelected=!1,gt.isHighlighted=!1,gt.Wb(),nt.pc(Pt?ht:-1,gt,Pt)):nt.oi(ht,gt,Pt))}else nt instanceof Ye?typeof ht=="number"&&gt instanceof co&&(y?this.Wa.mb(ht):(gt.Xe(this),this.Wa.Gb(ht,gt))):We("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Hr){var Nt=a.object,zt=a.oldParam,Vt=a.oldValue;if(Nt instanceof un)typeof zt=="number"&&Vt instanceof ze?y?Nt.Gb(zt,Vt):Nt.pc(zt):typeof zt=="number"&&Vt instanceof Rr&&(Vt.isRow?c1(Nt,zt,y?Vt:void 0):f1(Nt,zt,y?Vt:void 0));else if(Nt instanceof co){var Zt=a.newParam===!0;typeof zt=="number"&&Vt instanceof _n&&(y?0>Nt.Pa.indexOf(Vt)&&Nt.oi(zt,Vt,Zt):(Vt.isSelected=!1,Vt.isHighlighted=!1,Vt.Wb(),Nt.pc(Zt?zt:-1,Vt,Zt)))}else Nt instanceof Ye?typeof zt=="number"&&Vt instanceof co&&(y?(Vt.Xe(this),this.Wa.Gb(zt,Vt)):this.Wa.mb(zt)):We("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Rs&&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 Pp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,bl(a),a.N(),a.Ee=!0,b.zb&&(su(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bl(a);else{a.vb=!0;var tt=a.viewportBounds.copy(),et=a.Aa,nt=a.ya,ht=a.zoomPoint.x,gt=a.zoomPoint.y,bt=a.contentAlignment;isNaN(ht)&&(bt.$c()?bt.Hf(ml)?ht=0:bt.Hf(As)&&(ht=et-1):ht=bt.sb()?bt.x*(et-1):et/2),isNaN(gt)&&(bt.$c()?bt.Hf(gl)?gt=0:bt.Hf(Ea)&&(gt=nt-1):gt=bt.sb()?bt.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),et=Ee.allocAt(a.pa.x+ht/y-ht/x,a.pa.y+gt/y-gt/x),a.position=et,Ee.free(et),a.Ca=x,bl(a),a.vb=!1,a.onViewportBoundsChanged(tt,a.viewportBounds,y,!1),La(a,!1),b.zb&&(su(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 tt=this.layout;tt===null||!tt.isViewportSized||this.autoScale!==Wo||a.width===y.width&&a.height===y.height||tt.C(),tt=this.currentTool,this.Vk===!0&&tt instanceof $i&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ig(tt,this)),this.vb||this.invalidateViewport(a,y),xl(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(et){et.isAvoiding&&et.actualBounds.Yc(y)&&et.bb()})}};function xl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=xn.alloc(),tt=1,et=1,nt=x.O.s,ht=nt.length,gt=0;gt<ht;gt++){var bt=nt[gt],Pt=Math.abs(bt.interval);2>Pt||(mv(bt.figure)?et=et*Pt/Ge.vx(et,Pt):tt=tt*Pt/Ge.vx(tt,Pt))}if(nt=x.gridCellSize,b.h(et*nt.width,tt*nt.height),y!==void 0)tt=y.width,et=y.height,a=y.x,nt=y.y;else{if(y=$e.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){$e.free(y);return}tt=y.width,et=y.height,a=y.x,nt=y.y,$e.free(y)}x.width=tt+2*b.width,x.height=et+2*b.height,y=Ee.alloc(),Ge.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),xn.free(b),x.part.location=y,Ee.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,tt=0;tt<b;tt++)x[tt].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),Cn(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()}},ee=Ye.prototype,ee.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},ee.Jz=function(a){a=new gn().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},ee.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",tt=0,et=Ee.alloc();if(a==="pixel")tt=x;else if(a==="line")tt=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(tt=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){tt=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=et.h(x.x,tt.y):y==="left"?this.position=et.h(tt.x,x.y):y==="down"?this.position=et.h(x.x,tt.bottom-x.height):y==="right"&&(this.position=et.h(tt.right-x.width,x.y)),Ee.free(et);return}We("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}tt/=this.scale,x=this.position,y==="up"?this.position=et.h(x.x,x.y-tt):y==="down"?this.position=et.h(x.x,x.y+tt):y==="left"?this.position=et.h(x.x-tt,x.y):y==="right"?this.position=et.h(x.x+tt,x.y):We("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ee.free(et)},ee.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)},ee.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},ee.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)},ee.zA=function(a){var y=this.Ab,x=a.x,b=a.y,tt=x+a.width,et=b+a.height,nt=y.m11,ht=y.m12,gt=y.m21,bt=y.m22,Pt=y.dx,Nt=y.dy,zt=x*nt+b*gt+Pt;y=x*ht+b*bt+Nt;var Vt=tt*nt+b*gt+Pt;return a=tt*ht+b*bt+Nt,b=x*nt+et*gt+Pt,x=x*ht+et*bt+Nt,nt=tt*nt+et*gt+Pt,tt=tt*ht+et*bt+Nt,et=Math.min(zt,Vt),zt=Math.max(zt,Vt),Vt=Math.min(y,a),y=Math.max(y,a),et=Math.min(et,b),zt=Math.max(zt,b),Vt=Math.min(Vt,x),y=Math.max(y,x),et=Math.min(et,nt),zt=Math.max(zt,nt),Vt=Math.min(Vt,tt),y=Math.max(y,tt),new $e(et,Vt,zt-et,y-Vt)},ee.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),Er(a.copy(),this.Ab)};function tm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Cp(a){return a=hd.get(a),a!==null?new a:new Pi}Ye.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Rs&&b[0]==="S")if(b==="StartingFirstTransaction"){var tt=this;a=this.toolManager,a.mouseDownTools.each(function(gt){return gt.diagram=tt}),a.mouseMoveTools.each(function(gt){return gt.diagram=tt}),a.mouseUpTools.each(function(gt){return gt.diagram=tt}),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===Rs){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),To(this));var et=this.animationManager;b==="RolledBackTransaction"&&et.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Zf(et),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(),Gg(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ht=this;dr(function(){ht.currentTool.standardMouseOver(),ht.Rt=!1},10)}}}finally{this.aa=!0}}}};function yc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Th(a,y[b])}function Th(a,y){if(y instanceof bs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof gn&&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 Ep(a,y){if(y instanceof bs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",tt=a.Og.I(b);if(tt!==null){for(var et=0;et<tt.length;et++)if(tt[et]===y){tt.splice(et,1),tt.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 gn&&x.Bg.remove(a),Pd(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)},ee=Ye.prototype,ee.Lc=function(a){return this.partManager.Lc(a)},ee.ii=function(a){return this.partManager.ii(a)},ee.Kc=function(a){return this.partManager.Kc(a)},ee.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:ms(mr(y)))},ee.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:ms(mr(y)))};function bl(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 Ap(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),La(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}ee.Va=function(){if(this.Zi){var a=$e.alloc();Ap(this,this.computeBounds(a)),$e.free(a)}},ee.rz=function(){for(var a=new gn,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},ee.qz=function(){return this.ai.iterator},ee.Uz=function(a){To(this),a&&od(this,!0),this.ld?Mp(this,!1):(this.Jk=!0,fa(this))};function od(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 Mp(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,tt=a.layout,et=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!et.defaultAnimation.isAnimating&&!et.zb&&(y||Dl(et,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)kp(a,nt.value,y,b);tt.isValidLayout||(!y||tt.isRealtime||tt.isRealtime===null||b===0?(tt.doLayout(a),To(a),tt.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||Zf(et),a.aa=x}}}function kp(a,y,x,b){if(y!==null){for(var tt=y.gl.iterator;tt.next();)kp(a,tt.value,x,b);tt=y.layout,tt===null||tt.isValidLayout||(!x||tt.isRealtime||b===0?(y.rh=!y.location.w(),tt.doLayout(y),y.C(32),af(a,y),tt.isValidLayout=!0):a.xh=!0)}}ee.yz=function(){for(var a=new vn,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(tt){var et=tt.toLowerCase(),nt=new vn;x.add(tt,nt),x.add(et,nt),b.add(tt,tt),b.add(et,tt)}var x=new Rn,b=new Rn;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 sd(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)}ee.Bj=function(a,y){return a=sd(this,a),a!==null&&a.add(y),this},ee.am=function(a,y){a=sd(this,a),a!==null&&a.remove(y)},ee.R=function(a,y,x){var b=sd(this,a),tt=new Au;if(tt.diagram=this,a=nm(this,a),a!==null&&(tt.name=a),y!==void 0&&(tt.subject=y),x!==void 0&&(tt.parameter=x),y=b.length,y===1)b.M(0)(tt);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(tt)};function ad(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}ee.Yj=function(a,y){return ld(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?dp(this,a):a.assign(this.documentBounds)};function ld(a,y,x,b){var tt=a.Xh;if(tt===null&&(a.Xh=tt=new ig(a.avoidanceCellSize)),tt.vs||tt.group!==x||tt.Yx!==b){if(tt.Hx=Math.max(tt.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),tt.Ix=Math.max(tt.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=im(a,x)),x===null){y=$e.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),tt.initialize(y);for(var et=a.nodes;et.next();){var nt=et.value,ht=nt.layer;ht!==null&&ht.visible&&!ht.isTemporary&&ud(a,nt,b,y)}$e.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),tt.initialize(y)),y=$e.alloc(),et=x.memberParts;et.next();)nt=et.value,nt instanceof wn&&ud(a,nt,b,y);$e.free(y)}tt.group=x,tt.Yx=b,tt.vs=!1}else y&&oS(tt);return tt}function im(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?im(a,y.containingGroup):null}function ud(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var tt=y.x,et=y.y;if(Ld(a,tt,et))for(x=(et-a.Od)/a.sc|0,b=Math.min((tt+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((et+y.height-a.Od)/a.sc|0,a.ei),tt=(tt-a.Nd)/a.rc|0;tt<=b;tt++)if(et=a.ac[tt],et.fill)et.fill(qu,x,y+1);else for(var nt=x;nt<=y;nt++)et[nt]=qu}else if(y instanceof Un)for(y=y.memberParts;y.next();)tt=y.value,tt instanceof wn&&ud(a,tt,x,b)}}function Gu(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():Lp(this)};function Lp(a){a.vk===-1&&(a.vk=dr(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=$e.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Ap(a,y),$e.free(y),a.Fc=!0,a.bd(),Lp(a))}},a.vp))}Ye.prototype.ug=function(){this.vk!==-1&&(bn.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,tt=this.scale;b=$e.allocAt(0,0,b.width*tt,b.height*tt);var et=Ee.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,et.x-=nt,a.x<b.x+x.left/2&&(et.x-=nt),a.x<b.x+x.left/4&&(et.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,et.x+=nt,a.x>b.x+b.width-x.right/2&&(et.x+=nt),a.x>b.x+b.width-x.right/4&&(et.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,et.y-=nt,a.y<b.y+x.top/2&&(et.y-=nt),a.y<b.y+x.top/4&&(et.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,et.y+=nt,a.y>b.y+b.height-x.bottom/2&&(et.y+=nt),a.y>b.y+b.height-x.bottom/4&&(et.y+=4*nt)),et.Xa(jo)||(y=new Ee(y.x+et.x/tt,y.y+et.y/tt)),$e.free(b),Ee.free(et),y},ee=Ye.prototype,ee.Cs=function(){return null},ee.av=function(){return null},ee.bs=function(a,y){this.pj.add(a,y)},ee.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Un&&(y.$p=null)})};function lf(a,y,x){function b(){var Pt=+new Date;for(et=!0,nt.reset();nt.next();)if(!nt.value[0].al){et=!1;break}et||Pt-bt>gt?y(x,tt,ht):bn.requestAnimationFrame(b)}for(var tt=x.callback,et=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){et=!1;break}if(typeof tt!="function"||et)return y(x,tt,a);var ht=a,gt=x.callbackTimeout||300,bt=+new Date;return bn.requestAnimationFrame(function(){b()}),null}ee.Wz=function(a){return gr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},ee.Jx=function(a){return a===void 0&&(a={}),lf(this,this.Xz,a)},ee.Xz=function(a,y,x){var b=rm(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var tt=null;if(x!==null)switch(tt=a.returnType,tt===void 0?tt="string":tt=tt.toLowerCase(),tt){case xc+"data":tt=b.getImageData(0,0,x.width,x.height);break;case xc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),tt=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:tt=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(tt),null):tt};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 tt=y.size||null,et=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(et="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new xn(1/0,1/0):new xn(2e3,2e3));var ht=y.position||null,gt=y.parts||null,bt=y.padding===void 0?1:y.padding,Pt=y.background||null,Nt=y.omitTemporary;Nt===void 0&&(Nt=!0);var zt=y.document||document,Vt=y.elementFinished||null,Zt=y.showTemporary;Zt===void 0&&(Zt=!Nt),y=y.showGrid,y===void 0&&(y=Zt),tt!==null&&isNaN(tt.width)&&isNaN(tt.height)&&(tt=null),typeof bt=="number"?bt=new Yn(bt):bt instanceof Yn||We("MakeImage padding must be a Margin or a number."),bt.left=Math.max(bt.left,0),bt.right=Math.max(bt.right,0),bt.top=Math.max(bt.top,0),bt.bottom=Math.max(bt.bottom,0),a.ib.Vc(!0),Nt=new _a(null,zt,void 0,!0);var oe=Nt.context;if(!(tt||et||gt||ht))return Nt.width=a.Aa+Math.ceil(bt.left+bt.right),Nt.height=a.ya+Math.ceil(bt.top+bt.bottom),x==="SVG"?b===null?null:(b.resize(Nt.width,Nt.height,Nt.width,Nt.height),b.ownerDocument=zt,b.hs=Vt,ed(a,b.context,bt,new xn(Nt.width,Nt.height),a.Ca,a.pa,gt,Pt,Zt,y),b.context):(a.Xm=!1,ed(a,oe,bt,new xn(Nt.width,Nt.height),a.Ca,a.pa,gt,Pt,Zt,y),a.Xm=!0,Nt.context);var Pe=a.Pp,de=a.documentBounds.copy();if(de.Fv(a.yb),Zt)for(var Le=a.Wa.s,Oe=Le.length,De=0;De<Oe;De++){var Re=Le[De];if(Re.visible&&Re.isTemporary){Re=Re.Pa.s;for(var Ve=Re.length,Sn=0;Sn<Ve;Sn++){var Mn=Re[Sn];Mn.isInDocumentBounds&&Mn.isVisible()&&(Mn=Mn.actualBounds,Mn.w()&&de.ed(Mn))}}}if(Le=new Ee(de.x,de.y),gt!==null){for(Oe=new $e(0,0,0,0),De=!0,Re=gt.iterator,Re.reset();Re.next();)Ve=Re.value,Ve instanceof _n&&(Sn=Ve.layer,Sn!==null&&!Sn.visible||Sn!==null&&!Zt&&Sn.isTemporary||!Ve.isVisible()||(Ve=Ve.actualBounds,Ve.w()&&(De?(De=!1,Oe.assign(Ve)):Oe.ed(Ve))));de.width=Oe.width,de.height=Oe.height,Le.x=Oe.x,Le.y=Oe.y}return ht!==null&&ht.w()&&(Le=ht,et||(et=Pe)),Oe=ht=0,bt!==null&&(ht=bt.left+bt.right,Oe=bt.top+bt.bottom),De=Re=0,tt!==null&&(Re=tt.width,De=tt.height,isFinite(Re)&&(Re=Math.max(0,Re-ht)),isFinite(De)&&(De=Math.max(0,De-Oe))),tt!==null&&et!==null?(et==="NaN"&&(et=Pe),tt.w()?(tt=Re,de=De):isNaN(De)?(tt=Re,de=de.height*et):(tt=de.width*et,de=De)):tt!==null?tt.w()?(et=Math.min(Re/de.width,De/de.height),tt=Re,de=De):isNaN(De)?(et=Re/de.width,tt=Re,de=de.height*et):(et=De/de.height,tt=de.width*et,de=De):et!==null?et==="NaN"&&nt.w()?(et=Math.min((nt.width-ht)/de.width,(nt.height-Oe)/de.height),et>Pe?(et=Pe,tt=de.width,de=de.height):(tt=nt.width,de=nt.height)):(tt=de.width*et,de=de.height*et):(et=Pe,tt=de.width,de=de.height),bt!==null?(tt+=ht,de+=Oe):bt=new Yn(0),nt!==null&&(Pe=nt.width,nt=nt.height,isNaN(Pe)&&(Pe=2e3),isNaN(nt)&&(nt=2e3),isFinite(Pe)&&(tt=Math.min(tt,Pe)),isFinite(nt)&&(de=Math.min(de,nt))),Nt.width=Math.ceil(tt),Nt.height=Math.ceil(de),x==="SVG"?b===null?null:(b.resize(Nt.width,Nt.height,Nt.width,Nt.height),b.ownerDocument=zt,b.hs=Vt,ed(a,b.context,bt,new xn(Math.ceil(tt),Math.ceil(de)),et,Le,gt,Pt,Zt,y),b.context):(a.Xm=!1,ed(a,oe,bt,new xn(Math.ceil(tt),Math.ceil(de)),et,Le,gt,Pt,Zt,y),a.Xm=!0,Nt.context)}qe.Object.defineProperties(Ye.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Dt||(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 Pl(this,bn.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 Pl(this,bn.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(bn,"resize",this.Ov,!1),this.removeEventListener(bn,"wheel",this.$j,!0),Il===this&&(Il=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),cp(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)&&ti(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),La(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),La(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),La(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),La(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ti(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&&ti(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 ti(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=hp(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Dl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(et){return y.ik(et)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cp(this.cc.type);for(var tt=0;tt<x.length;tt++)this.add(x[tt]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(et){return a.Pe(et)}),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(bn,"pointermove",this.dk,!0),this.addEventListener(bn,"pointerdown",this.ui,!0),this.addEventListener(bn,"pointerup",this.fk,!0),this.addEventListener(bn,"pointerout",this.ek,!0),this.addEventListener(bn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(bn,"wheel",this.$j,!0),this.addEventListener(bn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(bn,"pointermove",this.dk,!0),this.removeEventListener(bn,"pointerdown",this.ui,!0),this.removeEventListener(bn,"pointerup",this.fk,!0),this.removeEventListener(bn,"pointerout",this.ek,!0),this.removeEventListener(bn,"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(bn,"wheel",this.$j,!0),this.removeEventListener(bn,"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=Ee.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Ug(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?bl(this):(this.vb=!0,a=this.scale,pp(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)}Ee.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=Qg(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Qg(this)),a.type!==un.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),xl(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),bl(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 Yn(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===Uu&&La(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,La(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,Pp(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&&Pp(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!==Wo&&La(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)):ti(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)):ti(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),La(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 Yn(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();)Kp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Hu&&a!==Fr&&a!==cd&&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 xn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),qe.Object.defineProperties(Ye,{licenseKey:{get:function(){return Dp.jc()},set:function(a){Dp.add(a.replace(/\s/g,""))}},version:{get:function(){return wc}}}),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 hd=new Rn,om=null,gr=bn.document!==void 0,Sc=null,_h="",Wo=new sn(Ye,"None",0),$s=new sn(Ye,"Uniform",1),Oh=new sn(Ye,"UniformToFill",2),uf=new sn(Ye,"CycleAll",10),Tp=new sn(Ye,"CycleNotDirected",11),_p=new sn(Ye,"CycleNotDirectedFast",12),Op=new sn(Ye,"CycleNotUndirected",13),jp=new sn(Ye,"CycleDestinationTree",14),Np=new sn(Ye,"CycleSourceTree",15),Uu=new sn(Ye,"DocumentScroll",1),hf=new sn(Ye,"InfiniteScroll",2),Hu=new sn(Ye,"TreeParentCollapsed",21),Fr=new sn(Ye,"AllParentsCollapsed",22),cd=new sn(Ye,"AnyParentsCollapsed",23),Dp=new vn,wc="2.3.10",xc="image",cf=null,sm=!1;function Bo(){if(gr){var a=bn.document.createElement("canvas"),y=a.getContext("2d"),x=mn("7ca11abfd022028846");y[x]=mn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Bn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Xn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ge.za],tt=1;5>tt;tt++)y[mn("7ca11abfd7330390")](mn(b[tt-1]),10,15*tt);for(y[x]=mn("39f046ebb36e4b"),x=1;5>x;x++)y[mn("7ca11abfd7330390")](mn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Xn.prototype.Cd=Xn.prototype.Eu),cf=a}}Ye.className="Diagram",Ye.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=bn.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){gr=a?bn.document!==void 0:!1},Ye.isUsingDOM=function(){return gr},Ye.None=Wo,Ye.Uniform=$s,Ye.UniformToFill=Oh,Ye.CycleAll=uf,Ye.CycleNotDirected=Tp,Ye.CycleNotDirectedFast=_p,Ye.CycleNotUndirected=Op,Ye.CycleDestinationTree=jp,Ye.CycleSourceTree=Np,Ye.DocumentScroll=Uu,Ye.InfiniteScroll=hf,Ye.TreeParentCollapsed=Hu,Ye.AllParentsCollapsed=Fr,Ye.AnyParentsCollapsed=cd;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function bc(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=bn[mn("76a715b2f73f148a")][mn("72ba13b5")]||"";if(a.Rc=!0,gr){var b=Ye[mn("76a115b6ed251eaf4692")];if(b)for(var tt=Dp.iterator;tt.next()&&(b=tt.value,b=mn(b).split(mn("39e9")),!(6>b.length));){var et=mn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=mn(Bn[mn("6cae19")]).split(".");if(et[0]>nt[0]||et[0]===nt[0]&&et[1]>=nt[1]){var ht=bn[mn("74a900bae4370f8b51")][mn("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ht[mn("73a612b6fb191d")](mn("3aad1ab6e022098b4dc4")),et=mn(b[2]),-1<nt&&(ht=ht[mn("73a612b6fb191d")](et.toLowerCase()+"/"),a.Rc=!(-1<ht&&ht<nt),!a.Rc))break;for(nt=x[mn("76ad18b4f73e")],ht=x[mn("73a612b6fb191d")](mn("35e7"))+2;ht<nt;ht++)y+=x[ht];if(nt=y[mn("73a612b6fb191d")](et),0>nt&&et!==mn("7da71ca0ad381e90")&&(nt=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>nt&&(nt=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>nt&&(nt=y[mn("73a612b6fb191d")](mn("2bfa41fdb3784bca12"))),0>nt&&(nt=x[mn("73a612b6fb191d")](mn("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[mn("73a612b6fb191d")](mn("35"))||y[mn("73a612b6fb191d")](mn("35"))===-1),!a.Rc||x[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[mn("73a612b6fb191d")](et)),!a.Rc)||(nt=bn[mn("76a715b2f73f148a")][mn("69ad17a1e03e")],ht=nt[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e")),-1<ht&&(a.Rc=!(nt[mn("73a612b6fb191d")](et)>ht),!a.Rc)))break;if(et[0]==="#"){nt=bn.document.createElement("div");for(var gt=b[0].replace(/[A-Za-z]/g,"");4>gt.length;)gt+="9";if(ht=gt,gt=gt.substr(gt.length-4),b="",b+=["gsh","gsf"][parseInt(gt.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(gt.substr(0,1),10)%4],nt[mn("79a417a0f0181a8946")]=b,bn.document[mn("78a712aa")]){bn.document[mn("78a712aa")][mn("7bb806b6ed32388c4a875b")](nt),gt=bn.getComputedStyle(nt).getPropertyValue(mn("78a704b7e62456904c9b12701b6532a8"));var bt=bn.getComputedStyle(nt).getPropertyValue(mn("75b817b0ea2202"));if(bn.document[mn("78a712aa")][mn("68ad1bbcf533388c4a875b")](nt),gt){if(nt=bn[mn("77a902b0eb1b1e804a8a")],bt==="0."+parseInt(ht,10)%100||gt.indexOf(parseInt(et[1]+et[2],16))!==-1&&gt.indexOf(parseInt(et[3]+et[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(mn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,et=0;et<document.styleSheets.length;et++){nt=document.styleSheets[et].rules||document.styleSheets[et].cssRules;for(var Pt in nt)if(b===nt[Pt].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(Pt=x[mn("76ad18b4f73e")],tt=x[mn("73a612b6fb191d")](mn("35e7"))+2;tt<Pt;tt++)y+=x[tt];x=y[mn("73a612b6fb191d")](mn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[mn("73a612b6fb191d")](mn("35")))}}}return 0<a.Rc&&a!==a.wy}am.className="DiagramHelper";function uu(a){this.j=a===void 0?new Ee:a,this.o=new Ee}qe.Object.defineProperties(uu.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 ff="DraggingInfo";uu.className="DraggingInfo";function st(a,y,x){this.node=a,this.info=y,this.Su=x}st.className="DraggingNodeInfoPair";function mt(){this.reset()}mt.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new xn(NaN,NaN).freeze(),this.gridSnapCellSpot=vo,this.gridSnapOrigin=new Ee(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},mt.className="DraggingOptions";function Ot(a,y){if(typeof a=="string"||bn.Element&&a instanceof Element)var x=Ye.call(this,a)||this;else x=Ye.call(this)||this,y=a;return Tt(x),y&&x.nm(y),x}en(Ot,Ye);function Tt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Zs,a.layout=new wo}Ot.prototype.reset=function(){Ye.prototype.reset.call(this),Tt(this)},Ot.className="Palette";function Dt(a,y){if(typeof a=="string"||bn.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 tt=new Wn;return tt.stroke="magenta",tt.strokeWidth=2,tt.fill="transparent",tt.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(tt),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Yn(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Ce,x.toolManager.mouseMoveTools),x.click=function(){var et=b.observed;if(et!==null){var nt=et.viewportBounds,ht=b.lastInput.documentPoint;et.position=new Ee(ht.x-nt.width/2,ht.y-nt.height/2)}},x.Pf=function(){b.Ya(),ce(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&&ce(b)},x.autoScale=$s,x.vb=!1,y&&Object.assign(x,y),x}en(Dt,Ye),Dt.prototype.computePixelRatio=function(){return 1},Dt.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(mc(this),this.ql===null){var x=new _a(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),qt(this)}finally{this.ta=a,this.ib=y}}}Ye.prototype.redraw.call(this)},Dt.prototype.gc=function(){if(this.Ka===null&&We("No div specified"),this.ta===null&&We("No canvas specified"),!(this.ta instanceof Pl)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){mc(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?qt(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 qt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,tt=y.grid;b&&tt!==null&&tt.visible&&!isNaN(tt.width)&&!isNaN(tt.height)&&(tt=$e.alloc().assign(a.viewportBounds).ed(y.viewportBounds),xl(y,tt),$e.free(tt),To(y));var et=a.Ab;et.reset(),a.scale!==1&&et.scale(a.scale),a.position.x===0&&a.position.y===0||et.translate(-a.position.x,-a.position.y),tt=a.ib,tt.scale(a.Mb,a.Mb),tt.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),tt.yc(),y=y.Wa.s,et=y.length;for(var nt=0;nt<et;nt++){var ht=y[nt],gt=a;if(ht.visible&&ht.opacity!==0){var bt=ht.diagram.grid.part;if(!x&&ht.isTemporary)b&&bt.layer===ht&&(ht=lu(ht,tt),bt.gc(tt,gt),tt.globalAlpha=ht);else{for(var Pt=lu(ht,tt),Nt=gt.scale,zt=$e.alloc(),Vt=ht.Pa.s,Zt=Vt.length,oe=0;oe<Zt;oe++){var Pe=Vt[oe];(b||Pe!==bt)&&ht.Oj(tt,Pe,gt,null,Nt,zt,!1)}$e.free(zt),tt.globalAlpha=Pt}}}}}function ce(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,tt=xn.alloc();tt.h(x.width,x.height),b.desiredSize=tt,xn.free(tt),a=2/a.scale,b instanceof Wn&&(b.strokeWidth=a),y.location=new Ee(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Dt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Jo;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Dt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Dt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ce(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))},qe.Object.defineProperties(Dt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Dt&&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),ce(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),ce(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)}}}),Dt.className="Overview";function Ce(){sr.call(this),this.j=null}en(Ce,sr),Ce.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 Ee(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ee(a.x-this.j.x,a.y-this.j.y)),!0)},Ce.prototype.doActivate=function(){this.j=null,sr.prototype.doActivate.call(this)},Ce.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ce.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 Ee(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ee(a.x-this.j.x,a.y-this.j.y)}}},Ce.className="OverviewDraggingTool";function be(){qi(this),this.H=Il,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=Jo,this.hb=!0,this.cg=null,this.ob=200}be.prototype.toString=function(){return"CommandHandler"},be.prototype.Xe=function(a){this.H=a},be.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=cr?y.meta:y.control,b=y.shift,tt=y.alt,et=y.key;!x||et!=="C"&&et!=="Insert"?x&&et==="X"||b&&et==="Del"?this.canCutSelection()&&this.cutSelection():x&&et==="V"||b&&et==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&et==="Y"||tt&&b&&et==="Backspace"?this.canRedo()&&this.redo():x&&et==="Z"||tt&&et==="Backspace"?this.canUndo()&&this.undo():et==="Del"||et==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&et==="A"?this.canSelectAll()&&this.selectAll():et==="Esc"?this.canStopCommand()&&this.stopCommand():et==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):et==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):et==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):et==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):et==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):et==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):et==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):et==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):et===" "?this.canScrollToPart()&&this.scrollToPart():et==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():et==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&et==="0"?this.canResetZoom()&&this.resetZoom():b&&et==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&et==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&et==="G"?this.canUngroupSelection()&&this.ungroupSelection():et==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():et==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},be.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},be.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof $i&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},be.prototype.canStopCommand=function(){return!0},be.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=""}},be.prototype.canSelectAll=function(){return this.diagram.allowSelect},be.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 gn,x=a.selection.iterator;x.next();)Ih(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=""}},be.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},be.prototype.copySelection=function(){var a=this.diagram,y=new gn;for(a=a.selection.iterator;a.next();)Ih(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},be.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},be.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},be.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},be.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Sc=null,_h="";else{x=y.model;var b=!1,tt=!1,et=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(tt=x.Ij,x.Ij=this.copiesGroupKey),et=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=tt),x=new vn,x.addAll(et),Sc=x,_h=y.model.dataFormat}}y.R("ClipboardChanged",x)},be.prototype.pasteFromClipboard=function(){var a=new gn,y=Sc;if(y===null)return a;var x=this.diagram;if(_h!==x.model.dataFormat)return a;var b=x.model,tt=!1,et=!1,nt=null;try{b.Tl()&&(tt=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(et=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=tt),b.Wj()&&(b.Ij=et),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},be.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 tt=y.computePartsBounds(y.selection);if(tt.w()){var et=this.computeEffectiveCollection(y.selection,y.Wm);kh(y,et,new Ee(a.x-tt.centerX,a.y-tt.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},be.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Sc===null||Sc.count===0||_h!==a.model.dataFormat)},be.prototype.undo=function(){this.diagram.undoManager.undo()},be.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},be.prototype.redo=function(){this.diagram.undoManager.redo()},be.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},be.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Wo&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},be.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Wo?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},be.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Wo&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},be.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Wo?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},be.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},be.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},be.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Dl(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=Jo):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Zf(y)},be.prototype.canZoomToFit=function(){return this.diagram.allowZoom},be.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(gt){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;Dl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var tt=Fe(this,a,[a]);if(tt.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var et=function(){y.Ea();for(var gt=tt.pop();0<tt.length&&gt instanceof wn&&gt.isTreeExpanded&&(!(gt instanceof Un)||gt.isSubGraphExpanded);)gt=tt.pop();0<tt.length?(gt instanceof _n&&y.tv(gt.actualBounds),gt instanceof wn&&!gt.isTreeExpanded&&(gt.isTreeExpanded=!0),gt instanceof Un&&!gt.isSubGraphExpanded&&(gt.isSubGraphExpanded=!0)):(gt instanceof _n&&y.es(gt.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){dr(et,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),et()}}else{var ht=y.position.copy();y.es(a.actualBounds),ht.Xa(y.position)&&x.Cc()}}};function Fe(a,y,x){if(y.isVisible())return x;if(y instanceof di)Fe(a,y.adornedPart,x);else if(y instanceof cn){var b=y.fromNode;b!==null&&Fe(a,b,x),y=y.toNode,y!==null&&Fe(a,y,x)}else y instanceof wn&&(b=y.labeledLink,b!==null&&Fe(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Fe(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Fe(a,y,x));return x}be.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)},be.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Dl(y.animationManager,"Collapse Tree");var x=new vn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof wn&&tt.isTreeExpanded&&(tt.collapseTree(),x.add(tt))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},be.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof wn&&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 wn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},be.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Dl(y.animationManager,"Expand Tree");var x=new vn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof wn&&!tt.isTreeExpanded&&(tt.expandTree(),x.add(tt))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},be.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof wn)||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 wn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},be.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 tt=new vn,et=a.selection.iterator;et.next();){var nt=et.value;nt.Zc()&&nt.canGroup()&&tt.add(nt)}for(var ht=new vn,gt=tt.iterator;gt.next();){var bt=gt.value;et=!1;for(var Pt=tt.iterator;Pt.next();)if(bt.Td(Pt.value)){et=!0;break}et||ht.add(bt)}if(0<ht.count){var Nt=ht.first().containingGroup;if(Nt!==null)for(;Nt!==null;){tt=!1;for(var zt=ht.iterator;zt.next();)if(!zt.value.Td(Nt)){tt=!0;break}if(tt)Nt=Nt.containingGroup;else break}if(x instanceof Un)Oa(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Vt=y.copyNodeData(x);on(Vt)&&(y.xf(Vt),b=a.ii(Vt))}if(b!==null){Nt!==null&&this.isValidMember(Nt,b)&&(b.containingGroup=Nt);for(var Zt=ht.iterator;Zt.next();){var oe=Zt.value;this.isValidMember(b,oe)&&(oe.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},be.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 Qe(a){var y=oi();for(a=a.iterator;a.next();){var x=a.value;x instanceof cn||y.push(x)}a=new gn,x=y.length;for(var b=0;b<x;b++){for(var tt=y[b],et=!0,nt=0;nt<x;nt++)if(tt.Td(y[nt])){et=!1;break}et&&a.add(tt)}return ri(y),a}be.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof cn)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},be.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 vn;if(a!==null)b.add(a);else for(var tt=y.selection.iterator;tt.next();){var et=tt.value;et instanceof Un&&et.canUngroup()&&b.add(et)}var nt=new vn;if(0<b.count){y.clearSelection(!0);for(var ht=b.iterator;ht.next();){var gt=ht.value;gt.expandSubGraph();var bt=gt.containingGroup,Pt=bt!==null&&bt.data!==null?x.wa(bt.data):void 0;nt.addAll(gt.memberParts);for(var Nt=nt.iterator;Nt.next();){var zt=Nt.value;if(zt.isSelected=!0,!(zt instanceof cn)){var Vt=zt.data;Vt!==null?x.mp(Vt,Pt):zt.containingGroup=bt}}y.remove(gt)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},be.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 Un))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Un&&y.canUngroup())return!0;return!1},be.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Qe(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},be.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Dl(y.animationManager,"Collapse SubGraph");var x=new vn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof Un&&tt.isSubGraphExpanded&&(tt.collapseSubGraph(),x.add(tt))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},be.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Un&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Un&&y.isSubGraphExpanded)return!0;return!1},be.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Dl(y.animationManager,"Expand SubGraph");var x=new vn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof Un&&!tt.isSubGraphExpanded&&(tt.expandSubGraph(),x.add(tt))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},be.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Un&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Un&&!y.isSubGraphExpanded)return!0;return!1},be.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 tt=b.value;if(tt.canEdit()){a=tt;break}}if(a===null)return;a=a.Nl(function(et){return et instanceof Ni&&et.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},be.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 Ni))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 Ni&&x.editable}),a!==null))return!0;return!1},be.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,tt=null;a instanceof ze?tt=a.ga(wi):y.viewportBounds.ca(b.documentPoint)||(tt=y.viewportBounds,tt=new Ee(tt.x+tt.width/2,tt.y+tt.height/2)),tt!==null&&(b.viewPoint=y.op(tt),b.documentPoint=tt,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,ou(x,!1,a)}},be.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)},be.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),tt=x.currentTool===b;if(y===void 0&&(y=tt?b.dragOptions:x.Wm),b=new Rn,a===null)return b;for(var et=a.iterator;et.next();)Bl(x,b,et.value,tt,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(et=a.iterator;et.next();)a=et.value,a instanceof cn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},qe.Object.defineProperties(be.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}}}),be.className="CommandHandler",Xg=function(){return new be};function ze(){qi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ee(NaN,NaN).freeze(),this.jd=Jr,this.Ab=new Xn,this.wh=new Xn,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ra,this.uc=new $e(NaN,NaN,NaN,NaN).freeze(),this.Ib=new $e(NaN,NaN,NaN,NaN).freeze(),this.dc=new $e(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=oo,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 ln,an,kn,Tn,In,Hn,ni,Kn,ui,Ai;ze.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=xi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},ze.prototype.Vw=function(a){var y=this.Dh;if(Cn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},ze.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},ze.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},ze.prototype.copy=function(){return this.clone()},ee=ze.prototype,ee.qb=function(a){a.classType===cn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:We("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===ze&&(this.stretch=a)},ee.toString=function(){return Zn(this.constructor)+"#"+Kr(this)},ee.th=function(){this.A!==null&&(this.A.nc=!0)};function Vn(a){a.A===null?a.A=new pf:a.A.nc&&(a.A=a.A.copy())}ee.Xc=function(){if(this.ba===null){var a=new Ip;a.Xi=$r,a.yj=$r,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},ee.cb=function(a,y,x,b,tt,et,nt){var ht=this.part;if(ht!==null&&(ht.gk(a,y,x,b,tt,et,nt),x===this&&a===tr&&Co(this)&&Hi(this,ht,y),et=this.diagram,this.animationTriggers===null||et===null||!et.pi||et.undoManager.isUndoingRedoing||et.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&et.animationManager.isEnabled&&!et.animationManager.isTicking&&(this.jo===null&&(this.jo=new Rn),nt=et.undoManager.transactionLevel===0,a.startCondition===Eh?nt=!0:a.startCondition===fc&&(nt=!1),nt?(et=new Lo,Wg(a,et),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,et),et.vu=this,et.Nw=a,et.add(this,y,b,tt),et.start()):(Dl(et.animationManager,"Trigger"),et.animationManager.defaultAnimation.add(this,y,b,tt)))),this instanceof un&&x===ht&&(ht.l&16777216)!==0&&ht.data!==null))for(x=this.O.s,b=x.length,tt=0;tt<b;tt++)ht=x[tt],ht instanceof un&&Ac(ht,function(gt){gt.data!==null&&gt.l&16777216&&gt.La(y)})};function Hi(a,y,x){var b=a.ih();if(b!==null)for(var tt=a.localBindings.iterator;tt.next();){var et=tt.value,nt=null;if(et.sourceName!==null){if(nt=MS(et,b,a),nt===null)continue;et.sp(a,nt,x,null)}else if(et.isToModel){var ht=y.diagram;ht===null||ht.skipsModelSourceBindings||et.sp(a,ht.model.modelData,x,b)}else{if(ht=b.data,ht===null)continue;var gt=y.diagram;gt===null||gt.skipsModelSourceBindings||et.sp(a,ht,x,b)}nt===a&&(ht=b.ks(et.Ai),ht!==null&&et.Mv(ht,nt,x))}}ee.ks=function(a){return this.bindingId===a?this:null},ee.g=function(a,y,x){this.cb(tr,a,this,y,x)},ee.Ge=function(a,y,x,b){var tt=this.uc;if(tt.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Xn);var et=this.Lb;et.reset(),this.no(et,a,y,x,b),et.pp(tt)}};function no(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}ee.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Zr(a.x,a.y,0,0,0,b.height)<=y||Zr(a.x,a.y,0,b.height,b.width,b.height)<=y||Zr(a.x,a.y,b.width,b.height,b.width,0)<=y||Zr(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},ee.se=function(){return!0},ee.ca=function(a){var y=Ee.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ee.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var tt=b.Ql("extraTouchThreshold"),et=b.Ql("extraTouchArea"),nt=et/2,ht=this.naturalBounds;b=this.Df()*b.scale;var gt=1/b;if(ht.width*b<tt&&ht.height*b<tt)return a=Eo(x.x-nt*gt,x.y-nt*gt,x.width+et*gt,x.height+et*gt,y.x,y.y),Ee.free(y),a}return tt=!1,(this instanceof di||this instanceof Wn?Eo(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)?tt=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?tt=!0:tt=this.gh(a)),Ee.free(y),tt},ee.gh=function(a){var y=this.naturalBounds;return Eo(0,0,y.width,y.height,a.x,a.y)},ee.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=$e.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,tt=Ee.allocAt(a.x,a.y);return y.ca(x.Cd(tt))&&(tt.h(a.x,a.bottom),y.ca(x.Cd(tt))&&(tt.h(a.right,a.bottom),y.ca(x.Cd(tt))&&(tt.h(a.right,a.y),y.ca(x.Cd(tt))&&(b=!0)))),Ee.free(tt),$e.free(y),b},ee.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,tt=Ee.allocAt(0,0);return a.ca(y.Ga(tt))&&(tt.h(0,x.height),a.ca(y.Ga(tt))&&(tt.h(x.width,x.height),a.ca(y.Ga(tt))&&(tt.h(x.width,0),a.ca(y.Ga(tt))&&(b=!0)))),Ee.free(tt),b},ee.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ee.allocAt(0,0),tt=Ee.allocAt(0,x.height),et=Ee.allocAt(x.width,x.height),nt=Ee.allocAt(x.width,0),ht=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(tt))||a.ca(y.Ga(et))||a.ca(y.Ga(nt)))ht=!0;else{x=$e.allocAt(0,0,x.width,x.height);var gt=Ee.allocAt(a.x,a.y);x.ca(y.Cd(gt))?ht=!0:(gt.h(a.x,a.bottom),x.ca(y.Cd(gt))?ht=!0:(gt.h(a.right,a.bottom),x.ca(y.Cd(gt))?ht=!0:(gt.h(a.right,a.y),x.ca(y.Cd(gt))&&(ht=!0)))),Ee.free(gt),$e.free(x),!ht&&(Ge.us(a,b,tt)||Ge.us(a,tt,et)||Ge.us(a,et,nt)||Ge.us(a,nt,b))&&(ht=!0)}return Ee.free(b),Ee.free(tt),Ee.free(et),Ee.free(nt),ht},ee.ga=function(a,y){if(y===void 0&&(y=new Ee),a instanceof jn){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},ee.mi=function(a){a===void 0&&(a=new $e);var y=this.naturalBounds,x=this.oe,b=Ee.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),xr(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),xr(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),xr(a,b.x,b.y,0,0),Ee.free(b),a},ee.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},ee.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},ee.qs=function(a,y){return y===void 0&&(y=new Ee),y.assign(a),this.oe.Cd(y),y},ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ee.Sj=function(a,y,x,b,tt){var et=this.transform,nt=1/(et.m11*et.m22-et.m12*et.m21),ht=et.m22*nt,gt=-et.m12*nt,bt=-et.m21*nt,Pt=et.m11*nt,Nt=nt*(et.m21*et.dy-et.m22*et.dx),zt=nt*(et.m12*et.dx-et.m11*et.dy);return this.areaBackground!==null?(et=this.actualBounds,Ge.Ff(et.left,et.top,et.right,et.bottom,a,y,x,b,tt)):(nt=a*ht+y*bt+Nt,a=a*gt+y*Pt+zt,y=x*ht+b*bt+Nt,x=x*gt+b*Pt+zt,tt.h(0,0),b=this.naturalBounds,x=Ge.Ff(0,0,b.width,b.height,nt,a,y,x,tt),tt.transform(et),x)},ze.prototype.measure=function(a,y,x,b){if(ea(this)!==!1){var tt=this.Kg,et=tt.right+tt.left;tt=tt.top+tt.bottom,a=Math.max(a-et,0),y=Math.max(y-tt,0),x=Math.max((x||0)-et,0),b=Math.max((b||0)-tt,0),et=this.angle,tt=this.desiredSize;var nt=this.kq();et===90||et===270?(a=isFinite(tt.height)?tt.height+nt:a,y=isFinite(tt.width)?tt.width+nt:y):(a=isFinite(tt.width)?tt.width+nt:a,y=isFinite(tt.height)?tt.height+nt:y),tt=x||0,nt=b||0;var ht=this instanceof un;switch(ws(this,!0)){case an:nt=tt=0,ht&&(y=a=1/0);break;case ln:isFinite(a)&&a>x&&(tt=a),isFinite(y)&&y>b&&(nt=y);break;case Tn:isFinite(a)&&a>x&&(tt=a),nt=0,ht&&(y=1/0);break;case In:isFinite(y)&&y>b&&(nt=y),tt=0,ht&&(a=1/0)}ht=this.maxSize;var gt=this.minSize;tt>ht.width&&gt.width<ht.width&&(tt=ht.width),nt>ht.height&&gt.height<ht.height&&(nt=ht.height),x=Math.max(tt,gt.width),b=Math.max(nt,gt.height),ht.width<x&&(x=Math.min(gt.width,x)),ht.height<b&&(b=Math.min(gt.height,b)),a=Math.min(ht.width,a),y=Math.min(ht.height,y),a=Math.max(x,a),y=Math.max(b,y),(et===90||et===270)&&(et=a,a=y,y=et,et=x,x=b,b=et),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()),Br(this,!1)}},ze.prototype.Wl=function(){},ze.prototype.Dd=function(){return!1},ze.prototype.arrange=function(a,y,x,b,tt){this.Uk();var et=$e.alloc();et.assign(this.Ib),this.Ib.ka(),ss(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),tt===void 0?this.tb=null:this.tb=tt,x=!1,tt!==void 0?x=!0:(tt=this.panel,tt!==null&&Yu(tt)&&(tt=tt.panel),tt!==null&&(tt=tt.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=tt.width+.05&&0<=y+.05&&x<=tt.height+.05),this instanceof Ni&&(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(et,this.Ib),Rl(this,!1),$e.free(et)},ee=ze.prototype,ee.eh=function(){};function Vo(a,y,x,b,tt){if(a.Ib.h(y,x,b,tt),!a.desiredSize.w()){var et=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=et.width+y,et=et.height+nt,b+=y,tt+=nt,y=ws(a,!0),x===b&&et===tt&&(y=an),y){case an:(x>b||et>tt)&&(Br(a,!0),a.measure(x>b?b:x,et>tt?tt:et,0,0));break;case ln:Br(a,!0),a.measure(b,tt,0,0);break;case Tn:Br(a,!0),a.measure(b,et,0,0);break;case In:Br(a,!0),a.measure(x,tt,0,0)}}}ee.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),Cu(a,y)||(x.oh(),this.Pn(x)))},ee.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof wn&&W1(a,this))},ee.gc=function(a,y){if(!da(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 tt="";this.filter!==""&&(tt=a.filter,a.filter=this.filter);var et=this instanceof un&&Yu(this),nt=this.Ib;if(et){var ht=this.Ib,gt=this.dc,bt=this.areaBackground,Pt=this.Ma;bt===null&&Pt===null||a.yc(),bt!==null&&(vr(this,a,bt,!0,!0,gt,ht),bt instanceof bi&&bt.type===ma?(a.beginPath(),a.rect(ht.x,ht.y,ht.width,ht.height),a.ng(bt)):a.fillRect(ht.x,ht.y,ht.width,ht.height)),Pt!==null&&(vr(this,a,Pt,!0,!1,gt,ht),Pt instanceof bi&&Pt.type===ma?(a.beginPath(),a.rect(ht.x,ht.y,ht.width,ht.height),a.ng(Pt)):a.fillRect(ht.x,ht.y,ht.width,ht.height)),this.hh(a,y)}if(!et&&(et||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){et=this.transform,ht=this.panel,this.l&4096&&So(this),bt=this.part,gt=!1;var Nt=0;bt&&y.Gf("drawShadows")&&(gt=bt.isShadowed)&&(Pt=bt.shadowOffset,Nt=Math.max(Pt.y,Pt.x)*y.scale*y.Mb),Pt=this.Dd();var zt;if(!(zt=y.$i||!Pt)){var Vt=this.naturalBounds;zt=this.wh;var Zt=zt.m11,oe=zt.m21,Pe=zt.dx,de=zt.m12,Le=zt.m22,Oe=zt.dy,De,Re=De=0;zt=De*Zt+Re*oe+Pe;var Ve=De*de+Re*Le+Oe;De=Vt.width+Nt,Re=0;var Sn=De*Zt+Re*oe+Pe;De=De*de+Re*Le+Oe,Re=Math.min(zt,Sn);var Mn=Math.min(Ve,De),Pn=Math.max(zt+0,Sn)-Re,hn=Math.max(Ve+0,De)-Mn;zt=Re,Ve=Mn,De=Vt.width+Nt,Re=Vt.height+Nt,Sn=De*Zt+Re*oe+Pe,De=De*de+Re*Le+Oe,Re=Math.min(zt,Sn),Mn=Math.min(Ve,De),Pn=Math.max(zt+Pn,Sn)-Re,hn=Math.max(Ve+hn,De)-Mn,zt=Re,Ve=Mn,De=0,Re=Vt.height+Nt,Sn=De*Zt+Re*oe+Pe,De=De*de+Re*Le+Oe,Re=Math.min(zt,Sn),Mn=Math.min(Ve,De),Pn=Math.max(zt+Pn,Sn)-Re,hn=Math.max(Ve+hn,De)-Mn,zt=Re,Ve=Mn,Nt=y.viewportBounds,Vt=Nt.x,Zt=Nt.y,zt=!(zt>Nt.width+Vt||Vt>Pn+zt||Ve>Nt.height+Zt||Zt>hn+Ve)}if(zt){if(zt=(this.l&256)!==0,a.clipInsteadOfFill&&(zt=!1),this instanceof Ni&&(a.font=this.font),zt){if(Ve=ht.se()?ht.naturalBounds:ht.actualBounds,Pn=Math.max(nt.x,Ve.x),hn=Math.max(nt.y,Ve.y),Nt=Math.min(nt.right,Ve.right)-Pn,Vt=Math.min(nt.bottom,Ve.bottom)-hn,Zt=this.tb,Zt!==null&&(Pn=Zt.x,hn=Zt.y,Nt=Zt.width,Vt=Zt.height),Pn>nt.width+nt.x||nt.x>Ve.width+Ve.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}a.save(),a.beginPath(),a.rect(Pn,hn,Nt,Vt),a.clip()}if(Pt){if(!bt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}gt&&(Ve=bt.shadowOffset,a.Ev(Ve.x*y.scale*this.scale*y.Mb,Ve.y*y.scale*this.scale*y.Mb,bt.shadowBlur),hu(a),a.shadowColor=bt.shadowColor)}gt&&this.shadowVisible===!0?hu(a):gt&&this.shadowVisible===!1&&zl(a),bt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ta(this,a,bt,nt)),a.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),gt&&fo(this,ht)&&this.shadowVisible===null&&zl(a),this.Ma!==null&&(a.yc(),Ls(this,a,bt,nt)),gt&&(this.Ma!==null||this.areaBackground!==null||fo(this,ht))?(Wa(this,!0),this.shadowVisible===null&&zl(a)):Wa(this,!1),this.hh(a,y),gt&&this.l&512&&hu(a),Pt&&gt&&zl(a),zt&&(a.restore(),a.Vc(this instanceof un)),et.ws()||(y=1/(et.m11*et.m22-et.m12*et.m21),a.transform(et.m22*y,-et.m12*y,-et.m21*y,et.m11*y,y*(et.m21*et.dy-et.m22*et.dx),y*(et.m12*et.dx-et.m11*et.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt)}}};function fo(a,y){return y===null?!1:(Yu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===un.Auto||y.type===un.Spot)&&y.Pb()!==a)}ee.Dv=function(){};function ta(a,y,x,b){vr(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof bi&&a.areaBackground.type===ma?(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 Ls(a,y,x,b){var tt=a.kq(),et=x.x,nt=x.y,ht=x.width+tt,gt=x.height+tt;vr(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof bi&&a.Ma.type===ma?(y.beginPath(),y.rect(et-tt/2,nt-tt/2,ht,gt),y.ng(a.Ma)):y.fillRect(et-tt/2,nt-tt/2,ht,gt)}function Ro(a,y,x){for(var b=y.O.s,tt=b.length,et=-1,nt=0;nt<tt;nt++)if(b[nt]===a){et=nt;break}if(a=et,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===un.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 da(a,y,x){if(!(y instanceof Gs))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,tt=a.nk(y);if(a.kk(y,x,tt))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&&Ro(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var et=a.shadowOffset;y.Ev(et.x*x.scale*a.scale*x.Mb,et.y*x.scale*a.scale*x.Mb,a.shadowBlur),hu(y),y.shadowColor=a.shadowColor}a instanceof Ni&&(y.font=a.font),y.yd=null;var nt=a.transform;et=a instanceof un;var ht=a instanceof un?Yu(a):!1;a.l&4096&&So(a);var gt=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,tt&&(y.o=!0,et&&ht?(Fp(y,1,0,0,1,0,0),a.svg=y.ad):et?(Fp(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Fp(y,1,0,0,1,0,0)),tt=a.naturalBounds,a.areaBackground!==null){var bt=nt.copy().Vj();y.rb.ha=[bt.m11,bt.m12,bt.m21,bt.m22,bt.dx,bt.dy],ta(a,y,tt,gt),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return et||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(et?(ht&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),Ls(a,y,tt,gt),ht&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Ls(a,y,tt,gt)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,tt=a.part,ht=!1,tt&&x.Gf("drawShadows")&&(ht=tt.isShadowed),y.clipInsteadOfFill&&(ht=!1),a.Dd()&&ht&&hu(y),ht&&a.shadowVisible===!0?hu(y):ht&&a.shadowVisible===!1&&zl(y),tt=a.panel,ht&&fo(a,tt)&&a.shadowVisible===null&&zl(y),y.Il&&(bt=x.computePixelRatio(),bt="drop-shadow("+y.shadowOffsetX/bt+"px "+y.shadowOffsetY/bt+"px "+y.shadowBlur/bt/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",bt),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",bt)),ht&&(a.Ma!==null||a.areaBackground!==null||fo(a,tt))?(Wa(a,!0),a.shadowVisible===null&&zl(y)):Wa(a,!1),tt=ht,a.hh(y,x),et&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ht=et?a.svg:y.yd,bt=a.svg,!et&&bt!==null&&ht!==bt&&bt.parentNode===a.panel.svg?(a.svg.replaceWith(ht),a.svg=ht,ht!==null&&a.$o(y,b,gt,ht),Ss(y,bt),!0):(a.svg=ht,nt!==null&&ht===null&&(um(y),y.nh.pop()),ht===null||(a.$o(y,b,gt,ht),y.Il&&(x=x.computePixelRatio(),a.Dv(ht,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),tt&&a.l&512&&hu(y),a.Dd()&&zl(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ht.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ht.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ht):y.Nj.prepend(ht),y.ti=ht):b!==null&&Ro(a,b,ht),nt!==null&&nt(a,ht)),!0)}ee.$o=function(a,y,x,b){var tt=(this.l&256)!==0;if(a.clipInsteadOfFill&&(tt=!1),tt){var et=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,et.x),tt=Math.max(x.y,et.y);var nt=Math.min(x.right,et.right)-y;x=Math.min(x.bottom,et.bottom)-tt,et=this.tb,et!==null&&(y=et.x,tt=et.y,nt=et.width,x=et.height),et=b.getAttribute("clip-path");var ht=null;et!==null&&(ht=a.svg.getElementById(et.split("#")[1].slice(0,-1))),ht===null?(et="CLIP"+Zo++,ht=a.Ud("clipPath",{id:et}),y=a.Ud("rect",{x:y,y:tt,width:nt,height:x}),this instanceof un&&(tt=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+tt.m11+", "+tt.m12+", "+tt.m21+", "+tt.m22+", "+tt.dx+", "+tt.dy+")")),ht.appendChild(y),a.svg.appendChild(ht),b.setAttributeNS(null,"clip-path","url(#"+et+")")):(a=ht.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",tt.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Ss(a,b)};function Ss(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function zo(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=mr(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()}}ee.hh=function(){},ee.lv=function(){this.Uc=!0},ee.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,tt=this instanceof un?Yu(this):!1;if(!(this instanceof un&&tt))if(this instanceof bs){var et=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],et!==null&&Qy(a,et[0],et[1],et[2],et[3],et[4],et[5],et[6],et[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Jy(a)):y.setAttributeNS(null,"transform",Jy(a))}else if(!x||this instanceof un)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Wn){et=y.getElementsByTagName("path");for(var nt=0;nt<et.length;nt++)et[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 et=this.Dd()?this.opacity*a.globalAlpha:this.opacity,et===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",et.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(et=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],ta(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),et&&hm(a,et)),(this.background!==null||y.Ma!==void 0)&&(et=y.Ma,this.background===null?(hm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((tt||x&&!(this instanceof un))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ls(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),et&&hm(a,et)),this.$o(a,this.panel,this.actualBounds,y),!0},ee.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,tt,et,nt){if(x!==null){var ht=1,gt=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Vu)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var bt=a.kq();if(ht=et.width,gt=et.height,tt?(ht=nt.width,gt=nt.height):b||(ht+=bt,gt+=bt),(et=y instanceof Ec)&&x.xe&&(x.type===yd||x.yk===ht&&x.ft===gt))var Pt=x.xe;else{var Nt=0,zt=0,Vt=0,Zt=0,oe=0,Pe=0;if(Pe=oe=0,tt?(oe=nt.x,Pe=nt.y):b||(oe-=bt/2,Pe-=bt/2),Nt=x.start.x*ht+x.start.offsetX,zt=x.start.y*gt+x.start.offsetY,Vt=x.end.x*ht+x.end.offsetX,Zt=x.end.y*gt+x.end.offsetY,Nt+=oe,Vt+=oe,zt+=Pe,Zt+=Pe,x.type===fu)Pt=y.createLinearGradient(Nt,zt,Vt,Zt);else if(x.type===ma)Pe=isNaN(x.endRadius)?Math.max(ht,gt)/2:x.endRadius,isNaN(x.startRadius)?(oe=0,Pe=Math.max(ht,gt)/2):oe=x.startRadius,Pt=y.createRadialGradient(Nt,zt,oe,Vt,Zt,Pe);else if(x.type===yd)try{Pt=y.createPattern(x.pattern,"repeat")}catch(Le){Pt=null}if(x.type!==yd&&(tt=x.colorStops,tt!==null))for(tt=tt.iterator;tt.next();)Pt.addColorStop(tt.key,tt.value);if(et&&(x.xe=Pt,Pt!==null&&(x.yk=ht,x.ft=gt),Pt===null&&x.type===yd&&x.yk!==-1)){x.yk=-1;var de=a.diagram;de!==null&&x.yk===-1&&dr(function(){de.redraw()},600)}}b?y.fillStyle=Pt:y.strokeStyle=Pt}}}ee.rg=function(a){if(a instanceof un)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},ee.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},ee.If=function(){for(var a=this instanceof un?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function So(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Ta(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)}Ta(a,!1),pa(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,pa(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,pa(a,!1)))}ee.no=function(a,y,x,b,tt){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var et=Ee.alloc();et.yi(y,x,b,tt,wi),a.rotate(this.Kb,et.x,et.y),Ee.free(et)}},ee.v=function(a){if(!ea(this)){a===void 0&&(a=!1),Br(this,!0),Rl(this,!0);var y=this.panel;y===null||a||y.v()}},ee.Uj=function(){ea(this)||(Br(this,!0),Rl(this,!0))};function os(a){if(!ss(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof wn&&a.Bd(),y.$b())),Rl(a,!0)}}ee.Uk=function(){!(this.l&2048)&&(Ta(this,!0),pa(this,!0))},ee.Wu=function(){pa(this,!0)},ee.N=function(){var a=this.part;a!==null&&a.N()};function ws(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===un.Table?ol(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===un.Auto&&b.Pb()===a?po(a,ln,y):x===Hn?b!==null?b.type===un.Spot&&b.Pb()===a?po(a,ln,y):(x=b.defaultStretch,x===Hn?po(a,an,y):po(a,x,y)):po(a,an,y):po(a,x,y)}function ol(a,y,x,b){var tt=a.stretch;if(tt!==Hn)return po(a,tt,b);var et=tt=null;switch(y.stretch){case In:et=!0;break;case ln:et=!0}switch(x.stretch){case Tn:tt=!0;break;case ln:tt=!0}return y=a.panel.defaultStretch,tt===null&&(tt=y===Tn||y===ln),et===null&&(et=y===In||y===ln),tt===!0&&et===!0?po(a,ln,b):tt===!0?po(a,Tn,b):et===!0?po(a,In,b):po(a,an,b)}function po(a,y,x){if(x)return y;if(y===an||(x=a.desiredSize,x.w()))return an;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Tn)return an;if(y===ln)return In}else{if(y===In)return an;if(y===ln)return Tn}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===In)return an;if(y===ln)return Tn}else{if(y===Tn)return an;if(y===ln)return In}return y}function Wa(a,y){a.l=y?a.l|512:a.l&-513}function Co(a){return(a.l&1024)!==0}function df(a,y){a.l=y?a.l|1024:a.l&-1025}function Ta(a,y){a.l=y?a.l|2048:a.l&-2049}function pa(a,y){a.l=y?a.l|4096:a.l&-4097}function ea(a){return(a.l&8192)!==0}function Br(a,y){a.l=y?a.l|8192:a.l&-8193}function ss(a){return(a.l&16384)!==0}function Rl(a,y){a.l=y?a.l|16384:a.l&-16385}ee.Gj=function(){this.svg=null},ee.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},ee.Av=function(){},ee.zv=function(a){return this.pa=a,os(this),!0},ee.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},ee.kq=function(){return 0};function Pc(a){var y=a.part;if(y instanceof wn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||W1(y,a)}}function Xy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof un?a instanceof wn?a.Bd():a.qm(a,function(x){Pc(x)}):Pc(a))}ee.bind=function(a,y,x,b){var tt=null;return typeof a=="string"?tt=new Lr(a,y,x,b):tt=a,tt.xd=this,a=this.ih(),a!==null&&d1(a)&&We("Cannot add a Binding to a template that has already been copied: "+tt),this.localBindings===null&&(this.localBindings=new vn),this.localBindings.add(tt),this},ee.set=function(a){return Object.assign(this,a),this},ee.Du=function(a){return iv(this,a),this},ee.apply=function(a){return a(this),this},ee.nm=function(a){return gc(this,a),this},ee.pz=function(){return this.ih()},ee.ih=function(){for(var a=this instanceof un?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},ee.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Rn),this.animationTriggers.add(a.propertyName,a),this};function ga(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,tt=null;if(typeof a=="function")tt=a;else if(typeof a=="string"){var et=fd.I(a);typeof et=="function"?(x=xi(arguments),b=et(x),on(b)||We('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):tt=bn.go[a]}if(b===null&&(tt!=null&&tt.constructor||We("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new tt),tt=1,b instanceof Ye&&1<x.length){et=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(cp(et,nt),tt++)}for(;tt<x.length;tt++)et=x[tt],et===void 0?We("Undefined value at argument "+tt+" for object being constructed by GraphObject.make: "+b):iv(b,et);return b}function iv(a,y){if(typeof y=="string")if(a instanceof Ni)a.text=y;else if(a instanceof Wn)a.figure=y;else if(a instanceof bs)a.source=y;else if(a instanceof un)y=Va.I(y),y!==null&&(a.type=y);else if(a instanceof bi){var x=On(bi,y);x!==null?a.type=x:We("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof pn?(y=On(pn,y),y!==null&&(a.type=y)):a instanceof gi&&(y=On(gi,y),y!==null&&(a.type=y));else if(y instanceof ze)a instanceof un||We("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Rr){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 Rr?Am(b,y):We("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof sn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Wr)a.type=y;else if(y instanceof Lr)a instanceof ze||a instanceof Rr?a.bind(y):We("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Ua)a instanceof ze?a.Jv(y):We("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof to)a instanceof pn&&a.type===pn.o?a.figures.add(y):We("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof gi)a instanceof to?a.segments.add(y):We("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ji)a instanceof Ye||a instanceof Un?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 bi){x=new si;for(var tt in y)b=parseFloat(tt),isNaN(b)?x[tt]=y[tt]:a.addColorStop(b,y[tt]);gc(a,x)}else if(a instanceof Rr){y.row!==void 0?(tt=y.row,(tt==null||tt===1/0||isNaN(tt)||0>tt)&&We("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+tt),a.isRow=!0,a.index=tt):y.column!==void 0&&(tt=y.column,(tt==null||tt===1/0||isNaN(tt)||0>tt)&&We("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+tt),a.isRow=!1,a.index=tt),tt=new si;for(x in y)x!=="row"&&x!=="column"&&(tt[x]=y[x]);gc(a,tt)}else gc(a,y);else We('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wu(a,y){fd.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}qe.Object.defineProperties(ze.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new pf),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 pf),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 pf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Vn(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&&(Vn(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:us},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new jh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===us&&(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 jh),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 jh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:jo},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new jh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Hn},set:function(a){var y=this.stretch;y!==a&&(Vn(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&&(Vn(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)&&ti(a,"0 <= value <= 1",ze,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Lc(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(Lc(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(),Xy(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&&mf(a,"GraphObject.areaBackground"),a instanceof bi&&a.freeze(),Vn(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&&mf(a,"GraphObject.background"),a instanceof bi&&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,tt=b.x;b=b.y,(tt===y||isNaN(tt)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,tt,b)&&this.g("position",new Ee(tt,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,Xy(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,tt=b.width,et=b.height;(tt===y||isNaN(tt)&&isNaN(y))&&(et===x||isNaN(et)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",b,a),Co(this)&&(a=this.part,a!==null&&(Hi(this,a,"width"),Hi(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new xn(a,this.jd.height).freeze(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",y,a),Co(this)&&(a=this.part,a!==null&&Hi(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new xn(this.jd.width,a).freeze(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",y,a),Co(this)&&(a=this.part,a!==null&&Hi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ai},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(),Vn(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:mo},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(),Vn(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 Yn(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&&So(this),this.Ab}},oe:{get:function(){return this.l&4096&&So(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Vn(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:an},set:function(a){this.reshapingBehavior!==a&&(Vn(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(),os(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&&ti(a,">= 0",ze,"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&&ti(a,">= 1",ze,"columnSpan"),Vn(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&&ti(a,">= 0",ze,"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&&ti(a,">= 1",ze,"rowSpan"),Vn(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&&(Vn(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 wn||We("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Hv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,K1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:$r},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Pc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",ze,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Pc(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),Pc(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&&ti(a,">= 0",ze,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:$r},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Pc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",ze,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Pc(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),Pc(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&&ti(a,">= 0",ze,"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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(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&&(Vn(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ze.prototype.trigger=ze.prototype.Jv,ze.prototype.findBindingPanel=ze.prototype.ih,ze.prototype.findTemplateBinder=ze.prototype.pz,ze.prototype.setProperties=ze.prototype.nm,ze.prototype.apply=ze.prototype.apply,ze.prototype.attach=ze.prototype.Du,ze.prototype.set=ze.prototype.set,ze.prototype.isEnabledObject=ze.prototype.If,ze.prototype.isVisibleObject=ze.prototype.Ed,ze.prototype.isContainedBy=ze.prototype.rg,ze.prototype.getNearestIntersectionPoint=ze.prototype.rs,ze.prototype.getLocalPoint=ze.prototype.qs,ze.prototype.getDocumentScale=ze.prototype.Df,ze.prototype.getDocumentAngle=ze.prototype.li,ze.prototype.getDocumentBounds=ze.prototype.mi,ze.prototype.getDocumentPoint=ze.prototype.ga,ze.prototype.intersectsRect=ze.prototype.Yc,ze.prototype.containedInRect=ze.prototype.fh,ze.prototype.containsRect=ze.prototype.Re,ze.prototype.containsPoint=ze.prototype.ca,ze.prototype.raiseChanged=ze.prototype.g,ze.prototype.raiseChangedEvent=ze.prototype.cb,ze.prototype.addCopyProperty=ze.prototype.Vw;var fd=null;ze.className="GraphObject",fd=new Rn,Wu("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(tt){for(;tt.panel!==null&&!tt.isActionable;)tt=tt.panel;return tt},function(tt){return tt===b})!==null}var y=ga(un,un.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof un){var tt=x.fb("ButtonBorder");tt!==null&&(tt.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},ga(Wn,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new jn(0,0,2.76142374915397,2.761423749153969),spot2:new jn(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 un&&(x=b.fb("ButtonBorder"),x instanceof Wn)){var tt=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=tt,tt=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=tt}},y.mouseLeave=function(x,b){b.If()&&b instanceof un&&(x=b.fb("ButtonBorder"),x instanceof Wn&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){x=x.diagram;var et=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=tt.fill,tt.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=tt.stroke,tt.stroke=nt,x.skipsUndoManager=et}}},y.actionUp=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null){var tt=x.diagram;if(tt.firstInput.button===0&&(tt.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Wn))){var et=tt.skipsUndoManager;tt.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),tt.skipsUndoManager=et}}},y}),Wu("TreeExpanderButton",function(){var a=ga("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ga(Wn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qr},new Lr("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Lr("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof di&&(x=x.adornedPart),x instanceof wn){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}),Wu("SubGraphExpanderButton",function(){var a=ga("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ga(Wn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qr},new Lr("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 di&&(x=x.adornedPart),x instanceof Un){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}),Wu("ToolTip",function(){return ga(di,un.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ee(0,3),shadowBlur:5},ga(Wn,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new jn(0,0,4,6),spot2:new jn(1,1,-4,-4)}))}),Wu("ContextMenu",function(){return ga(di,un.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ee(0,3),shadowBlur:5},new Lr("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wu("ContextMenuButton",function(){var a=ga("Button");a.stretch=Tn;var y=a.fb("ButtonBorder");return y instanceof Wn&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new jn(0,0,2,3),y.spot2=new jn(1,1,-2,-2)),a}),Wu("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=ga("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},ga(Wn,{name:"ButtonIcon",strokeWidth:2},new Lr("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Wn&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,tt){var et=tt.diagram;if(et!==null&&!et.isReadOnly){var nt=tt.ih();nt===null&&(nt=tt.part),nt!==null&&(tt=nt.fb(y),tt!==null&&(b.handled=!0,et.Ea("Collapse/Expand Panel"),tt.visible=!tt.visible,et.eb("Collapse/Expand Panel")))}},x}),Wu("CheckBoxButton",function(a){var y=lm(a);return a=ga("Button",{desiredSize:new xn(14,14)},ga(Wn,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ln,geometryStretch:kn,visible:!1},y!==""?new Lr("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof un){var tt=x.diagram;if(!(tt===null||tt.isReadOnly||y!==""&&tt.model.isReadOnly)){x.handled=!0;var et=b.fb("ButtonIcon");tt.Ea("checkbox"),et.visible=!et.visible,typeof b._doClick=="function"&&b._doClick(x,b),tt.eb("checkbox")}}},a}),Wu("CheckBox",function(a){a=lm(a),a=ga("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Yn(0,1,0,0)});var y=ga(un,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Yn(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}),ze.None=an=new sn(ze,"None",0),ze.Default=Hn=new sn(ze,"Default",0),ze.Vertical=In=new sn(ze,"Vertical",4),ze.Horizontal=Tn=new sn(ze,"Horizontal",5),ze.Fill=ln=new sn(ze,"Fill",3),ze.Uniform=kn=new sn(ze,"Uniform",1),ze.UniformToFill=ni=new sn(ze,"UniformToFill",2),ze.FlipVertical=Kn=new sn(ze,"FlipVertical",1),ze.FlipHorizontal=ui=new sn(ze,"FlipHorizontal",2),ze.FlipBoth=Ai=new sn(ze,"FlipBoth",3),ze.make=ga,ze.getBuilders=function(){var a=new Rn,y;for(y in fd)if(y!==y.toLowerCase()){var x=fd.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ze.defineBuilder=Wu,ze.build=function(a,y,x){for(var b=[],tt=2;tt<arguments.length;++tt)b[tt-2]=arguments[tt];if(tt=fd.I(a),typeof tt=="function"&&(b=tt([a].concat(b)),b instanceof ze))return y&&b.set(y),b;We('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},ze.takeBuilderArgument=lm;function pf(){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=ai,this.o=mo,this.hg=Hn,this.ob=this.Bi=1,this.Pf=an,this.Pc=this.Ci=this.gd=null,this.Oc="category"}pf.prototype.copy=function(){var a=new pf;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 jh(){this.u=-1/0,this.o=0,this.F=jo,this.rr=us,this.j=this.V="None"}jh.prototype.copy=function(){var a=new jh;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},jh.className="LinkElementSettings";function Ip(){this.yj=this.Xi=oo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Ip.prototype.copy=function(){var a=new Ip;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},Ip.className="LinkSettings";function Cc(){this.ha=[1,0,0,1,0,0]}Cc.prototype.copy=function(){var a=new Cc;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},Cc.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},Cc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Cc.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 tt=this.ha[1]*a+this.ha[3]*b,et=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]=tt,this.ha[2]=et,this.ha[3]=nt,this.translate(-y,-x)}},Cc.className="STransform";function gf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}gf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},gf.className="SGradient";function Pl(a,y,x){this.ownerDocument=a=y===void 0?bn.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 Gs(this,x)}Pl.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},Pl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),on(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},Pl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pl.prototype.focus=function(){this.Oa.focus()},Pl.prototype.mx=function(){this.ownerDocument=null},qe.Object.defineProperties(Pl.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}}}),Pl.className="SVGSurface";function Gs(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 Cc,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Zo++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Zy(a,y,x,b,tt,et,nt){a.Nj===void 0?Fp(a,y,x,b,tt,et,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+tt+", "+et+", "+nt+")")}ee=Gs.prototype,ee.arc=function(a,y,x,b,tt,et,nt,ht){var gt=2*Math.PI,bt=gt-1e-6,Pt=x*Math.cos(b),Nt=x*Math.sin(b),zt=a+Pt,Vt=y+Nt,Zt=et?0:1;b=et?b-tt:tt-b,(1e-6<Math.abs(nt-zt)||1e-6<Math.abs(ht-Vt))&&this.path.push(["L",zt,+Vt]),0>b&&(b=b%gt+gt),b>bt?(this.path.push(["A",x,x,0,1,Zt,a-Pt,y-Nt]),this.path.push(["A",x,x,0,1,Zt,zt,Vt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Zt,a+x*Math.cos(tt),y+x*Math.sin(tt)])},ee.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ee.Se=function(a){this.addPath(this.path,this.rb,a||0)},ee.bezierCurveTo=function(a,y,x,b,tt,et){this.path.push(["C",a,y,x,b,tt,et])},ee.clearRect=function(){},ee.clip=function(){this.Yl.clipPath=!0},ee.closePath=function(){this.path.push(["z"])},ee.createLinearGradient=function(a,y,x,b){var tt=new gf("linear");return tt.x1=a,tt.y1=y,tt.x2=x,tt.y2=b,tt},ee.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+Zo++,tt={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(xc,tt)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},ee.createRadialGradient=function(a,y,x,b,tt,et){var nt=new gf("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=tt,nt.r2=et,nt};function Qy(a,y,x,b,tt,et,nt,ht,gt){b=ht/b,tt=gt/tt,et===0&&nt===0||a.rb.translate(et,nt),b===1&&tt===1||a.rb.scale(b,tt),y===0&&x===0||a.rb.translate(-y,-x)}ee.drawImage=function(a,y,x,b,tt,et,nt,ht,gt){var bt="";a instanceof HTMLCanvasElement&&(bt=a.toDataURL()),a instanceof HTMLImageElement&&(bt=a.getAttribute("src"));var Pt=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(et=y,nt=x,ht=b=Pt,gt=tt=a),b=b||0,tt=tt||0,ht=ht||0,gt=gt||0,Qy(this,y,x,b,tt,et||0,nt||0,ht,gt),et={x:0,y:0,width:Pt||b,height:a||tt,href:bt},Ge.$(b,ht)&&Ge.$(tt,gt)?bt.toLowerCase().indexOf(".svg")===-1&&bt.toLowerCase().indexOf("data:image/svg")===-1&&(et.preserveAspectRatio="xMidYMid slice"):et.preserveAspectRatio="none",(y!==0||x!==0||b!==Pt||tt!==a)&&(b+=y,tt+=x,et["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+tt+" L "+y+" "+tt+" z')"),dd(this,xc,et,this.rb),this.addElement(xc,et)},ee.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},ee.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},ee.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},dd(this,"fill",a,this.rb),this.addElement("rect",a)},ee.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},dd(this,"fill",a,this.rb),rv(this,a),this.svg.prepend(this.Ud("rect",a))},ee.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},dd(this,"fill",y,this.rb),this.addElement("text",y,a[0])},ee.lineTo=function(a,y){this.path.push(["L",a,y])},ee.moveTo=function(a,y){this.path.push(["M",a,y])},ee.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},ee.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"])},ee.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},ee.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())},ee.setTransform=function(a,y,x,b,tt,et){a===1&&y===0&&x===0&&b===1&&tt===0&&et===0||Fp(this,a,y,x,b,tt,et)};function Jy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}ee.scale=function(a,y){this.rb.scale(a,y)},ee.translate=function(a,y){this.rb.translate(a,y)},ee.transform=function(){},ee.yc=function(){},ee.stroke=function(){$y(this,this.Yl)},ee.jk=function(){this.clipInsteadOfFill||this.stroke()},ee.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},ee.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 dd(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 gf?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 gf?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 gf)y.stroke=ov(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function ov(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+Zo++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var tt=y.gx;y=tt.length;for(var et=[],nt=0;nt<y;nt++){var ht=tt[nt],gt=ht.color;ht={offset:ht.offset,"stop-color":gt},/^rgba\(/.test(gt)&&(gt=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(gt),ht["stop-color"]="rgb("+gt[1]+","+gt[2]+","+gt[3]+")",ht["stop-opacity"]=gt[4]),et.push(ht)}for(et.sort(function(bt,Pt){return bt.offset>Pt.offset?1:-1}),tt=0;tt<y;tt++)x.appendChild(a.Ud("stop",et[tt]));return a.svg.appendChild(x),"url(#"+b+")"}ee.addPath=function(a,y,x){for(var b=[],tt=0;tt<a.length;tt++){var et=xi(a[tt]),nt=[et.shift()];if(nt[0]==="A")nt.push(et.shift()+","+et.shift(),et.shift(),et.shift()+","+et.shift(),et.shift()+","+et.shift());else for(;et.length;)nt.push(et.shift()+","+et.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,dd(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ht in a)ht!=="transform"&&y.setAttributeNS(null,ht,a[ht]);else{ht=y.getElementsByTagName("path");for(var gt in a)gt!=="transform"&&ht[x].setAttributeNS(null,gt,a[gt])}else this.addElement("path",a)};function Fp(a,y,x,b,tt,et,nt){var ht=new Cc;ht.ha=[y,x,b,tt,et,nt],y={},dd(a,"g",y,ht),ht=a.addElement("g",y),a.nh.push(ht)}function um(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function zl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function hu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}ee.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},ee.fs=function(){this.Ct=!1},ee.Vc=function(){},ee.Wx=function(){},Gs.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Gs.prototype.getImageData=function(){return null},Gs.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()))}Gs.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Gs.className="SVGContext",Ye.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Pl(this,bn.document));var y=new Pl(this,bn.document,!0);a===void 0&&(a=new si);var x=this;return lf(this,function(b,tt){return b=rm(x,b,"SVG",y),b=b!==null?b.svg:null,typeof tt=="function"?(tt(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 _a(a,y,x,b){this.ownerDocument=y=y===void 0?bn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ec(y,x,b),y.H=a}_a.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},_a.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},_a.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},_a.prototype.focus=function(){this.Oa.focus()},_a.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},qe.Object.defineProperties(_a.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}}}),_a.className="CanvasSurface";function Ec(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 Xn,this.isTemporary=!!x}ee=Ec.prototype,ee.Wx=function(a){this.Z.imageSmoothingEnabled=a},ee.arc=function(a,y,x,b,tt,et){this.Z.arc(a,y,x,b,tt,et)},ee.beginPath=function(){this.Z.beginPath()},ee.Se=function(){},ee.bezierCurveTo=function(a,y,x,b,tt,et){this.Z.bezierCurveTo(a,y,x,b,tt,et)},ee.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},ee.clip=function(){this.Z.clip()},ee.closePath=function(){this.Z.closePath()},ee.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},ee.createPattern=function(a,y){return this.Z.createPattern(a,y)},ee.createRadialGradient=function(a,y,x,b,tt,et){return this.Z.createRadialGradient(a,y,x,b,tt,et)},ee.drawImage=function(a,y,x,b,tt,et,nt,ht,gt){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,tt,et,nt,ht,gt)},ee.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},ee.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ee.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ee.fillText=function(a,y,x){this.Z.fillText(a,y,x)},ee.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},ee.lineTo=function(a,y){this.Z.lineTo(a,y)},ee.measureText=function(a){return this.Z.measureText(a)},ee.moveTo=function(a,y){this.Z.moveTo(a,y)},ee.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},ee.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},ee.restore=function(){this.Z.restore()},ee.save=function(){this.yc(),this.Z.save()},Ec.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},ee=Ec.prototype,ee.setTransform=function(a,y,x,b,tt,et){this.El.setTransform(a,y,x,b,tt,et)},ee.scale=function(a,y){this.El.scale(a,y)},ee.translate=function(a,y){this.El.translate(a,y)},ee.stroke=function(){this.Z.stroke()},ee.transform=function(a,y,x,b,tt,et){if(a!==1||y!==0||x!==0||b!==1||tt!==0||et!==0){var nt=this.El,ht=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*tt+nt.m21*et+nt.dx,nt.dy=nt.m12*tt+nt.m22*et+nt.dy,nt.m11=ht,nt.m12=a,nt.m21=y,nt.m22=x}},ee.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},ee.ng=function(a,y){if(a instanceof bi&&a.type===ma){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)},ee.jk=function(){this.Hm||this.stroke()},ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},ee.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},ee.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vw),a.lineDashOffset=0)},ee.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},ee.Hs=function(){},qe.Object.defineProperties(Ec.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 vw=Object.freeze([]);Ec.className="CanvasSurfaceContext";function Bp(){this.F=this.o=this.u=this.j=0}Bp.className="ColorNumbers";function bi(a,y){vd||(cv(),vd=!0),qi(this),this._isFrozen=!1,a===void 0?(this.na=Vu,this.xk="black"):typeof a=="string"?(this.na=Vu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===fu?(this.Qd=Zs,this.Lk=Fs):this.Lk=a===ma?this.Qd=wi:this.Qd=$r,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}bi.prototype.copy=function(){var a=new bi;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},ee=bi.prototype,ee.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ee.qb=function(a){a.classType===bi&&(this.type=a)},ee.toString=function(){var a="Brush(";if(this.type===Vu)a+=this.color;else if(a=this.type===fu?a+"Linear ":this.type===ma?a+"Radial ":this.type===yd?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+")"},ee.addColorStop=function(a,y){return this._isFrozen&&Nn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ti(a,"0 <= loc <= 1",bi,"addColorStop:loc"),this.we===null&&(this.we=new Rn),this.we.add(a,y),this.na===Vu&&(this.type=fu),this.xe=null,this},ee.Vz=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sd:y,this.type===Vu)cu(this.color),this.color=gd(a,y);else if((this.type===fu||this.type===ma)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cu(x.value),this.addColorStop(x.key,gd(a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sd:x,cu(a),gd(y,x)}ee.Wy=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sd:y,this.type===Vu)cu(this.color),this.color=gd(-a,y);else if((this.type===fu||this.type===ma)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cu(x.value),this.addColorStop(x.key,gd(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sd:x,cu(a),gd(-y,x)}function sv(a,y,x){cu(a),a=Fi.j;var b=Fi.u,tt=Fi.o,et=Fi.F;return cu(y),x===void 0&&(x=.5),"rgba("+Math.round((Fi.j-a)*x+a)+", "+Math.round((Fi.u-b)*x+b)+", "+Math.round((Fi.o-tt)*x+tt)+", "+Math.round((Fi.F-et)*x+et)+")"}ee.Gx=function(){if(this.type===Vu)return pd(this.color);if((this.type===fu||this.type===ma)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ma)return pd(a.first().value);if(a.get(.5)!==null)return pd(a.get(.5));if(a.count===2)return a=a.Fa(),pd(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,tt=1,et=1;y.next();){var nt=y.key,ht=Math.abs(.5-y.key);tt>et&&ht<tt?(x=nt,tt=ht):et>=tt&&ht<et&&(b=nt,et=ht)}return x>b&&(et=x,x=b,b=et,et=tt),tt=b-x,pd(sv(a.get(x),a.get(b),1-et/tt))}return!1};function pd(a){return a?a instanceof bi?a.Gx():(cu(a),128>(299*Fi.j+587*Fi.u+114*Fi.o)/1e3):!1}function gd(a,y){switch(y){case Sd:y=100*lv(Fi.j);var x=100*lv(Fi.u),b=100*lv(Fi.o);return as.j=.4124564*y+.3575761*x+.1804375*b,as.u=.2126729*y+.7151522*x+.072175*b,as.o=.0193339*y+.119192*x+.9503041*b,as.F=Fi.F,y=hv(as.j/md[0]),x=hv(as.u/md[1]),b=hv(as.o/md[2]),Gl.j=116*x-16,Gl.u=500*(y-x),Gl.o=200*(x-b),Gl.F=as.F,Gl.j=Math.min(100,Math.max(0,Gl.j+100*a)),a=(Gl.j+16)/116,y=a-Gl.o/200,as.j=md[0]*n1(Gl.u/500+a),as.u=md[1]*(Gl.j>cm*fv?Math.pow(a,3):Gl.j/cm),as.o=md[2]*n1(y),as.F=Gl.F,a=-.969266*as.j+1.8760108*as.u+.041556*as.o,y=.0556434*as.j+-.2040259*as.u+1.0572252*as.o,Fi.j=255*uv((3.2404542*as.j+-1.5371385*as.u+-.4985314*as.o)/100),Fi.u=255*uv(a/100),Fi.o=255*uv(y/100),Fi.F=as.F,Fi.j=Math.round(Fi.j),255<Fi.j?Fi.j=255:0>Fi.j&&(Fi.j=0),Fi.u=Math.round(Fi.u),255<Fi.u?Fi.u=255:0>Fi.u&&(Fi.u=0),Fi.o=Math.round(Fi.o),255<Fi.o?Fi.o=255:0>Fi.o&&(Fi.o=0),"rgba("+Fi.j+", "+Fi.u+", "+Fi.o+", "+Fi.F+")";case i1:return av(),na.o=Math.min(100,Math.max(0,na.o+100*a)),"hsla("+na.j+", "+na.u+"%, "+na.o+"%, "+na.F+")";default:We("Unknown color space: "+y)}}function cu(a){vd||(cv(),vd=!0);var y=dv;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,Fi.j=a[0],Fi.u=a[1],Fi.o=a[2],Fi.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Fi.j=0,Fi.u=0,Fi.o=0,Fi.F=1)}}function av(){var a=Fi.j/255,y=Fi.u/255,x=Fi.o/255,b=Math.max(a,y,x),tt=Math.min(a,y,x),et=b-tt;if(tt=(b+tt)/2,et===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/et%6;break;case y:nt=(x-a)/et+2;break;case x:nt=(a-y)/et+4}nt*=60,0>nt&&(nt+=360),a=et/(1-Math.abs(2*tt-1))}na.j=Math.round(nt),na.u=Math.round(100*a),na.o=Math.round(100*tt),na.F=Fi.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>fv?Math.pow(a,1/3):(cm*a+16)/116}function n1(a){var y=a*a*a;return y>fv?y:(116*a-16)/cm}function mf(a,y){typeof a!="string"&&(a instanceof bi||We("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){dv=gr?new _a(null,void 0,{willReadFrequently:!0}).context:null}qe.Object.defineProperties(bi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nn(this,a),this.na=a,this.start.Mc()&&(a===fu?this.start=Zs:a===ma&&(this.start=wi)),this.end.Mc()&&(a===fu?this.end=Fs:a===ma&&(this.end=wi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Nn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Nn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Nn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ti(a,">= zero",bi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ti(a,">= zero",bi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Nn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Nn(this,a),this.cr=a,this.xe=null}}}),bi.prototype.isDark=bi.prototype.Gx,bi.prototype.darkenBy=bi.prototype.Wy,bi.prototype.lightenBy=bi.prototype.Vz,bi.prototype.addColorStop=bi.prototype.addColorStop;var fv=216/24389,cm=24389/27,md=[95.047,100,108.883],dv=null,Fi=new Bp,na=new Bp,as=new Bp,Gl=new Bp,vd=!1;bi.className="Brush";var Vu;bi.Solid=Vu=new sn(bi,"Solid",0);var fu;bi.Linear=fu=new sn(bi,"Linear",1);var ma;bi.Radial=ma=new sn(bi,"Radial",2);var yd;bi.Pattern=yd=new sn(bi,"Pattern",4);var Sd;bi.Lab=Sd=new sn(bi,"Lab",5);var i1;bi.HSL=i1=new sn(bi,"HSL",6),bi.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},bi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vd||(cv(),vd=!0);var y=dv;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)},bi.lighten=function(a){return t1(a)},bi.lightenBy=t1,bi.darken=function(a){return e1(a)},bi.darkenBy=e1,bi.mix=sv,bi.isDark=pd;function Wr(){this.xa="Base"}Wr.prototype.measure=function(){},Wr.prototype.Yz=function(a,y,x,b,tt){a.measure(y,x,b,tt)},Wr.prototype.arrange=function(){},Wr.prototype.Ly=function(a,y,x,b,tt,et){a.arrange(y,x,b,tt,et)},Wr.prototype.iA=function(a){a.Uj()},Wr.prototype.gc=function(){},qe.Object.defineProperties(Wr.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return un}}}),Wr.prototype.remeasureObject=Wr.prototype.iA,Wr.prototype.arrangeElement=Wr.prototype.Ly,Wr.prototype.measureElement=Wr.prototype.Yz,Wr.className="PanelLayout";function fm(){this.xa="Base"}en(fm,Wr),fm.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=b.length;a=du(a);for(var gt=0;gt<ht;gt++){var bt=b[gt];if(bt.visible||bt===a){var Pt=bt.margin,Nt=Pt.right+Pt.left;Pt=Pt.top+Pt.bottom,bt.measure(y,x,et,nt);var zt=bt.measuredBounds;Nt=Math.max(zt.width+Nt,0),Pt=Math.max(zt.height+Pt,0),zt=bt.position.x;var Vt=bt.position.y;isFinite(zt)||(zt=0),isFinite(Vt)||(Vt=0),bt instanceof Wn&&bt.isGeometryPositioned&&(bt=bt.strokeWidth/2,zt-=bt,Vt-=bt),xr(tt,zt,Vt,Nt,Pt)}}},fm.prototype.arrange=function(a,y,x){var b=y.length,tt=a.padding;for(a=x.x-tt.left,x=x.y-tt.top,tt=0;tt<b;tt++){var et=y[tt],nt=et.measuredBounds,ht=et.margin,gt=et.position.x,bt=et.position.y;if(gt=isNaN(gt)?-a:gt-a,bt=isNaN(bt)?-x:bt-x,et instanceof Wn&&et.isGeometryPositioned){var Pt=et.strokeWidth/2;gt-=Pt,bt-=Pt}et.visible&&et.arrange(gt+ht.left,bt+ht.top,nt.width,nt.height)}};function dm(){this.xa="Base"}en(dm,Wr),dm.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=b.length;y=oi(),et=du(a);for(var gt=0;gt<ht;gt++){var bt=b[gt];if(bt.visible||bt===et){var Pt=ws(bt,!1);if(Pt!==an&&Pt!==Tn)y.push(bt);else{bt.measure(1/0,x,0,nt),Pt=bt.margin,bt=bt.measuredBounds;var Nt=Math.max(bt.height+Pt.top+Pt.bottom,0);tt.width+=Math.max(bt.width+Pt.right+Pt.left,0),tt.height=Math.max(tt.height,Nt)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):tt.height!==0&&(x=Math.min(tt.height,a.maxSize.height)),a=0;a<b;a++)gt=y[a],(gt.visible||gt===et)&&(Pt=gt.margin,ht=Pt.right+Pt.left,Pt=Pt.top+Pt.bottom,gt.measure(1/0,x,0,nt),gt=gt.measuredBounds,Pt=Math.max(gt.height+Pt,0),tt.width+=Math.max(gt.width+ht,0),tt.height=Math.max(tt.height,Pt));ri(y)},dm.prototype.arrange=function(a,y,x){for(var b=y.length,tt=a.padding,et=tt.top,nt=a.isOpposite,ht=nt?x.width:tt.left,gt=0;gt<b;gt++){var bt=et,Pt=y[gt];if(Pt.visible){var Nt=Pt.measuredBounds,zt=Pt.margin,Vt=zt.top+zt.bottom,Zt=et+tt.bottom,oe=Nt.height,Pe=ws(Pt,!1);(isNaN(Pt.desiredSize.height)&&Pe===ln||Pe===In)&&(oe=Math.max(x.height-Vt-Zt,0)),Vt=oe+Vt+Zt,Zt=Pt.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=wi),nt&&(ht-=Nt.width+zt.left+zt.right),Pt.arrange(ht+Zt.offsetX+zt.left,bt+Zt.offsetY+zt.top+(x.height*Zt.y-Vt*Zt.y),Nt.width,oe),nt||(ht+=Nt.width+zt.left+zt.right)}}};function pm(){this.xa="Base"}en(pm,Wr),pm.prototype.measure=function(a,y,x,b,tt,et){var nt=b.length;x=oi();for(var ht=du(a),gt=0;gt<nt;gt++){var bt=b[gt];if(bt.visible||bt===ht){var Pt=ws(bt,!1);if(Pt!==an&&Pt!==In)x.push(bt);else{var Nt=bt.margin;Pt=Nt.right+Nt.left,Nt=Nt.top+Nt.bottom,bt.measure(y,1/0,et,0),bt=bt.measuredBounds,Es(tt,Math.max(tt.width,Math.max(bt.width+Pt,0)),tt.height+Math.max(bt.height+Nt,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):tt.width!==0&&(y=Math.min(tt.width,a.maxSize.width)),a=0;a<b;a++)gt=x[a],(gt.visible||gt===ht)&&(bt=gt.margin,nt=bt.right+bt.left,bt=bt.top+bt.bottom,gt.measure(y,1/0,et,0),gt=gt.measuredBounds,bt=Math.max(gt.height+bt,0),tt.width=Math.max(tt.width,Math.max(gt.width+nt,0)),tt.height+=bt);ri(x)}},pm.prototype.arrange=function(a,y,x){for(var b=y.length,tt=a.padding,et=tt.left,nt=a.isOpposite,ht=nt?x.height:tt.top,gt=0;gt<b;gt++){var bt=et,Pt=y[gt];if(Pt.visible){var Nt=Pt.measuredBounds,zt=Pt.margin,Vt=zt.left+zt.right,Zt=et+tt.right,oe=Nt.width,Pe=ws(Pt,!1);(isNaN(Pt.desiredSize.width)&&Pe===ln||Pe===Tn)&&(oe=Math.max(x.width-Vt-Zt,0)),Vt=oe+Vt+Zt,Zt=Pt.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=wi),nt&&(ht-=Nt.height+zt.bottom+zt.top),Pt.arrange(bt+Zt.offsetX+zt.left+(x.width*Zt.x-Vt*Zt.x),ht+Zt.offsetY+zt.top,oe,Nt.height),nt||(ht+=Nt.height+zt.bottom+zt.top)}}};function gm(){this.xa="Base"}en(gm,Wr),gm.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=b.length,gt=a.Pb(),bt=gt.margin,Pt=bt.right+bt.left,Nt=bt.top+bt.bottom;gt.measure(y,x,et,nt);var zt=gt.measuredBounds;et=zt.width,nt=zt.height;var Vt=Math.max(et+Pt,0),Zt=Math.max(nt+Nt,0),oe=a.isClipping,Pe=$e.allocAt(-bt.left,-bt.top,Vt,Zt),de=$e.allocAt(0,0,et,nt);pv(gt,de,!0),et=de.width,nt=de.height;for(var Le=!0,Oe=du(a),De=0;De<ht;De++){var Re=b[De];zt=y;var Ve=x;if(Re!==gt&&(Re.visible||Re===Oe)){bt=Re.margin;var Sn=bt.left,Mn=bt.top;switch(Vt=bt.right+bt.left,Zt=bt.top+bt.bottom,bt=ws(Re,!1),bt){case ln:zt=et,Ve=nt,Mn=Sn=Zt=Vt=0;break;case Tn:zt=et,Sn=Vt=0;break;case In:Ve=nt,Mn=Zt=0}Re.measure(zt,Ve,0,0),zt=Re.measuredBounds,Vt=Math.max(zt.width+Vt,0),Zt=Math.max(zt.height+Zt,0),bt=Re.alignment,bt.Xb()&&(bt=a.defaultAlignment),bt.sb()||(bt=wi);var Pn=Re.alignmentFocus;if(Pn.Xb()&&(Pn=wi),Ve=null,Re instanceof un&&Re.$e!==""&&(Ve=Re.fb(Re.$e),Ve===Re&&(Ve=null)),Sn=de.x-Sn,Mn=de.y-Mn,Ve!==null){for(Re.arrange(0,0,zt.width,zt.height),zt=Ve.actualBounds,zt=Ee.allocAt(zt.x+(Pn.x*zt.width-Pn.offsetX),zt.y+(Pn.y*zt.height-Pn.offsetY)),Ve=Ve.panel;Ve!==Re;)Ve.transform.Ga(zt),Ve=Ve.panel;Sn+=bt.x*et+bt.offsetX-zt.x,Mn+=bt.y*nt+bt.offsetY-zt.y,Ee.free(zt)}else Sn+=bt.x*et+bt.offsetX-(Pn.x*zt.width+Pn.offsetX),Mn+=bt.y*nt+bt.offsetY-(Pn.y*zt.height+Pn.offsetY);Le?(Le=!1,tt.h(Sn,Mn,Vt,Zt)):xr(tt,Sn,Mn,Vt,Zt)}}switch(Le?tt.assign(Pe):oe?tt.Uu(de.x,de.y,de.width,de.height):xr(tt,Pe.x,Pe.y,Pe.width,Pe.height),$e.free(Pe),$e.free(de),bt=gt.stretch,bt===Hn&&(bt=ws(gt,!1)),bt){case an:return;case ln:if(!isFinite(y)&&!isFinite(x))return;break;case Tn:if(!isFinite(y))return;break;case In:if(!isFinite(x))return}for(zt=gt.measuredBounds,et=zt.width,nt=zt.height,Vt=Math.max(et+Pt,0),Zt=Math.max(nt+Nt,0),bt=gt.margin,de=$e.allocAt(-bt.left,-bt.top,Vt,Zt),pv(gt,de,!0),et=de.width,nt=de.height,y=0;y<ht;y++)x=b[y],x===gt||!x.visible&&x!==Oe||(bt=x.margin,Vt=bt.right+bt.left,Zt=bt.top+bt.bottom,zt=x.measuredBounds,Vt=Math.max(zt.width+Vt,0),Zt=Math.max(zt.height+Zt,0),Pt=x.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=wi),x=x.alignmentFocus,x.Xb()&&(x=wi),Le?(Le=!1,tt.h(Pt.x*et+Pt.offsetX-(x.x*zt.width+x.offsetX)-bt.left,Pt.y*nt+Pt.offsetY-(x.y*zt.height+x.offsetY)-bt.top,Vt,Zt)):xr(tt,Pt.x*et+Pt.offsetX-(x.x*zt.width+x.offsetX)-bt.left,Pt.y*nt+Pt.offsetY-(x.y*zt.height+x.offsetY)-bt.top,Vt,Zt));Le?tt.assign(Pe):oe?tt.Uu(de.x,de.y,de.width,de.height):xr(tt,Pe.x,Pe.y,Pe.width,Pe.height),$e.free(de)},gm.prototype.arrange=function(a,y,x){var b=y.length,tt=a.Pb(),et=tt.measuredBounds,nt=et.width,ht=et.height,gt=a.padding;et=gt.left,gt=gt.top;var bt=et-x.x,Pt=gt-x.y;for(tt.arrange(bt,Pt,nt,ht),nt=$e.allocAt(0,0,nt,ht),pv(tt,nt,!1),ht=0;ht<b;ht++){var Nt=y[ht];if(Nt!==tt){bt=Nt.measuredBounds;var zt=bt.width,Vt=bt.height;Pt=Nt.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=wi);var Zt=Nt.alignmentFocus;if(Zt.Xb()&&(Zt=wi),bt=null,Nt instanceof un&&Nt.$e!==""&&(bt=Nt.fb(Nt.$e),bt===Nt&&(bt=null)),bt!==null){var oe=bt.actualBounds;for(Zt=Ee.allocAt(oe.x+(Zt.x*oe.width-Zt.offsetX),oe.y+(Zt.y*oe.height-Zt.offsetY)),bt=bt.panel;bt!==Nt;)bt.transform.Ga(Zt),bt=bt.panel;bt=Pt.x*nt.width+Pt.offsetX-Zt.x,Pt=Pt.y*nt.height+Pt.offsetY-Zt.y,Ee.free(Zt)}else bt=Pt.x*nt.width+Pt.offsetX-(Zt.x*zt+Zt.offsetX),Pt=Pt.y*nt.height+Pt.offsetY-(Zt.y*Vt+Zt.offsetY);bt+=nt.x-x.x,Pt+=nt.y-x.y,Nt.visible&&Nt.arrange(et+bt,gt+Pt,zt,Vt)}}$e.free(nt)};function pv(a,y,x){var b=null;if(a instanceof un&&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"}en(mm,Wr),mm.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=b.length,gt=a.Pb(),bt=gt.margin,Pt=y,Nt=x,zt=bt.right+bt.left,Vt=bt.top+bt.bottom;gt.measure(y,x,et,nt),bt=gt.measuredBounds;var Zt=0,oe=null;gt instanceof Wn&&(oe=gt,Zt=oe.strokeWidth*oe.scale);var Pe=Math.max(bt.width+zt,0);bt=Math.max(bt.height+Vt,0);var de=yv(gt),Le=de.x*Pe+de.offsetX;de=de.y*bt+de.offsetY;var Oe=Sv(gt),De=Oe.x*Pe+Oe.offsetX;for(Oe=Oe.y*bt+Oe.offsetY,isFinite(y)&&(Pt=Math.max(Math.abs(Le-De)-Zt,0)),isFinite(x)&&(Nt=Math.max(Math.abs(de-Oe)-Zt,0)),Zt=xn.alloc(),Zt.h(0,0),a=du(a),Oe=0;Oe<ht;Oe++)de=b[Oe],de===gt||!de.visible&&de!==a||(bt=de.margin,Pe=bt.right+bt.left,Le=bt.top+bt.bottom,de.measure(Pt,Nt,0,0),bt=de.measuredBounds,Pe=Math.max(bt.width+Pe,0),bt=Math.max(bt.height+Le,0),Zt.h(Math.max(Pe,Zt.width),Math.max(bt,Zt.height)));if(ht===1)tt.width=Pe,tt.height=bt,xn.free(Zt);else{switch(de=yv(gt),Oe=Sv(gt),ht=b=0,Oe.x!==de.x&&Oe.y!==de.y&&(b=Zt.width/Math.abs(Oe.x-de.x),ht=Zt.height/Math.abs(Oe.y-de.y)),xn.free(Zt),Zt=0,oe!==null&&(Zt=oe.strokeWidth*oe.scale,Ev(oe)===kn&&(b=ht=Math.max(b,ht))),b+=Math.abs(de.offsetX)+Math.abs(Oe.offsetX)+Zt,ht+=Math.abs(de.offsetY)+Math.abs(Oe.offsetY)+Zt,oe=gt.stretch,oe===Hn&&(oe=ws(gt,!1)),oe){case an:nt=et=0;break;case ln:isFinite(y)&&(b=y),isFinite(x)&&(ht=x);break;case Tn:isFinite(y)&&(b=y),nt=0;break;case In:et=0,isFinite(x)&&(ht=x)}gt.Uj(),gt.measure(b,ht,et,nt),tt.width=gt.measuredBounds.width+zt,tt.height=gt.measuredBounds.height+Vt}},mm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),tt=b.measuredBounds,et=$e.alloc();et.h(0,0,1,1);var nt=b.margin,ht=nt.left;nt=nt.top;var gt=a.padding,bt=gt.left;gt=gt.top,b.arrange(bt+ht,gt+nt,tt.width,tt.height);var Pt=yv(b),Nt=Sv(b),zt=Pt.y*tt.height+Pt.offsetY,Vt=Nt.x*tt.width+Nt.offsetX;for(Nt=Nt.y*tt.height+Nt.offsetY,et.x=Pt.x*tt.width+Pt.offsetX,et.y=zt,xr(et,Vt,Nt,0,0),et.x+=ht+bt,et.y+=nt+gt,tt=0;tt<x;tt++)ht=y[tt],ht!==b&&(bt=ht.measuredBounds,nt=ht.margin,gt=Math.max(bt.width+nt.right+nt.left,0),Pt=Math.max(bt.height+nt.top+nt.bottom,0),zt=ht.alignment,zt.Xb()&&(zt=a.defaultAlignment),zt.sb()||(zt=wi),gt=et.width*zt.x+zt.offsetX-gt*zt.x+nt.left+et.x,nt=et.height*zt.y+zt.offsetY-Pt*zt.y+nt.top+et.y,ht.visible&&(Eo(et.x,et.y,et.width,et.height,gt,nt,bt.width,bt.height)?ht.arrange(gt,nt,bt.width,bt.height):ht.arrange(gt,nt,bt.width,bt.height,new $e(et.x,et.y,et.width,et.height))));$e.free(et)};function vm(){this.xa="Base",this.name="Table"}en(vm,Wr),vm.prototype.measure=function(a,y,x,b,tt){for(var et=b.length,nt=oi(),ht=oi(),gt=0;gt<et;gt++){var bt=b[gt],Pt=bt instanceof un?bt:null;if(Pt!==null&&Yu(Pt)&&bt.visible){ht.push(Pt);for(var Nt=Pt.O.s,zt=Nt.length,Vt=0;Vt<zt;Vt++){var Zt=Nt[Vt];Pt.type===un.TableRow?Zt.row=bt.row:Pt.type===un.TableColumn&&(Zt.column=bt.column),nt.push(Zt)}}else nt.push(bt)}et=nt.length,et===0&&(a.Fb(0),a.Eb(0));for(var oe=[],Pe=0;Pe<et;Pe++){var de=nt[Pe];de.visible&&(Br(de,!0),Rl(de,!0),oe[de.row]||(oe[de.row]=[]),oe[de.row][de.column]||(oe[de.row][de.column]=[]),oe[de.row][de.column].push(de))}ri(nt);var Le=oi(),Oe=oi(),De=oi(),Re={count:0},Ve={count:0},Sn=y,Mn=x,Pn=a.rowDefs,hn=a.colDefs,rn=null;et=Pn.length;for(var Gn=0;Gn<et;Gn++)rn=Pn[Gn],rn!==void 0&&(rn.actual=0);et=hn.length;for(var Fn=0;Fn<et;Fn++)rn=hn[Fn],rn!==void 0&&(rn.actual=0);for(var yi=oe.length,_i=0,io=0;io<yi;io++)oe[io]&&(_i=Math.max(_i,oe[io].length));var lo=Math.min(a.topIndex,yi-1),Yo=Math.min(a.leftIndex,_i-1),ro=0;yi=oe.length;for(var nh=du(a),Tr=0;Tr<yi;Tr++)if(oe[Tr]){_i=oe[Tr].length;var hl=a.Fb(Tr);hl.actual=0;for(var Ko=hl.oc=0;Ko<_i;Ko++)if(oe[Tr][Ko]){var ih=a.Eb(Ko);Le[Ko]===void 0&&(ih.actual=0,ih.oc=0,Le[Ko]=!0);for(var oa=oe[Tr][Ko],Da=oa.length,Ws=0;Ws<Da;Ws++){var _s=oa[Ws];if(_s.visible||_s===nh){var Kh=1<_s.rowSpan||1<_s.columnSpan;Kh&&(Tr<lo||Ko<Yo||Oe.push(_s));var cl=_s.margin,Ud=cl.right+cl.left,Vs=cl.top+cl.bottom,Xo=ol(_s,hl,ih,!1),Eg=_s.desiredSize,kf=!isNaN(Eg.height),Al=!isNaN(Eg.width)&&kf;if(Kh||Xo===an||Al||Tr<lo||Ko<Yo||(Re[Ko]!==void 0||Xo!==ln&&Xo!==Tn||(Re[Ko]=-1,Re.count++),Ve[Tr]!==void 0||Xo!==ln&&Xo!==In||(Ve[Tr]=-1,Ve.count++),De.push(_s)),_s.measure(1/0,1/0,0,0),!(Tr<lo||Ko<Yo)){var Os=_s.measuredBounds,Nc=Math.max(Os.width+Ud,0),Ys=Math.max(Os.height+Vs,0);if(_s.rowSpan===1&&(Xo===an||Xo===Tn)){rn=a.Fb(Tr);var Xh=rn.Wc();ro=Math.max(Ys-rn.actual,0),ro+Xh>Mn&&(ro=Math.max(Mn-Xh,0));var z0=rn.oa===0;rn.oc=rn.oc+ro,rn.actual=rn.oa+ro,Mn=Math.max(Mn-(ro+(z0?Xh:0)),0)}if(_s.columnSpan===1&&(Xo===an||Xo===In)){rn=a.Eb(Ko);var Ag=rn.Wc();ro=Math.max(Nc-rn.actual,0),ro+Ag>Sn&&(ro=Math.max(Sn-Ag,0));var Gy=rn.oa===0;rn.oc=rn.oc+ro,rn.actual=rn.oa+ro,Sn=Math.max(Sn-(ro+(Gy?Ag:0)),0)}Kh&&_s.Uj()}}}}}ri(Le);var Ql=0,mu=0;et=a.columnCount;for(var Lf=0;Lf<et;Lf++){var Zh=hn[Lf];Zh!==void 0&&(Ql+=isNaN(Zh.Hc)?Zh.oc:Zh.Hc,Zh.oc!==0&&(Ql+=Zh.Wc()))}et=a.rowCount;for(var Hd=0;Hd<et;Hd++){var Qh=Pn[Hd];Qh!==void 0&&(mu+=isNaN(Qh.Hc)?Qh.oc:Qh.Hc,Qh.oc!==0&&(mu+=Qh.Wc()))}Sn=Math.max(y-Ql,0);var Jl=Mn=Math.max(x-mu,0),rh=Sn;et=De.length;for(var js=0;js<et;js++){var Ml=De[js],G0=a.Fb(Ml.row),vu=a.Eb(Ml.column),Wd=Ml.measuredBounds,fl=Ml.margin,Dc=fl.right+fl.left,kl=fl.top+fl.bottom;Re[Ml.column]=vu.oc===0&&Re[Ml.column]!==void 0?Math.max(Wd.width+Dc,Re[Ml.column]):null,Ve[Ml.row]=G0.oc===0&&Ve[Ml.row]!==void 0?Math.max(Wd.height+kl,Ve[Ml.row]):null}var Tf=0,Vd=0,Ja;for(Ja in Ve)Ja!=="count"&&(Tf+=Ve[Ja]);for(Ja in Re)Ja!=="count"&&(Vd+=Re[Ja]);for(var xo=xn.alloc(),Mg=0;Mg<et;Mg++){var ps=De[Mg];if(ps.visible||ps===nh){var _r=a.Fb(ps.row),gs=a.Eb(ps.column),yu=0;isFinite(gs.width)?yu=gs.width:(isFinite(Sn)&&Re[ps.column]!==null?Vd===0?yu=gs.actual+Sn:yu=Re[ps.column]/Vd*rh:Re[ps.column]!==null?yu=Sn:yu=gs.actual||Sn,yu=Math.max(0,yu-gs.Wc()));var oh=0;switch(isFinite(_r.height)?oh=_r.height:(isFinite(Mn)&&Ve[ps.row]!==null?Tf===0?oh=_r.actual+Mn:oh=Ve[ps.row]/Tf*Jl:Ve[ps.row]!==null?oh=Mn:oh=_r.actual||Mn,oh=Math.max(0,oh-_r.Wc())),xo.h(Math.max(gs.minimum,Math.min(yu,gs.maximum)),Math.max(_r.minimum,Math.min(oh,_r.maximum))),Xo=ol(ps,_r,gs,!1),Xo){case Tn:xo.height=Math.max(xo.height,_r.actual+Mn);break;case In:xo.width=Math.max(xo.width,gs.actual+Sn)}var Ic=ps.margin,Uy=Ic.right+Ic.left,U0=Ic.top+Ic.bottom;ps.Uj(),ps.measure(xo.width,xo.height,gs.minimum,_r.minimum);var Yd=ps.measuredBounds,Fc=Math.max(Yd.width+Uy,0),_f=Math.max(Yd.height+U0,0);isFinite(Sn)&&(Fc=Math.min(Fc,xo.width)),isFinite(Mn)&&(_f=Math.min(_f,xo.height));var Ns=0;Ns=_r.actual,_r.actual=Math.max(_r.actual,_f),_r.oc=Math.max(_r.oc,_f),ro=_r.actual-Ns,Mn=Math.max(Mn-ro,0),Ve[ps.row]===null&&(Jl=Math.max(Jl-ro,0)),Ns=gs.actual,gs.actual=Math.max(gs.actual,Fc),gs.oc=Math.max(gs.oc,Fc),ro=gs.actual-Ns,Sn=Math.max(Sn-ro,0),Re[ps.column]===null&&(rh=Math.max(rh-ro,0))}}ri(De);var Su=xn.alloc(),dl=oi(),xa=oi();if(et=Oe.length,et!==0){for(var Jh=0;Jh<yi;Jh++)if(oe[Jh]){_i=oe[Jh].length;var Kd=a.Fb(Jh);dl[Jh]=Kd.actual;for(var qh=0;qh<_i;qh++)if(oe[Jh][qh]){var H0=a.Eb(qh);xa[qh]=H0.actual}}}for(var Xd=0;Xd<et;Xd++){var wr=Oe[Xd];if(wr.visible||wr===nh){var qa=a.Fb(wr.row),Ia=a.Eb(wr.column);switch(xo.h(Math.max(Ia.minimum,Math.min(y,Ia.maximum)),Math.max(qa.minimum,Math.min(x,qa.maximum))),Xo=ol(wr,qa,Ia,!1),Xo){case ln:xa[Ia.index]!==0&&(xo.width=Math.min(xo.width,xa[Ia.index])),dl[qa.index]!==0&&(xo.height=Math.min(xo.height,dl[qa.index]));break;case Tn:xa[Ia.index]!==0&&(xo.width=Math.min(xo.width,xa[Ia.index]));break;case In:dl[qa.index]!==0&&(xo.height=Math.min(xo.height,dl[qa.index]))}isFinite(Ia.width)&&(xo.width=Ia.width),isFinite(qa.height)&&(xo.height=qa.height),Su.h(0,0);for(var W0=Ia.minimum,Ks=qa.minimum,sh=1;sh<wr.rowSpan&&!(wr.row+sh>=a.rowCount);sh++)rn=a.Fb(wr.row+sh),ro=0,ro=Xo===ln||Xo===In?Math.max(rn.minimum,dl[wr.row+sh]===0?rn.maximum:Math.min(dl[wr.row+sh],rn.maximum)):Math.max(rn.minimum,isNaN(rn.Hc)?rn.maximum:Math.min(rn.Hc,rn.maximum)),Su.height+=ro,Ks+=rn.minimum;for(var Fa=1;Fa<wr.columnSpan&&!(wr.column+Fa>=a.columnCount);Fa++)rn=a.Eb(wr.column+Fa),ro=0,ro=Xo===ln||Xo===Tn?Math.max(rn.minimum,xa[wr.column+Fa]===0?rn.maximum:Math.min(xa[wr.column+Fa],rn.maximum)):Math.max(rn.minimum,isNaN(rn.Hc)?rn.maximum:Math.min(rn.Hc,rn.maximum)),Su.width+=ro,W0+=rn.minimum;xo.width+=Su.width,xo.height+=Su.height;var Zd=wr.margin,$h=Zd.right+Zd.left,kg=Zd.top+Zd.bottom;wr.measure(xo.width,xo.height,W0,Ks);for(var Qd=wr.measuredBounds,Ll=Math.max(Qd.width+$h,0),Bc=Math.max(Qd.height+kg,0),tc=0,Jd=0;Jd<wr.rowSpan&&!(wr.row+Jd>=a.rowCount);Jd++)rn=a.Fb(wr.row+Jd),tc+=rn.total||0;if(tc<Bc){var ah=Bc-tc,ql=Bc-tc;if(wr.spanAllocation!==null)for(var lh=wr.spanAllocation,wu=0;wu<wr.rowSpan&&!(0>=ah)&&!(wr.row+wu>=a.rowCount);wu++){rn=a.Fb(wr.row+wu);var uh=rn.oa||0,Rc=lh(wr,rn,ql);rn.actual=Math.min(rn.maximum,uh+Rc),rn.oa!==uh&&(ah-=rn.oa-uh)}for(;0<ah;){var pl=rn.oa||0;if(isNaN(rn.height)&&rn.maximum>pl&&(rn.actual=Math.min(rn.maximum,pl+ah),rn.oa!==pl&&(ah-=rn.oa-pl)),rn.index===0)break;rn=a.Fb(rn.index-1)}}for(var Of=0,hh=0;hh<wr.columnSpan&&!(wr.column+hh>=a.columnCount);hh++)rn=a.Eb(wr.column+hh),Of+=rn.total||0;if(Of<Ll){var jf=Ll-Of,Hy=Ll-Of;if(wr.spanAllocation!==null)for(var xu=wr.spanAllocation,zc=0;zc<wr.columnSpan&&!(0>=jf)&&!(wr.column+zc>=a.columnCount);zc++){rn=a.Eb(wr.column+zc);var Lg=rn.oa||0,Wy=xu(wr,rn,Hy);rn.actual=Math.min(rn.maximum,Lg+Wy),rn.oa!==Lg&&(jf-=rn.oa-Lg)}for(;0<jf;){var V0=rn.oa||0;if(isNaN(rn.width)&&rn.maximum>V0&&(rn.actual=Math.min(rn.maximum,V0+jf),rn.oa!==V0&&(jf-=rn.oa-V0)),rn.index===0)break;rn=a.Eb(rn.index-1)}}}}ri(Oe),xn.free(Su),xn.free(xo),dl!==void 0&&ri(dl),xa!==void 0&&ri(xa);var Nf=0,Df=0,Y0=a.desiredSize,gw=a.maxSize;Xo=ws(a,!0);var Tg=mu=Ql=0,_g=0;et=a.columnCount;for(var K0=0;K0<et;K0++)hn[K0]!==void 0&&(rn=a.Eb(K0),isFinite(rn.width)?(Tg+=rn.width,Tg+=rn.Wc()):Mm(rn)===Up?(Tg+=rn.oa,Tg+=rn.Wc()):rn.oa!==0&&(Ql+=rn.oa,Ql+=rn.Wc()));isFinite(Y0.width)?Nf=Math.min(Y0.width,gw.width):Nf=Xo!==an&&isFinite(y)?y:Ql,Nf=Math.max(Nf,a.minSize.width),Nf=Math.max(Nf-Tg,0);for(var qw=Ql===0?1:Math.max(Nf/Ql,1),X0=0;X0<et;X0++)hn[X0]!==void 0&&(rn=a.Eb(X0),isFinite(rn.width)||Mm(rn)===Up||(rn.actual=rn.oa*qw),rn.position=tt.width,rn.oa!==0&&(tt.width+=rn.oa,tt.width+=rn.Wc()));et=a.rowCount;for(var Z0=0;Z0<et;Z0++)Pn[Z0]!==void 0&&(rn=a.Fb(Z0),isFinite(rn.height)?(_g+=rn.height,_g+=rn.Wc()):Mm(rn)===Up?(_g+=rn.oa,_g+=rn.Wc()):rn.oa!==0&&(mu+=rn.oa,mu+=rn.Wc()));isFinite(Y0.height)?Df=Math.min(Y0.height,gw.height):Df=Xo!==an&&isFinite(x)?x:mu,Df=Math.max(Df,a.minSize.height),Df=Math.max(Df-_g,0);for(var $w=mu===0?1:Math.max(Df/mu,1),Q0=0;Q0<et;Q0++)Pn[Q0]!==void 0&&(rn=a.Fb(Q0),isFinite(rn.height)||Mm(rn)===Up||(rn.actual=rn.oa*$w),rn.position=tt.height,rn.oa!==0&&(tt.height+=rn.oa,tt.height+=rn.Wc()));et=ht.length;for(var Vy=0;Vy<et;Vy++){var Og=ht[Vy],Yy=0,Ky=0;Og.type===un.TableRow?(Yy=tt.width,rn=a.Fb(Og.row),Ky=rn.actual):(rn=a.Eb(Og.column),Yy=rn.actual,Ky=tt.height),Og.measuredBounds.h(0,0,Yy,Ky),Br(Og,!1)}ri(ht),a.inRowsCols=oe},vm.prototype.arrange=function(a,y,x){var b=y.length,tt=a.padding,et=tt.left;tt=tt.top;var nt=a.inRowsCols;if(nt!==null){for(var ht,gt,bt=nt.length,Pt=0,Nt=0;Nt<bt;Nt++)nt[Nt]&&(Pt=Math.max(Pt,nt[Nt].length));gt=a.rowDefs,ht=a.colDefs;var zt=Nt=0,Vt=Math.min(a.topIndex,bt-1);if(0<gt.length){for(;Vt!==bt&&(gt[Vt]===void 0||gt[Vt].oa===0);)Vt++;Vt=Math.max(Math.min(Vt,bt-1),0),Nt=-gt[Vt].position}var Zt=Math.min(a.leftIndex,Pt-1);if(0<ht.length){for(;Zt!==Pt&&(ht[Zt]===void 0||ht[Zt].oa===0);)Zt++;Zt=Math.max(Math.min(Zt,Pt-1),0),zt=-ht[Zt].position}for(var oe=0,Pe=0;oe!==bt&&gt[oe]===void 0;)oe++;for(;Pe!==bt&&ht[Pe]===void 0;)Pe++;Pt=a.part,a.Fb(oe),a.Eb(Pe);for(var de=0;de<y.length;de++){var Le=y[de];if(Le instanceof un&&Le.visible&&Yu(Le)){if(Le.type===un.TableRow){ht=a.Fb(Le.row);var Oe=a.Eb(Pe)}else ht=a.Fb(oe),Oe=a.Eb(Le.column);gt=ht.position+Nt+tt,ht.oa!==0&&(gt+=ht.Io(Math.max(oe,Vt))),ht=Oe.position+zt+et,Oe.oa!==0&&(ht+=Oe.Io(Math.max(Pe,Zt))),Oe=Le.measuredBounds,Le.Uk(),Le.actualBounds.ka();var De=Le.actualBounds,Re=$e.allocAt(De.x,De.y,De.width,De.height);De.x=Le.type===un.TableRow?et:ht,De.y=Le.type===un.TableColumn?tt:gt,De.width=Oe.width,De.height=Oe.height,Le.actualBounds.freeze(),Rl(Le,!1),Cu(Re,De)||Pt===null||(Pt.oh(),Le.Pn(Pt)),$e.free(Re)}}for(de=xn.alloc(),Le=0;Le<bt;Le++)if(nt[Le]){for(Pt=nt[Le].length,Oe=a.Fb(Le),gt=Oe.position+Nt+tt,Oe.oa!==0&&(gt+=Oe.Io(Math.max(oe,Vt))),De=0;De<Pt;De++)if(nt[Le][De]){Re=a.Eb(De),ht=Re.position+zt+et,Re.oa!==0&&(ht+=Re.Io(Math.max(Pe,Zt)));for(var Ve=nt[Le][De],Sn=Ve.length,Mn=0;Mn<Sn;Mn++){var Pn=Ve[Mn],hn=Pn.measuredBounds;de.h(0,0);for(var rn=1;rn<Pn.rowSpan&&!(Le+rn>=a.rowCount);rn++){var Gn=a.Fb(Le+rn);Gn.oa!==0&&(de.height+=Gn.total)}for(rn=1;rn<Pn.columnSpan&&!(De+rn>=a.columnCount);rn++)Gn=a.Eb(De+rn),Gn.oa!==0&&(de.width+=Gn.total);var Fn=Re.oa+de.width,yi=Oe.oa+de.height;rn=ht,Gn=gt;var _i=Fn,io=yi,lo=ht,Yo=gt,ro=Fn,nh=yi;ht+Fn>x.width&&(ro=Math.max(x.width-ht,0)),gt+yi>x.height&&(nh=Math.max(x.height-gt,0));var Tr=Pn.alignment;if(Tr.Xb()){Tr=a.defaultAlignment,Tr.sb()||(Tr=wi);var hl=Tr.x,Ko=Tr.y,ih=Tr.offsetX;Tr=Tr.offsetY;var oa=Re.alignment,Da=Oe.alignment;oa.sb()&&(hl=oa.x,ih=oa.offsetX),Da.sb()&&(Ko=Da.y,Tr=Da.offsetY)}else hl=Tr.x,Ko=Tr.y,ih=Tr.offsetX,Tr=Tr.offsetY;(isNaN(hl)||isNaN(Ko))&&(Ko=hl=.5,Tr=ih=0),oa=hn.width,Da=hn.height;var Ws=Pn.margin,_s=Ws.left+Ws.right,Kh=Ws.top+Ws.bottom,cl=ol(Pn,Oe,Re,!1);!isNaN(Pn.desiredSize.width)||cl!==ln&&cl!==Tn||(oa=Math.max(Fn-_s,0)),!isNaN(Pn.desiredSize.height)||cl!==ln&&cl!==In||(Da=Math.max(yi-Kh,0)),Fn=Pn.maxSize,yi=Pn.minSize,oa=Math.min(Fn.width,oa),Da=Math.min(Fn.height,Da),oa=Math.max(yi.width,oa),Da=Math.max(yi.height,Da),Fn=Da+Kh,rn+=_i*hl-(oa+_s)*hl+ih+Ws.left,Gn+=io*Ko-Fn*Ko+Tr+Ws.top,Pn.visible&&(Eo(lo,Yo,ro,nh,rn,Gn,hn.width,hn.height)?Pn.arrange(rn,Gn,oa,Da):Pn.arrange(rn,Gn,oa,Da,new $e(lo,Yo,ro,nh)))}}}for(xn.free(de),a=0;a<b;a++)x=y[a],et=x instanceof un?x:null,et!==null&&Yu(et)&&(et=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,et.width,et.height),x.naturalBounds.freeze())}};function ym(){this.xa="Base"}en(ym,Wr),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}en(Sm,Wr),Sm.prototype.measure=function(){},Sm.prototype.arrange=function(){};function wm(){this.xa="Base"}en(wm,Wr),wm.prototype.measure=function(a,y,x,b,tt,et,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,et,nt);var ht=b.measuredBounds,gt=b.margin,bt=gt.right+gt.left;if(gt=gt.top+gt.bottom,isFinite(y)||isFinite(x)){var Pt=b.scale,Nt=ht.width;ht=ht.height;var zt=Math.max(y-bt,0),Vt=Math.max(x-gt,0),Zt=1;a.viewboxStretch===kn?Nt!==0&&ht!==0&&(Zt=Math.min(zt/Nt,Vt/ht)):Nt!==0&&ht!==0&&(Zt=Math.max(zt/Nt,Vt/ht)),Zt===0&&(Zt=1e-4),b.Ca*=Zt,Pt!==b.scale&&(Br(b,!0),b.measure(1/0,1/0,et,nt))}ht=b.measuredBounds,tt.width=isFinite(y)?y:Math.max(ht.width+bt,0),tt.height=isFinite(x)?x:Math.max(ht.height+gt,0)},wm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,tt=y.margin,et=Math.max(b.width+(tt.right+tt.left),0);tt=Math.max(b.height+(tt.top+tt.bottom),0);var nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=wi),y.arrange(x.width*nt.x-et*nt.x+nt.offsetX,x.height*nt.y-tt*nt.y+nt.offsetY,b.width,b.height)};function Rp(){this.xa="Base"}en(Rp,Wr),Rp.prototype.measure=function(){},Rp.prototype.arrange=function(){},Rp.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,tt=b.width;b=b.height;var et=a.naturalBounds,nt=a.actualBounds,ht=et.width,gt=et.height,bt=Math.ceil(ht/tt),Pt=Math.ceil(gt/b),Nt=a.gridOrigin,zt=Nt.x;Nt=Nt.y,y.save(),y.beginPath(),y.rect(0,0,ht,gt),y.clip(),y.Se();for(var Vt=[],Zt=a.O.s,oe=Zt.length,Pe=0;Pe<oe;Pe++){var de=Zt[Pe],Le=[];if(Vt.push(Le),de.visible){var Oe=de.interval;if(!(0>Oe)){de=mv(de.figure);for(var De=0;De<oe;De++)if(De!==Pe){var Re=Zt[De];Re.visible&&mv(Re.figure)===de&&(Re=Re.interval,Re>Oe&&Le.push(Re))}}}}for(Zt=a.O.s,oe=Zt.length,Pe=0;Pe<oe;Pe++){var Ve=Zt[Pe];if(Ve.visible&&(Le=Ve.interval||1,de=Math.abs(Le),!(2>tt*de*x))){if(Oe=Ve.segmentIndex,(!isFinite(Oe)||isNaN(Oe))&&(Oe=0),0>Oe&&(Oe=de-Math.min(-Oe,de)),Oe=Math.round(Oe%de),de=Ve.opacity,De=1,de!==1){if(de===0)continue;De=y.globalAlpha,y.globalAlpha=De*de}Re=Vt[Pe];var Sn=!1,Mn=Ve.strokeDashArray;if(Mn!==null&&(Sn=!0,y.js(Mn,Ve.strokeDashOffset)),Ve.figure==="LineV"&&Ve.stroke!==null&&0<Ve.strokeWidth){for(y.lineWidth=Ve.strokeWidth,vr(a,y,Ve.stroke,!1,!1,et,nt),y.beginPath(),Mn=Ve=Math.floor((zt-tt)/tt);Mn<=Ve+bt;Mn++){var Pn=Mn*tt+zt;0<=Pn&&Pn<=ht&&xm(Mn,Le,Oe,Re)&&(y.moveTo(Pn,0),y.lineTo(Pn,gt))}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,et,nt),y.beginPath(),Mn=Ve=Math.floor((Nt-b)/b);Mn<=Ve+Pt;Mn++)Pn=Mn*b+Nt,0<=Pn&&Pn<=gt&&xm(Mn,Le,Oe,Re)&&(y.moveTo(0,Pn),y.lineTo(ht,Pn));y.stroke(),y.Se()}else if(Ve.figure==="BarV"&&Ve.fill!==null)for(vr(a,y,Ve.fill,!0,!1,et,nt),Ve=Ve.width,isNaN(Ve)&&(Ve=tt),Pn=Mn=Math.floor((zt-tt)/tt);Pn<=Mn+bt;Pn++){var hn=Pn*tt+zt;0<=hn+Ve&&hn<=ht&&xm(Pn,Le,Oe,Re)&&y.fillRect(hn,0,Ve,gt)}else if(Ve.figure==="BarH"&&Ve.fill!==null)for(vr(a,y,Ve.fill,!0,!1,et,nt),Ve=Ve.height,isNaN(Ve)&&(Ve=b),Pn=Mn=Math.floor((Nt-b)/b);Pn<=Mn+Pt;Pn++)hn=Pn*b+Nt,0<=hn+Ve&&hn<=gt&&xm(Pn,Le,Oe,Re)&&y.fillRect(0,hn,ht,Ve);Sn&&y.fs(),de!==1&&(y.globalAlpha=De)}}y.restore(),y.Vc(!1)};function xm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var tt=0;tt<y;tt++)if(a%b[tt]===x)return!1;return!0}function bm(){this.xa="Base"}en(bm,Wr),bm.prototype.measure=function(a,y,x,b,tt){var et=b.length;if(a instanceof di||a instanceof cn){var nt=null,ht=null;if(a instanceof cn&&(nt=a),a instanceof di&&(ht=a,nt=ht.adornedPart,a.j===null&&(a.j=[])),nt instanceof cn){var gt=nt;if(et===0)Es(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var bt=a instanceof di?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var Pt=gt.points,Nt=nt.pointsCount;ht!==null?ht.Ul(!1):nt!==null&&nt.Ul(!1),ht=y.width;var zt=y.height,Vt=a.j;if(Vt.length=0,bt!==null){r1(a,ht,zt,bt);var Zt=bt.measuredBounds;x.ed(Zt),Vt.push(Zt)}Zt=Xn.alloc();for(var oe=Ee.alloc(),Pe=Ee.alloc(),de=0;de<et;de++){var Le=b[de];if(Le!==bt)if(Le.isPanelMain&&Le instanceof Wn){r1(a,ht,zt,Le);var Oe=Le.measuredBounds;x.ed(Oe),Vt.push(Oe)}else if(2>Nt)Le.measure(1/0,1/0,0,0),Oe=Le.measuredBounds,x.ed(Oe),Vt.push(Oe);else{var De=Le.segmentIndex,Re=Le.segmentFraction,Ve=Le.alignmentFocus;Ve.Mc()&&(Ve=wi);var Sn=Le.segmentOrientation,Mn=Le.segmentOffset;if(isNaN(De)){var Pn=gt.ua;Oe=oi(),Pn.Qu(Re,Oe);var hn=Ee.allocAt(Oe[0],Oe[1]);if(hn.add(gt.i(0)),Pn.type===pn.j?hn.offset(-Pn.startX,-Pn.startY):(Pn=Pn.figures.first(),Pn!==null&&hn.offset(-Pn.startX,-Pn.startY)),Pn=Oe[2],Sn!==us){var rn=gt.computeAngle(Le,Sn,Pn);Le.Kb=rn}rn=hn.x-y.x;var Gn=hn.y-y.y;Ee.free(hn),ri(Oe)}else if(De<-Nt||De>=Nt)Oe=Ee.alloc(),gt.vg(),gt.computeMidPoint(Oe),Pn=gt.midAngle,Sn!==us&&(rn=gt.computeAngle(Le,Sn,Pn),Le.Kb=rn),rn=Oe.x-y.x,Gn=Oe.y-y.y,Ee.free(Oe);else{if(rn=0,0<=De?(Gn=Pt.M(De),Oe=De<Nt-1?Pt.M(De+1):Gn):(rn=Nt+De,Gn=Pt.M(rn),Oe=0<rn?Pt.M(rn-1):Gn),Gn.Xa(Oe)){0<=De?(Pn=0<De?Pt.M(De-1):Gn,rn=De<Nt-2?Pt.M(De+2):Oe):(Pn=rn<Nt-1?Pt.M(rn+1):Gn,rn=1<rn?Pt.M(rn-2):Oe),hn=Pn.Bf(Gn);var Fn=Oe.Bf(rn);Pn=hn>Fn+10?0<=De?Pn.ab(Gn):Gn.ab(Pn):Fn>hn+10?0<=De?Oe.ab(rn):rn.ab(Oe):0<=De?Pn.ab(rn):rn.ab(Pn)}else Pn=0<=De?Gn.ab(Oe):Oe.ab(Gn);Sn!==us&&(rn=gt.computeAngle(Le,Sn,Pn),Le.Kb=rn),rn=Gn.x+(Oe.x-Gn.x)*Re-y.x,Gn=Gn.y+(Oe.y-Gn.y)*Re-y.y}Le.measure(1/0,1/0,0,0),Oe=Le.measuredBounds,hn=Le.naturalBounds;var yi=0;Le instanceof Wn&&(yi=Le.strokeWidth),Fn=hn.width+yi;var _i=hn.height+yi;Zt.reset(),Zt.translate(-Oe.x,-Oe.y),Zt.scale(Le.scale,Le.scale),Zt.rotate(Sn===us?Le.angle:Pn,Fn/2,_i/2),Sn!==qp&&Sn!==tg||Zt.rotate(90,Fn/2,_i/2),Sn!==$p&&Sn!==eg||Zt.rotate(-90,Fn/2,_i/2),Sn===qm&&(45<Pn&&135>Pn||225<Pn&&315>Pn)&&Zt.rotate(-Pn,Fn/2,_i/2),hn=new $e(0,0,Fn,_i),oe.xi(hn,Ve),Zt.Ga(oe),Ve=-oe.x+yi/2*Le.scale,Le=-oe.y+yi/2*Le.scale,Pe.assign(Mn),yi=isNaN(Mn.x);var io=isNaN(Mn.y);if(yi||io){Fn=Fn/2+3,_i=_i/2+3;var lo=45<=Pn&&135>=Pn,Yo=225<=Pn&&315>=Pn;Sn===us&&(lo||Yo)?(Pe.x=io?Fn:Mn.y,Pe.y=yi?_i:Mn.x,lo?0<=De||isNaN(De)&&.5>Re||!yi||(Pe.y=-_i):Yo&&((0<=De||isNaN(De)&&.5>Re)&&yi&&(Pe.y=-_i),io&&(Pe.x=-Fn))):(yi&&(Pe.x=0<=De||isNaN(De)&&.5>Re?Fn:-Fn),io&&(Pe.y=-_i),Pe.rotate(Pn))}else Pe.rotate(Pn);rn+=Pe.x,Gn+=Pe.y,hn.set(Oe),hn.h(rn+Ve,Gn+Le,Oe.width,Oe.height),Vt.push(hn),x.ed(hn)}}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),Es(tt,x.width||0,x.height||0),Xn.free(Zt),Ee.free(oe),Ee.free(Pe)}}}},bm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof di||a instanceof cn){var b=a,tt=null;a instanceof di&&(tt=a,b=tt.adornedPart);var et=a instanceof di?null:b.path,nt=a.j;if(nt.length!==0){var ht=0;if(et!==null&&ht<nt.length){var gt=nt[ht];ht++,et.arrange(gt.x-a.jg.x,gt.y-a.jg.y,gt.width,gt.height)}for(gt=0;gt<x;gt++){var bt=y[gt];if(bt!==et&&ht<nt.length){var Pt=nt[ht];ht++,bt.arrange(Pt.x-a.jg.x,Pt.y-a.jg.y,Pt.width,Pt.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof cn)for(et=a.labelNodes;et.next();){var Nt=a;nt=et.value,ht=nt.segmentIndex,gt=nt.segmentFraction;var zt=nt.alignmentFocus;if(bt=nt.segmentOrientation,Pt=nt.segmentOffset,isNaN(ht)){var Vt=Nt.ua,Zt=oi();Vt.Qu(gt,Zt);var oe=Ee.allocAt(Zt[0],Zt[1]);oe.add(Nt.i(0)),Vt.type===pn.j||(Vt=Vt.figures.first()),oe.offset(-Vt.startX,-Vt.startY),Vt=Zt[2],bt!==us&&(Nt=Nt.computeAngle(nt,bt,Vt),nt.angle=Nt),Nt=oe.x;var Pe=oe.y;Ee.free(oe),ri(Zt)}else if(ht<-x||ht>=x)Zt=Ee.alloc(),Vt=Nt,Pe=Zt,Vt.vg(),Vt.computeMidPoint(Pe),Vt=Nt.midAngle,bt!==us&&(Nt=Nt.computeAngle(nt,bt,Vt),nt.angle=Nt),Nt=Zt.x,Pe=Zt.y,Ee.free(Zt);else{if(oe=0,0<=ht?(Zt=y.s[ht],Pe=ht<x-1?y.s[ht+1]:Zt):(oe=x+ht,Zt=y.s[oe],Pe=0<oe?y.s[oe-1]:Zt),Zt.Xa(Pe)){0<=ht?(Vt=0<ht?y.s[ht-1]:Zt,oe=ht<x-2?y.s[ht+2]:Pe):(Vt=oe<x-1?y.s[oe+1]:Zt,oe=1<oe?y.s[oe-2]:Pe);var de=Vt.Bf(Zt),Le=Pe.Bf(oe);Vt=de>Le+10?0<=ht?Vt.ab(Zt):Zt.ab(Vt):Le>de+10?0<=ht?Pe.ab(oe):oe.ab(Pe):0<=ht?Vt.ab(oe):oe.ab(Vt)}else Vt=0<=ht?Zt.ab(Pe):Pe.ab(Zt);bt!==us&&(Nt=Nt.computeAngle(nt,bt,Vt),nt.angle=Nt),Nt=Zt.x+(Pe.x-Zt.x)*gt,Pe=Zt.y+(Pe.y-Zt.y)*gt}if(zt.ys())nt.location=new Ee(Nt,Pe);else{zt.Mc()&&(zt=wi),Zt=Xn.alloc(),Zt.reset(),Zt.scale(nt.scale,nt.scale),Zt.rotate(nt.angle,0,0);var Oe=nt.naturalBounds;oe=$e.allocAt(0,0,Oe.width,Oe.height),de=Ee.alloc(),de.xi(oe,zt),Zt.Ga(de),zt=-de.x,Le=-de.y;var De=Oe.width,Re=Oe.height;Oe=Ee.alloc(),Oe.assign(Pt);var Ve=isNaN(Pt.x),Sn=isNaN(Pt.y);if(Ve||Sn){De=De/2+3,Re=Re/2+3;var Mn=45<=Vt&&135>=Vt,Pn=225<=Vt&&315>=Vt;bt===us&&(Mn||Pn)?(Oe.x=Sn?De:Pt.y,Oe.y=Ve?Re:Pt.x,Mn?0<=ht||isNaN(ht)&&.5>gt||!Ve||(Oe.y=-Re):Pn&&((0<=ht||isNaN(ht)&&.5>gt)&&Ve&&(Oe.y=-Re),Sn&&(Oe.x=-De))):(Ve&&(Oe.x=0<=ht||isNaN(ht)&&.5>gt?De:-De),Sn&&(Oe.y=-Re),Oe.rotate(Vt))}else Oe.rotate(Vt);Nt+=Oe.x,Pe+=Oe.y,Zt.pp(oe),zt+=oe.x,Le+=oe.y,ht=Ee.allocAt(Nt+zt,Pe+Le),nt.move(ht),Ee.free(ht),Ee.free(Oe),Ee.free(de),$e.free(oe),Xn.free(Zt)}}tt!==null?tt.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ee.free(b)}};function r1(a,y,x,b){if(ea(b)!==!1){var tt=b.strokeWidth;tt===0&&a instanceof di&&a.type===un.Link&&a.adornedObject instanceof Wn&&(tt=a.adornedObject.strokeWidth),tt*=b.Ca,a instanceof cn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):a instanceof di&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):b.Ge(-(tt/2),-(tt/2),y+tt,x+tt),tt=b.desiredSize,tt.w()||b.ua===null?b.dc.h(0,0,tt.width,tt.height):b.dc.assign(b.ua.bounds),Br(b,!1)}}function zp(){this.xa="Base"}en(zp,Wr),zp.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=a.Pb();a.graduatedBounds=[];var gt=ht.margin,bt=gt.right+gt.left,Pt=gt.top+gt.bottom;ht.measure(y,x,et,nt);var Nt=ht.measuredBounds,zt=new $e(-gt.left,-gt.top,Math.max(Nt.width+bt,0),Math.max(Nt.height+Pt,0));a.graduatedBounds.push(zt),tt.assign(zt);for(var Vt=ht.geometry,Zt=ht.strokeWidth,oe=Vt.flattenedSegments,Pe=Vt.flattenedLengths,de=Vt.flattenedTotalLength,Le=oe.length,Oe=0,De=0,Re=oi(),Ve=0;Ve<Le;Ve++){var Sn=oe[Ve],Mn=[];De=Oe=0;for(var Pn=Sn.length,hn=0;hn<Pn;hn+=2){var rn=Sn[hn],Gn=Sn[hn+1];if(hn!==0){var Fn=180*Math.atan2(Gn-De,rn-Oe)/Math.PI;0>Fn&&(Fn+=360),Mn.push(Fn)}Oe=rn,De=Gn}Re.push(Mn)}if(a.graduatedIntervals===null){for(var yi=[],_i=a.O.s,io=_i.length,lo=0;lo<io;lo++){var Yo=_i[lo],ro=[];if(yi.push(ro),Yo.visible){var nh=Yo.interval;if(!(0>nh)){for(var Tr=0;Tr<io;Tr++)if(Tr!==lo){var hl=_i[Tr];if(hl.visible&&Yo.constructor===hl.constructor){var Ko=hl.interval;Ko>nh&&ro.push(Ko)}}}}}a.graduatedIntervals=yi}var ih=a.graduatedIntervals,oa=a.O.s,Da=oa.length,Ws=0,_s=0,Kh=de;a.graduatedMarks=[];for(var cl,Ud=0;Ud<Da;Ud++){var Vs=oa[Ud];if(cl=[],Vs.visible&&Vs!==ht){var Xo=Math.abs(Vs.interval),Eg=a.graduatedTickUnit;if(!(2>Eg*Xo*de/a.graduatedRange&&Vs.graduatedSkip===null)){var kf=Pe[0][0],Al=0,Os=0;_s=de*Vs.graduatedStart-1e-4,Kh=de*Vs.graduatedEnd+1e-4;var Nc=Eg*Xo,Ys=a.graduatedTickBase;if(Ys<a.graduatedMin){var Xh=(a.graduatedMin-Ys)/Nc;Xh=Xh%1===0?Xh:Math.floor(Xh+1),Ys+=Xh*Nc}else Ys>a.graduatedMin+Nc&&(Ys-=Math.floor((Ys-a.graduatedMin)/Nc)*Nc);for(var z0=ih[Ud],Ag=Ys,Gy=1e-6*a.graduatedMax,Ql=1;Ys<=a.graduatedMax+Gy;Ql++){t:{for(var mu=z0.length,Lf=0;Lf<mu;Lf++){var Zh=(Ys-a.graduatedTickBase)%(z0[Lf]*a.graduatedTickUnit),Hd=1e-6*a.graduatedTickUnit;if(Zh<Hd&&Zh>-Hd){var Qh=!1;break t}}Qh=!0}if(Qh&&(Ys>a.graduatedMax&&(Ys=a.graduatedMax),Vs.graduatedSkip===null||Vs instanceof Ni&&!Vs.graduatedSkip(Ys,Vs)||Vs instanceof Wn&&!Vs.graduatedSkip(Ys,Vs))&&(Ws=(Ys-a.graduatedMin)*de/a.graduatedRange,Ws>de&&(Ws=de),_s<=Ws&&Ws<=Kh)){for(var Jl=Re[Al][Os],rh=Pe[Al][Os];Al<Pe.length;){for(;Ws>kf&&Os<Pe[Al].length-1;)Os++,Jl=Re[Al][Os],rh=Pe[Al][Os],kf+=rh;if(Ws<=kf)break;Al++,Os=0,Jl=Re[Al][Os],rh=Pe[Al][Os],kf+=rh}var js=oe[Al],Ml=js[2*Os],G0=js[2*Os+1],vu=(Ws-(kf-rh))/rh,Wd=new Ee(Ml+(js[2*Os+2]-Ml)*vu+Zt/2-Vt.bounds.x,G0+(js[2*Os+3]-G0)*vu+Zt/2-Vt.bounds.y);Wd.scale(ht.scale,ht.scale);t:{var fl=Jl,Dc=Re[Al];if(!(.5005>vu&&.4995<vu)){var kl=fl;if(.5>vu?0<Os?kl=Dc[Os-1]:Ge.$(js[0],js[js.length-2])&&Ge.$(js[1],js[js.length-1])&&(kl=Dc[Dc.length-1]):.5<vu&&(Os+1<Dc.length?kl=Dc[Os+1]:Ge.$(js[0],js[js.length-2])&&Ge.$(js[1],js[js.length-1])&&(kl=Dc[0])),fl!==kl){var Tf=Math.abs(fl-kl);if(180<Tf&&(fl<kl?fl+=360:kl+=360,Tf=Math.abs(fl-kl)),5e-4>vu||.9995<vu){Jl=(fl+kl)/2%360;break t}if(10>Tf){var Vd=1-Math.abs(.5-vu);Jl=(fl*Vd+kl*(1-Vd))%360;break t}}}Jl=fl}if(Vs instanceof Ni){var Ja="";Vs.graduatedFunction!==null?(Ja=Vs.graduatedFunction(Ys,Vs),Ja=Ja!=null?Ja.toString():""):Ja=(+Ys.toFixed(2)).toString(),Ja!==""&&cl.push({$l:Wd,angle:Jl,text:Ja})}else cl.push({$l:Wd,angle:Jl})}Ys=Ag+Ql*Nc}}}a.graduatedMarks.push(cl)}ri(Re);var xo=a.graduatedMarks;if(xo!==null)for(var Mg=b.length,ps=0;ps<Mg;ps++){var _r=b[ps],gs=xo[ps];if(_r.visible&&_r!==ht&&gs.length!==0){if(_r instanceof Wn){var yu=a,oh=tt,Ic=_r.alignmentFocus;Ic.Mc()&&(Ic=Zs);var Uy=_r.angle;_r.Kb=0,_r.measure(1/0,1/0,0,0),_r.Kb=Uy;var U0=_r.measuredBounds,Yd=U0.width,Fc=U0.height,_f=$e.allocAt(0,0,Yd,Fc),Ns=Ee.alloc();Ns.xi(_f,Ic),$e.free(_f);for(var Su=-Ns.x,dl=-Ns.y,xa=new $e,Jh=gs.length,Kd=0;Kd<Jh;Kd++)for(var qh=gs[Kd],H0=qh.$l.x,Xd=qh.$l.y,wr=qh.angle,qa=0;4>qa;qa++){switch(qa){case 0:Ns.h(Su,dl);break;case 1:Ns.h(Su+Yd,dl);break;case 2:Ns.h(Su,dl+Fc);break;case 3:Ns.h(Su+Yd,dl+Fc)}Ns.rotate(wr+_r.angle),Ns.offset(H0,Xd),Kd===0&&qa===0?xa.h(Ns.x,Ns.y,0,0):xa.Ye(Ns),Ns.offset(-H0,-Xd),Ns.rotate(-wr-_r.angle)}Ee.free(Ns),yu.graduatedBounds!==null&&yu.graduatedBounds.push(xa),xr(oh,xa.x,xa.y,xa.width,xa.height)}else if(_r instanceof Ni){var Ia=a,W0=tt;Ia.temporaryTextBlock===null&&(Ia.temporaryTextBlock=new Ni);var Ks=Ia.temporaryTextBlock;S1(Ks,_r);var sh=_r.alignmentFocus;sh.Mc()&&(sh=Zs);for(var Fa=_r.segmentOrientation,Zd=_r.segmentOffset,$h=new $e,kg=0,Qd=0,Ll=0,Bc=0,tc=0,Jd=gs.length,ah=0;ah<Jd;ah++){var ql=gs[ah];kg=ql.$l.x,Qd=ql.$l.y,Ll=ql.angle,tc=Bc=_r.angle,Fa!==us&&(tc=Fa===Jp||Fa===Jm?Ll+_r.angle:Ll,Bc=cn.computeAngle(Fa,tc)),Ks.Kb=Bc,Ks.text=ql.text||"",Ks.measure(1/0,1/0,0,0);var lh=Ks.measuredBounds,wu=Ks.naturalBounds,uh=wu.width,Rc=wu.height,pl=Xn.alloc();pl.reset(),pl.translate(-lh.x,-lh.y),pl.scale(Ks.scale,Ks.scale),pl.rotate(tc,uh/2,Rc/2),Fa!==qp&&Fa!==tg||pl.rotate(90,uh/2,Rc/2),Fa!==$p&&Fa!==eg||pl.rotate(-90,uh/2,Rc/2),Fa===qm&&(45<Ll&&135>Ll||225<Ll&&315>Ll)&&pl.rotate(-Ll,uh/2,Rc/2);var Of=$e.allocAt(0,0,uh,Rc),hh=Ee.alloc();hh.xi(Of,sh),pl.Ga(hh);var jf=-hh.x,Hy=-hh.y,xu=Ee.alloc();xu.assign(Zd),isNaN(xu.x)&&(xu.x=uh/2+3),isNaN(xu.y)&&(xu.y=-(Rc/2+3)),xu.rotate(Ll),kg+=xu.x+jf,Qd+=xu.y+Hy;var zc=new $e(kg,Qd,lh.width,lh.height),Lg=new $e(lh.x,lh.y,lh.width,lh.height),Wy=new $e(wu.x,wu.y,wu.width,wu.height);ql.Sz=Bc,ql.lineCount=Ks.lineCount,ql.lines=[Ks.Cb,Ks.Ih,Ks.df,Ks.Le,Ks.Qc,Ks.Qb,Ks.ze],ql.actualBounds=zc,ql.measuredBounds=Lg,ql.naturalBounds=Wy,ah===0?$h.assign(zc):$h.ed(zc),Ee.free(xu),Ee.free(hh),$e.free(Of),Xn.free(pl)}Ia.graduatedBounds!==null&&Ia.graduatedBounds.push($h),xr(W0,$h.x,$h.y,$h.width,$h.height)}Br(_r,!1)}}},zp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),tt=a.graduatedMarks;if(tt!==null){var et=a.graduatedBounds,nt=0,ht=et[nt];nt++,b!==null&&b.arrange(ht.x-x.x,ht.y-x.y,ht.width,ht.height);for(var gt=y.length,bt=0;bt<gt;bt++){var Pt=y[bt];ht=tt[bt],Pt.visible&&Pt!==b&&ht.length!==0&&(ht=et[nt],nt++,Pt.arrange(ht.x-x.x,ht.y-x.y,ht.width,ht.height))}a.graduatedBounds=null}}},zp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var tt=a.naturalBounds,et=tt.width,nt=tt.height;tt=y instanceof Gs,y.save(),y.beginPath(),y.rect(-1,-1,et+1,nt+1),y.clip(),y.Se(),et=a.Pb(),et.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ht=et.actualBounds,gt=a.O.s,bt=a.graduatedMarks,Pt=gt.length,Nt=0;Nt<Pt;Nt++){var zt=gt[Nt],Vt=bt[Nt],Zt=Vt.length;if(zt.visible&&zt!==et&&Vt.length!==0){if(zt instanceof Wn){if(!(2>a.graduatedTickUnit*zt.interval*et.geometry.flattenedTotalLength/a.graduatedRange*nt&&zt.graduatedSkip===null)){var oe=zt.measuredBounds,Pe=zt.strokeWidth*zt.scale,de=zt.alignmentFocus;de.Mc()&&(de=Zs);for(var Le=0;Le<Zt;Le++){var Oe=Vt[Le].$l,De=Vt[Le].angle,Re=de,Ve=zt.Ab;Ve.reset(),Ve.translate(Oe.x+ht.x,Oe.y+ht.y),Ve.rotate(De+zt.angle,0,0),Ve.translate(-oe.width*Re.x+Re.offsetX+Pe/2,-oe.height*Re.y+Re.offsetY+Pe/2),Ve.scale(zt.scale,zt.scale),Ta(zt,!1),zt.wh.set(zt.Ab),zt.Kk=zt.scale,pa(zt,!1),zt.gc(y,x),tt&&(a.svg.appendChild(zt.svg),zt.svg=null),zt.Ab.reset()}}}else if(zt instanceof Ni)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ni),oe=a.temporaryTextBlock,S1(oe,zt),Pe=0;Pe<Zt;Pe++)de=Vt[Pe],de.actualBounds&&de.measuredBounds&&de.naturalBounds&&(oe.ec=de.text||"",oe.Kb=de.Sz||0,oe.Gc=de.lineCount||0,Le=de.lines,Le!==void 0&&(oe.Cb=Le[0],oe.Ih=Le[1],oe.df=Le[2],oe.Le=Le[3],oe.Qc=Le[4],oe.Qb=Le[5],oe.ze=Le[6]),de.naturalBounds&&(oe.dc=de.naturalBounds),de.actualBounds&&(Le=de.actualBounds,oe.arrange(Le.x,Le.y,Le.width,Le.height)),Le=de.actualBounds,oe.arrange(Le.x,Le.y,Le.width,Le.height),Oe=de.measuredBounds,de=de.naturalBounds,De=oe.Ab,De.reset(),De.translate(Le.x+ht.x,Le.y+ht.y),De.translate(-Oe.x,-Oe.y),oe.no(De,de.x,de.y,de.width,de.height),Ta(oe,!1),oe.wh.set(oe.Ab),oe.Kk=oe.scale,pa(oe,!1),oe.Ng=zt.part,oe.Me=zt.panel,oe.gc(y,x),oe.Me=null,oe.Ng=null,tt&&(a.svg.appendChild(oe.svg),oe.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function un(a,y){if(ze.call(this),this.na=null,a===void 0)this.na=un.Position;else if(typeof a=="string"){var x=Va.I(a);x!==null&&(this.na=x)}else a instanceof Wr?this.na=a:a&&(this.na=un.Position,y=a);this.na===null&&We("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===un.Grid?1048576:0),this.O=new vn,this.yb=Ra,this.Tm=oo,this.Uf=Hn,this.$g=null,this.$e="",this.jg=new $e(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=kn,this.jn=Ur,this.kn=jo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}en(un,ze),un.prototype.cloneProtected=function(a){ze.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},un.prototype.Af=function(a){ze.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},un.prototype.copy=function(){var a=ze.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b].copy();tt.wi(a),tt.Ng=null;var et=a.O,nt=et.count;if(et.Gb(nt,tt),et=a.part,et!==null){et.Rh=null,tt.portId!==null&&et instanceof wn&&(et.Te=!0);var ht=a.diagram;ht!==null&&ht.undoManager.isUndoingRedoing||et.cb(Ar,"elements",a,null,tt,null,nt)}}return a}return null},ee=un.prototype,ee.toString=function(){return"Panel("+this.type.name+")#"+Kr(this)},ee.Pn=function(a){ze.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},ee.hh=function(a,y){if(this.na===un.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===un.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===un.Table)if(a.yc(),a instanceof Gs){var x=a.yd;a.yd=um(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===un.Spot)&&a.save();for(var b=this.Pb(),tt=this.O.s,et=tt.length,nt=0;nt<et;nt++){var ht=tt[nt];x&&ht===b&&(a.clipInsteadOfFill=!0),ht.gc(a,y),x&&ht===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Pm(a,y,!0,x,!0),b!==null&&Pm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Pm(a,y,!0,x,!1),b!==null&&Pm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var tt=b.length,et=a.actualBounds,nt=a.naturalBounds,ht=!0,gt=0;gt<tt;gt++){var bt=b[gt];if(bt!==void 0&&bt.actual!==0)if(ht)ht=!1;else{if(x){if(bt.position>nt.height)continue}else if(bt.position>nt.width)continue;var Pt=bt.separatorStrokeWidth;isNaN(Pt)&&(Pt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Nt=bt.separatorStroke;if(Nt===null&&(Nt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),Pt!==0&&Nt!==null){vr(a,y,Nt,!1,!1,nt,et),Nt=!1;var zt=bt.separatorDashArray;zt===null&&(zt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),zt!==null&&(Nt=!0,y.js(zt,0)),y.beginPath(),zt=bt.position+Pt,x?zt>nt.height&&(Pt-=zt-nt.height):zt>nt.width&&(Pt-=zt-nt.width),bt=bt.position+Pt/2,y.lineWidth=Pt,Pt=a.yb,x?(bt+=Pt.top,zt=nt.width-Pt.right,y.moveTo(Pt.left,bt),y.lineTo(zt,bt)):(bt+=Pt.left,zt=nt.height-Pt.bottom,y.moveTo(bt,Pt.top),y.lineTo(bt,zt)),y.stroke(),y.Se(),Nt&&y.fs()}}}}function Pm(a,y,x,b,tt){for(var et=b.length,nt=a.actualBounds,ht=a.naturalBounds,gt=s1(a,!0),bt=s1(a,!1),Pt=0;Pt<et;Pt++){var Nt=b[Pt];if(Nt!==void 0&&Nt.background!==null&&Nt.coversSeparators!==tt&&Nt.actual!==0){var zt=x?nt.height:nt.width;if(!(Nt.position>zt)){var Vt=Nt.Wc(),Zt=Nt.separatorStrokeWidth;isNaN(Zt)&&(Zt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var oe=Nt.separatorStroke;oe===null&&(oe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(oe===null||Nt.index===(x?gt:bt))&&(Zt=0),Vt-=Zt,Zt=Nt.position+Zt,Vt+=Nt.actual,Zt+Vt>zt&&(Vt=zt-Zt),0>=Vt||(zt=a.yb,vr(a,y,Nt.background,!0,!1,ht,nt),x?y.fillRect(zt.left,Zt+zt.top,nt.width-(zt.left+zt.right),Vt):y.fillRect(Zt+zt.left,zt.top,Vt,nt.height-(zt.top+zt.bottom)))}}}}function s1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var tt=y?a.rowDefs[b]:a.colDefs[b];if(tt!==void 0)return tt.index}return 0}function mv(a){return a==="LineV"||a==="BarV"}ee.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},ee.kk=function(a,y,x){if(!ze.prototype.kk.call(this,a,y,x))return!1;if(this.type===un.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===un.Grid||this.na===un.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,tt=0;tt<b;tt++)x[tt].gc(a,y);return!0},ee.nk=function(){return!0},ee.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var tt=0,et=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ht=y[nt].actualBounds;tt=nt===0?ht.x:Math.min(ht.x,tt),et=nt===0?ht.y:Math.min(ht.y,et)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-tt)+","+(a.y-x.y-et)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else ze.prototype.$o.call(this,a,y,x,b)},ee.Sj=function(a,y,x,b,tt){var et=this.se(),nt=this.transform,ht=1/(nt.m11*nt.m22-nt.m12*nt.m21),gt=nt.m22*ht,bt=-nt.m12*ht,Pt=-nt.m21*ht,Nt=nt.m11*ht,zt=ht*(nt.m21*nt.dy-nt.m22*nt.dx),Vt=ht*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,Ge.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,tt);if(this.background!==null)return et=a*gt+y*Pt+zt,ht=a*bt+y*Nt+Vt,a=x*gt+b*Pt+zt,gt=x*bt+b*Nt+Vt,tt.h(0,0),x=this.naturalBounds,et=Ge.Ff(0,0,x.width,x.height,et,ht,a,gt,tt),tt.transform(nt),et;et||(gt=1,Pt=bt=0,Nt=1,Vt=zt=0),ht=a*gt+y*Pt+zt,a=a*bt+y*Nt+Vt,gt=x*gt+b*Pt+zt,x=x*bt+b*Nt+Vt,tt.h(gt,x),b=(gt-ht)*(gt-ht)+(x-a)*(x-a),bt=!1,Nt=this.O.s,Vt=Nt.length,Pt=Ee.alloc(),zt=null,y=1/0;var Zt=null,oe=this.isClipping&&this.na===un.Spot;oe&&(Zt=Ee.alloc(),zt=this.Pb(),(bt=zt.Sj(ht,a,gt,x,Zt))&&(y=(ht-Zt.x)*(ht-Zt.x)+(a-Zt.y)*(a-Zt.y)));for(var Pe=0;Pe<Vt;Pe++){var de=Nt[Pe];de.visible&&de!==zt&&de.Sj(ht,a,gt,x,Pt)&&(bt=!0,de=(ht-Pt.x)*(ht-Pt.x)+(a-Pt.y)*(a-Pt.y),de<b&&(b=de,tt.set(Pt)))}return oe&&(y>b&&tt.set(Zt),Ee.free(Zt)),Ee.free(Pt),et&&tt.transform(nt),bt},ee.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();ze.prototype.Gj.call(this)},ee.v=function(a){if(!ea(this)){ze.prototype.v.call(this,a),a=null,(this.na===un.Auto||this.na===un.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b];if((tt===a||tt.isPanelMain)&&tt.v(!0),!tt.desiredSize.w()){var et=ws(tt,!1);(tt instanceof ls||tt instanceof un||tt instanceof Ni||et!==an)&&tt.v(!0)}}}},ee.Uj=function(){if(!ea(this)){Br(this,!0),Rl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},ee.Uk=function(){if(!(this.l&2048)){Ta(this,!0),pa(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},ee.Wu=function(){pa(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},ee.Wl=function(a,y,x,b){var tt=this.jg;tt.h(0,0,0,0);var et=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 ht=this.maxSize;isNaN(et.width)||(a=Math.min(et.width,ht.width)),isNaN(et.height)||(y=Math.min(et.height,ht.height)),a=Math.max(x,a),y=Math.max(b,y);var gt=this.yb;a=Math.max(a-gt.left-gt.right,0),y=Math.max(y-gt.top-gt.bottom,0);var bt=this.O.s;bt.length!==0&&this.na.measure(this,a,y,bt,tt,x,b),a=tt.width+gt.left+gt.right,gt=tt.height+gt.top+gt.bottom,isFinite(et.width)&&(a=et.width),isFinite(et.height)&&(gt=et.height),a=Math.min(ht.width,a),gt=Math.min(ht.height,gt),a=Math.max(nt.width,a),gt=Math.max(nt.height,gt),a=Math.max(x,a),gt=Math.max(b,gt),Es(tt,a,gt),Es(this.naturalBounds,a,gt),this.Ge(0,0,a,gt)},ee.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 du(a){return a.part!==null?a.part.locationObject:null}ee.eh=function(a,y,x,b){var tt=this.O.s;if(this.actualBounds.h(a,y,x,b),tt.length!==0){if(!this.desiredSize.w()){a=ws(this,!0);var et=this.measuredBounds;y=et.width,et=et.height;var nt=this.Kg,ht=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&et===b&&(a=an),a){case an:(y>x||et>b)&&(this.v(),this.measure(y>x?x:y,et>b?b:et,0,0));break;case ln:this.v(!0),this.measure(x+ht,b+nt,0,0);break;case Tn:this.v(!0),this.measure(x+ht,et+nt,0,0);break;case In:this.v(!0),this.measure(y+ht,b+nt,0,0)}}this.na.arrange(this,tt,this.jg)}},ee.gh=function(a){var y=this.naturalBounds,x=du(this);if(Eo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,tt=Ee.allocAt(0,0);b--;){var et=y[b];if((et.visible||et===x)&&(Er(tt.set(a),et.transform),et.ca(tt)))return Ee.free(tt),!0}return Ee.free(tt),!(this.Ma===null&&this.areaBackground===null)}return!1},ee.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b].ks(a);if(tt!==null)return tt}return null},ee.qm=function(a,y){if(y(this,a),a instanceof un){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Ac(a,y){a1(a,a,y)}function a1(a,y,x){x(y),y=y.O.s;for(var b=y.length,tt=0;tt<b;tt++){var et=y[tt];et instanceof un&&a1(a,et,x)}}function yw(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof un){y=y.O.s;for(var b=y.length,tt=0;tt<b;tt++)l1(a,y[tt],x)}}ee.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof un){y=y.O.s;for(var b=y.length,tt=0;tt<b;tt++){var et=u1(a,y[tt],x);if(et!==null)return et}}return null}ee.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Gp(this));for(var b=0;b<x;b++){var tt=y[b];if(tt instanceof un){var et=tt.fb(a);if(et!==null)return et}if(tt.name===a)return tt}return null};function h1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var tt=a[b];tt instanceof un?x=Math.max(x,h1(tt)):tt instanceof Wn&&(x=Math.max(x,tt.ig/2*tt.strokeMiterLimit*tt.Df()))}return x}ee.se=function(){return!(this.type===un.TableRow||this.type===un.TableColumn)};function Yu(a){return a.type===un.TableRow||a.type===un.TableColumn}ee.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),ss(this)))return null;var b=this.naturalBounds,tt=1/this.Df(),et=this.se(),nt=et?a:Er(Ee.allocAt(a.x,a.y),this.transform),ht=this.diagram,gt=10,bt=5;if(ht!==null&&(gt=ht.Ql("extraTouchArea"),bt=gt/2),Eo(-(bt*tt),-(bt*tt),b.width+gt*tt,b.height+gt*tt,nt.x,nt.y)){if(!this.isAtomic){tt=this.O.s;var Pt=tt.length;if(ht=Ee.alloc(),bt=(gt=this.isClipping&&this.na===un.Spot)?this.Pb():null,gt&&(bt.se()?Er(ht.set(a),bt.transform):ht.set(a),!bt.ca(ht)))return Ee.free(ht),et||Ee.free(nt),null;for(var Nt=du(this);Pt--;){var zt=tt[Pt];if((zt.visible||zt===Nt)&&(zt.se()?Er(ht.set(a),zt.transform):ht.set(a),!gt||zt!==bt)){var Vt=null;if(zt instanceof un?Vt=zt.ic(ht,y,x):zt.pickable===!0&&zt.ca(ht)&&(Vt=zt),Vt!==null&&(y!==null&&(Vt=y(Vt)),Vt!==null&&(x===null||x(Vt))))return Ee.free(ht),et||Ee.free(nt),Vt}}Ee.free(ht)}return this.background===null&&this.areaBackground===null?(et||Ee.free(nt),null):(a=Eo(0,0,b.width,b.height,nt.x,nt.y)?this:null,et||Ee.free(nt),a)}return et||Ee.free(nt),null},ee.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=this.naturalBounds,et=this.se(),nt=et?a:Er(Ee.allocAt(a.x,a.y),this.transform);if(tt=Eo(0,0,tt.width,tt.height,nt.x,nt.y),Yu(this)||tt){if(!this.isAtomic){for(var ht=this.O.s,gt=ht.length,bt=Ee.alloc(),Pt=du(this);gt--;){var Nt=ht[gt];if(Nt.visible||Nt===Pt){Nt.se()?Er(bt.set(a),Nt.transform):bt.set(a);var zt=Nt;Nt=Nt instanceof un?Nt:null,(Nt!==null?Nt.ji(bt,y,x,b):zt.ca(bt))&&zt.pickable!==!1&&(y!==null&&(zt=y(zt)),zt===null||x!==null&&!x(zt)||b.add(zt))}}Ee.free(bt)}return et||Ee.free(nt),tt&&(this.background!==null||this.areaBackground!==null)}return et||Ee.free(nt),!1},ee.Cf=function(a,y,x,b,tt,et){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=et;if(et===void 0&&(nt=Xn.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,tt),et===void 0&&Xn.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ht=du(this),gt=this.O.s,bt=gt.length;bt--;){var Pt=gt[bt];if(Pt.visible||Pt===ht){var Nt=Pt.actualBounds,zt=this.naturalBounds;Nt.x>zt.width||Nt.y>zt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height||(Nt=Pt,Pt=Pt instanceof un?Pt:null,zt=Xn.alloc(),zt.set(nt),(Pt!==null?Pt.Cf(a,y,x,b,tt,zt):no(Nt,a,b,zt))&&(y!==null&&(Nt=y(Nt)),Nt===null||x!==null&&!x(Nt)||tt.add(Nt)),Xn.free(zt))}}return et===void 0&&Xn.free(nt),b}return et===void 0&&Xn.free(nt),!1};function vv(a,y,x,b){for(var tt=a.O.s,et=tt.length;et--;){var nt=tt[et];if(nt.visible){var ht=nt.actualBounds,gt=a.naturalBounds;ht.x>gt.width||ht.y>gt.height||0>ht.x+ht.width||0>ht.y+ht.height||(nt instanceof un&&vv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}ee.og=function(a,y,x,b,tt,et){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,ht=this.se(),gt=ht?a:Er(Ee.allocAt(a.x,a.y),this.transform),bt=ht?y:Er(Ee.allocAt(y.x,y.y),this.transform),Pt=gt.Bf(bt),Nt=0<gt.x&&gt.x<nt.width&&0<gt.y&&gt.y<nt.height||Zr(gt.x,gt.y,0,0,0,nt.height)<=Pt||Zr(gt.x,gt.y,0,nt.height,nt.width,nt.height)<=Pt||Zr(gt.x,gt.y,nt.width,nt.height,nt.width,0)<=Pt||Zr(gt.x,gt.y,nt.width,0,0,0)<=Pt;if(nt=gt.zd(0,0)<=Pt&&gt.zd(0,nt.height)<=Pt&&gt.zd(nt.width,0)<=Pt&&gt.zd(nt.width,nt.height)<=Pt,ht||(Ee.free(gt),Ee.free(bt)),Nt){if(!this.isAtomic){gt=Ee.alloc(),bt=Ee.alloc(),Pt=du(this);for(var zt=this.O.s,Vt=zt.length;Vt--;){var Zt=zt[Vt];if(Zt.visible||Zt===Pt){var oe=Zt.actualBounds,Pe=this.naturalBounds;(!ht||!(oe.x>Pe.width||oe.y>Pe.height||0>oe.x+oe.width||0>oe.y+oe.height))&&(Zt.se()?(oe=Zt.transform,Er(gt.set(a),oe),Er(bt.set(y),oe)):(gt.set(a),bt.set(y)),oe=Zt,Zt=Zt instanceof un?Zt:null,(Zt!==null?Zt.og(gt,bt,x,b,tt,et):oe.tx(gt,bt,tt))&&(x!==null&&(oe=x(oe)),oe===null||b!==null&&!b(oe)||et.add(oe)))}}Ee.free(gt),Ee.free(bt)}return tt?Nt:nt}return!1};function yv(a){var y=null;return a instanceof Wn&&(y=a.spot1,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=vo),y}function Sv(a){var y=null;return a instanceof Wn&&(y=a.spot2,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=qo),y}ee.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},ee.M=function(a){return this.O.M(a)},ee.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!==un.Grid||y instanceof Wn||We("Can only add Shapes to a Grid Panel, not: "+y),this.na!==un.Graduated||y instanceof Wn||y instanceof Ni||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 Rn),this.ge.add(b,y))}var tt=this.O;if(b=-1,x===this){for(var et=-1,nt=this.O.s,ht=nt.length,gt=0;gt<ht;gt++)if(nt[gt]===y){et=gt;break}if(et!==-1){if(et===a||et+1>=tt.count&&a>=tt.count)return;tt.mb(et),b=et}else We("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>tt.count)&&(a=tt.count),tt.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ea(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof un&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Em(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof wn&&(x.Te=!0),x.Te&&x instanceof wn&&(x.wc=null),tt=this.diagram,tt!==null&&tt.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Hr,"elements",this,y,null,b,null),x.cb(Ar,"elements",this,null,y,null,a)))};function wv(a,y){a.l=y?a.l|16777216:a.l&-16777217}ee.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,tt=0;tt<x;tt++)if(y[tt]===a){b=tt;break}b!==-1&&this.pc(b,!0)},ee.mb=function(a){0<=a&&this.pc(a,!0)},ee.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var tt=b.data;typeof tt=="object"&&this.ge.remove(tt)}x.mb(a),Br(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var et=this.part;et!==null&&(et.Rh=null,et.ag=NaN,et.Wb(),et instanceof wn&&(b instanceof un?b.qm(b,function(nt,ht){Hv(et,ht,y)}):Hv(et,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||et.cb(Hr,"elements",this,b,null,a,null))},ee.Fb=function(a){0>a&&ti(a,">= 0",un,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Rr;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ar,"rowdefs",this,null,x,null,a)}return y[a]},ee.oA=function(a){if(0>a&&ti(a,">= 0",un,"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(Hr,"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 Rr?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ee.Eb=function(a){0>a&&ti(a,">= 0",un,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Rr;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ar,"coldefs",this,null,x,null,a)}return y[a]},ee.jA=function(a){if(0>a&&ti(a,">= 0",un,"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(Hr,"coldefs",this,x,null,a,null),this.v()}}};function f1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Rr?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ee.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Am(y,a),this},ee.Hy=function(a,y){return(a=this.Fb(a))&&Am(a,new Rr(y)),this},ee.By=function(a,y){return(a=this.Eb(a))&&Am(a,new Rr(y)),this},ee.nz=function(a){if(0>a||this.type!==un.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,tt=this.topIndex;tt<b;tt++){var et=x[tt];if(et!==void 0&&(y+=et.total,a<y))break}return tt},ee.fz=function(a){if(0>a||this.type!==un.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,tt=this.leftIndex;tt<b;tt++){var et=x[tt];if(et!==void 0&&(y+=et.total,a<y))break}return tt},ee.Fz=function(a,y){if(y===void 0&&(y=new Ee(NaN,NaN)),this.type!==un.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)},ee.Gz=function(a){if(this.type!==un.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function d1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Oa(a){var y=a.allBindings;if(y===null)a.data!==null&&We("Template cannot have .data be non-null: "+a),a.allBindings=y=new vn;else if(y._isFrozen)return;var x=new vn;wv(a,!1),a.qm(a,function(bt,Pt){Pt.th();var Nt=Pt.localBindings;if(Nt!==null)for(df(Pt,!1),Nt=Nt.iterator;Nt.next();){var zt=Nt.value;zt.mode===ug&&df(Pt,!0);var Vt=zt.sourceName;Vt!==null&&(Vt==="/"&&wv(bt,!0),Vt=MS(zt,bt,Pt),Vt!==null&&(x.add(Vt),Vt.srcBindings===null&&(Vt.srcBindings=new vn),Vt.srcBindings.add(zt))),y.add(zt)}if(Pt instanceof un&&Pt.type===un.Table){if(0<Pt.rowCount){for(bt=Pt.rowDefs,Nt=bt.length,zt=0;zt<Nt;zt++)if(Vt=bt[zt],Vt!==void 0&&Vt.be!==null)for(var Zt=Vt.be.iterator;Zt.next();){var oe=Zt.value;oe.xd=Vt,oe.to=2,oe.wl=Vt.index,y.add(oe)}}if(0<Pt.columnCount){for(Pt=Pt.colDefs,bt=Pt.length,Nt=0;Nt<bt;Nt++)if(zt=Pt[Nt],zt!==void 0&&zt.be!==null)for(Vt=zt.be.iterator;Vt.next();)Zt=Vt.value,Zt.xd=zt,Zt.to=1,Zt.wl=zt.index,y.add(Zt)}}});for(var b=x.iterator;b.next();){var tt=b.value;if(tt.srcBindings!==null){df(tt,!0);for(var et=tt.srcBindings.iterator;et.next();){var nt=et.value;tt.localBindings===null&&(tt.localBindings=new vn),tt.localBindings.add(nt)}}tt.srcBindings=null}for(b=y.iterator;b.next();)if(tt=b.value,et=tt.xd,et!==null){tt.xd=null;var ht=tt.targetProperty,gt=ht.indexOf(".");0<gt&&et instanceof un&&(nt=ht.substring(0,gt),ht=ht.substr(gt+1),gt=et.fb(nt),gt!==null?(et=gt,tt.targetProperty=ht):pr('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+tt.toString())),et instanceof Rr?(nt=Kr(et.panel),tt.Ai=nt===void 0?-1:nt,et.panel.bindingId=tt.Ai):et instanceof ze?(nt=Kr(et),tt.Ai=nt===void 0?-1:nt,et.bindingId=tt.Ai):We("Unknown type of binding target: "+et)}y.freeze(),a instanceof _n&&a.Zc()&&a.Va()}ee.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yw(y,function(x){x instanceof un&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(tt){x.bind(tt.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(tt){x.Jv(tt.value.copy())}))}),a&&Oa(y),y},ee.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 tt=x.sourceName;if(tt!==null){if(tt==="")b=this;else if(tt==="/")b=this;else if(tt===".")b=this;else if(tt==="..")b=this;else if(b=this.fb(tt),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var et=this,nt=x.Ai;if(nt!==-1){if(et=this.ks(nt),et===null)continue}else x.xd!==null&&(et=x.xd);if(tt==="/"?b=et.part:tt==="."?b=et:tt===".."&&(b=et.panel),tt=x.to,tt!==0){if(!(et instanceof un))continue;tt===1?et=et.Eb(x.wl):tt===2&&(et=et.Fb(x.wl))}et!==void 0&&x.Mv(et,b)}}},ee.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sw(a,y){a=a.O.s;for(var x=a.length,b=y.length,tt=0,et=null;tt<x&&(et=a[tt],!(et instanceof un&&et.data!==null));)tt++,et=a[tt];if(x-tt!==b)return!0;if(et===null)return 0<b;for(var nt=0;tt<x&&nt<b;){if(et=a[tt],!(et instanceof un)||et.data!==y[nt])return!0;tt++,nt++}return!1}function Gp(a){if(a.type===un.Spot||a.type===un.Auto)return Math.min(a.O.length,1);if(a.type===un.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Wn&&b.isPanelMain))break}return x}return a.type===un.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof un&&Yu(a))?1:0}ee.mv=function(){for(var a=Gp(this);this.O.length>a;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=Gp(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++)Cm(a,y[b],b,!0)}else{b=x;for(var tt=0;tt<y.length;tt++,b++){var et=y[tt],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof un){if(nt.data!==et){var ht=bv(a,nt.data),gt=bv(a,et),bt=gt!==ht;bt||(ht=Pv(a,ht),bt=Pv(a,gt)!==ht),bt?(a.pc(b,!1),Cm(a,et,tt,!1)):nt.data=et}}else Cm(a,et,tt,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),ea(a)||a.v(),a.graduatedIntervals=null,a.If()||Em(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof wn&&(y.Te=!0),y.Te&&y instanceof wn&&(y.wc=null))}}function Cm(a,y,x,b){if(!(y==null||0>x)){var tt=bv(a,y);if(tt=Pv(a,tt),tt!==null){if(Oa(tt),tt=tt.copy(),tt.l&16777216){var et=a.ih();et!==null&&wv(et,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Rn),a.ge.add(y,tt)),et=x+Gp(a),a.Gb(et,tt),b&&(tt.ub=y,xv(a,et,x),tt.ub=null),tt.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof un){var tt=y,et=x;b.type===un.TableRow?b.row=tt:b.type===un.TableColumn&&(b.column=tt),b.itemIndex=et}y++,x++}}function bv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Pr(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 Pv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(g1||(g1=!0,pr('No item template Panel found for category "'+y+'" on '+a),pr(" Using default item template."),a=new un,y=new Ni,y.bind(new Lr("text","",ur)),a.add(y),m1=a),b=m1)),b}function Em(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof un){y=y.O.s,b=y.length;for(var tt=0;tt<b;tt++){var et=y[tt];x&&et instanceof un&&!et.isEnabled||Em(a,et,x)}}}function Cl(a,y){y.name=a,Va.add(a,y)}qe.Object.defineProperties(un.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===un.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&&ti(a,">= 0",un,"padding"),a=new Yn(a)):(0>a.left&&ti(a.left,">= 0",un,"padding:value.left"),0>a.right&&ti(a.right,">= 0",un,"padding:value.right"),0>a.top&&ti(a.top,">= 0",un,"padding:value.top"),0>a.bottom&&ti(a.bottom,">= 0",un,"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:Ra},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new va),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 bi)&&(a instanceof bi&&a.freeze(),this.T===null&&(this.T=new va),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 va),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,tt=0;tt<x;tt++){var et=a[tt];typeof et=="number"&&0<=et&&isFinite(et)||We("defaultRowSeparatorDashArray value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new va),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 bi)&&(a instanceof bi&&a.freeze(),this.T===null&&(this.T=new va),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 va),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,tt=0;tt<x;tt++){var et=a[tt];typeof et=="number"&&0<=et&&isFinite(et)||We("defaultColumnSeparatorDashArray value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new va),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 va),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&&xl(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&&xl(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 pu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Co(this)&&(a=this.part,a!==null&&Hi(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 pu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Co(this)&&(a=this.part,a!==null&&Hi(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 pu),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 pu),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 pu,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 pu,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 pu,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 pu,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 va),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new va),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:km},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new va),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:km},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new va),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 va),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 va),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 di);Oa(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof cn?(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 pf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sw(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||p1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Rn}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(););Vn(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&&(Vn(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 Un&&(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&&Em(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))}}}),qe.Object.defineProperties(un,{Position:{get:function(){return Va.I("Position")}},Horizontal:{get:function(){return Va.I("Horizontal")}},Vertical:{get:function(){return Va.I("Vertical")}},Spot:{get:function(){return Va.I("Spot")}},Auto:{get:function(){return Va.I("Auto")}},Table:{get:function(){return Va.I("Table")}},Viewbox:{get:function(){return Va.I("Viewbox")}},TableRow:{get:function(){return Va.I("TableRow")}},TableColumn:{get:function(){return Va.I("TableColumn")}},Link:{get:function(){return Va.I("Link")}},Grid:{get:function(){return Va.I("Grid")}},Graduated:{get:function(){return Va.I("Graduated")}}}),un.prototype.rebuildItemElements=un.prototype.mv,un.prototype.findItemPanelForData=un.prototype.sx,un.prototype.updateTargetBindings=un.prototype.La,un.prototype.copyTemplate=un.prototype.Uy,un.prototype.graduatedValueForPoint=un.prototype.Gz,un.prototype.graduatedPointForValue=un.prototype.Fz,un.prototype.findColumnForLocalX=un.prototype.fz,un.prototype.findRowForLocalY=un.prototype.nz,un.prototype.addColumnDefinition=un.prototype.By,un.prototype.addRowDefinition=un.prototype.Hy,un.prototype.addRowColumnDefinition=un.prototype.Gy,un.prototype.removeColumnDefinition=un.prototype.jA,un.prototype.getColumnDefinition=un.prototype.Eb,un.prototype.removeRowDefinition=un.prototype.oA,un.prototype.getRowDefinition=un.prototype.Fb,un.prototype.removeAt=un.prototype.mb,un.prototype.remove=un.prototype.remove,un.prototype.insertAt=un.prototype.Gb,un.prototype.elt=un.prototype.M,un.prototype.add=un.prototype.add,un.prototype.findObject=un.prototype.fb,un.prototype.findInVisualTree=un.prototype.Nl,un.prototype.walkVisualTreeFrom=un.prototype.qm,un.prototype.findMainElement=un.prototype.Pb;var g1=!1,m1=null,Va=new Rn;un.className="Panel",un.definePanelLayout=Cl,Cl("Position",new fm),Cl("Vertical",new pm),Cl("Auto",new mm),Cl("Link",new bm);function pu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}pu.prototype.copy=function(){var a=new pu;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},pu.className="GradPanelSettings";function va(){this.Pc=[],this.Oc=[],this.j=this.ob=km,this.hb=this.Hb=0,this.Qp=Ra,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}va.prototype.copy=function(a){for(var y=new va,x=this.Pc,b=x.length,tt=y.Pc,et=0;et<b;et++)if(x[et]!==void 0){var nt=x[et].copy();nt.wi(a),tt[et]=nt}for(x=this.Oc,b=x.length,tt=y.Oc,et=0;et<b;et++)x[et]!==void 0&&(nt=x[et].copy(),nt.wi(a),tt[et]=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},va.className="TablePanelSettings";function Rr(a){qi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=oo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Hn,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))}Rr.prototype.copy=function(){var a=new Rr;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=xi(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Am(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=xi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}ee=Rr.prototype,ee.qb=function(a){a.classType===Rr&&(this.sizing=a)},ee.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Kr(this)},ee.wi=function(a){this.Me=a},ee.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)},ee.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===un.Table)for(var tt=b?y.rowDefs.length:y.colDefs.length,et=0;et<tt;et++){var nt=b?y.rowDefs[et]:y.colDefs[et];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)},ee.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(tr,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 Mm(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}ee.bind=function(a,y,x,b){var tt=null;return typeof a=="string"?tt=new Lr(a,y,x,b):tt=a,tt.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&d1(y)&&We("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+tt+" on "+a)),this.be===null&&(this.be=new vn),this.be.add(tt),this},qe.Object.defineProperties(Rr.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&&ti(a,">= 0",Rr,"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&&ti(a,">= 0",Rr,"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))&&ti(a,">= 0",Rr,"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&&ti(a,">= 0",Rr,"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 Yn(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&&mf(a,"RowColumnDefinition.separatorStroke"),a instanceof bi&&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,tt=0;tt<x;tt++){var et=a[tt];typeof et=="number"&&0<=et&&isFinite(et)||We("separatorDashArray value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}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&&mf(a,"RowColumnDefinition.background"),a instanceof bi&&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}}}),Rr.prototype.computeEffectiveSpacing=Rr.prototype.Wc,Rr.prototype.computeEffectiveSpacingTop=Rr.prototype.Io;var Cv=new sn(Rr,"Default",0),Up=new sn(Rr,"None",1),km=new sn(Rr,"ProportionalExtra",2);Rr.className="RowColumnDefinition",Rr.Default=Cv,Rr.None=Up,Rr.ProportionalExtra=km;function Wn(a,y){ze.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)}en(Wn,ze),Wn.prototype.cloneProtected=function(a){ze.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=xi(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 Mc(a){a.Na===null?a.Na=new Mv:a.Na.nc&&(a.Na=a.Na.copy())}ee=Wn.prototype,ee.th=function(){ze.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ee.qb=function(a){a===an||a===kn||a===ni||a===Hn?this.geometryStretch=a:ze.prototype.qb.call(this,a)},ee.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Kr(this)};function wd(a,y,x,b){var tt=x.length;if(!(4>tt)){var et=b.measuredBounds,nt=Math.max(1,et.width);et=et.height;for(var ht=x[0],gt=x[1],bt,Pt,Nt,zt,Vt,Zt,oe=0,Pe=oi(),de=2;de<tt;de+=2)bt=x[de],Pt=x[de+1],Nt=bt-ht,ht=Pt-gt,Nt===0&&(Nt=.001),zt=ht/Nt,Vt=Math.atan2(ht,Nt),Zt=Math.sqrt(Nt*Nt+ht*ht),Pe.push([Nt,Vt,zt,Zt]),oe+=Zt,ht=bt,gt=Pt;ht=x[0],gt=x[1],Nt=b.measuredBounds.width,b instanceof Wn&&(Nt-=b.strokeWidth),1>Nt&&(Nt=1),tt=x=Nt,bt=nt/2,Pt=bt!==0,de=0,Zt=Pe[de],Nt=Zt[0],Vt=Zt[1],zt=Zt[2],Zt=Zt[3];for(var Le=0;.1<=oe;){if(Le===0&&(Pt?(tt=x,tt-=bt,oe-=bt,Pt=!1):tt=x,tt===0&&(tt=1)),tt>oe){ri(Pe);return}tt>Zt?(Le=tt-Zt,tt=Zt):Le=0;var Oe=Math.sqrt(tt*tt/(1+zt*zt));if(0>Nt&&(Oe=-Oe),ht+=Oe,gt+=zt*Oe,a.translate(ht,gt),a.rotate(Vt),a.translate(-(nt/2),-(et/2)),Le===0&&b.hh(a,y),a.translate(nt/2,et/2),a.rotate(-Vt),a.translate(-ht,-gt),oe-=tt,Zt-=tt,Le!==0){if(de++,de===Pe.length){ri(Pe);return}Zt=Pe[de],Nt=Zt[0],Vt=Zt[1],zt=Zt[2],Zt=Zt[3],tt=Le}}ri(Pe)}}ee.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var tt=this.ua;if(tt!==null){a.yc();var et=this.actualBounds,nt=this.naturalBounds;b!==null&&vr(this,a,b,!0,!1,nt,et);var ht=this.part,gt=this.ig;if(x===null||gt!==0||ht===null||!this.isPanelMain&&ht.Pb()!==this||(gt=ht.type===un.Link&&ht instanceof di&&ht.category==="Selection"&&ht.adornedObject instanceof Wn&&ht.adornedPart.Pb()===ht.adornedObject?ht.adornedObject.strokeWidth:0),gt===0&&(x=null),x!==null&&gt!==0&&(vr(this,a,x,!1,!1,nt,et),a.lineWidth=gt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),et=!1,ht&&y.Gf("drawShadows")&&(et=ht.isShadowed),a.Il===!1&&(et=!1),ht=!0,x===null||b!==null&&b!=="transparent"||(ht=!1),nt=!1,gt=this.strokeDashArray,gt!==null&&(nt=!0,a.js(gt,this.strokeDashOffset)),tt.type===pn.j)a.beginPath(),a.moveTo(tt.startX,tt.startY),a.lineTo(tt.endX,tt.endY),x!==null&&a.jk(),a.Se();else if(tt.type===pn.u){var bt=tt.startX;gt=tt.startY;var Pt=tt.endX,Nt=tt.endY;tt=Math.min(bt,Pt);var zt=Math.min(gt,Nt);bt=Math.abs(Pt-bt),gt=Math.abs(Nt-gt),a.beginPath(),a.rect(tt,zt,bt,gt),b!==null&&a.ng(b),x!==null&&(ht&&et&&zl(a),a.jk(),ht&&et&&hu(a)),a.Se()}else if(tt.type===pn.F)bt=tt.startX,gt=tt.startY,Pt=tt.endX,Nt=tt.endY,tt=Math.abs(Pt-bt)/2,zt=Math.abs(Nt-gt)/2,bt=Math.min(bt,Pt)+tt,gt=Math.min(gt,Nt)+zt,a.beginPath(),a.moveTo(bt,gt-zt),a.bezierCurveTo(bt+Ge.wg*tt,gt-zt,bt+tt,gt-Ge.wg*zt,bt+tt,gt),a.bezierCurveTo(bt+tt,gt+Ge.wg*zt,bt+Ge.wg*tt,gt+zt,bt,gt+zt),a.bezierCurveTo(bt-Ge.wg*tt,gt+zt,bt-tt,gt+Ge.wg*zt,bt-tt,gt),a.bezierCurveTo(bt-tt,gt-Ge.wg*zt,bt-Ge.wg*tt,gt-zt,bt,gt-zt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ht&&et&&zl(a),a.jk(),ht&&et&&hu(a)),a.Se();else if(tt.type===pn.o)for(tt=tt.figures,gt=tt.length,zt=0;zt<gt;zt++){bt=tt.s[zt],a.beginPath(),a.moveTo(bt.startX,bt.startY),Pt=bt.segments.s,Nt=Pt.length;for(var Vt=null,Zt=0;Zt<Nt;Zt++){var oe=Pt[Zt];switch(oe.type){case eo:a.moveTo(oe.endX,oe.endY);break;case Gi:a.lineTo(oe.endX,oe.endY);break;case Mo:a.bezierCurveTo(oe.point1X,oe.point1Y,oe.point2X,oe.point2Y,oe.endX,oe.endY);break;case Qs:a.quadraticCurveTo(oe.point1X,oe.point1Y,oe.endX,oe.endY);break;case Dr:if(oe.radiusX===oe.radiusY){var Pe=Math.PI/180;a.arc(oe.point1X,oe.point1Y,oe.radiusX,oe.startAngle*Pe,(oe.startAngle+oe.sweepAngle)*Pe,0>oe.sweepAngle,Vt!==null?Vt.endX:bt.startX,Vt!==null?Vt.endY:bt.startY)}else if(Vt=Bs(oe,bt),Pe=Vt.length,Pe===0)a.lineTo(oe.centerX,oe.centerY);else for(var de=0;de<Pe;de++){var Le=Vt[de];de===0&&a.lineTo(Le[0],Le[1]),a.bezierCurveTo(Le[2],Le[3],Le[4],Le[5],Le[6],Le[7])}break;case ua:if(de=Pe=0,Vt!==null&&Vt.type===Dr){if(Vt=Bs(Vt,bt),Le=Vt.length,Le===0){a.lineTo(oe.endX,oe.endY);break}Vt=Vt[Le-1]||null,Vt!==null&&(Pe=Vt[6],de=Vt[7])}else Pe=Vt!==null?Vt.endX:bt.startX,de=Vt!==null?Vt.endY:bt.startY;if(Vt=Aa(oe,bt,Pe,de),Pe=Vt.length,Pe===0){a.lineTo(oe.endX,oe.endY);break}for(de=0;de<Pe;de++)Le=Vt[de],a.bezierCurveTo(Le[2],Le[3],Le[4],Le[5],Le[6],Le[7]);break;default:We("Segment not of valid type: "+oe.type)}oe.isClosed&&a.closePath(),Vt=oe}Pt=bt.isFilled,et?bt.isShadowed?(Pt===!0&&b!=="transparent"&&b!==null&&a.ng(b,bt.isEvenOdd),x!==null&&(Pt&&ht&&zl(a),a.jk(),Pt&&ht&&hu(a))):(zl(a),Pt&&b!=="transparent"&&b!==null&&a.ng(b,bt.isEvenOdd),x!==null&&a.jk(),hu(a)):(Pt&&b!==null&&a.ng(b,bt.isEvenOdd),x!==null&&a.jk()),a.Se(zt)}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),et=this.geometry,a.save(),a.beginPath(),b=oi(),et.type===pn.j)b.push(et.startX),b.push(et.startY),b.push(et.endX),b.push(et.endY),wd(a,y,b,x);else if(et.type===pn.o)for(et=et.figures.iterator;et.next();){for(ht=et.value,b.length=0,b.push(ht.startX),b.push(ht.startY),nt=ht.startX,tt=ht.startY,gt=nt,zt=tt,bt=ht.segments.s,Pt=bt.length,Nt=0;Nt<Pt;Nt++){switch(Zt=bt[Nt],Zt.type){case eo:wd(a,y,b,x),b.length=0,b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,tt=Zt.endY,gt=nt,zt=tt;break;case Gi:b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,tt=Zt.endY;break;case Mo:Ge.Qe(nt,tt,Zt.point1X,Zt.point1Y,Zt.point2X,Zt.point2Y,Zt.endX,Zt.endY,.5,b),nt=Zt.endX,tt=Zt.endY;break;case Qs:Ge.ep(nt,tt,Zt.point1X,Zt.point1Y,Zt.endX,Zt.endY,.5,b),nt=Zt.endX,tt=Zt.endY;break;case Dr:if(oe=Bs(Zt,ht),Vt=oe.length,Vt===0){b.push(Zt.centerX),b.push(Zt.centerY),nt=Zt.centerX,tt=Zt.centerY;break}for(Pe=0;Pe<Vt;Pe++)de=oe[Pe],Ge.Qe(nt,tt,de[2],de[3],de[4],de[5],de[6],de[7],.5,b),nt=de[6],tt=de[7];break;case ua:if(oe=Aa(Zt,ht,nt,tt),Vt=oe.length,Vt===0){b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,tt=Zt.endY;break}for(Pe=0;Pe<Vt;Pe++)de=oe[Pe],Ge.Qe(nt,tt,de[2],de[3],de[4],de[5],de[6],de[7],.5,b),nt=de[6],tt=de[7];break;default:We("Segment not of valid type: "+Zt.type)}Zt.isClosed&&(b.push(gt),b.push(zt),wd(a,y,b,x))}wd(a,y,b,x)}else if(et.type===pn.u)b.push(et.startX),b.push(et.startY),b.push(et.endX),b.push(et.startY),b.push(et.endX),b.push(et.endY),b.push(et.startX),b.push(et.endY),b.push(et.startX),b.push(et.startY),wd(a,y,b,x);else if(et.type===pn.F){if(tt=new to,tt.startX=et.endX,tt.startY=(et.startY+et.endY)/2,nt=new gi(Dr),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(et.startX+et.endX)/2,nt.centerY=(et.startY+et.endY)/2,nt.radiusX=Math.abs(et.startX-et.endX)/2,nt.radiusY=Math.abs(et.startY-et.endY)/2,tt.add(nt),et=Bs(nt,tt),ht=et.length,ht===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=tt.startX,tt=tt.startY,gt=0;gt<ht;gt++)zt=et[gt],Ge.Qe(nt,tt,zt[2],zt[3],zt[4],zt[5],zt[6],zt[7],.5,b),nt=zt[6],tt=zt[7];wd(a,y,b,x)}ri(b),a.restore(),a.Vc(!1)}}}},ee.kk=function(a,y,x){return!ze.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)},ee.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:ze.prototype.nk.call(this,a)},ee.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)}},ee.ga=function(a,y){if(y===void 0&&(y=new Ee),a instanceof jn){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},ee.mi=function(a){a===void 0&&(a=new $e);var y=this.naturalBounds,x=this.oe;y=$e.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Ee.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),xr(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),xr(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),xr(a,b.x,b.y,0,0),$e.free(y),Ee.free(b),a},ee.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,tt=this.strokeWidth/2;x.type!==pn.j||y||(tt+=2);var et=$e.alloc();if(et.assign(b),et.Bc(tt+2,tt+2),!et.ca(a))return $e.free(et),!1;if(b=tt+1e-4,x.type===pn.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:($e.free(et),Ge.Yb(x.startX,x.startY,x.endX,x.endY,tt,a.x,a.y));if(x.type===pn.u){y=x.startX;var nt=x.startY,ht=x.endX;if(x=x.endY,et.x=Math.min(y,ht),et.y=Math.min(nt,x),et.width=Math.abs(ht-y),et.height=Math.abs(x-nt),this.fill===null){if(et.Bc(-b,-b),et.ca(a))return $e.free(et),!1;et.Bc(b,b)}return this.stroke!==null&&et.Bc(tt,tt),a=et.ca(a),$e.free(et),a}if(x.type===pn.F){nt=x.startX,tt=x.startY,ht=x.endX;var gt=x.endY;if(x=Math.min(nt,ht),y=Math.min(tt,gt),nt=Math.abs(ht-nt)/2,tt=Math.abs(gt-tt)/2,x=a.x-(x+nt),y=a.y-(y+tt),this.fill===null){if(nt-=b,tt-=b,0>=nt||0>=tt||1>=x*x/(nt*nt)+y*y/(tt*tt))return $e.free(et),!1;nt+=b,tt+=b}return this.stroke!==null&&(nt+=b,tt+=b),$e.free(et),0>=nt||0>=tt?!1:1>=x*x/(nt*nt)+y*y/(tt*tt)}if(x.type===pn.o)return $e.free(et),this.fill===null?ph(x,a.x,a.y,tt):eu(x,a,tt,1<this.strokeWidth,y);We("Unknown Geometry type: "+x.type)},ee.Wl=function(a,y,x,b){var tt=this.desiredSize,et=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var nt=this.geometry.bounds;else{var ht=this.figure,gt=Av[ht];if(gt===void 0){var bt=Ge.Ze[ht];typeof bt=="string"&&(bt=Ge.Ze[bt]),typeof bt=="function"?(gt=bt(null,100,100),Av[ht]=gt):We("Unsupported Figure: "+ht)}nt=gt.bounds}ht=nt.width,gt=nt.height,bt=nt.width;var Pt=nt.height;switch(ws(this,!0)){case an:b=x=0;break;case ln:bt=Math.max(a-et,0),Pt=Math.max(y-et,0);break;case Tn:bt=Math.max(a-et,0),b=0;break;case In:x=0,Pt=Math.max(y-et,0)}isFinite(tt.width)&&(bt=tt.width),isFinite(tt.height)&&(Pt=tt.height);var Nt=this.maxSize,zt=this.minSize;switch(x=Math.max(x-et,zt.width),b=Math.max(b-et,zt.height),bt=Math.min(Nt.width,bt),Pt=Math.min(Nt.height,Pt),bt=isFinite(bt)?Math.max(x,bt):Math.max(ht,x),Pt=isFinite(Pt)?Math.max(b,Pt):Math.max(gt,b),x=Ev(this),x){case an:break;case ln:ht=bt,gt=Pt;break;case kn:x=Math.min(bt/ht,Pt/gt),isFinite(x)||(x=1),ht*=x,gt*=x;break;default:We(x+" is not a valid geometryStretch.")}this.Rd!==null?(ht===0&&(ht=.001),gt===0&&(gt=.001),x=this.Rd!==null?this.Rd:this.ua,nt=x.bounds,b=ht/nt.width,nt=gt/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&&Ge.$(this.ua.Sk,a-et)&&Ge.$(this.ua.Rk,y-et)||(this.ua=Wn.makeGeometry(this,ht,gt)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-et/2,nt.y-et/2,a===0&&ht===0?0:nt.width+et,y===0&&gt===0?0:nt.height+et):this.Ge(-(et/2),-(et/2),bt+et,Pt+et),tt.w()?(bt=tt.width,Pt=tt.height,bt=Math.min(Nt.width,bt),Pt=Math.min(Nt.height,Pt),bt=Math.max(zt.width,bt),Pt=Math.max(zt.height,Pt),this.dc.h(0,0,bt,Pt)):this.dc.assign(nt)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===Hn?ln:y:y===Hn?Av[a.figure].defaultStretch:y}ee.eh=function(a,y,x,b){Vo(this,a,y,x,b)},ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ee.Sj=function(a,y,x,b,tt){var et=this.transform,nt=1/(et.m11*et.m22-et.m12*et.m21),ht=et.m22*nt,gt=-et.m12*nt,bt=-et.m21*nt,Pt=et.m11*nt,Nt=nt*(et.m21*et.dy-et.m22*et.dx),zt=nt*(et.m12*et.dx-et.m11*et.dy);et=a*ht+y*bt+Nt,nt=a*gt+y*Pt+zt,ht=x*ht+b*bt+Nt,gt=x*gt+b*Pt+zt,Nt=this.ig/2,bt=this.ua,bt===null&&(this.measure(1/0,1/0),bt=this.ua);var Vt=bt.bounds;if(Pt=!1,bt.type===pn.j)if(1.5>=this.strokeWidth)Pt=Ge.Ve(bt.startX,bt.startY,bt.endX,bt.endY,et,nt,ht,gt,tt);else{if(bt.startX===bt.endX?(b=Nt,Pt=0):(y=(bt.endY-bt.startY)/(bt.endX-bt.startX),Pt=Nt/Math.sqrt(1+y*y),b=Pt*y),y=oi(),a=new Ee,Ge.Ve(bt.startX+b,bt.startY+Pt,bt.endX+b,bt.endY+Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.startX-b,bt.startY-Pt,bt.endX-b,bt.endY-Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.startX+b,bt.startY+Pt,bt.startX-b,bt.startY-Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.endX+b,bt.endY+Pt,bt.endX-b,bt.endY-Pt,et,nt,ht,gt,a)&&y.push(a),ht=y.length,ht===0)return ri(y),!1;for(Pt=!0,gt=1/0,b=0;b<ht;b++)a=y[b],x=(a.x-et)*(a.x-et)+(a.y-nt)*(a.y-nt),x<gt&&(gt=x,tt.x=a.x,tt.y=a.y);ri(y)}else if(bt.type===pn.u)Pt=Ge.Ff(Vt.x-Nt,Vt.y-Nt,Vt.x+Vt.width+Nt,Vt.y+Vt.height+Nt,et,nt,ht,gt,tt);else if(bt.type===pn.F){y=$e.allocAt(Vt.x,Vt.y,Vt.width,Vt.height).Bc(Nt,Nt);t:if(y.width===0)Pt=Ge.Ve(y.x,y.y,y.x,y.y+y.height,et,nt,ht,gt,tt);else if(y.height===0)Pt=Ge.Ve(y.x,y.y,y.x+y.width,y.y,et,nt,ht,gt,tt);else{if(a=y.width/2,bt=y.height/2,b=y.x+a,Pt=y.y+bt,x=9999,et!==ht&&(x=(nt-gt)/(et-ht)),9999>Math.abs(x)){if(gt=nt-Pt-x*(et-b),0>a*a*x*x+bt*bt-gt*gt){tt.x=NaN,tt.y=NaN,Pt=!1;break t}Nt=Math.sqrt(a*a*x*x+bt*bt-gt*gt),ht=(-(a*a*x*gt)+a*bt*Nt)/(bt*bt+a*a*x*x)+b,a=(-(a*a*x*gt)-a*bt*Nt)/(bt*bt+a*a*x*x)+b,bt=x*(ht-b)+gt+Pt,gt=x*(a-b)+gt+Pt,Math.abs((et-ht)*(et-ht))+Math.abs((nt-bt)*(nt-bt))<Math.abs((et-a)*(et-a))+Math.abs((nt-gt)*(nt-gt))?(tt.x=ht,tt.y=bt):(tt.x=a,tt.y=gt)}else{if(ht=bt*bt,gt=et-b,ht-=ht/(a*a)*gt*gt,0>ht){tt.x=NaN,tt.y=NaN,Pt=!1;break t}gt=Math.sqrt(ht),ht=Pt+gt,gt=Pt-gt,Math.abs(ht-nt)<Math.abs(gt-nt)?(tt.x=et,tt.y=ht):(tt.x=et,tt.y=gt)}Pt=!0}$e.free(y)}else if(bt.type===pn.o){zt=Ee.alloc();var Zt=ht-et,oe=gt-nt,Pe=Zt*Zt+oe*oe,de=et,Le=nt;if(0<Pe&&Vt.contains(de,Le)&&(zt.x=de,zt.y=Le,this.ca(zt)))for(Zt!==0&&.5>Math.abs(Zt)?(oe*=.5/Zt,Zt=.5):oe!==0&&.5>Math.abs(oe)&&(Zt*=.5/oe,oe=.5),de-=Zt,Le-=oe;Vt.contains(de,Le);)de-=Zt,Le-=oe;for(tt.x=ht,tt.y=gt,oe=0;oe<bt.figures.count;oe++){var Oe=bt.figures.s[oe],De=Oe.isFilled?de:et,Re=Oe.isFilled?Le:nt,Ve=Oe.segments;Vt=Oe.startX,Zt=Oe.startY;for(var Sn=Vt,Mn=Zt,Pn=0;Pn<Ve.count;Pn++){var hn=Ve.s[Pn],rn=hn.type,Gn=hn.endX,Fn=hn.endY,yi=!1;switch(rn){case eo:Sn=Gn,Mn=Fn;break;case Gi:yi=Tm(Vt,Zt,Gn,Fn,De,Re,ht,gt,zt);break;case Mo:yi=Ge.Eo(Vt,Zt,hn.point1X,hn.point1Y,hn.point2X,hn.point2Y,Gn,Fn,De,Re,ht,gt,.6,zt);break;case Qs:yi=Ge.Eo(Vt,Zt,Vt+2/3*(hn.point1X-Vt),Zt+2/3*(hn.point1Y-Zt),Gn+2/3*(hn.point1X-Gn),Fn+2/3*(hn.point1Y-Fn),Gn,Fn,De,Re,ht,gt,.6,zt);break;case Dr:case ua:rn=hn.type===Dr?Bs(hn,Oe):Aa(hn,Oe,Vt,Zt);var _i=rn.length;if(_i===0){yi=Tm(Vt,Zt,hn.type===Dr?hn.centerX:hn.endX,hn.type===Dr?hn.centerY:hn.endY,De,Re,ht,gt,zt);break}for(Fn=null,Gn=0;Gn<_i;Gn++){if(Fn=rn[Gn],Gn===0&&Tm(Vt,Zt,Fn[0],Fn[1],De,Re,ht,gt,zt)){var io=Lm(De,Re,zt,Pe,tt);io<Pe&&(Pe=io,Pt=!0)}Ge.Eo(Fn[0],Fn[1],Fn[2],Fn[3],Fn[4],Fn[5],Fn[6],Fn[7],De,Re,ht,gt,.6,zt)&&(io=Lm(De,Re,zt,Pe,tt),io<Pe&&(Pe=io,Pt=!0))}Gn=Fn[6],Fn=Fn[7];break;default:We("Unknown Segment type: "+rn)}Vt=Gn,Zt=Fn,yi&&(yi=Lm(De,Re,zt,Pe,tt),yi<Pe&&(Pe=yi,Pt=!0)),hn.isClosed&&(Gn=Sn,Fn=Mn,Tm(Vt,Zt,Gn,Fn,De,Re,ht,gt,zt)&&(hn=Lm(De,Re,zt,Pe,tt),hn<Pe&&(Pe=hn,Pt=!0)))}}et=x-a,nt=b-y,ht=Math.sqrt(et*et+nt*nt),ht!==0&&(et/=ht,nt/=ht),tt.x-=et*Nt,tt.y-=nt*Nt,Ee.free(zt)}else We("Unknown Geometry type: "+bt.type);return Pt?(this.transform.Ga(tt),!0):!1};function Lm(a,y,x,b,tt){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(tt.x=x.x,tt.y=x.y,y):b}function Tm(a,y,x,b,tt,et,nt,ht,gt){if(Ge.$(a,x)&&Ge.$(y,b)||Ge.$(tt,nt)&&Ge.$(et,ht))return!1;var bt=!1,Pt=(tt-nt)*(y-b)-(et-ht)*(a-x);return Pt===0?!1:(gt.x=((tt*ht-et*nt)*(a-x)-(tt-nt)*(a*b-y*x))/Pt,gt.y=((tt*ht-et*nt)*(y-b)-(et-ht)*(a*b-y*x))/Pt,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(gt.y>a||Ge.$(gt.y,a))&&(gt.y<y||Ge.$(gt.y,y))&&(bt=!0)):(y=a<x?a:x,a=a<x?x:a,(gt.x>y||Ge.$(gt.x,y))&&(gt.x<a||Ge.$(gt.x,a))&&(bt=!0)),bt)}ee.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,tt=!1,et=Ee.alloc();return et.h(x.x-b,x.y-b),a.ca(y.Ga(et))&&(et.h(x.x-b,x.bottom+b),a.ca(y.Ga(et))&&(et.h(x.right+b,x.bottom+b),a.ca(y.Ga(et))&&(et.h(x.right+b,x.y-b),a.ca(y.Ga(et))&&(tt=!0)))),Ee.free(et),tt},ee.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Xn.alloc();x.set(y),x.Vj();var b=a.left,tt=a.right,et=a.top;a=a.bottom;var nt=Ee.alloc();if(nt.h(b,et),x.Ga(nt),this.gh(nt,!0)||(nt.h(tt,et),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(tt,a),x.Ga(nt),this.gh(nt,!0)))return Ee.free(nt),!0;var ht=Ee.alloc(),gt=Ee.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ht.x=tt,ht.y=et,ht.transform(x),nt.x=b,nt.y=et,nt.transform(x),y=!1,kc(this,nt,ht,gt)?y=!0:(nt.x=tt,nt.y=a,nt.transform(x),kc(this,nt,ht,gt)?y=!0:(ht.x=b,ht.y=a,ht.transform(x),kc(this,nt,ht,gt)?y=!0:(nt.x=b,nt.y=et,nt.transform(x),kc(this,nt,ht,gt)&&(y=!0)))),Ee.free(nt),Xn.free(x),Ee.free(ht),Ee.free(gt),y};function kc(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var tt=x.x,et=x.y;return x=b.x,b=b.y,a===tt?(y<et?(a=y,y=et):a=et,b>=a&&b<=y):(a<tt?(b=a,a=tt):b=tt,x>=b&&x<=a)}ee.tx=function(a,y,x){function b(Pe,de){for(var Le=Pe.length,Oe=0;Oe<Le;Oe+=2)if(de.zd(Pe[Oe],Pe[Oe+1])>tt)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var tt=a.Bf(y),et=tt;if(1.5<this.strokeWidth&&(tt=this.strokeWidth/2+Math.sqrt(tt),tt*=tt),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var nt=y.bounds,ht=nt.x,gt=nt.y,bt=nt.x+nt.width;if(nt=nt.y+nt.height,aa(a.x,a.y,ht,gt)<=tt&&aa(a.x,a.y,bt,gt)<=tt&&aa(a.x,a.y,ht,nt)<=tt&&aa(a.x,a.y,bt,nt)<=tt)return!0}if(ht=y.startX,gt=y.startY,bt=y.endX,nt=y.endY,y.type===pn.j){if(x=(ht-bt)*(a.x-bt)+(gt-nt)*(a.y-nt),Zr(a.x,a.y,ht,gt,bt,nt)<=(0<=(bt-ht)*(a.x-ht)+(nt-gt)*(a.y-gt)&&0<=x?tt:et))return!0}else{if(y.type===pn.u)return y=!1,x&&(y=Zr(a.x,a.y,ht,gt,ht,nt)<=tt||Zr(a.x,a.y,ht,gt,bt,gt)<=tt||Zr(a.x,a.y,bt,gt,bt,nt)<=tt||Zr(a.x,a.y,ht,nt,bt,nt)<=tt),y;if(y.type===pn.F){y=a.x-(ht+bt)/2,et=a.y-(gt+nt)/2;var Pt=Math.abs(bt-ht)/2,Nt=Math.abs(nt-gt)/2;if(Pt===0||Nt===0)return Zr(a.x,a.y,ht,gt,bt,nt)<=tt;if(x){if(a=Ge.$y(Pt,Nt,y,et),a*a<=tt)return!0}else return!(aa(y,et,-Pt,0)>=tt||aa(y,et,0,-Nt)>=tt||aa(y,et,0,Nt)>=tt||aa(y,et,Pt,0)>=tt)}else if(y.type===pn.o){if(bt=y.bounds,et=bt.x,ht=bt.y,gt=bt.x+bt.width,bt=bt.y+bt.height,a.x>gt&&a.x<et&&a.y>bt&&a.y<ht&&Zr(a.x,a.y,et,ht,et,bt)>tt&&Zr(a.x,a.y,et,ht,gt,ht)>tt&&Zr(a.x,a.y,gt,bt,et,bt)>tt&&Zr(a.x,a.y,gt,bt,gt,ht)>tt)return!1;if(et=Math.sqrt(tt),x){if(this.fill===null?ph(y,a.x,a.y,et):eu(y,a,et,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(et=x.s[y],nt=et.startX,Pt=et.startY,a.zd(nt,Pt)>tt)return!1;for(ht=et.segments.s,gt=ht.length,bt=0;bt<gt;bt++)switch(Nt=ht[bt],Nt.type){case eo:case Gi:if(nt=Nt.endX,Pt=Nt.endY,a.zd(nt,Pt)>tt)return!1;break;case Mo:var zt=oi();if(Ge.Qe(nt,Pt,Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY,.8,zt),nt=b(zt,a),ri(zt),nt||(nt=Nt.endX,Pt=Nt.endY,a.zd(nt,Pt)>tt))return!1;break;case Qs:if(zt=oi(),Ge.ep(nt,Pt,Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY,.8,zt),nt=b(zt,a),ri(zt),nt||(nt=Nt.endX,Pt=Nt.endY,a.zd(nt,Pt)>tt))return!1;break;case Dr:case ua:zt=Nt.type===Dr?Bs(Nt,et):Aa(Nt,et,nt,Pt);var Vt=zt.length;if(Vt===0){if(nt=Nt.type===Dr?Nt.centerX:Nt.endX,Pt=Nt.type===Dr?Nt.centerY:Nt.endY,a.zd(nt,Pt)>tt)return!1;break}Nt=null;for(var Zt=oi(),oe=0;oe<Vt;oe++)if(Nt=zt[oe],Zt.length=0,Ge.Qe(Nt[0],Nt[1],Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.8,Zt),b(Zt,a))return ri(Zt),!1;ri(Zt),Nt!==null&&(nt=Nt[6],Pt=Nt[7]);break;default:We("Unknown Segment type: "+Nt.type)}}return!0}}}return!1},ee.qc=function(){this.ua=null},ee.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Jp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ao):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new jn(1-Ao.x,Ao.y)))}Wn.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Ul[a.toArrow];else a.fromArrow!=="None"?b=Ul[a.fromArrow]:(b=Ge.Ze[a.figure],typeof b=="string"&&(b=Ge.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 tt=Ge.Ze.Rectangle;typeof tt=="function"&&(b=tt(a,y,x))}return b};function y1(a){var y=Ul[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Ul[x],y===void 0){var b=null,tt;for(tt in Ge.um)if(tt.toLowerCase()===x){b=tt;break}if(b!==null)return a=pn.parse(Ge.um[b],!1),Ul[b]=a,x!==b&&(Ul[x]=b),b}}return typeof y=="string"?y:y instanceof pn?a:null}qe.Object.defineProperties(Wn.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),Co(this)&&(a=this.part,a!==null&&Hi(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=pn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ee.allocAt(-y.x,-y.y),Ee.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&&mf(a,"Shape.fill"),a instanceof bi&&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&&mf(a,"Shape.stroke"),a instanceof bi&&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 ti(a,"value >= 0",Wn,"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"?ti(a,'"butt", "round", or "square"',Wn,"strokeCap"):(Mc(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"?ti(a,'"miter", "bevel", or "round"',Wn,"strokeJoin"):(Mc(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){Mc(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,tt=0;tt<x;tt++){var et=a[tt];0<=et&&isFinite(et)||We("strokeDashArray:value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}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&&(Mc(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=Ge.Ze[a];typeof x=="function"?x=a:(x=Ge.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 jh),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 jh),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:oo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Mc(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:oo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Mc(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&&(Mc(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Hn},set:function(a){var y=this.geometryStretch;y!==a&&(Mc(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 Hl),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&xl(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 Hl),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 Hl),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 Hl),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Wn.prototype.intersectsRect=Wn.prototype.Yc,Wn.prototype.containedInRect=Wn.prototype.fh,Wn.prototype.getNearestIntersectionPoint=Wn.prototype.rs,Wn.prototype.getDocumentBounds=Wn.prototype.mi,Wn.prototype.getDocumentPoint=Wn.prototype.ga;var Ul=new si,Av=new si;Wn.className="Shape",Wn.getFigureGenerators=function(){var a=new Rn,y;for(y in Ge.Ze)y!==y.toLowerCase()&&a.add(y,Ge.Ze[y]);return a.freeze(),a},Wn.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ge.Ze;b[a]=y,b[x]=a},Wn.getArrowheadGeometries=function(){var a=new Rn;for(b in Ge.um)if(Ul[b]===void 0){var y=pn.parse(Ge.um[b],!1);Ul[b]=y,y=b.toLowerCase(),y!==b&&(Ul[y]=b)}for(var x in Ul)if(x!==x.toLowerCase()){var b=Ul[x];b instanceof pn&&a.add(x,b)}return a.freeze(),a},Wn.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=pn.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=Ul;b[a]=x,b[y]=a};function Mv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Hn,this.gg=this.fg=oo}Mv.prototype.copy=function(){var a=new Mv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Ni(a,y){return ze.call(this),Dm||(xs=gr?new _a(null).context:null,Dm=!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}en(Ni,ze),Ni.prototype.cloneProtected=function(a){ze.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 El(a){a.da===null?a.da=new Nv:a.da.nc&&(a.da=a.da.copy())}ee=Ni.prototype,ee.th=function(){ze.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}ee.qb=function(a){a.classType===Ni?this.wrap=a:ze.prototype.qb.call(this,a)},ee.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},ee.v=function(){ze.prototype.v.call(this)},ee.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,tt=x.width,et=x.height,nt=Wp(this),ht=a.textAlign=this.textAlign,gt=y.tn;ht==="start"?ht=gt?"right":"left":ht==="end"&&(ht=gt?"left":"right"),gt=this.isUnderline;var bt=this.isStrikethrough;vr(this,a,this.xc,!0,!1,x,b),(gt||bt)&&vr(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var Pt=this.oe,Nt=Pt.dx-(nt*Pt.m21+Pt.dx);Pt=Pt.dy-(nt*Pt.m22+Pt.dy);var zt=y.scale;switch(8>(Nt*Nt+Pt*Pt)*zt*zt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Gs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Nt=this.spacingBelow,this.flip){case ui:a.translate(tt,0),a.scale(-1,1);break;case Kn:a.translate(0,et),a.scale(1,-1);break;case Ai:a.translate(tt,et),a.scale(-1,-1)}if(a.yc(),Pt=this.Gc,zt=(y+nt+Nt)*Pt,et>zt&&(b=this.verticalAlignment,b=b.y*et-b.y*zt+b.offsetY),Pt===1&&this.ze!==null)Nt=this.Cb,Nt>tt&&(Nt=tt),this.Oj(this.ze,a,0,b+y,tt,nt,Nt,x,ht,gt,bt);else if(this.Qc!==null&&this.Qb!==null)for(zt=0;zt<Pt;zt++){var Vt=this.Qc[zt];Vt>tt&&(Vt=tt),b+=y,this.Oj(this.Qb[zt],a,0,b,tt,nt,Vt,x,ht,gt,bt),b+=nt+Nt}switch(this.flip){case ui:a.scale(-1,1),a.translate(-tt,0);break;case Kn:a.scale(1,-1),a.translate(0,-et);break;case Ai:a.scale(-1,-1),a.translate(-tt,-et)}}},ee.Oj=function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt){var Nt=0;if(ht)gt==="left"?Nt=0:gt==="right"?Nt=tt-nt:gt==="center"&&(Nt=(tt-nt)/2),y.fillRect(x+Nt,b+.25*et,nt,1);else{if(gt==="left"?Nt=0:gt==="right"?Nt=tt:gt==="center"&&(Nt=tt/2),tt=_m!==null?_m(this,et):.75*et,y.fillText(a,x+Nt,b+tt),a=et/20|0,a===0&&(a=1),gt==="right"?Nt-=nt:gt==="center"&&(Nt-=nt/2),bt){ht=Om!==null?Om(this,et):.8*et,gt=x+Nt,bt=b+ht,tt=x+Nt+nt,ht=b+ht;var zt=a;y.beginPath(),y.lineWidth=zt,y.moveTo(gt,bt),y.lineTo(tt,ht),y.stroke(),y.Se(),y instanceof Gs&&y.ad.classList.add("gojs-td")}Pt&&(Pt=b+et-et/2.2|0,a%2!==0&&(Pt+=.5),b=x+Nt,et=Pt,x=x+Nt+nt,nt=Pt,Nt=a,y.beginPath(),y.lineWidth=Nt,y.moveTo(b,et),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof Gs&&y.ad.classList.add("gojs-td"))}},ee.kk=function(a,y,x){if(!ze.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},ee.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:ze.prototype.nk.call(this,a)},ee.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)}},ee.Wl=function(a,y,x,b){var tt=this.Gc;this.Ih=a,this.l&=-16777217;var et=this.Ae;xs!==null&&A1!==et&&(A1=xs.font=et),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;if(isNaN(this.desiredSize.width)){if(et=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),et.length===0)et=8;else if(this.isMultiline){for(var ht=nt=0,gt=!1;!gt;){var bt=et.indexOf(`
`,ht);bt===-1&&(bt=et.length,gt=!0),ht=et.substr(ht,bt-ht),this.formatting===Vp&&(ht=ht.trim()),nt=Math.max(nt,Ya(ht)),ht=bt+1}et=nt}else nt=et.indexOf(`
`,0),0<=nt&&(et=et.substr(0,nt)),et=Ya(et);et=Math.min(et,a/this.scale)}else et=this.desiredSize.width;if(this.panel!==null&&(et=Math.min(et,this.panel.maxSize.width)),nt=x1(this,et),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,gt=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===jm&&(y=this.Ae,y=this.overflow===jm?w1(y):0,bt=this.spacingAbove+this.spacingBelow,bt=Math.max(0,Wp(this)+bt),gt=Math.min(this.maxLines-1,Math.max(Math.floor(gt/bt+.01)-1,0)),!(gt+1>=this.Qb.length))){for(this.l|=16777216,bt=this.Qb[gt],y=Math.max(1,a-y);Ya(bt)>y&&1<bt.length;)bt=bt.substr(0,bt.length-1);bt+=Yp,y=Ya(bt),this.Qb[gt]=bt,this.Qb=this.Qb.slice(0,gt+1),this.Qc[gt]=y,this.Qc=this.Qc.slice(0,gt+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===b1||isNaN(this.desiredSize.width))&&(et=isNaN(a)?this.Cb:Math.min(a,this.Cb)),et=Math.max(x,et),nt=Math.max(b,nt),Es(this.dc,et,nt),this.Ge(0,0,et,nt),this.svg!==null&&tt!==this.Gc&&(this.Uc=!0)},ee.eh=function(a,y,x,b){Vo(this,a,y,x,b)};function Hp(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 kv(a,y,x,b){var tt=a.formatting===Vp;tt&&(y=y.trim());var et=0,nt=a.Ae,ht=a.spacingAbove+a.spacingBelow;ht=Math.max(0,Wp(a)+ht);var gt=a.overflow===jm?w1(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ht);else if(nt=y,a.wrap===Lv){a.Le=1;var bt=Ya(y);if(gt===0||bt<=x)a.Cb=Math.max(a.Cb,bt),Hp(a,y,a.Cb),b!==null&&b.h(bt,ht);else{for(et=xd(a,nt),nt=nt.substr(et.length),y=xd(a,nt),bt=Ya(et+y);0<y.length&&bt<=x;)et+=y,nt=nt.substr(y.length),y=xd(a,nt),bt=et+y,tt&&(bt=bt.trim()),bt=Ya(bt);for(tt&&(y=y.trim()),et+=y,x=Math.max(1,x-gt);Ya(et)>x&&1<et.length;)et=et.substr(0,et.length-1);a.l|=16777216,et+=Yp;var Pt=Ya(et);a.Cb=Pt,Hp(a,et,Pt),b!==null&&b.h(Pt,ht)}}else{for(gt=0,nt.length===0&&(gt=1,Hp(a,nt,0));0<nt.length;){for(y=xd(a,nt),nt=nt.substr(y.length);Ya(y)>x;){var Nt=1;for(bt=Ya(y.substr(0,Nt)),Pt=0;bt<=x;)Nt++,Pt=bt,bt=Ya(y.substr(0,Nt));if(Nt===1){var zt=bt;et=Math.max(et,bt)}else zt=Pt,et=Math.max(et,Pt);if(Nt--,1>Nt&&(Nt=1),Hp(a,y.substr(0,Nt),zt),gt++,y=y.substr(Nt),a.Gc+gt>a.maxLines)break}for(Pt=xd(a,nt),bt=Ya(y+Pt);0<Pt.length&&bt<=x;)y+=Pt,nt=nt.substr(Pt.length),Pt=xd(a,nt),bt=y+Pt,tt&&(bt=bt.trim()),bt=Ya(bt);if(tt&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),Pt.length===0?(Nt=bt,et=Math.max(et,bt)):(Nt=Pt=Ya(y),et=Math.max(et,Pt)),Hp(a,y,Nt),gt++,a.Gc+gt>a.maxLines))break}a.Le=Math.min(a.maxLines,gt),a.Cb=Math.max(a.Cb,et),b!==null&&b.h(a.Cb,ht*a.Le)}}function xd(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,b=0,tt=ww;b<x&&!tt.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&tt.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Ya(a){return xs===null?8*a.length:xs.measureText(a).width}function Wp(a){if(a.df!==null)return a.df;var y=a.Ae;if(xs===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>E1?x=Ov[y]:(x=1.3*xs.measureText("M").width,Ov[y]=x,E1++),a.df=x}function w1(a){if(xs===null)return 6;if(Nm[a]!==void 0&&5e3>jv)var y=Nm[a];else y=xs.measureText(Yp).width,Nm[a]=y,jv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Wp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var tt=x.indexOf(`
`,0);0<=tt&&(x=x.substr(0,tt))}tt=0;for(var et=a.Gc=0,nt,ht=!1;!ht;){if(nt=x.indexOf(`
`,et),nt===-1&&(nt=x.length,ht=!0),et<=nt){if(et=x.substr(et,nt-et),a.wrap!==Lv){a.Le=0;var gt=xn.alloc();kv(a,et,y,gt),tt+=gt.height,xn.free(gt),a.Gc+=a.Le}else kv(a,et,y,null),tt+=b,a.Gc++;a.Gc===a.maxLines&&(ht=!0)}et=nt+1}return a.Lq=tt}qe.Object.defineProperties(Ni.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"||(El(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:an},set:function(a){var y=this.flip;y!==a&&(El(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:vl},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),El(this),this.da.Yr=a,os(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=xn.alloc();kv(this,this.ec,999999,a);var y=a.width;xn.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Es(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&&(El(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:_v},set:function(a){var y=this.overflow;y!==a&&(El(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&&mf(a,"TextBlock.stroke"),a instanceof bi&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Wp(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&&(El(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&&(El(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 Hl),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 Hl),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 Hl),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 Hl),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 Hl),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&&(El(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&&(El(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&&(El(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&&(El(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Vp},set:function(a){var y=this.formatting;y!==a&&(El(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&&ti(a,"> 0",Ni,"maxLines"),El(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 _m=null,Om=null,Lv=new sn(Ni,"None",0),b1=new sn(Ni,"WrapFit",1),Tv=new sn(Ni,"WrapDesiredSize",2),P1=new sn(Ni,"WrapBreakAll",3),_v=new sn(Ni,"OverflowClip",0),jm=new sn(Ni,"OverflowEllipsis",1),Vp=new sn(Ni,"FormatTrim",0),C1=new sn(Ni,"FormatNone",0),ww=/[ \u200b\u00ad]/,Ov=new si,E1=0,Nm=new si,jv=0,Yp="...",A1="",xs=null,Dm=!1;Ni.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=an,this.gq=Vp,this.Jq=1/0,this.$q=_v,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=vl,this.$r=Tv}Nv.prototype.copy=function(){var a=new Nv;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},Ni.getEllipsis=function(){return Yp},Ni.setEllipsis=function(a){Yp=a,Nm=new si,jv=0},Ni.getBaseline=function(){return _m},Ni.setBaseline=function(a){_m=a},Ni.getUnderline=function(){return Om},Ni.setUnderline=function(a){Om=a},Ni.isValidFont=function(a){if(Dm||(xs=gr?new _a(null).context:null,Dm=!0),xs===null)return!0;var y=xs.font;if(a===y||a==="10px sans-serif")return!0;xs.font="10px sans-serif",xs.font=a;var x=xs.font;if(x!=="10px sans-serif")return xs.font=y,!0;xs.font="19px serif";var b=xs.font;return xs.font=a,x=xs.font,xs.font=y,x!==b},Ni.FormatNone=C1,Ni.FormatTrim=Vp,Ni.None=Lv,Ni.OverflowClip=_v,Ni.OverflowEllipsis=jm,Ni.WrapBreakAll=P1,Ni.WrapDesiredSize=Tv,Ni.WrapFit=b1;function Hl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hl.prototype.copy=function(){var a=new Hl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hl.className="GradElementSettings";function bs(a,y){ze.call(this),this.Eg=null,this.qo="",this.Xg=ch,this.Nk=ln,this.Zg=this.Hd=null,this.Mk=wi,this.Xf=an,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 bd;en(bs,ze),bs.prototype.cloneProtected=function(a){ze.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},bs.prototype.qb=function(a){a===an||a===kn||a===ni?this.imageStretch=a:ze.prototype.qb.call(this,a)},bs.prototype.toString=function(){return"Picture("+this.source+")#"+Kr(this)};function Pd(a){a===void 0&&(a=""),a!==""?bd[a]&&(delete bd[a],Im--):(bd=new si,Im=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var tt=b.value;tt.N();var et=y.getAttribute("src")||"",nt=tt.Og.I(et);if(nt!==null)for(var ht=nt.length,gt=0;gt<ht;gt++)et=nt[gt],tt.Xn.add(et),et.Uc=!0,tt.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),et.Zg!==null&&et.Zg(et,x))}y.Bg.clear()}a.desiredSize.w()||(Br(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 tt=b.value,et=y.getAttribute("src")||"",nt=tt.Og.I(et);if(nt!==null){tt=nt.length,et=oi();for(var ht=0;ht<tt;ht++)et.push(nt[ht]);if(y.hn)for(ht=0;ht<tt;ht++)nt=et[ht],nt.Hd!==null&&nt.Hd(nt,x);ri(et)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}bs.prototype.hA=function(){if(this.source!==""){Pd(this.source);var a=this.source;this.source="",this.source=a}},bs.prototype.redraw=function(){this.N(),this.Uc=!0},bs.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 Ec)){var tt=a instanceof Gs;b=this.naturalBounds;var et=0,nt=0,ht=this.qn,gt=ht?+x.width:x.naturalWidth;if(ht=ht?+x.height:x.naturalHeight,gt===void 0&&x.videoWidth&&(gt=x.videoWidth),ht===void 0&&x.videoHeight&&(ht=x.videoHeight),gt=gt||b.width,ht=ht||b.height,gt!==0&&ht!==0){var bt=gt,Pt=ht;this.sourceRect.w()&&(et=this.Xg.x,nt=this.Xg.y,gt=this.Xg.width,ht=this.Xg.height);var Nt=gt,zt=ht,Vt=this.Nk,Zt=this.Mk;switch(Vt){case an:if(this.sourceRect.w())break;Nt>=b.width&&(et=et+Zt.offsetX+(Nt*Zt.x-b.width*Zt.x)),zt>=b.height&&(nt=nt+Zt.offsetY+(zt*Zt.y-b.height*Zt.y)),gt=Math.min(b.width,Nt),ht=Math.min(b.height,zt);break;case ln:Nt=b.width,zt=b.height;break;case kn:case ni:Vt===kn?(Vt=Math.min(b.height/zt,b.width/Nt),Nt*=Vt,zt*=Vt):Vt===ni&&(Vt=Math.max(b.height/zt,b.width/Nt),Nt*=Vt,zt*=Vt,Nt>=b.width&&(et=(et+Zt.offsetX+(Nt*Zt.x-b.width*Zt.x)/Nt)*gt),zt>=b.height&&(nt=(nt+Zt.offsetY+(zt*Zt.y-b.height*Zt.y)/zt)*ht),gt*=1/(Nt/b.width),ht*=1/(zt/b.height),Nt=b.width,zt=b.height)}Vt=this.Df()*y.scale;var oe=Nt*Vt*zt*Vt,Pe=gt*ht/oe,de=x.__goCache;Vt=null;var Le=xw;if(!tt){if(x.sq&&de!==void 0&&4<oe&&Pe>Le*Le)for(de.gi===null&&(L1(de,4,bt,Pt,x),L1(de,16,bt,Pt,x)),tt=de.gi,bt=tt.length,Pt=0;Pt<bt&&tt[Pt].ratio*tt[Pt].ratio<Pe;Pt++)Vt=tt[Pt];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{tt=new _a(null).context;try{tt.drawImage(this.Eg,0,0)}catch(Oe){this.en=!1}try{tt.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Oe){this.vl=!0}}if(this.vl)return}}switch(tt=Nt<b.width?Zt.offsetX+(b.width*Zt.x-Nt*Zt.x):0,Zt=zt<b.height?Zt.offsetY+(b.height*Zt.y-zt*Zt.y):0,this.flip){case ui:a.translate(Math.min(b.width,Nt),0),a.scale(-1,1);break;case Kn:a.translate(0,Math.min(b.height,zt)),a.scale(1,-1);break;case Ai:a.translate(Math.min(b.width,Nt),Math.min(b.height,zt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&de!==void 0&&Vt!==null&&Vt.ratio!==1){a.save(),y=Vt.ratio;try{a.drawImage(Vt.source,et/y,nt/y,Math.min(Vt.source.width,gt/y),Math.min(Vt.source.height,ht/y),tt,Zt,Math.min(b.width,Nt),Math.min(b.height,zt)),a instanceof Gs&&(this.bt=[et/y,nt/y,Math.min(Vt.source.width,gt/y),Math.min(Vt.source.height,ht/y),tt,Zt,Math.min(b.width,Nt),Math.min(b.height,zt)])}catch(Oe){this.en=!1}a.restore()}else try{a.drawImage(x,et,nt,gt,ht,tt,Zt,Math.min(b.width,Nt),Math.min(b.height,zt)),a instanceof Gs&&(this.bt=[et,nt,gt,ht,tt,Zt,Math.min(b.width,Nt),Math.min(b.height,zt)])}catch(Oe){this.en=!1}switch(this.flip){case ui:a.scale(-1,1),a.translate(-Math.min(b.width,Nt),0);break;case Kn:a.scale(1,-1),a.translate(0,-Math.min(b.height,zt));break;case Ai:a.scale(-1,-1),a.translate(-Math.min(b.width,Nt),-Math.min(b.height,zt))}}}}},bs.prototype.Wl=function(a,y,x,b){var tt=this.desiredSize,et=ws(this,!0),nt=this.Eg,ht=this.qn,gt=0,bt=0;(ht||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(tt.width)||(a=0),isFinite(tt.height)||(y=0)):(gt=ht?+nt.width:nt.naturalWidth,bt=ht?+nt.height:nt.naturalHeight),isFinite(tt.width)||et===ln||et===Tn?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:nt!==null&&(a=gt)),x=0):nt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:gt),isFinite(tt.height)||et===ln||et===In?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=bt)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:bt),isFinite(tt.width)&&(a=tt.width),isFinite(tt.height)&&(y=tt.height),tt=this.maxSize,et=this.minSize,x=Math.max(x||0,et.width),b=Math.max(b||0,et.height),a=Math.min(tt.width,a),y=Math.min(tt.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Es(this.dc,a,y),this.Ge(0,0,a,y)},bs.prototype.eh=function(a,y,x,b){Vo(this,a,y,x,b)},qe.Object.defineProperties(bs.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&&Ep(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new gn),b!==null&&x&&Th(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()||(Br(this,!1),this.v())):x&&M1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=bd;if(gr){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Im&&(Pd(),x=bd),b=ir("img"),b.hn=!0,M1(this,b);var tt=this.rl;tt!==null&&(b.crossOrigin=tt(this)),b.src=a,x[a]=b,Im++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new k1),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}}}),bs.prototype.redraw=bs.prototype.redraw,bs.prototype.reloadSource=bs.prototype.hA;var Im=0,xw=4;bs.className="Picture",bd=new si,bs.clearCache=Pd;function k1(){this.gi=null}function L1(a,y,x,b,tt){a.gi===null&&(a.gi=[]);var et=new _a(null),nt=et.context,ht=1/y;et.width=x/y,et.height=b/y,et.width!==0&&et.height!==0&&(y=new T1(et.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],tt=x.source,x=x.ratio),nt.setTransform(ht*x,0,0,ht*x,0,0),nt.yc(),nt.drawImage(tt,0,0),a.gi.push(y))}k1.className="PictureCacheArray";function T1(a,y){this.source=a,this.ratio=y}T1.className="PictureCacheInstance";function Cd(){this.os=new pn,this.mc=null}Cd.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new pn,this.mc=null};function Ed(a,y,x,b,tt,et){a.mc=new to,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=et||!1,a.os.figures.add(a.mc),tt!==void 0&&(a.mc.isShadowed=tt)}function bw(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Cd.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new gi(eo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Cd.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new gi(Gi);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Ku(a,y,x,b,tt,et,nt){var ht;ht===void 0&&(ht=!1);var gt=new gi(Mo);gt.point1X=y,gt.point1Y=x,gt.point2X=b,gt.point2Y=tt,gt.endX=et,gt.endY=nt,ht&&gt.close(),a.mc.segments.add(gt)}function Fm(a,y,x,b,tt){var et;et===void 0&&(et=!1);var nt=new gi(Qs);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=tt,et&&nt.close(),a.mc.segments.add(nt)}Cd.prototype.arcTo=function(a,y,x,b,tt,et,nt){et===void 0&&(et=0),nt===void 0&&(nt=!1);var ht=new gi(Dr);ht.startAngle=a,ht.sweepAngle=y,ht.centerX=x,ht.centerY=b,ht.radiusX=tt,ht.radiusY=et!==0?et:tt,nt&&ht.close(),this.mc.segments.add(ht)};function Pw(a,y,x,b,tt,et,nt,ht){var gt;gt===void 0&&(gt=!1),y=new gi(ua,nt,ht,y,x,b,tt,et),gt&&y.close(),a.mc.segments.add(y)}function _1(a){var y=Bm;return y!==null?(Bm=null,y.reset(a),y):(y=new Cd,y.reset(a),y)}var Bm=null;Cd.className="StreamGeometryContext";function Go(a,y){var x=a.toLowerCase(),b=Ge.Ze;b[a]=y,b[x]=a}Go("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ge.Mf[a];return b!==void 0||(b=new pn(pn.u),b.endX=y,b.endY=x,Ge.Nf<Ge.vm&&(Ge.Mf[a]=b,Ge.Nf++)),b}),Go("Square",function(a,y,x){a="s"+y+","+x;var b=Ge.Mf[a];return b!==void 0||(b=new pn(pn.u),b.endX=y,b.endY=x,b.defaultStretch=kn,Ge.Nf<Ge.vm&&(Ge.Mf[a]=b,Ge.Nf++)),b}),Go("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,tt=Ge.Mf[b];if(tt!==void 0)return tt;var et=a*Ge.wg;return tt=new pn().add(new to(a,0,!0).add(new gi(Gi,y-a,0)).add(new gi(Mo,y,a,y-et,0,y,et)).add(new gi(Gi,y,x-a)).add(new gi(Mo,y-a,x,y,x-et,y-et,x)).add(new gi(Gi,a,x)).add(new gi(Mo,0,x-a,et,x,0,x-et)).add(new gi(Gi,0,a)).add(new gi(Mo,a,0,0,et,et,0).close())),1<et&&(tt.spot1=new jn(0,0,et,et),tt.spot2=new jn(1,1,-et,-et)),Ge.Nf<Ge.vm&&(Ge.Mf[b]=tt,Ge.Nf++),tt}),Go("Border","RoundedRectangle"),Go("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ge.Mf[a];return b!==void 0||(b=new pn(pn.F),b.endX=y,b.endY=x,b.spot1=il,b.spot2=tu,Ge.Nf<Ge.vm&&(Ge.Mf[a]=b,Ge.Nf++)),b}),Go("Circle",function(a,y,x){a="c"+y+","+x;var b=Ge.Mf[a];return b!==void 0||(b=new pn(pn.F),b.endX=y,b.endY=x,b.spot1=il,b.spot2=tu,b.defaultStretch=kn,Ge.Nf<Ge.vm&&(Ge.Mf[a]=b,Ge.Nf++)),b}),Go("TriangleRight",function(a,y,x){return new pn().add(new to(0,0).add(new gi(Gi,y,.5*x)).add(new gi(Gi,0,x).close())).pm(0,.25,.5,.75)}),Go("TriangleDown",function(a,y,x){return new pn().add(new to(0,0).add(new gi(Gi,y,0)).add(new gi(Gi,.5*y,x).close())).pm(.25,0,.75,.5)}),Go("TriangleLeft",function(a,y,x){return new pn().add(new to(y,x).add(new gi(Gi,0,.5*x)).add(new gi(Gi,y,0).close())).pm(.5,.25,1,.75)}),Go("TriangleUp",function(a,y,x){return new pn().add(new to(y,x).add(new gi(Gi,0,x)).add(new gi(Gi,.5*y,0).close())).pm(.25,.5,.75,1)}),Go("Triangle","TriangleUp"),Go("Diamond",function(a,y,x){return new pn().add(new to(.5*y,0).add(new gi(Gi,0,.5*x)).add(new gi(Gi,.5*y,x)).add(new gi(Gi,y,.5*x).close())).pm(.25,.25,.75,.75)}),Go("LineH",function(a,y,x){return a=new pn(pn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Go("LineV",function(a,y,x){return a=new pn(pn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Go("None","Rectangle"),Go("BarH","Rectangle"),Go("BarV","Rectangle"),Go("MinusLine","LineH"),Go("PlusLine",function(a,y,x){return new pn().add(new to(0,x/2,!1).add(new gi(Gi,y,x/2)).add(new gi(eo,y/2,0)).add(new gi(Gi,y/2,x)))}),Go("XLine",function(a,y,x){return new pn().add(new to(0,x,!1).add(new gi(Gi,y,0)).add(new gi(eo,0,0)).add(new gi(Gi,y,x)))}),Go("LineRight",function(a,y,x){return new pn().add(new to(.25*y,0,!1).add(new gi(Gi,.75*y,.5*x)).add(new gi(Gi,.25*y,x)))}),Go("LineDown",function(a,y,x){return new pn().add(new to(0,.25*x,!1).add(new gi(Gi,.5*y,.75*x)).add(new gi(Gi,y,.25*x)))}),Go("LineLeft",function(a,y,x){return new pn().add(new to(.75*y,0,!1).add(new gi(Gi,.25*y,.5*x)).add(new gi(Gi,.75*y,x)))}),Go("LineUp",function(a,y,x){return new pn().add(new to(0,.75*x,!1).add(new gi(Gi,.5*y,.25*x)).add(new gi(Gi,y,.75*x)))}),Ge.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Dv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Jr,this.ir=null,this.jr="",this.lr=oo,this.Gq="",this.Hq=vo,this.Pq=Qo,this.Kq=Tl,this.Up=null,this.Cq=127,this.zr=Pa,this.yr="gray",this.Vg=4}Dv.prototype.copy=function(){var a=new Dv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function _n(a,y){a===void 0||a instanceof Wr||typeof a=="string"?un.call(this,a):(un.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 Ee(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new $e,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}en(_n,un),_n.prototype.cloneProtected=function(a){un.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},ee=_n.prototype,ee.Af=function(a){un.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},ee.toString=function(){var a=Zn(this.constructor)+"#"+Kr(this);return this.data!==null&&(a+="("+ur(this.data)+")"),a};function Ps(a){a.P===null?a.P=new Dv:a.P.nc&&(a.P=a.P.copy())}ee.th=function(){un.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},ee.gk=function(a,y,x,b,tt,et,nt){var ht=this.diagram;ht!==null&&(a===Ar&&y==="elements"?tt instanceof un?Ac(tt,function(gt){ly(ht.partManager,gt),yc(ht,gt)}):Th(ht,tt):a===Hr&&y==="elements"&&(tt instanceof un?Ac(tt,function(gt){uy(ht.partManager,gt,ht)}):Ep(ht,tt)),ht.cb(a,y,x,b,tt,et,nt))},ee.La=function(a){if(un.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b];tt instanceof un&&Ac(tt,function(et){et.data!==null&&et.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 tt=x.diagram;tt!==null&&tt.remove(x)}b===null&&(this.Qf=b=new Rn),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=oi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);ri(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 Un?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof di))break t;Oa(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=un.Link),x.adornedObject=y)}if(x!==null){x.type===un.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cw(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 Cw(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Rm(a){if(Nh(a)===!1){Bv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function O1(a){if(a.G|=2097152,Nh(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||D1(a,y,x),x=a.Ib;var b=$e.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),$e.free(b),Bv(a,!1)}}_n.prototype.Ge=function(a,y,x,b){var tt=this.uc;tt.h(a,y,x,b),this.Lb===null&&(this.Lb=new Xn);var et=this.Lb;et.reset(),this.no(et,a,y,x,b),this.Lb=et,et.ws()||et.pp(tt)},_n.prototype.no=function(a,y,x,b,tt){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var et=wi;this.locationSpot.sb()&&(et=this.locationSpot);var nt=Ee.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,et),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),et=y.panel;et!==null&&et!==this;)et.Lb!==null&&et.Lb.Ga(nt),nt.offset(-et.measuredBounds.x,-et.measuredBounds.y),et=et.panel;else nt.yi(y,x,b,tt,et);a.rotate(this.Kb,nt.x,nt.y),Ee.free(nt)}},_n.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},_n.prototype.moveTo=function(a,y,x){a=Ee.allocAt(a,y),this.move(a,x),Ee.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 Rn),y.I(a)!==null)return y.I(a);var x=un.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Xu(a,y,x,b){b===void 0&&(b=new Ee),x=x.Mc()?wi:x;var tt=y.naturalBounds;if(b.h(tt.width*x.x+x.offsetX,tt.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 $e),a.assign(this.actualBounds)},_n.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function j1(a){var y=Ee.alloc(),x=a.locationObject,b=x.naturalBounds,tt=x instanceof Wn?x.strokeWidth:0;if(y.yi(0,0,b.width+tt,b.height+tt,a.locationSpot),x!==a)for(y.offset(-tt/2,-tt/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 Lc(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=h1(a));var b=a.ag,tt=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+tt,y.height+2+tt),x;b=y.x,tt=y.y;var et=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,et+=nt,y+=nt,b-=nt/2,tt-=nt/2,0<a.x?et+=a.x:(b+=a.x,et-=a.x),0<a.y?y+=a.y:(tt+=a.y,y-=a.y),x.h(b-1,tt-1,et+2,y+2),x}_n.prototype.arrange=function(){if(ss(this)===!1)O1(this);else{Rl(this,!1);var a=this.Ib,y=$e.alloc();y.assign(a);var x=Dh(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;D1(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Ge.B(y.width,a.width)&&Ge.B(y.height,a.height)||0<=this.vw&&this.C(16),$e.free(y),Bv(this,!1)}},ee=_n.prototype,ee.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var tt=$e.alloc();tt.assign(x.documentBounds),tt.Fv(x.padding),a.x>tt.x&&a.y>tt.y&&a.right<tt.right&&a.bottom<tt.bottom&&y.x>tt.x&&y.y>tt.y&&y.right<tt.right&&y.bottom<tt.bottom&&(b=!0),$e.free(tt)}!(this.G&65536)&&a.D(y)||B1(this,b,x),x.N(),!a.w()&&!y.w()||Cu(a,y)||(this instanceof wn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},ee.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&N1(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 Ee(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Nh(this)===!1&&ss(this)===!1&&(Rm(this),O1(this)),!0};function N1(a,y,x,b,tt){y===null||a instanceof di||(y=y.animationManager,y.zb&&Qf(y,a,new Ee(b,tt),x))}ee.mm=function(a,y,x){var b=this.ke,tt=this.pa;if(x){if(b.x===a&&b.y===y)return;Nh(this)||ss(this)?tt.h(NaN,NaN):tt.h(tt.x+a-b.x,tt.y+y-b.y),b.h(a,y)}else{if(tt.x===a&&tt.y===y)return;b.h(b.x+a-tt.x,b.y+y-tt.y),tt.h(a,y)}Rm(this)},ee.Av=function(){this.G&=-2097153,Rm(this)};function D1(a,y,x){var b=j1(a),tt=a.diagram,et=x.w(),nt=y.w();et&&nt?a.G&2097152?I1(a,y,x,tt,b):F1(a,y,x,tt,b):et?I1(a,y,x,tt,b):nt&&F1(a,y,x,tt,b),a.G|=2097152,Ee.free(b),a.Uk()}function I1(a,y,x,b,tt){var et=y.x,nt=y.y;y.h(x.x-tt.x,x.y-tt.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof di||Qf(x,a,new Ee(et,nt),y),b||y.x===et&&y.y===nt||a.g("position",new Ee(et,nt),y.copy()))}function F1(a,y,x,b,tt){var et=x.copy();x.h(y.x+tt.x,y.y+tt.y),x.D(et)||b===null||a.g("location",et,x.copy())}function B1(a,y,x){Rv(a,!1),a instanceof wn&&Gu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Dh(a)?(tl(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}ee.si=function(){return!0},ee.Zc=function(){return!0},ee.ph=function(){return!1},ee.Dd=function(){return!0};function Fv(a,y,x,b){y.constructor===a.constructor||G1||(G1=!0,pr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),pr(" Old class: "+Zn(a.constructor)+", new class: "+Zn(y.constructor)+", part: "+a.toString())),a.Ej();var tt=a.data;x=a.layerName;var et=a.isSelected,nt=a.isHighlighted,ht=!0,gt=!0,bt=!1;a instanceof wn&&(ht=a.isTreeLeaf,gt=a.isTreeExpanded,bt=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=tt,a.G=et?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof wn&&(a.U=ht?a.U|4:a.U&-5,a.U=gt?a.U|1:a.U&-2,a.U=bt?a.U|2:a.U&-3),tt!==null&&a.La(),tt=a.layerName,tt!==x&&(a.Jg=x,a.layerName=tt),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 Nh(a){return(a.G&32768)!==0}function Bv(a,y){a.G=y?a.G|32768:a.G&-32769}function Rv(a,y){a.G=y?a.G|65536:a.G&-65537}function Dh(a){return(a.G&131072)!==0}ee=_n.prototype,ee.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function zm(a,y){a.G=y?a.G|1048576:a.G&-1048577}ee.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},ee.N=function(){var a=this.diagram;a!==null&&!ss(this)&&!Nh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Lc(this,this.Ib))},ee.v=function(){un.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof wn&&this.labeledLink!==null&&os(this.labeledLink),a.$b(!0))},ee.Vo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},ee.Wo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},ee.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},ee.oz=function(){return zv(this,this)};function zv(a,y){var x=y.containingGroup;return x!==null?1+zv(a,x):y instanceof wn&&(y=y.labeledLink,y!==null)?zv(a,y):0}ee.sz=function(){return R1(this,this)};function R1(a,y){var x=y.containingGroup;return x!==null||y instanceof wn&&(x=y.labeledLink,x!==null)?R1(a,x):y}ee.Td=function(a){return a instanceof Un?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 wn&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}ee.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Un&&zm(y,!0),y instanceof wn){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 wn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Un&&zm(y,!1),y instanceof wn&&(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 wn&&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 wn&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function z1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Ih(a,y,x,b,tt,et){if(et===void 0&&(et=null),!(a.contains(y)||et!==null&&!et(y)||y instanceof di)){if(a.add(y),y instanceof wn){if(x&&y instanceof Un)for(var nt=y.memberParts;nt.next();)Ih(a,nt.value,x,b,tt,et);if(tt!==!1)for(nt=y.linksConnected;nt.next();){var ht=nt.value;if(!a.contains(ht)){var gt=ht.fromNode,bt=ht.toNode;gt=gt===null||a.contains(gt),bt=bt===null||a.contains(bt),(tt?gt&&bt:gt||bt)&&Ih(a,ht,x,b,tt,et)}}if(1<b)for(y=y.Ou();y.next();)Ih(a,y.value,x,b-1,tt,et)}else if(y instanceof cn)for(y=y.labelNodes;y.next();)Ih(a,y.value,x,b,tt,et)}}qe.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?hr: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(Hr,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Ar,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var tt=x.aa;x.aa=!0,b(this,y,a),x.aa=tt}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Ps(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&&$f(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 di?this.type!==un.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:Qo},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Ps(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Tl},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Ps(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&&(Ps(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:vo},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Ps(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,ss(this)===!1&&(Rm(this),x=this.pa,x.w())){var tt=this.diagram;if(tt===null||tt.animationManager.isTicking||!tt.undoManager.isUndoingRedoing){var et=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),N1(this,tt,x,et.x,et.y),this.g("position",et,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,tt=null;if(x!==null&&b!==null&&!(this instanceof di)){var et=x.model.undoManager;et.isEnabled&&!et.isUndoingRedoing&&(tt=this.clone(),tt.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof di?this instanceof di&&(tt=this.adornedPart,tt!==null&&(a=tt.Qf,a!==null&&a.remove(y),tt.bh(this.category,this))):(et=x.model,et.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Oa(x),x=x.copy(),x!==null&&Fv(this,x,y,a))):(et!==null&&et.jm(b,a),x=fS(x.partManager,b,a),x!==null&&(Oa(x),x=x.copy(),x===null||x instanceof cn||(b=this.location.copy(),Fv(this,x,y,a),this.location.w()||(this.location=b)))),tt!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",tt,y))))}}},self:{get:function(){return this},set:function(a){Fv(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 tt=x.selection;tt.ka(),a?tt.add(this):tt.remove(this),tt.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&&(Ps(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&&(Ps(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&&(Ps(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 cn?(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&&(Ps(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&&(Ps(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&&(Ps(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:Jr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ps(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&&(Ps(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&&(Ps(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:oo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ps(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?Yv(y,this):this instanceof Un&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Un&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,tt=x.model;if(b!==null&&tt.Xj()){var et=tt.wa(a!==null?a.data:null);tt.mp(b,et)}}if(b=this.containingGroupChanged,b!==null&&(tt=!0,x!==null&&(tt=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=tt)),this instanceof Un){for(x=new gn,Ih(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof wn)for(b=b.linksConnected;b.next();)Ad(b.value)}if(this instanceof wn){for(x=this.linksConnected;x.next();)Ad(x.value);x=this.labeledLink,x!==null&&Ad(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&$f(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&&(Ps(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof wn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ps(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&&(Ps(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Pa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ps(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&&(Ps(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&&(Ps(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 di(a,y){a===void 0||a instanceof Wr||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)}en(di,_n),di.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},di.prototype.updateRelationshipsFromData=function(){},di.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof cn&&y instanceof Wn){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var tt=x[b];tt.isPanelMain&&tt instanceof Wn&&(tt.ua=a)}}},di.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ss(a))},di.prototype.Zc=function(){return!1},di.prototype.gk=function(a,y,x,b,tt,et,nt){if(a===Ar&&y==="elements"){if(tt instanceof ls)this.$a===null&&(this.$a=tt);else if(tt instanceof un){var ht=tt.Nl(function(gt){return gt instanceof ls});ht instanceof ls&&this.$a===null&&(this.$a=ht)}}else a===Hr&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof un&&this.$a.rg(b)&&(this.$a=null));_n.prototype.gk.call(this,a,y,x,b,tt,et,nt)},di.prototype.updateAdornments=function(){},di.prototype.Lj=function(){},qe.Object.defineProperties(di.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}}}),di.className="Adornment";function Uv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Gc,this.er=Hm,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 wn(a,y){a===void 0||a instanceof Wr||typeof a=="string"?_n.call(this,a):(_n.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new vn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}en(wn,_n),wn.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())},ee=wn.prototype,ee.Af=function(a){_n.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Zu(a){a.Ba===null?a.Ba=new Uv:a.Ba.nc&&(a.Ba=a.Ba.copy())}ee.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 gn),a.af.add(y))}function H1(a,y,x,b){if(y===null||a.af===null)return null;for(var tt=a.af.iterator;tt.next();){var et=tt.value;if(et.Ds===a&&et.cv===y&&et.Ox===x&&et.Px===b||et.Ds===y&&et.cv===a&&et.Ox===b&&et.Px===x)return et}return null}ee.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=H1(this,a,y,x),a!==null&&a.Sl()},ee.gk=function(a,y,x,b,tt,et,nt){a===Ar&&y==="elements"?this.wc=null:a===Hr&&y==="elements"&&(this.wc=null),_n.prototype.gk.call(this,a,y,x,b,tt,et,nt)},ee.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Us(x.fromPort),Us(x.toPort),x.bb())}};function W1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Us(x.fromPort),Us(x.toPort),x.bb())}}function Us(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Us(y.port)}}ee.si=function(){return!0},wn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},wn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},wn.prototype.isVisible=function(){if(!_n.prototype.isVisible.call(this))return!1;var a=!0,y=Hu,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Hu){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Fr){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===cd&&(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},wn.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)}},wn.prototype.qx=function(){var a=new gn,y=new gn;return V1(this,this,a,y),y.iterator};function V1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var tt=!0,et=a.diagram;et!==null&&(tt=et.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(tt?nt.fromNode===y:nt.toNode===y)&&V1(a,tt?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}wn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Yi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},ee=wn.prototype,ee.Mo=function(a){a===void 0&&(a=null);var y=new Yi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},ee.Sd=function(a){a===void 0&&(a=null);var y=new Yi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},ee.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var tt=b.value;tt.fromNode===this?(a===null||tt.fromPortId===a)&&(tt=tt.toNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new gn,y.add(x),y.add(tt)):x=tt):tt.toNode!==this||a!==null&&tt.toPortId!==a||(tt=tt.fromNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new gn,y.add(x),y.add(tt)):x=tt)}return y!==null?y.iterator:x!==null?new Vi(x):hr},ee.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var tt=b.value;tt.fromNode!==this||a!==null&&tt.fromPortId!==a||(tt=tt.toNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new gn,y.add(x),y.add(tt)):x=tt)}return y!==null?y.iterator:x!==null?new Vi(x):hr},ee.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var tt=b.value;tt.toNode!==this||a!==null&&tt.toPortId!==a||(tt=tt.fromNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new gn,y.add(x),y.add(tt)):x=tt)}return y!==null?y.iterator:x!==null?new Vi(x):hr},ee.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Yi(this.jb),tt=this;return b.predicate=function(et){return!((et.fromNode!==tt||et.toNode!==a||y!==null&&et.fromPortId!==y||x!==null&&et.toPortId!==x)&&(et.fromNode!==a||et.toNode!==tt||x!==null&&et.fromPortId!==x||y!==null&&et.toPortId!==y))},b},ee.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Yi(this.jb),tt=this;return b.predicate=function(et){return!(et.fromNode!==tt||et.toNode!==a||y!==null&&et.fromPortId!==y||x!==null&&et.toPortId!==x)},b};function Gm(a,y,x){Us(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var tt=a.linkConnected;if(tt!==null){var et=!0,nt=a.diagram;nt!==null&&(et=nt.aa,nt.aa=!0),tt(a,y,x),nt!==null&&(nt.aa=et)}}!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),tt=b?y:x,et=b?x:y,tt.ci||(tt.ci=et),!et.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===et&&(et.isTreeLeaf=!1):y===et&&(et.isTreeLeaf=!1))))}function Um(a,y,x){Us(x);var b=a.jb.remove(y),tt=null;if(b||y.toNode===y.fromNode){var et=a.linkDisconnected;if(tt=a.diagram,et!==null){var nt=!0;tt!==null&&(nt=tt.aa,tt.aa=!0),et(a,y,x),tt!==null&&(tt.aa=nt)}}b&&y.isTreeLink&&(x=!0,tt!==null&&(x=tt.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,tt!==null&&tt.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Kp(y)))}function Kp(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}}}wn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},ee=wn.prototype,ee.Vo=function(a){_n.prototype.Vo.call(this,a),a||(Kp(this),a=this.Yk,a!==null&&tS(a,this))},ee.Wo=function(a){_n.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},ee.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)},ee.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Y1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Y1(a){a.wc===null?a.wc=new Rn:a.wc.clear(),a.qm(a,function(y,x){K1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function K1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Hv(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=oi()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);ri(x)}}}ee.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 tt=b.value;if(tt.isTreeLink&&(y=tt.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()&&(tt=b.value,!tt.isTreeLink||(y=tt.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},ee.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}},ee.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)zm(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;)zm(y,!1),y=y.pg();return x},ee.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},ee.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof wn)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},ee.vz=function(){function a(x,b){b.add(x);var tt=x.kh();tt!==null&&(b.add(tt),x=x.pg(),x!==null&&a(x,b))}var y=new gn;return a(this,y),y},ee.uz=function(){return X1(this,this)};function X1(a,y){return y=y.pg(),y===null?0:1+X1(a,y)}ee.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Yi(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},ee.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 vn,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 vn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Vi(x):hr},ee.wz=function(a){a===void 0&&(a=1/0);var y=new gn;return Ih(y,this,!1,a,!0),y},wn.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 gn;x.add(this),Z1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hu),y.Ue=!1}};function Z1(a,y,x,b,tt,et,nt){if(1<b)for(var ht=x?a.Mo():a.Sd();ht.next();){var gt=ht.value;gt.isTreeLink&&(gt=gt.To(a),gt===null||gt===a||y.contains(gt)||(y.add(gt),Z1(gt,y,x,b-1,tt,et,nt)))}else Q1(a,y,x,tt,et,nt)}function Q1(a,y,x,b,tt,et){for(var nt=tt===a?!0:a.isTreeExpanded,ht=x?a.Mo():a.Sd(),gt={};ht.next();){var bt=ht.value;if(bt.isTreeLink&&(bt=bt.To(a),bt!==null&&bt!==a)){var Pt=y.contains(bt);if(Pt||y.add(bt),nt){var Nt=x?bt.Oo():bt.Po();gt.uv=a,Nt.all(function(zt){return function(Vt){return Vt===zt.uv||!Vt.isTreeExpanded}}(gt))&&b.Aj(bt,tt),bt.oh(),bt.Zb(!1)}bt.isTreeExpanded&&(bt.wasTreeExpanded=bt.isTreeExpanded,Pt||Q1(bt,y,x,b,tt,et))}gt={uv:gt.uv}}a.isTreeExpanded=!1}wn.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 gn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hu),y.Ue=!1}};function J1(a,y,x,b,tt,et,nt){for(var ht=et===a?!1:a.isTreeExpanded,gt=x?a.Mo():a.Sd(),bt={};gt.next();){var Pt=gt.value;if(Pt.isTreeLink&&(ht||Pt.fd||Pt.bb(),Pt=Pt.To(a),Pt!==null&&Pt!==a&&!y.contains(Pt))){if(y.add(Pt),!ht){Pt.Zb(!0),Pt.oh();var Nt=x?Pt.Oo():Pt.Po();bt.vv=a,Nt.all(function(zt){return function(Vt){return Vt===zt.vv||!Vt.isTreeExpanded}}(bt))&&tt.Cj(Pt,et)}(2<b||Pt.wasTreeExpanded)&&(Pt.wasTreeExpanded=!1,J1(Pt,y,x,b-1,tt,et,nt))}bt={vv:bt.vv}}a.isTreeExpanded=!0}qe.Object.defineProperties(wn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Hm},set:function(a){var y=this.portSpreading;y!==a&&(Zu(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&&Gu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Gc},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Zu(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Gu(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&&(Zu(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&&(Zu(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&&(Zu(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 tt=y.data,et=x.model;if(tt!==null&&et.ri()){var nt=et.wa(b);nt!==void 0&&et.Qx(tt,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(tS(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(tt=a.data,x=x.model,tt!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(tt,b))),this.containingGroup=a.containingGroup),os(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Y1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var 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&&(Zu(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))}}}),wn.prototype.expandTree=wn.prototype.expandTree,wn.prototype.collapseTree=wn.prototype.collapseTree,wn.prototype.findTreeParts=wn.prototype.wz,wn.prototype.findTreeChildrenNodes=wn.prototype.Ou,wn.prototype.findTreeChildrenLinks=wn.prototype.Qo,wn.prototype.findTreeLevel=wn.prototype.uz,wn.prototype.findTreeParentChain=wn.prototype.vz,wn.prototype.findTreeParentNode=wn.prototype.pg,wn.prototype.findTreeParentLink=wn.prototype.kh,wn.prototype.findCommonTreeParent=wn.prototype.gz,wn.prototype.findTreeRoot=wn.prototype.xz,wn.prototype.isInTreeOf=wn.prototype.Nz,wn.prototype.findPort=wn.prototype.ns,wn.prototype.findLinksTo=wn.prototype.kz,wn.prototype.findLinksBetween=wn.prototype.jz,wn.prototype.findNodesInto=wn.prototype.Oo,wn.prototype.findNodesOutOf=wn.prototype.Po,wn.prototype.findNodesConnected=wn.prototype.Mu,wn.prototype.findLinksInto=wn.prototype.Sd,wn.prototype.findLinksOutOf=wn.prototype.Mo,wn.prototype.findExternalTreeLinksConnected=wn.prototype.qx,wn.prototype.invalidateConnectedLinks=wn.prototype.Bd,wn.prototype.invalidateLinkBundle=wn.prototype.Lz;var Ew=new sn(wn,"SpreadingNone",10),Hm=new sn(wn,"SpreadingEvenly",11),Wv=new sn(wn,"SpreadingPacked",12);wn.className="Node",wn.SpreadingNone=Ew,wn.SpreadingEvenly=Hm,wn.SpreadingPacked=Wv;function Un(a,y){a===void 0||a instanceof Wr||typeof a=="string"?wn.call(this,a):(wn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new gn,this.$a=null,this.Sc=new Ji,this.Sc.group=this,this.gl=new gn,this.tb=this.$p=null,y&&Object.assign(this,y)}en(Un,wn),Un.prototype.cloneProtected=function(a){wn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof ls});y instanceof ls?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())},ee=Un.prototype,ee.Af=function(a){wn.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 wn)x.Bd(y);else if(x instanceof cn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},ee.gk=function(a,y,x,b,tt,et,nt){if(a===Ar&&y==="elements"){if(tt instanceof ls)this.$a===null?this.$a=tt:this.$a!==tt&&We("Cannot insert a second Placeholder into the visual tree of a Group.");else if(tt instanceof un){var ht=tt.Nl(function(gt){return gt instanceof ls});ht instanceof ls&&(this.$a===null?this.$a=ht:this.$a!==ht&&We("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Hr&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof un&&this.$a.rg(b)&&(this.$a=null));wn.prototype.gk.call(this,a,y,x,b,tt,et,nt)},ee.Xl=function(a,y){wn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==un.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof un&&(a=a.Pb()),this.tb===null&&(this.tb=new $e),a.mi(this.tb),a instanceof Wn&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},ee.eh=function(a,y,x,b){this.nf=this.$a,wn.prototype.eh.call(this,a,y,x,b)},ee.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof cn||y.Va()}),wn.prototype.Va.call(this)},ee.si=function(){if(!wn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof wn){if(y.isVisible()&&ss(y))return!1}else if(y instanceof cn&&y.isVisible()&&ss(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Vv(a,y){if(a.Gn.add(y)){y instanceof Un&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,tt=a.diagram;tt!==null&&(b=tt.aa,tt.aa=!0),x(a,y),tt!==null&&(tt.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof cn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Yv(a,y){if(a.Gn.remove(y)){y instanceof Un&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,tt=a.diagram;tt!==null&&(b=tt.aa,tt.aa=!0),x(a,y),tt!==null&&(tt.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof cn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}ee.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)}wn.prototype.Lj.call(this)},Un.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Qe(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Un.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Qe(a).iterator;a.next();){var tt=a.value;!y||x.isValidMember(this,tt)?tt.containingGroup=this:b=!1}return b},Un.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))},ee=Un.prototype,ee.Bd=function(a){var y=(this.U&65536)!==0;if(wn.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()?(Us(x.fromPort),Us(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Us(x.fromPort),Us(x.toPort),x.bb()))}}},ee.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 gn,b=y.iterator;b.next();){var tt=b.value;if(tt instanceof wn)for(tt=tt.linksConnected;tt.next();){var et=tt.value;y.contains(et)||x.add(et)}}return a&&(this.$p=x),x.iterator},ee.iz=function(){var a=this.Rj();a.add(this);for(var y=new gn,x=a.iterator;x.next();){var b=x.value;if(b instanceof wn)for(b=b.linksConnected;b.next();){var tt=b.value,et=tt.fromNode;et===null||a.contains(et)&&et!==this||y.add(et),tt=tt.toNode,tt===null||a.contains(tt)&&tt!==this||y.add(tt)}}return y.iterator},ee.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new gn;return a(this,y),y},ee.Rj=function(){var a=new gn;return Ih(a,this,!0,0,!0),a.remove(this),a},ee.Zb=function(a){wn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Un.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 tt=a.memberParts;tt.next();){var et=tt.value;if(et.Zb(!1),et instanceof Un&&et.isSubGraphExpanded&&(et.wasSubGraphExpanded=et.isSubGraphExpanded,q1(et,y,x,b)),et instanceof wn)et.Bd(y),x.Aj(et,b);else if(et instanceof cn)for(et=et.labelNodes;et.next();)et.value.Bd(y)}a.isSubGraphExpanded=!1}Un.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 tt=a.memberParts;tt.next();){var et=tt.value;if(et.Zb(!0),et instanceof Un&&et.wasSubGraphExpanded&&(et.wasSubGraphExpanded=!1,$1(et,y,x,b)),et instanceof wn)et.Bd(y),x.Cj(et,b);else if(et instanceof cn)for(et=et.labelNodes;et.next();)et.value.Bd(y)}a.isSubGraphExpanded=!0}Un.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var tt=a.x,et=a.y;if(!(b===tt||isNaN(b)&&isNaN(tt))||!(x===et||isNaN(x)&&isNaN(et))){for(b=tt-(isNaN(b)?0:b),x=et-(isNaN(x)?0:x),et=Ee.alloc(),wn.prototype.move.call(this,a,y),a=new gn,y=this.Rj().iterator;y.next();)tt=y.value,tt instanceof cn&&(tt.suspendsRouting&&a.add(tt),tt.fd||tt.fromNode!==this&&tt.toNode!==this)&&(tt.suspendsRouting=!0);for(y.reset();y.next();)if(tt=y.value,!(tt.ph()||tt instanceof wn&&tt.isLinkLabel)){var nt=tt.position,ht=tt.location;nt.w()?(et.x=nt.x+b,et.y=nt.y+x,tt.position=et):ht.w()&&(et.x=ht.x+b,et.y=ht.y+x,tt.location=et)}for(y.reset();y.next();)tt=y.value,tt instanceof cn&&(tt.suspendsRouting=a.contains(tt),tt.fd||tt.fromNode!==this&&tt.toNode!==this)&&(nt=tt.position,et.x=nt.x+b,et.y=nt.y+x,et.w()?tt.move(et):tt.bb(),Xv(tt)&&tt.bb());Ee.free(et)}},qe.Object.defineProperties(Un.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&&(Zu(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&&(Zu(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&&(Zu(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(tt){tt.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&&(Zu(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)}}}),Un.prototype.expandSubGraph=Un.prototype.expandSubGraph,Un.prototype.collapseSubGraph=Un.prototype.collapseSubGraph,Un.prototype.findSubGraphParts=Un.prototype.Rj,Un.prototype.findContainingGroupChain=Un.prototype.hz,Un.prototype.findExternalNodesConnected=Un.prototype.iz,Un.prototype.findExternalLinksConnected=Un.prototype.Lu,Un.prototype.ensureBounds=Un.prototype.Va,Un.className="Group";function ls(a){ze.call(this),this.yb=Ra,this.ko=new $e(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}en(ls,ze),ls.prototype.cloneProtected=function(a){ze.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},ls.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Eo(0,0,y.width,y.height,a.x,a.y)},ls.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Un||a instanceof di)||We("Placeholder is not inside a Group or Adornment."),a instanceof Un){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Es(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=Ee.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ee.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var tt=x.top+x.bottom,et=a.adornedObject;a.angle=et.li();var nt=0;et instanceof Wn&&(nt=et.strokeWidth);var ht=et.Df(),gt=et.naturalBounds,bt=(gt.width+nt)*ht;nt=(gt.height+nt)*ht,a.type!==un.Link&&(ht=et.ga(a.category==="Selection"?vo:a.locationSpot,Ee.alloc()),a.location=ht,Ee.free(ht)),isNaN(bt)||isNaN(nt)?(a=et.ga(vo,Ee.alloc()),bt=$e.allocAt(a.x,a.y,0,0),bt.Ye(et.ga(qo,a)),bt.Ye(et.ga($l,a)),bt.Ye(et.ga(el,a)),Es(y,bt.width+b||0,bt.height+tt||0),this.Ge(-x.left,-x.top,y.width,y.height),Ee.free(a),$e.free(bt)):(Es(y,bt+b||0,nt+tt||0),this.Ge(-x.left,-x.top,y.width,y.height))}},ls.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},ls.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Un&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var tt=x.toolManager.findTool("Dragging");if(tt===x.currentTool&&(x=tt.computeBorder(y,this.ko,a),x!==null))return x}x=$e.alloc(),tt=this.computeMemberBounds(x);var et=this.yb;return y instanceof Un&&!y.isSubGraphExpanded?a.h(tt.x-et.left,tt.y-et.top,0,0):a.h(tt.x-et.left,tt.y-et.top,Math.max(tt.width+et.left+et.right,0),Math.max(tt.height+et.top+et.bottom,0)),$e.free(x),b&&y instanceof Un&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ls.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Un))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,tt=-1/0,et=-1/0,nt=y.memberParts;nt.next();){var ht=nt.value;if(ht.isVisible()){if(ht instanceof cn&&(!y.computesBoundsIncludingLinks||ea(ht)||ht.fromNode===y||ht.toNode===y))continue;ht=ht.actualBounds,ht.left<x&&(x=ht.left),ht.top<b&&(b=ht.top),ht.right>tt&&(tt=ht.right),ht.bottom>et&&(et=ht.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,tt-x,et-b):(y=y.location,a.h(y.x,y.y,0,0)),a},qe.Object.defineProperties(ls.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ls.className="Placeholder";function cn(a){_n.call(this,un.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=us,this.Om=0,this.Qm=us,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new vn().freeze(),this.Tg=this.Mg=null,this.ml=new $e,this.ua=new pn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ee,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}en(cn,_n),cn.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())},ee=cn.prototype,ee.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&&Us(y),a=a.toPort,a!==null&&Us(a)},ee.qb=function(a){a.classType===cn?(a.value&2)===2?this.routing=a:a===ia||a===Ju||a===kd?this.curve=a:a===Qp||a===Zm||a===Qm?this.adjusting=a:a!==Jv&&a!==us&&We("Unknown Link enum value for a Link property: "+a):_n.prototype.qb.call(this,a)},ee.Xc=function(){this.ba===null&&(this.ba=new Ip)},ee.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ss(a)||Nh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ss(a)||Nh(a)))},ee.zv=function(){return!1},ee.Av=function(){},ee.Zc=function(){return!1},cn.prototype.computeAngle=function(a,y,x){return cn.computeAngle(y,x)},cn.computeAngle=function(a,y){switch(a){default:case us:a=0;break;case Jp:a=y;break;case qp:a=y+90;break;case $p:a=y-90;break;case qv:a=y+180;break;case Jm:a=Ge.bp(y),90<a&&270>a&&(a-=180);break;case tg:a=Ge.bp(y+90),90<a&&270>a&&(a-=180);break;case eg:a=Ge.bp(y-90),90<a&&270>a&&(a-=180);break;case qm:if(a=Ge.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ge.bp(a)};function Ad(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&&Yv(x,a),a.Ah=y,y!==null&&Vv(y,a);var tt=a.containingGroupChanged;if(tt!==null){var et=!0,nt=a.diagram;nt!==null&&(et=nt.aa,nt.aa=!0),tt(a,x,y),nt!==null&&(nt.aa=et)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}ee=cn.prototype,ee.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&_n.prototype.oh.call(this)},ee.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},ee.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function tS(a,y){a.wd===null&&(a.wd=new gn),a.wd.add(y),a.v()}ee.Vo=function(a){if(_n.prototype.Vo.call(this,a),Tc(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)}Xp(this)}},ee.Wo=function(a){if(_n.prototype.Wo.call(this,a),Tc(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)}Zp(this)}},ee.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))},cn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},cn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var tt=x.y;for(isNaN(tt)&&(tt=0),b=a.x-b,tt=a.y-tt,y===!0?_n.prototype.move.call(this,a,!1):(a=Ee.allocAt(x.x+b,x.y+tt),_n.prototype.move.call(this,a,!1),Ee.free(a)),Qu(this,b,tt),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+tt)},cn.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},cn.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},cn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(_l),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()===ia))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()===ia){if(y===3){x=this.i(0),b=this.i(1);var tt=this.i(2);return Ge.ax(x.x,x.y,b.x,b.y,b.x,b.y,tt.x,tt.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),tt=this.i(x+1);var et=this.i(x+2);x=this.i(x+3),Ge.ax(b.x,b.y,tt.x,tt.y,et.x,et.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,tt=et=b=0;b<x/2&&et<y&&(tt=nt[et],!(b+tt>x/2));)b+=tt,et++;return y=this.i(et),et=this.i(et+1),1>Math.abs(y.x-et.x)?y.y>et.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-et.y)?y.x>et.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/tt,a.h(y.x+x*(et.x-y.x),y.y+x*(et.y-y.y))),a},cn.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()===ia))return this.ua.wx(.5);if(this.computeCurve()===ia&&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),Ge.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 tt=0;x=0;for(var et;tt<b/2&&x<a&&(et=y[x],!(tt+et>b/2));)tt+=et,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)},ee=cn.prototype,ee.i=function(a){return this.Nb.s[a]},ee.dd=function(a,y){this.Nb.cd(a,y)},ee.L=function(a,y,x){this.Nb.cd(a,new Ee(y,x))},ee.Kz=function(a,y){this.Nb.Gb(a,y)},ee.m=function(a,y,x){this.Nb.Gb(a,new Ee(y,x))},ee.ne=function(a){this.Nb.add(a)},ee.yf=function(a,y){this.Nb.add(new Ee(a,y))},ee.pv=function(a){this.Nb.mb(a)},ee.Fj=function(){this.Nb.clear()};function Qu(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,tt=new vn,et=a.Nb.iterator;et.next();){var nt=et.value;tt.add(new Ee(nt.x+y,nt.y+x).freeze())}tt.freeze(),et=a.Nb,a.Nb=tt,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),os(a)),b?Wm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&qf(nt.animationManager,a,tt),a.g("points",et,tt)}}ee.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ee.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,tt=a.s,et=tt.length,nt=0;nt<et;nt++){var ht=tt[nt];x=Math.min(ht.x,x),b=Math.min(ht.y,b)}ht=nt=1/0;for(var gt=y.s,bt=gt.length,Pt=0;Pt<bt;Pt++){var Nt=gt[Pt];nt=Math.min(Nt.x,nt),ht=Math.min(Nt.y,ht),Nt.freeze()}if(y.freeze(),bt===et){for(et=0;et<bt;et++)if(Pt=tt[et],Nt=gt[et],Pt.x-x!==Nt.x-nt||Pt.y-b!==Nt.y-ht){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&qf(x.animationManager,this,y),Wm(this),this.g("points",a,y)}},ee.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Wm(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),Xm(a,!1))}ee.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())}},ee.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()}}},cn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Sf||(Sf=new wn,Sf.desiredSize=ai,Sf.Va()),this.defaultFromPoint&&(Sf.location=this.defaultFromPoint,Sf.Va(),y=a=Sf)):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,tt=null;if(b===null?(wf||(wf=new wn,wf.desiredSize=ai,wf.Va()),this.defaultToPoint&&(wf.location=this.defaultToPoint,wf.Va(),tt=b=wf)):tt=this.toPort,tt===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,tt=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(tt===null||tt.actualBounds.w()&&tt.Ed());)tt=tt.panel;if(tt===null)return!1;var et=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,tt);var ht=Md(nt),gt=Md(x),bt=y===tt&&y!==null,Pt=this.isOrthogonal,Nt=this.curve===ia;this.Wf=bt&&!Pt?Nt=!0:!1;var zt=this.computeAdjusting()===us||bt;if(!Pt&&!bt&&ht&&gt){if(ht=!1,!zt&&3<=et&&(zt=this.getLinkPoint(a,y,nt,!0,!1,b,tt),gt=this.getLinkPoint(b,tt,x,!1,!1,a,y),ht=this.adjustPoints(0,zt,et-1,gt))&&(zt=this.getLinkPoint(a,y,nt,!0,!1,b,tt),gt=this.getLinkPoint(b,tt,x,!1,!1,a,y),this.adjustPoints(0,zt,et-1,gt)),!ht)if(this.Fj(),Nt){et=this.getLinkPoint(a,y,nt,!0,!1,b,tt),zt=this.getLinkPoint(b,tt,x,!1,!1,a,y),ht=zt.x-et.x,gt=zt.y-et.y,bt=this.computeCurviness(),Nt=Pt=0;var Vt=et.x+ht/3,Zt=et.y+gt/3,oe=Vt,Pe=Zt;Ge.B(gt,0)?Pe=0<ht?Pe-bt:Pe+bt:(Pt=-ht/gt,Nt=Math.sqrt(bt*bt/(Pt*Pt+1)),0>bt&&(Nt=-Nt),oe=(0>gt?-1:1)*Nt+Vt,Pe=Pt*(oe-Vt)+Zt),Vt=et.x+2*ht/3,Zt=et.y+2*gt/3;var de=Vt,Le=Zt;Ge.B(gt,0)?Le=0<ht?Le-bt:Le+bt:(de=(0>gt?-1:1)*Nt+Vt,Le=Pt*(de-Vt)+Zt),this.Fj(),this.ne(et),this.yf(oe,Pe),this.yf(de,Le),this.ne(zt),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,tt)),this.dd(3,this.getLinkPoint(b,tt,x,!1,!1,a,y))}else et=b,zt=tt,b=this.getLinkPoint(a,y,nt,!0,!1,et,zt),tt=this.getLinkPoint(et,zt,x,!1,!1,a,y),this.hasCurviness()?(zt=tt.x-b.x,x=tt.y-b.y,nt=this.computeCurviness(),a=b.x+zt/2,y=b.y+x/2,et=a,ht=y,Ge.B(x,0)?ht=0<zt?ht-nt:ht+nt:(zt=-zt/x,et=Math.sqrt(nt*nt/(zt*zt+1)),0>nt&&(et=-et),et=(0>x?-1:1)*et+a,ht=zt*(et-a)+y),this.ne(b),this.yf(et,ht),this.ne(tt)):(this.ne(b),this.ne(tt),ht=$e.alloc(),y.mi(ht),gt=ht.ca(tt),zt.mi(ht),bt=ht.ca(b),(gt||bt)&&(nt=y.ga(Ym(nt),new Ee),this.dd(0,this.getLinkPointFromPoint(a,y,nt,tt,!0,nt)),x=zt.ga(Ym(x),new Ee),this.dd(1,this.getLinkPointFromPoint(et,zt,x,b,!1,x))),$e.free(ht))}else{Nt=this.isAvoiding,zt&&(Pt&&Nt||bt)&&this.Fj();var Oe=bt?this.computeCurviness():0;Nt=this.getLinkPoint(a,y,nt,!0,Pt,b,tt),Vt=oe=Zt=0,(Pt||!ht||bt)&&(Pe=this.computeEndSegmentLength(a,y,nt,!0),Vt=this.getLinkDirection(a,y,Nt,nt,!0,Pt,b,tt),bt&&(ht||nt.D(x)||!Pt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Vt-=Pt?90:30,0>Oe&&(Vt-=180)),0>Vt?Vt+=360:360<=Vt&&(Vt-=360),bt&&(Pe+=Math.abs(Oe)*(Pt?1:2)),Vt===0?Zt=Pe:Vt===90?oe=Pe:Vt===180?Zt=-Pe:Vt===270?oe=-Pe:(Zt=Pe*Math.cos(Vt*Math.PI/180),oe=Pe*Math.sin(Vt*Math.PI/180)),nt.Mc()&&bt&&(Pe=y.ga(wi,Ee.alloc()),de=Ee.allocAt(Pe.x+1e3*Zt,Pe.y+1e3*oe),this.getLinkPointFromPoint(a,y,Pe,de,!0,Nt),Ee.free(Pe),Ee.free(de))),Pe=this.getLinkPoint(b,tt,x,!1,Pt,a,y);var De=Le=de=0;if(Pt||!gt||bt){var Re=this.computeEndSegmentLength(b,tt,x,!1);De=this.getLinkDirection(b,tt,Pe,x,!1,Pt,a,y),bt&&(gt||nt.D(x)||!Pt&&nt.x+x.x===1&&nt.y+x.y===1)&&(De+=Pt?0:30,0>Oe&&(De+=180)),0>De?De+=360:360<=De&&(De-=360),bt&&(Re+=Math.abs(Oe)*(Pt?1:2)),De===0?de=Re:De===90?Le=Re:De===180?de=-Re:De===270?Le=-Re:(de=Re*Math.cos(De*Math.PI/180),Le=Re*Math.sin(De*Math.PI/180)),x.Mc()&&bt&&(x=tt.ga(wi,Ee.alloc()),nt=Ee.allocAt(x.x+1e3*de,x.y+1e3*Le),this.getLinkPointFromPoint(b,tt,x,nt,!1,Pe),Ee.free(x),Ee.free(nt))}x=Nt,(Pt||!ht||bt)&&(x=new Ee(Nt.x+Zt,Nt.y+oe)),nt=Pe,(Pt||!gt||bt)&&(nt=new Ee(Pe.x+de,Pe.y+Le)),!zt&&!Pt&&ht&&3<et&&this.adjustPoints(0,Nt,et-2,nt)?this.dd(et-1,Pe):!zt&&!Pt&&gt&&3<et&&this.adjustPoints(1,x,et-1,Pe)?this.dd(0,Nt):!zt&&(Pt?6<=et:4<et)&&this.adjustPoints(1,x,et-2,nt)?(this.dd(0,Nt),this.dd(et-1,Pe)):(this.Fj(),this.ne(Nt),(Pt||!ht||bt)&&this.ne(x),Pt&&this.addOrthoPoints(x,Vt,nt,De,a,b),(Pt||!gt||bt)&&this.ne(nt),this.ne(Pe))}return!0};function Kv(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}cn.prototype.getLinkPointFromPoint=function(a,y,x,b,tt,et){if(et===void 0&&(et=new Ee),a===null||y===null)return et.assign(x),et;if(a.isVisible()||(tt=a.findVisibleNode(),tt!==null&&tt!==a&&(y=tt.port)),a=null,tt=y.panel,tt===null||tt.se()||(tt=tt.panel),tt===null){tt=b.x,b=b.y;var nt=x.x;x=x.y}else{a=tt.oe,tt=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*tt;var ht=-a.m12*tt,gt=-a.m21*tt,bt=a.m11*tt,Pt=tt*(a.m21*a.dy-a.m22*a.dx),Nt=tt*(a.m12*a.dx-a.m11*a.dy);tt=b.x*nt+b.y*gt+Pt,b=b.x*ht+b.y*bt+Nt,nt=x.x*nt+x.y*gt+Pt,x=x.x*ht+x.y*bt+Nt}return y.Sj(tt,b,nt,x,et),a!==null&&et.transform(a),et};function Vm(a,y){var x=y.Zn;return x===null&&(x=new xf,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}cn.prototype.getLinkPoint=function(a,y,x,b,tt,et,nt,ht){if(ht===void 0&&(ht=new Ee),x.sb()&&!Md(x))return y.ga(x,ht),ht;if(x.$c()){var gt=Vm(this,y);if(gt!==null){if(ht.assign(gt.Zo),tt&&this.routing===nS){var bt=Vm(this,nt);if(bt!==null&&gt.Gl<bt.Gl){gt=Ee.alloc(),bt=Ee.alloc();var Pt=new $e(y.ga(vo,gt),y.ga(qo,bt)),Nt=this.computeSpot(!b,nt);a=this.getLinkPoint(et,nt,Nt,!b,tt,a,y,bt),(x.Hf(ml)||x.Hf(As))&&a.y>=Pt.y&&a.y<=Pt.y+Pt.height?ht.y=a.y:(x.Hf(gl)||x.Hf(Ea))&&a.x>=Pt.x&&a.x<=Pt.x+Pt.width&&(ht.x=a.x),Ee.free(gt),Ee.free(bt)}}return ht}}return x=y.ga(Ym(x),Ee.alloc()),this.pointsCount>(tt?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),tt&&(nt=Kv(x,nt.copy()))):(gt=this.computeSpot(!b,nt),et=Ee.alloc(),nt=nt.ga(Ym(gt),et),tt&&(nt=Kv(x,nt)),Ee.free(et)),this.getLinkPointFromPoint(a,y,x,nt,b,ht),Ee.free(x),ht},cn.prototype.getLinkDirection=function(a,y,x,b,tt,et,nt,ht){t:if(b.sb())var gt=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()&&(gt=Vm(this,y),gt!==null))switch(gt.Nc){case 1:gt=270;break t;case 2:gt=180;break t;default:case 4:gt=0;break t;case 8:gt=90;break t}gt=y.ga(wi,Ee.alloc()),this.pointsCount>(et?6:2)?(ht=tt?this.i(1):this.i(this.pointsCount-2),ht=et?Kv(gt,ht.copy()):x):(x=Ee.alloc(),ht=ht.ga(wi,x),Ee.free(x)),x=Math.abs(ht.x-gt.x)>Math.abs(ht.y-gt.y)?ht.x>=gt.x?0:180:ht.y>=gt.y?90:270,Ee.free(gt),gt=x}return b.Mc()&&nt.Td(a)&&(gt+=180,360<=gt&&(gt-=360)),Md(b)||(a=y.li(),a===0)||(45<=a&&135>a?gt+=90:135<=a&&225>a?gt+=180:225<=a&&315>a&&(gt+=270),360<=gt&&(gt-=360)),gt},cn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Vm(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)},cn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=wi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===oo?$r:y)):(a=y||this.toPort,a===null?a=wi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===oo?$r:y)),a};function Md(a){return a===$r||a.x===.5&&a.y===.5}function Ym(a){return a.x===.5&&a.y===.5?a:wi}cn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==us&&4<this.pointsCount?this.computeMidPoint(new Ee):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(wi))},cn.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},cn.prototype.Cf=function(a,y,x,b,tt,et){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=et;if(et===void 0&&(nt=Xn.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,tt),et===void 0&&Xn.free(nt),!0;if(this.Yc(a,nt)){var ht=!1;if(!this.isAtomic)for(var gt=this.O.s,bt=gt.length;bt--;){var Pt=gt[bt];if(Pt.visible||Pt===this.locationObject){var Nt=Pt.actualBounds,zt=this.naturalBounds;if(!(Nt.x>zt.width||Nt.y>zt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height)){if(Nt=Xn.alloc(),Nt.set(nt),Pt instanceof un)ht=Pt.Cf(a,y,x,b,tt,Nt);else if(this.path===Pt){if(Pt instanceof Wn)if(ht=a,zt=b,Pt.pickable===!1)ht=!1;else if(Nt.multiply(Pt.transform),zt)t:{var Vt=ht,Zt=Nt;if(Pt.fh(Vt,Zt))ht=!0;else{if(Zt===void 0&&(Zt=Pt.transform,Vt.Re(Pt.actualBounds))){ht=!0;break t}ht=Vt.left,zt=Vt.right;var oe=Vt.top;Vt=Vt.bottom;var Pe=Ee.alloc(),de=Ee.alloc(),Le=Ee.alloc(),Oe=Xn.alloc();Oe.set(Zt),Oe.bv(Pt.transform),Oe.Vj(),de.x=zt,de.y=oe,de.transform(Oe),Pe.x=ht,Pe.y=oe,Pe.transform(Oe),Zt=!1,kc(Pt,Pe,de,Le)?Zt=!0:(Pe.x=zt,Pe.y=Vt,Pe.transform(Oe),kc(Pt,Pe,de,Le)?Zt=!0:(de.x=ht,de.y=Vt,de.transform(Oe),kc(Pt,Pe,de,Le)?Zt=!0:(Pe.x=ht,Pe.y=oe,Pe.transform(Oe),kc(Pt,Pe,de,Le)&&(Zt=!0)))),Xn.free(Oe),Ee.free(Pe),Ee.free(de),Ee.free(Le),ht=Zt}}else ht=Pt.fh(ht,Nt)}else ht=no(Pt,a,b,Nt);ht&&(zt=Pt,y!==null&&(zt=y(Pt)),zt&&(x===null||x(zt))&&tt.add(zt)),Xn.free(Nt)}}}return et===void 0&&Xn.free(nt),ht||this.background!==null||this.areaBackground!==null}return et===void 0&&Xn.free(nt),!1},cn.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?ia:this.curve},cn.prototype.computeCorner=function(){if(this.curve===ia)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},cn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b];if(tt!==a&&!tt.isPanelMain&&(tt.segmentIndex===-1/0||isNaN(tt.segmentIndex)))return tt}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},cn.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 tt=b.naturalBounds,et=b.margin,nt=isNaN(tt.width)?30:tt.width*b.scale+et.left+et.right;tt=isNaN(tt.height)?14:tt.height*b.scale+et.top+et.bottom,b=b.segmentOrientation,b===Jp||b===Jm||b===qv?a=Math.max(a,tt):b===$p||b===eg||b===qp||b===tg?a=Math.max(a,nt):(y=y.ga(wi).ab(x.ga(wi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*tt)+1)),this.curve===ia&&(a*=1.333)}}return a},cn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===us&&x.bb()}},cn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=iS;var y=this.Sf;if(y!==null){for(var x=oi(),b=0,tt=y.links,et=0;et<tt.length;et++){var nt=tt[et].computeSpacing();x.push(nt),b+=nt}for(b=-b/2,et=0;et<tt.length;et++){if(tt[et]===this){a=b+x[et]/2;break}b+=x[et]}y.Ds===this.fromNode&&(a=-a),ri(x)}}return a},cn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},cn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},cn.prototype.adjustPoints=function(a,y,x,b){var tt=this.computeAdjusting();if(this.isOrthogonal){if(tt===Zm)return!1;tt===Qm&&(tt=Qp)}switch(tt){case Zm:var et=this.i(a),nt=this.i(x);if(!et.Xa(y)||!nt.Xa(b)){tt=et.x,et=et.y;var ht=nt.x-tt,gt=nt.y-et,bt=Math.sqrt(ht*ht+gt*gt);if(!Ge.$(bt,0)){if(Ge.$(ht,0))var Pt=0>gt?-Math.PI/2:Math.PI/2;else Pt=Math.atan(gt/Math.abs(ht)),0>ht&&(Pt=Math.PI-Pt);nt=y.x;var Nt=y.y;ht=b.x-nt;var zt=b.y-Nt;for(gt=Math.sqrt(ht*ht+zt*zt),Ge.$(ht,0)?zt=0>zt?-Math.PI/2:Math.PI/2:(zt=Math.atan(zt/Math.abs(ht)),0>ht&&(zt=Math.PI-zt)),bt=gt/bt,Pt=zt-Pt,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ht=y.x-tt,gt=y.y-et,y=Math.sqrt(ht*ht+gt*gt),Ge.$(y,0)||(Ge.$(ht,0)?gt=0>gt?-Math.PI/2:Math.PI/2:(gt=Math.atan(gt/Math.abs(ht)),0>ht&&(gt=Math.PI-gt)),ht=gt+Pt,y*=bt,this.L(a,nt+y*Math.cos(ht),Nt+y*Math.sin(ht)));this.dd(x,b)}}return!0;case Qm:if(et=this.i(a),Nt=this.i(x),!et.Xa(y)||!Nt.Xa(b)){tt=et.x,et=et.y,nt=Nt.x,Nt=Nt.y,bt=(nt-tt)*(nt-tt)+(Nt-et)*(Nt-et),ht=y.x,Pt=y.y,gt=b.x,zt=b.y;var Vt=1;if(gt-ht!==0){var Zt=(zt-Pt)/(gt-ht);Vt=Math.sqrt(1+1/(Zt*Zt))}else Zt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var oe=y.x,Pe=y.y,de=.5;bt!==0&&(de=((tt-oe)*(tt-nt)+(et-Pe)*(et-Nt))/bt);var Le=tt+de*(nt-tt),Oe=et+de*(Nt-et);y=Math.sqrt((oe-Le)*(oe-Le)+(Pe-Oe)*(Pe-Oe)),Pe<Zt*(oe-Le)+Oe&&(y=-y),0<Zt&&(y=-y),oe=ht+de*(gt-ht),de=Pt+de*(zt-Pt),Zt!==0?(y=oe+y/Vt,this.L(a,y,de-(y-oe)/Zt)):this.L(a,oe,de+y)}this.dd(x,b)}return!0;case Qp:t:{if(this.isOrthogonal&&(tt=this.i(a),et=this.i(a+1),nt=this.i(a+2),ht=et.x,Pt=et.y,Nt=ht,bt=Pt,Ge.B(tt.y,et.y)?Ge.B(et.x,nt.x)?Pt=y.y:Ge.B(et.y,nt.y)&&(ht=y.x):Ge.B(tt.x,et.x)&&(Ge.B(et.y,nt.y)?ht=y.x:Ge.B(et.x,nt.x)&&(Pt=y.y)),this.L(a+1,ht,Pt),tt=this.i(x),et=this.i(x-1),nt=this.i(x-2),ht=et.x,Pt=et.y,gt=ht,zt=Pt,Ge.B(tt.y,et.y)?Ge.B(et.x,nt.x)?Pt=b.y:Ge.B(et.y,nt.y)&&(ht=b.x):Ge.B(tt.x,et.x)&&(Ge.B(et.y,nt.y)?ht=b.x:Ge.B(et.x,nt.x)&&(Pt=b.y)),this.L(x-1,ht,Pt),Xv(this))){this.L(a+1,Nt,bt),this.L(x-1,gt,zt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},cn.prototype.addOrthoPoints=function(a,y,x,b,tt,et){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 ht=tt.actualBounds.copy(),gt=et.actualBounds.copy();if(ht.w()&&gt.w()){ht.Bc(ng,ng),gt.Bc(ng,ng),ht.Ye(a),gt.Ye(x);var bt=Ee.alloc(),Pt=Ee.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&gt.right>a.x||b===90&&x.y>a.y&&gt.right>a.x?(bt.h(x.x,a.y),Pt.h(x.x,(a.y+x.y)/2),b===180?(bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Pt.x=bt.x,Pt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(bt.x=a.x<gt.left?this.computeMidOrthoPosition(a.x,a.y,gt.left,x.y,!1):a.x<gt.right&&(b===270&&a.y<gt.top||b===90&&a.y>gt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):gt.right,Pt.x=bt.x,Pt.y=x.y):b===0&&a.x<gt.left&&a.y>gt.top&&a.y<gt.bottom&&(bt.x=a.x,bt.y=a.y<x.y?Math.min(x.y,gt.top):Math.max(x.y,gt.bottom),Pt.y=bt.y)):(bt.h(a.x,x.y),Pt.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ht.top||b===270&&x.y>ht.bottom)&&(b===180&&(gt.ca(a)||ht.ca(x))?bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?bt.y=this.computeMidOrthoPosition(a.x,ht.top,x.x,Math.max(x.y,gt.bottom),!0):x.y>a.y&&(b===180||b===270)&&(bt.y=this.computeMidOrthoPosition(a.x,ht.bottom,x.x,Math.min(x.y,gt.top),!0)),Pt.x=x.x,Pt.y=bt.y),bt.y>ht.top&&bt.y<ht.bottom&&(x.x>=ht.left&&x.x<=a.x||a.x<=gt.right&&a.x>=x.x?(b===90||b===270)&&(bt.h(Math.max((a.x+x.x)/2,a.x),a.y),Pt.h(bt.x,x.y)):(bt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ht.top:Math.min(ht.top,gt.top)):Math.max(x.y,b===0?ht.bottom:Math.max(ht.bottom,gt.bottom)),Pt.x=x.x,Pt.y=bt.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&gt.left<a.x||b===90&&x.y>a.y&&gt.left<a.x?(bt.h(x.x,a.y),Pt.h(x.x,(a.y+x.y)/2),b===0?(bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Pt.x=bt.x,Pt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(bt.x=a.x>gt.right?this.computeMidOrthoPosition(a.x,a.y,gt.right,x.y,!1):a.x>gt.left&&(b===270&&a.y<gt.top||b===90&&a.y>gt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):gt.left,Pt.x=bt.x,Pt.y=x.y):b===180&&a.x>gt.right&&a.y>gt.top&&a.y<gt.bottom&&(bt.x=a.x,bt.y=a.y<x.y?Math.min(x.y,gt.top):Math.max(x.y,gt.bottom),Pt.y=bt.y)):(bt.h(a.x,x.y),Pt.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ht.top||b===270&&x.y>ht.bottom)&&(b===0&&(gt.ca(a)||ht.ca(x))?bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?bt.y=this.computeMidOrthoPosition(a.x,ht.top,x.x,Math.max(x.y,gt.bottom),!0):x.y>a.y&&(b===0||b===270)&&(bt.y=this.computeMidOrthoPosition(a.x,ht.bottom,x.x,Math.min(x.y,gt.top),!0)),Pt.x=x.x,Pt.y=bt.y),bt.y>ht.top&&bt.y<ht.bottom&&(x.x<=ht.right&&x.x>=a.x||a.x>=gt.left&&a.x<=x.x?(b===90||b===270)&&(bt.h(Math.min((a.x+x.x)/2,a.x),a.y),Pt.h(bt.x,x.y)):(bt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ht.top:Math.min(ht.top,gt.top)):Math.max(x.y,b===180?ht.bottom:Math.max(ht.bottom,gt.bottom)),Pt.x=x.x,Pt.y=bt.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&gt.bottom>a.y||b===0&&x.x>a.x&&gt.bottom>a.y?(bt.h(a.x,x.y),Pt.h((a.x+x.x)/2,x.y),b===270?(bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Pt.x=x.x,Pt.y=bt.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(bt.y=a.y<gt.top?this.computeMidOrthoPosition(a.x,a.y,x.x,gt.top,!0):a.y<gt.bottom&&(b===180&&a.x<gt.left||b===0&&a.x>gt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):gt.bottom,Pt.x=x.x,Pt.y=bt.y):b===90&&a.y<gt.top&&a.x>gt.left&&a.x<gt.right&&(bt.x=a.x<x.x?Math.min(x.x,gt.left):Math.max(x.x,gt.right),bt.y=a.y,Pt.x=bt.x)):(bt.h(x.x,a.y),Pt.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ht.left||b===180&&x.x>ht.right)&&(b===270&&(gt.ca(a)||ht.ca(x))?bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?bt.x=this.computeMidOrthoPosition(ht.left,a.y,Math.max(x.x,gt.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(bt.x=this.computeMidOrthoPosition(ht.right,a.y,Math.min(x.x,gt.left),x.y,!1)),Pt.x=bt.x,Pt.y=x.y),bt.x>ht.left&&bt.x<ht.right&&(x.y>=ht.top&&x.y<=a.y||a.y<=gt.bottom&&a.y>=x.y?(b===0||b===180)&&(bt.h(a.x,Math.max((a.y+x.y)/2,a.y)),Pt.h(x.x,bt.y)):(bt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ht.left:Math.min(ht.left,gt.left)):Math.max(x.x,b===90?ht.right:Math.max(ht.right,gt.right)),Pt.x=bt.x,Pt.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&gt.top<a.y||b===0&&x.x>a.x&&gt.top<a.y?(bt.h(a.x,x.y),Pt.h((a.x+x.x)/2,x.y),b===90?(bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Pt.x=x.x,Pt.y=bt.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(bt.y=a.y>gt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,gt.bottom,!0):a.y>gt.top&&(b===180&&a.x<gt.left||b===0&&a.x>gt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):gt.top,Pt.x=x.x,Pt.y=bt.y):b===270&&a.y>gt.bottom&&a.x>gt.left&&a.x<gt.right&&(bt.x=a.x<x.x?Math.min(x.x,gt.left):Math.max(x.x,gt.right),bt.y=a.y,Pt.x=bt.x)):(bt.h(x.x,a.y),Pt.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ht.left||b===180&&x.x>ht.right)&&(b===90&&(gt.ca(a)||ht.ca(x))?bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?bt.x=this.computeMidOrthoPosition(ht.left,a.y,Math.max(x.x,gt.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(bt.x=this.computeMidOrthoPosition(ht.right,a.y,Math.min(x.x,gt.left),x.y,!1)),Pt.x=bt.x,Pt.y=x.y),bt.x>ht.left&&bt.x<ht.right&&(x.y<=ht.bottom&&x.y>=a.y||a.y>=gt.top&&a.y<=x.y?(b===0||b===180)&&(bt.h(a.x,Math.min((a.y+x.y)/2,a.y)),Pt.h(x.x,bt.y)):(bt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ht.left:Math.min(ht.left,gt.left)):Math.max(x.x,b===270?ht.right:Math.max(ht.right,gt.right)),Pt.x=bt.x,Pt.y=x.y)));var Nt=x;if(this.isAvoiding){var zt=this.diagram;if(zt===null||tt===et||this.layer.isTemporary||!ad(zt)||ht.ca(Nt)&&!et.Td(tt)||gt.ca(a)&&!tt.Td(et))y=!1;else{var Vt=ld(zt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Vt.Yj(Math.min(a.x,bt.x),Math.min(a.y,bt.y),Math.abs(a.x-bt.x),Math.abs(a.y-bt.y))&&Vt.Yj(Math.min(bt.x,Pt.x),Math.min(bt.y,Pt.y),Math.abs(bt.x-Pt.x),Math.abs(bt.y-Pt.y))&&Vt.Yj(Math.min(Pt.x,Nt.x),Math.min(Pt.y,Nt.y),Math.abs(Pt.x-Nt.x),Math.abs(Pt.y-Nt.y)))y=!1;else{tt=a,et=Nt;var Zt=x=null;if(zt.isVirtualized){zt=Vt.bounds.copy(),zt.Bc(-Vt.Ho,-Vt.Go);var oe=Ee.alloc();Ld(Vt,a.x,a.y)||(Ge.Ff(zt.x,zt.y,zt.x+zt.width,zt.y+zt.height,a.x,a.y,bt.x,bt.y,oe)?(x=a=oe.copy(),y=oe.ab(bt)):Ge.Ff(zt.x,zt.y,zt.x+zt.width,zt.y+zt.height,bt.x,bt.y,Pt.x,Pt.y,oe)?(x=a=oe.copy(),y=oe.ab(Pt)):Ge.Ff(zt.x,zt.y,zt.x+zt.width,zt.y+zt.height,Pt.x,Pt.y,Nt.x,Nt.y,oe)&&(x=a=oe.copy(),y=oe.ab(Nt))),Ld(Vt,Nt.x,Nt.y)||(Ge.Ff(zt.x,zt.y,zt.x+zt.width,zt.y+zt.height,Nt.x,Nt.y,Pt.x,Pt.y,oe)?(Zt=Nt=oe.copy(),b=Pt.ab(oe)):Ge.Ff(zt.x,zt.y,zt.x+zt.width,zt.y+zt.height,Pt.x,Pt.y,bt.x,bt.y,oe)?(Zt=Nt=oe.copy(),b=bt.ab(oe)):Ge.Ff(zt.x,zt.y,zt.x+zt.width,zt.y+zt.height,bt.x,bt.y,a.x,a.y,oe)&&(Zt=Nt=oe.copy(),b=a.ab(oe))),Ee.free(oe)}ht=ht.copy().ed(gt),ht.Bc(Vt.Ho*Vt.Os,Vt.Go*Vt.Os),sS(Vt,a,y,Nt,b,ht,!0),gt=Wl(Vt,Nt.x,Nt.y),!Vt.abort&&gt>=Td&&(oS(Vt),ht.Bc(Vt.Ho*Vt.Hx,Vt.Go*Vt.Ix),sS(Vt,a,y,Nt,b,ht,!1),gt=Wl(Vt,Nt.x,Nt.y)),!Vt.abort&&gt<Td&&Wl(Vt,Nt.x,Nt.y)!==qu?(Zv(this,Vt,Nt.x,Nt.y,b,!0,nt),ht=this.i(2),4>this.pointsCount?(y===0||y===180?(ht.x=a.x,ht.y=Nt.y):(ht.x=Nt.x,ht.y=a.y),this.L(2,ht.x,ht.y),this.m(3,ht.x,ht.y)):(nt=this.i(3),y===0||y===180?Ge.B(ht.x,nt.x)?(ht=y===0?Math.max(ht.x,a.x):Math.min(ht.x,a.x),this.L(2,ht,a.y),this.L(3,ht,nt.y)):Ge.B(ht.y,nt.y)?(Math.abs(a.y-ht.y)<=Vt.Go/2&&(this.L(2,ht.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ht.x,a.y)):this.L(2,a.x,ht.y):(y===90||y===270)&&(Ge.B(ht.y,nt.y)?(ht=y===90?Math.max(ht.y,a.y):Math.min(ht.y,a.y),this.L(2,a.x,ht),this.L(3,nt.x,ht)):Ge.B(ht.x,nt.x)?(Math.abs(a.x-ht.x)<=Vt.Ho/2&&(this.L(2,a.x,ht.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ht.y)):this.L(2,ht.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,tt.x,x.y):this.m(2,x.x,tt.y)),Zt!==null&&(b===0||b===180?this.yf(et.x,Zt.y):this.yf(Zt.x,et.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(bt.copy()),this.ne(Pt.copy())),Ee.free(bt),Ee.free(Pt)}},cn.prototype.computeMidOrthoPosition=function(a,y,x,b,tt){var et=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(et=this.computeCurviness()),tt?(y+b)/2+et:(a+x)/2+et};function Xv(a){if(a.diagram===null||!a.isAvoiding||!ad(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=ld(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var tt=y[b],et=y[b+1];if(!a.Yj(Math.min(tt.x,et.x),Math.min(tt.y,et.y),Math.abs(tt.x-et.x),Math.abs(tt.y-et.y)))return!0}return!1}function Zv(a,y,x,b,tt,et,nt){var ht=y.Ho,gt=y.Go,bt=Wl(y,x,b),Pt=x,Nt=b;for(tt===0?Pt+=ht:tt===90?Nt+=gt:tt===180?Pt-=ht:Nt-=gt,tt!==nt&&bt>_c&&Wl(y,Pt,Nt)!==bt-1&&(Wl(y,x-ht,b)===bt-1?(tt=180,Pt=x-ht,Nt=b):Wl(y,x+ht,b)===bt-1?(tt=0,Pt=x+ht,Nt=b):Wl(y,x,b-gt)===bt-1?(tt=270,Pt=x,Nt=b-gt):Wl(y,x,b+gt)===bt-1&&(tt=90,Pt=x,Nt=b+gt));bt>_c&&Wl(y,Pt,Nt)===bt-1;)x=Pt,b=Nt,tt===0?Pt+=ht:tt===90?Nt+=gt:tt===180?Pt-=ht:Nt-=gt,--bt;et?bt>_c&&(tt===180||tt===0?x=Math.floor(x/ht)*ht+ht/2:(tt===90||tt===270)&&(b=Math.floor(b/gt)*gt+gt/2)):(x=Math.floor(x/ht)*ht+ht/2,b=Math.floor(b/gt)*gt+gt/2),bt>_c&&(et=tt,nt=x,Pt=b,tt===0?(et=90,Pt+=gt):tt===90?(et=180,nt-=ht):tt===180?(et=270,Pt-=gt):tt===270&&(et=0,nt+=ht),Wl(y,nt,Pt)===bt-1?Zv(a,y,nt,Pt,et,!1,et):(nt=x,Pt=b,tt===0?(et=270,Pt-=gt):tt===90?(et=0,nt+=ht):tt===180?(et=90,Pt+=gt):tt===270&&(et=180,nt-=ht),Wl(y,nt,Pt)===bt-1&&Zv(a,y,nt,Pt,et,!1,et))),a.yf(x,b)}cn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),tt=Zr(y,a,x.x,x.y,b.x,b.y),et=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var ht=Zr(y,a,b.x,b.y,x.x,x.y);b=x,ht<tt&&(et=nt,tt=ht)}return et},cn.prototype.qc=function(){this.lk=!1,this.v()},cn.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 tt=y[b];tt!==a&&tt.isPanelMain&&tt instanceof Wn&&(tt.ua=this.ua)}}},cn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Tc(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var tt=this.i(0).copy(),et=tt.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===ia&&3<=y&&!Ge.$(this.smoothness,0))if(y===3){var ht=this.i(1);b=Math.min(tt.x,ht.x);var gt=Math.min(tt.y,ht.y);ht=this.i(2),b=Math.min(b,ht.x),gt=Math.min(gt,ht.y)}else{if(this.isOrthogonal)for(gt=0;gt<y;gt++)ht=b[gt],et.x=Math.min(ht.x,et.x),et.y=Math.min(ht.y,et.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),gt=this.i(b),et.x=Math.min(gt.x,et.x),et.y=Math.min(gt.y,et.y);b=et.x,gt=et.y}else{for(gt=0;gt<y;gt++)ht=b[gt],et.x=Math.min(ht.x,et.x),et.y=Math.min(ht.y,et.y);b=et.x,gt=et.y}if(b-=this.su.x,gt-=this.su.y,tt.x-=b,tt.y-=gt,y!==2||Tc(this)){if(a.type=pn.o,ht=_1(a),this.computeShortLength(!0)!==0&&(tt=vf(this,tt,!0,et)),Ed(ht,tt.x,tt.y,!1),nt===ia&&3<=y&&!Ge.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-gt,tt=this.i(2).copy(),tt.x-=b,tt.y-=gt,this.computeShortLength(!1)!==0&&(tt=vf(this,tt,!1,et)),Ku(ht,y,x,y,x,tt.x,tt.y);else if(this.isOrthogonal){y=Ee.allocAt(b,gt),x=Ee.alloc(),x.assign(this.i(1)),et=Ee.allocAt(b,gt),tt=Ee.allocAt(b,gt),nt=this.i(0);for(var bt,Pt=this.smoothness/3,Nt=1;Nt<this.pointsCount-1;Nt++){bt=this.i(Nt);var zt=nt,Vt=bt,Zt=this.i(Qv(this,bt,Nt,!1));if((!Ge.$(zt.x,Vt.x)||!Ge.$(Vt.x,Zt.x))&&(!Ge.$(zt.y,Vt.y)||!Ge.$(Vt.y,Zt.y))){var oe=Pt;isNaN(oe)&&(oe=this.smoothness/3);var Pe=zt.x;zt=zt.y;var de=Vt.x;Vt=Vt.y;var Le=Zt.x;Zt=Zt.y;var Oe=oe*Km(Pe,zt,de,Vt);oe*=Km(de,Vt,Le,Zt),Ge.$(zt,Vt)&&Ge.$(de,Le)&&(de>Pe?Zt>Vt?(et.x=de-Oe,et.y=Vt-Oe,tt.x=de+oe,tt.y=Vt+oe):(et.x=de-Oe,et.y=Vt+Oe,tt.x=de+oe,tt.y=Vt-oe):Zt>Vt?(et.x=de+Oe,et.y=Vt-Oe,tt.x=de-oe,tt.y=Vt+oe):(et.x=de+Oe,et.y=Vt+Oe,tt.x=de-oe,tt.y=Vt-oe)),Ge.$(Pe,de)&&Ge.$(Vt,Zt)&&(Vt>zt?(Le>de?(et.x=de-Oe,et.y=Vt-Oe,tt.x=de+oe):(et.x=de+Oe,et.y=Vt-Oe,tt.x=de-oe),tt.y=Vt+oe):(Le>de?(et.x=de-Oe,et.y=Vt+Oe,tt.x=de+oe):(et.x=de+Oe,et.y=Vt+Oe,tt.x=de-oe),tt.y=Vt-oe)),(Ge.$(Pe,de)&&Ge.$(de,Le)||Ge.$(zt,Vt)&&Ge.$(Vt,Zt))&&(Pe=.5*(Pe+Le),zt=.5*(zt+Zt),et.x=Pe,et.y=zt,tt.x=Pe,tt.y=zt),(Nt===1||Nt===2&&Ge.$(nt.x,this.i(0).x)&&Ge.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+bt.x),x.y=.5*(nt.y+bt.y)),Ku(ht,x.x-b,x.y-gt,et.x-b,et.y-gt,bt.x-b,bt.y-gt),y.set(et),x.set(tt),nt=bt}}bt=nt.x,nt=nt.y,Pt=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(Pt=vf(this,Pt.copy(),!1,jo)),bt=.5*(bt+Pt.x),nt=.5*(nt+Pt.y),Ku(ht,tt.x-b,tt.y-gt,bt-b,nt-gt,Pt.x-b,Pt.y-gt),Ee.free(y),Ee.free(x),Ee.free(et),Ee.free(tt)}else for(x=3;x<y;x+=3)et=this.i(x-2),x+3>=y&&(x=y-1),tt=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=vf(this,nt.copy(),!1,jo)),Ku(ht,et.x-b,et.y-gt,tt.x-b,tt.y-gt,nt.x-b,nt.y-gt);else{for(et=Ee.alloc(),et.assign(this.i(0)),tt=Ee.alloc(),tt.assign(et),nt=this.computeCorner(),Nt=1,bt=0;Nt<y;){if(Nt=Qv(this,et,Nt,1<Nt),Pt=this.i(Nt),Nt>=y-1){if(!et.D(Pt))this.computeShortLength(!1)!==0&&(Pt=vf(this,Pt.copy(),!1,jo)),yf(this,ht,-b,-gt,et,Pt,x);else if(bt===0)for(Nt=1;Nt<y;)tt.assign(et),Pt=this.i(Nt++),yf(this,ht,-b,-gt,et,Pt,x),et.assign(Pt);break}if(bt=Qv(this,Pt,Nt+1,Nt<y-3),Nt=-b,Pe=-gt,zt=Pt,de=this.i(bt),oe=x,Ge.B(et.y,zt.y)&&Ge.B(zt.x,de.x))if(Zt=Math.min(nt,Math.abs(zt.x-tt.x)/2),Zt=Oe=Math.min(Zt,Math.abs(de.y-zt.y)/2),Ge.B(Zt,0))yf(this,ht,Nt,Pe,et,zt,oe),et.assign(zt);else{var De=zt.x,Re=zt.y;Vt=De,Le=Re,zt.x>et.x?De=zt.x-Zt:De=zt.x+Zt,de.y>zt.y?Le=zt.y+Oe:Le=zt.y-Oe,de=Ee.allocAt(De,Re),yf(this,ht,Nt,Pe,et,de,oe),Ee.free(de),Fm(ht,zt.x+Nt,zt.y+Pe,Vt+Nt,Le+Pe),et.h(Vt,Le)}else Ge.B(et.x,zt.x)&&Ge.B(zt.y,de.y)?(Zt=Math.min(nt,Math.abs(zt.y-tt.y)/2),Zt=Oe=Math.min(Zt,Math.abs(de.x-zt.x)/2),Ge.B(Oe,0)?(yf(this,ht,Nt,Pe,et,zt,oe),et.assign(zt)):(De=zt.x,Re=zt.y,Vt=De,Le=Re,zt.y>et.y?Re=zt.y-Zt:Re=zt.y+Zt,de.x>zt.x?Vt=zt.x+Oe:Vt=zt.x-Oe,de=Ee.allocAt(De,Re),yf(this,ht,Nt,Pe,et,de,oe),Ee.free(de),Fm(ht,zt.x+Nt,zt.y+Pe,Vt+Nt,Le+Pe),et.h(Vt,Le))):(yf(this,ht,Nt,Pe,et,zt,oe),et.assign(zt));tt.assign(Pt),Nt=bt}Ee.free(et)}Bm=ht}else ht=this.i(1).copy(),ht.x-=b,ht.y-=gt,this.computeShortLength(!0)!==0&&(tt=vf(this,tt,!0,et)),this.computeShortLength(!1)!==0&&(ht=vf(this,ht,!1,et)),a.type=pn.j,a.startX=tt.x,a.startY=tt.y,a.endX=ht.x,a.endY=ht.y;return this.lk=!0,a};function Km(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),Ge.$(a,0)?y:Ge.$(y,0)?a:Math.sqrt(a*a+y*y)))}function vf(a,y,x,b){var tt=a.pointsCount;if(2>tt)return y;if(x){var et=a.i(1);if(x=et.x-b.x,et=et.y-b.y,b=Km(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!0),a>tt&&(a=tt),tt=a*(et-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=tt}else{if(et=a.i(tt-2),x=et.x-b.x,et=et.y-b.y,b=Km(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!1),a>tt&&(a=tt),tt=a*(y.y-et)/b,y.x-=a*(y.x-x)/b,y.y-=tt}return y}function Qv(a,y,x,b){for(var tt=a.pointsCount,et=y;Ge.$(y.x,et.x)&&Ge.$(y.y,et.y);){if(x>=tt)return tt-1;et=a.i(x++)}if(!Ge.$(y.x,et.x)&&!Ge.$(y.y,et.y))return x-1;for(var nt=et;Ge.$(y.x,et.x)&&Ge.$(et.x,nt.x)&&(!b||(y.y>=et.y?et.y>=nt.y:et.y<=nt.y))||Ge.$(y.y,et.y)&&Ge.$(et.y,nt.y)&&(!b||(y.x>=et.x?et.x>=nt.x:et.x<=nt.x));){if(x>=tt)return tt-1;nt=a.i(x++)}return x-2}cn.prototype.computeJumpLength=function(){return 10};function yf(a,y,x,b,tt,et,nt){if(!nt&&Tc(a)){nt=a.computeJumpLength();var ht=nt/2,gt=[],bt=0;if(a.isVisible()&&(bt=Aw(a,tt,et,gt)),0<bt){if(Ge.B(tt.y,et.y))if(tt.x<et.x)for(var Pt=0;Pt<bt;){var Nt=Math.max(tt.x,Math.min(gt[Pt++]-ht,et.x-nt));y.lineTo(Nt+x,et.y+b);for(var zt=Nt+x,Vt=Math.min(Nt+nt,et.x);Pt<bt&&(Nt=gt[Pt],Nt<Vt+nt);)Pt++,Vt=Math.min(Nt+ht,et.x);Nt=et.y-nt+b,Vt+=x;var Zt=et.y+b;a.curve===Ju?Ed(y,Vt,Zt,!1):Ku(y,zt,Nt,Vt,Nt,Vt,Zt)}else for(--bt;0<=bt;){for(Pt=Math.min(tt.x,Math.max(gt[bt--]+ht,et.x+nt)),y.lineTo(Pt+x,et.y+b),zt=Pt+x,Nt=Math.max(Pt-nt,et.x);0<=bt&&(Pt=gt[bt],Pt>Nt-nt);)bt--,Nt=Math.max(Pt-ht,et.x);Pt=et.y-nt+b,Nt+=x,Vt=et.y+b,a.curve===Ju?Ed(y,Nt,Vt,!1):Ku(y,zt,Pt,Nt,Pt,Nt,Vt)}else if(Ge.B(tt.x,et.x))if(tt.y<et.y)for(Pt=0;Pt<bt;){for(Nt=Math.max(tt.y,Math.min(gt[Pt++]-ht,et.y-nt)),y.lineTo(et.x+x,Nt+b),zt=Nt+b,Nt=Math.min(Nt+nt,et.y);Pt<bt&&(Vt=gt[Pt],Vt<Nt+nt);)Pt++,Nt=Math.min(Vt+ht,et.y);Vt=et.x-nt+x,Zt=et.x+x,Nt+=b,a.curve===Ju?Ed(y,Zt,Nt,!1):Ku(y,Vt,zt,Vt,Nt,Zt,Nt)}else for(--bt;0<=bt;){for(Pt=Math.min(tt.y,Math.max(gt[bt--]+ht,et.y+nt)),y.lineTo(et.x+x,Pt+b),zt=Pt+b,Pt=Math.max(Pt-nt,et.y);0<=bt&&(Nt=gt[bt],Nt>Pt-nt);)bt--,Pt=Math.max(Nt-ht,et.y);Nt=et.x-nt+x,Vt=et.x+x,Pt+=b,a.curve===Ju?Ed(y,Vt,Pt,!1):Ku(y,Nt,zt,Nt,Pt,Vt,Pt)}}}y.lineTo(et.x+x,et.y+b)}function Aw(a,y,x,b){var tt=a.diagram;if(tt===null||y.D(x))return 0;for(tt=tt.layers;tt.next();){var et=tt.value;if(et!==null&&et.visible){et=et.Pa.s;for(var nt=et.length,ht=0;ht<nt;ht++){var gt=et[ht];if(gt instanceof cn){if(gt===a)return 0<b.length&&b.sort(function(Pt,Nt){return Pt-Nt}),b.length;if(gt.isVisible()&&Tc(gt)){var bt=gt.routeBounds;bt.w()&&a.routeBounds.Yc(bt)&&!a.usesSamePort(gt)&&(bt=gt.path,bt!==null&&bt.Ed()&&Mw(y,x,b,gt))}}}}}return 0<b.length&&b.sort(function(Pt,Nt){return Pt-Nt}),b.length}function Mw(a,y,x,b){for(var tt=Ge.B(a.y,y.y),et=b.pointsCount,nt=b.i(0),ht=Ee.alloc(),gt=1;gt<et;gt++){var bt=b.i(gt);if(gt<et-1){var Pt=b.i(gt+1);if(nt.y===bt.y&&bt.y===Pt.y){if(bt.x>nt.x&&Pt.x>=bt.x||bt.x<nt.x&&Pt.x<=bt.x)continue}else if(nt.x===bt.x&&bt.x===Pt.x&&(bt.y>nt.y&&Pt.y>=bt.y||bt.y<nt.y&&Pt.y<=bt.y))continue}t:{Pt=a.x;var Nt=a.y,zt=y.x,Vt=y.y,Zt=nt.x;nt=nt.y;var oe=bt.x,Pe=bt.y;if(Ge.B(Pt,zt)){if(!Ge.B(Nt,Vt)&&Ge.B(nt,Pe)&&Math.min(Nt,Vt)<nt&&Math.max(Nt,Vt)>nt&&Math.min(Zt,oe)<Pt&&Math.max(Zt,oe)>Pt&&!Ge.B(Zt,oe)){ht.x=Pt,ht.y=nt,Pt=!0;break t}}else if(Ge.B(Nt,Vt)&&Ge.B(Zt,oe)&&Math.min(Pt,zt)<Zt&&Math.max(Pt,zt)>Zt&&Math.min(nt,Pe)<Nt&&Math.max(nt,Pe)>Nt&&!Ge.B(nt,Pe)){ht.x=Zt,ht.y=Nt,Pt=!0;break t}ht.x=0,ht.y=0,Pt=!1}Pt&&(tt?x.push(ht.x):x.push(ht.y)),nt=bt}Ee.free(ht)}function Tc(a){return a=a.curve,a===kd||a===Ju}function Xm(a,y){(y||Tc(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()))}cn.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 tt=x.value;if(tt.visible){if(tt===y){b=!0;var et=!1;tt=tt.Pa.s;for(var nt=tt.length,ht=0;ht<nt;ht++){var gt=tt[ht];gt instanceof cn&&(gt===this?et=!0:et&&eS(this,gt,a))}}else if(b)for(et=tt.Pa.s,tt=et.length,nt=0;nt<tt;nt++)ht=et[nt],ht instanceof cn&&eS(this,ht,a)}}}}};function eS(a,y,x){if(y!==null&&y.lk&&y.fd&&Tc(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}cn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),tt=a.i(0);if(b.Xa(tt)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(tt)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},cn.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},cn.prototype.Zb=function(a){if(_n.prototype.Zb.call(this,a),a&&Xm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},cn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Qp:this.qk};function Xp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,tt=a.vf,et=a=null,nt=y.jb.s,ht=nt.length,gt=0;gt<ht;gt++){var bt=nt[gt];(bt.ef===y&&bt.ff===b&&bt.uf===x&&bt.vf===tt||bt.ef===x&&bt.ff===tt&&bt.uf===y&&bt.vf===b)&&(et===null?et=bt:(a===null&&(a=[],a.push(et)),a.push(bt)))}if(a!==null){for(et=H1(y,x,b,tt),et===null&&(et=new $m(y,b,x,tt),U1(y,et),U1(x,et)),et.links=a,y=0;y<a.length;y++)a[y].Sf=et;et.Sl()}}}}function Zp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Wi(y.links,a),y.Sl()))}cn.prototype.ph=function(){return!0},qe.Object.defineProperties(cn.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),Zp(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 tt=this.fromPort,et=this.fromPortChanged;if(et!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),et(this,x,tt),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&Gm(a,this,tt),Xp(this),this.C(1)),this.g("fromNode",y,a),Ad(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Us(x),Zp(this),this.ff=a;var b=this.fromPort;b!==null&&Us(b);var tt=this.diagram;if(tt!==null){var et=this.data,nt=tt.model;et!==null&&nt.ri()&&nt.xv(et,a)}x!==b&&(this.Wf=null,this.bb(),et=this.fromPortChanged,et!==null&&(nt=!0,tt!==null&&(nt=tt.aa,tt.aa=!0),et(this,x,b),tt!==null&&(tt.aa=nt))),Xp(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),Zp(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 tt=this.toPort,et=this.toPortChanged;if(et!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),et(this,x,tt),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&Gm(a,this,tt),Xp(this),this.C(1)),this.g("toNode",y,a),Ad(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Us(x),Zp(this),this.vf=a;var b=this.toPort;b!==null&&Us(b);var tt=this.diagram;if(tt!==null){var et=this.data,nt=tt.model;et!==null&&nt.ri()&&nt.Cv(et,a)}x!==b&&(this.Wf=null,this.bb(),et=this.toPortChanged,et!==null&&(nt=!0,tt!==null&&(nt=tt.aa,tt.aa=!0),et(this,x,b),tt!==null&&(tt.aa=nt))),Xp(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:oo},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&&Us(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&&ti(a,">= 0",cn,"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:oo},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&&Us(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&&ti(a,">= 0",cn,"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?hr: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&&Kp(this.fromNode),this.toNode!==null&&Kp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Wn?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 tt=this.i(1);y=Math.min(b.x,tt.x),x=Math.min(b.y,tt.y),a.h(b.x,b.y,0,0),a.Ye(tt)}else if(this.computeCurve()===ia&&3<=b&&!this.isOrthogonal)if(tt=this.i(0),y=tt.x,x=tt.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 et=this.i(2);y=Math.min(et.x,y),x=Math.min(et.y,x),Ge.Dl(tt.x,tt.y,b.x,b.y,b.x,b.y,et.x,et.y,.5,a)}else for(et=3;et<b;et+=3){var nt=this.i(et-2);et+3>=b&&(et=b-1);var ht=this.i(et-1),gt=this.i(et);Ge.Dl(tt.x,tt.y,nt.x,nt.y,ht.x,ht.y,gt.x,gt.y,.5,a),y=Math.min(gt.x,y),x=Math.min(gt.y,x),tt=gt}else for(tt=this.i(0),et=this.i(1),y=Math.min(tt.x,et.x),x=Math.min(tt.y,et.y),a.h(tt.x,tt.y,0,0),a.Ye(et),tt=2;tt<b;tt++)et=this.i(tt),y=Math.min(et.x,y),x=Math.min(et.y,x),a.Ye(et);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Ee)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Wm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),tt=this.i(x+1);Ge.$(b.x,tt.x)?(b=tt.y-b.y,0>b&&(b=-b)):Ge.$(b.y,tt.y)?(b=tt.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(tt)),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 tt=0;tt<a.length;tt++)if(typeof a[tt]!="number"||isNaN(a[tt])){b=!1;break}}if(b)for(x=new vn,b=0;b<a.length/2;b++)tt=new Ee(a[2*b],a[2*b+1]).freeze(),x.add(tt);else{for(b=!0,tt=0;tt<a.length;tt++){var et=a[tt];if(!on(et)||typeof et.x!="number"||isNaN(et.x)||typeof et.y!="number"||isNaN(et.y)){b=!1;break}}if(b)for(x=new vn,b=0;b<a.length;b++)tt=a[b],x.add(new Ee(tt.x,tt.y).freeze())}}else if(a instanceof vn)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(),Wm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&qf(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||!Md(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Md(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(),Xm(this,y===Ju||y===kd||a===Ju||a===kd),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(),Xm(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)}}}),cn.prototype.invalidateOtherJumpOvers=cn.prototype.Xo,cn.prototype.findClosestSegment=cn.prototype.ez,cn.prototype.updateRoute=cn.prototype.vg,cn.prototype.invalidateRoute=cn.prototype.bb,cn.prototype.rollbackRoute=cn.prototype.rv,cn.prototype.commitRoute=cn.prototype.zf,cn.prototype.startRoute=cn.prototype.uh,cn.prototype.clearPoints=cn.prototype.Fj,cn.prototype.removePoint=cn.prototype.pv,cn.prototype.addPointAt=cn.prototype.yf,cn.prototype.addPoint=cn.prototype.ne,cn.prototype.insertPointAt=cn.prototype.m,cn.prototype.insertPoint=cn.prototype.Kz,cn.prototype.setPointAt=cn.prototype.L,cn.prototype.setPoint=cn.prototype.dd,cn.prototype.getPoint=cn.prototype.i,cn.prototype.getOtherPort=cn.prototype.Cz,cn.prototype.getOtherNode=cn.prototype.To;var Sf=null,wf=null,Jv=new sn(cn,"Normal",1),kw=new sn(cn,"Orthogonal",2),Lw=new sn(cn,"AvoidsNodes",6),nS=new sn(cn,"AvoidsNodesStraight",7),us=new sn(cn,"None",0),ia=new sn(cn,"Bezier",9),Ju=new sn(cn,"JumpGap",10),kd=new sn(cn,"JumpOver",11),Qp=new sn(cn,"End",17),Zm=new sn(cn,"Scale",18),Qm=new sn(cn,"Stretch",19),Jp=new sn(cn,"OrientAlong",21),qp=new sn(cn,"OrientPlus90",22),$p=new sn(cn,"OrientMinus90",23),qv=new sn(cn,"OrientOpposite",24),Jm=new sn(cn,"OrientUpright",25),tg=new sn(cn,"OrientPlus90Upright",26),eg=new sn(cn,"OrientMinus90Upright",27),qm=new sn(cn,"OrientUpright45",28),iS=16,rS=14,ng=8;cn.className="Link",cn.Normal=Jv,cn.Orthogonal=kw,cn.AvoidsNodes=Lw,cn.AvoidsNodesStraight=nS,cn.None=us,cn.Bezier=ia,cn.JumpGap=Ju,cn.JumpOver=kd,cn.End=Qp,cn.Scale=Zm,cn.Stretch=Qm,cn.OrientAlong=Jp,cn.OrientPlus90=qp,cn.OrientMinus90=$p,cn.OrientOpposite=qv,cn.OrientUpright=Jm,cn.OrientPlus90Upright=tg,cn.OrientMinus90Upright=eg,cn.OrientUpright45=qm,cn.EndSegmentStep=8,cn.CurvinessStart=iS,cn.SpacingMin=rS,cn.OrthoShortCut=ng;function $m(a,y,x,b){qi(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 ig(a){qi(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}ig.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 Ld(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Wl(a,y,x){return Ld(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]>=_c&&(x[b]=$v)}ig.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 tt=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(tt+=y,y=0),0>x||0>tt)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+tt-1,this.ei)|0;a<=b;a++){tt=this.ac[a];for(var et=y;et<=x;et++)if(tt[et]===qu)return!1}return!0};function Vl(a,y,x,b,tt,et,nt,ht,gt){if(!(y<et||y>nt||x<ht||x>gt)){var bt=y|0,Pt=x|0,Nt=a.ac[bt][Pt];if(Nt>=_c&&Nt<Td)for(tt?Pt+=b:bt+=b,Nt+=1;et<=bt&&bt<=nt&&ht<=Pt&&Pt<=gt&&!(Nt>=a.ac[bt][Pt]);)a.ac[bt][Pt]=Nt,Nt+=1,tt?Pt+=b:bt+=b;if(bt=tt?Pt:bt,tt)if(0<b)for(x+=b;x<bt;x+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt);else for(x+=b;x>bt;x+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt);else if(0<b)for(y+=b;y<bt;y+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt);else for(y+=b;y>bt;y+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt)}}function t0(a,y,x,b,tt,et,nt,ht,gt){y|=0,x|=0;var bt=qu,Pt=_c;for(a.ac[y][x]=Pt;bt===qu&&y>et&&y<nt&&x>ht&&x<gt;)Pt+=1,a.ac[y][x]=Pt,tt?x+=b:y+=b,bt=a.ac[y][x]}function e0(a,y,x,b,tt,et,nt,ht,gt){y|=0,x|=0;var bt=qu,Pt=Td;for(a.ac[y][x]=Pt;bt===qu&&y>et&&y<nt&&x>ht&&x<gt;)a.ac[y][x]=Pt,tt?x+=b:y+=b,bt=a.ac[y][x]}function sS(a,y,x,b,tt,et,nt){if(a.ac!==null){a.abort=!1;var ht=y.x,gt=y.y;if(Ld(a,ht,gt)){ht-=a.Nd,ht/=a.rc,gt-=a.Od,gt/=a.sc;var bt=b.x,Pt=b.y;if(Ld(a,bt,Pt))if(bt-=a.Nd,bt/=a.rc,Pt-=a.Od,Pt/=a.sc,1>=Math.abs(ht-bt)&&1>=Math.abs(gt-Pt))a.abort=!0;else{var Nt=et.x;b=et.y,y=et.x+et.width;var zt=et.y+et.height;Nt-=a.Nd,Nt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,zt-=a.Od,zt/=a.sc,et=Math.max(0,Math.min(a.di,Nt|0)),y=Math.min(a.di,Math.max(0,y|0)),Nt=Math.max(0,Math.min(a.ei,b|0)),zt=Math.min(a.ei,Math.max(0,zt|0)),b=a.ac,ht|=0,gt|=0,bt|=0,Pt|=0;var Vt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ht][gt]===qu?(t0(a,ht,gt,Vt,x,et,y,Nt,zt),t0(a,ht,gt,1,!x,et,y,Nt,zt),t0(a,ht,gt,-1,!x,et,y,Nt,zt)):t0(a,ht,gt,Vt,x,ht,gt,ht,gt),b[bt][Pt]===qu?(e0(a,bt,Pt,tt===0||tt===90?1:-1,tt===90||tt===270,et,y,Nt,zt),e0(a,bt,Pt,1,!(tt===90||tt===270),et,y,Nt,zt),e0(a,bt,Pt,-1,!(tt===90||tt===270),et,y,Nt,zt)):e0(a,bt,Pt,Vt,x,bt,Pt,bt,Pt),x=oi(),nt&&aS(a,bt,Pt,tt,ht,gt,x))for((x[0]!==bt||x[1]!==Pt)&&(x.unshift(Pt),x.unshift(bt)),(x[x.length-2]!==ht||x[x.length-1]!==gt)&&(x.push(ht),x.push(gt)),a=_c,tt=x[x.length-2],nt=x[x.length-1],b[tt][nt]=a++,et=x.length-4;0<=et;et-=2)for(tt=x[et+2],nt=x[et+3],y=x[et],bt=x[et+1];y>tt?tt++:y<tt?tt--:bt>nt?nt++:bt<nt&&nt--,b[tt][nt]=a++,tt!==y||nt!==bt;);else Vl(a,ht,gt,1,!1,et,y,Nt,zt),Vl(a,ht,gt,-1,!1,et,y,Nt,zt),Vl(a,ht,gt,1,!0,et,y,Nt,zt),Vl(a,ht,gt,-1,!0,et,y,Nt,zt);ri(x)}}}}function aS(a,y,x,b,tt,et,nt){for(var ht=a.ac,gt=y,bt=x;;){if(gt===tt&&bt===et)return!0;var Pt=gt,Nt=bt;if(b===0)if(Pt<tt)Pt++;else break;else if(b===90)if(Nt<et)Nt++;else break;else if(b===180)if(Pt>tt)Pt--;else break;else if(Nt>et)Nt--;else break;var zt=ht[Pt][Nt];if(zt===0||zt===ty)break;gt=Pt,bt=Nt}for(;;){if(Pt=b,Nt=gt,zt=bt,b===0?zt<et?(Pt=90,zt++):zt>et&&(Pt=270,zt--):b===90?Nt<tt?(Pt=0,Nt++):Nt>tt&&(Pt=180,Nt--):b===180?zt<et?(Pt=90,zt++):zt>et&&(Pt=270,zt--):Nt<tt?(Pt=0,Nt++):Nt>tt&&(Pt=180,Nt--),Nt=ht[Nt][zt],Pt!==b&&Nt!==0&&Nt!==ty){if(nt.push(gt),nt.push(bt),aS(a,gt,bt,Pt,tt,et,nt))return!0;nt.pop(),nt.pop()}if(ht[gt][bt]=ty,b===0){if(gt===y)return!1;gt--}else if(b===90){if(bt===x)return!1;bt--}else if(b===180){if(gt===y)return!1;gt++}else{if(bt===x)return!1;bt++}}}qe.Object.defineProperties(ig.prototype,{bounds:{get:function(){return new $e(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 qu=0,_c=1,Td=999999,$v=Td+1,ty=Td+2;ig.className="PositionArray";function xf(){qi(this),this.port=this.node=null,this.pe=[],this.ap=!1}xf.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 Tw(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}xf.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,tt=a.node,et=tt instanceof Un?tt:null;if(et===null||et.isSubGraphExpanded)var nt=tt.isTreeExpanded?tt.findLinksConnected(a.port.portId):tt.qx();else{if(!et.actualBounds.w()){a.ap=x;break t}b=et,nt=b.Lu()}et=a.pe.length=0;var ht=a.port.ga(vo,Ee.alloc()),gt=a.port.ga(qo,Ee.alloc());for(tt=$e.allocAt(ht.x,ht.y,0,0),tt.Ye(gt),Ee.free(ht),Ee.free(gt),ht=Ee.allocAt(tt.x+tt.width/2,tt.y+tt.height/2),gt=a.port.li(),nt=nt.iterator;nt.next();){var bt=nt.value;if(bt.isVisible()&&bt.fromPort!==bt.toPort){var Pt=bt.fromPort===a.port||bt.fromNode!==null&&bt.fromNode.Td(b),Nt=bt.computeSpot(Pt,a.port);if(Nt.$c()&&(Pt=Pt?bt.toPort:bt.fromPort,Pt!==null)){var zt=Pt.part;if(zt!==null){var Vt=zt.findVisibleNode();Vt!==null&&Vt!==zt&&(zt=Vt,Pt=zt.port),Pt=bt.computeOtherPoint(zt,Pt),zt=ht.ab(Pt),zt-=gt,0>zt?zt+=360:360<=zt&&(zt-=360),Nt=Tw(tt,Nt,zt,bt.isOrthogonal),Nt===0?(Nt=4,180<zt&&(zt-=360)):Nt===90?(Nt=8,270<zt&&(zt-=360)):Nt===180?Nt=2:(Nt=1,90>zt&&(zt+=360)),Vt=a.pe[et],Vt===void 0?(Vt=new ey(bt,zt,Nt),a.pe[et]=Vt):(Vt.link=bt,Vt.angle=zt,Vt.Nc=Nt),Vt.hv.set(Pt),et++}}}}for(Ee.free(ht),a.pe.sort(xf.prototype.j),gt=a.pe.length,b=-1,et=ht=0;et<gt;et++)nt=a.pe[et],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ht=0),nt.Uo=ht,ht++);for(b=-1,ht=0,et=gt-1;0<=et;et--)gt=a.pe[et],gt!==void 0&&(gt.Nc!==b&&(b=gt.Nc,ht=gt.Uo+1),gt.Gl=ht);if(et=a.pe,Nt=a.port,b=a.node.portSpreading,ht=Ee.alloc(),gt=Ee.alloc(),nt=Ee.alloc(),bt=Ee.alloc(),Nt.ga(vo,ht),Nt.ga($l,gt),Nt.ga(qo,nt),Nt.ga(el,bt),Vt=zt=Pt=Nt=0,b===Wv)for(var Zt=0;Zt<et.length;Zt++){var oe=et[Zt];if(oe!==null){var Pe=oe.link.computeThickness();switch(oe.Nc){case 8:zt+=Pe;break;case 2:Vt+=Pe;break;case 1:Nt+=Pe;break;default:case 4:Pt+=Pe}}}var de=Zt=0,Le=1,Oe=oe=0;for(Pe=0;Pe<et.length;Pe++){var De=et[Pe];if(De!==null){if(Zt!==De.Nc){switch(Zt=De.Nc,Zt){case 8:var Re=nt;de=bt;break;case 2:Re=bt,de=ht;break;case 1:Re=ht,de=gt;break;default:case 4:Re=gt,de=nt}switch(oe=de.x-Re.x,Oe=de.y-Re.y,Zt){case 8:zt>Math.abs(oe)?(Le=Math.abs(oe)/zt,zt=Math.abs(oe)):Le=1;break;case 2:Vt>Math.abs(Oe)?(Le=Math.abs(Oe)/Vt,Vt=Math.abs(Oe)):Le=1;break;case 1:Nt>Math.abs(oe)?(Le=Math.abs(oe)/Nt,Nt=Math.abs(oe)):Le=1;break;default:case 4:Pt>Math.abs(Oe)?(Le=Math.abs(Oe)/Pt,Pt=Math.abs(Oe)):Le=1}de=0}var Ve=De.Zo;if(b===Wv){switch(De=De.link.computeThickness(),De*=Le,Ve.set(Re),Zt){case 8:Ve.x=Re.x+oe/2+zt/2-de-De/2;break;case 2:Ve.y=Re.y+Oe/2+Vt/2-de-De/2;break;case 1:Ve.x=Re.x+oe/2-Nt/2+de+De/2;break;default:case 4:Ve.y=Re.y+Oe/2-Pt/2+de+De/2}de+=De}else{var Sn=.5;b===Hm&&(Sn=(De.Uo+1)/(De.Gl+1)),Ve.x=Re.x+oe*Sn,Ve.y=Re.y+Oe*Sn}}}for(Ee.free(ht),Ee.free(gt),Ee.free(nt),Ee.free(bt),Re=a.pe,et=0;et<Re.length;et++)b=Re[et],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,$e.free(tt)}x=a.pe}for(a=0;a<x.length;a++)if(tt=x[a],tt!==null&&tt.link===y)return tt;return null}xf.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},xf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,$r,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var tt=a.Gl;if(1>=tt||!y.isOrthogonal)return x;y=a.hv;var et=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=tt-1-b),((a=a.Nc===2||a.Nc===4)?y.y<et.y:y.x<et.x)?x+8*b:(a?y.y===et.y:y.x===et.x)?x:x+8*(tt-1-b)},xf.className="Knot";function ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Ee,this.Gl=this.Uo=0,this.Zo=new Ee,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 Ji(a){qi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ee(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ji.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},Ji.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ji.prototype.qb=function(){},Ji.prototype.toString=function(){var a=Zn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ji.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())}}},Ji.prototype.createNetwork=function(){return new Di(this)},Ji.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Ye?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Un?y.lg(a.memberParts):y.lg(a.iterator),y},Ji.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")}},Ji.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()}},Ji.prototype.doLayout=function(a){var y=new gn;a instanceof Ye?(Fh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Fh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Un?Fh(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},Ji.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,tt=this.arrangementOrigin.y,et=0,nt=0;for(a=a.iterator;a.next();){var ht=a.value;rg(ht);var gt=ht.measuredBounds,bt=gt.width;gt=gt.height,ht.moveTo(b,tt),ht instanceof Un&&(ht.rh=!1),b+=Math.max(bt,50)+20,nt=Math.max(nt,Math.max(gt,50)),et>=y-1?(et=0,b=x,tt+=nt+20,nt=0):et++}},Ji.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,tt=0,et=0,nt=this.network.vertexes.iterator;nt.next();){var ht=nt.value.node;if(!(ht===null||ht instanceof cn)&&(rg(ht),this.rh(ht))){var gt=ht.measuredBounds,bt=gt.width;gt=gt.height,ht.moveTo(x,b),ht instanceof Un&&(ht.rh=!1),x+=Math.max(bt,50)+20,et=Math.max(et,Math.max(gt,50)),tt>=a-1?(tt=0,x=y,b+=et+20,et=0):tt++}}},Ji.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Un&&a.rh)};function Fh(a,y,x,b,tt,et,nt,ht){for(x=x.iterator;x.next();){var gt=x.value;b&&!gt.isTopLevel||tt!==null&&!tt(gt)||!gt.canLayout()||(et&&gt instanceof wn?gt.isLinkLabel||(gt instanceof Un&&gt.layout===null?Fh(a,y,gt.memberParts,!1,tt,et,nt,ht):(rg(gt),y.add(gt))):nt&&gt instanceof cn?y.add(gt):!ht||!gt.Zc()||gt instanceof wn||(rg(gt),y.add(gt)))}}function rg(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ji.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new $e),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ji.prototype.ex=function(a){var y=new gn;return a instanceof Ye?(Fh(this,y,a.nodes,!0,null,!0,!0,!0),Fh(this,y,a.links,!0,null,!0,!0,!0),Fh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Un?Fh(this,y,a.memberParts,!1,null,!0,!0,!0):Fh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ji.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(vo),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},qe.Object.defineProperties(Ji.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())}}}),Ji.prototype.collectParts=Ji.prototype.ex,Ji.prototype.getLayoutBounds=Ji.prototype.ni,Ji.prototype.invalidateLayout=Ji.prototype.C,Ji.className="Layout";function Di(a){qi(this),this.Sc=a,this.wf=new gn,this.ye=new gn,this.Es=new Rn,this.zs=new Rn}Di.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 gn,this.ye=new gn,this.Es=new Rn,this.zs=new Rn},Di.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},Di.prototype.createVertex=function(){return new Vr(this)},Di.prototype.createEdge=function(){return new Hs(this)},Di.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 wn)return!nt.isLinkLabel;if(nt instanceof cn){var ht=nt.fromNode;return ht===null||ht.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof wn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Un&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var tt=this.createVertex();tt.node=b,this.dh(tt)}}}for(a.reset();a.next();)if(b=a.value,b instanceof cn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var et=b.fromNode;tt=b.toNode,et!==null&&tt!==null&&et!==tt&&(et=this.findGroupVertex(et),tt=this.findGroupVertex(tt),et!==null&&tt!==null&&this.Zj(et,tt,b))}}},Di.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},ee=Di.prototype,ee.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},ee.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},ee.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}ee.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},ee.ki=function(a){return a===null?null:this.Es.I(a)},ee.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}}ee.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},ee.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))}ee.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},ee.Lo=function(a){return a===null?null:this.zs.I(a)},ee.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},ee.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))}},ee.Ko=function(){for(var a=oi(),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]);ri(a)},Di.prototype.deleteArtificialVertexes=function(){for(var a=oi(),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=oi(),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]);ri(a),ri(y)};function _w(a){for(var y=oi(),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]);ri(y)}Di.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),_w(this),this.Ko()),a=new vn;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(tt,et){return tt===null||et===null||tt===et?0:et.vertexes.count-tt.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 tt=b.value;tt.network!==y&&(iy(a,tt),ny(y,tt),ry(a,y,tt.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(iy(a,x),ny(y,x),ry(a,y,x.toVertex))}}Di.prototype.dz=function(){for(var a=new gn,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},qe.Object.defineProperties(Di.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}}}),Di.prototype.findAllParts=Di.prototype.dz,Di.prototype.splitIntoSubNetworks=Di.prototype.Zx,Di.prototype.deleteSelfEdges=Di.prototype.Ko,Di.prototype.reverseEdge=Di.prototype.gm,Di.prototype.linkVertexes=Di.prototype.Zj,Di.prototype.findEdge=Di.prototype.Lo,Di.prototype.deleteLink=Di.prototype.Yy,Di.prototype.deleteEdge=Di.prototype.Mj,Di.prototype.addLink=Di.prototype.Dy,Di.prototype.addEdge=Di.prototype.Bo,Di.prototype.findVertex=Di.prototype.ki,Di.prototype.deleteNode=Di.prototype.Zy,Di.prototype.deleteVertex=Di.prototype.Iu,Di.prototype.addNode=Di.prototype.Bl,Di.prototype.addVertex=Di.prototype.dh,Di.prototype.addParts=Di.prototype.lg,Di.className="LayoutNetwork";function Vr(a){qi(this),this.ob=a,this.j=new $e(0,0,10,10).freeze(),this.o=new Ee(5,5).freeze(),this.Sh=this.ub=null,this.tg=new vn,this.mg=new vn}Vr.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new vn,this.mg=new vn},Vr.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Kr(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 tt=b.value;x?x=!1:a+=",",a+=tt.toString(0)}for(tt="",x=!0,b=this.mg.iterator;b.next();){var et=b.value;x?x=!1:tt+=",",tt+=et.toString(0)}y+=" sources: "+a+" destinations: "+tt}return y},Vr.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;on(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 Un)){x=$e.alloc(),a.Va();var b=this.network.layout.ni(a,x),tt=a.locationObject.ga(wi);if(b.w()&&tt.w()){a.moveTo(y.x+this.focusX-(tt.x-b.x),y.y+this.focusY-(tt.y-b.y)),$e.free(x);return}$e.free(x)}a.moveTo(y.x,y.y)}},Vr.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Vr.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Vr.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Vr.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}qe.Object.defineProperties(Vr.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=$e.alloc(),b=y.ni(a,x);y=b.x;var tt=b.y,et=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(tt)&&(tt=0),this.j.h(y,tt,et,b),$e.free(x),!(a instanceof Un)&&(a=a.locationObject.ga(wi),a.w())){this.o.h(a.x-y,a.y-tt);return}this.o.h(et/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 gn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new gn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new gn,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 vn,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}}}),Vr.prototype.deleteDestinationEdge=Vr.prototype.Jl,Vr.prototype.addDestinationEdge=Vr.prototype.zl,Vr.prototype.deleteSourceEdge=Vr.prototype.Kl,Vr.prototype.addSourceEdge=Vr.prototype.Cl,Vr.className="LayoutVertex",Vr.standardComparer=oy,Vr.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]),tt=parseFloat(a[x]);if(isNaN(b))if(isNaN(tt)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(tt))return-1;if(b-tt!==0)return b-tt}}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 Hs(a){qi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Hs.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Hs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Kr(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},Hs.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Hs.prototype.commit=function(){},Hs.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},qe.Object.defineProperties(Hs.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)}}}),Hs.prototype.getOtherVertex=Hs.prototype.Ax,Hs.className="LayoutEdge";function wo(a){Ji.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new xn(NaN,NaN).freeze(),this.tf=new xn(10,10).freeze(),this.Jb=og,this.Rb=i0,this.nd=sg,this.hd=hS,a&&Object.assign(this,a)}en(wo,Ji),wo.prototype.cloneProtected=function(a){Ji.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},wo.prototype.qb=function(a){a.classType===wo?a===sg||a===o0||a===sy||a===r0?this.sorting=a:a===i0||a===sl?this.arrangement=a:a===og||a===n0?this.alignment=a:We("Unknown enum value: "+a):Ji.prototype.qb.call(this,a)},wo.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 Un)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var tt=y.Fa();if(tt.length!==0){switch(this.sorting){case r0:tt.reverse();break;case sg:tt.sort(this.comparer);break;case o0:tt.sort(this.comparer),tt.reverse()}var et=this.wrappingColumn;isNaN(et)&&(et=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>=et&&0>=nt&&(et=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 ht=y,gt=x,bt=$e.alloc(),Pt=Math.max(this.cellSize.width,1);if(!isFinite(Pt))for(var Nt=Pt=0;Nt<tt.length;Nt++){var zt=this.ni(tt[Nt],bt);Pt=Math.max(Pt,zt.width)}if(Pt=Math.max(Pt+ht,1),Nt=Math.max(this.cellSize.height,1),!isFinite(Nt))for(zt=Nt=0;zt<tt.length;zt++){var Vt=this.ni(tt[zt],bt);Nt=Math.max(Nt,Vt.height)}Nt=Math.max(Nt+gt,1),zt=this.arrangement;for(var Zt=Vt=this.arrangementOrigin.x,oe=this.arrangementOrigin.y,Pe=0,de=0,Le=0;Le<tt.length;Le++){var Oe=tt[Le],De=this.ni(Oe,bt),Re=Math.ceil((De.width+ht)/Pt)*Pt,Ve=Math.ceil((De.height+gt)/Nt)*Nt;switch(zt){case sl:var Sn=Math.abs(Zt-De.width);break;default:Sn=Zt+De.width}switch((0<et&&Pe>et-1||0<nt&&0<Pe&&Sn-Vt>nt)&&(b.push(new $e(0,oe,nt+ht,de)),Pe=0,Zt=Vt,oe+=de,de=0),de=Math.max(de,Ve),zt){case sl:De=-De.width;break;default:De=0}switch(Oe.moveTo(Zt+De,oe),zt){case sl:Zt-=Re;break;default:Zt+=Re}Pe++}b.push(new $e(0,oe,nt+ht,de)),$e.free(bt);break;case og:for(gt=nt,Pt=et,Nt=y,zt=x,nt=$e.alloc(),Vt=Math.max(this.cellSize.width,1),et=oe=bt=0,ht=Ee.alloc(),Zt=0;Zt<tt.length;Zt++)de=tt[Zt],Pe=this.ni(de,nt),de=Xu(de,de.locationObject,de.locationSpot,ht),bt=Math.max(bt,de.x),oe=Math.max(oe,Pe.width-de.x),et=Math.max(et,de.y);switch(Zt=this.arrangement,Zt){case sl:bt+=Nt;break;default:oe+=Nt}Vt=isFinite(Vt)?Math.max(Vt+Nt,1):Math.max(bt+oe,1);var Mn=de=this.arrangementOrigin.x;for(Le=this.arrangementOrigin.y,oe=0,gt>=bt&&(gt-=bt),bt=Oe=0,Re=Math.max(this.cellSize.height,1),De=et=0,Ve=!0,Pe=Ee.alloc(),Sn=0;Sn<tt.length;Sn++){var Pn=tt[Sn],hn=this.ni(Pn,nt),rn=Xu(Pn,Pn.locationObject,Pn.locationSpot,ht);if(0<oe)switch(Zt){case sl:Mn=(Mn-de-(hn.width-rn.x))/Vt,Mn=Ge.$(Math.round(Mn),Mn)?Math.round(Mn):Math.floor(Mn),Mn=Mn*Vt+de;break;default:Mn=(Mn-de+rn.x)/Vt,Mn=Ge.$(Math.round(Mn),Mn)?Math.round(Mn):Math.ceil(Mn),Mn=Mn*Vt+de}else switch(Zt){case sl:Oe=Mn+rn.x+hn.width;break;default:Oe=Mn-rn.x}switch(Zt){case sl:var Gn=-(Mn+rn.x)+Oe;break;default:Gn=Mn+hn.width-rn.x-Oe}if(0<Pt&&oe>Pt-1||0<gt&&0<oe&&Gn>gt){for(b.push(new $e(0,Ve?Le-et:Le,gt+Nt,De+et+zt)),Mn=0;Mn<oe&&Sn!==oe;Mn++){Gn=tt[Sn-oe+Mn];var Fn=Xu(Gn,Gn.locationObject,Gn.locationSpot,Pe);Gn.moveTo(Gn.position.x,Gn.position.y+et-Fn.y)}De+=zt,Le=Ve?Le+De:Le+(De+et),oe=De=et=0,Mn=de,Ve=!1}switch(Mn===de&&(bt=Zt===sl?Math.max(bt,hn.width-rn.x):Math.min(bt,-rn.x)),et=Math.max(et,rn.y),De=Math.max(De,hn.height-rn.y),isFinite(Re)&&(De=Math.max(De,Math.max(hn.height,Re)-rn.y)),Ve?Pn.moveTo(Mn-rn.x,Le-rn.y):Pn.moveTo(Mn-rn.x,Le),Zt){case sl:Mn-=rn.x+Nt;break;default:Mn+=hn.width-rn.x+Nt}oe++}if(b.push(new $e(0,Le,gt+Nt,(Ve?De:De+et)+zt)),tt.length!==oe)for(gt=0;gt<oe;gt++)Pt=tt[tt.length-oe+gt],Nt=Xu(Pt,Pt.locationObject,Pt.locationSpot,ht),Pt.moveTo(Pt.position.x,Pt.position.y+et-Nt.y);if(Ee.free(ht),Ee.free(Pe),Zt===sl)for(tt=0;tt<b.length;tt++)et=b[tt],et.width+=bt,et.x-=bt;else for(tt=0;tt<b.length;tt++)et=b[tt],et.x>bt&&(et.width+=et.x-bt,et.x=bt);$e.free(nt)}for(ht=et=nt=tt=0;ht<b.length;ht++)gt=b[ht],tt=Math.min(tt,gt.x),nt=Math.min(nt,gt.y),et=Math.max(et,gt.x+gt.width);this.arrangement===sl?this.commitLayers(b,new Ee(tt+y/2-(et+tt),nt-x/2)):this.commitLayers(b,new Ee(tt-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},wo.prototype.commitLayers=function(){};function hS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}qe.Object.defineProperties(wo.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==og&&a!==n0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==i0&&a!==sl||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==sy&&a!==r0&&a!==sg&&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 sn(wo,"Position",0),og=new sn(wo,"Location",1),i0=new sn(wo,"LeftToRight",2),sl=new sn(wo,"RightToLeft",3),sy=new sn(wo,"Forward",4),r0=new sn(wo,"Reverse",5),sg=new sn(wo,"Ascending",6),o0=new sn(wo,"Descending",7);wo.className="GridLayout",wo.standardComparer=hS,wo.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]),tt=parseFloat(y[x]);if(isNaN(b))if(isNaN(tt)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(tt))return-1;if(b-tt!==0)return b-tt}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},wo.Position=n0,wo.Location=og,wo.LeftToRight=i0,wo.RightToLeft=sl,wo.Forward=sy,wo.Reverse=r0,wo.Ascending=sg,wo.Descending=o0;function Pi(){this.On=new gn,this.Dn=new gn,this.Pa=new gn,this.cf=new Rn,this.bf=new Rn,this.aj=new Rn,this.H=null,this.tp=!1}ee=Pi.prototype,ee.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},ee.Xe=function(a){this.H=a},ee.oi=function(a){if(a instanceof wn){if(this.On.add(a),a instanceof Un){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 cn?this.Dn.add(a):a instanceof di||this.Pa.add(a);y=a.data,y===null||a instanceof di||(a instanceof cn?this.bf.add(y,a):this.cf.add(y,a))},ee.pc=function(a){if(a.Ej(),a instanceof wn){if(this.On.remove(a),a instanceof Un){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 cn?this.Dn.remove(a):a instanceof di||this.Pa.remove(a);y=a.data,y===null||a instanceof di||(a instanceof cn?this.bf.remove(y):this.cf.remove(y))},ee.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 Un)&&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 Un||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 cn||We('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=oi(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=oi(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=oi(),b=this.nodes.iterator;b.next();){var tt=b.value;tt.data!==null&&(a.push(tt.data),a.push(tt.location))}for(b=this.links.iterator;b.next();)tt=b.value,tt.data!==null&&(a.push(tt.data),a.push(tt.location));for(b=this.parts.iterator;b.next();)tt=b.value,tt.data!==null&&(a.push(tt.data),a.push(tt.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)tt=this.Lc(y[b]),tt!==null&&(tt.isSelected=!0);for(b=0;b<x.length;b++)tt=this.Lc(x[b]),tt!==null&&(tt.isHighlighted=!0);for(b=0;b<a.length;b+=2)tt=this.Lc(a[b]),tt!==null&&(tt.location=a[b+1]);ri(y),ri(x),ri(a)}},Pi.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Pi.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(tt){b.lb(tt)&&cS(x,tt,!1)}),a.forEach(function(tt){b.lb(tt)&&x.resolveReferencesForData(tt)}),y!==!1&&od(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),tt=fS(a,y,b);if(tt!==null&&(Oa(tt),tt=tt.copy(),tt!==null)){var et=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,tt.Tf=b,tt.ub=y,a.tp&&(tt.Jg="Tool"),a.diagram.add(tt),tt.ub=null,tt.data=y,a.diagram.skipsModelSourceBindings=et,b=tt;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Pi.prototype.insertLink=function(){return null},Pi.prototype.resolveReferencesForData=function(){},Pi.prototype.Ro=function(a){return this.H.model.Ro(a)};function fS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(gS||(gS=!0,pr('No Group template found for category "'+x+'"'),pr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,pr('No Node template found for category "'+x+'"'),pr(" Using default node template")),y=a.ny))),y}Pi.prototype.getLinkCategoryForData=function(){return""},Pi.prototype.setLinkCategoryForData=function(){},Pi.prototype.setFromNodeForLink=function(){},Pi.prototype.setToNodeForLink=function(){},Pi.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,pr('No Link template found for category "'+a+'"'),pr(" Using default link template")),x=y.my)),x},Pi.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Pi.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Pi.prototype.ip=function(a){a=this.Lc(a),a!==null&&(wp(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Pi.prototype.unresolveReferencesForPart=function(){},Pi.prototype.removeDataForLink=function(){},Pi.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Pi.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof wn?a:null)},Pi.prototype.findLinkForKey=function(){return null},ee=Pi.prototype,ee.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},ee.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof wn?a:null)},ee.Kc=function(a){return a===null?null:this.bf.I(a)},ee.ms=function(a){for(var y=0;y<arguments.length;++y);y=new gn;for(var x=this.On.iterator;x.next();){var b=x.value,tt=b.data;if(tt!==null)for(var et=0;et<arguments.length;et++){var nt=arguments[et];if(on(nt)&&ay(this,tt,nt)){y.add(b);break}}}return y.iterator},ee.ls=function(a){for(var y=0;y<arguments.length;++y);y=new gn;for(var x=this.Dn.iterator;x.next();){var b=x.value,tt=b.data;if(tt!==null)for(var et=0;et<arguments.length;et++){var nt=arguments[et];if(on(nt)&&ay(this,tt,nt)){y.add(b);break}}}return y.iterator};function ay(a,y,x){for(var b in x){var tt=y[b],et=x[b];if(Cn(et)){if(!Cn(tt)||tt.length<et.length)return!1;for(var nt=0;nt<tt.length;nt++){var ht=et[nt];if(ht!==void 0&&!dS(a,tt[nt],ht))return!1}}else if(!dS(a,tt,et))return!1}return!0}function dS(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(on(y)&&on(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Pi.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===tr){if(b==="nodeCategory"){var tt=this.Lc(a.object),et=a.newValue;tt!==null&&typeof et=="string"&&(tt.category=et)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Ar){var nt=a.newValue;b==="nodeDataArray"&&on(nt)&&cS(this,nt),y.isModified=!0}else if(x===Hr){var ht=a.oldValue;b==="nodeDataArray"&&on(ht)&&this.ip(ht),y.isModified=!0}else x===Rs&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===tr){var gt=a.propertyName,bt=a.object;bt===y.model?(gt==="nodeKeyProperty"||gt==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(bt,gt),y.isModified=!0}else if(x===Ar||x===Hr){var Pt=a.change===Ar,Nt=Pt?a.newParam:a.oldParam,zt=Pt?a.newValue:a.oldValue,Vt=this.aj.I(a.object);if(Array.isArray(Vt))for(a=0;a<Vt.length;a++){var Zt=Vt[a];if(Pt)Cm(Zt,zt,Nt,!0);else if(!(0>Nt)){var oe=Nt+Gp(Zt);Zt.pc(oe,!0),xv(Zt,oe,Nt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Pi.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)},Pi.prototype.rp=function(){for(var a=this.H.model,y=new gn,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var tt=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||tt.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||tt.push(nt.data)}),tt.forEach(function(nt){ES(a,nt,!1)}),b=0;b<x.length;b++){var et=x[b];this.Lc(et)===null&&CS(a,et,!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()},Pi.prototype.refreshDataBoundLinks=function(){},Pi.prototype.updateRelationshipsFromData=function(){},Pi.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 tt=b.value,et=0;et<tt.length;et++){var nt=tt[et].sx(a);nt!==null&&(x===null&&(x=oi()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);ri(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(Cn(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){Ac(y,function(nt){nt=nt.O.s;for(var ht=nt.length,gt=0;gt<ht;gt++)Ep(x,nt[gt])});var b=y.Hh;if(Cn(b)){var tt=a.aj.I(b);if(tt!==null){for(var et=0;et<tt.length;et++)if(tt[et]===y){tt.splice(et,1),tt.length===0&&a.aj.remove(b);break}}}}Pi.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Rn;if(Cn(a))for(var tt=0;tt<a.length;tt++)s0(this,a[tt],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,tt=new gn;for(var et=new Rn,nt=b.iterator;nt.next();){var ht=nt.value;if(ht instanceof cn)a||ht.fromNode!==null&&ht.toNode!==null||tt.add(ht);else if(ht instanceof wn&&ht.data!==null&&x.Tl()){var gt=ht;ht=nt.key;var bt=ht.pg();bt!==null&&(bt=b.I(bt),bt!==null?(x.qe(gt.data,x.wa(bt.data)),gt=y.Kc(gt.data),ht=ht.kh(),ht!==null&&gt!==null&&et.add(ht,gt)):x.qe(gt.data,void 0))}}if(0<tt.count&&y.Is(tt,!1),0<et.count)for(x=et.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var Pt=new Rn;b.each(function(Nt){Nt.key.data!==null&&Pt.add(Nt.key.data,Nt.value.data)}),x(Pt,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function s0(a,y,x,b,tt){if(y===null||tt&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var et=a.copyPartData(y,x);if(!(et instanceof _n))return null;if(et.isSelected=!1,et.isHighlighted=!1,b.add(y,et),y instanceof wn){for(var nt=y.linksConnected;nt.next();){var ht=nt.value;if(ht.fromNode===y){var gt=b.I(ht);gt!==null&&(gt.fromNode=et)}ht.toNode===y&&(ht=b.I(ht),ht!==null&&(ht.toNode=et))}if(y instanceof Un&&et instanceof Un)for(y=y.memberParts;y.next();)nt=s0(a,y.value,x,b,tt),nt instanceof cn||nt===null||(nt.containingGroup=et)}else if(y instanceof cn&&et instanceof cn)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(et.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(et.toNode=nt)),y=y.labelNodes;y.next();)nt=s0(a,y.value,x,b,tt),nt!==null&&nt instanceof wn&&(nt.labeledLink=et);return et}Pi.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var tt=y.model;a instanceof cn||(b=tt.copyNodeData(b),on(b)&&(tt.xf(b),x=y.Lc(b)))}else Oa(a),x=a.copy(),x!==null&&(tt=this.H,y!==null?y.add(x):b!==null&&tt!==null&&tt.commandHandler!==null&&tt.commandHandler.copiesClipboardData&&(y=tt.model,tt=null,x instanceof cn||(tt=y.copyNodeData(b)),on(tt)&&(x.data=tt)));return x},qe.Object.defineProperties(Pi.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}}}),Pi.prototype.updateAllRelationshipsFromData=Pi.prototype.rp,Pi.prototype.findLinksByExample=Pi.prototype.ls,Pi.prototype.findNodesByExample=Pi.prototype.ms,Pi.prototype.findLinkForData=Pi.prototype.Kc,Pi.prototype.findNodeForData=Pi.prototype.ii,Pi.prototype.findPartForData=Pi.prototype.Lc,Pi.prototype.findNodeForKey=Pi.prototype.Vb,Pi.prototype.removeModeledPart=Pi.prototype.ip,Pi.prototype.removeModeledParts=Pi.prototype.Gs,Pi.prototype.rebuildParts=Pi.prototype.Wd;var pS=!1,gS=!1,mS=!1;Pi.className="PartManager";function ao(a){Pi.apply(this,arguments)}en(ao,Pi),ao.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},ao.prototype.addModeledParts=function(a){for(Pi.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Ad(a.value);od(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),od(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){Oa(b);var tt=b.copy();if(tt!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,tt.Tf=x,tt.ub=y,x=a.diagram.model;var et=h0(x,y,!0);et!==""&&(tt.fromPortId=et),et=ra(x,y,!0),et!==void 0&&(et=a.Vb(et),et instanceof wn&&(tt.fromNode=et)),et=h0(x,y,!1),et!==""&&(tt.toPortId=et),et=ra(x,y,!1),et!==void 0&&(et=a.Vb(et),et instanceof wn&&(tt.toNode=et)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=tt)}),a.tp&&(tt.Jg="Tool"),a.diagram.add(tt),tt.ub=null,tt.data=y,a.diagram.skipsModelSourceBindings=b}}}}ao.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)})}ao.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ao.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ao.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ao.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ao.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ao.prototype.findPartForKey=function(a){var y=Pi.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ao.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ao.prototype.doModelChanged=function(a){var y=this;if(Pi.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 tt=a.modelChange;if(tt!==""){if(b===tr){if(tt==="linkFromKey"){var et=this.Kc(a.object);if(et!==null){var nt=this.Vb(a.newValue);et.fromNode=nt}}else if(tt==="linkToKey"){var ht=this.Kc(a.object);if(ht!==null){var gt=this.Vb(a.newValue);ht.toNode=gt}}else if(tt==="linkFromPortId"){var bt=this.Kc(a.object);if(bt!==null){var Pt=a.newValue;typeof Pt=="string"&&(bt.fromPortId=Pt)}}else if(tt==="linkToPortId"){var Nt=this.Kc(a.object);if(Nt!==null){var zt=a.newValue;typeof zt=="string"&&(Nt.toPortId=zt)}}else if(tt==="nodeGroupKey"){var Vt=this.Lc(a.object);if(Vt!==null){var Zt=a.newValue;if(Zt!==void 0){var oe=this.Vb(Zt);oe instanceof Un?Vt.containingGroup=oe:Vt.containingGroup=null}else Vt.containingGroup=null}}else if(tt==="linkLabelKeys"){var Pe=this.Kc(a.object);if(Pe!==null){var de=a.oldValue,Le=a.newValue;Array.isArray(de)&&de.forEach(function(rn){0<=Le.indexOf(rn)||(rn=y.Vb(rn),rn!==null&&(rn.labeledLink=null))}),Array.isArray(Le)&&Le.forEach(function(rn){rn=y.Vb(rn),rn!==null&&(rn.labeledLink=Pe)})}}else if(tt==="linkCategory"){var Oe=this.Kc(a.object),De=a.newValue;Oe!==null&&typeof De=="string"&&(Oe.category=De)}else tt==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===Ar){var Re=a.newValue;if(tt==="linkDataArray"&&typeof Re=="object"&&Re!==null)yS(this,Re);else if(tt==="linkLabelKeys"&&Rh(Re)){var Ve=this.Kc(a.object),Sn=this.Vb(Re);Ve!==null&&Sn!==null&&(Sn.labeledLink=Ve)}x.isModified=!0}else if(b===Hr){var Mn=a.oldValue;if(tt==="linkDataArray"&&typeof Mn=="object"&&Mn!==null)this.ip(Mn);else if(tt==="linkLabelKeys"&&Rh(Mn)){var Pn=this.Vb(Mn);Pn!==null&&(Pn.labeledLink=null)}x.isModified=!0}}else if(b===tr){var hn=a.propertyName;a.object!==x.model||hn!=="linkFromKeyProperty"&&hn!=="linkToKeyProperty"&&hn!=="linkFromPortIdProperty"&&hn!=="linkToPortIdProperty"&&hn!=="linkLabelKeysProperty"&&hn!=="nodeIsGroupProperty"&&hn!=="nodeGroupKeyProperty"&&hn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ao.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new gn,b=y.linkDataArray;b.forEach(function(et){x.add(et)});var tt=[];this.links.each(function(et){et.data===null||x.contains(et.data)||tt.push(et.data)}),tt.forEach(function(et){_S(y,et,!1)}),b.forEach(function(et){a.Kc(et)===null&&TS(y,et,!1)})},ao.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 cn){var tt=ra(b,y,!0);if(tt=x.Vb(tt),a.fromNode=tt,tt=ra(b,y,!1),tt=x.Vb(tt),a.toNode=tt,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){tt=y[0];var et=a.labelNodes.first();if(b.wa(et.data)===tt)return}tt=new gn().addAll(y);var nt=new gn;a.labelNodes.each(function(ht){ht.data!==null&&(ht=b.wa(ht.data),ht!==void 0&&nt.add(ht))}),y=nt.copy(),y.hp(tt),tt=tt.copy(),tt.hp(nt),(0<y.count||0<tt.count)&&(y.each(function(ht){ht=x.Vb(ht),ht!==null&&ht.labeledLink===a&&(ht.labeledLink=null)}),tt.each(function(ht){ht=x.Vb(ht),ht!==null&&ht.labeledLink!==a&&(ht.labeledLink=a)}))}}else!(a instanceof di)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Un)&&(a.containingGroup=y)}}},ao.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=ag(y,x),tt=this.Lc(a);if(b!==null&&tt!==null){b=b.iterator;for(var et={};b.next();){var nt=b.value;y.lb(nt)?tt instanceof Un&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=tt)):(et.link=this.Kc(nt),et.link!==null&&tt instanceof wn&&(ra(y,nt,!0)===x&&(et.link.fromNode=tt),ra(y,nt,!1)===x&&(et.link.toNode=tt),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ht){return function(gt){return gt===x?(tt.labeledLink=ht.link,!0):!1}}(et)))),et={link:et.link}}ll(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Un&&(tt.containingGroup=a))}},ao.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof wn){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)al(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&al(y,x,b.data)),a instanceof Un)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&al(y,x,b)}}},ao.prototype.copyPartData=function(a,y){var x=Pi.prototype.copyPartData.call(this,a,y);if(a instanceof cn)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},ao.prototype.insertLink=function(a,y,x,b){var tt=this.diagram,et=tt.model,nt=tt.toolManager.findTool("Linking"),ht="";if(a!==null&&(y===null&&(y=a),ht=y.portId,ht===null&&(ht="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=nt.archetypeLinkData,b instanceof cn){if(Oa(b),et=b.copy(),et!==null)return et.fromNode=a,et.fromPortId=ht,et.toNode=x,et.toPortId=y,tt.add(et),a=nt.archetypeLabelNodeData,a instanceof wn&&(Oa(a),a=a.copy(),a!==null&&(a.labeledLink=et,tt.add(a))),et}else if(b!==null&&(b=et.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Od(et,b,et.wa(a.data),!0),jd(et,b,ht,!0),x!==null&&Od(et,b,et.wa(x.data),!1),jd(et,b,y,!1),et.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof wn||(a=et.copyNodeData(a),typeof a=="object"&&a!==null&&(et.xf(a),a=et.wa(a),a!==void 0&&et.Bu(b,a))),tt.Kc(b);return null},ao.prototype.findLinkForKey=ao.prototype.findLinkForKey,ao.prototype.findPartForKey=ao.prototype.findPartForKey,ao.prototype.removeAllModeledParts=ao.prototype.removeAllModeledParts,ao.prototype.addModeledParts=ao.prototype.addModeledParts,ao.prototype.addAllModeledParts=ao.prototype.addAllModeledParts,ao.className="GraphLinksPartManager";function ya(){Pi.apply(this,arguments),this.Sg=null}en(ya,Pi);function a0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),tt=y,et=x;if(a.diagram.isTreePathToChildren||(tt=x,et=y),(b===null||!ts(b,tt,et,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Oa(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=tt,b.toNode=et,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}ya.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},ya.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},ya.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 tt=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=tt}},ya.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 tt=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=tt}else b.qe(a.data,b.wa(y))},ya.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},ya.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},ya.prototype.doModelChanged=function(a){if(Pi.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===tr){if(b==="nodeParentKey"){var tt=a.object,et=this.Vb(a.newValue),nt=this.ii(tt);if(this.Sg!==null)et!==null&&(this.Sg.data=tt,this.Sg.category=this.getLinkCategoryForData(tt));else if(nt!==null){var ht=nt.kh();ht!==null?et===null?y.remove(ht):y.isTreePathToChildren?ht.fromNode=et:ht.toNode=et:a0(this,et,nt)}}else if(b==="parentLinkCategory"){var gt=this.ii(a.object),bt=a.newValue;if(gt!==null&&typeof bt=="string"){var Pt=gt.kh();Pt!==null&&(Pt.category=bt)}}y.isModified=!0}}else if(x===tr){var Nt=a.propertyName;a.object===y.model&&Nt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},ya.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof wn&&(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&&wp(x,b,!1)))}}},ya.prototype.updateDataBindings=function(a,y){Pi.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},ya.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=ag(y,x),tt=this.Lc(a);if(b!==null&&tt!==null){for(b=b.iterator;b.next();){var et=b.value;y.lb(et)&&tt instanceof wn&&y.mh(et)===x&&a0(this,tt,this.ii(et))}ll(y,x)}a=y.mh(a),a!==void 0&&tt instanceof wn&&(a=this.Vb(a),a0(this,a,tt))}},ya.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof wn){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var tt=b.layer;if(tt!==null){var et=tt.pc(-1,b,!1);0<=et&&this.diagram.cb(Hr,"parts",tt,b,null,et,null),et=b.layerChanged,et!==null&&et(b,tt,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)tt=a.value,tt=(b?tt.toNode:tt.fromNode).data,y.lb(tt)&&al(y,x,tt)}},ya.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,tt=x;return this.diagram.isTreePathToChildren||(b=x,tt=a),b!==null&&tt!==null?(y.qe(tt.data,y.wa(b.data)),tt.kh()):null},ya.prototype.findLinkForKey=ya.prototype.findLinkForKey,ya.className="TreePartManager";function Ln(a,y){this.kl=new gn,this.il=new gn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,qi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Rn,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 Rn,this.Lt=new vn,this.Wg=!1,this.o=null,this.undoManager=new or,a!==void 0&&(Cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ln.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},Ln.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ln.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ln.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 tt=a[b];y+=" "+this.wa(tt)+":"+ur(tt)}}return y},Ln.prototype.xA=function(a){a.change!==Rs&&We("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof so?(xS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ln.prototype.Qv=function(a,y){var x=this,b=!1,tt=new gn,et=new gn,nt=new gn,ht=this.vh;a.changes.each(function(Nt){Nt.model===x&&(Nt.modelChange==="nodeDataArray"?Nt.change===Ar?tt.add(Nt.newValue):Nt.change===Hr&&nt.add(Nt.oldValue):x.lb(Nt.object)?et.add(Nt.object):Nt.change!==tr||x.modelData!==Nt.object&&Nt.propertyName!=="modelData"?Nt.object!==null&&(ht&&ht.contains(Nt.object)?ht.get(Nt.object).each(function(zt){x.lb(zt)&&et.add(zt)}):Nt.object instanceof Ln||x.ri()&&x.Jc(Nt.object)||bS(x,Nt.object).each(function(zt){et.add(zt)})):b=!0)});var gt=this.il;gt.clear(),tt.each(function(Nt){gt.add(x.wa(Nt)),y||et.add(Nt)});var bt=this.kl;bt.clear(),nt.each(function(Nt){bt.add(x.wa(Nt)),y&&et.add(Nt)}),a=x.cloneDeep(et.Fa());var Pt=null;return b&&(Pt===null&&(Pt={}),Pt.modelData=this.cloneDeep(this.modelData)),0<gt.count&&(Pt===null&&(Pt={}),y?Pt.removedNodeKeys=gt.Fa():Pt.insertedNodeKeys=gt.Fa()),0<a.length&&(Pt===null&&(Pt={}),Pt.modifiedNodeData=a),0<bt.count&&(Pt===null&&(Pt={}),y?Pt.insertedNodeKeys=bt.Fa():Pt.removedNodeKeys=bt.Fa()),bt.clear(),gt.clear(),Pt},Ln.prototype.cloneDeep=function(a){return _d(this,a,!0)};function _d(a,y,x,b,tt,et){function nt(Nt,zt){ht?(Nt.__gohashid===void 0&&et.push(Nt),b.set(Nt,zt)):(Nt=Zo++,b.set(Nt,zt),tt.set(Nt,y))}if(!on(y))return y;et||(et=[]);var ht=Object.isExtensible(y);if(b||(b=new Rn),ht){var gt=b.get(y);if(gt)return gt}else for(tt||(tt=new Rn),gt=tt.iterator;gt.next();){var bt=gt.key;if(gt.value===y&&(bt=b.get(bt)))return bt}if(Array.isArray(y)){gt=[],nt(y,gt);for(var Pt=0;Pt<y.length;Pt++)gt.push(_d(a,y[Pt],!1,b,tt,et))}else if(y instanceof Ee||y instanceof xn||y instanceof $e||y instanceof Yn||y instanceof jn)gt=y.copy(),nt(y,gt);else{if(y instanceof bi||y instanceof pn||y instanceof sn)return y;if(y instanceof vn)gt=new vn().addAll(_d(a,y.Fa(),!1,b,tt,et)),nt(y,gt);else if(y instanceof gn)gt=new gn().addAll(_d(a,y.Fa(),!1,b,tt,et)),nt(y,gt);else if(y instanceof Rn)gt=new Rn().addAll(_d(a,y.Fa(),!1,b,tt,et)),nt(y,gt);else if(y instanceof Date)gt=new Date(y.getTime()),nt(y,gt);else if(y instanceof RegExp)gt=new RegExp(y),nt(y,gt),gt.lastIndex=y.lastIndex;else if(typeof y.copy=="function")gt=y.copy(),nt(y,gt);else for(Pt in gt={},nt(y,gt),y)Pt!=="__gohashid"&&(gt[Pt]=_d(a,y[Pt],!1,b,tt,et))}return x&&et.forEach(function(Nt){delete Nt.__gohashid}),gt}ee=Ln.prototype,ee.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},ee.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},ee.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function wS(a,y){y=y.modelData,on(y)&&(a.dm(y),a.modelData=y)}ee.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+hy(this,this.modelData)),a+`,
"nodeDataArray": `+Bh(this,this.nodeDataArray,!0)},ee.kv=function(a){wS(this,a),a=a.nodeDataArray,Cn(a)&&(this.dm(a),this.nodeDataArray=a)};function xS(a,y){function x(tt,et){if((et=et.part)&&(et=et.data,tt!==et)){var nt=b.get(tt);nt===null?(nt=new gn,nt.add(et),b.add(tt,nt)):nt.add(et)}}var b=a.vh;b===null&&(b=new Rn,y.changes.each(function(tt){if(tt.diagram!==null){var et=tt.change;et===tr?(tt=tt.object.panel)&&(et=tt.data)&&x(et,tt):(et===Ar||et===Hr)&&(tt=tt.object,(et=tt.itemArray)&&x(et,tt))}}),a.vh=b)}function bS(a,y){for(var x=new gn,b=0;b<a.nodeDataArray.length;b++){var tt=a.nodeDataArray[b];l0(a,y,tt,tt,x)}return x}function l0(a,y,x,b,tt){if(Array.isArray(x))for(var et=0;et<x.length;et++){var nt=x[et];if(nt===y)return tt.add(b),!0;if(l0(a,y,nt,b,tt))return!0}else if(on(x)&&Object.getPrototypeOf(x)===Object.prototype)for(et in x){if(nt=x[et],nt===y)return tt.add(b),!0;if(l0(a,y,nt,b,tt))return!0}return!1}ee.Pv=function(a,y){var x=this,b=!1,tt=new gn,et=new gn,nt=new gn,ht=this.vh;a.changes.each(function(Pt){Pt.model===x&&(Pt.modelChange==="nodeDataArray"?Pt.change===Ar?tt.add(Pt.newValue):Pt.change===Hr&&nt.add(Pt.oldValue):x.lb(Pt.object)?et.add(Pt.object):Pt.change!==tr||x.modelData!==Pt.object&&Pt.propertyName!=="modelData"?Pt.object!==null&&(ht&&ht.contains(Pt.object)?ht.get(Pt.object).each(function(Nt){x.lb(Nt)&&et.add(Nt)}):Pt.object instanceof Ln||x.ri()&&x.Jc(Pt.object)||bS(x,Pt.object).each(function(Nt){et.add(Nt)})):b=!0)});var gt=this.il;gt.clear(),tt.each(function(Pt){gt.add(x.wa(Pt)),y||et.add(Pt)});var bt=this.kl;return bt.clear(),nt.each(function(Pt){bt.add(x.wa(Pt)),y&&et.add(Pt)}),a="",b&&(a+=`,
"modelData": `+hy(this,this.modelData)),0<gt.count&&(a+=(y?this.Yv:this.Wv)+Bh(this,gt.Fa(),!0)),0<et.count&&(a+=this.jy+Bh(this,et.Fa(),!0)),0<bt.count&&(a+=(y?this.Wv:this.Yv)+Bh(this,bt.Fa(),!0)),bt.clear(),gt.clear(),a},ee.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"),wS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Rn;if(Array.isArray(x))for(var tt=0;tt<x.length;tt++){var et=x[tt],nt=this.wa(et);nt!=null&&b.set(nt,et)}if(Array.isArray(y))for(tt=y.length,et=0;et<tt;et++){nt=y[et];var ht=this.hc(nt);ht===null&&(ht=(ht=b.get(nt))?ht:this.copyNodeData({}),this.km(ht,nt),this.xf(ht))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(tt=x[b],et=this.wa(tt),et=this.hc(et),et!==null){for(var gt in tt)gt==="__gohashid"||gt===this.nodeKeyProperty||this.Wj()&&gt===this.nodeIsGroupProperty||this.setDataProperty(et,gt,tt[gt]);this.lm(tt,et)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,gt=0;gt<x;gt++)y=this.hc(a[gt]),y!==null&&this.cm(y)},ee.$x=function(a,y){a.change!==Rs&&We("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof so?(y===void 0&&(y=lg(this,this)),xS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},ee.yA=function(a,y){return this.$x(a,y)},ee.np=function(a){return a===void 0&&(a=lg(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},ee.toJSON=function(a){return this.np(a)},ee.Zw=function(a){var y=null;if(typeof a=="string")try{y=bn.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"))},ee.Ky=function(a){return this.Zw(a)},Ln.constructGraphLinksModel=function(){return new Ln},ee=Ln.prototype,ee.dm=function(a){if(Cn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(on(b)){var tt=x;b=this.dm(b),Array.isArray(a)?a[tt]=b:We("Cannot replace an object in an HTMLCollection or NodeList at "+tt)}}else if(on(a)){for(y in a)if(x=a[y],on(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(tt=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){tt=!1;break}if(tt){for(tt=new vn,b=0;b<x.length/2;b++)tt.add(new Ee(x[2*b],x[2*b+1]));tt.freeze(),a[y]=tt}}return Ow(a)}return a},ee.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()):Cn(a)?Bh(this,a):on(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function Bh(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var tt=new Qn;tt.add("["),x&&1<b&&tt.add(`
`);for(var et=0;et<b;et++){var nt=y[et];nt!==void 0&&(0<et&&(tt.add(","),x&&tt.add(`
`)),tt.add(a.sm(nt)))}return x&&1<b&&tt.add(`
`),tt.add("]"),tt.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function hs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var x=y;if(x instanceof Ee)y={class:"go.Point",x:hs(x.x),y:hs(x.y)};else if(x instanceof xn)y={class:"go.Size",width:hs(x.width),height:hs(x.height)};else if(x instanceof $e)y={class:"go.Rect",x:hs(x.x),y:hs(x.y),width:hs(x.width),height:hs(x.height)};else if(x instanceof Yn)y={class:"go.Margin",top:hs(x.top),right:hs(x.right),bottom:hs(x.bottom),left:hs(x.left)};else if(x instanceof jn)x.sb()?y={class:"go.Spot",x:hs(x.x),y:hs(x.y),offsetX:hs(x.offsetX),offsetY:hs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof bi){if(y={class:"go.Brush",type:x.type.name},x.type===Vu?y.color=x.color:(x.type===fu||x.type===ma)&&(y.start=x.start,y.end=x.end,x.type===ma&&(x.startRadius!==0&&(y.startRadius=hs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=hs(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 pn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=hs(x.startX)),x.startY!==0&&(y.startY=hs(x.startY)),x.endX!==0&&(y.endX=hs(x.endX)),x.endY!==0&&(y.endY=hs(x.endY)),x.spot1.D(vo)||(y.spot1=x.spot1),x.spot2.D(qo)||(y.spot2=x.spot2),x.type===pn.o&&(y.path=pn.ia(x))):x instanceof sn&&(y={class:"go.EnumValue",classType:lg(a,x.classType),name:x.name});b="{",x=!0;for(var tt in y){var et=Pr(y,tt);if(!PS(tt,et))if(x?x=!1:b+=",",b+=a.quote(tt)+":",tt==="points"&&et instanceof vn){var nt="[";for(et=et.iterator;et.next();){var ht=et.value;1<nt.length&&(nt+=","),nt+=a.sm(ht.x),nt+=",",nt+=a.sm(ht.y)}nt+="]",b+=nt}else b+=a.sm(et)}return b+"}"}function cs(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ow(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 Ee(cs(a.x),cs(a.y));else if(y==="Size")x=new xn(cs(a.width),cs(a.height));else if(y==="Rect")x=new $e(cs(a.x),cs(a.y),cs(a.width),cs(a.height));else if(y==="Margin")x=new Yn(cs(a.top),cs(a.right),cs(a.bottom),cs(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Ff(a.enum):x=new jn(cs(a.x),cs(a.y),cs(a.offsetX),cs(a.offsetY));else if(y==="Brush"){if(x=new bi,x.type=On(bi,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof jn&&(x.start=a.start),a.end instanceof jn&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=cs(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=cs(a.endRadius)),a=a.colorStops,on(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=pn.parse(a.path):x=new pn,x.type=On(pn,a.type),typeof a.startX=="number"&&(x.startX=cs(a.startX)),typeof a.startY=="number"&&(x.startY=cs(a.startY)),typeof a.endX=="number"&&(x.endX=cs(a.endX)),typeof a.endY=="number"&&(x.endY=cs(a.endY)),a.spot1 instanceof jn&&(x.spot1=a.spot1),a.spot2 instanceof jn&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=fy(b),typeof b=="function"&&(x=On(b,a.name)));return x}ee.Pe=function(a){return this.Lt.add(a),this},ee.ik=function(a){this.Lt.remove(a)},ee.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)},ee.cb=function(a,y,x,b,tt,et,nt){zr(this,"",a,y,x,b,tt,et,nt)},ee.g=function(a,y,x,b,tt){zr(this,"",tr,a,this,y,x,b,tt)},ee.Fs=function(a,y,x,b,tt,et){zr(this,"",tr,y,a,x,b,tt,et)};function zr(a,y,x,b,tt,et,nt,ht,gt){ht===void 0&&(ht=null),gt===void 0&&(gt=null);var bt=new nr;bt.model=a,bt.change=x,bt.modelChange=y,bt.propertyName=b,bt.object=tt,bt.oldValue=et,bt.oldParam=ht,bt.newValue=nt,bt.newParam=gt,a.ds(bt)}Ln.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===tr){var x=a.object,b=a.propertyName,tt=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),tt!==void 0&&this.kb.add(tt,x)),Ki(x,b,tt)}else a.change===Ar?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,on(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Wi(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&Zi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Cn(b)&&a.propertyName&&(b=Pr(a.object,a.propertyName)),Cn(b)&&typeof x=="number"&&(a=a.newValue,y?Wi(b,x):Zi(b,x,a))):We("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Hr?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,on(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&Zi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Wi(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Cn(b)&&a.propertyName&&(b=Pr(a.object,a.propertyName)),Cn(b)&&typeof x=="number"&&(a=a.oldValue,y?Zi(b,x,a):Wi(b,x))):We("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Rs&&We("unknown ChangedEvent: "+a.toString())},Ln.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ln.prototype.eb=function(a){return this.undoManager.eb(a)},Ln.prototype.Kf=function(){return this.undoManager.Kf()},Ln.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}},ee=Ln.prototype,ee.La=function(a,y){y===void 0&&(y=""),zr(this,"SourceChanged",Rs,y,a,null,null)},ee.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Pr(a,y),y!==void 0)){if(Rh(y))return y;We("Key value for node data "+a+" is not a number or a string: "+y)}}},ee.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Pr(a,x);b!==y&&this.hc(y)===null&&(Ki(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),zr(this,"nodeKey",tr,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ki(a,x,y)}};function Rh(a){return typeof a=="number"||typeof a=="string"}ee.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},ee.hc=function(a){return a===null&&We("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Rh(a)?this.kb.I(a):null},ee.$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))){Ki(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ki(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ki(a,y,x)}}}}},ee.xf=function(a){a!==null&&(Io(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&We("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,Zi(a.Tc,b,y)),zr(a,"nodeDataArray",Ar,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}ee.Fy=function(a){if(Cn(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)},ee.cm=function(a){a!==null&&ES(this,a,!0)};function ES(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var tt=0;tt<b;tt++)if(x[tt]===y){b=tt;break t}b=-1}if(0>b)return;Wi(a.Tc,b)}zr(a,"nodeDataArray",Hr,"nodeDataArray",a,y,null,b,null),a.qp(y)}ee.nA=function(a){if(Cn(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)},ee.$z=function(a){if(a!==this.nodeDataArray&&Cn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,tt=0;tt<b;tt++){var et=a[tt],nt=this.wa(et);if(nt!==void 0){x.add(nt);var ht=this.hc(nt);ht!==et&&(ht!==null?(this.Do(ht,et),this.lm(et,ht)):(et=this.cloneDeep(et),this.km(et,nt),this.xf(et)))}else nt=this.cloneDeep(et),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()}},ee.jp=function(a,y){y!==void 0&&(a=ag(this,a),a instanceof gn&&this.Vf.add(y,a))},ee.Lv=function(){},ee.fm=function(){},ee.em=function(){},ee.qp=function(){};function al(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new gn,a.Vf.add(y,b)),b.add(x)}}function ll(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof gn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function ag(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof gn?a:null)}ee.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ln.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):u0(this,a,!0),on(a)&&qi(a),a};function u0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var tt=u0(a,y[x],a.copiesArrayObjects);b.push(tt)}return qi(b),b}if(x&&on(y)){x=(x=y.constructor)?new x:{},tt=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===tt)x[tt]=void 0;else{var et=Pr(y,b),nt=lg(a,et);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||et instanceof Ln||et instanceof or||et instanceof so||et instanceof nr||(et=u0(a,et,!1)),Ki(x,b,et)}return qi(x),x}return y instanceof Ee||y instanceof xn||y instanceof $e||y instanceof jn||y instanceof Yn?y.copy():y}Ln.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!AS&&a instanceof ze&&(AS=!0,pr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),pr(" Is that really your intent?"));var b=Pr(a,y);b!==x&&(Ki(a,y,x),this.Fs(a,y,b,x))},ee=Ln.prototype,ee.set=function(a,y,x){this.setDataProperty(a,y,x)},ee.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])}},ee.Ay=function(a,y){this.ts(a,-1,y)},ee.ts=function(a,y,x){0>y&&(y=a.length),Zi(a,y,x),zr(this,"",Ar,"",a,null,x,null,y)},ee.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];Wi(a,y),zr(this,"",Hr,"",a,x,null,y,null)},ee.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Pr(a,y),y===void 0))return"";if(typeof y=="string")return y;We("getCategoryForNodeData found a non-string category for "+a+": "+y)},ee.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Pr(a,x);b===void 0&&(b=""),b!==y&&(Ki(a,x,y),zr(this,"nodeCategory",tr,x,a,b,y))}else Ki(a,x,y)}},ee.lm=function(a,y){this.jm(y,this.Ro(a))},ee.Tl=function(){return!1},ee.Wj=function(){return!1},ee.ri=function(){return!1},ee.xs=function(){return!1},ee.Xj=function(){return!1};function cy(){return new Ln}function lg(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 lg(a,y.constructor);return typeof y}function fy(a){return Ka[a]?Ka[a]:bn.go!==void 0&&bn.go[a]?bn.go[a]:null}function Pr(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 Ki(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){}}qe.Object.defineProperties(Ln.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 tt=a[b];on(tt)||We("Model.nodeDataArray must only contain Objects, not: "+tt),Io(tt)}for(this.Tc=a,b=new vn,tt=0;tt<x;tt++){var et=a[tt],nt=this.wa(et);nt===void 0||this.kb.I(nt)!==null?b.add(et):this.kb.add(nt,et)}for(b=b.iterator;b.next();)tt=b.value,this.$u(tt),et=this.wa(tt),et!==void 0&&this.kb.add(et,tt);for(zr(this,"nodeDataArray",tr,"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"}}}),Ln.prototype.setCategoryForNodeData=Ln.prototype.jm,Ln.prototype.getCategoryForNodeData=Ln.prototype.Ro,Ln.prototype.removeArrayItem=Ln.prototype.ov,Ln.prototype.insertArrayItem=Ln.prototype.ts,Ln.prototype.addArrayItem=Ln.prototype.Ay,Ln.prototype.assignAllDataProperties=Ln.prototype.Do,Ln.prototype.set=Ln.prototype.set,Ln.prototype.clearUnresolvedReferences=Ln.prototype.Qy,Ln.prototype.mergeNodeDataArray=Ln.prototype.$z,Ln.prototype.removeNodeDataCollection=Ln.prototype.nA,Ln.prototype.removeNodeData=Ln.prototype.cm,Ln.prototype.addNodeDataCollection=Ln.prototype.Fy,Ln.prototype.addNodeData=Ln.prototype.xf,Ln.prototype.makeNodeDataKeyUnique=Ln.prototype.$u,Ln.prototype.findNodeDataForKey=Ln.prototype.hc,Ln.prototype.containsNodeData=Ln.prototype.lb,Ln.prototype.setKeyForNodeData=Ln.prototype.km,Ln.prototype.getKeyForNodeData=Ln.prototype.wa,Ln.prototype.updateTargetBindings=Ln.prototype.La,Ln.prototype.commit=Ln.prototype.commit,Ln.prototype.rollbackTransaction=Ln.prototype.Kf,Ln.prototype.commitTransaction=Ln.prototype.eb,Ln.prototype.startTransaction=Ln.prototype.Ea,Ln.prototype.raiseDataChanged=Ln.prototype.Fs,Ln.prototype.raiseChanged=Ln.prototype.g,Ln.prototype.raiseChangedEvent=Ln.prototype.cb,Ln.prototype.removeChangedListener=Ln.prototype.ik,Ln.prototype.addChangedListener=Ln.prototype.Pe,Ln.prototype.writeJsonValue=Ln.prototype.sm,Ln.prototype.replaceJsonObjects=Ln.prototype.dm,Ln.prototype.applyIncrementalJSON=Ln.prototype.Ky,Ln.prototype.applyIncrementalJson=Ln.prototype.Zw,Ln.prototype.toJSON=Ln.prototype.toJSON,Ln.prototype.toJson=Ln.prototype.np,Ln.prototype.toIncrementalJSON=Ln.prototype.yA,Ln.prototype.toIncrementalJson=Ln.prototype.$x,Ln.prototype.toIncrementalData=Ln.prototype.xA,Ln.prototype.clear=Ln.prototype.clear;var AS=!1,Ka={};Ln.className="Model",Ln.fromJSON=Ln.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=bn.JSON.parse(a)}catch(et){}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 tt=null;b.indexOf("go.")===0?(b=b.substr(3),tt=fy(b)):(tt=fy(b),tt===null&&(tt=bn[b])),typeof tt=="function"&&(a=new tt)}catch(et){}a===null||a instanceof Ln?y=a:We("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ln.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ln.safePropertyValue=Pr,Ln.safePropertySet=Ki,Ka.Brush=bi,Ka.ChangedEvent=nr,Ka.Geometry=pn,Ka.Margin=Yn,Ka.Panel=un,Ka.Point=Ee,Ka.Rect=$e,Ka.Size=xn,Ka.Spot=jn,Ka.Transaction=so,Ka.UndoManager=or;function Lr(a,y,x,b){qi(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=kS,this.wk=null):(this.el=ug,this.wk=b),this.st=new gn}Lr.prototype.copy=function(){var a=new Lr;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},ee=Lr.prototype,ee.qb=function(a){a.classType===Lr&&(this.mode=a)},ee.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return this._isFrozen=!1,this},ee.Kx=function(a){return a===void 0&&(a=null),this.mode=ug,this.backConverter=a,this},ee.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},ee.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function MS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}ee.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var tt=this.Im;if(tt===null&&x==="")pr("Binding error: target property is the empty string: "+this.toString());else{var et=y;if(b!==""&&(et=Pr(y,b)),et!==void 0)if(tt===null)x!==""&&Ki(a,x,et);else try{if(x!==""){var nt=tt(et,a);Ki(a,x,nt)}else tt(et,a)}catch(ht){}}}},ee.sp=function(a,y,x,b){if(this.el===ug){var tt=this.xl;if(x===void 0||tt===x){x=this.sl;var et=this.wk,nt=a;if(tt!==""&&(nt=Pr(a,tt)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ht=b!==null?b.diagram:null,gt=ht!==null?ht.model:null;if(et===null){if(x!=="")gt!==null?gt.setDataProperty(y,x,nt):Ki(y,x,nt);else if(gt!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var bt=b.itemIndex,Pt=b.panel.itemArray;gt.ov(Pt,bt),gt.ts(Pt,bt,nt)}}else try{if(x!==""){var Nt=et(nt,y,gt);gt!==null?gt.setDataProperty(y,x,Nt):Ki(y,x,Nt)}else{var zt=et(nt,y,gt);if(zt!==void 0&&gt!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Vt=b.itemIndex,Zt=b.panel.itemArray;gt.ov(Zt,Vt),gt.ts(Zt,Vt,zt)}}}catch(oe){}}finally{this.st.remove(a)}}}},qe.Object.defineProperties(Lr.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Nn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Nn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Nn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Nn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Nn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Nn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Nn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Nn(this),this.el=a}}}),Lr.prototype.updateSource=Lr.prototype.sp,Lr.prototype.updateTarget=Lr.prototype.Mv,Lr.prototype.ofModel=Lr.prototype.dA,Lr.prototype.ofObject=Lr.prototype.cp,Lr.prototype.makeTwoWay=Lr.prototype.Kx;var jw="Binding",kS=new sn(Lr,"OneWay",1),ug=new sn(Lr,"TwoWay",2);Lr.className="Binding",Lr.parseEnum=function(a,y){return function(x){return x=On(a,x),x===null?y:x}},Lr.toString=ur,Lr.OneWay=kS,Lr.TwoWay=ug;function li(a,y,x){Ln.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new gn,this.wb=new Rn,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&&(Cn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}en(li,Ln),li.constructGraphLinksModel=Ln.constructGraphLinksModel,li.prototype.cloneProtected=function(a){Ln.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},ee=li.prototype,ee.clear=function(){Ln.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},ee.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 tt=a[b];y+=" "+this.wa(tt)+":"+ur(tt)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)tt=a[b],y+=" "+ra(this,tt,!0)+"-->"+ra(this,tt,!1)}return y},ee.Qv=function(a,y){this.linkKeyProperty===""&&We("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ln.prototype.Qv.call(this,a,y),b=this,tt=new gn,et=new gn,nt=new gn,ht=this.vh;a.changes.each(function(Pt){Pt.model===b&&(Pt.modelChange==="linkDataArray"?Pt.change===Ar?tt.add(Pt.newValue):Pt.change===Hr&&nt.add(Pt.oldValue):b.Jc(Pt.object)?et.add(Pt.object):Pt.object!==null&&(Pt.object!==null&&ht&&ht.contains(Pt.object)?ht.get(Pt.object).each(function(Nt){b.Jc(Nt)&&et.add(Nt)}):Pt.object instanceof Ln||b.lb(Pt.object)||LS(b,Pt.object).each(function(Nt){et.add(Nt)})))});var gt=this.il;gt.clear(),tt.each(function(Pt){gt.add(b.Ac(Pt)),y||et.add(Pt)});var bt=this.kl;return bt.clear(),nt.each(function(Pt){bt.add(b.Ac(Pt)),y&&et.add(Pt)}),a=b.cloneDeep(et.Fa()),0<gt.count&&(x===null&&(x={}),y?x.removedLinkKeys=gt.Fa():x.insertedLinkKeys=gt.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<bt.count&&(x===null&&(x={}),y?x.insertedLinkKeys=bt.Fa():x.removedLinkKeys=bt.Fa()),bt.clear(),gt.clear(),x},ee.rm=function(){var a=Ln.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},ee.gp=function(a){Ln.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)},ee.Rv=function(){var a=Ln.prototype.Rv.call(this),y=`,
"linkDataArray": `+Bh(this,this.linkDataArray,!0);return a+y},ee.kv=function(a){Ln.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function LS(a,y){for(var x=new gn,b=0;b<a.linkDataArray.length;b++){var tt=a.linkDataArray[b];l0(a,y,tt,tt,x)}return x}ee.Pv=function(a,y){this.linkKeyProperty===""&&We("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ln.prototype.Pv.call(this,a,y),b=this,tt=new gn,et=new gn,nt=new gn,ht=this.vh;a.changes.each(function(Pt){Pt.model===b&&(Pt.modelChange==="linkDataArray"?Pt.change===Ar?tt.add(Pt.newValue):Pt.change===Hr&&nt.add(Pt.oldValue):b.Jc(Pt.object)?et.add(Pt.object):Pt.object!==null&&(Pt.object!==null&&ht&&ht.contains(Pt.object)?ht.get(Pt.object).each(function(Nt){b.Jc(Nt)&&et.add(Nt)}):Pt.object instanceof Ln||b.lb(Pt.object)||LS(b,Pt.object).each(function(Nt){et.add(Nt)})))});var gt=this.il;gt.clear(),tt.each(function(Pt){gt.add(b.Ac(Pt)),y||et.add(Pt)});var bt=this.kl;return bt.clear(),nt.each(function(Pt){bt.add(b.Ac(Pt)),y&&et.add(Pt)}),a=x,0<gt.count&&(a+=(y?this.Xv:this.Vv)+Bh(this,gt.Fa(),!0)),0<et.count&&(a+=this.iy+Bh(this,et.Fa(),!0)),0<bt.count&&(a+=(y?this.Vv:this.Xv)+Bh(this,bt.Fa(),!0)),bt.clear(),gt.clear(),a},ee.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"),Ln.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var tt=y[b],et=this.jh(tt);et===null&&(et=this.Jo({}),this.Ks(et,tt),this.fi(et))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(tt=y[b],et=this.Ac(tt),et=this.jh(et),et!==null){for(var nt in tt)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(et,nt,tt[nt]);OS(this,tt,et)}}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)},li.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===tr){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var tt=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),tt!==void 0&&this.wb.add(tt,x),Ki(x,b,tt);return}}else if(a.change===Ar){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,on(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===Hr){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,on(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}}Ln.prototype.changeState.call(this,a,y)}},ee=li.prototype,ee.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),Ki(x,this.nodeKeyProperty,a),this.xf(x))}return a}},ee.yx=function(a){return ra(this,a,!0)},ee.wv=function(a,y){Od(this,a,y,!0)},ee.Bx=function(a){return ra(this,a,!1)},ee.Bv=function(a,y){Od(this,a,y,!1)};function ra(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Pr(y,a),a!==void 0))){if(Rh(a))return a;We((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Od(a,y,x,b){if(x===null&&(x=void 0),y!==null){var tt=b?a.lf:a.mf;if(tt!=="")if(x=a.Vl(x),a.Jc(y)){var et=Pr(y,tt);et!==x&&(ll(a,et,y),Ki(y,tt,x),a.hc(x)===null&&al(a,x,y),zr(a,b?"linkFromKey":"linkToKey",tr,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Ki(y,tt,x)}}ee.zx=function(a){return h0(this,a,!0)},ee.xv=function(a,y){jd(this,a,y,!0)},ee.Cx=function(a){return h0(this,a,!1)},ee.Cv=function(a,y){jd(this,a,y,!1)};function h0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Pr(y,a),y===void 0?"":y)}function jd(a,y,x,b){if(y!==null){var tt=b?a.ej:a.fj;if(tt!=="")if(a.Jc(y)){var et=Pr(y,tt);et===void 0&&(et=""),et!==x&&(Ki(y,tt,x),zr(a,b?"linkFromPortId":"linkToPortId",tr,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Ki(y,tt,x)}}ee.Ef=function(a){if(a===null)return c0;var y=this.je;return y===""?c0:(a=Pr(a,y),a===void 0?c0:a)},ee.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);if(b===void 0&&(b=c0),b!==y){if(Array.isArray(b))for(var tt=b.length,et=0;et<tt;et++)ll(this,b[et],a);for(Ki(a,x,y),tt=y.length,et=0;et<tt;et++){var nt=y[et];this.hc(nt)===null&&al(this,nt,a)}zr(this,"linkLabelKeys",tr,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ki(a,x,y)}},ee.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Pr(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var tt=b.indexOf(y);0<=tt||(tt=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&al(this,y,a),zr(this,"linkLabelKeys",Ar,x,a,null,y,null,tt)))}else We(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},ee.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Pr(a,x);if(Array.isArray(b)){var tt=b.indexOf(y);0>tt||(b.splice(tt,1),this.Jc(a)&&(ll(this,y,a),zr(this,"linkLabelKeys",Hr,x,a,y,null,tt,null)))}else b!==void 0&&We(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ee.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Pr(a,y),y!==void 0)){if(Rh(y))return y;We("Key value for link data "+a+" is not a number or a string: "+y)}}},ee.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);b!==y&&this.jh(y)===null&&(Ki(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),zr(this,"linkKey",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},ee.jh=function(a){return a===null&&We("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Rh(a)?this.wb.I(a):null},ee.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))){Ki(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ki(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ki(a,y,x)}}}}},ee.Jc=function(a){return a===null?!1:this.$f.contains(a)},ee.fi=function(a){a!==null&&(Io(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)),zr(a,"linkDataArray",Ar,"linkDataArray",a,null,y,null,b),dy(a,y)}ee.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)},ee.bm=function(a){a!==null&&_S(this,a,!0)};function _S(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(zr(a,"linkDataArray",Hr,"linkDataArray",a,y,null,b,null),x=ra(a,y,!0),ll(a,x,y),x=ra(a,y,!1),ll(a,x,y),b=a.Ef(y),Array.isArray(b))for(var tt=b.length,et=0;et<tt;et++)x=b[et],ll(a,x,y)}ee.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)},ee.Zz=function(a){if(this.linkKeyProperty===""&&We("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Cn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,tt=0;tt<b;tt++){var et=a[tt],nt=this.Ac(et);if(nt!==void 0){x.add(nt);var ht=this.jh(nt);ht!==et&&(ht!==null?(this.Do(ht,et),OS(this,et,ht)):(et=this.cloneDeep(et),this.Ks(et,nt),this.fi(et)))}else nt=this.cloneDeep(et),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 dy(a,y){var x=ra(a,y,!0);x=a.Vl(x),a.hc(x)===null&&al(a,x,y),x=ra(a,y,!1),x=a.Vl(x),a.hc(x)===null&&al(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var tt=b.length,et=0;et<tt;et++)x=b[et],a.hc(x)===null&&al(a,x,y)}ee.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):u0(this,a,!0),on(a)&&(qi(a),this.lf!==""&&Ki(a,this.lf,void 0),this.mf!==""&&Ki(a,this.mf,void 0),this.je!==""&&Ki(a,this.je,[])),a},ee.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Pr(a,y)},ee.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Pr(a,y),y!==void 0)){if(Rh(y))return y;We("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},ee.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Pr(a,x);b!==y&&(ll(this,b,a),Ki(a,x,y),this.hc(y)===null&&al(this,y,a),zr(this,"nodeGroupKey",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},li.prototype.copyNodeData=function(a){return a===null?null:(a=Ln.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Pr(a,this.Je)===void 0||Ki(a,this.Je,void 0),a)},li.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){Od(this,a,x,!0);return}if(y===this.linkToKeyProperty){Od(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){jd(this,a,x,!0);return}if(y===this.linkToPortIdProperty){jd(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=Pr(a,y);b!==x&&(Ki(a,y,x),this.Fs(a,y,b,x))},ee=li.prototype,ee.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),tt;for(tt in y)tt==="__gohashid"||x&&tt===this.nodeKeyProperty||x&&tt===this.nodeIsGroupProperty&&Pr(a,tt)===y[tt]||b&&tt===this.linkKeyProperty||this.setDataProperty(a,tt,y[tt])}},ee.jp=function(a,y){Ln.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,tt=a,et=y;if(ra(this,b,!0)===tt){var nt=this.lf;Ki(b,nt,et),zr(this,"linkFromKey",tr,nt,b,tt,et),typeof nt=="string"&&this.La(b,nt)}if(ra(this,b,!1)===tt&&(nt=this.mf,Ki(b,nt,et),zr(this,"linkToKey",tr,nt,b,tt,et),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var ht=nt.length,gt=this.je,bt=0;bt<ht;bt++)nt[bt]===tt&&(nt[bt]=et,zr(this,"linkLabelKeys",Ar,gt,b,tt,et,bt,bt))}},ee.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ki(a,b,x),zr(this,"nodeGroupKey",tr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ee.Lv=function(){Ln.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)dy(this,a[x])},ee.fm=function(a){Ln.prototype.fm.call(this,a),a=this.wa(a);var y=ag(this,a);if(y!==null){var x=oi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var tt=this.Je;zr(this,"nodeGroupKey",tr,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)}}else if(ra(this,b,!0)===a&&(tt=this.lf,zr(this,"linkFromKey",tr,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)),ra(this,b,!1)===a&&(tt=this.mf,zr(this,"linkToKey",tr,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)),tt=this.Ef(b),Array.isArray(tt))for(var et=tt.length,nt=this.je,ht=0;ht<et;ht++)tt[ht]===a&&(zr(this,"linkLabelKeys",Ar,nt,b,a,a,ht,ht),x.push(b))}for(y=0;y<x.length;y++)ll(this,a,x[y]);ri(x)}},ee.em=function(a){Ln.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&al(this,y,a)},ee.qp=function(a){Ln.prototype.qp.call(this,a);var y=this.lh(a);ll(this,y,a)},ee.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Pr(a,y),y===void 0))return"";if(typeof y=="string")return y;We("getCategoryForLinkData found a non-string category for "+a+": "+y)},li.prototype.getLinkCategoryForData=function(a){return this.ps(a)},li.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);b===void 0&&(b=""),b!==y&&(Ki(a,x,y),zr(this,"linkCategory",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},li.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},ee=li.prototype,ee.lm=function(a,y){Ln.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function OS(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))}ee.Wj=function(){return!0},ee.ri=function(){return!0},ee.xs=function(){return!0},ee.Xj=function(){return!0},qe.Object.defineProperties(li.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 tt=a[b];on(tt)||We("GraphLinksModel.linkDataArray must only contain Objects, not: "+tt),Io(tt)}if(this.md=a,this.linkKeyProperty!==""){for(b=new vn,tt=0;tt<x;tt++){var et=a[tt],nt=this.Ac(et);nt===void 0||this.wb.I(nt)!==null?b.add(et):this.wb.add(nt,et)}for(b=b.iterator;b.next();)tt=b.value,this.Bs(tt),et=this.Ac(tt),et!==void 0&&this.wb.add(et,tt)}for(b=new gn,tt=0;tt<x;tt++)b.add(a[tt]);for(this.$f=b,zr(this,"linkDataArray",tr,"linkDataArray",this,y,a),y=0;y<x;y++)dy(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 tt=this.linkDataArray[b],et=this.Ac(tt);et===void 0&&(this.Bs(tt),et=this.Ac(tt)),et!==void 0&&this.wb.add(et,tt)}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"}}}),li.prototype.setCategoryForLinkData=li.prototype.lp,li.prototype.getCategoryForLinkData=li.prototype.ps,li.prototype.assignAllDataProperties=li.prototype.Do,li.prototype.setGroupKeyForNodeData=li.prototype.mp,li.prototype.getGroupKeyForNodeData=li.prototype.lh,li.prototype.isGroupForNodeData=li.prototype.Yu,li.prototype.copyLinkData=li.prototype.Jo,li.prototype.mergeLinkDataArray=li.prototype.Zz,li.prototype.removeLinkDataCollection=li.prototype.lA,li.prototype.removeLinkData=li.prototype.bm,li.prototype.addLinkDataCollection=li.prototype.Ey,li.prototype.addLinkData=li.prototype.fi,li.prototype.containsLinkData=li.prototype.Jc,li.prototype.makeLinkDataKeyUnique=li.prototype.Bs,li.prototype.findLinkDataForKey=li.prototype.jh,li.prototype.setKeyForLinkData=li.prototype.Ks,li.prototype.getKeyForLinkData=li.prototype.Ac,li.prototype.removeLabelKeyForLinkData=li.prototype.Qx,li.prototype.addLabelKeyForLinkData=li.prototype.Bu,li.prototype.setLabelKeysForLinkData=li.prototype.Ls,li.prototype.getLabelKeysForLinkData=li.prototype.Ef,li.prototype.setToPortIdForLinkData=li.prototype.Cv,li.prototype.getToPortIdForLinkData=li.prototype.Cx,li.prototype.setFromPortIdForLinkData=li.prototype.xv,li.prototype.getFromPortIdForLinkData=li.prototype.zx,li.prototype.setToKeyForLinkData=li.prototype.Bv,li.prototype.getToKeyForLinkData=li.prototype.Bx,li.prototype.setFromKeyForLinkData=li.prototype.wv,li.prototype.getFromKeyForLinkData=li.prototype.yx,li.prototype.clear=li.prototype.clear;var c0=Object.freeze([]);li.className="GraphLinksModel",Ka.GraphLinksModel=li,Ln.constructGraphLinksModel=Ln.constructGraphLinksModel=function(){return new li},Ln.initDiagramModel=cy=function(){return new li};function fs(a,y){Ln.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}en(fs,Ln),fs.constructGraphLinksModel=Ln.constructGraphLinksModel,fs.prototype.cloneProtected=function(a){Ln.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},ee=fs.prototype,ee.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 tt=a[b];y+=" "+this.wa(tt)+":"+ur(tt)}}return y},ee.rm=function(){var a=Ln.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},ee.gp=function(a){Ln.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},ee.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&We("applyIncrementalJson cannot change Model properties"),Ln.prototype.fp.call(this,a)},ee.Vl=function(a){return a},ee.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Pr(a,y),y!==void 0)){if(Rh(y))return y;We("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},ee.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=Pr(a,x);b!==y&&(ll(this,b,a),Ki(a,x,y),this.hc(y)===null&&al(this,y,a),zr(this,"nodeParentKey",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},ee.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Pr(a,y),y===void 0)?"":typeof y=="string"?y:(We("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},fs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},fs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Pr(a,x);b===void 0&&(b=""),b!==y&&(Ki(a,x,y),zr(this,"parentLinkCategory",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},fs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},fs.prototype.copyNodeData=function(a){return a===null?null:(a=Ln.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Pr(a,this.Ke)===void 0||Ki(a,this.Ke,void 0),a)},fs.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=Pr(a,y);b!==x&&(Ki(a,y,x),this.Fs(a,y,b,x))},ee=fs.prototype,ee.jp=function(a,y){Ln.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},ee.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ki(a,b,x),zr(this,"nodeParentKey",tr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ee.fm=function(a){Ln.prototype.fm.call(this,a),a=this.wa(a);var y=ag(this,a);if(y!==null){var x=oi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var tt=this.Ke;zr(this,"nodeParentKey",tr,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)}}for(y=0;y<x.length;y++)ll(this,a,x[y]);ri(x)}},ee.em=function(a){Ln.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&al(this,y,a)},ee.qp=function(a){Ln.prototype.qp.call(this,a);var y=this.mh(a);ll(this,y,a)},ee.lm=function(a,y){Ln.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},ee.Tl=function(){return!0},ee.xs=function(){return!0},qe.Object.defineProperties(fs.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"}}}),fs.prototype.setParentLinkCategoryForNodeData=fs.prototype.Ms,fs.prototype.getParentLinkCategoryForNodeData=fs.prototype.ss,fs.prototype.setParentKeyForNodeData=fs.prototype.qe,fs.prototype.getParentKeyForNodeData=fs.prototype.mh,fs.className="TreeModel",Ka.TreeModel=fs;function ar(a){Ji.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Xa,this.Ti=0,this.Zv=new Ee,this.Jp=this.me=0,this.Xr=new dg,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Xa,this.K=ds,this.nd=Dd,this.hd=oy,this.tf=6,this.Nn=y0,a&&Object.assign(this,a)}en(ar,Ji),ar.prototype.cloneProtected=function(a){Ji.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},ar.prototype.qb=function(a){a.classType===ar?a===m0||a===v0||a===p0||a===g0||a===Dd?this.sorting=a:a===Oc||a===Nd||a===ds||a===Gh?this.direction=a:a===$u||a===zh||a===Xa||a===Za?this.arrangement=a:(a===bf||a===y0)&&(this.nodeDiameterFormula=a):Ji.prototype.qb.call(this,a)},ar.prototype.createNetwork=function(){return new Id(this)},ar.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 vn;y.addAll(a.iterator),a=new vn;var x=new vn,b=this.sort(y),tt,et,nt=this.Jp,ht=this.arrangement,gt=this.nodeDiameterFormula,bt=this.radius;(!isFinite(bt)||0>=bt)&&(bt=NaN);var Pt=this.aspectRatio;(!isFinite(Pt)||0>=Pt)&&(Pt=1);var Nt=this.startAngle;isFinite(Nt)||(Nt=0);var zt=this.sweepAngle;if((!isFinite(zt)||360<zt||1>zt)&&(zt=360),y=this.spacing,isFinite(y)||(y=NaN),ht===Za&&gt===bf?ht=Xa:ht===Za&&gt!==bf&&(ht=this.arrangement),(this.direction===Oc||this.direction===Nd)&&this.sorting!==Dd){for(gt=0;!(gt>=b.length)&&(a.add(b.M(gt)),!(gt+1>=b.length));gt+=2)x.add(b.M(gt+1));this.direction===Oc?(this.arrangement===Za&&a.reverse(),b=new vn,b.addAll(a),b.addAll(x)):(this.arrangement===Za&&x.reverse(),b=new vn,b.addAll(x),b.addAll(a))}gt=b.length;for(var Vt=et=tt=0;Vt<b.length;Vt++){var Zt=Nt+zt*et*(this.direction===ds?1:-1)/gt,oe=b.M(Vt).diameter;isNaN(oe)&&(oe=Uh(b.M(Vt),Zt)),360>zt&&(Vt===0||Vt===b.length-1)&&(oe/=2),tt+=oe,et++}if(isNaN(bt)||ht===Za){if(isNaN(y)&&(y=6),ht!==Xa&&ht!==Za){for(et=-1/0,nt=0;nt<gt;nt++)Vt=b.M(nt),tt=b.M(nt===gt-1?0:nt+1),isNaN(Vt.diameter)&&Uh(Vt,0),isNaN(tt.diameter)&&Uh(tt,0),et=Math.max(et,(Vt.diameter+tt.diameter)/2);nt=et+y,ht===$u?bt=(et+y)/(2*Math.PI/gt):bt=f0(this,nt*(360<=zt?gt:gt-1),Pt,Nt*Math.PI/180,zt*Math.PI/180)}else bt=f0(this,tt+(360<=zt?gt:gt-1)*(ht!==Za?y:1.6*y),Pt,Nt*Math.PI/180,zt*Math.PI/180);et=bt*Pt}else if(et=bt*Pt,Vt=py(this,bt,et,Nt*Math.PI/180,zt*Math.PI/180),isNaN(y))(ht===Xa||ht===Za)&&(y=(Vt-tt)/(360<=zt?gt:gt-1));else if(ht===Xa||ht===Za)Vt=(Vt-tt)/(360<=zt?gt:gt-1),Vt<y?(bt=f0(this,tt+y*(360<=zt?gt:gt-1),Pt,Nt*Math.PI/180,zt*Math.PI/180),et=bt*Pt):y=Vt;else{for(nt=-1/0,tt=0;tt<gt;tt++)Zt=b.M(tt),oe=b.M(tt===gt-1?0:tt+1),isNaN(Zt.diameter)&&Uh(Zt,0),isNaN(oe.diameter)&&Uh(oe,0),nt=Math.max(nt,(Zt.diameter+oe.diameter)/2);nt+=y,tt=f0(this,nt*(360<=zt?gt:gt-1),Pt,Nt*Math.PI/180,zt*Math.PI/180),tt>bt?(bt=tt,et=bt*Pt):nt=Vt/(360<=zt?gt:gt-1)}if(this.kw=ht,this.lc=bt,this.Zm=Pt,this.lw=Nt,this.Wp=zt,this.Ti=y,this.me=et,this.Jp=nt,y=b,b=this.kw,ht=this.lc,bt=this.lw,Pt=this.Wp,Nt=this.Ti,zt=this.me,gt=this.Jp,this.direction!==Oc&&this.direction!==Nd||b!==Za)if(this.direction===Oc||this.direction===Nd){switch(nt=0,b){case zh:nt=180*d0(this,ht,zt,bt,gt)/Math.PI;break;case Xa:gt=y=0,nt=a.first(),nt!==null&&(y=Uh(nt,Math.PI/2)),nt=x.first(),nt!==null&&(gt=Uh(nt,Math.PI/2)),nt=180*d0(this,ht,zt,bt,Nt+(y+gt)/2)/Math.PI;break;case $u:nt=Pt/y.length}if(this.direction===Oc){switch(b){case zh:fg(this,a,bt,Gh);break;case Xa:cg(this,a,bt,Gh);break;case $u:hg(this,a,Pt/2,bt,Gh)}switch(b){case zh:fg(this,x,bt+nt,ds);break;case Xa:cg(this,x,bt+nt,ds);break;case $u:hg(this,x,Pt/2,bt+nt,ds)}}else{switch(b){case zh:fg(this,x,bt,Gh);break;case Xa:cg(this,x,bt,Gh);break;case $u:hg(this,x,Pt/2,bt,Gh)}switch(b){case zh:fg(this,a,bt+nt,ds);break;case Xa:cg(this,a,bt+nt,ds);break;case $u:hg(this,a,Pt/2,bt+nt,ds)}}}else switch(b){case zh:fg(this,y,bt,this.direction);break;case Xa:cg(this,y,bt,this.direction);break;case $u:hg(this,y,Pt,bt,this.direction);break;case Za:jS(this,y,Pt,bt,this.direction)}else jS(this,y,Pt,bt-Pt/2,ds)}this.updateParts(),this.network=null,this.isValidLayout=!0};function hg(a,y,x,b,tt){var et=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ht=y.length,gt=0;gt<ht;gt++){var bt=b+(tt===ds?gt*x/(360<=et?ht:ht-1):-(gt*x)/ht),Pt=y.M(gt),Nt=nt*Math.tan(bt)/a;Nt=Math.sqrt((nt*nt+a*a*Nt*Nt)/(1+Nt*Nt)),Pt.centerX=Nt*Math.cos(bt),Pt.centerY=Nt*Math.sin(bt),Pt.actualAngle=180*bt/Math.PI}}function cg(a,y,x,b){var tt=a.lc,et=a.me,nt=a.Ti;x=x*Math.PI/180;for(var ht=y.length,gt=0;gt<ht;gt++){var bt=y.M(gt),Pt=y.M(gt===ht-1?0:gt+1),Nt=et*Math.sin(x);bt.centerX=tt*Math.cos(x),bt.centerY=Nt,bt.actualAngle=180*x/Math.PI,isNaN(bt.diameter)&&Uh(bt,0),isNaN(Pt.diameter)&&Uh(Pt,0),bt=d0(a,tt,et,b===ds?x:-x,(bt.diameter+Pt.diameter)/2+nt),x+=b===ds?bt:-bt}}function fg(a,y,x,b){var tt=a.lc,et=a.me,nt=a.Jp;x=x*Math.PI/180;for(var ht=y.length,gt=0;gt<ht;gt++){var bt=y.M(gt);bt.centerX=tt*Math.cos(x),bt.centerY=et*Math.sin(x),bt.actualAngle=180*x/Math.PI,bt=d0(a,tt,et,b===ds?x:-x,nt),x+=b===ds?bt:-bt}}function jS(a,y,x,b,tt){var et=a.Wp;if(a.mj=0,a.Xr=new dg,360>x){for(et=b+(tt===ds?et:-et);0>et;)et+=360;et%=360,180<et&&(et-=360),et*=Math.PI/180,a.gt=et,DS(a,y,x,b,tt)}else NS(a,y,x,b,tt);a.Xr.commit(y)}function NS(a,y,x,b,tt){var et=a.lc,nt=a.Ti,ht=a.Zm,gt=et*Math.cos(b*Math.PI/180),bt=a.me*Math.sin(b*Math.PI/180),Pt=y.Fa();if(Pt.length===3)Pt[0].centerX=et,Pt[0].centerY=0,Pt[1].centerX=Pt[0].centerX-Pt[0].width/2-Pt[1].width/2-nt,Pt[1].y=Pt[0].y,Pt[2].centerX=(Pt[0].centerX+Pt[1].centerX)/2,Pt[2].y=Pt[0].y-Pt[2].height-nt;else if(Pt.length===4)Pt[0].centerX=et,Pt[0].centerY=0,Pt[2].centerX=-Pt[0].centerX,Pt[2].centerY=Pt[0].centerY,Pt[1].centerX=0,Pt[1].y=Math.min(Pt[0].y,Pt[2].y)-Pt[1].height-nt,Pt[3].centerX=0,Pt[3].y=Math.max(Pt[0].y+Pt[0].height+nt,Pt[2].y+Pt[2].height+nt);else{et=Ee.alloc();for(var Nt=0;Nt<Pt.length&&(Pt[Nt].centerX=gt,Pt[Nt].centerY=bt,!(Nt>=Pt.length-1));Nt++)IS(a,gt,bt,Pt,Nt,tt,et)||FS(a,gt,bt,Pt,Nt,tt,et),gt=et.x,bt=et.y;if(Ee.free(et),a.mj++,!(23<a.mj)){gt=Pt[0].centerX,bt=Pt[0].centerY,et=Pt[Pt.length-1].centerX,Nt=Pt[Pt.length-1].centerY;var zt=Math.abs(gt-et)-((Pt[0].width+Pt[Pt.length-1].width)/2+nt),Vt=Math.abs(bt-Nt)-((Pt[0].height+Pt[Pt.length-1].height)/2+nt);nt=0,1>Math.abs(Vt)?Math.abs(gt-et)<(Pt[0].width+Pt[Pt.length-1].width)/2&&(nt=0):nt=0<Vt?Vt:1>Math.abs(zt)?0:zt,gt=Math.abs(et)>Math.abs(Nt)?0<et!=bt>Nt:0<Nt!=gt<et,(gt=tt===ds?gt:!gt)&&(nt=-Math.abs(nt),nt=Math.min(nt,-Pt[Pt.length-1].width),nt=Math.min(nt,-Pt[Pt.length-1].height)),a.Xr.compare(nt,Pt),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>Pt.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ht,NS(a,y,x,b,tt))}}}function DS(a,y,x,b,tt){for(var et=a.lc,nt=a.me,ht=a.Zm,gt=et*Math.cos(b*Math.PI/180),bt=nt*Math.sin(b*Math.PI/180),Pt=Ee.alloc(),Nt=y.Fa(),zt=0;zt<Nt.length&&(Nt[zt].centerX=gt,Nt[zt].centerY=bt,!(zt>=Nt.length-1));zt++)IS(a,gt,bt,Nt,zt,tt,Pt)||FS(a,gt,bt,Nt,zt,tt,Pt),gt=Pt.x,bt=Pt.y;if(Ee.free(Pt),a.mj++,!(23<a.mj)){if(gt=Math.atan2(bt,gt),gt=tt===ds?a.gt-gt:gt-a.gt,gt=Math.abs(gt)<Math.abs(gt-2*Math.PI)?gt:gt-2*Math.PI,et=gt*(et+nt)/2,nt=a.Xr,Math.abs(et)<Math.abs(nt.Pl))for(nt.Pl=et,nt.mk=[],nt.tm=[],gt=0;gt<Nt.length;gt++)nt.mk[gt]=Nt[gt].bounds.x,nt.tm[gt]=Nt[gt].bounds.y;1<Math.abs(et)&&(a.lc=8>a.mj?a.lc-et/(2*Math.PI):a.lc-(0<et?1.7:-2.3),a.me=a.lc*ht,DS(a,y,x,b,tt))}}function IS(a,y,x,b,tt,et,nt){var ht=a.lc,gt=a.me,bt=0;a=(b[tt].width+b[tt+1].width)/2+a.Ti;var Pt=!1;if(0<=x!=(et===ds)){if(et=y+a,et>ht){if(et=y-a,et<-ht)return nt.x=et,nt.y=bt,!1;Pt=!0}}else if(et=y-a,et<-ht){if(et=y+a,et>ht)return nt.x=et,nt.y=bt,!1;Pt=!0}return bt=Math.sqrt(1-Math.min(1,et*et/(ht*ht)))*gt,0>x!==Pt&&(bt=-bt),Math.abs(x-bt)>(b[tt].height+b[tt+1].height)/2?(nt.x=et,nt.y=bt,!1):(nt.x=et,nt.y=bt,!0)}function FS(a,y,x,b,tt,et,nt){var ht=a.lc,gt=a.me,bt=0;if(a=(b[tt].height+b[tt+1].height)/2+a.Ti,b=!1,0<=y!=(et===ds)){if(et=x-a,et<-gt){if(et=x+a,et>gt){nt.x=bt,nt.y=et;return}b=!0}}else if(et=x+a,et>gt){if(et=x-a,et<-gt){nt.x=bt,nt.y=et;return}b=!0}bt=Math.sqrt(1-Math.min(1,et*et/(gt*gt)))*ht,0>y!==b&&(bt=-bt),nt.x=bt,nt.y=et}ar.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ar.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 Ee(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 tt=b.value;tt.x+=x.x,tt.y+=x.y,tt.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))},ar.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,tt){var et=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&tt!==void 0?tt*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,ht=b!==void 0&&tt!==void 0?tt/(et+1):Math.PI/(2*(et+1)),gt=0,bt=0;bt<=et;bt++){b!==void 0&&tt!==void 0?gt=b+bt*tt/et:gt=bt*Math.PI/(2*et);var Pt=Math.sin(gt);nt+=Math.sqrt(1-a*a*Pt*Pt)*ht}return b!==void 0&&tt!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function f0(a,y,x,b,tt){return y/(b!==void 0&&tt!==void 0?py(a,1,x,b,tt):py(a,1,x))}function d0(a,y,x,b,tt){if(.001>Math.abs(a.Zm-1))return tt/y;var et=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 ht=0;;ht++){var gt=Math.sin(b+ht*a);if(nt+=(y>x?y:x)*Math.sqrt(1-et*et*gt*gt)*a,nt>=tt)return ht*a}}ar.prototype.sort=function(a){switch(this.sorting){case p0:break;case g0:a.reverse();break;case m0:a.sort(this.comparer);break;case v0:a.sort(this.comparer),a.reverse();break;case Dd:return this.ak(Nw(a));default:We("Invalid sorting type.")}return a};function Nw(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new vn;for(var b=0;b<a.length;b++){var tt=-1,et=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var ht=a.M(nt).edgesCount;ht>tt&&(tt=ht,et=nt)}else for(nt=0;nt<a.length;nt++)ht=y[nt],ht>tt&&(tt=ht,et=nt);for(x.add(a.M(et)),y[et]=-1,et=a.M(et),nt=et.sourceEdges;nt.next();)tt=a.indexOf(nt.value.fromVertex),0>tt||0<=y[tt]&&y[tt]++;for(et=et.destinationEdges;et.next();)tt=a.indexOf(et.value.toVertex),0>tt||0<=y[tt]&&y[tt]++}return x}ar.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var tt,et=b.destinationEdges;et.next();)tt=a.indexOf(et.value.toVertex),tt!==x&&0>y[x].indexOf(tt)&&y[x].push(tt);for(b=b.sourceEdges;b.next();)tt=a.indexOf(b.value.fromVertex),tt!==x&&0>y[x].indexOf(tt)&&y[x].push(tt)}for(et=[],x=0;x<y.length;x++)et[x]=0;x=[];var nt=[],ht=[];b=[],tt=new vn;for(var gt=0,bt=0;bt<y.length;bt++){var Pt=y[bt].length;if(Pt===1)b.push(bt);else if(Pt===0)tt.add(a.M(bt));else{if(gt===0)x.push(bt);else{for(var Nt=Pt=1/0,zt=-1,Vt=[],Zt=0;Zt<x.length;Zt++)0>y[x[Zt]].indexOf(x[Zt===x.length-1?0:Zt+1])&&Vt.push(Zt===x.length-1?0:Zt+1);if(Vt.length===0)for(Zt=0;Zt<x.length;Zt++)Vt.push(Zt);for(Zt=0;Zt<Vt.length;Zt++){for(var oe=Vt[Zt],Pe=y[bt],de=0,Le=0;Le<nt.length;Le++){var Oe=et[nt[Le]],De=et[ht[Le]];if(Oe<De){var Re=Oe;Oe=De}else Re=De;if(Re<oe&&oe<=Oe)for(De=0;De<Pe.length;De++){var Ve=Pe[De];0>x.indexOf(Ve)||Re<et[Ve]&&et[Ve]<Oe||Re===et[Ve]||Oe===et[Ve]||de++}else for(De=0;De<Pe.length;De++)Ve=Pe[De],0>x.indexOf(Ve)||Re<et[Ve]&&et[Ve]<Oe&&Re!==et[Ve]&&Oe!==et[Ve]&&de++}for(Pe=de,Le=de=0;Le<y[bt].length;Le++)Re=x.indexOf(y[bt][Le]),0<=Re&&(Re=Math.abs(oe-(Re>=oe?Re+1:Re)),de+=Re<x.length+1-Re?Re:x.length+1-Re);for(Le=0;Le<nt.length;Le++)Re=et[nt[Le]],Oe=et[ht[Le]],Re>=oe&&Re++,Oe>=oe&&Oe++,Re>Oe&&(De=Oe,Oe=Re,Re=De),Oe-Re<(x.length+2)/2==(Re<oe&&oe<=Oe)&&de++;(Pe<Pt||Pe===Pt&&de<Nt)&&(Pt=Pe,Nt=de,zt=oe)}for(x.splice(zt,0,bt),Pt=0;Pt<x.length;Pt++)et[x[Pt]]=Pt;for(Pt=0;Pt<y[bt].length;Pt++)Nt=y[bt][Pt],0<=x.indexOf(Nt)&&(nt.push(bt),ht.push(Nt))}gt++}}for(nt=x.length;;){for(et=!0,ht=0;ht<b.length;ht++)if(gt=b[ht],bt=y[gt][0],Pt=x.indexOf(bt),0<=Pt){for(zt=Nt=0;zt<y[bt].length;zt++)Vt=x.indexOf(y[bt][zt]),0>Vt||Vt===Pt||(Zt=Vt>Pt?Vt-Pt:Pt-Vt,Nt+=Vt<Pt!=Zt>nt-Zt?1:-1);x.splice(0>Nt?Pt:Pt+1,0,gt),b.splice(ht,1),ht--}else et=!1;if(et)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)tt.add(a.M(x[y]));return tt},qe.Object.defineProperties(ar.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!==Za&&a!==Xa&&a!==zh&&a!==$u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ds&&a!==Gh&&a!==Oc&&a!==Nd||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==p0&&a!==g0&&a!==m0&&!v0&&a!==Dd||(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!==bf||(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 Xa=new sn(ar,"ConstantSpacing",0),zh=new sn(ar,"ConstantDistance",1),$u=new sn(ar,"ConstantAngle",2),Za=new sn(ar,"Packed",3),ds=new sn(ar,"Clockwise",4),Gh=new sn(ar,"Counterclockwise",5),Oc=new sn(ar,"BidirectionalLeft",6),Nd=new sn(ar,"BidirectionalRight",7),p0=new sn(ar,"Forwards",8),g0=new sn(ar,"Reverse",9),m0=new sn(ar,"Ascending",10),v0=new sn(ar,"Descending",11),Dd=new sn(ar,"Optimized",12),y0=new sn(ar,"Pythagorean",13),bf=new sn(ar,"Circular",14);ar.className="CircularLayout",ar.ConstantSpacing=Xa,ar.ConstantDistance=zh,ar.ConstantAngle=$u,ar.Packed=Za,ar.Clockwise=ds,ar.Counterclockwise=Gh,ar.BidirectionalLeft=Oc,ar.BidirectionalRight=Nd,ar.Forwards=p0,ar.Reverse=g0,ar.Ascending=m0,ar.Descending=v0,ar.Optimized=Dd,ar.Pythagorean=y0,ar.Circular=bf;function dg(){this.Pl=-1/0,this.tm=this.mk=null}dg.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},dg.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]}},dg.className="VertexArrangement";function Id(a){Di.call(this,a)}en(Id,Di),Id.prototype.createVertex=function(){return new pg(this)},Id.prototype.createEdge=function(){return new S0(this)},Id.className="CircularNetwork";function pg(a){Vr.call(this,a),this.u=this.Si=NaN}en(pg,Vr);function Uh(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Za)if(x.nodeDiameterFormula===bf)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===bf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}qe.Object.defineProperties(pg.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)}}}),pg.className="CircularVertex";function S0(a){Hs.call(this,a)}en(S0,Hs),S0.className="CircularEdge";function _o(a){Ji.call(this),this.ah=null,this.An=0,this.$d=new xn(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}en(_o,Ji),_o.prototype.cloneProtected=function(a){Ji.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},_o.prototype.createNetwork=function(){return new Pf(this)},_o.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 tt=this.network.vertexes.iterator;tt.next();){var et=tt.value;et.Vd=et.vertexes.count,et.sh=1,et.Hj=null,et.We=null}BS(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ht=nt.count,gt=!0;et=tt=0;for(var bt=oi(),Pt=0;Pt<ht+y.vertexes.count+2;Pt++)bt[Pt]=null;ht=0,nt.reset();for(var Nt=$e.alloc();nt.next();)if(Pt=nt.value,this.computeBounds(Pt,Nt),gt)gt=!1,tt=Nt.x+Nt.width/2,et=Nt.y+Nt.height/2,bt[0]=new Ee(Nt.x+Nt.width+b.width,Nt.y),bt[1]=new Ee(Nt.x,Nt.y+Nt.height+b.height),ht=2;else{var zt=RS(bt,ht,tt,et,Nt.width,Nt.height,b),Vt=bt[zt],Zt=new Ee(Vt.x+Nt.width+b.width,Vt.y),oe=new Ee(Vt.x,Vt.y+Nt.height+b.height);for(zt+1<ht&&bt.splice(zt+1,0,null),bt[zt]=Zt,bt[zt+1]=oe,ht++,zt=Vt.x-Nt.x,Vt=Vt.y-Nt.y,Pt=Pt.vertexes.iterator;Pt.next();)Zt=Pt.value,Zt.centerX+=zt,Zt.centerY+=Vt}for($e.free(Nt),Pt=y.vertexes.iterator;Pt.next();)nt=Pt.value,zt=nt.bounds,2>ht?(tt=zt.x+zt.width/2,et=zt.y+zt.height/2,bt[0]=new Ee(zt.x+zt.width+b.width,zt.y),bt[1]=new Ee(zt.x,zt.y+zt.height+b.height),ht=2):(gt=RS(bt,ht,tt,et,zt.width,zt.height,b),Nt=bt[gt],Vt=new Ee(Nt.x+zt.width+b.width,Nt.y),zt=new Ee(Nt.x,Nt.y+zt.height+b.height),gt+1<ht&&bt.splice(gt+1,0,null),bt[gt]=Vt,bt[gt+1]=zt,ht++,nt.centerX=Nt.x+nt.width/2,nt.centerY=Nt.y+nt.height/2);for(ri(bt),b=x.iterator;b.next();){for(x=b.value,tt=x.vertexes.iterator;tt.next();)y.dh(tt.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},_o.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},_o.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 BS(a,y,x){if(Dw(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var tt=Iw(a,y),et=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=et,BS(a,y+1,x),GS(a,et),Fw(a,tt),y=tt.vertexes.Fa(),y.sort(function(nt,ht){return nt===null||ht===null||nt===ht?0:ht.Vd-nt.Vd}),x=0;x<y.length;x++)Bw(a,y[x]);a.Zf=b}}function Dw(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 Iw(a,y){for(var x=a.network,b=new Pf(a),tt=0;tt<a.ah.length;tt++){var et=a.ah[tt];if(1<et.Vd){b.dh(et);var nt=new US;nt.Rs=et.Vd,nt.Ss=et.width,nt.Qs=et.height,nt.Sv=et.focus.x,nt.Tv=et.focus.y,et.We===null&&(et.We=new vn),et.We.add(nt),et.sv=et.We.count-1}else break}for(et=x.edges.iterator;et.next();){var ht=et.value;tt=ht.fromVertex,nt=ht.toVertex,tt.network===b&&nt.network===b?b.Bo(ht):tt.network===b?(ht=tt.Hj,ht===null&&(ht=new vn,tt.Hj=ht),ht.add(nt),tt.Vd--,tt.sh+=nt.sh):nt.network===b&&(ht=nt.Hj,ht===null&&(ht=new vn,nt.Hj=ht),ht.add(tt),nt.Vd--,nt.sh+=tt.sh)}for(tt=b.edges.iterator;tt.next();)et=tt.value,et.length*=Math.max(1,Ge.sqrt((et.fromVertex.sh+et.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){tt=y.value;var gt=tt.Hj;if(gt!==null&&0<gt.count&&(nt=tt.We.M(tt.We.count-1).Rs-tt.Vd,!(0>=nt))){for(var bt=ht=0,Pt=gt.count-nt;Pt<gt.count;Pt++){var Nt=gt.M(Pt),zt=null;for(et=Nt.edges.iterator;et.next();){var Vt=et.value;if(Vt.Ax(Nt)===tt){zt=Vt;break}}zt!==null&&(bt+=zt.length,ht+=Nt.width*Nt.height)}et=tt.centerX,gt=tt.centerY,Pt=tt.width,Nt=tt.height,zt=tt.focus,Vt=Pt*Nt,1>Vt&&(Vt=1),ht=Ge.sqrt((ht+Vt+bt*bt*4/(nt*nt))/Vt),nt=(ht-1)*Pt/2,ht=(ht-1)*Nt/2,tt.bounds=new $e(et-zt.x-nt,gt-zt.y-ht,Pt+2*nt,Nt+2*ht),tt.focus=new Ee(zt.x+nt,zt.y+ht)}}return a.network=b,x}function Fw(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var tt=b.We.M(b.sv);b.Vd=tt.Rs;var et=tt.Sv,nt=tt.Tv;b.bounds=new $e(b.centerX-et,b.centerY-nt,tt.Ss,tt.Qs),b.focus=new Ee(et,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Bw(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,tt=y.centerY,et=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),et=nt.Ss,nt=nt.Qs),et=Ge.sqrt(et*et+nt*nt)/2;for(var ht=!1,gt=nt=0,bt=0,Pt=y.vertexes.iterator;Pt.next();){var Nt=Pt.value;1>=Nt.Vd?gt++:(ht=!0,bt++,nt+=Math.atan2(y.centerY-Nt.centerY,y.centerX-Nt.centerX))}if(gt!==0){for(0<bt&&(nt/=bt),bt=y=0,y=ht?2*Math.PI/(gt+1):2*Math.PI/gt,gt%2===0&&(bt=y/2),1<x.count&&x.sort(function(Vt,Zt){return Vt===null||Zt===null||Vt===Zt?0:Zt.width*Zt.height-Vt.width*Vt.height}),ht=gt%2===0?0:1,x=x.iterator;x.next();)if(gt=x.value,!(1<gt.Vd||a.isFixed(gt))){for(Pt=null,Nt=gt.edges.iterator;Nt.next();){Pt=Nt.value;break}Nt=gt.width;var zt=gt.height;Nt=Ge.sqrt(Nt*Nt+zt*zt)/2,Pt=et+Pt.length+Nt,Nt=nt+(y*(ht/2>>1)+bt)*(ht%2===0?1:-1),gt.centerX=b+Pt*Math.cos(Nt),gt.centerY=tt+Pt*Math.sin(Nt),ht++}}}}function RS(a,y,x,b,tt,et,nt){var ht=9e19,gt=-1,bt=0;t:for(;bt<y;bt++){var Pt=a[bt],Nt=Pt.x-x,zt=Pt.y-b;if(Nt=Nt*Nt+zt*zt,Nt<ht){for(zt=bt-1;0<=zt;zt--)if(a[zt].y>Pt.y&&a[zt].x-Pt.x<tt+nt.width)continue t;for(zt=bt+1;zt<y;zt++)if(a[zt].x>Pt.x&&a[zt].y-Pt.y<et+nt.height)continue t;gt=bt,ht=Nt}}return gt}_o.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},_o.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 tt=b.destinationEdges;tt.next();){var et=tt.value;if(et.toVertex===a){x=et;break}}if(x===null){for(tt=b.sourceEdges;tt.next();)if(et=tt.value,et.fromVertex===a){x=et;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function zS(a,y){var x=a.bounds,b=x.x;a=x.y;var tt=x.width;x=x.height;var et=y.bounds,nt=et.x;y=et.y;var ht=et.width;return et=et.height,b+tt<nt?a>y+et?(x=b+tt-nt,a=a-y-et,Ge.sqrt(x*x+a*a)):a+x<y?(b=b+tt-nt,a=a+x-y,Ge.sqrt(b*b+a*a)):nt-(b+tt):b>nt+ht?a>y+et?(x=b-nt-ht,a=a-y-et,Ge.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ht,a=a+x-y,Ge.sqrt(b*b+a*a)):b-(nt+ht):a>y+et?a-(y+et):a+x<y?y-(a+x):.1}function GS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Rw(a)););a.ah=null}function Rw(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,tt=b,et=x=x.centerY,nt=1;nt<y.length;nt++){var ht=y[nt];ht.forceX=0,ht.forceY=0;var gt=ht.centerX;ht=ht.centerY,b=Math.min(b,gt),tt=Math.max(tt,gt),x=Math.min(x,ht),et=Math.max(et,ht)}(tt=tt-b>et-x)?y.sort(function(oe,Pe){return oe===null||Pe===null||oe===Pe?0:oe.centerX-Pe.centerX}):y.sort(function(oe,Pe){return oe===null||Pe===null||oe===Pe?0:oe.centerY-Pe.centerY}),x=a.Zf;var bt=b=ht=0;for(et=0;et<y.length;et++){nt=y[et],b=nt.bounds,ht=nt.focus,gt=b.x+ht.x;var Pt=b.y+ht.y;b=nt.charge*a.electricalFieldX(gt,Pt),bt=nt.charge*a.electricalFieldY(gt,Pt),b+=nt.mass*a.gravitationalFieldX(gt,Pt),bt+=nt.mass*a.gravitationalFieldY(gt,Pt),nt.forceX+=b,nt.forceY+=bt;for(var Nt=et+1;Nt<y.length;Nt++){var zt=y[Nt];if(zt!==nt){b=zt.bounds,ht=zt.focus,bt=b.x+ht.x;var Vt=b.y+ht.y;if(gt-bt>x||bt-gt>x){if(tt)break}else if(Pt-Vt>x||Vt-Pt>x){if(!tt)break}else{var Zt=zS(nt,zt);1>Zt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new w0),Zt=b.random(),ht=b.random(),gt>bt?(b=Math.abs(zt.bounds.right-nt.bounds.x),b=(1+b)*Zt):gt<bt?(b=Math.abs(zt.bounds.x-nt.bounds.right),b=-(1+b)*Zt):(b=Math.max(zt.width,nt.width),b=(1+b)*Zt-b/2),Pt>Vt?(bt=Math.abs(zt.bounds.bottom-nt.bounds.y),bt=(1+bt)*ht):gt<bt?(bt=Math.abs(zt.bounds.y-nt.bounds.bottom),bt=-(1+bt)*ht):(bt=Math.max(zt.height,nt.height),bt=(1+bt)*ht-bt/2)):(ht=-(nt.charge*zt.charge)/(Zt*Zt),b=(bt-gt)/Zt*ht,bt=(Vt-Pt)/Zt*ht),nt.forceX+=b,nt.forceY+=bt,zt.forceX-=b,zt.forceY-=bt}}}}for(tt=a.network.edges.iterator;tt.next();)ht=tt.value,x=ht.fromVertex,et=ht.toVertex,nt=x.bounds,gt=x.focus,b=nt.x+gt.x,nt=nt.y+gt.y,Pt=et.bounds,Nt=et.focus,gt=Pt.x+Nt.x,Pt=Pt.y+Nt.y,Nt=zS(x,et),1>Nt?(Nt=a.randomNumberGenerator,Nt===null&&(a.randomNumberGenerator=Nt=new w0),ht=Nt.random(),Nt=Nt.random(),b=(b>gt?1:-1)*(1+(et.width>x.width?et.width:x.width))*ht,bt=(nt>Pt?1:-1)*(1+(et.height>x.height?et.height:x.height))*Nt):(ht=ht.stiffness*(Nt-ht.length),b=(gt-b)/Nt*ht,bt=(Pt-nt)/Nt*ht),x.forceX+=b,x.forceY+=bt,et.forceX-=b,et.forceY-=bt;for(tt=b=0;tt<y.length;tt++)x=y[tt],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}_o.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},_o.prototype.moveFixedVertex=function(){},_o.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},_o.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=oo,y.toSpot=oo)}},_o.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=$e.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,$e.free(x)}x=$e.alloc();for(var b=this.network.vertexes.iterator;b.next();){var tt=b.value;(a!==0||y!==0)&&(x.assign(tt.bounds),x.x+=a,x.y+=y,tt.bounds=x),tt.commit()}$e.free(x)},_o.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},_o.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},_o.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},_o.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},_o.prototype.electricalFieldX=function(){return 0},_o.prototype.electricalFieldY=function(){return 0},_o.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},_o.prototype.gravitationalFieldX=function(){return 0},_o.prototype.gravitationalFieldY=function(){return 0},_o.prototype.isFixed=function(a){return a.isFixed},qe.Object.defineProperties(_o.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())}}}),_o.className="ForceDirectedLayout";function US(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}US.className="ForceDirectedSubnet";function Pf(a){Di.call(this,a)}en(Pf,Di),Pf.prototype.createVertex=function(){return new gg(this)},Pf.prototype.createEdge=function(){return new mg(this)},Pf.className="ForceDirectedNetwork";function gg(a){Vr.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}en(gg,Vr),qe.Object.defineProperties(gg.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)}}}),gg.className="ForceDirectedVertex";function mg(a){Hs.call(this,a),this.j=this.o=NaN}en(mg,Hs),qe.Object.defineProperties(mg.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)}}}),mg.className="ForceDirectedEdge";function w0(){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()}w0.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},w0.className="RandomNumberGenerator";function Ci(a){Ji.call(this),this.kc=this.ie=25,this.K=0,this.Dk=E0,this.Zk=A0,this.Qk=M0,this.bj=4,this.rk=k0,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 Ee,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}en(Ci,Ji),Ci.prototype.cloneProtected=function(a){Ji.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},Ci.prototype.qb=function(a){a.classType===Ci?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):Ji.prototype.qb.call(this,a)},Ci.prototype.createNetwork=function(){return new Bd(this)},Ci.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!==yg&&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===yg&&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 tt=b.fromVertex,et=b.toVertex;if(!(b.valid||(tt.node===null&&tt.data===null||et.node===null&&et.data===null)&&tt.layer===et.layer)){var nt=0,ht=0,gt=0,bt=0;if(b.link!==null){if(ht=b.link,ht===null)continue;var Pt=tt.node;if(nt=et.node,Pt===null||nt===null)continue;var Nt=ht.fromNode;gt=ht.toNode;for(var zt=ht.fromPort;zt!==null&&!zt.Ed();)zt=zt.panel;for(ht=ht.toPort;ht!==null&&!ht.Ed();)ht=ht.panel;if(b.rev){bt=Nt;var Vt=zt;Nt=gt,zt=ht,gt=bt,ht=Vt}var Zt=tt.focus;bt=et.focus;var oe=b.rev?et.bounds:tt.bounds;Vt=Ee.alloc(),Pt!==Nt?oe.w()&&Nt.isVisible()?Nt.actualBounds.w()?(Xu(Nt,zt,wi,Vt),Vt.x+=Nt.actualBounds.x-oe.x,Vt.y+=Nt.actualBounds.y-oe.y):(Xu(Nt,zt,wi,Vt),Vt.w()||Vt.assign(Zt)):Vt.assign(Zt):oe.w()?(Xu(Nt,zt,wi,Vt),Vt.w()||Vt.assign(Zt)):Vt.assign(Zt),Nt=b.rev?tt.bounds:et.bounds,Pt=Ee.alloc(),nt!==gt?Nt.w()&&gt.isVisible()?gt.actualBounds.w()?(Xu(gt,ht,wi,Pt),Pt.x+=gt.actualBounds.x-Nt.x,Pt.y+=gt.actualBounds.y-Nt.y):(Xu(gt,ht,wi,Pt),Pt.w()||Pt.assign(bt)):Pt.assign(bt):Nt.w()?(Xu(gt,ht,wi,Pt),Pt.w()||Pt.assign(bt)):Pt.assign(bt),this.K===90||this.K===270?(nt=Math.round((Vt.x-Zt.x)/this.kc),gt=Vt.x,ht=Math.round((Pt.x-bt.x)/this.kc),bt=Pt.x):(nt=Math.round((Vt.y-Zt.y)/this.kc),gt=Vt.y,ht=Math.round((Pt.y-bt.y)/this.kc),bt=Pt.y),Ee.free(Vt),Ee.free(Pt),b.portFromColOffset=nt,b.portFromPos=gt,b.portToColOffset=ht,b.portToPos=bt}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Vt=tt.layer,Pt=et.layer,Nt=0,oe=b.link,oe!==null){var Pe=oe.fromPort,de=oe.toPort;if(Pe!==null&&de!==null){var Le=oe.fromNode;if(zt=oe.toNode,Le!==null&&zt!==null){var Oe=C0(this,!0),De=C0(this,!1),Re=this.setsPortSpots?Oe:oe.computeSpot(!0,Pe);Zt=this.setsPortSpots?De:oe.computeSpot(!1,de);var Ve=oe.isOrthogonal;Re.$c()&&Re.Hf(De)&&Zt.$c()&&Zt.Hf(Oe)?Nt=0:(Oe=oe.getLinkPoint(Le,Pe,Re,!0,Ve,zt,de,Ee.alloc()),De=oe.getLinkDirection(Le,Pe,Oe,Re,!0,Ve,zt,de),Ee.free(Oe),Re.ys()||De!==JS(this,b,!0)?this.setsPortSpots&&Le!==null&&Le.ports.count===1&&b.rev&&(Nt+=1):Nt+=1,Re=oe.getLinkPoint(zt,de,Zt,!1,Ve,Le,Pe,Ee.alloc()),oe=oe.getLinkDirection(zt,de,Re,Zt,!1,Ve,Le,Pe),Ee.free(Re),Zt.ys()||oe!==JS(this,b,!1)?this.setsPortSpots&&zt!==null&&zt.ports.count===1&&b.rev&&(Nt+=2):Nt+=2)}}}if(zt=Nt,Nt=zt===1||zt===3,(zt=zt===2||zt===3)&&(Zt=a.createVertex(),Zt.node=null,Zt.Dj=1,Zt.layer=Vt,Zt.near=tt,a.dh(Zt),tt=a.Zj(tt,Zt,b.link),tt.valid=!1,tt.rev=b.rev,tt.portFromColOffset=nt,tt.portToColOffset=0,tt.portFromPos=gt,tt.portToPos=0,tt=Zt),oe=1,Nt&&oe--,Vt-Pt>oe&&0<Vt){for(b.valid=!1,Zt=a.createVertex(),Zt.node=null,Zt.Dj=2,Zt.layer=Vt-1,a.dh(Zt),tt=a.Zj(tt,Zt,b.link),tt.valid=!0,tt.rev=b.rev,tt.portFromColOffset=zt?0:nt,tt.portToColOffset=0,tt.portFromPos=zt?0:gt,tt.portToPos=0,tt=Zt,Vt--;Vt-Pt>oe&&0<Vt;)Zt=a.createVertex(),Zt.node=null,Zt.Dj=3,Zt.layer=Vt-1,a.dh(Zt),tt=a.Zj(tt,Zt,b.link),tt.valid=!0,tt.rev=b.rev,tt.portFromColOffset=0,tt.portToColOffset=0,tt.portFromPos=0,tt.portToPos=0,tt=Zt,Vt--;tt=a.Zj(Zt,et,b.link),tt.valid=!Nt,Nt&&(Zt.near=et),tt.rev=b.rev,tt.portFromColOffset=0,tt.portToColOffset=ht,tt.portFromPos=0,tt.portToPos=bt}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=Hh(this,a),x=0,b=this.tc[a],et=0;et<b;et++)tt=y[et],x+=this.nodeMinColumnSpace(tt,!0),tt.column=x,x+=1,x+=this.nodeMinColumnSpace(tt,!1);this.Ra=Math.max(this.Ra,x-1),Wh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Ci.prototype.linkMinLength=function(){return 1};function gy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Ci.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},Ci.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 Cs(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 Sa(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 HS(a,y,x){var b=Hh(a,y),tt=a.tc[y];(a.Jn===null||a.Jn.length<tt*tt)&&(a.Jn=[]);for(var et=a.Jn,nt=0;nt<tt;nt++){var ht=0,gt=b[nt],bt=gt.near;if(bt!==null&&bt.layer===gt.layer)if(gt=bt.index,gt>nt)for(var Pt=nt+1;Pt<gt;Pt++){var Nt=b[Pt];Nt.near===bt&&Nt.Dj===bt.Dj||ht++}else for(Pt=nt-1;Pt>gt;Pt--)Nt=b[Pt],Nt.near===bt&&Nt.Dj===bt.Dj||ht++;var zt;if(0<=x)for(gt=b[nt].sourceEdgesArrayAccess,bt=0;bt<gt.length;bt++){var Vt=gt[bt];if(Vt.valid&&Vt.fromVertex.layer!==y)for(Nt=Vt.fromVertex.index,Pt=Vt.portToPos,Vt=Vt.portFromPos,zt=bt+1;zt<gt.length;zt++){var Zt=gt[zt];if(Zt.valid&&Zt.fromVertex.layer!==y){var oe=Zt.fromVertex.index,Pe=Zt.portToPos;Zt=Zt.portFromPos,Pt<Pe&&(Nt>oe||Nt===oe&&Vt>Zt)&&ht++,Pe<Pt&&(oe>Nt||oe===Nt&&Zt>Vt)&&ht++}}}if(0>=x){for(gt=b[nt].destinationEdgesArrayAccess,bt=0;bt<gt.length;bt++)if(Vt=gt[bt],Vt.valid&&Vt.toVertex.layer!==y)for(Nt=Vt.toVertex.index,Pt=Vt.portToPos,Vt=Vt.portFromPos,zt=bt+1;zt<gt.length;zt++)Zt=gt[zt],Zt.valid&&Zt.toVertex.layer!==y&&(oe=Zt.toVertex.index,Pe=Zt.portToPos,Zt=Zt.portFromPos,Vt<Zt&&(Nt>oe||Nt===oe&&Pt>Pe)&&ht++,Zt<Vt&&(oe>Nt||oe===Nt&&Pe>Pt)&&ht++)}for(et[nt*tt+nt]=ht,gt=nt+1;gt<tt;gt++){var de=0,Le=0;if(0<=x){ht=b[nt].sourceEdgesArrayAccess;var Oe=b[gt].sourceEdgesArrayAccess;for(bt=0;bt<ht.length;bt++)if(Vt=ht[bt],Vt.valid&&Vt.fromVertex.layer!==y)for(Nt=Vt.fromVertex.index,Vt=Vt.portFromPos,zt=0;zt<Oe.length;zt++)Zt=Oe[zt],Zt.valid&&Zt.fromVertex.layer!==y&&(oe=Zt.fromVertex.index,Zt=Zt.portFromPos,(Nt<oe||Nt===oe&&Vt<Zt)&&Le++,(oe<Nt||oe===Nt&&Zt<Vt)&&de++)}if(0>=x){for(ht=b[nt].destinationEdgesArrayAccess,Oe=b[gt].destinationEdgesArrayAccess,bt=0;bt<ht.length;bt++)if(Vt=ht[bt],Vt.valid&&Vt.toVertex.layer!==y)for(Nt=Vt.toVertex.index,Pt=Vt.portToPos,zt=0;zt<Oe.length;zt++)Zt=Oe[zt],Zt.valid&&Zt.toVertex.layer!==y&&(oe=Zt.toVertex.index,Pe=Zt.portToPos,(Nt<oe||Nt===oe&&Pt<Pe)&&Le++,(oe<Nt||oe===Nt&&Pe<Pt)&&de++)}et[nt*tt+gt]=de,et[gt*tt+nt]=Le}}return Wh(a,y,b),et}Ci.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=HS(this,y,1),b=this.tc[y],tt=0;tt<b;tt++)for(var et=tt;et<b;et++)a+=x[tt*b+et];return a};function x0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,tt=x,et=Hh(b,tt),nt=b.tc[tt],ht=0,gt=0;gt<nt;gt++){var bt=et[gt].destinationEdgesArrayAccess;if(bt!==null)for(var Pt=0;Pt<bt.length;Pt++){var Nt=bt[Pt];if(Nt.valid&&Nt.toVertex.layer!==tt){var zt=Nt.fromVertex.column+Nt.portFromColOffset,Vt=Nt.toVertex.column+Nt.portToColOffset;ht+=(Math.abs(zt-Vt)+1)*gy(Nt)}}}Wh(b,tt,et),y+=ht}return y}Ci.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=Hh(a,y),tt=a.tc[y],et=[],nt=0;nt<tt;nt++){var ht=b[nt],gt=null;0>=x&&(gt=ht.sourceEdgesArrayAccess);var bt=null;0<=x&&(bt=ht.destinationEdgesArrayAccess);var Pt=0,Nt=0,zt=ht.near;if(zt!==null&&zt.layer===ht.layer&&(Pt+=zt.column-1,Nt++),gt!==null)for(zt=0;zt<gt.length;zt++){ht=gt[zt];var Vt=ht.fromVertex;ht.valid&&!ht.rev&&Vt.layer!==y&&(Pt+=Vt.column,Nt++)}if(bt!==null)for(gt=0;gt<bt.length;gt++)ht=bt[gt],zt=ht.toVertex,ht.valid&&!ht.rev&&zt.layer!==y&&(Pt+=zt.column,Nt++);et[nt]=Nt===0?-1:Pt/Nt}return Wh(a,y,b),et}function WS(a,y,x){for(var b=Hh(a,y),tt=a.tc[y],et=[],nt=0;nt<tt;nt++){var ht=b[nt],gt=null;0>=x&&(gt=ht.sourceEdgesArrayAccess);var bt=null;0<=x&&(bt=ht.destinationEdgesArrayAccess);var Pt=0,Nt=[],zt=ht.near;if(zt!==null&&zt.layer===ht.layer&&(Nt[Pt]=zt.column-1,Pt++),ht=void 0,gt!==null)for(zt=0;zt<gt.length;zt++){ht=gt[zt];var Vt=ht.fromVertex;ht.valid&&!ht.rev&&Vt.layer!==y&&(Nt[Pt]=Vt.column+ht.portFromColOffset,Pt++)}if(bt!==null)for(gt=0;gt<bt.length;gt++)ht=bt[gt],zt=ht.toVertex,ht.valid&&!ht.rev&&zt.layer!==y&&(Nt[Pt]=zt.column+ht.portToColOffset,Pt++);Pt===0?et[nt]=-1:(Nt.sort(function(Zt,oe){return Zt-oe}),bt=Pt>>1,et[nt]=Pt&1?Nt[bt]:Nt[bt-1]+Nt[bt]>>1)}return Wh(a,y,b),et}function vg(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)for(var nt=y.destinationEdges;nt.next();){var ht=nt.value,gt=ht.toVertex,bt=y.layer-gt.layer;ht=a.linkMinLength(ht),bt===ht&&vg(a,gt,x,b,tt,et)}if(et)for(nt=y.sourceEdges;nt.next();)ht=nt.value,gt=ht.fromVertex,bt=gt.layer-y.layer,ht=a.linkMinLength(ht),bt===ht&&vg(a,gt,x,b,tt,et)}}function vy(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)for(var nt=y.destinationEdges;nt.next();)vy(a,nt.value.toVertex,x,b,tt,et);if(et)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,tt,et)}}Ci.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case wy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var tt=a.vertexes.iterator;tt.next();)tt.value.valid=!0;for(;zw(a)!==null;){for(tt=VS(a);tt!==null;)b[x]=tt,x--,tt.valid=!1,tt=VS(a);for(tt=YS(a);tt!==null;)b[y]=tt,y++,tt.valid=!1,tt=YS(a);tt=null;for(var et=0,nt=this.network.vertexes.iterator;nt.next();){var ht=nt.value;if(ht.valid){for(var gt=0,bt=ht.destinationEdges;bt.next();)bt.value.toVertex.valid&&gt++;bt=0;for(var Pt=ht.sourceEdges;Pt.next();)Pt.value.fromVertex.valid&&bt++;(tt===null||et<gt-bt)&&(tt=ht,et=gt-bt)}}tt!==null&&(b[y]=tt,y++,tt.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 E0: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,tt=b.toVertex,et=tt.finish,tt.Ll<y.Ll&&x<et&&(this.network.gm(b),b.rev=!0));break;case yg: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,tt=b[x.layer],tt===void 0?b[x.layer]=[x]:tt.push(x);for(x=y=0;x<b.length;x++)if(tt=b[x],!tt||tt.length===0)y++;else if(0<x)for(et=0;et<tt.length;et++)tt[et].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 zw(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)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.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function YS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,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,tt=b.toVertex;tt.Ll===-1&&(b.forest=!0,yy(a,tt))}y.finish=a.Kn,a.Kn++}Ci.prototype.assignLayers=function(){switch(this.Zk){case xy:KS(this);break;case by:for(var a,y=this.network.vertexes.iterator;y.next();)a=ZS(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 A0:for(KS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&QS(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function KS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=XS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function XS(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var tt=b.value,et=tt.toVertex;tt=a.linkMinLength(tt),x=Math.max(x,XS(a,et)+tt)}y.layer=x}else x=y.layer;return x}function ZS(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var tt=b.value,et=tt.fromVertex;tt=a.linkMinLength(tt),x=Math.max(x,ZS(a,et)+tt)}y.layer=x}else x=y.layer;return x}function QS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)QS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,tt=b.length,et=0;et<tt;et++){var nt=b[et],ht=nt.fromVertex,gt=nt.toVertex;nt=a.linkMinLength(nt),ht.layer-gt.layer>nt&&vg(a,ht,0,-1,!0,!1)}for(vg(a,y,1,-1,!0,!0);y.component!==0;){for(et=0,b=1/0,ht=0,gt=null,nt=a.network.vertexes.iterator;nt.next();){var bt=nt.value;if(bt.component===1){var Pt=0,Nt=!1,zt=bt.sourceEdgesArrayAccess;tt=zt.length;for(var Vt=0;Vt<tt;Vt++){var Zt=zt[Vt],oe=Zt.fromVertex;Pt+=1,oe.component!==1&&(et+=1,oe=oe.layer-bt.layer,Zt=a.linkMinLength(Zt),b=Math.min(b,oe-Zt))}for(zt=bt.destinationEdgesArrayAccess,tt=zt.length,Vt=0;Vt<tt;Vt++)Zt=zt[Vt].toVertex,--Pt,Zt.component!==1?--et:Nt=!0;(gt===null||Pt<ht)&&!Nt&&(gt=bt,ht=Pt)}}if(0<et){for(x.reset();x.next();)tt=x.value,tt.component===1&&(tt.layer+=b);y.component=0}else gt.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(vg(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,tt=1/0,et=0,ht=null,gt=a.network.vertexes.iterator;gt.next();)if(nt=gt.value,nt.component===1){for(bt=0,Pt=!1,zt=nt.sourceEdgesArrayAccess,Nt=zt.length,Vt=0;Vt<Nt;Vt++)Zt=zt[Vt].fromVertex,bt+=1,Zt.component!==1?b+=1:Pt=!0;for(zt=nt.destinationEdgesArrayAccess,Nt=zt.length,Vt=0;Vt<Nt;Vt++)Zt=zt[Vt],oe=Zt.toVertex,--bt,oe.component!==1&&(--b,oe=nt.layer-oe.layer,Zt=a.linkMinLength(Zt),tt=Math.min(tt,oe-Zt));(ht===null||bt>et)&&!Pt&&(ht=nt,et=bt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=tt);y.component=0}else ht.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Ci.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case M0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var tt=y[b],et=y[b+1];tt.portFromColOffset>et.portFromColOffset&&(x=!0,y[b]=et,y[b+1]=tt)}}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 tt=y[x],et=y[x+1];tt.portToColOffset>et.portToColOffset&&(b=!0,y[x]=et,y[x+1]=tt)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&$S(a,b))}Ci.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Cs(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)b0(this,b,1),ja(this,b,1);var tt=this.countCrossings();for(tt<a&&(a=tt,y=Cs(this)),b=this.Ia;0<=b;b--)b0(this,b,-1),ja(this,b,-1);tt=this.countCrossings(),tt<a&&(a=tt,y=Cs(this))}for(Sa(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)b0(this,b,0),ja(this,b,0);for(tt=this.countCrossings(),tt<a&&(a=tt,y=Cs(this)),b=this.Ia;0<=b;b--)b0(this,b,0),ja(this,b,0);tt=this.countCrossings(),tt<a&&(a=tt,y=Cs(this))}Sa(this,y);var et,nt,ht;switch(this.rk){case Ey:break;case Ay:for(ht=a+1;(b=this.countCrossings())<ht;)for(ht=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,-1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,0)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,0)||et;tt>=a?Sa(this,y):(a=tt,y=Cs(this))}break;default:case k0:for(x=this.Ia,nt=0,ht=a+1;(b=this.countCrossings())<ht;){for(ht=b,et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,-1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,0)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,0)||et;tt>=a?Sa(this,y):(a=tt,y=Cs(this))}}Sa(this,y)};function b0(a,y,x){var b=Hh(a,y),tt=a.tc[y],et=WS(a,y,x),nt=my(a,y,x);for(x=0;x<tt;x++)nt[x]===-1&&(nt[x]=b[x].column),et[x]===-1&&(et[x]=b[x].column);for(var ht=!0,gt;ht;)for(ht=!1,x=0;x<tt-1;x++)(et[x+1]<et[x]||et[x+1]===et[x]&&nt[x+1]<nt[x])&&(ht=!0,gt=et[x],et[x]=et[x+1],et[x+1]=gt,gt=nt[x],nt[x]=nt[x+1],nt[x+1]=gt,gt=b[x],b[x]=b[x+1],b[x+1]=gt);for(x=et=0;x<tt;x++)gt=b[x],gt.index=x,et+=a.nodeMinColumnSpace(gt,!0),gt.column=et,et+=1,et+=a.nodeMinColumnSpace(gt,!1);Wh(a,y,b)}function ja(a,y,x){var b=Hh(a,y),tt=a.tc[y];x=HS(a,y,x);var et,nt=[];for(et=0;et<tt;et++)nt[et]=-1;var ht=[];for(et=0;et<tt;et++)ht[et]=-1;for(var gt=!1,bt=!0;bt;)for(bt=!1,et=0;et<tt-1;et++){var Pt=x[b[et].index*tt+b[et+1].index],Nt=x[b[et+1].index*tt+b[et].index],zt=0,Vt=0,Zt=b[et].column,oe=b[et+1].column,Pe=a.nodeMinColumnSpace(b[et],!0),de=a.nodeMinColumnSpace(b[et],!1),Le=a.nodeMinColumnSpace(b[et+1],!0),Oe=a.nodeMinColumnSpace(b[et+1],!1);Pe=Zt-Pe+Le,de=oe-de+Oe;var De=b[et].sourceEdges.iterator;for(De.reset();De.next();)if(Le=De.value,Oe=Le.fromVertex,Le.valid&&Oe.layer===y){for(Le=0;b[Le]!==Oe;)Le++;Le<et&&(zt+=2*(et-Le),Vt+=2*(et+1-Le)),Le===et+1&&(zt+=1),Le>et+1&&(zt+=4*(Le-et),Vt+=4*(Le-(et+1)))}for(De=b[et].destinationEdges.iterator,De.reset();De.next();)if(Le=De.value,Oe=Le.toVertex,Le.valid&&Oe.layer===y){for(Le=0;b[Le]!==Oe;)Le++;Le===et+1&&(Vt+=1)}for(De=b[et+1].sourceEdges.iterator,De.reset();De.next();)if(Le=De.value,Oe=Le.fromVertex,Le.valid&&Oe.layer===y){for(Le=0;b[Le]!==Oe;)Le++;Le<et&&(zt+=2*(et+1-Le),Vt+=2*(et-Le)),Le===et&&(Vt+=1),Le>et+1&&(zt+=4*(Le-(et+1)),Vt+=4*(Le-et))}for(De=b[et+1].destinationEdges.iterator,De.reset();De.next();)if(Le=De.value,Oe=Le.toVertex,Le.valid&&Oe.layer===y){for(Le=0;b[Le]!==Oe;)Le++;Le===et&&(zt+=1)}Le=Oe=0,De=nt[b[et].index];var Re=ht[b[et].index],Ve=nt[b[et+1].index],Sn=ht[b[et+1].index];De!==-1&&(Oe+=Math.abs(De-Zt),Le+=Math.abs(De-de)),Re!==-1&&(Oe+=Math.abs(Re-Zt),Le+=Math.abs(Re-de)),Ve!==-1&&(Oe+=Math.abs(Ve-oe),Le+=Math.abs(Ve-Pe)),Sn!==-1&&(Oe+=Math.abs(Sn-oe),Le+=Math.abs(Sn-Pe)),(Vt<zt-.5||Vt===zt&&Nt<Pt-.5||Vt===zt&&Nt===Pt&&Le<Oe-.5)&&(bt=gt=!0,b[et].column=de,b[et+1].column=Pe,Pt=b[et],b[et]=b[et+1],b[et+1]=Pt)}for(et=0;et<tt;et++)b[et].index=et;return Wh(a,y,b),gt}Ci.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Xw)!==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,tt=this.network.vertexes.iterator;tt.next();){var et=tt.value;y=et.layer,b=et.column,et=this.nodeMinColumnSpace(et,!1),x[y]=Math.max(x[y],b+et)}for(tt.reset();tt.next();)et=tt.value,y=et.layer,b=et.column,et.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=Fd(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Fd(this,y,-1)||x;x=Fd(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&&(tw(this,-1),tw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Fd(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Fd(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Fd(this,y,0)||x}}else Ww(this)};function Fd(a,y,x){for(var b=!1;Gw(a,y,x);)b=!0;return b}function Gw(a,y,x){var b,tt=Hh(a,y),et=a.tc[y],nt=my(a,y,-1);if(0<x)for(b=0;b<et;b++)nt[b]=-1;var ht=my(a,y,1);if(0>x)for(b=0;b<et;b++)ht[b]=-1;for(var gt=!1,bt=!0;bt;)for(bt=!1,b=0;b<et;b++){var Pt=tt[b].column,Nt=a.nodeMinColumnSpace(tt[b],!0),zt=a.nodeMinColumnSpace(tt[b],!1),Vt=0;0>b-1||Pt-tt[b-1].column-1>Nt+a.nodeMinColumnSpace(tt[b-1],!1)?Vt=Pt-1:Vt=Pt,Nt=b+1>=et||tt[b+1].column-Pt-1>zt+a.nodeMinColumnSpace(tt[b+1],!0)?Pt+1:Pt;var Zt=zt=0,oe=0;if(0>=x)for(var Pe=tt[b].sourceEdges.iterator;Pe.next();){var de=Pe.value,Le=de.fromVertex;if(de.valid&&Le.layer!==y){var Oe=gy(de),De=de.portFromColOffset;de=de.portToColOffset,Le=Le.column,zt+=(Math.abs(Pt+de-(Le+De))+1)*Oe,Zt+=(Math.abs(Vt+de-(Le+De))+1)*Oe,oe+=(Math.abs(Nt+de-(Le+De))+1)*Oe}}if(0<=x)for(Pe=tt[b].destinationEdges.iterator;Pe.next();)de=Pe.value,Le=de.toVertex,de.valid&&Le.layer!==y&&(Oe=gy(de),De=de.portFromColOffset,de=de.portToColOffset,Le=Le.column,zt+=(Math.abs(Pt+De-(Le+de))+1)*Oe,Zt+=(Math.abs(Vt+De-(Le+de))+1)*Oe,oe+=(Math.abs(Nt+De-(Le+de))+1)*Oe);de=De=Oe=0,Pe=nt[tt[b].index],Le=ht[tt[b].index],Pe!==-1&&(Oe+=Math.abs(Pe-Pt),De+=Math.abs(Pe-Vt),de+=Math.abs(Pe-Nt)),Le!==-1&&(Oe+=Math.abs(Le-Pt),De+=Math.abs(Le-Vt),de+=Math.abs(Le-Nt)),Zt<zt||Zt===zt&&De<Oe?(bt=gt=!0,tt[b].column=Vt):(oe<zt||oe===zt&&de<Oe)&&(bt=gt=!0,tt[b].column=Nt)}return Wh(a,y,tt),a.normalize(),gt}function Sy(a,y,x){var b=Hh(a,y),tt=a.tc[y],et=WS(a,y,x),nt=[];for(x=0;x<tt;x++)nt[x]=et[x];for(et=!0;et;)for(et=!1,x=0;x<tt;x++){var ht=b[x].column,gt=a.nodeMinColumnSpace(b[x],!0),bt=a.nodeMinColumnSpace(b[x],!1),Pt=0;if(nt[x]===-1)if(x===0&&x===tt-1)Pt=ht;else if(x===0){var Nt=b[x+1].column;Nt-ht===bt+a.nodeMinColumnSpace(b[x+1],!0)?Pt=ht-1:Pt=ht}else x===tt-1?(Nt=b[x-1].column,Pt=ht-Nt===gt+a.nodeMinColumnSpace(b[x-1],!1)?ht+1:ht):(Nt=b[x-1].column,gt=Nt+a.nodeMinColumnSpace(b[x-1],!1)+gt+1,Nt=b[x+1].column,bt=Nt-a.nodeMinColumnSpace(b[x+1],!0)-bt-1,Pt=(gt+bt)/2|0);else x===0&&x===tt-1?Pt=nt[x]:x===0?(Nt=b[x+1].column,bt=Nt-a.nodeMinColumnSpace(b[x+1],!0)-bt-1,Pt=Math.min(nt[x],bt)):x===tt-1?(Nt=b[x-1].column,gt=Nt+a.nodeMinColumnSpace(b[x-1],!1)+gt+1,Pt=Math.max(nt[x],gt)):(Nt=b[x-1].column,gt=Nt+a.nodeMinColumnSpace(b[x-1],!1)+gt+1,Nt=b[x+1].column,bt=Nt-a.nodeMinColumnSpace(b[x+1],!0)-bt-1,gt<nt[x]&&nt[x]<bt?Pt=nt[x]:gt>=nt[x]?Pt=gt:bt<=nt[x]&&(Pt=bt));Pt!==ht&&(et=!0,b[x].column=Pt)}Wh(a,y,b),a.normalize()}function Uw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var tt=b.value,et=a.nodeMinColumnSpace(tt,!0),nt=a.nodeMinColumnSpace(tt,!1);if(tt.column-et<=y&&tt.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 Hw(a,y){var x=y+1,b,tt=[],et=[];for(b=0;b<=a.Ia;b++)tt[b]=!1,et[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ht=b.column-a.nodeMinColumnSpace(b,!0),gt=b.column+a.nodeMinColumnSpace(b,!1);ht<=y&&gt>=y&&(tt[b.layer]=!0),ht<=x&&gt>=x&&(et[b.layer]=!0)}for(ht=!0,x=!1,b=0;b<=a.Ia;b++)ht=ht&&!(tt[b]&&et[b]);if(ht)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function tw(a,y){for(var x=0;x<=a.Ra;x++)for(;Uw(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Hw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var tt=Cs(a),et=x0(a);for(b=et+1;et<b;){b=et,ew(a,x,1);var nt=x0(a);nt>et?Sa(a,tt):nt<et&&(et=nt,tt=Cs(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(tt=Cs(a),et=x0(a),b=et+1;et<b;)b=et,ew(a,x,-1),nt=x0(a),nt>et?Sa(a,tt):nt<et&&(et=nt,tt=Cs(a));a.normalize()}function ew(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 tt=b.value;tt.column-a.nodeMinColumnSpace(tt,!0)<=y&&(tt.component=a.le)}if(0>x)for(b.reset();b.next();)tt=b.value,tt.column+a.nodeMinColumnSpace(tt,!1)>=y&&(tt.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 et;for(y=[],et=0;et<a.le*a.le;et++)y[et]=!1;for(tt=[],et=0;et<(a.Ia+1)*(a.Ra+1);et++)tt[et]=-1;for(b.reset();b.next();){et=b.value;for(var nt=et.layer,ht=Math.max(0,et.column-a.nodeMinColumnSpace(et,!0)),gt=Math.min(a.Ra,et.column+a.nodeMinColumnSpace(et,!1));ht<=gt;ht++)tt[nt*(a.Ra+1)+ht]=et.component}for(et=0;et<=a.Ia;et++){if(0<x)for(nt=0;nt<a.Ra;nt++)tt[et*(a.Ra+1)+nt]!==-1&&tt[et*(a.Ra+1)+nt+1]!==-1&&tt[et*(a.Ra+1)+nt]!==tt[et*(a.Ra+1)+nt+1]&&(y[tt[et*(a.Ra+1)+nt]*a.le+tt[et*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)tt[et*(a.Ra+1)+nt]!==-1&&tt[et*(a.Ra+1)+nt-1]!==-1&&tt[et*(a.Ra+1)+nt]!==tt[et*(a.Ra+1)+nt-1]&&(y[tt[et*(a.Ra+1)+nt]*a.le+tt[et*(a.Ra+1)+nt-1]]=!0)}for(tt=[],et=0;et<a.le;et++)tt[et]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(gt=nt[nt.length-1],nt.pop(),tt[gt])for(tt[gt]=!1,et=0;et<a.le;et++)y[gt*a.le+et]&&nt.splice(0,0,et);if(0<x)for(b.reset();b.next();)a=b.value,tt[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,tt[x.component]&&(x.column+=1)}function Ww(a){for(var y=oi(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var tt=b.value;y[x-tt.layer][tt.index]=tt}x=new gn,Vw(y,x);var et=null,nt=null,ht=null,gt=null,bt=(a.ve&1)!==0,Pt=(a.ve&2)!==0,Nt=(a.ve&4)!==0,zt=(a.ve&8)!==0;for(bt&&(a.verticalAlignment(y,x,!0),et=P0(a,y,!0,!1)),y.reverse(),Nt&&(a.verticalAlignment(y,x,!1),ht=P0(a,y,!1,!1)),b=mr(y),tt=b.next();!tt.done;tt=b.next())tt.value.reverse();zt&&(a.verticalAlignment(y,x,!1),gt=P0(a,y,!1,!0)),y.reverse(),Pt&&(a.verticalAlignment(y,x,!0),nt=P0(a,y,!0,!0)),ri(y),a.u(et,nt,ht,gt),a.network.vertexes.each(function(Vt){var Zt=oi();bt&&Zt.push(et.get(Vt)),Pt&&Zt.push(nt.get(Vt)),Nt&&Zt.push(ht.get(Vt)),zt&&Zt.push(gt.get(Vt)),Zt.sort(function(Pe,de){return Pe-de});var oe=Zt.length;oe=(Zt[Math.floor((oe-1)/2)]+Zt[Math.ceil((oe-1)/2)])/2,ri(Zt),Vt.zc=oe})}function Vw(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var tt=0,et=0,nt=a[b],ht=a[b+1],gt=0;et<ht.length;gt++){var bt=ht[gt];t:{if(bt.node===null){var Pt=My(bt);if(0<Pt.length){Pt=Pt[0].node===null;break t}}Pt=!1}var Nt=Pt;if(gt===ht.length-1||Nt){for(Pt=nt.length-1,Nt&&(Pt=My(bt)[0].index);et<=gt;){if(bt=ht[et],!bt.bo){Nt=[];for(var zt=mr(bt.sourceEdgesArrayAccess),Vt=zt.next();!Vt.done;Vt=zt.next())Vt=Vt.value,Vt.valid&&Nt.push(Vt);bt.bo=Nt}for(bt=mr(bt.bo),Nt=bt.next();!Nt.done;Nt=bt.next())Nt=Nt.value,zt=Nt.fromVertex.index,(zt<tt||zt>Pt)&&y.add(Nt);et++}tt=Pt}}}Ci.prototype.verticalAlignment=function(a,y,x){Yw(a),a=mr(a);for(var b=a.next();!b.done;b=a.next()){var tt=-1;b=mr(b.value);for(var et=b.next();!et.done;et=b.next()){et=et.value;var nt=x?My(et):Zw(et),ht=nt.length;if(0<ht){nt.sort(function(Nt,zt){return Nt.vi-zt.vi});var gt=(ht-1)/2;for(ht=Math.floor(gt),gt=Math.ceil(gt);ht<=gt;ht++)if(et.align===et){var bt=nt[ht],Pt=void 0;Pt=x?L0(bt,et):L0(et,bt),!y.contains(Pt)&&tt<bt.vi&&(bt.align=et,et.root=bt.root,et.align=bt.root,tt=bt.vi)}}}}};function Yw(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var tt=x[b];tt.root=tt,tt.align=tt,tt.Tz=y,tt.vi=b}}function P0(a,y,x,b){for(var tt=a.K===90||a.K===270,et=mr(y),nt=et.next();!nt.done;nt=et.next()){var ht=mr(nt.value);for(nt=ht.next();!nt.done;nt=ht.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,et=mr(y),ht=et.next();!ht.done;ht=et.next()){ht=mr(ht.value);for(var gt=ht.next();!gt.done;gt=ht.next())if(gt=gt.value,gt.root===gt){for(var bt=0,Pt=gt;Pt.align!==gt;){var Nt=Pt.align,zt=nt?Pt.width:Pt.height,Vt=nt?Nt.width:Nt.height;if(x){var Zt=L0(Pt,Nt),oe=Zt.portFromPos,Pe=Zt.portToPos;Zt.link!==null&&(Pt.node&&Pt.node!==Zt.link.fromNode&&(oe=nt?Pt.focusX:Pt.focusY),Nt.node&&Nt.node!==Zt.link.toNode&&(Pe=nt?Nt.focusX:Nt.focusY))}else Zt=L0(Nt,Pt),oe=Zt.portToPos,Pe=Zt.portFromPos,Zt.link!==null&&(Pt.node&&Pt.node!==Zt.link.toNode&&(oe=nt?Pt.focusX:Pt.focusY),Nt.node&&Nt.node!==Zt.link.fromNode&&(Pe=nt?Nt.focusX:Nt.focusY));zt=b?Pt.qg+(zt-oe)-(Vt-Pe):Pt.qg+oe-Pe,Nt.qg=zt,bt=Math.min(bt,zt),Pt=Pt.align}Pt=gt;do Pt.qg=Pt.qg-bt,Pt=Pt.align;while(Pt!==gt)}}for(x=mr(y),nt=x.next();!nt.done;nt=x.next())for(et=mr(nt.value),nt=et.next();!nt.done;nt=et.next())nt=nt.value,nt.root===nt&&nw(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,ht=0;do{for(et=y[nt][ht];et.align!==et.root;)et=et.align,nt++,0<et.vi&&(ht=iw(et,y),ht.sd.shift=Math.min(ht.sd.shift,et.sd.shift+et.zc+et.qg-(ht.zc+ht.qg+(tt?ht.width:ht.height)+a.columnSpacing)));ht=et.vi+1}while(nt<y.length&&ht<y[nt].length&&et.sd===y[nt][ht].sd)}for(a=new Rn,y=mr(y),nt=y.next();!nt.done;nt=y.next())for(x=mr(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,et=tt?nt.width:nt.height,a.add(nt,b?-nt.zc-et:nt.zc);return a}function nw(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var tt=iw(b,x),et=tt.root;nw(a,et,x),y.sd===y&&(y.sd=et.sd);var nt=a.K===90||a.K===270?tt.width:tt.height;y.sd===et.sd&&(y.zc=Math.max(y.zc,et.zc+tt.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 iw(a,y){var x=a.Tz;return a=a.vi,1>a&&We("Could not determine previous vertex in layer"),y[x][a-1]}Ci.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=oi(),tt=oi(),et=1/0,nt=0;4>nt;nt++)if(y[nt]){var ht=Kw(this,y[nt],b,tt,nt);ht<et&&(x=nt,et=ht)}for(et={},nt=0;4>nt;et={delta:et.delta},nt++)y[nt]&&(et.delta=nt===0||nt===2?b[x]-b[nt]:tt[x]-tt[nt],et.delta!==0&&y[nt].each(function(gt){return function(bt){bt.value+=gt.delta}}(et)));ri(b),ri(tt)};function Kw(a,y,x,b,tt){if(!y||y.count===0)return x[tt]=0,b[tt]=0,1/0;var et=1/0,nt=-1/0;return y.each(function(ht){var gt=ht.key;ht=ht.value,gt=a.K===90||a.K===270?gt.width:gt.height,ht<et&&(et=ht),ht+gt>nt&&(nt=ht+gt)}),x[tt]=et,b[tt]=nt,nt-et}Ci.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=C0(this,!0),y=C0(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 C0(a,y){return a.K===270?y?Fo:Po:a.K===90?y?Po:Fo:a.K===180?y?vs:Ao:y?Ao:vs}Ci.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 tt=x;0>=this.he[b]+this.Ld[b]&&(tt=0),0<b&&(y+=tt/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+=tt/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 et=1/0,nt=tt=1/0,ht=-1/0;a.next();){var gt=a.value,bt=gt.layer,Pt=gt.column|0;b?(nt=y.x+this.kc*Pt,bt=this.Kd[bt]):(nt=this.Kd[bt],bt=y.y+this.kc*Pt),gt.centerX=nt,gt.centerY=bt,x&&isFinite(gt.zc)&&(b?gt.node?gt.x=y.x+gt.zc:gt.centerX=y.x+gt.zc:gt.node?gt.y=y.y+gt.zc:gt.centerY=y.y+gt.zc),et=Math.min(gt.x,et),tt=Math.min(gt.y,tt),b?(nt=et,ht=Math.max(ht,gt.bounds.right)):(nt=tt,ht=Math.max(ht,gt.bounds.bottom))}for(this.xw=ht-nt,et=y.x-et,y=y.y-tt,this.Rf=new Ee(x&&b?0:et,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=et,x.y+=y,x.commit()},Ci.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 $e(0,0,x,Math.abs(this.Ta[0]))):y.push(new $e(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new $e(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new $e(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new $e(0,0,Math.abs(this.Ta[0]),x)):y.push(new $e(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new $e(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new $e(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Ci.prototype.commitLayers=function(){},Ci.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,tt=b.fromNode,et=b.toNode,nt=b.fromPort,ht=b.toPort;if(tt!==null){var gt=tt.findVisibleNode();gt!==null&&gt!==tt&&(tt=gt,nt=gt.port)}et!==null&&(gt=et.findVisibleNode(),gt!==null&&gt!==et&&(et=gt,ht=gt.port));var bt=y.computeSpot(!0,nt);gt=y.computeSpot(!1,ht);var Pt=x.fromVertex,Nt=x.toVertex;if(x.valid)y.curve===ia&&y.pointsCount===4&&(Pt.column===Nt.column&&this.alignOption===0?(x=y.getLinkPoint(tt,nt,bt,!0,!1,et,ht),ht=y.getLinkPoint(et,ht,gt,!1,!1,tt,nt),x.w()||x.set(tt.actualBounds.center),ht.w()||ht.set(et.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ht.x)/3,(2*x.y+ht.y)/3),y.yf((x.x+2*ht.x)/3,(x.y+2*ht.y)/3),y.yf(ht.x,ht.y)):(x=b=!1,nt!==null&&bt===$r&&(b=!0),ht!==null&&gt===$r&&(x=!0),(b||x)&&(gt=null,b&&(gt=y.getLinkPointFromPoint(tt,nt,nt.ga(wi),y.i(3),!0),gt.w()||gt.set(tt.actualBounds.center),y.L(0,gt.x,gt.y)),tt=null,x&&(tt=y.getLinkPointFromPoint(et,ht,ht.ga(wi),y.i(0),!1),tt.w()||tt.set(et.actualBounds.center),y.L(3,tt.x,tt.y)),gt&&(et=y.i(2),y.L(1,(2*gt.x+et.x)/3,(2*gt.y+et.y)/3)),tt&&(et=y.i(1),y.L(2,(2*tt.x+et.x)/3,(2*tt.y+et.y)/3))))),y.zf();else if(Pt.layer===Nt.layer)y.zf();else{var zt=!1,Vt=!1,Zt=this.ie,oe=y.firstPickIndex+1;if(y.isOrthogonal){Vt=!0;var Pe=y.pointsCount;4<Pe&&y.points.removeRange(2,Pe-3)}else if(y.curve===ia)zt=!0,Pe=y.pointsCount,4<Pe&&y.points.removeRange(2,Pe-3),Pe===4&&(oe=2);else{Pe=y.pointsCount;var de=bt===$r,Le=gt===$r;2<Pe&&de&&Le?y.points.removeRange(1,Pe-2):3<Pe&&de&&!Le?y.points.removeRange(1,Pe-3):3<Pe&&!de&&Le?y.points.removeRange(2,Pe-2):4<Pe&&!de&&!Le&&y.points.removeRange(2,Pe-3)}if(x.rev){for(;Nt!==null&&Pt!==Nt;){var Oe=Pe=null;for(de=Nt.sourceEdges.iterator;de.next()&&(Le=de.value,Le.link!==x.link||(Pe=Le.fromVertex,Oe=Le.toVertex,Pe.node!==null)););if(Pe===null)break;if(Pe!==Pt){de=y.i(oe-1).x,Le=y.i(oe-1).y;var De=Pe.centerX,Re=Pe.centerY;if(Vt)this.K===180||this.K===0?oe===y.firstPickIndex+1?(y.m(oe++,de,Le),y.m(oe++,de,Re)):(Oe!==null?Oe.centerY:Le)!==Re&&(Oe=this.Ta[Pe.layer-1]+this.Rf.x,y.m(oe++,Oe,Le),y.m(oe++,Oe,Re)):oe===y.firstPickIndex+1?(y.m(oe++,de,Le),y.m(oe++,De,Le)):(Oe!==null?Oe.centerX:de)!==De&&(Oe=this.Ta[Pe.layer-1]+this.Rf.y,y.m(oe++,de,Oe),y.m(oe++,De,Oe));else if(oe===y.firstPickIndex+1){Oe=Math.max(10,this.he[Nt.layer]);var Ve=Math.max(10,this.Ld[Nt.layer]);if(zt)this.K===180?De<=Nt.bounds.x?(Nt=Nt.bounds.x,y.m(oe++,Nt-Oe,Re),y.m(oe++,Nt,Re),y.m(oe++,Nt+Ve,Re)):(y.m(oe++,De-Oe,Re),y.m(oe++,De,Re),y.m(oe++,De+Ve,Re)):this.K===90?Re>=Nt.bounds.bottom?(Nt=Nt.bounds.y+Nt.bounds.height,y.m(oe++,De,Nt+Ve),y.m(oe++,De,Nt),y.m(oe++,De,Nt-Oe)):(y.m(oe++,De,Re+Ve),y.m(oe++,De,Re),y.m(oe++,De,Re-Oe)):this.K===270?Re<=Nt.bounds.y?(Nt=Nt.bounds.y,y.m(oe++,De,Nt-Oe),y.m(oe++,De,Nt),y.m(oe++,De,Nt+Ve)):(y.m(oe++,De,Re-Oe),y.m(oe++,De,Re),y.m(oe++,De,Re+Ve)):this.K===0&&(De>=Nt.bounds.right?(Nt=Nt.bounds.x+Nt.bounds.width,y.m(oe++,Nt+Ve,Re),y.m(oe++,Nt,Re),y.m(oe++,Nt-Oe,Re)):(y.m(oe++,De+Ve,Re),y.m(oe++,De,Re),y.m(oe++,De-Oe,Re)));else{y.m(oe++,de,Le);var Sn=0;this.K===180||this.K===0?((this.K===180?De>=Nt.bounds.right:De<=Nt.bounds.x)&&(Sn=(this.K===0?-Oe:Ve)/2),y.m(oe++,de+Sn,Re)):((this.K===270?Re>=Nt.bounds.bottom:Re<=Nt.bounds.y)&&(Sn=(this.K===90?-Oe:Ve)/2),y.m(oe++,De,Le+Sn)),y.m(oe++,De,Re)}}else Oe=Math.max(10,this.he[Pe.layer]),Ve=Math.max(10,this.Ld[Pe.layer]),zt?this.K===180?(y.m(oe++,De-Oe-Zt,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De+Ve+Zt,Re)):this.K===90?(y.m(oe++,De,Re+Ve+Zt),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re-Oe-Zt)):this.K===270?(y.m(oe++,De,Re-Oe-Zt),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re+Ve+Zt)):(y.m(oe++,De+Ve+Zt,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De-Oe-Zt,Re)):y.m(oe++,De,Re)}Nt=Pe}(ht===null||bt!==$r||Vt)&&(de=y.i(oe-1).x,Le=y.i(oe-1).y,De=y.i(oe).x,Re=y.i(oe).y,Vt?(Zt=this.Ld[Pt.layer],this.K===180||this.K===0?(Vt=Le,Vt>=Pt.bounds.y&&Vt<=Pt.bounds.bottom&&(this.K===180?De>=Pt.bounds.x:De<=Pt.bounds.right)&&(Nt=Pt.centerX+(this.K===180?-Zt:Zt),Vt<Pt.bounds.y+Pt.bounds.height/2?Vt=Pt.bounds.y-this.kc/2:Vt=Pt.bounds.bottom+this.kc/2,y.m(oe++,Nt,Le),y.m(oe++,Nt,Vt)),y.m(oe++,De,Vt)):(Vt=de,Vt>=Pt.bounds.x&&Vt<=Pt.bounds.right&&(this.K===270?Re>=Pt.bounds.y:Re<=Pt.bounds.bottom)&&(Nt=Pt.centerY+(this.K===270?-Zt:Zt),Vt<Pt.bounds.x+Pt.bounds.width/2?Vt=Pt.bounds.x-this.kc/2:Vt=Pt.bounds.right+this.kc/2,y.m(oe++,de,Nt),y.m(oe++,Vt,Nt)),y.m(oe++,Vt,Re)),y.m(oe++,De,Re)):zt?(Oe=Math.max(10,this.he[Pt.layer]),Ve=Math.max(10,this.Ld[Pt.layer]),this.K===180&&De>=Pt.bounds.x?(Nt=Pt.bounds.x+Pt.bounds.width,y.L(oe-2,Nt,Le),y.L(oe-1,Nt+Ve,Le)):this.K===90&&Re<=Pt.bounds.bottom?(Nt=Pt.bounds.y,y.L(oe-2,de,Nt),y.L(oe-1,de,Nt-Oe)):this.K===270&&Re>=Pt.bounds.y?(Nt=Pt.bounds.y+Pt.bounds.height,y.L(oe-2,de,Nt),y.L(oe-1,de,Nt+Ve)):this.K===0&&De<=Pt.bounds.right&&(Nt=Pt.bounds.x,y.L(oe-2,Nt,Le),y.L(oe-1,Nt-Oe,Le))):(Oe=Math.max(10,this.he[Pt.layer]),Ve=Math.max(10,this.Ld[Pt.layer]),Vt=0,this.K===180||this.K===0?((this.K===180?De<=Pt.bounds.x:De>=Pt.bounds.right)&&(Vt=(this.K===0?Ve:-Oe)/2),y.m(oe++,De+Vt,Le)):((this.K===270?Re<=Pt.bounds.y:Re>=Pt.bounds.bottom)&&(Vt=(this.K===90?Ve:-Oe)/2),y.m(oe++,de,Re+Vt)),y.m(oe++,De,Re)))}else{for(;Pt!==null&&Pt!==Nt;){for(Oe=Pe=null,Pt=Pt.destinationEdges.iterator;Pt.next()&&(de=Pt.value,de.link!==x.link||(Pe=de.toVertex,Oe=de.fromVertex,Oe.node!==null&&(Oe=null),Pe.node!==null)););if(Pe===null)break;Pe!==Nt&&(de=y.i(oe-1).x,Le=y.i(oe-1).y,De=Pe.centerX,Re=Pe.centerY,Vt?this.K===180||this.K===0?(Oe!==null?Oe.centerY:Le)!==Re&&(Oe=this.Ta[Pe.layer]+this.Rf.x,oe===y.firstPickIndex+1&&(Oe=this.K===0?Math.max(Oe,de):Math.min(Oe,de)),y.m(oe++,Oe,Le),y.m(oe++,Oe,Re)):(Oe!==null?Oe.centerX:de)!==De&&(Oe=this.Ta[Pe.layer]+this.Rf.y,oe===y.firstPickIndex+1&&(Oe=this.K===90?Math.max(Oe,Le):Math.min(Oe,Le)),y.m(oe++,de,Oe),y.m(oe++,De,Oe)):(Oe=Math.max(10,this.he[Pe.layer]),Ve=Math.max(10,this.Ld[Pe.layer]),zt?this.K===180?(y.m(oe++,De+Ve+Zt,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De-Oe-Zt,Re)):this.K===90?(y.m(oe++,De,Re-Oe-Zt),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re+Ve+Zt)):this.K===270?(y.m(oe++,De,Re+Ve+Zt),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re-Oe-Zt)):(y.m(oe++,De-Oe-Zt,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De+Ve+Zt,Re)):this.K===180?(y.m(oe++,De+Ve,Re),y.m(oe++,De-Oe,Re)):this.K===90?(y.m(oe++,De,Re-Oe),y.m(oe++,De,Re+Ve)):this.K===270?(y.m(oe++,De,Re+Ve),y.m(oe++,De,Re-Oe)):(y.m(oe++,De-Oe,Re),y.m(oe++,De+Ve,Re)))),Pt=Pe}Vt&&(de=y.i(oe-1).x,Le=y.i(oe-1).y,De=y.i(oe).x,Re=y.i(oe).y,this.K===180||this.K===0?Le!==Re&&(Oe=this.K===0?Math.min(Math.max((De+de)/2,this.Ta[Nt.layer]+this.Rf.x),De):Math.max(Math.min((De+de)/2,this.Ta[Nt.layer]+this.Rf.x),De),y.m(oe++,Oe,Le),y.m(oe++,Oe,Re)):de!==De&&(Oe=this.K===90?Math.min(Math.max((Re+Le)/2,this.Ta[Nt.layer]+this.Rf.y),Re):Math.max(Math.min((Re+Le)/2,this.Ta[Nt.layer]+this.Rf.y),Re),y.m(oe++,de,Oe),y.m(oe++,De,Oe)))}b!==null&&zt&&4<=y.pointsCount&&(nt!==null&&(nt=bt===$r?y.getLinkPointFromPoint(tt,nt,nt.ga(wi),y.i(3),!0):y.i(0),bt===$r&&(bt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+bt.x)/2,bt.y),y.L(2,b.x,(bt.y+b.y)/2)):(y.L(1,bt.x,(nt.y+bt.y)/2),y.L(2,(bt.x+b.x)/2,b.y))),nt.w()||nt.set(tt.actualBounds.center),y.L(0,nt.x,nt.y)),ht!==null&&(tt=gt===$r?y.getLinkPointFromPoint(et,ht,ht.ga(wi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),gt===$r&&(ht=y.i(y.pointsCount-3),gt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(tt.x+ht.x)/2,ht.y),y.L(y.pointsCount-2,gt.x,(ht.y+gt.y)/2)):(y.L(y.pointsCount-2,ht.x,(tt.y+ht.y)/2),y.L(y.pointsCount-3,(ht.x+gt.x)/2,gt.y))),tt.w()||tt.set(et.actualBounds.center),y.L(y.pointsCount-1,tt.x,tt.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ci.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new vn,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 tt=2;tt<b.pointsCount-3;tt++){var et=b.i(tt),nt=b.i(tt+1);if(this.B(et.y,nt.y)&&!this.B(et.x,nt.x)){var ht=new Vh;ht.layer=Math.floor(et.y/2);var gt=b.i(0),bt=b.i(b.pointsCount-1);if(ht.first=gt.x*gt.x+gt.y,ht.jc=bt.x*bt.x+bt.y,ht.rd=Math.min(et.x,nt.x),ht.Ic=Math.max(et.x,nt.x),ht.index=tt,ht.link=b,tt+2<b.pointsCount){gt=b.i(tt-1),bt=b.i(tt+2);var Pt=0;gt.y<et.y?Pt=bt.y<et.y?3:et.x<nt.x?2:1:gt.y>et.y&&(Pt=bt.y>et.y?0:nt.x<et.x?2:1),ht.j=Pt}x.push(ht)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(et=x[a].layer,b=a+1;b<x.length&&x[b].layer===et;)b++;if(1<b-a)for(et=a;et<b;){for(nt=x[et].Ic,tt=a+1;tt<b&&x[tt].rd<nt;)nt=Math.max(nt,x[tt].Ic),tt++;if(nt=tt-et,1<nt){for(this.zi(x,this.Js,et,et+nt),Pt=1,ht=x[et].jc,gt=et;gt<tt;gt++)bt=x[gt],bt.jc!==ht&&(Pt++,ht=bt.jc);this.zi(x,this.Ux,et,et+nt);var Nt=1;for(ht=x[et].first,gt=et;gt<tt;gt++)bt=x[gt],bt.first!==ht&&(Nt++,ht=bt.first);for(gt=!0,bt=Nt,Pt<Nt?(gt=!1,bt=Pt,ht=x[et].jc,this.zi(x,this.Js,et,et+nt)):ht=x[et].first,Pt=0,Nt=et;Nt<tt;Nt++){var zt=x[Nt];(gt?zt.first:zt.jc)!==ht&&(Pt++,ht=gt?zt.first:zt.jc);var Vt=zt.link;et=Vt.i(zt.index),nt=Vt.i(zt.index+1);var Zt=this.linkSpacing*(Pt-(bt-1)/2);y++,Vt.uh(),Vt.L(zt.index,et.x,et.y+Zt),Vt.L(zt.index+1,nt.x,nt.y+Zt),Vt.zf()}}et=tt}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(tt=2;tt<b.pointsCount-3;tt++)et=b.i(tt),nt=b.i(tt+1),this.B(et.x,nt.x)&&!this.B(et.y,nt.y)&&(ht=new Vh,ht.layer=Math.floor(et.x/2),gt=b.i(0),bt=b.i(b.pointsCount-1),ht.first=gt.x+gt.y*gt.y,ht.jc=bt.x+bt.y*bt.y,ht.rd=Math.min(et.y,nt.y),ht.Ic=Math.max(et.y,nt.y),ht.index=tt,ht.link=b,tt+2<b.pointsCount&&(gt=b.i(tt-1),bt=b.i(tt+2),Pt=0,gt.x<et.x?Pt=bt.x<et.x?3:et.y<nt.y?2:1:gt.x>et.x&&(Pt=bt.x>et.x?0:nt.y<et.y?2:1),ht.j=Pt),x.push(ht));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(et=x[a].layer,b=a+1;b<x.length&&x[b].layer===et;)b++;if(1<b-a)for(et=a;et<b;){for(nt=x[et].Ic,tt=a+1;tt<b&&x[tt].rd<nt;)nt=Math.max(nt,x[tt].Ic),tt++;if(nt=tt-et,1<nt){for(this.zi(x,this.Js,et,et+nt),Pt=1,ht=x[et].jc,gt=et;gt<tt;gt++)bt=x[gt],bt.jc!==ht&&(Pt++,ht=bt.jc);for(this.zi(x,this.Ux,et,et+nt),Nt=1,ht=x[et].first,gt=et;gt<tt;gt++)bt=x[gt],bt.first!==ht&&(Nt++,ht=bt.first);for(gt=!0,bt=Nt,Pt<Nt?(gt=!1,bt=Pt,ht=x[et].jc,this.zi(x,this.Js,et,et+nt)):ht=x[et].first,Pt=0,Nt=et;Nt<tt;Nt++)zt=x[Nt],(gt?zt.first:zt.jc)!==ht&&(Pt++,ht=gt?zt.first:zt.jc),Vt=zt.link,et=Vt.i(zt.index),nt=Vt.i(zt.index+1),Zt=this.linkSpacing*(Pt-(bt-1)/2),y++,Vt.uh(),Vt.L(zt.index,et.x+Zt,et.y),Vt.L(zt.index+1,nt.x+Zt,nt.y),Vt.zf()}et=tt}a=b}}}},ee=Ci.prototype,ee.Vx=function(a,y){return a instanceof Vh&&y instanceof Vh&&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},ee.Ux=function(a,y){return a instanceof Vh&&y instanceof Vh&&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},ee.Js=function(a,y){return a instanceof Vh&&y instanceof Vh&&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},ee.B=function(a,y){return a-=y,-1<a&&1>a},ee.zi=function(a,y,x,b){var tt=a.length,et=b-x;if(!(1>=et))if((0>x||x>=tt-1)&&We("not in range 0 <= from < length: "+x),et===2)b=a[x],tt=a[x+1],0<y(b,tt)&&(a[x]=tt,a[x+1]=b);else if(x===0)if(b>=tt)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>=tt)for(b=a.slice(x),b.sort(y),y=x;y<tt;y++)a[y]=b[y-x];else for(tt=a.slice(x,b),tt.sort(y),y=x;y<b;y++)a[y]=tt[y-x]};function Hh(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],tt=0;tt<a.He.length;tt++)b[tt]=a.He[tt];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 Wh(a,y,x){a.He[a.tc[y]]=x}qe.Object.defineProperties(Ci.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!==wy&&a!==E0&&a!==yg||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==A0&&a!==xy&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==M0&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ey&&a!==k0&&a!==Ay||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var E0=new sn(Ci,"CycleDepthFirst",0),wy=new sn(Ci,"CycleGreedy",1),yg=new sn(Ci,"CycleFromLayers",2),A0=new sn(Ci,"LayerOptimalLinkLength",0),xy=new sn(Ci,"LayerLongestPathSink",1),by=new sn(Ci,"LayerLongestPathSource",2),M0=new sn(Ci,"InitDepthFirstOut",0),Py=new sn(Ci,"InitDepthFirstIn",1),Cy=new sn(Ci,"InitNaive",2),Ey=new sn(Ci,"AggressiveNone",0),k0=new sn(Ci,"AggressiveLess",1),Ay=new sn(Ci,"AggressiveMore",2),Xw=8;Ci.className="LayeredDigraphLayout",Ci.CycleDepthFirst=E0,Ci.CycleGreedy=wy,Ci.CycleFromLayers=yg,Ci.LayerOptimalLinkLength=A0,Ci.LayerLongestPathSink=xy,Ci.LayerLongestPathSource=by,Ci.InitDepthFirstOut=M0,Ci.InitDepthFirstIn=Py,Ci.InitNaive=Cy,Ci.AggressiveNone=Ey,Ci.AggressiveLess=k0,Ci.AggressiveMore=Ay,Ci.PackNone=0,Ci.PackExpand=1,Ci.PackStraighten=2,Ci.PackMedian=4,Ci.PackAll=15,Ci.AlignNone=0,Ci.AlignUpperLeft=1,Ci.AlignUpperRight=2,Ci.AlignLowerLeft=4,Ci.AlignLowerRight=8,Ci.AlignAll=15;function Vh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Vh.className="SegInfo";function Bd(a){Di.call(this,a)}en(Bd,Di),Bd.prototype.createVertex=function(){return new wa(this)},Bd.prototype.createEdge=function(){return new Sg(this)},Bd.className="LayeredDigraphNetwork";function wa(a){Vr.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}en(wa,Vr);function rw(a,y){return a.index-y.index}function L0(a,y){if(!a.$n){for(var x=[],b=mr(a.destinationEdgesArrayAccess),tt=b.next();!tt.done;tt=b.next())tt=tt.value,tt.valid&&x.push(tt);a.$n=x}for(a=mr(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 My(a){if(!a.co){for(var y=[],x=mr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(rw),a.co=y}return a.co}function Zw(a){if(!a.ao){for(var y=[],x=mr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(rw),a.ao=y}return a.ao}wa.prototype.Cl=function(a){Vr.prototype.Cl.call(this,a),this.bo=this.co=null},wa.prototype.Kl=function(a){Vr.prototype.Kl.call(this,a),this.bo=this.co=null},wa.prototype.zl=function(a){Vr.prototype.zl.call(this,a),this.$n=this.ao=null},wa.prototype.Jl=function(a){Vr.prototype.Jl.call(this,a),this.$n=this.ao=null},qe.Object.defineProperties(wa.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)}}}),wa.prototype.deleteDestinationEdge=wa.prototype.Jl,wa.prototype.addDestinationEdge=wa.prototype.zl,wa.prototype.deleteSourceEdge=wa.prototype.Kl,wa.prototype.addSourceEdge=wa.prototype.Cl,wa.className="LayeredDigraphVertex";function Sg(a){Hs.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}en(Sg,Hs),qe.Object.defineProperties(Sg.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)}}}),Sg.className="LayeredDigraphEdge";function $n(a){Ji.call(this),this.Ub=new gn,this.Wn=j0,this.ud=Yl,this.vo=D0,this.Bq=By,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new xn(10,10).freeze();var y=new Mf(this);this.W=new Na(y),this.Y=new Na(y),this.ru=[],a&&Object.assign(this,a)}en($n,Ji),$n.prototype.cloneProtected=function(a){Ji.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)},$n.prototype.qb=function(a){a.classType===$n?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):Ji.prototype.qb.call(this,a)},$n.prototype.createNetwork=function(){return new Mf(this)},$n.prototype.makeNetwork=function(a){function y(b){if(b instanceof wn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof cn){var tt=b.fromNode;return tt===null||tt.isLinkLabel||tt.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 Un?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},$n.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==F0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ye&&(y=a),this.path===j0&&y!==null?this.ud=y.isTreePathToChildren?Yl:Ef:this.ud=this.path===j0?Yl: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 gn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof wn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Na&&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,ky(this,y));for(y=this.network.vertexes,a=null;a=Qw(y),0<a.count;)y=ow(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,ky(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Na&&aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Na&&lw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Na&&uw(this,y);if(this.Cu(),this.layerStyle===B0){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 tt=a[x.level];tt===void 0&&(tt=0),a[x.level]=Math.max(tt,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===Ry)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,tt=0;tt<y.children.length;tt++){var et=y.children[tt];b=Math.max(b,x?et.width:et.height)}if(0<=b)for(tt=0;tt<y.children.length;tt++)et=y.children[tt],x?(y.angle===180&&(et.focusX+=b-et.width),et.width=b):(y.angle===270&&(et.focusY+=b-et.height),et.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Na&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new gn,this.isValidLayout=!0};function Qw(a){var y=new gn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}$n.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Yl:x.sourceEdges.count===0&&this.Ub.add(x);break;case Ef:x.destinationEdges.count===0&&this.Ub.add(x);break;default:We("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ow(this,a),a!==null&&this.Ub.add(a))};function ow(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var tt=y.value;switch(a.ud){case Yl:tt.sourceEdges.count<x&&(x=tt.sourceEdges.count,b=tt);break;case Ef:tt.destinationEdges.count<x&&(x=tt.destinationEdges.count,b=tt);break;default:We("Unhandled path value "+a.ud.toString())}}return b}function ky(a,y){if(y!==null){switch(a.ud){case Yl:if(0<y.destinationEdges.count){for(var x=new vn,b=y.destinationVertexes;b.next();){var tt=b.value;sw(a,y,tt)&&x.add(tt)}0<x.count&&(y.children=x.Fa())}break;case Ef:if(0<y.sourceEdges.count){for(x=new vn,b=y.sourceVertexes;b.next();)tt=b.value,sw(a,y,tt)&&x.add(tt);0<x.count&&(y.children=x.Fa())}break;default:We("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,tt=0;tt<b;tt++){var et=x[tt];et.initialized=!0,et.level=y.level+1,et.parent=y,a.Ub.remove(et)}for(y=0;y<b;y++)ky(a,x[y])}}function sw(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}$n.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,tt=0;tt<x.length;tt++)x[tt]===y&&b++;if(0<b){b=Array(x.length-b);for(var et=tt=0;et<x.length;et++)x[et]!==y&&(b[tt++]=x[et]);a.children=b}}};function aw(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Zl&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,tt=0,et=y.children,nt=et.length,ht=0;ht<nt;ht++){var gt=et[ht];aw(a,gt),x+=gt.descendantCount+1,b=Math.max(b,gt.maxChildrenCount),tt=Math.max(tt,gt.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?tt+1:0}}function Jw(a,y){switch(a.vo){default:case D0: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 Dy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ny:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,tt=b.length,et=0;et<tt;et++)if(0<b[et].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}$n.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jw(this,a)),a.parent!==null&&a.parent.alignment===Zl){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 lw(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lw(a,y[b])}}$n.prototype.assignTreeVertexValues=function(){};function uw(a,y){if(y!==null){y.alignment!==Zl&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)uw(a,y[b])}}$n.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Rd:break;case xg:a.children.reverse();break;case bg:a.children.sort(a.comparer);break;case Pg:a.children.sort(a.comparer),a.children.reverse();break;default:We("Unhandled sorting value "+a.sorting.toString())}},$n.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},$n.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,tt=!1;x!==null&&(b=x.angle,tt=x.alignment,tt=Yh(tt)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var et=0,nt=0,ht=0,gt=a.commentSpacing;if(a.node!==null)for(var bt=a.node.Mu();bt.next();){var Pt=bt.value;Pt.category==="Comment"&&Pt.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(Pt),Pt.Va(),Pt=Pt.measuredBounds,y&&!x||!tt&&!b&&x||tt&&b&&x?(et=Math.max(et,Pt.width),nt+=Pt.height+Math.abs(ht)):(et+=Pt.width+Math.abs(ht),nt=Math.max(nt,Pt.height)),ht=gt)}a.comments!==null&&(y&&!x||!tt&&!b&&x||tt&&b&&x?(et+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),et=Math.max(0,et-a.width)),tt=$e.allocAt(0,0,a.bounds.width+et,a.bounds.height+nt),a.bounds=tt,$e.free(tt))};function Yh(a){return a===th||a===Zl||a===eh||a===gu}function wg(a){return a===th||a===Zl}function Ly(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Yh(x)){if(wg(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===eh)return!0}}return!1}$n.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,tt=0,et=!1;x!==null&&(tt=x.angle,et=x.alignment,et=Yh(et)),b=b===90||b===270,x=tt===90||tt===270;for(var nt=a.childrenCount===0,ht=Ly(a),gt=0,bt=a.comments,Pt=bt.length,Nt=Ee.alloc(),zt=0;zt<Pt;zt++){var Vt=bt[zt],Zt=Vt.measuredBounds;if(b&&!nt||!et&&!x&&nt||et&&x&&nt){if(135<tt&&!et||x&&ht)if(0<=a.commentMargin)for(Nt.h(a.bounds.x-a.commentMargin-Zt.width,a.bounds.y+gt),Vt.move(Nt),Vt=Vt.Sd();Vt.next();){var oe=Vt.value;oe.fromSpot=vs,oe.toSpot=Ao}else for(Nt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+gt),Vt.move(Nt),Vt=Vt.Sd();Vt.next();)oe=Vt.value,oe.fromSpot=Ao,oe.toSpot=vs;else if(0<=a.commentMargin)for(Nt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+gt),Vt.move(Nt),Vt=Vt.Sd();Vt.next();)oe=Vt.value,oe.fromSpot=Ao,oe.toSpot=vs;else for(Nt.h(a.bounds.x+a.commentMargin-Zt.width,a.bounds.y+gt),Vt.move(Nt),Vt=Vt.Sd();Vt.next();)oe=Vt.value,oe.fromSpot=vs,oe.toSpot=Ao;gt=0<=a.commentSpacing?gt+(Zt.height+a.commentSpacing):gt+(a.commentSpacing-Zt.height)}else{if(135<tt&&!et||!x&&ht)if(0<=a.commentMargin)for(Nt.h(a.bounds.x+gt,a.bounds.y-a.commentMargin-Zt.height),Vt.move(Nt),Vt=Vt.Sd();Vt.next();)oe=Vt.value,oe.fromSpot=Fo,oe.toSpot=Po;else for(Nt.h(a.bounds.x+gt,a.bounds.y+2*a.focus.y-a.commentMargin),Vt.move(Nt),Vt=Vt.Sd();Vt.next();)oe=Vt.value,oe.fromSpot=Po,oe.toSpot=Fo;else if(0<=a.commentMargin)for(Nt.h(a.bounds.x+gt,a.bounds.y+2*a.focus.y+a.commentMargin),Vt.move(Nt),Vt=Vt.Sd();Vt.next();)oe=Vt.value,oe.fromSpot=Po,oe.toSpot=Fo;else for(Nt.h(a.bounds.x+gt,a.bounds.y+a.commentMargin-Zt.height),Vt.move(Nt),Vt=Vt.Sd();Vt.next();)oe=Vt.value,oe.fromSpot=Fo,oe.toSpot=Po;gt=0<=a.commentSpacing?gt+(Zt.width+a.commentSpacing):gt+(a.commentSpacing-Zt.width)}}if(Ee.free(Nt),y=gt-a.commentSpacing-(b?y.height:y.width),this.ud===Yl)for(a=a.destinationEdges;a.next();)tt=a.value.link,tt===null||tt.isAvoiding||(tt.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)tt=a.value.link,tt===null||tt.isAvoiding||(tt.toEndSegmentLength=0<y?y:NaN)}},$n.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 N0:hw(this,a);break;case Cg:if(a.alignment===Zl)hw(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Yh(x)),b=Ly(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 tt=Qa(a);y=tt===90||tt===270;var et=0,nt=a.children,ht=nt.length;for(x=0;x<ht;x++)b=nt[x],et=Math.max(et,y?b.Da.width:b.Da.height);var gt=a.alignment;b=gt===Kl;var bt=gt===Xl,Pt=Yh(gt),Nt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var zt=a.nodeSpacing,Vt=this.computeNodeIndent(a),Zt=a.rowSpacing,oe=0;(b||bt||a.hm||a.im&&a.maxGenerationCount===1)&&(oe=Math.max(0,a.rowIndent)),b=a.width;var Pe=a.height,de=0,Le=0,Oe=0,De=null,Re=null,Ve=0,Sn=0,Mn=0,Pn=0,hn=0,rn=0,Gn=0,Fn=0;if(Pt&&!wg(gt)&&135<tt&&nt.reverse(),wg(gt))if(1<ht)for(var yi=0;yi<ht;yi++)yi%2===0&&yi!==ht-1&&(Fn=Math.max(Fn,y?nt[yi].Da.width:nt[yi].Da.height));else ht===1&&(Fn=y?nt[0].Da.width:nt[0].Da.height);if(Pt){switch(gt){case th:Le=135>tt?cw(this,a,nt,Fn,de,Le):fw(this,a,nt,Fn,de,Le),Fn=Le.x,de=Le.width,Le=Le.height;break;case eh:for(De=0;De<ht;De++)Re=nt[De],Nt=Re.Da,Oe=rn===0?0:Zt,y?(Re.S.h(et-Nt.width,Pn+Oe),de=Math.max(de,Nt.width),Le=Math.max(Le,Pn+Oe+Nt.height),Pn+=Oe+Nt.height):(Re.S.h(Mn+Oe,et-Nt.height),de=Math.max(de,Mn+Oe+Nt.width),Le=Math.max(Le,Nt.height),Mn+=Oe+Nt.width),rn++;break;case gu:for(De=0;De<ht;De++)Re=nt[De],et=Re.Da,Nt=rn===0?0:Zt,y?(Re.S.h(zt/2+a.focus.x,Pn+Nt),de=Math.max(de,et.width),Le=Math.max(Le,Pn+Nt+et.height),Pn+=Nt+et.height):(Re.S.h(Mn+Nt,zt/2+a.focus.y),de=Math.max(de,Mn+Nt+et.width),Le=Math.max(Le,et.height),Mn+=Nt+et.width),rn++}De=Ts(this,2),Re=Ts(this,2),y?(De[0].h(0,0),De[1].h(0,Le),Re[0].h(de,0)):(De[0].h(0,0),De[1].h(de,0),Re[0].h(0,Le)),Re[1].h(de,Le)}else for(yi=0;yi<ht;yi++){var _i=nt[yi],io=_i.Da;if(y){0<Nt&&0<rn&&Mn+zt+io.width>Nt&&(Mn<et&&jc(a,gt,et-Mn,0,Gn,yi-1),hn++,rn=0,Gn=yi,Oe=Le,Mn=0,Pn=135<tt?-Le-Zt:Le+Zt),_0(this,_i,0,Pn);var lo=0;if(rn===0)De=_i.Yo,Re=_i.kp,Ve=io.width,Sn=io.height,(De===null||Re===null||tt!==Qa(_i))&&(De=Ts(this,2),Re=Ts(this,2),De[0].h(0,0),De[1].h(0,Sn),Re[0].h(Ve,0),Re[1].h(Ve,Sn));else{var Yo=oi();Sn=dw(this,a,_i,De,Re,Ve,Sn,Yo),lo=Sn.x,De=Yo[0],Re=Yo[1],Ve=Sn.width,Sn=Sn.height,ri(Yo),Mn<io.width&&0>lo&&(Cf(a,-lo,0,Gn,yi-1),O0(De,-lo,0),O0(Re,-lo,0),lo=0)}_i.S.h(lo,Pn),de=Math.max(de,Ve),Le=Math.max(Le,Oe+(hn===0?0:Zt)+io.height),Mn=Ve}else 0<Nt&&0<rn&&Pn+zt+io.height>Nt&&(Pn<et&&jc(a,gt,0,et-Pn,Gn,yi-1),hn++,rn=0,Gn=yi,Oe=de,Pn=0,Mn=135<tt?-de-Zt:de+Zt),_0(this,_i,Mn,0),lo=0,rn===0?(De=_i.Yo,Re=_i.kp,Ve=io.width,Sn=io.height,(De===null||Re===null||tt!==Qa(_i))&&(De=Ts(this,2),Re=Ts(this,2),De[0].h(0,0),De[1].h(Ve,0),Re[0].h(0,Sn),Re[1].h(Ve,Sn))):(Yo=oi(),Sn=dw(this,a,_i,De,Re,Ve,Sn,Yo),lo=Sn.x,De=Yo[0],Re=Yo[1],Ve=Sn.width,Sn=Sn.height,ri(Yo),Pn<io.height&&0>lo&&(Cf(a,0,-lo,Gn,yi-1),O0(De,0,-lo),O0(Re,0,-lo),lo=0)),_i.S.h(Mn,lo),Le=Math.max(Le,Sn),de=Math.max(de,Oe+(hn===0?0:Zt)+io.width),Pn=Sn;rn++}switch(0<hn&&(y?(Le+=Math.max(0,x),Mn<de&&jc(a,gt,de-Mn,0,Gn,ht-1),0<oe&&(bt||Cf(a,oe,0,0,ht-1),de+=oe)):(de+=Math.max(0,x),Pn<Le&&jc(a,gt,0,Le-Pn,Gn,ht-1),0<oe&&(bt||Cf(a,0,oe,0,ht-1),Le+=oe))),oe=bt=0,gt){case zd:y?bt+=de/2-a.focus.x-Vt/2:oe+=Le/2-a.focus.y-Vt/2;break;case Af:0<hn?y?bt+=de/2-a.focus.x-Vt/2:oe+=Le/2-a.focus.y-Vt/2:y?(Fn=nt[0].S.x+nt[0].la.x,bt+=Fn+(nt[ht-1].S.x+nt[ht-1].la.x+2*nt[ht-1].focus.x-Fn)/2-a.focus.x-Vt/2):(Fn=nt[0].S.y+nt[0].la.y,oe+=Fn+(nt[ht-1].S.y+nt[ht-1].la.y+2*nt[ht-1].focus.y-Fn)/2-a.focus.y-Vt/2);break;case Kl:y?(bt-=Vt,de+=Vt):(oe-=Vt,Le+=Vt);break;case Xl:y?(bt+=de-a.width+Vt,de+=Vt):(oe+=Le-a.height+Vt,Le+=Vt);break;case th:y?1<ht?bt+=Fn+zt/2-a.focus.x:bt+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ht?oe+=Fn+zt/2-a.focus.y:oe+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case eh:y?bt+=de+zt/2-a.focus.x:oe+=Le+zt/2-a.focus.y;break;case gu:break;default:Le=this.customAlignment(a,bt,oe,de,Le),bt=Le[0],oe=Le[1],de=Le[2],Le=Le[3]}for(Vt=0;Vt<ht;Vt++)Fn=nt[Vt],y?Fn.S.h(Fn.S.x+Fn.la.x-bt,Fn.S.y+(135<tt?(Pt?-Le:-Fn.Da.height)+Fn.la.y-x:Pe+x+Fn.la.y)):Fn.S.h(Fn.S.x+(135<tt?(Pt?-de:-Fn.Da.width)+Fn.la.x-x:b+x+Fn.la.x),Fn.S.y+Fn.la.y-oe);if(ht=nt=0,Pt?y?(de=Ty(a,de,bt),0>bt&&(bt=0),135<tt&&(oe+=Le+x),Le+=Pe+x,gt===gu&&(nt+=zt/2+a.focus.x),ht+=Pe+x):(135<tt&&(bt+=de+x),de+=b+x,Le=_y(a,Le,oe),0>oe&&(oe=0),gt===gu&&(ht+=zt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>de&&(de=Oy(gt,b-de,0),nt=de.x,ht=de.y,de=b,bt=0):de=Ty(a,de,bt),0>bt&&(nt-=bt,bt=0),135<tt&&(oe+=Le+x),Le=Math.max(Math.max(Le,Pe),Le+Pe+x),ht+=Pe+x):(135<tt&&(bt+=de+x),de=Math.max(Math.max(de,b),de+b+x),a.comments===null?Pe>Le&&(Le=Oy(gt,0,Pe-Le),nt=Le.x,ht=Le.y,Le=Pe,oe=0):Le=_y(a,Le,oe),0>oe&&(ht-=oe,oe=0),nt+=b+x),0<hn)tt=Ts(this,4),hn=Ts(this,4),y?(tt[2].h(0,Pe+x),tt[3].h(tt[2].x,Le),hn[2].h(de,tt[2].y),hn[3].h(hn[2].x,tt[3].y)):(tt[2].h(b+x,0),tt[3].h(de,tt[2].y),hn[2].h(tt[2].x,Le),hn[3].h(tt[3].x,hn[2].y));else{for(tt=Ts(this,De.length+2),hn=Ts(this,Re.length+2),gt=0;gt<De.length;gt++)Pt=De[gt],tt[gt+2].h(Pt.x+nt,Pt.y+ht);for(gt=0;gt<Re.length;gt++)Pt=Re[gt],hn[gt+2].h(Pt.x+nt,Pt.y+ht)}y?(tt[0].h(bt,0),tt[1].h(tt[0].x,Pe),tt[2].y<tt[1].y&&(tt[2].x>tt[0].x?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].y<tt[2].y&&(tt[3].x>tt[0].x?tt[3].assign(tt[2]):tt[2].assign(tt[3])),hn[0].h(bt+b,0),hn[1].h(hn[0].x,Pe),hn[2].y<hn[1].y&&(hn[2].x<hn[0].x?hn[2].assign(hn[1]):hn[1].assign(hn[2])),hn[3].y<hn[2].y&&(hn[3].x<hn[0].x?hn[3].assign(hn[2]):hn[2].assign(hn[3])),tt[2].y-=x/2,hn[2].y-=x/2):(tt[0].h(0,oe),tt[1].h(b,tt[0].y),tt[2].x<tt[1].x&&(tt[2].y>tt[0].y?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].x<tt[2].x&&(tt[3].y>tt[0].y?tt[3].assign(tt[2]):tt[2].assign(tt[3])),hn[0].h(0,oe+Pe),hn[1].h(b,hn[0].y),hn[2].x<hn[1].x&&(hn[2].y<hn[0].y?hn[2].assign(hn[1]):hn[1].assign(hn[2])),hn[3].x<hn[2].x&&(hn[3].y<hn[0].y?hn[3].assign(hn[2]):hn[2].assign(hn[3])),tt[2].x-=x/2,hn[2].x-=x/2),ul(this,De),ul(this,Re),a.Yo=tt,a.kp=hn,a.la.h(bt,oe),a.Da.h(de,Le)}break;default:We("Unhandled compaction value "+a.compaction.toString())}}};function hw(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Yh(x));var tt=Ly(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!tt?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&tt?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=Qa(y),x=b===90||b===270;var et=0;tt=y.children;for(var nt=tt.length,ht=0;ht<nt;ht++){var gt=tt[ht];et=Math.max(et,x?gt.Da.width:gt.Da.height)}var bt=y.alignment,Pt=bt===Kl,Nt=bt===Xl;ht=Yh(bt);var zt=Math.max(0,y.breadthLimit);gt=a.computeLayerSpacing(y);var Vt=y.nodeSpacing,Zt=a.computeNodeIndent(y),oe=Pt||Nt?0:Zt/2,Pe=y.rowSpacing,de=0;(Pt||Nt||y.hm||y.im&&y.maxGenerationCount===1)&&(de=Math.max(0,y.rowIndent)),Pt=y.width;var Le=y.height,Oe=0,De=0,Re=0,Ve=0,Sn=0,Mn=0,Pn=0,hn=0,rn=0,Gn=0;if(ht&&!wg(bt)&&135<b&&tt.reverse(),wg(bt))if(1<nt)for(var Fn=0;Fn<nt;Fn++){var yi=tt[Fn],_i=yi.Da;Fn%2===0&&Fn!==nt-1?rn=Math.max(rn,(x?_i.width:_i.height)+a.computeBusNodeSpacing(yi)-Vt):Fn%2!==0&&(Gn=Math.max(Gn,(x?_i.width:_i.height)+a.computeBusNodeSpacing(yi)-Vt))}else nt===1&&(rn=x?tt[0].Da.width:tt[0].Da.height);if(ht)switch(bt){case th:case Zl:De=135>b?cw(a,y,tt,rn,Oe,De):fw(a,y,tt,rn,Oe,De),rn=De.x,Oe=De.width,De=De.height;break;case eh:for(zt=0;zt<nt;zt++)oe=tt[zt],Re=oe.Da,Gn=Pn===0?0:Pe,x?(oe.S.h(et-Re.width,Sn+Gn),Oe=Math.max(Oe,Re.width),De=Math.max(De,Sn+Gn+Re.height),Sn+=Gn+Re.height):(oe.S.h(Ve+Gn,et-Re.height),Oe=Math.max(Oe,Ve+Gn+Re.width),De=Math.max(De,Re.height),Ve+=Gn+Re.width),Pn++;break;case gu:for(et=0;et<nt;et++)zt=tt[et],oe=zt.Da,Re=Pn===0?0:Pe,x?(zt.S.h(Vt/2+y.focus.x,Sn+Re),Oe=Math.max(Oe,oe.width),De=Math.max(De,Sn+Re+oe.height),Sn+=Re+oe.height):(zt.S.h(Ve+Re,Vt/2+y.focus.y),Oe=Math.max(Oe,Ve+Re+oe.width),De=Math.max(De,oe.height),Ve+=Re+oe.width),Pn++}else for(Gn=0;Gn<nt;Gn++)Fn=tt[Gn],yi=Fn.Da,x?(0<zt&&0<Pn&&Ve+Vt+yi.width>zt&&(Ve<et&&jc(y,bt,et-Ve,0,hn,Gn-1),Mn++,Pn=0,hn=Gn,Re=De,Ve=0,Sn=135<b?-De-Pe:De+Pe),_i=Pn===0?oe:Vt,_0(a,Fn,0,Sn),Fn.S.h(Ve+_i,Sn),Oe=Math.max(Oe,Ve+_i+yi.width),De=Math.max(De,Re+(Mn===0?0:Pe)+yi.height),Ve+=_i+yi.width):(0<zt&&0<Pn&&Sn+Vt+yi.height>zt&&(Sn<et&&jc(y,bt,0,et-Sn,hn,Gn-1),Mn++,Pn=0,hn=Gn,Re=Oe,Sn=0,Ve=135<b?-Oe-Pe:Oe+Pe),_i=Pn===0?oe:Vt,_0(a,Fn,Ve,0),Fn.S.h(Ve,Sn+_i),De=Math.max(De,Sn+_i+yi.height),Oe=Math.max(Oe,Re+(Mn===0?0:Pe)+yi.width),Sn+=_i+yi.height),Pn++;switch(0<Mn&&(x?(De+=Math.max(0,gt),Ve<Oe&&jc(y,bt,Oe-Ve,0,hn,nt-1),0<de&&(Nt||Cf(y,de,0,0,nt-1),Oe+=de)):(Oe+=Math.max(0,gt),Sn<De&&jc(y,bt,0,De-Sn,hn,nt-1),0<de&&(Nt||Cf(y,0,de,0,nt-1),De+=de))),de=Nt=0,bt){case zd:x?Nt+=Oe/2-y.focus.x-Zt/2:de+=De/2-y.focus.y-Zt/2;break;case Af:0<Mn?x?Nt+=Oe/2-y.focus.x-Zt/2:de+=De/2-y.focus.y-Zt/2:x?(a=tt[0].S.x+tt[0].la.x,Nt+=a+(tt[nt-1].S.x+tt[nt-1].la.x+2*tt[nt-1].focus.x-a)/2-y.focus.x-Zt/2):(a=tt[0].S.y+tt[0].la.y,de+=a+(tt[nt-1].S.y+tt[nt-1].la.y+2*tt[nt-1].focus.y-a)/2-y.focus.y-Zt/2);break;case Kl:x?(Nt-=Zt,Oe+=Zt):(de-=Zt,De+=Zt);break;case Xl:x?(Nt+=Oe-y.width+Zt,Oe+=Zt):(de+=De-y.height+Zt,De+=Zt);break;case th:case Zl:x?1<nt?Nt+=rn+Vt/2-y.focus.x:Nt+=tt[0].focus.x-y.focus.x+tt[0].la.x:1<nt?de+=rn+Vt/2-y.focus.y:de+=tt[0].focus.y-y.focus.y+tt[0].la.y;break;case eh:x?Nt+=Oe+Vt/2-y.focus.x:de+=De+Vt/2-y.focus.y;break;case gu:break;default:a=a.customAlignment(y,Nt,de,Oe,De),Nt=a[0],de=a[1],Oe=a[2],De=a[3]}for(a=0;a<nt;a++)Zt=tt[a],x?Zt.S.h(Zt.S.x+Zt.la.x-Nt,Zt.S.y+(135<b?(ht?-De:-Zt.Da.height)+Zt.la.y-gt:Le+gt+Zt.la.y)):Zt.S.h(Zt.S.x+(135<b?(ht?-Oe:-Zt.Da.width)+Zt.la.x-gt:Pt+gt+Zt.la.x),Zt.S.y+Zt.la.y-de);x?(Oe=Ty(y,Oe,Nt),0>Nt&&(Nt=0),135<b&&(de+=De+gt),De=Math.max(Math.max(De,Le),De+Le+gt)):(135<b&&(Nt+=Oe+gt),Oe=Math.max(Math.max(Oe,Pt),Oe+Pt+gt),De=_y(y,De,de),0>de&&(de=0)),y.la.h(Nt,de),y.Da.h(Oe,De)}}$n.prototype.customAlignment=function(a,y,x,b,tt){return[y,x,b,tt]};function cw(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new $e(b,0,tt,et);if(nt===1)return y=x[0],tt=y.Da.width,et=y.Da.height,new $e(b,0,tt,et);for(var ht=y.nodeSpacing,gt=y.rowSpacing,bt=Qa(y)===90,Pt=0,Nt=0,zt=0,Vt=0;Vt<nt;Vt++)if(!(Vt%2!==0||1<nt&&Vt===nt-1)){var Zt=x[Vt],oe=Zt.Da,Pe=Pt===0?0:gt;if(bt){var de=a.computeBusNodeSpacing(Zt)-ht;Zt.S.h(b-(oe.width+de),zt+Pe),tt=Math.max(tt,oe.width+de),et=Math.max(et,zt+Pe+oe.height),zt+=Pe+oe.height}else de=a.computeBusNodeSpacing(Zt)-ht,Zt.S.h(Nt+Pe,b-(oe.height+de)),et=Math.max(et,oe.height+de),tt=Math.max(tt,Nt+Pe+oe.width),Nt+=Pe+oe.width;Pt++}for(Pt=0,Zt=Nt,Vt=zt,bt?(Nt=b+ht,zt=0):(Nt=0,zt=b+ht),oe=0;oe<nt;oe++)if(oe%2!==0){Pe=x[oe],de=Pe.Da;var Le=Pt===0?0:gt;if(bt){var Oe=a.computeBusNodeSpacing(Pe)-ht;Pe.S.h(Nt+Oe,zt+Le),tt=Math.max(tt,Nt+de.width+Oe),et=Math.max(et,zt+Le+de.height),zt+=Le+de.height}else Oe=a.computeBusNodeSpacing(Pe)-ht,Pe.S.h(Nt+Le,zt+Oe),tt=Math.max(tt,Nt+Le+de.width),et=Math.max(et,zt+de.height+Oe),Nt+=Le+de.width;Pt++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,bt?Math.max(Math.abs(Vt),Math.abs(zt)):Math.max(Math.abs(Zt),Math.abs(Nt))),bt?(x.S.h(b+ht/2-x.focus.x-x.la.x,et+a),bt=b+ht/2-x.focus.x-x.la.x,tt=Math.max(tt,bt+nt.width),0>bt&&(tt-=bt),et=Math.max(et,Math.max(Vt,zt)+a+nt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,ht))):(x.S.h(tt+a,b+ht/2-x.focus.y-x.la.y),tt=Math.max(tt,Math.max(Zt,Nt)+a+nt.width),zt=b+ht/2-x.focus.y-x.la.y,et=Math.max(et,zt+nt.height),0>zt&&(et-=zt),0>x.S.y&&(b=T0(y,x.S.y,!0,b,ht)))),new $e(b,0,tt,et)}function fw(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new $e(b,0,tt,et);if(nt===1)return x=x[0],tt=x.Da.width,et=x.Da.height,new $e(b,0,tt,et);for(var ht=y.nodeSpacing,gt=y.rowSpacing,bt=Qa(y)===270,Pt=0,Nt=0,zt=0,Vt=0;Vt<nt;Vt++)if(!(Vt%2!==0||1<nt&&Vt===nt-1)){var Zt=x[Vt],oe=Zt.Da,Pe=Pt===0?0:gt;if(bt){var de=a.computeBusNodeSpacing(Zt)-ht;zt-=Pe+oe.height,Zt.S.h(b-(oe.width+de),zt),tt=Math.max(tt,oe.width+de),et=Math.max(et,Math.abs(zt))}else de=a.computeBusNodeSpacing(Zt)-ht,Nt-=Pe+oe.width,Zt.S.h(Nt,b-(oe.height+de)),et=Math.max(et,oe.height+de),tt=Math.max(tt,Math.abs(Nt));Pt++}for(Pt=0,Zt=Nt,Vt=zt,bt?(Nt=b+ht,zt=0):(Nt=0,zt=b+ht),oe=0;oe<nt;oe++)if(oe%2!==0){Pe=x[oe],de=Pe.Da;var Le=Pt===0?0:gt;if(bt){var Oe=a.computeBusNodeSpacing(Pe)-ht;zt-=Le+de.height,Pe.S.h(Nt+Oe,zt),tt=Math.max(tt,Nt+de.width+Oe),et=Math.max(et,Math.abs(zt))}else Oe=a.computeBusNodeSpacing(Pe)-ht,Nt-=Le+de.width,Pe.S.h(Nt,zt+Oe),et=Math.max(et,zt+de.height+Oe),tt=Math.max(tt,Math.abs(Nt));Pt++}for(1<nt&&nt%2===1&&(gt=x[nt-1],Pt=gt.Da,a=a.computeBusLastRowSpacing(gt,bt?Math.max(Math.abs(Vt),Math.abs(zt)):Math.max(Math.abs(Zt),Math.abs(Nt))),bt?(gt.S.h(b+ht/2-gt.focus.x-gt.la.x,-et-Pt.height-a),Nt=b+ht/2-gt.focus.x-gt.la.x,tt=Math.max(tt,Nt+Pt.width),0>Nt&&(tt-=Nt),et=Math.max(et,Math.abs(Math.min(Vt,zt))+a+Pt.height),0>gt.S.x&&(b=T0(y,gt.S.x,!1,b,ht))):(gt.S.h(-tt-Pt.width-a,b+ht/2-gt.focus.y-gt.la.y),tt=Math.max(tt,Math.abs(Math.min(Zt,Nt))+a+Pt.width),zt=b+ht/2-gt.focus.y-gt.la.y,et=Math.max(et,zt+Pt.height),0>zt&&(et-=zt),0>gt.S.y&&(b=T0(y,gt.S.y,!0,b,ht)))),y=0;y<nt;y++)ht=x[y],bt?ht.S.h(ht.S.x,ht.S.y+et):ht.S.h(ht.S.x+tt,ht.S.y);return new $e(b,0,tt,et)}$n.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},$n.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function T0(a,y,x,b,tt){a=a.children;for(var et=a.length,nt=0;nt<et;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[et-1],Math.max(b,x?y.la.y+y.focus.y-tt/2:y.la.x+y.focus.x-tt/2)}function Ty(a,y,x){switch(a.alignment){case Af:case zd:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Kl:return a.width>y?a.width:y;case Xl:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case th:case Zl:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case eh:return a.width-a.focus.x+a.nodeSpacing/2+y;case gu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function _y(a,y,x){switch(a.alignment){case Af:case zd:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Kl:return a.height>y?a.height:y;case Xl:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case th:case Zl:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case eh:return a.height-a.focus.y+a.nodeSpacing/2+y;case gu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case zd:y/=2,x/=2;break;case Af:y/=2,x/=2;break;case Kl:x=y=0;break;case Xl:break;default:We("Unhandled alignment value "+a.toString())}return new Ee(y,x)}function jc(a,y,x,b,tt,et){y=Oy(y,x,b),Cf(a,y.x,y.y,tt,et)}function Cf(a,y,x,b,tt){if(y!==0||x!==0)for(a=a.children;b<=tt;b++){var et=a[b].S;et.x+=y,et.y+=x}}function _0(a,y,x,b){var tt=y.parent;switch(a.ud){case Yl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===tt&&y.relativePoint.h(x,b);break;case Ef:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===tt&&y.relativePoint.h(x,b);break;default:We("Unhandled path value "+a.ud.toString())}}function O0(a,y,x){for(var b=0;b<a.length;b++){var tt=a[b];tt.x+=y,tt.y+=x}}function dw(a,y,x,b,tt,et,nt,ht){var gt=Qa(y),bt=gt===90||gt===270,Pt=y.nodeSpacing;y=b;var Nt=tt;b=et;var zt=nt,Vt=x.Yo,Zt=x.kp;nt=x.Da;var oe=bt?Math.max(zt,nt.height):Math.max(b,nt.width);if((Vt===null||gt!==Qa(x))&&(Vt=Ts(a,2),Zt=Ts(a,2),bt?(Vt[0].h(0,0),Vt[1].h(0,nt.height),Zt[0].h(nt.width,0),Zt[1].h(Zt[0].x,Vt[1].y)):(Vt[0].h(0,0),Vt[1].h(nt.width,0),Zt[0].h(0,nt.height),Zt[1].h(Vt[1].x,Zt[0].y))),bt){if(zt=9999999,!(Nt===null||2>Nt.length||Vt===null||2>Vt.length))for(tt=x=0;x<Nt.length&&tt<Vt.length;){et=Nt[x];var Pe=Vt[tt];gt=Pe.x,bt=Pe.y,gt+=b;var de=et;x+1<Nt.length&&(de=Nt[x+1]);var Le=Pe;Pe=Le.x,Le=Le.y,tt+1<Vt.length&&(Le=Vt[tt+1],Pe=Le.x,Le=Le.y,Pe+=b);var Oe=zt;et.y===bt?Oe=gt-et.x:et.y>bt&&et.y<Le?Oe=gt+(et.y-bt)/(Le-bt)*(Pe-gt)-et.x:bt>et.y&&bt<de.y&&(Oe=gt-(et.x+(bt-et.y)/(de.y-et.y)*(de.x-et.x))),Oe<zt&&(zt=Oe),de.y<=et.y?x++:Le<=bt?tt++:(de.y<=Le&&x++,Le<=de.y&&tt++)}if(zt=b-zt,zt+=Pt,x=Vt,tt=zt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(Pt=Ts(a,y.length+x.length),b=et=gt=0;et<x.length&&x[et].y<y[0].y;)bt=x[et++],Pt[b++].h(bt.x+tt,bt.y);for(;gt<y.length;)bt=y[gt++],Pt[b++].h(bt.x,bt.y);for(gt=y[y.length-1].y;et<x.length&&x[et].y<=gt;)et++;for(;et<x.length&&x[et].y>gt;)bt=x[et++],Pt[b++].h(bt.x+tt,bt.y);for(x=Ts(a,b),gt=0;gt<b;gt++)x[gt].assign(Pt[gt]);ul(a,Pt),b=x}if(et=Zt,gt=zt,Nt===null||2>Nt.length||et===null||2>et.length)tt=null;else{for(Pt=Ts(a,Nt.length+et.length),tt=bt=x=0;x<Nt.length&&Nt[x].y<et[0].y;)de=Nt[x++],Pt[tt++].h(de.x,de.y);for(;bt<et.length;)de=et[bt++],Pt[tt++].h(de.x+gt,de.y);for(et=et[et.length-1].y;x<Nt.length&&Nt[x].y<=et;)x++;for(;x<Nt.length&&Nt[x].y>et;)gt=Nt[x++],Pt[tt++].h(gt.x,gt.y);for(et=Ts(a,tt),x=0;x<tt;x++)et[x].assign(Pt[x]);ul(a,Pt),tt=et}return et=Math.max(0,zt)+nt.width,nt=oe,ul(a,y),ul(a,Vt),ul(a,Nt),ul(a,Zt),ht[0]=b,ht[1]=tt,new $e(zt,0,et,nt)}if(b=9999999,!(Nt===null||2>Nt.length||Vt===null||2>Vt.length))for(tt=x=0;x<Nt.length&&tt<Vt.length;)et=Nt[x],Pe=Vt[tt],gt=Pe.x,bt=Pe.y,bt+=zt,de=et,x+1<Nt.length&&(de=Nt[x+1]),Le=Pe,Pe=Le.x,Le=Le.y,tt+1<Vt.length&&(Le=Vt[tt+1],Pe=Le.x,Le=Le.y,Le+=zt),Oe=b,et.x===gt?Oe=bt-et.y:et.x>gt&&et.x<Pe?Oe=bt+(et.x-gt)/(Pe-gt)*(Le-bt)-et.y:gt>et.x&&gt<de.x&&(Oe=bt-(et.y+(gt-et.x)/(de.x-et.x)*(de.y-et.y))),Oe<b&&(b=Oe),de.x<=et.x?x++:Pe<=gt?tt++:(de.x<=Pe&&x++,Pe<=de.x&&tt++);if(zt-=b,zt+=Pt,x=Vt,tt=zt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(Pt=Ts(a,y.length+x.length),b=et=gt=0;et<x.length&&x[et].x<y[0].x;)bt=x[et++],Pt[b++].h(bt.x,bt.y+tt);for(;gt<y.length;)bt=y[gt++],Pt[b++].h(bt.x,bt.y);for(gt=y[y.length-1].x;et<x.length&&x[et].x<=gt;)et++;for(;et<x.length&&x[et].x>gt;)bt=x[et++],Pt[b++].h(bt.x,bt.y+tt);for(x=Ts(a,b),gt=0;gt<b;gt++)x[gt].assign(Pt[gt]);ul(a,Pt),b=x}if(et=Zt,gt=zt,Nt===null||2>Nt.length||et===null||2>et.length)tt=null;else{for(Pt=Ts(a,Nt.length+et.length),tt=bt=x=0;x<Nt.length&&Nt[x].x<et[0].x;)de=Nt[x++],Pt[tt++].h(de.x,de.y);for(;bt<et.length;)de=et[bt++],Pt[tt++].h(de.x,de.y+gt);for(et=et[et.length-1].x;x<Nt.length&&Nt[x].x<=et;)x++;for(;x<Nt.length&&Nt[x].x>et;)gt=Nt[x++],Pt[tt++].h(gt.x,gt.y);for(et=Ts(a,tt),x=0;x<tt;x++)et[x].assign(Pt[x]);ul(a,Pt),tt=et}return et=oe,nt=Math.max(0,zt)+nt.height,ul(a,y),ul(a,Vt),ul(a,Nt),ul(a,Zt),ht[0]=b,ht[1]=tt,new $e(zt,0,et,nt)}function Ts(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 Ee;return a}function ul(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}$n.prototype.arrangeTrees=function(){if(this.Rb===F0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Na){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),jy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Na&&a.push(x);switch(this.sorting){case Rd:break;case xg:a.reverse();break;case bg:a.sort(this.comparer);break;case Pg: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 tt=a[b];switch(jy(this,tt,y+tt.la.x,x+tt.la.y),this.Rb){case I0:x+=tt.Da.height+this.$d.height;break;case Fy:y+=tt.Da.width+this.$d.width;break;default:We("Unhandled arrangement value "+this.Rb.toString())}}}};function jy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var tt=y.length,et=0;et<tt;et++){var nt=y[et];jy(a,nt,x+nt.S.x,b+nt.S.y)}}}$n.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},$n.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},$n.prototype.Gu=function(){if(this.layerStyle===B0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var tt=b.value;x===null?x=tt.bounds.copy():x.ed(tt.bounds);var et=y[tt.level];et===void 0?et=this.computeLayerSpacing(tt):et=Math.max(et,this.computeLayerSpacing(tt)),y[tt.level]=et}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 Ee(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ee(-this.layerSpacing/2,-this.nodeSpacing/2)),tt=[],x=this.angle===90||this.angle===270?x.width:x.height,et=0,this.angle===180||this.angle===270)for(var nt=0;nt<a.length;nt++)et+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var ht=a[nt]+y[nt];this.angle===270?(et-=ht,tt.push(new $e(0,et,x,ht))):this.angle===90?(tt.push(new $e(0,et,x,ht)),et+=ht):this.angle===180?(et-=ht,tt.push(new $e(et,0,ht,x))):(tt.push(new $e(et,0,ht,x)),et+=ht)}this.commitLayers(tt,b)}},$n.prototype.commitLayers=function(){},$n.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},$n.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Na&&pw(this,y)}};function pw(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)pw(a,y[b])}}$n.prototype.setPortSpots=function(a){var y=a.alignment;if(Yh(y)){var x=this.ud===Yl,b=Qa(a);switch(b){case 0:var tt=Ao;break;case 90:tt=Po;break;case 180:tt=vs;break;default:tt=Fo}var et=a.children,nt=et.length;switch(y){case th:case Zl:for(y=0;y<nt;y++){var ht=et[y];if(ht=(x?ht.sourceEdges:ht.destinationEdges).first(),ht!==null&&(ht=ht.link,ht!==null)){var gt=b===90||b===270?vs:Fo;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:gt=vs;break;case 90:gt=Fo;break;case 180:gt=Ao;break;default:gt=Po}else y%2===0&&(gt=b===90||b===270?Ao:Po);x?(a.setsPortSpot&&(ht.fromSpot=tt),a.setsChildPortSpot&&(ht.toSpot=gt)):(a.setsPortSpot&&(ht.fromSpot=gt),a.setsChildPortSpot&&(ht.toSpot=tt))}}break;case eh:for(b=b===90||b===270?Ao:Po,et=x?a.destinationEdges:a.sourceEdges;et.next();)nt=et.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=tt),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=tt)));break;case gu:for(b=b===90||b===270?vs:Fo,et=x?a.destinationEdges:a.sourceEdges;et.next();)nt=et.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=tt),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=tt)))}}else if(x=Qa(a),this.ud===Yl){for(tt=a.destinationEdges;tt.next();)if(b=tt.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ao;break;case 90:b.fromSpot=Po;break;case 180:b.fromSpot=vs;break;default:b.fromSpot=Fo}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=vs;break;case 90:b.toSpot=Fo;break;case 180:b.toSpot=Ao;break;default:b.toSpot=Po}else b.toSpot=a.childPortSpot}}else for(tt=a.sourceEdges;tt.next();)if(b=tt.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ao;break;case 90:b.toSpot=Po;break;case 180:b.toSpot=vs;break;default:b.toSpot=Fo}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=vs;break;case 90:b.fromSpot=Fo;break;case 180:b.fromSpot=Ao;break;default:b.fromSpot=Po}else b.fromSpot=a.childPortSpot}};function Qa(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}$n.prototype.computeLayerSpacing=function(a){var y=Qa(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},$n.prototype.computeNodeIndent=function(a){var y=Qa(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)},qe.Object.defineProperties($n.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!==D0&&a!==Dy&&a!==Ny&&a!==Iy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==By&&a!==Ry&&a!==B0||(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!==Fy&&a!==F0||(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!==Rd&&a!==xg&&a!==bg&&!Pg||(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!==N0&&a!==Cg||(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!==Rd&&a!==xg&&a!==bg&&!Pg||(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!==N0&&a!==Cg||(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 j0=new sn($n,"PathDefault",-1),Yl=new sn($n,"PathDestination",0),Ef=new sn($n,"PathSource",1),Rd=new sn($n,"SortingForwards",10),xg=new sn($n,"SortingReverse",11),bg=new sn($n,"SortingAscending",12),Pg=new sn($n,"SortingDescending",13),zd=new sn($n,"AlignmentCenterSubtrees",20),Af=new sn($n,"AlignmentCenterChildren",21),Kl=new sn($n,"AlignmentStart",22),Xl=new sn($n,"AlignmentEnd",23),th=new sn($n,"AlignmentBus",24),Zl=new sn($n,"AlignmentBusBranching",25),eh=new sn($n,"AlignmentTopLeftBus",26),gu=new sn($n,"AlignmentBottomRightBus",27),N0=new sn($n,"CompactionNone",30),Cg=new sn($n,"CompactionBlock",31),D0=new sn($n,"StyleLayered",40),Ny=new sn($n,"StyleLastParents",41),Dy=new sn($n,"StyleAlternating",42),Iy=new sn($n,"StyleRootOnly",43),I0=new sn($n,"ArrangementVertical",50),Fy=new sn($n,"ArrangementHorizontal",51),F0=new sn($n,"ArrangementFixedRoots",52),By=new sn($n,"LayerIndividual",60),Ry=new sn($n,"LayerSiblings",61),B0=new sn($n,"LayerUniform",62);$n.className="TreeLayout",$n.PathDefault=j0,$n.PathDestination=Yl,$n.PathSource=Ef,$n.SortingForwards=Rd,$n.SortingReverse=xg,$n.SortingAscending=bg,$n.SortingDescending=Pg,$n.AlignmentCenterSubtrees=zd,$n.AlignmentCenterChildren=Af,$n.AlignmentStart=Kl,$n.AlignmentEnd=Xl,$n.AlignmentBus=th,$n.AlignmentBusBranching=Zl,$n.AlignmentTopLeftBus=eh,$n.AlignmentBottomRightBus=gu,$n.CompactionNone=N0,$n.CompactionBlock=Cg,$n.StyleLayered=D0,$n.StyleLastParents=Ny,$n.StyleAlternating=Dy,$n.StyleRootOnly=Iy,$n.ArrangementVertical=I0,$n.ArrangementHorizontal=Fy,$n.ArrangementFixedRoots=F0,$n.LayerIndividual=By,$n.LayerSiblings=Ry,$n.LayerUniform=B0;function Mf(a){Di.call(this,a)}en(Mf,Di),Mf.prototype.createVertex=function(){return new Na(this)},Mf.prototype.createEdge=function(){return new Gd(this)},Mf.className="TreeNetwork";function Na(a){Vr.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 Ee(0,0),this.Da=new xn(0,0),this.la=new Ee(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Rd,this.hd=oy,this.Kb=0,this.Jb=Af,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=oo,this.wr=!0,this.Dp=oo}en(Na,Vr),Na.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)},qe.Object.defineProperties(Na.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)}}}),Na.className="TreeVertex";function Gd(a){Hs.call(this,a),this.$t=new Ee(0,0)}en(Gd,Hs),Gd.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 Yl:x=this.fromVertex,b=this.toVertex;break;case Ef:x=this.toVertex,b=this.fromVertex;break;default:We("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var tt=this.$t;if(tt.x!==0||tt.y!==0||x.qA){b=x.bounds;var et=Qa(x),nt=y.computeLayerSpacing(x),ht=x.rowSpacing;a.vg();var gt=a.curve===ia,bt=a.isOrthogonal,Pt;if(a.uh(),bt||gt){for(Pt=2;4<a.pointsCount;)a.pv(2);var Nt=a.i(1),zt=a.i(2)}else{for(Pt=1;3<a.pointsCount;)a.pv(1);Nt=a.i(0),zt=a.i(a.pointsCount-1)}var Vt=a.i(a.pointsCount-1);et===0?(x.alignment===Xl?(et=b.bottom+tt.y,tt.y===0&&Nt.y>Vt.y+x.rowIndent&&(et=Math.min(et,Math.max(Nt.y,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.top+tt.y,tt.y===0&&Nt.y<Vt.y-x.rowIndent&&(et=Math.max(et,Math.min(Nt.y,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+tt.y:b.y+b.height/2+tt.y,gt?(a.m(Pt,Nt.x,et),Pt++,a.m(Pt,b.right+nt,et),Pt++,a.m(Pt,b.right+nt+(tt.x-ht)/3,et),Pt++,a.m(Pt,b.right+nt+2*(tt.x-ht)/3,et),Pt++,a.m(Pt,b.right+nt+(tt.x-ht),et),Pt++,a.m(Pt,zt.x,et)):(bt&&(a.m(Pt,b.right+nt/2,Nt.y),Pt++),a.m(Pt,b.right+nt/2,et),Pt++,a.m(Pt,b.right+nt+tt.x-(bt?ht/2:ht),et),Pt++,bt&&a.m(Pt,a.i(Pt-1).x,zt.y))):et===90?(x.alignment===Xl?(et=b.right+tt.x,tt.x===0&&Nt.x>Vt.x+x.rowIndent&&(et=Math.min(et,Math.max(Nt.x,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.left+tt.x,tt.x===0&&Nt.x<Vt.x-x.rowIndent&&(et=Math.max(et,Math.min(Nt.x,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+tt.x:b.x+b.width/2+tt.x,gt?(a.m(Pt,et,Nt.y),Pt++,a.m(Pt,et,b.bottom+nt),Pt++,a.m(Pt,et,b.bottom+nt+(tt.y-ht)/3),Pt++,a.m(Pt,et,b.bottom+nt+2*(tt.y-ht)/3),Pt++,a.m(Pt,et,b.bottom+nt+(tt.y-ht)),Pt++,a.m(Pt,et,zt.y)):(bt&&(a.m(Pt,Nt.x,b.bottom+nt/2),Pt++),a.m(Pt,et,b.bottom+nt/2),Pt++,a.m(Pt,et,b.bottom+nt+tt.y-(bt?ht/2:ht)),Pt++,bt&&a.m(Pt,zt.x,a.i(Pt-1).y))):et===180?(x.alignment===Xl?(et=b.bottom+tt.y,tt.y===0&&Nt.y>Vt.y+x.rowIndent&&(et=Math.min(et,Math.max(Nt.y,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.top+tt.y,tt.y===0&&Nt.y<Vt.y-x.rowIndent&&(et=Math.max(et,Math.min(Nt.y,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+tt.y:b.y+b.height/2+tt.y,gt?(a.m(Pt,Nt.x,et),Pt++,a.m(Pt,b.left-nt,et),Pt++,a.m(Pt,b.left-nt+(tt.x+ht)/3,et),Pt++,a.m(Pt,b.left-nt+2*(tt.x+ht)/3,et),Pt++,a.m(Pt,b.left-nt+(tt.x+ht),et),Pt++,a.m(Pt,zt.x,et)):(bt&&(a.m(Pt,b.left-nt/2,Nt.y),Pt++),a.m(Pt,b.left-nt/2,et),Pt++,a.m(Pt,b.left-nt+tt.x+(bt?ht/2:ht),et),Pt++,bt&&a.m(Pt,a.i(Pt-1).x,zt.y))):et===270?(x.alignment===Xl?(et=b.right+tt.x,tt.x===0&&Nt.x>Vt.x+x.rowIndent&&(et=Math.min(et,Math.max(Nt.x,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.left+tt.x,tt.x===0&&Nt.x<Vt.x-x.rowIndent&&(et=Math.max(et,Math.min(Nt.x,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+tt.x:b.x+b.width/2+tt.x,gt?(a.m(Pt,et,Nt.y),Pt++,a.m(Pt,et,b.top-nt),Pt++,a.m(Pt,et,b.top-nt+(tt.y+ht)/3),Pt++,a.m(Pt,et,b.top-nt+2*(tt.y+ht)/3),Pt++,a.m(Pt,et,b.top-nt+(tt.y+ht)),Pt++,a.m(Pt,et,zt.y)):(bt&&(a.m(Pt,Nt.x,b.top-nt/2),Pt++),a.m(Pt,et,b.top-nt/2),Pt++,a.m(Pt,et,b.top-nt+tt.y+(bt?ht/2:ht)),Pt++,bt&&a.m(Pt,zt.x,a.i(Pt-1).y))):We("Invalid angle "+et),a.zf()}else tt=b,a=this.link,b=this.network.layout,y=Qa(x),y!==Qa(tt)&&(nt=b.computeLayerSpacing(x),ht=x.bounds,x=tt.bounds,y===0&&x.left-ht.right<nt+1||y===90&&x.top-ht.bottom<nt+1||y===180&&ht.left-x.right<nt+1||y===270&&ht.top-x.bottom<nt+1||(a.vg(),x=a.curve===ia,tt=a.isOrthogonal,b=Yh(this.fromVertex.alignment),a.uh(),y===0?(y=ht.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)):tt?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=ht.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)):tt?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=ht.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)):tt?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=ht.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)):tt?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()))}}},qe.Object.defineProperties(Gd.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)}}}),Gd.className="TreeEdge",$i.prototype.initializeStandardTools=function(){this.gb("Action",new Ma,this.mouseDownTools),this.gb("Relinking",new Js,this.mouseDownTools),this.gb("LinkReshaping",new Mr,this.mouseDownTools),this.gb("Rotating",new is,this.mouseDownTools),this.gb("Resizing",new No,this.mouseDownTools),this.gb("Linking",new ns,this.mouseMoveTools),this.gb("Dragging",new sr,this.mouseMoveTools),this.gb("DragSelecting",new ha,this.mouseMoveTools),this.gb("Panning",new ko,this.mouseMoveTools),this.gb("ContextMenu",new rs,this.mouseUpTools),this.gb("TextEditing",new Ui,this.mouseUpTools),this.gb("ClickCreating",new Du,this.mouseUpTools),this.gb("ClickSelecting",new Sh,this.mouseUpTools)},Cl("Horizontal",new dm),Cl("Spot",new gm),Cl("Table",new vm),Cl("Viewbox",new wm),Cl("TableRow",new ym),Cl("TableColumn",new Sm),Cl("Graduated",new zp),Cl("Grid",new Rp),hd.add("GraphLinksModel",ao),hd.add("TreeModel",ya);var R0=bn.go,zy={get licenseKey(){return Ye.licenseKey},set licenseKey(a){Ye.licenseKey=a},get version(){return Ye.version},Group:Un,EnumValue:sn,List:vn,Set:gn,Map:Rn,Point:Ee,Size:xn,Rect:$e,Margin:Yn,Spot:jn,Geometry:pn,PathFigure:to,PathSegment:gi,InputEvent:Uo,DiagramEvent:Au,ChangedEvent:nr,Model:Ln,GraphLinksModel:li,TreeModel:fs,Binding:Lr,Transaction:so,UndoManager:or,CommandHandler:be,Tool:fi,DraggingTool:sr,DraggingInfo:uu,DraggingOptions:mt,LinkingBaseTool:Sr,LinkingTool:ns,RelinkingTool:Js,LinkReshapingTool:Mr,ResizingTool:No,RotatingTool:is,ClickSelectingTool:Sh,ActionTool:Ma,ClickCreatingTool:Du,HTMLInfo:Sl,ContextMenuTool:rs,DragSelectingTool:ha,PanningTool:ko,TextEditingTool:Ui,ToolManager:$i,Animation:Lo,AnimationManager:zs,AnimationTrigger:Ua,Layer:co,Diagram:Ye,Palette:Ot,Overview:Dt,Brush:bi,GraphObject:ze,Panel:un,RowColumnDefinition:Rr,Shape:Wn,TextBlock:Ni,Picture:bs,Part:_n,Adornment:di,Node:wn,Link:cn,Placeholder:ls,Layout:Ji,LayoutNetwork:Di,LayoutVertex:Vr,LayoutEdge:Hs,GridLayout:wo,PanelLayout:Wr,CircularLayout:ar,CircularNetwork:Id,CircularVertex:pg,CircularEdge:S0,ForceDirectedLayout:_o,ForceDirectedNetwork:Pf,ForceDirectedVertex:gg,ForceDirectedEdge:mg,LayeredDigraphLayout:Ci,LayeredDigraphNetwork:Bd,LayeredDigraphVertex:wa,LayeredDigraphEdge:Sg,TreeLayout:$n,TreeNetwork:Mf,TreeVertex:Na,TreeEdge:Gd};typeof R0=="object"&&R0.version&&pr("WARNING: a `go` object on the root object is already defined. "+("Debug"in R0?"debug ":"")+"version: "+R0.version+", replaced with version: "+zy.version),Ye.prototype.go=zy,bn.go=zy,typeof tn.exports=="object"&&(tn.exports=typeof Rt.g!="undefined"?Rt.g.go:self.go)}();var Ft=typeof Rt.g!="undefined"?Rt.g.go:self.go;const ie=typeof Rt.g!="undefined"?Rt.g.go:self.go,rt=ie.Group,kt=ie.EnumValue,Ct=ie.List,St=ie.Set,pt=ie.Map,vt=ie.Point,yt=ie.Size,xt=ie.Rect,dt=ie.Margin,ft=ie.Spot,ct=ie.Geometry,lt=ie.PathFigure,E=ie.PathSegment,z=ie.InputEvent,ot=ie.DiagramEvent,it=ie.ChangedEvent,at=ie.Model,ut=ie.GraphLinksModel,wt=ie.TreeModel,Et=ie.Binding,At=ie.Transaction,_t=ie.UndoManager,Mt=ie.CommandHandler,jt=ie.Tool,Lt=ie.DraggingTool,It=ie.DraggingInfo,Ut=ie.LinkingBaseTool,Xt=ie.LinkingTool,Gt=ie.RelinkingTool,Yt=ie.LinkReshapingTool,Ht=ie.ResizingTool,ne=ie.RotatingTool,ae=ie.ClickSelectingTool,ve=ie.ActionTool,Kt=ie.ClickCreatingTool,re=ie.HTMLInfo,we=ie.ContextMenuTool,Me=ie.DragSelectingTool,ke=ie.PanningTool,me=ie.TextEditingTool,fe=ie.ToolManager,pe=ie.Animation,_e=ie.AnimationManager,je=ie.AnimationTrigger,He=ie.Layer,Se=ie.Diagram,xe=ie.Palette,le=ie.Overview,Ne=ie.Brush,se=ie.GraphObject,Ae=ie.Panel,Xe=ie.RowColumnDefinition,Be=ie.Shape,Te=ie.TextBlock,ue=ie.TextBlockMetrics,$t=ie.Picture,he=ie.Part,ye=ie.Adornment,Qt=ie.Node,Wt=ie.Link,Bt=ie.Placeholder,te=ie.Layout,ge=ie.LayoutNetwork,Jt=ie.LayoutVertex,Ie=ie.LayoutEdge,Ue=ie.GridLayout,Je=ie.PanelLayout,Ze=ie.CircularLayout,nn=ie.CircularNetwork,fn=ie.CircularVertex,An=ie.CircularEdge,En=ie.ForceDirectedLayout,Dn=ie.ForceDirectedNetwork,ii=ie.ForceDirectedVertex,mi=ie.ForceDirectedEdge,Ti=ie.LayeredDigraphLayout,Oi=ie.LayeredDigraphNetwork,ki=ie.LayeredDigraphVertex,pi=ie.LayeredDigraphEdge,Bi=ie.TreeLayout,Or=ie.TreeNetwork,yr=ie.TreeVertex,lr=ie.TreeEdge,Si=ie.version},24334:function(tn,Ke,Rt){var Ft,ie;(function(rt,kt){tn.exports=kt(rt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Rt.g!="undefined"?Rt.g:this,function(rt){"use strict";rt=rt||{};var kt=rt.Base64,Ct="2.6.4",St="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pt=function(Gt){for(var Yt={},Ht=0,ne=Gt.length;Ht<ne;Ht++)Yt[Gt.charAt(Ht)]=Ht;return Yt}(St),vt=String.fromCharCode,yt=function(Gt){if(Gt.length<2){var Yt=Gt.charCodeAt(0);return Yt<128?Gt:Yt<2048?vt(192|Yt>>>6)+vt(128|Yt&63):vt(224|Yt>>>12&15)+vt(128|Yt>>>6&63)+vt(128|Yt&63)}else{var Yt=65536+(Gt.charCodeAt(0)-55296)*1024+(Gt.charCodeAt(1)-56320);return vt(240|Yt>>>18&7)+vt(128|Yt>>>12&63)+vt(128|Yt>>>6&63)+vt(128|Yt&63)}},xt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,dt=function(Gt){return Gt.replace(xt,yt)},ft=function(Gt){var Yt=[0,2,1][Gt.length%3],Ht=Gt.charCodeAt(0)<<16|(Gt.length>1?Gt.charCodeAt(1):0)<<8|(Gt.length>2?Gt.charCodeAt(2):0),ne=[St.charAt(Ht>>>18),St.charAt(Ht>>>12&63),Yt>=2?"=":St.charAt(Ht>>>6&63),Yt>=1?"=":St.charAt(Ht&63)];return ne.join("")},ct=rt.btoa&&typeof rt.btoa=="function"?function(Gt){return rt.btoa(Gt)}:function(Gt){if(Gt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Gt.replace(/[\s\S]{1,3}/g,ft)},lt=function(Gt){return ct(dt(String(Gt)))},E=function(Gt){return Gt.replace(/[+\/]/g,function(Yt){return Yt=="+"?"-":"_"}).replace(/=/g,"")},z=function(Gt,Yt){return Yt?E(lt(Gt)):lt(Gt)},ot=function(Gt){return z(Gt,!0)},it;rt.Uint8Array&&(it=function(Gt,Yt){for(var Ht="",ne=0,ae=Gt.length;ne<ae;ne+=3){var ve=Gt[ne],Kt=Gt[ne+1],re=Gt[ne+2],we=ve<<16|Kt<<8|re;Ht+=St.charAt(we>>>18)+St.charAt(we>>>12&63)+(typeof Kt!="undefined"?St.charAt(we>>>6&63):"=")+(typeof re!="undefined"?St.charAt(we&63):"=")}return Yt?E(Ht):Ht});var at=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ut=function(Gt){switch(Gt.length){case 4:var Yt=(7&Gt.charCodeAt(0))<<18|(63&Gt.charCodeAt(1))<<12|(63&Gt.charCodeAt(2))<<6|63&Gt.charCodeAt(3),Ht=Yt-65536;return vt((Ht>>>10)+55296)+vt((Ht&1023)+56320);case 3:return vt((15&Gt.charCodeAt(0))<<12|(63&Gt.charCodeAt(1))<<6|63&Gt.charCodeAt(2));default:return vt((31&Gt.charCodeAt(0))<<6|63&Gt.charCodeAt(1))}},wt=function(Gt){return Gt.replace(at,ut)},Et=function(Gt){var Yt=Gt.length,Ht=Yt%4,ne=(Yt>0?pt[Gt.charAt(0)]<<18:0)|(Yt>1?pt[Gt.charAt(1)]<<12:0)|(Yt>2?pt[Gt.charAt(2)]<<6:0)|(Yt>3?pt[Gt.charAt(3)]:0),ae=[vt(ne>>>16),vt(ne>>>8&255),vt(ne&255)];return ae.length-=[0,0,2,1][Ht],ae.join("")},At=rt.atob&&typeof rt.atob=="function"?function(Gt){return rt.atob(Gt)}:function(Gt){return Gt.replace(/\S{1,4}/g,Et)},_t=function(Gt){return At(String(Gt).replace(/[^A-Za-z0-9\+\/]/g,""))},Mt=function(Gt){return wt(At(Gt))},jt=function(Gt){return String(Gt).replace(/[-_]/g,function(Yt){return Yt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Lt=function(Gt){return Mt(jt(Gt))},It;rt.Uint8Array&&(It=function(Gt){return Uint8Array.from(_t(jt(Gt)),function(Yt){return Yt.charCodeAt(0)})});var Ut=function(){var Gt=rt.Base64;return rt.Base64=kt,Gt};if(rt.Base64={VERSION:Ct,atob:_t,btoa:ct,fromBase64:Lt,toBase64:z,utob:dt,encode:z,encodeURI:ot,btou:wt,decode:Lt,noConflict:Ut,fromUint8Array:it,toUint8Array:It},typeof Object.defineProperty=="function"){var Xt=function(Gt){return{value:Gt,enumerable:!1,writable:!0,configurable:!0}};rt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Xt(function(){return Lt(this)})),Object.defineProperty(String.prototype,"toBase64",Xt(function(Gt){return z(this,Gt)})),Object.defineProperty(String.prototype,"toBase64URI",Xt(function(){return z(this,!0)}))}}return rt.Meteor&&(Base64=rt.Base64),tn.exports?tn.exports.Base64=rt.Base64:(Ft=[],ie=function(){return rt.Base64}.apply(Ke,Ft),ie!==void 0&&(tn.exports=ie)),{Base64:rt.Base64}})},7062:function(tn,Ke,Rt){var Ft=Rt(19637),ie=Rt(97573),rt=[Rt(96627)];tn.exports=Ft.createStore(ie,rt)},96627:function(tn,Ke,Rt){tn.exports=Ft;function Ft(){return Rt(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(tn){return tn<10?"0"+tn:tn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(tn){return rx_escapable.lastIndex=0,rx_escapable.test(tn)?'"'+tn.replace(rx_escapable,function(Ke){var Rt=meta[Ke];return typeof Rt=="string"?Rt:"\\u"+("0000"+Ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+tn+'"'}function str(tn,Ke){var Rt,Ft,ie,rt,kt=gap,Ct,St=Ke[tn];switch(St&&typeof St=="object"&&typeof St.toJSON=="function"&&(St=St.toJSON(tn)),typeof rep=="function"&&(St=rep.call(Ke,tn,St)),typeof St){case"string":return quote(St);case"number":return isFinite(St)?String(St):"null";case"boolean":case"null":return String(St);case"object":if(!St)return"null";if(gap+=indent,Ct=[],Object.prototype.toString.apply(St)==="[object Array]"){for(rt=St.length,Rt=0;Rt<rt;Rt+=1)Ct[Rt]=str(Rt,St)||"null";return ie=Ct.length===0?"[]":gap?`[
`+gap+Ct.join(`,
`+gap)+`
`+kt+"]":"["+Ct.join(",")+"]",gap=kt,ie}if(rep&&typeof rep=="object")for(rt=rep.length,Rt=0;Rt<rt;Rt+=1)typeof rep[Rt]=="string"&&(Ft=rep[Rt],ie=str(Ft,St),ie&&Ct.push(quote(Ft)+(gap?": ":":")+ie));else for(Ft in St)Object.prototype.hasOwnProperty.call(St,Ft)&&(ie=str(Ft,St),ie&&Ct.push(quote(Ft)+(gap?": ":":")+ie));return ie=Ct.length===0?"{}":gap?`{
`+gap+Ct.join(`,
`+gap)+`
`+kt+"}":"{"+Ct.join(",")+"}",gap=kt,ie}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(tn,Ke,Rt){var Ft;if(gap="",indent="",typeof Rt=="number")for(Ft=0;Ft<Rt;Ft+=1)indent+=" ";else typeof Rt=="string"&&(indent=Rt);if(rep=Ke,Ke&&typeof Ke!="function"&&(typeof Ke!="object"||typeof Ke.length!="number"))throw new Error("JSON.stringify");return str("",{"":tn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(tn,Ke){var Rt,Ft,ie=tn[Ke];if(ie&&typeof ie=="object")for(Rt in ie)Object.prototype.hasOwnProperty.call(ie,Rt)&&(Ft=walk(ie,Rt),Ft!==void 0?ie[Rt]=Ft:delete ie[Rt]);return reviver.call(tn,Ke,ie)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(tn){return"\\u"+("0000"+tn.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.slice,rt=Ft.pluck,kt=Ft.each,Ct=Ft.bind,St=Ft.create,pt=Ft.isList,vt=Ft.isFunction,yt=Ft.isObject;tn.exports={createStore:ft};var xt={version:"2.0.12",enabled:!1,get:function(ct,lt){var E=this.storage.read(this._namespacePrefix+ct);return this._deserialize(E,lt)},set:function(ct,lt){return lt===void 0?this.remove(ct):(this.storage.write(this._namespacePrefix+ct,this._serialize(lt)),lt)},remove:function(ct){this.storage.remove(this._namespacePrefix+ct)},each:function(ct){var lt=this;this.storage.each(function(E,z){ct.call(lt,lt._deserialize(E),(z||"").replace(lt._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ct){return this._namespacePrefix=="__storejs_"+ct+"_"},createStore:function(){return ft.apply(this,arguments)},addPlugin:function(ct){this._addPlugin(ct)},namespace:function(ct){return ft(this.storage,this.plugins,ct)}};function dt(){var ct=typeof console=="undefined"?null:console;if(ct){var lt=ct.warn?ct.warn:ct.log;lt.apply(ct,arguments)}}function ft(ct,lt,E){E||(E=""),ct&&!pt(ct)&&(ct=[ct]),lt&&!pt(lt)&&(lt=[lt]);var z=E?"__storejs_"+E+"_":"",ot=E?new RegExp("^"+z):null,it=/^[a-zA-Z0-9_\-]*$/;if(!it.test(E))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var at={_namespacePrefix:z,_namespaceRegexp:ot,_testStorage:function(wt){try{var Et="__storejs__test__";wt.write(Et,Et);var At=wt.read(Et)===Et;return wt.remove(Et),At}catch(_t){return!1}},_assignPluginFnProp:function(wt,Et){var At=this[Et];this[Et]=function(){var Mt=ie(arguments,0),jt=this;function Lt(){if(At)return kt(arguments,function(Ut,Xt){Mt[Xt]=Ut}),At.apply(jt,Mt)}var It=[Lt].concat(Mt);return wt.apply(jt,It)}},_serialize:function(wt){return JSON.stringify(wt)},_deserialize:function(wt,Et){if(!wt)return Et;var At="";try{At=JSON.parse(wt)}catch(_t){At=wt}return At!==void 0?At:Et},_addStorage:function(wt){this.enabled||this._testStorage(wt)&&(this.storage=wt,this.enabled=!0)},_addPlugin:function(wt){var Et=this;if(pt(wt)){kt(wt,function(Mt){Et._addPlugin(Mt)});return}var At=rt(this.plugins,function(Mt){return wt===Mt});if(!At){if(this.plugins.push(wt),!vt(wt))throw new Error("Plugins must be function values that return objects");var _t=wt.call(this);if(!yt(_t))throw new Error("Plugins must return an object of function properties");kt(_t,function(Mt,jt){if(!vt(Mt))throw new Error("Bad plugin property: "+jt+" from plugin "+wt.name+". Plugins should only return functions.");Et._assignPluginFnProp(Mt,jt)})}},addStorage:function(wt){dt("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(wt)}},ut=St(at,xt,{plugins:[]});return ut.raw={},kt(ut,function(wt,Et){vt(wt)&&(ut.raw[Et]=Ct(ut,wt))}),kt(ct,function(wt){ut._addStorage(wt)}),kt(lt,function(wt){ut._addPlugin(wt)}),ut}},67039:function(tn,Ke,Rt){var Ft=Ct(),ie=St(),rt=pt(),kt=typeof window!="undefined"?window:Rt.g;tn.exports={assign:Ft,create:ie,trim:rt,bind:vt,slice:yt,each:xt,map:dt,pluck:ft,isList:ct,isFunction:lt,isObject:E,Global:kt};function Ct(){return Object.assign?Object.assign:function(ot,it,at,ut){for(var wt=1;wt<arguments.length;wt++)xt(Object(arguments[wt]),function(Et,At){ot[At]=Et});return ot}}function St(){if(Object.create)return function(it,at,ut,wt){var Et=yt(arguments,1);return Ft.apply(this,[Object.create(it)].concat(Et))};{let ot=function(){};var z=ot;return function(at,ut,wt,Et){var At=yt(arguments,1);return ot.prototype=at,Ft.apply(this,[new ot].concat(At))}}}function pt(){return String.prototype.trim?function(ot){return String.prototype.trim.call(ot)}:function(ot){return ot.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function vt(z,ot){return function(){return ot.apply(z,Array.prototype.slice.call(arguments,0))}}function yt(z,ot){return Array.prototype.slice.call(z,ot||0)}function xt(z,ot){ft(z,function(it,at){return ot(it,at),!1})}function dt(z,ot){var it=ct(z)?[]:{};return ft(z,function(at,ut){return it[ut]=ot(at,ut),!1}),it}function ft(z,ot){if(ct(z)){for(var it=0;it<z.length;it++)if(ot(z[it],it))return z[it]}else for(var at in z)if(z.hasOwnProperty(at)&&ot(z[at],at))return z[at]}function ct(z){return z!=null&&typeof z!="function"&&typeof z.length=="number"}function lt(z){return z&&{}.toString.call(z)==="[object Function]"}function E(z){return z&&{}.toString.call(z)==="[object Object]"}},97573:function(tn,Ke,Rt){tn.exports=[Rt(52496),Rt(16436),Rt(76673),Rt(35701),Rt(65578),Rt(65300)]},35701:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global,rt=Ft.trim;tn.exports={name:"cookieStorage",read:Ct,write:pt,each:St,remove:vt,clearAll:yt};var kt=ie.document;function Ct(dt){if(!dt||!xt(dt))return null;var ft="(?:^|.*;\\s*)"+escape(dt).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(kt.cookie.replace(new RegExp(ft),"$1"))}function St(dt){for(var ft=kt.cookie.split(/; ?/g),ct=ft.length-1;ct>=0;ct--)if(rt(ft[ct])){var lt=ft[ct].split("="),E=unescape(lt[0]),z=unescape(lt[1]);dt(z,E)}}function pt(dt,ft){dt&&(kt.cookie=escape(dt)+"="+escape(ft)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function vt(dt){!dt||!xt(dt)||(kt.cookie=escape(dt)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function yt(){St(function(dt,ft){vt(ft)})}function xt(dt){return new RegExp("(?:^|;\\s*)"+escape(dt).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(kt.cookie)}},52496:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"localStorage",read:kt,write:Ct,each:St,remove:pt,clearAll:vt};function rt(){return ie.localStorage}function kt(yt){return rt().getItem(yt)}function Ct(yt,xt){return rt().setItem(yt,xt)}function St(yt){for(var xt=rt().length-1;xt>=0;xt--){var dt=rt().key(xt);yt(kt(dt),dt)}}function pt(yt){return rt().removeItem(yt)}function vt(){return rt().clear()}},65300:function(tn){tn.exports={name:"memoryStorage",read:Rt,write:Ft,each:ie,remove:rt,clearAll:kt};var Ke={};function Rt(Ct){return Ke[Ct]}function Ft(Ct,St){Ke[Ct]=St}function ie(Ct){for(var St in Ke)Ke.hasOwnProperty(St)&&Ct(Ke[St],St)}function rt(Ct){delete Ke[Ct]}function kt(Ct){Ke={}}},16436:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"oldFF-globalStorage",read:kt,write:Ct,each:St,remove:pt,clearAll:vt};var rt=ie.globalStorage;function kt(yt){return rt[yt]}function Ct(yt,xt){rt[yt]=xt}function St(yt){for(var xt=rt.length-1;xt>=0;xt--){var dt=rt.key(xt);yt(rt[dt],dt)}}function pt(yt){return rt.removeItem(yt)}function vt(){St(function(yt,xt){delete rt[yt]})}},76673:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"oldIE-userDataStorage",write:pt,read:vt,each:yt,remove:xt,clearAll:dt};var rt="storejs",kt=ie.document,Ct=lt(),St=(ie.navigator?ie.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function pt(E,z){if(!St){var ot=ct(E);Ct(function(it){it.setAttribute(ot,z),it.save(rt)})}}function vt(E){if(!St){var z=ct(E),ot=null;return Ct(function(it){ot=it.getAttribute(z)}),ot}}function yt(E){Ct(function(z){for(var ot=z.XMLDocument.documentElement.attributes,it=ot.length-1;it>=0;it--){var at=ot[it];E(z.getAttribute(at.name),at.name)}})}function xt(E){var z=ct(E);Ct(function(ot){ot.removeAttribute(z),ot.save(rt)})}function dt(){Ct(function(E){var z=E.XMLDocument.documentElement.attributes;E.load(rt);for(var ot=z.length-1;ot>=0;ot--)E.removeAttribute(z[ot].name);E.save(rt)})}var ft=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ct(E){return E.replace(/^\d/,"___$&").replace(ft,"___")}function lt(){if(!kt||!kt.documentElement||!kt.documentElement.addBehavior)return null;var E="script",z,ot,it;try{ot=new ActiveXObject("htmlfile"),ot.open(),ot.write("<"+E+">document.w=window</"+E+'><iframe src="/favicon.ico"></iframe>'),ot.close(),z=ot.w.frames[0].document,it=z.createElement("div")}catch(at){it=kt.createElement("div"),z=kt.body}return function(at){var ut=[].slice.call(arguments,0);ut.unshift(it),z.appendChild(it),it.addBehavior("#default#userData"),it.load(rt),at.apply(this,ut),z.removeChild(it)}}},65578:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"sessionStorage",read:kt,write:Ct,each:St,remove:pt,clearAll:vt};function rt(){return ie.sessionStorage}function kt(yt){return rt().getItem(yt)}function Ct(yt,xt){return rt().setItem(yt,xt)}function St(yt){for(var xt=rt().length-1;xt>=0;xt--){var dt=rt().key(xt);yt(kt(dt),dt)}}function pt(yt){return rt().removeItem(yt)}function vt(){return rt().clear()}},34376:function(tn){(function(Ke,Rt){if(1)tn.exports=Rt();else var Ft,ie})(window,function(){return function(Ke){var Rt={};function Ft(ie){if(Rt[ie])return Rt[ie].exports;var rt=Rt[ie]={i:ie,l:!1,exports:{}};return Ke[ie].call(rt.exports,rt,rt.exports,Ft),rt.l=!0,rt.exports}return Ft.m=Ke,Ft.c=Rt,Ft.d=function(ie,rt,kt){Ft.o(ie,rt)||Object.defineProperty(ie,rt,{enumerable:!0,get:kt})},Ft.r=function(ie){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ie,"__esModule",{value:!0})},Ft.t=function(ie,rt){if(1&rt&&(ie=Ft(ie)),8&rt||4&rt&&typeof ie=="object"&&ie&&ie.__esModule)return ie;var kt=Object.create(null);if(Ft.r(kt),Object.defineProperty(kt,"default",{enumerable:!0,value:ie}),2&rt&&typeof ie!="string")for(var Ct in ie)Ft.d(kt,Ct,function(St){return ie[St]}.bind(null,Ct));return kt},Ft.n=function(ie){var rt=ie&&ie.__esModule?function(){return ie.default}:function(){return ie};return Ft.d(rt,"a",rt),rt},Ft.o=function(ie,rt){return Object.prototype.hasOwnProperty.call(ie,rt)},Ft.p="",Ft(Ft.s=34)}([function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.forwardEvent=Rt.EventEmitter=void 0;var ie=function(){function rt(){this._listeners=[],this._disposed=!1}return Object.defineProperty(rt.prototype,"event",{get:function(){var kt=this;return this._event||(this._event=function(Ct){return kt._listeners.push(Ct),{dispose:function(){if(!kt._disposed){for(var St=0;St<kt._listeners.length;St++)if(kt._listeners[St]===Ct)return void kt._listeners.splice(St,1)}}}}),this._event},enumerable:!1,configurable:!0}),rt.prototype.fire=function(kt,Ct){for(var St=[],pt=0;pt<this._listeners.length;pt++)St.push(this._listeners[pt]);for(pt=0;pt<St.length;pt++)St[pt].call(void 0,kt,Ct)},rt.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},rt}();Rt.EventEmitter=ie,Rt.forwardEvent=function(rt,kt){return rt(function(Ct){return kt.fire(Ct)})}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.IUnicodeService=Rt.IOptionsService=Rt.ILogService=Rt.IInstantiationService=Rt.IDirtyRowService=Rt.ICharsetService=Rt.ICoreService=Rt.ICoreMouseService=Rt.IBufferService=void 0;var ie=Ft(14);Rt.IBufferService=ie.createDecorator("BufferService"),Rt.ICoreMouseService=ie.createDecorator("CoreMouseService"),Rt.ICoreService=ie.createDecorator("CoreService"),Rt.ICharsetService=ie.createDecorator("CharsetService"),Rt.IDirtyRowService=ie.createDecorator("DirtyRowService"),Rt.IInstantiationService=ie.createDecorator("InstantiationService"),Rt.ILogService=ie.createDecorator("LogService"),Rt.IOptionsService=ie.createDecorator("OptionsService"),Rt.IUnicodeService=ie.createDecorator("UnicodeService")},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.getDisposeArrayDisposable=Rt.disposeArray=Rt.Disposable=void 0;var ie=function(){function kt(){this._disposables=[],this._isDisposed=!1}return kt.prototype.dispose=function(){this._isDisposed=!0;for(var Ct=0,St=this._disposables;Ct<St.length;Ct++)St[Ct].dispose();this._disposables.length=0},kt.prototype.register=function(Ct){return this._disposables.push(Ct),Ct},kt.prototype.unregister=function(Ct){var St=this._disposables.indexOf(Ct);St!==-1&&this._disposables.splice(St,1)},kt}();function rt(kt){for(var Ct=0,St=kt;Ct<St.length;Ct++)St[Ct].dispose();kt.length=0}Rt.Disposable=ie,Rt.disposeArray=rt,Rt.getDisposeArrayDisposable=function(kt){return{dispose:function(){return rt(kt)}}}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.WHITESPACE_CELL_CODE=Rt.WHITESPACE_CELL_WIDTH=Rt.WHITESPACE_CELL_CHAR=Rt.NULL_CELL_CODE=Rt.NULL_CELL_WIDTH=Rt.NULL_CELL_CHAR=Rt.CHAR_DATA_CODE_INDEX=Rt.CHAR_DATA_WIDTH_INDEX=Rt.CHAR_DATA_CHAR_INDEX=Rt.CHAR_DATA_ATTR_INDEX=Rt.DEFAULT_ATTR=Rt.DEFAULT_COLOR=void 0,Rt.DEFAULT_COLOR=256,Rt.DEFAULT_ATTR=256|Rt.DEFAULT_COLOR<<9,Rt.CHAR_DATA_ATTR_INDEX=0,Rt.CHAR_DATA_CHAR_INDEX=1,Rt.CHAR_DATA_WIDTH_INDEX=2,Rt.CHAR_DATA_CODE_INDEX=3,Rt.NULL_CELL_CHAR="",Rt.NULL_CELL_WIDTH=1,Rt.NULL_CELL_CODE=0,Rt.WHITESPACE_CELL_CHAR=" ",Rt.WHITESPACE_CELL_WIDTH=1,Rt.WHITESPACE_CELL_CODE=32},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(vt,yt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,dt){xt.__proto__=dt}||function(xt,dt){for(var ft in dt)dt.hasOwnProperty(ft)&&(xt[ft]=dt[ft])})(vt,yt)},function(vt,yt){function xt(){this.constructor=vt}ie(vt,yt),vt.prototype=yt===null?Object.create(yt):(xt.prototype=yt.prototype,new xt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CellData=void 0;var kt=Ft(8),Ct=Ft(3),St=Ft(6),pt=function(vt){function yt(){var xt=vt!==null&&vt.apply(this,arguments)||this;return xt.content=0,xt.fg=0,xt.bg=0,xt.extended=new St.ExtendedAttrs,xt.combinedData="",xt}return rt(yt,vt),yt.fromCharData=function(xt){var dt=new yt;return dt.setFromCharData(xt),dt},yt.prototype.isCombined=function(){return 2097152&this.content},yt.prototype.getWidth=function(){return this.content>>22},yt.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?kt.stringFromCodePoint(2097151&this.content):""},yt.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},yt.prototype.setFromCharData=function(xt){this.fg=xt[Ct.CHAR_DATA_ATTR_INDEX],this.bg=0;var dt=!1;if(xt[Ct.CHAR_DATA_CHAR_INDEX].length>2)dt=!0;else if(xt[Ct.CHAR_DATA_CHAR_INDEX].length===2){var ft=xt[Ct.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=ft&&ft<=56319){var ct=xt[Ct.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=ct&&ct<=57343?this.content=1024*(ft-55296)+ct-56320+65536|xt[Ct.CHAR_DATA_WIDTH_INDEX]<<22:dt=!0}else dt=!0}else this.content=xt[Ct.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|xt[Ct.CHAR_DATA_WIDTH_INDEX]<<22;dt&&(this.combinedData=xt[Ct.CHAR_DATA_CHAR_INDEX],this.content=2097152|xt[Ct.CHAR_DATA_WIDTH_INDEX]<<22)},yt.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},yt}(St.AttributeData);Rt.CellData=pt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.ISoundService=Rt.ISelectionService=Rt.IRenderService=Rt.IMouseService=Rt.ICoreBrowserService=Rt.ICharSizeService=void 0;var ie=Ft(14);Rt.ICharSizeService=ie.createDecorator("CharSizeService"),Rt.ICoreBrowserService=ie.createDecorator("CoreBrowserService"),Rt.IMouseService=ie.createDecorator("MouseService"),Rt.IRenderService=ie.createDecorator("RenderService"),Rt.ISelectionService=ie.createDecorator("SelectionService"),Rt.ISoundService=ie.createDecorator("SoundService")},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.ExtendedAttrs=Rt.AttributeData=void 0;var ie=function(){function kt(){this.fg=0,this.bg=0,this.extended=new rt}return kt.toColorRGB=function(Ct){return[Ct>>>16&255,Ct>>>8&255,255&Ct]},kt.fromColorRGB=function(Ct){return(255&Ct[0])<<16|(255&Ct[1])<<8|255&Ct[2]},kt.prototype.clone=function(){var Ct=new kt;return Ct.fg=this.fg,Ct.bg=this.bg,Ct.extended=this.extended.clone(),Ct},kt.prototype.isInverse=function(){return 67108864&this.fg},kt.prototype.isBold=function(){return 134217728&this.fg},kt.prototype.isUnderline=function(){return 268435456&this.fg},kt.prototype.isBlink=function(){return 536870912&this.fg},kt.prototype.isInvisible=function(){return 1073741824&this.fg},kt.prototype.isItalic=function(){return 67108864&this.bg},kt.prototype.isDim=function(){return 134217728&this.bg},kt.prototype.getFgColorMode=function(){return 50331648&this.fg},kt.prototype.getBgColorMode=function(){return 50331648&this.bg},kt.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},kt.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},kt.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},kt.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},kt.prototype.isFgDefault=function(){return(50331648&this.fg)==0},kt.prototype.isBgDefault=function(){return(50331648&this.bg)==0},kt.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},kt.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},kt.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},kt.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},kt.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},kt.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},kt.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},kt.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},kt.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},kt.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},kt.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},kt}();Rt.AttributeData=ie;var rt=function(){function kt(Ct,St){Ct===void 0&&(Ct=0),St===void 0&&(St=-1),this.underlineStyle=Ct,this.underlineColor=St}return kt.prototype.clone=function(){return new kt(this.underlineStyle,this.underlineColor)},kt.prototype.isEmpty=function(){return this.underlineStyle===0},kt}();Rt.ExtendedAttrs=rt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.addDisposableDomListener=void 0,Rt.addDisposableDomListener=function(ie,rt,kt,Ct){ie.addEventListener(rt,kt,Ct);var St=!1;return{dispose:function(){St||(St=!0,ie.removeEventListener(rt,kt,Ct))}}}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Utf8ToUtf32=Rt.StringToUtf32=Rt.utf32ToString=Rt.stringFromCodePoint=void 0,Rt.stringFromCodePoint=function(kt){return kt>65535?(kt-=65536,String.fromCharCode(55296+(kt>>10))+String.fromCharCode(kt%1024+56320)):String.fromCharCode(kt)},Rt.utf32ToString=function(kt,Ct,St){Ct===void 0&&(Ct=0),St===void 0&&(St=kt.length);for(var pt="",vt=Ct;vt<St;++vt){var yt=kt[vt];yt>65535?(yt-=65536,pt+=String.fromCharCode(55296+(yt>>10))+String.fromCharCode(yt%1024+56320)):pt+=String.fromCharCode(yt)}return pt};var ie=function(){function kt(){this._interim=0}return kt.prototype.clear=function(){this._interim=0},kt.prototype.decode=function(Ct,St){var pt=Ct.length;if(!pt)return 0;var vt=0,yt=0;this._interim&&(56320<=(ft=Ct.charCodeAt(yt++))&&ft<=57343?St[vt++]=1024*(this._interim-55296)+ft-56320+65536:(St[vt++]=this._interim,St[vt++]=ft),this._interim=0);for(var xt=yt;xt<pt;++xt){var dt=Ct.charCodeAt(xt);if(55296<=dt&&dt<=56319){if(++xt>=pt)return this._interim=dt,vt;var ft;56320<=(ft=Ct.charCodeAt(xt))&&ft<=57343?St[vt++]=1024*(dt-55296)+ft-56320+65536:(St[vt++]=dt,St[vt++]=ft)}else St[vt++]=dt}return vt},kt}();Rt.StringToUtf32=ie;var rt=function(){function kt(){this.interim=new Uint8Array(3)}return kt.prototype.clear=function(){this.interim.fill(0)},kt.prototype.decode=function(Ct,St){var pt=Ct.length;if(!pt)return 0;var vt,yt,xt,dt,ft=0,ct=0,lt=0;if(this.interim[0]){var E=!1,z=this.interim[0];z&=(224&z)==192?31:(240&z)==224?15:7;for(var ot=0,it=void 0;(it=63&this.interim[++ot])&&ot<4;)z<<=6,z|=it;for(var at=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,ut=at-ot;lt<ut;){if(lt>=pt)return 0;if((192&(it=Ct[lt++]))!=128){lt--,E=!0;break}this.interim[ot++]=it,z<<=6,z|=63&it}E||(at===2?z<128?lt--:St[ft++]=z:at===3?z<2048||z>=55296&&z<=57343||(St[ft++]=z):z<65536||z>1114111||(St[ft++]=z)),this.interim.fill(0)}for(var wt=pt-4,Et=lt;Et<pt;){for(;!(!(Et<wt)||128&(vt=Ct[Et])||128&(yt=Ct[Et+1])||128&(xt=Ct[Et+2])||128&(dt=Ct[Et+3]));)St[ft++]=vt,St[ft++]=yt,St[ft++]=xt,St[ft++]=dt,Et+=4;if((vt=Ct[Et++])<128)St[ft++]=vt;else if((224&vt)==192){if(Et>=pt)return this.interim[0]=vt,ft;if((192&(yt=Ct[Et++]))!=128){Et--;continue}if((ct=(31&vt)<<6|63&yt)<128){Et--;continue}St[ft++]=ct}else if((240&vt)==224){if(Et>=pt)return this.interim[0]=vt,ft;if((192&(yt=Ct[Et++]))!=128){Et--;continue}if(Et>=pt)return this.interim[0]=vt,this.interim[1]=yt,ft;if((192&(xt=Ct[Et++]))!=128){Et--;continue}if((ct=(15&vt)<<12|(63&yt)<<6|63&xt)<2048||ct>=55296&&ct<=57343)continue;St[ft++]=ct}else if((248&vt)==240){if(Et>=pt)return this.interim[0]=vt,ft;if((192&(yt=Ct[Et++]))!=128){Et--;continue}if(Et>=pt)return this.interim[0]=vt,this.interim[1]=yt,ft;if((192&(xt=Ct[Et++]))!=128){Et--;continue}if(Et>=pt)return this.interim[0]=vt,this.interim[1]=yt,this.interim[2]=xt,ft;if((192&(dt=Ct[Et++]))!=128){Et--;continue}if((ct=(7&vt)<<18|(63&yt)<<12|(63&xt)<<6|63&dt)<65536||ct>1114111)continue;St[ft++]=ct}}return ft},kt}();Rt.Utf8ToUtf32=rt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CHAR_ATLAS_CELL_SPACING=Rt.DIM_OPACITY=Rt.INVERTED_DEFAULT_COLOR=void 0,Rt.INVERTED_DEFAULT_COLOR=257,Rt.DIM_OPACITY=.5,Rt.CHAR_ATLAS_CELL_SPACING=1},function(Ke,Rt,Ft){"use strict";var ie,rt,kt,Ct;function St(vt){var yt=vt.toString(16);return yt.length<2?"0"+yt:yt}function pt(vt,yt){return vt<yt?(yt+.05)/(vt+.05):(vt+.05)/(yt+.05)}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.contrastRatio=Rt.toPaddedHex=Rt.rgba=Rt.rgb=Rt.css=Rt.color=Rt.channels=void 0,function(vt){vt.toCss=function(yt,xt,dt,ft){return ft!==void 0?"#"+St(yt)+St(xt)+St(dt)+St(ft):"#"+St(yt)+St(xt)+St(dt)},vt.toRgba=function(yt,xt,dt,ft){return ft===void 0&&(ft=255),(yt<<24|xt<<16|dt<<8|ft)>>>0}}(ie=Rt.channels||(Rt.channels={})),(rt=Rt.color||(Rt.color={})).blend=function(vt,yt){var xt=(255&yt.rgba)/255;if(xt===1)return{css:yt.css,rgba:yt.rgba};var dt=yt.rgba>>24&255,ft=yt.rgba>>16&255,ct=yt.rgba>>8&255,lt=vt.rgba>>24&255,E=vt.rgba>>16&255,z=vt.rgba>>8&255,ot=lt+Math.round((dt-lt)*xt),it=E+Math.round((ft-E)*xt),at=z+Math.round((ct-z)*xt);return{css:ie.toCss(ot,it,at),rgba:ie.toRgba(ot,it,at)}},rt.isOpaque=function(vt){return(255&vt.rgba)==255},rt.ensureContrastRatio=function(vt,yt,xt){var dt=Ct.ensureContrastRatio(vt.rgba,yt.rgba,xt);if(dt)return Ct.toColor(dt>>24&255,dt>>16&255,dt>>8&255)},rt.opaque=function(vt){var yt=(255|vt.rgba)>>>0,xt=Ct.toChannels(yt),dt=xt[0],ft=xt[1],ct=xt[2];return{css:ie.toCss(dt,ft,ct),rgba:yt}},rt.opacity=function(vt,yt){var xt=Math.round(255*yt),dt=Ct.toChannels(vt.rgba),ft=dt[0],ct=dt[1],lt=dt[2];return{css:ie.toCss(ft,ct,lt,xt),rgba:ie.toRgba(ft,ct,lt,xt)}},(Rt.css||(Rt.css={})).toColor=function(vt){switch(vt.length){case 7:return{css:vt,rgba:(parseInt(vt.slice(1),16)<<8|255)>>>0};case 9:return{css:vt,rgba:parseInt(vt.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(vt){function yt(xt,dt,ft){var ct=xt/255,lt=dt/255,E=ft/255;return .2126*(ct<=.03928?ct/12.92:Math.pow((ct+.055)/1.055,2.4))+.7152*(lt<=.03928?lt/12.92:Math.pow((lt+.055)/1.055,2.4))+.0722*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))}vt.relativeLuminance=function(xt){return yt(xt>>16&255,xt>>8&255,255&xt)},vt.relativeLuminance2=yt}(kt=Rt.rgb||(Rt.rgb={})),function(vt){function yt(dt,ft,ct){for(var lt=dt>>24&255,E=dt>>16&255,z=dt>>8&255,ot=ft>>24&255,it=ft>>16&255,at=ft>>8&255,ut=pt(kt.relativeLuminance2(ot,at,it),kt.relativeLuminance2(lt,E,z));ut<ct&&(ot>0||it>0||at>0);)ot-=Math.max(0,Math.ceil(.1*ot)),it-=Math.max(0,Math.ceil(.1*it)),at-=Math.max(0,Math.ceil(.1*at)),ut=pt(kt.relativeLuminance2(ot,at,it),kt.relativeLuminance2(lt,E,z));return(ot<<24|it<<16|at<<8|255)>>>0}function xt(dt,ft,ct){for(var lt=dt>>24&255,E=dt>>16&255,z=dt>>8&255,ot=ft>>24&255,it=ft>>16&255,at=ft>>8&255,ut=pt(kt.relativeLuminance2(ot,at,it),kt.relativeLuminance2(lt,E,z));ut<ct&&(ot<255||it<255||at<255);)ot=Math.min(255,ot+Math.ceil(.1*(255-ot))),it=Math.min(255,it+Math.ceil(.1*(255-it))),at=Math.min(255,at+Math.ceil(.1*(255-at))),ut=pt(kt.relativeLuminance2(ot,at,it),kt.relativeLuminance2(lt,E,z));return(ot<<24|it<<16|at<<8|255)>>>0}vt.ensureContrastRatio=function(dt,ft,ct){var lt=kt.relativeLuminance(dt>>8),E=kt.relativeLuminance(ft>>8);if(pt(lt,E)<ct)return E<lt?yt(dt,ft,ct):xt(dt,ft,ct)},vt.reduceLuminance=yt,vt.increaseLuminance=xt,vt.toChannels=function(dt){return[dt>>24&255,dt>>16&255,dt>>8&255,255&dt]},vt.toColor=function(dt,ft,ct){return{css:ie.toCss(dt,ft,ct),rgba:ie.toRgba(dt,ft,ct)}}}(Ct=Rt.rgba||(Rt.rgba={})),Rt.toPaddedHex=St,Rt.contrastRatio=pt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.isLinux=Rt.isWindows=Rt.isIphone=Rt.isIpad=Rt.isMac=Rt.isSafari=Rt.isFirefox=void 0;var ie=typeof navigator=="undefined",rt=ie?"node":navigator.userAgent,kt=ie?"node":navigator.platform;function Ct(St,pt){return St.indexOf(pt)>=0}Rt.isFirefox=!!~rt.indexOf("Firefox"),Rt.isSafari=/^((?!chrome|android).)*safari/i.test(rt),Rt.isMac=Ct(["Macintosh","MacIntel","MacPPC","Mac68K"],kt),Rt.isIpad=kt==="iPad",Rt.isIphone=kt==="iPhone",Rt.isWindows=Ct(["Windows","Win16","Win32","WinCE"],kt),Rt.isLinux=kt.indexOf("Linux")>=0},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.C1=Rt.C0=void 0,function(ie){ie.NUL="\0",ie.SOH="",ie.STX="",ie.ETX="",ie.EOT="",ie.ENQ="",ie.ACK="",ie.BEL="\x07",ie.BS="\b",ie.HT=" ",ie.LF=`
`,ie.VT="\v",ie.FF="\f",ie.CR="\r",ie.SO="",ie.SI="",ie.DLE="",ie.DC1="",ie.DC2="",ie.DC3="",ie.DC4="",ie.NAK="",ie.SYN="",ie.ETB="",ie.CAN="",ie.EM="",ie.SUB="",ie.ESC="\x1B",ie.FS="",ie.GS="",ie.RS="",ie.US="",ie.SP=" ",ie.DEL="\x7F"}(Rt.C0||(Rt.C0={})),function(ie){ie.PAD="\x80",ie.HOP="\x81",ie.BPH="\x82",ie.NBH="\x83",ie.IND="\x84",ie.NEL="\x85",ie.SSA="\x86",ie.ESA="\x87",ie.HTS="\x88",ie.HTJ="\x89",ie.VTS="\x8A",ie.PLD="\x8B",ie.PLU="\x8C",ie.RI="\x8D",ie.SS2="\x8E",ie.SS3="\x8F",ie.DCS="\x90",ie.PU1="\x91",ie.PU2="\x92",ie.STS="\x93",ie.CCH="\x94",ie.MW="\x95",ie.SPA="\x96",ie.EPA="\x97",ie.SOS="\x98",ie.SGCI="\x99",ie.SCI="\x9A",ie.CSI="\x9B",ie.ST="\x9C",ie.OSC="\x9D",ie.PM="\x9E",ie.APC="\x9F"}(Rt.C1||(Rt.C1={}))},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BaseRenderLayer=void 0;var ie=Ft(3),rt=Ft(9),kt=Ft(25),Ct=Ft(6),St=Ft(28),pt=Ft(10),vt=Ft(17),yt=function(){function xt(dt,ft,ct,lt,E,z,ot,it){this._container=dt,this._alpha=lt,this._colors=E,this._rendererId=z,this._bufferService=ot,this._optionsService=it,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+ft+"-layer"),this._canvas.style.zIndex=ct.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return xt.prototype.dispose=function(){var dt;vt.removeElementFromParent(this._canvas),(dt=this._charAtlas)===null||dt===void 0||dt.dispose()},xt.prototype._initCanvas=function(){this._ctx=St.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},xt.prototype.onOptionsChanged=function(){},xt.prototype.onBlur=function(){},xt.prototype.onFocus=function(){},xt.prototype.onCursorMove=function(){},xt.prototype.onGridChanged=function(dt,ft){},xt.prototype.onSelectionChanged=function(dt,ft,ct){ct===void 0&&(ct=!1)},xt.prototype.setColors=function(dt){this._refreshCharAtlas(dt)},xt.prototype._setTransparency=function(dt){if(dt!==this._alpha){var ft=this._canvas;this._alpha=dt,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,ft),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},xt.prototype._refreshCharAtlas=function(dt){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=kt.acquireCharAtlas(this._optionsService.options,this._rendererId,dt,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},xt.prototype.resize=function(dt){this._scaledCellWidth=dt.scaledCellWidth,this._scaledCellHeight=dt.scaledCellHeight,this._scaledCharWidth=dt.scaledCharWidth,this._scaledCharHeight=dt.scaledCharHeight,this._scaledCharLeft=dt.scaledCharLeft,this._scaledCharTop=dt.scaledCharTop,this._canvas.width=dt.scaledCanvasWidth,this._canvas.height=dt.scaledCanvasHeight,this._canvas.style.width=dt.canvasWidth+"px",this._canvas.style.height=dt.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},xt.prototype._fillCells=function(dt,ft,ct,lt){this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight)},xt.prototype._fillBottomLineAtCells=function(dt,ft,ct){ct===void 0&&(ct=1),this._ctx.fillRect(dt*this._scaledCellWidth,(ft+1)*this._scaledCellHeight-window.devicePixelRatio-1,ct*this._scaledCellWidth,window.devicePixelRatio)},xt.prototype._fillLeftLineAtCell=function(dt,ft,ct){this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,window.devicePixelRatio*ct,this._scaledCellHeight)},xt.prototype._strokeRectAtCell=function(dt,ft,ct,lt){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(dt*this._scaledCellWidth+window.devicePixelRatio/2,ft*this._scaledCellHeight+window.devicePixelRatio/2,ct*this._scaledCellWidth-window.devicePixelRatio,lt*this._scaledCellHeight-window.devicePixelRatio)},xt.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},xt.prototype._clearCells=function(dt,ft,ct,lt){this._alpha?this._ctx.clearRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight))},xt.prototype._fillCharTrueColor=function(dt,ft,ct){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(ct),this._ctx.fillText(dt.getChars(),ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},xt.prototype._drawChars=function(dt,ft,ct){var lt,E,z=this._getContrastColor(dt);z||dt.isFgRGB()||dt.isBgRGB()?this._drawUncachedChars(dt,ft,ct,z):(dt.isInverse()?(lt=dt.isBgDefault()?rt.INVERTED_DEFAULT_COLOR:dt.getBgColor(),E=dt.isFgDefault()?rt.INVERTED_DEFAULT_COLOR:dt.getFgColor()):(E=dt.isBgDefault()?ie.DEFAULT_COLOR:dt.getBgColor(),lt=dt.isFgDefault()?ie.DEFAULT_COLOR:dt.getFgColor()),lt+=this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&&lt<8?8:0,this._currentGlyphIdentifier.chars=dt.getChars()||ie.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=dt.getCode()||ie.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=E,this._currentGlyphIdentifier.fg=lt,this._currentGlyphIdentifier.bold=!!dt.isBold(),this._currentGlyphIdentifier.dim=!!dt.isDim(),this._currentGlyphIdentifier.italic=!!dt.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(dt,ft,ct))},xt.prototype._drawUncachedChars=function(dt,ft,ct,lt){if(this._ctx.save(),this._ctx.font=this._getFont(!!dt.isBold(),!!dt.isItalic()),this._ctx.textBaseline="middle",dt.isInverse())if(lt)this._ctx.fillStyle=lt.css;else if(dt.isBgDefault())this._ctx.fillStyle=pt.color.opaque(this._colors.background).css;else if(dt.isBgRGB())this._ctx.fillStyle="rgb("+Ct.AttributeData.toColorRGB(dt.getBgColor()).join(",")+")";else{var E=dt.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&&E<8&&(E+=8),this._ctx.fillStyle=this._colors.ansi[E].css}else if(lt)this._ctx.fillStyle=lt.css;else if(dt.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(dt.isFgRGB())this._ctx.fillStyle="rgb("+Ct.AttributeData.toColorRGB(dt.getFgColor()).join(",")+")";else{var z=dt.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&&z<8&&(z+=8),this._ctx.fillStyle=this._colors.ansi[z].css}this._clipRow(ct),dt.isDim()&&(this._ctx.globalAlpha=rt.DIM_OPACITY),this._ctx.fillText(dt.getChars(),ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},xt.prototype._clipRow=function(dt){this._ctx.beginPath(),this._ctx.rect(0,dt*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},xt.prototype._getFont=function(dt,ft){return(ft?"italic":"")+" "+(dt?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},xt.prototype._getContrastColor=function(dt){if(this._optionsService.options.minimumContrastRatio!==1){var ft=this._colors.contrastCache.getColor(dt.bg,dt.fg);if(ft!==void 0)return ft||void 0;var ct=dt.getFgColor(),lt=dt.getFgColorMode(),E=dt.getBgColor(),z=dt.getBgColorMode(),ot=!!dt.isInverse(),it=!!dt.isInverse();if(ot){var at=ct;ct=E,E=at;var ut=lt;lt=z,z=ut}var wt=this._resolveBackgroundRgba(z,E,ot),Et=this._resolveForegroundRgba(lt,ct,ot,it),At=pt.rgba.ensureContrastRatio(wt,Et,this._optionsService.options.minimumContrastRatio);if(At){var _t={css:pt.channels.toCss(At>>24&255,At>>16&255,At>>8&255),rgba:At};return this._colors.contrastCache.setColor(dt.bg,dt.fg,_t),_t}this._colors.contrastCache.setColor(dt.bg,dt.fg,null)}},xt.prototype._resolveBackgroundRgba=function(dt,ft,ct){switch(dt){case 16777216:case 33554432:return this._colors.ansi[ft].rgba;case 50331648:return ft<<8;case 0:default:return ct?this._colors.foreground.rgba:this._colors.background.rgba}},xt.prototype._resolveForegroundRgba=function(dt,ft,ct,lt){switch(dt){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&lt&&ft<8&&(ft+=8),this._colors.ansi[ft].rgba;case 50331648:return ft<<8;case 0:default:return ct?this._colors.background.rgba:this._colors.foreground.rgba}},xt}();Rt.BaseRenderLayer=yt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.createDecorator=Rt.getServiceDependencies=Rt.serviceRegistry=void 0;function ie(rt,kt,Ct){kt.di$target===kt?kt.di$dependencies.push({id:rt,index:Ct}):(kt.di$dependencies=[{id:rt,index:Ct}],kt.di$target=kt)}Rt.serviceRegistry=new Map,Rt.getServiceDependencies=function(rt){return rt.di$dependencies||[]},Rt.createDecorator=function(rt){if(Rt.serviceRegistry.has(rt))return Rt.serviceRegistry.get(rt);var kt=function(Ct,St,pt){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ie(kt,Ct,pt)};return kt.toString=function(){return rt},Rt.serviceRegistry.set(rt,kt),kt}},function(Ke,Rt,Ft){"use strict";function ie(rt,kt,Ct,St){if(Ct===void 0&&(Ct=0),St===void 0&&(St=rt.length),Ct>=rt.length)return rt;Ct=(rt.length+Ct)%rt.length,St=St>=rt.length?rt.length:(rt.length+St)%rt.length;for(var pt=Ct;pt<St;++pt)rt[pt]=kt;return rt}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.concat=Rt.fillFallback=Rt.fill=void 0,Rt.fill=function(rt,kt,Ct,St){return rt.fill?rt.fill(kt,Ct,St):ie(rt,kt,Ct,St)},Rt.fillFallback=ie,Rt.concat=function(rt,kt){var Ct=new rt.constructor(rt.length+kt.length);return Ct.set(rt),Ct.set(kt,rt.length),Ct}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferLine=Rt.DEFAULT_ATTR_DATA=void 0;var ie=Ft(8),rt=Ft(3),kt=Ft(4),Ct=Ft(6);Rt.DEFAULT_ATTR_DATA=Object.freeze(new Ct.AttributeData);var St=function(){function pt(vt,yt,xt){xt===void 0&&(xt=!1),this.isWrapped=xt,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*vt);for(var dt=yt||kt.CellData.fromCharData([0,rt.NULL_CELL_CHAR,rt.NULL_CELL_WIDTH,rt.NULL_CELL_CODE]),ft=0;ft<vt;++ft)this.setCell(ft,dt);this.length=vt}return pt.prototype.get=function(vt){var yt=this._data[3*vt+0],xt=2097151&yt;return[this._data[3*vt+1],2097152&yt?this._combined[vt]:xt?ie.stringFromCodePoint(xt):"",yt>>22,2097152&yt?this._combined[vt].charCodeAt(this._combined[vt].length-1):xt]},pt.prototype.set=function(vt,yt){this._data[3*vt+1]=yt[rt.CHAR_DATA_ATTR_INDEX],yt[rt.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[vt]=yt[1],this._data[3*vt+0]=2097152|vt|yt[rt.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*vt+0]=yt[rt.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|yt[rt.CHAR_DATA_WIDTH_INDEX]<<22},pt.prototype.getWidth=function(vt){return this._data[3*vt+0]>>22},pt.prototype.hasWidth=function(vt){return 12582912&this._data[3*vt+0]},pt.prototype.getFg=function(vt){return this._data[3*vt+1]},pt.prototype.getBg=function(vt){return this._data[3*vt+2]},pt.prototype.hasContent=function(vt){return 4194303&this._data[3*vt+0]},pt.prototype.getCodePoint=function(vt){var yt=this._data[3*vt+0];return 2097152&yt?this._combined[vt].charCodeAt(this._combined[vt].length-1):2097151&yt},pt.prototype.isCombined=function(vt){return 2097152&this._data[3*vt+0]},pt.prototype.getString=function(vt){var yt=this._data[3*vt+0];return 2097152&yt?this._combined[vt]:2097151&yt?ie.stringFromCodePoint(2097151&yt):""},pt.prototype.loadCell=function(vt,yt){var xt=3*vt;return yt.content=this._data[xt+0],yt.fg=this._data[xt+1],yt.bg=this._data[xt+2],2097152&yt.content&&(yt.combinedData=this._combined[vt]),268435456&yt.bg&&(yt.extended=this._extendedAttrs[vt]),yt},pt.prototype.setCell=function(vt,yt){2097152&yt.content&&(this._combined[vt]=yt.combinedData),268435456&yt.bg&&(this._extendedAttrs[vt]=yt.extended),this._data[3*vt+0]=yt.content,this._data[3*vt+1]=yt.fg,this._data[3*vt+2]=yt.bg},pt.prototype.setCellFromCodePoint=function(vt,yt,xt,dt,ft,ct){268435456&ft&&(this._extendedAttrs[vt]=ct),this._data[3*vt+0]=yt|xt<<22,this._data[3*vt+1]=dt,this._data[3*vt+2]=ft},pt.prototype.addCodepointToCell=function(vt,yt){var xt=this._data[3*vt+0];2097152&xt?this._combined[vt]+=ie.stringFromCodePoint(yt):(2097151&xt?(this._combined[vt]=ie.stringFromCodePoint(2097151&xt)+ie.stringFromCodePoint(yt),xt&=-2097152,xt|=2097152):xt=yt|1<<22,this._data[3*vt+0]=xt)},pt.prototype.insertCells=function(vt,yt,xt,dt){if((vt%=this.length)&&this.getWidth(vt-1)===2&&this.setCellFromCodePoint(vt-1,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs),yt<this.length-vt){for(var ft=new kt.CellData,ct=this.length-vt-yt-1;ct>=0;--ct)this.setCell(vt+yt+ct,this.loadCell(vt+ct,ft));for(ct=0;ct<yt;++ct)this.setCell(vt+ct,xt)}else for(ct=vt;ct<this.length;++ct)this.setCell(ct,xt);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs)},pt.prototype.deleteCells=function(vt,yt,xt,dt){if(vt%=this.length,yt<this.length-vt){for(var ft=new kt.CellData,ct=0;ct<this.length-vt-yt;++ct)this.setCell(vt+ct,this.loadCell(vt+yt+ct,ft));for(ct=this.length-yt;ct<this.length;++ct)this.setCell(ct,xt)}else for(ct=vt;ct<this.length;++ct)this.setCell(ct,xt);vt&&this.getWidth(vt-1)===2&&this.setCellFromCodePoint(vt-1,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs),this.getWidth(vt)!==0||this.hasContent(vt)||this.setCellFromCodePoint(vt,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs)},pt.prototype.replaceCells=function(vt,yt,xt,dt){for(vt&&this.getWidth(vt-1)===2&&this.setCellFromCodePoint(vt-1,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs),yt<this.length&&this.getWidth(yt-1)===2&&this.setCellFromCodePoint(yt,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs);vt<yt&&vt<this.length;)this.setCell(vt++,xt)},pt.prototype.resize=function(vt,yt){if(vt!==this.length){if(vt>this.length){var xt=new Uint32Array(3*vt);this.length&&(3*vt<this._data.length?xt.set(this._data.subarray(0,3*vt)):xt.set(this._data)),this._data=xt;for(var dt=this.length;dt<vt;++dt)this.setCell(dt,yt)}else if(vt){(xt=new Uint32Array(3*vt)).set(this._data.subarray(0,3*vt)),this._data=xt;var ft=Object.keys(this._combined);for(dt=0;dt<ft.length;dt++){var ct=parseInt(ft[dt],10);ct>=vt&&delete this._combined[ct]}}else this._data=new Uint32Array(0),this._combined={};this.length=vt}},pt.prototype.fill=function(vt){this._combined={},this._extendedAttrs={};for(var yt=0;yt<this.length;++yt)this.setCell(yt,vt)},pt.prototype.copyFrom=function(vt){for(var yt in this.length!==vt.length?this._data=new Uint32Array(vt._data):this._data.set(vt._data),this.length=vt.length,this._combined={},vt._combined)this._combined[yt]=vt._combined[yt];for(var yt in this._extendedAttrs={},vt._extendedAttrs)this._extendedAttrs[yt]=vt._extendedAttrs[yt];this.isWrapped=vt.isWrapped},pt.prototype.clone=function(){var vt=new pt(0);for(var yt in vt._data=new Uint32Array(this._data),vt.length=this.length,this._combined)vt._combined[yt]=this._combined[yt];for(var yt in this._extendedAttrs)vt._extendedAttrs[yt]=this._extendedAttrs[yt];return vt.isWrapped=this.isWrapped,vt},pt.prototype.getTrimmedLength=function(){for(var vt=this.length-1;vt>=0;--vt)if(4194303&this._data[3*vt+0])return vt+(this._data[3*vt+0]>>22);return 0},pt.prototype.copyCellsFrom=function(vt,yt,xt,dt,ft){var ct=vt._data;if(ft)for(var lt=dt-1;lt>=0;lt--)for(var E=0;E<3;E++)this._data[3*(xt+lt)+E]=ct[3*(yt+lt)+E];else for(lt=0;lt<dt;lt++)for(E=0;E<3;E++)this._data[3*(xt+lt)+E]=ct[3*(yt+lt)+E];var z=Object.keys(vt._combined);for(E=0;E<z.length;E++){var ot=parseInt(z[E],10);ot>=yt&&(this._combined[ot-yt+xt]=vt._combined[ot])}},pt.prototype.translateToString=function(vt,yt,xt){vt===void 0&&(vt=!1),yt===void 0&&(yt=0),xt===void 0&&(xt=this.length),vt&&(xt=Math.min(xt,this.getTrimmedLength()));for(var dt="";yt<xt;){var ft=this._data[3*yt+0],ct=2097151&ft;dt+=2097152&ft?this._combined[yt]:ct?ie.stringFromCodePoint(ct):rt.WHITESPACE_CELL_CHAR,yt+=ft>>22||1}return dt},pt}();Rt.BufferLine=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.removeElementFromParent=void 0,Rt.removeElementFromParent=function(){for(var ie,rt=[],kt=0;kt<arguments.length;kt++)rt[kt]=arguments[kt];for(var Ct=0,St=rt;Ct<St.length;Ct++){var pt=St[Ct];(ie=pt==null?void 0:pt.parentElement)===null||ie===void 0||ie.removeChild(pt)}}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.tooMuchOutput=Rt.promptLabel=void 0,Rt.promptLabel="Terminal input",Rt.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Et,At){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_t,Mt){_t.__proto__=Mt}||function(_t,Mt){for(var jt in Mt)Mt.hasOwnProperty(jt)&&(_t[jt]=Mt[jt])})(Et,At)},function(Et,At){function _t(){this.constructor=Et}ie(Et,At),Et.prototype=At===null?Object.create(At):(_t.prototype=At.prototype,new _t)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.InputHandler=Rt.WindowsOptionsReportType=void 0;var kt,Ct=Ft(12),St=Ft(20),pt=Ft(39),vt=Ft(2),yt=Ft(15),xt=Ft(8),dt=Ft(16),ft=Ft(0),ct=Ft(3),lt=Ft(4),E=Ft(6),z=Ft(22),ot=Ft(24),it={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function at(Et,At){if(Et>24)return At.setWinLines||!1;switch(Et){case 1:return!!At.restoreWin;case 2:return!!At.minimizeWin;case 3:return!!At.setWinPosition;case 4:return!!At.setWinSizePixels;case 5:return!!At.raiseWin;case 6:return!!At.lowerWin;case 7:return!!At.refreshWin;case 8:return!!At.setWinSizeChars;case 9:return!!At.maximizeWin;case 10:return!!At.fullscreenWin;case 11:return!!At.getWinState;case 13:return!!At.getWinPosition;case 14:return!!At.getWinSizePixels;case 15:return!!At.getScreenSizePixels;case 16:return!!At.getCellSizePixels;case 18:return!!At.getWinSizeChars;case 19:return!!At.getScreenSizeChars;case 20:return!!At.getIconTitle;case 21:return!!At.getWinTitle;case 22:return!!At.pushTitle;case 23:return!!At.popTitle;case 24:return!!At.setWinLines}return!1}(function(Et){Et[Et.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",Et[Et.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(kt=Rt.WindowsOptionsReportType||(Rt.WindowsOptionsReportType={}));var ut=function(){function Et(At,_t,Mt,jt){this._bufferService=At,this._coreService=_t,this._logService=Mt,this._optionsService=jt,this._data=new Uint32Array(0)}return Et.prototype.hook=function(At){this._data=new Uint32Array(0)},Et.prototype.put=function(At,_t,Mt){this._data=yt.concat(this._data,At.subarray(_t,Mt))},Et.prototype.unhook=function(At){if(At){var _t=xt.utf32ToString(this._data);switch(this._data=new Uint32Array(0),_t){case'"q':return this._coreService.triggerDataEvent(Ct.C0.ESC+'P1$r0"q'+Ct.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(Ct.C0.ESC+'P1$r61;1"p'+Ct.C0.ESC+"\\");case"r":var Mt=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r"+Mt+Ct.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r0m"+Ct.C0.ESC+"\\");case" q":var jt={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return jt-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r"+jt+" q"+Ct.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",_t),this._coreService.triggerDataEvent(Ct.C0.ESC+"P0$r"+Ct.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},Et}(),wt=function(Et){function At(_t,Mt,jt,Lt,It,Ut,Xt,Gt,Yt){Yt===void 0&&(Yt=new pt.EscapeSequenceParser);var Ht=Et.call(this)||this;Ht._bufferService=_t,Ht._charsetService=Mt,Ht._coreService=jt,Ht._dirtyRowService=Lt,Ht._logService=It,Ht._optionsService=Ut,Ht._coreMouseService=Xt,Ht._unicodeService=Gt,Ht._parser=Yt,Ht._parseBuffer=new Uint32Array(4096),Ht._stringDecoder=new xt.StringToUtf32,Ht._utf8Decoder=new xt.Utf8ToUtf32,Ht._workCell=new lt.CellData,Ht._windowTitle="",Ht._iconName="",Ht._windowTitleStack=[],Ht._iconNameStack=[],Ht._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),Ht._eraseAttrDataInternal=dt.DEFAULT_ATTR_DATA.clone(),Ht._onRequestBell=new ft.EventEmitter,Ht._onRequestRefreshRows=new ft.EventEmitter,Ht._onRequestReset=new ft.EventEmitter,Ht._onRequestScroll=new ft.EventEmitter,Ht._onRequestSyncScrollBar=new ft.EventEmitter,Ht._onRequestWindowsOptionsReport=new ft.EventEmitter,Ht._onA11yChar=new ft.EventEmitter,Ht._onA11yTab=new ft.EventEmitter,Ht._onCursorMove=new ft.EventEmitter,Ht._onLineFeed=new ft.EventEmitter,Ht._onScroll=new ft.EventEmitter,Ht._onTitleChange=new ft.EventEmitter,Ht.register(Ht._parser),Ht._parser.setCsiHandlerFallback(function(Kt,re){Ht._logService.debug("Unknown CSI code: ",{identifier:Ht._parser.identToString(Kt),params:re.toArray()})}),Ht._parser.setEscHandlerFallback(function(Kt){Ht._logService.debug("Unknown ESC code: ",{identifier:Ht._parser.identToString(Kt)})}),Ht._parser.setExecuteHandlerFallback(function(Kt){Ht._logService.debug("Unknown EXECUTE code: ",{code:Kt})}),Ht._parser.setOscHandlerFallback(function(Kt,re,we){Ht._logService.debug("Unknown OSC code: ",{identifier:Kt,action:re,data:we})}),Ht._parser.setDcsHandlerFallback(function(Kt,re,we){re==="HOOK"&&(we=we.toArray()),Ht._logService.debug("Unknown DCS code: ",{identifier:Ht._parser.identToString(Kt),action:re,payload:we})}),Ht._parser.setPrintHandler(function(Kt,re,we){return Ht.print(Kt,re,we)}),Ht._parser.setCsiHandler({final:"@"},function(Kt){return Ht.insertChars(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"@"},function(Kt){return Ht.scrollLeft(Kt)}),Ht._parser.setCsiHandler({final:"A"},function(Kt){return Ht.cursorUp(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"A"},function(Kt){return Ht.scrollRight(Kt)}),Ht._parser.setCsiHandler({final:"B"},function(Kt){return Ht.cursorDown(Kt)}),Ht._parser.setCsiHandler({final:"C"},function(Kt){return Ht.cursorForward(Kt)}),Ht._parser.setCsiHandler({final:"D"},function(Kt){return Ht.cursorBackward(Kt)}),Ht._parser.setCsiHandler({final:"E"},function(Kt){return Ht.cursorNextLine(Kt)}),Ht._parser.setCsiHandler({final:"F"},function(Kt){return Ht.cursorPrecedingLine(Kt)}),Ht._parser.setCsiHandler({final:"G"},function(Kt){return Ht.cursorCharAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"H"},function(Kt){return Ht.cursorPosition(Kt)}),Ht._parser.setCsiHandler({final:"I"},function(Kt){return Ht.cursorForwardTab(Kt)}),Ht._parser.setCsiHandler({final:"J"},function(Kt){return Ht.eraseInDisplay(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"J"},function(Kt){return Ht.eraseInDisplay(Kt)}),Ht._parser.setCsiHandler({final:"K"},function(Kt){return Ht.eraseInLine(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"K"},function(Kt){return Ht.eraseInLine(Kt)}),Ht._parser.setCsiHandler({final:"L"},function(Kt){return Ht.insertLines(Kt)}),Ht._parser.setCsiHandler({final:"M"},function(Kt){return Ht.deleteLines(Kt)}),Ht._parser.setCsiHandler({final:"P"},function(Kt){return Ht.deleteChars(Kt)}),Ht._parser.setCsiHandler({final:"S"},function(Kt){return Ht.scrollUp(Kt)}),Ht._parser.setCsiHandler({final:"T"},function(Kt){return Ht.scrollDown(Kt)}),Ht._parser.setCsiHandler({final:"X"},function(Kt){return Ht.eraseChars(Kt)}),Ht._parser.setCsiHandler({final:"Z"},function(Kt){return Ht.cursorBackwardTab(Kt)}),Ht._parser.setCsiHandler({final:"`"},function(Kt){return Ht.charPosAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"a"},function(Kt){return Ht.hPositionRelative(Kt)}),Ht._parser.setCsiHandler({final:"b"},function(Kt){return Ht.repeatPrecedingCharacter(Kt)}),Ht._parser.setCsiHandler({final:"c"},function(Kt){return Ht.sendDeviceAttributesPrimary(Kt)}),Ht._parser.setCsiHandler({prefix:">",final:"c"},function(Kt){return Ht.sendDeviceAttributesSecondary(Kt)}),Ht._parser.setCsiHandler({final:"d"},function(Kt){return Ht.linePosAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"e"},function(Kt){return Ht.vPositionRelative(Kt)}),Ht._parser.setCsiHandler({final:"f"},function(Kt){return Ht.hVPosition(Kt)}),Ht._parser.setCsiHandler({final:"g"},function(Kt){return Ht.tabClear(Kt)}),Ht._parser.setCsiHandler({final:"h"},function(Kt){return Ht.setMode(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"h"},function(Kt){return Ht.setModePrivate(Kt)}),Ht._parser.setCsiHandler({final:"l"},function(Kt){return Ht.resetMode(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"l"},function(Kt){return Ht.resetModePrivate(Kt)}),Ht._parser.setCsiHandler({final:"m"},function(Kt){return Ht.charAttributes(Kt)}),Ht._parser.setCsiHandler({final:"n"},function(Kt){return Ht.deviceStatus(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"n"},function(Kt){return Ht.deviceStatusPrivate(Kt)}),Ht._parser.setCsiHandler({intermediates:"!",final:"p"},function(Kt){return Ht.softReset(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"q"},function(Kt){return Ht.setCursorStyle(Kt)}),Ht._parser.setCsiHandler({final:"r"},function(Kt){return Ht.setScrollRegion(Kt)}),Ht._parser.setCsiHandler({final:"s"},function(Kt){return Ht.saveCursor(Kt)}),Ht._parser.setCsiHandler({final:"t"},function(Kt){return Ht.windowOptions(Kt)}),Ht._parser.setCsiHandler({final:"u"},function(Kt){return Ht.restoreCursor(Kt)}),Ht._parser.setCsiHandler({intermediates:"'",final:"}"},function(Kt){return Ht.insertColumns(Kt)}),Ht._parser.setCsiHandler({intermediates:"'",final:"~"},function(Kt){return Ht.deleteColumns(Kt)}),Ht._parser.setExecuteHandler(Ct.C0.BEL,function(){return Ht.bell()}),Ht._parser.setExecuteHandler(Ct.C0.LF,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.VT,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.FF,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.CR,function(){return Ht.carriageReturn()}),Ht._parser.setExecuteHandler(Ct.C0.BS,function(){return Ht.backspace()}),Ht._parser.setExecuteHandler(Ct.C0.HT,function(){return Ht.tab()}),Ht._parser.setExecuteHandler(Ct.C0.SO,function(){return Ht.shiftOut()}),Ht._parser.setExecuteHandler(Ct.C0.SI,function(){return Ht.shiftIn()}),Ht._parser.setExecuteHandler(Ct.C1.IND,function(){return Ht.index()}),Ht._parser.setExecuteHandler(Ct.C1.NEL,function(){return Ht.nextLine()}),Ht._parser.setExecuteHandler(Ct.C1.HTS,function(){return Ht.tabSet()}),Ht._parser.setOscHandler(0,new z.OscHandler(function(Kt){Ht.setTitle(Kt),Ht.setIconName(Kt)})),Ht._parser.setOscHandler(1,new z.OscHandler(function(Kt){return Ht.setIconName(Kt)})),Ht._parser.setOscHandler(2,new z.OscHandler(function(Kt){return Ht.setTitle(Kt)})),Ht._parser.setEscHandler({final:"7"},function(){return Ht.saveCursor()}),Ht._parser.setEscHandler({final:"8"},function(){return Ht.restoreCursor()}),Ht._parser.setEscHandler({final:"D"},function(){return Ht.index()}),Ht._parser.setEscHandler({final:"E"},function(){return Ht.nextLine()}),Ht._parser.setEscHandler({final:"H"},function(){return Ht.tabSet()}),Ht._parser.setEscHandler({final:"M"},function(){return Ht.reverseIndex()}),Ht._parser.setEscHandler({final:"="},function(){return Ht.keypadApplicationMode()}),Ht._parser.setEscHandler({final:">"},function(){return Ht.keypadNumericMode()}),Ht._parser.setEscHandler({final:"c"},function(){return Ht.fullReset()}),Ht._parser.setEscHandler({final:"n"},function(){return Ht.setgLevel(2)}),Ht._parser.setEscHandler({final:"o"},function(){return Ht.setgLevel(3)}),Ht._parser.setEscHandler({final:"|"},function(){return Ht.setgLevel(3)}),Ht._parser.setEscHandler({final:"}"},function(){return Ht.setgLevel(2)}),Ht._parser.setEscHandler({final:"~"},function(){return Ht.setgLevel(1)}),Ht._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Ht.selectDefaultCharset()}),Ht._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Ht.selectDefaultCharset()});var ne=function(Kt){ae._parser.setEscHandler({intermediates:"(",final:Kt},function(){return Ht.selectCharset("("+Kt)}),ae._parser.setEscHandler({intermediates:")",final:Kt},function(){return Ht.selectCharset(")"+Kt)}),ae._parser.setEscHandler({intermediates:"*",final:Kt},function(){return Ht.selectCharset("*"+Kt)}),ae._parser.setEscHandler({intermediates:"+",final:Kt},function(){return Ht.selectCharset("+"+Kt)}),ae._parser.setEscHandler({intermediates:"-",final:Kt},function(){return Ht.selectCharset("-"+Kt)}),ae._parser.setEscHandler({intermediates:".",final:Kt},function(){return Ht.selectCharset("."+Kt)}),ae._parser.setEscHandler({intermediates:"/",final:Kt},function(){return Ht.selectCharset("/"+Kt)})},ae=this;for(var ve in St.CHARSETS)ne(ve);return Ht._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ht.screenAlignmentPattern()}),Ht._parser.setErrorHandler(function(Kt){return Ht._logService.error("Parsing error: ",Kt),Kt}),Ht._parser.setDcsHandler({intermediates:"$",final:"q"},new ut(Ht._bufferService,Ht._coreService,Ht._logService,Ht._optionsService)),Ht}return rt(At,Et),Object.defineProperty(At.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),At.prototype.dispose=function(){Et.prototype.dispose.call(this)},At.prototype.parse=function(_t){var Mt=this._bufferService.buffer,jt=Mt.x,Lt=Mt.y;if(this._logService.debug("parsing data",_t),this._parseBuffer.length<_t.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(_t.length,131072))),this._dirtyRowService.clearRange(),_t.length>131072)for(var It=0;It<_t.length;It+=131072){var Ut=It+131072<_t.length?It+131072:_t.length,Xt=typeof _t=="string"?this._stringDecoder.decode(_t.substring(It,Ut),this._parseBuffer):this._utf8Decoder.decode(_t.subarray(It,Ut),this._parseBuffer);this._parser.parse(this._parseBuffer,Xt)}else Xt=typeof _t=="string"?this._stringDecoder.decode(_t,this._parseBuffer):this._utf8Decoder.decode(_t,this._parseBuffer),this._parser.parse(this._parseBuffer,Xt);(Mt=this._bufferService.buffer).x===jt&&Mt.y===Lt||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},At.prototype.print=function(_t,Mt,jt){var Lt,It,Ut=this._bufferService.buffer,Xt=this._charsetService.charset,Gt=this._optionsService.options.screenReaderMode,Yt=this._bufferService.cols,Ht=this._coreService.decPrivateModes.wraparound,ne=this._coreService.modes.insertMode,ae=this._curAttrData,ve=Ut.lines.get(Ut.ybase+Ut.y);this._dirtyRowService.markDirty(Ut.y),Ut.x&&jt-Mt>0&&ve.getWidth(Ut.x-1)===2&&ve.setCellFromCodePoint(Ut.x-1,0,1,ae.fg,ae.bg,ae.extended);for(var Kt=Mt;Kt<jt;++Kt){if(Lt=_t[Kt],It=this._unicodeService.wcwidth(Lt),Lt<127&&Xt){var re=Xt[String.fromCharCode(Lt)];re&&(Lt=re.charCodeAt(0))}if(Gt&&this._onA11yChar.fire(xt.stringFromCodePoint(Lt)),It||!Ut.x){if(Ut.x+It-1>=Yt){if(Ht){for(;Ut.x<Yt;)ve.setCellFromCodePoint(Ut.x++,0,1,ae.fg,ae.bg,ae.extended);Ut.x=0,Ut.y++,Ut.y===Ut.scrollBottom+1?(Ut.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Ut.y>=this._bufferService.rows&&(Ut.y=this._bufferService.rows-1),Ut.lines.get(Ut.ybase+Ut.y).isWrapped=!0),ve=Ut.lines.get(Ut.ybase+Ut.y)}else if(Ut.x=Yt-1,It===2)continue}if(ne&&(ve.insertCells(Ut.x,It,Ut.getNullCell(ae),ae),ve.getWidth(Yt-1)===2&&ve.setCellFromCodePoint(Yt-1,ct.NULL_CELL_CODE,ct.NULL_CELL_WIDTH,ae.fg,ae.bg,ae.extended)),ve.setCellFromCodePoint(Ut.x++,Lt,It,ae.fg,ae.bg,ae.extended),It>0)for(;--It;)ve.setCellFromCodePoint(Ut.x++,0,0,ae.fg,ae.bg,ae.extended)}else ve.getWidth(Ut.x-1)?ve.addCodepointToCell(Ut.x-1,Lt):ve.addCodepointToCell(Ut.x-2,Lt)}jt-Mt>0&&(ve.loadCell(Ut.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Ut.x<Yt&&jt-Mt>0&&ve.getWidth(Ut.x)===0&&!ve.hasContent(Ut.x)&&ve.setCellFromCodePoint(Ut.x,0,1,ae.fg,ae.bg,ae.extended),this._dirtyRowService.markDirty(Ut.y)},At.prototype.addCsiHandler=function(_t,Mt){var jt=this;return _t.final!=="t"||_t.prefix||_t.intermediates?this._parser.addCsiHandler(_t,Mt):this._parser.addCsiHandler(_t,function(Lt){return!at(Lt.params[0],jt._optionsService.options.windowOptions)||Mt(Lt)})},At.prototype.addDcsHandler=function(_t,Mt){return this._parser.addDcsHandler(_t,new ot.DcsHandler(Mt))},At.prototype.addEscHandler=function(_t,Mt){return this._parser.addEscHandler(_t,Mt)},At.prototype.addOscHandler=function(_t,Mt){return this._parser.addOscHandler(_t,new z.OscHandler(Mt))},At.prototype.bell=function(){this._onRequestBell.fire()},At.prototype.lineFeed=function(){var _t=this._bufferService.buffer;this._dirtyRowService.markDirty(_t.y),this._optionsService.options.convertEol&&(_t.x=0),_t.y++,_t.y===_t.scrollBottom+1?(_t.y--,this._onRequestScroll.fire(this._eraseAttrData())):_t.y>=this._bufferService.rows&&(_t.y=this._bufferService.rows-1),_t.x>=this._bufferService.cols&&_t.x--,this._dirtyRowService.markDirty(_t.y),this._onLineFeed.fire()},At.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},At.prototype.backspace=function(){var _t,Mt=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Mt.x>0&&Mt.x--);if(this._restrictCursor(this._bufferService.cols),Mt.x>0)Mt.x--;else if(Mt.x===0&&Mt.y>Mt.scrollTop&&Mt.y<=Mt.scrollBottom&&(!((_t=Mt.lines.get(Mt.ybase+Mt.y))===null||_t===void 0)&&_t.isWrapped)){Mt.lines.get(Mt.ybase+Mt.y).isWrapped=!1,Mt.y--,Mt.x=this._bufferService.cols-1;var jt=Mt.lines.get(Mt.ybase+Mt.y);jt.hasWidth(Mt.x)&&!jt.hasContent(Mt.x)&&Mt.x--}this._restrictCursor()},At.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var _t=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-_t)}},At.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},At.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},At.prototype._restrictCursor=function(_t){_t===void 0&&(_t=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(_t,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype._setCursor=function(_t,Mt){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=_t,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Mt):(this._bufferService.buffer.x=_t,this._bufferService.buffer.y=Mt),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype._moveCursor=function(_t,Mt){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+_t,this._bufferService.buffer.y+Mt)},At.prototype.cursorUp=function(_t){var Mt=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Mt>=0?this._moveCursor(0,-Math.min(Mt,_t.params[0]||1)):this._moveCursor(0,-(_t.params[0]||1))},At.prototype.cursorDown=function(_t){var Mt=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Mt>=0?this._moveCursor(0,Math.min(Mt,_t.params[0]||1)):this._moveCursor(0,_t.params[0]||1)},At.prototype.cursorForward=function(_t){this._moveCursor(_t.params[0]||1,0)},At.prototype.cursorBackward=function(_t){this._moveCursor(-(_t.params[0]||1),0)},At.prototype.cursorNextLine=function(_t){this.cursorDown(_t),this._bufferService.buffer.x=0},At.prototype.cursorPrecedingLine=function(_t){this.cursorUp(_t),this._bufferService.buffer.x=0},At.prototype.cursorCharAbsolute=function(_t){this._setCursor((_t.params[0]||1)-1,this._bufferService.buffer.y)},At.prototype.cursorPosition=function(_t){this._setCursor(_t.length>=2?(_t.params[1]||1)-1:0,(_t.params[0]||1)-1)},At.prototype.charPosAbsolute=function(_t){this._setCursor((_t.params[0]||1)-1,this._bufferService.buffer.y)},At.prototype.hPositionRelative=function(_t){this._moveCursor(_t.params[0]||1,0)},At.prototype.linePosAbsolute=function(_t){this._setCursor(this._bufferService.buffer.x,(_t.params[0]||1)-1)},At.prototype.vPositionRelative=function(_t){this._moveCursor(0,_t.params[0]||1)},At.prototype.hVPosition=function(_t){this.cursorPosition(_t)},At.prototype.tabClear=function(_t){var Mt=_t.params[0];Mt===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Mt===3&&(this._bufferService.buffer.tabs={})},At.prototype.cursorForwardTab=function(_t){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Mt=_t.params[0]||1;Mt--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},At.prototype.cursorBackwardTab=function(_t){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Mt=_t.params[0]||1,jt=this._bufferService.buffer;Mt--;)jt.x=jt.prevStop()},At.prototype._eraseInBufferLine=function(_t,Mt,jt,Lt){Lt===void 0&&(Lt=!1);var It=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_t);It.replaceCells(Mt,jt,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Lt&&(It.isWrapped=!1)},At.prototype._resetBufferLine=function(_t){var Mt=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_t);Mt.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Mt.isWrapped=!1},At.prototype.eraseInDisplay=function(_t){var Mt;switch(this._restrictCursor(),_t.params[0]){case 0:for(Mt=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Mt),this._eraseInBufferLine(Mt++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Mt<this._bufferService.rows;Mt++)this._resetBufferLine(Mt);this._dirtyRowService.markDirty(Mt);break;case 1:for(Mt=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Mt),this._eraseInBufferLine(Mt,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Mt+1).isWrapped=!1);Mt--;)this._resetBufferLine(Mt);this._dirtyRowService.markDirty(0);break;case 2:for(Mt=this._bufferService.rows,this._dirtyRowService.markDirty(Mt-1);Mt--;)this._resetBufferLine(Mt);this._dirtyRowService.markDirty(0);break;case 3:var jt=this._bufferService.buffer.lines.length-this._bufferService.rows;jt>0&&(this._bufferService.buffer.lines.trimStart(jt),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-jt,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-jt,0),this._onScroll.fire(0))}},At.prototype.eraseInLine=function(_t){switch(this._restrictCursor(),_t.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype.insertLines=function(_t){this._restrictCursor();var Mt=_t.params[0]||1,jt=this._bufferService.buffer;if(!(jt.y>jt.scrollBottom||jt.y<jt.scrollTop)){for(var Lt=jt.ybase+jt.y,It=this._bufferService.rows-1-jt.scrollBottom,Ut=this._bufferService.rows-1+jt.ybase-It+1;Mt--;)jt.lines.splice(Ut-1,1),jt.lines.splice(Lt,0,jt.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(jt.y,jt.scrollBottom),jt.x=0}},At.prototype.deleteLines=function(_t){this._restrictCursor();var Mt=_t.params[0]||1,jt=this._bufferService.buffer;if(!(jt.y>jt.scrollBottom||jt.y<jt.scrollTop)){var Lt,It=jt.ybase+jt.y;for(Lt=this._bufferService.rows-1-jt.scrollBottom,Lt=this._bufferService.rows-1+jt.ybase-Lt;Mt--;)jt.lines.splice(It,1),jt.lines.splice(Lt,0,jt.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(jt.y,jt.scrollBottom),jt.x=0}},At.prototype.insertChars=function(_t){this._restrictCursor();var Mt=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Mt&&(Mt.insertCells(this._bufferService.buffer.x,_t.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},At.prototype.deleteChars=function(_t){this._restrictCursor();var Mt=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Mt&&(Mt.deleteCells(this._bufferService.buffer.x,_t.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},At.prototype.scrollUp=function(_t){for(var Mt=_t.params[0]||1,jt=this._bufferService.buffer;Mt--;)jt.lines.splice(jt.ybase+jt.scrollTop,1),jt.lines.splice(jt.ybase+jt.scrollBottom,0,jt.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(jt.scrollTop,jt.scrollBottom)},At.prototype.scrollDown=function(_t){for(var Mt=_t.params[0]||1,jt=this._bufferService.buffer;Mt--;)jt.lines.splice(jt.ybase+jt.scrollBottom,1),jt.lines.splice(jt.ybase+jt.scrollTop,0,jt.getBlankLine(dt.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(jt.scrollTop,jt.scrollBottom)},At.prototype.scrollLeft=function(_t){var Mt=this._bufferService.buffer;if(!(Mt.y>Mt.scrollBottom||Mt.y<Mt.scrollTop)){for(var jt=_t.params[0]||1,Lt=Mt.scrollTop;Lt<=Mt.scrollBottom;++Lt){var It=Mt.lines.get(Mt.ybase+Lt);It.deleteCells(0,jt,Mt.getNullCell(this._eraseAttrData()),this._eraseAttrData()),It.isWrapped=!1}this._dirtyRowService.markRangeDirty(Mt.scrollTop,Mt.scrollBottom)}},At.prototype.scrollRight=function(_t){var Mt=this._bufferService.buffer;if(!(Mt.y>Mt.scrollBottom||Mt.y<Mt.scrollTop)){for(var jt=_t.params[0]||1,Lt=Mt.scrollTop;Lt<=Mt.scrollBottom;++Lt){var It=Mt.lines.get(Mt.ybase+Lt);It.insertCells(0,jt,Mt.getNullCell(this._eraseAttrData()),this._eraseAttrData()),It.isWrapped=!1}this._dirtyRowService.markRangeDirty(Mt.scrollTop,Mt.scrollBottom)}},At.prototype.insertColumns=function(_t){var Mt=this._bufferService.buffer;if(!(Mt.y>Mt.scrollBottom||Mt.y<Mt.scrollTop)){for(var jt=_t.params[0]||1,Lt=Mt.scrollTop;Lt<=Mt.scrollBottom;++Lt){var It=this._bufferService.buffer.lines.get(Mt.ybase+Lt);It.insertCells(Mt.x,jt,Mt.getNullCell(this._eraseAttrData()),this._eraseAttrData()),It.isWrapped=!1}this._dirtyRowService.markRangeDirty(Mt.scrollTop,Mt.scrollBottom)}},At.prototype.deleteColumns=function(_t){var Mt=this._bufferService.buffer;if(!(Mt.y>Mt.scrollBottom||Mt.y<Mt.scrollTop)){for(var jt=_t.params[0]||1,Lt=Mt.scrollTop;Lt<=Mt.scrollBottom;++Lt){var It=Mt.lines.get(Mt.ybase+Lt);It.deleteCells(Mt.x,jt,Mt.getNullCell(this._eraseAttrData()),this._eraseAttrData()),It.isWrapped=!1}this._dirtyRowService.markRangeDirty(Mt.scrollTop,Mt.scrollBottom)}},At.prototype.eraseChars=function(_t){this._restrictCursor();var Mt=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Mt&&(Mt.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(_t.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},At.prototype.repeatPrecedingCharacter=function(_t){if(this._parser.precedingCodepoint){for(var Mt=_t.params[0]||1,jt=new Uint32Array(Mt),Lt=0;Lt<Mt;++Lt)jt[Lt]=this._parser.precedingCodepoint;this.print(jt,0,jt.length)}},At.prototype.sendDeviceAttributesPrimary=function(_t){_t.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[?6c"))},At.prototype.sendDeviceAttributesSecondary=function(_t){_t.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(_t.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[>83;40003;0c"))},At.prototype._is=function(_t){return(this._optionsService.options.termName+"").indexOf(_t)===0},At.prototype.setMode=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 4:this._coreService.modes.insertMode=!0}},At.prototype.setModePrivate=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,St.DEFAULT_CHARSET),this._charsetService.setgCharset(1,St.DEFAULT_CHARSET),this._charsetService.setgCharset(2,St.DEFAULT_CHARSET),this._charsetService.setgCharset(3,St.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},At.prototype.resetMode=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 4:this._coreService.modes.insertMode=!1}},At.prototype.resetModePrivate=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),_t.params[Mt]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},At.prototype._updateAttrColor=function(_t,Mt,jt,Lt,It){return Mt===2?(_t|=50331648,_t&=-16777216,_t|=E.AttributeData.fromColorRGB([jt,Lt,It])):Mt===5&&(_t&=-50331904,_t|=33554432|255&jt),_t},At.prototype._extractColor=function(_t,Mt,jt){var Lt=[0,0,-1,0,0,0],It=0,Ut=0;do{if(Lt[Ut+It]=_t.params[Mt+Ut],_t.hasSubParams(Mt+Ut)){var Xt=_t.getSubParams(Mt+Ut),Gt=0;do Lt[1]===5&&(It=1),Lt[Ut+Gt+1+It]=Xt[Gt];while(++Gt<Xt.length&&Gt+Ut+1+It<Lt.length);break}if(Lt[1]===5&&Ut+It>=2||Lt[1]===2&&Ut+It>=5)break;Lt[1]&&(It=1)}while(++Ut+Mt<_t.length&&Ut+It<Lt.length);for(Gt=2;Gt<Lt.length;++Gt)Lt[Gt]===-1&&(Lt[Gt]=0);switch(Lt[0]){case 38:jt.fg=this._updateAttrColor(jt.fg,Lt[1],Lt[3],Lt[4],Lt[5]);break;case 48:jt.bg=this._updateAttrColor(jt.bg,Lt[1],Lt[3],Lt[4],Lt[5]);break;case 58:jt.extended=jt.extended.clone(),jt.extended.underlineColor=this._updateAttrColor(jt.extended.underlineColor,Lt[1],Lt[3],Lt[4],Lt[5])}return Ut},At.prototype._processUnderline=function(_t,Mt){Mt.extended=Mt.extended.clone(),(!~_t||_t>5)&&(_t=1),Mt.extended.underlineStyle=_t,Mt.fg|=268435456,_t===0&&(Mt.fg&=-268435457),Mt.updateExtended()},At.prototype.charAttributes=function(_t){if(_t.length===1&&_t.params[0]===0)return this._curAttrData.fg=dt.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=dt.DEFAULT_ATTR_DATA.bg);for(var Mt,jt=_t.length,Lt=this._curAttrData,It=0;It<jt;It++)(Mt=_t.params[It])>=30&&Mt<=37?(Lt.fg&=-50331904,Lt.fg|=16777216|Mt-30):Mt>=40&&Mt<=47?(Lt.bg&=-50331904,Lt.bg|=16777216|Mt-40):Mt>=90&&Mt<=97?(Lt.fg&=-50331904,Lt.fg|=16777224|Mt-90):Mt>=100&&Mt<=107?(Lt.bg&=-50331904,Lt.bg|=16777224|Mt-100):Mt===0?(Lt.fg=dt.DEFAULT_ATTR_DATA.fg,Lt.bg=dt.DEFAULT_ATTR_DATA.bg):Mt===1?Lt.fg|=134217728:Mt===3?Lt.bg|=67108864:Mt===4?(Lt.fg|=268435456,this._processUnderline(_t.hasSubParams(It)?_t.getSubParams(It)[0]:1,Lt)):Mt===5?Lt.fg|=536870912:Mt===7?Lt.fg|=67108864:Mt===8?Lt.fg|=1073741824:Mt===2?Lt.bg|=134217728:Mt===21?this._processUnderline(2,Lt):Mt===22?(Lt.fg&=-134217729,Lt.bg&=-134217729):Mt===23?Lt.bg&=-67108865:Mt===24?Lt.fg&=-268435457:Mt===25?Lt.fg&=-536870913:Mt===27?Lt.fg&=-67108865:Mt===28?Lt.fg&=-1073741825:Mt===39?(Lt.fg&=-67108864,Lt.fg|=16777215&dt.DEFAULT_ATTR_DATA.fg):Mt===49?(Lt.bg&=-67108864,Lt.bg|=16777215&dt.DEFAULT_ATTR_DATA.bg):Mt===38||Mt===48||Mt===58?It+=this._extractColor(_t,It,Lt):Mt===59?(Lt.extended=Lt.extended.clone(),Lt.extended.underlineColor=-1,Lt.updateExtended()):Mt===100?(Lt.fg&=-67108864,Lt.fg|=16777215&dt.DEFAULT_ATTR_DATA.fg,Lt.bg&=-67108864,Lt.bg|=16777215&dt.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Mt)},At.prototype.deviceStatus=function(_t){switch(_t.params[0]){case 5:this._coreService.triggerDataEvent(Ct.C0.ESC+"[0n");break;case 6:var Mt=this._bufferService.buffer.y+1,jt=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Ct.C0.ESC+"["+Mt+";"+jt+"R")}},At.prototype.deviceStatusPrivate=function(_t){switch(_t.params[0]){case 6:var Mt=this._bufferService.buffer.y+1,jt=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Ct.C0.ESC+"[?"+Mt+";"+jt+"R")}},At.prototype.softReset=function(_t){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},At.prototype.setCursorStyle=function(_t){var Mt=_t.params[0]||1;switch(Mt){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var jt=Mt%2==1;this._optionsService.options.cursorBlink=jt},At.prototype.setScrollRegion=function(_t){var Mt,jt=_t.params[0]||1;(_t.length<2||(Mt=_t.params[1])>this._bufferService.rows||Mt===0)&&(Mt=this._bufferService.rows),Mt>jt&&(this._bufferService.buffer.scrollTop=jt-1,this._bufferService.buffer.scrollBottom=Mt-1,this._setCursor(0,0))},At.prototype.windowOptions=function(_t){if(at(_t.params[0],this._optionsService.options.windowOptions)){var Mt=_t.length>1?_t.params[1]:0;switch(_t.params[0]){case 14:Mt!==2&&this._onRequestWindowsOptionsReport.fire(kt.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(kt.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:Mt!==0&&Mt!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),Mt!==0&&Mt!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:Mt!==0&&Mt!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),Mt!==0&&Mt!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},At.prototype.saveCursor=function(_t){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},At.prototype.restoreCursor=function(_t){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},At.prototype.setTitle=function(_t){this._windowTitle=_t,this._onTitleChange.fire(_t)},At.prototype.setIconName=function(_t){this._iconName=_t},At.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},At.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},At.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},At.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,St.DEFAULT_CHARSET)},At.prototype.selectCharset=function(_t){_t.length===2?_t[0]!=="/"&&this._charsetService.setgCharset(it[_t[0]],St.CHARSETS[_t[1]]||St.DEFAULT_CHARSET):this.selectDefaultCharset()},At.prototype.index=function(){this._restrictCursor();var _t=this._bufferService.buffer;this._bufferService.buffer.y++,_t.y===_t.scrollBottom+1?(_t.y--,this._onRequestScroll.fire(this._eraseAttrData())):_t.y>=this._bufferService.rows&&(_t.y=this._bufferService.rows-1),this._restrictCursor()},At.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},At.prototype.reverseIndex=function(){this._restrictCursor();var _t=this._bufferService.buffer;if(_t.y===_t.scrollTop){var Mt=_t.scrollBottom-_t.scrollTop;_t.lines.shiftElements(_t.ybase+_t.y,Mt,1),_t.lines.set(_t.ybase+_t.y,_t.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(_t.scrollTop,_t.scrollBottom)}else _t.y--,this._restrictCursor()},At.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},At.prototype.reset=function(){this._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=dt.DEFAULT_ATTR_DATA.clone()},At.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},At.prototype.setgLevel=function(_t){this._charsetService.setgLevel(_t)},At.prototype.screenAlignmentPattern=function(){var _t=new lt.CellData;_t.content=1<<22|69,_t.fg=this._curAttrData.fg,_t.bg=this._curAttrData.bg;var Mt=this._bufferService.buffer;this._setCursor(0,0);for(var jt=0;jt<this._bufferService.rows;++jt){var Lt=Mt.ybase+Mt.y+jt,It=Mt.lines.get(Lt);It&&(It.fill(_t),It.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},At}(vt.Disposable);Rt.InputHandler=wt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DEFAULT_CHARSET=Rt.CHARSETS=void 0,Rt.CHARSETS={},Rt.DEFAULT_CHARSET=Rt.CHARSETS.B,Rt.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},Rt.CHARSETS.A={"#":"\xA3"},Rt.CHARSETS.B=void 0,Rt.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},Rt.CHARSETS.C=Rt.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},Rt.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},Rt.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},Rt.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},Rt.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},Rt.CHARSETS.E=Rt.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},Rt.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},Rt.CHARSETS.H=Rt.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},Rt.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Params=void 0;var ie=function(){function rt(kt,Ct){if(kt===void 0&&(kt=32),Ct===void 0&&(Ct=32),this.maxLength=kt,this.maxSubParamsLength=Ct,Ct>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(kt),this.length=0,this._subParams=new Int32Array(Ct),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(kt),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return rt.fromArray=function(kt){var Ct=new rt;if(!kt.length)return Ct;for(var St=kt[0]instanceof Array?1:0;St<kt.length;++St){var pt=kt[St];if(pt instanceof Array)for(var vt=0;vt<pt.length;++vt)Ct.addSubParam(pt[vt]);else Ct.addParam(pt)}return Ct},rt.prototype.clone=function(){var kt=new rt(this.maxLength,this.maxSubParamsLength);return kt.params.set(this.params),kt.length=this.length,kt._subParams.set(this._subParams),kt._subParamsLength=this._subParamsLength,kt._subParamsIdx.set(this._subParamsIdx),kt._rejectDigits=this._rejectDigits,kt._rejectSubDigits=this._rejectSubDigits,kt._digitIsSub=this._digitIsSub,kt},rt.prototype.toArray=function(){for(var kt=[],Ct=0;Ct<this.length;++Ct){kt.push(this.params[Ct]);var St=this._subParamsIdx[Ct]>>8,pt=255&this._subParamsIdx[Ct];pt-St>0&&kt.push(Array.prototype.slice.call(this._subParams,St,pt))}return kt},rt.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},rt.prototype.addParam=function(kt){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(kt<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=kt>2147483647?2147483647:kt}},rt.prototype.addSubParam=function(kt){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(kt<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=kt>2147483647?2147483647:kt,this._subParamsIdx[this.length-1]++}},rt.prototype.hasSubParams=function(kt){return(255&this._subParamsIdx[kt])-(this._subParamsIdx[kt]>>8)>0},rt.prototype.getSubParams=function(kt){var Ct=this._subParamsIdx[kt]>>8,St=255&this._subParamsIdx[kt];return St-Ct>0?this._subParams.subarray(Ct,St):null},rt.prototype.getSubParamsAll=function(){for(var kt={},Ct=0;Ct<this.length;++Ct){var St=this._subParamsIdx[Ct]>>8,pt=255&this._subParamsIdx[Ct];pt-St>0&&(kt[Ct]=this._subParams.slice(St,pt))}return kt},rt.prototype.addDigit=function(kt){var Ct;if(!(this._rejectDigits||!(Ct=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var St=this._digitIsSub?this._subParams:this.params,pt=St[Ct-1];St[Ct-1]=~pt?Math.min(10*pt+kt,2147483647):kt}},rt}();Rt.Params=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.OscHandler=Rt.OscParser=void 0;var ie=Ft(23),rt=Ft(8),kt=function(){function St(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return St.prototype.addHandler=function(pt,vt){this._handlers[pt]===void 0&&(this._handlers[pt]=[]);var yt=this._handlers[pt];return yt.push(vt),{dispose:function(){var xt=yt.indexOf(vt);xt!==-1&&yt.splice(xt,1)}}},St.prototype.setHandler=function(pt,vt){this._handlers[pt]=[vt]},St.prototype.clearHandler=function(pt){this._handlers[pt]&&delete this._handlers[pt]},St.prototype.setHandlerFallback=function(pt){this._handlerFb=pt},St.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},St.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},St.prototype._start=function(){var pt=this._handlers[this._id];if(pt)for(var vt=pt.length-1;vt>=0;vt--)pt[vt].start();else this._handlerFb(this._id,"START")},St.prototype._put=function(pt,vt,yt){var xt=this._handlers[this._id];if(xt)for(var dt=xt.length-1;dt>=0;dt--)xt[dt].put(pt,vt,yt);else this._handlerFb(this._id,"PUT",rt.utf32ToString(pt,vt,yt))},St.prototype._end=function(pt){var vt=this._handlers[this._id];if(vt){for(var yt=vt.length-1;yt>=0&&vt[yt].end(pt)===!1;yt--);for(yt--;yt>=0;yt--)vt[yt].end(!1)}else this._handlerFb(this._id,"END",pt)},St.prototype.start=function(){this.reset(),this._id=-1,this._state=1},St.prototype.put=function(pt,vt,yt){if(this._state!==3){if(this._state===1)for(;vt<yt;){var xt=pt[vt++];if(xt===59){this._state=2,this._start();break}if(xt<48||57<xt)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+xt-48}this._state===2&&yt-vt>0&&this._put(pt,vt,yt)}},St.prototype.end=function(pt){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(pt)),this._id=-1,this._state=0)},St}();Rt.OscParser=kt;var Ct=function(){function St(pt){this._handler=pt,this._data="",this._hitLimit=!1}return St.prototype.start=function(){this._data="",this._hitLimit=!1},St.prototype.put=function(pt,vt,yt){this._hitLimit||(this._data+=rt.utf32ToString(pt,vt,yt),this._data.length>ie.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},St.prototype.end=function(pt){var vt;return this._hitLimit?vt=!1:pt&&(vt=this._handler(this._data)),this._data="",this._hitLimit=!1,vt},St}();Rt.OscHandler=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.PAYLOAD_LIMIT=void 0,Rt.PAYLOAD_LIMIT=1e7},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DcsHandler=Rt.DcsParser=void 0;var ie=Ft(8),rt=Ft(21),kt=Ft(23),Ct=[],St=function(){function vt(){this._handlers=Object.create(null),this._active=Ct,this._ident=0,this._handlerFb=function(){}}return vt.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},vt.prototype.addHandler=function(yt,xt){this._handlers[yt]===void 0&&(this._handlers[yt]=[]);var dt=this._handlers[yt];return dt.push(xt),{dispose:function(){var ft=dt.indexOf(xt);ft!==-1&&dt.splice(ft,1)}}},vt.prototype.setHandler=function(yt,xt){this._handlers[yt]=[xt]},vt.prototype.clearHandler=function(yt){this._handlers[yt]&&delete this._handlers[yt]},vt.prototype.setHandlerFallback=function(yt){this._handlerFb=yt},vt.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=Ct,this._ident=0},vt.prototype.hook=function(yt,xt){if(this.reset(),this._ident=yt,this._active=this._handlers[yt]||Ct,this._active.length)for(var dt=this._active.length-1;dt>=0;dt--)this._active[dt].hook(xt);else this._handlerFb(this._ident,"HOOK",xt)},vt.prototype.put=function(yt,xt,dt){if(this._active.length)for(var ft=this._active.length-1;ft>=0;ft--)this._active[ft].put(yt,xt,dt);else this._handlerFb(this._ident,"PUT",ie.utf32ToString(yt,xt,dt))},vt.prototype.unhook=function(yt){if(this._active.length){for(var xt=this._active.length-1;xt>=0&&this._active[xt].unhook(yt)===!1;xt--);for(xt--;xt>=0;xt--)this._active[xt].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",yt);this._active=Ct,this._ident=0},vt}();Rt.DcsParser=St;var pt=function(){function vt(yt){this._handler=yt,this._data="",this._hitLimit=!1}return vt.prototype.hook=function(yt){this._params=yt.clone(),this._data="",this._hitLimit=!1},vt.prototype.put=function(yt,xt,dt){this._hitLimit||(this._data+=ie.utf32ToString(yt,xt,dt),this._data.length>kt.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},vt.prototype.unhook=function(yt){var xt;return this._hitLimit?xt=!1:yt&&(xt=this._handler(this._data,this._params||new rt.Params)),this._params=void 0,this._data="",this._hitLimit=!1,xt},vt}();Rt.DcsHandler=pt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.removeTerminalFromCache=Rt.acquireCharAtlas=void 0;var ie=Ft(26),rt=Ft(43),kt=[];Rt.acquireCharAtlas=function(Ct,St,pt,vt,yt){for(var xt=ie.generateConfig(vt,yt,Ct,pt),dt=0;dt<kt.length;dt++){var ft=(ct=kt[dt]).ownedBy.indexOf(St);if(ft>=0){if(ie.configEquals(ct.config,xt))return ct.atlas;ct.ownedBy.length===1?(ct.atlas.dispose(),kt.splice(dt,1)):ct.ownedBy.splice(ft,1);break}}for(dt=0;dt<kt.length;dt++){var ct=kt[dt];if(ie.configEquals(ct.config,xt))return ct.ownedBy.push(St),ct.atlas}var lt={atlas:new rt.DynamicCharAtlas(document,xt),config:xt,ownedBy:[St]};return kt.push(lt),lt.atlas},Rt.removeTerminalFromCache=function(Ct){for(var St=0;St<kt.length;St++){var pt=kt[St].ownedBy.indexOf(Ct);if(pt!==-1){kt[St].ownedBy.length===1?(kt[St].atlas.dispose(),kt.splice(St,1)):kt[St].ownedBy.splice(pt,1);break}}}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.is256Color=Rt.configEquals=Rt.generateConfig=void 0;var ie=Ft(3);Rt.generateConfig=function(rt,kt,Ct,St){var pt={foreground:St.foreground,background:St.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:St.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:rt,scaledCharHeight:kt,fontFamily:Ct.fontFamily,fontSize:Ct.fontSize,fontWeight:Ct.fontWeight,fontWeightBold:Ct.fontWeightBold,allowTransparency:Ct.allowTransparency,colors:pt}},Rt.configEquals=function(rt,kt){for(var Ct=0;Ct<rt.colors.ansi.length;Ct++)if(rt.colors.ansi[Ct].rgba!==kt.colors.ansi[Ct].rgba)return!1;return rt.devicePixelRatio===kt.devicePixelRatio&&rt.fontFamily===kt.fontFamily&&rt.fontSize===kt.fontSize&&rt.fontWeight===kt.fontWeight&&rt.fontWeightBold===kt.fontWeightBold&&rt.allowTransparency===kt.allowTransparency&&rt.scaledCharWidth===kt.scaledCharWidth&&rt.scaledCharHeight===kt.scaledCharHeight&&rt.colors.foreground===kt.colors.foreground&&rt.colors.background===kt.colors.background},Rt.is256Color=function(rt){return rt<ie.DEFAULT_COLOR}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.ColorManager=Rt.DEFAULT_ANSI_COLORS=void 0;var ie=Ft(10),rt=Ft(45),kt=ie.css.toColor("#ffffff"),Ct=ie.css.toColor("#000000"),St=ie.css.toColor("#ffffff"),pt=ie.css.toColor("#000000"),vt={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};Rt.DEFAULT_ANSI_COLORS=function(){for(var xt=[ie.css.toColor("#2e3436"),ie.css.toColor("#cc0000"),ie.css.toColor("#4e9a06"),ie.css.toColor("#c4a000"),ie.css.toColor("#3465a4"),ie.css.toColor("#75507b"),ie.css.toColor("#06989a"),ie.css.toColor("#d3d7cf"),ie.css.toColor("#555753"),ie.css.toColor("#ef2929"),ie.css.toColor("#8ae234"),ie.css.toColor("#fce94f"),ie.css.toColor("#729fcf"),ie.css.toColor("#ad7fa8"),ie.css.toColor("#34e2e2"),ie.css.toColor("#eeeeec")],dt=[0,95,135,175,215,255],ft=0;ft<216;ft++){var ct=dt[ft/36%6|0],lt=dt[ft/6%6|0],E=dt[ft%6];xt.push({css:ie.channels.toCss(ct,lt,E),rgba:ie.channels.toRgba(ct,lt,E)})}for(ft=0;ft<24;ft++){var z=8+10*ft;xt.push({css:ie.channels.toCss(z,z,z),rgba:ie.channels.toRgba(z,z,z)})}return xt}();var yt=function(){function xt(dt,ft){this.allowTransparency=ft;var ct=dt.createElement("canvas");ct.width=1,ct.height=1;var lt=ct.getContext("2d");if(!lt)throw new Error("Could not get rendering context");this._ctx=lt,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new rt.ColorContrastCache,this.colors={foreground:kt,background:Ct,cursor:St,cursorAccent:pt,selectionTransparent:vt,selectionOpaque:ie.color.blend(Ct,vt),ansi:Rt.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return xt.prototype.onOptionsChange=function(dt){dt==="minimumContrastRatio"&&this._contrastCache.clear()},xt.prototype.setTheme=function(dt){dt===void 0&&(dt={}),this.colors.foreground=this._parseColor(dt.foreground,kt),this.colors.background=this._parseColor(dt.background,Ct),this.colors.cursor=this._parseColor(dt.cursor,St,!0),this.colors.cursorAccent=this._parseColor(dt.cursorAccent,pt,!0),this.colors.selectionTransparent=this._parseColor(dt.selection,vt,!0),this.colors.selectionOpaque=ie.color.blend(this.colors.background,this.colors.selectionTransparent),ie.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=ie.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(dt.black,Rt.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(dt.red,Rt.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(dt.green,Rt.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(dt.yellow,Rt.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(dt.blue,Rt.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(dt.magenta,Rt.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(dt.cyan,Rt.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(dt.white,Rt.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(dt.brightBlack,Rt.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(dt.brightRed,Rt.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(dt.brightGreen,Rt.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(dt.brightYellow,Rt.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(dt.brightBlue,Rt.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(dt.brightMagenta,Rt.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(dt.brightCyan,Rt.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(dt.brightWhite,Rt.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},xt.prototype._parseColor=function(dt,ft,ct){if(ct===void 0&&(ct=this.allowTransparency),dt===void 0)return ft;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=dt,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+dt+" is invalid using fallback "+ft.css),ft;this._ctx.fillRect(0,0,1,1);var lt=this._ctx.getImageData(0,0,1,1).data;if(lt[3]!==255){if(!ct)return console.warn("Color: "+dt+" is using transparency, but allowTransparency is false. Using fallback "+ft.css+"."),ft;var E=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(wt){return Number(wt)}),z=E[0],ot=E[1],it=E[2],at=E[3],ut=Math.round(255*at);return{rgba:ie.channels.toRgba(z,ot,it,ut),css:dt}}return{css:this._ctx.fillStyle,rgba:ie.channels.toRgba(lt[0],lt[1],lt[2],lt[3])}},xt}();Rt.ColorManager=yt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.throwIfFalsy=void 0,Rt.throwIfFalsy=function(ie){if(!ie)throw new Error("value must not be falsy");return ie}},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(yt,xt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dt,ft){dt.__proto__=ft}||function(dt,ft){for(var ct in ft)ft.hasOwnProperty(ct)&&(dt[ct]=ft[ct])})(yt,xt)},function(yt,xt){function dt(){this.constructor=yt}ie(yt,xt),yt.prototype=xt===null?Object.create(xt):(dt.prototype=xt.prototype,new dt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CharacterJoinerRegistry=Rt.JoinedCellData=void 0;var kt=Ft(6),Ct=Ft(3),St=Ft(4),pt=function(yt){function xt(dt,ft,ct){var lt=yt.call(this)||this;return lt.content=0,lt.combinedData="",lt.fg=dt.fg,lt.bg=dt.bg,lt.combinedData=ft,lt._width=ct,lt}return rt(xt,yt),xt.prototype.isCombined=function(){return 2097152},xt.prototype.getWidth=function(){return this._width},xt.prototype.getChars=function(){return this.combinedData},xt.prototype.getCode=function(){return 2097151},xt.prototype.setFromCharData=function(dt){throw new Error("not implemented")},xt.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},xt}(kt.AttributeData);Rt.JoinedCellData=pt;var vt=function(){function yt(xt){this._bufferService=xt,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new St.CellData}return yt.prototype.registerCharacterJoiner=function(xt){var dt={id:this._nextCharacterJoinerId++,handler:xt};return this._characterJoiners.push(dt),dt.id},yt.prototype.deregisterCharacterJoiner=function(xt){for(var dt=0;dt<this._characterJoiners.length;dt++)if(this._characterJoiners[dt].id===xt)return this._characterJoiners.splice(dt,1),!0;return!1},yt.prototype.getJoinedCharacters=function(xt){if(this._characterJoiners.length===0)return[];var dt=this._bufferService.buffer.lines.get(xt);if(!dt||dt.length===0)return[];for(var ft=[],ct=dt.translateToString(!0),lt=0,E=0,z=0,ot=dt.getFg(0),it=dt.getBg(0),at=0;at<dt.getTrimmedLength();at++)if(dt.loadCell(at,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==ot||this._workCell.bg!==it){if(at-lt>1)for(var ut=this._getJoinedRanges(ct,z,E,dt,lt),wt=0;wt<ut.length;wt++)ft.push(ut[wt]);lt=at,z=E,ot=this._workCell.fg,it=this._workCell.bg}E+=this._workCell.getChars().length||Ct.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-lt>1)for(ut=this._getJoinedRanges(ct,z,E,dt,lt),wt=0;wt<ut.length;wt++)ft.push(ut[wt]);return ft},yt.prototype._getJoinedRanges=function(xt,dt,ft,ct,lt){for(var E=xt.substring(dt,ft),z=this._characterJoiners[0].handler(E),ot=1;ot<this._characterJoiners.length;ot++)for(var it=this._characterJoiners[ot].handler(E),at=0;at<it.length;at++)yt._mergeRanges(z,it[at]);return this._stringRangesToCellRanges(z,ct,lt),z},yt.prototype._stringRangesToCellRanges=function(xt,dt,ft){var ct=0,lt=!1,E=0,z=xt[ct];if(z){for(var ot=ft;ot<this._bufferService.cols;ot++){var it=dt.getWidth(ot),at=dt.getString(ot).length||Ct.WHITESPACE_CELL_CHAR.length;if(it!==0){if(!lt&&z[0]<=E&&(z[0]=ot,lt=!0),z[1]<=E){if(z[1]=ot,!(z=xt[++ct]))break;z[0]<=E?(z[0]=ot,lt=!0):lt=!1}E+=at}}z&&(z[1]=this._bufferService.cols)}},yt._mergeRanges=function(xt,dt){for(var ft=!1,ct=0;ct<xt.length;ct++){var lt=xt[ct];if(ft){if(dt[1]<=lt[0])return xt[ct-1][1]=dt[1],xt;if(dt[1]<=lt[1])return xt[ct-1][1]=Math.max(dt[1],lt[1]),xt.splice(ct,1),xt;xt.splice(ct,1),ct--}else{if(dt[1]<=lt[0])return xt.splice(ct,0,dt),xt;if(dt[1]<=lt[1])return lt[0]=Math.min(dt[0],lt[0]),xt;dt[0]<lt[1]&&(lt[0]=Math.min(dt[0],lt[0]),ft=!0)}}return ft?xt[xt.length-1][1]=dt[1]:xt.push(dt),xt},yt}();Rt.CharacterJoinerRegistry=vt},function(Ke,Rt,Ft){"use strict";function ie(rt,kt){var Ct=kt.getBoundingClientRect();return[rt.clientX-Ct.left,rt.clientY-Ct.top]}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.getRawByteCoords=Rt.getCoords=Rt.getCoordsRelativeToElement=void 0,Rt.getCoordsRelativeToElement=ie,Rt.getCoords=function(rt,kt,Ct,St,pt,vt,yt,xt){if(pt){var dt=ie(rt,kt);if(dt)return dt[0]=Math.ceil((dt[0]+(xt?vt/2:0))/vt),dt[1]=Math.ceil(dt[1]/yt),dt[0]=Math.min(Math.max(dt[0],1),Ct+(xt?1:0)),dt[1]=Math.min(Math.max(dt[1],1),St),dt}},Rt.getRawByteCoords=function(rt){if(rt)return{x:rt[0]+32,y:rt[1]+32}}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.RenderDebouncer=void 0;var ie=function(){function rt(kt){this._renderCallback=kt}return rt.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},rt.prototype.refresh=function(kt,Ct,St){var pt=this;this._rowCount=St,kt=kt!==void 0?kt:0,Ct=Ct!==void 0?Ct:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,kt):kt,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,Ct):Ct,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return pt._innerRefresh()}))},rt.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var kt=Math.max(this._rowStart,0),Ct=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(kt,Ct)}},rt}();Rt.RenderDebouncer=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Ct,St){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pt,vt){pt.__proto__=vt}||function(pt,vt){for(var yt in vt)vt.hasOwnProperty(yt)&&(pt[yt]=vt[yt])})(Ct,St)},function(Ct,St){function pt(){this.constructor=Ct}ie(Ct,St),Ct.prototype=St===null?Object.create(St):(pt.prototype=St.prototype,new pt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.ScreenDprMonitor=void 0;var kt=function(Ct){function St(){var pt=Ct!==null&&Ct.apply(this,arguments)||this;return pt._currentDevicePixelRatio=window.devicePixelRatio,pt}return rt(St,Ct),St.prototype.setListener=function(pt){var vt=this;this._listener&&this.clearListener(),this._listener=pt,this._outerListener=function(){vt._listener&&(vt._listener(window.devicePixelRatio,vt._currentDevicePixelRatio),vt._updateDpr())},this._updateDpr()},St.prototype.dispose=function(){Ct.prototype.dispose.call(this),this.clearListener()},St.prototype._updateDpr=function(){var pt;this._outerListener&&((pt=this._resolutionMediaMatchList)===null||pt===void 0||pt.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},St.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},St}(Ft(2).Disposable);Rt.ScreenDprMonitor=kt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.clone=void 0,Rt.clone=function ie(rt,kt){if(kt===void 0&&(kt=5),typeof rt!="object")return rt;var Ct=Array.isArray(rt)?[]:{};for(var St in rt)Ct[St]=kt<=1?rt[St]:rt[St]?ie(rt[St],kt-1):rt[St];return Ct}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Terminal=void 0;var ie=Ft(4),rt=Ft(35),kt=Ft(18),Ct=Ft(0),St=Ft(83),pt=function(){function ct(lt){this._core=new rt.Terminal(lt),this._addonManager=new St.AddonManager}return ct.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(ct.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new dt(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"unicode",{get:function(){return this._checkProposedApi(),new ft(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"buffer",{get:function(){return this._checkProposedApi(),new yt(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),ct.prototype.blur=function(){this._core.blur()},ct.prototype.focus=function(){this._core.focus()},ct.prototype.resize=function(lt,E){this._verifyIntegers(lt,E),this._core.resize(lt,E)},ct.prototype.open=function(lt){this._core.open(lt)},ct.prototype.attachCustomKeyEventHandler=function(lt){this._core.attachCustomKeyEventHandler(lt)},ct.prototype.registerLinkMatcher=function(lt,E,z){return this._checkProposedApi(),this._core.registerLinkMatcher(lt,E,z)},ct.prototype.deregisterLinkMatcher=function(lt){this._checkProposedApi(),this._core.deregisterLinkMatcher(lt)},ct.prototype.registerLinkProvider=function(lt){return this._checkProposedApi(),this._core.registerLinkProvider(lt)},ct.prototype.registerCharacterJoiner=function(lt){return this._checkProposedApi(),this._core.registerCharacterJoiner(lt)},ct.prototype.deregisterCharacterJoiner=function(lt){this._checkProposedApi(),this._core.deregisterCharacterJoiner(lt)},ct.prototype.registerMarker=function(lt){return this._checkProposedApi(),this._verifyIntegers(lt),this._core.addMarker(lt)},ct.prototype.addMarker=function(lt){return this.registerMarker(lt)},ct.prototype.hasSelection=function(){return this._core.hasSelection()},ct.prototype.select=function(lt,E,z){this._verifyIntegers(lt,E,z),this._core.select(lt,E,z)},ct.prototype.getSelection=function(){return this._core.getSelection()},ct.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},ct.prototype.clearSelection=function(){this._core.clearSelection()},ct.prototype.selectAll=function(){this._core.selectAll()},ct.prototype.selectLines=function(lt,E){this._verifyIntegers(lt,E),this._core.selectLines(lt,E)},ct.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},ct.prototype.scrollLines=function(lt){this._verifyIntegers(lt),this._core.scrollLines(lt)},ct.prototype.scrollPages=function(lt){this._verifyIntegers(lt),this._core.scrollPages(lt)},ct.prototype.scrollToTop=function(){this._core.scrollToTop()},ct.prototype.scrollToBottom=function(){this._core.scrollToBottom()},ct.prototype.scrollToLine=function(lt){this._verifyIntegers(lt),this._core.scrollToLine(lt)},ct.prototype.clear=function(){this._core.clear()},ct.prototype.write=function(lt,E){this._core.write(lt,E)},ct.prototype.writeUtf8=function(lt,E){this._core.write(lt,E)},ct.prototype.writeln=function(lt,E){this._core.write(lt),this._core.write(`\r
`,E)},ct.prototype.paste=function(lt){this._core.paste(lt)},ct.prototype.getOption=function(lt){return this._core.optionsService.getOption(lt)},ct.prototype.setOption=function(lt,E){this._core.optionsService.setOption(lt,E)},ct.prototype.refresh=function(lt,E){this._verifyIntegers(lt,E),this._core.refresh(lt,E)},ct.prototype.reset=function(){this._core.reset()},ct.prototype.loadAddon=function(lt){return this._addonManager.loadAddon(this,lt)},Object.defineProperty(ct,"strings",{get:function(){return kt},enumerable:!1,configurable:!0}),ct.prototype._verifyIntegers=function(){for(var lt=[],E=0;E<arguments.length;E++)lt[E]=arguments[E];for(var z=0,ot=lt;z<ot.length;z++){var it=ot[z];if(it===1/0||isNaN(it)||it%1!=0)throw new Error("This API only accepts integers")}},ct}();Rt.Terminal=pt;var vt=function(){function ct(lt,E){this._buffer=lt,this.type=E}return ct.prototype.init=function(lt){return this._buffer=lt,this},Object.defineProperty(ct.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),ct.prototype.getLine=function(lt){var E=this._buffer.lines.get(lt);if(E)return new xt(E)},ct.prototype.getNullCell=function(){return new ie.CellData},ct}(),yt=function(){function ct(lt){var E=this;this._buffers=lt,this._onBufferChange=new Ct.EventEmitter,this._normal=new vt(this._buffers.normal,"normal"),this._alternate=new vt(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return E._onBufferChange.fire(E.active)})}return Object.defineProperty(ct.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),ct}(),xt=function(){function ct(lt){this._line=lt}return Object.defineProperty(ct.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),ct.prototype.getCell=function(lt,E){if(!(lt<0||lt>=this._line.length))return E?(this._line.loadCell(lt,E),E):this._line.loadCell(lt,new ie.CellData)},ct.prototype.translateToString=function(lt,E,z){return this._line.translateToString(lt,E,z)},ct}(),dt=function(){function ct(lt){this._core=lt}return ct.prototype.registerCsiHandler=function(lt,E){return this._core.addCsiHandler(lt,function(z){return E(z.toArray())})},ct.prototype.addCsiHandler=function(lt,E){return this.registerCsiHandler(lt,E)},ct.prototype.registerDcsHandler=function(lt,E){return this._core.addDcsHandler(lt,function(z,ot){return E(z,ot.toArray())})},ct.prototype.addDcsHandler=function(lt,E){return this.registerDcsHandler(lt,E)},ct.prototype.registerEscHandler=function(lt,E){return this._core.addEscHandler(lt,E)},ct.prototype.addEscHandler=function(lt,E){return this.registerEscHandler(lt,E)},ct.prototype.registerOscHandler=function(lt,E){return this._core.addOscHandler(lt,E)},ct.prototype.addOscHandler=function(lt,E){return this.registerOscHandler(lt,E)},ct}(),ft=function(){function ct(lt){this._core=lt}return ct.prototype.register=function(lt){this._core.unicodeService.register(lt)},Object.defineProperty(ct.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(lt){this._core.unicodeService.activeVersion=lt},enumerable:!1,configurable:!0}),ct}()},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Yt,Ht){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ae){ne.__proto__=ae}||function(ne,ae){for(var ve in ae)ae.hasOwnProperty(ve)&&(ne[ve]=ae[ve])})(Yt,Ht)},function(Yt,Ht){function ne(){this.constructor=Yt}ie(Yt,Ht),Yt.prototype=Ht===null?Object.create(Ht):(ne.prototype=Ht.prototype,new ne)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Terminal=void 0;var kt=Ft(36),Ct=Ft(37),St=Ft(38),pt=Ft(12),vt=Ft(19),yt=Ft(40),xt=Ft(50),dt=Ft(51),ft=Ft(11),ct=Ft(7),lt=Ft(18),E=Ft(54),z=Ft(55),ot=Ft(56),it=Ft(57),at=Ft(59),ut=Ft(0),wt=Ft(16),Et=Ft(27),At=Ft(60),_t=Ft(5),Mt=Ft(61),jt=Ft(62),Lt=Ft(63),It=Ft(64),Ut=Ft(65),Xt=typeof window!="undefined"?window.document:null,Gt=function(Yt){function Ht(ne){ne===void 0&&(ne={});var ae=Yt.call(this,ne)||this;return ae.browser=ft,ae._keyDownHandled=!1,ae._onCursorMove=new ut.EventEmitter,ae._onKey=new ut.EventEmitter,ae._onRender=new ut.EventEmitter,ae._onSelectionChange=new ut.EventEmitter,ae._onTitleChange=new ut.EventEmitter,ae._onFocus=new ut.EventEmitter,ae._onBlur=new ut.EventEmitter,ae._onA11yCharEmitter=new ut.EventEmitter,ae._onA11yTabEmitter=new ut.EventEmitter,ae._setup(),ae.linkifier=ae._instantiationService.createInstance(xt.Linkifier),ae.linkifier2=ae.register(ae._instantiationService.createInstance(Lt.Linkifier2)),ae.register(ae._inputHandler.onRequestBell(function(){return ae.bell()})),ae.register(ae._inputHandler.onRequestRefreshRows(function(ve,Kt){return ae.refresh(ve,Kt)})),ae.register(ae._inputHandler.onRequestReset(function(){return ae.reset()})),ae.register(ae._inputHandler.onRequestScroll(function(ve,Kt){return ae.scroll(ve,Kt||void 0)})),ae.register(ae._inputHandler.onRequestWindowsOptionsReport(function(ve){return ae._reportWindowsOptions(ve)})),ae.register(ut.forwardEvent(ae._inputHandler.onCursorMove,ae._onCursorMove)),ae.register(ut.forwardEvent(ae._inputHandler.onTitleChange,ae._onTitleChange)),ae.register(ut.forwardEvent(ae._inputHandler.onA11yChar,ae._onA11yCharEmitter)),ae.register(ut.forwardEvent(ae._inputHandler.onA11yTab,ae._onA11yTabEmitter)),ae.register(ae._bufferService.onResize(function(ve){return ae._afterResize(ve.cols,ve.rows)})),ae}return rt(Ht,Yt),Object.defineProperty(Ht.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ht.prototype.dispose=function(){var ne,ae,ve;this._isDisposed||(Yt.prototype.dispose.call(this),(ne=this._renderService)===null||ne===void 0||ne.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(ve=(ae=this.element)===null||ae===void 0?void 0:ae.parentNode)===null||ve===void 0||ve.removeChild(this.element))},Ht.prototype._setup=function(){Yt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ht.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ht.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ht.prototype._updateOptions=function(ne){var ae,ve,Kt,re;switch(Yt.prototype._updateOptions.call(this,ne),ne){case"fontFamily":case"fontSize":(ae=this._renderService)===null||ae===void 0||ae.clear(),(ve=this._charSizeService)===null||ve===void 0||ve.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Kt=this.viewport)===null||Kt===void 0||Kt.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new ot.AccessibilityManager(this,this._renderService)):((re=this._accessibilityManager)===null||re===void 0||re.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ht.prototype._onTextAreaFocus=function(ne){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(pt.C0.ESC+"[I"),this.updateCursorStyle(ne),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ht.prototype.blur=function(){var ne;return(ne=this.textarea)===null||ne===void 0?void 0:ne.blur()},Ht.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(pt.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ht.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var ne=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),ae=this._bufferService.buffer.y*ne,ve=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=ve+"px",this.textarea.style.top=ae+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=ne+"px",this.textarea.style.lineHeight=ne+"px",this.textarea.style.zIndex="-5"}},Ht.prototype._initGlobal=function(){var ne=this;this._bindKeys(),this.register(ct.addDisposableDomListener(this.element,"copy",function(ve){ne.hasSelection()&&St.copyHandler(ve,ne._selectionService)}));var ae=function(ve){return St.handlePasteEvent(ve,ne.textarea,ne._coreService)};this.register(ct.addDisposableDomListener(this.textarea,"paste",ae)),this.register(ct.addDisposableDomListener(this.element,"paste",ae)),ft.isFirefox?this.register(ct.addDisposableDomListener(this.element,"mousedown",function(ve){ve.button===2&&St.rightClickHandler(ve,ne.textarea,ne.screenElement,ne._selectionService,ne.options.rightClickSelectsWord)})):this.register(ct.addDisposableDomListener(this.element,"contextmenu",function(ve){St.rightClickHandler(ve,ne.textarea,ne.screenElement,ne._selectionService,ne.options.rightClickSelectsWord)})),ft.isLinux&&this.register(ct.addDisposableDomListener(this.element,"auxclick",function(ve){ve.button===1&&St.moveTextAreaUnderMouseCursor(ve,ne.textarea,ne.screenElement)}))},Ht.prototype._bindKeys=function(){var ne=this;this.register(ct.addDisposableDomListener(this.textarea,"keyup",function(ae){return ne._keyUp(ae)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"keydown",function(ae){return ne._keyDown(ae)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"keypress",function(ae){return ne._keyPress(ae)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"compositionstart",function(){return ne._compositionHelper.compositionstart()})),this.register(ct.addDisposableDomListener(this.textarea,"compositionupdate",function(ae){return ne._compositionHelper.compositionupdate(ae)})),this.register(ct.addDisposableDomListener(this.textarea,"compositionend",function(){return ne._compositionHelper.compositionend()})),this.register(this.onRender(function(){return ne._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(ae){return ne._queueLinkification(ae.start,ae.end)}))},Ht.prototype.open=function(ne){var ae=this;if(!ne)throw new Error("Terminal requires a parent element.");Xt.body.contains(ne)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=ne.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),ne.appendChild(this.element);var ve=Xt.createDocumentFragment();this._viewportElement=Xt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ve.appendChild(this._viewportElement),this._viewportScrollArea=Xt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Xt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Xt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ve.appendChild(this.screenElement),this.textarea=Xt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",lt.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(ct.addDisposableDomListener(this.textarea,"focus",function(we){return ae._onTextAreaFocus(we)})),this.register(ct.addDisposableDomListener(this.textarea,"blur",function(){return ae._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Kt=this._instantiationService.createInstance(It.CoreBrowserService,this.textarea);this._instantiationService.setService(_t.ICoreBrowserService,Kt),this._charSizeService=this._instantiationService.createInstance(Mt.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(_t.ICharSizeService,this._charSizeService),this._compositionView=Xt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(kt.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ve),this._theme=this.options.theme||this._theme,this._colorManager=new Et.ColorManager(Xt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(we){return ae._colorManager.onOptionsChange(we)})),this._colorManager.setTheme(this._theme);var re=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(At.RenderService,re,this.rows,this.screenElement)),this._instantiationService.setService(_t.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(we){return ae._onRender.fire(we)})),this.onResize(function(we){return ae._renderService.resize(we.cols,we.rows)}),this._soundService=this._instantiationService.createInstance(E.SoundService),this._instantiationService.setService(_t.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(jt.MouseService),this._instantiationService.setService(_t.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(Ct.Viewport,function(we,Me){return ae.scrollLines(we,Me)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return ae.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){ae._renderService.onCursorMove(),ae._syncTextArea()})),this.register(this.onResize(function(){return ae._renderService.onResize(ae.cols,ae.rows)})),this.register(this.onBlur(function(){return ae._renderService.onBlur()})),this.register(this.onFocus(function(){return ae._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return ae.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(dt.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(_t.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(we){return ae.scrollLines(we.amount,we.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return ae._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(we){return ae._renderService.onSelectionChanged(we.start,we.end,we.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(we){ae.textarea.value=we,ae.textarea.focus(),ae.textarea.select()})),this.register(this.onScroll(function(){ae.viewport.syncScrollArea(),ae._selectionService.refresh()})),this.register(ct.addDisposableDomListener(this._viewportElement,"scroll",function(){return ae._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(z.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return ae._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(ct.addDisposableDomListener(this.element,"mousedown",function(we){return ae._selectionService.onMouseDown(we)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new ot.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ht.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(yt.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(it.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ht.prototype._setTheme=function(ne){var ae,ve,Kt;this._theme=ne,(ae=this._colorManager)===null||ae===void 0||ae.setTheme(ne),(ve=this._renderService)===null||ve===void 0||ve.setColors(this._colorManager.colors),(Kt=this.viewport)===null||Kt===void 0||Kt.onThemeChange(this._colorManager.colors)},Ht.prototype.bindMouse=function(){var ne=this,ae=this,ve=this.element;function Kt(fe){var pe,_e,je=ae._mouseService.getRawByteCoords(fe,ae.screenElement,ae.cols,ae.rows);if(!je)return!1;switch(fe.overrideType||fe.type){case"mousemove":_e=32,fe.buttons===void 0?(pe=3,fe.button!==void 0&&(pe=fe.button<3?fe.button:3)):pe=1&fe.buttons?0:4&fe.buttons?1:2&fe.buttons?2:3;break;case"mouseup":_e=0,pe=fe.button<3?fe.button:3;break;case"mousedown":_e=1,pe=fe.button<3?fe.button:3;break;case"wheel":fe.deltaY!==0&&(_e=fe.deltaY<0?0:1),pe=4;break;default:return!1}return!(_e===void 0||pe===void 0||pe>4)&&ae._coreMouseService.triggerMouseEvent({col:je.x-33,row:je.y-33,button:pe,action:_e,ctrl:fe.ctrlKey,alt:fe.altKey,shift:fe.shiftKey})}var re={mouseup:null,wheel:null,mousedrag:null,mousemove:null},we=function(fe){return Kt(fe),fe.buttons||(ne._document.removeEventListener("mouseup",re.mouseup),re.mousedrag&&ne._document.removeEventListener("mousemove",re.mousedrag)),ne.cancel(fe)},Me=function(fe){return Kt(fe),fe.preventDefault(),ne.cancel(fe)},ke=function(fe){fe.buttons&&Kt(fe)},me=function(fe){fe.buttons||Kt(fe)};this.register(this._coreMouseService.onProtocolChange(function(fe){fe?(ne.optionsService.options.logLevel==="debug"&&ne._logService.debug("Binding to mouse events:",ne._coreMouseService.explainEvents(fe)),ne.element.classList.add("enable-mouse-events"),ne._selectionService.disable()):(ne._logService.debug("Unbinding from mouse events."),ne.element.classList.remove("enable-mouse-events"),ne._selectionService.enable()),8&fe?re.mousemove||(ve.addEventListener("mousemove",me),re.mousemove=me):(ve.removeEventListener("mousemove",re.mousemove),re.mousemove=null),16&fe?re.wheel||(ve.addEventListener("wheel",Me,{passive:!1}),re.wheel=Me):(ve.removeEventListener("wheel",re.wheel),re.wheel=null),2&fe?re.mouseup||(re.mouseup=we):(ne._document.removeEventListener("mouseup",re.mouseup),re.mouseup=null),4&fe?re.mousedrag||(re.mousedrag=ke):(ne._document.removeEventListener("mousemove",re.mousedrag),re.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(ct.addDisposableDomListener(ve,"mousedown",function(fe){if(fe.preventDefault(),ne.focus(),ne._coreMouseService.areMouseEventsActive&&!ne._selectionService.shouldForceSelection(fe))return Kt(fe),re.mouseup&&ne._document.addEventListener("mouseup",re.mouseup),re.mousedrag&&ne._document.addEventListener("mousemove",re.mousedrag),ne.cancel(fe)})),this.register(ct.addDisposableDomListener(ve,"wheel",function(fe){if(!re.wheel){if(!ne.buffer.hasScrollback){var pe=ne.viewport.getLinesScrolled(fe);if(pe===0)return;for(var _e=pt.C0.ESC+(ne._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(fe.deltaY<0?"A":"B"),je="",He=0;He<Math.abs(pe);He++)je+=_e;ne._coreService.triggerDataEvent(je,!0)}}},{passive:!0})),this.register(ct.addDisposableDomListener(ve,"wheel",function(fe){if(!re.wheel)return ne.viewport.onWheel(fe)?void 0:ne.cancel(fe)},{passive:!1})),this.register(ct.addDisposableDomListener(ve,"touchstart",function(fe){if(!ne._coreMouseService.areMouseEventsActive)return ne.viewport.onTouchStart(fe),ne.cancel(fe)},{passive:!0})),this.register(ct.addDisposableDomListener(ve,"touchmove",function(fe){if(!ne._coreMouseService.areMouseEventsActive)return ne.viewport.onTouchMove(fe)?void 0:ne.cancel(fe)},{passive:!1}))},Ht.prototype.refresh=function(ne,ae){var ve;(ve=this._renderService)===null||ve===void 0||ve.refreshRows(ne,ae)},Ht.prototype._queueLinkification=function(ne,ae){var ve;(ve=this.linkifier)===null||ve===void 0||ve.linkifyRows(ne,ae)},Ht.prototype.updateCursorStyle=function(ne){this._selectionService&&this._selectionService.shouldColumnSelect(ne)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ht.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ht.prototype.scrollLines=function(ne,ae){Yt.prototype.scrollLines.call(this,ne,ae),this.refresh(0,this.rows-1)},Ht.prototype.paste=function(ne){St.paste(ne,this.textarea,this._coreService)},Ht.prototype.attachCustomKeyEventHandler=function(ne){this._customKeyEventHandler=ne},Ht.prototype.registerLinkMatcher=function(ne,ae,ve){var Kt=this.linkifier.registerLinkMatcher(ne,ae,ve);return this.refresh(0,this.rows-1),Kt},Ht.prototype.deregisterLinkMatcher=function(ne){this.linkifier.deregisterLinkMatcher(ne)&&this.refresh(0,this.rows-1)},Ht.prototype.registerLinkProvider=function(ne){return this.linkifier2.registerLinkProvider(ne)},Ht.prototype.registerCharacterJoiner=function(ne){var ae=this._renderService.registerCharacterJoiner(ne);return this.refresh(0,this.rows-1),ae},Ht.prototype.deregisterCharacterJoiner=function(ne){this._renderService.deregisterCharacterJoiner(ne)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ht.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ht.prototype.addMarker=function(ne){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+ne)},Ht.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ht.prototype.select=function(ne,ae,ve){this._selectionService.setSelection(ne,ae,ve)},Ht.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ht.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ht.prototype.clearSelection=function(){var ne;(ne=this._selectionService)===null||ne===void 0||ne.clearSelection()},Ht.prototype.selectAll=function(){var ne;(ne=this._selectionService)===null||ne===void 0||ne.selectAll()},Ht.prototype.selectLines=function(ne,ae){var ve;(ve=this._selectionService)===null||ve===void 0||ve.selectLines(ne,ae)},Ht.prototype._keyDown=function(ne){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(ne)===!1)return!1;if(!this._compositionHelper.keydown(ne))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var ae=at.evaluateKeyboardEvent(ne,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(ne),ae.type===3||ae.type===2){var ve=this.rows-1;return this.scrollLines(ae.type===2?-ve:ve),this.cancel(ne,!0)}return ae.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,ne)||(ae.cancel&&this.cancel(ne,!0),!ae.key||(ae.key!==pt.C0.ETX&&ae.key!==pt.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ae.key,domEvent:ne}),this._showCursor(),this._coreService.triggerDataEvent(ae.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(ne,!0)))},Ht.prototype._isThirdLevelShift=function(ne,ae){var ve=ne.isMac&&!this.options.macOptionIsMeta&&ae.altKey&&!ae.ctrlKey&&!ae.metaKey||ne.isWindows&&ae.altKey&&ae.ctrlKey&&!ae.metaKey;return ae.type==="keypress"?ve:ve&&(!ae.keyCode||ae.keyCode>47)},Ht.prototype._keyUp=function(ne){this._customKeyEventHandler&&this._customKeyEventHandler(ne)===!1||(function(ae){return ae.keyCode===16||ae.keyCode===17||ae.keyCode===18}(ne)||this.focus(),this.updateCursorStyle(ne))},Ht.prototype._keyPress=function(ne){var ae;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(ne)===!1)return!1;if(this.cancel(ne),ne.charCode)ae=ne.charCode;else if(ne.which===null||ne.which===void 0)ae=ne.keyCode;else{if(ne.which===0||ne.charCode===0)return!1;ae=ne.which}return!(!ae||(ne.altKey||ne.ctrlKey||ne.metaKey)&&!this._isThirdLevelShift(this.browser,ne))&&(ae=String.fromCharCode(ae),this._onKey.fire({key:ae,domEvent:ne}),this._showCursor(),this._coreService.triggerDataEvent(ae,!0),!0)},Ht.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ht.prototype.resize=function(ne,ae){ne!==this.cols||ae!==this.rows?Yt.prototype.resize.call(this,ne,ae):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ht.prototype._afterResize=function(ne,ae){var ve,Kt;(ve=this._charSizeService)===null||ve===void 0||ve.measure(),(Kt=this.viewport)===null||Kt===void 0||Kt.syncScrollArea(!0)},Ht.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var ne=1;ne<this.rows;ne++)this.buffer.lines.push(this.buffer.getBlankLine(wt.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Ht.prototype.reset=function(){var ne,ae;this.options.rows=this.rows,this.options.cols=this.cols;var ve=this._customKeyEventHandler;this._setup(),Yt.prototype.reset.call(this),(ne=this._selectionService)===null||ne===void 0||ne.reset(),this._customKeyEventHandler=ve,this.refresh(0,this.rows-1),(ae=this.viewport)===null||ae===void 0||ae.syncScrollArea()},Ht.prototype._reportWindowsOptions=function(ne){if(this._renderService)switch(ne){case vt.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var ae=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ve=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(pt.C0.ESC+"[4;"+ve+";"+ae+"t");break;case vt.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Kt=this._renderService.dimensions.scaledCellWidth.toFixed(0),re=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(pt.C0.ESC+"[6;"+re+";"+Kt+"t")}},Ht.prototype.cancel=function(ne,ae){if(this.options.cancelEvents||ae)return ne.preventDefault(),ne.stopPropagation(),!1},Ht.prototype._visualBell=function(){return!1},Ht.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Ht}(Ut.CoreTerminal);Rt.Terminal=Gt},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(pt,vt,yt,xt){var dt,ft=arguments.length,ct=ft<3?vt:xt===null?xt=Object.getOwnPropertyDescriptor(vt,yt):xt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(pt,vt,yt,xt);else for(var lt=pt.length-1;lt>=0;lt--)(dt=pt[lt])&&(ct=(ft<3?dt(ct):ft>3?dt(vt,yt,ct):dt(vt,yt))||ct);return ft>3&&ct&&Object.defineProperty(vt,yt,ct),ct},rt=this&&this.__param||function(pt,vt){return function(yt,xt){vt(yt,xt,pt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CompositionHelper=void 0;var kt=Ft(5),Ct=Ft(1),St=function(){function pt(vt,yt,xt,dt,ft,ct){this._textarea=vt,this._compositionView=yt,this._bufferService=xt,this._optionsService=dt,this._charSizeService=ft,this._coreService=ct,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(pt.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),pt.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},pt.prototype.compositionupdate=function(vt){var yt=this;this._compositionView.textContent=vt.data,this.updateCompositionElements(),setTimeout(function(){yt._compositionPosition.end=yt._textarea.value.length},0)},pt.prototype.compositionend=function(){this._finalizeComposition(!0)},pt.prototype.keydown=function(vt){if(this._isComposing||this._isSendingComposition){if(vt.keyCode===229||vt.keyCode===16||vt.keyCode===17||vt.keyCode===18)return!1;this._finalizeComposition(!1)}return vt.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},pt.prototype._finalizeComposition=function(vt){var yt=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,vt){var xt={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(yt._isSendingComposition){yt._isSendingComposition=!1;var ft=void 0;ft=yt._isComposing?yt._textarea.value.substring(xt.start,xt.end):yt._textarea.value.substring(xt.start),yt._coreService.triggerDataEvent(ft,!0)}},0)}else{this._isSendingComposition=!1;var dt=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(dt,!0)}},pt.prototype._handleAnyTextareaChanges=function(){var vt=this,yt=this._textarea.value;setTimeout(function(){if(!vt._isComposing){var xt=vt._textarea.value.replace(yt,"");xt.length>0&&vt._coreService.triggerDataEvent(xt,!0)}},0)},pt.prototype.updateCompositionElements=function(vt){var yt=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var xt=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),dt=this._bufferService.buffer.y*xt,ft=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=ft+"px",this._compositionView.style.top=dt+"px",this._compositionView.style.height=xt+"px",this._compositionView.style.lineHeight=xt+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var ct=this._compositionView.getBoundingClientRect();this._textarea.style.left=ft+"px",this._textarea.style.top=dt+"px",this._textarea.style.width=ct.width+"px",this._textarea.style.height=ct.height+"px",this._textarea.style.lineHeight=ct.height+"px"}vt||setTimeout(function(){return yt.updateCompositionElements(!0)},0)}},pt=ie([rt(2,Ct.IBufferService),rt(3,Ct.IOptionsService),rt(4,kt.ICharSizeService),rt(5,Ct.ICoreService)],pt)}();Rt.CompositionHelper=St},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Viewport=void 0;var St=Ft(2),pt=Ft(7),vt=Ft(5),yt=Ft(1),xt=function(dt){function ft(ct,lt,E,z,ot,it,at){var ut=dt.call(this)||this;return ut._scrollLines=ct,ut._viewportElement=lt,ut._scrollArea=E,ut._bufferService=z,ut._optionsService=ot,ut._charSizeService=it,ut._renderService=at,ut.scrollBarWidth=0,ut._currentRowHeight=0,ut._lastRecordedBufferLength=0,ut._lastRecordedViewportHeight=0,ut._lastRecordedBufferHeight=0,ut._lastTouchY=0,ut._lastScrollTop=0,ut._wheelPartialScroll=0,ut._refreshAnimationFrame=null,ut._ignoreNextScrollEvent=!1,ut.scrollBarWidth=ut._viewportElement.offsetWidth-ut._scrollArea.offsetWidth||15,ut.register(pt.addDisposableDomListener(ut._viewportElement,"scroll",ut._onScroll.bind(ut))),setTimeout(function(){return ut.syncScrollArea()},0),ut}return rt(ft,dt),ft.prototype.onThemeChange=function(ct){this._viewportElement.style.backgroundColor=ct.background.css},ft.prototype._refresh=function(ct){var lt=this;if(ct)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return lt._innerRefresh()}))},ft.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var ct=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==ct&&(this._lastRecordedBufferHeight=ct,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var lt=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==lt&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=lt),this._refreshAnimationFrame=null},ft.prototype.syncScrollArea=function(ct){if(ct===void 0&&(ct=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(ct);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var lt=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===lt&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(ct)}else this._refresh(ct)},ft.prototype._onScroll=function(ct){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var lt=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(lt,!0)}},ft.prototype._bubbleScroll=function(ct,lt){var E=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(lt<0&&this._viewportElement.scrollTop!==0||lt>0&&E<this._lastRecordedBufferHeight)||(ct.cancelable&&ct.preventDefault(),!1)},ft.prototype.onWheel=function(ct){var lt=this._getPixelsScrolled(ct);return lt!==0&&(this._viewportElement.scrollTop+=lt,this._bubbleScroll(ct,lt))},ft.prototype._getPixelsScrolled=function(ct){if(ct.deltaY===0)return 0;var lt=this._applyScrollModifier(ct.deltaY,ct);return ct.deltaMode===WheelEvent.DOM_DELTA_LINE?lt*=this._currentRowHeight:ct.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(lt*=this._currentRowHeight*this._bufferService.rows),lt},ft.prototype.getLinesScrolled=function(ct){if(ct.deltaY===0)return 0;var lt=this._applyScrollModifier(ct.deltaY,ct);return ct.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(lt/=this._currentRowHeight+0,this._wheelPartialScroll+=lt,lt=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):ct.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(lt*=this._bufferService.rows),lt},ft.prototype._applyScrollModifier=function(ct,lt){var E=this._optionsService.options.fastScrollModifier;return E==="alt"&&lt.altKey||E==="ctrl"&&lt.ctrlKey||E==="shift"&&lt.shiftKey?ct*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:ct*this._optionsService.options.scrollSensitivity},ft.prototype.onTouchStart=function(ct){this._lastTouchY=ct.touches[0].pageY},ft.prototype.onTouchMove=function(ct){var lt=this._lastTouchY-ct.touches[0].pageY;return this._lastTouchY=ct.touches[0].pageY,lt!==0&&(this._viewportElement.scrollTop+=lt,this._bubbleScroll(ct,lt))},ft=kt([Ct(3,yt.IBufferService),Ct(4,yt.IOptionsService),Ct(5,vt.ICharSizeService),Ct(6,vt.IRenderService)],ft)}(St.Disposable);Rt.Viewport=xt},function(Ke,Rt,Ft){"use strict";function ie(St){return St.replace(/\r?\n/g,"\r")}function rt(St,pt){return pt?"\x1B[200~"+St+"\x1B[201~":St}function kt(St,pt,vt){St=rt(St=ie(St),vt.decPrivateModes.bracketedPasteMode),vt.triggerDataEvent(St,!0),pt.value=""}function Ct(St,pt,vt){var yt=vt.getBoundingClientRect(),xt=St.clientX-yt.left-10,dt=St.clientY-yt.top-10;pt.style.width="20px",pt.style.height="20px",pt.style.left=xt+"px",pt.style.top=dt+"px",pt.style.zIndex="1000",pt.focus()}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.rightClickHandler=Rt.moveTextAreaUnderMouseCursor=Rt.paste=Rt.handlePasteEvent=Rt.copyHandler=Rt.bracketTextForPaste=Rt.prepareTextForTerminal=void 0,Rt.prepareTextForTerminal=ie,Rt.bracketTextForPaste=rt,Rt.copyHandler=function(St,pt){St.clipboardData&&St.clipboardData.setData("text/plain",pt.selectionText),St.preventDefault()},Rt.handlePasteEvent=function(St,pt,vt){St.stopPropagation(),St.clipboardData&&kt(St.clipboardData.getData("text/plain"),pt,vt)},Rt.paste=kt,Rt.moveTextAreaUnderMouseCursor=Ct,Rt.rightClickHandler=function(St,pt,vt,yt,xt){Ct(St,pt,vt),xt&&!yt.isClickInSelection(St)&&yt.selectWordAtCursor(St),pt.value=yt.selectionText,pt.select()}},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.EscapeSequenceParser=Rt.VT500_TRANSITION_TABLE=Rt.TransitionTable=void 0;var kt=Ft(2),Ct=Ft(15),St=Ft(21),pt=Ft(22),vt=Ft(24),yt=function(){function dt(ft){this.table=new Uint8Array(ft)}return dt.prototype.setDefault=function(ft,ct){Ct.fill(this.table,ft<<4|ct)},dt.prototype.add=function(ft,ct,lt,E){this.table[ct<<8|ft]=lt<<4|E},dt.prototype.addMany=function(ft,ct,lt,E){for(var z=0;z<ft.length;z++)this.table[ct<<8|ft[z]]=lt<<4|E},dt}();Rt.TransitionTable=yt,Rt.VT500_TRANSITION_TABLE=function(){var dt=new yt(4095),ft=Array.apply(null,Array(256)).map(function(it,at){return at}),ct=function(it,at){return ft.slice(it,at)},lt=ct(32,127),E=ct(0,24);E.push(25),E.push.apply(E,ct(28,32));var z,ot=ct(0,14);for(z in dt.setDefault(1,0),dt.addMany(lt,0,2,0),ot)dt.addMany([24,26,153,154],z,3,0),dt.addMany(ct(128,144),z,3,0),dt.addMany(ct(144,152),z,3,0),dt.add(156,z,0,0),dt.add(27,z,11,1),dt.add(157,z,4,8),dt.addMany([152,158,159],z,0,7),dt.add(155,z,11,3),dt.add(144,z,11,9);return dt.addMany(E,0,3,0),dt.addMany(E,1,3,1),dt.add(127,1,0,1),dt.addMany(E,8,0,8),dt.addMany(E,3,3,3),dt.add(127,3,0,3),dt.addMany(E,4,3,4),dt.add(127,4,0,4),dt.addMany(E,6,3,6),dt.addMany(E,5,3,5),dt.add(127,5,0,5),dt.addMany(E,2,3,2),dt.add(127,2,0,2),dt.add(93,1,4,8),dt.addMany(lt,8,5,8),dt.add(127,8,5,8),dt.addMany([156,27,24,26,7],8,6,0),dt.addMany(ct(28,32),8,0,8),dt.addMany([88,94,95],1,0,7),dt.addMany(lt,7,0,7),dt.addMany(E,7,0,7),dt.add(156,7,0,0),dt.add(127,7,0,7),dt.add(91,1,11,3),dt.addMany(ct(64,127),3,7,0),dt.addMany(ct(48,60),3,8,4),dt.addMany([60,61,62,63],3,9,4),dt.addMany(ct(48,60),4,8,4),dt.addMany(ct(64,127),4,7,0),dt.addMany([60,61,62,63],4,0,6),dt.addMany(ct(32,64),6,0,6),dt.add(127,6,0,6),dt.addMany(ct(64,127),6,0,0),dt.addMany(ct(32,48),3,9,5),dt.addMany(ct(32,48),5,9,5),dt.addMany(ct(48,64),5,0,6),dt.addMany(ct(64,127),5,7,0),dt.addMany(ct(32,48),4,9,5),dt.addMany(ct(32,48),1,9,2),dt.addMany(ct(32,48),2,9,2),dt.addMany(ct(48,127),2,10,0),dt.addMany(ct(48,80),1,10,0),dt.addMany(ct(81,88),1,10,0),dt.addMany([89,90,92],1,10,0),dt.addMany(ct(96,127),1,10,0),dt.add(80,1,11,9),dt.addMany(E,9,0,9),dt.add(127,9,0,9),dt.addMany(ct(28,32),9,0,9),dt.addMany(ct(32,48),9,9,12),dt.addMany(ct(48,60),9,8,10),dt.addMany([60,61,62,63],9,9,10),dt.addMany(E,11,0,11),dt.addMany(ct(32,128),11,0,11),dt.addMany(ct(28,32),11,0,11),dt.addMany(E,10,0,10),dt.add(127,10,0,10),dt.addMany(ct(28,32),10,0,10),dt.addMany(ct(48,60),10,8,10),dt.addMany([60,61,62,63],10,0,11),dt.addMany(ct(32,48),10,9,12),dt.addMany(E,12,0,12),dt.add(127,12,0,12),dt.addMany(ct(28,32),12,0,12),dt.addMany(ct(32,48),12,9,12),dt.addMany(ct(48,64),12,0,11),dt.addMany(ct(64,127),12,12,13),dt.addMany(ct(64,127),10,12,13),dt.addMany(ct(64,127),9,12,13),dt.addMany(E,13,13,13),dt.addMany(lt,13,13,13),dt.add(127,13,0,13),dt.addMany([27,156,24,26],13,14,0),dt.add(160,0,2,0),dt.add(160,8,5,8),dt.add(160,6,0,6),dt.add(160,11,0,11),dt.add(160,13,13,13),dt}();var xt=function(dt){function ft(ct){ct===void 0&&(ct=Rt.VT500_TRANSITION_TABLE);var lt=dt.call(this)||this;return lt._transitions=ct,lt.initialState=0,lt.currentState=lt.initialState,lt._params=new St.Params,lt._params.addParam(0),lt._collect=0,lt.precedingCodepoint=0,lt._printHandlerFb=function(E,z,ot){},lt._executeHandlerFb=function(E){},lt._csiHandlerFb=function(E,z){},lt._escHandlerFb=function(E){},lt._errorHandlerFb=function(E){return E},lt._printHandler=lt._printHandlerFb,lt._executeHandlers=Object.create(null),lt._csiHandlers=Object.create(null),lt._escHandlers=Object.create(null),lt._oscParser=new pt.OscParser,lt._dcsParser=new vt.DcsParser,lt._errorHandler=lt._errorHandlerFb,lt.setEscHandler({final:"\\"},function(){}),lt}return rt(ft,dt),ft.prototype._identifier=function(ct,lt){lt===void 0&&(lt=[64,126]);var E=0;if(ct.prefix){if(ct.prefix.length>1)throw new Error("only one byte as prefix supported");if((E=ct.prefix.charCodeAt(0))&&60>E||E>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(ct.intermediates){if(ct.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var z=0;z<ct.intermediates.length;++z){var ot=ct.intermediates.charCodeAt(z);if(32>ot||ot>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");E<<=8,E|=ot}}if(ct.final.length!==1)throw new Error("final must be a single byte");var it=ct.final.charCodeAt(0);if(lt[0]>it||it>lt[1])throw new Error("final must be in range "+lt[0]+" .. "+lt[1]);return E<<=8,E|=it},ft.prototype.identToString=function(ct){for(var lt=[];ct;)lt.push(String.fromCharCode(255&ct)),ct>>=8;return lt.reverse().join("")},ft.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},ft.prototype.setPrintHandler=function(ct){this._printHandler=ct},ft.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},ft.prototype.addEscHandler=function(ct,lt){var E=this._identifier(ct,[48,126]);this._escHandlers[E]===void 0&&(this._escHandlers[E]=[]);var z=this._escHandlers[E];return z.push(lt),{dispose:function(){var ot=z.indexOf(lt);ot!==-1&&z.splice(ot,1)}}},ft.prototype.setEscHandler=function(ct,lt){this._escHandlers[this._identifier(ct,[48,126])]=[lt]},ft.prototype.clearEscHandler=function(ct){this._escHandlers[this._identifier(ct,[48,126])]&&delete this._escHandlers[this._identifier(ct,[48,126])]},ft.prototype.setEscHandlerFallback=function(ct){this._escHandlerFb=ct},ft.prototype.setExecuteHandler=function(ct,lt){this._executeHandlers[ct.charCodeAt(0)]=lt},ft.prototype.clearExecuteHandler=function(ct){this._executeHandlers[ct.charCodeAt(0)]&&delete this._executeHandlers[ct.charCodeAt(0)]},ft.prototype.setExecuteHandlerFallback=function(ct){this._executeHandlerFb=ct},ft.prototype.addCsiHandler=function(ct,lt){var E=this._identifier(ct);this._csiHandlers[E]===void 0&&(this._csiHandlers[E]=[]);var z=this._csiHandlers[E];return z.push(lt),{dispose:function(){var ot=z.indexOf(lt);ot!==-1&&z.splice(ot,1)}}},ft.prototype.setCsiHandler=function(ct,lt){this._csiHandlers[this._identifier(ct)]=[lt]},ft.prototype.clearCsiHandler=function(ct){this._csiHandlers[this._identifier(ct)]&&delete this._csiHandlers[this._identifier(ct)]},ft.prototype.setCsiHandlerFallback=function(ct){this._csiHandlerFb=ct},ft.prototype.addDcsHandler=function(ct,lt){return this._dcsParser.addHandler(this._identifier(ct),lt)},ft.prototype.setDcsHandler=function(ct,lt){this._dcsParser.setHandler(this._identifier(ct),lt)},ft.prototype.clearDcsHandler=function(ct){this._dcsParser.clearHandler(this._identifier(ct))},ft.prototype.setDcsHandlerFallback=function(ct){this._dcsParser.setHandlerFallback(ct)},ft.prototype.addOscHandler=function(ct,lt){return this._oscParser.addHandler(ct,lt)},ft.prototype.setOscHandler=function(ct,lt){this._oscParser.setHandler(ct,lt)},ft.prototype.clearOscHandler=function(ct){this._oscParser.clearHandler(ct)},ft.prototype.setOscHandlerFallback=function(ct){this._oscParser.setHandlerFallback(ct)},ft.prototype.setErrorHandler=function(ct){this._errorHandler=ct},ft.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},ft.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},ft.prototype.parse=function(ct,lt){for(var E=0,z=0,ot=this.currentState,it=this._oscParser,at=this._dcsParser,ut=this._collect,wt=this._params,Et=this._transitions.table,At=0;At<lt;++At){switch((z=Et[ot<<8|((E=ct[At])<160?E:160)])>>4){case 2:for(var _t=At+1;;++_t){if(_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}}break;case 3:this._executeHandlers[E]?this._executeHandlers[E]():this._executeHandlerFb(E),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:At,code:E,currentState:ot,collect:ut,params:wt,abort:!1}).abort)return;break;case 7:for(var Mt=this._csiHandlers[ut<<8|E],jt=Mt?Mt.length-1:-1;jt>=0&&Mt[jt](wt)===!1;jt--);jt<0&&this._csiHandlerFb(ut<<8|E,wt),this.precedingCodepoint=0;break;case 8:do switch(E){case 59:wt.addParam(0);break;case 58:wt.addSubParam(-1);break;default:wt.addDigit(E-48)}while(++At<lt&&(E=ct[At])>47&&E<60);At--;break;case 9:ut<<=8,ut|=E;break;case 10:for(var Lt=this._escHandlers[ut<<8|E],It=Lt?Lt.length-1:-1;It>=0&&Lt[It]()===!1;It--);It<0&&this._escHandlerFb(ut<<8|E),this.precedingCodepoint=0;break;case 11:wt.reset(),wt.addParam(0),ut=0;break;case 12:at.hook(ut<<8|E,wt);break;case 13:for(var Ut=At+1;;++Ut)if(Ut>=lt||(E=ct[Ut])===24||E===26||E===27||E>127&&E<160){at.put(ct,At,Ut),At=Ut-1;break}break;case 14:at.unhook(E!==24&&E!==26),E===27&&(z|=1),wt.reset(),wt.addParam(0),ut=0,this.precedingCodepoint=0;break;case 4:it.start();break;case 5:for(var Xt=At+1;;Xt++)if(Xt>=lt||(E=ct[Xt])<32||E>127&&E<=159){it.put(ct,At,Xt),At=Xt-1;break}break;case 6:it.end(E!==24&&E!==26),E===27&&(z|=1),wt.reset(),wt.addParam(0),ut=0,this.precedingCodepoint=0}ot=15&z}this._collect=ut,this.currentState=ot},ft}(kt.Disposable);Rt.EscapeSequenceParser=xt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(it,at){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,wt){ut.__proto__=wt}||function(ut,wt){for(var Et in wt)wt.hasOwnProperty(Et)&&(ut[Et]=wt[Et])})(it,at)},function(it,at){function ut(){this.constructor=it}ie(it,at),it.prototype=at===null?Object.create(at):(ut.prototype=at.prototype,new ut)}),kt=this&&this.__decorate||function(it,at,ut,wt){var Et,At=arguments.length,_t=At<3?at:wt===null?wt=Object.getOwnPropertyDescriptor(at,ut):wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_t=Reflect.decorate(it,at,ut,wt);else for(var Mt=it.length-1;Mt>=0;Mt--)(Et=it[Mt])&&(_t=(At<3?Et(_t):At>3?Et(at,ut,_t):Et(at,ut))||_t);return At>3&&_t&&Object.defineProperty(at,ut,_t),_t},Ct=this&&this.__param||function(it,at){return function(ut,wt){at(ut,wt,it)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Renderer=void 0;var St=Ft(41),pt=Ft(47),vt=Ft(48),yt=Ft(49),xt=Ft(29),dt=Ft(2),ft=Ft(5),ct=Ft(1),lt=Ft(25),E=Ft(0),z=1,ot=function(it){function at(ut,wt,Et,At,_t,Mt,jt,Lt,It){var Ut=it.call(this)||this;Ut._colors=ut,Ut._screenElement=wt,Ut._bufferService=_t,Ut._charSizeService=Mt,Ut._optionsService=jt,Ut._id=z++,Ut._onRequestRedraw=new E.EventEmitter;var Xt=Ut._optionsService.options.allowTransparency;return Ut._characterJoinerRegistry=new xt.CharacterJoinerRegistry(Ut._bufferService),Ut._renderLayers=[new St.TextRenderLayer(Ut._screenElement,0,Ut._colors,Ut._characterJoinerRegistry,Xt,Ut._id,Ut._bufferService,jt),new pt.SelectionRenderLayer(Ut._screenElement,1,Ut._colors,Ut._id,Ut._bufferService,jt),new yt.LinkRenderLayer(Ut._screenElement,2,Ut._colors,Ut._id,Et,At,Ut._bufferService,jt),new vt.CursorRenderLayer(Ut._screenElement,3,Ut._colors,Ut._id,Ut._onRequestRedraw,Ut._bufferService,jt,Lt,It)],Ut.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Ut._devicePixelRatio=window.devicePixelRatio,Ut._updateDimensions(),Ut.onOptionsChanged(),Ut}return rt(at,it),Object.defineProperty(at.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),at.prototype.dispose=function(){for(var ut=0,wt=this._renderLayers;ut<wt.length;ut++)wt[ut].dispose();it.prototype.dispose.call(this),lt.removeTerminalFromCache(this._id)},at.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},at.prototype.setColors=function(ut){this._colors=ut;for(var wt=0,Et=this._renderLayers;wt<Et.length;wt++){var At=Et[wt];At.setColors(this._colors),At.reset()}},at.prototype.onResize=function(ut,wt){this._updateDimensions();for(var Et=0,At=this._renderLayers;Et<At.length;Et++)At[Et].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},at.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},at.prototype.onBlur=function(){this._runOperation(function(ut){return ut.onBlur()})},at.prototype.onFocus=function(){this._runOperation(function(ut){return ut.onFocus()})},at.prototype.onSelectionChanged=function(ut,wt,Et){Et===void 0&&(Et=!1),this._runOperation(function(At){return At.onSelectionChanged(ut,wt,Et)})},at.prototype.onCursorMove=function(){this._runOperation(function(ut){return ut.onCursorMove()})},at.prototype.onOptionsChanged=function(){this._runOperation(function(ut){return ut.onOptionsChanged()})},at.prototype.clear=function(){this._runOperation(function(ut){return ut.reset()})},at.prototype._runOperation=function(ut){for(var wt=0,Et=this._renderLayers;wt<Et.length;wt++)ut(Et[wt])},at.prototype.renderRows=function(ut,wt){for(var Et=0,At=this._renderLayers;Et<At.length;Et++)At[Et].onGridChanged(ut,wt)},at.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},at.prototype.registerCharacterJoiner=function(ut){return this._characterJoinerRegistry.registerCharacterJoiner(ut)},at.prototype.deregisterCharacterJoiner=function(ut){return this._characterJoinerRegistry.deregisterCharacterJoiner(ut)},at=kt([Ct(4,ct.IBufferService),Ct(5,ft.ICharSizeService),Ct(6,ct.IOptionsService),Ct(7,ct.ICoreService),Ct(8,ft.ICoreBrowserService)],at)}(dt.Disposable);Rt.Renderer=ot},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.TextRenderLayer=void 0;var kt=Ft(42),Ct=Ft(13),St=Ft(6),pt=Ft(3),vt=Ft(29),yt=Ft(4),xt=function(dt){function ft(ct,lt,E,z,ot,it,at,ut){var wt=dt.call(this,ct,"text",lt,ot,E,it,at,ut)||this;return wt._characterWidth=0,wt._characterFont="",wt._characterOverlapCache={},wt._workCell=new yt.CellData,wt._state=new kt.GridCache,wt._characterJoinerRegistry=z,wt}return rt(ft,dt),ft.prototype.resize=function(ct){dt.prototype.resize.call(this,ct);var lt=this._getFont(!1,!1);this._characterWidth===ct.scaledCharWidth&&this._characterFont===lt||(this._characterWidth=ct.scaledCharWidth,this._characterFont=lt,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},ft.prototype.reset=function(){this._state.clear(),this._clearAll()},ft.prototype._forEachCell=function(ct,lt,E,z){for(var ot=ct;ot<=lt;ot++)for(var it=ot+this._bufferService.buffer.ydisp,at=this._bufferService.buffer.lines.get(it),ut=E?E.getJoinedCharacters(it):[],wt=0;wt<this._bufferService.cols;wt++){at.loadCell(wt,this._workCell);var Et=this._workCell,At=!1,_t=wt;if(Et.getWidth()!==0){if(ut.length>0&&wt===ut[0][0]){At=!0;var Mt=ut.shift();Et=new vt.JoinedCellData(this._workCell,at.translateToString(!0,Mt[0],Mt[1]),Mt[1]-Mt[0]),_t=Mt[1]-1}!At&&this._isOverlapping(Et)&&_t<at.length-1&&at.getCodePoint(_t+1)===pt.NULL_CELL_CODE&&(Et.content&=-12582913,Et.content|=2<<22),z(Et,wt,ot),wt=_t}}},ft.prototype._drawBackground=function(ct,lt){var E=this,z=this._ctx,ot=this._bufferService.cols,it=0,at=0,ut=null;z.save(),this._forEachCell(ct,lt,null,function(wt,Et,At){var _t=null;wt.isInverse()?_t=wt.isFgDefault()?E._colors.foreground.css:wt.isFgRGB()?"rgb("+St.AttributeData.toColorRGB(wt.getFgColor()).join(",")+")":E._colors.ansi[wt.getFgColor()].css:wt.isBgRGB()?_t="rgb("+St.AttributeData.toColorRGB(wt.getBgColor()).join(",")+")":wt.isBgPalette()&&(_t=E._colors.ansi[wt.getBgColor()].css),ut===null&&(it=Et,at=At),At!==at?(z.fillStyle=ut||"",E._fillCells(it,at,ot-it,1),it=Et,at=At):ut!==_t&&(z.fillStyle=ut||"",E._fillCells(it,at,Et-it,1),it=Et,at=At),ut=_t}),ut!==null&&(z.fillStyle=ut,this._fillCells(it,at,ot-it,1)),z.restore()},ft.prototype._drawForeground=function(ct,lt){var E=this;this._forEachCell(ct,lt,this._characterJoinerRegistry,function(z,ot,it){if(!z.isInvisible()&&(E._drawChars(z,ot,it),z.isUnderline())){if(E._ctx.save(),z.isInverse())if(z.isBgDefault())E._ctx.fillStyle=E._colors.background.css;else if(z.isBgRGB())E._ctx.fillStyle="rgb("+St.AttributeData.toColorRGB(z.getBgColor()).join(",")+")";else{var at=z.getBgColor();E._optionsService.options.drawBoldTextInBrightColors&&z.isBold()&&at<8&&(at+=8),E._ctx.fillStyle=E._colors.ansi[at].css}else if(z.isFgDefault())E._ctx.fillStyle=E._colors.foreground.css;else if(z.isFgRGB())E._ctx.fillStyle="rgb("+St.AttributeData.toColorRGB(z.getFgColor()).join(",")+")";else{var ut=z.getFgColor();E._optionsService.options.drawBoldTextInBrightColors&&z.isBold()&&ut<8&&(ut+=8),E._ctx.fillStyle=E._colors.ansi[ut].css}E._fillBottomLineAtCells(ot,it,z.getWidth()),E._ctx.restore()}})},ft.prototype.onGridChanged=function(ct,lt){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,ct,this._bufferService.cols,lt-ct+1),this._drawBackground(ct,lt),this._drawForeground(ct,lt))},ft.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},ft.prototype._isOverlapping=function(ct){if(ct.getWidth()!==1||ct.getCode()<256)return!1;var lt=ct.getChars();if(this._characterOverlapCache.hasOwnProperty(lt))return this._characterOverlapCache[lt];this._ctx.save(),this._ctx.font=this._characterFont;var E=Math.floor(this._ctx.measureText(lt).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[lt]=E,E},ft}(Ct.BaseRenderLayer);Rt.TextRenderLayer=xt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.GridCache=void 0;var ie=function(){function rt(){this.cache=[]}return rt.prototype.resize=function(kt,Ct){for(var St=0;St<kt;St++){this.cache.length<=St&&this.cache.push([]);for(var pt=this.cache[St].length;pt<Ct;pt++)this.cache[St].push(void 0);this.cache[St].length=Ct}this.cache.length=kt},rt.prototype.clear=function(){for(var kt=0;kt<this.cache.length;kt++)for(var Ct=0;Ct<this.cache[kt].length;Ct++)this.cache[kt][Ct]=void 0},rt}();Rt.GridCache=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(E,z){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,it){ot.__proto__=it}||function(ot,it){for(var at in it)it.hasOwnProperty(at)&&(ot[at]=it[at])})(E,z)},function(E,z){function ot(){this.constructor=E}ie(E,z),E.prototype=z===null?Object.create(z):(ot.prototype=z.prototype,new ot)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NoneCharAtlas=Rt.DynamicCharAtlas=Rt.getGlyphCacheKey=void 0;var kt=Ft(9),Ct=Ft(44),St=Ft(27),pt=Ft(46),vt=Ft(11),yt=Ft(28),xt=Ft(10),dt={css:"rgba(0, 0, 0, 0)",rgba:0};function ft(E){return E.code<<21|E.bg<<12|E.fg<<3|(E.bold?0:4)+(E.dim?0:2)+(E.italic?0:1)}Rt.getGlyphCacheKey=ft;var ct=function(E){function z(ot,it){var at=E.call(this)||this;at._config=it,at._drawToCacheCount=0,at._glyphsWaitingOnBitmap=[],at._bitmapCommitTimeout=null,at._bitmap=null,at._cacheCanvas=ot.createElement("canvas"),at._cacheCanvas.width=1024,at._cacheCanvas.height=1024,at._cacheCtx=yt.throwIfFalsy(at._cacheCanvas.getContext("2d",{alpha:!0}));var ut=ot.createElement("canvas");ut.width=at._config.scaledCharWidth,ut.height=at._config.scaledCharHeight,at._tmpCtx=yt.throwIfFalsy(ut.getContext("2d",{alpha:at._config.allowTransparency})),at._width=Math.floor(1024/at._config.scaledCharWidth),at._height=Math.floor(1024/at._config.scaledCharHeight);var wt=at._width*at._height;return at._cacheMap=new pt.LRUMap(wt),at._cacheMap.prealloc(wt),at}return rt(z,E),z.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},z.prototype.beginFrame=function(){this._drawToCacheCount=0},z.prototype.draw=function(ot,it,at,ut){if(it.code===32)return!0;if(!this._canCache(it))return!1;var wt=ft(it),Et=this._cacheMap.get(wt);if(Et!=null)return this._drawFromCache(ot,Et,at,ut),!0;if(this._drawToCacheCount<100){var At=void 0;At=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var _t=this._drawToCache(it,At);return this._cacheMap.set(wt,_t),this._drawFromCache(ot,_t,at,ut),!0}return!1},z.prototype._canCache=function(ot){return ot.code<256},z.prototype._toCoordinateX=function(ot){return ot%this._width*this._config.scaledCharWidth},z.prototype._toCoordinateY=function(ot){return Math.floor(ot/this._width)*this._config.scaledCharHeight},z.prototype._drawFromCache=function(ot,it,at,ut){if(!it.isEmpty){var wt=this._toCoordinateX(it.index),Et=this._toCoordinateY(it.index);ot.drawImage(it.inBitmap?this._bitmap:this._cacheCanvas,wt,Et,this._config.scaledCharWidth,this._config.scaledCharHeight,at,ut,this._config.scaledCharWidth,this._config.scaledCharHeight)}},z.prototype._getColorFromAnsiIndex=function(ot){return ot<this._config.colors.ansi.length?this._config.colors.ansi[ot]:St.DEFAULT_ANSI_COLORS[ot]},z.prototype._getBackgroundColor=function(ot){return this._config.allowTransparency?dt:ot.bg===kt.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:ot.bg<256?this._getColorFromAnsiIndex(ot.bg):this._config.colors.background},z.prototype._getForegroundColor=function(ot){return ot.fg===kt.INVERTED_DEFAULT_COLOR?xt.color.opaque(this._config.colors.background):ot.fg<256?this._getColorFromAnsiIndex(ot.fg):this._config.colors.foreground},z.prototype._drawToCache=function(ot,it){this._drawToCacheCount++,this._tmpCtx.save();var at=this._getBackgroundColor(ot);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=at.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ut=ot.bold?this._config.fontWeightBold:this._config.fontWeight,wt=ot.italic?"italic":"";this._tmpCtx.font=wt+" "+ut+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(ot).css,ot.dim&&(this._tmpCtx.globalAlpha=kt.DIM_OPACITY),this._tmpCtx.fillText(ot.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var Et=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),At=!1;this._config.allowTransparency||(At=function(Lt,It){for(var Ut=!0,Xt=It.rgba>>>24,Gt=It.rgba>>>16&255,Yt=It.rgba>>>8&255,Ht=0;Ht<Lt.data.length;Ht+=4)Lt.data[Ht]===Xt&&Lt.data[Ht+1]===Gt&&Lt.data[Ht+2]===Yt?Lt.data[Ht+3]=0:Ut=!1;return Ut}(Et,at));var _t=this._toCoordinateX(it),Mt=this._toCoordinateY(it);this._cacheCtx.putImageData(Et,_t,Mt);var jt={index:it,isEmpty:At,inBitmap:!1};return this._addGlyphToBitmap(jt),jt},z.prototype._addGlyphToBitmap=function(ot){var it=this;!("createImageBitmap"in window)||vt.isFirefox||vt.isSafari||(this._glyphsWaitingOnBitmap.push(ot),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return it._generateBitmap()},100)))},z.prototype._generateBitmap=function(){var ot=this,it=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(at){ot._bitmap=at;for(var ut=0;ut<it.length;ut++)it[ut].inBitmap=!0}),this._bitmapCommitTimeout=null},z}(Ct.BaseCharAtlas);Rt.DynamicCharAtlas=ct;var lt=function(E){function z(ot,it){return E.call(this)||this}return rt(z,E),z.prototype.draw=function(ot,it,at,ut){return!1},z}(Ct.BaseCharAtlas);Rt.NoneCharAtlas=lt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BaseCharAtlas=void 0;var ie=function(){function rt(){this._didWarmUp=!1}return rt.prototype.dispose=function(){},rt.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},rt.prototype._doWarmUp=function(){},rt.prototype.beginFrame=function(){},rt}();Rt.BaseCharAtlas=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.ColorContrastCache=void 0;var ie=function(){function rt(){this._color={},this._rgba={}}return rt.prototype.clear=function(){this._color={},this._rgba={}},rt.prototype.setCss=function(kt,Ct,St){this._rgba[kt]||(this._rgba[kt]={}),this._rgba[kt][Ct]=St},rt.prototype.getCss=function(kt,Ct){return this._rgba[kt]?this._rgba[kt][Ct]:void 0},rt.prototype.setColor=function(kt,Ct,St){this._color[kt]||(this._color[kt]={}),this._color[kt][Ct]=St},rt.prototype.getColor=function(kt,Ct){return this._color[kt]?this._color[kt][Ct]:void 0},rt}();Rt.ColorContrastCache=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.LRUMap=void 0;var ie=function(){function rt(kt){this.capacity=kt,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return rt.prototype._unlinkNode=function(kt){var Ct=kt.prev,St=kt.next;kt===this._head&&(this._head=St),kt===this._tail&&(this._tail=Ct),Ct!==null&&(Ct.next=St),St!==null&&(St.prev=Ct)},rt.prototype._appendNode=function(kt){var Ct=this._tail;Ct!==null&&(Ct.next=kt),kt.prev=Ct,kt.next=null,this._tail=kt,this._head===null&&(this._head=kt)},rt.prototype.prealloc=function(kt){for(var Ct=this._nodePool,St=0;St<kt;St++)Ct.push({prev:null,next:null,key:null,value:null})},rt.prototype.get=function(kt){var Ct=this._map[kt];return Ct!==void 0?(this._unlinkNode(Ct),this._appendNode(Ct),Ct.value):null},rt.prototype.peekValue=function(kt){var Ct=this._map[kt];return Ct!==void 0?Ct.value:null},rt.prototype.peek=function(){var kt=this._head;return kt===null?null:kt.value},rt.prototype.set=function(kt,Ct){var St=this._map[kt];if(St!==void 0)St=this._map[kt],this._unlinkNode(St),St.value=Ct;else if(this.size>=this.capacity)St=this._head,this._unlinkNode(St),delete this._map[St.key],St.key=kt,St.value=Ct,this._map[kt]=St;else{var pt=this._nodePool;pt.length>0?((St=pt.pop()).key=kt,St.value=Ct):St={prev:null,next:null,key:kt,value:Ct},this._map[kt]=St,this.size++}this._appendNode(St)},rt}();Rt.LRUMap=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Ct,St){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pt,vt){pt.__proto__=vt}||function(pt,vt){for(var yt in vt)vt.hasOwnProperty(yt)&&(pt[yt]=vt[yt])})(Ct,St)},function(Ct,St){function pt(){this.constructor=Ct}ie(Ct,St),Ct.prototype=St===null?Object.create(St):(pt.prototype=St.prototype,new pt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionRenderLayer=void 0;var kt=function(Ct){function St(pt,vt,yt,xt,dt,ft){var ct=Ct.call(this,pt,"selection",vt,!0,yt,xt,dt,ft)||this;return ct._clearState(),ct}return rt(St,Ct),St.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},St.prototype.resize=function(pt){Ct.prototype.resize.call(this,pt),this._clearState()},St.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},St.prototype.onSelectionChanged=function(pt,vt,yt){if(this._didStateChange(pt,vt,yt,this._bufferService.buffer.ydisp))if(this._clearAll(),pt&&vt){var xt=pt[1]-this._bufferService.buffer.ydisp,dt=vt[1]-this._bufferService.buffer.ydisp,ft=Math.max(xt,0),ct=Math.min(dt,this._bufferService.rows-1);if(!(ft>=this._bufferService.rows||ct<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,yt){var lt=pt[0],E=vt[0]-lt,z=ct-ft+1;this._fillCells(lt,ft,E,z)}else{lt=xt===ft?pt[0]:0;var ot=ft===ct?vt[0]:this._bufferService.cols;this._fillCells(lt,ft,ot-lt,1);var it=Math.max(ct-ft-1,0);if(this._fillCells(0,ft+1,this._bufferService.cols,it),ft!==ct){var at=dt===ct?vt[0]:this._bufferService.cols;this._fillCells(0,ct,at,1)}}this._state.start=[pt[0],pt[1]],this._state.end=[vt[0],vt[1]],this._state.columnSelectMode=yt,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},St.prototype._didStateChange=function(pt,vt,yt,xt){return!this._areCoordinatesEqual(pt,this._state.start)||!this._areCoordinatesEqual(vt,this._state.end)||yt!==this._state.columnSelectMode||xt!==this._state.ydisp},St.prototype._areCoordinatesEqual=function(pt,vt){return!(!pt||!vt)&&pt[0]===vt[0]&&pt[1]===vt[1]},St}(Ft(13).BaseRenderLayer);Rt.SelectionRenderLayer=kt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(vt,yt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,dt){xt.__proto__=dt}||function(xt,dt){for(var ft in dt)dt.hasOwnProperty(ft)&&(xt[ft]=dt[ft])})(vt,yt)},function(vt,yt){function xt(){this.constructor=vt}ie(vt,yt),vt.prototype=yt===null?Object.create(yt):(xt.prototype=yt.prototype,new xt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CursorRenderLayer=void 0;var kt=Ft(13),Ct=Ft(4),St=function(vt){function yt(xt,dt,ft,ct,lt,E,z,ot,it){var at=vt.call(this,xt,"cursor",dt,!0,ft,ct,E,z)||this;return at._onRequestRedraw=lt,at._coreService=ot,at._coreBrowserService=it,at._cell=new Ct.CellData,at._state={x:0,y:0,isFocused:!1,style:"",width:0},at._cursorRenderers={bar:at._renderBarCursor.bind(at),block:at._renderBlockCursor.bind(at),underline:at._renderUnderlineCursor.bind(at)},at}return rt(yt,vt),yt.prototype.resize=function(xt){vt.prototype.resize.call(this,xt),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},yt.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},yt.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onOptionsChanged=function(){var xt,dt=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new pt(this._coreBrowserService.isFocused,function(){dt._render(!0)})):((xt=this._cursorBlinkStateManager)===null||xt===void 0||xt.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},yt.prototype.onGridChanged=function(xt,dt){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},yt.prototype._render=function(xt){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var dt=this._bufferService.buffer.ybase+this._bufferService.buffer.y,ft=dt-this._bufferService.buffer.ydisp;if(ft<0||ft>=this._bufferService.rows)this._clearCursor();else{var ct=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(dt).loadCell(ct,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var lt=this._optionsService.options.cursorStyle;return lt&&lt!=="block"?this._cursorRenderers[lt](ct,ft,this._cell):this._renderBlurCursor(ct,ft,this._cell),this._ctx.restore(),this._state.x=ct,this._state.y=ft,this._state.isFocused=!1,this._state.style=lt,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===ct&&this._state.y===ft&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](ct,ft,this._cell),this._ctx.restore(),this._state.x=ct,this._state.y=ft,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},yt.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},yt.prototype._renderBarCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(xt,dt,this._optionsService.options.cursorWidth),this._ctx.restore()},yt.prototype._renderBlockCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(xt,dt,ft.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(ft,xt,dt),this._ctx.restore()},yt.prototype._renderUnderlineCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(xt,dt),this._ctx.restore()},yt.prototype._renderBlurCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(xt,dt,ft.getWidth(),1),this._ctx.restore()},yt}(kt.BaseRenderLayer);Rt.CursorRenderLayer=St;var pt=function(){function vt(yt,xt){this._renderCallback=xt,this.isCursorVisible=!0,yt&&this._restartInterval()}return Object.defineProperty(vt.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),vt.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},vt.prototype.restartBlinkAnimation=function(){var yt=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){yt._renderCallback(),yt._animationFrame=void 0})))},vt.prototype._restartInterval=function(yt){var xt=this;yt===void 0&&(yt=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(xt._animationTimeRestarted){var dt=600-(Date.now()-xt._animationTimeRestarted);if(xt._animationTimeRestarted=void 0,dt>0)return void xt._restartInterval(dt)}xt.isCursorVisible=!1,xt._animationFrame=window.requestAnimationFrame(function(){xt._renderCallback(),xt._animationFrame=void 0}),xt._blinkInterval=window.setInterval(function(){if(xt._animationTimeRestarted){var ft=600-(Date.now()-xt._animationTimeRestarted);return xt._animationTimeRestarted=void 0,void xt._restartInterval(ft)}xt.isCursorVisible=!xt.isCursorVisible,xt._animationFrame=window.requestAnimationFrame(function(){xt._renderCallback(),xt._animationFrame=void 0})},600)},yt)},vt.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},vt.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},vt}()},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(vt,yt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,dt){xt.__proto__=dt}||function(xt,dt){for(var ft in dt)dt.hasOwnProperty(ft)&&(xt[ft]=dt[ft])})(vt,yt)},function(vt,yt){function xt(){this.constructor=vt}ie(vt,yt),vt.prototype=yt===null?Object.create(yt):(xt.prototype=yt.prototype,new xt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.LinkRenderLayer=void 0;var kt=Ft(13),Ct=Ft(9),St=Ft(26),pt=function(vt){function yt(xt,dt,ft,ct,lt,E,z,ot){var it=vt.call(this,xt,"link",dt,!0,ft,ct,z,ot)||this;return lt.onShowLinkUnderline(function(at){return it._onShowLinkUnderline(at)}),lt.onHideLinkUnderline(function(at){return it._onHideLinkUnderline(at)}),E.onShowLinkUnderline(function(at){return it._onShowLinkUnderline(at)}),E.onHideLinkUnderline(function(at){return it._onHideLinkUnderline(at)}),it}return rt(yt,vt),yt.prototype.resize=function(xt){vt.prototype.resize.call(this,xt),this._state=void 0},yt.prototype.reset=function(){this._clearCurrentLink()},yt.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var xt=this._state.y2-this._state.y1-1;xt>0&&this._clearCells(0,this._state.y1+1,this._state.cols,xt),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},yt.prototype._onShowLinkUnderline=function(xt){if(xt.fg===Ct.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:xt.fg&&St.is256Color(xt.fg)?this._ctx.fillStyle=this._colors.ansi[xt.fg].css:this._ctx.fillStyle=this._colors.foreground.css,xt.y1===xt.y2)this._fillBottomLineAtCells(xt.x1,xt.y1,xt.x2-xt.x1);else{this._fillBottomLineAtCells(xt.x1,xt.y1,xt.cols-xt.x1);for(var dt=xt.y1+1;dt<xt.y2;dt++)this._fillBottomLineAtCells(0,dt,xt.cols);this._fillBottomLineAtCells(0,xt.y2,xt.x2)}this._state=xt},yt.prototype._onHideLinkUnderline=function(xt){this._clearCurrentLink()},yt}(kt.BaseRenderLayer);Rt.LinkRenderLayer=pt},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(vt,yt,xt,dt){var ft,ct=arguments.length,lt=ct<3?yt:dt===null?dt=Object.getOwnPropertyDescriptor(yt,xt):dt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")lt=Reflect.decorate(vt,yt,xt,dt);else for(var E=vt.length-1;E>=0;E--)(ft=vt[E])&&(lt=(ct<3?ft(lt):ct>3?ft(yt,xt,lt):ft(yt,xt))||lt);return ct>3&&lt&&Object.defineProperty(yt,xt,lt),lt},rt=this&&this.__param||function(vt,yt){return function(xt,dt){yt(xt,dt,vt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseZone=Rt.Linkifier=void 0;var kt=Ft(0),Ct=Ft(1),St=function(){function vt(yt,xt,dt){this._bufferService=yt,this._logService=xt,this._unicodeService=dt,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new kt.EventEmitter,this._onHideLinkUnderline=new kt.EventEmitter,this._onLinkTooltip=new kt.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(vt.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),vt.prototype.attachToDom=function(yt,xt){this._element=yt,this._mouseZoneManager=xt},vt.prototype.linkifyRows=function(yt,xt){var dt=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=yt,this._rowsToLinkify.end=xt):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,yt),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,xt)),this._mouseZoneManager.clearAll(yt,xt),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return dt._linkifyRows()},vt._timeBeforeLatency))},vt.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var yt=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var xt=yt.ydisp+this._rowsToLinkify.start;if(!(xt>=yt.lines.length)){for(var dt=yt.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,ft=Math.ceil(2e3/this._bufferService.cols),ct=this._bufferService.buffer.iterator(!1,xt,dt,ft,ft);ct.hasNext();)for(var lt=ct.next(),E=0;E<this._linkMatchers.length;E++)this._doLinkifyRow(lt.range.first,lt.content,this._linkMatchers[E]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},vt.prototype.registerLinkMatcher=function(yt,xt,dt){if(dt===void 0&&(dt={}),!xt)throw new Error("handler must be defined");var ft={id:this._nextLinkMatcherId++,regex:yt,handler:xt,matchIndex:dt.matchIndex,validationCallback:dt.validationCallback,hoverTooltipCallback:dt.tooltipCallback,hoverLeaveCallback:dt.leaveCallback,willLinkActivate:dt.willLinkActivate,priority:dt.priority||0};return this._addLinkMatcherToList(ft),ft.id},vt.prototype._addLinkMatcherToList=function(yt){if(this._linkMatchers.length!==0){for(var xt=this._linkMatchers.length-1;xt>=0;xt--)if(yt.priority<=this._linkMatchers[xt].priority)return void this._linkMatchers.splice(xt+1,0,yt);this._linkMatchers.splice(0,0,yt)}else this._linkMatchers.push(yt)},vt.prototype.deregisterLinkMatcher=function(yt){for(var xt=0;xt<this._linkMatchers.length;xt++)if(this._linkMatchers[xt].id===yt)return this._linkMatchers.splice(xt,1),!0;return!1},vt.prototype._doLinkifyRow=function(yt,xt,dt){for(var ft,ct=this,lt=new RegExp(dt.regex.source,(dt.regex.flags||"")+"g"),E=-1,z=function(){var it=ft[typeof dt.matchIndex!="number"?0:dt.matchIndex];if(!it)return ot._logService.debug("match found without corresponding matchIndex",ft,dt),"break";if(E=xt.indexOf(it,E+1),lt.lastIndex=E+it.length,E<0)return"break";var at=ot._bufferService.buffer.stringIndexToBufferIndex(yt,E);if(at[0]<0)return"break";var ut=ot._bufferService.buffer.lines.get(at[0]);if(!ut)return"break";var wt=ut.getFg(at[1]),Et=wt?wt>>9&511:void 0;dt.validationCallback?dt.validationCallback(it,function(At){ct._rowsTimeoutId||At&&ct._addLink(at[1],at[0]-ct._bufferService.buffer.ydisp,it,dt,Et)}):ot._addLink(at[1],at[0]-ot._bufferService.buffer.ydisp,it,dt,Et)},ot=this;(ft=lt.exec(xt))!==null&&z()!=="break";);},vt.prototype._addLink=function(yt,xt,dt,ft,ct){var lt=this;if(this._mouseZoneManager&&this._element){var E=this._unicodeService.getStringCellWidth(dt),z=yt%this._bufferService.cols,ot=xt+Math.floor(yt/this._bufferService.cols),it=(z+E)%this._bufferService.cols,at=ot+Math.floor((z+E)/this._bufferService.cols);it===0&&(it=this._bufferService.cols,at--),this._mouseZoneManager.add(new pt(z+1,ot+1,it+1,at+1,function(ut){if(ft.handler)return ft.handler(ut,dt);var wt=window.open();wt?(wt.opener=null,wt.location.href=dt):console.warn("Opening link blocked as opener could not be cleared")},function(){lt._onShowLinkUnderline.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),lt._element.classList.add("xterm-cursor-pointer")},function(ut){lt._onLinkTooltip.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),ft.hoverTooltipCallback&&ft.hoverTooltipCallback(ut,dt,{start:{x:z,y:ot},end:{x:it,y:at}})},function(){lt._onHideLinkUnderline.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),lt._element.classList.remove("xterm-cursor-pointer"),ft.hoverLeaveCallback&&ft.hoverLeaveCallback()},function(ut){return!ft.willLinkActivate||ft.willLinkActivate(ut,dt)}))}},vt.prototype._createLinkHoverEvent=function(yt,xt,dt,ft,ct){return{x1:yt,y1:xt,x2:dt,y2:ft,cols:this._bufferService.cols,fg:ct}},vt._timeBeforeLatency=200,vt=ie([rt(0,Ct.IBufferService),rt(1,Ct.ILogService),rt(2,Ct.IUnicodeService)],vt)}();Rt.Linkifier=St;var pt=function(vt,yt,xt,dt,ft,ct,lt,E,z){this.x1=vt,this.y1=yt,this.x2=xt,this.y2=dt,this.clickCallback=ft,this.hoverCallback=ct,this.tooltipCallback=lt,this.leaveCallback=E,this.willLinkActivate=z};Rt.MouseZone=pt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(it,at){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,wt){ut.__proto__=wt}||function(ut,wt){for(var Et in wt)wt.hasOwnProperty(Et)&&(ut[Et]=wt[Et])})(it,at)},function(it,at){function ut(){this.constructor=it}ie(it,at),it.prototype=at===null?Object.create(at):(ut.prototype=at.prototype,new ut)}),kt=this&&this.__decorate||function(it,at,ut,wt){var Et,At=arguments.length,_t=At<3?at:wt===null?wt=Object.getOwnPropertyDescriptor(at,ut):wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_t=Reflect.decorate(it,at,ut,wt);else for(var Mt=it.length-1;Mt>=0;Mt--)(Et=it[Mt])&&(_t=(At<3?Et(_t):At>3?Et(at,ut,_t):Et(at,ut))||_t);return At>3&&_t&&Object.defineProperty(at,ut,_t),_t},Ct=this&&this.__param||function(it,at){return function(ut,wt){at(ut,wt,it)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionService=void 0;var St=Ft(11),pt=Ft(52),vt=Ft(4),yt=Ft(0),xt=Ft(5),dt=Ft(1),ft=Ft(30),ct=Ft(53),lt=Ft(2),E="\xA0",z=new RegExp(E,"g"),ot=function(it){function at(ut,wt,Et,At,_t,Mt,jt){var Lt=it.call(this)||this;return Lt._element=ut,Lt._screenElement=wt,Lt._bufferService=Et,Lt._coreService=At,Lt._mouseService=_t,Lt._optionsService=Mt,Lt._renderService=jt,Lt._dragScrollAmount=0,Lt._enabled=!0,Lt._workCell=new vt.CellData,Lt._mouseDownTimeStamp=0,Lt._onLinuxMouseSelection=Lt.register(new yt.EventEmitter),Lt._onRedrawRequest=Lt.register(new yt.EventEmitter),Lt._onSelectionChange=Lt.register(new yt.EventEmitter),Lt._onRequestScrollLines=Lt.register(new yt.EventEmitter),Lt._mouseMoveListener=function(It){return Lt._onMouseMove(It)},Lt._mouseUpListener=function(It){return Lt._onMouseUp(It)},Lt._coreService.onUserInput(function(){Lt.hasSelection&&Lt.clearSelection()}),Lt._trimListener=Lt._bufferService.buffer.lines.onTrim(function(It){return Lt._onTrim(It)}),Lt.register(Lt._bufferService.buffers.onBufferActivate(function(It){return Lt._onBufferActivate(It)})),Lt.enable(),Lt._model=new pt.SelectionModel(Lt._bufferService),Lt._activeSelectionMode=0,Lt}return rt(at,it),Object.defineProperty(at.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),at.prototype.dispose=function(){this._removeMouseDownListeners()},at.prototype.reset=function(){this.clearSelection()},at.prototype.disable=function(){this.clearSelection(),this._enabled=!1},at.prototype.enable=function(){this._enabled=!0},Object.defineProperty(at.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"hasSelection",{get:function(){var ut=this._model.finalSelectionStart,wt=this._model.finalSelectionEnd;return!(!ut||!wt)&&(ut[0]!==wt[0]||ut[1]!==wt[1])},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"selectionText",{get:function(){var ut=this._model.finalSelectionStart,wt=this._model.finalSelectionEnd;if(!ut||!wt)return"";var Et=this._bufferService.buffer,At=[];if(this._activeSelectionMode===3){if(ut[0]===wt[0])return"";for(var _t=ut[1];_t<=wt[1];_t++){var Mt=Et.translateBufferLineToString(_t,!0,ut[0],wt[0]);At.push(Mt)}}else{var jt=ut[1]===wt[1]?wt[0]:void 0;for(At.push(Et.translateBufferLineToString(ut[1],!0,ut[0],jt)),_t=ut[1]+1;_t<=wt[1]-1;_t++){var Lt=Et.lines.get(_t);Mt=Et.translateBufferLineToString(_t,!0),Lt&&Lt.isWrapped?At[At.length-1]+=Mt:At.push(Mt)}ut[1]!==wt[1]&&(Lt=Et.lines.get(wt[1]),Mt=Et.translateBufferLineToString(wt[1],!0,0,wt[0]),Lt&&Lt.isWrapped?At[At.length-1]+=Mt:At.push(Mt))}return At.map(function(It){return It.replace(z," ")}).join(St.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),at.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},at.prototype.refresh=function(ut){var wt=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return wt._refresh()})),St.isLinux&&ut&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},at.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},at.prototype.isClickInSelection=function(ut){var wt=this._getMouseBufferCoords(ut),Et=this._model.finalSelectionStart,At=this._model.finalSelectionEnd;return!!(Et&&At&&wt)&&this._areCoordsInSelection(wt,Et,At)},at.prototype._areCoordsInSelection=function(ut,wt,Et){return ut[1]>wt[1]&&ut[1]<Et[1]||wt[1]===Et[1]&&ut[1]===wt[1]&&ut[0]>=wt[0]&&ut[0]<Et[0]||wt[1]<Et[1]&&ut[1]===Et[1]&&ut[0]<Et[0]||wt[1]<Et[1]&&ut[1]===wt[1]&&ut[0]>=wt[0]},at.prototype.selectWordAtCursor=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._selectWordAt(wt,!1),this._model.selectionEnd=void 0,this.refresh(!0))},at.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},at.prototype.selectLines=function(ut,wt){this._model.clearSelection(),ut=Math.max(ut,0),wt=Math.min(wt,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ut],this._model.selectionEnd=[this._bufferService.cols,wt],this.refresh(),this._onSelectionChange.fire()},at.prototype._onTrim=function(ut){this._model.onTrim(ut)&&this.refresh()},at.prototype._getMouseBufferCoords=function(ut){var wt=this._mouseService.getCoords(ut,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(wt)return wt[0]--,wt[1]--,wt[1]+=this._bufferService.buffer.ydisp,wt},at.prototype._getMouseEventScrollAmount=function(ut){var wt=ft.getCoordsRelativeToElement(ut,this._screenElement)[1],Et=this._renderService.dimensions.canvasHeight;return wt>=0&&wt<=Et?0:(wt>Et&&(wt-=Et),wt=Math.min(Math.max(wt,-50),50),(wt/=50)/Math.abs(wt)+Math.round(14*wt))},at.prototype.shouldForceSelection=function(ut){return St.isMac?ut.altKey&&this._optionsService.options.macOptionClickForcesSelection:ut.shiftKey},at.prototype.onMouseDown=function(ut){if(this._mouseDownTimeStamp=ut.timeStamp,(ut.button!==2||!this.hasSelection)&&ut.button===0){if(!this._enabled){if(!this.shouldForceSelection(ut))return;ut.stopPropagation()}ut.preventDefault(),this._dragScrollAmount=0,this._enabled&&ut.shiftKey?this._onIncrementalClick(ut):ut.detail===1?this._onSingleClick(ut):ut.detail===2?this._onDoubleClick(ut):ut.detail===3&&this._onTripleClick(ut),this._addMouseDownListeners(),this.refresh(!0)}},at.prototype._addMouseDownListeners=function(){var ut=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ut._dragScroll()},50)},at.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},at.prototype._onIncrementalClick=function(ut){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ut))},at.prototype._onSingleClick=function(ut){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ut)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ut),this._model.selectionStart){this._model.selectionEnd=void 0;var wt=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);wt&&wt.length!==this._model.selectionStart[0]&&wt.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},at.prototype._onDoubleClick=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._activeSelectionMode=1,this._selectWordAt(wt,!0))},at.prototype._onTripleClick=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._activeSelectionMode=2,this._selectLineAt(wt[1]))},at.prototype.shouldColumnSelect=function(ut){return ut.altKey&&!(St.isMac&&this._optionsService.options.macOptionClickForcesSelection)},at.prototype._onMouseMove=function(ut){if(ut.stopImmediatePropagation(),this._model.selectionStart){var wt=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ut),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(ut),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var Et=this._bufferService.buffer;if(this._model.selectionEnd[1]<Et.lines.length){var At=Et.lines.get(this._model.selectionEnd[1]);At&&At.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}wt&&wt[0]===this._model.selectionEnd[0]&&wt[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},at.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var ut=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ut.ydisp+this._bufferService.rows,ut.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ut.ydisp),this.refresh()}},at.prototype._onMouseUp=function(ut){var wt=ut.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&wt<500&&ut.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var Et=this._mouseService.getCoords(ut,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(Et&&Et[0]!==void 0&&Et[1]!==void 0){var At=ct.moveToCellSequence(Et[0]-1,Et[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(At,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},at.prototype._onBufferActivate=function(ut){var wt=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ut.activeBuffer.lines.onTrim(function(Et){return wt._onTrim(Et)})},at.prototype._convertViewportColToCharacterIndex=function(ut,wt){for(var Et=wt[0],At=0;wt[0]>=At;At++){var _t=ut.loadCell(At,this._workCell).getChars().length;this._workCell.getWidth()===0?Et--:_t>1&&wt[0]!==At&&(Et+=_t-1)}return Et},at.prototype.setSelection=function(ut,wt,Et){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ut,wt],this._model.selectionStartLength=Et,this.refresh()},at.prototype._getWordAt=function(ut,wt,Et,At){if(Et===void 0&&(Et=!0),At===void 0&&(At=!0),!(ut[0]>=this._bufferService.cols)){var _t=this._bufferService.buffer,Mt=_t.lines.get(ut[1]);if(Mt){var jt=_t.translateBufferLineToString(ut[1],!1),Lt=this._convertViewportColToCharacterIndex(Mt,ut),It=Lt,Ut=ut[0]-Lt,Xt=0,Gt=0,Yt=0,Ht=0;if(jt.charAt(Lt)===" "){for(;Lt>0&&jt.charAt(Lt-1)===" ";)Lt--;for(;It<jt.length&&jt.charAt(It+1)===" ";)It++}else{var ne=ut[0],ae=ut[0];Mt.getWidth(ne)===0&&(Xt++,ne--),Mt.getWidth(ae)===2&&(Gt++,ae++);var ve=Mt.getString(ae).length;for(ve>1&&(Ht+=ve-1,It+=ve-1);ne>0&&Lt>0&&!this._isCharWordSeparator(Mt.loadCell(ne-1,this._workCell));){Mt.loadCell(ne-1,this._workCell);var Kt=this._workCell.getChars().length;this._workCell.getWidth()===0?(Xt++,ne--):Kt>1&&(Yt+=Kt-1,Lt-=Kt-1),Lt--,ne--}for(;ae<Mt.length&&It+1<jt.length&&!this._isCharWordSeparator(Mt.loadCell(ae+1,this._workCell));){Mt.loadCell(ae+1,this._workCell);var re=this._workCell.getChars().length;this._workCell.getWidth()===2?(Gt++,ae++):re>1&&(Ht+=re-1,It+=re-1),It++,ae++}}It++;var we=Lt+Ut-Xt+Yt,Me=Math.min(this._bufferService.cols,It-Lt+Xt+Gt-Yt-Ht);if(wt||jt.slice(Lt,It).trim()!==""){if(Et&&we===0&&Mt.getCodePoint(0)!==32){var ke=_t.lines.get(ut[1]-1);if(ke&&Mt.isWrapped&&ke.getCodePoint(this._bufferService.cols-1)!==32){var me=this._getWordAt([this._bufferService.cols-1,ut[1]-1],!1,!0,!1);if(me){var fe=this._bufferService.cols-me.start;we-=fe,Me+=fe}}}if(At&&we+Me===this._bufferService.cols&&Mt.getCodePoint(this._bufferService.cols-1)!==32){var pe=_t.lines.get(ut[1]+1);if(pe&&pe.isWrapped&&pe.getCodePoint(0)!==32){var _e=this._getWordAt([0,ut[1]+1],!1,!1,!0);_e&&(Me+=_e.length)}}return{start:we,length:Me}}}}},at.prototype._selectWordAt=function(ut,wt){var Et=this._getWordAt(ut,wt);if(Et){for(;Et.start<0;)Et.start+=this._bufferService.cols,ut[1]--;this._model.selectionStart=[Et.start,ut[1]],this._model.selectionStartLength=Et.length}},at.prototype._selectToWordAt=function(ut){var wt=this._getWordAt(ut,!0);if(wt){for(var Et=ut[1];wt.start<0;)wt.start+=this._bufferService.cols,Et--;if(!this._model.areSelectionValuesReversed())for(;wt.start+wt.length>this._bufferService.cols;)wt.length-=this._bufferService.cols,Et++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?wt.start:wt.start+wt.length,Et]}},at.prototype._isCharWordSeparator=function(ut){return ut.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(ut.getChars())>=0},at.prototype._selectLineAt=function(ut){var wt=this._bufferService.buffer.getWrappedRangeForLine(ut);this._model.selectionStart=[0,wt.first],this._model.selectionEnd=[this._bufferService.cols,wt.last],this._model.selectionStartLength=0},at=kt([Ct(2,dt.IBufferService),Ct(3,dt.ICoreService),Ct(4,xt.IMouseService),Ct(5,dt.IOptionsService),Ct(6,xt.IRenderService)],at)}(lt.Disposable);Rt.SelectionService=ot},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionModel=void 0;var ie=function(){function rt(kt){this._bufferService=kt,this.isSelectAllActive=!1,this.selectionStartLength=0}return rt.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(rt.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(rt.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var kt=this.selectionStart[0]+this.selectionStartLength;return kt>this._bufferService.cols?[kt%this._bufferService.cols,this.selectionStart[1]+Math.floor(kt/this._bufferService.cols)]:[kt,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),rt.prototype.areSelectionValuesReversed=function(){var kt=this.selectionStart,Ct=this.selectionEnd;return!(!kt||!Ct)&&(kt[1]>Ct[1]||kt[1]===Ct[1]&&kt[0]>Ct[0])},rt.prototype.onTrim=function(kt){return this.selectionStart&&(this.selectionStart[1]-=kt),this.selectionEnd&&(this.selectionEnd[1]-=kt),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},rt}();Rt.SelectionModel=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.moveToCellSequence=void 0;var ie=Ft(12);function rt(yt,xt,dt,ft){var ct=yt-kt(dt,yt),lt=xt-kt(dt,xt);return vt(Math.abs(ct-lt)-function(E,z,ot){for(var it=0,at=E-kt(ot,E),ut=z-kt(ot,z),wt=0;wt<Math.abs(at-ut);wt++){var Et=Ct(E,z)==="A"?-1:1,At=ot.buffer.lines.get(at+Et*wt);At&&At.isWrapped&&it++}return it}(yt,xt,dt),pt(Ct(yt,xt),ft))}function kt(yt,xt){for(var dt=0,ft=yt.buffer.lines.get(xt),ct=ft&&ft.isWrapped;ct&&xt>=0&&xt<yt.rows;)dt++,ct=(ft=yt.buffer.lines.get(--xt))&&ft.isWrapped;return dt}function Ct(yt,xt){return yt>xt?"A":"B"}function St(yt,xt,dt,ft,ct,lt){for(var E=yt,z=xt,ot="";E!==dt||z!==ft;)E+=ct?1:-1,ct&&E>lt.cols-1?(ot+=lt.buffer.translateBufferLineToString(z,!1,yt,E),E=0,yt=0,z++):!ct&&E<0&&(ot+=lt.buffer.translateBufferLineToString(z,!1,0,yt+1),yt=E=lt.cols-1,z--);return ot+lt.buffer.translateBufferLineToString(z,!1,yt,E)}function pt(yt,xt){var dt=xt?"O":"[";return ie.C0.ESC+dt+yt}function vt(yt,xt){yt=Math.floor(yt);for(var dt="",ft=0;ft<yt;ft++)dt+=xt;return dt}Rt.moveToCellSequence=function(yt,xt,dt,ft){var ct,lt=dt.buffer.x,E=dt.buffer.y;if(!dt.buffer.hasScrollback)return function(ot,it,at,ut,wt,Et){return rt(it,ut,wt,Et).length===0?"":vt(St(ot,it,ot,it-kt(wt,it),!1,wt).length,pt("D",Et))}(lt,E,0,xt,dt,ft)+rt(E,xt,dt,ft)+function(ot,it,at,ut,wt,Et){var At;At=rt(it,ut,wt,Et).length>0?ut-kt(wt,ut):it;var _t=ut,Mt=function(jt,Lt,It,Ut,Xt,Gt){var Yt;return Yt=rt(It,Ut,Xt,Gt).length>0?Ut-kt(Xt,Ut):Lt,jt<It&&Yt<=Ut||jt>=It&&Yt<Ut?"C":"D"}(ot,it,at,ut,wt,Et);return vt(St(ot,At,at,_t,Mt==="C",wt).length,pt(Mt,Et))}(lt,E,yt,xt,dt,ft);if(E===xt)return ct=lt>yt?"D":"C",vt(Math.abs(lt-yt),pt(ct,ft));ct=E>xt?"D":"C";var z=Math.abs(E-xt);return vt(function(ot,it){return it.cols-ot}(E>xt?yt:lt,dt)+(z-1)*dt.cols+1+((E>xt?lt:yt)-1),pt(ct,ft))}},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(St,pt,vt,yt){var xt,dt=arguments.length,ft=dt<3?pt:yt===null?yt=Object.getOwnPropertyDescriptor(pt,vt):yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ft=Reflect.decorate(St,pt,vt,yt);else for(var ct=St.length-1;ct>=0;ct--)(xt=St[ct])&&(ft=(dt<3?xt(ft):dt>3?xt(pt,vt,ft):xt(pt,vt))||ft);return dt>3&&ft&&Object.defineProperty(pt,vt,ft),ft},rt=this&&this.__param||function(St,pt){return function(vt,yt){pt(vt,yt,St)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SoundService=void 0;var kt=Ft(1),Ct=function(){function St(pt){this._optionsService=pt}return Object.defineProperty(St,"audioContext",{get:function(){if(!St._audioContext){var pt=window.AudioContext||window.webkitAudioContext;if(!pt)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;St._audioContext=new pt}return St._audioContext},enumerable:!1,configurable:!0}),St.prototype.playBellSound=function(){var pt=St.audioContext;if(pt){var vt=pt.createBufferSource();pt.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(yt){vt.buffer=yt,vt.connect(pt.destination),vt.start(0)})}},St.prototype._base64ToArrayBuffer=function(pt){for(var vt=window.atob(pt),yt=vt.length,xt=new Uint8Array(yt),dt=0;dt<yt;dt++)xt[dt]=vt.charCodeAt(dt);return xt.buffer},St.prototype._removeMimeType=function(pt){return pt.split(",")[1]},St=ie([rt(0,kt.IOptionsService)],St)}();Rt.SoundService=Ct},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseZoneManager=void 0;var St=Ft(2),pt=Ft(7),vt=Ft(5),yt=Ft(1),xt=function(dt){function ft(ct,lt,E,z,ot,it){var at=dt.call(this)||this;return at._element=ct,at._screenElement=lt,at._bufferService=E,at._mouseService=z,at._selectionService=ot,at._optionsService=it,at._zones=[],at._areZonesActive=!1,at._lastHoverCoords=[void 0,void 0],at._initialSelectionLength=0,at.register(pt.addDisposableDomListener(at._element,"mousedown",function(ut){return at._onMouseDown(ut)})),at._mouseMoveListener=function(ut){return at._onMouseMove(ut)},at._mouseLeaveListener=function(ut){return at._onMouseLeave(ut)},at._clickListener=function(ut){return at._onClick(ut)},at}return rt(ft,dt),ft.prototype.dispose=function(){dt.prototype.dispose.call(this),this._deactivate()},ft.prototype.add=function(ct){this._zones.push(ct),this._zones.length===1&&this._activate()},ft.prototype.clearAll=function(ct,lt){if(this._zones.length!==0){ct&&lt||(ct=0,lt=this._bufferService.rows-1);for(var E=0;E<this._zones.length;E++){var z=this._zones[E];(z.y1>ct&&z.y1<=lt+1||z.y2>ct&&z.y2<=lt+1||z.y1<ct&&z.y2>lt+1)&&(this._currentZone&&this._currentZone===z&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(E--,1))}this._zones.length===0&&this._deactivate()}},ft.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},ft.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},ft.prototype._onMouseMove=function(ct){this._lastHoverCoords[0]===ct.pageX&&this._lastHoverCoords[1]===ct.pageY||(this._onHover(ct),this._lastHoverCoords=[ct.pageX,ct.pageY])},ft.prototype._onHover=function(ct){var lt=this,E=this._findZoneEventAt(ct);E!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),E&&(this._currentZone=E,E.hoverCallback&&E.hoverCallback(ct),this._tooltipTimeout=window.setTimeout(function(){return lt._onTooltip(ct)},this._optionsService.options.linkTooltipHoverDuration)))},ft.prototype._onTooltip=function(ct){this._tooltipTimeout=void 0;var lt=this._findZoneEventAt(ct);lt&&lt.tooltipCallback&&lt.tooltipCallback(ct)},ft.prototype._onMouseDown=function(ct){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var lt=this._findZoneEventAt(ct);lt!=null&&lt.willLinkActivate(ct)&&(ct.preventDefault(),ct.stopImmediatePropagation())}},ft.prototype._onMouseLeave=function(ct){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},ft.prototype._onClick=function(ct){var lt=this._findZoneEventAt(ct),E=this._getSelectionLength();lt&&E===this._initialSelectionLength&&(lt.clickCallback(ct),ct.preventDefault(),ct.stopImmediatePropagation())},ft.prototype._getSelectionLength=function(){var ct=this._selectionService.selectionText;return ct?ct.length:0},ft.prototype._findZoneEventAt=function(ct){var lt=this._mouseService.getCoords(ct,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(lt)for(var E=lt[0],z=lt[1],ot=0;ot<this._zones.length;ot++){var it=this._zones[ot];if(it.y1===it.y2){if(z===it.y1&&E>=it.x1&&E<it.x2)return it}else if(z===it.y1&&E>=it.x1||z===it.y2&&E<it.x2||z>it.y1&&z<it.y2)return it}},ft=kt([Ct(2,yt.IBufferService),Ct(3,vt.IMouseService),Ct(4,vt.ISelectionService),Ct(5,yt.IOptionsService)],ft)}(St.Disposable);Rt.MouseZoneManager=xt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(ft,ct){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(lt,E){lt.__proto__=E}||function(lt,E){for(var z in E)E.hasOwnProperty(z)&&(lt[z]=E[z])})(ft,ct)},function(ft,ct){function lt(){this.constructor=ft}ie(ft,ct),ft.prototype=ct===null?Object.create(ct):(lt.prototype=ct.prototype,new lt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.AccessibilityManager=void 0;var kt=Ft(18),Ct=Ft(11),St=Ft(31),pt=Ft(7),vt=Ft(2),yt=Ft(32),xt=Ft(17),dt=function(ft){function ct(lt,E){var z=ft.call(this)||this;z._terminal=lt,z._renderService=E,z._liveRegionLineCount=0,z._charsToConsume=[],z._charsToAnnounce="",z._accessibilityTreeRoot=document.createElement("div"),z._accessibilityTreeRoot.classList.add("xterm-accessibility"),z._rowContainer=document.createElement("div"),z._rowContainer.classList.add("xterm-accessibility-tree"),z._rowContainer.setAttribute("role","list"),z._rowElements=[];for(var ot=0;ot<z._terminal.rows;ot++)z._rowElements[ot]=z._createAccessibilityTreeNode(),z._rowContainer.appendChild(z._rowElements[ot]);if(z._topBoundaryFocusListener=function(it){return z._onBoundaryFocus(it,0)},z._bottomBoundaryFocusListener=function(it){return z._onBoundaryFocus(it,1)},z._rowElements[0].addEventListener("focus",z._topBoundaryFocusListener),z._rowElements[z._rowElements.length-1].addEventListener("focus",z._bottomBoundaryFocusListener),z._refreshRowsDimensions(),z._accessibilityTreeRoot.appendChild(z._rowContainer),z._renderRowsDebouncer=new St.RenderDebouncer(z._renderRows.bind(z)),z._refreshRows(),z._liveRegion=document.createElement("div"),z._liveRegion.classList.add("live-region"),z._liveRegion.setAttribute("aria-live","assertive"),z._accessibilityTreeRoot.appendChild(z._liveRegion),!z._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return z._terminal.element.insertAdjacentElement("afterbegin",z._accessibilityTreeRoot),z.register(z._renderRowsDebouncer),z.register(z._terminal.onResize(function(it){return z._onResize(it.rows)})),z.register(z._terminal.onRender(function(it){return z._refreshRows(it.start,it.end)})),z.register(z._terminal.onScroll(function(){return z._refreshRows()})),z.register(z._terminal.onA11yChar(function(it){return z._onChar(it)})),z.register(z._terminal.onLineFeed(function(){return z._onChar(`
`)})),z.register(z._terminal.onA11yTab(function(it){return z._onTab(it)})),z.register(z._terminal.onKey(function(it){return z._onKey(it.key)})),z.register(z._terminal.onBlur(function(){return z._clearLiveRegion()})),z.register(z._renderService.onDimensionsChange(function(){return z._refreshRowsDimensions()})),z._screenDprMonitor=new yt.ScreenDprMonitor,z.register(z._screenDprMonitor),z._screenDprMonitor.setListener(function(){return z._refreshRowsDimensions()}),z.register(pt.addDisposableDomListener(window,"resize",function(){return z._refreshRowsDimensions()})),z}return rt(ct,ft),ct.prototype.dispose=function(){ft.prototype.dispose.call(this),xt.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},ct.prototype._onBoundaryFocus=function(lt,E){var z=lt.target,ot=this._rowElements[E===0?1:this._rowElements.length-2];if(z.getAttribute("aria-posinset")!==(E===0?"1":""+this._terminal.buffer.lines.length)&&lt.relatedTarget===ot){var it,at;if(E===0?(it=z,at=this._rowElements.pop(),this._rowContainer.removeChild(at)):(it=this._rowElements.shift(),at=z,this._rowContainer.removeChild(it)),it.removeEventListener("focus",this._topBoundaryFocusListener),at.removeEventListener("focus",this._bottomBoundaryFocusListener),E===0){var ut=this._createAccessibilityTreeNode();this._rowElements.unshift(ut),this._rowContainer.insertAdjacentElement("afterbegin",ut)}else ut=this._createAccessibilityTreeNode(),this._rowElements.push(ut),this._rowContainer.appendChild(ut);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(E===0?-1:1),this._rowElements[E===0?1:this._rowElements.length-2].focus(),lt.preventDefault(),lt.stopImmediatePropagation()}},ct.prototype._onResize=function(lt){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var E=this._rowContainer.children.length;E<this._terminal.rows;E++)this._rowElements[E]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[E]);for(;this._rowElements.length>lt;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},ct.prototype._createAccessibilityTreeNode=function(){var lt=document.createElement("div");return lt.setAttribute("role","listitem"),lt.tabIndex=-1,this._refreshRowDimensions(lt),lt},ct.prototype._onTab=function(lt){for(var E=0;E<lt;E++)this._onChar(" ")},ct.prototype._onChar=function(lt){var E=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==lt&&(this._charsToAnnounce+=lt):this._charsToAnnounce+=lt,lt===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=kt.tooMuchOutput)),Ct.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){E._accessibilityTreeRoot.appendChild(E._liveRegion)},0))},ct.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,Ct.isMac&&xt.removeElementFromParent(this._liveRegion)},ct.prototype._onKey=function(lt){this._clearLiveRegion(),this._charsToConsume.push(lt)},ct.prototype._refreshRows=function(lt,E){this._renderRowsDebouncer.refresh(lt,E,this._terminal.rows)},ct.prototype._renderRows=function(lt,E){for(var z=this._terminal.buffer,ot=z.lines.length.toString(),it=lt;it<=E;it++){var at=z.translateBufferLineToString(z.ydisp+it,!0),ut=(z.ydisp+it+1).toString(),wt=this._rowElements[it];wt&&(at.length===0?wt.innerHTML="&nbsp;":wt.textContent=at,wt.setAttribute("aria-posinset",ut),wt.setAttribute("aria-setsize",ot))}this._announceCharacters()},ct.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var lt=0;lt<this._terminal.rows;lt++)this._refreshRowDimensions(this._rowElements[lt])}},ct.prototype._refreshRowDimensions=function(lt){lt.style.height=this._renderService.dimensions.actualCellHeight+"px"},ct.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},ct}(vt.Disposable);Rt.AccessibilityManager=dt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(z,ot){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(it,at){it.__proto__=at}||function(it,at){for(var ut in at)at.hasOwnProperty(ut)&&(it[ut]=at[ut])})(z,ot)},function(z,ot){function it(){this.constructor=z}ie(z,ot),z.prototype=ot===null?Object.create(ot):(it.prototype=ot.prototype,new it)}),kt=this&&this.__decorate||function(z,ot,it,at){var ut,wt=arguments.length,Et=wt<3?ot:at===null?at=Object.getOwnPropertyDescriptor(ot,it):at;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Et=Reflect.decorate(z,ot,it,at);else for(var At=z.length-1;At>=0;At--)(ut=z[At])&&(Et=(wt<3?ut(Et):wt>3?ut(ot,it,Et):ut(ot,it))||Et);return wt>3&&Et&&Object.defineProperty(ot,it,Et),Et},Ct=this&&this.__param||function(z,ot){return function(it,at){ot(it,at,z)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DomRenderer=void 0;var St=Ft(58),pt=Ft(9),vt=Ft(2),yt=Ft(5),xt=Ft(1),dt=Ft(0),ft=Ft(10),ct=Ft(17),lt=1,E=function(z){function ot(it,at,ut,wt,Et,At,_t,Mt,jt){var Lt=z.call(this)||this;return Lt._colors=it,Lt._element=at,Lt._screenElement=ut,Lt._viewportElement=wt,Lt._linkifier=Et,Lt._linkifier2=At,Lt._charSizeService=_t,Lt._optionsService=Mt,Lt._bufferService=jt,Lt._terminalClass=lt++,Lt._rowElements=[],Lt._rowContainer=document.createElement("div"),Lt._rowContainer.classList.add("xterm-rows"),Lt._rowContainer.style.lineHeight="normal",Lt._rowContainer.setAttribute("aria-hidden","true"),Lt._refreshRowElements(Lt._bufferService.cols,Lt._bufferService.rows),Lt._selectionContainer=document.createElement("div"),Lt._selectionContainer.classList.add("xterm-selection"),Lt._selectionContainer.setAttribute("aria-hidden","true"),Lt.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Lt._updateDimensions(),Lt._injectCss(),Lt._rowFactory=new St.DomRendererRowFactory(document,Lt._optionsService,Lt._colors),Lt._element.classList.add("xterm-dom-renderer-owner-"+Lt._terminalClass),Lt._screenElement.appendChild(Lt._rowContainer),Lt._screenElement.appendChild(Lt._selectionContainer),Lt._linkifier.onShowLinkUnderline(function(It){return Lt._onLinkHover(It)}),Lt._linkifier.onHideLinkUnderline(function(It){return Lt._onLinkLeave(It)}),Lt._linkifier2.onShowLinkUnderline(function(It){return Lt._onLinkHover(It)}),Lt._linkifier2.onHideLinkUnderline(function(It){return Lt._onLinkLeave(It)}),Lt}return rt(ot,z),Object.defineProperty(ot.prototype,"onRequestRedraw",{get:function(){return new dt.EventEmitter().event},enumerable:!1,configurable:!0}),ot.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),ct.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),z.prototype.dispose.call(this)},ot.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var it=0,at=this._rowElements;it<at.length;it++){var ut=at[it];ut.style.width=this.dimensions.canvasWidth+"px",ut.style.height=this.dimensions.actualCellHeight+"px",ut.style.lineHeight=this.dimensions.actualCellHeight+"px",ut.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var wt=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=wt,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},ot.prototype.setColors=function(it){this._colors=it,this._injectCss()},ot.prototype._injectCss=function(){var it=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var at=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";at+=this._terminalSelector+" span:not(."+St.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+St.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+St.ITALIC_CLASS+" { font-style: italic;}",at+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",at+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",at+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+St.CURSOR_CLASS+"."+St.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+St.CURSOR_CLASS+"."+St.CURSOR_BLINK_CLASS+":not(."+St.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+St.CURSOR_CLASS+"."+St.CURSOR_BLINK_CLASS+"."+St.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+St.CURSOR_CLASS+"."+St.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+St.CURSOR_CLASS+"."+St.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+St.CURSOR_CLASS+"."+St.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",at+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(ut,wt){at+=it._terminalSelector+" .xterm-fg-"+wt+" { color: "+ut.css+"; }"+it._terminalSelector+" .xterm-bg-"+wt+" { background-color: "+ut.css+"; }"}),at+=this._terminalSelector+" .xterm-fg-"+pt.INVERTED_DEFAULT_COLOR+" { color: "+ft.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+pt.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=at},ot.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},ot.prototype._refreshRowElements=function(it,at){for(var ut=this._rowElements.length;ut<=at;ut++){var wt=document.createElement("div");this._rowContainer.appendChild(wt),this._rowElements.push(wt)}for(;this._rowElements.length>at;)this._rowContainer.removeChild(this._rowElements.pop())},ot.prototype.onResize=function(it,at){this._refreshRowElements(it,at),this._updateDimensions()},ot.prototype.onCharSizeChanged=function(){this._updateDimensions()},ot.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},ot.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},ot.prototype.onSelectionChanged=function(it,at,ut){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(it&&at){var wt=it[1]-this._bufferService.buffer.ydisp,Et=at[1]-this._bufferService.buffer.ydisp,At=Math.max(wt,0),_t=Math.min(Et,this._bufferService.rows-1);if(!(At>=this._bufferService.rows||_t<0)){var Mt=document.createDocumentFragment();if(ut)Mt.appendChild(this._createSelectionElement(At,it[0],at[0],_t-At+1));else{var jt=wt===At?it[0]:0,Lt=At===_t?at[0]:this._bufferService.cols;Mt.appendChild(this._createSelectionElement(At,jt,Lt));var It=_t-At-1;if(Mt.appendChild(this._createSelectionElement(At+1,0,this._bufferService.cols,It)),At!==_t){var Ut=Et===_t?at[0]:this._bufferService.cols;Mt.appendChild(this._createSelectionElement(_t,0,Ut))}}this._selectionContainer.appendChild(Mt)}}},ot.prototype._createSelectionElement=function(it,at,ut,wt){wt===void 0&&(wt=1);var Et=document.createElement("div");return Et.style.height=wt*this.dimensions.actualCellHeight+"px",Et.style.top=it*this.dimensions.actualCellHeight+"px",Et.style.left=at*this.dimensions.actualCellWidth+"px",Et.style.width=this.dimensions.actualCellWidth*(ut-at)+"px",Et},ot.prototype.onCursorMove=function(){},ot.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ot.prototype.clear=function(){for(var it=0,at=this._rowElements;it<at.length;it++)at[it].innerHTML=""},ot.prototype.renderRows=function(it,at){for(var ut=this._bufferService.buffer.ybase+this._bufferService.buffer.y,wt=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),Et=this._optionsService.options.cursorBlink,At=it;At<=at;At++){var _t=this._rowElements[At];_t.innerHTML="";var Mt=At+this._bufferService.buffer.ydisp,jt=this._bufferService.buffer.lines.get(Mt),Lt=this._optionsService.options.cursorStyle;_t.appendChild(this._rowFactory.createRow(jt,Mt===ut,Lt,wt,Et,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(ot.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),ot.prototype.registerCharacterJoiner=function(it){return-1},ot.prototype.deregisterCharacterJoiner=function(it){return!1},ot.prototype._onLinkHover=function(it){this._setCellUnderline(it.x1,it.x2,it.y1,it.y2,it.cols,!0)},ot.prototype._onLinkLeave=function(it){this._setCellUnderline(it.x1,it.x2,it.y1,it.y2,it.cols,!1)},ot.prototype._setCellUnderline=function(it,at,ut,wt,Et,At){for(;it!==at||ut!==wt;){var _t=this._rowElements[ut];if(!_t)return;var Mt=_t.children[it];Mt&&(Mt.style.textDecoration=At?"underline":"none"),++it>=Et&&(it=0,ut++)}},ot=kt([Ct(6,yt.ICharSizeService),Ct(7,xt.IOptionsService),Ct(8,xt.IBufferService)],ot)}(vt.Disposable);Rt.DomRenderer=E},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DomRendererRowFactory=Rt.CURSOR_STYLE_UNDERLINE_CLASS=Rt.CURSOR_STYLE_BAR_CLASS=Rt.CURSOR_STYLE_BLOCK_CLASS=Rt.CURSOR_BLINK_CLASS=Rt.CURSOR_CLASS=Rt.UNDERLINE_CLASS=Rt.ITALIC_CLASS=Rt.DIM_CLASS=Rt.BOLD_CLASS=void 0;var ie=Ft(9),rt=Ft(3),kt=Ft(4),Ct=Ft(10);Rt.BOLD_CLASS="xterm-bold",Rt.DIM_CLASS="xterm-dim",Rt.ITALIC_CLASS="xterm-italic",Rt.UNDERLINE_CLASS="xterm-underline",Rt.CURSOR_CLASS="xterm-cursor",Rt.CURSOR_BLINK_CLASS="xterm-cursor-blink",Rt.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",Rt.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",Rt.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var St=function(){function vt(yt,xt,dt){this._document=yt,this._optionsService=xt,this._colors=dt,this._workCell=new kt.CellData}return vt.prototype.setColors=function(yt){this._colors=yt},vt.prototype.createRow=function(yt,xt,dt,ft,ct,lt,E){for(var z=this._document.createDocumentFragment(),ot=0,it=Math.min(yt.length,E)-1;it>=0;it--)if(yt.loadCell(it,this._workCell).getCode()!==rt.NULL_CELL_CODE||xt&&it===ft){ot=it+1;break}for(it=0;it<ot;it++){yt.loadCell(it,this._workCell);var at=this._workCell.getWidth();if(at!==0){var ut=this._document.createElement("span");if(at>1&&(ut.style.width=lt*at+"px"),xt&&it===ft)switch(ut.classList.add(Rt.CURSOR_CLASS),ct&&ut.classList.add(Rt.CURSOR_BLINK_CLASS),dt){case"bar":ut.classList.add(Rt.CURSOR_STYLE_BAR_CLASS);break;case"underline":ut.classList.add(Rt.CURSOR_STYLE_UNDERLINE_CLASS);break;default:ut.classList.add(Rt.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&ut.classList.add(Rt.BOLD_CLASS),this._workCell.isItalic()&&ut.classList.add(Rt.ITALIC_CLASS),this._workCell.isDim()&&ut.classList.add(Rt.DIM_CLASS),this._workCell.isUnderline()&&ut.classList.add(Rt.UNDERLINE_CLASS),this._workCell.isInvisible()?ut.textContent=rt.WHITESPACE_CELL_CHAR:ut.textContent=this._workCell.getChars()||rt.WHITESPACE_CELL_CHAR;var wt=this._workCell.getFgColor(),Et=this._workCell.getFgColorMode(),At=this._workCell.getBgColor(),_t=this._workCell.getBgColorMode(),Mt=!!this._workCell.isInverse();if(Mt){var jt=wt;wt=At,At=jt;var Lt=Et;Et=_t,_t=Lt}switch(Et){case 16777216:case 33554432:this._workCell.isBold()&&wt<8&&this._optionsService.options.drawBoldTextInBrightColors&&(wt+=8),this._applyMinimumContrast(ut,this._colors.background,this._colors.ansi[wt])||ut.classList.add("xterm-fg-"+wt);break;case 50331648:var It=Ct.rgba.toColor(wt>>16&255,wt>>8&255,255&wt);this._applyMinimumContrast(ut,this._colors.background,It)||this._addStyle(ut,"color:#"+pt(wt.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(ut,this._colors.background,this._colors.foreground)||Mt&&ut.classList.add("xterm-fg-"+ie.INVERTED_DEFAULT_COLOR)}switch(_t){case 16777216:case 33554432:ut.classList.add("xterm-bg-"+At);break;case 50331648:this._addStyle(ut,"background-color:#"+pt(At.toString(16),"0",6));break;case 0:default:Mt&&ut.classList.add("xterm-bg-"+ie.INVERTED_DEFAULT_COLOR)}z.appendChild(ut)}}return z},vt.prototype._applyMinimumContrast=function(yt,xt,dt){if(this._optionsService.options.minimumContrastRatio===1)return!1;var ft=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return ft===void 0&&(ft=Ct.color.ensureContrastRatio(xt,dt,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,ft!=null?ft:null)),!!ft&&(this._addStyle(yt,"color:"+ft.css),!0)},vt.prototype._addStyle=function(yt,xt){yt.setAttribute("style",""+(yt.getAttribute("style")||"")+xt+";")},vt}();function pt(vt,yt,xt){for(;vt.length<xt;)vt=yt+vt;return vt}Rt.DomRendererRowFactory=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.evaluateKeyboardEvent=void 0;var ie=Ft(12),rt={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};Rt.evaluateKeyboardEvent=function(kt,Ct,St,pt){var vt={type:0,cancel:!1,key:void 0},yt=(kt.shiftKey?1:0)|(kt.altKey?2:0)|(kt.ctrlKey?4:0)|(kt.metaKey?8:0);switch(kt.keyCode){case 0:kt.key==="UIKeyInputUpArrow"?vt.key=Ct?ie.C0.ESC+"OA":ie.C0.ESC+"[A":kt.key==="UIKeyInputLeftArrow"?vt.key=Ct?ie.C0.ESC+"OD":ie.C0.ESC+"[D":kt.key==="UIKeyInputRightArrow"?vt.key=Ct?ie.C0.ESC+"OC":ie.C0.ESC+"[C":kt.key==="UIKeyInputDownArrow"&&(vt.key=Ct?ie.C0.ESC+"OB":ie.C0.ESC+"[B");break;case 8:if(kt.shiftKey){vt.key=ie.C0.BS;break}if(kt.altKey){vt.key=ie.C0.ESC+ie.C0.DEL;break}vt.key=ie.C0.DEL;break;case 9:if(kt.shiftKey){vt.key=ie.C0.ESC+"[Z";break}vt.key=ie.C0.HT,vt.cancel=!0;break;case 13:vt.key=kt.altKey?ie.C0.ESC+ie.C0.CR:ie.C0.CR,vt.cancel=!0;break;case 27:vt.key=ie.C0.ESC,kt.altKey&&(vt.key=ie.C0.ESC+ie.C0.ESC),vt.cancel=!0;break;case 37:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"D",vt.key===ie.C0.ESC+"[1;3D"&&(vt.key=ie.C0.ESC+(St?"b":"[1;5D"))):vt.key=Ct?ie.C0.ESC+"OD":ie.C0.ESC+"[D";break;case 39:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"C",vt.key===ie.C0.ESC+"[1;3C"&&(vt.key=ie.C0.ESC+(St?"f":"[1;5C"))):vt.key=Ct?ie.C0.ESC+"OC":ie.C0.ESC+"[C";break;case 38:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"A",St||vt.key!==ie.C0.ESC+"[1;3A"||(vt.key=ie.C0.ESC+"[1;5A")):vt.key=Ct?ie.C0.ESC+"OA":ie.C0.ESC+"[A";break;case 40:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"B",St||vt.key!==ie.C0.ESC+"[1;3B"||(vt.key=ie.C0.ESC+"[1;5B")):vt.key=Ct?ie.C0.ESC+"OB":ie.C0.ESC+"[B";break;case 45:kt.shiftKey||kt.ctrlKey||(vt.key=ie.C0.ESC+"[2~");break;case 46:vt.key=yt?ie.C0.ESC+"[3;"+(yt+1)+"~":ie.C0.ESC+"[3~";break;case 36:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"H":Ct?ie.C0.ESC+"OH":ie.C0.ESC+"[H";break;case 35:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"F":Ct?ie.C0.ESC+"OF":ie.C0.ESC+"[F";break;case 33:kt.shiftKey?vt.type=2:vt.key=ie.C0.ESC+"[5~";break;case 34:kt.shiftKey?vt.type=3:vt.key=ie.C0.ESC+"[6~";break;case 112:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"P":ie.C0.ESC+"OP";break;case 113:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"Q":ie.C0.ESC+"OQ";break;case 114:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"R":ie.C0.ESC+"OR";break;case 115:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"S":ie.C0.ESC+"OS";break;case 116:vt.key=yt?ie.C0.ESC+"[15;"+(yt+1)+"~":ie.C0.ESC+"[15~";break;case 117:vt.key=yt?ie.C0.ESC+"[17;"+(yt+1)+"~":ie.C0.ESC+"[17~";break;case 118:vt.key=yt?ie.C0.ESC+"[18;"+(yt+1)+"~":ie.C0.ESC+"[18~";break;case 119:vt.key=yt?ie.C0.ESC+"[19;"+(yt+1)+"~":ie.C0.ESC+"[19~";break;case 120:vt.key=yt?ie.C0.ESC+"[20;"+(yt+1)+"~":ie.C0.ESC+"[20~";break;case 121:vt.key=yt?ie.C0.ESC+"[21;"+(yt+1)+"~":ie.C0.ESC+"[21~";break;case 122:vt.key=yt?ie.C0.ESC+"[23;"+(yt+1)+"~":ie.C0.ESC+"[23~";break;case 123:vt.key=yt?ie.C0.ESC+"[24;"+(yt+1)+"~":ie.C0.ESC+"[24~";break;default:if(!kt.ctrlKey||kt.shiftKey||kt.altKey||kt.metaKey)if(St&&!pt||!kt.altKey||kt.metaKey)St&&!kt.altKey&&!kt.ctrlKey&&kt.metaKey?kt.keyCode===65&&(vt.type=1):kt.key&&!kt.ctrlKey&&!kt.altKey&&!kt.metaKey&&kt.keyCode>=48&&kt.key.length===1?vt.key=kt.key:kt.key&&kt.ctrlKey&&kt.key==="_"&&(vt.key=ie.C0.US);else{var xt=rt[kt.keyCode],dt=xt&&xt[kt.shiftKey?1:0];if(dt)vt.key=ie.C0.ESC+dt;else if(kt.keyCode>=65&&kt.keyCode<=90){var ft=kt.ctrlKey?kt.keyCode-64:kt.keyCode+32;vt.key=ie.C0.ESC+String.fromCharCode(ft)}}else kt.keyCode>=65&&kt.keyCode<=90?vt.key=String.fromCharCode(kt.keyCode-64):kt.keyCode===32?vt.key=ie.C0.NUL:kt.keyCode>=51&&kt.keyCode<=55?vt.key=String.fromCharCode(kt.keyCode-51+27):kt.keyCode===56?vt.key=ie.C0.DEL:kt.keyCode===219?vt.key=ie.C0.ESC:kt.keyCode===220?vt.key=ie.C0.FS:kt.keyCode===221&&(vt.key=ie.C0.GS)}return vt}},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(lt,E){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ot){z.__proto__=ot}||function(z,ot){for(var it in ot)ot.hasOwnProperty(it)&&(z[it]=ot[it])})(lt,E)},function(lt,E){function z(){this.constructor=lt}ie(lt,E),lt.prototype=E===null?Object.create(E):(z.prototype=E.prototype,new z)}),kt=this&&this.__decorate||function(lt,E,z,ot){var it,at=arguments.length,ut=at<3?E:ot===null?ot=Object.getOwnPropertyDescriptor(E,z):ot;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ut=Reflect.decorate(lt,E,z,ot);else for(var wt=lt.length-1;wt>=0;wt--)(it=lt[wt])&&(ut=(at<3?it(ut):at>3?it(E,z,ut):it(E,z))||ut);return at>3&&ut&&Object.defineProperty(E,z,ut),ut},Ct=this&&this.__param||function(lt,E){return function(z,ot){E(z,ot,lt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.RenderService=void 0;var St=Ft(31),pt=Ft(0),vt=Ft(2),yt=Ft(32),xt=Ft(7),dt=Ft(1),ft=Ft(5),ct=function(lt){function E(z,ot,it,at,ut,wt){var Et=lt.call(this)||this;if(Et._renderer=z,Et._rowCount=ot,Et._isPaused=!1,Et._needsFullRefresh=!1,Et._isNextRenderRedrawOnly=!0,Et._needsSelectionRefresh=!1,Et._canvasWidth=0,Et._canvasHeight=0,Et._selectionState={start:void 0,end:void 0,columnSelectMode:!1},Et._onDimensionsChange=new pt.EventEmitter,Et._onRender=new pt.EventEmitter,Et._onRefreshRequest=new pt.EventEmitter,Et.register({dispose:function(){return Et._renderer.dispose()}}),Et._renderDebouncer=new St.RenderDebouncer(function(_t,Mt){return Et._renderRows(_t,Mt)}),Et.register(Et._renderDebouncer),Et._screenDprMonitor=new yt.ScreenDprMonitor,Et._screenDprMonitor.setListener(function(){return Et.onDevicePixelRatioChange()}),Et.register(Et._screenDprMonitor),Et.register(wt.onResize(function(_t){return Et._fullRefresh()})),Et.register(at.onOptionChange(function(){return Et._renderer.onOptionsChanged()})),Et.register(ut.onCharSizeChange(function(){return Et.onCharSizeChanged()})),Et._renderer.onRequestRedraw(function(_t){return Et.refreshRows(_t.start,_t.end,!0)}),Et.register(xt.addDisposableDomListener(window,"resize",function(){return Et.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var At=new IntersectionObserver(function(_t){return Et._onIntersectionChange(_t[_t.length-1])},{threshold:0});At.observe(it),Et.register({dispose:function(){return At.disconnect()}})}return Et}return rt(E,lt),Object.defineProperty(E.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),E.prototype._onIntersectionChange=function(z){this._isPaused=z.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},E.prototype.refreshRows=function(z,ot,it){it===void 0&&(it=!1),this._isPaused?this._needsFullRefresh=!0:(it||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(z,ot,this._rowCount))},E.prototype._renderRows=function(z,ot){this._renderer.renderRows(z,ot),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:z,end:ot}),this._isNextRenderRedrawOnly=!0},E.prototype.resize=function(z,ot){this._rowCount=ot,this._fireOnCanvasResize()},E.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},E.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},E.prototype.dispose=function(){lt.prototype.dispose.call(this)},E.prototype.setRenderer=function(z){var ot=this;this._renderer.dispose(),this._renderer=z,this._renderer.onRequestRedraw(function(it){return ot.refreshRows(it.start,it.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},E.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},E.prototype.setColors=function(z){this._renderer.setColors(z),this._fullRefresh()},E.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},E.prototype.onResize=function(z,ot){this._renderer.onResize(z,ot),this._fullRefresh()},E.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},E.prototype.onBlur=function(){this._renderer.onBlur()},E.prototype.onFocus=function(){this._renderer.onFocus()},E.prototype.onSelectionChanged=function(z,ot,it){this._selectionState.start=z,this._selectionState.end=ot,this._selectionState.columnSelectMode=it,this._renderer.onSelectionChanged(z,ot,it)},E.prototype.onCursorMove=function(){this._renderer.onCursorMove()},E.prototype.clear=function(){this._renderer.clear()},E.prototype.registerCharacterJoiner=function(z){return this._renderer.registerCharacterJoiner(z)},E.prototype.deregisterCharacterJoiner=function(z){return this._renderer.deregisterCharacterJoiner(z)},E=kt([Ct(3,dt.IOptionsService),Ct(4,ft.ICharSizeService),Ct(5,dt.IBufferService)],E)}(vt.Disposable);Rt.RenderService=ct},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(vt,yt,xt,dt){var ft,ct=arguments.length,lt=ct<3?yt:dt===null?dt=Object.getOwnPropertyDescriptor(yt,xt):dt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")lt=Reflect.decorate(vt,yt,xt,dt);else for(var E=vt.length-1;E>=0;E--)(ft=vt[E])&&(lt=(ct<3?ft(lt):ct>3?ft(yt,xt,lt):ft(yt,xt))||lt);return ct>3&&lt&&Object.defineProperty(yt,xt,lt),lt},rt=this&&this.__param||function(vt,yt){return function(xt,dt){yt(xt,dt,vt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CharSizeService=void 0;var kt=Ft(1),Ct=Ft(0),St=function(){function vt(yt,xt,dt){this._optionsService=dt,this.width=0,this.height=0,this._onCharSizeChange=new Ct.EventEmitter,this._measureStrategy=new pt(yt,xt,this._optionsService)}return Object.defineProperty(vt.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),vt.prototype.measure=function(){var yt=this._measureStrategy.measure();yt.width===this.width&&yt.height===this.height||(this.width=yt.width,this.height=yt.height,this._onCharSizeChange.fire())},vt=ie([rt(2,kt.IOptionsService)],vt)}();Rt.CharSizeService=St;var pt=function(){function vt(yt,xt,dt){this._document=yt,this._parentElement=xt,this._optionsService=dt,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return vt.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var yt=this._measureElement.getBoundingClientRect();return yt.width!==0&&yt.height!==0&&(this._result.width=yt.width,this._result.height=Math.ceil(yt.height)),this._result},vt}()},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(pt,vt,yt,xt){var dt,ft=arguments.length,ct=ft<3?vt:xt===null?xt=Object.getOwnPropertyDescriptor(vt,yt):xt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(pt,vt,yt,xt);else for(var lt=pt.length-1;lt>=0;lt--)(dt=pt[lt])&&(ct=(ft<3?dt(ct):ft>3?dt(vt,yt,ct):dt(vt,yt))||ct);return ft>3&&ct&&Object.defineProperty(vt,yt,ct),ct},rt=this&&this.__param||function(pt,vt){return function(yt,xt){vt(yt,xt,pt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseService=void 0;var kt=Ft(5),Ct=Ft(30),St=function(){function pt(vt,yt){this._renderService=vt,this._charSizeService=yt}return pt.prototype.getCoords=function(vt,yt,xt,dt,ft){return Ct.getCoords(vt,yt,xt,dt,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,ft)},pt.prototype.getRawByteCoords=function(vt,yt,xt,dt){var ft=this.getCoords(vt,yt,xt,dt);return Ct.getRawByteCoords(ft)},pt=ie([rt(0,kt.IRenderService),rt(1,kt.ICharSizeService)],pt)}();Rt.MouseService=St},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Linkifier2=void 0;var St=Ft(1),pt=Ft(0),vt=Ft(2),yt=Ft(7),xt=function(dt){function ft(ct){var lt=dt.call(this)||this;return lt._bufferService=ct,lt._linkProviders=[],lt._linkCacheDisposables=[],lt._isMouseOut=!0,lt._activeLine=-1,lt._onShowLinkUnderline=lt.register(new pt.EventEmitter),lt._onHideLinkUnderline=lt.register(new pt.EventEmitter),lt.register(vt.getDisposeArrayDisposable(lt._linkCacheDisposables)),lt}return rt(ft,dt),Object.defineProperty(ft.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),ft.prototype.registerLinkProvider=function(ct){var lt=this;return this._linkProviders.push(ct),{dispose:function(){var E=lt._linkProviders.indexOf(ct);E!==-1&&lt._linkProviders.splice(E,1)}}},ft.prototype.attachToDom=function(ct,lt,E){var z=this;this._element=ct,this._mouseService=lt,this._renderService=E,this.register(yt.addDisposableDomListener(this._element,"mouseleave",function(){z._isMouseOut=!0,z._clearCurrentLink()})),this.register(yt.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(yt.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},ft.prototype._onMouseMove=function(ct){if(this._lastMouseEvent=ct,this._element&&this._mouseService){var lt=this._positionFromMouseEvent(ct,this._element,this._mouseService);if(lt){this._isMouseOut=!1;for(var E=ct.composedPath(),z=0;z<E.length;z++){var ot=E[z];if(ot.classList.contains("xterm"))break;if(ot.classList.contains("xterm-hover"))return}this._lastBufferCell&&lt.x===this._lastBufferCell.x&&lt.y===this._lastBufferCell.y||(this._onHover(lt),this._lastBufferCell=lt)}}},ft.prototype._onHover=function(ct){if(this._activeLine!==ct.y)return this._clearCurrentLink(),void this._askForLink(ct,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,ct)||(this._clearCurrentLink(),this._askForLink(ct,!0))},ft.prototype._askForLink=function(ct,lt){var E=this;this._activeProviderReplies&&lt||(this._activeProviderReplies=new Map,this._activeLine=ct.y);var z=!1;this._linkProviders.forEach(function(ot,it){var at;lt?!((at=E._activeProviderReplies)===null||at===void 0)&&at.get(it)&&(z=E._checkLinkProviderResult(it,ct,z)):ot.provideLinks(ct.y,function(ut){var wt,Et;if(!E._isMouseOut){var At=ut==null?void 0:ut.map(function(_t){return{link:_t}});(wt=E._activeProviderReplies)===null||wt===void 0||wt.set(it,At),z=E._checkLinkProviderResult(it,ct,z),((Et=E._activeProviderReplies)===null||Et===void 0?void 0:Et.size)===E._linkProviders.length&&E._removeIntersectingLinks(ct.y,E._activeProviderReplies)}})})},ft.prototype._removeIntersectingLinks=function(ct,lt){for(var E=new Set,z=0;z<lt.size;z++){var ot=lt.get(z);if(ot)for(var it=0;it<ot.length;it++)for(var at=ot[it],ut=at.link.range.start.y<ct?0:at.link.range.start.x,wt=at.link.range.end.y>ct?this._bufferService.cols:at.link.range.end.x,Et=ut;Et<=wt;Et++){if(E.has(Et)){ot.splice(it--,1);break}E.add(Et)}}},ft.prototype._checkLinkProviderResult=function(ct,lt,E){var z,ot=this;if(!this._activeProviderReplies)return E;for(var it=this._activeProviderReplies.get(ct),at=!1,ut=0;ut<ct;ut++)this._activeProviderReplies.has(ut)&&!this._activeProviderReplies.get(ut)||(at=!0);if(!at&&it){var wt=it.find(function(At){return ot._linkAtPosition(At.link,lt)});wt&&(E=!0,this._handleNewLink(wt))}if(this._activeProviderReplies.size===this._linkProviders.length&&!E)for(ut=0;ut<this._activeProviderReplies.size;ut++){var Et=(z=this._activeProviderReplies.get(ut))===null||z===void 0?void 0:z.find(function(At){return ot._linkAtPosition(At.link,lt)});if(Et){E=!0,this._handleNewLink(Et);break}}return E},ft.prototype._onClick=function(ct){if(this._element&&this._mouseService&&this._currentLink){var lt=this._positionFromMouseEvent(ct,this._element,this._mouseService);lt&&this._linkAtPosition(this._currentLink.link,lt)&&this._currentLink.link.activate(ct,this._currentLink.link.text)}},ft.prototype._clearCurrentLink=function(ct,lt){this._element&&this._currentLink&&this._lastMouseEvent&&(!ct||!lt||this._currentLink.link.range.start.y>=ct&&this._currentLink.link.range.end.y<=lt)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,vt.disposeArray(this._linkCacheDisposables))},ft.prototype._handleNewLink=function(ct){var lt=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var E=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);E&&this._linkAtPosition(ct.link,E)&&(this._currentLink=ct,this._currentLink.state={decorations:{underline:ct.link.decorations===void 0||ct.link.decorations.underline,pointerCursor:ct.link.decorations===void 0||ct.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,ct.link,this._lastMouseEvent),ct.link.decorations={},Object.defineProperties(ct.link.decorations,{pointerCursor:{get:function(){var z,ot;return(ot=(z=lt._currentLink)===null||z===void 0?void 0:z.state)===null||ot===void 0?void 0:ot.decorations.pointerCursor},set:function(z){var ot,it;!((ot=lt._currentLink)===null||ot===void 0)&&ot.state&&lt._currentLink.state.decorations.pointerCursor!==z&&(lt._currentLink.state.decorations.pointerCursor=z,lt._currentLink.state.isHovered&&((it=lt._element)===null||it===void 0||it.classList.toggle("xterm-cursor-pointer",z)))}},underline:{get:function(){var z,ot;return(ot=(z=lt._currentLink)===null||z===void 0?void 0:z.state)===null||ot===void 0?void 0:ot.decorations.underline},set:function(z){var ot,it,at;!((ot=lt._currentLink)===null||ot===void 0)&&ot.state&&((at=(it=lt._currentLink)===null||it===void 0?void 0:it.state)===null||at===void 0?void 0:at.decorations.underline)!==z&&(lt._currentLink.state.decorations.underline=z,lt._currentLink.state.isHovered&&lt._fireUnderlineEvent(ct.link,z))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(z){var ot=z.start===0?0:z.start+1+lt._bufferService.buffer.ydisp;lt._clearCurrentLink(ot,z.end+1+lt._bufferService.buffer.ydisp)})))}},ft.prototype._linkHover=function(ct,lt,E){var z;!((z=this._currentLink)===null||z===void 0)&&z.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lt,!0),this._currentLink.state.decorations.pointerCursor&&ct.classList.add("xterm-cursor-pointer")),lt.hover&&lt.hover(E,lt.text)},ft.prototype._fireUnderlineEvent=function(ct,lt){var E=ct.range,z=this._bufferService.buffer.ydisp,ot=this._createLinkUnderlineEvent(E.start.x-1,E.start.y-z-1,E.end.x,E.end.y-z-1,void 0);(lt?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(ot)},ft.prototype._linkLeave=function(ct,lt,E){var z;!((z=this._currentLink)===null||z===void 0)&&z.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lt,!1),this._currentLink.state.decorations.pointerCursor&&ct.classList.remove("xterm-cursor-pointer")),lt.leave&&lt.leave(E,lt.text)},ft.prototype._linkAtPosition=function(ct,lt){var E=ct.range.start.y===ct.range.end.y,z=ct.range.start.y<lt.y,ot=ct.range.end.y>lt.y;return(E&&ct.range.start.x<=lt.x&&ct.range.end.x>=lt.x||z&&ct.range.end.x>=lt.x||ot&&ct.range.start.x<=lt.x||z&&ot)&&ct.range.start.y<=lt.y&&ct.range.end.y>=lt.y},ft.prototype._positionFromMouseEvent=function(ct,lt,E){var z=E.getCoords(ct,lt,this._bufferService.cols,this._bufferService.rows);if(z)return{x:z[0],y:z[1]+this._bufferService.buffer.ydisp}},ft.prototype._createLinkUnderlineEvent=function(ct,lt,E,z,ot){return{x1:ct,y1:lt,x2:E,y2:z,cols:this._bufferService.cols,fg:ot}},ft=kt([Ct(0,St.IBufferService)],ft)}(vt.Disposable);Rt.Linkifier2=xt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreBrowserService=void 0;var ie=function(){function rt(kt){this._textarea=kt}return Object.defineProperty(rt.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),rt}();Rt.CoreBrowserService=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(ut,wt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Et,At){Et.__proto__=At}||function(Et,At){for(var _t in At)At.hasOwnProperty(_t)&&(Et[_t]=At[_t])})(ut,wt)},function(ut,wt){function Et(){this.constructor=ut}ie(ut,wt),ut.prototype=wt===null?Object.create(wt):(Et.prototype=wt.prototype,new Et)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreTerminal=void 0;var kt=Ft(2),Ct=Ft(1),St=Ft(66),pt=Ft(67),vt=Ft(68),yt=Ft(74),xt=Ft(75),dt=Ft(0),ft=Ft(76),ct=Ft(77),lt=Ft(78),E=Ft(80),z=Ft(81),ot=Ft(19),it=Ft(82),at=function(ut){function wt(Et){var At=ut.call(this)||this;return At._onBinary=new dt.EventEmitter,At._onData=new dt.EventEmitter,At._onLineFeed=new dt.EventEmitter,At._onResize=new dt.EventEmitter,At._onScroll=new dt.EventEmitter,At._instantiationService=new St.InstantiationService,At.optionsService=new yt.OptionsService(Et),At._instantiationService.setService(Ct.IOptionsService,At.optionsService),At._bufferService=At.register(At._instantiationService.createInstance(vt.BufferService)),At._instantiationService.setService(Ct.IBufferService,At._bufferService),At._logService=At._instantiationService.createInstance(pt.LogService),At._instantiationService.setService(Ct.ILogService,At._logService),At._coreService=At.register(At._instantiationService.createInstance(xt.CoreService,function(){return At.scrollToBottom()})),At._instantiationService.setService(Ct.ICoreService,At._coreService),At._coreMouseService=At._instantiationService.createInstance(ft.CoreMouseService),At._instantiationService.setService(Ct.ICoreMouseService,At._coreMouseService),At._dirtyRowService=At._instantiationService.createInstance(ct.DirtyRowService),At._instantiationService.setService(Ct.IDirtyRowService,At._dirtyRowService),At.unicodeService=At._instantiationService.createInstance(lt.UnicodeService),At._instantiationService.setService(Ct.IUnicodeService,At.unicodeService),At._charsetService=At._instantiationService.createInstance(E.CharsetService),At._instantiationService.setService(Ct.ICharsetService,At._charsetService),At._inputHandler=new ot.InputHandler(At._bufferService,At._charsetService,At._coreService,At._dirtyRowService,At._logService,At.optionsService,At._coreMouseService,At.unicodeService),At.register(dt.forwardEvent(At._inputHandler.onLineFeed,At._onLineFeed)),At.register(At._inputHandler),At.register(dt.forwardEvent(At._bufferService.onResize,At._onResize)),At.register(dt.forwardEvent(At._coreService.onData,At._onData)),At.register(dt.forwardEvent(At._coreService.onBinary,At._onBinary)),At.register(At.optionsService.onOptionChange(function(_t){return At._updateOptions(_t)})),At._writeBuffer=new it.WriteBuffer(function(_t){return At._inputHandler.parse(_t)}),At}return rt(wt,ut),Object.defineProperty(wt.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),wt.prototype.dispose=function(){var Et;this._isDisposed||(ut.prototype.dispose.call(this),(Et=this._windowsMode)===null||Et===void 0||Et.dispose(),this._windowsMode=void 0)},wt.prototype.write=function(Et,At){this._writeBuffer.write(Et,At)},wt.prototype.writeSync=function(Et){this._writeBuffer.writeSync(Et)},wt.prototype.resize=function(Et,At){isNaN(Et)||isNaN(At)||(Et=Math.max(Et,vt.MINIMUM_COLS),At=Math.max(At,vt.MINIMUM_ROWS),this._bufferService.resize(Et,At))},wt.prototype.scroll=function(Et,At){At===void 0&&(At=!1);var _t,Mt=this._bufferService.buffer;(_t=this._cachedBlankLine)&&_t.length===this.cols&&_t.getFg(0)===Et.fg&&_t.getBg(0)===Et.bg||(_t=Mt.getBlankLine(Et,At),this._cachedBlankLine=_t),_t.isWrapped=At;var jt=Mt.ybase+Mt.scrollTop,Lt=Mt.ybase+Mt.scrollBottom;if(Mt.scrollTop===0){var It=Mt.lines.isFull;Lt===Mt.lines.length-1?It?Mt.lines.recycle().copyFrom(_t):Mt.lines.push(_t.clone()):Mt.lines.splice(Lt+1,0,_t.clone()),It?this._bufferService.isUserScrolling&&(Mt.ydisp=Math.max(Mt.ydisp-1,0)):(Mt.ybase++,this._bufferService.isUserScrolling||Mt.ydisp++)}else{var Ut=Lt-jt+1;Mt.lines.shiftElements(jt+1,Ut-1,-1),Mt.lines.set(Lt,_t.clone())}this._bufferService.isUserScrolling||(Mt.ydisp=Mt.ybase),this._dirtyRowService.markRangeDirty(Mt.scrollTop,Mt.scrollBottom),this._onScroll.fire(Mt.ydisp)},wt.prototype.scrollLines=function(Et,At){var _t=this._bufferService.buffer;if(Et<0){if(_t.ydisp===0)return;this._bufferService.isUserScrolling=!0}else Et+_t.ydisp>=_t.ybase&&(this._bufferService.isUserScrolling=!1);var Mt=_t.ydisp;_t.ydisp=Math.max(Math.min(_t.ydisp+Et,_t.ybase),0),Mt!==_t.ydisp&&(At||this._onScroll.fire(_t.ydisp))},wt.prototype.scrollPages=function(Et){this.scrollLines(Et*(this.rows-1))},wt.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},wt.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},wt.prototype.scrollToLine=function(Et){var At=Et-this._bufferService.buffer.ydisp;At!==0&&this.scrollLines(At)},wt.prototype.addEscHandler=function(Et,At){return this._inputHandler.addEscHandler(Et,At)},wt.prototype.addDcsHandler=function(Et,At){return this._inputHandler.addDcsHandler(Et,At)},wt.prototype.addCsiHandler=function(Et,At){return this._inputHandler.addCsiHandler(Et,At)},wt.prototype.addOscHandler=function(Et,At){return this._inputHandler.addOscHandler(Et,At)},wt.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},wt.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},wt.prototype._updateOptions=function(Et){var At;switch(Et){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((At=this._windowsMode)===null||At===void 0||At.dispose(),this._windowsMode=void 0)}},wt.prototype._enableWindowsMode=function(){var Et=this;if(!this._windowsMode){var At=[];At.push(this.onLineFeed(z.updateWindowsModeWrappedState.bind(null,this._bufferService))),At.push(this.addCsiHandler({final:"H"},function(){return z.updateWindowsModeWrappedState(Et._bufferService),!1})),this._windowsMode={dispose:function(){for(var _t=0,Mt=At;_t<Mt.length;_t++)Mt[_t].dispose()}}}},wt}(kt.Disposable);Rt.CoreTerminal=at},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__spreadArrays||function(){for(var pt=0,vt=0,yt=arguments.length;vt<yt;vt++)pt+=arguments[vt].length;var xt=Array(pt),dt=0;for(vt=0;vt<yt;vt++)for(var ft=arguments[vt],ct=0,lt=ft.length;ct<lt;ct++,dt++)xt[dt]=ft[ct];return xt};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.InstantiationService=Rt.ServiceCollection=void 0;var rt=Ft(1),kt=Ft(14),Ct=function(){function pt(){for(var vt=[],yt=0;yt<arguments.length;yt++)vt[yt]=arguments[yt];this._entries=new Map;for(var xt=0,dt=vt;xt<dt.length;xt++){var ft=dt[xt],ct=ft[0],lt=ft[1];this.set(ct,lt)}}return pt.prototype.set=function(vt,yt){var xt=this._entries.get(vt);return this._entries.set(vt,yt),xt},pt.prototype.forEach=function(vt){this._entries.forEach(function(yt,xt){return vt(xt,yt)})},pt.prototype.has=function(vt){return this._entries.has(vt)},pt.prototype.get=function(vt){return this._entries.get(vt)},pt}();Rt.ServiceCollection=Ct;var St=function(){function pt(){this._services=new Ct,this._services.set(rt.IInstantiationService,this)}return pt.prototype.setService=function(vt,yt){this._services.set(vt,yt)},pt.prototype.getService=function(vt){return this._services.get(vt)},pt.prototype.createInstance=function(vt){for(var yt=[],xt=1;xt<arguments.length;xt++)yt[xt-1]=arguments[xt];for(var dt=kt.getServiceDependencies(vt).sort(function(it,at){return it.index-at.index}),ft=[],ct=0,lt=dt;ct<lt.length;ct++){var E=lt[ct],z=this._services.get(E.id);if(!z)throw new Error("[createInstance] "+vt.name+" depends on UNKNOWN service "+E.id+".");ft.push(z)}var ot=dt.length>0?dt[0].index:yt.length;if(yt.length!==ot)throw new Error("[createInstance] First service dependency of "+vt.name+" at position "+(ot+1)+" conflicts with "+yt.length+" static arguments");return new(vt.bind.apply(vt,ie([void 0],ie(yt,ft))))},pt}();Rt.InstantiationService=St},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(yt,xt,dt,ft){var ct,lt=arguments.length,E=lt<3?xt:ft===null?ft=Object.getOwnPropertyDescriptor(xt,dt):ft;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(yt,xt,dt,ft);else for(var z=yt.length-1;z>=0;z--)(ct=yt[z])&&(E=(lt<3?ct(E):lt>3?ct(xt,dt,E):ct(xt,dt))||E);return lt>3&&E&&Object.defineProperty(xt,dt,E),E},rt=this&&this.__param||function(yt,xt){return function(dt,ft){xt(dt,ft,yt)}},kt=this&&this.__spreadArrays||function(){for(var yt=0,xt=0,dt=arguments.length;xt<dt;xt++)yt+=arguments[xt].length;var ft=Array(yt),ct=0;for(xt=0;xt<dt;xt++)for(var lt=arguments[xt],E=0,z=lt.length;E<z;E++,ct++)ft[ct]=lt[E];return ft};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.LogService=Rt.LogLevel=void 0;var Ct,St=Ft(1);(function(yt){yt[yt.DEBUG=0]="DEBUG",yt[yt.INFO=1]="INFO",yt[yt.WARN=2]="WARN",yt[yt.ERROR=3]="ERROR",yt[yt.OFF=4]="OFF"})(Ct=Rt.LogLevel||(Rt.LogLevel={}));var pt={debug:Ct.DEBUG,info:Ct.INFO,warn:Ct.WARN,error:Ct.ERROR,off:Ct.OFF},vt=function(){function yt(xt){var dt=this;this._optionsService=xt,this._updateLogLevel(),this._optionsService.onOptionChange(function(ft){ft==="logLevel"&&dt._updateLogLevel()})}return yt.prototype._updateLogLevel=function(){this._logLevel=pt[this._optionsService.options.logLevel]},yt.prototype._evalLazyOptionalParams=function(xt){for(var dt=0;dt<xt.length;dt++)typeof xt[dt]=="function"&&(xt[dt]=xt[dt]())},yt.prototype._log=function(xt,dt,ft){this._evalLazyOptionalParams(ft),xt.call.apply(xt,kt([console,"xterm.js: "+dt],ft))},yt.prototype.debug=function(xt){for(var dt=[],ft=1;ft<arguments.length;ft++)dt[ft-1]=arguments[ft];this._logLevel<=Ct.DEBUG&&this._log(console.log,xt,dt)},yt.prototype.info=function(xt){for(var dt=[],ft=1;ft<arguments.length;ft++)dt[ft-1]=arguments[ft];this._logLevel<=Ct.INFO&&this._log(console.info,xt,dt)},yt.prototype.warn=function(xt){for(var dt=[],ft=1;ft<arguments.length;ft++)dt[ft-1]=arguments[ft];this._logLevel<=Ct.WARN&&this._log(console.warn,xt,dt)},yt.prototype.error=function(xt){for(var dt=[],ft=1;ft<arguments.length;ft++)dt[ft-1]=arguments[ft];this._logLevel<=Ct.ERROR&&this._log(console.error,xt,dt)},yt=ie([rt(0,St.IOptionsService)],yt)}();Rt.LogService=vt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferService=Rt.MINIMUM_ROWS=Rt.MINIMUM_COLS=void 0;var St=Ft(1),pt=Ft(69),vt=Ft(0),yt=Ft(2);Rt.MINIMUM_COLS=2,Rt.MINIMUM_ROWS=1;var xt=function(dt){function ft(ct){var lt=dt.call(this)||this;return lt._optionsService=ct,lt.isUserScrolling=!1,lt._onResize=new vt.EventEmitter,lt.cols=Math.max(ct.options.cols,Rt.MINIMUM_COLS),lt.rows=Math.max(ct.options.rows,Rt.MINIMUM_ROWS),lt.buffers=new pt.BufferSet(ct,lt),lt}return rt(ft,dt),Object.defineProperty(ft.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),ft.prototype.dispose=function(){dt.prototype.dispose.call(this),this.buffers.dispose()},ft.prototype.resize=function(ct,lt){this.cols=ct,this.rows=lt,this.buffers.resize(ct,lt),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:ct,rows:lt})},ft.prototype.reset=function(){this.buffers.dispose(),this.buffers=new pt.BufferSet(this._optionsService,this),this.isUserScrolling=!1},ft=kt([Ct(0,St.IOptionsService)],ft)}(yt.Disposable);Rt.BufferService=xt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(pt,vt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,xt){yt.__proto__=xt}||function(yt,xt){for(var dt in xt)xt.hasOwnProperty(dt)&&(yt[dt]=xt[dt])})(pt,vt)},function(pt,vt){function yt(){this.constructor=pt}ie(pt,vt),pt.prototype=vt===null?Object.create(vt):(yt.prototype=vt.prototype,new yt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferSet=void 0;var kt=Ft(70),Ct=Ft(0),St=function(pt){function vt(yt,xt){var dt=pt.call(this)||this;return dt._onBufferActivate=dt.register(new Ct.EventEmitter),dt._normal=new kt.Buffer(!0,yt,xt),dt._normal.fillViewportRows(),dt._alt=new kt.Buffer(!1,yt,xt),dt._activeBuffer=dt._normal,dt.setupTabStops(),dt}return rt(vt,pt),Object.defineProperty(vt.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),vt.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},vt.prototype.activateAltBuffer=function(yt){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(yt),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},vt.prototype.resize=function(yt,xt){this._normal.resize(yt,xt),this._alt.resize(yt,xt)},vt.prototype.setupTabStops=function(yt){this._normal.setupTabStops(yt),this._alt.setupTabStops(yt)},vt}(Ft(2).Disposable);Rt.BufferSet=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferStringIterator=Rt.Buffer=Rt.MAX_BUFFER_SIZE=void 0;var ie=Ft(71),rt=Ft(16),kt=Ft(4),Ct=Ft(3),St=Ft(72),pt=Ft(73),vt=Ft(20),yt=Ft(6);Rt.MAX_BUFFER_SIZE=4294967295;var xt=function(){function ft(ct,lt,E){this._hasScrollback=ct,this._optionsService=lt,this._bufferService=E,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=rt.DEFAULT_ATTR_DATA.clone(),this.savedCharset=vt.DEFAULT_CHARSET,this.markers=[],this._nullCell=kt.CellData.fromCharData([0,Ct.NULL_CELL_CHAR,Ct.NULL_CELL_WIDTH,Ct.NULL_CELL_CODE]),this._whitespaceCell=kt.CellData.fromCharData([0,Ct.WHITESPACE_CELL_CHAR,Ct.WHITESPACE_CELL_WIDTH,Ct.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return ft.prototype.getNullCell=function(ct){return ct?(this._nullCell.fg=ct.fg,this._nullCell.bg=ct.bg,this._nullCell.extended=ct.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new yt.ExtendedAttrs),this._nullCell},ft.prototype.getWhitespaceCell=function(ct){return ct?(this._whitespaceCell.fg=ct.fg,this._whitespaceCell.bg=ct.bg,this._whitespaceCell.extended=ct.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new yt.ExtendedAttrs),this._whitespaceCell},ft.prototype.getBlankLine=function(ct,lt){return new rt.BufferLine(this._bufferService.cols,this.getNullCell(ct),lt)},Object.defineProperty(ft.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"isCursorInViewport",{get:function(){var ct=this.ybase+this.y-this.ydisp;return ct>=0&&ct<this._rows},enumerable:!1,configurable:!0}),ft.prototype._getCorrectBufferLength=function(ct){if(!this._hasScrollback)return ct;var lt=ct+this._optionsService.options.scrollback;return lt>Rt.MAX_BUFFER_SIZE?Rt.MAX_BUFFER_SIZE:lt},ft.prototype.fillViewportRows=function(ct){if(this.lines.length===0){ct===void 0&&(ct=rt.DEFAULT_ATTR_DATA);for(var lt=this._rows;lt--;)this.lines.push(this.getBlankLine(ct))}},ft.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},ft.prototype.resize=function(ct,lt){var E=this.getNullCell(rt.DEFAULT_ATTR_DATA),z=this._getCorrectBufferLength(lt);if(z>this.lines.maxLength&&(this.lines.maxLength=z),this.lines.length>0){if(this._cols<ct)for(var ot=0;ot<this.lines.length;ot++)this.lines.get(ot).resize(ct,E);var it=0;if(this._rows<lt)for(var at=this._rows;at<lt;at++)this.lines.length<lt+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new rt.BufferLine(ct,E)):this.ybase>0&&this.lines.length<=this.ybase+this.y+it+1?(this.ybase--,it++,this.ydisp>0&&this.ydisp--):this.lines.push(new rt.BufferLine(ct,E)));else for(at=this._rows;at>lt;at--)this.lines.length>lt+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(z<this.lines.maxLength){var ut=this.lines.length-z;ut>0&&(this.lines.trimStart(ut),this.ybase=Math.max(this.ybase-ut,0),this.ydisp=Math.max(this.ydisp-ut,0),this.savedY=Math.max(this.savedY-ut,0)),this.lines.maxLength=z}this.x=Math.min(this.x,ct-1),this.y=Math.min(this.y,lt-1),it&&(this.y+=it),this.savedX=Math.min(this.savedX,ct-1),this.scrollTop=0}if(this.scrollBottom=lt-1,this._isReflowEnabled&&(this._reflow(ct,lt),this._cols>ct))for(ot=0;ot<this.lines.length;ot++)this.lines.get(ot).resize(ct,E);this._cols=ct,this._rows=lt},Object.defineProperty(ft.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),ft.prototype._reflow=function(ct,lt){this._cols!==ct&&(ct>this._cols?this._reflowLarger(ct,lt):this._reflowSmaller(ct,lt))},ft.prototype._reflowLarger=function(ct,lt){var E=St.reflowLargerGetLinesToRemove(this.lines,this._cols,ct,this.ybase+this.y,this.getNullCell(rt.DEFAULT_ATTR_DATA));if(E.length>0){var z=St.reflowLargerCreateNewLayout(this.lines,E);St.reflowLargerApplyNewLayout(this.lines,z.layout),this._reflowLargerAdjustViewport(ct,lt,z.countRemoved)}},ft.prototype._reflowLargerAdjustViewport=function(ct,lt,E){for(var z=this.getNullCell(rt.DEFAULT_ATTR_DATA),ot=E;ot-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<lt&&this.lines.push(new rt.BufferLine(ct,z))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-E,0)},ft.prototype._reflowSmaller=function(ct,lt){for(var E=this.getNullCell(rt.DEFAULT_ATTR_DATA),z=[],ot=0,it=this.lines.length-1;it>=0;it--){var at=this.lines.get(it);if(!(!at||!at.isWrapped&&at.getTrimmedLength()<=ct)){for(var ut=[at];at.isWrapped&&it>0;)at=this.lines.get(--it),ut.unshift(at);var wt=this.ybase+this.y;if(!(wt>=it&&wt<it+ut.length)){var Et=ut[ut.length-1].getTrimmedLength(),At=St.reflowSmallerGetNewLineLengths(ut,this._cols,ct),_t=At.length-ut.length,Mt=void 0;Mt=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+_t):Math.max(0,this.lines.length-this.lines.maxLength+_t);for(var jt=[],Lt=0;Lt<_t;Lt++){var It=this.getBlankLine(rt.DEFAULT_ATTR_DATA,!0);jt.push(It)}jt.length>0&&(z.push({start:it+ut.length+ot,newLines:jt}),ot+=jt.length),ut.push.apply(ut,jt);var Ut=At.length-1,Xt=At[Ut];Xt===0&&(Xt=At[--Ut]);for(var Gt=ut.length-_t-1,Yt=Et;Gt>=0;){var Ht=Math.min(Yt,Xt);if(ut[Ut].copyCellsFrom(ut[Gt],Yt-Ht,Xt-Ht,Ht,!0),(Xt-=Ht)===0&&(Xt=At[--Ut]),(Yt-=Ht)===0){Gt--;var ne=Math.max(Gt,0);Yt=St.getWrappedLineTrimmedLength(ut,ne,this._cols)}}for(Lt=0;Lt<ut.length;Lt++)At[Lt]<ct&&ut[Lt].setCell(At[Lt],E);for(var ae=_t-Mt;ae-- >0;)this.ybase===0?this.y<lt-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+ot)-lt&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+_t,this.ybase+lt-1)}}}if(z.length>0){var ve=[],Kt=[];for(Lt=0;Lt<this.lines.length;Lt++)Kt.push(this.lines.get(Lt));var re=this.lines.length,we=re-1,Me=0,ke=z[Me];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+ot);var me=0;for(Lt=Math.min(this.lines.maxLength-1,re+ot-1);Lt>=0;Lt--)if(ke&&ke.start>we+me){for(var fe=ke.newLines.length-1;fe>=0;fe--)this.lines.set(Lt--,ke.newLines[fe]);Lt++,ve.push({index:we+1,amount:ke.newLines.length}),me+=ke.newLines.length,ke=z[++Me]}else this.lines.set(Lt,Kt[we--]);var pe=0;for(Lt=ve.length-1;Lt>=0;Lt--)ve[Lt].index+=pe,this.lines.onInsertEmitter.fire(ve[Lt]),pe+=ve[Lt].amount;var _e=Math.max(0,re+ot-this.lines.maxLength);_e>0&&this.lines.onTrimEmitter.fire(_e)}},ft.prototype.stringIndexToBufferIndex=function(ct,lt,E){for(E===void 0&&(E=!1);lt;){var z=this.lines.get(ct);if(!z)return[-1,-1];for(var ot=E?z.getTrimmedLength():z.length,it=0;it<ot;++it)if(z.get(it)[Ct.CHAR_DATA_WIDTH_INDEX]&&(lt-=z.get(it)[Ct.CHAR_DATA_CHAR_INDEX].length||1),lt<0)return[ct,it];ct++}return[ct,0]},ft.prototype.translateBufferLineToString=function(ct,lt,E,z){E===void 0&&(E=0);var ot=this.lines.get(ct);return ot?ot.translateToString(lt,E,z):""},ft.prototype.getWrappedRangeForLine=function(ct){for(var lt=ct,E=ct;lt>0&&this.lines.get(lt).isWrapped;)lt--;for(;E+1<this.lines.length&&this.lines.get(E+1).isWrapped;)E++;return{first:lt,last:E}},ft.prototype.setupTabStops=function(ct){for(ct!=null?this.tabs[ct]||(ct=this.prevStop(ct)):(this.tabs={},ct=0);ct<this._cols;ct+=this._optionsService.options.tabStopWidth)this.tabs[ct]=!0},ft.prototype.prevStop=function(ct){for(ct==null&&(ct=this.x);!this.tabs[--ct]&&ct>0;);return ct>=this._cols?this._cols-1:ct<0?0:ct},ft.prototype.nextStop=function(ct){for(ct==null&&(ct=this.x);!this.tabs[++ct]&&ct<this._cols;);return ct>=this._cols?this._cols-1:ct<0?0:ct},ft.prototype.addMarker=function(ct){var lt=this,E=new pt.Marker(ct);return this.markers.push(E),E.register(this.lines.onTrim(function(z){E.line-=z,E.line<0&&E.dispose()})),E.register(this.lines.onInsert(function(z){E.line>=z.index&&(E.line+=z.amount)})),E.register(this.lines.onDelete(function(z){E.line>=z.index&&E.line<z.index+z.amount&&E.dispose(),E.line>z.index&&(E.line-=z.amount)})),E.register(E.onDispose(function(){return lt._removeMarker(E)})),E},ft.prototype._removeMarker=function(ct){this.markers.splice(this.markers.indexOf(ct),1)},ft.prototype.iterator=function(ct,lt,E,z,ot){return new dt(this,ct,lt,E,z,ot)},ft}();Rt.Buffer=xt;var dt=function(){function ft(ct,lt,E,z,ot,it){E===void 0&&(E=0),z===void 0&&(z=ct.lines.length),ot===void 0&&(ot=0),it===void 0&&(it=0),this._buffer=ct,this._trimRight=lt,this._startIndex=E,this._endIndex=z,this._startOverscan=ot,this._endOverscan=it,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return ft.prototype.hasNext=function(){return this._current<this._endIndex},ft.prototype.next=function(){var ct=this._buffer.getWrappedRangeForLine(this._current);ct.first<this._startIndex-this._startOverscan&&(ct.first=this._startIndex-this._startOverscan),ct.last>this._endIndex+this._endOverscan&&(ct.last=this._endIndex+this._endOverscan),ct.first=Math.max(ct.first,0),ct.last=Math.min(ct.last,this._buffer.lines.length);for(var lt="",E=ct.first;E<=ct.last;++E)lt+=this._buffer.translateBufferLineToString(E,this._trimRight);return this._current=ct.last+1,{range:ct,content:lt}},ft}();Rt.BufferStringIterator=dt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CircularList=void 0;var ie=Ft(0),rt=function(){function kt(Ct){this._maxLength=Ct,this.onDeleteEmitter=new ie.EventEmitter,this.onInsertEmitter=new ie.EventEmitter,this.onTrimEmitter=new ie.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(kt.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"maxLength",{get:function(){return this._maxLength},set:function(Ct){if(this._maxLength!==Ct){for(var St=new Array(Ct),pt=0;pt<Math.min(Ct,this.length);pt++)St[pt]=this._array[this._getCyclicIndex(pt)];this._array=St,this._maxLength=Ct,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"length",{get:function(){return this._length},set:function(Ct){if(Ct>this._length)for(var St=this._length;St<Ct;St++)this._array[St]=void 0;this._length=Ct},enumerable:!1,configurable:!0}),kt.prototype.get=function(Ct){return this._array[this._getCyclicIndex(Ct)]},kt.prototype.set=function(Ct,St){this._array[this._getCyclicIndex(Ct)]=St},kt.prototype.push=function(Ct){this._array[this._getCyclicIndex(this._length)]=Ct,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},kt.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(kt.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),kt.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},kt.prototype.splice=function(Ct,St){for(var pt=[],vt=2;vt<arguments.length;vt++)pt[vt-2]=arguments[vt];if(St){for(var yt=Ct;yt<this._length-St;yt++)this._array[this._getCyclicIndex(yt)]=this._array[this._getCyclicIndex(yt+St)];this._length-=St}for(yt=this._length-1;yt>=Ct;yt--)this._array[this._getCyclicIndex(yt+pt.length)]=this._array[this._getCyclicIndex(yt)];for(yt=0;yt<pt.length;yt++)this._array[this._getCyclicIndex(Ct+yt)]=pt[yt];if(this._length+pt.length>this._maxLength){var xt=this._length+pt.length-this._maxLength;this._startIndex+=xt,this._length=this._maxLength,this.onTrimEmitter.fire(xt)}else this._length+=pt.length},kt.prototype.trimStart=function(Ct){Ct>this._length&&(Ct=this._length),this._startIndex+=Ct,this._length-=Ct,this.onTrimEmitter.fire(Ct)},kt.prototype.shiftElements=function(Ct,St,pt){if(!(St<=0)){if(Ct<0||Ct>=this._length)throw new Error("start argument out of range");if(Ct+pt<0)throw new Error("Cannot shift elements in list beyond index 0");if(pt>0){for(var vt=St-1;vt>=0;vt--)this.set(Ct+vt+pt,this.get(Ct+vt));var yt=Ct+St+pt-this._length;if(yt>0)for(this._length+=yt;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(vt=0;vt<St;vt++)this.set(Ct+vt+pt,this.get(Ct+vt))}},kt.prototype._getCyclicIndex=function(Ct){return(this._startIndex+Ct)%this._maxLength},kt}();Rt.CircularList=rt},function(Ke,Rt,Ft){"use strict";function ie(rt,kt,Ct){if(kt===rt.length-1)return rt[kt].getTrimmedLength();var St=!rt[kt].hasContent(Ct-1)&&rt[kt].getWidth(Ct-1)===1,pt=rt[kt+1].getWidth(0)===2;return St&&pt?Ct-1:Ct}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.getWrappedLineTrimmedLength=Rt.reflowSmallerGetNewLineLengths=Rt.reflowLargerApplyNewLayout=Rt.reflowLargerCreateNewLayout=Rt.reflowLargerGetLinesToRemove=void 0,Rt.reflowLargerGetLinesToRemove=function(rt,kt,Ct,St,pt){for(var vt=[],yt=0;yt<rt.length-1;yt++){var xt=yt,dt=rt.get(++xt);if(dt.isWrapped){for(var ft=[rt.get(yt)];xt<rt.length&&dt.isWrapped;)ft.push(dt),dt=rt.get(++xt);if(St>=yt&&St<xt)yt+=ft.length-1;else{for(var ct=0,lt=ie(ft,ct,kt),E=1,z=0;E<ft.length;){var ot=ie(ft,E,kt),it=ot-z,at=Ct-lt,ut=Math.min(it,at);ft[ct].copyCellsFrom(ft[E],z,lt,ut,!1),(lt+=ut)===Ct&&(ct++,lt=0),(z+=ut)===ot&&(E++,z=0),lt===0&&ct!==0&&ft[ct-1].getWidth(Ct-1)===2&&(ft[ct].copyCellsFrom(ft[ct-1],Ct-1,lt++,1,!1),ft[ct-1].setCell(Ct-1,pt))}ft[ct].replaceCells(lt,Ct,pt);for(var wt=0,Et=ft.length-1;Et>0&&(Et>ct||ft[Et].getTrimmedLength()===0);Et--)wt++;wt>0&&(vt.push(yt+ft.length-wt),vt.push(wt)),yt+=ft.length-1}}}return vt},Rt.reflowLargerCreateNewLayout=function(rt,kt){for(var Ct=[],St=0,pt=kt[St],vt=0,yt=0;yt<rt.length;yt++)if(pt===yt){var xt=kt[++St];rt.onDeleteEmitter.fire({index:yt-vt,amount:xt}),yt+=xt-1,vt+=xt,pt=kt[++St]}else Ct.push(yt);return{layout:Ct,countRemoved:vt}},Rt.reflowLargerApplyNewLayout=function(rt,kt){for(var Ct=[],St=0;St<kt.length;St++)Ct.push(rt.get(kt[St]));for(St=0;St<Ct.length;St++)rt.set(St,Ct[St]);rt.length=kt.length},Rt.reflowSmallerGetNewLineLengths=function(rt,kt,Ct){for(var St=[],pt=rt.map(function(lt,E){return ie(rt,E,kt)}).reduce(function(lt,E){return lt+E}),vt=0,yt=0,xt=0;xt<pt;){if(pt-xt<Ct){St.push(pt-xt);break}vt+=Ct;var dt=ie(rt,yt,kt);vt>dt&&(vt-=dt,yt++);var ft=rt[yt].getWidth(vt-1)===2;ft&&vt--;var ct=ft?Ct-1:Ct;St.push(ct),xt+=ct}return St},Rt.getWrappedLineTrimmedLength=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(St,pt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,yt){vt.__proto__=yt}||function(vt,yt){for(var xt in yt)yt.hasOwnProperty(xt)&&(vt[xt]=yt[xt])})(St,pt)},function(St,pt){function vt(){this.constructor=St}ie(St,pt),St.prototype=pt===null?Object.create(pt):(vt.prototype=pt.prototype,new vt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Marker=void 0;var kt=Ft(0),Ct=function(St){function pt(vt){var yt=St.call(this)||this;return yt.line=vt,yt._id=pt._nextId++,yt.isDisposed=!1,yt._onDispose=new kt.EventEmitter,yt}return rt(pt,St),Object.defineProperty(pt.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(pt.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),pt.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},pt._nextId=1,pt}(Ft(2).Disposable);Rt.Marker=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.OptionsService=Rt.DEFAULT_OPTIONS=Rt.DEFAULT_BELL_SOUND=void 0;var ie=Ft(0),rt=Ft(11),kt=Ft(33);Rt.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",Rt.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:Rt.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:rt.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var Ct=["cols","rows"],St=function(){function pt(vt){this._onOptionChange=new ie.EventEmitter,this.options=kt.clone(Rt.DEFAULT_OPTIONS);for(var yt=0,xt=Object.keys(vt);yt<xt.length;yt++){var dt=xt[yt];if(dt in this.options){var ft=vt[dt];this.options[dt]=ft}}}return Object.defineProperty(pt.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),pt.prototype.setOption=function(vt,yt){if(!(vt in Rt.DEFAULT_OPTIONS))throw new Error('No option with key "'+vt+'"');if(Ct.indexOf(vt)!==-1)throw new Error('Option "'+vt+'" can only be set in the constructor');this.options[vt]!==yt&&(yt=this._sanitizeAndValidateOption(vt,yt),this.options[vt]!==yt&&(this.options[vt]=yt,this._onOptionChange.fire(vt)))},pt.prototype._sanitizeAndValidateOption=function(vt,yt){switch(vt){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":yt||(yt=Rt.DEFAULT_OPTIONS[vt]);break;case"cursorWidth":yt=Math.floor(yt);case"lineHeight":case"tabStopWidth":if(yt<1)throw new Error(vt+" cannot be less than 1, value: "+yt);break;case"minimumContrastRatio":yt=Math.max(1,Math.min(21,Math.round(10*yt)/10));break;case"scrollback":if((yt=Math.min(yt,4294967295))<0)throw new Error(vt+" cannot be less than 0, value: "+yt);break;case"fastScrollSensitivity":case"scrollSensitivity":if(yt<=0)throw new Error(vt+" cannot be less than or equal to 0, value: "+yt)}return yt},pt.prototype.getOption=function(vt){if(!(vt in Rt.DEFAULT_OPTIONS))throw new Error('No option with key "'+vt+'"');return this.options[vt]},pt}();Rt.OptionsService=St},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(ct,lt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,z){E.__proto__=z}||function(E,z){for(var ot in z)z.hasOwnProperty(ot)&&(E[ot]=z[ot])})(ct,lt)},function(ct,lt){function E(){this.constructor=ct}ie(ct,lt),ct.prototype=lt===null?Object.create(lt):(E.prototype=lt.prototype,new E)}),kt=this&&this.__decorate||function(ct,lt,E,z){var ot,it=arguments.length,at=it<3?lt:z===null?z=Object.getOwnPropertyDescriptor(lt,E):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(ct,lt,E,z);else for(var ut=ct.length-1;ut>=0;ut--)(ot=ct[ut])&&(at=(it<3?ot(at):it>3?ot(lt,E,at):ot(lt,E))||at);return it>3&&at&&Object.defineProperty(lt,E,at),at},Ct=this&&this.__param||function(ct,lt){return function(E,z){lt(E,z,ct)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreService=void 0;var St=Ft(1),pt=Ft(0),vt=Ft(33),yt=Ft(2),xt=Object.freeze({insertMode:!1}),dt=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),ft=function(ct){function lt(E,z,ot,it){var at=ct.call(this)||this;return at._bufferService=z,at._logService=ot,at._optionsService=it,at.isCursorInitialized=!1,at.isCursorHidden=!1,at._onData=at.register(new pt.EventEmitter),at._onUserInput=at.register(new pt.EventEmitter),at._onBinary=at.register(new pt.EventEmitter),at._scrollToBottom=E,at.register({dispose:function(){return at._scrollToBottom=void 0}}),at.modes=vt.clone(xt),at.decPrivateModes=vt.clone(dt),at}return rt(lt,ct),Object.defineProperty(lt.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),lt.prototype.reset=function(){this.modes=vt.clone(xt),this.decPrivateModes=vt.clone(dt)},lt.prototype.triggerDataEvent=function(E,z){if(z===void 0&&(z=!1),!this._optionsService.options.disableStdin){var ot=this._bufferService.buffer;ot.ybase!==ot.ydisp&&this._scrollToBottom(),z&&this._onUserInput.fire(),this._logService.debug('sending data "'+E+'"',function(){return E.split("").map(function(it){return it.charCodeAt(0)})}),this._onData.fire(E)}},lt.prototype.triggerBinaryEvent=function(E){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+E+'"',function(){return E.split("").map(function(z){return z.charCodeAt(0)})}),this._onBinary.fire(E))},lt=kt([Ct(1,St.IBufferService),Ct(2,St.ILogService),Ct(3,St.IOptionsService)],lt)}(yt.Disposable);Rt.CoreService=ft},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},rt=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreMouseService=void 0;var kt=Ft(1),Ct=Ft(0),St={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(dt){return dt.button!==4&&dt.action===1&&(dt.ctrl=!1,dt.alt=!1,dt.shift=!1,!0)}},VT200:{events:19,restrict:function(dt){return dt.action!==32}},DRAG:{events:23,restrict:function(dt){return dt.action!==32||dt.button!==3}},ANY:{events:31,restrict:function(dt){return!0}}};function pt(dt,ft){var ct=(dt.ctrl?16:0)|(dt.shift?4:0)|(dt.alt?8:0);return dt.button===4?(ct|=64,ct|=dt.action):(ct|=3&dt.button,4&dt.button&&(ct|=64),8&dt.button&&(ct|=128),dt.action===32?ct|=32:dt.action!==0||ft||(ct|=3)),ct}var vt=String.fromCharCode,yt={DEFAULT:function(dt){var ft=[pt(dt,!1)+32,dt.col+32,dt.row+32];return ft[0]>255||ft[1]>255||ft[2]>255?"":"\x1B[M"+vt(ft[0])+vt(ft[1])+vt(ft[2])},SGR:function(dt){var ft=dt.action===0&&dt.button!==4?"m":"M";return"\x1B[<"+pt(dt,!0)+";"+dt.col+";"+dt.row+ft}},xt=function(){function dt(ft,ct){this._bufferService=ft,this._coreService=ct,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new Ct.EventEmitter,this._lastEvent=null;for(var lt=0,E=Object.keys(St);lt<E.length;lt++){var z=E[lt];this.addProtocol(z,St[z])}for(var ot=0,it=Object.keys(yt);ot<it.length;ot++){var at=it[ot];this.addEncoding(at,yt[at])}this.reset()}return dt.prototype.addProtocol=function(ft,ct){this._protocols[ft]=ct},dt.prototype.addEncoding=function(ft,ct){this._encodings[ft]=ct},Object.defineProperty(dt.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(ft){if(!this._protocols[ft])throw new Error('unknown protocol "'+ft+'"');this._activeProtocol=ft,this._onProtocolChange.fire(this._protocols[ft].events)},enumerable:!1,configurable:!0}),Object.defineProperty(dt.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(dt.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(ft){if(!this._encodings[ft])throw new Error('unknown encoding "'+ft+'"');this._activeEncoding=ft},enumerable:!1,configurable:!0}),dt.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(dt.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),dt.prototype.triggerMouseEvent=function(ft){if(ft.col<0||ft.col>=this._bufferService.cols||ft.row<0||ft.row>=this._bufferService.rows||ft.button===4&&ft.action===32||ft.button===3&&ft.action!==32||ft.button!==4&&(ft.action===2||ft.action===3)||(ft.col++,ft.row++,ft.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,ft))||!this._protocols[this._activeProtocol].restrict(ft))return!1;var ct=this._encodings[this._activeEncoding](ft);return ct&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(ct):this._coreService.triggerDataEvent(ct,!0)),this._lastEvent=ft,!0},dt.prototype.explainEvents=function(ft){return{down:!!(1&ft),up:!!(2&ft),drag:!!(4&ft),move:!!(8&ft),wheel:!!(16&ft)}},dt.prototype._compareEvents=function(ft,ct){return ft.col===ct.col&&ft.row===ct.row&&ft.button===ct.button&&ft.action===ct.action&&ft.ctrl===ct.ctrl&&ft.alt===ct.alt&&ft.shift===ct.shift},dt=ie([rt(0,kt.IBufferService),rt(1,kt.ICoreService)],dt)}();Rt.CoreMouseService=xt},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(St,pt,vt,yt){var xt,dt=arguments.length,ft=dt<3?pt:yt===null?yt=Object.getOwnPropertyDescriptor(pt,vt):yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ft=Reflect.decorate(St,pt,vt,yt);else for(var ct=St.length-1;ct>=0;ct--)(xt=St[ct])&&(ft=(dt<3?xt(ft):dt>3?xt(pt,vt,ft):xt(pt,vt))||ft);return dt>3&&ft&&Object.defineProperty(pt,vt,ft),ft},rt=this&&this.__param||function(St,pt){return function(vt,yt){pt(vt,yt,St)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DirtyRowService=void 0;var kt=Ft(1),Ct=function(){function St(pt){this._bufferService=pt,this.clearRange()}return Object.defineProperty(St.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(St.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),St.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},St.prototype.markDirty=function(pt){pt<this._start?this._start=pt:pt>this._end&&(this._end=pt)},St.prototype.markRangeDirty=function(pt,vt){if(pt>vt){var yt=pt;pt=vt,vt=yt}pt<this._start&&(this._start=pt),vt>this._end&&(this._end=vt)},St.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},St=ie([rt(0,kt.IBufferService)],St)}();Rt.DirtyRowService=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.UnicodeService=void 0;var ie=Ft(0),rt=Ft(79),kt=function(){function Ct(){this._providers=Object.create(null),this._active="",this._onChange=new ie.EventEmitter;var St=new rt.UnicodeV6;this.register(St),this._active=St.version,this._activeProvider=St}return Object.defineProperty(Ct.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"activeVersion",{get:function(){return this._active},set:function(St){if(!this._providers[St])throw new Error('unknown Unicode version "'+St+'"');this._active=St,this._activeProvider=this._providers[St],this._onChange.fire(St)},enumerable:!1,configurable:!0}),Ct.prototype.register=function(St){this._providers[St.version]=St},Ct.prototype.wcwidth=function(St){return this._activeProvider.wcwidth(St)},Ct.prototype.getStringCellWidth=function(St){for(var pt=0,vt=St.length,yt=0;yt<vt;++yt){var xt=St.charCodeAt(yt);if(55296<=xt&&xt<=56319){if(++yt>=vt)return pt+this.wcwidth(xt);var dt=St.charCodeAt(yt);56320<=dt&&dt<=57343?xt=1024*(xt-55296)+dt-56320+65536:pt+=this.wcwidth(dt)}pt+=this.wcwidth(xt)}return pt},Ct}();Rt.UnicodeService=kt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.UnicodeV6=void 0;var ie,rt=Ft(15),kt=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],Ct=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],St=function(){function pt(){if(this.version="6",!ie){ie=new Uint8Array(65536),rt.fill(ie,1),ie[0]=0,rt.fill(ie,0,1,32),rt.fill(ie,0,127,160),rt.fill(ie,2,4352,4448),ie[9001]=2,ie[9002]=2,rt.fill(ie,2,11904,42192),ie[12351]=1,rt.fill(ie,2,44032,55204),rt.fill(ie,2,63744,64256),rt.fill(ie,2,65040,65050),rt.fill(ie,2,65072,65136),rt.fill(ie,2,65280,65377),rt.fill(ie,2,65504,65511);for(var vt=0;vt<kt.length;++vt)rt.fill(ie,0,kt[vt][0],kt[vt][1]+1)}}return pt.prototype.wcwidth=function(vt){return vt<32?0:vt<127?1:vt<65536?ie[vt]:function(yt,xt){var dt,ft=0,ct=xt.length-1;if(yt<xt[0][0]||yt>xt[ct][1])return!1;for(;ct>=ft;)if(yt>xt[dt=ft+ct>>1][1])ft=dt+1;else{if(!(yt<xt[dt][0]))return!0;ct=dt-1}return!1}(vt,Ct)?0:vt>=131072&&vt<=196605||vt>=196608&&vt<=262141?2:1},pt}();Rt.UnicodeV6=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CharsetService=void 0;var ie=function(){function rt(){this.glevel=0,this._charsets=[]}return rt.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},rt.prototype.setgLevel=function(kt){this.glevel=kt,this.charset=this._charsets[kt]},rt.prototype.setgCharset=function(kt,Ct){this._charsets[kt]=Ct,this.glevel===kt&&(this.charset=Ct)},rt}();Rt.CharsetService=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.updateWindowsModeWrappedState=void 0;var ie=Ft(3);Rt.updateWindowsModeWrappedState=function(rt){var kt=rt.buffer.lines.get(rt.buffer.ybase+rt.buffer.y-1),Ct=kt==null?void 0:kt.get(rt.cols-1),St=rt.buffer.lines.get(rt.buffer.ybase+rt.buffer.y);St&&Ct&&(St.isWrapped=Ct[ie.CHAR_DATA_CODE_INDEX]!==ie.NULL_CELL_CODE&&Ct[ie.CHAR_DATA_CODE_INDEX]!==ie.WHITESPACE_CELL_CODE)}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.WriteBuffer=void 0;var ie=function(){function rt(kt){this._action=kt,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return rt.prototype.writeSync=function(kt){if(this._writeBuffer.length){for(var Ct=this._bufferOffset;Ct<this._writeBuffer.length;++Ct){var St=this._writeBuffer[Ct],pt=this._callbacks[Ct];this._action(St),pt&&pt()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(kt)},rt.prototype.write=function(kt,Ct){var St=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return St._innerWrite()})),this._pendingData+=kt.length,this._writeBuffer.push(kt),this._callbacks.push(Ct)},rt.prototype._innerWrite=function(){for(var kt=this,Ct=Date.now();this._writeBuffer.length>this._bufferOffset;){var St=this._writeBuffer[this._bufferOffset],pt=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(St),this._pendingData-=St.length,pt&&pt(),Date.now()-Ct>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return kt._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},rt}();Rt.WriteBuffer=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.AddonManager=void 0;var ie=function(){function rt(){this._addons=[]}return rt.prototype.dispose=function(){for(var kt=this._addons.length-1;kt>=0;kt--)this._addons[kt].instance.dispose()},rt.prototype.loadAddon=function(kt,Ct){var St=this,pt={instance:Ct,dispose:Ct.dispose,isDisposed:!1};this._addons.push(pt),Ct.dispose=function(){return St._wrappedAddonDispose(pt)},Ct.activate(kt)},rt.prototype._wrappedAddonDispose=function(kt){if(!kt.isDisposed){for(var Ct=-1,St=0;St<this._addons.length;St++)if(this._addons[St]===kt){Ct=St;break}if(Ct===-1)throw new Error("Could not dispose an addon that has not been loaded");kt.isDisposed=!0,kt.dispose.apply(kt.instance),this._addons.splice(Ct,1)}},rt}();Rt.AddonManager=ie}])})},90034:function(tn,Ke,Rt){var Ft={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function ie(kt){var Ct=rt(kt);return Rt(Ct)}function rt(kt){if(!Rt.o(Ft,kt)){var Ct=new Error("Cannot find module '"+kt+"'");throw Ct.code="MODULE_NOT_FOUND",Ct}return Ft[kt]}ie.keys=function(){return Object.keys(Ft)},ie.resolve=rt,tn.exports=ie,ie.id=90034},93314:function(tn){"use strict";tn.exports="data:image/png;base64,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"},68427:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAZCAYAAAArK+5dAAAAAXNSR0IArs4c6QAAA/BJREFUSEuVln9MlHUcx1/P89zB3XHHbwboyOQK+g0kWOmImsq0ZuVYy6IyV6FZTlsOLNcfTCSilbDp2MA/SnLIluY/tH7QRpCj0AtNcWEq0UKxAA/p4Dju7tseHuA4Drrz+9fzfL/v5/36fD7fX48khFCY3brWLMZp/wxYjoTBb2z2i8AD/IZifIPM1p8W0kkBAFvOAWDrgsZzByTJxoMdDwUHVMQ8gNexmRxrIbHm2JABEx43zeePoNc3UuL4NoA/mUG5YSfC/SEChbRksCaF7M/ACJy6pOkl+QhrD2xmWZF32kAS5ZZcPKMtgDzZqchwZzJEmbTnhZoQ4HDCxX5wunwqSfcOe5zVPsBefQN4N4YechClxBX2uNNmAZQrwNLJDlMsLC+ExHQwRgVnukZhqBdOH4UB1WaqxaYks63nn8mqiTLlXwQRSDIUfAzxqcGN5ypcDmjYBmN2bcQQmcGuoS4NsFdRC6gnLhWe3X/r5tNftNbAha+1N505m932M/6A2x+Gte/6AKPd4Lk5ByiB0Qq6mMBAOr+An+v/B5C6EvKLNYF7GPoWyMZ0NyQ8Fwg4+yW0fxoiQHhgqAncczJQTBBfAFErQDaAGAfXIDh7oLPhFgDzzYQuGiKz4fcmOPc5DF6EqCWQ9hRkbIKOj+D70hAzmAtQo43OhaatcPYwhFsgOQv+vgCjA2BdAwWNUJ8P104vMMmz50B4YbjFV6JFRdDdBt8Uw30F8GQdeOygj4e2MvixEnLegrs2QP2qEABuO/RVTeUhQ0YzHEwHvQFeOwWXdsBYNxjTIP0QHH0aelvh7atQcy+4xuZZpqkrIL/EV5wRm7ZMFTMs3gmV8ZCzBVZugf7Dmi78Noh7AmwN8EMpvNIG3+2C613zAJLugWc+CJxeSQfRj0NFBNz/PKyrguF2n86cCSerof0TKDoDJ16CoR4/gEM9hQgzwQu1YLAEQqIfheOFcLkZin6BCAuM90FYAogIqM0CNZCiTti/CBRjJiU3zk/v5D+BlEnXJdmQtx1M0f4QtRQT4VCXA3oj5L4HKY9A/69wsgJu9EB+FViS4NhGCEtKofivaxqgTHccITbMOMoKWBL9T1NJgrwK0JvgxMswctUXQJgZ1FVnSoAXm8FWM8DqypkbSxL7TOvwjn81397y65P18FgpZL0OvS1g/wPM6u2XD9fPQeN6DbKpZYLIlB1ArZaBemXuCy9HeKYOoiAoYxwsXaWZjw1oyzP3fYixqhAvEYk3ebNbRpLvAIZ8fxXl5tUI16vgXYYgXj10g2YF6t1rR1a62H7ZiWMwl47qUdYfipwBhGASkkQIIQG7gTygTpKkY+qH/wGGGXQpCiRkDAAAAABJRU5ErkJggg=="},58427:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAA1FJREFUSEuVlcuPFFUYxX9fz0PCIA/ZuGBp4kITY4yaNI8RHeYhEkGCGkWj4isxcU0iJj7YGJf+BSx0YwadzOgMBCU6SAk6oiJsTCTGSVwAIegEpaG+o1V1b/ftpsdgbW53btW55zvf+c61l0/pfcFWHBMgh2J1VauKVdX/4vFiv9xo3w/v5BJvja+zd+2lU7ospz9+GIHStTwkAMdDIrhHMuEgxNHx9bbWXvxJDTl9TUYRJGEaKykZJ/vxd6ysrMLI9q+zur1wUg2Jvma5oew25okk3SpKJQOyjzZY3Z7/UQ0PwKWEzq+okrSpb/hdMCo1LqgH5hIDLm5uHgjZxKDVbdcParhXjGV8vO9O21a16fqeLZNa2ruSC0WfQh+yifusbs9+35IinHq+lDJKEpkHptdIAUvk3JgyntxYAJ8IjDt1TAC7Oibslw0srNH6Ppt6wOr2zHctjf+rMZXoiSuCQ6LWiSWzTwrgp+cqKeKH3dyQWqzNx4n9Uimmh6xuT33bAQxnVbhiscnL28ouCA+4sywZoGx6k9Vt5zet5gFTH9xrW67PD9VbY4e1xnJ+aw6Rkc0UwE8eTzQuVBTznjBO/NqeI9HHsFzOqqTC7OCI1e2JAjj6OJa/uLWaQ7NYoxHZwVGr2+NfJz5OLdcNvNOSxgXlHHJjHme1i2HEmUNjAfgaxq1xbUVm0sww8u/0rGTvuV/QwCpu0RXySwucWbqcwc9GbcYey4LGIWclFpoB1tIR5fQLbgi2fHV6k703fEC7gd0SK8oMMU7Lee7wZjtmO462YtNganx9d1eMzOimnl7OCWanh2xw+ID2IN5uRmeVNQtyfifnQdvxVdW8MLa5i5/L7I63RKyEMg/WYOz8q4eJ/gZn3VkS3YD4o2aMXHVekfjbth+pGMfrKB3bZJqa44xzu4zV7nwhmJR4yMVCTYy6MeY5eyRO2iOzrcnraqGOCcxzblONZeYcc2MU51aMOYkhz3kjVHDEts3qsheN6XI5dolIzNi14iL7zg8wXzTNamzPr3K3xJvxcrAar9nDX+pDnK0ONTzcxondutzWpz8/zh3338Nmd/ZL9HYE14m+Bhvs/+RC57sbP9Xa/Aqv/6v1XYI/TYxfarB37lG7+A9W6V2xnoi5wAAAAABJRU5ErkJggg=="},2195:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAAAXNSR0IArs4c6QAAA6NJREFUSEuVlVtoHHUYxc+ZJFoToqltbchlu5tGaB9UEC0pRAQVqaLQNwtiLRIfxAcRihJIIaCNNljsiyCVmFBQUqoVxF6Il2h1qomIUhBKk+wmrdAqabEQtMn/cnR2drY7cVNwYR/m8v9xvu+c7xviBr+3WrS2phZ7HbDdSg2OPG08+vp/4+RKx7jSg6G1alyox6SRNjkCBoADYMFFCzz8xnmG1c6uCHw7o14nDUQwWwSV/gQ8OLFvjl3/C7i/XScstS0BFdWV4dQVon5klteWQ4sK+6GgH/SVD/dl/CkLPBCXWQmLrwNy9YFZ/pmcSRgczmrVktMnnvzmhfN8M3lhIKPPLdVd6hsslAKbgM0H87wavb+jRe26Wccl7uZ7G5QzHt8aqNWDfS9f4N7XNmizhPst0Vgq+eISMOuBrZE5nnCGyGcK+GKmA23Ga9wSHZ4aLJb8Tps6F4lxS7VZ8HsHdFmISc8cGC4RxyKTontJGwzxkxNvt1DOU/uPFmp2l10ebNdGR5w20B3L+xYBTQSEBiodTxLgyMGjeb4aiSsDBfH1DK5YqOm6m7EB1YCVrjvPhz6d43gKONCqNYs1mr9eZkX2AoZGscJqrjvxueOzHE4DO7XuL6M/UiEuRcYFDC1xzPpSyRVhL6WgZ6zAoRSwt1PrVAGsVOIYK7SlHi6fHgf2fJkA+zN6xQCBJxoM1Bf3LB3mBOgYucwLDpo2QrMFN1mKXuz5OgH2Zby1RE0ZUmUqPBkuAcMifv8oz8+S8D/Sobss8P6/8HfDBNib0RMGoICmJepQNVMihYcL7I5A2zZqh5N/1DFYMMSIr8GUNbhnIs/vUj18Kaf1xutSKjLlEDP8uMDux3Nu1AFPWbI4ig60lnz+hxmOJKrLOYyAf0uXlrscG1As+YCHjsSTEs11DLXkQlDH7ORZXk4p3NmqNbV1mq+6XcjQAr84+BfLoNR+DB47M8OTKWB08WzWX7RAc2XZpYkInfiVofbEFcSbJ4mPV7Dl1zx/TCvMaYuDxqxw239yRoZOeNoQZwz8rellW9yVH05NBzsBRkeBXVl1GeikIxod9IEBt1uUVldsTDieD7q3dupB6zVsiVxsSnDCQesNdK8LMDo3FTzDXVlF4ZywYoMDeo7McuTJFtX7W7B50aHR1kbfEFw9Nc2fYycV3J3DndfqcPncOc5nMlqNmzRmofscMMRodZ/N4aCAU4cLPHSjz+pKz5qyalpVq1ETcM8/YKxWMT0D64sAAAAASUVORK5CYII="},62849:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAAAXNSR0IArs4c6QAABD9JREFUSEvNlG1MU2cUx/+3hVJKoUApKTIGTBw6ZB2WbNB+YPIaZIIm7F2HMyxbS1pwMbp9IyabWbKNcBFQdC4sE1mIGmNkqJElLhvvYGGCTlYRQdrx0lBa2t6We5d7l3VgkxUSP+x8eZJ7zvmd85zzvw+BddiRI9+EOp2ub8ViUZ7d7uzj8ZiymhrNtL9Uwl8A69frGz4vKFB9olYriNFRI9Paev0HktS87S93nfD6No3mjdKYmCg4HC4cP352gCS16U8FXllZ/2Z8fOx5lUpBDA/fZ+7cGf+0tlb7xVOB/z2ak7sAugnAMZLUsqdf8xnLoUNfB3s8odLAQMrH53bjIp+PD3g8zK8mu90CxuWiF5qaPlxe/d0LOHr0lMThWGmQSMSvR0WFBRLr2sa/qNlZq9tqtV3k8ZzampqPF1iPF6HXN97Yu1eVk5WVSlCUB263x++1nwy4efM209lp+JkkNVleeFXVqR1JSfKBiopiWCw22GwOmM0WWK3LkMnCER4e4lOI9bExYnEw5PJIsDdl865c6cb09JyaJCt+5TrX6xvfystLO5+bm4aZmQW0t/diYpGCICIMlHkOyq2boFaneAv09d1Dl+EhBHIZPFYbYoKA3bszQFEr6OoaZQwG4/skqW3m4Dpd47uFhcrvVaoXcPVqL+46eYhUK8ELCADtomBq70T+jgRs2RKLyck/cfnWGGJeywVfJATjWYGlfxjx1BIyMrahp2eMGRw0ltfVac76wL/86gKi9pUiUy7CDAVMUYD9wSOE3B5CcXEmrl0bwFxiEhRpSfAwwKQLXANTp1twYH+Of3h0+TuIDAqAkwFoBlicMkHY04uSkkx0dPTDsi0FCcnPcj6LB1hhGDxq+A4H9mWvhVdV1b/EMMSugoL0z9ixsAsxCsMhVSm5GfPZxMvX8erzMmxNjsPEhBnt/Q8QW1oEgs9DEAGYB36D3DwFlSqFgw8NjR+jafoCUVnZ0ErTSCwsTH+Zhc/PL3EFTEwAgmRSOCankRoXgaysF70L7e4eQ//vJgTHPwPKsggpZUdJiQpu9wq6uzn4AEEQIz4zZyXG2uPH81hcXEZ0tARSaZiPFFnJmkwWhIYKERsbBYIgYLM5/3vm/8A3/AeB1fn/CW4w/IHk5DgIhQIMDo5j+/YECAQB7Gw5Xa+2DXfe1nYL+flKSCQhaGn5CXv2ZEIkEuLMmR9RXl64Bs6OtK/v3pM/0cnS7OzUtp07Fdx7stouXfoFOTlpCAsTgS1UVPQKRKIgNDffQFlZnjeUpmnMzVnZ2zEjIw/319VpznFqOXz4dGJEhPj+wYP5fJfLvfqxXMdeGU6CS0vL3NnR0U/PzlpSTpzQ3fU+uTpdfe3mzZt0CsVzREiIcB3QtSF2uxPDw0bGaDQ11dZqPlrznrPt6vUNWgDvEQQhZ3W7EaNp2gww5yIjZ+uqq6tpNvcvL/sz37THIYkAAAAASUVORK5CYII="},9515:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAZJJREFUSEvNkjtPAkEUhc/EQivEwkqxolFCq1Ep1s7C1hD8D5ZGEgtjbOz9DxIaKws7KDBRW0AKt+LRiJGwVBY65jBZXJhdGIgQb7LZ2bmP7557V8jHRYnpWV5MBAglAD71K9UazzSnoN6radf3R4D1O6BTUEUJW0kDlQOiJgSYjzQvZCM7vR18tfJCftjTAwiOyA9QzgCxlP8gnCoQWjMbkgZgcrsG1ArAzqlepPagfJEEENkdDekDsHgp85v06QALYWD7RN1RVbuqzvR1Gsq3HAsG+SoghMlOHTi87U8m5K0EvFeAWBLYSA5XoQE4gpcsMB8GmiUdkDsDxJzyWZfDuydaAzTLqiPKJmiwQ/rdkXjPQToC/6LR6zOL8APYxWctORrfhPee30Y2KYDFjSB+gPuba0TjW90CPHuN9zS7+NS73j867ovjd89mvgPOmd0FKXA7o9+rwo3X9jJzBeyAc3fnOLgDtVx9D/9LgdH/bRrU3UHLzkHCMs0ZK07KCyFbrxa+YUGI87GSRwWz+6Xo3g/REuYFwA5HMAAAAABJRU5ErkJggg=="},43214:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAAAXNSR0IArs4c6QAAAmFJREFUSEu1ls1rE0EUwN/smrZ+pLRR8INiD3oq2JRKEfGQzcXi2Y9T48fBP6AgHu3mDygFT0Is2uJFCqJXD2ZyVBQaD4J6MKLFerBpNxAzyX7Im2W2k82mm93YuezOe2/e733MziyBgLH4tqUDIQtBujBZ3QSo1Fyr5dkDxG/fIUCDxXemg8+TB+02+19/lTAe13+qumbEdrKPrySovGhPYE/eA4x6Bj5Zq2q4/hVLLrAW8Pc4QxlwV403WH5muMkzvHN9lD95hivPqzoQ8Hr2cDNJHSc+UAR59WgdxgYsL2abQJYDV9eqRQScHnMrfO/9kQ7g1Akb1jd3eyjP/TpByJ2xaXrU0nZqJhiGCW3A4SRo5yZc4I2Xu0B0divdgqnjFmRXD7mbgQB9k6tr86+HeBDFm3UuXykn4Gk54WX04JICE8cI/NxowI+NRjgQYUuXGx3ObqdbPAgRgGynl4Zo6bvC+x8ZuDTLeGb+yPVMk2bGTU0A0bkMFXI/EBzIez0MKqnIBB2K8uE7llAOolslIgODIhfOZaDooRxUUElDM5S/QXknYuby5sD5+m+1bRf3DYxzAEQu6aOL99s4hS9z8OHPZM/syLu0Z89dDCMD76rPAl0VrDk4r3yEaSjnC3au6zUWGWiPbIE1ssWhicpZkOcoU7dTXIc2qPePWEDhRNlOcaA81J0UP3NRjvpYQDwnr704XCKEZOL2UNw08zMqvXAKtMCz9H9cR2EBdlxPYQv61XPg14pTdAA0o2b262/P9Yw1YXDQph5wX2kAgEDGmPuL8fmbo+830DAMAEWh/wA9Tssi7VG0sQAAAABJRU5ErkJggg=="},54269:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAcZJREFUSEutlb9Lw0AUx9+1SlGLg4WWQlERiosuLnZsiZP+AcVdd93cmmzddBb/gc5Sp0I71qW7BIqVYhGMDq1IKubkHb0QL3dJ+uNNpXn3/Xzvvbt3BCLEtnlfpBCvYCqltAgUDPz9snuihy0nQQlcmInKgoIRBpECQoVFWADIB9gyH5pKx2H1kIBcwOZTXQcCrM5zhwfEAAsV5+4mEIL1dmisOavrwkoK2t8WW55eGsN+YuhKZWJ2iajc9/LHcPNhwrVlBrIxrzsewO1n3ZdHKJSIrKno6jKVh3K/7VuE3zC6PwPmNh23oZo5g6u3OxnAmBpQyxVg5DxDY9RxBRcGwF1dbOR9bqcGoBCGWH/8fy8x/Oce8xCAPcBeeINQkJcIy4Ah9gAbKqs1AhpfHR9YCZA1WeWe72DuJqvcLwQQ5H5mQC13COX+I7ulCBj99tjxFOMoeQA7y1nVRTOUo0I8SXip8ATJAHh6xBOEeewmRx12OGe01ffIIwtPUDV7rkce19MAuDjbhWhJNfyiALzCXFf5JstAp+uvqhK1JuItMSH00XecWJG/dNqaxaanJ5TCoTvwqrDdAICWtCrpuM1cqhyLO/gDpZk8IJ3d/IwAAAAASUVORK5CYII="},63604:function(tn){"use strict";tn.exports="data:image/png;base64,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"},30045:function(tn){"use strict";tn.exports="data:image/png;base64,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"},13740:function(tn){"use strict";tn.exports="data:image/png;base64,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"},58881:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAPcklEQVR4nO3da4xU5R3H8efscrNcFm3EVgQXq4mKCo2toEJY3oiNvRC5aNJWQbGpiVG8tNoXChiTxkaFJm1s4gVq+0YQg0lNrX3BEryA0bpbbk1FFkRQMQK77IIuu5z+fztOZ3eZ8zzPmTnP2XOe/X2ScZ5dWGdYnu/M/8zMDoEaIC0ndtWf6uq8NVRhg1KBnKgabScPq11tW1VtMHTv0GDY1qHB8HU/nvCL9fJLVIXUA2kJW8Z2tbctkwteKh9SQoqB9Da0Zti2M4LRd/9owh2Niioi+zQ9hThaNwYqmCofUoLKBQI1qub4qNozb2AklUktEMbhVlQgwEgql1ogu481r5Kze+REDugCAUZSmVQCwQF5d1dniyzJEVMgwEjiSyWQD9ubl4ahWilLcsQmEGAk8aQSyAfHmhvlgmbJkhyxDQQYiT3Zt+7tbms+Ipc0VpbkSJxAgJHYSSeQY82hnJFDcQMBRmLGQDxRSSDASPQYiCcqDQQYSTQG4olqAgFGUh4D8US1gQAjOR0D8UQSgQAj6YuBeCKpQICRlDAQTyQZCDCSAgbiiaQDAUTyafDJ5feev3KPfDgoMRBPuAgEuk6d/Ohw7eHZgzUSBuIJV4EAIvnW2ed/f87oWw7Jh4MKA/GEy0AAP+t+5llnTxtskTAQT7gOBAZjJAzEE2kEAoMtEgbiibQCgcEUCQPxRJqBwGCJhIF4Iu1AYDBEwkA8MRCBgO+RMBBPDFQg4HMkDMQTAxkI+BoJA/HEQAcCPkbCQDyRhUDAt0gYiCeyEgj4FAkD8USWAgFfImEgnshaIHAy7Nz46vEXr183eUenfJhLDMQTWQwE8h4JA/FEVgOBPEfCQDyR5UAgr5EwEE9kPRAYVnPGawsm3vMDWeYGA/FEHgKBvEXCQDyRl0AgT5EwEE/kKRDISyQMxBN5CwTyEAkD8UQeA4GsR8JAPJHXQCDLkTAQT+Q5EMhqJAzEE3kPBLIYCQPxhA+BQNYiYSCe8CUQyFIkDMQTPgUCJ0+d/OOiCx6+S5YDioF4wrdA4ER3++NLvvPYQ7IcMAzEEz4GAgMdCQPxhK+BwEBGwkA84XMgMFCRMBBPdIdd6t3D/5SVvwYiEgbika1f/F3+67dhNSMeXjBx6WOyTAUD8QhGLIxaPutW3cdHBCPnLjx/aSp3lwzEI59+uVft69glK78NrRm2beHE+66QpXMMxDPvH2lUnadOyMpvQ4MR16VxL8JAPHOk8zP132P/kpXfzqj5xtobJ959kyydYiAe+vyrA2pP+79l5a8hNcO33zTx3stl6RQD8RQi2dexs+fhXx/VqtrPb67/1ThZOsVAPIY4EMlhGbuw9s1P6x9yvn+dXwAwkIF3vLtNdZ3q+vr8pHwm/xrOme98/zq/AGAg5MKFo6c437/OLwAYCLnAQIg0GAiRBgMh0mAgRBoMhEiDgRBpMBAiDQZCpMFAiDQYCJEGAyHSYCBEGgyESIOBEGkwECINBkKkwUCINBgIkQYDIdJgIEQaXgTSsHrs2GfnbzoiS6JELXlp1pmNi48elaUzTgNBHF+Fpzb+ZcHmqfIhUaJ+vm5m0/CgZrbLSJwFUowjVOHUvy54Qz5DlKyfrZshGzhwGomzQK5+fsz7iEOWioGQCwgEAoeROAlk+uoxq1UYLlJfYyDkQjEQCBxFkngg/eMABkIu9A4EAgeRJBpIuTiAgZAL/QOBIOFIEgskKg5gIORCuUC+1rjltmOz5bxqgZyqposDGAi5oAlEdnawZsvitsWyqkogp6qY4gAGQi5oA4EEIgnkVDGbOICBkAvGQKDKSAI5VcQ2DmAg5IJVIFBFJIGcYosTBzAQcsE6EKgwkkBOscSNAxgIuRArEKggkkBO1iqJAxgIuRA7EIgZSSAnK5XGAQyEXKgoEIgRSSAno2riAAZCLlQcCFhGEshJq9o4gIGQC1UFAhaRBHKKlEQcwEDIhaoDAUMkgZzKmr56bIMKu5erBEggs+SMKFESyCY5q1pNULv0rcVHm2R5mkBOzvFNG8iFAX3Thnlvjl+lQjVFllW7YOTlDYooYXs6tjWqJASqef21B5bK6jSRgdy4eXyjCsJZsiTyWxhsennmgQZVBgMhYiBEGgyESIOBEGkwECINBkKkwUCINBgIkQYDIdJgIEQaDIRIg4EQaTCQwWNkbZ2qH3mpGjlkjJxPls8UYI3Pwd6OHaqjq01WpfXejp2qo7tVPjMIMZC+bppwv1o48T5ZRTv05X5153vTZZWsH557h1o8abnS2dH6tnpk+3xZ6SGGyXXTezb/5Lqr1SQ5HzmkTn6lMi3tO9SOtrd6Ln9H65bBEwwD6csmEHig6TrVIrewSXpiyutq0qjSLXs52KA2gay/9oD8142Orlb1zhf/UGv3P6UOfbVfPuMxBtKXbSB/O/isWt2yTFbJGDd8gnr6e1tkpZeFQHrb+Nla9eonzyZ+Y5EZDKSvxZNWyKizRFZ6SY9ZNuNV0bw3x8t/9dIKpOj5Pct6QvEOA+nr0cte6pnZbSQ5ZtmMV0VZDAS2t76lfrdriV/HJwykrziBJDVm2Y5XRVkNBHB8smz7gsRuOAYcA+krTiBJjVlxxiu4ZculxlvpgQoEvIqEgfQVZ9SBJMasuJf5yLYFPQ+56tgEggN+KJ4XFW8gcM929ojzZBUfbjweaJpjDDnzGEhfNhurt2rHLGzCOOMVJBHI2o+eUi/uf1JWerh+COaqs65XV31zjnzGHo5JcE+SawykL9PG6g+3lNWMWXHHK0gzkN4Qy8KJ96vZ4+w3/R8+uFdtPLRWVjnFQPoybaxyqhmznr5yixo3YoKs7D2+63b1zuHXZBXN9OeoJJAi3JvcddFKeWa+8PIUHRyP3Pnu1fkdtRhICW4h4447UOmYhZd/PDH1dVnFY7O5XQYC+F7hAQ2bY5TVLcvle/SMrHKIgZRMHnONevTydbKKp9Ixy/ZJyf5sNrfrQACBr5BITPcklX5/MoGBlFQaCFQyZlUyXoHN5k4jELA9hrIZCzOJgZRUE0jcMQu3vpWMV7Dx0Do5+C37fsr/l1Yg8KcrtxpHLZvrnEkMpGT2uIU9B59R8PMRePl4OXHHCNN49fmXH0duOjxvYXrBYpqBmL5vgJfLP9B8naxyhoGUmF7Ji4NN3TgRZ8zSjVcIET+ohOcfyslaIPDCtF3GYxGbVwBkDgMpMQVy57vTtY9y2Y5ZpvEKIV511pxcBfLgxc8bn0i0ef4mcxhIiSkQvEjwSdnY1Y5ZpvEKIWJkiQrE5nLSDsRmzEL4uXu4l4GUmG4FEYjpURubMcs0Xt0v/w88xxAVCOC66KQdiM0DHElfZioYSInNpsQTZNWMWTbjFW5lba6LTtqBmL4vkPRlpoKBlOg2JR5V+uV702SlqhqzbMYr/Jy36fdlLRAwXabNsVPmMJASXSC9/3KrGbNsxiswHQ/pLgNMm5WBWGIgJS9M2ykPVdbJ6nS9/3JN40TUmGU7XoEpENMjQqbNmnQgeJuhF6bvlFW0qO9LpjGQEt2m6h0IVDJmmcam4ngFeQuEB+m9MJDKxizb8QryFgheAv/gJc/JKlrSl5kKBlKi21T9A4k7ZsUZr8AUSP/f35/uzwJJb1bTvSPk8gWLDKTANCL0DwTijFmmDdR7vAJTIKYNnnYgNj9XX+5eNfMYSEElgcQZs+KMV5CnQEz3pkWmh6YziYEUmALBe9E+/p/bZFVi2hjFMSvueAWm62Pa4GkGctdFq5Tp59TL3cDkAgMpqHRD2oxZcccrMF0f04ZLKxDTjURRuRuBXGAgBZWONDZj1q8vfi7WeAV5CQR/tmnfvF5WeuVuBHKBgRRUGojpFhTvDXVZ3TWyKi/qljUPgZi+Z0Wm65ppDKTA9Jet21C6l6iYRN2yZj2QG769RN12wQpZmZmes8k0BlJgOk7QbSibn4UoJ2q8AlMgoHtUyFUgeEkJRsrZ5yyUj8xMIWceAykw3QvoNhQ2jel1SOVEjVeQtUDwZ7zh3Nt7bkSiXq9WDo7Big915xIDKagmEDD9sFU5UeMVmB4ahmoCwb8MhbcEjfoHOhEE/sFPfE9w0h1HRTF9z3KBgRRUG0jcMUs3XhWZNrnuTRBMX+taueeNcomBFJheKmF6HRFuceOMWbrxqsi0yXUHv6avdQnx47pFxZsrDKTAtKHwFx61GYvijFm68aqomutk+lpXcM+Bd3T3Ig5gIAWmDaXbjEW2YxZuYU3jFVRznUxfmzS8jxdeVoPjGq8wkALThtJtxiLbMctmvALTddKNfaavTRKCx3Ux3SPmEgOx29g2gYDNmGUzXoFpk+seODB9bRLwHMeLch1svi+5xUDsnnOwDcQ0ZmFT2T5xZtrkukAQKh6VM70daFx4d5ftbW/LZT9pFXnuMZDCcw54Jl0H87XNE164N9L96CleAh81FvWHh551MO/jpIM/29nDJxTOR0xQ44YX3hAb8ZggBkSAPzfGKMSNjwcVBkJ4wSUiAoTgzSNQSWAgRBoMhEiDgRBpVBLIvDfGrwlVeKssibwWBMHv5dHEsv92XGQgN24+d7n86jJZEvktVCtennlwuSojMpD5m89rOBWc2ihLIq/VhDWzX5r5caMqIzKQRe/Xj23r6DwiSyKvvTzjYGQHkb8APA4h3wUq+PP6GQcWqQjaQDhmke904xVoA4F5b5y7IVTqJ7Ik8ops/lfWzzg4V5aR5Pfo3fx2fX1n98kmOdSvkw+JPBG0jhk5tH7Nd/celQ8iGQOBBW+On9odqkZGQn4IWmsD1bDu2gNN8oGWVSBQiCTcIMvz5USUV/tqg2CuTRxgHQj0PPTb3rlUvmqRYiiUL/tUqNaMGTVslWms6i1WIL0hlvb2rqmyNLrjwt9ulDOiRD2z+zez5cxo1KghTXGi6C2Qk3O7jzWHckaUqAtHT3G+f51fADAQcoGBEGkwECINBkKkwUCINBgIkQYDIdJgIEQa/gTS1nRUBQFf6EiJkVvcTReNntKgHEslkA+ONTfKBc2SJVFSXpF7kLly7pTsW/c+bG9eGoZqpSyJkhEEiy8cdcUa5VgqgbSc2FXf3dXZIkui6oVha+3ouvpJwaSj8pFTqQQCcqC+Ss7ukRNRVUKlVsjxx3KVgtQCaQlbxna1tzYGKpgiHxJVROLYJHE0qJSkFggwEqoG4hgyaszcSSmMVkWpBgKIpLu9bbniuEW25JgjDIJVcs+xXKUs9UCKcODe1dW5SCnVEIThVHlUok7WRAWFKJpqArWhpnbYhklnXLJXDYD/AURtGX0bg0UyAAAAAElFTkSuQmCC"},28982:function(tn){"use strict";tn.exports="data:image/png;base64,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"},2487:function(tn){"use strict";tn.exports="data:image/png;base64,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"},3164:function(tn){"use strict";tn.exports="data:image/png;base64,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"},88745:function(tn){"use strict";tn.exports="data:image/png;base64,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"},49321:function(tn){"use strict";tn.exports="data:image/png;base64,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"},60141:function(tn){"use strict";tn.exports="data:image/gif;base64,R0lGODlh6QDIAPf/APrMTf789vrMUPvdi/zfkfi4CvvYef713fnKSfzosP7wyvrSZfjAKPzmqf3wzP767fnHPv7xzf3wzvjFOfe2BP767vi8F/i8GPvagfnGO/jDMv3uxv3svfrNUvzkov724fvWcfzinPvbhPi5DfrTZv734vi6EPzglfnKSP3tw/nJR/3qtv3nrPrRYPjAJf/++/702PvVbvrUbfrUafrQX/rOVvnLTfrWcvi+H/i7Fv7y0P3y0/3wyv3uxPzjoPzglvi/I/vejvvZfPe5D/rTaPrPWvrOVPrKSf3vyPzlpPnNU/nKRvnENfe6E/Ly8v3sv+Xl5frZf9ra2vnIQOjo6Pv7+9jY2PX19d7e3tTU1Ovr6/n5+dzc3O7u7uLi4tDQ0M7Oztvb2/j4+N3d3ezs7NHR0f7+/tXV1fHx8fDw8NLS0uHh4d/f3/jAJvb29vT09M/Pz+/v7/f39+rq6uPj49bW1vr6+uDg4NfX1+Tk5PPz89PT0+np6efn59nZ2e3t7frPWfzmqvnFN/39/fz8/P756/723/vdif3ru/745/zhmObm5vrUav3ps/zim/zdiv757Pzlpvzruvzhmfe3Bve3B/zimvvhmvnCK/jAJ//56v/9+f7z1f702vvciPvXdfnBJ/jFN/jDL/735PvZe/e7Ffzjn/e3CPznq/3twf3ruvi+IPnFNvvdjPzps/3psvrOWP702/rQXfvYevnOWfvUav3quPrWdP302//56/i9G/zejP712/778/nIQv3orfnOV/i3BvnGOv/+/frKR/////3nqv3uw/vYd/3y1frUa/713v3ruPvZevrXd/e2BvnEM//+/P7z1v///f3rufnDMPnHQPe2A/i/JPrIQvnMUP3z2PnLSv/88/e8Gv746P7uxfvUa/vgk/vglPzgk/rNVPvaffnBKf3xz/756vi6D/rSYvrVcPe4C/jENvi7E/789PrPWPnIQfzchv3tv/3svvzquf3qufi9Hfi9Hve4DPnCLvjCL/e1AM3Nzf///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDJDNDJCNzNGQjY2MTFFREE3MTFEMUFDMEEzQzRDM0MiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDJDNDJCNzRGQjY2MTFFREE3MTFEMUFDMEEzQzRDM0MiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMkM0MkI3MUZCNjYxMUVEQTcxMUQxQUMwQTNDNEMzQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMkM0MkI3MkZCNjYxMUVEQTcxMUQxQUMwQTNDNEMzQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2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"}}]);