|
|
!(function(){var uE=Object.defineProperty,cE=Object.defineProperties;var dE=Object.getOwnPropertyDescriptors;var nv=Object.getOwnPropertySymbols;var bx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable;var Qy=Math.pow,Ex=(Re,Ee,le)=>Ee in Re?uE(Re,Ee,{enumerable:!0,configurable:!0,writable:!0,value:le}):Re[Ee]=le,oa=(Re,Ee)=>{for(var le in Ee||(Ee={}))bx.call(Ee,le)&&Ex(Re,le,Ee[le]);if(nv)for(var le of nv(Ee))wx.call(Ee,le)&&Ex(Re,le,Ee[le]);return Re},Pf=(Re,Ee)=>cE(Re,dE(Ee));var Cx=(Re,Ee)=>{var le={};for(var ce in Re)bx.call(Re,ce)&&Ee.indexOf(ce)<0&&(le[ce]=Re[ce]);if(Re!=null&&nv)for(var ce of nv(Re))Ee.indexOf(ce)<0&&wx.call(Re,ce)&&(le[ce]=Re[ce]);return le};var Jy=(Re,Ee,le)=>new Promise((ce,Pe)=>{var Me=Te=>{try{je(le.next(Te))}catch(Ge){Pe(Ge)}},Ie=Te=>{try{je(le.throw(Te))}catch(Ge){Pe(Ge)}},je=Te=>Te.done?ce(Te.value):Promise.resolve(Te.value).then(Me,Ie);je((le=le.apply(Re,Ee)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3767],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Re,Ee){"use strict";Ee.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720:function(){"use strict";function Re(Fe,ne,te,he){te===void 0&&(te=0),he===void 0&&(he=1/0),this._name=Fe,this._defaultValue=ne,this._minimum=te,this._maximum=he}Object.defineProperty(Re.prototype,"name",{get:function(){return this._name},set:function(Fe){if(typeof Fe!="string"||Fe==="")throw new Error("Shape name must be a valid string.");this._name=Fe}}),Object.defineProperty(Re.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("The default value must be a real number, not: "+Fe);this._defaultValue=Fe}}),Object.defineProperty(Re.prototype,"minimum",{get:function(){return this._minimum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Minimum must be a real number, not: "+Fe);this._minimum=Fe}}),Object.defineProperty(Re.prototype,"maximum",{get:function(){return this._maximum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Maximum must be a real number, not: "+Fe);this._maximum=Fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Fe,ne){var te=go.Shape._FigureParameters[Fe];return te?te[ne]:null},go.Shape.setFigureParameter=function(Fe,ne,te){if(!(te instanceof Re))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+te);if(te.defaultValue<te.minimum||te.defaultValue>te.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+te.defaultValue);var he=go.Shape._FigureParameters[Fe];he||(he=[],go.Shape._FigureParameters[Fe]=he),he[ne]=te};var Ee=[];function le(Fe,ne){var te=Ee.pop();return te===void 0?new go.Point(Fe,ne):(te.x=Fe,te.y=ne,te)}function ce(){var Fe=Ee.pop();return Fe===void 0?new go.Point:Fe}function Pe(Fe){Ee.push(Fe)}function Me(Fe,ne,te,he,se,ge,ye,be,Ae){Ae||(Ae=new go.Point);var Le=Fe-te,Ve=se-ye,et=NaN,Je=NaN;if(Le===0)if(Ve===0)Fe===te&&(et=Fe,Je=ne);else{var rt=(ge-be)/Ve,at=ge-rt*se;et=Fe,Je=rt*et+at}else if(Ve===0){var tt=(ne-he)/Le,Et=ne-tt*Fe;et=se,Je=tt*et+Et}else{var tt=(ne-he)/Le,rt=(ge-be)/Ve,Et=ne-tt*Fe,at=ge-rt*se;et=(at-Et)/(tt-rt),Je=tt*et+Et}return Ae.x=et,Ae.y=Je,Ae}function Ie(Fe,ne,te,he,se,ge,ye,be,Ae,Le,Ve,et,Je,rt){var at=1-Ae,tt=Ae,Et=Fe*at+te*tt,Lt=ne*at+he*tt,Ut=te*at+se*tt,on=he*at+ge*tt,an=se*at+ye*tt,Kt=ge*at+be*tt,fn=Et*at+Ut*tt,bt=Lt*at+on*tt,dt=Ut*at+an*tt,ct=on*at+Kt*tt,Qt=fn*at+dt*tt,un=bt*at+ct*tt;Le.x=Et,Le.y=Lt,Ve.x=fn,Ve.y=bt,et.x=Qt,et.y=un,Je.x=dt,Je.y=ct,rt.x=an,rt.y=Kt}var je=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),Ge=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Re("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,ne/3),he=Math.min(he,te/3);var se=he*Ge,ge=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,he,ne-se,0,ne,se)).add(new go.PathSegment(go.PathSegment.Line,ne,te-he)).add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne,te-se,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,he,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-he,se,te,0,te-se)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=te/2,he.endX=ne,he.endY=te/2,he}),go.Shape.defineFigureGenerator("LineV",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=ne/2,he.startY=0,he.endX=ne/2,he.endY=te,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te/2,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("XLine",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LineRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.25*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)))}),go.Shape.defineFigureGenerator("LineDown",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,.25*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)))}),go.Shape.defineFigureGenerator("LineLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.75*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)))}),go.Shape.defineFigureGenerator("LineUp",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,.75*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Fe,ne,te){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*ne,(1-he)*te,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,he*te)).add(new go.PathSegment(go.PathSegment.Move,he*ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,(1-he)*te)).add(new go.PathSegment(go.PathSegment.Move,0,te/2)).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("CircleLine",function(Fe,ne,te){var he=ne/2,se=new go.Geometry().add(new go.PathFigure(ne,ne/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return se.spot1=je,se.spot2=Te,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=ne,he.endY=te,he}),go.Shape.defineFigureGenerator("Line2",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=ne,he.startY=0,he.endX=0,he.endY=te,he}),go.Shape.defineFigureGenerator("Curve1",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Ge*ne,0,ne,(1-Ge)*te)))}),go.Shape.defineFigureGenerator("Curve2",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,0,Ge*te,(1-Ge)*ne,te)))}),go.Shape.defineFigureGenerator("Curve3",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,Ge*te,Ge*ne,te)))}),go.Shape.defineFigureGenerator("Curve4",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,(1-Ge)*ne,0,0,(1-Ge)*te)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Re("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var se=Math.abs(he)*ne;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Re("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-ne?he=-ne:he>ne&&(he=ne);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new Re("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var se=Math.abs(he)*ne;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Re("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=20:he<-ne?he=-ne/2:he>ne&&(he=ne/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new Re("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-ne?he=-ne/2:he>ne&&(he=ne/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}});var st=[];function Qe(){var Fe=st.pop();return Fe===void 0?[]:Fe}function We(Fe){Fe.length=0,st.push(Fe)}function mt(Fe){for(var ne=Qe(),te=.5,he=.5,se=Math.PI*1.5,ge=0,ye=0;ye<Fe;ye++)ge=2*Math.PI/Fe*ye+se,ne[ye]=new go.Point(he+te*Math.cos(ge),he+te*Math.sin(ge));return ne.push(ne[0]),ne}function it(Fe){var ne=kt(Fe),te=Qe();te[0]=ne[0];for(var he=1,se=1;he<ne.length;he+=2,se+=3)te[se]=ne[he],te[se+1]=ne[he],te[se+2]=ne[he+1];return We(ne),te}function kt(Fe){for(var ne=mt(Fe),te=Qe(),he=Math.floor(ne.length/2),se=ne.length-1,ge=Fe%2===0?2:1,ye=0;ye<se;ye++){var be=ne[ye],Ae=ne[ye+1],Le=ne[(he+ye-1)%se],Ve=ne[(he+ye+ge)%se];te[ye*2]=be,te[ye*2+1]=Me(be.x,be.y,Le.x,Le.y,Ae.x,Ae.y,Ve.x,Ve.y,new go.Point)}return te[te.length]=te[0],We(ne),te}go.Shape.defineFigureGenerator("Pentagon",function(Fe,ne,te){var he=mt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<5;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Fe,ne,te){var he=mt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<6;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Fe,ne,te){var he=mt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<7;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Fe,ne,te){var he=mt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<8;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Fe,ne,te){var he=mt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<9;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Fe,ne,te){var he=mt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<10;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Fe,ne,te){var he=mt(12),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<12;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Fe,ne,te){var he=kt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<10;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Fe,ne,te){var he=kt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<12;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Fe,ne,te){var he=kt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<14;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Fe,ne,te){var he=kt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<16;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Fe,ne,te){var he=kt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<18;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Fe,ne,te){var he=kt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<20;ye++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ye].x*ne,he[ye].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),We(he),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Fe,ne,te){var he=it(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<he.length;ye+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ye+2].x*ne,he[ye+2].y*te,he[ye].x*ne,he[ye].y*te,he[ye+1].x*ne,he[ye+1].y*te));return ge.segments.last().close(),We(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Fe,ne,te){var he=it(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<he.length;ye+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ye+2].x*ne,he[ye+2].y*te,he[ye].x*ne,he[ye].y*te,he[ye+1].x*ne,he[ye+1].y*te));return ge.segments.last().close(),We(he),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Fe,ne,te){var he=it(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<he.length;ye+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ye+2].x*ne,he[ye+2].y*te,he[ye].x*ne,he[ye].y*te,he[ye+1].x*ne,he[ye+1].y*te));return ge.segments.last().close(),We(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Fe,ne,te){var he=it(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<he.length;ye+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ye+2].x*ne,he[ye+2].y*te,he[ye].x*ne,he[ye].y*te,he[ye+1].x*ne,he[ye+1].y*te));return ge.segments.last().close(),We(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Fe,ne,te){var he=it(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<he.length;ye+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ye+2].x*ne,he[ye+2].y*te,he[ye].x*ne,he[ye].y*te,he[ye+1].x*ne,he[ye+1].y*te));return ge.segments.last().close(),We(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Fe,ne,te){var he=it(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var ye=1;ye<he.length;ye+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ye+2].x*ne,he[ye+2].y*te,he[ye].x*ne,he[ye].y*te,he[ye+1].x*ne,he[ye+1].y*te));return ge.segments.last().close(),We(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new Re("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Re("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN,se=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=8),isNaN(se)&&(se=8);var ge=new go.Geometry,ye=new go.PathFigure(0,0,!0);return ge.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he<ne/2&&se<te/2&&(ye.add(new go.PathSegment(go.PathSegment.Move,he,se)),ye.add(new go.PathSegment(go.PathSegment.Line,he,te-se)),ye.add(new go.PathSegment(go.PathSegment.Line,ne-he,te-se)),ye.add(new go.PathSegment(go.PathSegment.Line,ne-he,se).close())),ge.setSpots(0,0,1,1,he,se,-he,-se),ge}),go.Shape.setFigureParameter("Ring",0,new Re("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var se=ne/2,ge=new go.Geometry,ye=new go.PathFigure(ne,ne/2,!0);ge.add(ye),ye.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var be=Math.max(se-he,0);return be>0&&(ye.add(new go.PathSegment(go.PathSegment.Move,ne/2+be,ne/2)),ye.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,be,be).close())),ge.spot1=je,ge.spot2=Te,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.08034461*ne,.1944299*te,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ne,.05349299*te,-.09239631*ne,.07836421*te,.1406031*ne,-.0542823*te)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ne,.074219*te,.2450511*ne,-.00697547*te,.3776197*ne,-.01112067*te)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ne,.07004196*te,.4539471*ne,0,.6066018*ne,-.02526587*te)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ne,.08370865*te,.6914277*ne,-.01904177*te,.8921095*ne,-.01220843*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ne,.3194596*te,1.036446*ne,.04105738*te,1.020377*ne,.3022052*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ne,.562044*te,1.04448*ne,.360238*te,.992256*ne,.5219009*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ne,.8217117*te,1.032337*ne,.5771781*te,1.018411*ne,.8120651*te)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ne,.9156953*te,1.028411*ne,.9571472*te,.8556702*ne,1.052487*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ne,.9310455*te,.7431877*ne,1.009325*te,.5624123*ne,1.021761*te)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ne,.9344623*te,.4820677*ne,1.031761*te,.3030112*ne,1.002796*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.870098*te,.2329994*ne,1.01518*te,.03213784*ne,1.01518*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ne,.6545475*te,-.02812061*ne,.9032597*te,-.01205169*ne,.6835638*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ne,.4265613*te,-.01812061*ne,.6089503*te,-.00606892*ne,.4555777*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.1944299*te,-.01606892*ne,.3892545*te,-.01205169*ne,.1944299*te))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Fe,ne,te){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,ne,(1-he)*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,te)).add(new go.PathSegment(go.PathSegment.Line,he*ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*te)).add(new go.PathSegment(go.PathSegment.Line,0,he*te).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new Re("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Re("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN,se=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var ge=he%360;ge<0&&(ge+=360);var ye=se%360,be=Math.min(ne,te)/2;return new go.Geometry().add(new go.PathFigure(be,be).add(new go.PathSegment(go.PathSegment.Arc,ge,ye,be,be,be,be).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Fe,ne,te){var he=Ge/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*ne,ge*te,ne,(1-he)*te,(se+he)*ne,(ge+he)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Re("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var se=Math.min(he,ne)/2,ge=ne/2,ye=te/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ye-se)).add(new go.PathSegment(go.PathSegment.Line,ne,ye-se)).add(new go.PathSegment(go.PathSegment.Line,ne,ye+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ye+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ye+se)).add(new go.PathSegment(go.PathSegment.Line,0,ye+se)).add(new go.PathSegment(go.PathSegment.Line,0,ye-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ye-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Re("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=Math.min(he,ne)/2,ge=ne/2,ye=te/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ye-se)).add(new go.PathSegment(go.PathSegment.Line,ne,ye-se)).add(new go.PathSegment(go.PathSegment.Line,ne,ye+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ye+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ye+se)).add(new go.PathSegment(go.PathSegment.Line,0,ye+se)).add(new go.PathSegment(go.PathSegment.Line,0,ye-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ye-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new Re("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),ne===0||te===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=ne,se.endY=te,se}else{var ge=ne/2,ye=te/2,be=Math.atan2(te,ne),Ae=he-Math.min(Math.cos(be)*he/2,ge),Le=he-Math.min(Math.sin(be)*he/2,ye),se=new go.Geometry,Ve=new go.PathFigure(Ae,0,!0);return se.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,ge,.2*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,ne-Ae,0)),Ve.add(new go.PathSegment(go.PathSegment.Line,ne,Le)),Ve.add(new go.PathSegment(go.PathSegment.Line,.8*ne,ye)),Ve.add(new go.PathSegment(go.PathSegment.Line,ne,te-Le)),Ve.add(new go.PathSegment(go.PathSegment.Line,ne-Ae,te)),Ve.add(new go.PathSegment(go.PathSegment.Line,ge,.8*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,Ae,te)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,te-Le)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ye)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,Le).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new Re("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=new go.Geometry,ge=new go.PathFigure(.1*ne,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*te).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new Re("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*ne,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*ne,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*ne,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*ne,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*te).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new Re("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Math.abs(1-he)*ne,.25*te,Math.abs(1-he)*ne,.75*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*ne,.75*te,he*ne,.25*te).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,Ge*ne,0,ne,(.5-Ge/2)*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,(.5+Ge/2)*te,Ge*ne,te).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,0,ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ne,.75*te,.5*ne,.25*te).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,.1*ne,.8*te,0,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,0,0,.45*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.55*ne,0,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.5*te,.9*ne,.8*te).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ne,.01*te)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.6*ne,.2*te,ne,.25*te)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.7*te,ne,.8*te,.6*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,.5*ne,.75*te,.55*ne,.95*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.7*te,.45*ne,.95*te,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.4*ne,.8*te,0,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ne,.01*te,0,.25*te,.4*ne,.2*te).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.4*ne,.6*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*ne,te,.5*ne,.75*te,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.6*te,.55*ne,.95*te,.5*ne,.75*te));var ge=.2,ye=.3,be=0,Ae=ge*Ge;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ye)*ne,(.5+ge+be)*te,(.5-ge+ye)*ne,(.5+Ae+be)*te,(.5-Ae+ye)*ne,(.5+ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ye)*ne,(.5+be)*te,(.5+Ae+ye)*ne,(.5+ge+be)*te,(.5+ge+ye)*ne,(.5+Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ye)*ne,(.5-ge+be)*te,(1-.5+ge+ye)*ne,(.5-Ae+be)*te,(.5+Ae+ye)*ne,(.5-ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*ne,.36771243*te,(.5-Ae+ye)*ne,(.5-ge+be)*te,(.5-ge+ye+.05)*ne,(.5-Ae+be-.02)*te)),ge=.2,ye=0,be=-.3,Ae=ge*Ge,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ye)*ne,(.5+be)*te,(.5+Ae+ye)*ne,(.5+ge+be)*te,(.5+ge+ye)*ne,(.5+Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ye)*ne,(.5-ge+be)*te,(1-.5+ge+ye)*ne,(.5-Ae+be)*te,(.5+Ae+ye)*ne,(.5-ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ye)*ne,(.5+be)*te,(.5-Ae+ye)*ne,(.5-ge+be)*te,(.5-ge+ye)*ne,(.5-Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ae+ye)*ne,(.5+ge+be)*te,(.5-ge+ye)*ne,(.5+Ae+be)*te,(.5-Ae+ye)*ne,(.5+ge+be)*te)),ge=.2,ye=-.3,be=0,Ae=ge*Ge,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ye)*ne,(.5-ge+be)*te,(1-.5+ge+ye-.05)*ne,(.5-Ae+be-.02)*te,(.5+Ae+ye)*ne,(.5-ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ye)*ne,(.5+be)*te,(.5-Ae+ye)*ne,(.5-ge+be)*te,(.5-ge+ye)*ne,(.5-Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ye)*ne,(.5+ge+be)*te,(.5-ge+ye)*ne,(.5+Ae+be)*te,(.5-Ae+ye)*ne,(.5+ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.6*te,(.5+Ae+ye)*ne,(.5+ge+be)*te,(.5+ge+ye)*ne,(.5+Ae+be)*te).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.5,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*.5,ne*.5,ne*.5,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ne*.5,ne*.75,ne*.25,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,ne*.5,ne*.25,ne*.25,ne*.25));var ge=.1,ye=.5,be=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(ye+ge)*ne,be*te)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ne*ye,te*be,ge*ne,ge*ne).close()),se=new go.PathFigure(ne*.5,0,!1),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*.5,ne*.5,ne*.5,ne*.5)),be=.75,se=new go.PathFigure((ye+ge)*ne,be*te,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,ne*ye,te*be,ge*ne,ge*ne).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Fe,ne,te){var he=.8535533905932737,se=.5*ne,ge=.5*te;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,te)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,he*te)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,he*ne,he*te)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,ye=.5,be=.5,Ae=new go.PathFigure(ye*ne,(be-ge)*te);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-ge)*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te)),ge=.4,se=Ge*.4;var Le=ce(),Ve=ce(),et=ce(),Je=ce();Ie(ye,be-ge,ye+se,be-ge,ye+ge,be-se,ye+ge,be,.42,Le,Ve,et,Je,Je);var rt=ce(),at=ce(),tt=ce();Ie(ye,be-ge,ye+se,be-ge,ye+ge,be-se,ye+ge,be,.58,Je,Je,tt,rt,at);var Et=ce(),Lt=ce(),Ut=ce();Ie(ye,be+ge,ye-se,be+ge,ye-ge,be+se,ye-ge,be,.42,Et,Lt,Ut,Je,Je);var on=ce(),an=ce(),Kt=ce();return Ie(ye,be+ge,ye-se,be+ge,ye-ge,be+se,ye-ge,be,.58,Je,Je,Kt,on,an),Ae.add(new go.PathSegment(go.PathSegment.Move,Kt.x*ne,Kt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,on.x*ne,on.y*te,an.x*ne,an.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,et.x*ne,et.y*te,Le.x*ne,Le.y*te,Ve.x*ne,Ve.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,Kt.x*ne,Kt.y*te).close()),Ae.add(new go.PathSegment(go.PathSegment.Move,Ut.x*ne,Ut.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,tt.x*ne,tt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,rt.x*ne,rt.y*te,at.x*ne,at.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*ne,Ut.y*te,Et.x*ne,Et.y*te,Lt.x*ne,Lt.y*te).close()),Pe(Le),Pe(Ve),Pe(et),Pe(Je),Pe(rt),Pe(at),Pe(tt),Pe(Et),Pe(Lt),Pe(Ut),Pe(on),Pe(an),Pe(Kt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.29*ne,.33*te)).add(new go.PathSegment(go.PathSegment.Line,.35*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.5*te,ne,.25*te,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.5*te,0,.25*te).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Re("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>ne&&(he=ne);var se=(ne-he)/2,ge=se+he;return new go.Geometry().add(new go.PathFigure(ge,.5*te).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,se,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,.55*te).add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.55*te).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.4,ge=.4,ye=.5,be=.5,Ae=ce(),Le=ce(),Ve=ce(),et=ce(),Je=new go.PathFigure((ye-ge)*ne,be*te,!1);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te)),Ie(ye,be-ge,ye+se,be-ge,ye+ge,be-se,ye+ge,be,.44,Ve,et,Le,Ae,Ae),Je.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*ne,Le.y*te,Ve.x*ne,Ve.y*te,et.x*ne,et.y*te));var rt=le(Le.x,Le.y);Ie(ye,be-ge,ye+se,be-ge,ye+ge,be-se,ye+ge,be,.56,Ae,Ae,Le,Ve,et);var at=le(Le.x,Le.y);Je.add(new go.PathSegment(go.PathSegment.Line,(rt.x*.1+.95*.9)*ne,rt.y*.1*te)),Je.add(new go.PathSegment(go.PathSegment.Line,.85*ne,rt.y*.1*te)),Je.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),Je.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Je.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),Je.add(new go.PathSegment(go.PathSegment.Line,(at.x*.1+.9)*ne,.15*te)),Je.add(new go.PathSegment(go.PathSegment.Line,(at.x*.1+.9)*ne,(at.y*.1+.05*.9)*te)),Je.add(new go.PathSegment(go.PathSegment.Line,at.x*ne,at.y*te)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,Ve.x*ne,Ve.y*te,et.x*ne,et.y*te)),Je.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,(ye-se)*ne,(be+ge)*te,(ye-ge)*ne,(be+se)*te)),ge=.35,se=Ge*.35;var tt=new go.PathFigure(ye*ne,(be-ge)*te,!1);he.add(tt),tt.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),tt.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),tt.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-ge)*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te));var Et=new go.PathFigure((ye-ge)*ne,be*te,!1);return he.add(Et),Pe(Ae),Pe(Le),Pe(Ve),Pe(et),Pe(rt),Pe(at),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(Fe,ne,te){var he=new go.Geometry,se=.375,ge=0,ye=-.125,be=se*Ge,Ae=new go.PathFigure((.525+ge)*ne,(.5+se+ye)*te,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*ne,(.5+ye)*te,(.5+be+ge)*ne,(.5+se+ye)*te,(.5+se+ge)*ne,(.5+be+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-se+ye)*te,(1-.5+se+ge)*ne,(.5-be+ye)*te,(.5+be+ge)*ne,(.5-se+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+ye)*te,(.5-be+ge)*ne,(.5-se+ye)*te,(.5-se+ge)*ne,(.5-be+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*ne,(.5+se+ye)*te,(.5-se+ge)*ne,(.5+be+ye)*te,(.5-be+ge)*ne,(.5+se+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te).close()),se=.325,ge=0,ye=-.125,be=se*Ge;var Ae=new go.PathFigure((1-.5+se+ge)*ne,(.5+ye)*te,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5+se+ye)*te,(.5+se+ge)*ne,(.5+be+ye)*te,(.5+be+ge)*ne,(.5+se+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+ye)*te,(.5-be+ge)*ne,(.5+se+ye)*te,(.5-se+ge)*ne,(.5+be+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-se+ye)*te,(.5-se+ge)*ne,(.5-be+ye)*te,(.5-be+ge)*ne,(.5-se+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*ne,(.5+ye)*te,(.5+be+ge)*ne,(.5-se+ye)*te,(1-.5+se+ge)*ne,(.5-be+ye)*te));var Ae=new go.PathFigure((.525+ge)*ne,(.5+se+ye)*te,!1);return he.add(Ae),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,he*ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,he*ne,te))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Fe,ne,te){var he=new go.Geometry().add(new go.PathFigure(.5*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ne,.5*te,.5*ne,.5*te)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,0,te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Fe,ne,te){var he=.5;return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*te)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*ne,he*te,he*ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Fe,ne,te){var he=.5;return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,he*te)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*ne,he*te,he*ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Re("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Re("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-he)*ne,ye=(.5-se/2)*te,be=(.5+se/2)*te,Ae=new go.Geometry,Le=new go.PathFigure(0,ye,!0);Ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ge,ye)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,be)),Le.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,ye/te);var Ve=Me(0,be/te,1,be/te,ge/ne,1,1,.5,ce());return Ae.spot2=new go.Spot(Ve.x,Ve.y),Pe(Ve),Ae}),go.Shape.setFigureParameter("Arrow2",0,new Re("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Re("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=30),he>ne&&(he=ne);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,te/2);var ge=ne-he,ye=(te-se)/2,be=ye+se,Ae=new go.Geometry,Le=new go.PathFigure(0,ye,!0);Ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ge,ye)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,be)),Le.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,ye/te);var Ve=Me(0,be/te,1,be/te,ge/ne,1,1,.5,ce());return Ae.spot2=new go.Spot(Ve.x,Ve.y),Pe(Ve),Ae}),go.Shape.defineFigureGenerator("Chevron",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.214*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.786*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Re("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*te,ge=(.5+he/2)*te,ye=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);ye.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close());var Ae=Me(0,.5,.3,0,0,se/te,.1,se/te,ce());return ye.spot1=new go.Spot(Ae.x,Ae.y),Ae=Me(.7,1,1,.5,0,ge/te,1,ge/te,Ae),ye.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),ye}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Re("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Re("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=100);var ge=(te-he)/2,ye=ge+he,be=(te-se)/2,Ae=be+se;(he>te||se>te)&&(se>he?(he=he*te/se,ge=(te-he)/2,ye=ge+he,be=0,Ae=te):(ge=0,ye=te,be=0,Ae=te));var Le=new go.Geometry,Ve=new go.PathFigure(ne,.5*te,!0);Le.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ae)),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ye)),Ve.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ye)),Ve.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Ae)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,.3*ne,be)),Ve.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,be).close());var et=Me(0,.5,.3,be/te,0,ge/te,1,ge/te,ce());return Le.spot1=new go.Spot(et.x,et.y),et=Me(.7,Ae/te,1,.5,0,ye/te,1,ye/te,et),Le.spot2=new go.Spot(et.x,et.y),Pe(et),Le}),go.Shape.setFigureParameter("IBeamArrow",0,new Re("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*te,ge=(.5+he/2)*te,ye=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);ye.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,0,te)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),ye.spot1=new go.Spot(0,se/te);var Ae=Me(.7,1,1,.5,0,ge/te,1,ge/te,ce());return ye.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),ye}),go.Shape.setFigureParameter("IBeamArrow2",0,new Re("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Re("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=100);var ge=(te-he)/2,ye=ge+he,be=(te-se)/2,Ae=be+se;(he>te||se>te)&&(se>he?(he=he*te/se,ge=(te-he)/2,ye=ge+he,be=0,Ae=te):(ge=0,ye=te,be=0,Ae=te));var Le=new go.Geometry,Ve=new go.PathFigure(ne,.5*te,!0);Le.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ae)),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ye)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ye)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Ae)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,be)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*ne,be)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Ve.add(new go.PathSegment(go.PathSegment.Line,.7*ne,be).close()),Le.spot1=new go.Spot(0,ge/te);var et=Me(.7,Ae/te,1,.5,0,ye/te,1,ye/te,ce());return Le.spot2=new go.Spot(et.x,et.y),Pe(et),Le}),go.Shape.setFigureParameter("Pointer",0,new Re("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.1);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(he,.35);var ye=Me(.2,.65,1,.65,0,1,1,.5,ce());return se.spot2=new go.Spot(ye.x,ye.y),Pe(ye),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Re("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*ne,.75*te,he*ne,.25*te).close()),se.spot1=new go.Spot(he,.35);var ye=Me(0,.65,1,.65,0,1,1,.5,ce());return se.spot2=new go.Spot(ye.x,ye.y),Pe(ye),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Re("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*te,ge=(.5+he/2)*te,ye=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);ye.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,0,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,0,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),ye.spot1=new go.Spot(.2,.3);var Ae=Me(.7,1,1,.5,0,ge/te,1,ge/te,ce());return ye.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),ye}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Re("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=50);var se=(te-he)/2,ge=se+he;he>te&&(se=0,ge=te);var ye=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);ye.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,0,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,0,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),ye.spot1=new go.Spot(.2,se/te);var Ae=Me(.7,1,1,.5,0,ge/te,1,ge/te,ce());return ye.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),ye}),go.Shape.setFigureParameter("SquareArrow",0,new Re("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.7);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(he,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.1,ye=new go.PathFigure(0,.9*te,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.9*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,te,.85/.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*te).close());var ge=new go.PathFigure(0,.9*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,.8*te,.85/.9*ne,.8*te)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.3*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0).close());var ge=new go.PathFigure(0,.3*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Ge*.5,ye=new go.PathFigure(0,he,!0);se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ge*he,(.5-ge)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,1*ne,he,(.5+ge)*ne,0,1*ne,Ge*he)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te-he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,1*te,1*ne,te-Ge*he,(.5+ge)*ne,1*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,te-he,(.5-ge)*ne,1*te,0,te-Ge*he)),ye.add(new go.PathSegment(go.PathSegment.Line,0,he));var be=new go.PathFigure(ne,he,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,2*he,1*ne,2*he-Ge*he,(.5+ge)*ne,2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-ge)*ne,2*he,0,2*he-Ge*he)),se.spot1=new go.Spot(0,0,0,2*he),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Ge*.5,ye=new go.PathFigure(0,te-he,!0);se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,0,he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ge*he,(.5-ge)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,he,(.5+ge)*ne,0,ne,Ge*he)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te-he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,te-Ge*he,(.5+ge)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,te-he,(.5-ge)*ne,te,0,te-Ge*he));var be=new go.PathFigure(0,te-he,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te-2*he,0,te-he-Ge*he,(.5-ge)*ne,te-2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne,te-he,(.5+ge)*ne,te-2*he,ne,te-he-Ge*he)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*he),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Ge*.5,ye=new go.PathFigure(he,0,!0);se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne-he,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Ge*he,0,ne,(.5-ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne,(.5+ge)*te,ne-Ge*he,te)),ye.add(new go.PathSegment(go.PathSegment.Line,he,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Ge*he,te,0,(.5+ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*te,Ge*he,0));var be=new go.PathFigure(he,0,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*te,he+Ge*he,0,2*he,(.5-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,te,2*he,(.5+ge)*te,he+Ge*he,te)),se.spot1=new go.Spot(0,0,2*he,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Ge*.5,ye=new go.PathFigure(ne-he,0,!0);se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Ge*he,0,ne,(.5-ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne,(.5+ge)*te,ne-Ge*he,te)),ye.add(new go.PathSegment(go.PathSegment.Line,he,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Ge*he,te,0,(.5+ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*te,Ge*he,0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne-he,0));var be=new go.PathFigure(ne-he,0,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ne-2*he,.5*te,ne-he-Ge*he,0,ne-2*he,(.5-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne-2*he,(.5+ge)*te,ne-he-Ge*he,te)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*he,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.25*ne,.25*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.25*ne,.25*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.25*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Fe,ne,te){var he=new go.Geometry,se=.2,ge=.1,ye=Ge*se,be=Ge*ge,Ae=.5,Le=.1,Ve=new go.PathFigure(Ae*ne,(Le+ge)*te,!0);he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-se)*ne,Le*te,(Ae-ye)*ne,(Le+ge)*te,(Ae-se)*ne,(Le+be)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-ge)*te,(Ae-se)*ne,(Le-be)*te,(Ae-ye)*ne,(Le-ge)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+se)*ne,Le*te,(Ae+ye)*ne,(Le-ge)*te,(Ae+se)*ne,(Le-be)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+ge)*te,(Ae+se)*ne,(Le+be)*te,(Ae+ye)*ne,(Le+ge)*te));var et=.05,Je=Ge*et;Ae=.05,Le=.25;var rt=new go.PathFigure(.5*ne,.2*te,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*te)),Ae=.95,Le=.25,rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+et)*ne,Le*te,(Ae+Je)*ne,(Le-et)*te,(Ae+et)*ne,(Le-Je)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*te)),et=.025,Je=Ge*et,Ae=.825,Le=.35,rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-et)*te,(Ae+et)*ne,(Le-Je)*te,(Ae+Je)*ne,(Le-et)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-et)*ne,Le*te,(Ae-Je)*ne,(Le-et)*te,(Ae-et)*ne,(Le-Je)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te)),et=.05,Je=Ge*et,Ae=.5,Le=.7,rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-et)*te,(Ae+et)*ne,(Le-Je)*te,(Ae+Je)*ne,(Le-et)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-et)*ne,Le*te,(Ae-Je)*ne,(Le-et)*te,(Ae-et)*ne,(Le-Je)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*te)),et=.025,Je=Ge*et,Ae=.175,Le=.35,rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-et)*te,(Ae+et)*ne,(Le-Je)*te,(Ae+Je)*ne,(Le-et)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-et)*ne,Le*te,(Ae-Je)*ne,(Le-et)*te,(Ae-et)*ne,(Le-Je)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),et=.05,Je=Ge*et,Ae=.05,Le=.25,rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-et)*te,(Ae-et)*ne,(Le-Je)*te,(Ae-Je)*ne,(Le-et)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new Re("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,0).close()),se.spot1=new go.Spot(0,he),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te));var ge=new go.PathFigure(.5*ne,.5*te,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ye=new go.PathFigure(0,se*te,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),ye.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),he}),go.Shape.defineFigureGenerator("Database",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.1,ye=new go.PathFigure(ne,.1*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-se)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-ge)*te));var be=new go.PathFigure(ne,.1*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+se)*ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+se)*ne,.3*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,.3*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.4*te,ne,(.3+ge)*te,(.5+se)*ne,.4*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-se)*ne,.4*te,0,(.3+ge)*te)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.9*te,.25*ne,.1*te).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.1,ye=new go.PathFigure(ne,.1*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-se)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-ge)*te));var be=new go.PathFigure(ne,.1*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+se)*ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+se)*ne,.3*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+ge)*te)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=Ge*.2,ye=new go.PathFigure(0,.2*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,0,(.2-ge)*te,(.2-ge)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,.2*te,(.8+ge)*ne,0,ne,(.2-ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,te,ne,(.8+ge)*te,(.8+ge)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*te,(.2-ge)*ne,te,0,(.8+ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.2*te));var be=new go.PathFigure(0,se*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ye=new go.PathFigure(0,se*te,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),he}),go.Shape.defineFigureGenerator("Document",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ye=new go.PathFigure(se*ne,0,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,0,se*te)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),ye.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(.1*ne,.4*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.9*te)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.75*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te));var ge=new go.PathFigure(ne,.5*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te));var ye=new go.PathFigure(ne,.5*te,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var ye=new go.PathFigure(0,0,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var be=new go.PathFigure(se*ne,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),be.add(new go.PathSegment(go.PathSegment.Move,0,ge*te)),be.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te)),he}),go.Shape.defineFigureGenerator("Junction",function(Fe,ne,te){var he=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,ye=Ge*.5,be=.5,Ae=new go.PathFigure(ne,be*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,te,ne,(be+ye)*te,(be+ye)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,be*te,(be-ye)*ne,te,0,(be+ye)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,0,0,(be-ye)*te,(be-ye)*ne,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ne,be*te,(be+ye)*ne,0,ne,(be-ye)*te));var Le=new go.PathFigure((ge+se)*ne,(ge+se)*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ge*ne,ge*te)),Le.add(new go.PathSegment(go.PathSegment.Move,ge*ne,(ge+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*ne,ge*te)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close());var ge=new go.PathFigure(.1*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.75*te)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,ye=new go.PathFigure(.5*ne,te,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*ne,.9*te,ne,(ge+se)*te,(ge+se)*ne,.9*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,se*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,(1-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.44*te,.96*ne,.47*te,.93*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.54*te,.86*ne,.57*te,.83*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ne,.4*te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0).close());var ge=new go.PathFigure(.1*ne,.2*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.44*te)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,.1*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close());var ge=new go.PathFigure(.2*ne,.1*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,ye=new go.PathFigure(0,0,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close());var be=new go.PathFigure(.5*se*ne,se*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*ne,se*te)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,ye=new go.PathFigure(ne,ge*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+se)*te,(ge+se)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te));var be=new go.PathFigure(ne,.5*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),be.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.5*ne,.6*te,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var ye=new go.PathFigure(0,0,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var ye=new go.PathFigure(0,0,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ye=new go.PathFigure((1-se)*ne,0,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Move,se*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),he}),go.Shape.defineFigureGenerator("Process",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ye=new go.PathFigure(se*ne,0,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(0,.5*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*ne,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te));var ye=new go.PathFigure(se*ne,0,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),he.spot1=new go.Spot(se,0),he.spot2=new go.Spot(1-se,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,(1-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*te).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(.5+se)*ne,0,ne,(.5-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.5+se)*te,(.5+se)*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,ye=new go.PathFigure(ne,ge*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+se)*te,(ge+se)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te));var be=new go.PathFigure(ne,ge*te,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te));var Ae=new go.PathFigure(.8*ne,.75*te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.75*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.75*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.75*te)),he}),go.Shape.defineFigureGenerator("Ground",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Move,.3*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),he}),go.Shape.defineFigureGenerator("Inverter",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.1,ge=.1,ye=.9,be=.5,Ae=new go.PathFigure(.8*ne,.5*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te));var Le=new go.PathFigure((ye+ge)*ne,be*te,!0);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,(ye-se)*ne,(be+ge)*te,(ye-ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,(ye+se)*ne,(be-ge)*te,(ye+ge)*ne,(be-se)*te)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.4,ye=Ge*.1,be=.1,Ae=.9,Le=.5,Ve=new go.PathFigure(.8*ne,.5*te,!0);he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,.8*ne,(.5+ge)*te,(.4+se)*ne,te)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ve.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(.4+se)*ne,0,.8*ne,(.5-ge)*te));var et=new go.PathFigure((Ae+be)*ne,Le*te,!0);return he.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+be)*te,(Ae+be)*ne,(Le+ye)*te,(Ae+ye)*ne,(Le+be)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne,Le*te,(Ae-ye)*ne,(Le+be)*te,(Ae-be)*ne,(Le+ye)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-be)*te,(Ae-be)*ne,(Le-ye)*te,(Ae-ye)*ne,(Le-be)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne,Le*te,(Ae+ye)*ne,(Le-be)*te,(Ae+be)*ne,(Le-ye)*te)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,ye=0,be=.5,Ae=new go.PathFigure(.8*ne,.5*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.7*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(ye+ge)*ne,(be-se)*te,.7*ne,(be-ge)*te)),se=.1,ge=Ge*.1,ye=.9,be=.5;var Le=new go.PathFigure((ye-se)*ne,be*te,!0);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*ne,be*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*ne,be*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,ye=0,be=.5,Ae=new go.PathFigure(0,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(ye+ge+ge)*ne,(be-se)*te,.8*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ne,(be+ge)*te,(ye+ge+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,ye=.2,be=.5,Ae=new go.PathFigure(.1*ne,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Le=new go.PathFigure(.8*ne,.5*te,!0);he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.7*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(ye+ge)*ne,(be-se)*te,.7*ne,(be-ge)*te)),se=.1,ge=Ge*.1,ye=.9,be=.5;var Ve=new go.PathFigure((ye-se)*ne,be*te,!0);return he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*ne,be*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*ne,be*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,ye=.2,be=.5,Ae=new go.PathFigure(.1*ne,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Le=new go.PathFigure(.2*ne,0,!0);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(ye+ge)*ne,(be-se)*te,.9*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.9*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("Resistor",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),he}),go.Shape.defineFigureGenerator("Inductor",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.1,ge=.1,ye=.1,be=.5,Ae=new go.PathFigure((ye-se*.5)*ne,te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,0,(ye-se)*ne,te,(ye-ge)*ne,0)),ye=.3,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,te,(ye+ge)*ne,0,(ye+se)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,0,(ye-se)*ne,te,(ye-ge)*ne,0)),ye=.5,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,te,(ye+ge)*ne,0,(ye+se)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,0,(ye-se)*ne,te,(ye-ge)*ne,0)),ye=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,te,(ye+ge)*ne,0,(ye+se)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,0,(ye-se)*ne,te,(ye-ge)*ne,0)),ye=.9,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se*.5)*ne,te,(ye+ge)*ne,0,(ye+se)*ne,te)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,ye=.5,be=.5,Ae=new go.PathFigure((ye-ge)*ne,be*te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,(ye+se)*ne,(be-ge)*te,(ye+ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,(ye-se)*ne,(be+ge)*te,(ye-ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Move,(ye-ge+.1)*ne,be*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge-.1)*ne,be*te,ye*ne,(be-ge)*te,ye*ne,(be+ge)*te)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("Diode",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Fe,ne,te){var he=new go.Geometry,se=ne,ge=te;ne=ne*.38,te=te*.6;var ye=Ge*.8,be=.8,Ae=0,Le=.5,Ve=(se-ne)/2,et=(ge-te)/2,Je=new go.PathFigure(Ae*ne+Ve,(Le+be)*te+et,!0);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne+Ve,Le*te+et,(Ae-ye)*ne+Ve,(Le+be)*te+et,(Ae-be)*ne+Ve,(Le+ye)*te+et)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le-be)*te+et,(Ae-be)*ne+Ve,(Le-ye)*te+et,(Ae-ye)*ne+Ve,(Le-be)*te+et)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+ye*.5)*ne+Ve,Le*te+et,Ae*ne+Ve,(Le-be)*te+et,(Ae-be+ye*.5)*ne+Ve,(Le-ye)*te+et)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le+be)*te+et,(Ae-be+ye*.5)*ne+Ve,(Le+ye)*te+et,Ae*ne+Ve,(Le+be)*te+et).close()),ye=Ge*.4,be=.4,Ae=.2,Le=.5;var rt=new go.PathFigure(Ae*ne+Ve,(Le+be)*te+et,!0);he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne+Ve,Le*te+et,(Ae-ye)*ne+Ve,(Le+be)*te+et,(Ae-be)*ne+Ve,(Le+ye)*te+et)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le-be)*te+et,(Ae-be)*ne+Ve,(Le-ye)*te+et,(Ae-ye)*ne+Ve,(Le-be)*te+et)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+ye*.5)*ne+Ve,Le*te+et,Ae*ne+Ve,(Le-be)*te+et,(Ae-be+ye*.5)*ne+Ve,(Le-ye)*te+et)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le+be)*te+et,(Ae-be+ye*.5)*ne+Ve,(Le+ye)*te+et,Ae*ne+Ve,(Le+be)*te+et).close()),ye=Ge*.2,be=.2,Ae=.5,Le=.5;var at=new go.PathFigure((Ae-be)*ne+Ve,Le*te+et,!0);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le-be)*te+et,(Ae-be)*ne+Ve,(Le-ye)*te+et,(Ae-ye)*ne+Ve,(Le-be)*te+et)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne+Ve,Le*te+et,(Ae+ye)*ne+Ve,(Le-be)*te+et,(Ae+be)*ne+Ve,(Le-ye)*te+et)),at.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le+be)*te+et,(Ae+be)*ne+Ve,(Le+ye)*te+et,(Ae+ye)*ne+Ve,(Le+be)*te+et)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne+Ve,Le*te+et,(Ae-ye)*ne+Ve,(Le+be)*te+et,(Ae-be)*ne+Ve,(Le+ye)*te+et)),ye=Ge*.4,be=.4,Ae=.8,Le=.5;var tt=new go.PathFigure(Ae*ne+Ve,(Le-be)*te+et,!0);he.add(tt),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne+Ve,Le*te+et,(Ae+ye)*ne+Ve,(Le-be)*te+et,(Ae+be)*ne+Ve,(Le-ye)*te+et)),tt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le+be)*te+et,(Ae+be)*ne+Ve,(Le+ye)*te+et,(Ae+ye)*ne+Ve,(Le+be)*te+et)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-ye*.5)*ne+Ve,Le*te+et,Ae*ne+Ve,(Le+be)*te+et,(Ae+be-ye*.5)*ne+Ve,(Le+ye)*te+et)),tt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le-be)*te+et,(Ae+be-ye*.5)*ne+Ve,(Le-ye)*te+et,Ae*ne+Ve,(Le-be)*te+et).close()),ye=Ge*.8,be=.8,Ae=1,Le=.5;var Et=new go.PathFigure(Ae*ne+Ve,(Le-be)*te+et,!0);return he.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne+Ve,Le*te+et,(Ae+ye)*ne+Ve,(Le-be)*te+et,(Ae+be)*ne+Ve,(Le-ye)*te+et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le+be)*te+et,(Ae+be)*ne+Ve,(Le+ye)*te+et,(Ae+ye)*ne+Ve,(Le+be)*te+et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-ye*.5)*ne+Ve,Le*te+et,Ae*ne+Ve,(Le+be)*te+et,(Ae+be-ye*.5)*ne+Ve,(Le+ye)*te+et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+Ve,(Le-be)*te+et,(Ae+be-ye*.5)*ne+Ve,(Le-ye)*te+et,Ae*ne+Ve,(Le-be)*te+et).close()),he}),go.Shape.defineFigureGenerator("Email",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.54*te)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.35*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,0).close());var ge=new go.PathFigure(.1*ne,te,!0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var ye=new go.PathFigure(.6*ne,te,!0,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.6*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te).close());var be=new go.PathFigure(0,.5*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),be.add(new go.PathSegment(go.PathSegment.Move,.75*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.6*te)),be.add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.6*te)),he}),go.Shape.defineFigureGenerator("Power",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.4,ge=.4,ye=.5,be=.5,Ae=ce(),Le=ce(),Ve=ce(),et=ce();Ie(ye,be-ge,ye+se,be-ge,ye+ge,be-se,ye+ge,be,.5,Ae,Ae,Le,Ve,et);var Je=le(Le.x,Le.y),rt=new go.PathFigure(Le.x*ne,Le.y*te,!0);he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,Ve.x*ne,Ve.y*te,et.x*ne,et.y*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,(ye-se)*ne,(be+ge)*te,(ye-ge)*ne,(be+se)*te)),Ie(ye-ge,be,ye-ge,be-se,ye-se,be-ge,ye,be-ge,.5,Ve,et,Le,Ae,Ae),rt.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*ne,Le.y*te,Ve.x*ne,Ve.y*te,et.x*ne,et.y*te)),se=Ge*.3,ge=.3,Ie(ye-ge,be,ye-ge,be-se,ye-se,be-ge,ye,be-ge,.5,Ve,et,Le,Ae,Ae),rt.add(new go.PathSegment(go.PathSegment.Line,Le.x*ne,Le.y*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ge)*ne,be*te,et.x*ne,et.y*te,Ve.x*ne,Ve.y*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+ge)*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ge)*ne,be*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Ie(ye,be-ge,ye+se,be-ge,ye+ge,be-se,ye+ge,be,.5,Ae,Ae,Le,Ve,et),rt.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*ne,Le.y*te,et.x*ne,et.y*te,Ve.x*ne,Ve.y*te).close());var rt=new go.PathFigure(.45*ne,0,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),Pe(Ae),Pe(Le),Pe(Ve),Pe(et),Pe(Je),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te/2,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,ne/2,te/2,ne/2,te/2));function ge(ye,be,Ae){ye.add(new go.PathSegment(go.PathSegment.Move,(.3+be)*ne,(.8+Ae)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,(.5+be)*ne,(.5+Ae)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,(.1+be)*ne,(.5+Ae)*te)),ye.add(new go.PathSegment(go.PathSegment.Line,(.3+be)*ne,(.8+Ae)*te).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.2*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.37*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.11*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.04*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.49*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.37*te)),se.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.86*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.91*te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,.78*te)),se.add(new go.PathSegment(go.PathSegment.Line,.44*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.56*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*te).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*ne,0,-.25*ne,.63*te,.45*ne,.44*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*ne,.42*te,.48*ne,.17*te,.54*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*ne,.18*te,.59*ne,.29*te,.58*ne,.28*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,.6*te,.8*ne,.34*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*ne,.31*te,.87*ne,.48*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,1.17*ne,.76*te,.82*ne,.8*te).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=0,ye=0,be=se*Ge,Ae=.4*Math.SQRT2/2+.5,Le=.5-.5*Math.SQRT2/2,Ve=1,et=.5,Je=.5,rt=0,at=new go.PathFigure(Ae*ne,(1-Le)*te,!1);return he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,et*te,Ve*ne,.7*te,Ve*ne,et*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Je+ge)*ne,(rt+ge)*te,(.5+se+ge)*ne,(.5-be+ge)*te,(.5+be+ge)*ne,(.5-se+ge)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+ye)*te,(.5-be+ge)*ne,(.5-se+ye)*te,(.5-se+ge)*ne,(.5-be+ye)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*ne,.9*te,(.5-se+ge)*ne,(.5+be+ye)*te,(.5-be+ge)*ne,.9*te)),at.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*ne,.8*te)),at.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*ne,.9*te)),at.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*ne,.95*te)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(ne,te,!1);he.add(ge);var ye=new go.PathFigure(0,.5*te,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.2*ne,.35*te,.3*ne,.35*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.7*ne,.65*te,.8*ne,.65*te)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var se=new go.PathFigure(0,.2*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.7*ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,0,.6*ne,.5*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,te,.4*ne,.5*te,ne,.5*te).close());var ge=new go.PathFigure(.45*ne,.73*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.73*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*ne,.27*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*ne,.27*te)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(.335*ne,(1-.555)*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.68*te,(1-.12)*ne,.46*te,(1-.02)*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*ne,(1-.555)*te,.02*ne,.54*te,.12*ne,.46*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*ne,(1-.595)*te));var ye=.5-.285,be=.5,Ae=ye,Le=Math.PI/4,Ve=4*(1-Math.cos(Le))/(3*Math.sin(Le)),et=Ve*.5,Je=ye,rt=ye,at=Ve*Je,tt=Ve*rt;ge.add(new go.PathSegment(go.PathSegment.Bezier,(be-Je)*ne,Ae*te,(be-(at+Je)/2)*ne,(Ae+(rt+tt)/2)*te,(be-Je)*ne,(Ae+tt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ae-rt)*te,(be-Je)*ne,(Ae-tt)*te,(be-at)*ne,(Ae-rt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(be+Je)*ne,Ae*te,(be+at)*ne,(Ae-rt)*te,(be+Je)*ne,(Ae-tt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*te,(be+Je)*ne,(Ae+tt)*te,(be+(at+Je)/2)*ne,(Ae+(rt+tt)/2)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ne,(1-.595)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te));var Et=new go.PathFigure(.2*ne,te,!1);he.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*te));var Lt=new go.PathFigure(.8*ne,te,!1);return he.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var ge=new go.PathFigure(.2*ne,.2*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(ne,te,!1);he.add(ge);var ye=new go.PathFigure(.1*ne,te,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.05*ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.8*te,0,te,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.1*te,.5*ne,0,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,ne,te,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,te));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*ne,.875*te)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ne,.875*te,ge*ne,ge*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.325*te,.575*ne,.725*te,.625*ne,.375*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.75*te,.375*ne,.375*te,.425*ne,.725*te)),he}),go.Shape.defineFigureGenerator("Recycle",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.45*ne,.95*te,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*ne,.85*te,.17*ne,.95*te,.15*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.235*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.625*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.575*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ne,.95*te,0,.675*te,0,.7*te)),se.add(new go.PathSegment(go.PathSegment.Move,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.775*te)),se.add(new go.PathSegment(go.PathSegment.Line,.22*ne,.775*te));var ge=new go.PathFigure(.475*ne,.2*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.175*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.05*te,.35*ne,0,.375*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.375*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.475*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.315*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.32*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,0,.65*ne,.05*te,.625*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*ne,.0105*te));var ye=new go.PathFigure(.675*ne,.575*te,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.875*ne,.525*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.85*ne,.95*te,ne,.8*te,ne,.85*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.95*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.85*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.725*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.775*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.775*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),ye.add(new go.PathSegment(go.PathSegment.Move,.675*ne,.575*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.775*ne,.775*te)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*.5,ye=new go.PathFigure(ne,se*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,te,ne,(se+ge)*te,(se+ge)*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,se*te,(se-ge)*ne,te,0,(se+ge)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,0,0,(se-ge)*te,(se-ge)*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,se*te,(se+ge)*ne,0,ne,(se-ge)*te));var be=new go.PathFigure(se*ne,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,se*ne,.15*te)),be.add(new go.PathSegment(go.PathSegment.Move,se*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,se*ne,.85*te)),be.add(new go.PathSegment(go.PathSegment.Move,0,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.15*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.85*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.58*ne,.1*te)),be.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.78*ne,.54*te)),he}),go.Shape.defineFigureGenerator("Package",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.15*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,.15*te,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.15*te).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var ye=new go.PathFigure(0,.5*te,!1);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("Component",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close());var ge=new go.PathFigure(0,.2*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close());var ye=new go.PathFigure(0,.6*te,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.6*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.8*te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.6*te).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.15*ne,.6*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te));var ge=new go.PathFigure(.15*ne,.6*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(ne,.8*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te).close());var ye=.1,be=Ge*.1,Ae=.2,Le=.9,Ve=new go.PathFigure((Ae-ye)*ne,Le*te,!0);he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-ye)*te,(Ae-ye)*ne,(Le-be)*te,(Ae-be)*ne,(Le-ye)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ye)*ne,Le*te,(Ae+be)*ne,(Le-ye)*te,(Ae+ye)*ne,(Le-be)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+ye)*te,(Ae+ye)*ne,(Le+be)*te,(Ae+be)*ne,(Le+ye)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ye)*ne,Le*te,(Ae-be)*ne,(Le+ye)*te,(Ae-ye)*ne,(Le+be)*te).close()),ye=.1,be=Ge*.1,Ae=.8,Le=.9;var et=new go.PathFigure((Ae-ye)*ne,Le*te,!0);return he.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-ye)*te,(Ae-ye)*ne,(Le-be)*te,(Ae-be)*ne,(Le-ye)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ye)*ne,Le*te,(Ae+be)*ne,(Le-ye)*te,(Ae+ye)*ne,(Le-be)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+ye)*te,(Ae+ye)*ne,(Le+be)*te,(Ae+be)*ne,(Le+ye)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ye)*ne,Le*te,(Ae-be)*ne,(Le+ye)*te,(Ae-ye)*ne,(Le+be)*te).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.2*ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),he}),go.Shape.defineFigureGenerator("Forklift",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ye=new go.PathFigure(.5*ne,.8*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.1*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.1*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.8*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te));var be=new go.PathFigure(.5*ne,.7*te,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te));var Ae=.1,Le=Ge*.1,Ve=.1,et=.9,Je=new go.PathFigure((Ve-Ae)*ne,et*te,!0);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(et-Ae)*te,(Ve-Ae)*ne,(et-Le)*te,(Ve-Le)*ne,(et-Ae)*te)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ve+Ae)*ne,et*te,(Ve+Le)*ne,(et-Ae)*te,(Ve+Ae)*ne,(et-Le)*te)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(et+Ae)*te,(Ve+Ae)*ne,(et+Le)*te,(Ve+Le)*ne,(et+Ae)*te)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ve-Ae)*ne,et*te,(Ve-Le)*ne,(et+Ae)*te,(Ve-Ae)*ne,(et+Le)*te)),Ae=.1,Le=Ge*.1,Ve=.4,et=.9;var rt=new go.PathFigure((Ve-Ae)*ne,et*te,!0);return he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(et-Ae)*te,(Ve-Ae)*ne,(et-Le)*te,(Ve-Le)*ne,(et-Ae)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ve+Ae)*ne,et*te,(Ve+Le)*ne,(et-Ae)*te,(Ve+Ae)*ne,(et-Le)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(et+Ae)*te,(Ve+Ae)*ne,(et+Le)*te,(Ve+Le)*ne,(et+Ae)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ve-Ae)*ne,et*te,(Ve-Le)*ne,(et+Ae)*te,(Ve-Ae)*ne,(et+Le)*te)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,.4*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.4*te).close());var ge=new go.PathFigure(.45*ne,.7*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te));var ye=new go.PathFigure(.55*ne,.4*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.4*te).close());var Ve=.05,et=Ge*.05,Je=.175,rt=.95,be=new go.PathFigure((Je-Ve)*ne,rt*te,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt-Ve)*te,(Je-Ve)*ne,(rt-et)*te,(Je-et)*ne,(rt-Ve)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ve)*ne,rt*te,(Je+et)*ne,(rt-Ve)*te,(Je+Ve)*ne,(rt-et)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt+Ve)*te,(Je+Ve)*ne,(rt+et)*te,(Je+et)*ne,(rt+Ve)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ve)*ne,rt*te,(Je-et)*ne,(rt+Ve)*te,(Je-Ve)*ne,(rt+et)*te));var Ve=.05,et=Ge*.05,Je=.375,rt=.95,Ae=new go.PathFigure((Je-Ve)*ne,rt*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt-Ve)*te,(Je-Ve)*ne,(rt-et)*te,(Je-et)*ne,(rt-Ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ve)*ne,rt*te,(Je+et)*ne,(rt-Ve)*te,(Je+Ve)*ne,(rt-et)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt+Ve)*te,(Je+Ve)*ne,(rt+et)*te,(Je+et)*ne,(rt+Ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ve)*ne,rt*te,(Je-et)*ne,(rt+Ve)*te,(Je-Ve)*ne,(rt+et)*te));var Ve=.05,et=Ge*.05,Je=.625,rt=.95,Le=new go.PathFigure((Je-Ve)*ne,rt*te,!0);he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt-Ve)*te,(Je-Ve)*ne,(rt-et)*te,(Je-et)*ne,(rt-Ve)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ve)*ne,rt*te,(Je+et)*ne,(rt-Ve)*te,(Je+Ve)*ne,(rt-et)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt+Ve)*te,(Je+Ve)*ne,(rt+et)*te,(Je+et)*ne,(rt+Ve)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ve)*ne,rt*te,(Je-et)*ne,(rt+Ve)*te,(Je-Ve)*ne,(rt+et)*te));var Ve=.05,et=Ge*.05,Je=.825,rt=.95,at=new go.PathFigure((Je-Ve)*ne,rt*te,!0);he.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt-Ve)*te,(Je-Ve)*ne,(rt-et)*te,(Je-et)*ne,(rt-Ve)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Ve)*ne,rt*te,(Je+et)*ne,(rt-Ve)*te,(Je+Ve)*ne,(rt-et)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,Je*ne,(rt+Ve)*te,(Je+Ve)*ne,(rt+et)*te,(Je+et)*ne,(rt+Ve)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Ve)*ne,rt*te,(Je-et)*ne,(rt+Ve)*te,(Je-Ve)*ne,(rt+et)*te).close());var tt=new go.PathFigure(0,te,!1);return he.add(tt),tt.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var ye=new go.PathFigure(.15*ne,te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te).close());var be=.05,Ae=Ge*.05,Le=.35,Ve=.775,et=new go.PathFigure((Le-be)*ne,Ve*te,!0);return he.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ve-be)*te,(Le-be)*ne,(Ve-Ae)*te,(Le-Ae)*ne,(Ve-be)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Le+be)*ne,Ve*te,(Le+Ae)*ne,(Ve-be)*te,(Le+be)*ne,(Ve-Ae)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ve+be)*te,(Le+be)*ne,(Ve+Ae)*te,(Le+Ae)*ne,(Ve+be)*te)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Le-be)*ne,Ve*te,(Le-Ae)*ne,(Ve+be)*te,(Le-be)*ne,(Ve+Ae)*te).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),he}),go.Shape.defineFigureGenerator("Globe",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.75*ne,0,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.75*te,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ne,te,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,.25*te,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,.15*ne,.25*te,.15*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.85*ne,.75*te,.85*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.15*te,.35*ne,.3*te,.65*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.85*te,.35*ne,.7*te,.65*ne,.7*te)),he}),go.Shape.defineFigureGenerator("Wave",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.25*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.25*te,.1*ne,0,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.25*te,.425*ne,.5*te,.575*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.25*te,.8*ne,0,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.75*te,.1*ne,.5*te,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.75*te,.425*ne,te,.575*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.75*te,.8*ne,.5*te,.9*ne,.5*te)),he}),go.Shape.defineFigureGenerator("Operator",function(Fe,ne,te){var he=new go.Geometry,se=.3,ge=Ge*.3,ye=.5,be=.7,Ae=new go.PathFigure((ye-se)*ne,be*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*ne,be*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*ne,be*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te));var Le=new go.PathFigure(0,.7*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.7*te,0,0,ne,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.65*ne,.3*te,.65*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.35*ne,.5*te,.35*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ne,.6*te,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.2*ne,te,.35*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,.7*ne,.6*te,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.8*ne,te,.65*ne,.95*te)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,0,te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.4*te,.8*ne,te,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.1*te));var ge=new go.PathFigure(0,.6*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),he}),go.Shape.defineFigureGenerator("Delete",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*.5,ye=.5,be=.5,Ae=new go.PathFigure((ye-se)*ne,be*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*ne,be*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*ne,be*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te));var Le=new go.PathFigure(.15*ne,.5*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.5*te)),he}),go.Shape.defineFigureGenerator("Flag",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.1*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.1*te,.15*ne,0,.35*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,.65*ne,.2*te,.85*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.85*ne,.6*te,.65*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.35*ne,.4*te,.15*ne,.4*te).close()),he}),go.Shape.defineFigureGenerator("Help",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*.5,ye=.5,be=.5,Ae=new go.PathFigure((ye-se)*ne,be*te,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*ne,be*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*ne,be*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te).close()),se=.05,ge=Ge*.05,ye=.5,be=.8;var Le=new go.PathFigure((ye-se)*ne,be*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be-se)*te,(ye-se)*ne,(be-ge)*te,(ye-ge)*ne,(be-se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*ne,be*te,(ye+ge)*ne,(be-se)*te,(ye+se)*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(be+se)*te,(ye+se)*ne,(be+ge)*te,(ye+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*ne,be*te,(ye-ge)*ne,(be+se)*te,(ye-se)*ne,(be+ge)*te).close()),Le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,.75*ne,.475*te,.75*ne,.225*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.35*te,.4*ne,.2*te,.3*ne,.25*te)),he}),go.Shape.defineFigureGenerator("Location",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.975*ne,.025*te,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ne,.5*te,.5*ne,0,.025*ne,.025*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ne,.3*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Lock",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.3*te)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.35*te)),he}),go.Shape.defineFigureGenerator("Gear",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.9375*ne,.56246875*te,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ne,.3316875*te,.79840625*ne,.39915625*te,.7834375*ne,.3635*te)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ne,.23796875*te)).add(new go.PathSegment(go.PathSegment.Line,.76825*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ne,.24184375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ne,.19378125*te,.64228125*ne,.2188125*te,.603875*ne,.2021875*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.19378125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ne,.239375*te,.39759375*ne,.20190625*te,.36053125*ne,.2176875*te)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ne,.2379375*te)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ne,.3278125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ne,.4375*te,.21765625*ne,.36059375*te,.201875*ne,.397625*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ne,.67596875*te,.20221875*ne,.603875*te,.21884375*ne,.64228125*te)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.238*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ne,.76296875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ne,.80621875*te,.36353125*ne,.78340625*te,.3991875*ne,.79840625*te)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.80621875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ne,.760625*te,.602375*ne,.79809375*te,.63946875*ne,.78234375*te)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ne,.67221875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ne,.56246875*te,.78234375*ne,.63940625*te,.798125*ne,.602375*te)).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.56246875*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ne,.5*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Hand",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.3*te,0,.375*te,.05*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.075*te,.3*ne,.225*te,.4*ne,.175*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*ne,.075*te,.46*ne,.05*te,.525*ne,.05*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.4*te,.525*ne,.275*te,.475*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.55*te,ne,.4*te,ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.7*te,.675*ne,.55*te,.675*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,.85*te,.65*ne,.7*te,.65*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*ne,te,.61*ne,.85*te,.61*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,.435*ne,te,0,te).close()),he}),go.Shape.defineFigureGenerator("Map",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),he}),go.Shape.defineFigureGenerator("Eject",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.7).close());var ge=new go.PathFigure(0,te*.6,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close()))}),go.Shape.defineFigureGenerator("Building",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*1,te*1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.85).close());var ge=new go.PathFigure(.126*ne,.85*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.85*te).close());var ye=new go.PathFigure(.402*ne,.85*te,!1);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.402*ne,.45*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.45*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.85*te).close());var be=new go.PathFigure(.678*ne,.85*te,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.678*ne,.45*te)),be.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.45*te)),be.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.85*te).close());var Ae=new go.PathFigure(.5*ne,.1*te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ne,.3*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ne,.3*te).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te*1,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te*1,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*(1-.184)).close());var ge=new go.PathFigure(ne*.204,te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.204,te*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*1).close());var ye=new go.PathFigure(ne*.408,te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.408,te*(1-.184*2))),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*(1-.184*3))),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*1).close());var be=new go.PathFigure(ne*.612,te,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.612,te*(1-.184*3))),be.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*1).close());var Ae=new go.PathFigure(ne*.816,te,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.816,te*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-.184*5))),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,0).close());var ge=new go.PathFigure(ne*.055,.07*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.1).close());var ye=new go.PathFigure(ne*.055,.13*te,!0);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.13)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.16)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.16).close());var be=new go.PathFigure(ne*.055,.18*te,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.18)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.21)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.21).close());var Ae=new go.PathFigure(ne*1,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.4,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.65)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.55*ne,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*ne,.525*te,0,.4*te,.225*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.2*te,.975*ne,0,ne,.08*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te).close()),he}),go.Shape.defineFigureGenerator("Key",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*1,te*.5,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,.575*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.6*te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*ne,.425*te)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ne,.5*te,.075*ne,.075*te).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*0,ne*.3,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var ge=new go.PathFigure(0,0,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*1,ne*.3,ne*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var ye=new go.PathFigure(ne*.11,te*.1,!1);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.1)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.8)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.11,te*.8).close());var be=new go.PathFigure(ne*(.11+.24133333*1+.028*1),te*.1,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.1)),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.8)),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*1),te*.8).close());var Ae=new go.PathFigure(ne*(.11+.24133333*2+.028*2),te*.1,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.8)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*2),te*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Fe,ne,te){var he=new go.Geometry,se=8,ge=se*Ge,ye=new go.PathFigure(se,0,!1);he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.86,0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.14)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-ge,ne-ge,te)),ye.add(new go.PathSegment(go.PathSegment.Line,se,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,ge,te,0,te-ge)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var be=new go.PathFigure(ne*.83,0,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.3)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.3)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*0).close());var Ae=new go.PathFigure(ne*.83,te*1,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*1).close());var Le=new go.PathFigure(ne*.78,te*.05,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.05)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.25)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.78,te*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,ne/3),he=Math.min(he,te/3);var se=he*Ge,ge=te*.8,ye=new go.Geometry,be=new go.PathFigure(he,0,!0);return ye.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne-he,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne,he,ne-se,0,ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,ne,ge-he)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,ge,ne,ge-se,ne-se,ge)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ge)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ge)),be.add(new go.PathSegment(go.PathSegment.Line,he,ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-he,se,ge,0,ge-se)),be.add(new go.PathSegment(go.PathSegment.Line,0,he)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()),se>1?(ye.spot1=new go.Spot(0,0,se,se),ye.spot2=new go.Spot(1,.8,-se,-se)):(ye.spot1=go.Spot.TopLeft,ye.spot2=new go.Spot(1,.8)),ye}),go.Shape.defineFigureGenerator("Repeat",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*.45,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.45).close());var ge=new go.PathFigure(ne*1,te*.55,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ne,.4*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.1*te).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*.1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.9).close());var ge=new go.PathFigure(ne*.1,te*.2,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.22,te*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.25).close());var ye=new go.PathFigure(ne*.28,te*.37,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.37)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.41)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.28,te*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Fe,ne,te){var he=new go.Geometry,se=15,ge=se*Ge,ye=new go.PathFigure(ne*.62,te*.475,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-ge,ne-ge,te)),ye.add(new go.PathSegment(go.PathSegment.Line,se,te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,ge,te,0,te-ge)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.475)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.03)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*0)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.62,te*.03).close()),ge>1?(he.spot1=new go.Spot(0,0,ge,ge),he.spot2=new go.Spot(1,1,-ge,-ge)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var ye=new go.PathFigure(ne*.4,te*0,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.44)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.44)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.66)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.26),te*.44)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.44)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);he.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var ye=new go.PathFigure(ne*.5,te*0,!0);return he.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.25)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.25)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.63)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.63)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.25)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.74,te*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close());var ge=new go.PathFigure(ne*.235,te*.28,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.765,te*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.655,te*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.345,te*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.5,te*0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.25).close()),he}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Re={},Ee="5.0",le={},ce=null,Pe=!1,Me=!1,Ie=null,je=!1,Te=null,Ge=null,st=0;st<arguments.length;st++){var Qe=arguments[st];if(Qe!==null)switch(typeof Qe){case"number":Ee=Qe.toFixed(1);break;case"string":Qe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ee=Qe:Ie=Qe;break;case"object":typeof Qe.is3D!="undefined"?ce=Qe:le=Qe;break;case"boolean":Pe=Qe,Me=!0;break}}ce===null&&(ce={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},le.material_id!==void 0&&!Me&&(Pe=!0)),Ie!==null&&le.id===void 0&&(le.id=Ie);var We="",mt="",it=!1,kt=null,Fe=null,ne=null,te=!1,he=null,se=null,ge=null,ye=null,be=null;le.height!==void 0&&(le.height=Math.round(le.height)),le.width!==void 0&&(le.width=Math.round(le.width));var Ae=function(Nt){return parseFloat(Nt)>4?parseFloat(Nt):5};Re.setHTML5Codebase=function(Nt,hn){Ge=Nt,ct(Nt,hn)},Re.setJavaCodebase=Re.setJavaCodebaseVersion=Re.isCompiledInstalled=Re.setPreCompiledScriptPath=Re.setPreCompiledResourcePath=function(){},Re.setHTML5CodebaseVersion=function(Nt,hn){var cn=parseFloat(Nt);if(cn!==NaN&&cn<5){console.log("The GeoGebra HTML5 codebase version "+cn+" is deprecated. Using version latest instead.");return}Te=Nt,dt(Nt,hn)},Re.getHTML5CodebaseVersion=function(){return Fe},Re.getParameters=function(){return le},Re.setFontsCSSURL=function(Nt){ye=Nt},Re.setGiacJSURL=function(Nt){},Re.setJNLPFile=function(Nt){We=Nt},Re.setJNLPBaseDir=function(Nt){},Re.inject=function(){function Nt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var hn="auto",cn=le.id,Qn,Bt=!1,Pt=0;Pt<arguments.length;Pt++){var Wt=arguments[Pt];typeof Wt=="string"?(Wt=Wt.toLowerCase(),Wt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?hn=Wt:cn=arguments[Pt]):typeof Wt=="boolean"?Bt=Wt:Wt instanceof HTMLElement&&(Qn=Wt)}An();function An(){if(!je){setTimeout(An,200);return}hn=fn(hn);var Nn=Qn||document.getElementById(cn);if(!Nn){console.log("possibly bug on ajax loading? ");return}if(Re.removeExistingApplet(Nn,!1),le.width===void 0&&Nn.clientWidth&&(le.width=Nn.clientWidth),le.height===void 0&&Nn.clientHeight&&(le.height=Nn.clientHeight),!(le.width&&le.height)&&hn==="html5"&&(delete le.width,delete le.height),kt=hn,hn==="screenshot")Lt(Nn,le);else{var $e=!1;le.hasOwnProperty("playButton")&&le.playButton||le.hasOwnProperty("clickToLoad")&&le.clickToLoad?$e=!0:le.hasOwnProperty("playButtonAutoDecide")&&le.playButtonAutoDecide&&($e=(!Le()||Nt())&&Ve()),$e?(kt="screenshot",on(Nn,le,Bt,hn)):Et(Nn,le,Bt)}}};function Le(){try{return window.self!==window.top}catch(Nt){return!0}}function Ve(){return le.hasOwnProperty("screenshotGenerator")&&le.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Re.getViews=function(){return ce},Re.isJavaInstalled=function(){return!1};var et=function(Nt){var hn=function(Pt){var Wt=JSON.parse(Pt),An=function(Oe){return Oe.type=="G"||Oe.type=="E"},Nn=Wt.elements?Wt.elements.filter(An)[0]:Wt;if(!Nn||!Nn.url){cn();return}le.fileName=Nn.url,Je(Nn.settings||{}),ce.is3D=!0;var $e="https://www.geogebra.org/images/";Re.setPreviewImage(he||Nn.previewUrl,$e+"GeoGebra_loading.png",$e+"applet_play.png"),Nt()},cn=function(){le.onError&&le.onError(),Qt("Error: Fetching material (id "+le.material_id+") failed.",le)},Qn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Bt="/materials/"+le.material_id+"?scope=basic";rt("https://"+Qn+"/api/proxy.php?path="+encodeURIComponent(Bt),hn,cn)};function Je(Nt){var hn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(cn){Nt[cn]=!!Nt[cn]}),hn.forEach(function(cn){le[cn]===void 0&&Nt[cn]!==void 0&&(le[cn]=Nt[cn])}),le.showToolBarHelp===void 0&&(le.showToolBarHelp=le.showToolBar)}function rt(Nt,hn,cn){var Qn=new XMLHttpRequest;Qn.open("GET",Nt),Qn.onload=function(){hn(Qn.responseText)},Qn.onerror=cn,Qn.send()}Re.isHTML5Installed=function(){return!0},Re.getLoadedAppletType=function(){return kt},Re.setPreviewImage=function(Nt,hn,cn){he=Nt,se=hn,ge=cn},Re.removeExistingApplet=function(Nt,hn){var cn;typeof Nt=="string"&&(Nt=document.getElementById(Nt)),kt=null;var Qn=null;for(cn=0;cn<Nt.childNodes.length;cn++){var Bt=Nt.childNodes[cn],Pt=Bt.className;Pt==="applet_screenshot"?hn?(Bt.style.display="block",kt="screenshot"):Bt.style.display="none":Pt!=="applet_scaler prerender"&&(Nt.removeChild(Bt),Qn=Pt&&Pt.indexOf("appletParameters")!=-1?Bt.id:null,cn--)}var Wt=le.id!==void 0?le.id:Qn,An=window[Wt];An&&typeof An.getBase64=="function"&&(An.remove(),window[Wt]=null)},Re.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Nt=Re.getAppletObject();return Nt&&typeof Nt.recalculateEnvironments=="function"?(Nt.recalculateEnvironments(),!0):!1},Re.startAnimation=function(){var Nt=Re.getAppletObject();return Nt&&typeof Nt.startAnimation=="function"?(Nt.startAnimation(),!0):!1},Re.stopAnimation=function(){var Nt=Re.getAppletObject();return Nt&&typeof Nt.stopAnimation=="function"?(Nt.stopAnimation(),!0):!1},Re.getAppletObject=function(){var Nt=le.id!==void 0?le.id:"ggbApplet";return window[Nt]},Re.resize=function(){};var at=function(Nt,hn,cn){var Qn=document.createElement("param");Qn.setAttribute("name",hn),Qn.setAttribute("value",cn),Nt.appendChild(Qn)},tt=function(Nt){return Nt&&Nt!=="false"},Et=function(Nt,hn,cn){Ae(Fe)<=4.2&&(cn=!0);var Qn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(Qn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Bt=document.createElement("div");Bt.classList.add("appletParameters","notranslate");var Pt=hn.width,Wt=hn.height;if(hn.disableAutoScale=hn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():hn.disableAutoScale,hn.width!==void 0)if(Ae(Fe)<=4.4)tt(hn.showToolBar)&&(hn.height-=7),tt(hn.showAlgebraInput)&&(hn.height-=37),hn.width<605&&tt(hn.showToolBar)&&(hn.width=605,Pt=605);else{var An=100;(tt(hn.showToolBar)||tt(hn.showMenuBar))&&(hn.hasOwnProperty("customToolBar")&&(hn.customToolbar=hn.customToolBar),An=tt(hn.showMenuBar)?245:155),Pt<An&&(hn.width=An,Pt=An)}Bt.style.border="none",Bt.style.display="inline-block";for(var Nn in hn)hn.hasOwnProperty(Nn)&&Nn!=="appletOnLoad"&&Bt.setAttribute("data-param-"+Nn,hn[Nn]);ye&&Bt.setAttribute("data-param-fontscssurl",ye),Re.resize=function(){GGBAppletUtils.responsiveResize(Nt,hn)},window.addEventListener("resize",function(sn){Re.resize()});var $e=typeof hn.appletOnLoad=="function"?hn.appletOnLoad:function(){};if(!cn&&hn.width!==void 0){hn.hasOwnProperty("showSplash")||Bt.setAttribute("data-param-showSplash","false");var Oe=Nt.querySelector(".applet_scaler.prerender"),ke=Oe!==null;if(ke)var Ke=Oe.querySelector(".ggb_preview");else{var Ke=Kt(Pt,Wt,hn.borderColor,!1);Oe=document.createElement("div"),Oe.className="applet_scaler",Oe.style.position="relative",Oe.style.display="block",Oe.style.width=Pt+"px",Oe.style.height=Wt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Oe,"66%"),Ae(Fe)>=5?(hn.appletOnLoad=function(sn){var vn=Nt.querySelector(".ggb_preview");vn&&vn.parentNode.removeChild(vn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Oe),window.GGBT_wsf_view&&$(window).trigger("resize"),$e(sn)},ke||Oe.appendChild(Ke)):Bt.appendChild(Ke),Oe.appendChild(Bt),ke||Nt.appendChild(Oe),setTimeout(function(){Re.resize()},1)}else{var lt=document.createElement("div");lt.className="applet_scaler",lt.style.position="relative",lt.style.display="block",lt.appendChild(Bt),Nt.appendChild(lt),hn.appletOnLoad=function(sn){Re.resize(),$e(sn)}}function Ue(sn,vn){vn&&typeof vn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,vn.appletOnLoad):renderGGBElement(sn),Qt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",vn)}function gt(sn,vn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:vn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ln){Ue(Ln.article,Ln.params)}),html5AppletsToProcess=null)},Ae(Fe)<5&&(sn.className+=" geogebraweb")):Ue(sn,vn)}if(Qn){scriptLoadStarted=!0;for(var tn=0;tn<Bt.childNodes.length;tn++){var Un=Bt.childNodes[tn].tagName;Un==="TABLE"&&(Bt.removeChild(Bt.childNodes[tn]),tn--)}if(ggbHTML5LoadedScript!==null){var qn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');qn!=null&&qn.parentNode.removeChild(qn)}var nn=document.createElement("script"),Ht=function(){gt(Bt,hn)};nn.src=mt+ne,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=nn.src,Qt("GeoGebra HTML5 codebase loaded: '"+mt+"'.",hn),!Ge&&(!Te||Te=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ht()):mt.requirejs?__webpack_require__.e(7963).then(function(){var sn=[__webpack_require__(87963)];Ht.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(nn.onload=Ht,Nt.appendChild(nn))}else gt(Bt,hn);hn.height=Wt,hn.width=Pt},Lt=function(Nt,hn,cn){var Qn=Kt(hn.width,hn.height,hn.borderColor,cn),Bt=document.createElement("div");Bt.style.position="relative",Bt.style.display="block",Bt.style.width=hn.width+"px",Bt.style.height=hn.height+"px",Bt.className="applet_screenshot applet_scaler"+(cn?" applet_screenshot_play":""),Bt.appendChild(Qn);var Pt=GGBAppletUtils.getScale(hn,Nt,cn);cn?(Nt.appendChild(an()),window.GGBT_wsf_view||(Nt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Bt,"66%"),Nt.appendChild(Bt),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(Bt,Pt),Bt.style.width=hn.width+"px",Bt.style.height=hn.height+"px",Bt.parentNode.style.width=hn.width*Pt+"px",Bt.parentNode.style.height=hn.height*Pt+"px"),Re.resize=function(){Ut(Nt,Qn,Bt,cn)},window.addEventListener("resize",function(Wt){Re.resize()}),Re.resize()};function Ut(Nt,hn,cn,Qn){if(Nt.contains(hn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Nt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Nt)}var Bt=GGBAppletUtils.getScale(le,Nt,Qn);cn.parentNode!==null&&(!isNaN(Bt)&&Bt!==1?(GGBAppletUtils.scaleElement(cn,Bt),cn.parentNode.style.width=le.width*Bt+"px",cn.parentNode.style.height=le.height*Bt+"px"):(GGBAppletUtils.scaleElement(cn,1),cn.parentNode.style.width=le.width+"px",cn.parentNode.style.height=le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Nt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Re.onExitFullscreen=function(Nt,hn){hn.appendChild(Nt)};var on=function(Nt,hn,cn,Qn){Lt(Nt,hn,!0);for(var Bt=function(){var An=[];for(Wt=0;Wt<Nt.childNodes.length;Wt++)An.push(Nt.childNodes[Wt]);if(window.GGBT_wsf_view){var Nn=window.GGBT_wsf_view.renderFullScreen(Nt,hn.id),$e=document.getElementById("fullscreencontainer"),Oe=jQuery(Nt).find(".fullscreencontent");Oe.length>0?(Nn.remove(),Oe.attr("id","fullscreencontent").show(),jQuery($e).append(Oe),window.dispatchEvent(new Event("resize"))):Et(Nn,hn,!1),window.GGBT_wsf_view.launchFullScreen($e)}else kt=Qn,Et(Nt,hn,!1);if(!window.GGBT_wsf_view)for(Wt=0;Wt<An.length;Wt++)Nt.removeChild(An[Wt])},Pt=Nt.getElementsByClassName("ggb_preview_play"),Wt=0;Wt<Pt.length;Wt++)Pt[Wt].addEventListener("click",Bt,!1),Pt[Wt].addEventListener("ontouchstart",Bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Nt),Ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},an=function(){var Nt=document.createElement("div");if(Nt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var hn='.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");}',cn=document.createElement("style");cn.styleSheet?cn.styleSheet.cssText=hn:cn.appendChild(document.createTextNode(hn)),document.getElementsByTagName("head")[0].appendChild(cn)}return Nt},Kt=function(Nt,hn,cn,Qn){var Bt=document.createElement("div");Bt.className="ggb_preview",Bt.style.position="absolute",Bt.style.zIndex="90",Bt.style.width=Nt-2+"px",Bt.style.height=hn-2+"px",Bt.style.top="0px",Bt.style.left="0px",Bt.style.overflow="hidden",Bt.style.backgroundColor="white";var Pt="lightgrey";cn!==void 0&&(cn==="none"?Pt="transparent":Pt=cn),Bt.style.border="1px solid "+Pt;var Wt=document.createElement("img");if(Wt.style.position="relative",Wt.style.zIndex="1000",Wt.style.top="-1px",Wt.style.left="-1px",he!==null&&Wt.setAttribute("src",he),Wt.style.opacity=.7,se!==null){var An,Nn,$e;if(!Qn){An=document.createElement("img"),An.style.position="absolute",An.style.zIndex="1001",An.style.opacity=1,Wt.style.opacity=.3,Nn=360,Nn>Nt/4*3&&(Nn=Nt/4*3),$e=Nn/5.8,An.setAttribute("src",se),An.setAttribute("width",Nn),An.setAttribute("height",$e);var Oe=(Nt-Nn)/2,ke=(hn-$e)/2;An.style.left=Oe+"px",An.style.top=ke+"px",Bt.appendChild(An)}}return Bt.appendChild(Wt),Bt},fn=function(Nt){return Nt=Nt.toLowerCase(),Nt==="html5"||Nt==="screenshot"?Nt:"html5"},bt=["web","webSimple","web3d","tablet","tablet3d","phone"],dt=function(Nt,hn){if(Fe=Nt,hn){ct(Fe,!0);return}var cn=!Pe;if(cn){var Qn=Ae(Fe);!isNaN(Qn)&&Qn<4.4&&(cn=!1)}var Bt,Pt;window.location.protocol.substr(0,4)==="http"?Bt=window.location.protocol:Bt="http:";var Wt=Fe.indexOf("//");Wt>0?Pt=Fe:Wt===0?Pt=Bt+Fe:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var An in bt)if(Fe.slice(bt[An].length*-1)===bt[An]||Fe.slice((bt[An].length+1)*-1)===bt[An]+"/"){ct(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&cn&&!ce.is3D&&!ce.AV&&!ce.SV&&!ce.CV&&!ce.EV2&&!ce.CP&&!ce.PC&&!ce.DA&&!ce.FI&&!ce.PV&&!tt(le.showToolBar)&&!tt(le.showMenuBar)&&!tt(le.showAlgebraInput)&&!tt(le.enableRightClick)&&(!le.appName||le.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",ct(Pt,!1)},ct=function(Nt,hn){if(Nt.requirejs){mt=Nt;return}Nt.slice(-1)!=="/"&&(Nt+="/"),mt=Nt,hn===null&&(hn=Nt.indexOf("http")===-1),it=hn,ne="web.nocache.js",te=!1;var cn=mt.split("/");cn.length>1&&(!hn&&cn[cn.length-2]==="webSimple"?(ne="webSimple.nocache.js",te=!0):bt.indexOf(cn[cn.length-2])>=0&&(ne=cn[cn.length-2]+".nocache.js")),cn=Nt.split("/"),Fe=cn[cn.length-3],Fe.substr(0,4)==="test"?Fe=Fe.substr(4,1)+"."+Fe.substr(5,1):(Fe.substr(0,3)==="war"||Fe.substr(0,4)==="beta")&&(Fe="5.0");var Qn=parseFloat(Fe);Qn!==NaN&&Qn<5&&Nt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Qn+" is deprecated. Using version latest instead."),dt("5.0",hn))},Qt=function(Nt,hn){window.console&&window.console.log&&(!hn||typeof hn.showLogging=="undefined"||hn.showLogging&&hn.showLogging!=="false")&&console.log(Nt)};le.material_id!==void 0?et(un):un();function un(){var Nt=Ee;Te!==null?Nt=Te:parseFloat(Nt)<5&&(Nt="5.0"),dt(Nt,!1),Ge!==null&&ct(Ge,it),je=!0}return Re},GGBAppletUtils=function(){"use strict";function Re(){return window.GGBT_wsf_edit!==void 0}function Ee(je,Te){Te!=1?(je.style.transformOrigin="0% 0% 0px",je.style.webkitTransformOrigin="0% 0% 0px",je.style.transform="scale("+Te+","+Te+")",je.style.webkitTransform="scale("+Te+","+Te+")",je.style.maxWidth="initial",je.querySelector(".ggb_preview")!==null&&(je.querySelector(".ggb_preview").style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[0]!==void 0&&(je.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[1]!==void 0&&(je.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(je.style.transform="none",je.style.webkitTransform="none")}function le(je,Te,Ge,st,Qe,We){var mt=null;if(We!=null&&We!="")for(var it=je.parentNode;it!=null;)if((" "+it.className+" ").indexOf(" "+We+" ")>-1){mt=it;break}else it=it.parentNode;var kt=0,Fe=0,ne=0,te=0,he=0,se=0,ge=0;if(mt)kt=mt.offsetWidth,Fe=Math.max(st?mt.offsetWidth:0,mt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(kt=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=kt):(kt=window.innerWidth,Fe=window.innerHeight,ne=window.innerWidth),je){var ye=je.getBoundingClientRect();ye.left>0&&ye.left<=kt&&(Qe===void 0||!Qe)&&(document.dir==="rtl"?(he=kt-ye.width-ye.left,se=ne<=480?10:30):(se=ye.left,he=ne<=480?10:30),te=se+he)}if(je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=je.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,ge=40)}}return je&&((Ge===void 0||!Ge)&&Te>0&&Te+te<kt?kt=Te:kt-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge===void 0||!Ge)&&(Fe-=ge)),{width:kt,height:Fe}}function ce(je,Te,Ge,st,Qe){if(je.isScreenshoGenerator)return 1;var We=st!==void 0&&st,mt=je.noScaleMargin!=null&&je.noScaleMargin,it=function(be){return be&&be!=="false"},kt=it(je.autoHeight),Fe=le(Te,je.width,Ge,kt,We&&window.GGBT_wsf_view||mt,Qe),ne=parseInt(Fe.width),te=je.width,he=je.height;if(te===void 0){var se=Te.querySelector(".appletParameters");se&&(te=se.offsetWidth,he=se.offsetHeight)}var ge=ne/te,ye=We?1:Fe.height/he;return Ge!==void 0&&!Ge&&(ge=Math.min(1,ge),ye=Math.min(1,ye)),Math.min(ge,ye)}function Pe(je,Te,Ge){var st=1,Qe,We=!1;if(je.hasOwnProperty("allowUpscale")&&(We=je.allowUpscale),je.hasOwnProperty("scale")&&(st=parseFloat(je.scale),(isNaN(st)||st===null||st===0)&&(st=1),st>1&&(We=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(We=!0),!(je.hasOwnProperty("disableAutoScale")&&je.disableAutoScale))Qe=ce(je,Te,We,Ge,je.scaleContainerClass);else return st;return We&&(!je.hasOwnProperty("scale")||st===1)?Qe:Math.min(st,Qe)}function Me(je){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),st=je.getBoundingClientRect(),Qe=(Te-st.width)/2,We=(Ge-st.height)/2;We<0&&(We=0),je.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Qe<40?je.style.left="40px":je.style.left=Qe+"px",je.style.top=We+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We<40?je.style.top="40px":je.style.top=We+"px",je.style.left=Qe+"px")}function Ie(je,Te){var Ge=je.querySelector(".appletParameters");if(Ge){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==Ge.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(je)}if(Ge.parentElement&&/fullscreen/.test(Ge.parentElement.className))return;var st=Pe(Te,je);Re()&&Ge.setAttribute("data-param-scale",st);for(var Qe=null,We=0;We<je.childNodes.length;We++)if(je.childNodes[We].className!==void 0&&je.childNodes[We].className.match(/^applet_scaler/)){Qe=je.childNodes[We];break}if(Qe!==null&&Qe.querySelector(".noscale")!==null)return;var mt=Te.id!==void 0?Te.id:"ggbApplet",it=window[mt];(it==null||!it.recalculateEnvironments)&&Qe!==null&&!Qe.className.match(/fullscreen/)&&(Qe.parentNode.style.transform="",!isNaN(st)&&st!==1?(Qe.parentNode.style.width=Te.width*st+"px",Qe.parentNode.style.height=Te.height*st+"px",Ee(Qe,st)):(Ee(Qe,1),Qe.parentNode.style.width=Te.width+"px",Qe.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Me(je),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ge).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Re,positionCenter:Me,getScale:Pe,scaleElement:Ee}}();__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 Re=n.location.search;return Re.indexOf(J)!=-1||Re.indexOf(K)!=-1}function q(Re,Ee){}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(Re){var Ee=s[L].bindings;s[L].bindings=function(){for(var le=Ee?Ee():{},ce=Re[webModule.__softPermutationId],Pe=O;Pe<ce.length;Pe++){var Me=ce[Pe];le[Me[O]]=Me[P]}return le}};var t;function u(){return v(),t}function v(){if(!t){var Re=o.createElement(Q);if(Re.id=L,Re.style.cssText=R+S,Re.tabIndex=-1,o.body.appendChild(Re),t=Re.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ee=document.compatMode==U?V:W;t.write(Ee+X),t.close()}}}function w(Re){function Ee(ce){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Me=Pe();if(Me){ce();return}function Ie(){if(!Me){if(!Pe())return;Me=!0,ce(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),je&&clearInterval(je)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var je=setInterval(function(){Ie()},$)}function le(ce){var Pe=u(),Me=Pe.body,Ie=Pe.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ce,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ce))}),Me.appendChild(Ie)}Ee(function(){le(Re)})}webModule.__startLoadingFragment=function(Re){return C(Re)},webModule.__installRunAsyncCode=function(Re){var Ee=u(),le=Ee.body,ce=Ee.createElement(_);ce.language=ab,ce.text=Re,le.appendChild(ce),le.removeChild(ce)};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(Re){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Re){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Re){var Ee=c[Re];return Ee==null?null:Ee},r=d,webModule.__errFn=e}function B(){function Re(je){var Te=je.lastIndexOf(rb);Te==-1&&(Te=je.length);var Ge=je.indexOf(sb);Ge==-1&&(Ge=je.length);var st=je.lastIndexOf(tb,Math.min(Ge,Te));return st>=O?je.substring(O,st+P):W}function Ee(je){if(!je.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=je+vb,je=Re(Te.src)}return je}function le(){var je=__gwt_getMetaProperty(wb);return je!=null?je:W}function ce(){for(var je=o.getElementsByTagName(_),Te=O;Te<je.length;++Te)if(je[Te].src.indexOf(xb)!=-1)return Re(je[Te].src);return W}function Pe(){var je=o.getElementsByTagName(yb);return je.length>O?je[je.length-P].href:W}function Me(){var je=o.location;return je.href==je.protocol+zb+je.host+je.pathname+je.search+je.hash}var Ie=le();return Ie==W&&(Ie=ce()),Ie==W&&(Ie=Pe()),Ie==W&&Me()&&(Ie=Re(o.location.href)),Ie=Ee(Ie),Ie}function C(Re){return Re.match(/^\//)||Re.match(/^[a-zA-Z]+:\/\//)?Re:webModule.__moduleBase+Re}function D(){var Re=[],Ee=O,le=[],ce=[];function Pe(je){var Te=ce[je](),Ge=le[je];if(Te in Ge)return Te;var st=[];for(var Qe in Ge)st[Ge[Qe]]=Qe;throw r&&r(je,st,Te),null}if(__gwt_isKnownPropertyValue=function(je,Te){return Te in le[je]},webModule.__getPropMap=function(){var je={};for(var Te in le)le.hasOwnProperty(Te)&&(je[Te]=Pe(Te));return je},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Me;try{Me=Cb;var Ie=Me.indexOf(Db);Ie!=-1&&(Ee=parseInt(Me.substring(Ie+P),$),Me=Me.substring(O,Ie))}catch(je){}return webModule.__softPermutationId=Ee,C(Me+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(Re,Ee,le){"use strict";le.d(Ee,{Ax:function(){return Ie},Ds:function(){return je},KI:function(){return Ge},SI:function(){return Me},f1:function(){return Pe}});var ce=le(346);function Pe(st){let Qe=!0;if(st.length>0){for(let We=0;We<st.length;We++)if(st[We].compile_success==0||!st[We].compile_success){Qe=!1;break}}else Qe=!1;return Qe}function Me(st,Qe=""){let We=[];for(let mt=0;mt<st.length;mt++){let it=st[mt],kt=Qe?`${Qe}/${it.name}`:`${it.name}`;We.push({title:it.name,type:it.type,isLeaf:it.type!=="tree",key:kt})}return We}function Ie(st,Qe,We){for(let mt=0;mt<st.length;mt++){let it=st[mt];if(it.key===Qe){it.children=We;break}it.children&&Ie(it.children,Qe,We)}return st}function je(st,Qe,We){let mt;return function(){let it=this,kt=arguments,Fe=function(){mt=null,We||st.apply(it,kt)},ne=We&&!mt;clearTimeout(mt),mt=setTimeout(Fe,Qe),ne&&st.apply(it,kt)}}const Te=!0,Ge=ce.Z.API_SERVER},84842:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Fe}});var ce=le(99571),Pe=le(59301),Me=Object.defineProperty,Ie=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Qe=(ne,te,he)=>te in ne?Me(ne,te,{enumerable:!0,configurable:!0,writable:!0,value:he}):ne[te]=he,We=(ne,te)=>{for(var he in te||(te={}))Ge.call(te,he)&&Qe(ne,he,te[he]);if(Te)for(var he of Te(te))st.call(te,he)&&Qe(ne,he,te[he]);return ne},mt=(ne,te)=>Ie(ne,je(te)),it=(ne,te)=>{var he={};for(var se in ne)Ge.call(ne,se)&&te.indexOf(se)<0&&(he[se]=ne[se]);if(ne!=null&&Te)for(var se of Te(ne))te.indexOf(se)<0&&st.call(ne,se)&&(he[se]=ne[se]);return he},kt=(ne,te,he)=>new Promise((se,ge)=>{var ye=Le=>{try{Ae(he.next(Le))}catch(Ve){ge(Ve)}},be=Le=>{try{Ae(he.throw(Le))}catch(Ve){ge(Ve)}},Ae=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(ye,be);Ae((he=he.apply(ne,te)).next())});const Fe=ne=>{var te=ne,{children:he}=te,se=it(te,["children"]);const[ge,ye]=(0,Pe.useState)(!1);return Pe.createElement(ce.ZP,mt(We({},se),{loading:ge,onClick:be=>kt(void 0,null,function*(){try{ye(!0),yield se.onClick(be),ye(!1)}catch(Ae){console.error(Ae),ye(!1)}})}),he)}},85788:function(Re,Ee,le){"use strict";var ce=le(86204),Pe=le.n(ce),Me=Object.defineProperty,Ie=(st,Qe,We)=>Qe in st?Me(st,Qe,{enumerable:!0,configurable:!0,writable:!0,value:We}):st[Qe]=We,je=(st,Qe,We)=>Ie(st,typeof Qe!="symbol"?Qe+"":Qe,We),Te=(st,Qe,We)=>new Promise((mt,it)=>{var kt=te=>{try{ne(We.next(te))}catch(he){it(he)}},Fe=te=>{try{ne(We.throw(te))}catch(he){it(he)}},ne=te=>te.done?mt(te.value):Promise.resolve(te.value).then(kt,Fe);ne((We=We.apply(st,Qe)).next())});class Ge extends ce.EventEmitter{constructor(Qe,We){super(),je(this,"url"),je(this,"body"),je(this,"fullContent",""),je(this,"controller",null),je(this,"buffer",""),this.url=Qe,this.body=We}startStream(){return Te(this,null,function*(){this.controller=new AbortController;const{signal:Qe}=this.controller;try{const We=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Qe});if(!We.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${We.status}`);const mt=We.headers.get("content-type");if(!mt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(mt.includes("application/json")){const Fe=yield We.json();this.emit("error",Fe);return}if(!mt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const it=We.body.getReader(),kt=new TextDecoder("utf-8");for(;;){const{done:Fe,value:ne}=yield it.read();if(Fe)break;const te=kt.decode(ne,{stream:!0});this.buffer+=te;const he=this.buffer.split(`
|
|
|
`);this.buffer=he.pop()||"";for(const se of he)if(se.startsWith("data:")){const ge=se.slice(5).trim();if(ge==="[DONE]")break;try{const ye=JSON.parse(ge);ye.data&&this.handleData(ye.data)}catch(ye){this.buffer=se+`
|
|
|
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ye)}}}this.emit("done",this.fullContent)}catch(We){We.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",We.message)}})}handleData(Qe){Qe.content&&(this.fullContent+=Qe.content,this.emit("data",{chunk:Qe,full:this.fullContent}))}cancelRequest(){var Qe;(Qe=this.controller)==null||Qe.abort()}}Ee.Z=Ge},81679:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return kt}});var ce=le(59301),Pe=le(30641),Me=le(77019),Ie=le(5269),je={smartWrp:"smartWrp___NjRcB"},Te=le(75975),Ge=le(9148),st=le(84842),Qe=le(59301),We=(Fe,ne,te)=>new Promise((he,se)=>{var ge=Ae=>{try{be(te.next(Ae))}catch(Le){se(Le)}},ye=Ae=>{try{be(te.throw(Ae))}catch(Le){se(Le)}},be=Ae=>Ae.done?he(Ae.value):Promise.resolve(Ae.value).then(ge,ye);be((te=te.apply(Fe,ne)).next())});const mt=`<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
|
|
|
<style>
|
|
|
body {
|
|
|
font-family: Arial, sans-serif;
|
|
|
text-align: center;
|
|
|
margin: 20px;
|
|
|
}
|
|
|
.array-container {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: flex-end;
|
|
|
height: 300px;
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
.bar {
|
|
|
width: 30px;
|
|
|
margin: 0 2px;
|
|
|
background-color: #4caf50;
|
|
|
color: white;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
border-radius: 5px;
|
|
|
transition: all 0.3s ease;
|
|
|
}
|
|
|
.bar.sorted {
|
|
|
background-color: #ff9800;
|
|
|
}
|
|
|
.bar.pivot {
|
|
|
background-color: #f44336;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
|
|
|
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
|
|
|
<div class="array-container" id="array-container"></div>
|
|
|
|
|
|
<script>
|
|
|
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
|
|
|
let bars = [];
|
|
|
|
|
|
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
|
|
|
function initArrayDisplay() {
|
|
|
const container = document.getElementById('array-container');
|
|
|
container.innerHTML = '';
|
|
|
bars = array.map(value => {
|
|
|
const bar = document.createElement('div');
|
|
|
bar.className = 'bar';
|
|
|
bar.style.height = \`\${value * 5}px\`;
|
|
|
bar.textContent = value;
|
|
|
container.appendChild(bar);
|
|
|
return bar;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
|
|
|
function highlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.add(className));
|
|
|
}
|
|
|
|
|
|
// \u79FB\u9664\u9AD8\u4EAE
|
|
|
function removeHighlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.remove(className));
|
|
|
}
|
|
|
|
|
|
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
|
|
|
async function quickSort(arr, left = 0, right = arr.length - 1) {
|
|
|
if (left >= right) return;
|
|
|
|
|
|
const pivotIndex = await partition(arr, left, right);
|
|
|
await quickSort(arr, left, pivotIndex - 1);
|
|
|
await quickSort(arr, pivotIndex + 1, right);
|
|
|
}
|
|
|
|
|
|
// \u5206\u533A\u51FD\u6570
|
|
|
async function partition(arr, left, right) {
|
|
|
const pivot = arr[right];
|
|
|
let i = left - 1;
|
|
|
|
|
|
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
|
|
|
|
|
|
for (let j = left; j < right; j++) {
|
|
|
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
|
|
|
await sleep(500);
|
|
|
|
|
|
if (arr[j] <= pivot) {
|
|
|
i++;
|
|
|
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
|
|
|
|
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
|
|
|
bars[i].style.height = \`\${arr[i] * 5}px\`;
|
|
|
bars[i].textContent = arr[i];
|
|
|
bars[j].style.height = \`\${arr[j] * 5}px\`;
|
|
|
bars[j].textContent = arr[j];
|
|
|
|
|
|
await sleep(500);
|
|
|
}
|
|
|
|
|
|
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
|
|
|
}
|
|
|
|
|
|
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
|
|
|
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
|
|
|
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
|
|
|
bars[i + 1].textContent = arr[i + 1];
|
|
|
bars[right].style.height = \`\${arr[right] * 5}px\`;
|
|
|
bars[right].textContent = arr[right];
|
|
|
|
|
|
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
|
|
|
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
|
|
|
await sleep(500);
|
|
|
removeHighlightBars([i + 1], 'sorted');
|
|
|
|
|
|
return i + 1;
|
|
|
}
|
|
|
|
|
|
// \u5EF6\u8FDF\u51FD\u6570
|
|
|
function sleep(ms) {
|
|
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
|
}
|
|
|
|
|
|
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
|
|
|
document.getElementById('start-sort').addEventListener('click', () => {
|
|
|
quickSort(array);
|
|
|
});
|
|
|
|
|
|
// \u521D\u59CB\u5316\u9875\u9762
|
|
|
initArrayDisplay();
|
|
|
<\/script>
|
|
|
</body>
|
|
|
</html>`;function it({open:Fe=!0,onChange:ne,defaultValue:te,placement:he,width:se,height:ge,extra:ye,onDynamic:be,onOpenChange:Ae,showExtra:Le=!0}){const Ve=(0,ce.useRef)(null),et=(0,ce.useRef)(null),[Je,rt]=(0,ce.useState)(te||""),[at,tt]=(0,ce.useState)(te||""),[Et,Lt]=(0,ce.useState)(!!Fe),[Ut,on]=(0,ce.useState)(1),an={selectOnLineNumbers:!0};(0,ce.useEffect)(()=>{Fe&&(rt(te),tt(te),Lt(!0))},[Fe,te]),(0,ce.useEffect)(()=>{Je!==""&&(clearTimeout(et.current),et.current=setTimeout(()=>{const fn=document.createElement("iframe");if(fn.style.width="100%",fn.style.height="100%",fn.style.border="0",Ve.current){Ve.current.innerHTML="",Ve.current.appendChild(fn);const bt=fn.contentDocument||fn.contentWindow.document;bt.open(),bt.write(Je),bt.close()}},1e3))},[Fe,Je]);const Kt=fn=>{rt(fn),ne==null||ne(fn,at)};return Qe.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Et,width:"100%",height:ge||"100vh",rootClassName:je.smartWrp,destroyOnClose:!0,onClose:()=>{Lt(!1),Ae==null||Ae(Je)},extra:Le&&Qe.createElement("div",null,Qe.createElement(Ge.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ut,onChange:fn=>on(fn)}),Qe.createElement(st.Z,{type:"primary",className:"ml20",onClick:()=>We(this,null,function*(){yield be(Je,()=>{Lt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Qe.createElement(Me.Z,{className:"h100"},Qe.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ut===1?"block":"none"}},Qe.createElement("div",{className:"h100",ref:Ve})),Qe.createElement(Ie.Z,{flex:"1",style:{display:Ut===2?"block":"none"}},Qe.createElement(Te.ZP,{height:"90vh",value:te,language:"html",theme:"vs",showMiniMap:!1,options:an,onChange:Kt}))))}var kt=it},10946:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Je}});var ce=le(59301),Pe=le(72460),Me=le(77596),Ie=le(3977),je=le(14179),Te=le(56102),Ge={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},st=le(6767),Qe=le(90083),We=le(95827),mt=le(30084),it=le(10787),kt=le(8944),Fe=le(81679),ne=Object.defineProperty,te=Object.defineProperties,he=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,be=(rt,at,tt)=>at in rt?ne(rt,at,{enumerable:!0,configurable:!0,writable:!0,value:tt}):rt[at]=tt,Ae=(rt,at)=>{for(var tt in at||(at={}))ge.call(at,tt)&&be(rt,tt,at[tt]);if(se)for(var tt of se(at))ye.call(at,tt)&&be(rt,tt,at[tt]);return rt},Le=(rt,at)=>te(rt,he(at)),Ve=(rt,at)=>{var tt={};for(var Et in rt)ge.call(rt,Et)&&at.indexOf(Et)<0&&(tt[Et]=rt[Et]);if(rt!=null&&se)for(var Et of se(rt))at.indexOf(Et)<0&&ye.call(rt,Et)&&(tt[Et]=rt[Et]);return tt},Je=({onFinish:rt,value:at,streamingStatus:tt,cancelIndex:Et,loadImage:Lt,onDynamic:Ut,isHiddenHtml:on})=>{const[an,Kt]=(0,ce.useState)(""),[fn,bt]=(0,ce.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[dt,ct]=(0,ce.useState)(0),[Qt,un]=(0,ce.useState)(!1),Nt=Qn=>Qn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Bt,Pt)=>`<mathx data-text="${Pt.trim()}">$$${Pt.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,"`$&`"),hn=()=>{un(!0),rt==null||rt()};(0,ce.useEffect)(()=>{const Qn=Lt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
|
|
${at}`:at,Bt=Nt(Qn);if(!Qt)if(Lt||!tt||Et>0){Kt(Bt),ct(Bt.length),(!tt||Et>0)&&!Lt&&hn();return}else if((Bt==null?void 0:Bt.length)<4)Kt(Bt),ct(Bt.length);else if(dt<Bt.length){const Pt=Bt.length-dt,Wt=setInterval(()=>{Kt(Bt.slice(0,dt+2)),ct(An=>An+2)},Pt>10?Math.max(500/(Pt/2),20):50);return()=>clearInterval(Wt)}else tt||hn()},[at,tt,Et,Lt,dt]);const cn=(0,ce.useMemo)(()=>ce.createElement("section",{className:`${Ge.answer} fadeIn animated edu_md`},ce.createElement(Pe.UG,{remarkPlugins:[mt.Z,it.Z],rehypePlugins:[We.Z,Ie.Z],components:{code(Qn){var Bt=Qn,{node:Pt,inline:Wt,className:An,children:Nn}=Bt,$e=Ve(Bt,["node","inline","className","children"]);const Oe=/language-(\w+)/.exec(An||""),ke=String(Nn).trim();return Wt||!Oe?ce.createElement("code",Ae({className:An},$e),Nn):ce.createElement("code",{className:Ge.codeCopy,"data-text":`\`\`\`${Oe?Oe[1]:""}
|
|
|
${Nn}
|
|
|
\`\`\``},!on&&ce.createElement(Te.CopyToClipboard,{text:ke,onCopy:()=>st.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ce.createElement("button",null,"\u590D\u5236")),!on&&Oe[1]==="html"&&Qt&&ce.createElement("button",{className:Ge.runCode,onClick:()=>{bt(Ae({},Le(Ae({},fn),{open:++fn.open,defaultValue:ke,language:Oe[1]})))}},"\u8FD0\u884CHTML"),ce.createElement(Me.Z,Ae({wrapLongLines:!0,style:je.Z,language:Oe[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},$e),ke))},img({node:Qn}){var Bt;const Pt=(Bt=Qn.properties)==null?void 0:Bt.src;return ce.createElement(Qe.Z,{src:Pt,width:320,"data-text":Pt,onLoad:()=>Lt&&setTimeout(()=>hn(),500)})},a:Qn=>{var Bt=Qn,{node:Pt}=Bt,Wt=Ve(Bt,["node"]);return ce.createElement("a",Le(Ae({},Wt),{target:"_blank",rel:"noopener noreferrer"}))}}},Qt?an:`${an}__`)),[an]);return ce.createElement(ce.Fragment,null,ce.createElement(Fe.Z,{defaultValue:fn.defaultValue,open:fn.open,language:fn.language,height:fn.height,onChange:(Qn,Bt)=>{Kt(an.replaceAll(Bt,Qn))},onDynamic:Ut}),cn)}},14531:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return st}});var ce=le(59301),Pe=le(51257),Me={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",close1:"close1___eCYqo",extraNode:"extraNode___tnBrt",upimg:"upimg___dvEUw"},Ie=le(346),je=le(37166),Te=le(25399),st=({src:Qe,onClick:We,topPercentage:mt=.62,draggableExtraNode:it,usercourse:kt})=>{var Fe;const ne=(0,ce.useRef)(null),te=(0,ce.useRef)(!1),he=(0,ce.useRef)(!1),[se,ge]=(0,ce.useState)(window.innerHeight*mt),[ye,be]=(0,ce.useState)(!1),Ae=10;return(0,ce.useEffect)(()=>{if(ne.current){let Le=function(at){var tt;te.current=!0,rt=at.pageY,Je=at.pageY-(((tt=ne.current)==null?void 0:tt.getBoundingClientRect().top)||0),(0,Pe.kk)("none"),document.onselectstart=function(){return!1}},Ve=function(){te.current&&!he.current&&We&&We(),te.current=!1,he.current=!1,(0,Pe.kk)("auto"),document.onselectstart=null},et=function(at){var tt;if(te.current){const Lt=at.pageY-Je,Ut=window.innerHeight-(((tt=ne.current)==null?void 0:tt.offsetHeight)||0)-50,on=50;if(!he.current&&Math.abs(rt-at.pageY)>Ae&&(he.current=!0),he.current){let an=Math.max(on,Math.min(Lt,Ut));ge(an)}}},Je=0,rt=0;return ne.current.addEventListener("mousedown",Le),document.addEventListener("mousemove",et),document.addEventListener("mouseup",Ve),()=>{var at,tt;(tt=(at=ne==null?void 0:ne.current)==null?void 0:at.removeEventListener)==null||tt.call(at,"mousedown",Le),document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",Ve)}}},[We]),(0,ce.useEffect)(()=>{const Le=()=>{ge(window.innerHeight*mt)};return window.addEventListener("resize",Le),()=>{window.removeEventListener("resize",Le)}},[mt]),ce.createElement("div",{className:Me.draggableImage,style:{top:`${se}px`,display:ye?"none":"block",cursor:te.current?"grabbing":"grab"},ref:ne},it&&ce.createElement("div",{className:Me.extraNode,onMouseUp:Le=>Le.stopPropagation(),onMouseDownCapture:Le=>Le.stopPropagation()},it),kt!=null&&kt.ai_nickname?ce.createElement("div",null,ce.createElement(Te.Z,{getPopupContainer:()=>ne.current,color:"#4465EA",open:!0,placement:"top",arrow:!0,title:kt==null?void 0:kt.ai_nickname},ce.createElement("div",null)),ce.createElement("img",{className:Me.upimg,src:kt!=null&&kt.ai_headimg_id?((Fe=Ie.Z)==null?void 0:Fe.API_SERVER)+"/api/attachments/"+(kt==null?void 0:kt.ai_headimg_id):je,width:60,draggable:"false"})):ce.createElement("img",{className:Me.img,src:Qe,width:60,draggable:"false"}),ce.createElement("i",{className:`iconfont icon-tupianguanbi ${kt!=null&&kt.ai_nickname?Me.close1:Me.close}`,onMouseUp:Le=>{Le.stopPropagation(),be(!0)}}))}},91865:function(Re,Ee,le){"use strict";var ce=le(59301),Pe=Object.defineProperty,Me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(it,kt,Fe)=>kt in it?Pe(it,kt,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):it[kt]=Fe,Ge=(it,kt)=>{for(var Fe in kt||(kt={}))Ie.call(kt,Fe)&&Te(it,Fe,kt[Fe]);if(Me)for(var Fe of Me(kt))je.call(kt,Fe)&&Te(it,Fe,kt[Fe]);return it},st=(it,kt)=>{var Fe={};for(var ne in it)Ie.call(it,ne)&&kt.indexOf(ne)<0&&(Fe[ne]=it[ne]);if(it!=null&&Me)for(var ne of Me(it))kt.indexOf(ne)<0&&je.call(it,ne)&&(Fe[ne]=it[ne]);return Fe};const Qe=le(20441),We={};Qe.keys().forEach(it=>{const kt=it.replace("./","").replace(".svg","");We[kt]=Qe(it)});const mt=it=>{var kt=it,{filename:Fe}=kt,ne=st(kt,["filename"]),te;const he=((te=Fe==null?void 0:Fe.split(".").pop())==null?void 0:te.toLowerCase())||"unknown",se=We[he]||We.default;return ce.createElement("img",Ge({src:se,alt:he},ne))};Ee.Z=mt},2235:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return We}});var ce=le(59301),Pe={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},Me=le(37285),Ie=le(91865),je=le(25399),Te=le(37639),st=({item:mt})=>{var it;const[kt,Fe]=(0,ce.useState)(!1);return ce.createElement("div",{className:Pe.f_l_c},ce.createElement(je.Z,{title:mt==null?void 0:mt.name},ce.createElement(Te.Z,{placement:"top",content:ce.createElement("div",null,ce.createElement(Me.Z,null),ce.createElement("pre",{className:Pe.preclass,style:{maxWidth:600,maxHeight:400}},(it=mt==null?void 0:mt.contents)==null?void 0:it.toString())),title:ce.createElement("div",null,ce.createElement(Ie.Z,{filename:mt==null?void 0:mt.name,style:{width:16,height:16,marginRight:5}}),mt==null?void 0:mt.name),trigger:"click",open:kt,onOpenChange:ne=>{Fe(ne)}},ce.createElement("div",{className:Pe.officediv},ce.createElement(Ie.Z,{filename:mt==null?void 0:mt.name,style:{width:16,height:16,marginRight:5}}),mt==null?void 0:mt.name))))},We=({Filelist:mt})=>ce.createElement("div",null,ce.createElement("div",{style:{display:"flex",alignItems:"center"}},ce.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),ce.createElement(Me.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),ce.createElement("div",{className:Pe.f_l_c},mt==null?void 0:mt.map(it=>ce.createElement(st,{item:it}))))},3418:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Ae}});var ce=le(59301),Pe={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Me=le(77736),Ie=Object.defineProperty,je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,st=(Le,Ve,et)=>Ve in Le?Ie(Le,Ve,{enumerable:!0,configurable:!0,writable:!0,value:et}):Le[Ve]=et,Qe=(Le,Ve)=>{for(var et in Ve||(Ve={}))Te.call(Ve,et)&&st(Le,et,Ve[et]);if(je)for(var et of je(Ve))Ge.call(Ve,et)&&st(Le,et,Ve[et]);return Le};const We=Le=>React.createElement("svg",Qe({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Le),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 mt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",it=Object.defineProperty,kt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(Le,Ve,et)=>Ve in Le?it(Le,Ve,{enumerable:!0,configurable:!0,writable:!0,value:et}):Le[Ve]=et,he=(Le,Ve)=>{for(var et in Ve||(Ve={}))Fe.call(Ve,et)&&te(Le,et,Ve[et]);if(kt)for(var et of kt(Ve))ne.call(Ve,et)&&te(Le,et,Ve[et]);return Le};const se=Le=>React.createElement("svg",he({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Le),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 ge="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Ljg4Ni02My4wMTVjLTQ3LjgxMy00NC40MjYtOTEuMDU3LTkzLjM0Mi0xNDQuOTM1LTEzMS43MDJhNjM1LjgyNSA2MzUuODI1IDAgMCAwLTM4LjM2LTI1LjIwN2MtNTQuOTgyLTUxLjIgNy4xNjctOTMuMjYyIDIxLjU4Mi05OC4yMjUgMTQuOTY2LTUuMTk5IDUuMjc3LTIzLjE1OC00My40MDItMjIuOTIyLTQ4LjY4LjIzNy05My4xODQgMTUuODMzLTE0OS45NzcgMzYuNjI4LTguNDI4IDMuMTUtMTcuMDkyIDUuNTE0LTI1Ljk5MyA3LjMyNmE1NTcuODQ0IDU1Ny44NDQgMCAwIDAtMTYwLjc2OC01LjQzNmMtMTA1LjE1NyAxMS4yNjQtMTg5LjIwNCA1OC45Mi0yNTAuOTYgMTQwLjM2Ny03NC4yIDk3LjgzMi05MS42ODcgMjA4Ljk3NS03MC4yNjEgMzI1LjAwMiAyMi40NDkgMTIyLjI1IDg3LjQzNCAyMjMuNDY4IDE4Ny40NyAzMDIuNjMxIDEwMy41ODIgODIgMjIyLjkxNyAxMjIuMTcyIDM1OS4xODggMTE0LjQ1MiA4Mi43MDgtNC41NjggMTc0Ljc5LTE1LjIwMiAyNzguNjg2LTk5LjQ4NSAyNi4xNTEgMTIuNDQ1IDUzLjY0MiAxNy40ODYgOTkuMjQ5IDIxLjI2NyAzNS4xMzEgMy4wNzIgNjkuMDAyLTEuNzMzIDk1LjE1My02LjkzMSA0MC45Ni04LjM1IDM4LjIwMy00NC43NDEgMjMuMzE2LTUxLjQzNy0xMjAuMjAyLTUzLjcyLTkzLjgxNC0zMS44MjItMTE3LjgzOS00OS42MjQgNjEuMTI1LTY5LjMxNyAxNTMuMjA2LTE0MS4zMTIgMTg5LjIwNC0zNzQuNzA2IDIuODM1LTE4LjUxLjQ3Mi0zMC4xNjggMC00NS4yMTMtLjIzNy05LjEzNyAxLjk2OS0xMi42MDMgMTIuOTE4LTEzLjcwNmEyNDAuMDg5IDI0MC4wODkgMCAwIDAgODYuMTczLTI1LjQ0MmM3Ny45ODItNDAuODAzIDEwOS4zMzItMTA3LjkxNCAxMTYuNzM2LTE4OC4yNTkgMS4xMDMtMTIuMjg4LS4yMzYtMjQuOTctMTMuNzA1LTMxLjQyOXpNNjg1LjQ1IDg0Mi4wNDNDNTY5LjEwOCA3NTQuMjE1IDUxMi41NSA3MjUuMzA3IDQ4OS4xNTcgNzI2LjQ5Yy0yMS44MiAxLjI2LTE3Ljk2IDI1LjIwNi0xMy4xNTUgNDAuODAyIDUuMDQyIDE1LjQzOSAxMS41OCAyNi4wNzMgMjAuNzE3IDM5LjYyMSA2LjMwMSA4LjkgMTAuNzkxIDIyLjIxMy02LjMwMiAzMi4yOTUtMzcuNDk0IDIyLjIxMy0xMDIuNzk0LTcuNTYxLTEwNS43ODctOC45OC03Ni4wMTItNDIuOTI5LTEzOS40MjEtOTkuNTY0LTE4NC4yNDEtMTc2Ljk5NGE1MjMuODk0IDUyMy44OTQgMCAwIDEtNzIuNDY4LTIzOS45M2MtMS4wMjQtMjAuNTYgNS4yNzgtMjcuODg1IDI2LjcwMy0zMS41ODdhMjcyLjE0OCAyNzIuMTQ4IDAgMCAxIDg1LjMwNy0yLjEyN2MxMTguOTQyIDE2LjY5OSAyMjAuMTYgNjcuNzQxIDMwNS4wNzMgMTQ4LjQ4IDQ4LjQ0MyA0Ni4wMDEgODUuMDcxIDEwMC45ODIgMTIyLjg4IDE1NC43MDMgNDAuMTczIDU3LjAyOSA4My4zMzggMTExLjQ1OCAxMzguMzIgMTU1Ljk2MyAxOS4zNzYgMTUuNjc1IDM0Ljg5NCAyNy41NjkgNDkuNzgxIDM2LjIzNC00NC43NCA0LjgwNS0xMTkuNDE0IDUuODI5LTE3MC40NTYtMzIuOTI2em01NS45MjYtMzQ0LjYxNWMwLTUuMzU3IDIuNzU3LTEwLjM5OCA3LjMyNi0xMy40N2ExNy43MjMgMTcuNzIzIDAgMCAxIDIyLjEzNCAyLjA0OGMzLjA3MiAyLjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",ye=le(59301),Ae=({value:Le,onChange:Ve})=>{const[et,Je]=(0,ce.useState)(!1),rt=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:mt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:ge}],at=rt.find(tt=>tt.key===Le);return ye.createElement("div",{className:Pe.select},ye.createElement(Me.Z,{size:10},ye.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),ye.createElement("div",{className:Pe.box,onMouseLeave:()=>Je(!1)},ye.createElement("div",{className:Pe.text,onClick:()=>Je(!0)},ye.createElement("img",{src:at.img,width:20}),ye.createElement("span",null,at.name),ye.createElement("b",{className:"iconfont icon-zhankai6"})),et&&ye.createElement("div",{className:Pe.itemWrap},ye.createElement("aside",null,rt.map(tt=>ye.createElement("div",{key:tt.key,className:`${Pe.item} ${tt.key===Le?Pe.active:""}`,onClick:Et=>{Et.stopPropagation(),Ve(tt.key),Je(!1)}},ye.createElement("img",{src:tt.img,width:20}),ye.createElement("span",null,tt.name))))))))}},36596:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Ge}});var ce=le(59301),Pe={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},Me=le(29787),Ie=le(59301),je=(st,Qe,We)=>new Promise((mt,it)=>{var kt=te=>{try{ne(We.next(te))}catch(he){it(he)}},Fe=te=>{try{ne(We.throw(te))}catch(he){it(he)}},ne=te=>te.done?mt(te.value):Promise.resolve(te.value).then(kt,Fe);ne((We=We.apply(st,Qe)).next())}),Ge=({value:st="",streamingStatus:Qe,onFinish:We,cancelIndex:mt,time:it,loading:kt,loadAll:Fe})=>{const[ne,te]=(0,ce.useState)(""),[he,se]=(0,ce.useState)(!0),ge=(0,ce.useRef)(st),ye=(0,ce.useRef)(Qe),be=(0,ce.useRef)(0),Ae=(0,ce.useRef)(null),[Le,Ve]=(0,ce.useState)(!1),et=70;(0,ce.useEffect)(()=>{ye.current=Qe},[Qe]),(0,ce.useEffect)(()=>{ge.current=st},[st]),(0,ce.useEffect)(()=>{if(!Qe){te(ge.current);return}return Ve(!0),Ae.current=setInterval(Je,et),()=>{clearInterval(Ae.current)}},[]),(0,ce.useEffect)(()=>{Le&&(te(ge.current),clearInterval(Ae.current),Ve(!1),We())},[mt]);const Je=()=>je(void 0,null,function*(){const rt=ge.current[be.current];rt!==void 0?(te(at=>at+rt),be.current++,clearInterval(Ae.current),Ae.current=setInterval(Je,280/(ge.current.length-be.current))):ye.current===!1&&(te(ge.current),clearInterval(Ae.current),Ve(!1),We())});return Ie.createElement("div",{className:`${Pe.reasoning} fadeIn animated`},Ie.createElement("div",{className:Pe.btn,onClick:()=>se(!he)},Ie.createElement("i",{className:"iconfont icon-shendusikao"}),it?Ie.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",it," \u79D2\uFF09"):Ie.createElement("span",null,"\u601D\u8003\u4E2D..."),he?Ie.createElement("b",{className:"iconfont icon-shouqi6"}):Ie.createElement("b",{className:"iconfont icon-zhankai6"})),kt&&Ie.createElement(Me.Z,{spinning:!0,className:"mt20"}),he&&!kt&&Ie.createElement("div",{className:Pe.content},ne,Le?Ie.createElement("span",{className:"aiBlink"},"__"):""))}},89274:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Qn}});var ce=le(59301),Pe=le(30641),Me=le(6767),Ie=le(14566),je=le(62957),Te=le(25399),Ge=le(37568),st=le(99571),Qe=le(29787),We=le(584),mt=le(93725),it=le(75727),kt=le(92310),Fe=le.n(kt),ne=le(25690),te=le(10946),he=le(2235),se=le(36596),ge=le(3418),ye={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",addimg:"addimg___x8tKJ"},be=le(38986),Ae=le(51257),Le=le(14531),Ve=le(37166),et="data:image/png;base64,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",Je=le(28984),rt=le(71986),at=le(346),tt=le(56102),Et=le(85788),Lt=le(58617),Ut=le(32050),on=le(48790),an=Object.defineProperty,Kt=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Qt=(Bt,Pt,Wt)=>Pt in Bt?an(Bt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):Bt[Pt]=Wt,un=(Bt,Pt)=>{for(var Wt in Pt||(Pt={}))dt.call(Pt,Wt)&&Qt(Bt,Wt,Pt[Wt]);if(bt)for(var Wt of bt(Pt))ct.call(Pt,Wt)&&Qt(Bt,Wt,Pt[Wt]);return Bt},Nt=(Bt,Pt)=>Kt(Bt,fn(Pt)),hn=(Bt,Pt,Wt)=>new Promise((An,Nn)=>{var $e=Ke=>{try{ke(Wt.next(Ke))}catch(lt){Nn(lt)}},Oe=Ke=>{try{ke(Wt.throw(Ke))}catch(lt){Nn(lt)}},ke=Ke=>Ke.done?An(Ke.value):Promise.resolve(Ke.value).then($e,Oe);ke((Wt=Wt.apply(Bt,Pt)).next())});const cn=({title:Bt="\u5934\u6B4CAI",placeholder:Pt,hideUpload:Wt,hideInputBox:An,aiIcon:Nn=Ve,userIcon:$e=Je,dragIcon:Oe=rt,children:ke,fetchUrl:Ke,fetchData:lt={},extraAnswerAction:Ue,showDefaultTips:gt=!0,onOpen:tn,onClose:Un,loadingOption:qn,showPreference:nn=!1,initMessage:Ht,customRequest:sn,visible:vn,width:Ln=1200,isCheckRestrictNumber:xn=!1,headNode:_t,headFunctionNode:Vn,showRedraw:Kn,showEdit:Tn,promptPropName:jn="prompt",topPercentage:Mi,showSwitchingModel:Gn=!1,showImageGenerator:wt=!1,showLookHistory:Si=!1,fetchListObject:wi,customPreference:Vt,customDataNode:qi,showAddSession:lr,historyId:rr,draggableExtraNode:In,drawerExtraNode:Br,menuExtraFunctionNode:Tr,showSceneAwareness:Xi=!1,ReactComponent:Ji=Pe.Z,topFunctionNode:Nr,footerContainerStyle:Be,chatContainerStyle:Vi={},showCodePreview:bi=!1,showSource:di=!0,onSendMessage:Ri,globalSetting:Fi,pathsDetail:Ti,dispatch:Lr,user:ln,onDynamic:pn=()=>{}})=>{var $t,wn,Gi,Ci,Yi,mn,Rn,Ui,or,ci,yt,zt,li,ii,Rt;const[Jn,Ni]=(0,ce.useState)(!1),[en,ze]=(0,ce.useState)("qwen-max"),[si,oi]=(0,ce.useState)([]),[yn,ir]=(0,ce.useState)([]),[Zi,Fn]=(0,ce.useState)(!1),[Li,jt]=(0,ce.useState)(!1),[br,Eo]=(0,ce.useState)(!1),[Gt,Wi]=(0,ce.useState)([]),[cr,Hi]=(0,ce.useState)(""),[Hr,Rr]=(0,ce.useState)(0),[jr,_r]=(0,ce.useState)(void 0),[Ur,po]=(0,ce.useState)(!1),[Pn,bo]=(0,ce.useState)(null),[Mn,tr]=(0,ce.useState)(""),wr=(0,ce.useRef)(),Sr=(0,ce.useRef)(null),yo=(0,ne.useParams)(),Or=(0,ce.useRef)(null),[Ar,To]=(0,ce.useState)(!1),[rn,_n]=(0,ce.useState)(!1),[Yt,qe]=(0,ce.useState)(!1),[ai,yi]=(0,ce.useState)(!1),[Ki,_i]=(0,ce.useState)(!1),[Ii,On]=(0,ce.useState)(0),fi=(0,ce.useRef)(null),mi=(0,ce.useRef)(!1),ti=(0,ce.useRef)(null),[gi,ui]=(0,ce.useState)(void 0),[xi,Oi]=(0,ce.useState)(!0),[En,ur]=(0,ce.useState)(Ln-28),[sr,Yr]=(0,ce.useState)(!1),[hr,lo]=(0,ce.useState)(!0),[eo,Co]=(0,ce.useState)([]),[uo,Ao]=(0,ce.useState)([]),No=(0,ce.useRef)([]),qt=(0,ce.useRef)(null),mo=(0,ce.useRef)(null),Kr=(0,ce.useRef)(!1),Pr=En-22,fr=cr==null?void 0:cr.split(`
|
|
|
`).length,{onAdd:co,onGetList:Lo,onListClick:dn,onListDelete:Gr,onListDealData:Uo}=wi||{},[Sa,Ya]=(0,ce.useState)((wn=($t=ln==null?void 0:ln.userInfo)==null?void 0:$t.course)==null?void 0:wn.ai_nickname),[bs,ts]=(0,ce.useState)((Ci=(Gi=ln==null?void 0:ln.userInfo)==null?void 0:Gi.course)==null?void 0:Ci.ai_headimg_id),[xr,ca]=(0,ce.useState)(!1),da=50,Ra=10,va={maxCount:da,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:si,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Zn=>hn(void 0,null,function*(){var gr,Wr,Qr,wo;const Ro=(wo=(Qr=(Wr=(gr=Zn==null?void 0:Zn.name)==null?void 0:gr.split("."))==null?void 0:Wr.slice(-1))==null?void 0:Qr[0])==null?void 0:wo.toLowerCase(),vo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Ro);return Zn.size==0?(Me.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ie.default.LIST_IGNORE):vo?Zn.size/1024/1024>100?(Me.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ie.default.LIST_IGNORE):!0:(Me.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Ie.default.LIST_IGNORE)}),onChange:({fileList:Zn})=>{oi(Zn)},action:`${(Yi=at.Z)==null?void 0:Yi.API_SERVER}/api/intelligent_imports/upload_file.json`},Pa={maxCount:Ra,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:yn,multiple:!0,accept:".jpg,.png,",beforeUpload:Zn=>{var gr,Wr,Qr,wo;const Ro=(wo=(Qr=(Wr=(gr=Zn==null?void 0:Zn.name)==null?void 0:gr.split("."))==null?void 0:Wr.slice(-1))==null?void 0:Qr[0])==null?void 0:wo.toLowerCase(),vo=["jpg","png"].includes(Ro);return Zn.size==0?(Me.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ie.default.LIST_IGNORE):vo?Zn.size/1024/1024>10?(Me.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ie.default.LIST_IGNORE):!0:(Me.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Ie.default.LIST_IGNORE)},onChange:({fileList:Zn})=>{ir(Zn)},action:`${(mn=at.Z)==null?void 0:mn.API_SERVER}/api/ai/generals/update_file.json`};(0,ce.useEffect)(()=>{if(!Gt.length||!wr.current)return;const Zn=Gt[Gt.length-1];Zn!=null&&Zn.loading&&(wr.current.scrollTop=wr.current.scrollHeight)},[Gt.length]),(0,ce.useEffect)(()=>{if(!wr.current||!fi.current)return;const Zn=new IntersectionObserver(([gr])=>{Oi(gr.isIntersecting)},{root:wr.current,rootMargin:"70px",threshold:0});return Zn.observe(fi.current),()=>{fi.current&&Zn.unobserve(fi.current)}},[wr.current,fi.current]),(0,ce.useEffect)(()=>{if(!Ar)return;const Zn=wr.current,gr=ti.current;mi.current=!1;let Wr=Zn.scrollTop;const Qr=()=>{const{scrollTop:Ro,scrollHeight:aa,clientHeight:vo}=Zn;Ro>Wr?Ro+vo>=aa-50&&(Zn.scrollTop=Zn.scrollHeight,mi.current=!1):Ro<Wr&&(mi.current=!0),Wr=Ro};Zn.addEventListener("scroll",Qr);const wo=new ResizeObserver(()=>{mi.current||(Zn.scrollTop=Zn.scrollHeight)});return wo.observe(gr),()=>{var Ro;wo.unobserve(gr),(Ro=Zn==null?void 0:Zn.removeEventListener)==null||Ro.call(Zn,"scroll",Qr)}},[Ar]),(0,ce.useEffect)(()=>{!Ar&&No.current.length&&(Wi([...Gt,...No.current]),No.current=[])},[Ar]),(0,ce.useEffect)(()=>{if(!wr.current)return;const Zn=new ResizeObserver(()=>{var gr;wr.current&&ur((gr=wr.current)==null?void 0:gr.offsetWidth)});return Zn.observe(wr.current),()=>{wr.current&&Zn.unobserve(wr.current)}},[wr.current]),(0,ce.useEffect)(()=>{typeof vn=="boolean"&&Ni(vn)},[vn]),(0,ce.useEffect)(()=>{var Zn;if(Sr.current&&Pn!==null){Sr.current.focus();const gr=(Zn=Sr.current.resizableTextArea)==null?void 0:Zn.textArea;gr&&(gr.selectionStart=gr.selectionEnd=gr.value.length)}},[Pn]),(0,ce.useEffect)(()=>{fr<5&&po(!1)},[fr]),(0,ce.useEffect)(()=>{Jn&&Ht&&(Wi(Pi(Ht)),Fn(!0),ha(Ht,{history:[]})),Jn&&(Wo(),rr?Wl(rr):lr&&!gi&&ba()),Jn||dr()},[Jn]);const Pi=(Zn="",gr=[],Wr=[])=>{const Qr=Date.now();return[{text:Zn,key:Qr,sender:"user",fileList:gr,imageList:Wr,show:!0},{loading:!0,key:Qr,sender:"AI",show:!0,model:en,imageGenerator:ai,thinkingEnabled:rn,codePreview:Yt}]},dr=()=>{tr(""),bo(null),oi([]),ir([]),Hi("")},Dr=()=>{if(tn){tn({chatData:Gt,setChatData:Wi,setLoading:Fn,getData:ha,renderChatItems:Pi,handleAdd:ba,identifier:gi});return}Ni(!0)},to=()=>{if(lo(!0),Un){Un();return}Ni(!1)},oo=()=>{po(!Ur)},Wo=()=>hn(void 0,null,function*(){if(!xn)return;const Zn=yield(0,be.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Zn==null?void 0:Zn.status)===0&&(Zn==null?void 0:Zn.total_number)!==-1&&(Rr((Zn==null?void 0:Zn.total_number)-(Zn==null?void 0:Zn.remaining_number)),_r(Zn==null?void 0:Zn.total_number))}),vr=()=>{je.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ce.createElement("div",null,ce.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ce.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",jr,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Ua=Zn=>Zn.reduce((Wr,Qr)=>{if(Qr.sender==="user"){const wo=Zn.find(Ro=>Ro.key===Qr.key&&Ro.sender==="AI");wo&&(wo!=null&&wo.text)&&!(wo!=null&&wo.error)&&Wr.push({question:Qr.text,answer:wo.text})}return Wr},[]),ha=(...Zn)=>hn(void 0,[...Zn],function*(gr="",Wr={},Qr=Gt){if(sn&&(yield sn({mes:gr,setChatData:Wi,fileList:si,body:Wr,checkNum:Wo,setLoading:Fn,bodyChatData:Qr,setTyping:To,setImageGenerator:yi,renderChatItems:Pi})),!sn){const wo=si==null?void 0:si.map(Vr=>{var ea;return(ea=Vr==null?void 0:Vr.response)==null?void 0:ea.file_id}),Ro=yn==null?void 0:yn.map(Vr=>{var ea;return(ea=Vr==null?void 0:Vr.response)==null?void 0:ea.data}),aa=Wr.history||Ua(Qr),vo=un(un({identifier:gi,response_mode:"streaming",model:en,scene_awareness:Ki,thinking_enabled:rn,image_generator:ai,code_preview:Yt,file_ids:wo,image_list:Ro,history:aa,[jn]:gr},lt),Wr),fo=Object.fromEntries(Object.entries(vo).filter(([Vr,ea])=>ea!==void 0));Or.current=new Et.Z(at.Z.API_SERVER+Ke,fo),yield new Promise((Vr,ea)=>{let $i=null,Ta=null;Or.current.on("data",It=>{To(!0);const{chunk:{content:Wn,type:Cs,created:Gs,msg:Na}}=It,Wa=Na==="error";Cs==="thinking"&&($i=$i||Gs,Wi(as=>[...as].map((qa,El)=>El===as.length-1?Nt(un({},qa),{reasoning:(qa.reasoning||"")+Wn,loading:!1,hideAnswer:!0,error:Wa}):qa))),Cs==="text"&&(Ta=Ta||Gs,Wi(as=>[...as].map((qa,El)=>El===as.length-1?Nt(un({},qa),{text:(qa.text||"")+Wn,loading:!1,startTime:$i,endTime:Ta,error:Wa}):qa))),Cs==="knowledge"&&Wi(as=>[...as].map((qa,El)=>{var wa;return El===as.length-1?Nt(un({},qa),{text:(qa.text||"")+"",loading:!1,startTime:$i,endTime:Ta,error:Wa,knowledge:(wa=It==null?void 0:It.chunk)==null?void 0:wa.content}):qa}))}),Or.current.on("done",()=>{Vr()}),Or.current.on("error",It=>{let Wn="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(It)==="[object Object]"&&It.status===-9&&(Wn=It==null?void 0:It.message),Wi(Cs=>[...Cs].map((Gs,Na)=>Na===Cs.length-1?Nt(un({},Gs),{text:Wn,loading:!1,error:!0}):Gs)),Vr()}),Or.current.on("cancelled",()=>{Vr()}),Or.current.startStream()})}Wo(),Fn(!1)}),Ea=Zn=>{Hi(Zn.target.value)},ho=(Zn,gr)=>{if(dr(),Fn(!0),Zn==="edit"){No.current=Gt.slice(gr+2);const Wr=Gt.splice(gr),{fileList:Qr=[],imageList:wo=[]}=(Wr==null?void 0:Wr[0])||{},Ro=Qr.map(fo=>{var Vr;return(Vr=fo.response)==null?void 0:Vr.file_id}),aa=wo.map(fo=>{var Vr;return(Vr=fo.response)==null?void 0:Vr.data}),vo={history:Ua(Gt),file_ids:Ro,image_list:aa,edit:!0};Wi([...Gt,...Pi(Mn,Qr,wo)]),ha(Mn,vo,Gt)}if(Zn==="redraw"){No.current=Gt.slice(gr+1);const Wr=Gt.splice(gr-1),{text:Qr,fileList:wo=[],imageList:Ro=[]}=(Wr==null?void 0:Wr[0])||{},aa=wo.map(Vr=>{var ea;return(ea=Vr.response)==null?void 0:ea.file_id}),vo=Ro.map(Vr=>{var ea;return(ea=Vr.response)==null?void 0:ea.data}),fo={history:Ua(Gt),file_ids:aa,image_list:vo,edit:!0};Wi([...Gt,...Pi(Qr,wo,Ro)]),ha(Qr,fo,Gt)}},Yo=()=>{if(cr.trim()!==""){dr(),Fn(!0);const Zn=si.filter(Wr=>Wr.status==="done"),gr=yn.filter(Wr=>Wr.status==="done");Wi([...Gt,...Pi(cr,Zn,gr)]),ha(cr)}},fs=Zn=>{if(Zn.shiftKey){if(Zn.key==="Enter")return}else if(Zn.key==="Enter"){if(Zn.preventDefault(),ru||Kr.current)return;Yo()}},ia=(Zn,gr)=>{let Wr=!1;Tn===!0?Wr=!0:Tn==="last"&&(Wr=Gt.reduce((aa,vo,fo)=>vo.sender==="user"?fo:aa,-1)===gr);const Qr=gr===Pn,wo=[...(Zn==null?void 0:Zn.fileList)||[],...(Zn==null?void 0:Zn.imageList)||[]];return ce.createElement("div",{className:ye.li,style:un({width:Pr},Vi)},ce.createElement("div",{className:ye.avatarIcon},ce.createElement("img",{className:ye.img,src:$e})),ce.createElement("div",{className:ye.content},!!(wo!=null&&wo.length)&&ce.createElement("div",{className:ye.fileWrap},wo==null?void 0:wo.map((Ro,aa)=>{var vo,fo;return ce.createElement("div",{key:aa,className:ye.file},ce.createElement("img",{src:le(90034)(`./${((fo=(vo=Ro==null?void 0:Ro.name)==null?void 0:vo.split("."))==null?void 0:fo.pop())||"txt"}.png`),width:20,className:"mr10"}),ce.createElement("aside",null,ce.createElement(Te.Z,{title:Ro==null?void 0:Ro.name},ce.createElement("div",{className:ye.fileName},Ro==null?void 0:Ro.name)),ce.createElement("div",{className:"c-grey-999 font12"},(0,Ae.RD)(Ro==null?void 0:Ro.size))))})),ce.createElement("div",{className:ye.borderBox},Qr?ce.createElement(Ge.default.TextArea,{value:Mn,ref:Sr,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Ro=>tr(Ro.target.value)}):ce.createElement("div",{className:ye.text},Zn==null?void 0:Zn.text)),Qr?ce.createElement("div",{className:ye.action},ce.createElement(st.ZP,{onClick:()=>{tr(""),bo(null)},size:"small"},"\u53D6\u6D88"),ce.createElement(st.ZP,{disabled:!Mn.trim(),onClick:()=>ho("edit",gr),type:"primary",size:"small"},"\u786E\u8BA4")):ce.createElement("div",{className:ye.action},ce.createElement(tt.CopyToClipboard,{text:(Zn==null?void 0:Zn.text)||"",onCopy:()=>Me.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(Te.Z,{title:"\u590D\u5236"},ce.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Wr&&!Zi&&ce.createElement(Te.Z,{title:"\u7F16\u8F91"},ce.createElement("i",{onClick:()=>{bo(gr),tr((Zn==null?void 0:Zn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},os=(Zn,gr)=>{var Wr,Qr,wo,Ro,aa,vo;let fo=!1;Kn===!0?fo=!0:Kn==="last"&&(fo=Gt.reduce(($i,Ta,It)=>Ta.sender==="AI"?It:$i,-1)===gr);let Vr="";return Zn!=null&&Zn.source?Vr=Zn==null?void 0:Zn.source:(Zn==null?void 0:Zn.model)==="deepseek-r1"?Vr="\u7531deepseek\u751F\u6210":(Zn==null?void 0:Zn.model)==="qwen-max"&&(Vr="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ce.createElement("div",{className:ye.li,style:un({width:Pr},Vi)},ce.createElement("div",{className:ye.avatarIcon},ce.createElement("img",{className:ye.img,src:(Qr=(Wr=ln==null?void 0:ln.userInfo)==null?void 0:Wr.course)!=null&&Qr.ai_headimg_id?((wo=at.Z)==null?void 0:wo.API_SERVER)+"/api/attachments/"+((aa=(Ro=ln==null?void 0:ln.userInfo)==null?void 0:Ro.course)==null?void 0:aa.ai_headimg_id):Nn})),ce.createElement("div",{className:ye.content},ce.createElement("div",{className:ye.borderBox},Zn.loading&&ce.createElement(ce.Fragment,null,Zn!=null&&Zn.imageGenerator?ce.createElement("div",{className:ye.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ce.createElement("div",{className:"ai-loading"})):!(Zn!=null&&Zn.thinkingEnabled)&&ce.createElement("div",null,ce.createElement("div",{className:ye.loading},ce.createElement("div",{className:ye.dot}),ce.createElement("div",{className:ye.dot}),ce.createElement("div",{className:ye.dot})),ce.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(qn==null?void 0:qn.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"))),(Zn==null?void 0:Zn.thinkingEnabled)&&ce.createElement(se.Z,{time:Zn==null?void 0:Zn.time,cancelIndex:Ii,loading:Zn.loading,streamingStatus:!(Zn!=null&&Zn.text),onFinish:()=>{On(0),Wi(ea=>[...ea].map(($i,Ta)=>Ta===ea.length-1?Nt(un({},$i),{hideAnswer:!1,time:$i.startTime?$i.endTime-$i.startTime:null}):$i))},value:Zn==null?void 0:Zn.reasoning}),!!(Zn!=null&&Zn.text)&&!Zn.hideAnswer&&ce.createElement(te.Z,{onDynamic:pn,cancelIndex:Ii,streamingStatus:Zi,loadImage:!!(Zn!=null&&Zn.imageGenerator),onFinish:()=>hn(void 0,null,function*(){On(0),setTimeout(()=>To(!1),0)}),value:Zn==null?void 0:Zn.text}),((vo=Zn==null?void 0:Zn.knowledge)==null?void 0:vo.length)>0&&ce.createElement(he.Z,{Filelist:Zn==null?void 0:Zn.knowledge})),di&&!!(Zn!=null&&Zn.text)&&Vr&&ce.createElement("div",{className:ye.source},Vr),ce.createElement("div",{className:ye.action},Ue==null?void 0:Ue(Zn,gr,xl),!(Zn!=null&&Zn.imageGenerator)&&ce.createElement(tt.CopyToClipboard,{text:String((Zn==null?void 0:Zn.text)||""),onCopy:()=>Me.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ce.createElement(Te.Z,{title:"\u590D\u5236"},ce.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),nn&&!Zi&&ce.createElement(ce.Fragment,null,ce.createElement(Te.Z,{title:"\u559C\u6B22"},ce.createElement("i",{style:Zn!=null&&Zn.like?{color:"#FA8D30"}:{},onClick:()=>Ns("like",!(Zn!=null&&Zn.like),gr),className:"iconfot icon-yijiejue font15"})),ce.createElement(Te.Z,{title:"\u4E0D\u559C\u6B22"},ce.createElement("i",{style:Zn!=null&&Zn.dislike?{color:"#e86d7c"}:{},onClick:()=>Ns("dislike",!(Zn!=null&&Zn.dislike),gr),className:"iconfot icon-weijiejuezhengchang font15"}))),fo&&!Zi&&ce.createElement(Te.Z,{title:"\u91CD\u65B0\u751F\u6210"},ce.createElement("i",{onClick:()=>ho("redraw",gr),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Ns=(Zn,gr,Wr)=>hn(void 0,null,function*(){if(Vt){const Qr=Gt.slice(0,Wr+1),Ro=Ua(Qr).length;yield Vt({type:Zn,value:gr,index:Wr,identifier:gi,objectIndex:Ro})}Wi(Qr=>(Qr[Wr][Zn]=gr,gr&&(Qr[Wr][Zn==="like"?"dislike":"like"]=!1),[...Qr]))}),ws=()=>{var Zn,gr;On(1),(gr=(Zn=Or.current)==null?void 0:Zn.cancelRequest)==null||gr.call(Zn),Fn(!1),To(!1)},ba=()=>hn(void 0,null,function*(){var Zn,gr,Wr;(gr=(Zn=Or.current)==null?void 0:Zn.cancelRequest)==null||gr.call(Zn),dr(),Wi([]),Ao([]),Fn(!0);const Qr=yield co();(Qr==null?void 0:Qr.status)===0&&ui((Wr=Qr==null?void 0:Qr.data)==null?void 0:Wr.identifier),Fn(!1),To(!1)}),Qs=()=>hn(void 0,null,function*(){var Zn;Eo(!0);const gr=yield Lo();(gr==null?void 0:gr.status)===0&&Co(((Zn=gr==null?void 0:gr.data)==null?void 0:Zn.list)||[]),Eo(!1)}),Wl=(...Zn)=>hn(void 0,[...Zn],function*(gr=gi){var Wr,Qr,wo,Ro;(Qr=(Wr=Or.current)==null?void 0:Wr.cancelRequest)==null||Qr.call(Wr),dr(),jt(!0);const aa=yield dn(gr);if(aa.status===0){const vo=Uo(((wo=aa==null?void 0:aa.data)==null?void 0:wo.messages)||[]);Wi(vo),jt(!1),ui((Ro=aa==null?void 0:aa.data)==null?void 0:Ro.identifier);return}Wi([]),Ao([]),jt(!1)}),Ms=(Zn,gr)=>hn(void 0,null,function*(){(yield Gr(Zn)).status===0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),gr===gi&&ba(),Qs())}),js=()=>ce.createElement("div",{className:ye.menuWarp},ce.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ce.createElement(Qe.Z,{spinning:br},!eo.length&&ce.createElement(We.Z,{style:{width:250,paddingBottom:30},image:We.Z.PRESENTED_IMAGE_SIMPLE}),!!eo.length&&ce.createElement("div",{className:ye.menu},eo.map(function(Zn,gr){return ce.createElement("aside",{className:Fe()(gi===Zn.identifier&&ye.active),key:Zn.id,onClick:()=>Wl(Zn.id)},ce.createElement("div",{className:ye.menuText},ce.createElement(Te.Z,{title:Zn==null?void 0:Zn.question},ce.createElement("span",null,Zn==null?void 0:Zn.question)),Tr&&Tr(Zn)),ce.createElement("div",{className:ye.menuDel,onClick:Wr=>Wr.stopPropagation()},ce.createElement(mt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>Ms(Zn.id,Zn.identifier),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},ce.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Rs=Zn=>{if(Zn==="file"){if(yn.length){je.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:()=>{ir([]),qt.current.upload.uploader.fileInput.click()}});return}qt.current.upload.uploader.fileInput.click()}if(Zn==="image"){if(si.length){je.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:()=>{oi([]),mo.current.upload.uploader.fileInput.click()}});return}mo.current.upload.uploader.fileInput.click()}},Rl=[{key:"file",disabled:si.length>=da,label:ce.createElement(Te.Z,{placement:"right",title:ce.createElement("div",null,ce.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),ce.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},en!=="deepseek-r1"&&{key:"image",disabled:yn.length>=Ra,label:ce.createElement(Te.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),iu=[...si,...yn],ru=iu.some(Zn=>Zn.status==="uploading")||Zi||Ar,ka=Hr>=jr,ou=Wt||si.length>=da||yn.length>=Ra,Mu=ai||rn||Ki||Yt||!!iu.length,xl={chatData:Gt,stream:Or,isDisabledNum:ka,isDisAbledUpload:ru,checkNumModal:vr,checkNum:Wo,onClose:to,setChatData:Wi,setLoading:Fn,getData:ha,clearStatus:dr,typing:Ar,setImageGenerator:yi,renderChatItems:Pi,setSceneAwareness:_i,setIdentifier:ui,setCodePreview:qe,setTyping:To,onMenuClick:Wl};return ce.createElement(ce.Fragment,null,ke?ce.createElement("div",{onClick:Dr},ke):ke!==null&&ce.createElement(Le.Z,{draggableExtraNode:In,usercourse:(Rn=ln==null?void 0:ln.userInfo)==null?void 0:Rn.course,src:Oe,onClick:Dr,topPercentage:Mi}),ce.createElement(Ji,{open:Jn,width:sr?"100%":Ln,afterOpenChange:Zn=>{Zn&&lo(!1)},push:!1,contentWrapperStyle:hr?{}:{transition:"none"},extra:ce.createElement("div",{className:ye.head},Br,Gn&&ce.createElement(ge.Z,{value:en,onChange:Zn=>{_n(!1),yi(!1),ze(Zn),ir([]),oi([])}}),Si&&ce.createElement(ce.Fragment,null,ce.createElement(it.Z,{dropdownRender:js,onOpenChange:Zn=>{Zn&&Qs()},placement:"bottomLeft",arrow:!0},ce.createElement("div",{className:ye.headBtn},ce.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),lr&&ce.createElement(ce.Fragment,null,ce.createElement("div",{className:ye.headBtn,onClick:ba},ce.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),ce.createElement(Te.Z,{title:sr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},ce.createElement("div",{className:ye.headBtn,style:{padding:"0 12px"},onClick:()=>Yr(!sr)},sr&&ce.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!sr&&ce.createElement("i",{className:"iconfont icon-quanping4"})))),title:ce.createElement("div",null," ",ce.createElement("span",{className:"c-grey-333 font16"},((or=(Ui=ln==null?void 0:ln.userInfo)==null?void 0:Ui.course)==null?void 0:or.ai_nickname)||Bt)," ",(0,on.G5)()&&ce.createElement("i",{onClick:()=>{ca(!0)},style:{marginLeft:10,color:"#333",fontSize:14,cursor:"pointer"},className:"iconfont icon-bianji16"})),onClose:to,bodyStyle:{paddingRight:4}},ce.createElement("div",{className:Fe()(ye.wrap,Jn&&"body-overflow-hidden")},ce.createElement("div",{ref:wr,className:ye.chatContainer},Nr==null?void 0:Nr(xl),gt&&ce.createElement("div",{className:`${ye.li} mb20`,style:un({width:Pr},Vi)},ce.createElement("div",{className:ye.avatarIcon},ce.createElement("img",{className:ye.img,src:(yt=(ci=ln==null?void 0:ln.userInfo)==null?void 0:ci.course)!=null&&yt.ai_headimg_id?((zt=at.Z)==null?void 0:zt.API_SERVER)+"/api/attachments/"+((ii=(li=ln==null?void 0:ln.userInfo)==null?void 0:li.course)==null?void 0:ii.ai_headimg_id):Nn})),ce.createElement("div",{className:ye.content},ce.createElement("div",{className:ye.borderBox},_t,Vn==null?void 0:Vn(xl)))),ce.createElement("div",{ref:ti},ce.createElement(Qe.Z,{spinning:Li,className:"mt20"},Gt==null?void 0:Gt.map((Zn,gr)=>ce.createElement(ce.Fragment,{key:Zn.key+gr},Zn.show&&ce.createElement(ce.Fragment,null,Zn.sender==="user"&&ia(Zn,gr),Zn.sender==="AI"&&os(Zn,gr),qi&&!["AI","user"].includes(Zn.sender)&&qi(Zn,gr,{width:Pr})))))),!xi&&ce.createElement("div",{className:ye.backBottom,onClick:()=>{wr.current.scrollTop=wr.current.scrollHeight}},ce.createElement("i",{className:"iconfont icon-huidaodibu"})),ce.createElement("div",{ref:fi})),ce.createElement(je.default,{title:"\u8BBE\u7F6E\u52A9\u6559\u5934\u50CF\u548C\u540D\u79F0",centered:!0,width:720,okText:"\u4FDD\u5B58",onOk:()=>hn(void 0,null,function*(){Sa||Me.ZP.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A");let Zn=yield(0,be.ZP)(`/api/courses/${yo==null?void 0:yo.coursesId}/ai_settings.json`,{method:"put",body:{ai_nickname:Sa,ai_headimg_id:bs}});(Zn==null?void 0:Zn.status)===0&&(ca(!1),Lr({type:"user/getUserInfo",payload:{course_id:yo==null?void 0:yo.coursesId}}))}),onCancel:()=>{ca(!1)},open:xr},ce.createElement("div",{style:{display:"flex",alignItems:"center"}},ce.createElement("label",{style:{width:70,textAlign:"end"}},ce.createElement("span",{style:{color:"red"}},"*"),"\u52A9\u6559\u540D\u79F0"),ce.createElement(Ge.default,{maxLength:5,showCount:!0,style:{width:"80%",marginLeft:20},value:Sa,onChange:Zn=>Ya(Zn.target.value)})),ce.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},ce.createElement("label",{style:{width:70,textAlign:"end",marginRight:20}},"\u52A9\u6559\u5934\u50CF"),ce.createElement(Ie.default,{disabled:bs,accept:".png,.jpg",action:`${at.Z.API_SERVER}/api/attachments.json`,maxCount:1,showUploadList:!1,withCredentials:!0,beforeUpload:Zn=>{var gr,Wr,Qr,wo;const Ro=(wo=(Qr=(Wr=(gr=Zn==null?void 0:Zn.name)==null?void 0:gr.split("."))==null?void 0:Wr.slice(-1))==null?void 0:Qr[0])==null?void 0:wo.toLowerCase(),vo=["jpg","png"].includes(Ro);return Zn.size==0?(Me.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ie.default.LIST_IGNORE):vo?Zn.size/1024/1024>100?(Me.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ie.default.LIST_IGNORE):!0:(Me.ZP.warning("\u76EE\u524D\u652F\u6301png\u3001jpg\u6587\u4EF6"),Ie.default.LIST_IGNORE)},onChange:({file:Zn})=>{var gr;ts((gr=Zn==null?void 0:Zn.response)==null?void 0:gr.container_id)}},bs?ce.createElement("div",{style:{position:"relative"}},ce.createElement("img",{src:((Rt=at.Z)==null?void 0:Rt.API_SERVER)+"/api/attachments/"+bs,width:120,height:120}),ce.createElement("i",{onClick:()=>{ts("")},style:{color:"red",cursor:"pointer",position:"absolute",right:0,top:0},className:"iconfont icon-zuoce-jinengbiaoqianshanchu"})):ce.createElement("div",{className:ye.addimg},ce.createElement("i",{className:"iconfont icon-tianjia5"}),ce.createElement("span",{style:{marginTop:10}},"\u4E0A\u4F20\u5934\u50CF")))),ce.createElement("div",{style:{marginLeft:12}},ce.createElement("p",{style:{color:"#333",marginBottom:0,marginTop:20}},"\u5C55\u793A\u5165\u53E3\u793A\u4F8B"),ce.createElement("img",{src:et,style:{width:570}}))),!An&&ce.createElement("div",{style:Be,className:Fe()(ye.footerContainer,Ur&&ye.full,Mu&&ye.footerContainerSelected)},ce.createElement("div",{className:ye.btnWrp},bi&&ce.createElement(Te.Z,{title:"\u66F4\u64C5\u957F\u5904\u7406\u4EE3\u7801\u95EE\u9898\uFF0C\u652F\u6301\u4E00\u53E5\u8BDD\u751F\u6210\u5E94\u7528"},ce.createElement("div",{onClick:()=>qe(!Yt),className:Fe()(ye.btn,Yt&&ye.btnActive)},ce.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),Xi&&ce.createElement(Te.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ce.createElement("div",{onClick:()=>_i(!Ki),className:Fe()(ye.btn,Ki&&ye.btnActive)},ce.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),en==="deepseek-r1"&&ce.createElement(Te.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ce.createElement("div",{onClick:()=>_n(!rn),className:Fe()(ye.btn,rn&&ye.btnActive)},ce.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),wt&&en==="qwen-max"&&ce.createElement("div",{onClick:()=>yi(!ai),className:Fe()(ye.btn,ai&&ye.btnActive)},ce.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),iu.map(Zn=>ce.createElement("div",{key:Zn.uid},(Zn==null?void 0:Zn.status)==="uploading"&&ce.createElement(Qe.Z,{indicator:ce.createElement(Lt.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),ce.createElement("span",{title:Zn==null?void 0:Zn.name,className:"mr10"},(0,Ae.Pq)(Zn.name,20)),ce.createElement("i",{onClick:()=>{oi(gr=>gr.filter(Wr=>Wr.uid!==Zn.uid)),ir(gr=>gr.filter(Wr=>Wr.uid!==Zn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),ce.createElement(Te.Z,{title:ka&&ce.createElement("div",null,ce.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ce.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",jr,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},ce.createElement("div",{className:Fe()(ye.inputContainer,fr>4&&ye.lineFour,ka&&ye.disabledInput)},ce.createElement(Ie.default,un({ref:qt},va)),ce.createElement(Ie.default,un({ref:mo},Pa)),ce.createElement(it.Z,{className:`${ou&&"hide"}`,menu:{items:Rl,onClick:Zn=>Rs(Zn.key)},placement:"top"},ce.createElement(st.ZP,{className:ye.uploadBtn,icon:ce.createElement(Ut.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),ce.createElement(Ge.default.TextArea,{rows:fr>4?4:fr,placeholder:Pt||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:cr,bordered:!1,style:ou?{paddingLeft:0,marginLeft:0}:{},onChange:Ea,onPressEnter:fs,onFocus:()=>Ri==null?void 0:Ri(),onCompositionStart:()=>{Kr.current=!0},onCompositionEnd:()=>{Kr.current=!1}}),Ar?ce.createElement(Te.Z,{title:"\u505C\u6B62\u751F\u6210"},ce.createElement("div",{className:`iconfont icon-tingzhihuida ${ye.cancelBtn}`,onClick:ws})):ce.createElement(st.ZP,{className:(cr==null?void 0:cr.trim())===""?ye.sendBtnDisabled:ye.sendBtn,icon:ce.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:ru,onClick:Yo}),fr>4&&ce.createElement("span",{className:ye.fullIcon,onClick:oo},Ur&&ce.createElement("span",{className:"iconfont icon-shousuo"}),!Ur&&ce.createElement("span",{className:"iconfont icon-zhankai"}))))))))};var Qn=(0,ne.connect)(({globalSetting:Bt,pathsDetail:Pt,user:Wt})=>({globalSetting:Bt,pathsDetail:Pt,user:Wt}))(cn)},81705:function(Re,Ee,le){"use strict";le.d(Ee,{t:function(){return it}});var ce=le(59301),Pe=le(99571),Me={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Ie=le(92310),je=le.n(Ie),Te=Object.defineProperty,Ge=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,We=(kt,Fe,ne)=>Fe in kt?Te(kt,Fe,{enumerable:!0,configurable:!0,writable:!0,value:ne}):kt[Fe]=ne,mt=(kt,Fe)=>{for(var ne in Fe||(Fe={}))st.call(Fe,ne)&&We(kt,ne,Fe[ne]);if(Ge)for(var ne of Ge(Fe))Qe.call(Fe,ne)&&We(kt,ne,Fe[ne]);return kt};const it=({cancelText:kt="\u53D6\u6D88",okText:Fe="\u786E\u5B9A",loading:ne=!1,hasOkBtn:te=!0,hasCancelBtn:he=!0,okButtonProps:se={},onCancel:ge=()=>{},onOk:ye=()=>{},className:be=""})=>ce.createElement("div",{className:je()(Me.buttonFixed,be)},ce.createElement("div",{className:Me.buttonWrap},he&&ce.createElement(Pe.ZP,{size:"middle",className:`${Me.button} mr20`,onClick:ge},kt),te&&ce.createElement(Pe.ZP,mt({size:"middle",type:"primary",className:`${Me.button} mr20`,loading:ne,onClick:ye},se),Fe)))},9507:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return mt}});var ce=le(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=le(92310),Ie=le.n(Me),je=le(29787),Te=le(2859),Ge=le(38986),st=le(51257),Qe=(it,kt,Fe)=>new Promise((ne,te)=>{var he=ye=>{try{ge(Fe.next(ye))}catch(be){te(be)}},se=ye=>{try{ge(Fe.throw(ye))}catch(be){te(be)}},ge=ye=>ye.done?ne(ye.value):Promise.resolve(ye.value).then(he,se);ge((Fe=Fe.apply(it,kt)).next())}),mt=({data:it,className:kt,fullWidth:Fe,style:ne={},onClose:te,onOk:he,showFullTools:se,noAssociationId:ge})=>{const ye=(0,ce.useRef)(null),be=(0,ce.useRef)(null),Ae=(0,ce.useRef)(null),Le=(0,ce.useRef)(null),[Ve,et]=(0,ce.useState)(!1),[Je,rt]=(0,ce.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ce.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),it!=null&&it.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",it!=null&&it.src&&at()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[it==null?void 0:it.visible]);const at=()=>Qe(void 0,null,function*(){et(!0),rt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ut=yield(0,st.ZJ)(it==null?void 0:it.src);ye.current.src="",ye.current.src=Ut,ye.current.onload=function(){Lt()},et(!1),rt("")}),tt=Ut=>Qe(void 0,null,function*(){et(!0),rt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const on=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:it.title,file:Ut.dataUrl}});on!=null&&on.id&&!ge?(yield(0,Ge.ZP)(`/api/attachments/${it.id}/add_subitem.json`,{method:"post",body:{subitem_id:on==null?void 0:on.id,settings:JSON.stringify(Ut.state)}})).status===0&&he():on!=null&&on.id&&he(on),et(!1),rt("")}),Et=()=>{const Ut=document.querySelector('a[href="https://markerjs.com/"]');Ut&&Ut.parentNode&&(Ut.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(an=>{const Kt=document.querySelector(an.name);Kt&&Kt.setAttribute("title",an.title)})},Lt=()=>{be.current=new Te.hP(ye.current),be.current.targetRoot=Le.current,be.current.addEventListener("render",tt),be.current.addEventListener("beforeclose",te),se&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),it!=null&&it.snapshotData&&be.current.restoreState(it.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Et()},300)};return ce.createElement(ce.Fragment,null,(it==null?void 0:it.visible)&&ce.createElement(je.Z,{spinning:Ve,tip:Je,style:{position:"absolute",width:"100vw"}},ce.createElement("div",{ref:Le,className:Ie()(Pe.imageDimensions,kt,Fe?Pe.fullWidth:""),style:ne},ce.createElement("img",{className:Pe.img,ref:ye}))))}},76562:function(Re,Ee,le){"use strict";var ce=le(59301),Pe=le(77019),Me=le(5269),Ie=le(20554),je=le(99571),Te=le(76902),Ge=le(99587),st=le(48136),Qe=le(59301);const We=(0,ce.forwardRef)(({callback:mt,showSaveButton:it,value:kt=""},Fe)=>{const ne=(0,ce.useRef)(),te=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],he=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],se=be=>{ne.current.setValue(ne.current.getValue()+" "+be.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Qe.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},te.map((be,Ae)=>Qe.createElement(Me.Z,{flex:"110px",className:Ge.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:`$$${be.value}$$`}),be.name),Qe.createElement("div",{className:Ge.Z.children},be.children.map((Le,Ve)=>Qe.createElement("div",{key:Ve},Qe.createElement("h1",null,Le.name),Qe.createElement(Pe.Z,{gutter:[10,10]},Le.data.map((et,Je)=>Qe.createElement(Me.Z,{key:Je,onClick:()=>se(et),className:Ge.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+et.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Qe.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},he.map((be,Ae)=>Qe.createElement(Me.Z,{flex:"110px",className:Ge.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:"`$$"+be.value+"$$`"}),be.name),Qe.createElement("div",{className:Ge.Z.children},be.children.map((Le,Ve)=>Qe.createElement("div",{key:Ve},Le.name&&Qe.createElement("h1",null,Le.name),Qe.createElement(Pe.Z,{gutter:[10,10]},Le.data.map((et,Je)=>Qe.createElement(Me.Z,{key:Je,onClick:()=>se(et),className:Ge.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+et.value+"$$`"}))))))))))}],ye=()=>{var be=document.createElement("div");be.innerHTML=ne.current.getValue();var Ae=be.innerText;return mt&&mt(Ae),Ae};return(0,ce.useImperativeHandle)(Fe,()=>({getData:ye})),Qe.createElement("div",{className:Ge.Z.mathWrap},Qe.createElement(Ie.default,{defaultActiveKey:"1",items:ge}),Qe.createElement("math-field",{locale:"zh_cn",className:Ge.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ne,style:{width:800,marginTop:30,fontSize:18}},kt||""),it&&Qe.createElement("div",{className:Ge.Z.button},Qe.createElement(je.ZP,{size:"large",onClick:ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ee.Z=We},28426:function(Re,Ee,le){"use strict";var ce=le(59301),Pe=le(93314),Me=le(99571),Ie=Object.defineProperty,je=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,We=(Fe,ne,te)=>ne in Fe?Ie(Fe,ne,{enumerable:!0,configurable:!0,writable:!0,value:te}):Fe[ne]=te,mt=(Fe,ne)=>{for(var te in ne||(ne={}))st.call(ne,te)&&We(Fe,te,ne[te]);if(Ge)for(var te of Ge(ne))Qe.call(ne,te)&&We(Fe,te,ne[te]);return Fe},it=(Fe,ne)=>je(Fe,Te(ne));const kt=({img:Fe,buttonProps:ne={},styles:te={},customText:he,ButtonText:se,ButtonClick:ge,Buttonclass:ye,ButtonTwo:be,imgStyles:Ae,loading:Le=!1,className:Ve=""})=>ce.createElement("section",{className:`tc animated fadeIn ${Ve}`,style:mt({color:"#999",margin:"100px auto",visibility:Le?"hidden":"visible"},te)},ce.createElement("img",{src:Fe||Pe,style:it(mt({},Ae),{pointerEvents:"none",userSelect:"none"})}),ce.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&ce.createElement(Me.ZP,mt({className:ye,onClick:ge},ne),se),be&&be);Ee.Z=kt},45677:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return ye}});var ce=le(59301),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Me=le(99571),Ie=le(70557),je=le(75975),Te=le(25399),Ge=le(51257),st=le(81722),Qe=le(28426),We=le(346),mt=le(44203),it=le(59301),kt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,he=(be,Ae,Le)=>Ae in be?kt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Le}):be[Ae]=Le,se=(be,Ae)=>{for(var Le in Ae||(Ae={}))ne.call(Ae,Le)&&he(be,Le,Ae[Le]);if(Fe)for(var Le of Fe(Ae))te.call(Ae,Le)&&he(be,Le,Ae[Le]);return be},ge=(be,Ae,Le)=>new Promise((Ve,et)=>{var Je=tt=>{try{at(Le.next(tt))}catch(Et){et(Et)}},rt=tt=>{try{at(Le.throw(tt))}catch(Et){et(Et)}},at=tt=>tt.done?Ve(tt.value):Promise.resolve(tt.value).then(Je,rt);at((Le=Le.apply(be,Ae)).next())}),ye=({editOffice:be="view",data:Ae,issaver:Le,onSaver:Ve,theme:et,type:Je,filename:rt,monacoEditor:at,className:tt,style:Et,close:Lt,onClose:Ut,hasMask:on,disabledDownload:an,onImgDimensions:Kt,showNodata:fn,recordInfo:bt})=>{const[dt,ct]=(0,ce.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Qt,un]=(0,ce.useState)(""),[Nt,hn]=(0,ce.useState)(),cn=window.ENV==="build"?"/react/build":"",Qn=location.host.startsWith("localhost")?We.Z.PROXY_SERVER:We.Z.API_SERVER,Pt=10*(1024*1024),Wt=(0,ce.useRef)();Ae!=null&&Ae.startsWith("/api")&&Je!=="txt"&&(Ae=We.Z.API_SERVER+Ae);const An=Ke=>Ke.substring(Ke.lastIndexOf("/")+1).split(".").pop();rt&&at&&(at.filename=rt),(0,ce.useEffect)(()=>{var Ke,lt;const Ue=(lt=(Ke=document.cookie)==null?void 0:Ke.replace(/\s/g,""))==null?void 0:lt.split(";");Ue==null||Ue.map(gt=>{let tn=gt.split("=");tn[0]==="_educoder_session"&&un(tn[1])})},[]),(0,ce.useEffect)(()=>{Je==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?hn({url:Ae,fileType:An(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):$e())},[Je,Ae]);function Nn(Ke){return ge(this,null,function*(){Ke.data.type==="pdfdata"&&(Ve(Ke.data.data),window.removeEventListener("message",Nn,!1)),console.log("mess---:",Ke.data)})}const $e=()=>ge(void 0,null,function*(){console.log("data:",Ae);let Ke=Ae;Ae.startsWith("http")||(Ke=location.origin+Ke);let lt=new URL(Ke).pathname.split("/").pop();const Ue=yield(0,st.gJ)({attachment_id:lt});Ue.url=Qn+Ue.url,hn(Ue)}),Oe=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){ke();return}(0,Ge.Sv)(rt||"educoder",Ae,rt)},ke=()=>{bt&&(0,mt.fc)({id:bt==null?void 0:bt.id,watch_type:1,course_id:bt==null?void 0:bt.course_id}),(0,Ge.Nd)(rt||"educoder",decodeURIComponent(Ae))};return it.createElement("div",{style:se({},Et||{}),className:`${on&&Pe.bgBlack} ${Je?Pe.wrp:"hide"}`},Lt&&it.createElement("div",{className:Pe.close,ref:Wt},!!Kt&&it.createElement(Te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Wt.current},it.createElement("span",{onClick:()=>{Ut(),Kt()}},it.createElement("i",{className:"icon-yulanpizhu"}))),!an&&it.createElement(Te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Wt.current},it.createElement("span",{onClick:ke},it.createElement("i",{className:"icon-quxiaozhiding"}))),Le&&it.createElement(Te.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Wt.current},it.createElement("span",{className:"",onClick:()=>{const Ke=document.getElementById("pdfiframe");window.addEventListener("message",Nn,!1),setTimeout(()=>{Ke.contentWindow.postMessage("getData","*")},300)}},it.createElement("i",{className:"icon-baocun"}))),it.createElement(Te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Wt.current},it.createElement("span",{className:"",onClick:()=>{Ut()}},it.createElement("i",{className:"icon-guanbi1"})))),it.createElement("div",{className:`${Pe[tt]} ${tt} ${Pe.monaco} ${Je==="txt"?"show":"hide"}`},Je==="txt"&&it.createElement(it.Fragment,null,it.createElement(je.ZP,se({},at)))),Je==="audio"&&it.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),Je==="video"&&it.createElement(it.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?it.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):it.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),Je==="office"&&Nt&&it.createElement("iframe",{src:`${cn}/office.html?key=${Nt.key}&url=${btoa(Nt.url)}&callbackUrl=${Qn+(Nt.callbackUrl||"")}&fileType=${Nt.fileType}&title=${Nt.title||""}&model=${be}&officeServer=${We.Z.ONLYOFFICE}&disabledDownload=${!!an}`}),Je==="html"&&it.createElement("iframe",{src:Ae+"&disposition=inline"}),Je==="pdf"&&it.createElement("iframe",{id:"pdfiframe",src:`${cn}/js/pdfview/index.html?filename=${rt||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!an}&model=${be}`}),Je==="image"&&it.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(Je==="other"||Je==="download")&&it.createElement(it.Fragment,null,fn?it.createElement(Qe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:it.createElement(Me.ZP,{icon:it.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Oe,disabled:an},"\u4E0B\u8F7D")}):it.createElement(Me.ZP,{type:"primary",size:"middle",onClick:Oe,disabled:an},it.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Re,Ee,le){"use strict";le.d(Ee,{z:function(){return et},Z:function(){return Je}});var ce=le(59301),Pe=le(8944),Me=le(81428),Ie=le(64018),je=le(81168),Te=le(346),Ge=le(51257),st=le(15342),Qe=le(1012),We=le(45677),mt=le(59301),kt=({html:rt})=>{const at=(0,ce.useRef)(null),tt=(0,ce.useRef)(null),Et=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,ce.useEffect)(()=>{const Lt=at.current.attachShadow({mode:"open"});tt.current=document.createElement("div"),tt.current.className="markdown-body",tt.current.innerHTML=rt,Lt.appendChild(tt.current);const Ut=document.createElement("style");return Ut.textContent=Et,Lt.appendChild(Ut),()=>{Lt.innerHTML=""}},[]),(0,ce.useEffect)(()=>{tt.current&&(tt.current.innerHTML=rt)},[rt]),mt.createElement("div",{ref:at})};function Fe(rt){const at=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],tt=new RegExp(`\\b(${at.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return rt.replace(tt,"").trim()}var ne=Object.defineProperty,te=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(rt,at,tt)=>at in rt?ne(rt,at,{enumerable:!0,configurable:!0,writable:!0,value:tt}):rt[at]=tt,ye=(rt,at)=>{for(var tt in at||(at={}))he.call(at,tt)&&ge(rt,tt,at[tt]);if(te)for(var tt of te(at))se.call(at,tt)&&ge(rt,tt,at[tt]);return rt};const be="@\u2581\u2581@",Ae="@\u2581@",Le=/<pre[^>]*>/g;function Ve(rt){let at=document.createElement("div");return at.innerHTML=rt,at.childNodes.length===0?"":at.childNodes[0].nodeValue}const et=(rt,at)=>{rt=rt||"";const tt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Lt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ut=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return at?rt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(tt,(on,an,Kt,fn,bt,dt,ct)=>{const Qt=an||fn||dt,un=Kt||bt||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+Qt+un+"&t="+(0,Ge.Jn)(Qt,Date.now())+(on.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(rt=rt.replace(Ut,(on,an,Kt,fn,bt,dt,ct)=>{const Qt=an||fn||dt,un=Kt||bt||ct||"?";return Te.Z.API_SERVER+"/attachments/download/"+Qt+un+"&t="+(0,Ge.Jn)(Qt,Date.now())+(on.indexOf(")")>-1?")":"&")}).replace(tt,(on,an,Kt,fn,bt,dt,ct)=>{const Qt=an||fn||dt,un=Kt||bt||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+Qt+un+"&t="+(0,Ge.Jn)(Qt,Date.now())+(on.indexOf(")")>-1?")":"&")}).replace(Et,(on,an,Kt,fn,bt)=>{const dt=an||fn,ct=Kt||bt||"";return'"'+Te.Z.API_SERVER+"/api/attachments/"+dt+ct+dt+ct+"&t="+(0,Ge.Jn)(dt,Date.now())}).replace(Lt,(on,an,Kt,fn,bt)=>{const dt=an||fn,ct=Kt||bt||"";return"("+Te.Z.API_SERVER+"/files/uploads/"+dt+ct+dt+ct+"&t="+(0,Ge.Jn)(dt,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,`
|
|
|
`),rt)};var Je=({value:rt="",className:at,showTextOnly:tt,showLines:Et,style:Lt={},stylesPrev:Ut={},highlightKeywords:on,showProgramFill:an,isProgramFill:Kt,disabledFill:fn=!1,programFillValue:bt,onFillChange:dt=un=>{},onFillBlur:ct=()=>{},onFillFocus:Qt=()=>{}})=>{let un=Fe(String(rt||""));const[Nt,hn]=(0,ce.useState)(""),[cn,Qn]=(0,ce.useState)("office"),[Bt,Pt]=(0,ce.useState)([]),Wt=(0,ce.useRef)("a"+(0,Qe.Z)()),An={},Nn=Ht=>/<style[\s\S]*?>/i.test(Ht||""),$e=(Ht,sn,vn)=>{const Ln=document.createElement(Ht===Ae?"input":"textarea");Ln.style.width="100%",Ln.style.height=Ht===Ae?"40px":"151px",Ln.rows=5,Ln.spellcheck=!1,Ln.name="edu-program-fill",Ln.placeholder="\u8BF7\u8F93\u5165",Ln.dataset.id=sn;const xn=Object.keys(An).length;return An[xn]=Ln,`<span class="edu-program-fill-wrap ${Ht===Ae?"":"show"}" style="width:${Ht===Ae?"600px":"100%"}" title=${vn||""}><span>${Ln.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Oe(Ht){return Ht=Ht.replace(/!\[.*?\]\(.*?\)/g,""),Ht=Ht.replace(/\[.*?\]\(.*?\)/g,""),Ht=Ht.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ht=Ht.replace(/<embed.*?>/g,""),Ht=Ht.replace(/<img.*?>/g,""),Ht=Ht.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ht=Ht.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ht=Ht.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ht=Ht.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ht}const ke=Ht=>!tt&&Nn(un)?Ht:Ht.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(sn,vn){let Ln=vn.replace(/(\n|\r)/g,"").split("}"),xn=[];return Ln.map(_t=>{_t!=""&&xn.push(`.${Wt.current} ${_t}`)}),`<style>${xn.join("}")}</style>`}),Ke=(0,ce.useMemo)(()=>{try{const Ln=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,xn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Vn=/\(\/attachments\/download\//g;un=un.replace(Vn,"("+Te.Z.API_SERVER+"/attachments/download/").replace(Ln,"("+Te.Z.API_SERVER+"/api/attachments/").replace(xn,'"'+Te.Z.API_SERVER+"/api/attachments/").replace(_t,'"'+Te.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(Ln){}if(an){let Ln=-1;return un=un.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(xn,_t,Vn){var Kn;return++Ln,$e(xn,Ln,(Kn=bt==null?void 0:bt[Ln])==null?void 0:Kn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ke(un||"")}</pre>`}let Ht=ke(un);Ht=(0,Me.ZP)(Ht);const sn=(0,Me.ez)();un.match(/\[TOC\]/)&&(Ht=Ht.replace("<p>[TOC]</p>",(0,Me.Qv)()),(0,Me.Iy)()),Ht=Ht.replace(/(__special_katext_id_\d+__)/g,(Ln,xn)=>{const{type:_t,expression:Vn}=sn[xn];return(0,st.renderToString)(Ve(Vn)||"",{displayMode:_t==="block",throwOnError:!1,output:"html"})}),Ht=Ht.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Me.AL)();const vn=document.createElement("div");if(vn.innerHTML=Ht,tt)return vn.innerText;if(on){const Ln=on.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return tn(vn,Ln),vn.innerHTML}return setTimeout(()=>nn(),500),vn.innerHTML},[un,on]);(0,ce.useEffect)(()=>{Un.current&&Un.current.querySelectorAll(["input","textarea"]).forEach(sn=>{sn.oninput=lt,sn.onblur=Ue,sn.onfocus=gt})},[Bt]),(0,ce.useEffect)(()=>{var Ht,sn,vn,Ln,xn;if(bt!=null&&bt.length)try{const _t=Un.current.querySelectorAll(".edu-program-fill-score"),Vn=Un.current.querySelectorAll('[name="edu-program-fill"]');for(const[Kn,Tn]of Vn.entries())Tn.value=((Ht=bt==null?void 0:bt[Kn])==null?void 0:Ht.value)||"",((sn=bt==null?void 0:bt[Kn])==null?void 0:sn.type)==="warning"?Tn.className="program-fill-warning":((vn=bt==null?void 0:bt[Kn])==null?void 0:vn.type)==="success"?Tn.className="program-fill-success":Tn.className="";for(const[Kn,Tn]of _t.entries())Tn.innerHTML=(Ln=bt==null?void 0:bt[Kn])!=null&&Ln.score?`${(xn=bt==null?void 0:bt[Kn])==null?void 0:xn.score}\u5206`:"";Pt(bt)}catch(_t){console.log(_t,"error")}},[bt]);const lt=Ht=>{Bt[Ht.target.dataset.id]=Bt[Ht.target.dataset.id]||{},Bt[Ht.target.dataset.id].value=Ht.target.value,Pt([...Bt]),dt(Bt,Ht.target.dataset.id)},Ue=Ht=>{Bt[Ht.target.dataset.id]=Bt[Ht.target.dataset.id]||{},Bt[Ht.target.dataset.id].value=Ht.target.value,Pt([...Bt]),ct(Bt,Ht.target.dataset.id)},gt=Ht=>{Bt[Ht.target.dataset.id]=Bt[Ht.target.dataset.id]||{},Bt[Ht.target.dataset.id].value=Ht.target.value,Pt([...Bt]),Qt(Bt,Ht.target.dataset.id)};function tn(Ht,sn){return Ht.childNodes.forEach(vn=>{var Ln;if(vn.childNodes.length>0)tn(vn,sn);else if(vn.nodeName!=="IMG")if(vn.innerHTML)vn.innerHTML=(Ln=vn.innerHTML)==null?void 0:Ln.replace(new RegExp(sn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const xn=document.createElement("span");xn.innerHTML=vn.textContent.replace(new RegExp(sn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),vn.replaceWith(xn)}})}const Un=(0,ce.useRef)();Me.jb.WebkitLineClamp=Et,Et&&(Lt=ye(ye({},Lt),Me.jb));function qn(Ht){let sn=Ht.target;if(sn.tagName.toUpperCase()==="A"){let vn=sn.getAttribute("href");if(vn.indexOf("office")>-1)Ht.preventDefault(),hn(vn),Qn("office");else if(vn.indexOf("application/pdf")>-1)Ht.preventDefault(),hn(vn),Qn("pdf");else if(vn.indexOf("text/html")>-1)Ht.preventDefault(),hn(vn),Qn("html");else if(vn.startsWith("#")){Ht.preventDefault();let Ln=document.getElementById(vn.replace("#",""));Ln&&Ln.scrollIntoView(!0)}}}const nn=()=>{var Ht;const sn=(Ht=Un.current)==null?void 0:Ht.querySelectorAll("video");sn==null||sn.forEach(vn=>{if(vn.oncontextmenu=()=>!1,vn.src.indexOf(".m3u8")>-1&&!vn.canPlayType("application/vnd.apple.mpegurl")){if(je.ZP.isSupported()){var Ln=new je.ZP;Ln.loadSource(vn.src),Ln.attachMedia(vn)}}})};return(0,ce.useEffect)(()=>{if(Un.current&&Ke&&Ke.match(Le)&&window.PR.prettyPrint(),Un.current)return Un.current.addEventListener("click",qn),()=>{var Ht;(Ht=Un.current)==null||Ht.removeEventListener("click",qn),(0,Me.AL)(),(0,Me.Iy)()}},[Ke,Un.current,qn]),(0,ce.useEffect)(()=>{var Ht;const sn=vn=>{vn.preventDefault(),vn.clipboardData.setData("text",window.getSelection().toString())};return(Ht=Un.current)==null||Ht.addEventListener("copy",sn),()=>{var vn;(vn=Un.current)==null||vn.removeEventListener("copy",sn)}},[Un.current]),ce.createElement(ce.Fragment,null,tt&&ce.createElement("div",{ref:Un},Ke),!tt&&!Nn(Ke)&&ce.createElement("div",{ref:Un,style:ye({},Lt),className:`${at||""} ${fn?"disabled-fill":""} markdown-body ${Wt.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!tt&&Nn(Ke)&&ce.createElement(kt,{html:Ke}),ce.createElement(We.Z,{close:!0,data:Nt,type:Nt!=null&&Nt.length?cn:"",style:ye({},Ut),onClose:()=>hn("")}))}},69720:function(Re,Ee,le){"use strict";le.d(Ee,{h:function(){return be}});var ce=le(59301),Pe=le(82326),Me=le(28284),Ie=le(99571),je=le(89780),Te=le.n(je),Ge=le(8336),st=le(12469),Qe=Object.defineProperty,We=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ne=(Ae,Le,Ve)=>Le in Ae?Qe(Ae,Le,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ae[Le]=Ve,te=(Ae,Le)=>{for(var Ve in Le||(Le={}))kt.call(Le,Ve)&&ne(Ae,Ve,Le[Ve]);if(it)for(var Ve of it(Le))Fe.call(Le,Ve)&&ne(Ae,Ve,Le[Ve]);return Ae},he=(Ae,Le)=>We(Ae,mt(Le));const se=Pe.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},ye={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"]};Ee.Z=({callback:Ae,onCancel:Le})=>{const[Ve,et]=(0,ce.useState)("python");function Je(at){et(ye[at][1])}function rt(at){Ae(at)}return ce.createElement(Me.default,he(te({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:rt,style:{width:500}}),ce.createElement(Me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ce.createElement(Pe.default,{getPopupContainer:at=>at.parentNode,onChange:Je},Object.keys(ye).map(at=>ce.createElement(se,{key:at,value:at},ye[at][0])))),ce.createElement(Me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ce.createElement(be,{mode:Ve})),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Ie.ZP,{type:"ghost",onClick:Le},"\u53D6\u6D88")))};function be({value:Ae,onChange:Le,mode:Ve,options:et={}}){const Je=(0,ce.useRef)(),[rt,at]=(0,ce.useState)();return(0,ce.useEffect)(()=>{if(rt){let tt=function(Et){const Lt=Et.getValue();Le&&Le(Lt)};return rt.on("change",tt),()=>{rt.off("change",tt)}}},[rt,Le]),(0,ce.useEffect)(()=>{rt&&rt.setOption("mode",Ve)},[rt,Ve]),(0,ce.useEffect)(()=>{rt&&(Ae!==rt.getValue()||Ae==="")&&setTimeout(()=>{rt.setValue(Ae||"")},300)},[rt,Ae]),(0,ce.useEffect)(()=>{if(Je.current&&!rt){const tt=Te().fromTextArea(Je.current,te({mode:Ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},et));at(tt)}},[Je.current,rt]),ce.createElement("div",{className:"my-codemirror-container"},ce.createElement("textarea",{ref:Je}))}},39793:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Lr}});var ce=le(59301),Pe=le(89780),Me=le.n(Pe),Ie=le(76374),je=le(8336),Te=le(6313),Ge=le(25717),st=le(99498),Qe=le(25419),We=le(67549),mt=le(76902),it=({value:ln="",className:pn,showTextOnly:$t,showLines:wn,style:Gi={}})=>{const Ci=(0,ce.useMemo)(()=>"",[ln]);return ce.createElement(ce.Fragment,null,ce.createElement("div",{dangerouslySetInnerHTML:{__html:Ci}}))},kt=Object.defineProperty,Fe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(ln,pn,$t)=>pn in ln?kt(ln,pn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):ln[pn]=$t,ye=(ln,pn)=>{for(var $t in pn||(pn={}))he.call(pn,$t)&&ge(ln,$t,pn[$t]);if(te)for(var $t of te(pn))se.call(pn,$t)&&ge(ln,$t,pn[$t]);return ln},be=(ln,pn)=>Fe(ln,ne(pn));let Ae=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Le({onActionCallback:ln,title:pn,icon:$t,actionName:wn,className:Gi="",children:Ci}){function Yi(){ln(wn)}return ce.createElement("a",{title:pn,className:Gi,onClick:Yi},ce.createElement("i",{className:`${$t}`}),Ci)}var Ve=({watch:ln,showNullButton:pn,showNullProgramButton:$t,onActionCallback:wn,fullScreen:Gi,insertTemp:Ci,hidetoolBar:Yi,extraUse:mn})=>{const Rn=[...Ae,{title:`${ln?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ln?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ce.createElement("ul",{className:"markdown-toolbar-container"},!Yi&&Rn.map((Ui,or)=>ce.createElement("li",{key:or},Ui.actionName?ce.createElement(Le,be(ye({},Ui),{onActionCallback:wn})):ce.createElement("span",{className:"v-line"}))),pn?ce.createElement("li",null,ce.createElement(Le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:wn},ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,$t?ce.createElement(ce.Fragment,null,ce.createElement("li",null,ce.createElement(Le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:wn},ce.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ce.createElement("li",null,ce.createElement(Le,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:wn},ce.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ci&&ce.createElement("li",null,ce.createElement(Le,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ci}`,onActionCallback:wn},ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),mn&&ce.createElement("li",null,mn),ce.createElement("li",{className:"btn-full-screen"},ce.createElement(Le,{icon:`${Gi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Gi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:wn})))},et=le(91558),Je=le(28284),rt=le(37568),at=le(99571),tt=Object.defineProperty,Et=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,Kt=(ln,pn,$t)=>pn in ln?tt(ln,pn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):ln[pn]=$t,fn=(ln,pn)=>{for(var $t in pn||(pn={}))on.call(pn,$t)&&Kt(ln,$t,pn[$t]);if(Ut)for(var $t of Ut(pn))an.call(pn,$t)&&Kt(ln,$t,pn[$t]);return ln},bt=(ln,pn)=>Et(ln,Lt(pn));const dt={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:ln,onCancel:pn})=>{function $t(wn){ln(wn)}return ce.createElement(Je.default,bt(fn({},dt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$t,style:{width:500}}),ce.createElement(Je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ce.createElement(rt.default,null)),ce.createElement(Je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ce.createElement(rt.default,null)),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(at.ZP,{type:"ghost",onClick:pn},"\u53D6\u6D88")))},Qt=le(69720),un=le(17077),Nt=le(62957),hn=le(77019),cn=le(9507),Qn=le(59301),Bt=({callback:ln,onCancel:pn})=>{const $t=document.createElement("canvas"),wn=$t.getContext("2d");$t.width=1e3,$t.height=800,wn.fillStyle="#ffffff",wn.fillRect(0,0,$t.width,$t.height);const Gi=$t.toDataURL("image/png");return Qn.createElement(Nt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qn.createElement(hn.Z,{style:{height:"100vh"}},Qn.createElement(cn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Gi,visible:!0,title:String(Date.now())},onOk:Ci=>{ln({src:Ci.url})},onClose:pn})))},Pt=le(12378);function Wt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Wt,go.CommandHandler),Wt.prototype.canAlignSelection=function(){var ln=this.diagram;return!(ln===null||ln.isReadOnly||ln.isModelReadOnly||ln.selection.count<2)},Wt.prototype.alignLeft=function(){var ln=this.diagram;ln.startTransaction("aligning left");var pn=1/0;ln.selection.each(function($t){$t instanceof go.Link||(pn=Math.min($t.position.x,pn))}),ln.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point(pn,$t.position.y))}),ln.commitTransaction("aligning left")},Wt.prototype.alignRight=function(){var ln=this.diagram;ln.startTransaction("aligning right");var pn=-1/0;ln.selection.each(function($t){if(!($t instanceof go.Link)){var wn=$t.actualBounds.x+$t.actualBounds.width;pn=Math.max(wn,pn)}}),ln.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point(pn-$t.actualBounds.width,$t.position.y))}),ln.commitTransaction("aligning right")},Wt.prototype.alignTop=function(){var ln=this.diagram;ln.startTransaction("alignTop");var pn=1/0;ln.selection.each(function($t){$t instanceof go.Link||(pn=Math.min($t.position.y,pn))}),ln.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point($t.position.x,pn))}),ln.commitTransaction("alignTop")},Wt.prototype.alignBottom=function(){var ln=this.diagram;ln.startTransaction("aligning bottom");var pn=-1/0;ln.selection.each(function($t){if(!($t instanceof go.Link)){var wn=$t.actualBounds.y+$t.actualBounds.height;pn=Math.max(wn,pn)}}),ln.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point($t.actualBounds.x,pn-$t.actualBounds.height))}),ln.commitTransaction("aligning bottom")},Wt.prototype.alignCenterX=function(){var ln=this.diagram,pn=ln.selection.first();if(pn){ln.startTransaction("aligning Center X");var $t=pn.actualBounds.x+pn.actualBounds.width/2;ln.selection.each(function(wn){wn instanceof go.Link||wn.move(new go.Point($t-wn.actualBounds.width/2,wn.actualBounds.y))}),ln.commitTransaction("aligning Center X")}},Wt.prototype.alignCenterY=function(){var ln=this.diagram,pn=ln.selection.first();if(pn){ln.startTransaction("aligning Center Y");var $t=pn.actualBounds.y+pn.actualBounds.height/2;ln.selection.each(function(wn){wn instanceof go.Link||wn.move(new go.Point(wn.actualBounds.x,$t-wn.actualBounds.height/2))}),ln.commitTransaction("aligning Center Y")}},Wt.prototype.alignColumn=function(ln){var pn=this.diagram;pn.startTransaction("align Column"),ln===void 0&&(ln=0),ln=parseFloat(ln);var $t=new Array;pn.selection.each(function(mn){mn instanceof go.Link||$t.push(mn)});for(var wn=0;wn<$t.length-1;wn++){var Gi=$t[wn],Ci=Gi.actualBounds.y+Gi.actualBounds.height+ln,Yi=$t[wn+1];Yi.move(new go.Point(Gi.actualBounds.x,Ci))}pn.commitTransaction("align Column")},Wt.prototype.alignRow=function(ln){ln===void 0&&(ln=0),ln=parseFloat(ln);var pn=this.diagram;pn.startTransaction("align Row");var $t=new Array;pn.selection.each(function(mn){mn instanceof go.Link||$t.push(mn)});for(var wn=0;wn<$t.length-1;wn++){var Gi=$t[wn],Ci=Gi.actualBounds.x+Gi.actualBounds.width+ln,Yi=$t[wn+1];Yi.move(new go.Point(Ci,Gi.actualBounds.y))}pn.commitTransaction("align Row")},Wt.prototype.canRotate=function(ln){var pn=this.diagram;return!(pn===null||pn.isReadOnly||pn.isModelReadOnly||pn.selection.count<1)},Wt.prototype.rotate=function(ln){ln===void 0&&(ln=90);var pn=this.diagram;pn.startTransaction("rotate "+ln.toString());var pn=this.diagram;pn.selection.each(function($t){$t instanceof go.Link||$t instanceof go.Group||($t.angle+=ln)}),pn.commitTransaction("rotate "+ln.toString())},Wt.prototype.pullToFront=function(){var ln=this.diagram;ln.startTransaction("pullToFront");var pn=new go.Map;ln.selection.each(function($t){pn.set($t.layer,0)}),pn.iteratorKeys.each(function($t){var wn=0;$t.parts.each(function(Gi){if(!Gi.isSelected){var Ci=Gi.zOrder;isNaN(Ci)?Gi.zOrder=0:wn=Math.max(wn,Ci)}}),pn.set($t,wn)}),ln.selection.each(function($t){Wt._assignZOrder($t,pn.get($t.layer)+1)}),ln.commitTransaction("pullToFront")},Wt.prototype.pushToBack=function(){var ln=this.diagram;ln.startTransaction("pushToBack");var pn=new go.Map;ln.selection.each(function($t){pn.set($t.layer,0)}),pn.iteratorKeys.each(function($t){var wn=0;$t.parts.each(function(Gi){if(!Gi.isSelected){var Ci=Gi.zOrder;isNaN(Ci)?Gi.zOrder=0:wn=Math.min(wn,Ci)}}),pn.set($t,wn)}),ln.selection.each(function($t){Wt._assignZOrder($t,pn.get($t.layer)-1-Wt._findGroupDepth($t))}),ln.commitTransaction("pushToBack")},Wt._assignZOrder=function(ln,pn,$t){$t===void 0&&($t=ln),ln.layer===$t.layer&&(ln.zOrder=pn),ln instanceof go.Group&&ln.memberParts.each(function(wn){Wt._assignZOrder(wn,pn+1,$t)})},Wt._findGroupDepth=function(ln){if(ln instanceof go.Group){var pn=0;return ln.memberParts.each(function($t){pn=Math.max(pn,Wt._findGroupDepth($t))}),pn+1}else return 0},Wt.prototype.doKeyDown=function(){var ln=this.diagram;if(ln!==null){var pn=ln.lastInput;if(pn.key==="Up"||pn.key==="Down"||pn.key==="Left"||pn.key==="Right"){var $t=this.arrowKeyBehavior;if($t==="none")return;if($t==="select"){this._arrowKeySelect();return}else if($t==="move"){this._arrowKeyMove();return}else if($t==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Wt.prototype._getAllParts=function(){var ln=new Array;return this.diagram.nodes.each(function(pn){ln.push(pn)}),this.diagram.parts.each(function(pn){ln.push(pn)}),ln},Wt.prototype._arrowKeyMove=function(){var ln=this.diagram,pn=ln.lastInput,$t=0,wn=0;if(pn.control||pn.meta)$t=1,wn=1;else if(ln.grid!==null){var Gi=ln.grid.gridCellSize;wn=Gi.width,$t=Gi.height}ln.startTransaction("arrowKeyMove"),ln.selection.each(function(Ci){pn.key==="Up"?Ci.move(new go.Point(Ci.actualBounds.x,Ci.actualBounds.y-$t)):pn.key==="Down"?Ci.move(new go.Point(Ci.actualBounds.x,Ci.actualBounds.y+$t)):pn.key==="Left"?Ci.move(new go.Point(Ci.actualBounds.x-wn,Ci.actualBounds.y)):pn.key==="Right"&&Ci.move(new go.Point(Ci.actualBounds.x+wn,Ci.actualBounds.y))}),ln.commitTransaction("arrowKeyMove")},Wt.prototype._arrowKeySelect=function(){var ln=this.diagram,pn=ln.lastInput,$t=null;pn.key==="Up"?$t=this._findNearestPartTowards(270):pn.key==="Down"?$t=this._findNearestPartTowards(90):pn.key==="Left"?$t=this._findNearestPartTowards(180):pn.key==="Right"&&($t=this._findNearestPartTowards(0)),$t!==null&&(pn.shift?$t.isSelected=!0:pn.control||pn.meta?$t.isSelected=!$t.isSelected:ln.select($t))},Wt.prototype._findNearestPartTowards=function(ln){var pn=this.diagram.selection.first();if(pn===null)return null;for(var $t=pn.actualBounds.center,wn=this._getAllParts(),Gi=1/0,Ci=pn,Yi=0;Yi<wn.length;Yi++){var mn=wn[Yi];if(mn!==pn&&mn.canSelect()){var Rn=mn.actualBounds.center,Ui=$t.directionPoint(Rn),or=this._angleCloseness(Ui,ln);if(or<=45){var ci=$t.distanceSquaredPoint(Rn);ci*=1+Math.sin(or*Math.PI/180),ci<Gi&&(Gi=ci,Ci=mn)}}}return Ci},Wt.prototype._angleCloseness=function(ln,pn){return Math.min(Math.abs(pn-ln),Math.min(Math.abs(pn+360-ln),Math.abs(pn-360-ln)))},Wt.prototype._arrowKeyTree=function(){var ln=this.diagram,pn=ln.selection.first();if(pn instanceof go.Node){var $t=ln.lastInput;if($t.key==="Right"){if(!pn.isTreeLeaf)if(!pn.isTreeExpanded)ln.commandHandler.canExpandTree(pn)&&ln.commandHandler.expandTree(pn);else{var wn=this._sortTreeChildrenByY(pn).first();wn!==null&&ln.select(wn)}}else if($t.key==="Left")if(!pn.isTreeLeaf&&pn.isTreeExpanded)ln.commandHandler.canCollapseTree(pn)&&ln.commandHandler.collapseTree(pn);else{var Gi=pn.findTreeParentNode();Gi!==null&&ln.select(Gi)}else if($t.key==="Up"){var Gi=pn.findTreeParentNode();if(Gi!==null){var Ci=this._sortTreeChildrenByY(Gi),Yi=Ci.indexOf(pn);if(Yi>0){for(var mn=Ci.elt(Yi-1);mn!==null&&mn.isTreeExpanded&&!mn.isTreeLeaf;){var Rn=this._sortTreeChildrenByY(mn);mn=Rn.last()}mn!==null&&ln.select(mn)}else ln.select(Gi)}}else if($t.key==="Down")if(pn.isTreeExpanded&&!pn.isTreeLeaf){var wn=this._sortTreeChildrenByY(pn).first();wn!==null&&ln.select(wn)}else for(;pn!==null;){var Gi=pn.findTreeParentNode();if(Gi===null)break;var Ci=this._sortTreeChildrenByY(Gi),Yi=Ci.indexOf(pn);if(Yi<Ci.length-1){ln.select(Ci.elt(Yi+1));break}else pn=Gi}var Ui=ln.selection.first();Ui!==null&&ln.scrollToRect(Ui.actualBounds)}},Wt.prototype._sortTreeChildrenByY=function(ln){var pn=new go.List().addAll(ln.findTreeChildrenNodes());return pn.sort(function($t,wn){var Gi=$t.location,Ci=wn.location;return Gi.y<Ci.y?-1:Gi.y>Ci.y?1:Gi.x<Ci.x?-1:Gi.x>Ci.x?1:0}),pn},Wt.prototype.copyToClipboard=function(ln){go.CommandHandler.prototype.copyToClipboard.call(this,ln),this._lastPasteOffset.set(this.pasteOffset)},Wt.prototype.pasteFromClipboard=function(){var ln=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ln,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ln},Object.defineProperty(Wt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ln){if(ln!=="move"&&ln!=="select"&&ln!=="scroll"&&ln!=="tree"&&ln!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ln);this._arrowKeyBehavior=ln}}),Object.defineProperty(Wt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ln){if(!(ln instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ln);this._pasteOffset.set(ln)}});var An=Wt,Nn=le(63720),$e=le(5269),Oe=le(38986),ke={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ke=le(48790),lt=le(59301),Ue=(ln,pn,$t)=>new Promise((wn,Gi)=>{var Ci=Rn=>{try{mn($t.next(Rn))}catch(Ui){Gi(Ui)}},Yi=Rn=>{try{mn($t.throw(Rn))}catch(Ui){Gi(Ui)}},mn=Rn=>Rn.done?wn(Rn.value):Promise.resolve(Rn.value).then(Ci,Yi);mn(($t=$t.apply(ln,pn)).next())});function gt({onCancel:ln,callback:pn}){let $t=(0,ce.useRef)(),wn=(0,ce.useRef)(),Gi=(0,ce.useRef)(),Ci=(0,ce.useRef)(!1);const Yi=(0,ce.useRef)(!1),[mn,Rn]=(0,ce.useState)(0);function Ui(){const ci=Pt.bx.make,yt={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"};$t.current=new Pt.S0(wn.current,{padding:20,grid:ci(Pt.s_,"Grid",ci(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ci(Pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Gt=>{var Wi=Gt.diagram.commandHandler.addTopLevelParts(Gt.diagram.selection,!0);Wi||Gt.diagram.currentTool.doCancel()},commandHandler:ci(An),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Gt=>{var Wi=Gt.subject;Wi.location=Wi.location.copy().snapToGridPoint(Gt.diagram.grid.gridOrigin,Gt.diagram.grid.gridCellSize),setTimeout(()=>{Gt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Gt=>{var Wi=Gt.subject;setTimeout(()=>{Gt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Gt=>{var Wi=Gt.parameter.part;Wi.invalidateConnectedLinks();var cr=Gt.subject;Gt.diagram.toolManager.linkingTool.isForwards?cr.toNode.invalidateConnectedLinks():cr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),$t.current.nodeTemplate=ci(Pt.NB,"Auto",{locationSpot:Pt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Pt.$u(120,60),minSize:new Pt.$u(40,40),resizable:!0,resizeCellSize:new Pt.$u(10,10),rotatable:!0},new Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),new Pt.KX("desiredSize","size",Pt.$u.parse).makeTwoWay(Pt.$u.stringify),ci(Pt.bn,{name:"SHAPE",fill:yt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("figure"),new Pt.KX("fill"),new Pt.KX("stroke","borderColor"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),ci(Pt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ci(Pt.al,{margin:1,textAlign:"center",overflow:Pt.al.OverflowEllipsis,editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),$t.current.nodeTemplate.toolTip=ci("ToolTip",ci(Pt.s_,"Vertical",{maxSize:new Pt.$u(200,NaN)},ci(Pt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Pt.KX("text")),ci(Pt.al,{font:"10pt sans-serif",textAlign:"center"},new Pt.KX("text","details"))));function zt(Gt,Wi){var cr=(Hi,Hr)=>{Hi.handled=!0,Hi.diagram.model.commit(Rr=>{var jr=Hr.part.adornedPart,_r=new Pt.E9().setRectSpot(jr.actualBounds,Gt);_r.subtract(jr.location),_r.scale(2,2),_r.x+=Math.sign(_r.x)*130,_r.y+=Math.sign(_r.y)*130,_r.add(jr.location),_r.snapToGridPoint(Hi.diagram.grid.gridOrigin,Hi.diagram.grid.gridCellSize);var Ur=Rr.copyNodeData(jr.data);Rr.setGroupKeyForNodeData(Ur,Rr.getGroupKeyForNodeData(jr.data)),Rr.addNodeData(Ur);var po={from:jr.key,to:Rr.getKeyForNodeData(Ur)};Rr.addLinkData(po);var Pn=Hi.diagram.findNodeForData(Ur);Pn.location=_r,Hi.diagram.select(Pn),setTimeout(()=>{Hi.diagram.commandHandler.editTextBlock()},20)})};return ci(Pt.bn,{figure:Wi,alignment:Gt,alignmentFocus:Gt.opposite(),width:Gt.equals(Pt.z6.Top)||Gt.equals(Pt.z6.Bottom)?25:18,height:Gt.equals(Pt.z6.Top)||Gt.equals(Pt.z6.Bottom)?18:25,fill:"orange",stroke:yt.white,strokeWidth:4,mouseEnter:(Hi,Hr)=>Hr.fill="dodgerblue",mouseLeave:(Hi,Hr)=>Hr.fill="orange",isActionable:!0,click:cr,contextClick:cr})}function li(Gt){return ci(Pt.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:(Wi,cr)=>cr.fill="dodgerblue",mouseLeave:(Wi,cr)=>cr.fill="orange",click:(Wi,cr)=>{Wi.diagram.commandHandler.showContextMenu(cr.part.adornedPart)}},Gt||{})}$t.current.nodeTemplate.selectionAdornmentTemplate=ci(Pt.uz,"Spot",ci(Pt.Vm,{padding:10}),zt(Pt.z6.Top,"TriangleUp"),zt(Pt.z6.Left,"TriangleLeft"),zt(Pt.z6.Right,"TriangleRight"),zt(Pt.z6.Bottom,"TriangleDown"),li({alignment:new Pt.z6(.75,0)}));function ii(Gt,Wi){return(cr,Hi)=>{cr.handled=!0,cr.diagram.model.commit(Hr=>{Hr.set(Hi.part.adornedPart.data,Gt,Wi)})}}function Rt(Gt,Wi){return Wi||(Wi="color"),ci(Pt.bn,{width:16,height:16,stroke:"lightgray",fill:Gt,margin:1,background:"transparent",mouseEnter:(cr,Hi)=>Hi.stroke="dodgerblue",mouseLeave:(cr,Hi)=>Hi.stroke="lightgray",click:ii(Wi,Gt),contextClick:ii(Wi,Gt)})}function Jn(){return[ci("ContextMenuButton",ci(Pt.s_,"Horizontal",Rt(yt.white,"fill"),Rt(yt.beige,"fill"),Rt(yt.extralightblue,"fill"),Rt(yt.extralightred,"fill"))),ci("ContextMenuButton",ci(Pt.s_,"Horizontal",Rt(yt.lightgray,"fill"),Rt(yt.lightgreen,"fill"),Rt(yt.lightblue,"fill"),Rt(yt.lightred,"fill")))]}function Ni(){return[ci("ContextMenuButton",ci(Pt.s_,"Horizontal",Rt(yt.black),Rt(yt.green),Rt(yt.blue),Rt(yt.red))),ci("ContextMenuButton",ci(Pt.s_,"Horizontal",Rt(yt.white),Rt(yt.magenta),Rt(yt.purple),Rt(yt.orange)))]}function en(Gt,Wi){return Wi||(Wi="thickness"),ci(Pt.bn,"LineH",{width:16,height:16,strokeWidth:Gt,margin:1,background:"transparent",mouseEnter:(cr,Hi)=>Hi.background="dodgerblue",mouseLeave:(cr,Hi)=>Hi.background="transparent",click:ii(Wi,Gt),contextClick:ii(Wi,Gt)})}function ze(Gt,Wi){return Wi||(Wi="dash"),ci(Pt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Gt,margin:1,background:"transparent",mouseEnter:(cr,Hi)=>Hi.background="dodgerblue",mouseLeave:(cr,Hi)=>Hi.background="transparent",click:ii(Wi,Gt),contextClick:ii(Wi,Gt)})}function si(){return[ci("ContextMenuButton",ci(Pt.s_,"Horizontal",en(1),en(2),en(3),en(4))),ci("ContextMenuButton",ci(Pt.s_,"Horizontal",ze(null),ze([2,4]),ze([4,4])))]}function oi(Gt,Wi){return Wi||(Wi="figure"),ci(Pt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Gt,margin:1,background:"transparent",mouseEnter:(cr,Hi)=>Hi.fill="dodgerblue",mouseLeave:(cr,Hi)=>Hi.fill="lightgray",click:ii(Wi,Gt),contextClick:ii(Wi,Gt)})}$t.current.nodeTemplate.contextMenu=ci("ContextMenu",ci("ContextMenuButton",ci(Pt.s_,"Horizontal",oi("Rectangle"),oi("RoundedRectangle"),oi("Ellipse"),oi("Diamond"))),ci("ContextMenuButton",ci(Pt.s_,"Horizontal",oi("Parallelogram2"),oi("ManualOperation"),oi("Procedure"),oi("Cylinder1"))),ci("ContextMenuButton",ci(Pt.s_,"Horizontal",oi("Terminator"),oi("CreateRequest"),oi("Document"),oi("TriangleDown"))),Jn(),Ni(),si()),$t.current.groupTemplate=ci(Pt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Pt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Gt,Wi)=>{var cr=Wi.addMembers(Wi.diagram.selection,!0);cr||Wi.diagram.currentTool.doCancel()},avoidable:!1},new Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),ci(Pt.s_,"Auto",{name:"BODY"},ci(Pt.bn,{parameter1:10,fill:yt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("fill"),new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),ci(Pt.Vm,{background:"transparent",margin:20})),ci(Pt.al,{alignment:Pt.z6.Top,alignmentFocus:Pt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Pt.KX("text"),new Pt.KX("stroke","color"))),$t.current.groupTemplate.selectionAdornmentTemplate=ci(Pt.uz,"Spot",ci(Pt.s_,"Auto",ci(Pt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ci(Pt.Vm,{margin:1.5})),li({alignment:Pt.z6.TopRight,alignmentFocus:Pt.z6.BottomRight})),$t.current.groupTemplate.contextMenu=ci("ContextMenu",Jn(),Ni(),si()),$t.current.linkTemplate=ci(Pt.rU,{layerName:"Foreground",routing:Pt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Pt.KX("fromSpot","fromSpot",Pt.z6.parse),new Pt.KX("toSpot","toSpot",Pt.z6.parse),new Pt.KX("fromShortLength","dir",Gt=>Gt>=1?10:0),new Pt.KX("toShortLength","dir",Gt=>Gt>=1?10:0),new Pt.KX("points").makeTwoWay(),ci(Pt.bn,{strokeWidth:2},new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),ci(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,0),segmentOrientation:Pt.rU.OrientAlong,alignmentFocus:Pt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Gt=>Gt===1)),ci(Pt.bn,{segmentIndex:-1,segmentOffset:new Pt.E9(-10,6),segmentOrientation:Pt.rU.OrientPlus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Gt=>Gt>=1),new Pt.KX("width","thickness",Gt=>7+3*Gt),new Pt.KX("height","thickness",Gt=>7+3*Gt),new Pt.KX("segmentOffset","thickness",Gt=>new Pt.E9(-15,4+1.5*Gt))),ci(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,-6),segmentOrientation:Pt.rU.OrientMinus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Gt=>Gt===2),new Pt.KX("width","thickness",Gt=>7+3*Gt),new Pt.KX("height","thickness",Gt=>7+3*Gt),new Pt.KX("segmentOffset","thickness",Gt=>new Pt.E9(-15,4+1.5*Gt))),ci(Pt.al,{alignmentFocus:new Pt.z6(0,1,-4,0),editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),$t.current.linkTemplate.selectionAdornmentTemplate=ci(Pt.uz,ci(Pt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:yn(2)},new Pt.KX("pathPattern","thickness",yn)),li({alignmentFocus:new Pt.z6(0,0,-6,-4)}));function yn(Gt){return ci(Pt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Gt+4).toString()+" H3"})}function ir(Gt){var Wi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Gt===0?Wi="M0 0 M16 16 M0 8 L16 8":Gt===2&&(Wi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ci(Pt.bn,{geometryString:Wi,margin:2,background:"transparent",mouseEnter:(cr,Hi)=>Hi.background="dodgerblue",mouseLeave:(cr,Hi)=>Hi.background="transparent",click:ii("dir",Gt),contextClick:ii("dir",Gt)})}function Zi(Gt){var Wi=(cr,Hi)=>{cr.handled=!0,cr.diagram.model.commit(Hr=>{var Rr=Hi.part.adornedPart;Hr.set(Rr.data,Gt?"toSpot":"fromSpot",Pt.z6.stringify(Pt.z6.AllSides)),(Gt?Rr.toNode:Rr.fromNode).invalidateConnectedLinks()})};return ci(Pt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(cr,Hi)=>Hi.background="dodgerblue",mouseLeave:(cr,Hi)=>Hi.background="transparent",click:Wi,contextClick:Wi})}function Fn(Gt,Wi){var cr=0,Hi=Pt.z6.RightSide;Gt.equals(Pt.z6.Top)?(cr=270,Hi=Pt.z6.TopSide):Gt.equals(Pt.z6.Left)?(cr=180,Hi=Pt.z6.LeftSide):Gt.equals(Pt.z6.Bottom)&&(cr=90,Hi=Pt.z6.BottomSide),Wi||(cr-=180);var Hr=(Rr,jr)=>{Rr.handled=!0,Rr.diagram.model.commit(_r=>{var Ur=jr.part.adornedPart;_r.set(Ur.data,Wi?"toSpot":"fromSpot",Pt.z6.stringify(Hi)),(Wi?Ur.toNode:Ur.fromNode).invalidateConnectedLinks()})};return ci(Pt.bn,{alignment:Gt,alignmentFocus:Gt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:cr,background:"transparent",mouseEnter:(Rr,jr)=>jr.background="dodgerblue",mouseLeave:(Rr,jr)=>jr.background="transparent",click:Hr,contextClick:Hr})}$t.current.linkTemplate.contextMenu=ci("ContextMenu",Ni(),si(),ci("ContextMenuButton",ci(Pt.s_,"Horizontal",ir(0),ir(1),ir(2))),ci("ContextMenuButton",ci(Pt.s_,"Horizontal",ci(Pt.s_,"Spot",Zi(!1),Fn(Pt.z6.Top,!1),Fn(Pt.z6.Left,!1),Fn(Pt.z6.Right,!1),Fn(Pt.z6.Bottom,!1)),ci(Pt.s_,"Spot",{margin:new Pt.Zt(0,0,0,2)},Zi(!0),Fn(Pt.z6.Top,!0),Fn(Pt.z6.Left,!0),Fn(Pt.z6.Right,!0),Fn(Pt.z6.Bottom,!0)))));const Li=`{ "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 jt=["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 br(Gt){return console.log("shapeName:",Gt),jt.indexOf(Gt)>=0}var Eo=new Pt.YI(Gi.current,{maxSelectionCount:1,linkTemplate:ci(Pt.rU,{locationSpot:Pt.z6.Center,selectionAdornmentTemplate:ci(Pt.uz,"Link",{locationSpot:Pt.z6.Center},ci(Pt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ci(Pt.bn,{toArrow:"Standard",stroke:null}))},{routing:Pt.rU.AvoidsNodes,curve:Pt.rU.JumpOver,corner:5,toShortLength:4},new Pt.KX("points"),ci(Pt.bn,{isPanelMain:!0,strokeWidth:2}),ci(Pt.bn,{toArrow:"Standard",stroke:null})),model:new Pt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Pt.bn.getFigureGenerators().toArray().map(Gt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Gt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return $t.current.addDiagramListener("TextEdited",function(Gt){var Wi;const cr=Gt.subject.part;var Hi=(Wi=document.activeElement)==null?void 0:Wi.value;typeof Hi=="string"&&Hi.trim()===""&&$t.current.model.commit(function(Hr){Hr.set(cr.data,"text","\u672A\u547D\u540D"),$t.current.commandHandler.stopCommand()},"increment")}),Eo.nodeTemplate=ci(Pt.NB,"Auto",{locationSpot:Pt.z6.Center},new Pt.KX("location","location",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),ci(Pt.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 Pt.KX("stroke").makeTwoWay(),new Pt.KX("fill").makeTwoWay(),new Pt.KX("figure")),ci(Pt.al,{margin:new Pt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Pt.$u(16,16),maxSize:new Pt.$u(10,NaN),textAlign:"center",editable:!0},new Pt.KX("key").makeTwoWay())),setTimeout(()=>{$t.current.grid=ci(Pt.s_,"Grid",ci(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ci(Pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),$t.current.grid.visible=!0,$t.current.grid.gridCellStroke="darkgray",$t.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=$t.current,$t.current}const or=()=>Ue(this,null,function*(){var ci,yt=$t.current.makeImage();const zt=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:yt.src,file_data:JSON.stringify({login:(ci=(0,Ke.eY)())==null?void 0:ci.login,data:JSON.parse($t.current.model.toJson())})}});pn({src:zt.url})});return(0,ce.useEffect)(()=>(setTimeout(()=>{Ui()},500),Rn(mn+1),()=>{$t.current=null}),[]),lt.createElement("div",{ref:Yi,className:"body-overflow-initial"},lt.createElement(Nt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!mn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:lt.createElement(hn.Z,null,lt.createElement($e.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),lt.createElement($e.Z,{onClick:()=>{var ci,yt,zt=$t.current.selection.first();if(Ci.current=!Ci.current,document.activeElement&&zt){let li=(yt=(ci=document.activeElement)==null?void 0:ci.value)==null?void 0:yt.trim();typeof li=="string"&&$t.current.model.commit(function(ii){ii.set(zt.data,"text",li||"\u672A\u547D\u540D"),$t.current.commandHandler.stopCommand()},"increment")}Rn(mn+1)}},lt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ln},lt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Ci.current?"none":"block"},className:ke.flowChartWrp},lt.createElement("div",{style:{display:"flex",height:"100%"}},lt.createElement("div",{style:{width:"300px",height:"100%"}},lt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),lt.createElement("div",{style:{height:"calc(100% - 50px)"},className:ke.myPaletteDiv,ref:Gi})),lt.createElement("div",{style:{flex:1,position:"relative"}},lt.createElement("div",{ref:wn,style:{height:"80vh"}}))),lt.createElement("div",{className:"tr"},lt.createElement(at.ZP,{size:"large",onClick:or,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var tn=gt,Un=le(47889),qn=le(71051);const nn=Un.ZP.Group,Ht={margin:"0 8px"};var sn=({callback:ln,onCancel:pn})=>{function $t(wn){ln(wn)}return ce.createElement(Je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$t},ce.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ce.createElement("span",{style:Ht},"\u5355\u5143\u683C\u6570\uFF1A"),ce.createElement("span",{style:Ht},"\u884C\u6570"),ce.createElement(Je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ce.createElement(qn.Z,null)),ce.createElement("span",{style:Ht},"\u5217\u6570"),ce.createElement(Je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ce.createElement(qn.Z,null))),ce.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ce.createElement("span",{style:Ht},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ce.createElement(Je.default.Item,{name:"align"},ce.createElement(nn,null,ce.createElement(Un.ZP,{value:"default"},ce.createElement("i",{className:"fa fa-align-justify"})),ce.createElement(Un.ZP,{value:"left"},ce.createElement("i",{className:"fa fa-align-left"})),ce.createElement(Un.ZP,{value:"center"},ce.createElement("i",{className:"fa fa-align-center"})),ce.createElement(Un.ZP,{value:"right"},ce.createElement("i",{className:"fa fa-align-right"}))))),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(at.ZP,{type:"ghost",onClick:pn},"\u53D6\u6D88")))},vn=le(71411),Ln=le(43001),xn=le.n(Ln),Vn=(0,ce.forwardRef)(({use3d:ln,width:pn,height:$t,callback:wn,showSaveButton:Gi},Ci)=>{const Yi=(0,ce.useRef)(),mn=(0,ce.useRef)(),[Rn,Ui]=(0,ce.useState)(!1),or=(0,ce.useRef)({id:Yi,appName:"graphing",width:pn||1e3,height:$t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ce.useEffect)(()=>{mn.current=new(xn())(or.current,!0),window.onload=function(){mn.current.inject("applet_container")}},[]);const ci=()=>{var yt=window.ggbApplet.getPNGBase64(1,!0,72);return wn&&wn(yt),yt};return(0,ce.useEffect)(()=>{or.current.appName=Rn?"3D":"graphing",mn.current.inject("applet_container")},[Rn]),(0,ce.useEffect)(()=>{Ui(ln)},[ln]),(0,ce.useImperativeHandle)(Ci,()=>({getImgData:ci})),ce.createElement(ce.Fragment,null,ce.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Yi}),ce.createElement(hn.Z,{align:"middle"},ce.createElement($e.Z,{flex:1},ce.createElement(vn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Rn,onChange:yt=>Ui(yt)})),ce.createElement($e.Z,null,ce.createElement(at.ZP,{size:"large",onClick:ci,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Kn=le(76562),Tn=le(6767);const jn="link",Mi="upload-image",Gn="add-flowchart",wt="draw-image",Si="add-flowchart",wi="code-block",Vt="add-table",qi="------------",lr={default:qi,left:`:${qi}`,center:`:${qi}:`,right:`${qi}:`};var rr=le(37808);function In(){}let Br=0;const Tr=1e4,Xi="\u2581",Ji="@\u2581\u2581@",Nr="@\u2581@",Be=`
|
|
|
**\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`,Vi=["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 bi(ln){return/^\d+$/.test(ln)?`${ln}px`:ln}const Ri=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Fi={[Ri+"-B"]:"bold",[Ri+"-I"]:"italic"},Ti={[jn]:"\u6DFB\u52A0\u94FE\u63A5",[wi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mi]:"\u6DFB\u52A0\u56FE\u7247",[wt]:"\u6DFB\u52A0\u753B\u56FE",[Gn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Vt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Lr=({defaultValue:ln="",onChange:pn,width:$t="100%",height:wn=400,miniToolbar:Gi=!1,isFocus:Ci=!1,watch:Yi,insertTemp:mn,mode:Rn="markdown",id:Ui="markdown-editor-id",showResizeBar:or=!1,noStorage:ci=!1,showNullButton:yt=!1,showNullProgramButton:zt=!1,hidetoolBar:li=!1,fullScreen:ii=!1,onBlur:Rt,onCMBeforeChange:Jn,onFullScreen:Ni,className:en="",disablePaste:ze=!1,disabled:si=!1,disabledFill:oi=!1,placeholder:yn="",values:ir="",extraUse:Zi})=>{const[Fn,Li]=(0,ce.useState)(null),[jt,br]=(0,ce.useState)(ln),[Eo,Gt]=(0,ce.useState)(Yi),[Wi,cr]=(0,ce.useState)(ii),[Hi,Hr]=(0,ce.useState)(""),[Rr,jr]=(0,ce.useState)(0),[_r,Ur]=(0,ce.useState)(wn),[po,Pn]=(0,ce.useState)(!1),[bo,Mn]=(0,ce.useState)(0),[tr,wr]=(0,ce.useState)(0),Sr=(0,ce.useRef)(),yo=(0,ce.useRef)(),Or=(0,ce.useRef)(),Ar=(0,ce.useRef)();(0,ce.useEffect)(()=>{const ui=window.scrollY||window.pageYOffset;br(ir),Fn==null||Fn.setValue(ir),window.scrollTo(0,ui)},[ir]),(0,ce.useEffect)(()=>{Ni==null||Ni(Wi)},[Wi]),(0,ce.useEffect)(()=>{if(Sr.current){let ui=function(Oi,En){var ur;if(ze){En.preventDefault();return}const sr=En.clipboardData;if(sr){const Yr=sr.types.toString(),hr=sr.items;if(Yr==="Files"||sr.types.indexOf("Files")>-1){if(En.preventDefault(),Rn=="stex")return;try{let lo=hr[1];((ur=hr[0])==null?void 0:ur.kind)==="file"&&(lo=hr[0]);const eo=lo.getAsFile(),Co=eo.name.split(".").pop();(0,un.I)(eo,uo=>{var Ao,No,qt;uo.id?((Ao=eo==null?void 0:eo.type)==null?void 0:Ao.indexOf("image"))>-1?xi.replaceSelection(`<img width="100%" src="/api/attachments/${uo.id}?type=${uo.content_type})" alt="" />`):((No=eo==null?void 0:eo.type)==null?void 0:No.indexOf("video"))>-1?xi.replaceSelection(`<video width="100%" controls src="/api/attachments/${uo.id}"></video>`):((qt=eo==null?void 0:eo.type)==null?void 0:qt.indexOf("pdf"))>-1?xi.replaceSelection(`<a href="/api/attachments/${uo.id}?type=${eo.type}&disposition=inline" target="_blank">${eo.name}</a>`):Vi.includes(Co)?xi.replaceSelection(`<a href="/api/attachments/${uo.id}?type=office&disposition=inline" target="_blank">${eo.name}</a>`):xi.replaceSelection(`[${eo.name}](/api/attachments/${uo.id}?type=${uo.content_type})`):(uo==null?void 0:uo.status)===401&&(document.location.href="/user/login")})}catch(lo){Tn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const xi=Me().fromTextArea(Sr.current,{mode:Rn,lineNumbers:!Gi,lineWrapping:!0,value:ln,autoCloseTags:!0,autoCloseBrackets:!0});return xi.on("keyup",function(Oi,En){En.keyCode===8&&(Oi.getValue()==""?xi.setOption("placeholder",yn):xi.setOption("placeholder",null))}),xi.on("keydown",function(Oi,En){if(En.keyCode===8){var ur=rn(Oi);ur&&En.preventDefault()}}),Ci&&xi.focus(),xi.on("paste",ui),si&&xi.on("beforeChange",function(Oi,En){(En.origin==="paste"||En.origin==="+input")&&En.cancel()}),Li(xi),()=>{xi.off("paste",ui)}}},[]);const To=(0,ce.useCallback)(()=>{if(yo.current)try{}catch(ui){console.log(ui,"---- to set md editor body height")}},[_r,yo,Wi]);(0,ce.useEffect)(()=>{function ui(){let xi=new Ie.Z(Oi=>{for(let En of Oi)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&(To(),Fn.setSize("100%","100%"),Fn.refresh())});return xi.observe(Sr.current.parentElement),xi}if(Fn){const xi=ui();return()=>{var Oi,En;(Oi=Sr.current)!=null&&Oi.parentElement&&xi.unobserve((En=Sr.current)==null?void 0:En.parentElement)}}},[Fn,To]),(0,ce.useEffect)(()=>{if(Fn){let ui=[];for(const[xi,Oi]of Object.entries(Fi)){let En={[xi]:()=>{_n(Oi)}};ui.push(En),Fn.addKeyMap(En)}return()=>{for(let xi of ui)Fn.removeKeyMap(xi)}}},[Fn]),(0,ce.useEffect)(()=>{ii!==Wi&&cr(ii)},[ii]),(0,rr.Z)(()=>{if(!ci&&Rr>0){let ui=new Date().getTime(),xi=window.sessionStorage.getItem(Ui);ui>=Rr+Tr&&(!xi||xi!==jt)&&(window.sessionStorage.setItem(Ui,jt),Pn(!0))}},Tr),(0,ce.useEffect)(()=>{Gt(Yi)},[Fn,Yi]),(0,ce.useEffect)(()=>{Fn&&Ci&&Fn.focus()},[Fn,Ci]),(0,ce.useEffect)(()=>{if(Eo&&Fn){let ui=function(Oi){let En=Oi.target;if(Ar.current){let ur=En.scrollTop/En.scrollHeight;Ar.current.scrollTop=Ar.current.scrollHeight*ur}};const xi=Fn.getScrollerElement();return xi.addEventListener("scroll",ui),()=>{xi.removeEventListener("scroll",ui)}}},[Fn,Eo]),(0,ce.useEffect)(()=>{if(Fn&&Jn){let ui=function(xi,Oi){Jn(xi,Oi)};return Fn.on("beforeChange",ui),()=>{Fn.off("beforeChange",ui)}}},[Fn,Jn]),(0,ce.useEffect)(()=>{if(Fn&&Rt){let ui=function(){Rt(Fn.getValue())};return Fn.on("blur",ui),()=>{Fn.off("blur",ui)}}},[Fn,Rt]);function rn(ui,xi){var Oi=ui.getDoc(),En=Oi.getCursor(),ur=Oi.getLine(En.line),sr=ur.charAt(En.ch-1),Yr=ur.lastIndexOf("@\u2581@",En.ch),hr=ur.lastIndexOf("@\u2581\u2581@",En.ch),lo=Yr>hr?Yr:hr,eo=Yr>hr?3:4;if(Ji.indexOf(sr)===-1)return null;if(console.log("change1:",xi,ui,ur,En,lo,Yr,hr,sr),lo>=0&&En.ch-lo<5){var Co=lo+eo;return Oi.replaceRange("",{line:En.line,ch:lo},{line:En.line,ch:Co}),{line:En.line,ch:Co}}return null}(0,ce.useEffect)(()=>{if(Fn){let ui=function(xi,Oi){const En=xi.getValue();br(En),jr(new Date().getTime()),xi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pn&&(zt?pn(En,On(En)):pn(En))};return Fn.on("change",ui),()=>{Fn.off("change",ui)}}},[Fn,pn]),(0,ce.useEffect)(()=>{if(Fn)if(ln==null)Fn.setValue(""),br("");else{const ui=window.scrollY||window.pageYOffset;ln!==Fn.getValue()&&(Fn.setValue(ln),br(ln),Fn.setCursor(si?1:Fn.lineCount(),0),window.scrollTo(0,ui))}},[Fn,ln]);const _n=(0,ce.useCallback)(ui=>{const xi=Fn.getCursor(),Oi=Fn.getSelection();let En=Oi.split(`
|
|
|
`);switch(ui){case"bold":return Fn.replaceSelection("**"+Oi+"**"),Oi===""&&Fn.setCursor(xi.line,xi.ch+2),Fn.focus();case"italic":return Fn.replaceSelection("*"+Oi+"*"),Oi===""&&Fn.setCursor(xi.line,xi.ch+1),Fn.focus();case"code":return Fn.replaceSelection("`"+Oi+"`"),Oi===""&&Fn.setCursor(xi.line,xi.ch+1),Fn.focus();case"inline-latex":return Hr("inline-latex"),Fn.focus();case"latex":return Fn.replaceSelection("```latex\n"+Oi+"\n```"),Fn.setCursor(xi.line+1,Oi.length+1),Fn.focus();case"line-break":return Fn.replaceSelection(`<br/>
|
|
|
`),Fn.focus();case"list-ul":return Oi===""?Fn.replaceSelection("- "+Oi):Fn.replaceSelection(En.map(ur=>ur===""?"":`- ${ur}`).join(`
|
|
|
`)),Fn.focus();case"list-ol":return Oi===""?Fn.replaceSelection("1. "+Oi):Fn.replaceSelection(En.map((ur,sr)=>ur===""?"":`${sr+1}. ${ur}`).join(`
|
|
|
`)),Fn.focus();case"add-null-ch":return Oi===""&&Fn.setCursor(xi.line,xi.ch),Fn.replaceSelection(Xi),Fn.focus();case"add-signal":return Oi===""&&Fn.setCursor(xi.line,xi.ch),Fn.replaceSelection(Nr),Fn.focus();case"add-multiple":return Oi===""&&Fn.setCursor(xi.line,xi.ch),Fn.replaceSelection(Ji),Fn.focus();case"inster-template-1":return Oi===""&&Fn.setCursor(xi.line,xi.ch),Fn.replaceSelection(Be),Fn.focus();case"eraser":return Fn.setValue(""),Fn.focus();case"trigger-watch":return Gt(!Eo),Fn.focus();case"trigger-full-screen":return cr(!Wi),Fn.focus();case jn:Hr(jn);return;case wi:Hr(wi);return;case Mi:Hr(Mi);return;case wt:Hr(wt);return;case"maths-latex":Hr("maths-latex");return;case Gn:Hr(Gn);return;case Vt:Hr(Vt);return;default:throw new Error}},[Fn,Eo,Wi]),Yt=(0,ce.useCallback)((ui,xi)=>{var Oi,En,ur,sr,Yr,hr;switch(Hr(""),Hi){case jn:const{title:Ao,link:No}=ui;return Fn.replaceSelection(`[${Ao}](${No})`),Fn.focus();case wi:const{language:qt,content:mo}=ui;return Fn.replaceSelection(["```"+qt,mo,"```"].join(`
|
|
|
`)),Fn.focus();case"maths-latex":for(var lo=atob(ui),eo=new Uint8Array(lo.length),Co=0;Co<lo.length;Co++)eo[Co]=lo.charCodeAt(Co);var uo=new Blob([eo],{type:"image/png"});(0,un.I)(uo,Sa=>{Sa.id?Fn.replaceSelection(``):(Sa==null?void 0:Sa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Fn.replaceSelection("`$$"+ui+"$$`");break;case Mi:case wt:case Si:const{src:Kr,alt:Pr}=ui,fr=xi,co=(ur=(En=(Oi=fr==null?void 0:fr.name)==null?void 0:Oi.split("."))==null?void 0:En.pop)==null?void 0:ur.call(En);return((sr=fr==null?void 0:fr.type)==null?void 0:sr.indexOf("image"))>-1||!(fr!=null&&fr.type)?fr!=null&&fr.align||fr!=null&&fr.width?Fn.replaceSelection(`<p style="text-align:${fr.align||"initial"}"><img width="${fr.width?fr.width+"%":"initial"}" src="${Kr}" alt="${Pr||""}" /></p>`):Fn.replaceSelection(`<img width="100%" src="${Kr}" alt="${Pr||""}" />`):((Yr=fr==null?void 0:fr.type)==null?void 0:Yr.indexOf("video"))>-1?Fn.replaceSelection(`<video width="100%" controls src="${Kr}"></video>`):((hr=fr==null?void 0:fr.type)==null?void 0:hr.indexOf("pdf"))>-1?Fn.replaceSelection(`<a href="${Kr}?type=${fr.type}&disposition=inline" target="_blank">${fr.name}</a>`):Vi.includes(co)?Fn.replaceSelection(`<a href="${Kr}?type=office&disposition=inline" target="_blank">${fr.name}</a>`):Fn.replaceSelection(`[${fr.name}](${Kr})`),Fn.focus();case Vt:const{row:Lo,col:dn,align:Gr}=ui;let Uo=`
|
|
|
`;for(let Sa=0;Sa<Lo;Sa++){let Ya=[],bs=[];for(let ts=0;ts<dn;ts++)Sa===1&&bs.push(lr[Gr]),Ya.push(" ");Sa===1&&(Uo+=`| ${bs.join(" | ")} |
|
|
|
`),Uo+=`| ${Ya.join(dn===1?"":" | ")} |
|
|
|
`}return Fn.replaceSelection(Uo+`
|
|
|
`),Fn.focus();default:throw new Error}},[Fn,Hi]),qe=(0,ce.useMemo)(()=>{switch(Hi){case jn:return ce.createElement(ct,{callback:Yt,onCancel:ai});case wi:return ce.createElement(Qt.Z,{callback:Yt,onCancel:ai});case Mi:return ce.createElement(un.Z,{callback:Yt,onCancel:ai});case Gn:return ce.createElement(tn,{callback:Yt,onCancel:ai});case Vt:return ce.createElement(sn,{callback:Yt,onCancel:ai});case"maths-latex":return ce.createElement(Vn,{showSaveButton:!0,callback:Yt});case"inline-latex":return ce.createElement(Kn.Z,{showSaveButton:!0,callback:Yt});default:return null}},[Hi]);function ai(){Hr("")}(0,ce.useEffect)(()=>{if(Or.current){let ui=function(Yr){ur=!0,sr=Yr.pageY},xi=function(){ur=!1},Oi=function(Yr){if(ur){let hr=Yr.pageY-sr;hr<0&&(hr=0),hr>300&&(hr=300);let lo=wn+hr+"px";Ur(lo)}},En=Or.current,ur=!1,sr=0;return En.addEventListener("mousedown",ui),document.addEventListener("mousemove",Oi),document.addEventListener("mouseup",xi),()=>{En.removeEventListener("mousedown",ui),document.removeEventListener("mousemove",Oi),document.removeEventListener("mouseup",xi)}}},[Fn,Or]),(0,ce.useEffect)(()=>{Ur(wn)},[wn]);const yi=bi($t),Ki=bi(_r),_i={width:yi,height:Ki},Ii=(0,ce.useMemo)(()=>{if(Rr){let ui=new Date(Rr),xi=ui.getHours(),Oi=ui.getMinutes(),En=ui.getSeconds();return xi=xi<10?"0"+xi:xi,Oi=Oi<10?"0"+Oi:Oi,En=En<10?"0"+En:En,`${xi}:${Oi}:${En}`}return 0},[Rr]),On=ui=>{const xi=[];if(zt){let Oi=-1;ui=ui.replace(/(@▁▁@|@▁@)/g,function(En,ur,sr){xi.push({multiLine:En!==Nr})})}return xi};function fi(){window.sessionStorage.removeItem(Ui),Pn(!1),jr(0)}function mi(){Pn(!1),jr(0),Fn.setValue(window.sessionStorage.getItem(Ui))}(0,ce.useEffect)(()=>{Ti[Hi]&&Hi!==wt&&Hi!==Gn&&setTimeout(()=>{const ui=document.getElementsByClassName("markdown-popup-form")[0],xi=window.innerWidth/2-ui.offsetWidth/2,Oi=window.innerHeight/2-ui.offsetHeight/2;Mn(xi),wr(Oi)},0)},[Hi]);const ti=ui=>{ui.preventDefault();const xi=ui.clientX-bo,Oi=ui.clientY-tr;document.body.onmousemove=En=>{let ur=En.clientX-xi,sr=En.clientY-Oi;const Yr=document.getElementsByClassName("markdown-popup-form")[0],hr=window.innerWidth-Yr.offsetWidth,lo=window.innerHeight-Yr.offsetHeight;ur=Math.max(0,Math.min(ur,hr)),sr=Math.max(0,Math.min(sr,lo)),gi(En.clientX,En.clientY,xi,Oi)&&(Mn(ur),wr(sr))},document.body.onmouseup=function(){document.body.onmousemove=null}},gi=(ui,xi,Oi,En)=>{const ur=document.body.clientHeight,sr=document.body.clientWidth;return ui<20&&Oi>ui||ui>sr-20&&Oi<ui||xi<20&&En>xi||xi>ur-20&&En<xi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"markdown-editor-wrapper",ref:yo},ce.createElement("div",{className:`markdown-editor-container ${en} ${Eo?"on-preview":""} ${Gi?"mini":""} ${Wi?"full-screen":""}`,style:_i},ce.createElement(Ve,{insertTemp:mn,watch:Eo,fullScreen:Wi,showNullButton:yt,showNullProgramButton:zt,onActionCallback:_n,hidetoolBar:li,extraUse:Zi}),ce.createElement("div",{className:"markdown-editor-body"},ce.createElement("div",{className:"codemirror-container"},ce.createElement("textarea",{ref:Sr,placeholder:yn})),Eo?ce.createElement("div",{ref:Ar,className:"preview-container"},Rn==="stex"&&ce.createElement(it,{value:jt}),Rn!=="stex"&&ce.createElement(mt.Z,{disabledFill:oi,showProgramFill:zt,value:jt})):null))),or?ce.createElement("a",{ref:Or,className:"editor-resize"}):null,Hi===wt&&ce.createElement(Bt,{callback:Yt,onCancel:ai}),Hi===Gn&&ce.createElement(tn,{callback:Yt,onCancel:ai}),ce.createElement(et.Z,null,Ti[Hi]&&Hi!==wt&&Hi!==Gn?ce.createElement(Nt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:bo,top:tr},title:ce.createElement("div",{style:{cursor:"move"},onMouseDown:ti},Ti[Hi]),open:!0,onCancel:ai,footer:null,destroyOnClose:!0,width:Hi===Gn?"1200px":null,height:Hi===Gn?"80vh":null,className:"markdown-popup-form"},qe):null))}},17077:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Le},I:function(){return et}});var ce=le(28284),Pe=le(6767),Me=le(37568),Ie=le(77736),je=le(71051),Te=le(47889),Ge=le(99571),st=le(46699),Qe=le(59301),We=le(59301),mt=Object.defineProperty,it=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,he=(Je,rt,at)=>rt in Je?mt(Je,rt,{enumerable:!0,configurable:!0,writable:!0,value:at}):Je[rt]=at,se=(Je,rt)=>{for(var at in rt||(rt={}))ne.call(rt,at)&&he(Je,at,rt[at]);if(Fe)for(var at of Fe(rt))te.call(rt,at)&&he(Je,at,rt[at]);return Je},ge=(Je,rt)=>it(Je,kt(rt));const{useForm:ye}=ce.default,be={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var Le=({callback:Je,onCancel:rt})=>{const[at]=ye();let tt=(0,Qe.useRef)();function Et(on){tt.current.width=at.getFieldValue("width"),tt.current.align=at.getFieldValue("align"),Je(on,tt.current)}function Lt(on,an){if(on.status===-1){Pe.ZP.error(on.message);return}at.setFieldsValue({src:`/api/attachments/${on.id}`,type:an.type})}function Ut(on){let an=on.target.files[0];tt.current=an,et(an,Lt)}return We.createElement(ce.default,ge(se({form:at},Ae),{className:"upload-image-panel",onFinish:Et,style:{width:470,overflow:"hidden"}}),We.createElement(ce.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(ce.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},We.createElement(Me.default,{style:be})),We.createElement(Ve,{onFileChange:Ut}))),We.createElement(ce.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Me.default,{style:{width:264}})),We.createElement(ce.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(Ie.Z,null,We.createElement(ce.default.Item,{name:"width",style:{margin:0}},We.createElement(je.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(ce.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(Te.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"}]})),We.createElement("aside",null,We.createElement(ce.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(Ge.ZP,{type:"default",onClick:rt},"\u53D6\u6D88"))))};function Ve({onFileChange:Je}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:Je}))}function et(Je,rt){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");let at=new FormData;at.append("editormd-image-file",Je),at.append("file_param_name","editormd-image-file"),at.append("byxhr","true");var tt=new window.XMLHttpRequest;tt.withCredentials=!0,tt.addEventListener("load",function(Et){rt(JSON.parse(Et.target.responseText),Je)},!1),tt.addEventListener("error",function(Et){console.error(Et)},!1),tt.open("POST",`${st.KI}/api/attachments.json`),tt.send(at)}},91558:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Me}});var ce=le(59301),Pe=le(4676);class Me extends ce.Component{constructor(je){super(je);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:je}=this.props;return(0,Pe.createPortal)(je,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Re,Ee,le){"use strict";le.d(Ee,{SV:function(){return Pt},ZP:function(){return Bt}});var ce=le(59301),Pe=le(76374);const Me={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"]},Ie={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"]},je={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(`
|
|
|
`)}]},Te={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(`
|
|
|
`)}]},Ge={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 st=le(53184),Qe=le.n(st),We=(Wt,An,Nn)=>new Promise(($e,Oe)=>{var ke=Ue=>{try{lt(Nn.next(Ue))}catch(gt){Oe(gt)}},Ke=Ue=>{try{lt(Nn.throw(Ue))}catch(gt){Oe(gt)}},lt=Ue=>Ue.done?$e(Ue.value):Promise.resolve(Ue.value).then(ke,Ke);lt((Nn=Nn.apply(Wt,An)).next())});const mt={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"]}},it=(Wt,An,Nn,$e)=>{const Oe=An.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Nn.lineNumber,endColumn:Nn.column});return Array.from(new Set(Oe.match(/\b\w{2,}\b/g)||[])).map(Ke=>({label:Ke,kind:Wt.languages.CompletionItemKind.Text,insertText:Ke,range:$e}))},kt=(Wt,An,Nn,$e)=>{Wt.languages.registerCompletionItemProvider(An,{provideCompletionItems(Oe,ke){const Ke=Oe.getWordUntilPosition(ke),lt={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},Ue=Oe.getLineContent(ke.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...it(Wt,Oe,ke,lt),...Nn.map(tn=>({label:tn,kind:Wt.languages.CompletionItemKind.Keyword,documentation:tn,insertText:tn,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:lt})),...$e.map(tn=>({label:tn.label,kind:Wt.languages.CompletionItemKind.Snippet,documentation:tn.content,insertText:Ue.startsWith("#")?tn.content.replace(/#/,""):tn.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:lt}))]}}})};var Fe=Wt=>{mt.languages.forEach(An=>{Wt.languages.registerDocumentFormattingEditProvider(An,{provideDocumentFormattingEdits(Nn){return We(this,null,function*(){const $e=Qe()(Nn.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:Nn.getFullModelRange(),text:$e}]})}})}),kt(Wt,"java",Ie.keywords,Ie.quickKey),kt(Wt,"cpp",je.keywords,je.quickKey),kt(Wt,"c",Me.keywords,[]),kt(Wt,"python",Te.keywords,Te.quickKey),kt(Wt,"scala",Ge.keywords,Ge.quickKey)};const ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var te=Object.defineProperty,he=(Wt,An,Nn)=>An in Wt?te(Wt,An,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):Wt[An]=Nn,se=(Wt,An,Nn)=>he(Wt,typeof An!="symbol"?An+"":An,Nn);const ge=class Tx{constructor(An,Nn,$e){this.placeholder=An,this.editor=Nn,this.monaco=$e,Nn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Tx.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)}};se(ge,"ID","editor.widget.placeholderHint");var be=ge,Ae=le(96236),Le=le(6767),Ve=le(25399),et=le(89392),Je=le(49535),rt=le(56102),at=Object.defineProperty,tt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,an=(Wt,An,Nn)=>An in Wt?at(Wt,An,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):Wt[An]=Nn,Kt=(Wt,An)=>{for(var Nn in An||(An={}))Ut.call(An,Nn)&&an(Wt,Nn,An[Nn]);if(Lt)for(var Nn of Lt(An))on.call(An,Nn)&&an(Wt,Nn,An[Nn]);return Wt},fn=(Wt,An)=>tt(Wt,Et(An)),bt=(Wt,An)=>{var Nn={};for(var $e in Wt)Ut.call(Wt,$e)&&An.indexOf($e)<0&&(Nn[$e]=Wt[$e]);if(Wt!=null&&Lt)for(var $e of Lt(Wt))An.indexOf($e)<0&&on.call(Wt,$e)&&(Nn[$e]=Wt[$e]);return Nn},dt=(Wt,An,Nn)=>new Promise(($e,Oe)=>{var ke=Ue=>{try{lt(Nn.next(Ue))}catch(gt){Oe(gt)}},Ke=Ue=>{try{lt(Nn.throw(Ue))}catch(gt){Oe(gt)}},lt=Ue=>Ue.done?$e(Ue.value):Promise.resolve(Ue.value).then(ke,Ke);lt((Nn=Nn.apply(Wt,An)).next())});function ct(Wt){return/^\d+$/.test(Wt)?`${Wt}px`:Wt}function Qt(){}let un=!1;const Nt={"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 hn(Wt=[]){let An=Wt;if(Array.isArray(Wt)){for(let Nn=0;Nn<Wt.length;Nn++){let $e=Nt[Wt[Nn]];if($e)return $e}return An[0]}return Nt[An]||An}let cn=null;const Qn=()=>dt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Wt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Wt)}});var Bt=Wt=>{var An=Wt,{width:Nn="100%",height:$e="100%",value:Oe,language:ke="javascript",style:Ke={},options:lt={},overrideServices:Ue={},theme:gt="vs-dark",onEditBlur:tn,isCopy:Un=!1,onSave:qn,autoHeight:nn=!1,forbidCopy:Ht=!1,onChange:sn=Qt,editorDidMount:vn=Qt,onFocus:Ln=Qt,onBreakPoint:xn=Qt,breakPointValue:_t=[],filename:Vn="educoder.txt",errorLine:Kn,errorContent:Tn="",highlightLine:jn,openBreakPoint:Mi=!1,placeholder:Gn="",showMiniMap:wt=!0}=An,Si=bt(An,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const wi=(0,ce.useRef)(),Vt=(0,ce.useRef)({}),qi=(0,ce.useRef)(),lr=(0,ce.useRef)(),rr=(0,ce.useRef)([]),In=(0,ce.useRef)(!1),Br=(0,ce.useRef)(),Tr=(0,ce.useRef)(),Xi=(0,ce.useRef)(!1),[Ji,Nr]=(0,ce.useState)(!1);function Be(){let mn;return wi.current&&(mn=new Pe.Z(Rn=>{for(let Ui of Rn)(Ui.target.offsetHeight>0||Ui.target.offsetWidth>0)&&Vt.current.instance.layout()}),mn.observe(wi.current)),mn}function Vi(){Le.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const bi=()=>{let mn=Vt.current.instance;if(Oe!=null&&mn&&Ji){const Rn=mn.getModel();Rn&&Oe!==Rn.getValue()&&(un=!0,Rn.setValue(Oe),mn.layout(),un=!1)}};(0,ce.useEffect)(()=>{const mn=Je.Z.subscribe("formatDocument",Rn=>{var Ui;let or=Vt.current.instance;(Ui=or==null?void 0:or.getAction)==null||Ui.call(or,"editor.action.formatDocument").run()});return window.updateMonacoValue=Rn=>{sn(Rn)},mn},[]),(0,ce.useEffect)(()=>{var mn;let Rn=Vt.current.instance;lr.current&&clearTimeout(lr.current),lr.current=setTimeout(()=>{bi()},500),Oe&&(Oe!=null&&Oe.length)&&((mn=Rn==null?void 0:Rn.updateOptions)==null||mn.call(Rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Oe,Ji,Vt.current]),(0,ce.useEffect)(()=>{if(Kn&&Vt.current&&Vt.current.instance){let Rn=Vt.current.instance;Rn.changeViewZones(function(Ui){var or=document.createElement("div");or.style.padding="10px 20px",or.style.width="calc(100% - 20px)",or.className="my-error-line-wrp",or.innerHTML=Tn,Ui.addZone({afterLineNumber:Kn||11,heightInLines:3,domNode:or})});var mn={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}};Rn.addOverlayWidget(mn),Rn.revealPositionInCenter({lineNumber:20,column:1})}},[Kn,Vt.current,Ji]);const di=(mn="",Rn)=>{if(!mn||mn.trim()==="")return!0;const or=Vt.current.instance.getModel().getLineTokens(Rn);let ci=!1;for(let yt=0;yt<2;yt++)or.getStandardTokenType(yt)===1&&(ci=!0);return ci};(0,ce.useEffect)(()=>{var mn;const Rn=(mn=Vt.current)==null?void 0:mn.instance;if(Rn&&Ji&&Ht){const Ui=Rn.onDidBlurEditorWidget(()=>{Xi.current=!1}),or=Rn.onDidFocusEditorText(()=>{Xi.current=!0});return()=>{Ui.dispose(),or.dispose()}}},[Vt.current,Ji,Ht]),(0,ce.useEffect)(()=>{var mn;if((mn=Vt.current)!=null&&mn.instance&&Ji&&Mi){let Rn=Vt.current.instance,Ui=Rn.getModel();if(!Ui)return;(()=>{var si;let oi=[],yn=[];const ir=Ui.getAllDecorations();for(let Fn of ir)Fn.options.className==="highlighted-line"&&(oi.push((si=Fn==null?void 0:Fn.range)==null?void 0:si.startLineNumber),yn.push(Fn==null?void 0:Fn.id));if(jn===oi[0])return;Ui.deltaDecorations(yn,[]);const Zi=Ui.getLineCount();jn&&jn<=Zi&&(Rn.deltaDecorations([],[{range:new cn.Range(jn,1,jn,Ui.getLineMaxColumn(jn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Rn.revealLineInCenter(jn))})();const ci=(si=!1)=>{var oi;let yn=[],ir=[];const Zi=Ui.getAllDecorations();for(let Fn of Zi)Fn.options.linesDecorationsClassName==="breakpoints-select"&&(yn.push((oi=Fn==null?void 0:Fn.range)==null?void 0:oi.startLineNumber),ir.push(Fn==null?void 0:Fn.id));if(si)return{lines:yn,ids:ir};xn(yn)},yt=si=>dt(void 0,null,function*(){let oi={range:new cn.Range(si,1,si,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ui.deltaDecorations([],[oi]),ci()}),zt=si=>dt(void 0,null,function*(){let oi=[];const yn=Rn.getLineDecorations(si);for(let ir of yn)ir.options.linesDecorationsClassName==="breakpoints-select"&&oi.push(ir.id);yield Ui.deltaDecorations(oi,[]),ci()}),li=si=>{let oi=Rn.getLineDecorations(si);for(let yn of oi)if(yn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,et.isEqual)(_t,ci(!0).lines)){Ui.deltaDecorations(ci(!0).ids,[]);const si=_t.map(oi=>({range:new cn.Range(oi,1,oi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ui.deltaDecorations([],si)}const ii=Rn.onDidChangeModelContent(si=>{let oi=Rn.getPosition();if(oi){let yn=oi.lineNumber;clearTimeout(Tr.current),Tr.current=setTimeout(()=>{di(Ui.getLineContent(yn),yn)?zt(yn):li(yn)?(zt(yn),yt(yn)):ci()},100)}}),Rt=Rn.onMouseDown(si=>{var oi,yn,ir;if(si.target.detail&&((ir=(yn=(oi=si.target)==null?void 0:oi.element)==null?void 0:yn.className)!=null&&ir.includes("line-numbers"))){let Zi=si.target.position.lineNumber;if(di(Ui.getLineContent(Zi),Zi))return;li(Zi)?zt(Zi):yt(Zi)}}),Jn=si=>{let oi={range:new cn.Range(si,1,si,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};rr.current=Rn.deltaDecorations(rr.current,[oi])},Ni=()=>{rr.current=Rn.deltaDecorations(rr.current,[])},en=Rn.onMouseMove(si=>{var oi,yn,ir;if(Ni(),si.target.detail&&((ir=(yn=(oi=si.target)==null?void 0:oi.element)==null?void 0:yn.className)!=null&&ir.includes("line-numbers"))){let Zi=si.target.position.lineNumber;if(di(Ui.getLineContent(Zi),Zi))return;Jn(Zi)}}),ze=Rn.onMouseLeave(()=>{Ni()});return()=>{ii.dispose(),Rt.dispose(),en.dispose(),ze.dispose()}}},[Vt.current,Ji,_t,jn,Mi,ke]),(0,ce.useEffect)(()=>{var mn;(mn=Vt.current)!=null&&mn.instance&&Mi&&Vt.current.instance.setPosition({lineNumber:0,column:0})},[jn]);function Ri(){let mn=Vt.current.instance;if(mn){const Rn=mn.getSelection(),Ui=Vt.current.pastePos||{},or=new cn.Range(Ui.startLineNumber||Rn.endLineNumber,Ui.startColumn||Rn.endColumn,Ui.endLineNumber||Rn.endLineNumber,Ui.endColumn||Rn.endColumn);setTimeout(()=>{mn.executeEdits("",[{range:or,text:""}])},300)}}function Fi(mn){(window.navigator.platform.match("Mac")?mn.metaKey:mn.ctrlKey)&&mn.keyCode==83&&(mn.preventDefault(),qn())}const Ti=()=>{if(nn&&Vt.current.instance){const mn=Vt.current.instance.getContentHeight();Ci(mn<$e?$e:mn)}else Ci($e)};function Lr(mn){var Rn=document.createEvent("MouseEvents");Rn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),mn.dispatchEvent(Rn)}const ln=mn=>{if(!Xi.current)return;const{keyCode:Rn,ctrlKey:Ui,metaKey:or,target:ci,type:yt}=mn;return(yt==="paste"||(Rn===67||Rn===86)&&(or||Ui))&&ci.nodeName==="TEXTAREA"&&(Vi(),mn.preventDefault()),!1};function pn(mn,Rn){var Ui=window.URL||window.webkitURL||window,or=new Blob([Rn]),ci=document.createElementNS("http://www.w3.org/1999/xhtml","a");ci.href=Ui.createObjectURL(or),ci.download=mn,Lr(ci)}(0,ce.useEffect)(()=>{Ti()},[Ti]),(0,ce.useEffect)(()=>{wi.current&&!Ji&&Promise.all([le.e(8909),le.e(6656)]).then(le.bind(le,71448)).then(mn=>{try{cn=mn,Vt.current.instance=cn.editor.create(wi.current,{value:Oe,language:hn(ke),theme:gt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:wt||!1}},Ue);const Rn=Vt.current.instance;let ci=[...Ae.BH._menuItems].find(ii=>ii[0]._debugName=="EditorContext")[1],yt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],zt=(ii,Rt)=>{var Jn,Ni;let en=ii._first;do Rt.includes((Ni=(Jn=en.element)==null?void 0:Jn.command)==null?void 0:Ni.id)&&ii._remove(en);while(en=en.next)};if(vn(Rn,cn),setTimeout(()=>{Ti(),Vt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{pn(Vn||"educoder.txt",Rn.getValue())}})},500),Vt.current.subscription=Rn.onDidChangeModelContent(ii=>{In.current?clearTimeout(Br.current):(Ti(),sn(Rn.getValue(),ii)),Br.current=setTimeout(()=>{In.current=!1},500)}),window.Monaco||Fe(cn,hn(ke)),Ht&&(zt(ci,yt),wi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ln),window.removeEventListener("paste",ln),window.addEventListener("keydown",ln),window.addEventListener("paste",ln)),window.Monaco=cn,tn&&Rn.onDidBlurEditorWidget(()=>{tn(Rn.getValue())}),Ln&&Rn.onDidFocusEditorText(()=>{Ht&&Qn(),Ln(Rn.getValue())}),Ht){Qn();try{Rn.onDidPaste(ii=>{const Rt=Rn.getSelection(),Jn=Vt.current.pastePos||{},Ni=new cn.Range(Jn.startLineNumber||Rt.endLineNumber,Jn.startColumn||Rt.endColumn,Jn.endLineNumber||Rt.endLineNumber,Jn.endColumn||Rt.endColumn);Rn.executeEdits("",[{range:ii.range,text:""}])})}catch(ii){}}let li=Be();return Gn&&typeof Gn=="string"&&new be(Gn,Rn,cn),Nr(!0),()=>{const ii=Vt.current.instance;ii.dispose();const Rt=ii.getModel();Rt&&Rt.dispose(),Vt.current.subscription&&Vt.current.subscription.dispose(),li.unobserve(wi.current)}}catch(Rn){}})},[]),(0,ce.useEffect)(()=>{if(Vt.current.instance&&Ji)return document.addEventListener("keydown",Fi,!1),()=>{document.removeEventListener("keydown",Fi)}},[qn,Ji]),(0,ce.useEffect)(()=>{let mn=Vt.current.instance;if(mn&&Ji){let Rn=hn(ke);cn.editor.setModelLanguage(mn.getModel(),Rn)}},[ke,Ji]),(0,ce.useEffect)(()=>{Vt.current.instance&&Ji&&cn.editor.setTheme(gt)},[gt,Ji]),(0,ce.useEffect)(()=>{let mn=Vt.current.instance;qi.current=lt,mn&&Ji&&(mn.updateOptions(Kt({},lt)),setTimeout(()=>{mn.getModel().updateOptions(Kt({},lt))},200))},[JSON.stringify(lt),Ji]),(0,ce.useEffect)(()=>{let mn=Vt.current.instance;mn&&Ji&&mn.layout()},[Nn,$e,Ji]);const[$t,wn]=(0,ce.useState)(ct(Nn)),[Gi,Ci]=(0,ce.useState)(ct($e)),Yi=fn(Kt({},Ke),{width:$t,height:Gi,position:"relative"});return ce.createElement("div",{className:"my-monaco-editor",ref:wi,style:Yi},Un&&ce.createElement(rt.CopyToClipboard,{text:Oe,onCopy:()=>Le.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(Ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},ce.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ce.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Pt({width:Wt="100%",height:An="100%",original:Nn,modified:$e,language:Oe,options:ke={}}){const Ke=(0,ce.useRef)(),[lt,Ue]=(0,ce.useState)(null);function gt(nn){let Ht;return Ke.current&&(Ht=new Pe.Z(sn=>{for(let vn of sn)(vn.target.offsetHeight>0||vn.target.offsetWidth>0)&&nn.layout()}),Ht.observe(Ke.current)),Ht}(0,ce.useEffect)(()=>(Ke.current&&Promise.all([le.e(8909),le.e(9404)]).then(le.bind(le,2550)).then(nn=>{cn=nn;const Ht=cn.editor.createDiffEditor(Ke.current,fn(Kt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ke),{wordWrap:!0}));Ue(Ht);let sn=gt(Ht);return()=>{Ht.dispose();const vn=Ht.getModel();vn&&vn.dispose(),sn.unobserve(Ke.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ce.useEffect)(()=>{lt&<.setModel({original:cn.editor.createModel(Nn,Oe),modified:cn.editor.createModel($e,Oe)})},[Nn,$e,Oe,lt]);const tn=ct(Wt),Un=ct(An),qn={width:tn,height:Un};return ce.createElement("div",{className:"my-diff-editor",ref:Ke,style:qn})}},10661:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return it}});var ce={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Pe=le(29787),Me=le(25399),Ie=le(60242),je=le(92310),Te=le.n(je),Ge=le(51257),st=le(28426),Qe=le(48790),We=le(59301),it=({className:kt,dataSource:Fe=[],col:ne=4,right:te,bottom:he=23,precision:se=0,wrapWidth:ge=1200,trackEventItems:ye,loading:be,onRemove:Ae=()=>{},isCurrent:Le=!0,showProgress:Ve=!1,showAlias:et=!1})=>{const Je=Math.floor((ge-(ne-1)*te)/ne),rt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return We.createElement(Pe.Z,{spinning:be},We.createElement("div",{className:Te()(ce.list,kt)},!!(Fe!=null&&Fe.length)&&(Fe==null?void 0:Fe.map((at,tt)=>{var Et,Lt,Ut,on,an,Kt;const{name:fn,id:bt,identifier:dt,featured:ct,school_name:Qt,image_url:un,excellent:Nt,is_plan:hn}=at;return We.createElement("div",{key:bt,className:Le&&Ve?ce.wrapisCurrent:ce.wrap,style:{width:Je,marginRight:(1+tt)%ne===0?0:te+se,marginBottom:he}},We.createElement("a",{className:ce.li,onClick:cn=>{cn.preventDefault(),cn.stopPropagation(),ye&&(0,Ge.L9)([ye]),(0,Ge.xg)(`/paths/${dt}`)}},We.createElement("div",{className:ce.img},We.createElement("img",{className:ce.cover,src:`${un}`}),Le&&(0,Qe.bg)()&&(at==null?void 0:at.studying)&&We.createElement("div",{className:`${ce.movebq} user-path-items`,onClick:cn=>{cn.stopPropagation(),Ae(at)}},We.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),We.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Et=at==null?void 0:at.subject_tags)==null?void 0:Et.map((cn,Qn)=>{var Bt,Pt;if(Qn===0){const An=(Bt=rt.find(Nn=>Nn.name==cn))==null?void 0:Bt.swimg;return We.createElement("img",{className:ce.sign,src:An,style:{left:"-4px"}})}const Wt=(Pt=rt.find(An=>An.name==cn))==null?void 0:Pt.ptimg;return We.createElement("img",{className:ce.sign,src:Wt,style:{left:`${48+52*(Qn-1)+2*Qn}px`}})}),We.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(at==null?void 0:at.excellent)&&We.createElement("div",{className:ce.bq},"\u5F00\u653E\u8BFE\u7A0B"))),We.createElement("div",{className:ce.name},We.createElement(Me.Z,{title:et&&(at!=null&&at.excellent_alias_name)?We.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${fn}`,We.createElement("br",null),We.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${at==null?void 0:at.excellent_alias_name}`)):fn},We.createElement("span",{className:ce.e},et&&(at==null?void 0:at.excellent_alias_name)||fn))),Le&&Ve&&((Lt=at==null?void 0:at.progress)==null?void 0:Lt.all_score)!=0&&We.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},We.createElement(Ie.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ut=at==null?void 0:at.progress)==null?void 0:Ut.my_score)/((on=at==null?void 0:at.progress)==null?void 0:on.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(an=at==null?void 0:at.progress)==null?void 0:an.my_score,"/",(Kt=at==null?void 0:at.progress)==null?void 0:Kt.all_score),(!Le||!Ve)&&We.createElement(Me.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Qt}`},We.createElement("div",{className:ce.unit},We.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Qt)),(!Le||!Ve)&&We.createElement("div",{className:ce.tags},We.createElement("div",null,We.createElement(Me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),We.createElement("span",null,at.stages_count))),We.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),We.createElement("span",null,at.members_count)))))))})),!Fe.length&&We.createElement(st.Z,null)))}},9148:function(Re,Ee,le){"use strict";le.d(Ee,{jL:function(){return je},w9:function(){return ct},QD:function(){return Kn},cQ:function(){return an.Z},op:function(){return sn},O5:function(){return bi},_b:function(){return Si},t7:function(){return se},Gi:function(){return Qn},YG:function(){return hn},qp:function(){return mt},vr:function(){return Mi},qE:function(){return xn},Je:function(){return be},wb:function(){return on},cq:function(){return $e},tp:function(){return Fe}});var ce=le(59301),Pe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Me="data:image/png;base64,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",je=({dataSource:di=[],img:Ri,imgWidth:Fi=346,title:Ti,sunTitle:Lr,bannerExtraContent:ln})=>ce.createElement("div",{className:Pe.banner},ce.createElement("div",{className:Pe.content},ce.createElement("aside",null,ce.createElement("p",null,ce.createElement("b",null,Ti),ce.createElement("span",null,Lr)),di.length>0&&ce.createElement("div",{className:Pe.btns},di.map((pn,$t)=>ce.createElement("div",{key:$t,onClick:pn.click},pn.name,pn.sign?ce.createElement("img",{src:Me,width:39}):null))),ln),Ri&&ce.createElement("img",{style:{marginTop:33,marginRight:38},src:Ri,width:Fi}))),Te={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ge=le(92310),st=le.n(Ge),Qe=le(89392),mt=({dataSource:di=[],value:Ri,onChange:Fi,onTitleChange:Ti,className:Lr,title:ln,titleWidth:pn=41,style:$t={},fontColor:wn="#6A7283",showCount:Gi})=>{const[Ci,Yi]=(0,ce.useState)(0),[mn,Rn]=(0,ce.useState)(!1),Ui=(0,ce.useRef)(null),or=(0,ce.useRef)(null);return(0,ce.useEffect)(()=>{var ci;di.length!==0&&(((ci=Ui==null?void 0:Ui.current)==null?void 0:ci.clientHeight)>97?Yi(1):Yi(0)),di.length===0&&Yi(0),Rn(!1)},[di]),ce.createElement("div",{className:st()(Te.row,Lr),style:$t},ce.createElement("div",{onClick:(0,Qe.throttle)(()=>Ti==null?void 0:Ti(),2e3),style:{width:pn,marginTop:mn?12:4},className:`${Te.title} ${Ti?"current":""}`},ln),ce.createElement("div",{className:mn?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},ce.createElement("div",{className:Te.bar,ref:or,style:Ci>0?{height:Ci===1?97:"auto",overflow:Ci===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ce.createElement("div",{className:Te.tag,ref:Ui},di==null?void 0:di.map(ci=>ce.createElement("span",{onClick:()=>Fi(ci.id),key:ci.id,style:{color:wn},className:Ri===ci.id?Te.active:""},ce.createElement("span",{title:ci.name,className:Te.name},ci.name),!!Gi&&ce.createElement("span",{className:Te.num},ci.count))))),!!Ci&&ce.createElement(ce.Fragment,null,Ci===1?ce.createElement("div",{onClick:()=>{var ci;Yi(2),((ci=Ui==null?void 0:Ui.current)==null?void 0:ci.clientHeight)>245?Rn(!0):Rn(!1)},className:Te.action},"\u5C55\u5F00",ce.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ce.createElement("div",{onClick:()=>{or.current.scrollTop=0,Yi(1),Rn(!1)},className:Te.action},"\u6536\u8D77",ce.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},it={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Fe=({dataSource:di=[],value:Ri,onChange:Fi,className:Ti,style:Lr={}})=>ce.createElement("div",{style:Lr,className:st()(it.tabs,Ti)},di.map(ln=>ce.createElement("span",{onClick:()=>Fi(ln.id),className:Ri===ln.id?it.active:"",key:ln.id},ln.name))),ne={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},te=le(37568),se=({dataSource:di=[],value:Ri="",onChange:Fi,onInputChange:Ti=()=>{},className:Lr,style:ln={},placeholder:pn,allowClear:$t=!1})=>{var wn;const[Gi,Ci]=(0,ce.useState)(""),[Yi,mn]=(0,ce.useState)("");(0,ce.useEffect)(()=>{var or;let ci=Ri;(or=JSON.stringify(Ri))!=null&&or.includes("{")&&(Ci(Ri.id),ci=Ri.value||"");try{mn(decodeURIComponent(ci||""))}catch(yt){mn(decodeURIComponent(ci||""))}},[Ri]);const Rn=()=>{Fi(encodeURIComponent(Yi),Gi||null)},Ui=or=>{or!==Gi&&(Ci(or),Fi(encodeURIComponent(Yi),or))};return ce.createElement("div",{className:st()(ne.input,Lr),style:ln},!!di.length&&ce.createElement("div",{className:ne.dropdown},ce.createElement("div",{className:ne.text},(wn=di.find(or=>or.id===Gi))==null?void 0:wn.name,ce.createElement("i",{className:"iconfont icon-zhankai4"}),ce.createElement("b",{className:ne.b1}),ce.createElement("b",{className:ne.b2})),ce.createElement("div",{className:ne.menu},di.map((or,ci)=>ce.createElement("div",{key:ci,onClick:()=>Ui(or.id)},or.name)))),ce.createElement(te.default,{onPressEnter:Rn,value:Yi,onChange:or=>{mn(or.target.value),Ti(encodeURIComponent(or.target.value),Gi||null)},bordered:!1,placeholder:pn}),ce.createElement("i",{onClick:Rn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},be=({value:di,onChange:Ri,className:Fi,total:Ti,pageSize:Lr,style:ln={}})=>{const pn=di<2,$t=di>=Math.ceil(Ti/Lr);return Ti<=Lr?ce.createElement(ce.Fragment,null):ce.createElement("div",{className:st()(ge.quickPager,Fi),style:ln},ce.createElement("div",{onClick:()=>{pn||Ri(di-1,"prev")},className:pn?ge.disabled:""},"\u4E0A\u4E00\u9875"),ce.createElement("div",{onClick:()=>{$t||Ri(di+1,"next")},className:$t?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Ae={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Le=le(29787),Ve=le(25399),et=le(58018),Je=le(346),rt=le(51257),at=le(96908),tt=le(57177),Et=le(81378),Lt=le(28426),on=({className:di,dataSource:Ri=[],col:Fi=4,right:Ti,bottom:Lr=23,precision:ln=0,wrapWidth:pn=1200,trackEventItems:$t,loading:wn})=>{const Gi=Math.floor((pn-(Fi-1)*Ti)/Fi);return ce.createElement(Le.Z,{spinning:wn},ce.createElement("div",{className:st()(Ae.list,di)},!!Ri.length&&Ri.map((Ci,Yi)=>{const{name:mn,id:Rn,identifier:Ui,power:or,cover_image_id:ci,pic:yt}=Ci;return ce.createElement("div",{className:Ae.wrap,key:Rn,style:{width:Gi,marginRight:(1+Yi)%Fi===0?0:Ti+ln,marginBottom:Lr}},ce.createElement("a",{target:"_blank",href:`/shixuns/${Ui}/challenges`,className:Ae.li,onClick:zt=>{zt.preventDefault(),$t&&(0,rt.L9)([$t]),or&&(0,rt.xg)(`/shixuns/${Ui}/challenges`)}},ce.createElement("div",{className:Ae.img},ce.createElement("img",{className:Ae.cover,src:`${yt}`}),Ci.is_jupyter&&ce.createElement("img",{className:Ae.sign,src:at}),Ci.is_jupyter_lab&&ce.createElement("img",{className:Ae.sign,src:tt}),Ci.is_unity_3d&&ce.createElement("img",{className:Ae.sign,src:Et})),ce.createElement("div",{className:Ae.name},ce.createElement(Ve.Z,{title:mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ce.createElement("span",{className:Ae.e},mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ce.createElement("div",{className:Ae.tags},ce.createElement(Ve.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ce.createElement("span",null,Ci.challenges_count))),!!Ci.myshixuns_count&&ce.createElement(Ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ce.createElement("span",null,Ci.myshixuns_count))),ce.createElement(Ve.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ce.createElement("span",null,ce.createElement("span",null,Ci.level))),ce.createElement("div",{className:Ae.rate},ce.createElement(et.Z,{allowHalf:!0,disabled:!0,defaultValue:Ci.score_info}),ce.createElement("span",null,"\xA0",Ci.score_info?`${Ci.score_info}\u5206`:"5\u5206")))),!or&&ce.createElement("div",{className:Ae.lockWrap},ce.createElement("img",{src:`${Je.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ce.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ri.length&&ce.createElement(Lt.Z,null)))},an=le(10661),Kt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},fn="data:image/png;base64,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",bt=le(59301),ct=({className:di,dataSource:Ri=[],col:Fi=4,right:Ti,bottom:Lr=23,precision:ln=0,wrapWidth:pn=1200,trackEventItems:$t,loading:wn,handleVery:Gi=()=>!0})=>{const Ci=Math.floor((pn-(Fi-1)*Ti)/Fi);return bt.createElement(Le.Z,{spinning:wn},bt.createElement("div",{className:st()(Kt.list,di)},!!Ri.length&&Ri.map((Yi,mn)=>{const{subject_identifier:Rn,id:Ui,identifier:or,power:ci}=Yi,yt=Yi.is_public!=0&&Yi.is_public;return bt.createElement("div",{className:Kt.wrap,key:Ui,style:{width:Ci,marginRight:(1+mn)%Fi===0?0:Ti+ln,marginBottom:Lr}},bt.createElement("a",{className:Kt.li,onClick:zt=>{zt.preventDefault(),Gi(Yi==null?void 0:Yi.first_category_url)&&($t&&(0,rt.L9)([$t]),(0,rt.xg)(Yi.first_category_url))}},bt.createElement("div",{className:Kt.top},bt.createElement(Ve.Z,{title:Yi.name},bt.createElement("div",{className:Kt.name},Yi.name)),bt.createElement("img",{className:Kt.img,src:Je.Z.IMG_SERVER+"/images/"+Yi.avatar_url}),bt.createElement("div",{className:Kt.text,title:Yi.creator},Yi.creator),Rn&&bt.createElement("div",{className:Kt.btns},bt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),bt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),yt&&bt.createElement("div",{className:Kt.sign},"\u516C\u5F00")),bt.createElement("div",{className:Kt.bottom},Yi.visits>0&&bt.createElement(Ve.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-liulanyan"}),bt.createElement("span",null,Yi.visits))),Yi.course_members_count>0&&bt.createElement(Ve.Z,{title:"\u6210\u5458",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-chengyuan"}),Yi.course_members_count)),Yi.tasks_count>0&&bt.createElement(Ve.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-zuoye"}),Yi.tasks_count)),Yi.is_end?bt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):bt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Yi.is_accessible&&bt.createElement("div",{className:Kt.lockWrap},bt.createElement("img",{src:`${Je.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),bt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ri.length&&bt.createElement(Lt.Z,null)))},Qt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},un=le(25690),hn=({dataSource:di=[],value:Ri,onChange:Fi,className:Ti,style:Lr={},tabBarExtraContent:ln})=>ce.createElement("div",{className:st()(Qt.tabs,Ti),style:Lr},ce.createElement("div",{className:Qt.tabsWrap},di.map((pn,$t)=>!(pn!=null&&pn.hide)&&ce.createElement("aside",{className:Qt.tab,onClick:()=>{Fi(pn.id),pn.link&&un.history.push(pn.link)},key:$t},ce.createElement("div",{className:Ri===pn.id?Qt.active:""},pn.name),(pn==null?void 0:pn.resetCount)==null&&(pn==null?void 0:pn.total)!==void 0&&ce.createElement("span",null,"\uFF08",pn==null?void 0:pn.total,"\uFF09"),(pn==null?void 0:pn.resetCount)!==void 0&&(pn==null?void 0:pn.total)!==void 0&&ce.createElement(Ve.Z,{title:(pn==null?void 0:pn.tip)!=null?pn==null?void 0:pn.tip:""},ce.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ce.createElement("span",{style:{color:"#000"}},pn==null?void 0:pn.resetCount),"/",ce.createElement("span",null,pn==null?void 0:pn.total),"\uFF09"))))),ce.createElement("div",{className:Qt.tabBar},ln)),Qn=({className:di,style:Ri={},children:Fi})=>ce.createElement("div",{className:st()(di),style:Ri},Fi),Bt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Pt=le(75727),Wt=le(93041);const An=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var $e=({sortValue:di,dropValue:Ri,className:Fi,onSort:Ti,onDrop:Lr,dataSource:ln=An})=>{var pn;return ce.createElement("div",{className:st()(Bt.orderWrap,Fi)},ce.createElement(Pt.Z,{dropdownRender:()=>ce.createElement(Wt.default,null,ln.map(($t,wn)=>ce.createElement(Wt.default.Item,{key:wn,onClick:()=>Lr($t.id)},$t.name)))},ce.createElement("span",{className:Bt.orderTextWrap},(pn=ln.find($t=>Ri===$t.id))==null?void 0:pn.name)),ce.createElement("span",{className:Bt.orderIconWrap},ce.createElement("span",{className:Bt.orderAsc},ce.createElement("i",{className:di==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Bt.cursorPointer} ${Bt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Bt.cursorPointer}`,onClick:()=>Ti(di==="asc"?"desc":"asc")})),ce.createElement("span",{className:Bt.orderDesc},ce.createElement("i",{className:di==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Bt.cursorPointer} ${Bt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Bt.cursorPointer}`,onClick:()=>Ti(di==="asc"?"desc":"asc")}))))},Oe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ke=le(99571),Ke=Object.defineProperty,lt=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,tn=(di,Ri,Fi)=>Ri in di?Ke(di,Ri,{enumerable:!0,configurable:!0,writable:!0,value:Fi}):di[Ri]=Fi,Un=(di,Ri)=>{for(var Fi in Ri||(Ri={}))Ue.call(Ri,Fi)&&tn(di,Fi,Ri[Fi]);if(lt)for(var Fi of lt(Ri))gt.call(Ri,Fi)&&tn(di,Fi,Ri[Fi]);return di},qn=(di,Ri)=>{var Fi={};for(var Ti in di)Ue.call(di,Ti)&&Ri.indexOf(Ti)<0&&(Fi[Ti]=di[Ti]);if(di!=null&<)for(var Ti of lt(di))Ri.indexOf(Ti)<0&>.call(di,Ti)&&(Fi[Ti]=di[Ti]);return Fi},nn=(di,Ri,Fi)=>new Promise((Ti,Lr)=>{var ln=wn=>{try{$t(Fi.next(wn))}catch(Gi){Lr(Gi)}},pn=wn=>{try{$t(Fi.throw(wn))}catch(Gi){Lr(Gi)}},$t=wn=>wn.done?Ti(wn.value):Promise.resolve(wn.value).then(ln,pn);$t((Fi=Fi.apply(di,Ri)).next())}),sn=di=>{var Ri=di,{className:Fi,style:Ti,children:Lr,loading:ln=!1,openLoading:pn,onClick:$t=()=>{},size:wn="middle",shape:Gi="round"}=Ri,Ci=qn(Ri,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Yi,mn]=(0,ce.useState)(!1);return ce.createElement(ke.ZP,Un({onClick:(0,Qe.throttle)(Rn=>nn(void 0,null,function*(){pn&&mn(!0);try{yield $t(Rn)}catch(Ui){console.log("error",Ui)}pn&&mn(!1)}),2e3,{leading:!0,trailing:!1}),className:st()(Oe.btn,Oe[`${wn}-${Gi}`],Fi),style:Ti,size:wn,shape:Gi,loading:Yi||ln},Ci),Lr)},vn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},xn=({className:di,style:Ri,children:Fi=null,onClick:Ti,title:Lr})=>ce.createElement("div",{className:st()(vn.head,di),style:Ri},ce.createElement("span",{className:"primary-hover",onClick:Ti},ce.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ce.createElement("b",{title:Lr},Lr),ce.createElement("div",{className:vn.node},Fi)),_t={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Kn=({confirmShow:di=!0,confirmTitle:Ri,confirmClick:Fi,cancelShow:Ti=!0,cancelTitle:Lr,cancelClick:ln,className:pn,style:$t,confirmLoading:wn=!1})=>ce.createElement("div",{className:st()(_t.btns,pn),style:$t},di&&ce.createElement(ke.ZP,{loading:wn,onClick:Fi,type:"primary",className:_t.confirm},Ri),Ti&&ce.createElement(ke.ZP,{onClick:ln,className:_t.cancel},Lr)),Tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Mi=({className:di,style:Ri={},LeftContent:Fi,children:Ti,RightContent:Lr})=>ce.createElement("div",{className:st()(Tn.fixedBottom,di),style:Ri},ce.createElement("div",{className:Tn.wrap},ce.createElement("div",{className:Tn.left},Fi),ce.createElement("div",{className:Tn.center},Ti),ce.createElement("div",{className:Tn.right},Lr))),Gn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Si=({className:di,style:Ri={},dataSource:Fi=[]})=>ce.createElement("div",{className:st()(Gn.crumbs,di),style:Ri},Fi.map((Ti,Lr)=>Lr<Fi.length-1?ce.createElement(ce.Fragment,{key:Lr},Ti.path||Ti.onClick?ce.createElement("span",{className:Gn.hover,onClick:Ti!=null&&Ti.onClick?Ti.onClick:()=>un.history.push(Ti.path)},Ti.name):ce.createElement("span",null,Ti.name),ce.createElement("span",null,"\xA0",">","\xA0")):ce.createElement("span",{key:Lr,style:{color:"#5F6368"}},Ti.name))),wi=le(11938),Vt=Object.defineProperty,qi=Object.defineProperties,lr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Tr=(di,Ri,Fi)=>Ri in di?Vt(di,Ri,{enumerable:!0,configurable:!0,writable:!0,value:Fi}):di[Ri]=Fi,Xi=(di,Ri)=>{for(var Fi in Ri||(Ri={}))In.call(Ri,Fi)&&Tr(di,Fi,Ri[Fi]);if(rr)for(var Fi of rr(Ri))Br.call(Ri,Fi)&&Tr(di,Fi,Ri[Fi]);return di},Ji=(di,Ri)=>qi(di,lr(Ri)),Nr=(di,Ri)=>{var Fi={};for(var Ti in di)In.call(di,Ti)&&Ri.indexOf(Ti)<0&&(Fi[Ti]=di[Ti]);if(di!=null&&rr)for(var Ti of rr(di))Ri.indexOf(Ti)<0&&Br.call(di,Ti)&&(Fi[Ti]=di[Ti]);return Fi};const{Countdown:Be}=wi.default;var bi=di=>{var Ri=di,{onChange:Fi}=Ri,Ti=Nr(Ri,["onChange"]);const[Lr,ln]=(0,ce.useState)(null);(0,ce.useEffect)(()=>{typeof Lr=="number"&&Lr>=0&&Fi(Lr)},[Lr]);const pn=$t=>{const wn=Math.floor($t/1e3);ln(wn)};return ce.createElement(Be,Ji(Xi({},Ti),{onChange:pn}))}},37808:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Pe}});var ce=le(59301);function Pe(Me,Ie){const je=(0,ce.useRef)();(0,ce.useEffect)(()=>{je.current=Me}),(0,ce.useEffect)(()=>{function Te(){je.current()}if(Ie!==null){let Ge=setInterval(Te,Ie);return()=>clearInterval(Ge)}},[Ie])}},82044:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return je}});var ce=le(59301),Pe=le(29787),Me={loading:"loading___lueiN"},je=({loading:Te})=>Te?ce.createElement("div",{className:Me.loading},ce.createElement(Pe.Z,null)):ce.createElement(ce.Fragment,null)},9639:function(Re,Ee,le){"use strict";var ce=le(59301),Pe=le(62957),Me=le(54172),Ie=le(38986),je=le(28426),Te=le(61186),Ge=le.n(Te),st=le(39793),Qe=Object.defineProperty,We=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,kt=(he,se,ge)=>se in he?Qe(he,se,{enumerable:!0,configurable:!0,writable:!0,value:ge}):he[se]=ge,Fe=(he,se)=>{for(var ge in se||(se={}))mt.call(se,ge)&&kt(he,ge,se[ge]);if(We)for(var ge of We(se))it.call(se,ge)&&kt(he,ge,se[ge]);return he},ne=(he,se,ge)=>new Promise((ye,be)=>{var Ae=et=>{try{Ve(ge.next(et))}catch(Je){be(Je)}},Le=et=>{try{Ve(ge.throw(et))}catch(Je){be(Je)}},Ve=et=>et.done?ye(et.value):Promise.resolve(et.value).then(Ae,Le);Ve((ge=ge.apply(he,se)).next())});const te=({visible:he,identifier:se,challenge_id:ge,onCancle:ye,onOK:be})=>{const[Ae,Le]=(0,ce.useState)(0),[Ve,et]=(0,ce.useState)([]),[Je,rt]=(0,ce.useState)(!1),[at,tt]=(0,ce.useState)({page:1,limit:10}),Et=()=>ne(void 0,null,function*(){var Lt,Ut;rt(!0);const on=yield(0,Ie.ZP)(`/api/shixuns/${se}/challenges/${ge}/task_pass_histories.json`,{method:"get",params:Fe({},at)});(on==null?void 0:on.status)===0&&(Le((Lt=on==null?void 0:on.data)==null?void 0:Lt.size),et(((Ut=on==null?void 0:on.data)==null?void 0:Ut.list)||[])),rt(!1)});return(0,ce.useEffect)(()=>{he&&Et()},[he]),ce.createElement(Pe.default,{centered:!0,destroyOnClose:!0,open:he,title:"\u7248\u672C\u7BA1\u7406",footer:null,width:620,onCancel:()=>{at.page=1,at.limit=10,tt(Fe({},at)),ye()}},ce.createElement(Me.default,{scroll:{y:47*10},loading:Je,dataSource:Ve,locale:{emptyText:ce.createElement(je.Z,null)},columns:[{title:"\u7248\u672C\u4FDD\u5B58\u65F6\u95F4",dataIndex:"updated_at",ellipsis:!0,render:(Lt,Ut,on)=>Ge()(Lt).format("YYYY-MM-DD hh:mm:ss")},{title:"\u4FDD\u5B58\u4EBA",dataIndex:"user_name",width:110,ellipsis:!0,render:Lt=>Lt},{title:"\u64CD\u4F5C",dataIndex:"task_pass",align:"right",render(Lt,Ut,on){return ce.createElement("div",null,ce.createElement("a",{onClick:()=>{Pe.default.confirm({icon:null,width:800,centered:!0,closable:!0,title:"\u4EFB\u52A1\u8981\u6C42\u8BE6\u60C5",content:ce.createElement("div",{className:"mb10"},ce.createElement(st.Z,{key:ge||"3",watch:!0,defaultValue:Ut==null?void 0:Ut.task_pass})),footer:null})}},"\u67E5\u770B"),ce.createElement("a",{onClick:()=>ne(this,null,function*(){Pe.default.confirm({icon:null,width:500,centered:!0,closable:!0,title:"\u7248\u672C\u5207\u6362\u786E\u8BA4",content:ce.createElement("div",null,ce.createElement("div",null,"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5207\u6362\u81F3 ",Ge()(Ut==null?void 0:Ut.updated_at).format("YYYY-MM-DD hh:mm:ss")," \u7248\u672C\uFF1F"),ce.createElement("div",null,"\u7248\u672C\u5207\u6362\u4F1A\u5C06\u5F53\u524D\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5B8C\u5168\u8986\u76D6\uFF0C\u5EFA\u8BAE\u5C06\u6700\u65B0\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u4FDD\u5B58\u540E\uFF0C\u518D\u8FDB\u884C\u5207\u6362\u3002")),okText:"\u786E\u8BA4\u5207\u6362",cancelText:"\u53D6\u6D88",onOk:()=>ne(this,null,function*(){yield be(Ut==null?void 0:Ut.task_pass),ye()})})}),className:"ml20"},"\u5207\u6362\u81F3\u8BE5\u7248\u672C"))}}],onChange:Lt=>{at.page=Lt==null?void 0:Lt.current,at.limit=Lt==null?void 0:Lt.pageSize,Et(),tt(Fe({},at))},pagination:{pageSize:at.limit,total:Ae,current:at.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,showTotal:Lt=>ce.createElement("span",{className:"mr10"},"\u5171",ce.createElement("span",{className:"c-orange"},Lt),"\u6761\u6570\u636E")}}))};Ee.Z=te},85395:function(Re,Ee,le){"use strict";le.d(Ee,{S:function(){return Te},m:function(){return Ge}});var ce=le(51257),Pe=le(6767),Me=le(62957),Ie=le(59301),je=(st,Qe,We)=>new Promise((mt,it)=>{var kt=te=>{try{ne(We.next(te))}catch(he){it(he)}},Fe=te=>{try{ne(We.throw(te))}catch(he){it(he)}},ne=te=>te.done?mt(te.value):Promise.resolve(te.value).then(kt,Fe);ne((We=We.apply(st,Qe)).next())});const Te=st=>{let Qe=document.createElement("textarea");return Qe.value=st,Qe.value},Ge=(st,Qe,We,mt,it)=>je(void 0,null,function*(){var kt,Fe;const ne=yield st({type:"shixunsDetail/saveCopyForExercise",payload:{id:We,save_type:mt}});mt===1?((ne==null?void 0:ne.status)==0&&Pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),(kt=ne==null?void 0:ne.data)!=null&&kt.exists_same_shixun_name?st({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(Fe=ne==null?void 0:ne.data)==null?void 0:Fe.shixun_name}}):st({type:"classroomList/setActionTabs",payload:{}})):(st({type:"classroomList/setActionTabs",payload:{}}),(ne==null?void 0:ne.status)===0&&Me.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:Ie.createElement("div",null,Ie.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var te,he;(0,ce.xg)(`/shixuns/${(he=(te=Qe==null?void 0:Qe.detail)==null?void 0:te.fork_from)==null?void 0:he.fork_identifier}/challenges`)}}))})},81428:function(Re,Ee,le){"use strict";le.d(Ee,{AL:function(){return be},Iy:function(){return mt},Qv:function(){return Fe},ez:function(){return ye},jb:function(){return it}});var ce=le(32834),Pe=le.n(ce),Me=le(11690),Ie=le.n(Me);let je=1;function Te(Je,rt){const at=Je.match(/^(\s+)(?:```)/);if(at===null)return rt;const tt=at[1];return rt.split(`
|
|
|
`).map(Et=>{const Lt=Et.match(/^\s+/);if(Lt===null)return Et;const[Ut]=Lt;return Ut.length>=tt.length?Et.slice(tt.length):Et}).join(`
|
|
|
`)}let Ge=[],st=["<ul>"];const Qe=new(Pe()).Renderer,We=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function mt(){Ge.length=0,st=["<ul>"]}const it={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function kt(Je,rt,at,tt){if(rt>=Je.length||Je[rt].level<=at)return rt;var Et=Je[rt];tt.push("<li><a href='#"+je+Et.anchor+"'>"+Et.text+"</a>"),rt++;var Lt=[];return rt=kt(Je,rt,Et.level,Lt),Lt.length>0&&(tt.push("<ul>"),Lt.forEach(function(Ut){tt.push(Ut)}),tt.push("</ul>")),tt.push("</li>"),rt=kt(Je,rt,at,tt),rt}function Fe(){return kt(Ge,0,0,st),st.push("</ul>"),st.join("")}const ne={heading(Je){const rt=We.exec(Je);if(je+=1,rt)return{type:"heading",raw:rt[0],depth:rt[1].length,text:rt[2]}},fences(Je){const rt=this.rules.block.fences.exec(Je);if(rt){const at=rt[0];let tt=Te(at,rt[3]||"");const Et=rt[2]?rt[2].trim():rt[2];if(["latex","katex","math"].indexOf(Et)>=0){const Lt=se(),Ut=tt;tt=Lt,ge[Lt]={type:"block",expression:Ut}}return{type:"code",raw:at,lang:Et,text:tt}}}},te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let ge={};function ye(){return ge}function be(){he=0,ge={}}function Ae(Je){return Je=Je.replace(te,(rt,at)=>{const tt=se();return ge[tt]={type:"inline",expression:at},tt}),Je}const Le=Qe.listitem;Qe.listitem=function(Je){return Le(Ae(Je))};const Ve=Qe.paragraph;Qe.paragraph=function(Je){return Ve(Ae(Je))};const et=Qe.tablecell;Qe.tablecell=function(Je,rt){return et(Ae(Je),rt)},Qe.code=function(Je,rt,at){const tt=(rt||"").match(/\S*/)[0];return tt?["latex","katex","math"].indexOf(tt)>=0?`<p class='editormd-tex'>${Je}</p>`:`<pre class="prettyprint linenums"><code class="language-${rt}">${at?Je:(0,Me.escape)(Je,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(at?Je:(0,Me.escape)(Je,!0))+"</code></pre>"},Qe.heading=function(Je,rt,at){let tt=this.options.headerPrefix+at.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ge.push({anchor:tt,level:rt,text:Je}),"<h"+rt+' id="'+je+tt+'">'+Je+"</h"+rt+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:ne,renderer:Qe}),Ee.ZP=Pe()},99498:function(Re,Ee,le){(function(ce){ce(le(89780))})(function(ce){ce.defineOption("placeholder","",function(st,Qe,We){var mt=We&&We!=ce.Init;if(Qe&&!mt)st.on("blur",je),st.on("change",Te),st.on("swapDoc",Te),ce.on(st.getInputField(),"compositionupdate",st.state.placeholderCompose=function(){Ie(st)}),Te(st);else if(!Qe&&mt){st.off("blur",je),st.off("change",Te),st.off("swapDoc",Te),ce.off(st.getInputField(),"compositionupdate",st.state.placeholderCompose),Pe(st);var it=st.getWrapperElement();it.className=it.className.replace(" CodeMirror-empty","")}Qe&&!st.hasFocus()&&je(st)});function Pe(st){st.state.placeholder&&(st.state.placeholder.parentNode.removeChild(st.state.placeholder),st.state.placeholder=null)}function Me(st){Pe(st);var Qe=st.state.placeholder=document.createElement("pre");Qe.style.cssText="height: 0; overflow: visible",Qe.style.direction=st.getOption("direction"),Qe.className="CodeMirror-placeholder CodeMirror-line-like";var We=st.getOption("placeholder");typeof We=="string"&&(We=document.createTextNode(We)),Qe.appendChild(We),st.display.lineSpace.insertBefore(Qe,st.display.lineSpace.firstChild)}function Ie(st){setTimeout(function(){var Qe=!1,We=st.getInputField();We.nodeName=="TEXTAREA"?Qe=!We.value:st.lineCount()==1&&(Qe=!/[^\u200b]/.test(We.querySelector(".CodeMirror-line").textContent)),Qe?Me(st):Pe(st)},20)}function je(st){Ge(st)&&Me(st)}function Te(st){var Qe=st.getWrapperElement(),We=Ge(st);Qe.className=Qe.className.replace(" CodeMirror-empty","")+(We?" CodeMirror-empty":""),We?Me(st):Pe(st)}function Ge(st){return st.lineCount()===1&&st.getLine(0)===""}})},25717:function(Re,Ee,le){(function(ce){ce(le(89780))})(function(ce){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Me=ce.Pos;ce.defineOption("autoCloseBrackets",!1,function(ne,te,he){he&&he!=ce.Init&&(ne.removeKeyMap(je),ne.state.closeBrackets=null),te&&(Te(Ie(te,"pairs")),ne.state.closeBrackets=te,ne.addKeyMap(je))});function Ie(ne,te){return te=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[te]!=null?ne[te]:Pe[te]}var je={Backspace:Qe,Enter:We};function Te(ne){for(var te=0;te<ne.length;te++){var he=ne.charAt(te),se="'"+he+"'";je[se]||(je[se]=Ge(he))}}Te(Pe.pairs+"`");function Ge(ne){return function(te){return it(te,ne)}}function st(ne){var te=ne.state.closeBrackets;if(!te||te.override)return te;var he=ne.getModeAt(ne.getCursor());return he.closeBrackets||te}function Qe(ne){var te=st(ne);if(!te||ne.getOption("disableInput"))return ce.Pass;for(var he=Ie(te,"pairs"),se=ne.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ce.Pass;var ye=kt(ne,se[ge].head);if(!ye||he.indexOf(ye)%2!=0)return ce.Pass}for(var ge=se.length-1;ge>=0;ge--){var be=se[ge].head;ne.replaceRange("",Me(be.line,be.ch-1),Me(be.line,be.ch+1),"+delete")}}function We(ne){var te=st(ne),he=te&&Ie(te,"explode");if(!he||ne.getOption("disableInput"))return ce.Pass;for(var se=ne.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ce.Pass;var ye=kt(ne,se[ge].head);if(!ye||he.indexOf(ye)%2!=0)return ce.Pass}ne.operation(function(){var be=ne.lineSeparator()||`
|
|
|
`;ne.replaceSelection(be+be,null),ne.execCommand("goCharLeft"),se=ne.listSelections();for(var Ae=0;Ae<se.length;Ae++){var Le=se[Ae].head.line;ne.indentLine(Le,null,!0),ne.indentLine(Le+1,null,!0)}})}function mt(ne){var te=ce.cmpPos(ne.anchor,ne.head)>0;return{anchor:new Me(ne.anchor.line,ne.anchor.ch+(te?-1:1)),head:new Me(ne.head.line,ne.head.ch+(te?1:-1))}}function it(ne,te){var he=st(ne);if(!he||ne.getOption("disableInput"))return ce.Pass;var se=Ie(he,"pairs"),ge=se.indexOf(te);if(ge==-1)return ce.Pass;for(var ye=Ie(he,"closeBefore"),be=Ie(he,"triples"),Ae=se.charAt(ge+1)==te,Le=ne.listSelections(),Ve=ge%2==0,et,Je=0;Je<Le.length;Je++){var rt=Le[Je],at=rt.head,tt,Et=ne.getRange(at,Me(at.line,at.ch+1));if(Ve&&!rt.empty())tt="surround";else if((Ae||!Ve)&&Et==te)Ae&&Fe(ne,at)?tt="both":be.indexOf(te)>=0&&ne.getRange(at,Me(at.line,at.ch+3))==te+te+te?tt="skipThree":tt="skip";else if(Ae&&at.ch>1&&be.indexOf(te)>=0&&ne.getRange(Me(at.line,at.ch-2),at)==te+te){if(at.ch>2&&/\bstring/.test(ne.getTokenTypeAt(Me(at.line,at.ch-2))))return ce.Pass;tt="addFour"}else if(Ae){var Lt=at.ch==0?" ":ne.getRange(Me(at.line,at.ch-1),at);if(!ce.isWordChar(Et)&&Lt!=te&&!ce.isWordChar(Lt))tt="both";else return ce.Pass}else if(Ve&&(Et.length===0||/\s/.test(Et)||ye.indexOf(Et)>-1))tt="both";else return ce.Pass;if(!et)et=tt;else if(et!=tt)return ce.Pass}var Ut=ge%2?se.charAt(ge-1):te,on=ge%2?te:se.charAt(ge+1);ne.operation(function(){if(et=="skip")ne.execCommand("goCharRight");else if(et=="skipThree")for(var an=0;an<3;an++)ne.execCommand("goCharRight");else if(et=="surround"){for(var Kt=ne.getSelections(),an=0;an<Kt.length;an++)Kt[an]=Ut+Kt[an]+on;ne.replaceSelections(Kt,"around"),Kt=ne.listSelections().slice();for(var an=0;an<Kt.length;an++)Kt[an]=mt(Kt[an]);ne.setSelections(Kt)}else et=="both"?(ne.replaceSelection(Ut+on,null),ne.triggerElectric(Ut+on),ne.execCommand("goCharLeft")):et=="addFour"&&(ne.replaceSelection(Ut+Ut+Ut+Ut,"before"),ne.execCommand("goCharRight"))})}function kt(ne,te){var he=ne.getRange(Me(te.line,te.ch-1),Me(te.line,te.ch+1));return he.length==2?he:null}function Fe(ne,te){var he=ne.getTokenAt(Me(te.line,te.ch+1));return/\bstring/.test(he.type)&&he.start==te.ch&&(te.ch==0||!/\bstring/.test(ne.getTokenTypeAt(te)))}})},6313:function(Re,Ee,le){(function(ce){ce(le(89780),le(32855))})(function(ce){ce.defineOption("autoCloseTags",!1,function(Qe,We,mt){if(mt!=ce.Init&&mt&&Qe.removeKeyMap("autoCloseTags"),!!We){var it={name:"autoCloseTags"};(typeof We!="object"||We.whenClosing!==!1)&&(it["'/'"]=function(kt){return Te(kt)}),(typeof We!="object"||We.whenOpening!==!1)&&(it["'>'"]=function(kt){return Ie(kt)}),Qe.addKeyMap(it)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Me=["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 Ie(Qe){if(Qe.getOption("disableInput"))return ce.Pass;for(var We=Qe.listSelections(),mt=[],it=Qe.getOption("autoCloseTags"),kt=0;kt<We.length;kt++){if(!We[kt].empty())return ce.Pass;var Fe=We[kt].head,ne=Qe.getTokenAt(Fe),te=ce.innerMode(Qe.getMode(),ne.state),he=te.state,se=te.mode.xmlCurrentTag&&te.mode.xmlCurrentTag(he),ge=se&&se.name;if(!ge)return ce.Pass;var ye=te.mode.configuration=="html",be=typeof it=="object"&&it.dontCloseTags||ye&&Pe,Ae=typeof it=="object"&&it.indentTags||ye&&Me;ne.end>Fe.ch&&(ge=ge.slice(0,ge.length-ne.end+Fe.ch));var Le=ge.toLowerCase();if(!ge||ne.type=="string"&&(ne.end!=Fe.ch||!/[\"\']/.test(ne.string.charAt(ne.string.length-1))||ne.string.length==1)||ne.type=="tag"&&se.close||ne.string.indexOf("/")==Fe.ch-ne.start-1||be&&Ge(be,Le)>-1||st(Qe,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(he)||[],ge,Fe,!0))return ce.Pass;var Ve=typeof it=="object"&&it.emptyTags;if(Ve&&Ge(Ve,ge)>-1){mt[kt]={text:"/>",newPos:ce.Pos(Fe.line,Fe.ch+2)};continue}var et=Ae&&Ge(Ae,Le)>-1;mt[kt]={indent:et,text:">"+(et?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:et?ce.Pos(Fe.line+1,0):ce.Pos(Fe.line,Fe.ch+1)}}for(var Je=typeof it=="object"&&it.dontIndentOnAutoClose,kt=We.length-1;kt>=0;kt--){var rt=mt[kt];Qe.replaceRange(rt.text,We[kt].head,We[kt].anchor,"+insert");var at=Qe.listSelections().slice(0);at[kt]={head:rt.newPos,anchor:rt.newPos},Qe.setSelections(at),!Je&&rt.indent&&(Qe.indentLine(rt.newPos.line,null,!0),Qe.indentLine(rt.newPos.line+1,null,!0))}}function je(Qe,We){for(var mt=Qe.listSelections(),it=[],kt=We?"/":"</",Fe=Qe.getOption("autoCloseTags"),ne=typeof Fe=="object"&&Fe.dontIndentOnSlash,te=0;te<mt.length;te++){if(!mt[te].empty())return ce.Pass;var he=mt[te].head,se=Qe.getTokenAt(he),ge=ce.innerMode(Qe.getMode(),se.state),ye=ge.state;if(We&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=he.ch-1))return ce.Pass;var be,Ae=ge.mode.name!="xml"&&Qe.getMode().name=="htmlmixed";if(Ae&&ge.mode.name=="javascript")be=kt+"script";else if(Ae&&ge.mode.name=="css")be=kt+"style";else{var Le=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(ye);if(!Le||Le.length&&st(Qe,Le,Le[Le.length-1],he))return ce.Pass;be=kt+Le[Le.length-1]}Qe.getLine(he.line).charAt(se.end)!=">"&&(be+=">"),it[te]=be}if(Qe.replaceSelections(it),mt=Qe.listSelections(),!ne)for(var te=0;te<mt.length;te++)(te==mt.length-1||mt[te].head.line<mt[te+1].head.line)&&Qe.indentLine(mt[te].head.line)}function Te(Qe){return Qe.getOption("disableInput")?ce.Pass:je(Qe,!0)}ce.commands.closeTag=function(Qe){return je(Qe)};function Ge(Qe,We){if(Qe.indexOf)return Qe.indexOf(We);for(var mt=0,it=Qe.length;mt<it;++mt)if(Qe[mt]==We)return mt;return-1}function st(Qe,We,mt,it,kt){if(!ce.scanForClosingTag)return!1;var Fe=Math.min(Qe.lastLine()+1,it.line+500),ne=ce.scanForClosingTag(Qe,it,null,Fe);if(!ne||ne.tag!=mt)return!1;for(var te=kt?1:0,he=We.length-1;he>=0&&We[he]==mt;he--)++te;it=ne.to;for(var he=1;he<te;he++){var se=ce.scanForClosingTag(Qe,it,null,Fe);if(!se||se.tag!=mt)return!1;it=se.to}return!0}})},32855:function(Re,Ee,le){(function(ce){ce(le(89780))})(function(ce){"use strict";var Pe=ce.Pos;function Me(he,se){return he.line-se.line||he.ch-se.ch}var Ie="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",je=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+Ie+"]["+je+"]*)","g");function Ge(he,se,ge,ye){this.line=se,this.ch=ge,this.cm=he,this.text=he.getLine(se),this.min=ye?Math.max(ye.from,he.firstLine()):he.firstLine(),this.max=ye?Math.min(ye.to-1,he.lastLine()):he.lastLine()}function st(he,se){var ge=he.cm.getTokenTypeAt(Pe(he.line,se));return ge&&/\btag\b/.test(ge)}function Qe(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function We(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function mt(he){for(;;){var se=he.text.indexOf(">",he.ch);if(se==-1){if(Qe(he))continue;return}if(!st(he,se+1)){he.ch=se+1;continue}var ge=he.text.lastIndexOf("/",se),ye=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,ye?"selfClose":"regular"}}function it(he){for(;;){var se=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(se==-1){if(We(he))continue;return}if(!st(he,se+1)){he.ch=se;continue}Te.lastIndex=se,he.ch=se;var ge=Te.exec(he.text);if(ge&&ge.index==se)return ge}}function kt(he){for(;;){Te.lastIndex=he.ch;var se=Te.exec(he.text);if(!se){if(Qe(he))continue;return}if(!st(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function Fe(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(We(he))continue;return}if(!st(he,se+1)){he.ch=se;continue}var ge=he.text.lastIndexOf("/",se),ye=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,ye?"selfClose":"regular"}}function ne(he,se){for(var ge=[];;){var ye=kt(he),be,Ae=he.line,Le=he.ch-(ye?ye[0].length:0);if(!ye||!(be=mt(he)))return;if(be!="selfClose")if(ye[1]){for(var Ve=ge.length-1;Ve>=0;--Ve)if(ge[Ve]==ye[2]){ge.length=Ve;break}if(Ve<0&&(!se||se==ye[2]))return{tag:ye[2],from:Pe(Ae,Le),to:Pe(he.line,he.ch)}}else ge.push(ye[2])}}function te(he,se){for(var ge=[];;){var ye=Fe(he);if(!ye)return;if(ye=="selfClose"){it(he);continue}var be=he.line,Ae=he.ch,Le=it(he);if(!Le)return;if(Le[1])ge.push(Le[2]);else{for(var Ve=ge.length-1;Ve>=0;--Ve)if(ge[Ve]==Le[2]){ge.length=Ve;break}if(Ve<0&&(!se||se==Le[2]))return{tag:Le[2],from:Pe(he.line,he.ch),to:Pe(be,Ae)}}}}ce.registerHelper("fold","xml",function(he,se){for(var ge=new Ge(he,se.line,0);;){var ye=kt(ge);if(!ye||ge.line!=se.line)return;var be=mt(ge);if(!be)return;if(!ye[1]&&be!="selfClose"){var Ae=Pe(ge.line,ge.ch),Le=ne(ge,ye[2]);return Le&&Me(Le.from,Ae)>0?{from:Ae,to:Le.from}:null}}}),ce.findMatchingTag=function(he,se,ge){var ye=new Ge(he,se.line,se.ch,ge);if(!(ye.text.indexOf(">")==-1&&ye.text.indexOf("<")==-1)){var be=mt(ye),Ae=be&&Pe(ye.line,ye.ch),Le=be&&it(ye);if(!(!be||!Le||Me(ye,se)>0)){var Ve={from:Pe(ye.line,ye.ch),to:Ae,tag:Le[2]};return be=="selfClose"?{open:Ve,close:null,at:"open"}:Le[1]?{open:te(ye,Le[2]),close:Ve,at:"close"}:(ye=new Ge(he,Ae.line,Ae.ch,ge),{open:Ve,close:ne(ye,Le[2]),at:"open"})}}},ce.findEnclosingTag=function(he,se,ge,ye){for(var be=new Ge(he,se.line,se.ch,ge);;){var Ae=te(be,ye);if(!Ae)break;var Le=new Ge(he,se.line,se.ch,ge),Ve=ne(Le,Ae.tag);if(Ve)return{open:Ae,close:Ve}}},ce.scanForClosingTag=function(he,se,ge,ye){var be=new Ge(he,se.line,se.ch,ye?{from:0,to:ye}:null);return ne(be,ge)}})},89780:function(Re){(function(Ee,le){Re.exports=le()})(this,function(){"use strict";var Ee=navigator.userAgent,le=navigator.platform,ce=/gecko\/\d/i.test(Ee),Pe=/MSIE \d/.test(Ee),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee),Ie=/Edge\/(\d+)/.exec(Ee),je=Pe||Me||Ie,Te=je&&(Pe?document.documentMode||6:+(Ie||Me)[1]),Ge=!Ie&&/WebKit\//.test(Ee),st=Ge&&/Qt\/\d+\.\d+/.test(Ee),Qe=!Ie&&/Chrome\//.test(Ee),We=/Opera\//.test(Ee),mt=/Apple Computer/.test(navigator.vendor),it=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ee),kt=/PhantomJS/.test(Ee),Fe=!Ie&&/AppleWebKit/.test(Ee)&&/Mobile\/\w+/.test(Ee),ne=/Android/.test(Ee),te=Fe||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ee),he=Fe||/Mac/.test(le),se=/\bCrOS\b/.test(Ee),ge=/win/i.test(le),ye=We&&Ee.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(We=!1,Ge=!0);var be=he&&(st||We&&(ye==null||ye<12.11)),Ae=ce||je&&Te>=9;function Le(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ve=function(ie,ae){var ve=ie.className,me=Le(ae).exec(ve);if(me){var xe=ve.slice(me.index+me[0].length);ie.className=ve.slice(0,me.index)+(xe?me[1]+xe:"")}};function et(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Je(ie,ae){return et(ie).appendChild(ae)}function rt(ie,ae,ve,me){var xe=document.createElement(ie);if(ve&&(xe.className=ve),me&&(xe.style.cssText=me),typeof ae=="string")xe.appendChild(document.createTextNode(ae));else if(ae)for(var _e=0;_e<ae.length;++_e)xe.appendChild(ae[_e]);return xe}function at(ie,ae,ve,me){var xe=rt(ie,ae,ve,me);return xe.setAttribute("role","presentation"),xe}var tt;document.createRange?tt=function(ie,ae,ve,me){var xe=document.createRange();return xe.setEnd(me||ie,ve),xe.setStart(ie,ae),xe}:tt=function(ie,ae,ve){var me=document.body.createTextRange();try{me.moveToElementText(ie.parentNode)}catch(xe){return me}return me.collapse(!0),me.moveEnd("character",ve),me.moveStart("character",ae),me};function Et(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function Lt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Ut(ie,ae){var ve=ie.className;Le(ae).test(ve)||(ie.className+=(ve?" ":"")+ae)}function on(ie,ae){for(var ve=ie.split(" "),me=0;me<ve.length;me++)ve[me]&&!Le(ve[me]).test(ae)&&(ae+=" "+ve[me]);return ae}var an=function(ie){ie.select()};Fe?an=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:je&&(an=function(ie){try{ie.select()}catch(ae){}});function Kt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function fn(ie,ae,ve){ae||(ae={});for(var me in ie)ie.hasOwnProperty(me)&&(ve!==!1||!ae.hasOwnProperty(me))&&(ae[me]=ie[me]);return ae}function bt(ie,ae,ve,me,xe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var _e=me||0,nt=xe||0;;){var pt=ie.indexOf(" ",_e);if(pt<0||pt>=ae)return nt+(ae-_e);nt+=pt-_e,nt+=ve-nt%ve,_e=pt+1}}var dt=function(){this.id=null,this.f=null,this.time=0,this.handler=Kt(this.onTimeout,this)};dt.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},dt.prototype.set=function(ie,ae){this.f=ae;var ve=+new Date+ie;(!this.id||ve<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ve)};function ct(ie,ae){for(var ve=0;ve<ie.length;++ve)if(ie[ve]==ae)return ve;return-1}var Qt=50,un={toString:function(){return"CodeMirror.Pass"}},Nt={scroll:!1},hn={origin:"*mouse"},cn={origin:"+move"};function Qn(ie,ae,ve){for(var me=0,xe=0;;){var _e=ie.indexOf(" ",me);_e==-1&&(_e=ie.length);var nt=_e-me;if(_e==ie.length||xe+nt>=ae)return me+Math.min(nt,ae-xe);if(xe+=_e-me,xe+=ve-xe%ve,me=_e+1,xe>=ae)return me}}var Bt=[""];function Pt(ie){for(;Bt.length<=ie;)Bt.push(Wt(Bt)+" ");return Bt[ie]}function Wt(ie){return ie[ie.length-1]}function An(ie,ae){for(var ve=[],me=0;me<ie.length;me++)ve[me]=ae(ie[me],me);return ve}function Nn(ie,ae,ve){for(var me=0,xe=ve(ae);me<ie.length&&ve(ie[me])<=xe;)me++;ie.splice(me,0,ae)}function $e(){}function Oe(ie,ae){var ve;return Object.create?ve=Object.create(ie):($e.prototype=ie,ve=new $e),ae&&fn(ae,ve),ve}var ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||ke.test(ie))}function lt(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ke(ie)?!0:ae.test(ie):Ke(ie)}function Ue(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var gt=/[\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 tn(ie){return ie.charCodeAt(0)>=768&>.test(ie)}function Un(ie,ae,ve){for(;(ve<0?ae>0:ae<ie.length)&&tn(ie.charAt(ae));)ae+=ve;return ae}function qn(ie,ae,ve){for(var me=ae>ve?-1:1;;){if(ae==ve)return ae;var xe=(ae+ve)/2,_e=me<0?Math.ceil(xe):Math.floor(xe);if(_e==ae)return ie(_e)?ae:ve;ie(_e)?ve=_e:ae=_e+me}}function nn(ie,ae,ve,me){if(!ie)return me(ae,ve,"ltr",0);for(var xe=!1,_e=0;_e<ie.length;++_e){var nt=ie[_e];(nt.from<ve&&nt.to>ae||ae==ve&&nt.to==ae)&&(me(Math.max(nt.from,ae),Math.min(nt.to,ve),nt.level==1?"rtl":"ltr",_e),xe=!0)}xe||me(ae,ve,"ltr")}var Ht=null;function sn(ie,ae,ve){var me;Ht=null;for(var xe=0;xe<ie.length;++xe){var _e=ie[xe];if(_e.from<ae&&_e.to>ae)return xe;_e.to==ae&&(_e.from!=_e.to&&ve=="before"?me=xe:Ht=xe),_e.from==ae&&(_e.from!=_e.to&&ve!="before"?me=xe:Ht=xe)}return me!=null?me:Ht}var vn=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ve(At){return At<=247?ie.charAt(At):1424<=At&&At<=1524?"R":1536<=At&&At<=1785?ae.charAt(At-1536):1774<=At&&At<=2220?"r":8192<=At&&At<=8203?"w":At==8204?"b":"L"}var me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,_e=/[LRr]/,nt=/[Lb1n]/,pt=/[1n]/;function ht(At,gn,Dt){this.level=At,this.from=gn,this.to=Dt}return function(At,gn){var Dt=gn=="ltr"?"L":"R";if(At.length==0||gn=="ltr"&&!me.test(At))return!1;for(var Hn=At.length,kn=[],Bi=0;Bi<Hn;++Bi)kn.push(ve(At.charCodeAt(Bi)));for(var ji=0,nr=Dt;ji<Hn;++ji){var Er=kn[ji];Er=="m"?kn[ji]=nr:nr=Er}for(var Xr=0,Fr=Dt;Xr<Hn;++Xr){var io=kn[Xr];io=="1"&&Fr=="r"?kn[Xr]="n":_e.test(io)&&(Fr=io,io=="r"&&(kn[Xr]="R"))}for(var Bo=1,Mr=kn[0];Bo<Hn-1;++Bo){var ra=kn[Bo];ra=="+"&&Mr=="1"&&kn[Bo+1]=="1"?kn[Bo]="1":ra==","&&Mr==kn[Bo+1]&&(Mr=="1"||Mr=="n")&&(kn[Bo]=Mr),Mr=ra}for(var cs=0;cs<Hn;++cs){var tl=kn[cs];if(tl==",")kn[cs]="N";else if(tl=="%"){var xs=void 0;for(xs=cs+1;xs<Hn&&kn[xs]=="%";++xs);for(var hu=cs&&kn[cs-1]=="!"||xs<Hn&&kn[xs]=="1"?"1":"N",_l=cs;_l<xs;++_l)kn[_l]=hu;cs=xs-1}}for(var Ks=0,wu=Dt;Ks<Hn;++Ks){var Pl=kn[Ks];wu=="L"&&Pl=="1"?kn[Ks]="L":_e.test(Pl)&&(wu=Pl)}for(var Zs=0;Zs<Hn;++Zs)if(xe.test(kn[Zs])){var Aa=void 0;for(Aa=Zs+1;Aa<Hn&&xe.test(kn[Aa]);++Aa);for(var As=(Zs?kn[Zs-1]:Dt)=="L",ul=(Aa<Hn?kn[Aa]:Dt)=="L",kl=As==ul?As?"L":"R":Dt,cc=Zs;cc<Aa;++cc)kn[cc]=kl;Zs=Aa-1}for(var Es=[],qu,Is=0;Is<Hn;)if(nt.test(kn[Is])){var rf=Is;for(++Is;Is<Hn&&nt.test(kn[Is]);++Is);Es.push(new ht(0,rf,Is))}else{var Bu=Is,Cu=Es.length,fu=gn=="rtl"?1:0;for(++Is;Is<Hn&&kn[Is]!="L";++Is);for(var Xa=Bu;Xa<Is;)if(pt.test(kn[Xa])){Bu<Xa&&(Es.splice(Cu,0,new ht(1,Bu,Xa)),Cu+=fu);var cl=Xa;for(++Xa;Xa<Is&&pt.test(kn[Xa]);++Xa);Es.splice(Cu,0,new ht(2,cl,Xa)),Cu+=fu,Bu=Xa}else++Xa;Bu<Is&&Es.splice(Cu,0,new ht(1,Bu,Is))}return gn=="ltr"&&(Es[0].level==1&&(qu=At.match(/^\s+/))&&(Es[0].from=qu[0].length,Es.unshift(new ht(0,0,qu[0].length))),Wt(Es).level==1&&(qu=At.match(/\s+$/))&&(Wt(Es).to-=qu[0].length,Es.push(new ht(0,Hn-qu[0].length,Hn)))),gn=="rtl"?Es.reverse():Es}}();function Ln(ie,ae){var ve=ie.order;return ve==null&&(ve=ie.order=vn(ie.text,ae)),ve}var xn=[],_t=function(ie,ae,ve){if(ie.addEventListener)ie.addEventListener(ae,ve,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ve);else{var me=ie._handlers||(ie._handlers={});me[ae]=(me[ae]||xn).concat(ve)}};function Vn(ie,ae){return ie._handlers&&ie._handlers[ae]||xn}function Kn(ie,ae,ve){if(ie.removeEventListener)ie.removeEventListener(ae,ve,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ve);else{var me=ie._handlers,xe=me&&me[ae];if(xe){var _e=ct(xe,ve);_e>-1&&(me[ae]=xe.slice(0,_e).concat(xe.slice(_e+1)))}}}function Tn(ie,ae){var ve=Vn(ie,ae);if(ve.length)for(var me=Array.prototype.slice.call(arguments,2),xe=0;xe<ve.length;++xe)ve[xe].apply(null,me)}function jn(ie,ae,ve){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),Tn(ie,ve||ae.type,ie,ae),Vt(ae)||ae.codemirrorIgnore}function Mi(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ve=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),me=0;me<ae.length;++me)ct(ve,ae[me])==-1&&ve.push(ae[me])}function Gn(ie,ae){return Vn(ie,ae).length>0}function wt(ie){ie.prototype.on=function(ae,ve){_t(this,ae,ve)},ie.prototype.off=function(ae,ve){Kn(this,ae,ve)}}function Si(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function wi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Vt(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function qi(ie){Si(ie),wi(ie)}function lr(ie){return ie.target||ie.srcElement}function rr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),he&&ie.ctrlKey&&ae==1&&(ae=3),ae}var In=function(){if(je&&Te<9)return!1;var ie=rt("div");return"draggable"in ie||"dragDrop"in ie}(),Br;function Tr(ie){if(Br==null){var ae=rt("span","\u200B");Je(ie,rt("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Br=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(je&&Te<8))}var ve=Br?rt("span","\u200B"):rt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ve.setAttribute("cm-text",""),ve}var Xi;function Ji(ie){if(Xi!=null)return Xi;var ae=Je(ie,document.createTextNode("A\u062EA")),ve=tt(ae,0,1).getBoundingClientRect(),me=tt(ae,1,2).getBoundingClientRect();return et(ie),!ve||ve.left==ve.right?!1:Xi=me.right-ve.right<3}var Nr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ve=[],me=ie.length;ae<=me;){var xe=ie.indexOf(`
|
|
|
`,ae);xe==-1&&(xe=ie.length);var _e=ie.slice(ae,ie.charAt(xe-1)=="\r"?xe-1:xe),nt=_e.indexOf("\r");nt!=-1?(ve.push(_e.slice(0,nt)),ae+=nt+1):(ve.push(_e),ae=xe+1)}return ve}:function(ie){return ie.split(/\r\n?|\n/)},Be=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ve){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Vi=function(){var ie=rt("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),bi=null;function di(ie){if(bi!=null)return bi;var ae=Je(ie,rt("span","x")),ve=ae.getBoundingClientRect(),me=tt(ae,0,1).getBoundingClientRect();return bi=Math.abs(ve.left-me.left)>1}var Ri={},Fi={};function Ti(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Ri[ie]=ae}function Lr(ie,ae){Fi[ie]=ae}function ln(ie){if(typeof ie=="string"&&Fi.hasOwnProperty(ie))ie=Fi[ie];else if(ie&&typeof ie.name=="string"&&Fi.hasOwnProperty(ie.name)){var ae=Fi[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Oe(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return ln("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return ln("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function pn(ie,ae){ae=ln(ae);var ve=Ri[ae.name];if(!ve)return pn(ie,"text/plain");var me=ve(ie,ae);if($t.hasOwnProperty(ae.name)){var xe=$t[ae.name];for(var _e in xe)xe.hasOwnProperty(_e)&&(me.hasOwnProperty(_e)&&(me["_"+_e]=me[_e]),me[_e]=xe[_e])}if(me.name=ae.name,ae.helperType&&(me.helperType=ae.helperType),ae.modeProps)for(var nt in ae.modeProps)me[nt]=ae.modeProps[nt];return me}var $t={};function wn(ie,ae){var ve=$t.hasOwnProperty(ie)?$t[ie]:$t[ie]={};fn(ae,ve)}function Gi(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ve={};for(var me in ae){var xe=ae[me];xe instanceof Array&&(xe=xe.concat([])),ve[me]=xe}return ve}function Ci(ie,ae){for(var ve;ie.innerMode&&(ve=ie.innerMode(ae),!(!ve||ve.mode==ie));)ae=ve.state,ie=ve.mode;return ve||{mode:ie,state:ae}}function Yi(ie,ae,ve){return ie.startState?ie.startState(ae,ve):!0}var mn=function(ie,ae,ve){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ve};mn.prototype.eol=function(){return this.pos>=this.string.length},mn.prototype.sol=function(){return this.pos==this.lineStart},mn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mn.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),ve;if(typeof ie=="string"?ve=ae==ie:ve=ae&&(ie.test?ie.test(ae):ie(ae)),ve)return++this.pos,ae},mn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},mn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},mn.prototype.skipToEnd=function(){this.pos=this.string.length},mn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},mn.prototype.backUp=function(ie){this.pos-=ie},mn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=bt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?bt(this.string,this.lineStart,this.tabSize):0)},mn.prototype.indentation=function(){return bt(this.string,null,this.tabSize)-(this.lineStart?bt(this.string,this.lineStart,this.tabSize):0)},mn.prototype.match=function(ie,ae,ve){if(typeof ie=="string"){var me=function(nt){return ve?nt.toLowerCase():nt},xe=this.string.substr(this.pos,ie.length);if(me(xe)==me(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var _e=this.string.slice(this.pos).match(ie);return _e&&_e.index>0?null:(_e&&ae!==!1&&(this.pos+=_e[0].length),_e)}},mn.prototype.current=function(){return this.string.slice(this.start,this.pos)},mn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},mn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},mn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Rn(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ve=ie;!ve.lines;)for(var me=0;;++me){var xe=ve.children[me],_e=xe.chunkSize();if(ae<_e){ve=xe;break}ae-=_e}return ve.lines[ae]}function Ui(ie,ae,ve){var me=[],xe=ae.line;return ie.iter(ae.line,ve.line+1,function(_e){var nt=_e.text;xe==ve.line&&(nt=nt.slice(0,ve.ch)),xe==ae.line&&(nt=nt.slice(ae.ch)),me.push(nt),++xe}),me}function or(ie,ae,ve){var me=[];return ie.iter(ae,ve,function(xe){me.push(xe.text)}),me}function ci(ie,ae){var ve=ae-ie.height;if(ve)for(var me=ie;me;me=me.parent)me.height+=ve}function yt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ve=ct(ae.lines,ie),me=ae.parent;me;ae=me,me=me.parent)for(var xe=0;me.children[xe]!=ae;++xe)ve+=me.children[xe].chunkSize();return ve+ae.first}function zt(ie,ae){var ve=ie.first;e:do{for(var me=0;me<ie.children.length;++me){var xe=ie.children[me],_e=xe.height;if(ae<_e){ie=xe;continue e}ae-=_e,ve+=xe.chunkSize()}return ve}while(!ie.lines);for(var nt=0;nt<ie.lines.length;++nt){var pt=ie.lines[nt],ht=pt.height;if(ae<ht)break;ae-=ht}return ve+nt}function li(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function ii(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Rt(ie,ae,ve){if(ve===void 0&&(ve=null),!(this instanceof Rt))return new Rt(ie,ae,ve);this.line=ie,this.ch=ae,this.sticky=ve}function Jn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Ni(ie,ae){return ie.sticky==ae.sticky&&Jn(ie,ae)==0}function en(ie){return Rt(ie.line,ie.ch)}function ze(ie,ae){return Jn(ie,ae)<0?ae:ie}function si(ie,ae){return Jn(ie,ae)<0?ie:ae}function oi(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function yn(ie,ae){if(ae.line<ie.first)return Rt(ie.first,0);var ve=ie.first+ie.size-1;return ae.line>ve?Rt(ve,Rn(ie,ve).text.length):ir(ae,Rn(ie,ae.line).text.length)}function ir(ie,ae){var ve=ie.ch;return ve==null||ve>ae?Rt(ie.line,ae):ve<0?Rt(ie.line,0):ie}function Zi(ie,ae){for(var ve=[],me=0;me<ae.length;me++)ve[me]=yn(ie,ae[me]);return ve}var Fn=function(ie,ae){this.state=ie,this.lookAhead=ae},Li=function(ie,ae,ve,me){this.state=ae,this.doc=ie,this.line=ve,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};Li.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Li.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Li.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Li.fromSaved=function(ie,ae,ve){return ae instanceof Fn?new Li(ie,Gi(ie.mode,ae.state),ve,ae.lookAhead):new Li(ie,Gi(ie.mode,ae),ve)},Li.prototype.save=function(ie){var ae=ie!==!1?Gi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fn(ae,this.maxLookAhead):ae};function jt(ie,ae,ve,me){var xe=[ie.state.modeGen],_e={};jr(ie,ae.text,ie.doc.mode,ve,function(At,gn){return xe.push(At,gn)},_e,me);for(var nt=ve.state,pt=function(At){ve.baseTokens=xe;var gn=ie.state.overlays[At],Dt=1,Hn=0;ve.state=!0,jr(ie,ae.text,gn.mode,ve,function(kn,Bi){for(var ji=Dt;Hn<kn;){var nr=xe[Dt];nr>kn&&xe.splice(Dt,1,kn,xe[Dt+1],nr),Dt+=2,Hn=Math.min(kn,nr)}if(Bi)if(gn.opaque)xe.splice(ji,Dt-ji,kn,"overlay "+Bi),Dt=ji+2;else for(;ji<Dt;ji+=2){var Er=xe[ji+1];xe[ji+1]=(Er?Er+" ":"")+"overlay "+Bi}},_e),ve.state=nt,ve.baseTokens=null,ve.baseTokenPos=1},ht=0;ht<ie.state.overlays.length;++ht)pt(ht);return{styles:xe,classes:_e.bgClass||_e.textClass?_e:null}}function br(ie,ae,ve){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var me=Eo(ie,yt(ae)),xe=ae.text.length>ie.options.maxHighlightLength&&Gi(ie.doc.mode,me.state),_e=jt(ie,ae,me);xe&&(me.state=xe),ae.stateAfter=me.save(!xe),ae.styles=_e.styles,_e.classes?ae.styleClasses=_e.classes:ae.styleClasses&&(ae.styleClasses=null),ve===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Eo(ie,ae,ve){var me=ie.doc,xe=ie.display;if(!me.mode.startState)return new Li(me,!0,ae);var _e=_r(ie,ae,ve),nt=_e>me.first&&Rn(me,_e-1).stateAfter,pt=nt?Li.fromSaved(me,nt,_e):new Li(me,Yi(me.mode),_e);return me.iter(_e,ae,function(ht){Gt(ie,ht.text,pt);var At=pt.line;ht.stateAfter=At==ae-1||At%5==0||At>=xe.viewFrom&&At<xe.viewTo?pt.save():null,pt.nextLine()}),ve&&(me.modeFrontier=pt.line),pt}function Gt(ie,ae,ve,me){var xe=ie.doc.mode,_e=new mn(ae,ie.options.tabSize,ve);for(_e.start=_e.pos=me||0,ae==""&&Wi(xe,ve.state);!_e.eol();)cr(xe,_e,ve.state),_e.start=_e.pos}function Wi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ve=Ci(ie,ae);if(ve.mode.blankLine)return ve.mode.blankLine(ve.state)}}function cr(ie,ae,ve,me){for(var xe=0;xe<10;xe++){me&&(me[0]=Ci(ie,ve).mode);var _e=ie.token(ae,ve);if(ae.pos>ae.start)return _e}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Hi=function(ie,ae,ve){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ve};function Hr(ie,ae,ve,me){var xe=ie.doc,_e=xe.mode,nt;ae=yn(xe,ae);var pt=Rn(xe,ae.line),ht=Eo(ie,ae.line,ve),At=new mn(pt.text,ie.options.tabSize,ht),gn;for(me&&(gn=[]);(me||At.pos<ae.ch)&&!At.eol();)At.start=At.pos,nt=cr(_e,At,ht.state),me&&gn.push(new Hi(At,nt,Gi(xe.mode,ht.state)));return me?gn:new Hi(At,nt,ht.state)}function Rr(ie,ae){if(ie)for(;;){var ve=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ve)break;ie=ie.slice(0,ve.index)+ie.slice(ve.index+ve[0].length);var me=ve[1]?"bgClass":"textClass";ae[me]==null?ae[me]=ve[2]:new RegExp("(?:^|\\s)"+ve[2]+"(?:$|\\s)").test(ae[me])||(ae[me]+=" "+ve[2])}return ie}function jr(ie,ae,ve,me,xe,_e,nt){var pt=ve.flattenSpans;pt==null&&(pt=ie.options.flattenSpans);var ht=0,At=null,gn=new mn(ae,ie.options.tabSize,me),Dt,Hn=ie.options.addModeClass&&[null];for(ae==""&&Rr(Wi(ve,me.state),_e);!gn.eol();){if(gn.pos>ie.options.maxHighlightLength?(pt=!1,nt&&Gt(ie,ae,me,gn.pos),gn.pos=ae.length,Dt=null):Dt=Rr(cr(ve,gn,me.state,Hn),_e),Hn){var kn=Hn[0].name;kn&&(Dt="m-"+(Dt?kn+" "+Dt:kn))}if(!pt||At!=Dt){for(;ht<gn.start;)ht=Math.min(gn.start,ht+5e3),xe(ht,At);At=Dt}gn.start=gn.pos}for(;ht<gn.pos;){var Bi=Math.min(gn.pos,ht+5e3);xe(Bi,At),ht=Bi}}function _r(ie,ae,ve){for(var me,xe,_e=ie.doc,nt=ve?-1:ae-(ie.doc.mode.innerMode?1e3:100),pt=ae;pt>nt;--pt){if(pt<=_e.first)return _e.first;var ht=Rn(_e,pt-1),At=ht.stateAfter;if(At&&(!ve||pt+(At instanceof Fn?At.lookAhead:0)<=_e.modeFrontier))return pt;var gn=bt(ht.text,null,ie.options.tabSize);(xe==null||me>gn)&&(xe=pt-1,me=gn)}return xe}function Ur(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ve=ie.first,me=ae-1;me>ve;me--){var xe=Rn(ie,me).stateAfter;if(xe&&(!(xe instanceof Fn)||me+xe.lookAhead<ae)){ve=me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ve)}}var po=!1,Pn=!1;function bo(){po=!0}function Mn(){Pn=!0}function tr(ie,ae,ve){this.marker=ie,this.from=ae,this.to=ve}function wr(ie,ae){if(ie)for(var ve=0;ve<ie.length;++ve){var me=ie[ve];if(me.marker==ae)return me}}function Sr(ie,ae){for(var ve,me=0;me<ie.length;++me)ie[me]!=ae&&(ve||(ve=[])).push(ie[me]);return ve}function yo(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Or(ie,ae,ve){var me;if(ie)for(var xe=0;xe<ie.length;++xe){var _e=ie[xe],nt=_e.marker,pt=_e.from==null||(nt.inclusiveLeft?_e.from<=ae:_e.from<ae);if(pt||_e.from==ae&&nt.type=="bookmark"&&(!ve||!_e.marker.insertLeft)){var ht=_e.to==null||(nt.inclusiveRight?_e.to>=ae:_e.to>ae);(me||(me=[])).push(new tr(nt,_e.from,ht?null:_e.to))}}return me}function Ar(ie,ae,ve){var me;if(ie)for(var xe=0;xe<ie.length;++xe){var _e=ie[xe],nt=_e.marker,pt=_e.to==null||(nt.inclusiveRight?_e.to>=ae:_e.to>ae);if(pt||_e.from==ae&&nt.type=="bookmark"&&(!ve||_e.marker.insertLeft)){var ht=_e.from==null||(nt.inclusiveLeft?_e.from<=ae:_e.from<ae);(me||(me=[])).push(new tr(nt,ht?null:_e.from-ae,_e.to==null?null:_e.to-ae))}}return me}function To(ie,ae){if(ae.full)return null;var ve=li(ie,ae.from.line)&&Rn(ie,ae.from.line).markedSpans,me=li(ie,ae.to.line)&&Rn(ie,ae.to.line).markedSpans;if(!ve&&!me)return null;var xe=ae.from.ch,_e=ae.to.ch,nt=Jn(ae.from,ae.to)==0,pt=Or(ve,xe,nt),ht=Ar(me,_e,nt),At=ae.text.length==1,gn=Wt(ae.text).length+(At?xe:0);if(pt)for(var Dt=0;Dt<pt.length;++Dt){var Hn=pt[Dt];if(Hn.to==null){var kn=wr(ht,Hn.marker);kn?At&&(Hn.to=kn.to==null?null:kn.to+gn):Hn.to=xe}}if(ht)for(var Bi=0;Bi<ht.length;++Bi){var ji=ht[Bi];if(ji.to!=null&&(ji.to+=gn),ji.from==null){var nr=wr(pt,ji.marker);nr||(ji.from=gn,At&&(pt||(pt=[])).push(ji))}else ji.from+=gn,At&&(pt||(pt=[])).push(ji)}pt&&(pt=rn(pt)),ht&&ht!=pt&&(ht=rn(ht));var Er=[pt];if(!At){var Xr=ae.text.length-2,Fr;if(Xr>0&&pt)for(var io=0;io<pt.length;++io)pt[io].to==null&&(Fr||(Fr=[])).push(new tr(pt[io].marker,null,null));for(var Bo=0;Bo<Xr;++Bo)Er.push(Fr);Er.push(ht)}return Er}function rn(ie){for(var ae=0;ae<ie.length;++ae){var ve=ie[ae];ve.from!=null&&ve.from==ve.to&&ve.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function _n(ie,ae,ve){var me=null;if(ie.iter(ae.line,ve.line+1,function(kn){if(kn.markedSpans)for(var Bi=0;Bi<kn.markedSpans.length;++Bi){var ji=kn.markedSpans[Bi].marker;ji.readOnly&&(!me||ct(me,ji)==-1)&&(me||(me=[])).push(ji)}}),!me)return null;for(var xe=[{from:ae,to:ve}],_e=0;_e<me.length;++_e)for(var nt=me[_e],pt=nt.find(0),ht=0;ht<xe.length;++ht){var At=xe[ht];if(!(Jn(At.to,pt.from)<0||Jn(At.from,pt.to)>0)){var gn=[ht,1],Dt=Jn(At.from,pt.from),Hn=Jn(At.to,pt.to);(Dt<0||!nt.inclusiveLeft&&!Dt)&&gn.push({from:At.from,to:pt.from}),(Hn>0||!nt.inclusiveRight&&!Hn)&&gn.push({from:pt.to,to:At.to}),xe.splice.apply(xe,gn),ht+=gn.length-3}}return xe}function Yt(ie){var ae=ie.markedSpans;if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.detachLine(ie);ie.markedSpans=null}}function qe(ie,ae){if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.attachLine(ie);ie.markedSpans=ae}}function ai(ie){return ie.inclusiveLeft?-1:0}function yi(ie){return ie.inclusiveRight?1:0}function Ki(ie,ae){var ve=ie.lines.length-ae.lines.length;if(ve!=0)return ve;var me=ie.find(),xe=ae.find(),_e=Jn(me.from,xe.from)||ai(ie)-ai(ae);if(_e)return-_e;var nt=Jn(me.to,xe.to)||yi(ie)-yi(ae);return nt||ae.id-ie.id}function _i(ie,ae){var ve=Pn&&ie.markedSpans,me;if(ve)for(var xe=void 0,_e=0;_e<ve.length;++_e)xe=ve[_e],xe.marker.collapsed&&(ae?xe.from:xe.to)==null&&(!me||Ki(me,xe.marker)<0)&&(me=xe.marker);return me}function Ii(ie){return _i(ie,!0)}function On(ie){return _i(ie,!1)}function fi(ie,ae){var ve=Pn&&ie.markedSpans,me;if(ve)for(var xe=0;xe<ve.length;++xe){var _e=ve[xe];_e.marker.collapsed&&(_e.from==null||_e.from<ae)&&(_e.to==null||_e.to>ae)&&(!me||Ki(me,_e.marker)<0)&&(me=_e.marker)}return me}function mi(ie,ae,ve,me,xe){var _e=Rn(ie,ae),nt=Pn&&_e.markedSpans;if(nt)for(var pt=0;pt<nt.length;++pt){var ht=nt[pt];if(ht.marker.collapsed){var At=ht.marker.find(0),gn=Jn(At.from,ve)||ai(ht.marker)-ai(xe),Dt=Jn(At.to,me)||yi(ht.marker)-yi(xe);if(!(gn>=0&&Dt<=0||gn<=0&&Dt>=0)&&(gn<=0&&(ht.marker.inclusiveRight&&xe.inclusiveLeft?Jn(At.to,ve)>=0:Jn(At.to,ve)>0)||gn>=0&&(ht.marker.inclusiveRight&&xe.inclusiveLeft?Jn(At.from,me)<=0:Jn(At.from,me)<0)))return!0}}}function ti(ie){for(var ae;ae=Ii(ie);)ie=ae.find(-1,!0).line;return ie}function gi(ie){for(var ae;ae=On(ie);)ie=ae.find(1,!0).line;return ie}function ui(ie){for(var ae,ve;ae=On(ie);)ie=ae.find(1,!0).line,(ve||(ve=[])).push(ie);return ve}function xi(ie,ae){var ve=Rn(ie,ae),me=ti(ve);return ve==me?ae:yt(me)}function Oi(ie,ae){if(ae>ie.lastLine())return ae;var ve=Rn(ie,ae),me;if(!En(ie,ve))return ae;for(;me=On(ve);)ve=me.find(1,!0).line;return yt(ve)+1}function En(ie,ae){var ve=Pn&&ae.markedSpans;if(ve){for(var me=void 0,xe=0;xe<ve.length;++xe)if(me=ve[xe],!!me.marker.collapsed){if(me.from==null)return!0;if(!me.marker.widgetNode&&me.from==0&&me.marker.inclusiveLeft&&ur(ie,ae,me))return!0}}}function ur(ie,ae,ve){if(ve.to==null){var me=ve.marker.find(1,!0);return ur(ie,me.line,wr(me.line.markedSpans,ve.marker))}if(ve.marker.inclusiveRight&&ve.to==ae.text.length)return!0;for(var xe=void 0,_e=0;_e<ae.markedSpans.length;++_e)if(xe=ae.markedSpans[_e],xe.marker.collapsed&&!xe.marker.widgetNode&&xe.from==ve.to&&(xe.to==null||xe.to!=ve.from)&&(xe.marker.inclusiveLeft||ve.marker.inclusiveRight)&&ur(ie,ae,xe))return!0}function sr(ie){ie=ti(ie);for(var ae=0,ve=ie.parent,me=0;me<ve.lines.length;++me){var xe=ve.lines[me];if(xe==ie)break;ae+=xe.height}for(var _e=ve.parent;_e;ve=_e,_e=ve.parent)for(var nt=0;nt<_e.children.length;++nt){var pt=_e.children[nt];if(pt==ve)break;ae+=pt.height}return ae}function Yr(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ve,me=ie;ve=Ii(me);){var xe=ve.find(0,!0);me=xe.from.line,ae+=xe.from.ch-xe.to.ch}for(me=ie;ve=On(me);){var _e=ve.find(0,!0);ae-=me.text.length-_e.from.ch,me=_e.to.line,ae+=me.text.length-_e.to.ch}return ae}function hr(ie){var ae=ie.display,ve=ie.doc;ae.maxLine=Rn(ve,ve.first),ae.maxLineLength=Yr(ae.maxLine),ae.maxLineChanged=!0,ve.iter(function(me){var xe=Yr(me);xe>ae.maxLineLength&&(ae.maxLineLength=xe,ae.maxLine=me)})}var lo=function(ie,ae,ve){this.text=ie,qe(this,ae),this.height=ve?ve(this):1};lo.prototype.lineNo=function(){return yt(this)},wt(lo);function eo(ie,ae,ve,me){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Yt(ie),qe(ie,ve);var xe=me?me(ie):1;xe!=ie.height&&ci(ie,xe)}function Co(ie){ie.parent=null,Yt(ie)}var uo={},Ao={};function No(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ve=ae.addModeClass?Ao:uo;return ve[ie]||(ve[ie]=ie.replace(/\S+/g,"cm-$&"))}function qt(ie,ae){var ve=at("span",null,null,Ge?"padding-right: .1px":null),me={pre:at("pre",[ve],"CodeMirror-line"),content:ve,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var xe=0;xe<=(ae.rest?ae.rest.length:0);xe++){var _e=xe?ae.rest[xe-1]:ae.line,nt=void 0;me.pos=0,me.addToken=Kr,Ji(ie.display.measure)&&(nt=Ln(_e,ie.doc.direction))&&(me.addToken=fr(me.addToken,nt)),me.map=[];var pt=ae!=ie.display.externalMeasured&&yt(_e);Lo(_e,me,br(ie,_e,pt)),_e.styleClasses&&(_e.styleClasses.bgClass&&(me.bgClass=on(_e.styleClasses.bgClass,me.bgClass||"")),_e.styleClasses.textClass&&(me.textClass=on(_e.styleClasses.textClass,me.textClass||""))),me.map.length==0&&me.map.push(0,0,me.content.appendChild(Tr(ie.display.measure))),xe==0?(ae.measure.map=me.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(me.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ge){var ht=me.content.lastChild;(/\bcm-tab\b/.test(ht.className)||ht.querySelector&&ht.querySelector(".cm-tab"))&&(me.content.className="cm-tab-wrap-hack")}return Tn(ie,"renderLine",ie,ae.line,me.pre),me.pre.className&&(me.textClass=on(me.pre.className,me.textClass||"")),me}function mo(ie){var ae=rt("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function Kr(ie,ae,ve,me,xe,_e,nt){if(ae){var pt=ie.splitSpaces?Pr(ae,ie.trailingSpace):ae,ht=ie.cm.state.specialChars,At=!1,gn;if(!ht.test(ae))ie.col+=ae.length,gn=document.createTextNode(pt),ie.map.push(ie.pos,ie.pos+ae.length,gn),je&&Te<9&&(At=!0),ie.pos+=ae.length;else{gn=document.createDocumentFragment();for(var Dt=0;;){ht.lastIndex=Dt;var Hn=ht.exec(ae),kn=Hn?Hn.index-Dt:ae.length-Dt;if(kn){var Bi=document.createTextNode(pt.slice(Dt,Dt+kn));je&&Te<9?gn.appendChild(rt("span",[Bi])):gn.appendChild(Bi),ie.map.push(ie.pos,ie.pos+kn,Bi),ie.col+=kn,ie.pos+=kn}if(!Hn)break;Dt+=kn+1;var ji=void 0;if(Hn[0]==" "){var nr=ie.cm.options.tabSize,Er=nr-ie.col%nr;ji=gn.appendChild(rt("span",Pt(Er),"cm-tab")),ji.setAttribute("role","presentation"),ji.setAttribute("cm-text"," "),ie.col+=Er}else Hn[0]=="\r"||Hn[0]==`
|
|
|
`?(ji=gn.appendChild(rt("span",Hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ji.setAttribute("cm-text",Hn[0]),ie.col+=1):(ji=ie.cm.options.specialCharPlaceholder(Hn[0]),ji.setAttribute("cm-text",Hn[0]),je&&Te<9?gn.appendChild(rt("span",[ji])):gn.appendChild(ji),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,ji),ie.pos++}}if(ie.trailingSpace=pt.charCodeAt(ae.length-1)==32,ve||me||xe||At||_e||nt){var Xr=ve||"";me&&(Xr+=me),xe&&(Xr+=xe);var Fr=rt("span",[gn],Xr,_e);if(nt)for(var io in nt)nt.hasOwnProperty(io)&&io!="style"&&io!="class"&&Fr.setAttribute(io,nt[io]);return ie.content.appendChild(Fr)}ie.content.appendChild(gn)}}function Pr(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ve=ae,me="",xe=0;xe<ie.length;xe++){var _e=ie.charAt(xe);_e==" "&&ve&&(xe==ie.length-1||ie.charCodeAt(xe+1)==32)&&(_e="\xA0"),me+=_e,ve=_e==" "}return me}function fr(ie,ae){return function(ve,me,xe,_e,nt,pt,ht){xe=xe?xe+" cm-force-border":"cm-force-border";for(var At=ve.pos,gn=At+me.length;;){for(var Dt=void 0,Hn=0;Hn<ae.length&&(Dt=ae[Hn],!(Dt.to>At&&Dt.from<=At));Hn++);if(Dt.to>=gn)return ie(ve,me,xe,_e,nt,pt,ht);ie(ve,me.slice(0,Dt.to-At),xe,_e,null,pt,ht),_e=null,me=me.slice(Dt.to-At),At=Dt.to}}}function co(ie,ae,ve,me){var xe=!me&&ve.widgetNode;xe&&ie.map.push(ie.pos,ie.pos+ae,xe),!me&&ie.cm.display.input.needsContentAttribute&&(xe||(xe=ie.content.appendChild(document.createElement("span"))),xe.setAttribute("cm-marker",ve.id)),xe&&(ie.cm.display.input.setUneditable(xe),ie.content.appendChild(xe)),ie.pos+=ae,ie.trailingSpace=!1}function Lo(ie,ae,ve){var me=ie.markedSpans,xe=ie.text,_e=0;if(!me){for(var nt=1;nt<ve.length;nt+=2)ae.addToken(ae,xe.slice(_e,_e=ve[nt]),No(ve[nt+1],ae.cm.options));return}for(var pt=xe.length,ht=0,At=1,gn="",Dt,Hn,kn=0,Bi,ji,nr,Er,Xr;;){if(kn==ht){Bi=ji=nr=Hn="",Xr=null,Er=null,kn=1/0;for(var Fr=[],io=void 0,Bo=0;Bo<me.length;++Bo){var Mr=me[Bo],ra=Mr.marker;if(ra.type=="bookmark"&&Mr.from==ht&&ra.widgetNode)Fr.push(ra);else if(Mr.from<=ht&&(Mr.to==null||Mr.to>ht||ra.collapsed&&Mr.to==ht&&Mr.from==ht)){if(Mr.to!=null&&Mr.to!=ht&&kn>Mr.to&&(kn=Mr.to,ji=""),ra.className&&(Bi+=" "+ra.className),ra.css&&(Hn=(Hn?Hn+";":"")+ra.css),ra.startStyle&&Mr.from==ht&&(nr+=" "+ra.startStyle),ra.endStyle&&Mr.to==kn&&(io||(io=[])).push(ra.endStyle,Mr.to),ra.title&&((Xr||(Xr={})).title=ra.title),ra.attributes)for(var cs in ra.attributes)(Xr||(Xr={}))[cs]=ra.attributes[cs];ra.collapsed&&(!Er||Ki(Er.marker,ra)<0)&&(Er=Mr)}else Mr.from>ht&&kn>Mr.from&&(kn=Mr.from)}if(io)for(var tl=0;tl<io.length;tl+=2)io[tl+1]==kn&&(ji+=" "+io[tl]);if(!Er||Er.from==ht)for(var xs=0;xs<Fr.length;++xs)co(ae,0,Fr[xs]);if(Er&&(Er.from||0)==ht){if(co(ae,(Er.to==null?pt+1:Er.to)-ht,Er.marker,Er.from==null),Er.to==null)return;Er.to==ht&&(Er=!1)}}if(ht>=pt)break;for(var hu=Math.min(pt,kn);;){if(gn){var _l=ht+gn.length;if(!Er){var Ks=_l>hu?gn.slice(0,hu-ht):gn;ae.addToken(ae,Ks,Dt?Dt+Bi:Bi,nr,ht+Ks.length==kn?ji:"",Hn,Xr)}if(_l>=hu){gn=gn.slice(hu-ht),ht=hu;break}ht=_l,nr=""}gn=xe.slice(_e,_e=ve[At++]),Dt=No(ve[At++],ae.cm.options)}}}function dn(ie,ae,ve){this.line=ae,this.rest=ui(ae),this.size=this.rest?yt(Wt(this.rest))-ve+1:1,this.node=this.text=null,this.hidden=En(ie,ae)}function Gr(ie,ae,ve){for(var me=[],xe,_e=ae;_e<ve;_e=xe){var nt=new dn(ie.doc,Rn(ie.doc,_e),_e);xe=_e+nt.size,me.push(nt)}return me}var Uo=null;function Sa(ie){Uo?Uo.ops.push(ie):ie.ownsGroup=Uo={ops:[ie],delayedCallbacks:[]}}function Ya(ie){var ae=ie.delayedCallbacks,ve=0;do{for(;ve<ae.length;ve++)ae[ve].call(null);for(var me=0;me<ie.ops.length;me++){var xe=ie.ops[me];if(xe.cursorActivityHandlers)for(;xe.cursorActivityCalled<xe.cursorActivityHandlers.length;)xe.cursorActivityHandlers[xe.cursorActivityCalled++].call(null,xe.cm)}}while(ve<ae.length)}function bs(ie,ae){var ve=ie.ownsGroup;if(ve)try{Ya(ve)}finally{Uo=null,ae(ve)}}var ts=null;function xr(ie,ae){var ve=Vn(ie,ae);if(ve.length){var me=Array.prototype.slice.call(arguments,2),xe;Uo?xe=Uo.delayedCallbacks:ts?xe=ts:(xe=ts=[],setTimeout(ca,0));for(var _e=function(pt){xe.push(function(){return ve[pt].apply(null,me)})},nt=0;nt<ve.length;++nt)_e(nt)}}function ca(){var ie=ts;ts=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function da(ie,ae,ve,me){for(var xe=0;xe<ae.changes.length;xe++){var _e=ae.changes[xe];_e=="text"?Pi(ie,ae):_e=="gutter"?Dr(ie,ae,ve,me):_e=="class"?dr(ie,ae):_e=="widget"&&to(ie,ae,me)}ae.changes=null}function Ra(ie){return ie.node==ie.text&&(ie.node=rt("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),je&&Te<8&&(ie.node.style.zIndex=2)),ie.node}function va(ie,ae){var ve=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ve&&(ve+=" CodeMirror-linebackground"),ae.background)ve?ae.background.className=ve:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ve){var me=Ra(ae);ae.background=me.insertBefore(rt("div",null,ve),me.firstChild),ie.display.input.setUneditable(ae.background)}}function Pa(ie,ae){var ve=ie.display.externalMeasured;return ve&&ve.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ve.measure,ve.built):qt(ie,ae)}function Pi(ie,ae){var ve=ae.text.className,me=Pa(ie,ae);ae.text==ae.node&&(ae.node=me.pre),ae.text.parentNode.replaceChild(me.pre,ae.text),ae.text=me.pre,me.bgClass!=ae.bgClass||me.textClass!=ae.textClass?(ae.bgClass=me.bgClass,ae.textClass=me.textClass,dr(ie,ae)):ve&&(ae.text.className=ve)}function dr(ie,ae){va(ie,ae),ae.line.wrapClass?Ra(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ve=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ve||""}function Dr(ie,ae,ve,me){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var xe=Ra(ae);ae.gutterBackground=rt("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px; width: "+me.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),xe.insertBefore(ae.gutterBackground,ae.text)}var _e=ae.line.gutterMarkers;if(ie.options.lineNumbers||_e){var nt=Ra(ae),pt=ae.gutter=rt("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(pt),nt.insertBefore(pt,ae.text),ae.line.gutterClass&&(pt.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!_e||!_e["CodeMirror-linenumbers"])&&(ae.lineNumber=pt.appendChild(rt("div",ii(ie.options,ve),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),_e)for(var ht=0;ht<ie.display.gutterSpecs.length;++ht){var At=ie.display.gutterSpecs[ht].className,gn=_e.hasOwnProperty(At)&&_e[At];gn&&pt.appendChild(rt("div",[gn],"CodeMirror-gutter-elt","left: "+me.gutterLeft[At]+"px; width: "+me.gutterWidth[At]+"px"))}}}function to(ie,ae,ve){ae.alignable&&(ae.alignable=null);for(var me=Le("CodeMirror-linewidget"),xe=ae.node.firstChild,_e=void 0;xe;xe=_e)_e=xe.nextSibling,me.test(xe.className)&&ae.node.removeChild(xe);Wo(ie,ae,ve)}function oo(ie,ae,ve,me){var xe=Pa(ie,ae);return ae.text=ae.node=xe.pre,xe.bgClass&&(ae.bgClass=xe.bgClass),xe.textClass&&(ae.textClass=xe.textClass),dr(ie,ae),Dr(ie,ae,ve,me),Wo(ie,ae,me),ae.node}function Wo(ie,ae,ve){if(vr(ie,ae.line,ae,ve,!0),ae.rest)for(var me=0;me<ae.rest.length;me++)vr(ie,ae.rest[me],ae,ve,!1)}function vr(ie,ae,ve,me,xe){if(ae.widgets)for(var _e=Ra(ve),nt=0,pt=ae.widgets;nt<pt.length;++nt){var ht=pt[nt],At=rt("div",[ht.node],"CodeMirror-linewidget"+(ht.className?" "+ht.className:""));ht.handleMouseEvents||At.setAttribute("cm-ignore-events","true"),Ua(ht,At,ve,me),ie.display.input.setUneditable(At),xe&&ht.above?_e.insertBefore(At,ve.gutter||ve.text):_e.appendChild(At),xr(ht,"redraw")}}function Ua(ie,ae,ve,me){if(ie.noHScroll){(ve.alignable||(ve.alignable=[])).push(ae);var xe=me.wrapperWidth;ae.style.left=me.fixedPos+"px",ie.coverGutter||(xe-=me.gutterTotalWidth,ae.style.paddingLeft=me.gutterTotalWidth+"px"),ae.style.width=xe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-me.gutterTotalWidth+"px"))}function ha(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Et(document.body,ie.node)){var ve="position: relative;";ie.coverGutter&&(ve+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ve+="width: "+ae.display.wrapper.clientWidth+"px;"),Je(ae.display.measure,rt("div",[ie.node],null,ve))}return ie.height=ie.node.parentNode.offsetHeight}function Ea(ie,ae){for(var ve=lr(ae);ve!=ie.wrapper;ve=ve.parentNode)if(!ve||ve.nodeType==1&&ve.getAttribute("cm-ignore-events")=="true"||ve.parentNode==ie.sizer&&ve!=ie.mover)return!0}function ho(ie){return ie.lineSpace.offsetTop}function Yo(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function fs(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=Je(ie.measure,rt("pre","x","CodeMirror-line-like")),ve=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,me={left:parseInt(ve.paddingLeft),right:parseInt(ve.paddingRight)};return!isNaN(me.left)&&!isNaN(me.right)&&(ie.cachedPaddingH=me),me}function ia(ie){return Qt-ie.display.nativeBarWidth}function os(ie){return ie.display.scroller.clientWidth-ia(ie)-ie.display.barWidth}function Ns(ie){return ie.display.scroller.clientHeight-ia(ie)-ie.display.barHeight}function ws(ie,ae,ve){var me=ie.options.lineWrapping,xe=me&&os(ie);if(!ae.measure.heights||me&&ae.measure.width!=xe){var _e=ae.measure.heights=[];if(me){ae.measure.width=xe;for(var nt=ae.text.firstChild.getClientRects(),pt=0;pt<nt.length-1;pt++){var ht=nt[pt],At=nt[pt+1];Math.abs(ht.bottom-At.bottom)>2&&_e.push((ht.bottom+At.top)/2-ve.top)}}_e.push(ve.bottom-ve.top)}}function ba(ie,ae,ve){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var me=0;me<ie.rest.length;me++)if(ie.rest[me]==ae)return{map:ie.measure.maps[me],cache:ie.measure.caches[me]};for(var xe=0;xe<ie.rest.length;xe++)if(yt(ie.rest[xe])>ve)return{map:ie.measure.maps[xe],cache:ie.measure.caches[xe],before:!0}}function Qs(ie,ae){ae=ti(ae);var ve=yt(ae),me=ie.display.externalMeasured=new dn(ie.doc,ae,ve);me.lineN=ve;var xe=me.built=qt(ie,me);return me.text=xe.pre,Je(ie.display.lineMeasure,xe.pre),me}function Wl(ie,ae,ve,me){return Rs(ie,js(ie,ae),ve,me)}function Ms(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[Us(ie,ae)];var ve=ie.display.externalMeasured;if(ve&&ae>=ve.lineN&&ae<ve.lineN+ve.size)return ve}function js(ie,ae){var ve=yt(ae),me=Ms(ie,ve);me&&!me.text?me=null:me&&me.changes&&(da(ie,me,ve,qa(ie)),ie.curOp.forceUpdate=!0),me||(me=Qs(ie,ae));var xe=ba(me,ae,ve);return{line:ae,view:me,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function Rs(ie,ae,ve,me,xe){ae.before&&(ve=-1);var _e=ve+(me||""),nt;return ae.cache.hasOwnProperty(_e)?nt=ae.cache[_e]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(ws(ie,ae.view,ae.rect),ae.hasHeights=!0),nt=ka(ie,ae,ve,me),nt.bogus||(ae.cache[_e]=nt)),{left:nt.left,right:nt.right,top:xe?nt.rtop:nt.top,bottom:xe?nt.rbottom:nt.bottom}}var Rl={left:0,right:0,top:0,bottom:0};function iu(ie,ae,ve){for(var me,xe,_e,nt,pt,ht,At=0;At<ie.length;At+=3)if(pt=ie[At],ht=ie[At+1],ae<pt?(xe=0,_e=1,nt="left"):ae<ht?(xe=ae-pt,_e=xe+1):(At==ie.length-3||ae==ht&&ie[At+3]>ae)&&(_e=ht-pt,xe=_e-1,ae>=ht&&(nt="right")),xe!=null){if(me=ie[At+2],pt==ht&&ve==(me.insertLeft?"left":"right")&&(nt=ve),ve=="left"&&xe==0)for(;At&&ie[At-2]==ie[At-3]&&ie[At-1].insertLeft;)me=ie[(At-=3)+2],nt="left";if(ve=="right"&&xe==ht-pt)for(;At<ie.length-3&&ie[At+3]==ie[At+4]&&!ie[At+5].insertLeft;)me=ie[(At+=3)+2],nt="right";break}return{node:me,start:xe,end:_e,collapse:nt,coverStart:pt,coverEnd:ht}}function ru(ie,ae){var ve=Rl;if(ae=="left")for(var me=0;me<ie.length&&(ve=ie[me]).left==ve.right;me++);else for(var xe=ie.length-1;xe>=0&&(ve=ie[xe]).left==ve.right;xe--);return ve}function ka(ie,ae,ve,me){var xe=iu(ae.map,ve,me),_e=xe.node,nt=xe.start,pt=xe.end,ht=xe.collapse,At;if(_e.nodeType==3){for(var gn=0;gn<4;gn++){for(;nt&&tn(ae.line.text.charAt(xe.coverStart+nt));)--nt;for(;xe.coverStart+pt<xe.coverEnd&&tn(ae.line.text.charAt(xe.coverStart+pt));)++pt;if(je&&Te<9&&nt==0&&pt==xe.coverEnd-xe.coverStart?At=_e.parentNode.getBoundingClientRect():At=ru(tt(_e,nt,pt).getClientRects(),me),At.left||At.right||nt==0)break;pt=nt,nt=nt-1,ht="right"}je&&Te<11&&(At=ou(ie.display.measure,At))}else{nt>0&&(ht=me="right");var Dt;ie.options.lineWrapping&&(Dt=_e.getClientRects()).length>1?At=Dt[me=="right"?Dt.length-1:0]:At=_e.getBoundingClientRect()}if(je&&Te<9&&!nt&&(!At||!At.left&&!At.right)){var Hn=_e.parentNode.getClientRects()[0];Hn?At={left:Hn.left,right:Hn.left+as(ie.display),top:Hn.top,bottom:Hn.bottom}:At=Rl}for(var kn=At.top-ae.rect.top,Bi=At.bottom-ae.rect.top,ji=(kn+Bi)/2,nr=ae.view.measure.heights,Er=0;Er<nr.length-1&&!(ji<nr[Er]);Er++);var Xr=Er?nr[Er-1]:0,Fr=nr[Er],io={left:(ht=="right"?At.right:At.left)-ae.rect.left,right:(ht=="left"?At.left:At.right)-ae.rect.left,top:Xr,bottom:Fr};return!At.left&&!At.right&&(io.bogus=!0),ie.options.singleCursorHeightPerLine||(io.rtop=kn,io.rbottom=Bi),io}function ou(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!di(ie))return ae;var ve=screen.logicalXDPI/screen.deviceXDPI,me=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ve,right:ae.right*ve,top:ae.top*me,bottom:ae.bottom*me}}function Mu(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function xl(ie){ie.display.externalMeasure=null,et(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)Mu(ie.display.view[ae])}function Zn(ie){xl(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function gr(){return Qe&&ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Wr(){return Qe&&ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Qr(ie){var ae=0;if(ie.widgets)for(var ve=0;ve<ie.widgets.length;++ve)ie.widgets[ve].above&&(ae+=ha(ie.widgets[ve]));return ae}function wo(ie,ae,ve,me,xe){if(!xe){var _e=Qr(ae);ve.top+=_e,ve.bottom+=_e}if(me=="line")return ve;me||(me="local");var nt=sr(ae);if(me=="local"?nt+=ho(ie.display):nt-=ie.display.viewOffset,me=="page"||me=="window"){var pt=ie.display.lineSpace.getBoundingClientRect();nt+=pt.top+(me=="window"?0:Wr());var ht=pt.left+(me=="window"?0:gr());ve.left+=ht,ve.right+=ht}return ve.top+=nt,ve.bottom+=nt,ve}function Ro(ie,ae,ve){if(ve=="div")return ae;var me=ae.left,xe=ae.top;if(ve=="page")me-=gr(),xe-=Wr();else if(ve=="local"||!ve){var _e=ie.display.sizer.getBoundingClientRect();me+=_e.left,xe+=_e.top}var nt=ie.display.lineSpace.getBoundingClientRect();return{left:me-nt.left,top:xe-nt.top}}function aa(ie,ae,ve,me,xe){return me||(me=Rn(ie.doc,ae.line)),wo(ie,me,Wl(ie,me,ae.ch,xe),ve)}function vo(ie,ae,ve,me,xe,_e){me=me||Rn(ie.doc,ae.line),xe||(xe=js(ie,me));function nt(Bi,ji){var nr=Rs(ie,xe,Bi,ji?"right":"left",_e);return ji?nr.left=nr.right:nr.right=nr.left,wo(ie,me,nr,ve)}var pt=Ln(me,ie.doc.direction),ht=ae.ch,At=ae.sticky;if(ht>=me.text.length?(ht=me.text.length,At="before"):ht<=0&&(ht=0,At="after"),!pt)return nt(At=="before"?ht-1:ht,At=="before");function gn(Bi,ji,nr){var Er=pt[ji],Xr=Er.level==1;return nt(nr?Bi-1:Bi,Xr!=nr)}var Dt=sn(pt,ht,At),Hn=Ht,kn=gn(ht,Dt,At=="before");return Hn!=null&&(kn.other=gn(ht,Hn,At!="before")),kn}function fo(ie,ae){var ve=0;ae=yn(ie.doc,ae),ie.options.lineWrapping||(ve=as(ie.display)*ae.ch);var me=Rn(ie.doc,ae.line),xe=sr(me)+ho(ie.display);return{left:ve,right:ve,top:xe,bottom:xe+me.height}}function Vr(ie,ae,ve,me,xe){var _e=Rt(ie,ae,ve);return _e.xRel=xe,me&&(_e.outside=me),_e}function ea(ie,ae,ve){var me=ie.doc;if(ve+=ie.display.viewOffset,ve<0)return Vr(me.first,0,null,-1,-1);var xe=zt(me,ve),_e=me.first+me.size-1;if(xe>_e)return Vr(me.first+me.size-1,Rn(me,_e).text.length,null,1,1);ae<0&&(ae=0);for(var nt=Rn(me,xe);;){var pt=Wn(ie,nt,xe,ae,ve),ht=fi(nt,pt.ch+(pt.xRel>0||pt.outside>0?1:0));if(!ht)return pt;var At=ht.find(1);if(At.line==xe)return At;nt=Rn(me,xe=At.line)}}function $i(ie,ae,ve,me){me-=Qr(ae);var xe=ae.text.length,_e=qn(function(nt){return Rs(ie,ve,nt-1).bottom<=me},xe,0);return xe=qn(function(nt){return Rs(ie,ve,nt).top>me},_e,xe),{begin:_e,end:xe}}function Ta(ie,ae,ve,me){ve||(ve=js(ie,ae));var xe=wo(ie,ae,Rs(ie,ve,me),"line").top;return $i(ie,ae,ve,xe)}function It(ie,ae,ve,me){return ie.bottom<=ve?!1:ie.top>ve?!0:(me?ie.left:ie.right)>ae}function Wn(ie,ae,ve,me,xe){xe-=sr(ae);var _e=js(ie,ae),nt=Qr(ae),pt=0,ht=ae.text.length,At=!0,gn=Ln(ae,ie.doc.direction);if(gn){var Dt=(ie.options.lineWrapping?Gs:Cs)(ie,ae,ve,_e,gn,me,xe);At=Dt.level!=1,pt=At?Dt.from:Dt.to-1,ht=At?Dt.to:Dt.from-1}var Hn=null,kn=null,Bi=qn(function(Bo){var Mr=Rs(ie,_e,Bo);return Mr.top+=nt,Mr.bottom+=nt,It(Mr,me,xe,!1)?(Mr.top<=xe&&Mr.left<=me&&(Hn=Bo,kn=Mr),!0):!1},pt,ht),ji,nr,Er=!1;if(kn){var Xr=me-kn.left<kn.right-me,Fr=Xr==At;Bi=Hn+(Fr?0:1),nr=Fr?"after":"before",ji=Xr?kn.left:kn.right}else{!At&&(Bi==ht||Bi==pt)&&Bi++,nr=Bi==0?"after":Bi==ae.text.length?"before":Rs(ie,_e,Bi-(At?1:0)).bottom+nt<=xe==At?"after":"before";var io=vo(ie,Rt(ve,Bi,nr),"line",ae,_e);ji=io.left,Er=xe<io.top?-1:xe>=io.bottom?1:0}return Bi=Un(ae.text,Bi,1),Vr(ve,Bi,nr,Er,me-ji)}function Cs(ie,ae,ve,me,xe,_e,nt){var pt=qn(function(Dt){var Hn=xe[Dt],kn=Hn.level!=1;return It(vo(ie,Rt(ve,kn?Hn.to:Hn.from,kn?"before":"after"),"line",ae,me),_e,nt,!0)},0,xe.length-1),ht=xe[pt];if(pt>0){var At=ht.level!=1,gn=vo(ie,Rt(ve,At?ht.from:ht.to,At?"after":"before"),"line",ae,me);It(gn,_e,nt,!0)&&gn.top>nt&&(ht=xe[pt-1])}return ht}function Gs(ie,ae,ve,me,xe,_e,nt){var pt=$i(ie,ae,me,nt),ht=pt.begin,At=pt.end;/\s/.test(ae.text.charAt(At-1))&&At--;for(var gn=null,Dt=null,Hn=0;Hn<xe.length;Hn++){var kn=xe[Hn];if(!(kn.from>=At||kn.to<=ht)){var Bi=kn.level!=1,ji=Rs(ie,me,Bi?Math.min(At,kn.to)-1:Math.max(ht,kn.from)).right,nr=ji<_e?_e-ji+1e9:ji-_e;(!gn||Dt>nr)&&(gn=kn,Dt=nr)}}return gn||(gn=xe[xe.length-1]),gn.from<ht&&(gn={from:ht,to:gn.to,level:gn.level}),gn.to>At&&(gn={from:gn.from,to:At,level:gn.level}),gn}var Na;function Wa(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Na==null){Na=rt("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Na.appendChild(document.createTextNode("x")),Na.appendChild(rt("br"));Na.appendChild(document.createTextNode("x"))}Je(ie.measure,Na);var ve=Na.offsetHeight/50;return ve>3&&(ie.cachedTextHeight=ve),et(ie.measure),ve||1}function as(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=rt("span","xxxxxxxxxx"),ve=rt("pre",[ae],"CodeMirror-line-like");Je(ie.measure,ve);var me=ae.getBoundingClientRect(),xe=(me.right-me.left)/10;return xe>2&&(ie.cachedCharWidth=xe),xe||10}function qa(ie){for(var ae=ie.display,ve={},me={},xe=ae.gutters.clientLeft,_e=ae.gutters.firstChild,nt=0;_e;_e=_e.nextSibling,++nt){var pt=ie.display.gutterSpecs[nt].className;ve[pt]=_e.offsetLeft+_e.clientLeft+xe,me[pt]=_e.clientWidth}return{fixedPos:El(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ve,gutterWidth:me,wrapperWidth:ae.wrapper.clientWidth}}function El(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function wa(ie){var ae=Wa(ie.display),ve=ie.options.lineWrapping,me=ve&&Math.max(5,ie.display.scroller.clientWidth/as(ie.display)-3);return function(xe){if(En(ie.doc,xe))return 0;var _e=0;if(xe.widgets)for(var nt=0;nt<xe.widgets.length;nt++)xe.widgets[nt].height&&(_e+=xe.widgets[nt].height);return ve?_e+(Math.ceil(xe.text.length/me)||1)*ae:_e+ae}}function qr(ie){var ae=ie.doc,ve=wa(ie);ae.iter(function(me){var xe=ve(me);xe!=me.height&&ci(me,xe)})}function ms(ie,ae,ve,me){var xe=ie.display;if(!ve&&lr(ae).getAttribute("cm-not-content")=="true")return null;var _e,nt,pt=xe.lineSpace.getBoundingClientRect();try{_e=ae.clientX-pt.left,nt=ae.clientY-pt.top}catch(Dt){return null}var ht=ea(ie,_e,nt),At;if(me&&ht.xRel>0&&(At=Rn(ie.doc,ht.line).text).length==ht.ch){var gn=bt(At,At.length,ie.options.tabSize)-At.length;ht=Rt(ht.line,Math.max(0,Math.round((_e-fs(ie.display).left)/as(ie.display))-gn))}return ht}function Us(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ve=ie.display.view,me=0;me<ve.length;me++)if(ae-=ve[me].size,ae<0)return me}function qo(ie,ae,ve,me){ae==null&&(ae=ie.doc.first),ve==null&&(ve=ie.doc.first+ie.doc.size),me||(me=0);var xe=ie.display;if(me&&ve<xe.viewTo&&(xe.updateLineNumbers==null||xe.updateLineNumbers>ae)&&(xe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=xe.viewTo)Pn&&xi(ie.doc,ae)<xe.viewTo&&Oa(ie);else if(ve<=xe.viewFrom)Pn&&Oi(ie.doc,ve+me)>xe.viewFrom?Oa(ie):(xe.viewFrom+=me,xe.viewTo+=me);else if(ae<=xe.viewFrom&&ve>=xe.viewTo)Oa(ie);else if(ae<=xe.viewFrom){var _e=Ws(ie,ve,ve+me,1);_e?(xe.view=xe.view.slice(_e.index),xe.viewFrom=_e.lineN,xe.viewTo+=me):Oa(ie)}else if(ve>=xe.viewTo){var nt=Ws(ie,ae,ae,-1);nt?(xe.view=xe.view.slice(0,nt.index),xe.viewTo=nt.lineN):Oa(ie)}else{var pt=Ws(ie,ae,ae,-1),ht=Ws(ie,ve,ve+me,1);pt&&ht?(xe.view=xe.view.slice(0,pt.index).concat(Gr(ie,pt.lineN,ht.lineN)).concat(xe.view.slice(ht.index)),xe.viewTo+=me):Oa(ie)}var At=xe.externalMeasured;At&&(ve<At.lineN?At.lineN+=me:ae<At.lineN+At.size&&(xe.externalMeasured=null))}function Oo(ie,ae,ve){ie.curOp.viewChanged=!0;var me=ie.display,xe=ie.display.externalMeasured;if(xe&&ae>=xe.lineN&&ae<xe.lineN+xe.size&&(me.externalMeasured=null),!(ae<me.viewFrom||ae>=me.viewTo)){var _e=me.view[Us(ie,ae)];if(_e.node!=null){var nt=_e.changes||(_e.changes=[]);ct(nt,ve)==-1&&nt.push(ve)}}}function Oa(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Ws(ie,ae,ve,me){var xe=Us(ie,ae),_e,nt=ie.display.view;if(!Pn||ve==ie.doc.first+ie.doc.size)return{index:xe,lineN:ve};for(var pt=ie.display.viewFrom,ht=0;ht<xe;ht++)pt+=nt[ht].size;if(pt!=ae){if(me>0){if(xe==nt.length-1)return null;_e=pt+nt[xe].size-ae,xe++}else _e=pt-ae;ae+=_e,ve+=_e}for(;xi(ie.doc,ve)!=ve;){if(xe==(me<0?0:nt.length-1))return null;ve+=me*nt[xe-(me<0?1:0)].size,xe+=me}return{index:xe,lineN:ve}}function xa(ie,ae,ve){var me=ie.display,xe=me.view;xe.length==0||ae>=me.viewTo||ve<=me.viewFrom?(me.view=Gr(ie,ae,ve),me.viewFrom=ae):(me.viewFrom>ae?me.view=Gr(ie,ae,me.viewFrom).concat(me.view):me.viewFrom<ae&&(me.view=me.view.slice(Us(ie,ae))),me.viewFrom=ae,me.viewTo<ve?me.view=me.view.concat(Gr(ie,me.viewTo,ve)):me.viewTo>ve&&(me.view=me.view.slice(0,Us(ie,ve)))),me.viewTo=ve}function Js(ie){for(var ae=ie.display.view,ve=0,me=0;me<ae.length;me++){var xe=ae[me];!xe.hidden&&(!xe.node||xe.changes)&&++ve}return ve}function ss(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function yu(ie,ae){ae===void 0&&(ae=!0);for(var ve=ie.doc,me={},xe=me.cursors=document.createDocumentFragment(),_e=me.selection=document.createDocumentFragment(),nt=0;nt<ve.sel.ranges.length;nt++)if(!(!ae&&nt==ve.sel.primIndex)){var pt=ve.sel.ranges[nt];if(!(pt.from().line>=ie.display.viewTo||pt.to().line<ie.display.viewFrom)){var ht=pt.empty();(ht||ie.options.showCursorWhenSelecting)&&ta(ie,pt.head,xe),ht||Ko(ie,pt,_e)}}return me}function ta(ie,ae,ve){var me=vo(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),xe=ve.appendChild(rt("div","\xA0","CodeMirror-cursor"));if(xe.style.left=me.left+"px",xe.style.top=me.top+"px",xe.style.height=Math.max(0,me.bottom-me.top)*ie.options.cursorHeight+"px",me.other){var _e=ve.appendChild(rt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));_e.style.display="",_e.style.left=me.other.left+"px",_e.style.top=me.other.top+"px",_e.style.height=(me.other.bottom-me.other.top)*.85+"px"}}function vs(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Ko(ie,ae,ve){var me=ie.display,xe=ie.doc,_e=document.createDocumentFragment(),nt=fs(ie.display),pt=nt.left,ht=Math.max(me.sizerWidth,os(ie)-me.sizer.offsetLeft)-nt.right,At=xe.direction=="ltr";function gn(Fr,io,Bo,Mr){io<0&&(io=0),io=Math.round(io),Mr=Math.round(Mr),_e.appendChild(rt("div",null,"CodeMirror-selected","position: absolute; left: "+Fr+`px;
|
|
|
top: `+io+"px; width: "+(Bo==null?ht-Fr:Bo)+`px;
|
|
|
height: `+(Mr-io)+"px"))}function Dt(Fr,io,Bo){var Mr=Rn(xe,Fr),ra=Mr.text.length,cs,tl;function xs(Ks,wu){return aa(ie,Rt(Fr,Ks),"div",Mr,wu)}function hu(Ks,wu,Pl){var Zs=Ta(ie,Mr,null,Ks),Aa=wu=="ltr"==(Pl=="after")?"left":"right",As=Pl=="after"?Zs.begin:Zs.end-(/\s/.test(Mr.text.charAt(Zs.end-1))?2:1);return xs(As,Aa)[Aa]}var _l=Ln(Mr,xe.direction);return nn(_l,io||0,Bo==null?ra:Bo,function(Ks,wu,Pl,Zs){var Aa=Pl=="ltr",As=xs(Ks,Aa?"left":"right"),ul=xs(wu-1,Aa?"right":"left"),kl=io==null&&Ks==0,cc=Bo==null&&wu==ra,Es=Zs==0,qu=!_l||Zs==_l.length-1;if(ul.top-As.top<=3){var Is=(At?kl:cc)&&Es,rf=(At?cc:kl)&&qu,Bu=Is?pt:(Aa?As:ul).left,Cu=rf?ht:(Aa?ul:As).right;gn(Bu,As.top,Cu-Bu,As.bottom)}else{var fu,Xa,cl,Fc;Aa?(fu=At&&kl&&Es?pt:As.left,Xa=At?ht:hu(Ks,Pl,"before"),cl=At?pt:hu(wu,Pl,"after"),Fc=At&&cc&&qu?ht:ul.right):(fu=At?hu(Ks,Pl,"before"):pt,Xa=!At&&kl&&Es?ht:As.right,cl=!At&&cc&&qu?pt:ul.left,Fc=At?hu(wu,Pl,"after"):ht),gn(fu,As.top,Xa-fu,As.bottom),As.bottom<ul.top&&gn(pt,As.bottom,null,ul.top),gn(cl,ul.top,Fc-cl,ul.bottom)}(!cs||vs(As,cs)<0)&&(cs=As),vs(ul,cs)<0&&(cs=ul),(!tl||vs(As,tl)<0)&&(tl=As),vs(ul,tl)<0&&(tl=ul)}),{start:cs,end:tl}}var Hn=ae.from(),kn=ae.to();if(Hn.line==kn.line)Dt(Hn.line,Hn.ch,kn.ch);else{var Bi=Rn(xe,Hn.line),ji=Rn(xe,kn.line),nr=ti(Bi)==ti(ji),Er=Dt(Hn.line,Hn.ch,nr?Bi.text.length+1:null).end,Xr=Dt(kn.line,nr?0:null,kn.ch).start;nr&&(Er.top<Xr.top-2?(gn(Er.right,Er.top,null,Er.bottom),gn(pt,Xr.top,Xr.left,Xr.bottom)):gn(Er.right,Er.top,Xr.left-Er.right,Er.bottom)),Er.bottom<Xr.top&&gn(pt,Er.bottom,null,Xr.top)}ve.appendChild(_e)}function fa(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ve=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||Vu(ie),ae.cursorDiv.style.visibility=(ve=!ve)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function ya(ie){ie.state.focused||(ie.display.input.focus(),zo(ie))}function Ma(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Vu(ie))},100)}function zo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Tn(ie,"focus",ie,ae),ie.state.focused=!0,Ut(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ge&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),fa(ie))}function Vu(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Tn(ie,"blur",ie,ae),ie.state.focused=!1,Ve(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Zr(ie){for(var ae=ie.display,ve=ae.lineDiv.offsetTop,me=0;me<ae.view.length;me++){var xe=ae.view[me],_e=ie.options.lineWrapping,nt=void 0,pt=0;if(!xe.hidden){if(je&&Te<8){var ht=xe.node.offsetTop+xe.node.offsetHeight;nt=ht-ve,ve=ht}else{var At=xe.node.getBoundingClientRect();nt=At.bottom-At.top,!_e&&xe.text.firstChild&&(pt=xe.text.firstChild.getBoundingClientRect().right-At.left-1)}var gn=xe.line.height-nt;if((gn>.005||gn<-.005)&&(ci(xe.line,nt),Qc(xe.line),xe.rest))for(var Dt=0;Dt<xe.rest.length;Dt++)Qc(xe.rest[Dt]);if(pt>ie.display.sizerWidth){var Hn=Math.ceil(pt/as(ie.display));Hn>ie.display.maxLineLength&&(ie.display.maxLineLength=Hn,ie.display.maxLine=xe.line,ie.display.maxLineChanged=!0)}}}}function Qc(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ve=ie.widgets[ae],me=ve.node.parentNode;me&&(ve.height=me.offsetHeight)}}function Vo(ie,ae,ve){var me=ve&&ve.top!=null?Math.max(0,ve.top):ie.scroller.scrollTop;me=Math.floor(me-ho(ie));var xe=ve&&ve.bottom!=null?ve.bottom:me+ie.wrapper.clientHeight,_e=zt(ae,me),nt=zt(ae,xe);if(ve&&ve.ensure){var pt=ve.ensure.from.line,ht=ve.ensure.to.line;pt<_e?(_e=pt,nt=zt(ae,sr(Rn(ae,pt))+ie.wrapper.clientHeight)):Math.min(ht,ae.lastLine())>=nt&&(_e=zt(ae,sr(Rn(ae,ht))-ie.wrapper.clientHeight),nt=ht)}return{from:_e,to:Math.max(nt,_e+1)}}function Lc(ie,ae){if(!jn(ie,"scrollCursorIntoView")){var ve=ie.display,me=ve.sizer.getBoundingClientRect(),xe=null;if(ae.top+me.top<0?xe=!0:ae.bottom+me.top>(window.innerHeight||document.documentElement.clientHeight)&&(xe=!1),xe!=null&&!kt){var _e=rt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ae.top-ve.viewOffset-ho(ie.display))+`px;
|
|
|
height: `+(ae.bottom-ae.top+ia(ie)+ve.barHeight)+`px;
|
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(_e),_e.scrollIntoView(xe),ie.display.lineSpace.removeChild(_e)}}}function Ru(ie,ae,ve,me){me==null&&(me=0);var xe;!ie.options.lineWrapping&&ae==ve&&(ae=ae.ch?Rt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ve=ae.sticky=="before"?Rt(ae.line,ae.ch+1,"before"):ae);for(var _e=0;_e<5;_e++){var nt=!1,pt=vo(ie,ae),ht=!ve||ve==ae?pt:vo(ie,ve);xe={left:Math.min(pt.left,ht.left),top:Math.min(pt.top,ht.top)-me,right:Math.max(pt.left,ht.left),bottom:Math.max(pt.bottom,ht.bottom)+me};var At=Ic(ie,xe),gn=ie.doc.scrollTop,Dt=ie.doc.scrollLeft;if(At.scrollTop!=null&&(Fl(ie,At.scrollTop),Math.abs(ie.doc.scrollTop-gn)>1&&(nt=!0)),At.scrollLeft!=null&&(Vl(ie,At.scrollLeft),Math.abs(ie.doc.scrollLeft-Dt)>1&&(nt=!0)),!nt)break}return xe}function au(ie,ae){var ve=Ic(ie,ae);ve.scrollTop!=null&&Fl(ie,ve.scrollTop),ve.scrollLeft!=null&&Vl(ie,ve.scrollLeft)}function Ic(ie,ae){var ve=ie.display,me=Wa(ie.display);ae.top<0&&(ae.top=0);var xe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ve.scroller.scrollTop,_e=Ns(ie),nt={};ae.bottom-ae.top>_e&&(ae.bottom=ae.top+_e);var pt=ie.doc.height+Yo(ve),ht=ae.top<me,At=ae.bottom>pt-me;if(ae.top<xe)nt.scrollTop=ht?0:ae.top;else if(ae.bottom>xe+_e){var gn=Math.min(ae.top,(At?pt:ae.bottom)-_e);gn!=xe&&(nt.scrollTop=gn)}var Dt=ie.options.fixedGutter?0:ve.gutters.offsetWidth,Hn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ve.scroller.scrollLeft-Dt,kn=os(ie)-ve.gutters.offsetWidth,Bi=ae.right-ae.left>kn;return Bi&&(ae.right=ae.left+kn),ae.left<10?nt.scrollLeft=0:ae.left<Hn?nt.scrollLeft=Math.max(0,ae.left+Dt-(Bi?0:10)):ae.right>kn+Hn-3&&(nt.scrollLeft=ae.right+(Bi?0:10)-kn),nt}function xc(ie,ae){ae!=null&&(Os(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Ol(ie){Os(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Dl(ie,ae,ve){(ae!=null||ve!=null)&&Os(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ve!=null&&(ie.curOp.scrollTop=ve)}function Zo(ie,ae){Os(ie),ie.curOp.scrollToPos=ae}function Os(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ve=fo(ie,ae.from),me=fo(ie,ae.to);Yu(ie,ve,me,ae.margin)}}function Yu(ie,ae,ve,me){var xe=Ic(ie,{left:Math.min(ae.left,ve.left),top:Math.min(ae.top,ve.top)-me,right:Math.max(ae.right,ve.right),bottom:Math.max(ae.bottom,ve.bottom)+me});Dl(ie,xe.scrollLeft,xe.scrollTop)}function Fl(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ce||Xe(ie,{top:ae}),su(ie,ae,!0),ce&&Xe(ie),sc(ie,100))}function su(ie,ae,ve){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ve)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function Vl(ie,ae,ve,me){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ve?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!me)&&(ie.doc.scrollLeft=ae,Ft(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function Ho(ie){var ae=ie.display,ve=ae.gutters.offsetWidth,me=Math.round(ie.doc.height+Yo(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ve:0,docHeight:me,scrollHeight:me+ia(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ve}}var na=function(ie,ae,ve){this.cm=ve;var me=this.vert=rt("div",[rt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=rt("div",[rt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=xe.tabIndex=-1,ie(me),ie(xe),_t(me,"scroll",function(){me.clientHeight&&ae(me.scrollTop,"vertical")}),_t(xe,"scroll",function(){xe.clientWidth&&ae(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,je&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};na.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ve=ie.scrollHeight>ie.clientHeight+1,me=ie.nativeBarWidth;if(ve){this.vert.style.display="block",this.vert.style.bottom=ae?me+"px":"0";var xe=ie.viewHeight-(ae?me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+xe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ve?me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var _e=ie.viewWidth-ie.barLeft-(ve?me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+_e)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ve?me:0,bottom:ae?me:0}},na.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},na.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},na.prototype.zeroWidthHack=function(){var ie=he&&!it?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new dt,this.disableVert=new dt},na.prototype.enableZeroWidthBar=function(ie,ae,ve){ie.style.pointerEvents="auto";function me(){var xe=ie.getBoundingClientRect(),_e=ve=="vert"?document.elementFromPoint(xe.right-1,(xe.top+xe.bottom)/2):document.elementFromPoint((xe.right+xe.left)/2,xe.bottom-1);_e!=ie?ie.style.pointerEvents="none":ae.set(1e3,me)}ae.set(1e3,me)},na.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Da=function(){};Da.prototype.update=function(){return{bottom:0,right:0}},Da.prototype.setScrollLeft=function(){},Da.prototype.setScrollTop=function(){},Da.prototype.clear=function(){};function ys(ie,ae){ae||(ae=Ho(ie));var ve=ie.display.barWidth,me=ie.display.barHeight;ls(ie,ae);for(var xe=0;xe<4&&ve!=ie.display.barWidth||me!=ie.display.barHeight;xe++)ve!=ie.display.barWidth&&ie.options.lineWrapping&&Zr(ie),ls(ie,Ho(ie)),ve=ie.display.barWidth,me=ie.display.barHeight}function ls(ie,ae){var ve=ie.display,me=ve.scrollbars.update(ae);ve.sizer.style.paddingRight=(ve.barWidth=me.right)+"px",ve.sizer.style.paddingBottom=(ve.barHeight=me.bottom)+"px",ve.heightForcer.style.borderBottom=me.bottom+"px solid transparent",me.right&&me.bottom?(ve.scrollbarFiller.style.display="block",ve.scrollbarFiller.style.height=me.bottom+"px",ve.scrollbarFiller.style.width=me.right+"px"):ve.scrollbarFiller.style.display="",me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ve.gutterFiller.style.display="block",ve.gutterFiller.style.height=me.bottom+"px",ve.gutterFiller.style.width=ae.gutterWidth+"px"):ve.gutterFiller.style.display=""}var bl={native:na,null:Da};function wl(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ve(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new bl[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),_t(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ve){ve=="horizontal"?Vl(ie,ae):Fl(ie,ae)},ie),ie.display.scrollbars.addClass&&Ut(ie.display.wrapper,ie.display.scrollbars.addClass)}var Cl=0;function ol(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cl},Sa(ie.curOp)}function Yl(ie){var ae=ie.curOp;ae&&bs(ae,function(ve){for(var me=0;me<ve.ops.length;me++)ve.ops[me].cm.curOp=null;dd(ve)})}function dd(ie){for(var ae=ie.ops,ve=0;ve<ae.length;ve++)mh(ae[ve]);for(var me=0;me<ae.length;me++)vh(ae[me]);for(var xe=0;xe<ae.length;xe++)yh(ae[xe]);for(var _e=0;_e<ae.length;_e++)ns(ae[_e]);for(var nt=0;nt<ae.length;nt++)Ku(ae[nt])}function mh(ie){var ae=ie.cm,ve=ae.display;hd(ae),ie.updateMaxLine&&hr(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ve.viewFrom||ie.scrollToPos.to.line>=ve.viewTo)||ve.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Zu(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function vh(ie){ie.updatedDisplay=ie.mustUpdate&&we(ie.cm,ie.update)}function yh(ie){var ae=ie.cm,ve=ae.display;ie.updatedDisplay&&Zr(ae),ie.barMeasure=Ho(ae),ve.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Wl(ae,ve.maxLine,ve.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ve.scroller.clientWidth,ve.sizer.offsetLeft+ie.adjustWidthTo+ia(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ve.sizer.offsetLeft+ie.adjustWidthTo-os(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ve.input.prepareSelection())}function ns(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&Vl(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ve=ie.focus&&ie.focus==Lt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ve),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&ys(ae,ie.barMeasure),ie.updatedDisplay&&Ct(ae,ie.barMeasure),ie.selectionChanged&&fa(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ve&&ya(ie.cm)}function Ku(ie){var ae=ie.cm,ve=ae.display,me=ae.doc;if(ie.updatedDisplay&&He(ae,ie.update),ve.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ve.wheelStartX=ve.wheelStartY=null),ie.scrollTop!=null&&su(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Vl(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var xe=Ru(ae,yn(me,ie.scrollToPos.from),yn(me,ie.scrollToPos.to),ie.scrollToPos.margin);Lc(ae,xe)}var _e=ie.maybeHiddenMarkers,nt=ie.maybeUnhiddenMarkers;if(_e)for(var pt=0;pt<_e.length;++pt)_e[pt].lines.length||Tn(_e[pt],"hide");if(nt)for(var ht=0;ht<nt.length;++ht)nt[ht].lines.length&&Tn(nt[ht],"unhide");ve.wrapper.offsetHeight&&(me.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&Tn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function pa(ie,ae){if(ie.curOp)return ae();ol(ie);try{return ae()}finally{Yl(ie)}}function Ts(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);ol(ie);try{return ae.apply(ie,arguments)}finally{Yl(ie)}}}function Ds(ie){return function(){if(this.curOp)return ie.apply(this,arguments);ol(this);try{return ie.apply(this,arguments)}finally{Yl(this)}}}function Ls(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);ol(ae);try{return ie.apply(this,arguments)}finally{Yl(ae)}}}function sc(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Kt(zs,ie))}function zs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ve=+new Date+ie.options.workTime,me=Eo(ie,ae.highlightFrontier),xe=[];ae.iter(me.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(_e){if(me.line>=ie.display.viewFrom){var nt=_e.styles,pt=_e.text.length>ie.options.maxHighlightLength?Gi(ae.mode,me.state):null,ht=jt(ie,_e,me,!0);pt&&(me.state=pt),_e.styles=ht.styles;var At=_e.styleClasses,gn=ht.classes;gn?_e.styleClasses=gn:At&&(_e.styleClasses=null);for(var Dt=!nt||nt.length!=_e.styles.length||At!=gn&&(!At||!gn||At.bgClass!=gn.bgClass||At.textClass!=gn.textClass),Hn=0;!Dt&&Hn<nt.length;++Hn)Dt=nt[Hn]!=_e.styles[Hn];Dt&&xe.push(me.line),_e.stateAfter=me.save(),me.nextLine()}else _e.text.length<=ie.options.maxHighlightLength&&Gt(ie,_e.text,me),_e.stateAfter=me.line%5==0?me.save():null,me.nextLine();if(+new Date>ve)return sc(ie,ie.options.workDelay),!0}),ae.highlightFrontier=me.line,ae.modeFrontier=Math.max(ae.modeFrontier,me.line),xe.length&&pa(ie,function(){for(var _e=0;_e<xe.length;_e++)Oo(ie,xe[_e],"text")})}}var Zu=function(ie,ae,ve){var me=ie.display;this.viewport=ae,this.visible=Vo(me,ie.doc,ae),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=os(ie),this.force=ve,this.dims=qa(ie),this.events=[]};Zu.prototype.signal=function(ie,ae){Gn(ie,ae)&&this.events.push(arguments)},Zu.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Tn.apply(null,this.events[ie])};function hd(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=ia(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=ia(ie)+"px",ae.scrollbarsClipped=!0)}function fd(ie){if(ie.hasFocus())return null;var ae=Lt();if(!ae||!Et(ie.display.lineDiv,ae))return null;var ve={activeElt:ae};if(window.getSelection){var me=window.getSelection();me.anchorNode&&me.extend&&Et(ie.display.lineDiv,me.anchorNode)&&(ve.anchorNode=me.anchorNode,ve.anchorOffset=me.anchorOffset,ve.focusNode=me.focusNode,ve.focusOffset=me.focusOffset)}return ve}function al(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Lt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Et(document.body,ie.anchorNode)&&Et(document.body,ie.focusNode))){var ae=window.getSelection(),ve=document.createRange();ve.setEnd(ie.anchorNode,ie.anchorOffset),ve.collapse(!1),ae.removeAllRanges(),ae.addRange(ve),ae.extend(ie.focusNode,ie.focusOffset)}}function we(ie,ae){var ve=ie.display,me=ie.doc;if(ae.editorIsHidden)return Oa(ie),!1;if(!ae.force&&ae.visible.from>=ve.viewFrom&&ae.visible.to<=ve.viewTo&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo)&&ve.renderedView==ve.view&&Js(ie)==0)return!1;Zt(ie)&&(Oa(ie),ae.dims=qa(ie));var xe=me.first+me.size,_e=Math.max(ae.visible.from-ie.options.viewportMargin,me.first),nt=Math.min(xe,ae.visible.to+ie.options.viewportMargin);ve.viewFrom<_e&&_e-ve.viewFrom<20&&(_e=Math.max(me.first,ve.viewFrom)),ve.viewTo>nt&&ve.viewTo-nt<20&&(nt=Math.min(xe,ve.viewTo)),Pn&&(_e=xi(ie.doc,_e),nt=Oi(ie.doc,nt));var pt=_e!=ve.viewFrom||nt!=ve.viewTo||ve.lastWrapHeight!=ae.wrapperHeight||ve.lastWrapWidth!=ae.wrapperWidth;xa(ie,_e,nt),ve.viewOffset=sr(Rn(ie.doc,ve.viewFrom)),ie.display.mover.style.top=ve.viewOffset+"px";var ht=Js(ie);if(!pt&&ht==0&&!ae.force&&ve.renderedView==ve.view&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo))return!1;var At=fd(ie);return ht>4&&(ve.lineDiv.style.display="none"),ot(ie,ve.updateLineNumbers,ae.dims),ht>4&&(ve.lineDiv.style.display=""),ve.renderedView=ve.view,al(At),et(ve.cursorDiv),et(ve.selectionDiv),ve.gutters.style.height=ve.sizer.style.minHeight=0,pt&&(ve.lastWrapHeight=ae.wrapperHeight,ve.lastWrapWidth=ae.wrapperWidth,sc(ie,400)),ve.updateLineNumbers=null,!0}function He(ie,ae){for(var ve=ae.viewport,me=!0;;me=!1){if(!me||!ie.options.lineWrapping||ae.oldDisplayWidth==os(ie)){if(ve&&ve.top!=null&&(ve={top:Math.min(ie.doc.height+Yo(ie.display)-Ns(ie),ve.top)}),ae.visible=Vo(ie.display,ie.doc,ve),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else me&&(ae.visible=Vo(ie.display,ie.doc,ve));if(!we(ie,ae))break;Zr(ie);var xe=Ho(ie);ss(ie),ys(ie,xe),Ct(ie,xe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Xe(ie,ae){var ve=new Zu(ie,ae);if(we(ie,ve)){Zr(ie),He(ie,ve);var me=Ho(ie);ss(ie),ys(ie,me),Ct(ie,me),ve.finish()}}function ot(ie,ae,ve){var me=ie.display,xe=ie.options.lineNumbers,_e=me.lineDiv,nt=_e.firstChild;function pt(Bi){var ji=Bi.nextSibling;return Ge&&he&&ie.display.currentWheelTarget==Bi?Bi.style.display="none":Bi.parentNode.removeChild(Bi),ji}for(var ht=me.view,At=me.viewFrom,gn=0;gn<ht.length;gn++){var Dt=ht[gn];if(!Dt.hidden)if(!Dt.node||Dt.node.parentNode!=_e){var Hn=oo(ie,Dt,At,ve);_e.insertBefore(Hn,nt)}else{for(;nt!=Dt.node;)nt=pt(nt);var kn=xe&&ae!=null&&ae<=At&&Dt.lineNumber;Dt.changes&&(ct(Dt.changes,"gutter")>-1&&(kn=!1),da(ie,Dt,At,ve)),kn&&(et(Dt.lineNumber),Dt.lineNumber.appendChild(document.createTextNode(ii(ie.options,At)))),nt=Dt.node.nextSibling}At+=Dt.size}for(;nt;)nt=pt(nt)}function xt(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Ct(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+ia(ie)+"px"}function Ft(ie){var ae=ie.display,ve=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var me=El(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,xe=ae.gutters.offsetWidth,_e=me+"px",nt=0;nt<ve.length;nt++)if(!ve[nt].hidden){ie.options.fixedGutter&&(ve[nt].gutter&&(ve[nt].gutter.style.left=_e),ve[nt].gutterBackground&&(ve[nt].gutterBackground.style.left=_e));var pt=ve[nt].alignable;if(pt)for(var ht=0;ht<pt.length;ht++)pt[ht].style.left=_e}ie.options.fixedGutter&&(ae.gutters.style.left=me+xe+"px")}}function Zt(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ve=ii(ie.options,ae.first+ae.size-1),me=ie.display;if(ve.length!=me.lineNumChars){var xe=me.measure.appendChild(rt("div",[rt("div",ve)],"CodeMirror-linenumber CodeMirror-gutter-elt")),_e=xe.firstChild.offsetWidth,nt=xe.offsetWidth-_e;return me.lineGutter.style.width="",me.lineNumInnerWidth=Math.max(_e,me.lineGutter.offsetWidth-nt)+1,me.lineNumWidth=me.lineNumInnerWidth+nt,me.lineNumChars=me.lineNumInnerWidth?ve.length:-1,me.lineGutter.style.width=me.lineNumWidth+"px",xt(ie.display),!0}return!1}function Dn(ie,ae){for(var ve=[],me=!1,xe=0;xe<ie.length;xe++){var _e=ie[xe],nt=null;if(typeof _e!="string"&&(nt=_e.style,_e=_e.className),_e=="CodeMirror-linenumbers")if(ae)me=!0;else continue;ve.push({className:_e,style:nt})}return ae&&!me&&ve.push({className:"CodeMirror-linenumbers",style:null}),ve}function zn(ie){var ae=ie.gutters,ve=ie.gutterSpecs;et(ae),ie.lineGutter=null;for(var me=0;me<ve.length;++me){var xe=ve[me],_e=xe.className,nt=xe.style,pt=ae.appendChild(rt("div",null,"CodeMirror-gutter "+_e));nt&&(pt.style.cssText=nt),_e=="CodeMirror-linenumbers"&&(ie.lineGutter=pt,pt.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ve.length?"":"none",xt(ie)}function Sn(ie){zn(ie.display),qo(ie),Ft(ie)}function hi(ie,ae,ve,me){var xe=this;this.input=ve,xe.scrollbarFiller=rt("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=rt("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=at("div",null,"CodeMirror-code"),xe.selectionDiv=rt("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=rt("div",null,"CodeMirror-cursors"),xe.measure=rt("div",null,"CodeMirror-measure"),xe.lineMeasure=rt("div",null,"CodeMirror-measure"),xe.lineSpace=at("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var _e=at("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=rt("div",[_e],null,"position: relative"),xe.sizer=rt("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=rt("div",null,null,"position: absolute; height: "+Qt+"px; width: 1px;"),xe.gutters=rt("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=rt("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=rt("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),je&&Te<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!Ge&&!(ce&&te)&&(xe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(xe.wrapper):ie(xe.wrapper)),xe.viewFrom=xe.viewTo=ae.first,xe.reportedViewFrom=xe.reportedViewTo=ae.first,xe.view=[],xe.renderedView=null,xe.externalMeasured=null,xe.viewOffset=0,xe.lastWrapHeight=xe.lastWrapWidth=0,xe.updateLineNumbers=null,xe.nativeBarWidth=xe.barHeight=xe.barWidth=0,xe.scrollbarsClipped=!1,xe.lineNumWidth=xe.lineNumInnerWidth=xe.lineNumChars=null,xe.alignWidgets=!1,xe.cachedCharWidth=xe.cachedTextHeight=xe.cachedPaddingH=null,xe.maxLine=null,xe.maxLineLength=0,xe.maxLineChanged=!1,xe.wheelDX=xe.wheelDY=xe.wheelStartX=xe.wheelStartY=null,xe.shift=!1,xe.selForContextMenu=null,xe.activeTouch=null,xe.gutterSpecs=Dn(me.gutters,me.lineNumbers),zn(xe),ve.init(xe)}var ri=0,bn=null;je?bn=-.53:ce?bn=15:Qe?bn=-.7:mt&&(bn=-1/3);function no(ie){var ae=ie.wheelDeltaX,ve=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ve==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ve=ie.detail:ve==null&&(ve=ie.wheelDelta),{x:ae,y:ve}}function Po(ie){var ae=no(ie);return ae.x*=bn,ae.y*=bn,ae}function jo(ie,ae){var ve=no(ae),me=ve.x,xe=ve.y,_e=ie.display,nt=_e.scroller,pt=nt.scrollWidth>nt.clientWidth,ht=nt.scrollHeight>nt.clientHeight;if(me&&pt||xe&&ht){if(xe&&he&&Ge){e:for(var At=ae.target,gn=_e.view;At!=nt;At=At.parentNode)for(var Dt=0;Dt<gn.length;Dt++)if(gn[Dt].node==At){ie.display.currentWheelTarget=At;break e}}if(me&&!ce&&!We&&bn!=null){xe&&ht&&Fl(ie,Math.max(0,nt.scrollTop+xe*bn)),Vl(ie,Math.max(0,nt.scrollLeft+me*bn)),(!xe||xe&&ht)&&Si(ae),_e.wheelStartX=null;return}if(xe&&bn!=null){var Hn=xe*bn,kn=ie.doc.scrollTop,Bi=kn+_e.wrapper.clientHeight;Hn<0?kn=Math.max(0,kn+Hn-50):Bi=Math.min(ie.doc.height,Bi+Hn+50),Xe(ie,{top:kn,bottom:Bi})}ri<20&&(_e.wheelStartX==null?(_e.wheelStartX=nt.scrollLeft,_e.wheelStartY=nt.scrollTop,_e.wheelDX=me,_e.wheelDY=xe,setTimeout(function(){if(_e.wheelStartX!=null){var ji=nt.scrollLeft-_e.wheelStartX,nr=nt.scrollTop-_e.wheelStartY,Er=nr&&_e.wheelDY&&nr/_e.wheelDY||ji&&_e.wheelDX&&ji/_e.wheelDX;_e.wheelStartX=_e.wheelStartY=null,Er&&(bn=(bn*ri+Er)/(ri+1),++ri)}},200)):(_e.wheelDX+=me,_e.wheelDY+=xe))}}var Ir=function(ie,ae){this.ranges=ie,this.primIndex=ae};Ir.prototype.primary=function(){return this.ranges[this.primIndex]},Ir.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var ve=this.ranges[ae],me=ie.ranges[ae];if(!Ni(ve.anchor,me.anchor)||!Ni(ve.head,me.head))return!1}return!0},Ir.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new ro(en(this.ranges[ae].anchor),en(this.ranges[ae].head));return new Ir(ie,this.primIndex)},Ir.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Ir.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ve=0;ve<this.ranges.length;ve++){var me=this.ranges[ve];if(Jn(ae,me.from())>=0&&Jn(ie,me.to())<=0)return ve}return-1};var ro=function(ie,ae){this.anchor=ie,this.head=ae};ro.prototype.from=function(){return si(this.anchor,this.head)},ro.prototype.to=function(){return ze(this.anchor,this.head)},ro.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function So(ie,ae,ve){var me=ie&&ie.options.selectionsMayTouch,xe=ae[ve];ae.sort(function(Hn,kn){return Jn(Hn.from(),kn.from())}),ve=ct(ae,xe);for(var _e=1;_e<ae.length;_e++){var nt=ae[_e],pt=ae[_e-1],ht=Jn(pt.to(),nt.from());if(me&&!nt.empty()?ht>0:ht>=0){var At=si(pt.from(),nt.from()),gn=ze(pt.to(),nt.to()),Dt=pt.empty()?nt.from()==nt.head:pt.from()==pt.head;_e<=ve&&--ve,ae.splice(--_e,2,new ro(Dt?gn:At,Dt?At:gn))}}return new Ir(ae,ve)}function Fa(ie,ae){return new Ir([new ro(ie,ae||ie)],0)}function Ba(ie){return ie.text?Rt(ie.from.line+ie.text.length-1,Wt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function pr(ie,ae){if(Jn(ie,ae.from)<0)return ie;if(Jn(ie,ae.to)<=0)return Ba(ae);var ve=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,me=ie.ch;return ie.line==ae.to.line&&(me+=Ba(ae).ch-ae.to.ch),Rt(ve,me)}function za(ie,ae){for(var ve=[],me=0;me<ie.sel.ranges.length;me++){var xe=ie.sel.ranges[me];ve.push(new ro(pr(xe.anchor,ae),pr(xe.head,ae)))}return So(ie.cm,ve,ie.sel.primIndex)}function us(ie,ae,ve){return ie.line==ae.line?Rt(ve.line,ie.ch-ae.ch+ve.ch):Rt(ve.line+(ie.line-ae.line),ie.ch)}function La(ie,ae,ve){for(var me=[],xe=Rt(ie.first,0),_e=xe,nt=0;nt<ae.length;nt++){var pt=ae[nt],ht=us(pt.from,xe,_e),At=us(Ba(pt),xe,_e);if(xe=pt.to,_e=At,ve=="around"){var gn=ie.sel.ranges[nt],Dt=Jn(gn.head,gn.anchor)<0;me[nt]=new ro(Dt?At:ht,Dt?ht:At)}else me[nt]=new ro(ht,ht)}return new Ir(me,ie.sel.primIndex)}function $r(ie){ie.doc.mode=pn(ie.options,ie.doc.modeOption),sl(ie)}function sl(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,sc(ie,100),ie.state.modeGen++,ie.curOp&&qo(ie)}function Ka(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&Wt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function _o(ie,ae,ve,me){function xe(Xr){return ve?ve[Xr]:null}function _e(Xr,Fr,io){eo(Xr,Fr,io,me),xr(Xr,"change",Xr,ae)}function nt(Xr,Fr){for(var io=[],Bo=Xr;Bo<Fr;++Bo)io.push(new lo(At[Bo],xe(Bo),me));return io}var pt=ae.from,ht=ae.to,At=ae.text,gn=Rn(ie,pt.line),Dt=Rn(ie,ht.line),Hn=Wt(At),kn=xe(At.length-1),Bi=ht.line-pt.line;if(ae.full)ie.insert(0,nt(0,At.length)),ie.remove(At.length,ie.size-At.length);else if(Ka(ie,ae)){var ji=nt(0,At.length-1);_e(Dt,Dt.text,kn),Bi&&ie.remove(pt.line,Bi),ji.length&&ie.insert(pt.line,ji)}else if(gn==Dt)if(At.length==1)_e(gn,gn.text.slice(0,pt.ch)+Hn+gn.text.slice(ht.ch),kn);else{var nr=nt(1,At.length-1);nr.push(new lo(Hn+gn.text.slice(ht.ch),kn,me)),_e(gn,gn.text.slice(0,pt.ch)+At[0],xe(0)),ie.insert(pt.line+1,nr)}else if(At.length==1)_e(gn,gn.text.slice(0,pt.ch)+At[0]+Dt.text.slice(ht.ch),xe(0)),ie.remove(pt.line+1,Bi);else{_e(gn,gn.text.slice(0,pt.ch)+At[0],xe(0)),_e(Dt,Hn+Dt.text.slice(ht.ch),kn);var Er=nt(1,At.length-1);Bi>1&&ie.remove(pt.line+1,Bi-1),ie.insert(pt.line+1,Er)}xr(ie,"change",ie,ae)}function Do(ie,ae,ve){function me(xe,_e,nt){if(xe.linked)for(var pt=0;pt<xe.linked.length;++pt){var ht=xe.linked[pt];if(ht.doc!=_e){var At=nt&&ht.sharedHist;ve&&!At||(ae(ht.doc,At),me(ht.doc,xe,At))}}}me(ie,null,!0)}function la(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,qr(ie),$r(ie),is(ie),ie.options.lineWrapping||hr(ie),ie.options.mode=ae.modeOption,qo(ie)}function is(ie){(ie.doc.direction=="rtl"?Ut:Ve)(ie.display.lineDiv,"CodeMirror-rtl")}function Hs(ie){pa(ie,function(){is(ie),qo(ie)})}function qs(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function Bl(ie,ae){var ve={from:en(ae.from),to:Ba(ae),text:Ui(ie,ae.from,ae.to)};return Su(ie,ve,ae.from.line,ae.to.line+1),Do(ie,function(me){return Su(me,ve,ae.from.line,ae.to.line+1)},!0),ve}function Xn(ie){for(;ie.length;){var ae=Wt(ie);if(ae.ranges)ie.pop();else break}}function ll(ie,ae){if(ae)return Xn(ie.done),Wt(ie.done);if(ie.done.length&&!Wt(ie.done).ranges)return Wt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Wt(ie.done)}function Kl(ie,ae,ve,me){var xe=ie.history;xe.undone.length=0;var _e=+new Date,nt,pt;if((xe.lastOp==me||xe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&xe.lastModTime>_e-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(nt=ll(xe,xe.lastOp==me)))pt=Wt(nt.changes),Jn(ae.from,ae.to)==0&&Jn(ae.from,pt.to)==0?pt.to=Ba(ae):nt.changes.push(Bl(ie,ae));else{var ht=Wt(xe.done);for((!ht||!ht.ranges)&&lu(ie.sel,xe.done),nt={changes:[Bl(ie,ae)],generation:xe.generation},xe.done.push(nt);xe.done.length>xe.undoDepth;)xe.done.shift(),xe.done[0].ranges||xe.done.shift()}xe.done.push(ve),xe.generation=++xe.maxGeneration,xe.lastModTime=xe.lastSelTime=_e,xe.lastOp=xe.lastSelOp=me,xe.lastOrigin=xe.lastSelOrigin=ae.origin,pt||Tn(ie,"historyAdded")}function ni(ie,ae,ve,me){var xe=ae.charAt(0);return xe=="*"||xe=="+"&&ve.ranges.length==me.ranges.length&&ve.somethingSelected()==me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function $s(ie,ae,ve,me){var xe=ie.history,_e=me&&me.origin;ve==xe.lastSelOp||_e&&xe.lastSelOrigin==_e&&(xe.lastModTime==xe.lastSelTime&&xe.lastOrigin==_e||ni(ie,_e,Wt(xe.done),ae))?xe.done[xe.done.length-1]=ae:lu(ae,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=_e,xe.lastSelOp=ve,me&&me.clearRedo!==!1&&Xn(xe.undone)}function lu(ie,ae){var ve=Wt(ae);ve&&ve.ranges&&ve.equals(ie)||ae.push(ie)}function Su(ie,ae,ve,me){var xe=ae["spans_"+ie.id],_e=0;ie.iter(Math.max(ie.first,ve),Math.min(ie.first+ie.size,me),function(nt){nt.markedSpans&&((xe||(xe=ae["spans_"+ie.id]={}))[_e]=nt.markedSpans),++_e})}function Fs(ie){if(!ie)return null;for(var ae,ve=0;ve<ie.length;++ve)ie[ve].marker.explicitlyCleared?ae||(ae=ie.slice(0,ve)):ae&&ae.push(ie[ve]);return ae?ae.length?ae:null:ie}function rs(ie,ae){var ve=ae["spans_"+ie.id];if(!ve)return null;for(var me=[],xe=0;xe<ae.text.length;++xe)me.push(Fs(ve[xe]));return me}function Zl(ie,ae){var ve=rs(ie,ae),me=To(ie,ae);if(!ve)return me;if(!me)return ve;for(var xe=0;xe<ve.length;++xe){var _e=ve[xe],nt=me[xe];if(_e&&nt)e:for(var pt=0;pt<nt.length;++pt){for(var ht=nt[pt],At=0;At<_e.length;++At)if(_e[At].marker==ht.marker)continue e;_e.push(ht)}else nt&&(ve[xe]=nt)}return ve}function Vs(ie,ae,ve){for(var me=[],xe=0;xe<ie.length;++xe){var _e=ie[xe];if(_e.ranges){me.push(ve?Ir.prototype.deepCopy.call(_e):_e);continue}var nt=_e.changes,pt=[];me.push({changes:pt});for(var ht=0;ht<nt.length;++ht){var At=nt[ht],gn=void 0;if(pt.push({from:At.from,to:At.to,text:At.text}),ae)for(var Dt in At)(gn=Dt.match(/^spans_(\d+)$/))&&ct(ae,Number(gn[1]))>-1&&(Wt(pt)[Dt]=At[Dt],delete At[Dt])}}return me}function Ou(ie,ae,ve,me){if(me){var xe=ie.anchor;if(ve){var _e=Jn(ae,xe)<0;_e!=Jn(ve,xe)<0?(xe=ae,ae=ve):_e!=Jn(ae,ve)<0&&(ae=ve)}return new ro(xe,ae)}else return new ro(ve||ae,ae)}function Xu(ie,ae,ve,me,xe){xe==null&&(xe=ie.cm&&(ie.cm.display.shift||ie.extend)),pe(ie,new Ir([Ou(ie.sel.primary(),ae,ve,xe)],0),me)}function gd(ie,ae,ve){for(var me=[],xe=ie.cm&&(ie.cm.display.shift||ie.extend),_e=0;_e<ie.sel.ranges.length;_e++)me[_e]=Ou(ie.sel.ranges[_e],ae[_e],null,xe);var nt=So(ie.cm,me,ie.sel.primIndex);pe(ie,nt,ve)}function uu(ie,ae,ve,me){var xe=ie.sel.ranges.slice(0);xe[ae]=ve,pe(ie,So(ie.cm,xe,ie.sel.primIndex),me)}function lc(ie,ae,ve,me){pe(ie,Fa(ae,ve),me)}function zd(ie,ae,ve){var me={ranges:ae.ranges,update:function(xe){this.ranges=[];for(var _e=0;_e<xe.length;_e++)this.ranges[_e]=new ro(yn(ie,xe[_e].anchor),yn(ie,xe[_e].head))},origin:ve&&ve.origin};return Tn(ie,"beforeSelectionChange",ie,me),ie.cm&&Tn(ie.cm,"beforeSelectionChange",ie.cm,me),me.ranges!=ae.ranges?So(ie.cm,me.ranges,me.ranges.length-1):ae}function ue(ie,ae,ve){var me=ie.history.done,xe=Wt(me);xe&&xe.ranges?(me[me.length-1]=ae,Ze(ie,ae,ve)):pe(ie,ae,ve)}function pe(ie,ae,ve){Ze(ie,ae,ve),$s(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ve)}function Ze(ie,ae,ve){(Gn(ie,"beforeSelectionChange")||ie.cm&&Gn(ie.cm,"beforeSelectionChange"))&&(ae=zd(ie,ae,ve));var me=ve&&ve.bias||(Jn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ot(ie,ki(ie,ae,me,!0)),!(ve&&ve.scroll===!1)&&ie.cm&&Ol(ie.cm)}function Ot(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,Mi(ie.cm)),xr(ie,"cursorActivity",ie))}function Bn(ie){Ot(ie,ki(ie,ie.sel,null,!1))}function ki(ie,ae,ve,me){for(var xe,_e=0;_e<ae.ranges.length;_e++){var nt=ae.ranges[_e],pt=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[_e],ht=ao(ie,nt.anchor,pt&&pt.anchor,ve,me),At=ao(ie,nt.head,pt&&pt.head,ve,me);(xe||ht!=nt.anchor||At!=nt.head)&&(xe||(xe=ae.ranges.slice(0,_e)),xe[_e]=new ro(ht,At))}return xe?So(ie.cm,xe,ae.primIndex):ae}function er(ie,ae,ve,me,xe){var _e=Rn(ie,ae.line);if(_e.markedSpans)for(var nt=0;nt<_e.markedSpans.length;++nt){var pt=_e.markedSpans[nt],ht=pt.marker,At="selectLeft"in ht?!ht.selectLeft:ht.inclusiveLeft,gn="selectRight"in ht?!ht.selectRight:ht.inclusiveRight;if((pt.from==null||(At?pt.from<=ae.ch:pt.from<ae.ch))&&(pt.to==null||(gn?pt.to>=ae.ch:pt.to>ae.ch))){if(xe&&(Tn(ht,"beforeCursorEnter"),ht.explicitlyCleared))if(_e.markedSpans){--nt;continue}else break;if(!ht.atomic)continue;if(ve){var Dt=ht.find(me<0?1:-1),Hn=void 0;if((me<0?gn:At)&&(Dt=Fo(ie,Dt,-me,Dt&&Dt.line==ae.line?_e:null)),Dt&&Dt.line==ae.line&&(Hn=Jn(Dt,ve))&&(me<0?Hn<0:Hn>0))return er(ie,Dt,ae,me,xe)}var kn=ht.find(me<0?-1:1);return(me<0?At:gn)&&(kn=Fo(ie,kn,me,kn.line==ae.line?_e:null)),kn?er(ie,kn,ae,me,xe):null}}return ae}function ao(ie,ae,ve,me,xe){var _e=me||1,nt=er(ie,ae,ve,_e,xe)||!xe&&er(ie,ae,ve,_e,!0)||er(ie,ae,ve,-_e,xe)||!xe&&er(ie,ae,ve,-_e,!0);return nt||(ie.cantEdit=!0,Rt(ie.first,0))}function Fo(ie,ae,ve,me){return ve<0&&ae.ch==0?ae.line>ie.first?yn(ie,Rt(ae.line-1)):null:ve>0&&ae.ch==(me||Rn(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Rt(ae.line+1,0):null:new Rt(ae.line,ae.ch+ve)}function Ei(ie){ie.setSelection(Rt(ie.firstLine(),0),Rt(ie.lastLine()),Nt)}function Cr(ie,ae,ve){var me={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return me.canceled=!0}};return ve&&(me.update=function(xe,_e,nt,pt){xe&&(me.from=yn(ie,xe)),_e&&(me.to=yn(ie,_e)),nt&&(me.text=nt),pt!==void 0&&(me.origin=pt)}),Tn(ie,"beforeChange",ie,me),ie.cm&&Tn(ie.cm,"beforeChange",ie.cm,me),me.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:me.from,to:me.to,text:me.text,origin:me.origin}}function Go(ie,ae,ve){if(ie.cm){if(!ie.cm.curOp)return Ts(ie.cm,Go)(ie,ae,ve);if(ie.cm.state.suppressEdits)return}if(!((Gn(ie,"beforeChange")||ie.cm&&Gn(ie.cm,"beforeChange"))&&(ae=Cr(ie,ae,!0),!ae))){var me=po&&!ve&&_n(ie,ae.from,ae.to);if(me)for(var xe=me.length-1;xe>=0;--xe)ga(ie,{from:me[xe].from,to:me[xe].to,text:xe?[""]:ae.text,origin:ae.origin});else ga(ie,ae)}}function ga(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Jn(ae.from,ae.to)==0)){var ve=za(ie,ae);Kl(ie,ae,ve,ie.cm?ie.cm.curOp.id:NaN),Du(ie,ae,ve,To(ie,ae));var me=[];Do(ie,function(xe,_e){!_e&&ct(me,xe.history)==-1&&(Mc(xe.history,ae),me.push(xe.history)),Du(xe,ae,null,To(xe,ae))})}}function Va(ie,ae,ve){var me=ie.cm&&ie.cm.state.suppressEdits;if(!(me&&!ve)){for(var xe=ie.history,_e,nt=ie.sel,pt=ae=="undo"?xe.done:xe.undone,ht=ae=="undo"?xe.undone:xe.done,At=0;At<pt.length&&(_e=pt[At],!(ve?_e.ranges&&!_e.equals(ie.sel):!_e.ranges));At++);if(At!=pt.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(_e=pt.pop(),_e.ranges){if(lu(_e,ht),ve&&!_e.equals(ie.sel)){pe(ie,_e,{clearRedo:!1});return}nt=_e}else if(me){pt.push(_e);return}else break;var gn=[];lu(nt,ht),ht.push({changes:gn,generation:xe.generation}),xe.generation=_e.generation||++xe.maxGeneration;for(var Dt=Gn(ie,"beforeChange")||ie.cm&&Gn(ie.cm,"beforeChange"),Hn=function(ji){var nr=_e.changes[ji];if(nr.origin=ae,Dt&&!Cr(ie,nr,!1))return pt.length=0,{};gn.push(Bl(ie,nr));var Er=ji?za(ie,nr):Wt(pt);Du(ie,nr,Er,Zl(ie,nr)),!ji&&ie.cm&&ie.cm.scrollIntoView({from:nr.from,to:Ba(nr)});var Xr=[];Do(ie,function(Fr,io){!io&&ct(Xr,Fr.history)==-1&&(Mc(Fr.history,nr),Xr.push(Fr.history)),Du(Fr,nr,null,Zl(Fr,nr))})},kn=_e.changes.length-1;kn>=0;--kn){var Bi=Hn(kn);if(Bi)return Bi.v}}}}function xu(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Ir(An(ie.sel.ranges,function(xe){return new ro(Rt(xe.anchor.line+ae,xe.anchor.ch),Rt(xe.head.line+ae,xe.head.ch))}),ie.sel.primIndex),ie.cm)){qo(ie.cm,ie.first,ie.first-ae,ae);for(var ve=ie.cm.display,me=ve.viewFrom;me<ve.viewTo;me++)Oo(ie.cm,me,"gutter")}}function Du(ie,ae,ve,me){if(ie.cm&&!ie.cm.curOp)return Ts(ie.cm,Du)(ie,ae,ve,me);if(ae.to.line<ie.first){xu(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var xe=ae.text.length-1-(ie.first-ae.from.line);xu(ie,xe),ae={from:Rt(ie.first,0),to:Rt(ae.to.line+xe,ae.to.ch),text:[Wt(ae.text)],origin:ae.origin}}var _e=ie.lastLine();ae.to.line>_e&&(ae={from:ae.from,to:Rt(_e,Rn(ie,_e).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Ui(ie,ae.from,ae.to),ve||(ve=za(ie,ae)),ie.cm?uc(ie.cm,ae,me):_o(ie,ae,me),Ze(ie,ve,Nt),ie.cantEdit&&ao(ie,Rt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function uc(ie,ae,ve){var me=ie.doc,xe=ie.display,_e=ae.from,nt=ae.to,pt=!1,ht=_e.line;ie.options.lineWrapping||(ht=yt(ti(Rn(me,_e.line))),me.iter(ht,nt.line+1,function(kn){if(kn==xe.maxLine)return pt=!0,!0})),me.sel.contains(ae.from,ae.to)>-1&&Mi(ie),_o(me,ae,ve,wa(ie)),ie.options.lineWrapping||(me.iter(ht,_e.line+ae.text.length,function(kn){var Bi=Yr(kn);Bi>xe.maxLineLength&&(xe.maxLine=kn,xe.maxLineLength=Bi,xe.maxLineChanged=!0,pt=!1)}),pt&&(ie.curOp.updateMaxLine=!0)),Ur(me,_e.line),sc(ie,400);var At=ae.text.length-(nt.line-_e.line)-1;ae.full?qo(ie):_e.line==nt.line&&ae.text.length==1&&!Ka(ie.doc,ae)?Oo(ie,_e.line,"text"):qo(ie,_e.line,nt.line+1,At);var gn=Gn(ie,"changes"),Dt=Gn(ie,"change");if(Dt||gn){var Hn={from:_e,to:nt,text:ae.text,removed:ae.removed,origin:ae.origin};Dt&&xr(ie,"change",ie,Hn),gn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Hn)}ie.display.selForContextMenu=null}function Qu(ie,ae,ve,me,xe){var _e;me||(me=ve),Jn(me,ve)<0&&(_e=[me,ve],ve=_e[0],me=_e[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),Go(ie,{from:ve,to:me,text:ae,origin:xe})}function Tl(ie,ae,ve,me){ve<ie.line?ie.line+=me:ae<ie.line&&(ie.line=ae,ie.ch=0)}function cu(ie,ae,ve,me){for(var xe=0;xe<ie.length;++xe){var _e=ie[xe],nt=!0;if(_e.ranges){_e.copied||(_e=ie[xe]=_e.deepCopy(),_e.copied=!0);for(var pt=0;pt<_e.ranges.length;pt++)Tl(_e.ranges[pt].anchor,ae,ve,me),Tl(_e.ranges[pt].head,ae,ve,me);continue}for(var ht=0;ht<_e.changes.length;++ht){var At=_e.changes[ht];if(ve<At.from.line)At.from=Rt(At.from.line+me,At.from.ch),At.to=Rt(At.to.line+me,At.to.ch);else if(ae<=At.to.line){nt=!1;break}}nt||(ie.splice(0,xe+1),xe=0)}}function Mc(ie,ae){var ve=ae.from.line,me=ae.to.line,xe=ae.text.length-(me-ve)-1;cu(ie.done,ve,me,xe),cu(ie.undone,ve,me,xe)}function Xl(ie,ae,ve,me){var xe=ae,_e=ae;return typeof ae=="number"?_e=Rn(ie,oi(ie,ae)):xe=yt(ae),xe==null?null:(me(_e,xe)&&ie.cm&&Oo(ie.cm,xe,ve),_e)}function Sh(ie){this.lines=ie,this.parent=null;for(var ae=0,ve=0;ve<ie.length;++ve)ie[ve].parent=this,ae+=ie[ve].height;this.height=ae}Sh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ve=ie,me=ie+ae;ve<me;++ve){var xe=this.lines[ve];this.height-=xe.height,Co(xe),xr(xe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ve){this.height+=ve,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var me=0;me<ae.length;++me)ae[me].parent=this},iterN:function(ie,ae,ve){for(var me=ie+ae;ie<me;++ie)if(ve(this.lines[ie]))return!0}};function Ss(ie){this.children=ie;for(var ae=0,ve=0,me=0;me<ie.length;++me){var xe=ie[me];ae+=xe.chunkSize(),ve+=xe.height,xe.parent=this}this.size=ae,this.height=ve,this.parent=null}Ss.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ve=0;ve<this.children.length;++ve){var me=this.children[ve],xe=me.chunkSize();if(ie<xe){var _e=Math.min(ae,xe-ie),nt=me.height;if(me.removeInner(ie,_e),this.height-=nt-me.height,xe==_e&&(this.children.splice(ve--,1),me.parent=null),(ae-=_e)==0)break;ie=0}else ie-=xe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Sh))){var pt=[];this.collapse(pt),this.children=[new Sh(pt)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,ve){this.size+=ae.length,this.height+=ve;for(var me=0;me<this.children.length;++me){var xe=this.children[me],_e=xe.chunkSize();if(ie<=_e){if(xe.insertInner(ie,ae,ve),xe.lines&&xe.lines.length>50){for(var nt=xe.lines.length%25+25,pt=nt;pt<xe.lines.length;){var ht=new Sh(xe.lines.slice(pt,pt+=25));xe.height-=ht.height,this.children.splice(++me,0,ht),ht.parent=this}xe.lines=xe.lines.slice(0,nt),this.maybeSpill()}break}ie-=_e}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ve=new Ss(ae);if(ie.parent){ie.size-=ve.size,ie.height-=ve.height;var xe=ct(ie.parent.children,ie);ie.parent.children.splice(xe+1,0,ve)}else{var me=new Ss(ie.children);me.parent=ie,ie.children=[me,ve],ie=me}ve.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ve){for(var me=0;me<this.children.length;++me){var xe=this.children[me],_e=xe.chunkSize();if(ie<_e){var nt=Math.min(ae,_e-ie);if(xe.iterN(ie,nt,ve))return!0;if((ae-=nt)==0)break;ie=0}else ie-=_e}}};var Jc=function(ie,ae,ve){if(ve)for(var me in ve)ve.hasOwnProperty(me)&&(this[me]=ve[me]);this.doc=ie,this.node=ae};Jc.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ve=this.line,me=yt(ve);if(!(me==null||!ae)){for(var xe=0;xe<ae.length;++xe)ae[xe]==this&&ae.splice(xe--,1);ae.length||(ve.widgets=null);var _e=ha(this);ci(ve,Math.max(0,ve.height-_e)),ie&&(pa(ie,function(){Qp(ie,ve,-_e),Oo(ie,me,"widget")}),xr(ie,"lineWidgetCleared",ie,this,me))}},Jc.prototype.changed=function(){var ie=this,ae=this.height,ve=this.doc.cm,me=this.line;this.height=null;var xe=ha(this)-ae;xe&&(En(this.doc,me)||ci(me,me.height+xe),ve&&pa(ve,function(){ve.curOp.forceUpdate=!0,Qp(ve,me,xe),xr(ve,"lineWidgetChanged",ve,ie,yt(me))}))},wt(Jc);function Qp(ie,ae,ve){sr(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&xc(ie,ve)}function kf(ie,ae,ve,me){var xe=new Jc(ie,ve,me),_e=ie.cm;return _e&&xe.noHScroll&&(_e.display.alignWidgets=!0),Xl(ie,ae,"widget",function(nt){var pt=nt.widgets||(nt.widgets=[]);if(xe.insertAt==null?pt.push(xe):pt.splice(Math.min(pt.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=nt,_e&&!En(ie,nt)){var ht=sr(nt)<ie.scrollTop;ci(nt,nt.height+ha(xe)),ht&&xc(_e,xe.height),_e.curOp.forceUpdate=!0}return!0}),_e&&xr(_e,"lineWidgetAdded",_e,xe,typeof ae=="number"?ae:yt(ae)),xe}var Jp=0,Jt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Jp};Jt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&ol(ie),Gn(this,"clear")){var ve=this.find();ve&&xr(this,"clear",ve.from,ve.to)}for(var me=null,xe=null,_e=0;_e<this.lines.length;++_e){var nt=this.lines[_e],pt=wr(nt.markedSpans,this);ie&&!this.collapsed?Oo(ie,yt(nt),"text"):ie&&(pt.to!=null&&(xe=yt(nt)),pt.from!=null&&(me=yt(nt))),nt.markedSpans=Sr(nt.markedSpans,pt),pt.from==null&&this.collapsed&&!En(this.doc,nt)&&ie&&ci(nt,Wa(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var ht=0;ht<this.lines.length;++ht){var At=ti(this.lines[ht]),gn=Yr(At);gn>ie.display.maxLineLength&&(ie.display.maxLine=At,ie.display.maxLineLength=gn,ie.display.maxLineChanged=!0)}me!=null&&ie&&this.collapsed&&qo(ie,me,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Bn(ie.doc)),ie&&xr(ie,"markerCleared",ie,this,me,xe),ae&&Yl(ie),this.parent&&this.parent.clear()}},Jt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ve,me,xe=0;xe<this.lines.length;++xe){var _e=this.lines[xe],nt=wr(_e.markedSpans,this);if(nt.from!=null&&(ve=Rt(ae?_e:yt(_e),nt.from),ie==-1))return ve;if(nt.to!=null&&(me=Rt(ae?_e:yt(_e),nt.to),ie==1))return me}return ve&&{from:ve,to:me}},Jt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ve=this,me=this.doc.cm;!ae||!me||pa(me,function(){var xe=ae.line,_e=yt(ae.line),nt=Ms(me,_e);if(nt&&(Mu(nt),me.curOp.selectionChanged=me.curOp.forceUpdate=!0),me.curOp.updateMaxLine=!0,!En(ve.doc,xe)&&ve.height!=null){var pt=ve.height;ve.height=null;var ht=ha(ve)-pt;ht&&ci(xe,xe.height+ht)}xr(me,"markerChanged",me,ie)})},Jt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||ct(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Jt.prototype.detachLine=function(ie){if(this.lines.splice(ct(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},wt(Jt);function Hd(ie,ae,ve,me,xe){if(me&&me.shared)return qp(ie,ae,ve,me,xe);if(ie.cm&&!ie.cm.curOp)return Ts(ie.cm,Hd)(ie,ae,ve,me,xe);var _e=new Jt(ie,xe),nt=Jn(ae,ve);if(me&&fn(me,_e,!1),nt>0||nt==0&&_e.clearWhenEmpty!==!1)return _e;if(_e.replacedWith&&(_e.collapsed=!0,_e.widgetNode=at("span",[_e.replacedWith],"CodeMirror-widget"),me.handleMouseEvents||_e.widgetNode.setAttribute("cm-ignore-events","true"),me.insertLeft&&(_e.widgetNode.insertLeft=!0)),_e.collapsed){if(mi(ie,ae.line,ae,ve,_e)||ae.line!=ve.line&&mi(ie,ve.line,ae,ve,_e))throw new Error("Inserting collapsed marker partially overlapping an existing one");Mn()}_e.addToHistory&&Kl(ie,{from:ae,to:ve,origin:"markText"},ie.sel,NaN);var pt=ae.line,ht=ie.cm,At;if(ie.iter(pt,ve.line+1,function(Dt){ht&&_e.collapsed&&!ht.options.lineWrapping&&ti(Dt)==ht.display.maxLine&&(At=!0),_e.collapsed&&pt!=ae.line&&ci(Dt,0),yo(Dt,new tr(_e,pt==ae.line?ae.ch:null,pt==ve.line?ve.ch:null)),++pt}),_e.collapsed&&ie.iter(ae.line,ve.line+1,function(Dt){En(ie,Dt)&&ci(Dt,0)}),_e.clearOnEnter&&_t(_e,"beforeCursorEnter",function(){return _e.clear()}),_e.readOnly&&(bo(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),_e.collapsed&&(_e.id=++Jp,_e.atomic=!0),ht){if(At&&(ht.curOp.updateMaxLine=!0),_e.collapsed)qo(ht,ae.line,ve.line+1);else if(_e.className||_e.startStyle||_e.endStyle||_e.css||_e.attributes||_e.title)for(var gn=ae.line;gn<=ve.line;gn++)Oo(ht,gn,"text");_e.atomic&&Bn(ht.doc),xr(ht,"markerAdded",ht,_e)}return _e}var Rc=function(ie,ae){this.markers=ie,this.primary=ae;for(var ve=0;ve<ie.length;++ve)ie[ve].parent=this};Rc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();xr(this,"clear")}},Rc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},wt(Rc);function qp(ie,ae,ve,me,xe){me=fn(me),me.shared=!1;var _e=[Hd(ie,ae,ve,me,xe)],nt=_e[0],pt=me.widgetNode;return Do(ie,function(ht){pt&&(me.widgetNode=pt.cloneNode(!0)),_e.push(Hd(ht,yn(ht,ae),yn(ht,ve),me,xe));for(var At=0;At<ht.linked.length;++At)if(ht.linked[At].isParent)return;nt=Wt(_e)}),new Rc(_e,nt)}function Pg(ie){return ie.findMarks(Rt(ie.first,0),ie.clipPos(Rt(ie.lastLine())),function(ae){return ae.parent})}function $p(ie,ae){for(var ve=0;ve<ae.length;ve++){var me=ae[ve],xe=me.find(),_e=ie.clipPos(xe.from),nt=ie.clipPos(xe.to);if(Jn(_e,nt)){var pt=Hd(ie,_e,nt,me.primary,me.primary.type);me.markers.push(pt),pt.parent=me}}}function kg(ie){for(var ae=function(me){var xe=ie[me],_e=[xe.primary.doc];Do(xe.primary.doc,function(ht){return _e.push(ht)});for(var nt=0;nt<xe.markers.length;nt++){var pt=xe.markers[nt];ct(_e,pt.doc)==-1&&(pt.parent=null,xe.markers.splice(nt--,1))}},ve=0;ve<ie.length;ve++)ae(ve)}var iv=0,Al=function(ie,ae,ve,me,xe){if(!(this instanceof Al))return new Al(ie,ae,ve,me,xe);ve==null&&(ve=0),Ss.call(this,[new Sh([new lo("",null)])]),this.first=ve,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ve;var _e=Rt(ve,0);this.sel=Fa(_e),this.history=new qs(null),this.id=++iv,this.modeOption=ae,this.lineSep=me,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),_o(this,{from:_e,to:_e,text:ie}),pe(this,Fa(_e),Nt)};Al.prototype=Oe(Ss.prototype,{constructor:Al,iter:function(ie,ae,ve){ve?this.iterN(ie-this.first,ae-ie,ve):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ve=0,me=0;me<ae.length;++me)ve+=ae[me].height;this.insertInner(ie-this.first,ae,ve)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=or(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:Ls(function(ie){var ae=Rt(this.first,0),ve=this.first+this.size-1;Go(this,{from:ae,to:Rt(ve,Rn(this,ve).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Dl(this.cm,0,0),pe(this,Fa(ae),Nt)}),replaceRange:function(ie,ae,ve,me){ae=yn(this,ae),ve=ve?yn(this,ve):ae,Qu(this,ie,ae,ve,me)},getRange:function(ie,ae,ve){var me=Ui(this,yn(this,ie),yn(this,ae));return ve===!1?me:me.join(ve||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(li(this,ie))return Rn(this,ie)},getLineNumber:function(ie){return yt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Rn(this,ie)),ti(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return yn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),ve;return ie==null||ie=="head"?ve=ae.head:ie=="anchor"?ve=ae.anchor:ie=="end"||ie=="to"||ie===!1?ve=ae.to():ve=ae.from(),ve},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ls(function(ie,ae,ve){lc(this,yn(this,typeof ie=="number"?Rt(ie,ae||0):ie),null,ve)}),setSelection:Ls(function(ie,ae,ve){lc(this,yn(this,ie),yn(this,ae||ie),ve)}),extendSelection:Ls(function(ie,ae,ve){Xu(this,yn(this,ie),ae&&yn(this,ae),ve)}),extendSelections:Ls(function(ie,ae){gd(this,Zi(this,ie),ae)}),extendSelectionsBy:Ls(function(ie,ae){var ve=An(this.sel.ranges,ie);gd(this,Zi(this,ve),ae)}),setSelections:Ls(function(ie,ae,ve){if(ie.length){for(var me=[],xe=0;xe<ie.length;xe++)me[xe]=new ro(yn(this,ie[xe].anchor),yn(this,ie[xe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),pe(this,So(this.cm,me,ae),ve)}}),addSelection:Ls(function(ie,ae,ve){var me=this.sel.ranges.slice(0);me.push(new ro(yn(this,ie),yn(this,ae||ie))),pe(this,So(this.cm,me,me.length-1),ve)}),getSelection:function(ie){for(var ae=this.sel.ranges,ve,me=0;me<ae.length;me++){var xe=Ui(this,ae[me].from(),ae[me].to());ve=ve?ve.concat(xe):xe}return ie===!1?ve:ve.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ve=this.sel.ranges,me=0;me<ve.length;me++){var xe=Ui(this,ve[me].from(),ve[me].to());ie!==!1&&(xe=xe.join(ie||this.lineSeparator())),ae[me]=xe}return ae},replaceSelection:function(ie,ae,ve){for(var me=[],xe=0;xe<this.sel.ranges.length;xe++)me[xe]=ie;this.replaceSelections(me,ae,ve||"+input")},replaceSelections:Ls(function(ie,ae,ve){for(var me=[],xe=this.sel,_e=0;_e<xe.ranges.length;_e++){var nt=xe.ranges[_e];me[_e]={from:nt.from(),to:nt.to(),text:this.splitLines(ie[_e]),origin:ve}}for(var pt=ae&&ae!="end"&&La(this,me,ae),ht=me.length-1;ht>=0;ht--)Go(this,me[ht]);pt?ue(this,pt):this.cm&&Ol(this.cm)}),undo:Ls(function(){Va(this,"undo")}),redo:Ls(function(){Va(this,"redo")}),undoSelection:Ls(function(){Va(this,"undo",!0)}),redoSelection:Ls(function(){Va(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ve=0,me=0;me<ie.done.length;me++)ie.done[me].ranges||++ae;for(var xe=0;xe<ie.undone.length;xe++)ie.undone[xe].ranges||++ve;return{undo:ae,redo:ve}},clearHistory:function(){var ie=this;this.history=new qs(this.history.maxGeneration),Do(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Vs(this.history.done),undone:Vs(this.history.undone)}},setHistory:function(ie){var ae=this.history=new qs(this.history.maxGeneration);ae.done=Vs(ie.done.slice(0),null,!0),ae.undone=Vs(ie.undone.slice(0),null,!0)},setGutterMarker:Ls(function(ie,ae,ve){return Xl(this,ie,"gutter",function(me){var xe=me.gutterMarkers||(me.gutterMarkers={});return xe[ae]=ve,!ve&&Ue(xe)&&(me.gutterMarkers=null),!0})}),clearGutter:Ls(function(ie){var ae=this;this.iter(function(ve){ve.gutterMarkers&&ve.gutterMarkers[ie]&&Xl(ae,ve,"gutter",function(){return ve.gutterMarkers[ie]=null,Ue(ve.gutterMarkers)&&(ve.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!li(this,ie)||(ae=ie,ie=Rn(this,ie),!ie))return null}else if(ae=yt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:Ls(function(ie,ae,ve){return Xl(this,ie,ae=="gutter"?"gutter":"class",function(me){var xe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!me[xe])me[xe]=ve;else{if(Le(ve).test(me[xe]))return!1;me[xe]+=" "+ve}return!0})}),removeLineClass:Ls(function(ie,ae,ve){return Xl(this,ie,ae=="gutter"?"gutter":"class",function(me){var xe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",_e=me[xe];if(_e)if(ve==null)me[xe]=null;else{var nt=_e.match(Le(ve));if(!nt)return!1;var pt=nt.index+nt[0].length;me[xe]=_e.slice(0,nt.index)+(!nt.index||pt==_e.length?"":" ")+_e.slice(pt)||null}else return!1;return!0})}),addLineWidget:Ls(function(ie,ae,ve){return kf(this,ie,ae,ve)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ve){return Hd(this,yn(this,ie),yn(this,ae),ve,ve&&ve.type||"range")},setBookmark:function(ie,ae){var ve={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=yn(this,ie),Hd(this,ie,ie,ve,"bookmark")},findMarksAt:function(ie){ie=yn(this,ie);var ae=[],ve=Rn(this,ie.line).markedSpans;if(ve)for(var me=0;me<ve.length;++me){var xe=ve[me];(xe.from==null||xe.from<=ie.ch)&&(xe.to==null||xe.to>=ie.ch)&&ae.push(xe.marker.parent||xe.marker)}return ae},findMarks:function(ie,ae,ve){ie=yn(this,ie),ae=yn(this,ae);var me=[],xe=ie.line;return this.iter(ie.line,ae.line+1,function(_e){var nt=_e.markedSpans;if(nt)for(var pt=0;pt<nt.length;pt++){var ht=nt[pt];!(ht.to!=null&&xe==ie.line&&ie.ch>=ht.to||ht.from==null&&xe!=ie.line||ht.from!=null&&xe==ae.line&&ht.from>=ae.ch)&&(!ve||ve(ht.marker))&&me.push(ht.marker.parent||ht.marker)}++xe}),me},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ve=ae.markedSpans;if(ve)for(var me=0;me<ve.length;++me)ve[me].from!=null&&ie.push(ve[me].marker)}),ie},posFromIndex:function(ie){var ae,ve=this.first,me=this.lineSeparator().length;return this.iter(function(xe){var _e=xe.text.length+me;if(_e>ie)return ae=ie,!0;ie-=_e,++ve}),yn(this,Rt(ve,ae))},indexFromPos:function(ie){ie=yn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ve=this.lineSeparator().length;return this.iter(this.first,ie.line,function(me){ae+=me.text.length+ve}),ae},copy:function(ie){var ae=new Al(or(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,ve=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ve&&(ve=ie.to);var me=new Al(or(this,ae,ve),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(me.history=this.history),(this.linked||(this.linked=[])).push({doc:me,sharedHist:ie.sharedHist}),me.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$p(me,Pg(this)),me},unlinkDoc:function(ie){if(ie instanceof Ca&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ve=this.linked[ae];if(ve.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),kg(Pg(this));break}}if(ie.history==this.history){var me=[ie.id];Do(ie,function(xe){return me.push(xe.id)},!0),ie.history=new qs(null),ie.history.done=Vs(this.history.done,me),ie.history.undone=Vs(this.history.undone,me)}},iterLinkedDocs:function(ie){Do(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Nr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ls(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Hs(this.cm))})}),Al.prototype.eachLine=Al.prototype.iter;var Zh=0;function Ng(ie){var ae=this;if(nm(ae),!(jn(ae,ie)||Ea(ae.display,ie))){Si(ie),je&&(Zh=+new Date);var ve=ms(ae,ie,!0),me=ie.dataTransfer.files;if(!(!ve||ae.isReadOnly()))if(me&&me.length&&window.FileReader&&window.File)for(var xe=me.length,_e=Array(xe),nt=0,pt=function(){++nt==xe&&Ts(ae,function(){ve=yn(ae.doc,ve);var kn={from:ve,to:ve,text:ae.doc.splitLines(_e.filter(function(Bi){return Bi!=null}).join(ae.doc.lineSeparator())),origin:"paste"};Go(ae.doc,kn),ue(ae.doc,Fa(yn(ae.doc,ve),yn(ae.doc,Ba(kn))))})()},ht=function(kn,Bi){if(ae.options.allowDropFileTypes&&ct(ae.options.allowDropFileTypes,kn.type)==-1){pt();return}var ji=new FileReader;ji.onerror=function(){return pt()},ji.onload=function(){var nr=ji.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(nr)){pt();return}_e[Bi]=nr,pt()},ji.readAsText(kn)},At=0;At<me.length;At++)ht(me[At],At);else{if(ae.state.draggingText&&ae.doc.sel.contains(ve)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var gn=ie.dataTransfer.getData("Text");if(gn){var Dt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Dt=ae.listSelections()),Ze(ae.doc,Fa(ve,ve)),Dt)for(var Hn=0;Hn<Dt.length;++Hn)Qu(ae.doc,"",Dt[Hn].anchor,Dt[Hn].head,"drag");ae.replaceSelection(gn,"around","paste"),ae.display.input.focus()}}catch(kn){}}}}function em(ie,ae){if(je&&(!ie.state.draggingText||+new Date-Zh<100)){qi(ae);return}if(!(jn(ie,ae)||Ea(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!mt)){var ve=rt("img",null,null,"position: fixed; left: 0; top: 0;");ve.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",We&&(ve.width=ve.height=1,ie.display.wrapper.appendChild(ve),ve._top=ve.offsetTop),ae.dataTransfer.setDragImage(ve,0,0),We&&ve.parentNode.removeChild(ve)}}function tm(ie,ae){var ve=ms(ie,ae);if(ve){var me=document.createDocumentFragment();ta(ie,ve,me),ie.display.dragCursor||(ie.display.dragCursor=rt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Je(ie.display.dragCursor,me)}}function nm(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function im(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ve=[],me=0;me<ae.length;me++){var xe=ae[me].CodeMirror;xe&&ve.push(xe)}ve.length&&ve[0].operation(function(){for(var _e=0;_e<ve.length;_e++)ie(ve[_e])})}}var Lg=!1;function Fu(){Lg||(xh(),Lg=!0)}function xh(){var ie;_t(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,im(Ig)},100))}),_t(window,"blur",function(){return im(Vu)})}function Ig(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Oc={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"},Xh=0;Xh<10;Xh++)Oc[Xh+48]=Oc[Xh+96]=String(Xh);for(var Nf=65;Nf<=90;Nf++)Oc[Nf]=String.fromCharCode(Nf);for(var Qh=1;Qh<=12;Qh++)Oc[Qh+111]=Oc[Qh+63235]="F"+Qh;var Eu={};Eu.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"},Eu.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"},Eu.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"},Eu.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"]},Eu.default=he?Eu.macDefault:Eu.pcDefault;function Mg(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ve,me,xe,_e,nt=0;nt<ae.length-1;nt++){var pt=ae[nt];if(/^(cmd|meta|m)$/i.test(pt))_e=!0;else if(/^a(lt)?$/i.test(pt))ve=!0;else if(/^(c|ctrl|control)$/i.test(pt))me=!0;else if(/^s(hift)?$/i.test(pt))xe=!0;else throw new Error("Unrecognized modifier name: "+pt)}return ve&&(ie="Alt-"+ie),me&&(ie="Ctrl-"+ie),_e&&(ie="Cmd-"+ie),xe&&(ie="Shift-"+ie),ie}function Rg(ie){var ae={};for(var ve in ie)if(ie.hasOwnProperty(ve)){var me=ie[ve];if(/^(name|fallthrough|(de|at)tach)$/.test(ve))continue;if(me=="..."){delete ie[ve];continue}for(var xe=An(ve.split(" "),Mg),_e=0;_e<xe.length;_e++){var nt=void 0,pt=void 0;_e==xe.length-1?(pt=xe.join(" "),nt=me):(pt=xe.slice(0,_e+1).join(" "),nt="...");var ht=ae[pt];if(!ht)ae[pt]=nt;else if(ht!=nt)throw new Error("Inconsistent bindings for "+pt)}delete ie[ve]}for(var At in ae)ie[At]=ae[At];return ie}function Ju(ie,ae,ve,me){ae=jd(ae);var xe=ae.call?ae.call(ie,me):ae[ie];if(xe===!1)return"nothing";if(xe==="...")return"multi";if(xe!=null&&ve(xe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Ju(ie,ae.fallthrough,ve,me);for(var _e=0;_e<ae.fallthrough.length;_e++){var nt=Ju(ie,ae.fallthrough[_e],ve,me);if(nt)return nt}}}function Eh(ie){var ae=typeof ie=="string"?ie:Oc[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Og(ie,ae,ve){var me=ie;return ae.altKey&&me!="Alt"&&(ie="Alt-"+ie),(be?ae.metaKey:ae.ctrlKey)&&me!="Ctrl"&&(ie="Ctrl-"+ie),(be?ae.ctrlKey:ae.metaKey)&&me!="Mod"&&(ie="Cmd-"+ie),!ve&&ae.shiftKey&&me!="Shift"&&(ie="Shift-"+ie),ie}function rm(ie,ae){if(We&&ie.keyCode==34&&ie.char)return!1;var ve=Oc[ie.keyCode];return ve==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ve=ie.code),Og(ve,ie,ae))}function jd(ie){return typeof ie=="string"?Eu[ie]:ie}function bu(ie,ae){for(var ve=ie.doc.sel.ranges,me=[],xe=0;xe<ve.length;xe++){for(var _e=ae(ve[xe]);me.length&&Jn(_e.from,Wt(me).to)<=0;){var nt=me.pop();if(Jn(nt.from,_e.from)<0){_e.from=nt.from;break}}me.push(_e)}pa(ie,function(){for(var pt=me.length-1;pt>=0;pt--)Qu(ie.doc,"",me[pt].from,me[pt].to,"+delete");Ol(ie)})}function Dg(ie,ae,ve){var me=Un(ie.text,ae+ve,ve);return me<0||me>ie.text.length?null:me}function Bs(ie,ae,ve){var me=Dg(ie,ae.ch,ve);return me==null?null:new Rt(ae.line,me,ve<0?"after":"before")}function Jh(ie,ae,ve,me,xe){if(ie){ae.doc.direction=="rtl"&&(xe=-xe);var _e=Ln(ve,ae.doc.direction);if(_e){var nt=xe<0?Wt(_e):_e[0],pt=xe<0==(nt.level==1),ht=pt?"after":"before",At;if(nt.level>0||ae.doc.direction=="rtl"){var gn=js(ae,ve);At=xe<0?ve.text.length-1:0;var Dt=Rs(ae,gn,At).top;At=qn(function(Hn){return Rs(ae,gn,Hn).top==Dt},xe<0==(nt.level==1)?nt.from:nt.to-1,At),ht=="before"&&(At=Dg(ve,At,1))}else At=xe<0?nt.to:nt.from;return new Rt(me,At,ht)}}return new Rt(me,xe<0?ve.text.length:0,xe<0?"before":"after")}function Lf(ie,ae,ve,me){var xe=Ln(ae,ie.doc.direction);if(!xe)return Bs(ae,ve,me);ve.ch>=ae.text.length?(ve.ch=ae.text.length,ve.sticky="before"):ve.ch<=0&&(ve.ch=0,ve.sticky="after");var _e=sn(xe,ve.ch,ve.sticky),nt=xe[_e];if(ie.doc.direction=="ltr"&&nt.level%2==0&&(me>0?nt.to>ve.ch:nt.from<ve.ch))return Bs(ae,ve,me);var pt=function(Er,Xr){return Dg(ae,Er instanceof Rt?Er.ch:Er,Xr)},ht,At=function(Er){return ie.options.lineWrapping?(ht=ht||js(ie,ae),Ta(ie,ae,ht,Er)):{begin:0,end:ae.text.length}},gn=At(ve.sticky=="before"?pt(ve,-1):ve.ch);if(ie.doc.direction=="rtl"||nt.level==1){var Dt=nt.level==1==me<0,Hn=pt(ve,Dt?1:-1);if(Hn!=null&&(Dt?Hn<=nt.to&&Hn<=gn.end:Hn>=nt.from&&Hn>=gn.begin)){var kn=Dt?"before":"after";return new Rt(ve.line,Hn,kn)}}var Bi=function(Er,Xr,Fr){for(var io=function(cs,tl){return tl?new Rt(ve.line,pt(cs,1),"before"):new Rt(ve.line,cs,"after")};Er>=0&&Er<xe.length;Er+=Xr){var Bo=xe[Er],Mr=Xr>0==(Bo.level!=1),ra=Mr?Fr.begin:pt(Fr.end,-1);if(Bo.from<=ra&&ra<Bo.to||(ra=Mr?Bo.from:pt(Bo.to,-1),Fr.begin<=ra&&ra<Fr.end))return io(ra,Mr)}},ji=Bi(_e+me,me,gn);if(ji)return ji;var nr=me>0?gn.end:pt(gn.begin,-1);return nr!=null&&!(me>0&&nr==ae.text.length)&&(ji=Bi(me>0?0:xe.length-1,me,At(nr)),ji)?ji:null}var pd={selectAll:Ei,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Nt)},killLine:function(ie){return bu(ie,function(ae){if(ae.empty()){var ve=Rn(ie.doc,ae.head.line).text.length;return ae.head.ch==ve&&ae.head.line<ie.lastLine()?{from:ae.head,to:Rt(ae.head.line+1,0)}:{from:ae.head,to:Rt(ae.head.line,ve)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return bu(ie,function(ae){return{from:Rt(ae.from().line,0),to:yn(ie.doc,Rt(ae.to().line+1,0))}})},delLineLeft:function(ie){return bu(ie,function(ae){return{from:Rt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return bu(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return{from:me,to:ae.from()}})},delWrappedLineRight:function(ie){return bu(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div");return{from:ae.from(),to:me}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(Rt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Rt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return bh(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return Fg(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return wh(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div")},cn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ve},"div")},cn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return me.ch<ie.getLine(me.line).search(/\S/)?Fg(ie,ae.head):me},cn)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],ve=ie.listSelections(),me=ie.options.tabSize,xe=0;xe<ve.length;xe++){var _e=ve[xe].from(),nt=bt(ie.getLine(_e.line),_e.ch,me);ae.push(Pt(me-nt%me))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return pa(ie,function(){for(var ae=ie.listSelections(),ve=[],me=0;me<ae.length;me++)if(ae[me].empty()){var xe=ae[me].head,_e=Rn(ie.doc,xe.line).text;if(_e){if(xe.ch==_e.length&&(xe=new Rt(xe.line,xe.ch-1)),xe.ch>0)xe=new Rt(xe.line,xe.ch+1),ie.replaceRange(_e.charAt(xe.ch-1)+_e.charAt(xe.ch-2),Rt(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>ie.doc.first){var nt=Rn(ie.doc,xe.line-1).text;nt&&(xe=new Rt(xe.line,1),ie.replaceRange(_e.charAt(0)+ie.doc.lineSeparator()+nt.charAt(nt.length-1),Rt(xe.line-1,nt.length-1),xe,"+transpose"))}}ve.push(new ro(xe,xe))}ie.setSelections(ve)})},newlineAndIndent:function(ie){return pa(ie,function(){for(var ae=ie.listSelections(),ve=ae.length-1;ve>=0;ve--)ie.replaceRange(ie.doc.lineSeparator(),ae[ve].anchor,ae[ve].head,"+input");ae=ie.listSelections();for(var me=0;me<ae.length;me++)ie.indentLine(ae[me].from().line,null,!0);Ol(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function bh(ie,ae){var ve=Rn(ie.doc,ae),me=ti(ve);return me!=ve&&(ae=yt(me)),Jh(!0,ie,me,ae,1)}function wh(ie,ae){var ve=Rn(ie.doc,ae),me=gi(ve);return me!=ve&&(ae=yt(me)),Jh(!0,ie,ve,ae,-1)}function Fg(ie,ae){var ve=bh(ie,ae.line),me=Rn(ie.doc,ve.line),xe=Ln(me,ie.doc.direction);if(!xe||xe[0].level==0){var _e=Math.max(ve.ch,me.text.search(/\S/)),nt=ae.line==ve.line&&ae.ch<=_e&&ae.ch;return Rt(ve.line,nt?0:_e,ve.sticky)}return ve}function Ch(ie,ae,ve){if(typeof ae=="string"&&(ae=pd[ae],!ae))return!1;ie.display.input.ensurePolled();var me=ie.display.shift,xe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ve&&(ie.display.shift=!1),xe=ae(ie)!=un}finally{ie.display.shift=me,ie.state.suppressEdits=!1}return xe}function Bg(ie,ae,ve){for(var me=0;me<ie.state.keyMaps.length;me++){var xe=Ju(ae,ie.state.keyMaps[me],ve,ie);if(xe)return xe}return ie.options.extraKeys&&Ju(ae,ie.options.extraKeys,ve,ie)||Ju(ae,ie.options.keyMap,ve,ie)}var Dc=new dt;function Gd(ie,ae,ve,me){var xe=ie.state.keySeq;if(xe){if(Eh(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Dc.set(50,function(){ie.state.keySeq==xe&&(ie.state.keySeq=null,ie.display.input.reset())}),If(ie,xe+" "+ae,ve,me))return!0}return If(ie,ae,ve,me)}function If(ie,ae,ve,me){var xe=Bg(ie,ae,me);return xe=="multi"&&(ie.state.keySeq=ae),xe=="handled"&&xr(ie,"keyHandled",ie,ae,ve),(xe=="handled"||xe=="multi")&&(Si(ve),fa(ie)),!!xe}function Mf(ie,ae){var ve=rm(ae,!0);return ve?ae.shiftKey&&!ie.state.keySeq?Gd(ie,"Shift-"+ve,ae,function(me){return Ch(ie,me,!0)})||Gd(ie,ve,ae,function(me){if(typeof me=="string"?/^go[A-Z]/.test(me):me.motion)return Ch(ie,me)}):Gd(ie,ve,ae,function(me){return Ch(ie,me)}):!1}function Rf(ie,ae,ve){return Gd(ie,"'"+ve+"'",ae,function(me){return Ch(ie,me,!0)})}var Wd=null;function _g(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=Lt(),!jn(ae,ie))){je&&Te<11&&ie.keyCode==27&&(ie.returnValue=!1);var ve=ie.keyCode;ae.display.shift=ve==16||ie.shiftKey;var me=Mf(ae,ie);We&&(Wd=me?ve:null,!me&&ve==88&&!Vi&&(he?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),ce&&!he&&!me&&ve==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ve==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Ug(ae)}}function Ug(ie){var ae=ie.display.lineDiv;Ut(ae,"CodeMirror-crosshair");function ve(me){(me.keyCode==18||!me.altKey)&&(Ve(ae,"CodeMirror-crosshair"),Kn(document,"keyup",ve),Kn(document,"mouseover",ve))}_t(document,"keyup",ve),_t(document,"mouseover",ve)}function zg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),jn(this,ie)}function Ec(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Ea(ae.display,ie)||jn(ae,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ve=ie.keyCode,me=ie.charCode;if(We&&ve==Wd){Wd=null,Si(ie);return}if(!(We&&(!ie.which||ie.which<10)&&Mf(ae,ie))){var xe=String.fromCharCode(me==null?ve:me);xe!="\b"&&(Rf(ae,ie,xe)||ae.display.input.onKeyPress(ie))}}}var om=400,Hg=function(ie,ae,ve){this.time=ie,this.pos=ae,this.button=ve};Hg.prototype.compare=function(ie,ae,ve){return this.time+om>ie&&Jn(ae,this.pos)==0&&ve==this.button};var Th,Vd;function jg(ie,ae){var ve=+new Date;return Vd&&Vd.compare(ve,ie,ae)?(Th=Vd=null,"triple"):Th&&Th.compare(ve,ie,ae)?(Vd=new Hg(ve,ie,ae),Th=null,"double"):(Th=new Hg(ve,ie,ae),Vd=null,"single")}function bc(ie){var ae=this,ve=ae.display;if(!(jn(ae,ie)||ve.activeTouch&&ve.input.supportsTouch())){if(ve.input.ensurePolled(),ve.shift=ie.shiftKey,Ea(ve,ie)){Ge||(ve.scroller.draggable=!1,setTimeout(function(){return ve.scroller.draggable=!0},100));return}if(!Ff(ae,ie)){var me=ms(ae,ie),xe=rr(ie),_e=me?jg(me,xe):"single";window.focus(),xe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(me&&Gg(ae,xe,me,_e,ie))&&(xe==1?me?am(ae,me,_e,ie):lr(ie)==ve.scroller&&Si(ie):xe==2?(me&&Xu(ae.doc,me),setTimeout(function(){return ve.input.focus()},20)):xe==3&&(Ae?ae.display.input.onContextMenu(ie):Ma(ae)))}}}function Gg(ie,ae,ve,me,xe){var _e="Click";return me=="double"?_e="Double"+_e:me=="triple"&&(_e="Triple"+_e),_e=(ae==1?"Left":ae==2?"Middle":"Right")+_e,Gd(ie,Og(_e,xe),xe,function(nt){if(typeof nt=="string"&&(nt=pd[nt]),!nt)return!1;var pt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),pt=nt(ie,ve)!=un}finally{ie.state.suppressEdits=!1}return pt})}function Of(ie,ae,ve){var me=ie.getOption("configureMouse"),xe=me?me(ie,ae,ve):{};if(xe.unit==null){var _e=se?ve.shiftKey&&ve.metaKey:ve.altKey;xe.unit=_e?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(xe.extend==null||ie.doc.extend)&&(xe.extend=ie.doc.extend||ve.shiftKey),xe.addNew==null&&(xe.addNew=he?ve.metaKey:ve.ctrlKey),xe.moveOnDrag==null&&(xe.moveOnDrag=!(he?ve.altKey:ve.ctrlKey)),xe}function am(ie,ae,ve,me){je?setTimeout(Kt(ya,ie),0):ie.curOp.focus=Lt();var xe=Of(ie,ve,me),_e=ie.doc.sel,nt;ie.options.dragDrop&&In&&!ie.isReadOnly()&&ve=="single"&&(nt=_e.contains(ae))>-1&&(Jn((nt=_e.ranges[nt]).from(),ae)<0||ae.xRel>0)&&(Jn(nt.to(),ae)>0||ae.xRel<0)?Wg(ie,me,ae,xe):rv(ie,me,ae,xe)}function Wg(ie,ae,ve,me){var xe=ie.display,_e=!1,nt=Ts(ie,function(At){Ge&&(xe.scroller.draggable=!1),ie.state.draggingText=!1,Kn(xe.wrapper.ownerDocument,"mouseup",nt),Kn(xe.wrapper.ownerDocument,"mousemove",pt),Kn(xe.scroller,"dragstart",ht),Kn(xe.scroller,"drop",nt),_e||(Si(At),me.addNew||Xu(ie.doc,ve,null,null,me.extend),Ge&&!mt||je&&Te==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),pt=function(At){_e=_e||Math.abs(ae.clientX-At.clientX)+Math.abs(ae.clientY-At.clientY)>=10},ht=function(){return _e=!0};Ge&&(xe.scroller.draggable=!0),ie.state.draggingText=nt,nt.copy=!me.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),_t(xe.wrapper.ownerDocument,"mouseup",nt),_t(xe.wrapper.ownerDocument,"mousemove",pt),_t(xe.scroller,"dragstart",ht),_t(xe.scroller,"drop",nt),Ma(ie),setTimeout(function(){return xe.input.focus()},20)}function Vg(ie,ae,ve){if(ve=="char")return new ro(ae,ae);if(ve=="word")return ie.findWordAt(ae);if(ve=="line")return new ro(Rt(ae.line,0),yn(ie.doc,Rt(ae.line+1,0)));var me=ve(ie,ae);return new ro(me.from,me.to)}function rv(ie,ae,ve,me){var xe=ie.display,_e=ie.doc;Si(ae);var nt,pt,ht=_e.sel,At=ht.ranges;if(me.addNew&&!me.extend?(pt=_e.sel.contains(ve),pt>-1?nt=At[pt]:nt=new ro(ve,ve)):(nt=_e.sel.primary(),pt=_e.sel.primIndex),me.unit=="rectangle")me.addNew||(nt=new ro(ve,ve)),ve=ms(ie,ae,!0,!0),pt=-1;else{var gn=Vg(ie,ve,me.unit);me.extend?nt=Ou(nt,gn.anchor,gn.head,me.extend):nt=gn}me.addNew?pt==-1?(pt=At.length,pe(_e,So(ie,At.concat([nt]),pt),{scroll:!1,origin:"*mouse"})):At.length>1&&At[pt].empty()&&me.unit=="char"&&!me.extend?(pe(_e,So(ie,At.slice(0,pt).concat(At.slice(pt+1)),0),{scroll:!1,origin:"*mouse"}),ht=_e.sel):uu(_e,pt,nt,hn):(pt=0,pe(_e,new Ir([nt],0),hn),ht=_e.sel);var Dt=ve;function Hn(Fr){if(Jn(Dt,Fr)!=0)if(Dt=Fr,me.unit=="rectangle"){for(var io=[],Bo=ie.options.tabSize,Mr=bt(Rn(_e,ve.line).text,ve.ch,Bo),ra=bt(Rn(_e,Fr.line).text,Fr.ch,Bo),cs=Math.min(Mr,ra),tl=Math.max(Mr,ra),xs=Math.min(ve.line,Fr.line),hu=Math.min(ie.lastLine(),Math.max(ve.line,Fr.line));xs<=hu;xs++){var _l=Rn(_e,xs).text,Ks=Qn(_l,cs,Bo);cs==tl?io.push(new ro(Rt(xs,Ks),Rt(xs,Ks))):_l.length>Ks&&io.push(new ro(Rt(xs,Ks),Rt(xs,Qn(_l,tl,Bo))))}io.length||io.push(new ro(ve,ve)),pe(_e,So(ie,ht.ranges.slice(0,pt).concat(io),pt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Fr)}else{var wu=nt,Pl=Vg(ie,Fr,me.unit),Zs=wu.anchor,Aa;Jn(Pl.anchor,Zs)>0?(Aa=Pl.head,Zs=si(wu.from(),Pl.anchor)):(Aa=Pl.anchor,Zs=ze(wu.to(),Pl.head));var As=ht.ranges.slice(0);As[pt]=sm(ie,new ro(yn(_e,Zs),Aa)),pe(_e,So(ie,As,pt),hn)}}var kn=xe.wrapper.getBoundingClientRect(),Bi=0;function ji(Fr){var io=++Bi,Bo=ms(ie,Fr,!0,me.unit=="rectangle");if(Bo)if(Jn(Bo,Dt)!=0){ie.curOp.focus=Lt(),Hn(Bo);var Mr=Vo(xe,_e);(Bo.line>=Mr.to||Bo.line<Mr.from)&&setTimeout(Ts(ie,function(){Bi==io&&ji(Fr)}),150)}else{var ra=Fr.clientY<kn.top?-20:Fr.clientY>kn.bottom?20:0;ra&&setTimeout(Ts(ie,function(){Bi==io&&(xe.scroller.scrollTop+=ra,ji(Fr))}),50)}}function nr(Fr){ie.state.selectingText=!1,Bi=1/0,Fr&&(Si(Fr),xe.input.focus()),Kn(xe.wrapper.ownerDocument,"mousemove",Er),Kn(xe.wrapper.ownerDocument,"mouseup",Xr),_e.history.lastSelOrigin=null}var Er=Ts(ie,function(Fr){Fr.buttons===0||!rr(Fr)?nr(Fr):ji(Fr)}),Xr=Ts(ie,nr);ie.state.selectingText=Xr,_t(xe.wrapper.ownerDocument,"mousemove",Er),_t(xe.wrapper.ownerDocument,"mouseup",Xr)}function sm(ie,ae){var ve=ae.anchor,me=ae.head,xe=Rn(ie.doc,ve.line);if(Jn(ve,me)==0&&ve.sticky==me.sticky)return ae;var _e=Ln(xe);if(!_e)return ae;var nt=sn(_e,ve.ch,ve.sticky),pt=_e[nt];if(pt.from!=ve.ch&&pt.to!=ve.ch)return ae;var ht=nt+(pt.from==ve.ch==(pt.level!=1)?0:1);if(ht==0||ht==_e.length)return ae;var At;if(me.line!=ve.line)At=(me.line-ve.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var gn=sn(_e,me.ch,me.sticky),Dt=gn-nt||(me.ch-ve.ch)*(pt.level==1?-1:1);gn==ht-1||gn==ht?At=Dt<0:At=Dt>0}var Hn=_e[ht+(At?-1:0)],kn=At==(Hn.level==1),Bi=kn?Hn.from:Hn.to,ji=kn?"after":"before";return ve.ch==Bi&&ve.sticky==ji?ae:new ro(new Rt(ve.line,Bi,ji),me)}function Df(ie,ae,ve,me){var xe,_e;if(ae.touches)xe=ae.touches[0].clientX,_e=ae.touches[0].clientY;else try{xe=ae.clientX,_e=ae.clientY}catch(Hn){return!1}if(xe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;me&&Si(ae);var nt=ie.display,pt=nt.lineDiv.getBoundingClientRect();if(_e>pt.bottom||!Gn(ie,ve))return Vt(ae);_e-=pt.top-nt.viewOffset;for(var ht=0;ht<ie.display.gutterSpecs.length;++ht){var At=nt.gutters.childNodes[ht];if(At&&At.getBoundingClientRect().right>=xe){var gn=zt(ie.doc,_e),Dt=ie.display.gutterSpecs[ht];return Tn(ie,ve,ie,gn,Dt.className,ae),Vt(ae)}}}function Ff(ie,ae){return Df(ie,ae,"gutterClick",!0)}function Bf(ie,ae){Ea(ie.display,ae)||lm(ie,ae)||jn(ie,ae,"contextmenu")||Ae||ie.display.input.onContextMenu(ae)}function lm(ie,ae){return Gn(ie,"gutterContextMenu")?Df(ie,ae,"gutterContextMenu",!1):!1}function _f(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zn(ie)}var md={toString:function(){return"CodeMirror.Init"}},Yg={},qh={};function um(ie){var ae=ie.optionHandlers;function ve(me,xe,_e,nt){ie.defaults[me]=xe,_e&&(ae[me]=nt?function(pt,ht,At){At!=md&&_e(pt,ht,At)}:_e)}ie.defineOption=ve,ie.Init=md,ve("value","",function(me,xe){return me.setValue(xe)},!0),ve("mode",null,function(me,xe){me.doc.modeOption=xe,$r(me)},!0),ve("indentUnit",2,$r,!0),ve("indentWithTabs",!1),ve("smartIndent",!0),ve("tabSize",4,function(me){sl(me),Zn(me),qo(me)},!0),ve("lineSeparator",null,function(me,xe){if(me.doc.lineSep=xe,!!xe){var _e=[],nt=me.doc.first;me.doc.iter(function(ht){for(var At=0;;){var gn=ht.text.indexOf(xe,At);if(gn==-1)break;At=gn+xe.length,_e.push(Rt(nt,gn))}nt++});for(var pt=_e.length-1;pt>=0;pt--)Qu(me.doc,xe,_e[pt],Rt(_e[pt].line,_e[pt].ch+xe.length))}}),ve("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(me,xe,_e){me.state.specialChars=new RegExp(xe.source+(xe.test(" ")?"":"| "),"g"),_e!=md&&me.refresh()}),ve("specialCharPlaceholder",mo,function(me){return me.refresh()},!0),ve("electricChars",!0),ve("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ve("spellcheck",!1,function(me,xe){return me.getInputField().spellcheck=xe},!0),ve("autocorrect",!1,function(me,xe){return me.getInputField().autocorrect=xe},!0),ve("autocapitalize",!1,function(me,xe){return me.getInputField().autocapitalize=xe},!0),ve("rtlMoveVisually",!ge),ve("wholeLineUpdateBefore",!0),ve("theme","default",function(me){_f(me),Sn(me)},!0),ve("keyMap","default",function(me,xe,_e){var nt=jd(xe),pt=_e!=md&&jd(_e);pt&&pt.detach&&pt.detach(me,nt),nt.attach&&nt.attach(me,pt||null)}),ve("extraKeys",null),ve("configureMouse",null),ve("lineWrapping",!1,cm,!0),ve("gutters",[],function(me,xe){me.display.gutterSpecs=Dn(xe,me.options.lineNumbers),Sn(me)},!0),ve("fixedGutter",!0,function(me,xe){me.display.gutters.style.left=xe?El(me.display)+"px":"0",me.refresh()},!0),ve("coverGutterNextToScrollbar",!1,function(me){return ys(me)},!0),ve("scrollbarStyle","native",function(me){wl(me),ys(me),me.display.scrollbars.setScrollTop(me.doc.scrollTop),me.display.scrollbars.setScrollLeft(me.doc.scrollLeft)},!0),ve("lineNumbers",!1,function(me,xe){me.display.gutterSpecs=Dn(me.options.gutters,xe),Sn(me)},!0),ve("firstLineNumber",1,Sn,!0),ve("lineNumberFormatter",function(me){return me},Sn,!0),ve("showCursorWhenSelecting",!1,ss,!0),ve("resetSelectionOnContextMenu",!0),ve("lineWiseCopyCut",!0),ve("pasteLinesPerSelection",!0),ve("selectionsMayTouch",!1),ve("readOnly",!1,function(me,xe){xe=="nocursor"&&(Vu(me),me.display.input.blur()),me.display.input.readOnlyChanged(xe)}),ve("screenReaderLabel",null,function(me,xe){xe=xe===""?null:xe,me.display.input.screenReaderLabelChanged(xe)}),ve("disableInput",!1,function(me,xe){xe||me.display.input.reset()},!0),ve("dragDrop",!0,Uf),ve("allowDropFileTypes",null),ve("cursorBlinkRate",530),ve("cursorScrollMargin",0),ve("cursorHeight",1,ss,!0),ve("singleCursorHeightPerLine",!0,ss,!0),ve("workTime",100),ve("workDelay",100),ve("flattenSpans",!0,sl,!0),ve("addModeClass",!1,sl,!0),ve("pollInterval",100),ve("undoDepth",200,function(me,xe){return me.doc.history.undoDepth=xe}),ve("historyEventDelay",1250),ve("viewportMargin",10,function(me){return me.refresh()},!0),ve("maxHighlightLength",1e4,sl,!0),ve("moveInputWithCursor",!0,function(me,xe){xe||me.display.input.resetPosition()}),ve("tabindex",null,function(me,xe){return me.display.input.getField().tabIndex=xe||""}),ve("autofocus",null),ve("direction","ltr",function(me,xe){return me.doc.setDirection(xe)},!0),ve("phrases",null)}function Uf(ie,ae,ve){var me=ve&&ve!=md;if(!ae!=!me){var xe=ie.display.dragFunctions,_e=ae?_t:Kn;_e(ie.display.scroller,"dragstart",xe.start),_e(ie.display.scroller,"dragenter",xe.enter),_e(ie.display.scroller,"dragover",xe.over),_e(ie.display.scroller,"dragleave",xe.leave),_e(ie.display.scroller,"drop",xe.drop)}}function cm(ie){ie.options.lineWrapping?(Ut(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ve(ie.display.wrapper,"CodeMirror-wrap"),hr(ie)),qr(ie),qo(ie),Zn(ie),setTimeout(function(){return ys(ie)},100)}function Ca(ie,ae){var ve=this;if(!(this instanceof Ca))return new Ca(ie,ae);this.options=ae=ae?fn(ae):{},fn(Yg,ae,!1);var me=ae.value;typeof me=="string"?me=new Al(me,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(me.modeOption=ae.mode),this.doc=me;var xe=new Ca.inputStyles[ae.inputStyle](this),_e=this.display=new hi(ie,me,xe,ae);_e.wrapper.CodeMirror=this,_f(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wl(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 dt,keySeq:null,specialChars:null},ae.autofocus&&!te&&_e.input.focus(),je&&Te<11&&setTimeout(function(){return ve.display.input.reset(!0)},20),Ah(this),Fu(),ol(this),this.curOp.forceUpdate=!0,la(this,me),ae.autofocus&&!te||this.hasFocus()?setTimeout(function(){ve.hasFocus()&&!ve.state.focused&&zo(ve)},20):Vu(this);for(var nt in qh)qh.hasOwnProperty(nt)&&qh[nt](this,ae[nt],md);Zt(this),ae.finishInit&&ae.finishInit(this);for(var pt=0;pt<Yd.length;++pt)Yd[pt](this);Yl(this),Ge&&ae.lineWrapping&&getComputedStyle(_e.lineDiv).textRendering=="optimizelegibility"&&(_e.lineDiv.style.textRendering="auto")}Ca.defaults=Yg,Ca.optionHandlers=qh;function Ah(ie){var ae=ie.display;_t(ae.scroller,"mousedown",Ts(ie,bc)),je&&Te<11?_t(ae.scroller,"dblclick",Ts(ie,function(ht){if(!jn(ie,ht)){var At=ms(ie,ht);if(!(!At||Ff(ie,ht)||Ea(ie.display,ht))){Si(ht);var gn=ie.findWordAt(At);Xu(ie.doc,gn.anchor,gn.head)}}})):_t(ae.scroller,"dblclick",function(ht){return jn(ie,ht)||Si(ht)}),_t(ae.scroller,"contextmenu",function(ht){return Bf(ie,ht)}),_t(ae.input.getField(),"contextmenu",function(ht){ae.scroller.contains(ht.target)||Bf(ie,ht)});var ve,me={end:0};function xe(){ae.activeTouch&&(ve=setTimeout(function(){return ae.activeTouch=null},1e3),me=ae.activeTouch,me.end=+new Date)}function _e(ht){if(ht.touches.length!=1)return!1;var At=ht.touches[0];return At.radiusX<=1&&At.radiusY<=1}function nt(ht,At){if(At.left==null)return!0;var gn=At.left-ht.left,Dt=At.top-ht.top;return gn*gn+Dt*Dt>20*20}_t(ae.scroller,"touchstart",function(ht){if(!jn(ie,ht)&&!_e(ht)&&!Ff(ie,ht)){ae.input.ensurePolled(),clearTimeout(ve);var At=+new Date;ae.activeTouch={start:At,moved:!1,prev:At-me.end<=300?me:null},ht.touches.length==1&&(ae.activeTouch.left=ht.touches[0].pageX,ae.activeTouch.top=ht.touches[0].pageY)}}),_t(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),_t(ae.scroller,"touchend",function(ht){var At=ae.activeTouch;if(At&&!Ea(ae,ht)&&At.left!=null&&!At.moved&&new Date-At.start<300){var gn=ie.coordsChar(ae.activeTouch,"page"),Dt;!At.prev||nt(At,At.prev)?Dt=new ro(gn,gn):!At.prev.prev||nt(At,At.prev.prev)?Dt=ie.findWordAt(gn):Dt=new ro(Rt(gn.line,0),yn(ie.doc,Rt(gn.line+1,0))),ie.setSelection(Dt.anchor,Dt.head),ie.focus(),Si(ht)}xe()}),_t(ae.scroller,"touchcancel",xe),_t(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(Fl(ie,ae.scroller.scrollTop),Vl(ie,ae.scroller.scrollLeft,!0),Tn(ie,"scroll",ie))}),_t(ae.scroller,"mousewheel",function(ht){return jo(ie,ht)}),_t(ae.scroller,"DOMMouseScroll",function(ht){return jo(ie,ht)}),_t(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(ht){jn(ie,ht)||qi(ht)},over:function(ht){jn(ie,ht)||(tm(ie,ht),qi(ht))},start:function(ht){return em(ie,ht)},drop:Ts(ie,Ng),leave:function(ht){jn(ie,ht)||nm(ie)}};var pt=ae.input.getField();_t(pt,"keyup",function(ht){return zg.call(ie,ht)}),_t(pt,"keydown",Ts(ie,_g)),_t(pt,"keypress",Ts(ie,Ec)),_t(pt,"focus",function(ht){return zo(ie,ht)}),_t(pt,"blur",function(ht){return Vu(ie,ht)})}var Yd=[];Ca.defineInitHook=function(ie){return Yd.push(ie)};function el(ie,ae,ve,me){var xe=ie.doc,_e;ve==null&&(ve="add"),ve=="smart"&&(xe.mode.indent?_e=Eo(ie,ae).state:ve="prev");var nt=ie.options.tabSize,pt=Rn(xe,ae),ht=bt(pt.text,null,nt);pt.stateAfter&&(pt.stateAfter=null);var At=pt.text.match(/^\s*/)[0],gn;if(!me&&!/\S/.test(pt.text))gn=0,ve="not";else if(ve=="smart"&&(gn=xe.mode.indent(_e,pt.text.slice(At.length),pt.text),gn==un||gn>150)){if(!me)return;ve="prev"}ve=="prev"?ae>xe.first?gn=bt(Rn(xe,ae-1).text,null,nt):gn=0:ve=="add"?gn=ht+ie.options.indentUnit:ve=="subtract"?gn=ht-ie.options.indentUnit:typeof ve=="number"&&(gn=ht+ve),gn=Math.max(0,gn);var Dt="",Hn=0;if(ie.options.indentWithTabs)for(var kn=Math.floor(gn/nt);kn;--kn)Hn+=nt,Dt+=" ";if(Hn<gn&&(Dt+=Pt(gn-Hn)),Dt!=At)return Qu(xe,Dt,Rt(ae,0),Rt(ae,At.length),"+input"),pt.stateAfter=null,!0;for(var Bi=0;Bi<xe.sel.ranges.length;Bi++){var ji=xe.sel.ranges[Bi];if(ji.head.line==ae&&ji.head.ch<At.length){var nr=Rt(ae,At.length);uu(xe,Bi,new ro(nr,nr));break}}}var du=null;function Kd(ie){du=ie}function $h(ie,ae,ve,me,xe){var _e=ie.doc;ie.display.shift=!1,me||(me=_e.sel);var nt=+new Date-200,pt=xe=="paste"||ie.state.pasteIncoming>nt,ht=Nr(ae),At=null;if(pt&&me.ranges.length>1)if(du&&du.text.join(`
|
|
|
`)==ae){if(me.ranges.length%du.text.length==0){At=[];for(var gn=0;gn<du.text.length;gn++)At.push(_e.splitLines(du.text[gn]))}}else ht.length==me.ranges.length&&ie.options.pasteLinesPerSelection&&(At=An(ht,function(Er){return[Er]}));for(var Dt=ie.curOp.updateInput,Hn=me.ranges.length-1;Hn>=0;Hn--){var kn=me.ranges[Hn],Bi=kn.from(),ji=kn.to();kn.empty()&&(ve&&ve>0?Bi=Rt(Bi.line,Bi.ch-ve):ie.state.overwrite&&!pt?ji=Rt(ji.line,Math.min(Rn(_e,ji.line).text.length,ji.ch+Wt(ht).length)):pt&&du&&du.lineWise&&du.text.join(`
|
|
|
`)==ht.join(`
|
|
|
`)&&(Bi=ji=Rt(Bi.line,0)));var nr={from:Bi,to:ji,text:At?At[Hn%At.length]:ht,origin:xe||(pt?"paste":ie.state.cutIncoming>nt?"cut":"+input")};Go(ie.doc,nr),xr(ie,"inputRead",ie,nr)}ae&&!pt&&Zg(ie,ae),Ol(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Dt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Kg(ie,ae){var ve=ie.clipboardData&&ie.clipboardData.getData("Text");if(ve)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&pa(ae,function(){return $h(ae,ve,0,null,"paste")}),!0}function Zg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ve=ie.doc.sel,me=ve.ranges.length-1;me>=0;me--){var xe=ve.ranges[me];if(!(xe.head.ch>100||me&&ve.ranges[me-1].head.line==xe.head.line)){var _e=ie.getModeAt(xe.head),nt=!1;if(_e.electricChars){for(var pt=0;pt<_e.electricChars.length;pt++)if(ae.indexOf(_e.electricChars.charAt(pt))>-1){nt=el(ie,xe.head.line,"smart");break}}else _e.electricInput&&_e.electricInput.test(Rn(ie.doc,xe.head.line).text.slice(0,xe.head.ch))&&(nt=el(ie,xe.head.line,"smart"));nt&&xr(ie,"electricInput",ie,xe.head.line)}}}function Xg(ie){for(var ae=[],ve=[],me=0;me<ie.doc.sel.ranges.length;me++){var xe=ie.doc.sel.ranges[me].head.line,_e={anchor:Rt(xe,0),head:Rt(xe+1,0)};ve.push(_e),ae.push(ie.getRange(_e.anchor,_e.head))}return{text:ae,ranges:ve}}function Qg(ie,ae,ve,me){ie.setAttribute("autocorrect",ve?"":"off"),ie.setAttribute("autocapitalize",me?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Jg(){var ie=rt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=rt("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ge?ie.style.width="1000px":ie.setAttribute("wrap","off"),Fe&&(ie.style.border="1px solid black"),Qg(ie),ae}function vd(ie){var ae=ie.optionHandlers,ve=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(me,xe){var _e=this.options,nt=_e[me];_e[me]==xe&&me!="mode"||(_e[me]=xe,ae.hasOwnProperty(me)&&Ts(this,ae[me])(this,xe,nt),Tn(this,"optionChange",this,me))},getOption:function(me){return this.options[me]},getDoc:function(){return this.doc},addKeyMap:function(me,xe){this.state.keyMaps[xe?"push":"unshift"](jd(me))},removeKeyMap:function(me){for(var xe=this.state.keyMaps,_e=0;_e<xe.length;++_e)if(xe[_e]==me||xe[_e].name==me)return xe.splice(_e,1),!0},addOverlay:Ds(function(me,xe){var _e=me.token?me:ie.getMode(this.options,me);if(_e.startState)throw new Error("Overlays may not be stateful.");Nn(this.state.overlays,{mode:_e,modeSpec:me,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(nt){return nt.priority}),this.state.modeGen++,qo(this)}),removeOverlay:Ds(function(me){for(var xe=this.state.overlays,_e=0;_e<xe.length;++_e){var nt=xe[_e].modeSpec;if(nt==me||typeof me=="string"&&nt.name==me){xe.splice(_e,1),this.state.modeGen++,qo(this);return}}}),indentLine:Ds(function(me,xe,_e){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),li(this.doc,me)&&el(this,me,xe,_e)}),indentSelection:Ds(function(me){for(var xe=this.doc.sel.ranges,_e=-1,nt=0;nt<xe.length;nt++){var pt=xe[nt];if(pt.empty())pt.head.line>_e&&(el(this,pt.head.line,me,!0),_e=pt.head.line,nt==this.doc.sel.primIndex&&Ol(this));else{var ht=pt.from(),At=pt.to(),gn=Math.max(_e,ht.line);_e=Math.min(this.lastLine(),At.line-(At.ch?0:1))+1;for(var Dt=gn;Dt<_e;++Dt)el(this,Dt,me);var Hn=this.doc.sel.ranges;ht.ch==0&&xe.length==Hn.length&&Hn[nt].from().ch>0&&uu(this.doc,nt,new ro(ht,Hn[nt].to()),Nt)}}}),getTokenAt:function(me,xe){return Hr(this,me,xe)},getLineTokens:function(me,xe){return Hr(this,Rt(me),xe,!0)},getTokenTypeAt:function(me){me=yn(this.doc,me);var xe=br(this,Rn(this.doc,me.line)),_e=0,nt=(xe.length-1)/2,pt=me.ch,ht;if(pt==0)ht=xe[2];else for(;;){var At=_e+nt>>1;if((At?xe[At*2-1]:0)>=pt)nt=At;else if(xe[At*2+1]<pt)_e=At+1;else{ht=xe[At*2+2];break}}var gn=ht?ht.indexOf("overlay "):-1;return gn<0?ht:gn==0?null:ht.slice(0,gn-1)},getModeAt:function(me){var xe=this.doc.mode;return xe.innerMode?ie.innerMode(xe,this.getTokenAt(me).state).mode:xe},getHelper:function(me,xe){return this.getHelpers(me,xe)[0]},getHelpers:function(me,xe){var _e=[];if(!ve.hasOwnProperty(xe))return _e;var nt=ve[xe],pt=this.getModeAt(me);if(typeof pt[xe]=="string")nt[pt[xe]]&&_e.push(nt[pt[xe]]);else if(pt[xe])for(var ht=0;ht<pt[xe].length;ht++){var At=nt[pt[xe][ht]];At&&_e.push(At)}else pt.helperType&&nt[pt.helperType]?_e.push(nt[pt.helperType]):nt[pt.name]&&_e.push(nt[pt.name]);for(var gn=0;gn<nt._global.length;gn++){var Dt=nt._global[gn];Dt.pred(pt,this)&&ct(_e,Dt.val)==-1&&_e.push(Dt.val)}return _e},getStateAfter:function(me,xe){var _e=this.doc;return me=oi(_e,me==null?_e.first+_e.size-1:me),Eo(this,me+1,xe).state},cursorCoords:function(me,xe){var _e,nt=this.doc.sel.primary();return me==null?_e=nt.head:typeof me=="object"?_e=yn(this.doc,me):_e=me?nt.from():nt.to(),vo(this,_e,xe||"page")},charCoords:function(me,xe){return aa(this,yn(this.doc,me),xe||"page")},coordsChar:function(me,xe){return me=Ro(this,me,xe||"page"),ea(this,me.left,me.top)},lineAtHeight:function(me,xe){return me=Ro(this,{top:me,left:0},xe||"page").top,zt(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,xe,_e){var nt=!1,pt;if(typeof me=="number"){var ht=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>ht&&(me=ht,nt=!0),pt=Rn(this.doc,me)}else pt=me;return wo(this,pt,{top:0,left:0},xe||"page",_e||nt).top+(nt?this.doc.height-sr(pt):0)},defaultTextHeight:function(){return Wa(this.display)},defaultCharWidth:function(){return as(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,xe,_e,nt,pt){var ht=this.display;me=vo(this,yn(this.doc,me));var At=me.bottom,gn=me.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),ht.sizer.appendChild(xe),nt=="over")At=me.top;else if(nt=="above"||nt=="near"){var Dt=Math.max(ht.wrapper.clientHeight,this.doc.height),Hn=Math.max(ht.sizer.clientWidth,ht.lineSpace.clientWidth);(nt=="above"||me.bottom+xe.offsetHeight>Dt)&&me.top>xe.offsetHeight?At=me.top-xe.offsetHeight:me.bottom+xe.offsetHeight<=Dt&&(At=me.bottom),gn+xe.offsetWidth>Hn&&(gn=Hn-xe.offsetWidth)}xe.style.top=At+"px",xe.style.left=xe.style.right="",pt=="right"?(gn=ht.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(pt=="left"?gn=0:pt=="middle"&&(gn=(ht.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=gn+"px"),_e&&au(this,{left:gn,top:At,right:gn+xe.offsetWidth,bottom:At+xe.offsetHeight})},triggerOnKeyDown:Ds(_g),triggerOnKeyPress:Ds(Ec),triggerOnKeyUp:zg,triggerOnMouseDown:Ds(bc),execCommand:function(me){if(pd.hasOwnProperty(me))return pd[me].call(null,this)},triggerElectric:Ds(function(me){Zg(this,me)}),findPosH:function(me,xe,_e,nt){var pt=1;xe<0&&(pt=-1,xe=-xe);for(var ht=yn(this.doc,me),At=0;At<xe&&(ht=ef(this.doc,ht,pt,_e,nt),!ht.hitSide);++At);return ht},moveH:Ds(function(me,xe){var _e=this;this.extendSelectionsBy(function(nt){return _e.display.shift||_e.doc.extend||nt.empty()?ef(_e.doc,nt.head,me,xe,_e.options.rtlMoveVisually):me<0?nt.from():nt.to()},cn)}),deleteH:Ds(function(me,xe){var _e=this.doc.sel,nt=this.doc;_e.somethingSelected()?nt.replaceSelection("",null,"+delete"):bu(this,function(pt){var ht=ef(nt,pt.head,me,xe,!1);return me<0?{from:ht,to:pt.head}:{from:pt.head,to:ht}})}),findPosV:function(me,xe,_e,nt){var pt=1,ht=nt;xe<0&&(pt=-1,xe=-xe);for(var At=yn(this.doc,me),gn=0;gn<xe;++gn){var Dt=vo(this,At,"div");if(ht==null?ht=Dt.left:Dt.left=ht,At=yd(this,Dt,pt,_e),At.hitSide)break}return At},moveV:Ds(function(me,xe){var _e=this,nt=this.doc,pt=[],ht=!this.display.shift&&!nt.extend&&nt.sel.somethingSelected();if(nt.extendSelectionsBy(function(gn){if(ht)return me<0?gn.from():gn.to();var Dt=vo(_e,gn.head,"div");gn.goalColumn!=null&&(Dt.left=gn.goalColumn),pt.push(Dt.left);var Hn=yd(_e,Dt,me,xe);return xe=="page"&&gn==nt.sel.primary()&&xc(_e,aa(_e,Hn,"div").top-Dt.top),Hn},cn),pt.length)for(var At=0;At<nt.sel.ranges.length;At++)nt.sel.ranges[At].goalColumn=pt[At]}),findWordAt:function(me){var xe=this.doc,_e=Rn(xe,me.line).text,nt=me.ch,pt=me.ch;if(_e){var ht=this.getHelper(me,"wordChars");(me.sticky=="before"||pt==_e.length)&&nt?--nt:++pt;for(var At=_e.charAt(nt),gn=lt(At,ht)?function(Dt){return lt(Dt,ht)}:/\s/.test(At)?function(Dt){return/\s/.test(Dt)}:function(Dt){return!/\s/.test(Dt)&&!lt(Dt)};nt>0&&gn(_e.charAt(nt-1));)--nt;for(;pt<_e.length&&gn(_e.charAt(pt));)++pt}return new ro(Rt(me.line,nt),Rt(me.line,pt))},toggleOverwrite:function(me){me!=null&&me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ut(this.display.cursorDiv,"CodeMirror-overwrite"):Ve(this.display.cursorDiv,"CodeMirror-overwrite"),Tn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Lt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ds(function(me,xe){Dl(this,me,xe)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-ia(this)-this.display.barHeight,width:me.scrollWidth-ia(this)-this.display.barWidth,clientHeight:Ns(this),clientWidth:os(this)}},scrollIntoView:Ds(function(me,xe){me==null?(me={from:this.doc.sel.primary().head,to:null},xe==null&&(xe=this.options.cursorScrollMargin)):typeof me=="number"?me={from:Rt(me,0),to:null}:me.from==null&&(me={from:me,to:null}),me.to||(me.to=me.from),me.margin=xe||0,me.from.line!=null?Zo(this,me):Yu(this,me.from,me.to,me.margin)}),setSize:Ds(function(me,xe){var _e=this,nt=function(ht){return typeof ht=="number"||/^\d+$/.test(String(ht))?ht+"px":ht};me!=null&&(this.display.wrapper.style.width=nt(me)),xe!=null&&(this.display.wrapper.style.height=nt(xe)),this.options.lineWrapping&&xl(this);var pt=this.display.viewFrom;this.doc.iter(pt,this.display.viewTo,function(ht){if(ht.widgets){for(var At=0;At<ht.widgets.length;At++)if(ht.widgets[At].noHScroll){Oo(_e,pt,"widget");break}}++pt}),this.curOp.forceUpdate=!0,Tn(this,"refresh",this)}),operation:function(me){return pa(this,me)},startOperation:function(){return ol(this)},endOperation:function(){return Yl(this)},refresh:Ds(function(){var me=this.display.cachedTextHeight;qo(this),this.curOp.forceUpdate=!0,Zn(this),Dl(this,this.doc.scrollLeft,this.doc.scrollTop),xt(this.display),(me==null||Math.abs(me-Wa(this.display))>.5||this.options.lineWrapping)&&qr(this),Tn(this,"refresh",this)}),swapDoc:Ds(function(me){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),la(this,me),Zn(this),this.display.input.reset(),Dl(this,me.scrollLeft,me.scrollTop),this.curOp.forceScroll=!0,xr(this,"swapDoc",this,xe),xe}),phrase:function(me){var xe=this.options.phrases;return xe&&Object.prototype.hasOwnProperty.call(xe,me)?xe[me]:me},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}},wt(ie),ie.registerHelper=function(me,xe,_e){ve.hasOwnProperty(me)||(ve[me]=ie[me]={_global:[]}),ve[me][xe]=_e},ie.registerGlobalHelper=function(me,xe,_e,nt){ie.registerHelper(me,xe,nt),ve[me]._global.push({pred:_e,val:nt})}}function ef(ie,ae,ve,me,xe){var _e=ae,nt=ve,pt=Rn(ie,ae.line),ht=xe&&ie.direction=="rtl"?-ve:ve;function At(){var Xr=ae.line+ht;return Xr<ie.first||Xr>=ie.first+ie.size?!1:(ae=new Rt(Xr,ae.ch,ae.sticky),pt=Rn(ie,Xr))}function gn(Xr){var Fr;if(me=="codepoint"){var io=pt.text.charCodeAt(ae.ch+(me>0?0:-1));isNaN(io)?Fr=null:Fr=new Rt(ae.line,Math.max(0,Math.min(pt.text.length,ae.ch+ve*(io>=55296&&io<56320?2:1))),-ve)}else xe?Fr=Lf(ie.cm,pt,ae,ve):Fr=Bs(pt,ae,ve);if(Fr==null)if(!Xr&&At())ae=Jh(xe,ie.cm,pt,ae.line,ht);else return!1;else ae=Fr;return!0}if(me=="char"||me=="codepoint")gn();else if(me=="column")gn(!0);else if(me=="word"||me=="group")for(var Dt=null,Hn=me=="group",kn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Bi=!0;!(ve<0&&!gn(!Bi));Bi=!1){var ji=pt.text.charAt(ae.ch)||`
|
|
|
`,nr=lt(ji,kn)?"w":Hn&&ji==`
|
|
|
`?"n":!Hn||/\s/.test(ji)?null:"p";if(Hn&&!Bi&&!nr&&(nr="s"),Dt&&Dt!=nr){ve<0&&(ve=1,gn(),ae.sticky="after");break}if(nr&&(Dt=nr),ve>0&&!gn(!Bi))break}var Er=ao(ie,ae,_e,nt,!0);return Ni(_e,Er)&&(Er.hitSide=!0),Er}function yd(ie,ae,ve,me){var xe=ie.doc,_e=ae.left,nt;if(me=="page"){var pt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ht=Math.max(pt-.5*Wa(ie.display),3);nt=(ve>0?ae.bottom:ae.top)+ve*ht}else me=="line"&&(nt=ve>0?ae.bottom+3:ae.top-3);for(var At;At=ea(ie,_e,nt),!!At.outside;){if(ve<0?nt<=0:nt>=xe.height){At.hitSide=!0;break}nt+=ve*5}return At}var Za=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new dt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Za.prototype.init=function(ie){var ae=this,ve=this,me=ve.cm,xe=ve.div=ie.lineDiv;Qg(xe,me.options.spellcheck,me.options.autocorrect,me.options.autocapitalize);function _e(pt){for(var ht=pt.target;ht;ht=ht.parentNode){if(ht==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ht.className))break}return!1}_t(xe,"paste",function(pt){!_e(pt)||jn(me,pt)||Kg(pt,me)||Te<=11&&setTimeout(Ts(me,function(){return ae.updateFromDOM()}),20)}),_t(xe,"compositionstart",function(pt){ae.composing={data:pt.data,done:!1}}),_t(xe,"compositionupdate",function(pt){ae.composing||(ae.composing={data:pt.data,done:!1})}),_t(xe,"compositionend",function(pt){ae.composing&&(pt.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),_t(xe,"touchstart",function(){return ve.forceCompositionEnd()}),_t(xe,"input",function(){ae.composing||ae.readFromDOMSoon()});function nt(pt){if(!(!_e(pt)||jn(me,pt))){if(me.somethingSelected())Kd({lineWise:!1,text:me.getSelections()}),pt.type=="cut"&&me.replaceSelection("",null,"cut");else if(me.options.lineWiseCopyCut){var ht=Xg(me);Kd({lineWise:!0,text:ht.text}),pt.type=="cut"&&me.operation(function(){me.setSelections(ht.ranges,0,Nt),me.replaceSelection("",null,"cut")})}else return;if(pt.clipboardData){pt.clipboardData.clearData();var At=du.text.join(`
|
|
|
`);if(pt.clipboardData.setData("Text",At),pt.clipboardData.getData("Text")==At){pt.preventDefault();return}}var gn=Jg(),Dt=gn.firstChild;me.display.lineSpace.insertBefore(gn,me.display.lineSpace.firstChild),Dt.value=du.text.join(`
|
|
|
`);var Hn=document.activeElement;an(Dt),setTimeout(function(){me.display.lineSpace.removeChild(gn),Hn.focus(),Hn==xe&&ve.showPrimarySelection()},50)}}_t(xe,"copy",nt),_t(xe,"cut",nt)},Za.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Za.prototype.prepareSelection=function(){var ie=yu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Za.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Za.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Za.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ve=ae.doc.sel.primary(),me=ve.from(),xe=ve.to();if(ae.display.viewTo==ae.display.viewFrom||me.line>=ae.display.viewTo||xe.line<ae.display.viewFrom){ie.removeAllRanges();return}var _e=tf(ae,ie.anchorNode,ie.anchorOffset),nt=tf(ae,ie.focusNode,ie.focusOffset);if(!(_e&&!_e.bad&&nt&&!nt.bad&&Jn(si(_e,nt),me)==0&&Jn(ze(_e,nt),xe)==0)){var pt=ae.display.view,ht=me.line>=ae.display.viewFrom&&zf(ae,me)||{node:pt[0].measure.map[2],offset:0},At=xe.line<ae.display.viewTo&&zf(ae,xe);if(!At){var gn=pt[pt.length-1].measure,Dt=gn.maps?gn.maps[gn.maps.length-1]:gn.map;At={node:Dt[Dt.length-1],offset:Dt[Dt.length-2]-Dt[Dt.length-3]}}if(!ht||!At){ie.removeAllRanges();return}var Hn=ie.rangeCount&&ie.getRangeAt(0),kn;try{kn=tt(ht.node,ht.offset,At.offset,At.node)}catch(Bi){}kn&&(!ce&&ae.state.focused?(ie.collapse(ht.node,ht.offset),kn.collapsed||(ie.removeAllRanges(),ie.addRange(kn))):(ie.removeAllRanges(),ie.addRange(kn)),Hn&&ie.anchorNode==null?ie.addRange(Hn):ce&&this.startGracePeriod()),this.rememberSelection()}},Za.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Za.prototype.showMultipleSelections=function(ie){Je(this.cm.display.cursorDiv,ie.cursors),Je(this.cm.display.selectionDiv,ie.selection)},Za.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Za.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Et(this.div,ae)},Za.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Za.prototype.blur=function(){this.div.blur()},Za.prototype.getField=function(){return this.div},Za.prototype.supportsTouch=function(){return!0},Za.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():pa(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},Za.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Za.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(ne&&Qe&&this.cm.display.gutterSpecs.length&&qg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ve=tf(ae,ie.anchorNode,ie.anchorOffset),me=tf(ae,ie.focusNode,ie.focusOffset);ve&&me&&pa(ae,function(){pe(ae.doc,Fa(ve,me),Nt),(ve.bad||me.bad)&&(ae.curOp.selectionChanged=!0)})}}},Za.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ve=ie.doc.sel.primary(),me=ve.from(),xe=ve.to();if(me.ch==0&&me.line>ie.firstLine()&&(me=Rt(me.line-1,Rn(ie.doc,me.line-1).length)),xe.ch==Rn(ie.doc,xe.line).text.length&&xe.line<ie.lastLine()&&(xe=Rt(xe.line+1,0)),me.line<ae.viewFrom||xe.line>ae.viewTo-1)return!1;var _e,nt,pt;me.line==ae.viewFrom||(_e=Us(ie,me.line))==0?(nt=yt(ae.view[0].line),pt=ae.view[0].node):(nt=yt(ae.view[_e].line),pt=ae.view[_e-1].node.nextSibling);var ht=Us(ie,xe.line),At,gn;if(ht==ae.view.length-1?(At=ae.viewTo-1,gn=ae.lineDiv.lastChild):(At=yt(ae.view[ht+1].line)-1,gn=ae.view[ht+1].node.previousSibling),!pt)return!1;for(var Dt=ie.doc.splitLines(kh(ie,pt,gn,nt,At)),Hn=Ui(ie.doc,Rt(nt,0),Rt(At,Rn(ie.doc,At).text.length));Dt.length>1&&Hn.length>1;)if(Wt(Dt)==Wt(Hn))Dt.pop(),Hn.pop(),At--;else if(Dt[0]==Hn[0])Dt.shift(),Hn.shift(),nt++;else break;for(var kn=0,Bi=0,ji=Dt[0],nr=Hn[0],Er=Math.min(ji.length,nr.length);kn<Er&&ji.charCodeAt(kn)==nr.charCodeAt(kn);)++kn;for(var Xr=Wt(Dt),Fr=Wt(Hn),io=Math.min(Xr.length-(Dt.length==1?kn:0),Fr.length-(Hn.length==1?kn:0));Bi<io&&Xr.charCodeAt(Xr.length-Bi-1)==Fr.charCodeAt(Fr.length-Bi-1);)++Bi;if(Dt.length==1&&Hn.length==1&&nt==me.line)for(;kn&&kn>me.ch&&Xr.charCodeAt(Xr.length-Bi-1)==Fr.charCodeAt(Fr.length-Bi-1);)kn--,Bi++;Dt[Dt.length-1]=Xr.slice(0,Xr.length-Bi).replace(/^\u200b+/,""),Dt[0]=Dt[0].slice(kn).replace(/\u200b+$/,"");var Bo=Rt(nt,kn),Mr=Rt(At,Hn.length?Wt(Hn).length-Bi:0);if(Dt.length>1||Dt[0]||Jn(Bo,Mr))return Qu(ie.doc,Dt,Bo,Mr,"+input"),!0},Za.prototype.ensurePolled=function(){this.forceCompositionEnd()},Za.prototype.reset=function(){this.forceCompositionEnd()},Za.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Za.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Za.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&pa(this.cm,function(){return qo(ie.cm)})},Za.prototype.setUneditable=function(ie){ie.contentEditable="false"},Za.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Ts(this.cm,$h)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Za.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Za.prototype.onContextMenu=function(){},Za.prototype.resetPosition=function(){},Za.prototype.needsContentAttribute=!0;function zf(ie,ae){var ve=Ms(ie,ae.line);if(!ve||ve.hidden)return null;var me=Rn(ie.doc,ae.line),xe=ba(ve,me,ae.line),_e=Ln(me,ie.doc.direction),nt="left";if(_e){var pt=sn(_e,ae.ch);nt=pt%2?"right":"left"}var ht=iu(xe.map,ae.ch,nt);return ht.offset=ht.collapse=="right"?ht.end:ht.start,ht}function qg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Ph(ie,ae){return ae&&(ie.bad=!0),ie}function kh(ie,ae,ve,me,xe){var _e="",nt=!1,pt=ie.doc.lineSeparator(),ht=!1;function At(kn){return function(Bi){return Bi.id==kn}}function gn(){nt&&(_e+=pt,ht&&(_e+=pt),nt=ht=!1)}function Dt(kn){kn&&(gn(),_e+=kn)}function Hn(kn){if(kn.nodeType==1){var Bi=kn.getAttribute("cm-text");if(Bi){Dt(Bi);return}var ji=kn.getAttribute("cm-marker"),nr;if(ji){var Er=ie.findMarks(Rt(me,0),Rt(xe+1,0),At(+ji));Er.length&&(nr=Er[0].find(0))&&Dt(Ui(ie.doc,nr.from,nr.to).join(pt));return}if(kn.getAttribute("contenteditable")=="false")return;var Xr=/^(pre|div|p|li|table|br)$/i.test(kn.nodeName);if(!/^br$/i.test(kn.nodeName)&&kn.textContent.length==0)return;Xr&&gn();for(var Fr=0;Fr<kn.childNodes.length;Fr++)Hn(kn.childNodes[Fr]);/^(pre|p)$/i.test(kn.nodeName)&&(ht=!0),Xr&&(nt=!0)}else kn.nodeType==3&&Dt(kn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Hn(ae),ae!=ve;)ae=ae.nextSibling,ht=!1;return _e}function tf(ie,ae,ve){var me;if(ae==ie.display.lineDiv){if(me=ie.display.lineDiv.childNodes[ve],!me)return Ph(ie.clipPos(Rt(ie.display.viewTo-1)),!0);ae=null,ve=0}else for(me=ae;;me=me.parentNode){if(!me||me==ie.display.lineDiv)return null;if(me.parentNode&&me.parentNode==ie.display.lineDiv)break}for(var xe=0;xe<ie.display.view.length;xe++){var _e=ie.display.view[xe];if(_e.node==me)return dm(_e,ae,ve)}}function dm(ie,ae,ve){var me=ie.text.firstChild,xe=!1;if(!ae||!Et(me,ae))return Ph(Rt(yt(ie.line),0),!0);if(ae==me&&(xe=!0,ae=me.childNodes[ve],ve=0,!ae)){var _e=ie.rest?Wt(ie.rest):ie.line;return Ph(Rt(yt(_e),_e.text.length),xe)}var nt=ae.nodeType==3?ae:null,pt=ae;for(!nt&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(nt=ae.firstChild,ve&&(ve=nt.nodeValue.length));pt.parentNode!=me;)pt=pt.parentNode;var ht=ie.measure,At=ht.maps;function gn(nr,Er,Xr){for(var Fr=-1;Fr<(At?At.length:0);Fr++)for(var io=Fr<0?ht.map:At[Fr],Bo=0;Bo<io.length;Bo+=3){var Mr=io[Bo+2];if(Mr==nr||Mr==Er){var ra=yt(Fr<0?ie.line:ie.rest[Fr]),cs=io[Bo]+Xr;return(Xr<0||Mr!=nr)&&(cs=io[Bo+(Xr?1:0)]),Rt(ra,cs)}}}var Dt=gn(nt,pt,ve);if(Dt)return Ph(Dt,xe);for(var Hn=pt.nextSibling,kn=nt?nt.nodeValue.length-ve:0;Hn;Hn=Hn.nextSibling){if(Dt=gn(Hn,Hn.firstChild,0),Dt)return Ph(Rt(Dt.line,Dt.ch-kn),xe);kn+=Hn.textContent.length}for(var Bi=pt.previousSibling,ji=ve;Bi;Bi=Bi.previousSibling){if(Dt=gn(Bi,Bi.firstChild,-1),Dt)return Ph(Rt(Dt.line,Dt.ch+ji),xe);ji+=Bi.textContent.length}}var Ys=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new dt,this.hasSelection=!1,this.composing=null};Ys.prototype.init=function(ie){var ae=this,ve=this,me=this.cm;this.createField(ie);var xe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Fe&&(xe.style.width="0px"),_t(xe,"input",function(){je&&Te>=9&&ae.hasSelection&&(ae.hasSelection=null),ve.poll()}),_t(xe,"paste",function(nt){jn(me,nt)||Kg(nt,me)||(me.state.pasteIncoming=+new Date,ve.fastPoll())});function _e(nt){if(!jn(me,nt)){if(me.somethingSelected())Kd({lineWise:!1,text:me.getSelections()});else if(me.options.lineWiseCopyCut){var pt=Xg(me);Kd({lineWise:!0,text:pt.text}),nt.type=="cut"?me.setSelections(pt.ranges,null,Nt):(ve.prevInput="",xe.value=pt.text.join(`
|
|
|
`),an(xe))}else return;nt.type=="cut"&&(me.state.cutIncoming=+new Date)}}_t(xe,"cut",_e),_t(xe,"copy",_e),_t(ie.scroller,"paste",function(nt){if(!(Ea(ie,nt)||jn(me,nt))){if(!xe.dispatchEvent){me.state.pasteIncoming=+new Date,ve.focus();return}var pt=new Event("paste");pt.clipboardData=nt.clipboardData,xe.dispatchEvent(pt)}}),_t(ie.lineSpace,"selectstart",function(nt){Ea(ie,nt)||Si(nt)}),_t(xe,"compositionstart",function(){var nt=me.getCursor("from");ve.composing&&ve.composing.range.clear(),ve.composing={start:nt,range:me.markText(nt,me.getCursor("to"),{className:"CodeMirror-composing"})}}),_t(xe,"compositionend",function(){ve.composing&&(ve.poll(),ve.composing.range.clear(),ve.composing=null)})},Ys.prototype.createField=function(ie){this.wrapper=Jg(),this.textarea=this.wrapper.firstChild},Ys.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Ys.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ve=ie.doc,me=yu(ie);if(ie.options.moveInputWithCursor){var xe=vo(ie,ve.sel.primary().head,"div"),_e=ae.wrapper.getBoundingClientRect(),nt=ae.lineDiv.getBoundingClientRect();me.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,xe.top+nt.top-_e.top)),me.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,xe.left+nt.left-_e.left))}return me},Ys.prototype.showSelection=function(ie){var ae=this.cm,ve=ae.display;Je(ve.cursorDiv,ie.cursors),Je(ve.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Ys.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ve=ae.getSelection();this.textarea.value=ve,ae.state.focused&&an(this.textarea),je&&Te>=9&&(this.hasSelection=ve)}else ie||(this.prevInput=this.textarea.value="",je&&Te>=9&&(this.hasSelection=null))}},Ys.prototype.getField=function(){return this.textarea},Ys.prototype.supportsTouch=function(){return!1},Ys.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||Lt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Ys.prototype.blur=function(){this.textarea.blur()},Ys.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ys.prototype.receivedFocus=function(){this.slowPoll()},Ys.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Ys.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ve(){var me=ae.poll();!me&&!ie?(ie=!0,ae.polling.set(60,ve)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ve)},Ys.prototype.poll=function(){var ie=this,ae=this.cm,ve=this.textarea,me=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Be(ve)&&!me&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var xe=ve.value;if(xe==me&&!ae.somethingSelected())return!1;if(je&&Te>=9&&this.hasSelection===xe||he&&/[\uf700-\uf7ff]/.test(xe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var _e=xe.charCodeAt(0);if(_e==8203&&!me&&(me="\u200B"),_e==8666)return this.reset(),this.cm.execCommand("undo")}for(var nt=0,pt=Math.min(me.length,xe.length);nt<pt&&me.charCodeAt(nt)==xe.charCodeAt(nt);)++nt;return pa(ae,function(){$h(ae,xe.slice(nt),me.length-nt,null,ie.composing?"*compose":null),xe.length>1e3||xe.indexOf(`
|
|
|
`)>-1?ve.value=ie.prevInput="":ie.prevInput=xe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ys.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ys.prototype.onKeyPress=function(){je&&Te>=9&&(this.hasSelection=null),this.fastPoll()},Ys.prototype.onContextMenu=function(ie){var ae=this,ve=ae.cm,me=ve.display,xe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var _e=ms(ve,ie),nt=me.scroller.scrollTop;if(!_e||We)return;var pt=ve.options.resetSelectionOnContextMenu;pt&&ve.doc.sel.contains(_e)==-1&&Ts(ve,pe)(ve.doc,Fa(_e),Nt);var ht=xe.style.cssText,At=ae.wrapper.style.cssText,gn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",xe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-gn.top-5)+"px; left: "+(ie.clientX-gn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(je?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Dt;Ge&&(Dt=window.scrollY),me.input.focus(),Ge&&window.scrollTo(null,Dt),me.input.reset(),ve.somethingSelected()||(xe.value=ae.prevInput=" "),ae.contextMenuPending=kn,me.selForContextMenu=ve.doc.sel,clearTimeout(me.detectingSelectAll);function Hn(){if(xe.selectionStart!=null){var ji=ve.somethingSelected(),nr="\u200B"+(ji?xe.value:"");xe.value="\u21DA",xe.value=nr,ae.prevInput=ji?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=nr.length,me.selForContextMenu=ve.doc.sel}}function kn(){if(ae.contextMenuPending==kn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=At,xe.style.cssText=ht,je&&Te<9&&me.scrollbars.setScrollTop(me.scroller.scrollTop=nt),xe.selectionStart!=null)){(!je||je&&Te<9)&&Hn();var ji=0,nr=function(){me.selForContextMenu==ve.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&ae.prevInput=="\u200B"?Ts(ve,Ei)(ve):ji++<10?me.detectingSelectAll=setTimeout(nr,500):(me.selForContextMenu=null,me.input.reset())};me.detectingSelectAll=setTimeout(nr,200)}}if(je&&Te>=9&&Hn(),Ae){qi(ie);var Bi=function(){Kn(window,"mouseup",Bi),setTimeout(kn,20)};_t(window,"mouseup",Bi)}else setTimeout(kn,50)},Ys.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Ys.prototype.setUneditable=function(){},Ys.prototype.needsContentAttribute=!1;function hm(ie,ae){if(ae=ae?fn(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ve=Lt();ae.autofocus=ve==ie||ie.getAttribute("autofocus")!=null&&ve==document.body}function me(){ie.value=pt.getValue()}var xe;if(ie.form&&(_t(ie.form,"submit",me),!ae.leaveSubmitMethodAlone)){var _e=ie.form;xe=_e.submit;try{var nt=_e.submit=function(){me(),_e.submit=xe,_e.submit(),_e.submit=nt}}catch(ht){}}ae.finishInit=function(ht){ht.save=me,ht.getTextArea=function(){return ie},ht.toTextArea=function(){ht.toTextArea=isNaN,me(),ie.parentNode.removeChild(ht.getWrapperElement()),ie.style.display="",ie.form&&(Kn(ie.form,"submit",me),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=xe))}},ie.style.display="none";var pt=Ca(function(ht){return ie.parentNode.insertBefore(ht,ie.nextSibling)},ae);return pt}function Nh(ie){ie.off=Kn,ie.on=_t,ie.wheelEventPixels=Po,ie.Doc=Al,ie.splitLines=Nr,ie.countColumn=bt,ie.findColumn=Qn,ie.isWordChar=Ke,ie.Pass=un,ie.signal=Tn,ie.Line=lo,ie.changeEnd=Ba,ie.scrollbarModel=bl,ie.Pos=Rt,ie.cmpPos=Jn,ie.modes=Ri,ie.mimeModes=Fi,ie.resolveMode=ln,ie.getMode=pn,ie.modeExtensions=$t,ie.extendMode=wn,ie.copyState=Gi,ie.startState=Yi,ie.innerMode=Ci,ie.commands=pd,ie.keyMap=Eu,ie.keyName=rm,ie.isModifierKey=Eh,ie.lookupKey=Ju,ie.normalizeKeyMap=Rg,ie.StringStream=mn,ie.SharedTextMarker=Rc,ie.TextMarker=Jt,ie.LineWidget=Jc,ie.e_preventDefault=Si,ie.e_stopPropagation=wi,ie.e_stop=qi,ie.addClass=Ut,ie.contains=Et,ie.rmClass=Ve,ie.keyNames=Oc}um(Ca),vd(Ca);var qc="iter insert remove copy getEditor constructor".split(" ");for(var nf in Al.prototype)Al.prototype.hasOwnProperty(nf)&&ct(qc,nf)<0&&(Ca.prototype[nf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Al.prototype[nf]));return wt(Al),Ca.inputStyles={textarea:Ys,contenteditable:Za},Ca.defineMode=function(ie){!Ca.defaults.mode&&ie!="null"&&(Ca.defaults.mode=ie),Ti.apply(this,arguments)},Ca.defineMIME=Lr,Ca.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),Ca.defineMIME("text/plain","null"),Ca.defineExtension=function(ie,ae){Ca.prototype[ie]=ae},Ca.defineDocExtension=function(ie,ae){Al.prototype[ie]=ae},Ca.fromTextArea=hm,Nh(Ca),Ca.version="5.58.2",Ca})},25419:function(Re,Ee,le){(function(ce){ce(le(89780),le(15525),le(98101))})(function(ce){"use strict";ce.defineMode("markdown",function(Pe,Me){var Ie=ce.getMode(Pe,"text/html"),je=Ie.name=="null";function Te(bt){if(ce.findModeByName){var dt=ce.findModeByName(bt);dt&&(bt=dt.mime||dt.mimes[0])}var ct=ce.getMode(Pe,bt);return ct.name=="null"?null:ct}Me.highlightFormatting===void 0&&(Me.highlightFormatting=!1),Me.maxBlockquoteDepth===void 0&&(Me.maxBlockquoteDepth=0),Me.taskLists===void 0&&(Me.taskLists=!1),Me.strikethrough===void 0&&(Me.strikethrough=!1),Me.emoji===void 0&&(Me.emoji=!1),Me.fencedCodeBlockHighlighting===void 0&&(Me.fencedCodeBlockHighlighting=!0),Me.fencedCodeBlockDefaultMode===void 0&&(Me.fencedCodeBlockDefaultMode="text/plain"),Me.xml===void 0&&(Me.xml=!0),Me.tokenTypeOverrides===void 0&&(Me.tokenTypeOverrides={});var Ge={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 st in Ge)Ge.hasOwnProperty(st)&&Me.tokenTypeOverrides[st]&&(Ge[st]=Me.tokenTypeOverrides[st]);var Qe=/^([*\-_])(?:\s*\1){2,}\s*$/,We=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,mt=/^\[(x| )\](?=\s)/i,it=Me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,kt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Fe=/^[^#!\[\]*_\\<>` "'(~:]+/,ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,te=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,se=" ";function ge(bt,dt,ct){return dt.f=dt.inline=ct,ct(bt,dt)}function ye(bt,dt,ct){return dt.f=dt.block=ct,ct(bt,dt)}function be(bt){return!bt||!/\S/.test(bt.string)}function Ae(bt){if(bt.linkTitle=!1,bt.linkHref=!1,bt.linkText=!1,bt.em=!1,bt.strong=!1,bt.strikethrough=!1,bt.quote=0,bt.indentedCode=!1,bt.f==Ve){var dt=je;if(!dt){var ct=ce.innerMode(Ie,bt.htmlState);dt=ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText}dt&&(bt.f=at,bt.block=Le,bt.htmlState=null)}return bt.trailingSpace=0,bt.trailingSpaceNewLine=!1,bt.prevLine=bt.thisLine,bt.thisLine={stream:null},null}function Le(bt,dt){var ct=bt.column()===dt.indentation,Qt=be(dt.prevLine.stream),un=dt.indentedCode,Nt=dt.prevLine.hr,hn=dt.list!==!1,cn=(dt.listStack[dt.listStack.length-1]||0)+3;dt.indentedCode=!1;var Qn=dt.indentation;if(dt.indentationDiff===null&&(dt.indentationDiff=dt.indentation,hn)){for(dt.list=null;Qn<dt.listStack[dt.listStack.length-1];)dt.listStack.pop(),dt.listStack.length?dt.indentation=dt.listStack[dt.listStack.length-1]:dt.list=!1;dt.list!==!1&&(dt.indentationDiff=Qn-dt.listStack[dt.listStack.length-1])}var Bt=!Qt&&!Nt&&!dt.prevLine.header&&(!hn||!un)&&!dt.prevLine.fencedCodeEnd,Pt=(dt.list===!1||Nt||Qt)&&dt.indentation<=cn&&bt.match(Qe),Wt=null;if(dt.indentationDiff>=4&&(un||dt.prevLine.fencedCodeEnd||dt.prevLine.header||Qt))return bt.skipToEnd(),dt.indentedCode=!0,Ge.code;if(bt.eatSpace())return null;if(ct&&dt.indentation<=cn&&(Wt=bt.match(it))&&Wt[1].length<=6)return dt.quote=0,dt.header=Wt[1].length,dt.thisLine.header=!0,Me.highlightFormatting&&(dt.formatting="header"),dt.f=dt.inline,Je(dt);if(dt.indentation<=cn&&bt.eat(">"))return dt.quote=ct?1:dt.quote+1,Me.highlightFormatting&&(dt.formatting="quote"),bt.eatSpace(),Je(dt);if(!Pt&&!dt.setext&&ct&&dt.indentation<=cn&&(Wt=bt.match(We))){var An=Wt[1]?"ol":"ul";return dt.indentation=Qn+bt.current().length,dt.list=!0,dt.quote=0,dt.listStack.push(dt.indentation),dt.em=!1,dt.strong=!1,dt.code=!1,dt.strikethrough=!1,Me.taskLists&&bt.match(mt,!1)&&(dt.taskList=!0),dt.f=dt.inline,Me.highlightFormatting&&(dt.formatting=["list","list-"+An]),Je(dt)}else{if(ct&&dt.indentation<=cn&&(Wt=bt.match(ne,!0)))return dt.quote=0,dt.fencedEndRE=new RegExp(Wt[1]+"+ *$"),dt.localMode=Me.fencedCodeBlockHighlighting&&Te(Wt[2]||Me.fencedCodeBlockDefaultMode),dt.localMode&&(dt.localState=ce.startState(dt.localMode)),dt.f=dt.block=et,Me.highlightFormatting&&(dt.formatting="code-block"),dt.code=-1,Je(dt);if(dt.setext||(!Bt||!hn)&&!dt.quote&&dt.list===!1&&!dt.code&&!Pt&&!te.test(bt.string)&&(Wt=bt.lookAhead(1))&&(Wt=Wt.match(kt)))return dt.setext?(dt.header=dt.setext,dt.setext=0,bt.skipToEnd(),Me.highlightFormatting&&(dt.formatting="header")):(dt.header=Wt[0].charAt(0)=="="?1:2,dt.setext=dt.header),dt.thisLine.header=!0,dt.f=dt.inline,Je(dt);if(Pt)return bt.skipToEnd(),dt.hr=!0,dt.thisLine.hr=!0,Ge.hr;if(bt.peek()==="[")return ge(bt,dt,on)}return ge(bt,dt,dt.inline)}function Ve(bt,dt){var ct=Ie.token(bt,dt.htmlState);if(!je){var Qt=ce.innerMode(Ie,dt.htmlState);(Qt.mode.name=="xml"&&Qt.state.tagStart===null&&!Qt.state.context&&Qt.state.tokenize.isInText||dt.md_inside&&bt.current().indexOf(">")>-1)&&(dt.f=at,dt.block=Le,dt.htmlState=null)}return ct}function et(bt,dt){var ct=dt.listStack[dt.listStack.length-1]||0,Qt=dt.indentation<ct,un=ct+3;if(dt.fencedEndRE&&dt.indentation<=un&&(Qt||bt.match(dt.fencedEndRE))){Me.highlightFormatting&&(dt.formatting="code-block");var Nt;return Qt||(Nt=Je(dt)),dt.localMode=dt.localState=null,dt.block=Le,dt.f=at,dt.fencedEndRE=null,dt.code=0,dt.thisLine.fencedCodeEnd=!0,Qt?ye(bt,dt,dt.block):Nt}else return dt.localMode?dt.localMode.token(bt,dt.localState):(bt.skipToEnd(),Ge.code)}function Je(bt){var dt=[];if(bt.formatting){dt.push(Ge.formatting),typeof bt.formatting=="string"&&(bt.formatting=[bt.formatting]);for(var ct=0;ct<bt.formatting.length;ct++)dt.push(Ge.formatting+"-"+bt.formatting[ct]),bt.formatting[ct]==="header"&&dt.push(Ge.formatting+"-"+bt.formatting[ct]+"-"+bt.header),bt.formatting[ct]==="quote"&&(!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=bt.quote?dt.push(Ge.formatting+"-"+bt.formatting[ct]+"-"+bt.quote):dt.push("error"))}if(bt.taskOpen)return dt.push("meta"),dt.length?dt.join(" "):null;if(bt.taskClosed)return dt.push("property"),dt.length?dt.join(" "):null;if(bt.linkHref?dt.push(Ge.linkHref,"url"):(bt.strong&&dt.push(Ge.strong),bt.em&&dt.push(Ge.em),bt.strikethrough&&dt.push(Ge.strikethrough),bt.emoji&&dt.push(Ge.emoji),bt.linkText&&dt.push(Ge.linkText),bt.code&&dt.push(Ge.code),bt.image&&dt.push(Ge.image),bt.imageAltText&&dt.push(Ge.imageAltText,"link"),bt.imageMarker&&dt.push(Ge.imageMarker)),bt.header&&dt.push(Ge.header,Ge.header+"-"+bt.header),bt.quote&&(dt.push(Ge.quote),!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=bt.quote?dt.push(Ge.quote+"-"+bt.quote):dt.push(Ge.quote+"-"+Me.maxBlockquoteDepth)),bt.list!==!1){var Qt=(bt.listStack.length-1)%3;Qt?Qt===1?dt.push(Ge.list2):dt.push(Ge.list3):dt.push(Ge.list1)}return bt.trailingSpaceNewLine?dt.push("trailing-space-new-line"):bt.trailingSpace&&dt.push("trailing-space-"+(bt.trailingSpace%2?"a":"b")),dt.length?dt.join(" "):null}function rt(bt,dt){if(bt.match(Fe,!0))return Je(dt)}function at(bt,dt){var ct=dt.text(bt,dt);if(typeof ct!="undefined")return ct;if(dt.list)return dt.list=null,Je(dt);if(dt.taskList){var Qt=bt.match(mt,!0)[1]===" ";return Qt?dt.taskOpen=!0:dt.taskClosed=!0,Me.highlightFormatting&&(dt.formatting="task"),dt.taskList=!1,Je(dt)}if(dt.taskOpen=!1,dt.taskClosed=!1,dt.header&&bt.match(/^#+$/,!0))return Me.highlightFormatting&&(dt.formatting="header"),Je(dt);var un=bt.next();if(dt.linkTitle){dt.linkTitle=!1;var Nt=un;un==="("&&(Nt=")"),Nt=(Nt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var hn="^\\s*(?:[^"+Nt+"\\\\]+|\\\\\\\\|\\\\.)"+Nt;if(bt.match(new RegExp(hn),!0))return Ge.linkHref}if(un==="`"){var cn=dt.formatting;Me.highlightFormatting&&(dt.formatting="code"),bt.eatWhile("`");var Qn=bt.current().length;if(dt.code==0&&(!dt.quote||Qn==1))return dt.code=Qn,Je(dt);if(Qn==dt.code){var Bt=Je(dt);return dt.code=0,Bt}else return dt.formatting=cn,Je(dt)}else if(dt.code)return Je(dt);if(un==="\\"&&(bt.next(),Me.highlightFormatting)){var Pt=Je(dt),Wt=Ge.formatting+"-escape";return Pt?Pt+" "+Wt:Wt}if(un==="!"&&bt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return dt.imageMarker=!0,dt.image=!0,Me.highlightFormatting&&(dt.formatting="image"),Je(dt);if(un==="["&&dt.imageMarker&&bt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return dt.imageMarker=!1,dt.imageAltText=!0,Me.highlightFormatting&&(dt.formatting="image"),Je(dt);if(un==="]"&&dt.imageAltText){Me.highlightFormatting&&(dt.formatting="image");var Pt=Je(dt);return dt.imageAltText=!1,dt.image=!1,dt.inline=dt.f=Et,Pt}if(un==="["&&!dt.image)return dt.linkText&&bt.match(/^.*?\]/)||(dt.linkText=!0,Me.highlightFormatting&&(dt.formatting="link")),Je(dt);if(un==="]"&&dt.linkText){Me.highlightFormatting&&(dt.formatting="link");var Pt=Je(dt);return dt.linkText=!1,dt.inline=dt.f=bt.match(/\(.*?\)| ?\[.*?\]/,!1)?Et:at,Pt}if(un==="<"&&bt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){dt.f=dt.inline=tt,Me.highlightFormatting&&(dt.formatting="link");var Pt=Je(dt);return Pt?Pt+=" ":Pt="",Pt+Ge.linkInline}if(un==="<"&&bt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){dt.f=dt.inline=tt,Me.highlightFormatting&&(dt.formatting="link");var Pt=Je(dt);return Pt?Pt+=" ":Pt="",Pt+Ge.linkEmail}if(Me.xml&&un==="<"&&bt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var An=bt.string.indexOf(">",bt.pos);if(An!=-1){var Nn=bt.string.substring(bt.start,An);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Nn)&&(dt.md_inside=!0)}return bt.backUp(1),dt.htmlState=ce.startState(Ie),ye(bt,dt,Ve)}if(Me.xml&&un==="<"&&bt.match(/^\/\w*?>/))return dt.md_inside=!1,"tag";if(un==="*"||un==="_"){for(var $e=1,Oe=bt.pos==1?" ":bt.string.charAt(bt.pos-2);$e<3&&bt.eat(un);)$e++;var ke=bt.peek()||" ",Ke=!/\s/.test(ke)&&(!he.test(ke)||/\s/.test(Oe)||he.test(Oe)),lt=!/\s/.test(Oe)&&(!he.test(Oe)||/\s/.test(ke)||he.test(ke)),Ue=null,gt=null;if($e%2&&(!dt.em&&Ke&&(un==="*"||!lt||he.test(Oe))?Ue=!0:dt.em==un&<&&(un==="*"||!Ke||he.test(ke))&&(Ue=!1)),$e>1&&(!dt.strong&&Ke&&(un==="*"||!lt||he.test(Oe))?gt=!0:dt.strong==un&<&&(un==="*"||!Ke||he.test(ke))&&(gt=!1)),gt!=null||Ue!=null){Me.highlightFormatting&&(dt.formatting=Ue==null?"strong":gt==null?"em":"strong em"),Ue===!0&&(dt.em=un),gt===!0&&(dt.strong=un);var Bt=Je(dt);return Ue===!1&&(dt.em=!1),gt===!1&&(dt.strong=!1),Bt}}else if(un===" "&&(bt.eat("*")||bt.eat("_"))){if(bt.peek()===" ")return Je(dt);bt.backUp(1)}if(Me.strikethrough){if(un==="~"&&bt.eatWhile(un)){if(dt.strikethrough){Me.highlightFormatting&&(dt.formatting="strikethrough");var Bt=Je(dt);return dt.strikethrough=!1,Bt}else if(bt.match(/^[^\s]/,!1))return dt.strikethrough=!0,Me.highlightFormatting&&(dt.formatting="strikethrough"),Je(dt)}else if(un===" "&&bt.match(/^~~/,!0)){if(bt.peek()===" ")return Je(dt);bt.backUp(2)}}if(Me.emoji&&un===":"&&bt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){dt.emoji=!0,Me.highlightFormatting&&(dt.formatting="emoji");var tn=Je(dt);return dt.emoji=!1,tn}return un===" "&&(bt.match(/^ +$/,!1)?dt.trailingSpace++:dt.trailingSpace&&(dt.trailingSpaceNewLine=!0)),Je(dt)}function tt(bt,dt){var ct=bt.next();if(ct===">"){dt.f=dt.inline=at,Me.highlightFormatting&&(dt.formatting="link");var Qt=Je(dt);return Qt?Qt+=" ":Qt="",Qt+Ge.linkInline}return bt.match(/^[^>]+/,!0),Ge.linkInline}function Et(bt,dt){if(bt.eatSpace())return null;var ct=bt.next();return ct==="("||ct==="["?(dt.f=dt.inline=Ut(ct==="("?")":"]"),Me.highlightFormatting&&(dt.formatting="link-string"),dt.linkHref=!0,Je(dt)):"error"}var Lt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ut(bt){return function(dt,ct){var Qt=dt.next();if(Qt===bt){ct.f=ct.inline=at,Me.highlightFormatting&&(ct.formatting="link-string");var un=Je(ct);return ct.linkHref=!1,un}return dt.match(Lt[bt]),ct.linkHref=!0,Je(ct)}}function on(bt,dt){return bt.match(/^([^\]\\]|\\.)*\]:/,!1)?(dt.f=an,bt.next(),Me.highlightFormatting&&(dt.formatting="link"),dt.linkText=!0,Je(dt)):ge(bt,dt,at)}function an(bt,dt){if(bt.match(/^\]:/,!0)){dt.f=dt.inline=Kt,Me.highlightFormatting&&(dt.formatting="link");var ct=Je(dt);return dt.linkText=!1,ct}return bt.match(/^([^\]\\]|\\.)+/,!0),Ge.linkText}function Kt(bt,dt){return bt.eatSpace()?null:(bt.match(/^[^\s]+/,!0),bt.peek()===void 0?dt.linkTitle=!0:bt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),dt.f=dt.inline=at,Ge.linkHref+" url")}var fn={startState:function(){return{f:Le,prevLine:{stream:null},thisLine:{stream:null},block:Le,htmlState:null,indentation:0,inline:at,text:rt,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(bt){return{f:bt.f,prevLine:bt.prevLine,thisLine:bt.thisLine,block:bt.block,htmlState:bt.htmlState&&ce.copyState(Ie,bt.htmlState),indentation:bt.indentation,localMode:bt.localMode,localState:bt.localMode?ce.copyState(bt.localMode,bt.localState):null,inline:bt.inline,text:bt.text,formatting:!1,linkText:bt.linkText,linkTitle:bt.linkTitle,linkHref:bt.linkHref,code:bt.code,em:bt.em,strong:bt.strong,strikethrough:bt.strikethrough,emoji:bt.emoji,header:bt.header,setext:bt.setext,hr:bt.hr,taskList:bt.taskList,list:bt.list,listStack:bt.listStack.slice(0),quote:bt.quote,indentedCode:bt.indentedCode,trailingSpace:bt.trailingSpace,trailingSpaceNewLine:bt.trailingSpaceNewLine,md_inside:bt.md_inside,fencedEndRE:bt.fencedEndRE}},token:function(bt,dt){if(dt.formatting=!1,bt!=dt.thisLine.stream){if(dt.header=0,dt.hr=!1,bt.match(/^\s*$/,!0))return Ae(dt),null;if(dt.prevLine=dt.thisLine,dt.thisLine={stream:bt},dt.taskList=!1,dt.trailingSpace=0,dt.trailingSpaceNewLine=!1,!dt.localState&&(dt.f=dt.block,dt.f!=Ve)){var ct=bt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(dt.indentation=ct,dt.indentationDiff=null,ct>0)return null}}return dt.f(bt,dt)},innerMode:function(bt){return bt.block==Ve?{state:bt.htmlState,mode:Ie}:bt.localState?{state:bt.localState,mode:bt.localMode}:{state:bt,mode:fn}},indent:function(bt,dt,ct){return bt.block==Ve&&Ie.indent?Ie.indent(bt.htmlState,dt,ct):bt.localState&&bt.localMode.indent?bt.localMode.indent(bt.localState,dt,ct):ce.Pass},blankLine:Ae,getType:Je,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return fn},"xml"),ce.defineMIME("text/markdown","markdown"),ce.defineMIME("text/x-markdown","markdown")})},98101:function(Re,Ee,le){(function(ce){ce(le(89780))})(function(ce){"use strict";ce.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 Pe=0;Pe<ce.modeInfo.length;Pe++){var Me=ce.modeInfo[Pe];Me.mimes&&(Me.mime=Me.mimes[0])}ce.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var je=0;je<ce.modeInfo.length;je++){var Te=ce.modeInfo[je];if(Te.mime==Ie)return Te;if(Te.mimes){for(var Ge=0;Ge<Te.mimes.length;Ge++)if(Te.mimes[Ge]==Ie)return Te}}if(/\+xml$/.test(Ie))return ce.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return ce.findModeByMIME("application/json")},ce.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var je=0;je<ce.modeInfo.length;je++){var Te=ce.modeInfo[je];if(Te.ext){for(var Ge=0;Ge<Te.ext.length;Ge++)if(Te.ext[Ge]==Ie)return Te}}},ce.findModeByFileName=function(Ie){for(var je=0;je<ce.modeInfo.length;je++){var Te=ce.modeInfo[je];if(Te.file&&Te.file.test(Ie))return Te}var Ge=Ie.lastIndexOf("."),st=Ge>-1&&Ie.substring(Ge+1,Ie.length);if(st)return ce.findModeByExtension(st)},ce.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var je=0;je<ce.modeInfo.length;je++){var Te=ce.modeInfo[je];if(Te.name.toLowerCase()==Ie)return Te;if(Te.alias){for(var Ge=0;Ge<Te.alias.length;Ge++)if(Te.alias[Ge].toLowerCase()==Ie)return Te}}}})},67549:function(Re,Ee,le){(function(ce){ce(le(89780))})(function(ce){"use strict";ce.defineMode("stex",function(Pe,Me){"use strict";function Ie(Fe,ne){Fe.cmdState.push(ne)}function je(Fe){return Fe.cmdState.length>0?Fe.cmdState[Fe.cmdState.length-1]:null}function Te(Fe){var ne=Fe.cmdState.pop();ne&&ne.closeBracket()}function Ge(Fe){for(var ne=Fe.cmdState,te=ne.length-1;te>=0;te--){var he=ne[te];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function st(Fe,ne,te){return function(){this.name=Fe,this.bracketNo=0,this.style=ne,this.styles=te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Qe={};Qe.importmodule=st("importmodule","tag",["string","builtin"]),Qe.documentclass=st("documentclass","tag",["","atom"]),Qe.usepackage=st("usepackage","tag",["atom"]),Qe.begin=st("begin","tag",["atom"]),Qe.end=st("end","tag",["atom"]),Qe.label=st("label","tag",["atom"]),Qe.ref=st("ref","tag",["atom"]),Qe.eqref=st("eqref","tag",["atom"]),Qe.cite=st("cite","tag",["atom"]),Qe.bibitem=st("bibitem","tag",["atom"]),Qe.Bibitem=st("Bibitem","tag",["atom"]),Qe.RBibitem=st("RBibitem","tag",["atom"]),Qe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function We(Fe,ne){Fe.f=ne}function mt(Fe,ne){var te;if(Fe.match(/^\\[a-zA-Z@]+/)){var he=Fe.current().slice(1);return te=Qe.hasOwnProperty(he)?Qe[he]:Qe.DEFAULT,te=new te,Ie(ne,te),We(ne,kt),te.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return We(ne,function(ge,ye){return it(ge,ye,"\\]")}),"keyword";if(Fe.match("\\("))return We(ne,function(ge,ye){return it(ge,ye,"\\)")}),"keyword";if(Fe.match("$$"))return We(ne,function(ge,ye){return it(ge,ye,"$$")}),"keyword";if(Fe.match("$"))return We(ne,function(ge,ye){return it(ge,ye,"$")}),"keyword";var se=Fe.next();if(se=="%")return Fe.skipToEnd(),"comment";if(se=="}"||se=="]"){if(te=je(ne),te)te.closeBracket(se),We(ne,kt);else return"error";return"bracket"}else return se=="{"||se=="["?(te=Qe.DEFAULT,te=new te,Ie(ne,te),"bracket"):/\d/.test(se)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),te=Ge(ne),te.name=="begin"&&(te.argument=Fe.current()),te.styleIdentifier())}function it(Fe,ne,te){if(Fe.eatSpace())return null;if(te&&Fe.match(te))return We(ne,mt),"keyword";if(Fe.match(/^\\[a-zA-Z@]+/))return"tag";if(Fe.match(/^[a-zA-Z]+/))return"variable-2";if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/]/)||Fe.match(/^[\^_&]/))return"tag";if(Fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Fe.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Fe.skipToEnd(),"comment"):"error"}function kt(Fe,ne){var te=Fe.peek(),he;return te=="{"||te=="["?(he=je(ne),he.openBracket(te),Fe.eat(te),We(ne,mt),"bracket"):/[ \t\r]/.test(te)?(Fe.eat(te),null):(We(ne,mt),Te(ne),mt(Fe,ne))}return{startState:function(){var Fe=Me.inMathMode?function(ne,te){return it(ne,te)}:mt;return{cmdState:[],f:Fe}},copyState:function(Fe){return{cmdState:Fe.cmdState.slice(),f:Fe.f}},token:function(Fe,ne){return ne.f(Fe,ne)},blankLine:function(Fe){Fe.f=mt,Fe.cmdState.length=0},lineComment:"%"}}),ce.defineMIME("text/x-stex","stex"),ce.defineMIME("text/x-latex","stex")})},15525:function(Re,Ee,le){(function(ce){ce(le(89780))})(function(ce){"use strict";var Pe={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},Me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ce.defineMode("xml",function(Ie,je){var Te=Ie.indentUnit,Ge={},st=je.htmlMode?Pe:Me;for(var Qe in st)Ge[Qe]=st[Qe];for(var Qe in je)Ge[Qe]=je[Qe];var We,mt;function it(tt,Et){function Lt(an){return Et.tokenize=an,an(tt,Et)}var Ut=tt.next();if(Ut=="<")return tt.eat("!")?tt.eat("[")?tt.match("CDATA[")?Lt(ne("atom","]]>")):null:tt.match("--")?Lt(ne("comment","-->")):tt.match("DOCTYPE",!0,!0)?(tt.eatWhile(/[\w\._\-]/),Lt(te(1))):null:tt.eat("?")?(tt.eatWhile(/[\w\._\-]/),Et.tokenize=ne("meta","?>"),"meta"):(We=tt.eat("/")?"closeTag":"openTag",Et.tokenize=kt,"tag bracket");if(Ut=="&"){var on;return tt.eat("#")?tt.eat("x")?on=tt.eatWhile(/[a-fA-F\d]/)&&tt.eat(";"):on=tt.eatWhile(/[\d]/)&&tt.eat(";"):on=tt.eatWhile(/[\w\.\-:]/)&&tt.eat(";"),on?"atom":"error"}else return tt.eatWhile(/[^&<]/),null}it.isInText=!0;function kt(tt,Et){var Lt=tt.next();if(Lt==">"||Lt=="/"&&tt.eat(">"))return Et.tokenize=it,We=Lt==">"?"endTag":"selfcloseTag","tag bracket";if(Lt=="=")return We="equals",null;if(Lt=="<"){Et.tokenize=it,Et.state=ye,Et.tagName=Et.tagStart=null;var Ut=Et.tokenize(tt,Et);return Ut?Ut+" tag error":"tag error"}else return/[\'\"]/.test(Lt)?(Et.tokenize=Fe(Lt),Et.stringStartCol=tt.column(),Et.tokenize(tt,Et)):(tt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(tt){var Et=function(Lt,Ut){for(;!Lt.eol();)if(Lt.next()==tt){Ut.tokenize=kt;break}return"string"};return Et.isInAttribute=!0,Et}function ne(tt,Et){return function(Lt,Ut){for(;!Lt.eol();){if(Lt.match(Et)){Ut.tokenize=it;break}Lt.next()}return tt}}function te(tt){return function(Et,Lt){for(var Ut;(Ut=Et.next())!=null;){if(Ut=="<")return Lt.tokenize=te(tt+1),Lt.tokenize(Et,Lt);if(Ut==">")if(tt==1){Lt.tokenize=it;break}else return Lt.tokenize=te(tt-1),Lt.tokenize(Et,Lt)}return"meta"}}function he(tt,Et,Lt){this.prev=tt.context,this.tagName=Et,this.indent=tt.indented,this.startOfLine=Lt,(Ge.doNotIndent.hasOwnProperty(Et)||tt.context&&tt.context.noIndent)&&(this.noIndent=!0)}function se(tt){tt.context&&(tt.context=tt.context.prev)}function ge(tt,Et){for(var Lt;;){if(!tt.context||(Lt=tt.context.tagName,!Ge.contextGrabbers.hasOwnProperty(Lt)||!Ge.contextGrabbers[Lt].hasOwnProperty(Et)))return;se(tt)}}function ye(tt,Et,Lt){return tt=="openTag"?(Lt.tagStart=Et.column(),be):tt=="closeTag"?Ae:ye}function be(tt,Et,Lt){return tt=="word"?(Lt.tagName=Et.current(),mt="tag",et):Ge.allowMissingTagName&&tt=="endTag"?(mt="tag bracket",et(tt,Et,Lt)):(mt="error",be)}function Ae(tt,Et,Lt){if(tt=="word"){var Ut=Et.current();return Lt.context&&Lt.context.tagName!=Ut&&Ge.implicitlyClosed.hasOwnProperty(Lt.context.tagName)&&se(Lt),Lt.context&&Lt.context.tagName==Ut||Ge.matchClosing===!1?(mt="tag",Le):(mt="tag error",Ve)}else return Ge.allowMissingTagName&&tt=="endTag"?(mt="tag bracket",Le(tt,Et,Lt)):(mt="error",Ve)}function Le(tt,Et,Lt){return tt!="endTag"?(mt="error",Le):(se(Lt),ye)}function Ve(tt,Et,Lt){return mt="error",Le(tt,Et,Lt)}function et(tt,Et,Lt){if(tt=="word")return mt="attribute",Je;if(tt=="endTag"||tt=="selfcloseTag"){var Ut=Lt.tagName,on=Lt.tagStart;return Lt.tagName=Lt.tagStart=null,tt=="selfcloseTag"||Ge.autoSelfClosers.hasOwnProperty(Ut)?ge(Lt,Ut):(ge(Lt,Ut),Lt.context=new he(Lt,Ut,on==Lt.indented)),ye}return mt="error",et}function Je(tt,Et,Lt){return tt=="equals"?rt:(Ge.allowMissing||(mt="error"),et(tt,Et,Lt))}function rt(tt,Et,Lt){return tt=="string"?at:tt=="word"&&Ge.allowUnquoted?(mt="string",et):(mt="error",et(tt,Et,Lt))}function at(tt,Et,Lt){return tt=="string"?at:et(tt,Et,Lt)}return{startState:function(tt){var Et={tokenize:it,state:ye,indented:tt||0,tagName:null,tagStart:null,context:null};return tt!=null&&(Et.baseIndent=tt),Et},token:function(tt,Et){if(!Et.tagName&&tt.sol()&&(Et.indented=tt.indentation()),tt.eatSpace())return null;We=null;var Lt=Et.tokenize(tt,Et);return(Lt||We)&&Lt!="comment"&&(mt=null,Et.state=Et.state(We||Lt,tt,Et),mt&&(Lt=mt=="error"?Lt+" error":mt)),Lt},indent:function(tt,Et,Lt){var Ut=tt.context;if(tt.tokenize.isInAttribute)return tt.tagStart==tt.indented?tt.stringStartCol+1:tt.indented+Te;if(Ut&&Ut.noIndent)return ce.Pass;if(tt.tokenize!=kt&&tt.tokenize!=it)return Lt?Lt.match(/^(\s*)/)[0].length:0;if(tt.tagName)return Ge.multilineTagIndentPastTag!==!1?tt.tagStart+tt.tagName.length+2:tt.tagStart+Te*(Ge.multilineTagIndentFactor||1);if(Ge.alignCDATA&&/<!\[CDATA\[/.test(Et))return 0;var on=Et&&/^<(\/)?([\w_:\.-]*)/.exec(Et);if(on&&on[1])for(;Ut;)if(Ut.tagName==on[2]){Ut=Ut.prev;break}else if(Ge.implicitlyClosed.hasOwnProperty(Ut.tagName))Ut=Ut.prev;else break;else if(on)for(;Ut;){var an=Ge.contextGrabbers[Ut.tagName];if(an&&an.hasOwnProperty(on[2]))Ut=Ut.prev;else break}for(;Ut&&Ut.prev&&!Ut.startOfLine;)Ut=Ut.prev;return Ut?Ut.indent+Te:tt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ge.htmlMode?"html":"xml",helperType:Ge.htmlMode?"html":"xml",skipAttribute:function(tt){tt.state==rt&&(tt.state=et)},xmlCurrentTag:function(tt){return tt.tagName?{name:tt.tagName,close:tt.type=="closeTag"}:null},xmlCurrentContext:function(tt){for(var Et=[],Lt=tt.context;Lt;Lt=Lt.prev)Lt.tagName&&Et.push(Lt.tagName);return Et.reverse()}}}),ce.defineMIME("text/xml","xml"),ce.defineMIME("application/xml","xml"),ce.mimeModes.hasOwnProperty("text/html")||ce.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Re,Ee){"use strict";var le;Ee.Q=Ie,le=je;var ce=",",Pe=" ",Me="";function Ie(Te){for(var Ge=[],st=String(Te||Me),Qe=st.indexOf(ce),We=0,mt=!1,it;!mt;)Qe===-1&&(Qe=st.length,mt=!0),it=st.slice(We,Qe).trim(),(it||!mt)&&Ge.push(it),We=Qe+1,Qe=st.indexOf(ce,We);return Ge}function je(Te,Ge){var st=Ge||{},Qe=st.padLeft===!1?Me:Pe,We=st.padRight?Pe:Me;return Te[Te.length-1]===Me&&(Te=Te.concat(Me)),Te.join(We+ce+Qe).trim()}},86204:function(Re){"use strict";var Ee=typeof Reflect=="object"?Reflect:null,le=Ee&&typeof Ee.apply=="function"?Ee.apply:function(ye,be,Ae){return Function.prototype.apply.call(ye,be,Ae)},ce;Ee&&typeof Ee.ownKeys=="function"?ce=Ee.ownKeys:Object.getOwnPropertySymbols?ce=function(ye){return Object.getOwnPropertyNames(ye).concat(Object.getOwnPropertySymbols(ye))}:ce=function(ye){return Object.getOwnPropertyNames(ye)};function Pe(ge){console&&console.warn&&console.warn(ge)}var Me=Number.isNaN||function(ye){return ye!==ye};function Ie(){Ie.init.call(this)}Re.exports=Ie,Re.exports.once=te,Ie.EventEmitter=Ie,Ie.prototype._events=void 0,Ie.prototype._eventsCount=0,Ie.prototype._maxListeners=void 0;var je=10;function Te(ge){if(typeof ge!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}Object.defineProperty(Ie,"defaultMaxListeners",{enumerable:!0,get:function(){return je},set:function(ge){if(typeof ge!="number"||ge<0||Me(ge))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ge+".");je=ge}}),Ie.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},Ie.prototype.setMaxListeners=function(ye){if(typeof ye!="number"||ye<0||Me(ye))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ye+".");return this._maxListeners=ye,this};function Ge(ge){return ge._maxListeners===void 0?Ie.defaultMaxListeners:ge._maxListeners}Ie.prototype.getMaxListeners=function(){return Ge(this)},Ie.prototype.emit=function(ye){for(var be=[],Ae=1;Ae<arguments.length;Ae++)be.push(arguments[Ae]);var Le=ye==="error",Ve=this._events;if(Ve!==void 0)Le=Le&&Ve.error===void 0;else if(!Le)return!1;if(Le){var et;if(be.length>0&&(et=be[0]),et instanceof Error)throw et;var Je=new Error("Unhandled error."+(et?" ("+et.message+")":""));throw Je.context=et,Je}var rt=Ve[ye];if(rt===void 0)return!1;if(typeof rt=="function")le(rt,this,be);else for(var at=rt.length,tt=kt(rt,at),Ae=0;Ae<at;++Ae)le(tt[Ae],this,be);return!0};function st(ge,ye,be,Ae){var Le,Ve,et;if(Te(be),Ve=ge._events,Ve===void 0?(Ve=ge._events=Object.create(null),ge._eventsCount=0):(Ve.newListener!==void 0&&(ge.emit("newListener",ye,be.listener?be.listener:be),Ve=ge._events),et=Ve[ye]),et===void 0)et=Ve[ye]=be,++ge._eventsCount;else if(typeof et=="function"?et=Ve[ye]=Ae?[be,et]:[et,be]:Ae?et.unshift(be):et.push(be),Le=Ge(ge),Le>0&&et.length>Le&&!et.warned){et.warned=!0;var Je=new Error("Possible EventEmitter memory leak detected. "+et.length+" "+String(ye)+" listeners added. Use emitter.setMaxListeners() to increase limit");Je.name="MaxListenersExceededWarning",Je.emitter=ge,Je.type=ye,Je.count=et.length,Pe(Je)}return ge}Ie.prototype.addListener=function(ye,be){return st(this,ye,be,!1)},Ie.prototype.on=Ie.prototype.addListener,Ie.prototype.prependListener=function(ye,be){return st(this,ye,be,!0)};function Qe(){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 We(ge,ye,be){var Ae={fired:!1,wrapFn:void 0,target:ge,type:ye,listener:be},Le=Qe.bind(Ae);return Le.listener=be,Ae.wrapFn=Le,Le}Ie.prototype.once=function(ye,be){return Te(be),this.on(ye,We(this,ye,be)),this},Ie.prototype.prependOnceListener=function(ye,be){return Te(be),this.prependListener(ye,We(this,ye,be)),this},Ie.prototype.removeListener=function(ye,be){var Ae,Le,Ve,et,Je;if(Te(be),Le=this._events,Le===void 0)return this;if(Ae=Le[ye],Ae===void 0)return this;if(Ae===be||Ae.listener===be)--this._eventsCount===0?this._events=Object.create(null):(delete Le[ye],Le.removeListener&&this.emit("removeListener",ye,Ae.listener||be));else if(typeof Ae!="function"){for(Ve=-1,et=Ae.length-1;et>=0;et--)if(Ae[et]===be||Ae[et].listener===be){Je=Ae[et].listener,Ve=et;break}if(Ve<0)return this;Ve===0?Ae.shift():Fe(Ae,Ve),Ae.length===1&&(Le[ye]=Ae[0]),Le.removeListener!==void 0&&this.emit("removeListener",ye,Je||be)}return this},Ie.prototype.off=Ie.prototype.removeListener,Ie.prototype.removeAllListeners=function(ye){var be,Ae,Le;if(Ae=this._events,Ae===void 0)return this;if(Ae.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ae[ye]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ae[ye]),this;if(arguments.length===0){var Ve=Object.keys(Ae),et;for(Le=0;Le<Ve.length;++Le)et=Ve[Le],et!=="removeListener"&&this.removeAllListeners(et);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(be=Ae[ye],typeof be=="function")this.removeListener(ye,be);else if(be!==void 0)for(Le=be.length-1;Le>=0;Le--)this.removeListener(ye,be[Le]);return this};function mt(ge,ye,be){var Ae=ge._events;if(Ae===void 0)return[];var Le=Ae[ye];return Le===void 0?[]:typeof Le=="function"?be?[Le.listener||Le]:[Le]:be?ne(Le):kt(Le,Le.length)}Ie.prototype.listeners=function(ye){return mt(this,ye,!0)},Ie.prototype.rawListeners=function(ye){return mt(this,ye,!1)},Ie.listenerCount=function(ge,ye){return typeof ge.listenerCount=="function"?ge.listenerCount(ye):it.call(ge,ye)},Ie.prototype.listenerCount=it;function it(ge){var ye=this._events;if(ye!==void 0){var be=ye[ge];if(typeof be=="function")return 1;if(be!==void 0)return be.length}return 0}Ie.prototype.eventNames=function(){return this._eventsCount>0?ce(this._events):[]};function kt(ge,ye){for(var be=new Array(ye),Ae=0;Ae<ye;++Ae)be[Ae]=ge[Ae];return be}function Fe(ge,ye){for(;ye+1<ge.length;ye++)ge[ye]=ge[ye+1];ge.pop()}function ne(ge){for(var ye=new Array(ge.length),be=0;be<ye.length;++be)ye[be]=ge[be].listener||ge[be];return ye}function te(ge,ye){return new Promise(function(be,Ae){function Le(et){ge.removeListener(ye,Ve),Ae(et)}function Ve(){typeof ge.removeListener=="function"&&ge.removeListener("error",Le),be([].slice.call(arguments))}se(ge,ye,Ve,{once:!0}),ye!=="error"&&he(ge,Le,{once:!0})})}function he(ge,ye,be){typeof ge.on=="function"&&se(ge,"error",ye,be)}function se(ge,ye,be,Ae){if(typeof ge.on=="function")Ae.once?ge.once(ye,be):ge.on(ye,be);else if(typeof ge.addEventListener=="function")ge.addEventListener(ye,function Le(Ve){Ae.once&&ge.removeEventListener(ye,Le),be(Ve)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ge)}},58847:function(Re){"use strict";var Ee=Object.prototype.hasOwnProperty,le=Object.prototype.toString,ce=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Me=function(st){return typeof Array.isArray=="function"?Array.isArray(st):le.call(st)==="[object Array]"},Ie=function(st){if(!st||le.call(st)!=="[object Object]")return!1;var Qe=Ee.call(st,"constructor"),We=st.constructor&&st.constructor.prototype&&Ee.call(st.constructor.prototype,"isPrototypeOf");if(st.constructor&&!Qe&&!We)return!1;var mt;for(mt in st);return typeof mt=="undefined"||Ee.call(st,mt)},je=function(st,Qe){ce&&Qe.name==="__proto__"?ce(st,Qe.name,{enumerable:!0,configurable:!0,value:Qe.newValue,writable:!0}):st[Qe.name]=Qe.newValue},Te=function(st,Qe){if(Qe==="__proto__")if(Ee.call(st,Qe)){if(Pe)return Pe(st,Qe).value}else return;return st[Qe]};Re.exports=function Ge(){var st,Qe,We,mt,it,kt,Fe=arguments[0],ne=1,te=arguments.length,he=!1;for(typeof Fe=="boolean"&&(he=Fe,Fe=arguments[1]||{},ne=2),(Fe==null||typeof Fe!="object"&&typeof Fe!="function")&&(Fe={});ne<te;++ne)if(st=arguments[ne],st!=null)for(Qe in st)We=Te(Fe,Qe),mt=Te(st,Qe),Fe!==mt&&(he&&mt&&(Ie(mt)||(it=Me(mt)))?(it?(it=!1,kt=We&&Me(We)?We:[]):kt=We&&Ie(We)?We:{},je(Fe,{name:Qe,newValue:Ge(he,kt,mt)})):typeof mt!="undefined"&&je(Fe,{name:Qe,newValue:mt}));return Fe}},12378:function(Re,Ee,le){"use strict";le.d(Ee,{$u:function(){return Qe},BD:function(){return $e},E9:function(){return st},FF:function(){return Br},FJ:function(){return ye},Hn:function(){return ge},KX:function(){return Ae},NB:function(){return nn},S0:function(){return Wt},UL:function(){return We},Vk:function(){return se},Vm:function(){return sn},YI:function(){return An},ZA:function(){return Me},Zt:function(){return mt},al:function(){return Ue},bn:function(){return lt},bx:function(){return Oe},g2:function(){return Nn},h1:function(){return rt},hD:function(){return wt},l4:function(){return Te},rU:function(){return Ht},s_:function(){return ke},uz:function(){return qn},z6:function(){return it}}),Re=le.hmd(Re),function(){var Be;function Vi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function bi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Vi(a)}}function di(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Ri=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Fi;if(typeof Object.setPrototypeOf=="function")Fi=Object.setPrototypeOf;else{var Ti;e:{var Lr={a:!0},ln={};try{ln.__proto__=Lr,Ti=ln.a;break e}catch(a){}Ti=!1}Fi=Ti?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var pn=Fi;function $t(a,y){if(a.prototype=Ri(y.prototype),a.prototype.constructor=a,pn)pn(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var wn=typeof le.g!="undefined"&&le.g!=null?le.g:self,Gi=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},Ci=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Yi(a,y){if(y){var x=wn;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&Ci(x,a,{writable:!0,value:y})}}Yi("Object.assign",function(a){return a||Gi}),Yi("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var mn=typeof globalThis=="object"&&globalThis||typeof le.g=="object"&&le.g.global===le.g&&le.g||typeof self=="object"&&self.self===self&&self||{};mn.requestAnimationFrame===void 0&&(mn.setImmediate===void 0?mn.requestAnimationFrame=function(a){mn.setTimeout(a,0)}:mn.requestAnimationFrame=mn.setImmediate);function Rn(){}function Ui(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&mn.clearTimeout(x),x=or(function(){x=-1,a.apply(E,b)},y)}}function or(a,y){return mn.setTimeout(a,y)}function ci(a){return mn.document.createElement(a)}function yt(a){throw Error(a)}function zt(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),yt(a)}function li(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),yt(x+" is not in the range "+y+": "+a)}function ii(a){mn.console&&mn.console.log(a)}function Rt(a){return typeof a=="object"&&a!==null}function Jn(a){return Array.isArray(a)||mn.NodeList&&a instanceof mn.NodeList||mn.HTMLCollection&&a instanceof mn.HTMLCollection}function Ni(a){return Array.prototype.slice.call(a)}function en(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):yt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function ze(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):yt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function si(){var a=Eo.pop();return a===void 0?[]:a}function oi(a){a.length=0,Eo.push(a)}function yn(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(Rt(a)&&a.constructor)return yn(a.constructor);return typeof a}function ir(a){var y=a;return Rt(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 Zi(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 Fn(a,y,x){Object.defineProperty(Vo.prototype,a,{get:y,set:x})}function Li(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",ee=0;ee<a.length;ee++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var jt=mn.navigator!==void 0&&0<mn.navigator.userAgent.indexOf("Trident/7"),br=mn.navigator!==void 0&&mn.navigator.platform!==void 0&&mn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Eo=[];Object.freeze([]),Rn.className="Util",Rn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Rn.adym="gojs.net",Rn.vfo="28e645fdb266",Rn.className="Util";function Gt(a,y,x){tr(this),this.j=a,this.xa=y,this.o=x}Gt.prototype.toString=function(){return"EnumValue."+this.xa};function Wi(a,y){return y==null||y===""?null:a[y]}wn.Object.defineProperties(Gt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Gt.className="EnumValue";function cr(){this.ew=[]}cr.prototype.toString=function(){return this.ew.join("")},cr.prototype.add=function(a){a!==""&&this.ew.push(a)},cr.className="StringBuilder";function Hi(){}Hi.className="PropertyCollection";var Hr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){mn.console&&mn.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function Rr(){}Rr.prototype.reset=function(){},Rr.prototype.next=function(){return!1},Rr.prototype.Ad=function(){return!1},Rr.prototype.first=function(){return null},Rr.prototype.any=function(){return!1},Rr.prototype.all=function(){return!0},Rr.prototype.each=function(){return this},Rr.prototype.map=function(){return this},Rr.prototype.filter=function(){return this},Rr.prototype.de=function(){},Rr.prototype.toString=function(){return"EmptyIterator"},wn.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset;var jr=null;Rr.className="EmptyIterator",jr=new Rr;function _r(a){this.key=-1,this.value=a}_r.prototype.reset=function(){this.key=-1},_r.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},_r.prototype.Ad=function(){return this.next()},_r.prototype.first=function(){return this.key=0,this.value},_r.prototype.any=function(a){return this.key=-1,a(this.value)},_r.prototype.all=function(a){return this.key=-1,a(this.value)},_r.prototype.each=function(a){return this.key=-1,a(this.value),this},_r.prototype.map=function(a){return new _r(a(this.value))},_r.prototype.filter=function(a){return a(this.value)?new _r(this.value):jr},_r.prototype.de=function(){this.value=null},_r.prototype.toString=function(){return"SingletonIterator("+this.value+")"},wn.Object.defineProperties(_r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),_r.prototype.first=_r.prototype.first,_r.prototype.hasNext=_r.prototype.Ad,_r.prototype.next=_r.prototype.next,_r.prototype.reset=_r.prototype.reset,_r.className="SingletonIterator";function Ur(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ur.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ur.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Ur.prototype.Ad=function(){return this.next()},Ur.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Ur.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},Ur.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},Ur.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},Ur.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&x.push(a(ee))}return a=new Pn,a.s=x,a.xb(),a.iterator},Ur.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&a(ee)&&x.push(ee)}return a=new Pn,a.s=x,a.xb(),a.iterator},Ur.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ur.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},wn.Object.defineProperties(Ur.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),Ur.prototype.first=Ur.prototype.first,Ur.prototype.hasNext=Ur.prototype.Ad,Ur.prototype.next=Ur.prototype.next,Ur.prototype.reset=Ur.prototype.reset,Ur.className="ListIterator";function po(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}po.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},po.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)},po.prototype.Ad=function(){return this.next()},po.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},po.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},po.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},po.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},po.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Pn,a.s=x,a.xb(),a.iterator},po.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Pn,a.s=x,a.xb(),a.iterator},po.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},po.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},wn.Object.defineProperties(po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),po.prototype.first=po.prototype.first,po.prototype.hasNext=po.prototype.Ad,po.prototype.next=po.prototype.next,po.prototype.reset=po.prototype.reset,po.className="ListIteratorBackwards";function Pn(a){tr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&yt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=Pn.prototype,Be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.toString=function(){return"List()#"+Sr(this)},Be.add=function(a){return a===null?this:(this._isFrozen&&zt(this,a),this.s.push(a),this.xb(),this)},Be.push=function(a){this.add(a)},Be.addAll=function(a){if(a===null)return this;this._isFrozen&&zt(this);var y=this.s;if(Jn(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Be.clear=function(){this._isFrozen&&zt(this),this.s.length=0,this.xb()},Be.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Be.has=function(a){return this.contains(a)},Be.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Be.M=function(a){var y=this.s;return(0>a||a>=y.length)&&li(a,"0 <= i < length",Pn,"elt:i"),y[a]},Be.get=function(a){return this.M(a)},Be.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&li(a,"0 <= i < length",Pn,"setElt:i"),this._isFrozen&&zt(this,a),x[a]=y},Be.set=function(a,y){this.cd(a,y)},Be.first=function(){var a=this.s;return a.length===0?null:a[0]},Be.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Be.pop=function(){this._isFrozen&&zt(this);var a=this.s;return 0<a.length?a.pop():null},Pn.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},Pn.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},Pn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},Pn.prototype.map=function(a){for(var y=new Pn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},Pn.prototype.filter=function(a){for(var y=new Pn,x=[],E=this.s,b=E.length,z=0;z<b;z++){var ee=E[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Be=Pn.prototype,Be.Gb=function(a,y){0>a&&li(a,">= 0",Pn,"insertAt:i"),this._isFrozen&&zt(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Be.remove=function(a){if(a===null)return!1;this._isFrozen&&zt(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)},Be.delete=function(a){return this.remove(a)},Be.mb=function(a){var y=this.s;(0>a||a>=y.length)&&li(a,"0 <= i < length",Pn,"removeAt:i"),this._isFrozen&&zt(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Be.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&zt(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},Pn.prototype.copy=function(){var a=new Pn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Be=Pn.prototype,Be.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Be.Iv=function(){for(var a=new Mn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Be.sort=function(a){return this._isFrozen&&zt(this),this.s.sort(a),this.xb(),this},Be.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&zt(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&li(y,"0 <= from < length",Pn,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},Be.reverse=function(){return this._isFrozen&&zt(this),this.s.reverse(),this.xb(),this},wn.Object.defineProperties(Pn.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 jr;var a=this.Sa;return a!==null?(a.reset(),a):new Ur(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return jr;var a=this.Hg;return a!==null?(a.reset(),a):new po(this)}}}),Pn.prototype.reverse=Pn.prototype.reverse,Pn.prototype.sortRange=Pn.prototype.zi,Pn.prototype.sort=Pn.prototype.sort,Pn.prototype.toSet=Pn.prototype.Iv,Pn.prototype.toArray=Pn.prototype.Fa,Pn.prototype.removeRange=Pn.prototype.removeRange,Pn.prototype.removeAt=Pn.prototype.mb,Pn.prototype.delete=Pn.prototype.delete,Pn.prototype.remove=Pn.prototype.remove,Pn.prototype.insertAt=Pn.prototype.Gb,Pn.prototype.pop=Pn.prototype.pop,Pn.prototype.last=Pn.prototype.jc,Pn.prototype.first=Pn.prototype.first,Pn.prototype.set=Pn.prototype.set,Pn.prototype.setElt=Pn.prototype.cd,Pn.prototype.get=Pn.prototype.get,Pn.prototype.elt=Pn.prototype.M,Pn.prototype.indexOf=Pn.prototype.indexOf,Pn.prototype.has=Pn.prototype.has,Pn.prototype.contains=Pn.prototype.contains,Pn.prototype.clear=Pn.prototype.clear,Pn.prototype.addAll=Pn.prototype.addAll,Pn.prototype.push=Pn.prototype.push,Pn.prototype.add=Pn.prototype.add,Pn.prototype.thaw=Pn.prototype.ka,Pn.prototype.freeze=Pn.prototype.freeze,Pn.className="List";function bo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}bo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},bo.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)},bo.prototype.Ad=function(){return this.next()},bo.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},bo.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},bo.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},bo.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},bo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Pn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},bo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Pn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},bo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},wn.Object.defineProperties(bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),bo.prototype.first=bo.prototype.first,bo.prototype.hasNext=bo.prototype.Ad,bo.prototype.next=bo.prototype.next,bo.prototype.reset=bo.prototype.reset,bo.className="SetIterator";function Mn(a){tr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&yt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=Mn.prototype,Be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.toString=function(){return"Set()#"+Sr(this)},Be.add=function(a){if(a===null)return this;this._isFrozen&&zt(this,a);var y=a;return Rt(a)&&(y=wr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new rn(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},Be.addAll=function(a){if(a===null)return this;if(this._isFrozen&&zt(this),Jn(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},Be.contains=function(a){if(a===null)return!1;var y=a;return Rt(a)&&(y=Sr(a),y===void 0)?!1:this.Tb[y]!==void 0},Be.has=function(a){return this.contains(a)},Be.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Be.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Be.first=function(){var a=this.ea;return a===null?null:a.value},Mn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Mn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Mn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Mn.prototype.map=function(a){for(var y=new Mn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Mn.prototype.filter=function(a){for(var y=new Mn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Be=Mn.prototype,Be.remove=function(a){if(a===null)return!1;this._isFrozen&&zt(this,a);var y=a;if(Rt(a)&&(y=Sr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Be.delete=function(a){return this.remove(a)},Be.hp=function(a){if(a===null)return this;if(this._isFrozen&&zt(this),Jn(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},Be.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&zt(this);var y=new Mn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},Be.clear=function(){this._isFrozen&&zt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Mn.prototype.copy=function(){var a=new Mn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Mn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},Mn.prototype.Hv=function(){var a=new Pn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function tr(a){a.__gohashid=yo++}function wr(a){var y=a.__gohashid;return y===void 0&&(y=yo++,a.__gohashid=y),y}function Sr(a){return a.__gohashid}wn.Object.defineProperties(Mn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return jr;var a=this.Sa;return a!==null?(a.reset(),a):new bo(this)}}}),Mn.prototype.toList=Mn.prototype.Hv,Mn.prototype.toArray=Mn.prototype.Fa,Mn.prototype.clear=Mn.prototype.clear,Mn.prototype.retainAll=Mn.prototype.pA,Mn.prototype.removeAll=Mn.prototype.hp,Mn.prototype.delete=Mn.prototype.delete,Mn.prototype.remove=Mn.prototype.remove,Mn.prototype.first=Mn.prototype.first,Mn.prototype.containsAny=Mn.prototype.Ty,Mn.prototype.containsAll=Mn.prototype.Sy,Mn.prototype.has=Mn.prototype.has,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.addAll=Mn.prototype.addAll,Mn.prototype.add=Mn.prototype.add,Mn.prototype.thaw=Mn.prototype.ka,Mn.prototype.freeze=Mn.prototype.freeze;var yo=1;Mn.className="Set",Mn.uniqueHash=tr,Mn.hashIdUnique=wr,Mn.hashId=Sr;function Or(a){this.ma=a,this.qa=a.Ja,this.sa=null}Or.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Or.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)},Or.prototype.Ad=function(){return this.next()},Or.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},Or.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},Or.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},Or.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},Or.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Pn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Or.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Pn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Or.prototype.de=function(){this.value=this.key=null,this.qa=-1},Or.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},wn.Object.defineProperties(Or.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Or.prototype.first=Or.prototype.first,Or.prototype.hasNext=Or.prototype.Ad,Or.prototype.next=Or.prototype.next,Or.prototype.reset=Or.prototype.reset,Or.className="MapKeySetIterator";function Ar(a){Mn.call(this),tr(this),this._isFrozen=!0,this.ma=a}$t(Ar,Mn),Be=Ar.prototype,Be.freeze=function(){return this},Be.ka=function(){return this},Be.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Be.add=function(){yt("This Set is read-only: "+this.toString())},Be.contains=function(a){return this.ma.contains(a)},Be.has=function(a){return this.contains(a)},Be.remove=function(){yt("This Set is read-only: "+this.toString())},Be.delete=function(a){return this.remove(a)},Be.clear=function(){yt("This Set is read-only: "+this.toString())},Be.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ar.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ar.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ar.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ar.prototype.map=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ar.prototype.filter=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Ar.prototype.copy=function(){return new Ar(this.ma)},Ar.prototype.Iv=function(){var a=new Mn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ar.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Ar.prototype.Hv=function(){var a=new Pn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},wn.Object.defineProperties(Ar.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?jr:new Or(this.ma)}}}),Ar.prototype.toList=Ar.prototype.Hv,Ar.prototype.toArray=Ar.prototype.Fa,Ar.prototype.toSet=Ar.prototype.Iv,Ar.prototype.first=Ar.prototype.first,Ar.prototype.clear=Ar.prototype.clear,Ar.prototype.delete=Ar.prototype.delete,Ar.prototype.remove=Ar.prototype.remove,Ar.prototype.has=Ar.prototype.has,Ar.prototype.contains=Ar.prototype.contains,Ar.prototype.add=Ar.prototype.add,Ar.prototype.thaw=Ar.prototype.ka,Ar.prototype.freeze=Ar.prototype.freeze,Ar.className="MapKeySet";function To(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}To.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},To.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)},To.prototype.Ad=function(){return this.next()},To.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},To.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},To.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},To.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},To.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Pn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},To.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Pn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},To.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},To.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},wn.Object.defineProperties(To.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),To.prototype.first=To.prototype.first,To.prototype.hasNext=To.prototype.Ad,To.prototype.next=To.prototype.next,To.prototype.reset=To.prototype.reset,To.className="MapValueSetIterator";function rn(a,y){this.key=a,this.value=y,this.ll=this.va=null}rn.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},rn.className="KeyValuePair";function _n(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}_n.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},_n.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)},_n.prototype.Ad=function(){return this.next()},_n.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},_n.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},_n.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},_n.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},_n.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Pn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},_n.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Pn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},_n.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},_n.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},wn.Object.defineProperties(_n.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),_n.prototype.first=_n.prototype.first,_n.prototype.hasNext=_n.prototype.Ad,_n.prototype.next=_n.prototype.next,_n.prototype.reset=_n.prototype.reset,_n.className="MapIterator";function Yt(a){tr(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"&&yt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=Yt.prototype,Be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.toString=function(){return"Map()#"+Sr(this)},Be.add=function(a,y){this._isFrozen&&zt(this,a);var x=a;Rt(a)&&(x=wr(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new rn(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},Be.set=function(a,y){return this.add(a,y)},Be.addAll=function(a){if(a===null)return this;if(Jn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof Yt)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},Be.first=function(){return this.ea},Yt.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Yt.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Yt.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Yt.prototype.map=function(a){for(var y=new Yt,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Yt.prototype.filter=function(a){for(var y=new Yt,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Be=Yt.prototype,Be.contains=function(a){var y=a;return Rt(a)&&(y=Sr(a),y===void 0)?!1:this.Tb[y]!==void 0},Be.has=function(a){return this.contains(a)},Be.I=function(a){var y=a;return Rt(a)&&(y=Sr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Be.get=function(a){return this.I(a)},Be.remove=function(a){if(a===null)return!1;this._isFrozen&&zt(this,a);var y=a;if(Rt(a)&&(y=Sr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Be.delete=function(a){return this.remove(a)},Be.clear=function(){this._isFrozen&&zt(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()},Yt.prototype.copy=function(){var a=new Yt,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Yt.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new rn(b.key,b.value),x++}return y},Yt.prototype.Lf=function(){return new Ar(this)},wn.Object.defineProperties(Yt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return jr;var a=this.Sa;return a!==null?(a.reset(),a):new _n(this)}},iteratorKeys:{get:function(){return 0>=this.count?jr:new Or(this)}},iteratorValues:{get:function(){if(0>=this.count)return jr;var a=this.jf;return a!==null?(a.reset(),a):new To(this)}}}),Yt.prototype.toKeySet=Yt.prototype.Lf,Yt.prototype.toArray=Yt.prototype.Fa,Yt.prototype.clear=Yt.prototype.clear,Yt.prototype.delete=Yt.prototype.delete,Yt.prototype.remove=Yt.prototype.remove,Yt.prototype.get=Yt.prototype.get,Yt.prototype.getValue=Yt.prototype.I,Yt.prototype.has=Yt.prototype.has,Yt.prototype.contains=Yt.prototype.contains,Yt.prototype.first=Yt.prototype.first,Yt.prototype.addAll=Yt.prototype.addAll,Yt.prototype.set=Yt.prototype.set,Yt.prototype.add=Yt.prototype.add,Yt.prototype.thaw=Yt.prototype.ka,Yt.prototype.freeze=Yt.prototype.freeze,Yt.className="Map";function qe(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):yt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ai,yi,Ki,_i,Ii;qe.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},qe.prototype.h=function(a,y){return this.x=a,this.y=y,this},qe.prototype.sg=function(a,y){return this.x=a,this.y=y,this},qe.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},qe.prototype.copy=function(){var a=new qe;return a.x=this.x,a.y=this.y,a},Be=qe.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function On(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new qe(x,b)}return new qe}function fi(a){return a.x.toString()+" "+a.y.toString()}Be.toString=function(){return"Point("+this.x+","+this.y+")"},Be.D=function(a){return a instanceof qe?this.x===a.x&&this.y===a.y:!1},Be.hi=function(a,y){return this.x===a&&this.y===y},Be.Xa=function(a){return It.B(this.x,a.x)&&It.B(this.y,a.y)},Be.add=function(a){return this.x+=a.x,this.y+=a.y,this},Be.re=function(a){return this.x-=a.x,this.y-=a.y,this},Be.offset=function(a,y){return this.x+=a,this.y+=y,this},qe.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Be=qe.prototype,Be.scale=function(a,y){return this.x*=a,this.y*=y,this},Be.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Be.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Be.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},Be.ab=function(a){return mi(a.x-this.x,a.y-this.y)},Be.direction=function(a,y){return mi(a-this.x,y-this.y)};function mi(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}Be.Ry=function(a,y){return It.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Be.fA=function(a,y,x,E){return It.qh(a,y,x,E,this.x,this.y,this),this},Be.gA=function(a,y){return It.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Be.uA=function(a,y,x,E){return It.No(this.x,this.y,a,y,x,E,this),this},Be.vA=function(a,y){return It.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Be.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},Be.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Be.transform=function(a){return a.Ga(this),this};function ti(a,y){return y.Cd(a),a}function gi(a,y,x,E,b,z){var ee=b-x,re=z-E,oe=ee*ee+re*re;x-=a,E-=y;var de=-x*ee-E*re;return 0>=de||de>=oe?(ee=b-a,re=z-y,Math.min(x*x+E*E,ee*ee+re*re)):(a=ee*E-re*x,a*a/oe)}function ui(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function xi(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Be.w=function(){return isFinite(this.x)&&isFinite(this.y)},qe.alloc=function(){var a=Oi.pop();return a===void 0?new qe:a},qe.allocAt=function(a,y){var x=Oi.pop();return x===void 0?new qe(a,y):(x.x=a,x.y=y,x)},qe.free=function(a){Oi.push(a)},qe.prototype.isReal=qe.prototype.w,qe.prototype.setSpot=qe.prototype.yi,qe.prototype.setRectSpot=qe.prototype.xi,qe.prototype.snapToGridPoint=qe.prototype.vA,qe.prototype.snapToGrid=qe.prototype.uA,qe.prototype.projectOntoLineSegmentPoint=qe.prototype.gA,qe.prototype.projectOntoLineSegment=qe.prototype.fA,qe.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return It.Rl(a,y,x,E,b,z,ee,re)},qe.prototype.compareWithLineSegmentPoint=qe.prototype.Ry,qe.compareWithLineSegment=function(a,y,x,E,b,z){return It.Fl(a,y,x,E,b,z)},qe.prototype.direction=qe.prototype.direction,qe.prototype.directionPoint=qe.prototype.ab,qe.prototype.normalize=qe.prototype.normalize,qe.prototype.distanceSquared=qe.prototype.zd,qe.prototype.distanceSquaredPoint=qe.prototype.Bf,qe.prototype.scale=qe.prototype.scale,qe.prototype.rotate=qe.prototype.rotate,qe.prototype.offset=qe.prototype.offset,qe.prototype.subtract=qe.prototype.re,qe.prototype.add=qe.prototype.add,qe.prototype.equalsApprox=qe.prototype.Xa,qe.prototype.equalTo=qe.prototype.hi,qe.prototype.equals=qe.prototype.D,qe.prototype.set=qe.prototype.set,qe.prototype.setTo=qe.prototype.sg;var Oi=[];qe.className="Point",qe.parse=On,qe.stringify=fi,qe.distanceLineSegmentSquared=gi,qe.distanceSquared=ui,qe.direction=xi,qe.Origin=ai=new qe(0,0).ja(),qe.InfiniteTopLeft=yi=new qe(-1/0,-1/0).ja(),qe.InfiniteBottomRight=Ki=new qe(1/0,1/0).ja(),qe.SixPoint=_i=new qe(6,6).ja(),qe.NoPoint=Ii=new qe(NaN,NaN).ja(),qe.parse=On,qe.stringify=fi,qe.distanceLineSegmentSquared=gi,qe.distanceSquared=ui,qe.direction=xi;function En(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):yt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ur,sr,Yr,hr,lo,eo,Co;En.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},En.prototype.h=function(a,y){return this.width=a,this.height=y,this},En.prototype.sg=function(a,y){return this.width=a,this.height=y,this},En.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},En.prototype.copy=function(){var a=new En;return a.width=this.width,a.height=this.height,a},Be=En.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function uo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new En(x,b)}return new En}function Ao(a){return a.width.toString()+" "+a.height.toString()}Be.toString=function(){return"Size("+this.width+","+this.height+")"},Be.D=function(a){return a instanceof En?this.width===a.width&&this.height===a.height:!1},Be.hi=function(a,y){return this.width===a&&this.height===y},Be.Xa=function(a){return It.B(this.width,a.width)&&It.B(this.height,a.height)},Be.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},Be.w=function(){return isFinite(this.width)&&isFinite(this.height)},En.alloc=function(){var a=No.pop();return a===void 0?new En:a},En.free=function(a){No.push(a)},En.prototype.isReal=En.prototype.w,En.prototype.inflate=En.prototype.Bc,En.prototype.equalsApprox=En.prototype.Xa,En.prototype.equalTo=En.prototype.hi,En.prototype.equals=En.prototype.D,En.prototype.set=En.prototype.set,En.prototype.setTo=En.prototype.sg;var No=[];En.className="Size",En.parse=uo,En.stringify=Ao,En.ZeroSize=ur=new En(0,0).ja(),En.OneSize=sr=new En(1,1).ja(),En.SixSize=Yr=new En(6,6).ja(),En.EightSize=hr=new En(8,8).ja(),En.TenSize=lo=new En(10,10).ja(),En.InfiniteSize=eo=new En(1/0,1/0).ja(),En.NoSize=Co=new En(NaN,NaN).ja(),En.parse=uo,En.stringify=Ao;function qt(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof qe?(x=a.x,a=a.y,y instanceof qe?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof En?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):yt("Incorrect second argument supplied to Rect constructor "+y)):yt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Be=qt.prototype,Be.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Be.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function mo(a,y,x){a.width=y,a.height=x}Be.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Be.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Be.dd=function(a){return this.x=a.x,this.y=a.y,this},Be.tA=function(a){return this.width=a.width,this.height=a.height,this},qt.prototype.copy=function(){var a=new qt;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Be=qt.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Kr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),new qt(x,b,z,ee)}return new qt}function Pr(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Be.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Be.D=function(a){return a instanceof qt?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Be.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Be.Xa=function(a){return It.B(this.x,a.x)&&It.B(this.y,a.y)&&It.B(this.width,a.width)&&It.B(this.height,a.height)};function fr(a,y){return It.$(a.x,y.x)&&It.$(a.y,y.y)&&It.$(a.width,y.width)&&It.$(a.height,y.height)}Be.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Be.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},Be.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Be.offset=function(a,y){return this.x+=a,this.y+=y,this},Be.Bc=function(a,y){return co(this,y,a,y,a)},Be.Co=function(a){return co(this,a.top,a.right,a.bottom,a.left)},Be.Fv=function(a){return co(this,-a.top,-a.right,-a.bottom,-a.left)},Be.Hz=function(a,y,x,E){return co(this,a,y,x,E)};function co(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Be.Ex=function(a){return Lo(this,a.x,a.y,a.width,a.height)},Be.Uu=function(a,y,x,E){return Lo(this,a,y,x,E)};function Lo(a,y,x,E,b){var z=Math.max(a.x,y),ee=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Be.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Be.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function dn(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Be.Ye=function(a){return Gr(this,a.x,a.y,0,0)},Be.ed=function(a){return Gr(this,a.x,a.y,a.width,a.height)},Be.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Gr(this,a,y,x,E)};function Gr(a,y,x,E,b){var z=Math.min(a.x,y),ee=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=y-z,a.height=x-ee,a}Be.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 Uo(a,y,x,E,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+x&&y<=z&&z+re<=y+E}function Sa(a,y,x,E,b,z,ee,re){return a>ee+b||b>x+a?!1:!(y>re+z||z>E+y)}Be.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Be.Mz=function(){return this.width===0&&this.height===0},qt.alloc=function(){var a=ts.pop();return a===void 0?new qt:a},qt.allocAt=function(a,y,x,E){var b=ts.pop();return b===void 0?new qt(a,y,x,E):b.h(a,y,x,E)},qt.free=function(a){ts.push(a)},wn.Object.defineProperties(qt.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 qe(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new En(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new qe(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}}}),qt.prototype.isEmpty=qt.prototype.Mz,qt.prototype.isReal=qt.prototype.w,qt.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return It.Fx(a,y,x,E,b,z,ee,re)},qt.prototype.setSpot=qt.prototype.yi,qt.prototype.union=qt.prototype.Kv,qt.prototype.unionRect=qt.prototype.ed,qt.prototype.unionPoint=qt.prototype.Ye,qt.prototype.intersects=qt.prototype.Vu,qt.prototype.intersectsRect=qt.prototype.Yc,qt.prototype.intersect=qt.prototype.Uu,qt.prototype.intersectRect=qt.prototype.Ex,qt.prototype.grow=qt.prototype.Hz,qt.prototype.subtractMargin=qt.prototype.Fv,qt.prototype.addMargin=qt.prototype.Co,qt.prototype.inflate=qt.prototype.Bc,qt.prototype.offset=qt.prototype.offset,qt.prototype.contains=qt.prototype.contains,qt.prototype.containsRect=qt.prototype.Re,qt.prototype.containsPoint=qt.prototype.ca,qt.prototype.equalsApprox=qt.prototype.Xa,qt.prototype.equalTo=qt.prototype.hi,qt.prototype.equals=qt.prototype.D,qt.prototype.setSize=qt.prototype.tA,qt.prototype.setPoint=qt.prototype.dd,qt.prototype.set=qt.prototype.set,qt.prototype.setTo=qt.prototype.sg;var Ya=null,bs=null,ts=[];qt.className="Rect",qt.parse=Kr,qt.stringify=Pr,qt.contains=Uo,qt.intersects=Sa,qt.ZeroRect=Ya=new qt(0,0,0,0).ja(),qt.NoRect=bs=new qt(NaN,NaN,NaN,NaN).ja(),qt.parse=Kr,qt.stringify=Pr,qt.contains=Uo,qt.intersects=Sa;function xr(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):yt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}xr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},xr.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},xr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},xr.prototype.copy=function(){var a=new xr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Be=xr.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ca(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new xr;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new xr(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new xr(x,b);for(var ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new xr(x,b):new xr(x,b,z,ee)}return new xr}function da(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Be.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Be.D=function(a){return a instanceof xr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Be.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Be.Xa=function(a){return It.B(this.top,a.top)&&It.B(this.right,a.right)&&It.B(this.bottom,a.bottom)&&It.B(this.left,a.left)},Be.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},xr.alloc=function(){var a=Pa.pop();return a===void 0?new xr:a},xr.free=function(a){Pa.push(a)},xr.prototype.isReal=xr.prototype.w,xr.prototype.equalsApprox=xr.prototype.Xa,xr.prototype.equalTo=xr.prototype.hi,xr.prototype.equals=xr.prototype.D,xr.prototype.set=xr.prototype.set,xr.prototype.setTo=xr.prototype.sg;var Ra=null,va=null,Pa=[];xr.className="Margin",xr.parse=ca,xr.stringify=da,xr.ZeroMargin=Ra=new xr(0,0,0,0).ja(),xr.TwoMargin=va=new xr(2,2,2,2).ja(),xr.parse=ca,xr.stringify=da;function Pi(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var dr,Dr,to,oo,Wo,vr,Ua,ha,Ea,ho,Yo,fs,ia,os,Ns,ws,ba,Qs,Wl,Ms,js,Rs,Rl,iu,ru,ka,ou,Mu,xl,Zn,gr,Wr,Qr,wo,Ro,aa;Pi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Pi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Pi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Pi.prototype.copy=function(){var a=new Pi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Be=Pi.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function vo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function fo(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return dr;if(a==="TopLeft")return Dr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return to;if(a==="TopRight")return oo;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Wo;if(a==="Center")return vr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ua;if(a==="BottomLeft")return ha;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ea;if(a==="BottomRight")return ho;if(a==="TopSide")return Yo;if(a==="LeftSide")return fs;if(a==="RightSide")return ia;if(a==="BottomSide")return os;if(a==="TopBottomSides")return Ns;if(a==="LeftRightSides")return ws;if(a==="TopLeftSides")return ba;if(a==="TopRightSides")return Qs;if(a==="BottomLeftSides")return Wl;if(a==="BottomRightSides")return Ms;if(a==="NotTopSide")return js;if(a==="NotLeftSide")return Rs;if(a==="NotRightSide")return Rl;if(a==="NotBottomSide")return iu;if(a==="AllSides")return ru;if(a==="Default")return ka;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ee=parseFloat(E)),new Pi(x,b,z,ee)}return new Pi}function Vr(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Be.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(dr)?"None":this.D(Dr)?"TopLeft":this.D(to)?"Top":this.D(oo)?"TopRight":this.D(Wo)?"Left":this.D(vr)?"Center":this.D(Ua)?"Right":this.D(ha)?"BottomLeft":this.D(Ea)?"Bottom":this.D(ho)?"BottomRight":this.D(Yo)?"TopSide":this.D(fs)?"LeftSide":this.D(ia)?"RightSide":this.D(os)?"BottomSide":this.D(Ns)?"TopBottomSides":this.D(ws)?"LeftRightSides":this.D(ba)?"TopLeftSides":this.D(Qs)?"TopRightSides":this.D(Wl)?"BottomLeftSides":this.D(Ms)?"BottomRightSides":this.D(js)?"NotTopSide":this.D(Rs)?"NotLeftSide":this.D(Rl)?"NotRightSide":this.D(iu)?"NotBottomSide":this.D(ru)?"AllSides":this.D(ka)?"Default":"None"},Be.D=function(a){return a instanceof Pi?(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},Be.gv=function(){return new Pi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Be.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ou))a=fs;else if(a.D(Mu))a=ia;else if(a.D(xl))a=Yo;else if(a.D(Zn))a=os;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Be.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Be.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Be.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Be.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Be.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Pi.alloc=function(){var a=ea.pop();return a===void 0?new Pi:a},Pi.free=function(a){ea.push(a)},Pi.prototype.isDefault=Pi.prototype.Xb,Pi.prototype.isNone=Pi.prototype.ys,Pi.prototype.isSide=Pi.prototype.$c,Pi.prototype.isNoSpot=Pi.prototype.Mc,Pi.prototype.isSpot=Pi.prototype.sb,Pi.prototype.includesSide=Pi.prototype.Hf,Pi.prototype.opposite=Pi.prototype.gv,Pi.prototype.equals=Pi.prototype.D,Pi.prototype.set=Pi.prototype.set,Pi.prototype.setTo=Pi.prototype.sg;var ea=[];Pi.className="Spot",Pi.parse=fo,Pi.stringify=Vr,Pi.None=dr=vo(new Pi(0,0,0,0),0).ja(),Pi.Default=ka=vo(new Pi(0,0,-1,0),-1).ja(),Pi.TopLeft=Dr=new Pi(0,0,0,0).ja(),Pi.TopCenter=to=new Pi(.5,0,0,0).ja(),Pi.TopRight=oo=new Pi(1,0,0,0).ja(),Pi.LeftCenter=Wo=new Pi(0,.5,0,0).ja(),Pi.Center=vr=new Pi(.5,.5,0,0).ja(),Pi.RightCenter=Ua=new Pi(1,.5,0,0).ja(),Pi.BottomLeft=ha=new Pi(0,1,0,0).ja(),Pi.BottomCenter=Ea=new Pi(.5,1,0,0).ja(),Pi.BottomRight=ho=new Pi(1,1,0,0).ja(),Pi.MiddleTop=gr=to,Pi.MiddleLeft=Wr=Wo,Pi.MiddleRight=Qr=Ua,Pi.MiddleBottom=wo=Ea,Pi.Top=xl=to,Pi.Left=ou=Wo,Pi.Right=Mu=Ua,Pi.Bottom=Zn=Ea,Pi.TopSide=Yo=vo(new Pi(0,0,1,1),1).ja(),Pi.LeftSide=fs=vo(new Pi(0,0,1,2),1).ja(),Pi.RightSide=ia=vo(new Pi(0,0,1,4),1).ja(),Pi.BottomSide=os=vo(new Pi(0,0,1,8),1).ja(),Pi.TopBottomSides=Ns=vo(new Pi(0,0,1,9),1).ja(),Pi.LeftRightSides=ws=vo(new Pi(0,0,1,6),1).ja(),Pi.TopLeftSides=ba=vo(new Pi(0,0,1,3),1).ja(),Pi.TopRightSides=Qs=vo(new Pi(0,0,1,5),1).ja(),Pi.BottomLeftSides=Wl=vo(new Pi(0,0,1,10),1).ja(),Pi.BottomRightSides=Ms=vo(new Pi(0,0,1,12),1).ja(),Pi.NotTopSide=js=vo(new Pi(0,0,1,14),1).ja(),Pi.NotLeftSide=Rs=vo(new Pi(0,0,1,13),1).ja(),Pi.NotRightSide=Rl=vo(new Pi(0,0,1,11),1).ja(),Pi.NotBottomSide=iu=vo(new Pi(0,0,1,7),1).ja(),Pi.AllSides=ru=vo(new Pi(0,0,1,15),1).ja(),Ro=new Pi(.156,.156).ja(),aa=new Pi(.844,.844).ja(),Pi.parse=fo,Pi.stringify=Vr;function $i(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}$i.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},$i.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},$i.prototype.copy=function(){var a=new $i;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},$i.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},$i.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},$i.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},$i.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},$i.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},$i.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,ee=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},$i.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},$i.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ee=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Be=$i.prototype,Be.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Be.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Be.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)},Be.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Be.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Be.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,de=this.dx,fe=this.dy,Se=y*z+x*re+de,Ce=y*ee+x*oe+fe,Ne=E*z+x*re+de,De=E*ee+x*oe+fe;return x=y*z+b*re+de,y=y*ee+b*oe+fe,z=E*z+b*re+de,E=E*ee+b*oe+fe,b=Math.min(Se,Ne),Se=Math.max(Se,Ne),Ne=Math.min(Ce,De),Ce=Math.max(Ce,De),b=Math.min(b,x),Se=Math.max(Se,x),Ne=Math.min(Ne,y),Ce=Math.max(Ce,y),b=Math.min(b,z),Se=Math.max(Se,z),Ne=Math.min(Ne,E),Ce=Math.max(Ce,E),a.h(b,Ne,Se-b,Ce-Ne),a},$i.alloc=function(){var a=Ta.pop();return a===void 0?new $i:a},$i.free=function(a){Ta.push(a)},$i.prototype.transformRect=$i.prototype.pp,$i.prototype.transformPoint=$i.prototype.Ga,$i.prototype.scale=$i.prototype.scale,$i.prototype.translate=$i.prototype.translate,$i.prototype.rotate=$i.prototype.rotate,$i.prototype.invert=$i.prototype.Vj,$i.prototype.multiplyInverted=$i.prototype.bv,$i.prototype.multiply=$i.prototype.multiply,$i.prototype.reset=$i.prototype.reset,$i.prototype.isIdentity=$i.prototype.ws,$i.prototype.equals=$i.prototype.D,$i.prototype.setTransform=$i.prototype.setTransform,$i.prototype.set=$i.prototype.set;var Ta=[];$i.className="Transform",$i.xF="54a702f3e53909c447824c6706603faf4c";var It={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=It.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);It.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,ee){if(0>=b&&(b=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<E)var de=y,fe=E;else de=E,fe=y;if(a===x)return de<=ee&&ee<=fe&&a-b<=z&&z<=a+b;if(y===E)return re<=z&&z<=oe&&y-b<=ee&&ee<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(fe+=b,de-=b,de<=ee&&ee<=fe))if(oe-re>fe-de)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ee=(x-a)/(E-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ee,re,oe,de,fe,Se){if(It.Yb(a,y,ee,re,Se,x,E)&&It.Yb(a,y,ee,re,Se,b,z))return It.Yb(a,y,ee,re,Se,de,fe);var Ce=(a+x)/2,Ne=(y+E)/2,De=(x+b)/2,Ye=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Ce+De)/2,x=(Ne+Ye)/2,De=(De+b)/2,Ye=(Ye+z)/2;var ft=(E+De)/2,ut=(x+Ye)/2;return It.cs(a,y,Ce,Ne,E,x,ft,ut,oe,de,fe,Se)||It.cs(ft,ut,De,Ye,b,z,ee,re,oe,de,fe,Se)},ax:function(a,y,x,E,b,z,ee,re,oe){var de=(x+b)/2,fe=(E+z)/2;return oe.h((((a+x)/2+de)/2+(de+(b+ee)/2)/2)/2,(((y+E)/2+fe)/2+(fe+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ee,re){var oe=(x+b)/2,de=(E+z)/2;return xi(((a+x)/2+oe)/2,((y+E)/2+de)/2,(oe+(b+ee)/2)/2,(de+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ee,re,oe,de){if(It.Yb(a,y,ee,re,oe,x,E)&&It.Yb(a,y,ee,re,oe,b,z))Gr(de,a,y,0,0),Gr(de,ee,re,0,0);else{var fe=(a+x)/2,Se=(y+E)/2,Ce=(x+b)/2,Ne=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(fe+Ce)/2,x=(Se+Ne)/2,Ce=(Ce+b)/2,Ne=(Ne+z)/2;var De=(E+Ce)/2,Ye=(x+Ne)/2;It.Dl(a,y,fe,Se,E,x,De,Ye,oe,de),It.Dl(De,Ye,Ce,Ne,b,z,ee,re,oe,de)}return de},Qe:function(a,y,x,E,b,z,ee,re,oe,de){if(It.Yb(a,y,ee,re,oe,x,E)&&It.Yb(a,y,ee,re,oe,b,z))de.length===0&&(de.push(a),de.push(y)),de.push(ee),de.push(re);else{var fe=(a+x)/2,Se=(y+E)/2,Ce=(x+b)/2,Ne=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(fe+Ce)/2,x=(Se+Ne)/2,Ce=(Ce+b)/2,Ne=(Ne+z)/2;var De=(E+Ce)/2,Ye=(x+Ne)/2;It.Qe(a,y,fe,Se,E,x,De,Ye,oe,de),It.Qe(De,Ye,Ce,Ne,b,z,ee,re,oe,de)}return de},jv:function(a,y,x,E,b,z,ee,re,oe,de){if(It.Yb(a,y,b,z,de,x,E))return It.Yb(a,y,b,z,de,re,oe);var fe=(a+x)/2,Se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var Ce=(fe+x)/2,Ne=(Se+E)/2;return It.jv(a,y,fe,Se,Ce,Ne,ee,re,oe,de)||It.jv(Ce,Ne,x,E,b,z,ee,re,oe,de)},OA:function(a,y,x,E,b,z,ee){return ee.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ee},iv:function(a,y,x,E,b,z,ee,re){if(It.Yb(a,y,b,z,ee,x,E))Gr(re,a,y,0,0),Gr(re,b,z,0,0);else{var oe=(a+x)/2,de=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var fe=(oe+x)/2,Se=(de+E)/2;It.iv(a,y,oe,de,fe,Se,ee,re),It.iv(fe,Se,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(It.Yb(a,y,b,z,ee,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,de=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var fe=(oe+x)/2,Se=(de+E)/2;It.ep(a,y,oe,de,fe,Se,ee,re),It.ep(fe,Se,x,E,b,z,ee,re)}return re},Eo:function(a,y,x,E,b,z,ee,re,oe,de,fe,Se,Ce,Ne){if(It.Yb(a,y,ee,re,Ce,x,E)&&It.Yb(a,y,ee,re,Ce,b,z))return!It.Rl(a,y,ee,re,oe,de,fe,Se)||(Ce=(a-ee)*(de-Se)-(y-re)*(oe-fe),Ce===0)?!1:(Ne.h(((a*re-y*ee)*(oe-fe)-(a-ee)*(oe*Se-de*fe))/Ce,((a*re-y*ee)*(de-Se)-(y-re)*(oe*Se-de*fe))/Ce),!0);var De=(a+x)/2,Ye=(y+E)/2,ft=(x+b)/2,ut=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(De+ft)/2,x=(Ye+ut)/2,ft=(ft+b)/2,ut=(ut+z)/2;var vt=(E+ft)/2,St=(x+ut)/2,Tt=1/0,Mt=!1,Xt=0,pi=0;return It.Eo(a,y,De,Ye,E,x,vt,St,oe,de,fe,Se,Ce,Ne)&&(a=(Ne.x-oe)*(Ne.x-oe)+(Ne.y-de)*(Ne.y-de),a<Tt&&(Tt=a,Mt=!0,Xt=Ne.x,pi=Ne.y)),It.Eo(vt,St,ft,ut,b,z,ee,re,oe,de,fe,Se,Ce,Ne)&&(Ne.x-oe)*(Ne.x-oe)+(Ne.y-de)*(Ne.y-de)<Tt&&(Mt=!0,Xt=Ne.x,pi=Ne.y),Mt&&(Ne.x=Xt,Ne.y=pi),Mt},Fo:function(a,y,x,E,b,z,ee,re,oe,de,fe,Se,Ce){var Ne=0;if(It.Yb(a,y,ee,re,Ce,x,E)&&It.Yb(a,y,ee,re,Ce,b,z)){if(Ce=(a-ee)*(de-Se)-(y-re)*(oe-fe),Ce===0)return Ne;var De=((a*re-y*ee)*(oe-fe)-(a-ee)*(oe*Se-de*fe))/Ce,Ye=((a*re-y*ee)*(de-Se)-(y-re)*(oe*Se-de*fe))/Ce;if(De>=fe)return Ne;if((oe>fe?oe-fe:fe-oe)<(de>Se?de-Se:Se-de)){if(y<re?(oe=y,a=re):(oe=re,a=y),Ye<oe||Ye>a)return Ne}else if(a<ee?(oe=a,a=ee):oe=ee,De<oe||De>a)return Ne;0<Ce?Ne++:0>Ce&&Ne--}else{De=(a+x)/2,Ye=(y+E)/2;var ft=(x+b)/2,ut=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(De+ft)/2,x=(Ye+ut)/2,ft=(ft+b)/2,ut=(ut+z)/2;var vt=(E+ft)/2,St=(x+ut)/2;Ne+=It.Fo(a,y,De,Ye,E,x,vt,St,oe,de,fe,Se,Ce),Ne+=It.Fo(vt,St,ft,ut,b,z,ee,re,oe,de,fe,Se,Ce)}return Ne},qh:function(a,y,x,E,b,z,ee){return It.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):It.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(ee.h(E,y),!1):b>a?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ee.h(a,y),!1):1.000005<b?(ee.h(x,E),!1):(ee.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,ee,re,oe){return It.B(a,x)&&It.B(y,E)?(oe.h(a,y),!1):It.$(b,ee)?It.$(a,x)?(It.qh(a,y,x,E,b,z,oe),!1):It.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),It.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(oe.h(a,b),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(E-y)/(x-a),It.$(re,ee)?(It.qh(a,y,x,E,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),It.$(ee,0)?(a<x?(E=a,a=x):E=x,b<E?(oe.h(E,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):It.qh(a,y,x,E,b,ee*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return It.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,ee,re,oe,de){function fe(ft,ut){var vt=(ft-a)*(ft-a)+(ut-y)*(ut-y);vt<Se&&(Se=vt,oe.h(ft,ut))}var Se=1/0;fe(oe.x,oe.y);var Ce=0,Ne=0,De=0,Ye=0;if(b<ee?(Ce=b,Ne=ee):(Ce=ee,Ne=b),z<re?(De=b,Ye=ee):(De=ee,Ye=b),Ce=(Ne-Ce)/2+de,de=(Ye-De)/2+de,b=(b+ee)/2,z=(z+re)/2,Ce===0||de===0)return oe;if(.5>(x>a?x-a:a-x)){if(Ce=1-(x-b)*(x-b)/(Ce*Ce),0>Ce)return oe;Ce=Math.sqrt(Ce),E=-de*Ce+z,fe(x,de*Ce+z),fe(x,E)}else{if(x=(E-y)/(x-a),E=1/(Ce*Ce)+x*x/(de*de),re=2*x*(y-x*a)/(de*de)-2*x*z/(de*de)-2*b/(Ce*Ce),Ce=re*re-4*E*(2*x*a*z/(de*de)-2*y*z/(de*de)+z*z/(de*de)+b*b/(Ce*Ce)-1+(y-x*a)*(y-x*a)/(de*de)),0>Ce)return oe;Ce=Math.sqrt(Ce),de=(-re+Ce)/(2*E),fe(de,x*de-x*a+y),Ce=(-re-Ce)/(2*E),fe(Ce,x*Ce-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ee,re,oe){var de=1e21,fe=a,Se=y;if(It.Ve(a,y,a,E,b,z,ee,re,oe)){var Ce=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);Ce<de&&(de=Ce,fe=oe.x,Se=oe.y)}return It.Ve(x,y,x,E,b,z,ee,re,oe)&&(Ce=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),Ce<de&&(de=Ce,fe=oe.x,Se=oe.y)),It.Ve(a,y,x,y,b,z,ee,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<de&&(de=y,fe=oe.x,Se=oe.y)),It.Ve(a,E,x,E,b,z,ee,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<de&&(de=a,fe=oe.x,Se=oe.y)),oe.h(fe,Se),1e21>de},us:function(a,y,x){return It.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,ee,re){var oe=a+x,de=y+E;return b===ee?(z<re?(ee=z,z=re):ee=re,a<=b&&b<=oe&&ee<=de&&z>=y):z===re?(b<ee?(re=b,b=ee):re=ee,y<=z&&z<=de&&re<=oe&&b>=a):!!(Uo(a,y,x,E,b,z)||Uo(a,y,x,E,ee,re)||It.Rl(a,y,oe,y,b,z,ee,re)||It.Rl(oe,y,oe,de,b,z,ee,re)||It.Rl(oe,de,a,de,b,z,ee,re)||It.Rl(a,de,a,y,b,z,ee,re))},Rl:function(a,y,x,E,b,z,ee,re){return a===x&&y===E&&b===ee&&z===re?a===b&&y===z:0>=It.Fl(a,y,x,E,b,z)*It.Fl(a,y,x,E,ee,re)&&0>=It.Fl(b,z,ee,re,a,y)*It.Fl(b,z,ee,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var ee=Math.PI;z||(E*=ee/180,b*=ee/180);var re=E>b?-1:1;z=[];var oe=ee/2,de=E;if(E=Math.min(2*ee,Math.abs(b-E)),1e-5>E)return oe=de+re*Math.min(E,oe),re=a+x*Math.cos(de),de=y+x*Math.sin(de),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(de+y)/2,z.push([re,de,x,oe,x,oe,a,y]),z;for(;1e-5<E;)b=de+re*Math.min(E,oe),z.push(It.Vy(x,de,b,a,y)),E-=Math.abs(b-de),de=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,de=ee*ee+oe*oe,fe=de+ee*ee+oe*re;return de=4/3*(Math.sqrt(2*de*fe)-fe)/(ee*re-oe*ee),re=ee-de*oe,ee=oe+de*ee,oe=-ee,de=z+y,z=Math.cos(de),de=Math.sin(de),[E+a*Math.cos(y),b+a*Math.sin(y),E+re*z-ee*de,b+re*de+ee*z,E+re*z-oe*de,b+re*de+oe*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,ee){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var re=x;return x+b-a<b/2&&(re=x+b),a=E,E+z-y<z/2&&(a=E+z),ee.h(re,a),ee},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,de=ee===0?x:E;return(ee===0?b:z)&&(de=-de),ee=re,x=ee===0?x:E,(ee===0?b:z)&&(x=-x),It.az(oe,ee===0?a:y,de,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var ee=y*E,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var de=0;9999999999>de&&(y=.5*(re+oe),!(y===re||y===oe));++de){var fe=a/(y+b),Se=ee/(y+z);if(fe=fe*fe+Se*Se-1,0<fe)re=y;else if(0>fe)oe=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Hi,um:new Hi,Mf:new Hi,Nf:0,vm:100};It.za=It.AA;function Wn(a){tr(this),this.l=2,a===void 0&&(a=Wn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Wn.o?this.ee=new Pn:(Wn.V===null&&(Wn.V=new Pn().freeze()),this.ee=Wn.V),this.aq=this.ee.Ja,this.Ip=new qt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Dr,this.gg=ho,this.Rk=this.Sk=NaN,this.Uf=Hn}Wn.prototype.copy=function(){var a=new Wn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Wn.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Wn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Wn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Wn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Wn.prototype.ka=function(){if(Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Wn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Wn.prototype.Xa=function(a){if(!(a instanceof Wn))return!1;if(this.type!==a.type)return this.type===Wn.j&&a.type===Wn.o?Cs(this,a):a.type===Wn.j&&this.type===Wn.o?Cs(a,this):!1;if(this.type===Wn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return It.B(this.startX,a.startX)&&It.B(this.startY,a.startY)&&It.B(this.endX,a.endX)&&It.B(this.endY,a.endY)};function Cs(a,y){return a.type!==Wn.j||y.type!==Wn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&It.B(a.startX,y.startX)&&It.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Oo&&It.B(a.endX,y.endX)&&It.B(a.endY,y.endY))))}Wn.ia=function(a){return a.toString()},Wn.prototype.qb=function(a){a.classType===Wn&&(this.type=a)},Wn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Wn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Wn.u:var y=new qt(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Wn.F:if(y=new qt(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Wn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Wn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},Wn.parse=function(a,y){function x(){return Ye>=Tt-1?!0:de[Ye+1].match(Mt)!==null}function E(){return Ye++,de[Ye]}function b(mr){var ar=parseFloat(E()),xo=parseFloat(E());ft===ft.toLowerCase()&&(ar=St.x+ar,xo=St.y+xo),mr.h(ar,xo)}function z(){return b(St),St}function ee(){return b(vt),vt}function re(){var mr=ut.toLowerCase();return mr!=="c"&&mr!=="s"&&mr!=="q"&&mr!=="t"?St:new qe(2*St.x-vt.x,2*St.y-vt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var de=a.split(" ");for(a=0;a<de.length;a++){var fe=de[a];if(fe.match(/(\.[0-9]*)(\.)/gm)!==null){oe=si();for(var Se="",Ce=!1,Ne=0;Ne<fe.length;Ne++){var De=fe[Ne];De!=="."||Ce?De==="."?(oe.push(Se),Se="."):Se+=De:(Ce=!0,Se+=De)}for(oe.push(Se),de.splice(a,1),fe=0;fe<oe.length;fe++)de.splice(a+fe,0,oe[fe]);a+=oe.length-1,oi(oe)}}var Ye=-1,ft="",ut="";oe=new qe(0,0);var vt=new qe(0,0),St=new qe(0,0),Tt=de.length;a=FS(null),Ce=Se=fe=!1,Ne=!0,De=null;for(var Mt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ye>=Tt-1);)if(ut=ft,ft=E(),ft!=="")switch(ft.toUpperCase()){case"X":Ne=!0,Se=fe=!1;break;case"M":for(De=z(),a.mc===null||Ne===!0?(eg(a,De.x,De.y,fe,!Se,Ce),Ne=!1):a.moveTo(De.x,De.y),oe.assign(St);!x();)De=z(),a.lineTo(De.x,De.y);break;case"L":for(;!x();)De=z(),a.lineTo(De.x,De.y);break;case"H":for(;!x();)St=new qe((ft===ft.toLowerCase()?St.x:0)+parseFloat(E()),St.y),a.lineTo(St.x,St.y);break;case"V":for(;!x();)St=new qe(St.x,(ft===ft.toLowerCase()?St.y:0)+parseFloat(E())),a.lineTo(St.x,St.y);break;case"C":for(;!x();){De=new qe,b(De);var Xt=ee(),pi=z();bd(a,De.x,De.y,Xt.x,Xt.y,pi.x,pi.y)}break;case"S":for(;!x();)De=re(),Xt=ee(),pi=z(),bd(a,De.x,De.y,Xt.x,Xt.y,pi.x,pi.y);break;case"Q":for(;!x();)De=ee(),Xt=z(),jm(a,De.x,De.y,Xt.x,Xt.y);break;case"T":for(;!x();)vt=De=re(),Xt=z(),jm(a,De.x,De.y,Xt.x,Xt.y);break;case"B":for(;!x();){De=parseFloat(E()),Xt=parseFloat(E()),pi=parseFloat(E());var Di=parseFloat(E()),Ai=parseFloat(E()),$n=Ai,Cn=!1;x()||($n=parseFloat(E()),x()||(Cn=parseFloat(E())!==0)),ft===ft.toLowerCase()&&(pi+=St.x,Di+=St.y),a.arcTo(De,Xt,pi,Di,Ai,$n,Cn)}break;case"A":for(;!x();)De=Math.abs(parseFloat(E())),Xt=Math.abs(parseFloat(E())),pi=parseFloat(E()),Ai=Di=!1,Cn=$n=0,$n=E(),$n.length===1?(Di=!!parseFloat($n),Ai=!!parseFloat(E()),$n=parseFloat(E())):$n.length===2?(Di=!!parseFloat($n[0]),Ai=!!parseFloat($n[1]),$n=parseFloat(E())):(Di=!!parseFloat($n[0]),Ai=!!parseFloat($n[1]),$n=parseFloat($n.slice(2))),Cn=parseFloat(E()),ft===ft.toLowerCase()&&($n=St.x+$n,Cn=St.y+Cn),St.h($n,Cn),Mx(a,De,Xt,pi,Di,Ai,$n,Cn);break;case"Z":Ix(a),St.assign(oe);break;case"F":for(De="",Xt=1;de[Ye+Xt];)if(de[Ye+Xt]==="0")Ce=!0,Xt++;else if(de[Ye+Xt].match(/[Uu]/)!==null)Xt++;else if(de[Ye+Xt].match(Mt)===null)Xt++;else{De=de[Ye+Xt];break}De.match(/[Mm]/)?fe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(De="",Xt=1;de[Ye+Xt];)if(de[Ye+Xt].match(/[Ff]/)!==null)Xt++;else if(de[Ye+Xt].match(Mt)===null)Xt++;else{De=de[Ye+Xt];break}De.match(/[Mm]/)?Se=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},Wn.Ha=function(a,y){for(var x=a.length,E=qe.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}qe.free(E)},Wn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Wn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Wn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Wn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var ee=E[z];ee._isInvalidBounds=!1,ee.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),Gs(this,a,!1),Gr(a,0,0,0,0),a.freeze()},Wn.prototype.ix=function(){var a=new qt;return Gs(this,a,!0),a};function Gs(a,y,x){switch(a.type){case Wn.j:case Wn.u:case Wn.F:x?y.h(a.od,a.pd,0,0):Gr(y,a.od,a.pd,0,0),Gr(y,a.Dc,a.Ec,0,0);break;case Wn.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):Gr(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,de=z.startY,fe=0;fe<re;fe++){var Se=ee[fe];switch(Se.type){case Oo:case qo:oe=Se.endX,de=Se.endY,Gr(y,oe,de,0,0);break;case Oa:It.Dl(oe,de,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,y),oe=Se.endX,de=Se.endY;break;case Ws:It.iv(oe,de,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,y),oe=Se.endX,de=Se.endY;break;case xa:case Js:var Ce=Se.type===xa?ms(Se,z):Us(Se,z,oe,de),Ne=Ce.length;if(Ne===0){oe=Se.type===xa?Se.centerX:Se.endX,de=Se.type===xa?Se.centerY:Se.endY,Gr(y,oe,de,0,0);break}Se=null;for(var De=0;De<Ne;De++)Se=Ce[De],It.Dl(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,y);Se!==null&&(oe=Se[6],de=Se[7]);break;default:yt("Unknown Segment type: "+Se.type)}}}break;default:yt("Unknown Geometry type: "+a.type)}}Wn.prototype.normalize=function(){this._isFrozen&&zt(this);var a=this.ix();return this.offset(-a.x,-a.y),new qe(-a.x,-a.y)},Wn.prototype.offset=function(a,y){return this._isFrozen&&zt(this),this.transform(1,0,0,1,a,y),this},Wn.prototype.scale=function(a,y){return this._isFrozen&&zt(this),this.transform(a,0,0,y,0,0),this},Wn.prototype.rotate=function(a,y,x){this._isFrozen&&zt(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=$i.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),$i.free(E),this},Be=Wn.prototype,Be.transform=function(a,y,x,E,b,z){switch(this.type){case Wn.j:case Wn.u:case Wn.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+b,this.pd=ee*y+re*E+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+b,this.Ec=ee*y+re*E+z;break;case Wn.o:for(var oe=this.figures.s,de=oe.length,fe=0;fe<de;fe++){var Se=oe[fe];ee=Se.startX,re=Se.startY,Se.startX=ee*a+re*x+b,Se.startY=ee*y+re*E+z,Se=Se.segments.s;for(var Ce=Se.length,Ne=0;Ne<Ce;Ne++){var De=Se[Ne];switch(De.type){case Oo:case qo:ee=De.endX,re=De.endY,De.endX=ee*a+re*x+b,De.endY=ee*y+re*E+z;break;case Oa:ee=De.point1X,re=De.point1Y,De.point1X=ee*a+re*x+b,De.point1Y=ee*y+re*E+z,ee=De.point2X,re=De.point2Y,De.point2X=ee*a+re*x+b,De.point2Y=ee*y+re*E+z,ee=De.endX,re=De.endY,De.endX=ee*a+re*x+b,De.endY=ee*y+re*E+z;break;case Ws:ee=De.point1X,re=De.point1Y,De.point1X=ee*a+re*x+b,De.point1Y=ee*y+re*E+z,ee=De.endX,re=De.endY,De.endX=ee*a+re*x+b,De.endY=ee*y+re*E+z;break;case xa:ee=De.centerX,re=De.centerY,De.centerX=ee*a+re*x+b,De.centerY=ee*y+re*E+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),De.startAngle+=ee),0>a&&(De.startAngle=180-De.startAngle,De.sweepAngle=-De.sweepAngle),0>E&&(De.startAngle=-De.startAngle,De.sweepAngle=-De.sweepAngle),De.radiusX*=Math.sqrt(a*a+x*x),De.radiusY!==void 0&&(De.radiusY*=Math.sqrt(y*y+E*E));break;case Js:if(ee=De.endX,re=De.endY,De.endX=ee*a+re*x+b,De.endY=ee*y+re*E+z,De.radiusX===0||De.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),De.xAxisRotation+=ee),0>a&&(De.xAxisRotation=180-De.xAxisRotation,De.isClockwiseArc=!De.isClockwiseArc),0>E&&(De.xAxisRotation=-De.xAxisRotation,De.isClockwiseArc=!De.isClockwiseArc),De.radiusX*=Math.sqrt(a*a+x*x),De.radiusY*=Math.sqrt(y*y+E*E);break;default:yt("Unknown Segment type: "+De.type)}}}}return this._isInvalidBounds=!0,this},Be.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Wn.j:return It.Yb(x,E,b,z,y,a.x,a.y);case Wn.u:var ee=qt.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=ee.ca(a),qt.free(ee),a;case Wn.F:ee=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case Wn.o:return Na(this,a,y,!0,!1);default:return!1}};function Na(a,y,x,E,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,de,fe,Se,Ce=a.figures.s,Ne=Ce.length,De=0;De<Ne;De++){var Ye=Ce[De],ft=!Ye.isEvenOdd;if(Ye.isFilled){if(E&&Ye.ca(z,y,x))return!0;var ut=Ye.segments;oe=Ye.startX,de=Ye.startY;for(var vt=oe,St=de,Tt=ut.s,Mt=0;Mt<=ut.length;Mt++){var Xt=void 0;if(Mt!==ut.length){Xt=Tt[Mt];var pi=Xt.type;a=Xt.endX,Se=Xt.endY}else pi=Oo,a=vt,Se=St;switch(pi){case qo:if(vt=Wa(z,y,ee,y,oe,de,vt,St),isNaN(vt))return!0;re+=vt,vt=a,St=Se;break;case Oo:if(oe=Wa(z,y,ee,y,oe,de,a,Se),isNaN(oe))return!0;re+=oe;break;case Oa:fe=It.Fo(oe,de,Xt.point1X,Xt.point1Y,Xt.point2X,Xt.point2Y,a,Se,ee,y,z,y,.5),re+=fe;break;case Ws:fe=It.Fo(oe,de,(oe+2*Xt.point1X)/3,(de+2*Xt.point1Y)/3,(2*Xt.point1X+a)/3,(2*Xt.point1Y+Se)/3,a,Se,ee,y,z,y,.5),re+=fe;break;case xa:case Js:pi=Xt.type===xa?ms(Xt,Ye):Us(Xt,Ye,oe,de);var Di=pi.length;if(Di===0){if(oe=Wa(z,y,ee,y,oe,de,Xt.type===xa?Xt.centerX:Xt.endX,Xt.type===xa?Xt.centerY:Xt.endY),isNaN(oe))return!0;re+=oe;break}Xt=null;for(var Ai=0;Ai<Di;Ai++){if(Xt=pi[Ai],Ai===0){if(fe=Wa(z,y,ee,y,oe,de,Xt[0],Xt[1]),isNaN(fe))return!0;re+=fe}fe=It.Fo(Xt[0],Xt[1],Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],ee,y,z,y,.5),re+=fe}Xt!==null&&(a=Xt[6],Se=Xt[7]);break;default:yt("Unknown Segment type: "+Xt.type)}oe=a,de=Se}if(ft){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Ye.ca(z,y,b?x:x+2))return!0}return!1}function Wa(a,y,x,E,b,z,ee,re){if(It.Yb(b,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var de=((a*E-y*x)*(b-ee)-(a-x)*(b*re-z*ee))/oe;if(y=(a*E-y*x)*(z-re)/oe,de>=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<ee){if(de<b||de>ee)return 0}else if(de<ee||de>b)return 0;return 0<oe?1:-1}function as(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}Be.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new qe),this.type===Wn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=E[re],de=oe.length;for(a=0;a<de;a++){var fe=oe[a];if(ee+fe>=z)return E=z-ee,E=fe===0?0:E/fe,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ee+=fe}}return y},Be.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Wn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,ee=0;ee<E;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var de=re[a];if(z+de>=b)return b=y[ee],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=de}}return NaN},Be.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Wn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=E[re],de=oe.length;for(a=0;a<de;a++){var fe=oe[a];if(ee+fe>=z)return E=z-ee,E=fe===0?0:E/fe,fe=x[re],x=fe[2*a],re=fe[2*a+1],b=fe[2*a+2],a=fe[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ee+=fe}}return y},Be.xx=function(a){if(this.type===Wn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var ee=x;E=b}else ee=b,E=x;return a<=ee?ee===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-ee)}if(x===b)return y<E?ee=y:(ee=E,E=y),z<=ee?ee===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ee);ee=(E-y)*(E-y)+(b-x)*(b-x);var re=qe.alloc();return It.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,qe.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===Wn.u){ee=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ee!==oe||re!==b){y=oe-ee,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ee),oe),a=Math.min(Math.max(a,re),b),ee=Math.abs(E-ee),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var de=Math.min(ee,oe,re,b);if(de===re)return E/z;if(de===oe)return(y+a)/z;if(de===b)return(2*y+x-E)/z;if(de===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=qe.alloc(),b=1/0,re=ee=0,oe=y.length;for(var fe=de=0,Se=0;Se<oe;Se++)for(var Ce=y[Se],Ne=x[Se],De=Ce.length,Ye=0;Ye<De;Ye+=2){var ft=Ce[Ye],ut=Ce[Ye+1];if(Ye!==0){It.qh(de,fe,ft,ut,a.x,a.y,E);var vt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);vt<b&&(b=vt,ee=re,ee+=Math.sqrt((E.x-de)*(E.x-de)+(E.y-fe)*(E.y-fe))),re+=Ne[(Ye-2)/2]}de=ft,fe=ut}return qe.free(E),a=ee/z,0>a?0:1<a?1:a}return 0};function qa(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===Wn.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===Wn.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===Wn.F){var z=new wa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new qr(xa);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=ms(ee,z),b=a.length,b===0)E.push(ee.centerX),E.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];It.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,E),ee=oe[6],z=oe[7]}}y.push(E),x.push(El(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),ee=b.startX,z=b.startY,re=ee,oe=z;for(var de=b.segments.s,fe=de.length,Se=0;Se<fe;Se++){var Ce=de[Se];switch(Ce.type){case qo:4<=E.length&&(y.push(E),x.push(El(E))),E=[],E.push(Ce.endX),E.push(Ce.endY),ee=Ce.endX,z=Ce.endY,re=ee,oe=z;break;case Oo:E.push(Ce.endX),E.push(Ce.endY),ee=Ce.endX,z=Ce.endY;break;case Oa:It.Qe(ee,z,Ce.point1X,Ce.point1Y,Ce.point2X,Ce.point2Y,Ce.endX,Ce.endY,.5,E),ee=Ce.endX,z=Ce.endY;break;case Ws:It.ep(ee,z,Ce.point1X,Ce.point1Y,Ce.endX,Ce.endY,.5,E),ee=Ce.endX,z=Ce.endY;break;case xa:var Ne=ms(Ce,b),De=Ne.length;if(De===0){E.push(Ce.centerX),E.push(Ce.centerY),ee=Ce.centerX,z=Ce.centerY;break}for(var Ye=0;Ye<De;Ye++){var ft=Ne[Ye];It.Qe(ee,z,ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,E),ee=ft[6],z=ft[7]}break;case Js:if(Ne=Us(Ce,b,ee,z),De=Ne.length,Ye=Ce.endX,ft=Ce.endY,De===0){E.push(Ye),E.push(ft),ee=Ye,z=ft;break}for(Ye=0;Ye<De;Ye++)ft=Ne[Ye],It.Qe(ee,z,ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,E),ee=ft[6],z=ft[7];break;default:yt("Segment not of valid type: "+Ce.type)}Ce.isClosed&&(E.push(re),E.push(oe))}4<=E.length&&(y.push(E),x.push(El(E)))}}}function El(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(ui(x,E,ee,re))),x=ee,E=re}return y}Be.add=function(a){return this.ee.add(a),this},Be.pm=function(a,y,x,E,b,z,ee,re){return this._isFrozen&&zt(this),this.fg=new Pi(a,y,b,z).freeze(),this.gg=new Pi(x,E,ee,re).freeze(),this},wn.Object.defineProperties(Wn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return qa(this),this.tk}},flattenedLengths:{get:function(){return qa(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Wn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Wn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,ee=0;ee<z;ee++)a+=b[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&zt(this,a),this.na=a,a===Wn.o?this.ee=new Pn:(Wn.V===null&&(Wn.V=new Pn().freeze()),this.ee=Wn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&zt(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&zt(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&zt(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&zt(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&zt(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&zt(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&zt(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&zt(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Wn.prototype.setSpots=Wn.prototype.pm,Wn.prototype.add=Wn.prototype.add,Wn.prototype.getFractionForPoint=Wn.prototype.xx,Wn.prototype.getPointAndAngleAlongPath=Wn.prototype.Qu,Wn.prototype.getAngleAlongPath=Wn.prototype.wx,Wn.prototype.getPointAlongPath=Wn.prototype.Pu,Wn.prototype.containsPoint=Wn.prototype.ca,Wn.prototype.transform=Wn.prototype.transform,Wn.prototype.rotate=Wn.prototype.rotate,Wn.prototype.scale=Wn.prototype.scale,Wn.prototype.offset=Wn.prototype.offset,Wn.prototype.normalize=Wn.prototype.normalize,Wn.prototype.computeBoundsWithoutOrigin=Wn.prototype.ix,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.className="Geometry",Wn.j=new Gt(Wn,"Line",0),Wn.u=new Gt(Wn,"Rectangle",1),Wn.F=new Gt(Wn,"Ellipse",2),Wn.o=new Gt(Wn,"Path",3),Wn.V=null,Wn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Wn.className="Geometry",Wn.stringify=Wn.ia,Wn.fillPath=Wn.nb,Wn.parse=Wn.parse,Wn.Line=Wn.j,Wn.Rectangle=Wn.u,Wn.Ellipse=Wn.F,Wn.Path=Wn.o;function wa(a,y,x,E,b){tr(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Pn,this.sr=this.pl.Ja,this.fw=null}wa.prototype.copy=function(){var a=new wa;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Be=wa.prototype,Be.Xa=function(a){if(!(a instanceof wa&&It.B(this.startX,a.startX)&&It.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},Be.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},Be.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},Be.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},Be.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},Be.add=function(a){return this.pl.add(a),this},Be.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,ee=b,re=this.segments.s,oe=re.length,de=0;de<oe;de++){var fe=re[de];switch(fe.type){case qo:z=fe.endX,ee=fe.endY,E=fe.endX,b=fe.endY;break;case Oo:if(It.Yb(E,b,fe.endX,fe.endY,x,a,y))return!0;E=fe.endX,b=fe.endY;break;case Oa:if(It.cs(E,b,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,a,y,x))return!0;E=fe.endX,b=fe.endY;break;case Ws:if(It.jv(E,b,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,a,y,x))return!0;E=fe.endX,b=fe.endY;break;case xa:case Js:var Se=fe.type===xa?ms(fe,this):Us(fe,this,E,b),Ce=Se.length,Ne=fe.type===xa?fe.centerX:fe.endX,De=fe.type===xa?fe.centerY:fe.endY;if(Ce===0){if(It.Yb(E,b,Ne,De,x,a,y))return!0;E=Ne,b=De;break}for(Ne=null,De=0;De<Ce;De++)if(Ne=Se[De],De===0&&It.Yb(E,b,Ne[0],Ne[1],x,a,y)||It.cs(Ne[0],Ne[1],Ne[2],Ne[3],Ne[4],Ne[5],Ne[6],Ne[7],.5,a,y,x))return!0;Ne!==null&&(E=Ne[6],b=Ne[7]);break;default:yt("Unknown Segment type: "+fe.type)}if(fe.isClosed&&(E!==z||b!==ee)&&It.Yb(E,b,z,ee,x,a,y))return!0}return!1},wn.Object.defineProperties(wa.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&&zt(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&zt(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&zt(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&zt(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&zt(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&zt(this,a),this.pl=a,this._isInvalidBounds=!0}}}),wa.prototype.add=wa.prototype.add,wa.prototype.equalsApprox=wa.prototype.Xa,wa.className="PathFigure";function qr(a,y,x,E,b,z,ee,re){tr(this),a===void 0&&(a=Oo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===Js?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===xa&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===xa&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}qr.prototype.copy=function(){var a=new qr;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},Be=qr.prototype,Be.Xa=function(a){if(!(a instanceof qr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case qo:case Oo:return It.B(this.endX,a.endX)&&It.B(this.endY,a.endY);case Oa:return It.B(this.endX,a.endX)&&It.B(this.endY,a.endY)&&It.B(this.point1X,a.point1X)&&It.B(this.point1Y,a.point1Y)&&It.B(this.point2X,a.point2X)&&It.B(this.point2Y,a.point2Y);case Ws:return It.B(this.endX,a.endX)&&It.B(this.endY,a.endY)&&It.B(this.point1X,a.point1X)&&It.B(this.point1Y,a.point1Y);case xa:return It.B(this.startAngle,a.startAngle)&&It.B(this.sweepAngle,a.sweepAngle)&&It.B(this.centerX,a.centerX)&&It.B(this.centerY,a.centerY)&&It.B(this.radiusX,a.radiusX)&&It.B(this.radiusY,a.radiusY);case Js:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&It.B(this.xAxisRotation,a.xAxisRotation)&&It.B(this.endX,a.endX)&&It.B(this.endY,a.endY)&&It.B(this.radiusX,a.radiusX)&&It.B(this.radiusY,a.radiusY);default:return!1}},Be.qb=function(a){a.classType===qr&&(this.type=a)},Be.toString=function(a){switch(a===void 0&&(a=-1),this.type){case qo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Oo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Oa: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 Ws: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 xa: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 Js: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":"")},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.close=function(){return this.isClosed=!0,this};function ms(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=It.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var ee=$i.alloc();ee.reset(),x<E?ee.scale(1,E/x):ee.scale(x/E,1),Wn.Ha(z,ee),$i.free(ee)}for(x=z.length,E=0;E<x;E++)ee=z[E],ee[0]+=y,ee[1]+=b,ee[2]+=y,ee[3]+=b,ee[4]+=y,ee[5]+=b,ee[6]+=y,ee[7]+=b;return a.ae=z,a.ae}function Us(a,y,x,E){function b(Ye,ft,ut,vt){return(Ye*vt<ft*ut?-1:1)*Math.acos((Ye*ut+ft*vt)/(Math.sqrt(Ye*Ye+ft*ft)*Math.sqrt(ut*ut+vt*vt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,de=a.Dc,fe=a.Ec,Se=Math.cos(ee),Ce=Math.sin(ee),Ne=Se*(x-de)/2+Ce*(E-fe)/2;ee=-Ce*(x-de)/2+Se*(E-fe)/2;var De=Ne*Ne/(y*y)+ee*ee/(z*z);return 1<De&&(y*=Math.sqrt(De),z*=Math.sqrt(De)),De=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Ne*Ne)/(y*y*ee*ee+z*z*Ne*Ne)),isNaN(De)&&(De=0),re=De*y*ee/z,De=De*-z*Ne/y,isNaN(re)&&(re=0),isNaN(De)&&(De=0),x=(x+de)/2+Se*re-Ce*De,E=(E+fe)/2+Ce*re+Se*De,fe=b(1,0,(Ne-re)/y,(ee-De)/z),Se=(Ne-re)/y,de=(ee-De)/z,Ne=(-Ne-re)/y,re=(-ee-De)/z,ee=b(Se,de,Ne,re),Ne=(Se*Ne+de*re)/(Math.sqrt(Se*Se+de*de)*Math.sqrt(Ne*Ne+re*re)),-1>=Ne?ee=Math.PI:1<=Ne&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Ne=y>z?z/y:1,y=It.jx(0,0,y>z?y:z,fe,fe+ee,!0),z=$i.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,Ne),Wn.Ha(y,z),$i.free(z),a.ae=y,a.ae}wn.Object.defineProperties(qr.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&&zt(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&zt(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&zt(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&zt(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&zt(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&zt(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&zt(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&zt(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&zt(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&li(a,">= zero",qr,"radiusX"),this._isFrozen&&zt(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&li(a,">= zero",qr,"radiusY"),this._isFrozen&&zt(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&zt(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&&zt(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&&zt(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&&zt(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&&zt(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),qr.prototype.equalsApprox=qr.prototype.Xa;var qo=new Gt(qr,"Move",0),Oo=new Gt(qr,"Line",1),Oa=new Gt(qr,"Bezier",2),Ws=new Gt(qr,"QuadraticBezier",3),xa=new Gt(qr,"Arc",4),Js=new Gt(qr,"SvgArc",4);qr.className="PathSegment",qr.Move=qo,qr.Line=Oo,qr.Bezier=Oa,qr.QuadraticBezier=Ws,qr.Arc=xa,qr.SvgArc=Js;function ss(){this.H=null,this.xu=new qe(0,0).freeze(),this.mt=new qe(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}ss.prototype.copy=function(){var a=new ss;return this.clone(a)},ss.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},ss.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},ss.prototype.So=function(a,y){var x=this.diagram;return x===null||Og(x,a,y),y},ss.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Og(x,a,y),y.assign(x.Ps(y))),y},wn.Object.defineProperties(ss.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}}}),ss.prototype.getMultiTouchDocumentPoint=ss.prototype.Bz,ss.prototype.getMultiTouchViewPoint=ss.prototype.So,ss.className="InputEvent";function yu(){this.H=null,this.xa="",this.ar=this.Lr=null}yu.prototype.copy=function(){var a=new yu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},yu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},wn.Object.defineProperties(yu.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}}}),yu.className="DiagramEvent";function ta(){this.Fm=Ko,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ta.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ta.prototype.copy=function(){var a=new ta;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=Rt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Rt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Rt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Rt(y)&&typeof y.J=="function"?y.J():y,a},ta.prototype.qb=function(a){a.classType===ta&&(this.change=a)},ta.prototype.toString=function(){var a="";return a=this.change===vs?a+"* ":this.change===Ko?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===vs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ir(this.object)),this.oldValue!==null&&(a+=" old: "+ir(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ir(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ta.prototype.I=function(a){return a?this.oldValue:this.newValue},ta.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ta.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ta.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ta.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ta.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},wn.Object.defineProperties(ta.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===vs&&(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}}}),ta.prototype.redo=ta.prototype.redo,ta.prototype.canRedo=ta.prototype.canRedo,ta.prototype.undo=ta.prototype.undo,ta.prototype.canUndo=ta.prototype.canUndo,ta.prototype.getParam=ta.prototype.Dz,ta.prototype.getValue=ta.prototype.I,ta.prototype.clear=ta.prototype.clear;var vs=new Gt(ta,"Transaction",-1),Ko=new Gt(ta,"Property",0),fa=new Gt(ta,"Insert",1),ya=new Gt(ta,"Remove",2);ta.className="ChangedEvent",ta.Transaction=vs,ta.Property=Ko,ta.Insert=fa,ta.Remove=ya;function Ma(){this.o=new Pn().freeze(),this.xa="",this.j=!1}Ma.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
|
|
|
`+E.toString())}}return y},Ma.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()},Ma.prototype.canUndo=function(){return this.isComplete},Ma.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()}},Ma.prototype.canRedo=function(){return this.isComplete},Ma.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()}},Ma.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Yt,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===Ko&&E.object){var b=y.get(E.object);b||(b=new Yt,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},wn.Object.defineProperties(Ma.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}}}),Ma.prototype.optimize=Ma.prototype.ak,Ma.prototype.redo=Ma.prototype.redo,Ma.prototype.canRedo=Ma.prototype.canRedo,Ma.prototype.undo=Ma.prototype.undo,Ma.prototype.canUndo=Ma.prototype.canUndo,Ma.prototype.clear=Ma.prototype.clear,Ma.className="Transaction";function zo(){this.Pt=new Mn,this.Jd=!1,this.u=new Pn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Pn().freeze(),this.hl=new Pn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}zo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
|
`+this.history.M(E).toString(a-1);return y},zo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},zo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Be=zo.prototype,Be.Xw=function(a){this.Pt.add(a)},Be.Rx=function(a){this.Pt.remove(a)},Be.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},Be.eb=function(a){return a===void 0&&(a=""),Vu(this,!0,a)},Be.Kf=function(){return Vu(this,!1,"")};function Vu(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ii("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Be.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},zo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},zo.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){ii("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},zo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},zo.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){ii("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},zo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new ta;for(E.change=vs,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},zo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ma);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||ii("Change not within a transaction: "+x.toString()))}},zo.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},wn.Object.defineProperties(zo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),zo.prototype.handleChanged=zo.prototype.Tu,zo.prototype.redo=zo.prototype.redo,zo.prototype.undo=zo.prototype.undo,zo.prototype.canUndo=zo.prototype.canUndo,zo.prototype.discardHistoryAfterIndex=zo.prototype.lx,zo.prototype.rollbackTransaction=zo.prototype.Kf,zo.prototype.commitTransaction=zo.prototype.eb,zo.prototype.startTransaction=zo.prototype.Ea,zo.prototype.removeModel=zo.prototype.Rx,zo.prototype.addModel=zo.prototype.Xw,zo.prototype.clear=zo.prototype.clear,zo.className="UndoManager";function Zr(){tr(this),this.H=Rc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ss,this.Zr=-1}Zr.prototype.toString=function(){return this.name!==""?this.name+" Tool":yn(this.constructor)},Zr.prototype.updateAdornments=function(){},Zr.prototype.canStart=function(){return this.isEnabled},Zr.prototype.doStart=function(){},Zr.prototype.doActivate=function(){this.isActive=!0},Zr.prototype.doDeactivate=function(){this.isActive=!1},Zr.prototype.doStop=function(){},Zr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Zr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Zr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Zr.prototype.doMouseMove=function(){},Zr.prototype.doMouseUp=function(){this.stopTool()},Zr.prototype.doMouseWheel=function(){},Zr.prototype.canStartMultiTouch=function(){return!0},Zr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,qe.allocAt(NaN,NaN)),E=y.So(1,qe.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}qe.free(x),qe.free(E)},Zr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,qe.allocAt(NaN,NaN)),E=y.So(1,qe.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new qe((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}qe.free(x),qe.free(E)},Zr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Zr.prototype.doKeyUp=function(){},Zr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Zr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Zr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(br?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||(br?y.meta:y.control)||y.shift||a.clearSelection()}},Zr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,Qc(a,E,x),E.handled};function Qc(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Zr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(E===z||E!==null&&E.rg(z)||(re(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;E!==null&&(ee=E.mouseEnter,!(ee!==null&&(z===E||z!==null&&z.rg(E)||(ee(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},Zr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Zr.prototype.doCurrentObjectChanged=function(){},Zr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===au&&!y.shift||b===Ru&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===au&&y.shift||b===Ru&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},Zr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Zr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=or(function(){x.doWaitAfter(E)},a)},Zr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&mn.clearTimeout(this.Zr),this.Zr=-1},Zr.prototype.doWaitAfter=function(){},Zr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof so);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Zr.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},wn.Object.defineProperties(Zr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Jt&&(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}}}),Zr.prototype.startTransaction=Zr.prototype.Ea,Zr.className="Tool";function Vo(){Zr.call(this),this.name="ToolManager",this.hb=new Pn,this.ob=new Pn,this.Hb=new Pn,this.F=this.V=850,this.o=new En(2,2).ja(),this.Ha=5e3,this.ia=Ru,this.u=xc,this.Mp=this.j=null,this.zj=-1}$t(Vo,Zr),Vo.prototype.initializeStandardTools=function(){},Vo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof so&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Vo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ol&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Dl){y.bubbles=!0;return}if(this.gestureBehavior===Ol)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Ru?this.mouseWheelBehavior=au:this.mouseWheelBehavior===au&&(this.mouseWheelBehavior=Ru)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Vo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Dl){y.bubbles=!0;return}if(this.gestureBehavior===Ol)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}Lc(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Lc(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Vo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof so&&(y===a||y.rg(a))||this.hideToolTip()},Vo.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},Vo.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},Vo.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof so)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Vo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof so){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof no&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(mn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=or(function(){b.hideToolTip()},a)}},Vo.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},Vo.prototype.hideToolTip=function(){this.zj!==-1&&(mn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof so?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof no&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Vo.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Vo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Vo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Vo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Vo.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},Vo.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},Vo.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},wn.Object.defineProperties(Vo.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof so?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Vo.prototype.replaceStandardTool=Vo.prototype.gb;var Ru=new Gt(Vo,"WheelScroll",0),au=new Gt(Vo,"WheelZoom",1),Ic=new Gt(Vo,"WheelNone",2),xc=new Gt(Vo,"GestureZoom",3),Ol=new Gt(Vo,"GestureCancel",4),Dl=new Gt(Vo,"GestureNone",5);Vo.className="ToolManager",Vo.WheelScroll=Ru,Vo.WheelZoom=au,Vo.WheelNone=Ic,Vo.GestureZoom=xc,Vo.GestureCancel=Ol,Vo.GestureNone=Dl;function Zo(){Zr.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 qe(NaN,NaN),this.Fr=new qe,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Mn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Os;$t(Zo,Zr),Zo.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},Zo.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},Zo.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,(br?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Zo.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),ns=null,this.isActive=!0,this.tl.set(a.position),Yu(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Al(a),Rf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,ns=this,Ku=this.diagram,this.doSimulatedDragOut()))};function Yu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof ei?(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 al,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Zo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Zo.prototype.Pd=function(a){return a===void 0?new qc(ai):this.isGridSnapEnabled?new qc(new qe(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new qc(a.copy())},Zo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Fl(this),Wd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Os.count){for(var y=Os,x=y.length,E=0;E<x;E++){var b=y.M(E);na(b),Ho(b),Fl(b),b.diagram.ug()}y.clear()}na(this),this.tl.h(NaN,NaN),Ku!==null&&(Ku.currentCursor=""),ns=Ku=null,Ho(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Zh(a,!0)},Zo.prototype.stopTransaction=function(){var a=this.diagram,y=Zr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Fl(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,bl(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function su(){var a=ns;Ho(a),ys(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Zo.prototype.doCancel=function(){Ho(this),ys(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Zo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Zo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Vl(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):ys(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 Yt,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof ei&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,Yu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Td(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Ho(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 ei&&(x.value.point=new qe(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function na(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 Da(a,y,x){var E=a.diagram,b=a.startPoint,z=qe.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),qe.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Al(E),E.hk())}Zo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&Gd(E,a,y,this.dragOptions,x)};function ys(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof ei&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Td(E,-b.x,-b.y)}y.bd()}}function ls(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),ol(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=bl(a,b,E),!a.isActive&&ns===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof yr)){var oe=x.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&ns===null||(a.doDragOver(y,E),!a.isActive&&ns===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Zo.prototype.findDragOverObject=function(a){var y=this;return Oc(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof so||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Zo.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 bl(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<b;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&ns===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=wl(b);for(b=a.Cg.length,x=0;x<b&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),E=!0,!y.handled));x++);return E}function wl(a){var y=a.panel;return y!==null?y:a instanceof Qi&&!(a instanceof yr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Cl(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(de){return E.findValidLinkablePort(de,x)});a=qe.alloc();var z=1/0,ee=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(vr,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return qe.free(a),ee}function ol(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ee=null;x.fromNode===null&&(z=Cl(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Cl(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):we(b,ee,z,oe,re):we(b,null,null,null,null)}}}}Zo.prototype.doDragOver=function(){};function Yl(a,y){var x=a.diagram;a.dragsLink&&ol(a,!0),Fl(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(b,z),b.handled))break;dd(a,b,z),z=wl(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||ns!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof vi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||ns!==null){for(a=qt.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof vi&&mh(x,E,a);qt.free(a)}}}function dd(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof yr||(x=a.mouseDrop,x!==null&&x(y))}function mh(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof ei},!0,function(b){return b instanceof ei},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Zo.prototype.doDropOnto=function(){},Zo.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()?(Vl(this,!1),Rf(a,this.copiedParts),Da(this,this.copiedParts,!1),Wd(a,this.copiedParts)):this.mayMove()?(Ho(this),Da(this,this.draggedParts,!0)):this.mayDragOut()?(Vl(this,!1),Da(this,this.copiedParts,!1)):Ho(this),ls(this,a.lastInput.documentPoint))}},Zo.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?(Ho(this),Vl(this,!0),Rf(a,this.copiedParts),Da(this,this.copiedParts,!1),Wd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Ho(this),this.mayMove()&&(Da(this,this.draggedParts,!0),ls(this,a.lastInput.documentPoint))),this.Ym=!0,Yl(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&vh(this),a.Ya(),Wd(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Zo.prototype.simulatedMouseMove=function(a,y,x){if(ns===null)return!1;var E=ns.diagram;x instanceof Jt||(x=null);var b=Ku;return x!==b&&(b!==null&&b!==E&&(b.ug(),ns.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Ku=x,x!==null&&x!==E&&(su(),b=x.toolManager.findTool("Dragging"),b!==null&&(Os.contains(b)||Os.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},Zo.prototype.simulatedMouseUp=function(a,y,x){if(ns===null)return!1;var E=Ku,b=ns.diagram;if(x===null)return ns.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),ns.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Ku=x,E=x.toolManager.findTool("Dragging"),E!==null&&(su(),Os.contains(E)||Os.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new qe),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=ns,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function vh(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof vi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Zo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(br?!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())},Zo.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())},Zo.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())},Zo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Zo.prototype.Az=function(){return ns},Zo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=ns;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Zo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),bu(a),a.animationManager.Cc(),a=ns,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Zo.prototype.doSimulatedDragLeave=function(){var a=ns;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Zo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=ns;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;yh(this,y.draggedParts.Lf(),!1,a.firstInput),Da(this,this.copiedParts,!1),ls(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Zo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=ns;if(y!==null){var x=y.diagram;if(y.Ym=!0,Ho(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),yh(this,y.draggedParts.Lf(),!0,a.lastInput),Da(this,this.copiedParts,!1);var E=new Mn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Yl(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function yh(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=qt.alloc();b=E=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var de=oe.value;if(de.isVisible()){var fe=de.location;de=fe.x,fe=fe.y,isNaN(de)||isNaN(fe)||(de<E&&(E=de),fe<b&&(b=fe),de>ee&&(ee=de),fe>re&&(re=fe))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ee-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,qt.free(z),z=a.Fr,ee=new Yt,re=qe.alloc(),oe=y.iterator;oe.next();)de=oe.value,de instanceof ei&&de.canCopy()&&(fe=x.I(de),fe!==null&&(fe.points=de.points,Td(fe,z.x-E,z.y-b),fe.suspendsRouting=!0,ee.add(fe,a.Pd())));for(y=y.iterator;y.next();)de=y.value,de.Zc()&&de.canCopy()&&(oe=x.I(de),oe!==null&&(de=de.location,re.h(z.x-(E-de.x),z.y-(b-de.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));qe.free(re),a.copiedParts=ee,Yu(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Td(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Zo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Zo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new qe},wn.Object.defineProperties(Zo.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}}}),Zo.prototype.getDraggingSource=Zo.prototype.Az;var ns=null,Ku=null;Zo.className="DraggingTool",Os=new Pn,Fn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Vo.prototype.doCancel=function(){ns!==null&&ns.doCancel(),Zr.prototype.doCancel.call(this)};function pa(){Zr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new ei,y=new kr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new kr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new vi,y=new kr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=sr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new vi,y=new kr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=sr,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 Yt,this.Of=this.gj=this.Pf=null}$t(pa,Zr),pa.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},pa.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=En.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,En.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=vr,z=qe.alloc(),x.location=y.ga(vr,z),qe.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},pa.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=sr,y.fromSpot=dr,y.toSpot=dr),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},pa.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},pa.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof vi){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)}},pa.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof vi))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof vi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},pa.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(Se){return b.findValidLinkablePort(Se,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof vi){var oe=ee.ga(vr,qe.alloc()),de=x.x-oe.x,fe=x.y-oe.y;qe.free(oe),oe=de*de+fe*fe,oe<E&&(de=this.validPortsCache.I(ee),de!==null?de&&(y=ee,E=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,E=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof vi&&(x.layer===null||x.layer.allowLink))?y:null},pa.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},pa.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},pa.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},pa.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof vi))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof vi))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},pa.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},pa.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Mn;return E.add(a),Ts(this,x,y,E)};function Ts(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Ts(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Ts(a,y.labeledLink,x,E))))}pa.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==$h){if(E===Qg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Ds(this,a,y,x,!0)}if(E===Jg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Ds(this,a,y,x,!0)}if(E===Kg)return a===y?a=!0:(E=new Mn,E.add(y),a=Ls(this,E,a,y,x)),!a;if(E===Zg)return!Ds(this,a,y,x,!1);if(E===Xg)return a===y?a=!0:(E=new Mn,E.add(y),a=sc(this,E,a,y,x)),!a}return!0};function Ds(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==E&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Ds(a,ee,x,E,b)))return!0}return!1}function Ls(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&Ls(a,y,ee,E,b)))return!0}return!1}function sc(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&sc(a,y,re,E,b))return!0}}return!1}wn.Object.defineProperties(pa.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}}}),pa.className="LinkingBaseTool";function zs(){pa.call(this),this.name="Linking",this.V={},this.F=null,this.K=Zu,this.Xd=null}$t(zs,pa),zs.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},zs.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 vi)))return null;var x=this.direction;if(x===Zu||x===hd){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Zu||x===fd)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},zs.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 vi&&(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 vi&&(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)},zs.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()},zs.prototype.doStop=function(){pa.prototype.doStop.call(this),this.startObject=null},zs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof vi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ee):(y=re,x=ee,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(ee===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},zs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof ei)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)},zs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},zs.prototype.doNoLink=function(){},wn.Object.defineProperties(zs.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 Zu=new Gt(zs,"Either",0),hd=new Gt(zs,"ForwardsOnly",0),fd=new Gt(zs,"BackwardsOnly",0);zs.className="LinkingTool",zs.Either=Zu,zs.ForwardsOnly=hd,zs.BackwardsOnly=fd;function al(){pa.call(this),this.name="Relinking";var a=new kr;a.figure="Diamond",a.desiredSize=hr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new kr,a.figure="Diamond",a.desiredSize=hr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new qt}$t(al,pa),al.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},al.prototype.makeAdornment=function(a,y){var x=new so;return x.type=Yn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},al.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},al.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 so&&x.adornedPart instanceof ei))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=ur),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ur),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},al.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===ig||x===Ad)&&(x=fl),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}},al.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()},al.prototype.doStop=function(){pa.prototype.doStop.call(this),this.handle=null},al.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof vi&&(this.isForwards?(E=ee,b=this.targetPort):(y=ee,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},al.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},al.prototype.doNoRelink=function(){};function we(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}wn.Object.defineProperties(al.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 so))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),al.className="RelinkingTool",Fn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Fn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function He(){Zr.call(this),this.name="LinkReshaping";var a=new kr;a.figure="Rectangle",a.desiredSize=Yr,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new kr,a.figure="Diamond",a.desiredSize=hr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new qe,this.Yq=new Pn}$t(He,Zr),He.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ot},He.prototype.om=function(a,y){a.reshapingBehavior=y},He.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){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)}},He.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new so,b.type=Yn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=E?1:0;if(y.resegmentable&&y.computeCurve()!==pu)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&E){oe=y.i(x);var de=y.i(x+1);It.B(oe.x,de.x)&&It.B(oe.y,de.y)&&(de=y.i(x-1)),It.B(oe.x,de.x)?(this.om(re,Ct),re.cursor="n-resize"):It.B(oe.y,de.y)&&(this.om(re,xt),re.cursor="w-resize")}else ee===z-1&&E?(oe=y.i(z-1),de=y.i(z),It.B(oe.x,de.x)&&It.B(oe.y,de.y)&&(oe=y.i(z+1)),It.B(oe.x,de.x)?(this.om(re,Ct),re.cursor="n-resize"):It.B(oe.y,de.y)&&(this.om(re,xt),re.cursor="w-resize")):ee!==z&&(this.om(re,Ft),re.cursor="move");b.add(re)}b.adornedObject=a}return b},He.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},He.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},He.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},He.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 ei){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},He.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},He.prototype.stopTransaction=function(){var a=this.diagram,y=Zr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},He.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},He.prototype.getResegmentingPoint=function(){return this.handle.ga(vr)},He.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},He.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(Xe(this,ee,E,b,z,!0)||Xe(this,ee,E,b,z,!1))){var re=y.points.copy();Xe(this,ee,E,b,z,!0)?(re.cd(x-2,new qe(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new qe(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new qe((z.x+ee.x)/2,ee.y)),re.cd(x+1,new qe((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(Xe(this,E,b,z,ee,!0)||Xe(this,E,b,z,ee,!1))&&(re=y.points.copy(),Xe(this,E,b,z,ee,!0)?(re.cd(x-1,new qe(E.x,(E.y+ee.y)/2)),re.cd(x+2,new qe(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new qe((E.x+ee.x)/2,E.y)),re.cd(x+2,new qe((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=qe.alloc(),It.qh(E.x,E.y,z.x,z.y,b.x,b.y,ee)&&ee.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),qe.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Xe(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}He.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===Ct?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===xt&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,E===Ct?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===xt&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),ee=y.i(E+1);It.B(z.x,b.x)&&It.B(b.y,ee.y)?(It.B(z.x,y.i(E-2).x)&&!It.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),It.B(ee.y,y.i(E+2).y)&&!It.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)):It.B(z.y,b.y)&&It.B(b.x,ee.x)?(It.B(z.y,y.i(E-2).y)&&!It.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),It.B(ee.x,y.i(E+2).x)&&!It.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):It.B(z.x,b.x)&&It.B(b.x,ee.x)?(It.B(z.x,y.i(E-2).x)&&!It.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),It.B(ee.x,y.i(E+2).x)&&!It.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):It.B(z.y,b.y)&&It.B(b.y,ee.y)&&(It.B(z.y,y.i(E-2).y)&&!It.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),It.B(ee.y,y.i(E+2).y)&&!It.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(vr,qe.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,qe.alloc()),y.L(0,E.x,E.y),qe.free(z),qe.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(vr,qe.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,qe.alloc()),y.L(y.pointsCount-1,a.x,a.y),qe.free(x),qe.free(a));y.zf()},He.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Ft:return a;case Ct:return new qe(y.i(x).x,a.y);case xt:return new qe(a.x,y.i(x).y);default:case ot:return y.i(x)}},wn.Object.defineProperties(He.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 so))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}}}),He.prototype.setReshapingBehavior=He.prototype.om,He.prototype.getReshapingBehavior=He.prototype.Ru;var ot=new Gt(He,"None",0),xt=new Gt(He,"Horizontal",1),Ct=new Gt(He,"Vertical",2),Ft=new Gt(He,"All",3);He.className="LinkReshapingTool",He.None=ot,He.Horizontal=xt,He.Vertical=Ct,He.All=Ft,Fn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Zt(){Zr.call(this),this.name="Resizing",this.o=new En(1,1).freeze(),this.j=new En(9999,9999).freeze(),this.yg=new En(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new kr;a.alignmentFocus=vr,a.figure="Rectangle",a.desiredSize=Yr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new qe,this.Dw=new En,this.Tn=new qe,this.rt=new En(0,0),this.qt=new En(1/0,1/0),this.pt=new En(1,1)}$t(Zt,Zr),Zt.prototype.updateAdornments=function(a){if(!(a===null||a instanceof ei)){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(),Qd(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Zt.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new so,y.type=Yn.Spot,y.locationSpot=vr;var x=new hl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Dr)),y.add(this.makeHandle(a,oo)),y.add(this.makeHandle(a,ho)),y.add(this.makeHandle(a,ha)),y.add(this.makeHandle(a,gr)),y.add(this.makeHandle(a,Qr)),y.add(this.makeHandle(a,wo)),y.add(this.makeHandle(a,Wr))}else if(Uu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Zt.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Zt.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=vr),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Yn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Zt.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},Zt.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))},Zt.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Zt.prototype.stopTransaction=function(){var a=this.diagram,y=Zr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Zt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Zt.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,qe.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),qe.free(b)}},Zt.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,qe.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),qe.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Zt.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 yr){var E=new Pn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Zt.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=vr);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,de=ee.x+ee.width,fe=ee.y+ee.height,Se=1;if(!z){Se=ee.width;var Ce=ee.height;0>=Se&&(Se=1),0>=Ce&&(Ce=1),Se=Ce/Se}return Ce=qe.alloc(),It.No(a.x,a.y,re,oe,b.width,b.height,Ce),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ce.x,de-E.width),a.x=Math.min(a.x,de-x.width),a.width=Math.max(de-a.x,x.width),a.y=Math.max(Ce.y,fe-E.height),a.y=Math.min(a.y,fe-x.height),a.height=Math.max(fe-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),x.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),x.width),a.height=Se*a.width),a.x=de-a.width,a.y=fe-a.height)):1<=y.y?(a.x=Math.max(Ce.x,de-E.width),a.x=Math.min(a.x,de-x.width),a.width=Math.max(de-a.x,x.width),a.height=Math.max(Math.min(Ce.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),x.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),x.width),a.height=Se*a.width),a.x=de-a.width)):(a.x=Math.max(Ce.x,de-E.width),a.x=Math.min(a.x,de-x.width),a.width=de-a.x,z||(a.height=Math.max(Math.min(Se*a.width,E.height),x.height),a.width=a.height/Se,a.y=oe+.5*(fe-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ce.x-re,E.width),x.width),a.y=Math.max(Ce.y,fe-E.height),a.y=Math.min(a.y,fe-x.height),a.height=Math.max(fe-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),x.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),x.width),a.height=Se*a.width),a.y=fe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ce.x-re,E.width),x.width),a.height=Math.max(Math.min(Ce.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),x.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),x.width),a.height=Se*a.width))):(a.width=Math.max(Math.min(Ce.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(Se*a.width,E.height),x.height),a.width=a.height/Se,a.y=oe+.5*(fe-oe-a.height))):0>=y.y?(a.y=Math.max(Ce.y,fe-E.height),a.y=Math.min(a.y,fe-x.height),a.height=fe-a.y,z||(a.width=Math.max(Math.min(a.height/Se,E.width),x.width),a.height=Se*a.width,a.x=re+.5*(de-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ce.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/Se,E.width),x.width),a.height=Se*a.width,a.x=re+.5*(de-re-a.width))),qe.free(Ce),a},Zt.prototype.computeReshape=function(){var a=kn;return this.adornedObject instanceof kr&&(a=Pv(this.adornedObject)),!(a===Bi||this.diagram.lastInput.shift)},Zt.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},Zt.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},Zt.prototype.computeCellSize=function(){var a=new En(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},wn.Object.defineProperties(Zt.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 so))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 so)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}}}),Zt.className="ResizingTool",Fn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Dn(){Zr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new qe,this.ue=null;var a=new kr;a.figure="Ellipse",a.desiredSize=hr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new qe(NaN,NaN),this.u=0,this.F=50}$t(Dn,Zr),Dn.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)}},Dn.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new so,y.type=Yn.Position,y.locationSpot=vr;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Uu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Dn.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},Dn.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)},Dn.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(vr)},Dn.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Dn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new qe(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Dn.prototype.stopTransaction=function(){var a=this.diagram,y=Zr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Dn.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Dn.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Dn.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()},Dn.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Dn.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},wn.Object.defineProperties(Dn.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 so))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 so)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}}}),Dn.className="RotatingTool",Fn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function zn(){Zr.call(this),this.name="ClickSelecting"}$t(zn,Zr),zn.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},zn.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},zn.className="ClickSelectingTool";function Sn(){Zr.call(this),this.name="Action",this.pk=null}$t(Sn,Zr),Sn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Sn.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()},Sn.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))}},Sn.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()},Sn.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())},Sn.prototype.doStop=function(){this.pk=null},Sn.className="ActionTool";function hi(){Zr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new qe(0,0)}$t(hi,Zr),hi.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)},hi.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},hi.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Qi)x.Zc()&&(Uu(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Rt(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=qe.allocAt(a.x,a.y);this.isGridSnapEnabled&&Mf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),qe.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},wn.Object.defineProperties(hi.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}}}),hi.className="ClickCreatingTool";function ri(){Zr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Qi;a.layerName="Tool",a.selectable=!1;var y=new kr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}$t(ri,Zr),ri.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))},ri.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ri.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ri.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=En.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),En.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ri.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()},ri.prototype.computeBoxBounds=function(){var a=this.diagram;return new qt(a.firstInput.documentPoint,a.lastInput.documentPoint)},ri.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),br?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 Pn,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},wn.Object.defineProperties(ri.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}}}),ri.className="DragSelectingTool";function bn(){Zr.call(this),this.name="Panning",this.Xt=new qe,this.xy=new qe,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(mn.document,"scroll",a.Kw,!1),a.stopTool()}}$t(bn,Zr),bn.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())},bn.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(mn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},bn.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},bn.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},bn.prototype.doMouseMove=function(){this.move()},bn.prototype.doMouseUp=function(){this.move(),this.stopTool()},bn.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},wn.Object.defineProperties(bn.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),bn.className="PanningTool",Fn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Fn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Fn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Fn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Fn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function no(){this.F=this.u=this.j=this.o=null}wn.Object.defineProperties(no.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}}}),no.className="HTMLInfo";function Po(a,y,x){this.text=a,this.hx=y,this.visible=x}Po.className="ContextMenuButtonInfo";function jo(){Zr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new qe,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}$t(jo,Zr);function Ir(a){var y=new no;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},pr=y,a.tu=function(){a.stopTool()},y=ci("div");var x=ci("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=ci("style");mn.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",ro,!1),E.addEventListener(y,"selectstart",ro,!1),E.addEventListener(x,"contextmenu",ro,!1)),y.className="goCXforeground",x.className="goCXbackground",mn.document.body&&(mn.document.body.appendChild(y),mn.document.body.appendChild(x)),La=y,us=x,za=!0}function ro(a){return a.preventDefault(),!1}jo.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)},jo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},jo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},jo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof Jt||(a instanceof Dt?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},jo.prototype.doActivate=function(){},jo.prototype.doMouseDown=function(){if(Zr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof so){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&So(this)},jo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof so){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}So(this)};function So(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof no||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Fa(a,!0),a.isActive||a.stopTool())}jo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Fa(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=pr,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof Dt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof so&&!a.currentContextMenu.visible&&a.stopTool()}}jo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},jo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof so){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof no&&a.show(y,x,this);this.currentContextMenu=a},jo.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},jo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof so?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof no&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Ba(a){var y=new Pn;return y.add(new Po("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Po("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Po("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Po("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Po("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Po("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Po("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Po("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Po("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Po("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Po("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Po("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Po("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}jo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Ba(this)),La.innerHTML="",us.addEventListener("pointerdown",this.tu,!1);var y=this,x=ci("ul");x.className="goCXul",La.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=ci("li"),z.className="goCXli";var ee=ci("a");ee.className="goCXa",ee.href="#",ee.ky=b.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=b.text,z.appendChild(ee),x.appendChild(z)}}La.style.display="block",us.style.display="block"},jo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===pr){La.style.display="none",us.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(us,"pointerdown",this.tu,!1),this.currentContextMenu=null}},wn.Object.defineProperties(jo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof so?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return za===!1&&pr===null&&Ca&&Ir(this),pr},set:function(a){a===null&&(za=!0),pr=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var pr=null,za=!1,us=null,La=null;jo.className="ContextMenuTool",Fn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function $r(){Zr.call(this),this.name="TextEditing",this.Zh=new Qo,this.ia=null,this.V=qs,this.vj=null,this.qa=Xn,this.u=1,this.F=!0,this.o=null,this.j=new no,this.kt=null,sl(this,this.j)}$t($r,Zr);function sl(a,y){if(Ca){var x=ci("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(is)):b==="Tab"?(a.acceptText(la),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Xn){var E=a.kt;a.qa===ll&&(a.qa=Kl),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Xn){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof Qo&&z instanceof $r)if(z.state===$s)x.style.border="3px solid red",x.focus();else{var ee=E.ga(vr),re=b.position,oe=b.scale,de=E.Df()*oe;de<z.minimumEditorScale&&(de=z.minimumEditorScale);var fe=E.naturalBounds.width*de+6,Se=E.naturalBounds.height*de+2,Ce=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=E.verticalAlignment,oe=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*de,Se=re.y*Se-re.y*oe+re.offsetY-(.5*Se-.5*oe)-oe/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*de+"%",x.style.lineHeight="normal",x.style.width=fe+"px",x.style.left=(Ce-fe/2|0)-1+"px",x.style.top=(ee+Se|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=de,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}$r.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Su&&Su!==this&&(Su.acceptText(Do),Su&&Su!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Qo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===qs&&!y.isSelected||this.starting===Bl&&2>a.lastInput.clickCount)):!1},$r.prototype.doStart=function(){Su=this,this.textBlock!==null&&this.doActivate()},$r.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 Qo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=ll;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new qt(this.textBlock.ga(Dr),this.textBlock.ga(ho));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},$r.prototype.doCancel=function(){this.stopTool()},$r.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},$r.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Do)},$r.prototype.acceptText=function(a){switch(a){case Do:this.qa===lu?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ll||this.qa===$s||this.qa===Kl)&&(this.qa=ni,Ka(this));break;case _o:case is:case la:(is!==a||this.textBlock.isMultiline!==!0)&&(this.qa===ll||this.qa===$s||this.qa===Kl)&&(this.qa=ni,Ka(this))}};function Ka(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=lu,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=$s,a.doError(b,z))}}$r.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)},$r.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},$r.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Xn,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},$r.prototype.doStop=function(){Su=null},$r.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},$r.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},wn.Object.defineProperties($r.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)}}}),$r.prototype.measureTemporaryTextBlock=$r.prototype.Lx;var _o=new Gt($r,"LostFocus",0),Do=new Gt($r,"MouseDown",1),la=new Gt($r,"Tab",2),is=new Gt($r,"Enter",3),Hs=new Gt($r,"SingleClick",0),qs=new Gt($r,"SingleClickSelected",1),Bl=new Gt($r,"DoubleClick",2),Xn=new Gt($r,"StateNone",0),ll=new Gt($r,"StateActive",1),Kl=new Gt($r,"StateEditing",2),ni=new Gt($r,"StateValidating",3),$s=new Gt($r,"StateInvalid",4),lu=new Gt($r,"StateValidated",5),Su=null;$r.className="TextEditingTool",$r.LostFocus=_o,$r.MouseDown=Do,$r.Tab=la,$r.Enter=is,$r.SingleClick=Hs,$r.SingleClickSelected=qs,$r.DoubleClick=Bl,$r.StateNone=Xn,$r.StateActive=ll,$r.StateEditing=Kl,$r.StateValidating=ni,$r.StateInvalid=$s,$r.StateValidated=lu,Fn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Fs(a){ki||(Ot(),ki=!0),this.H=Rc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=er,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Mn,this.ce=new Ei,this.ce.Yd=this,this.Ei=new Mn,this.pu=new Mn,this.Sr=new Mn,this.pr=new Mn,a&&Object.assign(this,a)}Fs.prototype.Xe=function(a){this.H=a},Fs.prototype.canStart=function(){return!0};function rs(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Bs(a.H),a.zb=!0)}function Zl(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===er?(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===Fo&&y.vc.clear(),a.Qw=!!(a.Pk===ao&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Cr(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==el&&E!==null&&(delete E.start.scale,delete E.end.scale),mn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Al(x),Ng(x),a.zb=!1,y.start(),y.bc&&(uu(a),x.Ya(),xu(y,0),bu(x,!0),lc(a),x.R("AnimationStarting",a)))}))}}function Vs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ou(a,y,x,E){a.isTicking||Vs(a)||y instanceof ei&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Be=Fs.prototype,Be.fv=function(a){return this.ce.fv(a)},Be.Xu=function(a){return this.ce.Xu(a)};function Xu(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof Dt&&oe.diagram!==null||oe instanceof Jt){re=!0;break e}}re=!1}re?Va(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(uu(b),bu(b.H),lc(b)),mn.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),mn.requestAnimationFrame(function(){x()}))}function gd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function uu(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 lc(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Be.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(),Cr(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Cr(y,this.H)},Be.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))},Be.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),pe(this,a))},Be.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Go(this.ce,y,"position",y.position,y.position),pe(this,a))};function zd(a,y,x){!a.zb||y.D(x)||Vs(a)||(a.H.pi||(y=x.copy()),Go(a.ce,a.H,"position",y,x))}function ue(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function pe(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Ze(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],de=y[1],fe=y[2];return y=y[3],re===0||re===100?(z=oe,ee=de):(fe===0||fe===100)&&(oe=z,de=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ee=b(x,ee,de-ee,E),re=b(x,re,fe-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Ot(){function a(x,E,b,z,ee,re){x.position=new qe(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new Yt;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new qe(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("location",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!0):x.location=new qe(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:placeholder",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new qe(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:nodeCollapse",function(x,E,b,z,ee,re){var oe=x.actualBounds,de=b.actualBounds;b=de.x+de.width/2-oe.width/2,oe=de.y+de.height/2-oe.height/2,ee<re?x.mm(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re),!1):x.position=new qe(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re))}),y.add("desiredSize",function(x,E,b,z,ee,re){x.desiredSize=new qt(z(ee,E.width,b.width-E.width,re),z(ee,E.height,b.height-E.height,re))}),y.add("width",function(x,E,b,z,ee,re){x.width=z(ee,E,b-E,re)}),y.add("height",function(x,E,b,z,ee,re){x.height=z(ee,E,b-E,re)}),y.add("fill",function(x,E,b,z,ee,re){x.fill=Ze(E,b,ee,re,z)}),y.add("stroke",function(x,E,b,z,ee,re){x.stroke=Ze(E,b,ee,re,z)}),y.add("strokeWidth",function(x,E,b,z,ee,re){x.strokeWidth=z(ee,E,b-E,re)}),y.add("strokeDashOffset",function(x,E,b,z,ee,re){x.strokeDashOffset=z(ee,E,b-E,re)}),y.add("background",function(x,E,b,z,ee,re){x.background=Ze(E,b,ee,re,z)}),y.add("areaBackground",function(x,E,b,z,ee,re){x.areaBackground=Ze(E,b,ee,re,z)}),y.add("opacity",function(x,E,b,z,ee,re){x.opacity=z(ee,E,b-E,re)}),y.add("scale",function(x,E,b,z,ee,re){x.scale=z(ee,E,b-E,re)}),y.add("angle",function(x,E,b,z,ee,re){x.angle=z(ee,E,b-E,re)}),Bn=y}wn.Object.defineProperties(Fs.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&&li(a,">= 1",Fs,"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}}}),Fs.prototype.stopAnimation=Fs.prototype.Cc;var Bn=null,ki=!1,er=new Gt(Fs,"Default",1),ao=new Gt(Fs,"AnimateLocations",2),Fo=new Gt(Fs,"None",3);Fs.className="AnimationManager",Fs.defineAnimationEffect=function(a,y){ki||(Ot(),ki=!0),Bn.add(a,y)},Fs.Default=er,Fs.AnimateLocations=ao,Fs.None=Fo;function Ei(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=Du,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ai,this.vc=new Yt,this.Tt=new Yt,this.yl=new Mn,this.Ut=new Mn,this.dw=vd,a&&Object.assign(this,a)}Ei.prototype.suspend=function(){this.Xk=!0},Ei.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Va(this,!0),uu(this.Yd),bu(this.H),lc(this.Yd),this.H.redraw()};function Cr(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}Be=Ei.prototype,Be.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 Jt?a=x:x instanceof Dt&&(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===er&&this===y.defaultAnimation&&(this.Lp=uc,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=ef),uu(y),this.yl.each(function(E){E.data=null,a.add(E)}),lc(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Xu(y,this),this)},Be.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Be.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof Jt?this.H=a:a instanceof Dt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Qi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Go(this,a,y,x,E,b),this};function Go(a,y,x,E,b,z){var ee=a.vc;if(y instanceof Jt&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(ed(E),uv(),E=[gu.j,gu.u,gu.o,gu.F],ed(b),uv(),b=[gu.j,gu.u,gu.o,gu.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,de=re.end;oe[x]===void 0&&(oe[x]=ga(E)),de[x]=ga(b)}else oe={},de={},oe[x]=ga(E),de[x]=ga(b),re=oe.position,y instanceof Dt&&re instanceof qe&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(de.position),re=new Qu(oe,de,z),ee.add(y,re);ee=oe[x],ee instanceof qe&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Qi?re.Ku.location=ga(y.location):z&&(re.Ku[x]=ga(E))}function ga(a){return a instanceof qe||a instanceof En?a.copy():a}Be.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Be.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Va(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),uu(x),xu(a,b),bu(a.H,!0),lc(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function xu(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Dt&&z.diagram===null)){var ee=E.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=Bn,de;for(de in ee)de==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(de)===null||oe.get(de)(z,re[de],ee[de],a.Lp,y,x,a)}}}Be.stop=function(){return this.bc?(this.Ml(!0),this):this},Be.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,uu(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Bn;E.next();){var ee=E.key,re=E.value,oe=b?re.end:re.start,de=b?re.start:re.end,fe=re.Ku,Se;for(Se in de)if(z.get(Se)!==null){var Ce=Se;!re.Hu||Ce!=="position:nodeCollapse"&&Ce!=="position:placeholder"||(Ce="position"),z.get(Ce)(ee,oe[Se],fe[Se]!==void 0?fe[Se]:re.Hu?oe[Se]:de[Se],this.Lp,this.Gd,this.Gd,this)}re.Hu&&fe.location!==void 0&&ee instanceof Qi&&(ee.location=fe.location),re.nv&&ee instanceof Qi&&ee.Zb(!1)}if(y.As.clear(),Zh(y,!1),y.Ya(),y.N(),bu(y,!0),x.defaultAnimation===this){for(Se=x.pr.iterator;Se.next();)b=Se.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}bu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),lc(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Cr(this,null),x.Ml(this),y.$b())}},Be.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof yr&&(E=y.placeholder),E!==null?(x=E.ga(Dr),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new qe(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof yr)for(a=a.memberParts;a.next();)E=a.value,E instanceof vi&&this.Cj(E,y)},Be.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof yr&&(x=y.placeholder),x!==null){var E=x.ga(Dr);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof yr)for(a=a.memberParts;a.next();)E=a.value,E instanceof vi&&this.Aj(E,y)}},Be.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},wn.Object.defineProperties(Ei.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&li(a,">= 1",Ei,"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:yt("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}}}),Ei.prototype.getTemporaryState=Ei.prototype.Ez,Ei.prototype.stop=Ei.prototype.stop,Ei.prototype.add=Ei.prototype.add,Ei.prototype.addTemporaryPart=Ei.prototype.Iy;function Du(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function uc(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Ei.className="Animation",Ei.EaseLinear=function(a,y,x,E){return x*a/E+y},Ei.EaseInOutQuad=Du,Ei.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Ei.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Ei.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Ei.EaseOutExpo=uc;function Qu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Qu.className="AnimationState";function Tl(a,y,x){this.xd=null,this.rf=a,this.so=x||Mc,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Xl))}Tl.prototype.copy=function(){var a=new Tl(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 cu(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))}wn.Object.defineProperties(Tl.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 Mc=new Gt(Tl,"Default",1),Xl=new Gt(Tl,"Immediate",2),Sh=new Gt(Tl,"Bundled",3);Tl.className="AnimationTrigger",Tl.Default=Mc,Tl.Immediate=Xl,Tl.Bundled=Sh;function Ss(a){tr(this),this.H=null,this.Pa=new Pn,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)}Be=Ss.prototype,Be.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Zs(x)}a.clear(),this.Zq.length=0},Be.Xe=function(a){this.H=a},Be.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof yr?b++:oe instanceof vi?E++:oe instanceof ei?z++:oe instanceof so?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<E&&(re+=E+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
|
`+x.toString(),E=x.data,E!==null&&Sr(E)&&(re+=" #"+Sr(E)),x instanceof vi?re+=" "+ir(E):x instanceof ei&&(re+=" "+ir(x.fromNode)+" "+ir(x.toNode));return y+" "+this.Pa.count+": "+re},Be.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=qe.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||Qd(re)!==!1)&&re.isVisible()&&(b.assign(a),ti(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return qe.free(b),re}return qe.free(b),null},Be.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof Pn||E instanceof Mn||(E=new Mn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=qe.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||Qd(oe)!==!1)&&oe.isVisible()){z.assign(a),ti(z,oe.oe);var de=oe;oe.ji(z,y,x,E)&&(y!==null&&(de=y(de)),de===null||x!==null&&!x(de)||E.add(de))}}return qe.free(z),E},Be.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof Pn||b instanceof Mn||(b=new Mn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Qd(oe)!==!1)&&oe.isVisible()){var de=oe;oe.Cf(a,y,x,E,b)&&(y!==null&&(de=y(de)),de===null||x!==null&&!x(de)||b.add(de))}}return b},Be.Nu=function(a,y,x,E,b,z,ee){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var de=re[oe];if((ee!==!0||Qd(de)!==!1)&&z(de)&&de.isVisible()){var fe=de;de.Cf(a,y,x,E,b)&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||b.add(fe))}}return b},Be.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Pn||b instanceof Mn)&&(z=b),b=!0),z instanceof Pn||z instanceof Mn||(z=new Mn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=qe.alloc(),oe=qe.alloc(),de=this.Pa.s,fe=de.length;fe--;){var Se=de[fe];if((ee!==!0||Qd(Se)!==!1)&&Se.isVisible()){re.assign(a),ti(re,Se.oe),oe.h(a.x+y,a.y),ti(oe,Se.oe);var Ce=Se;Se.og(re,oe,x,E,b,z)&&(x!==null&&(Ce=x(Ce)),Ce===null||E!==null&&!E(Ce)||z.add(Ce))}}return qe.free(re),qe.free(oe),z},Be.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=si();for(var b=si(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof ei){if(ee.fd===!1)continue}else if(ee instanceof so&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&dn(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&b.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],_v(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)_v(b[y]);oi(a),oi(b)}}};function Jc(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Be.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=Jc(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=qt.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(qt.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Qp(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var ee=Jc(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,de=qt.alloc(),fe=0;fe<z;fe++){var Se=b[fe];E.contains(Se)&&a.Oj(y,Se,x,re,oe,de,!1)}qt.free(de),y.globalAlpha=ee}}}Be.Oj=function(a,y,x,E,b,z,ee){if(ee&&!Qd(y))a.Hs(y);else{if(E!==null&&y instanceof ei&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,E=y.containingGroup;E!==null;)ee?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ee=!0,z.assign(E.tb)),E=E.containingGroup;var re=y.actualBounds;if(E=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}E=!z.Re(re)}E&&(a.save(),a instanceof Ql?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Aa(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Aa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Aa(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Be.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Ko,a,this,y,x,E,b)},Be.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Zs(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),kf(this,a,y),a},Be.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Zs(y),a};function kf(a,y,x){if(y=Jp(a,y,x),x instanceof yr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];if(re===x&&(y=ee,0<=E)||0>E&&re.containingGroup===x&&(E=ee,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&kf(a,-1,y)}x.svg!==null&&x.svg.remove()}function Jp(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>E)for(;;){if(z===-1||ee<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<E)for(;;){if(re===b||oe>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}wn.Object.defineProperties(Ss.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===""&&yt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&yt("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)&&li(a,"0 <= value <= 1",Ss,"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))}}}),Ss.prototype.findObjectsNear=Ss.prototype.og,Ss.prototype.findObjectsIn=Ss.prototype.Cf,Ss.prototype.findObjectsAt=Ss.prototype.ji,Ss.prototype.findObjectAt=Ss.prototype.ic,Ss.className="Layer";function Jt(a,y){if(dm||(Ys(),dm=!0),tr(this),Rc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Ca){var x=this,E=function(){x.removeEventListener(mn.document,"DOMContentLoaded",E,!1),x.setRTL()};mn.document.body!==null?this.setRTL():x.addEventListener(mn.document,"DOMContentLoaded",E,!1)}this.ol=null,Uf.add("Model",Io);var b=this;return this.Hb=function(z){var ee=b.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Ko&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,qp(this),this.model=fy(),this.Wg=!0,em(this),this.layout=new ua,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 hm,a!==void 0&&(typeof a=="string"||mn.Element&&a instanceof Element?kg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Hd,Rc;function qp(a){a.Yd=new Fs,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Pn,a.pj=new Yt,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new qe(NaN,NaN).freeze(),a.du=new qe(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new qe(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new $i,a.zu=new qe(NaN,NaN).freeze(),a.ut=new qt(NaN,NaN,NaN,NaN).freeze(),a.rj=new xr(0,0,0,0).freeze(),a.sj=vd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=el,a.zk=ka,a.Fg=el,a.pq=ka,a.yt=Dr,a.Bt=Dr,a.Fc=!0,a.pn=!1,a.De=new Mn,a.Eh=new Yt,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new xr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ss,a.bq.diagram=a,a.Qg=new ss,a.Qg.diagram=a,a.cj=new ss,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,rv(a),a.ai=new Mn,a.Ht=!0,a.uu=yd,a.pw=!1,a.wu=$h,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 Yt,a.Xn=new Pn,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 xr(5).freeze(),a.Hw=new Mn().freeze(),a.Nt=999999999,a.nw=new Mn().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 Mn,a.ow=new Mn,a.Xh=null,a.aw=new En(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new qe,bounds:new qt,Py:new En,bA:new En,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new qt(NaN,NaN,NaN,NaN).freeze(),a.wo=new En(NaN,NaN).freeze(),a.Sp=new qt(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Yt;var y=new vi,x=new Qo;x.bind(new Ha("text","",ir)),y.add(x),a.ny=y,a.Lg.add("",y),y=new vi,x=new Qo,x.stroke="brown",x.bind(new Ha("text","",ir)),y.add(x),a.Lg.add("Comment",y),y=new vi,y.selectable=!1,y.avoidable=!1,x=new kr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new En(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Yt,y=new yr,y.selectionObjectName="GROUPPANEL",y.type=Yn.Vertical,x=new Qo,x.font="bold 12pt sans-serif",x.bind(new Ha("text","",ir)),y.add(x),x=new Yn(Yn.Auto),x.name="GROUPPANEL";var E=new kr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new hl,E.padding=new xr(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Yt,y=new ei,x=new kr,x.isPanelMain=!0,y.add(x),x=new kr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new ei,x=new kr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new so,y.type=Yn.Auto,x=new kr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new hl,x.margin=new xr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new so,y.type=Yn.Link,x=new kr,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 Io,a.toolManager=new Vo,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=$p(),a.eq=null,a.fq=Ii,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 qe,a.zy=500,a.wp=new qe,a.wq=!1}Jt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Ah=null,Yd="",Pg(this,!1),this.Xn.clear(),qf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Pg(a,y){a.animationManager.Cc(!0),a.Hw=new Mn().freeze(),a.nw=new Mn().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==b&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),qf(),a.Og.clear(),Eo=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function $p(){return null}Jt.prototype.reset=function(){this.clear(),this.vb=!0,qp(this),bc(this),this.Wg=!0,em(this),this.layout=new ua,this.Wg=!1,this.model=fy(),this.model.undoManager=new zo,this.vb=this.rn=!1,this.N()},Jt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=mn.document.body);var y=ci("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},Jt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=mn.document.body);var y=0;if(Ca){var x=cm;y=Hd,x===null&&(x=cm=ci("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Hd=ci("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||br||(y=11)}this.Db=y,this.Gw=!0},Jt.prototype.qb=function(a){a.classType===Jt&&(this.autoScale=a)},Jt.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 kg(a,y){if(Ca){if(y!=null||yt("Diagram setup requires an argument DIV."),a.Ka!==null&&yt("Diagram has already completed setup."),typeof y=="string"?a.Ka=mn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:yt("No DIV or DIV id supplied: "+y),a.Ka===null&&yt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&yt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&mn.ResizeObserver){var x=Ui(function(){a.$b()},250);a.ol=new mn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}mn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=mn.go;var b=new _u(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",mn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Fg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new _u(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Ca){b=ci("div");var z=ci("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=nm,b.addEventListener("pointerdown",im),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Ui(function(){a.Yh=null,a.N()},300),a.Ov=Ui(function(){Ng(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=Eu(a,ee,!0);re.bubbles=!0;var oe=0,de=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(de=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-de):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(de=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-de):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),Ju(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Eu(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var de=oe;oe=Rg(a,ee,!0,!1,!0,de),Eh(a,ee,oe),oe.targetDiagram=Mg(ee,ee.target),oe.targetObject=null,de||oe.clone(a.bq),de=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(de.x-ee.screenX)>re||Math.abs(de.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():Ju(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Rg(a,ee,!1,!1,!1,re[1]!==null);var oe=mn.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var de=a,fe=ee;oe&&oe.H&&(fe=ee,de=oe.H),re.targetDiagram=de,Eh(a,fe,re),re.targetObject=null,a.doMouseMove(),Ju(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Rg(a,ee,!1,!0,!0,!1);var de=mn.document.elementFromPoint(ee.clientX,ee.clientY)||null;de!==null&&de.shadowRoot!==void 0&&de.shadowRoot!==null&&(de=de.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),de!==null&&de.H instanceof Jt&&de.H!==a&&Eh(de.H,ee,oe),de===null&&(de=ee.target),Eh(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=Mg(ee,de),oe.targetObject=null,a.doMouseUp(),Ju(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+nf[1]+nf[2]+"wI"+kh.slice(1,5)]["b"+jx.slice(1,y)](E.Z,tf,y,y),E.Vc(!0),iv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Jt.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Jt.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function iv(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(mn,"resize",a.Ov,!1)}function Al(a){30<a.Sq&&(a.Yh=1)}function Zh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Hr&&Hr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Jt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:mn.devicePixelRatio||1},Jt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Jt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Jt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Jt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Jt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Jt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Jt.prototype.doFocus=function(){this.focus()},Jt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=mn.scrollX||mn.pageXOffset,y=mn.scrollY||mn.pageYOffset;this.ta.focus(),mn.scrollTo(a,y)}},Jt.prototype.Oy=function(){this.H.R("GainedFocus")},Jt.prototype.Ny=function(){this.H.R("LostFocus")};function Ng(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===el&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function em(a){var y=new Ss;y.name="Background",a.Al(y),y=new Ss,y.name="",a.Al(y),y=new Ss,y.name="Foreground",a.Al(y),y=new Ss,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ss,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ss,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function tm(a){var y=new Yn(Yn.Grid);y.name="GRID";var x=new kr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new kr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new kr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new kr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new kr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new kr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Qi,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 nm(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Ch(this.H)}function im(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Ch(this.H)}Jt.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,ee=E.x-z.left,re=E.y-z.top,oe=E.width+z.left+z.right,de=E.height+z.top+z.bottom,fe=E.right+z.right;z=E.bottom+z.bottom;var Se=b.x;E=b.y;var Ce=b.width,Ne=b.height,De=b.right,Ye=b.bottom;b=this.scale;var ft=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ft=ft+a.scrollWidth-a.clientWidth;break;case"reverse":ft=a.scrollWidth-ft-a.clientWidth}var ut=ft;Ce<oe||Ne<de?(ft=qe.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ut&&(ft.x=ut/b+ee,this.ju=ut),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ft.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=ft,qe.free(ft),this.Ee=this.qr=!1):(ft=qe.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<Se&&(this.position=ft.h(ut+ee,this.position.y)),fe>De&&(this.position=ft.h(-(y.scrollWidth-this.Aa)+ut-this.Aa/b+fe,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=ft.h(this.position.x,a.scrollTop+re)),z>Ye&&(this.position=ft.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),qe.free(ft),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,fe=E.right,De=b.right,z=E.bottom,Ye=b.bottom,ee=E.x,Se=b.x,re=E.y,E=b.y,Ce>=oe&&ee>=Se&&fe<=De&&(x.style.width="1px"),Ne>=de&&re>=E&&z<=Ye&&(x.style.height="1px"))}},Jt.prototype.computeBounds=function(a){return a===void 0&&(a=new qt),Bs(this),Lg(this,a)};function Lg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var ee=E[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var de=ee[oe];de.isInDocumentBounds&&de.isVisible()&&(de=de.actualBounds,de.w()&&(x?(x=!1,y.assign(de)):y.ed(de)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Jt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Jn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof ei||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof ei||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new qt(NaN,NaN,0,0):x};function Fu(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=qe.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=qt.allocAt(0,0,E.width,E.height);var b=qe.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,qt.free(E),qe.free(b),qe.free(x)}x=a.yh,y&&a.Fg!==el&&(x=a.Fg);var z=x!==el?xh(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?vr:oe),Ig(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,It.B(z.x,x)&&It.B(z.y,E)&&It.B(z.width,b)&&It.B(z.height,ee)||a.onViewportBoundsChanged(new qt(x,E,b,ee),z,y,!1)}}function xh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/b,oe=ee/E;return y===du?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Kd?(y=oe>re?(ee-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Jt.prototype.zoomToFit=function(){var a=this.sj;this.sj=vd,this.scale=xh(this,du),a!==vd&&(Fu(this,!1),Ig(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Be=Jt.prototype,Be.BA=function(a,y){y===void 0&&(y=du);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===du||y===Kd)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Kd?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new qe(a.x,a.y)}},Be.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new qe(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Be.zz=function(a){if(a instanceof Dt){this.eq=a;var y=qe.alloc();this.fq=this.op(a.ga(Dr,y)),qe.free(y)}else this.eq=null,this.fq=Ii};function Ig(a,y,x,E,b,z){var ee=qe.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var de=qe.alloc();de=a.eq.ga(Dr,de),re=de.x-a.fq.x/a.scale,oe=de.y-a.fq.y/a.scale,b=dr,qe.free(de)}(z||a.scrollMode===vd)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(re=Math.min(re+x/2,y.right+Math.max(z,b.right)-x/2),re=Math.max(re,y.left-Math.max(z,b.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(oe=Math.min(oe+E/2,y.bottom+Math.max(x,b.bottom)-E/2),oe=Math.max(oe,y.top-Math.max(x,b.top)+E/2),oe-=E/2):oe>y.top?oe=y.top:oe<y.bottom-E&&(oe=y.bottom-E)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),zd(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),bc(a),qe.free(ee)}Be.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Oc(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Qi)return a}else if(a=Oc(this,a,function(x){return x.part}),a instanceof Qi)return a;return null},Be.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Bs(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function Oc(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),Bs(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}Be.lz=function(a,y,x){return y===void 0&&(y=!0),Xh(this,a,function(E){return E.part},y?function(E){return E instanceof Qi&&E.canSelect()}:null,x)};function Xh(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof Pn||b instanceof Mn||(b=new Mn),Bs(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Be.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof Pn||E instanceof Mn||(E=new Mn),Bs(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Be.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),Nf(this,a,function(b){return b instanceof Qi&&(!x||b.canSelect())},y,E)},Be.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof Pn||b instanceof Mn||(b=new Mn),Bs(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,E,b)}return b},Be.Nu=function(a,y,x,E,b,z){var ee=new Mn;Bs(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,E,ee,b,z)}return ee};function Nf(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof Pn||b instanceof Mn||(b=new Mn),Bs(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,E,b)}return b}Be.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Qh(this,a,y,function(z){return z instanceof Qi&&(!E||z.canSelect())},x,b)},Be.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Pn||b instanceof Mn)&&(z=b),b=!0),z instanceof Pn||z instanceof Mn||(z=new Mn),Bs(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,E,b,z)}return z};function Qh(a,y,x,E,b,z){var ee=null;for(ee===void 0&&(ee=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Pn||b instanceof Mn)&&(z=b),b=!0),z instanceof Pn||z instanceof Mn||(z=new Mn),Bs(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,E,b,z)}return z}Jt.prototype.acceptEvent=function(a){return Eu(this,a,a instanceof MouseEvent)};function Eu(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?Eh(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),br&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=Mg(y,y.target),E.targetObject=null,E}function Mg(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 Rg(a,y,x,E,b,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,br&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=E,ee.handled=!1,ee.bubbles=b,ee.isMultiTouch=z,ee}function Ju(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Jt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Eu(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(),Ju(x,a)},Jt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Eu(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(),Ju(x,a)},Jt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Eu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Ju(x,a)},Jt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Eu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Ju(x,a)},Jt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new qe(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?ti(new qe(y,a),this.Ab):new qe(y,a)};function Eh(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,ee=0,re=0;E!==null&&(E=E.getBoundingClientRect(),ee=y.clientX-b/E.width*E.left,re=y.clientY-z/E.height*E.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=qe.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),qe.free(y)):x.documentPoint.h(ee,re)}function Og(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}Jt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function rm(a){a.ld||Bs(a),a.Va()}Jt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Be=Jt.prototype,Be.Pz=function(){return this.kg},Be.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,bu(this),this.hf=!1,this.du=new qe(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&or(function(){E.ld=!1,rs(y,"Model"),a(E)},1)},Be.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;mn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Be.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),bu(this))};function jd(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Ch(a)||(y&&Bs(a),x&&Fu(a,!1))}function bu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];Xa(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(oe){oe.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Ng(a),jd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Ec(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Bs(a),z=!1,(!a.hf||a.xh)&&(a.hf?Wg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Wg(a,!1)),z=!0),a.Jk=!1,Bs(a),a.ou||rm(a),jd(a,!0,!1),ee=!1,z?(x=qt.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Dg(a)),a.R("LayoutCompleted"),jd(a,!0,!1),qt.free(x)):x.Ok&&x.Qw&&(a.Fg!==el?a.scale=xh(a,a.Fg):a.yh!==el?a.scale=xh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Fu(a,!0)),z&&ee&&a.eb("Initial Layout"),Bs(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Dg(a){if(a.Fg!==el)a.scale=xh(a,a.Fg);else if(a.yh!==el)a.scale=xh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Fu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Ec(a)}function Bs(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 Mn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof yr&&E.U&65536&&(E.U=E.U^65536)})}}Be.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof yr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof yr&&x.isVisible()&&Jh(this,x);for(a.reset();a.next();)x=a.value,x instanceof ei&&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 so&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Jh(a,y){for(var x=si(),E=si(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof yr?(fu(z)||cl(z)||Xd(z))&&Jh(a,z):z instanceof ei?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(oi(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();oi(E)}Be.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Be.gc=function(a){if(this.Ka!==null){if(this.ta===null&&yt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){wh(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,ee=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,$y(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),pd(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?Nh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&($i.prototype.Cd=$i.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,wh(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,de=Math.round(re.x*oe)/oe,fe=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-de,-fe),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),pd(this,a),re=0;re<b;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Nh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&($i.prototype.Cd=$i.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=Hr&&Hr.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function Lf(a,y,x,E,b,z,ee,re,oe,de){if(a.Ka!==null){a.ta===null&&yt("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),de===void 0&&(de=!1),wh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var fe=a.Ca;a.Ca=b;var Se=a.Wa.s,Ce=Se.length;try{var Ne=new qt(z.x,z.y,E.width/b,E.height/b),De=Ne.copy();De.Co(x),Ec(a,De),Bs(a),a.Fd(Se,Ce,a,Ne),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var Ye=a.Mb;y.scale(Ye,Ye);var ft=$i.alloc();ft.reset(),ft.translate(x.left,x.top),ft.scale(b),z.x===0&&z.y===0||ft.translate(-z.x,-z.y),y.setTransform(ft.m11,ft.m12,ft.m21,ft.m22,ft.dx,ft.dy),y.yc(),y instanceof Ql&&$y(y,ft.m11,ft.m12,ft.m21,ft.m22,ft.dx,ft.dy),$i.free(ft),pd(a,y),y.globalAlpha=a.pb;var ut=a.Qj("Grid");if(ee){var vt=new Mn,St=ee.iterator;for(St.reset();St.next();){var Tt=St.value;Tt instanceof Qi&&(de||Tt.layer!==ut)&&(Tt.Gj(),vt.add(Tt))}for(de=0;de<Ce;de++)Qp(Se[de],y,a,vt,oe);vt.each(function(Xt){return Xt.Gj()})}else for(vt=0;vt<Ce;vt++){var Mt=Se[vt];Mt===ut?de&&Mt.gc(y,a,!0):Mt.gc(y,a,oe)}a.$i=!1,a.Yf&&Nh(a.Yf,a)&&a.Vp()}finally{a.Ca=fe,a.ib.Vc(!0),a.vd=!0,a.Fd(Se,Ce,a,a.viewportBounds),Ec(a),a.ib instanceof Ql&&(a.ib.Nj.PA(),a.redraw())}}}Be.Gf=function(a){return this.Rg[a]},Be.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Be.Tx=function(){this.Rg=new Hi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(br||jt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function pd(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Be.Ql=function(a){return this.on[a]},Be.sA=function(a,y){this.on[a]=y},Be.Sx=function(){this.on=new Hi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Be.set=function(a){return Object.assign(this,a),this},Be.Du=function(a){return this.nm(a)},Be.nm=function(a){return bh(this,a),this};function bh(a,y){var x=a instanceof Yn,E=a instanceof Jt,b;for(b in y){b===""&&yt("Setting properties requires non-empty property names");var z=a,ee=b;if(x||E){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),Rt(z)?ee=b.substr(re+1):yt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Zi(z,ee))if(E&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(E&&ee==="Changed"){a.Pe(y[ee]);continue}else if(E&&Zi(a.toolManager,ee))z=a.toolManager;else if(E&&sm(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof zi&&ee==="Changed"){a.Pe(y[ee]);continue}else yt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof Dt&&z.Vw(ee)}}Be.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Yt,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Be.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")},Jt.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!==ef&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=qt.alloc(),Gg(this,this.computeBounds(E)),qt.free(E)),E=this.ta,E===null||E instanceof wc)))){var ee=this.Mb;b=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==b&&(oe.width=b),oe.height!==re&&(oe.height=re),a.clearRect(0,0,b,re),oe=190*ee;var de=70*ee,fe=Math.max(z,0),Se=Math.max(y,0),Ce=Math.floor(b-fe),Ne=Math.floor(re-Se);a.drawImage(E.Oa,fe,Se,Ce,Ne,0,0,Ce,Ne),Nh(this.Yf,this)&&a.clearRect(0,0,oe,de),E=si(),a=si(),Ne=Math.abs(z),Ce=Math.abs(y);var De=fe===0?0:b-Ne;fe=qe.allocAt(De,0),Ne=qe.allocAt(Ne+De,re),a.push(new qt(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y)));var Ye=this.Ab;if(Ye.reset(),Ye.scale(ee,ee),this.Ca!==1&&Ye.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Ye.translate(-ee.x,-ee.y),ti(fe,Ye),ti(Ne,Ye),E.push(new qt(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),De=Se===0?0:re-Ce,fe.h(0,De),Ne.h(b,Ce+De),a.push(new qt(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),ti(fe,Ye),ti(Ne,Ye),E.push(new qt(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),Nh(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,fe.h(b,re),Ne.h(oe+b,de+re),a.push(new qt(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),ti(fe,Ye),ti(Ne,Ye),E.push(new qt(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y)))),qe.free(fe),qe.free(Ne),jd(this,!1,!0),this.Ka===null&&yt("No div specified"),this.ta===null&&yt("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(wh(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,de=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-de),b.save(),b.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&b.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(b.clip(),b.setTransform(re,0,0,re,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),pd(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=E,ee.visible&&ee.pb!==0){de=Jc(ee,b),Se=ee.Zq,Se.length=0,fe=this.scale,Ce=qt.alloc(),Ne=ee.Pa.s,Ye=Ne.length,De=oe.length;for(var ft=0;ft<Ye;ft++){var ut=Ne[ft],vt=Fh(ut,ut.actualBounds);e:{for(var St=2/fe,Tt=4/fe,Mt=0;Mt<De;Mt++){var Xt=oe[Mt];if(Xt.width!==0&&Xt.height!==0&&vt.Vu(Xt.x-St,Xt.y-St,Xt.width+Tt,Xt.height+Tt)){vt=!0;break e}}vt=!1}vt&&ee.Oj(b,ut,this,Se,fe,Ce,!0)}qt.free(Ce),b.globalAlpha=de}b.restore(),b.Vc(!0),this.Yf&&Nh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}oi(E),oi(a),this.ld=!1}}else this.bd();x&&(Al(this),this.bd(),Zh(this,!0))}else x?(Al(this),this.bd(),Zh(this,!0)):this.bd()}};function wh(a){a.pn!==!1&&(a.pn=!1,Fg(a,a.Aa,a.ya))}function Fg(a,y,x){bc(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Ch(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||x+ee,de=b.clientHeight||E+re,fe=a.viewportBounds;b=fe.x;var Se=fe.y,Ce=fe.width,Ne=fe.height;if((oe!==x+ee||de!==E+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=de,z=a.pn=!0,bc(a)),!a.hf||!a.viewportBounds.w())return!0;var De=a.ku,Ye=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ft=a.documentBounds,ut=0,vt=0,St=0,Tt=0,Mt=fe.width,Xt=fe.height,pi=a.rj;a.contentAlignment.sb()?(ft.width>Mt&&(ut=pi.left,vt=pi.right),ft.height>Xt&&(St=pi.top,Tt=pi.bottom)):(ut=pi.left,vt=pi.right,St=pi.top,Tt=pi.bottom);var Di=ft.width+ut+vt,Ai=ft.height+St+Tt;pi=a.scale;var $n=Di>oe/pi,Cn=Ai>de/pi;if(!(z||a.gf||a.Be||$n||Cn))return!0;ut=ft.x-ut,oe=fe.x,vt=ft.right+vt,de=fe.right+ee,St=ft.y-St;var mr=fe.y;ft=ft.bottom+Tt,fe=fe.bottom+re;var ar="1px";if(Tt="1px",a.scrollMode===vd&&($n||Cn)&&($n&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($n=1,ut+1<oe&&($n=Math.max((oe-ut)*pi+a.Aa,$n)),vt>de+1&&($n=Math.max((vt-de)*pi+a.Aa,$n)),Mt+ee+1<Di&&($n=Math.max((Di-Mt)*pi+a.Aa,$n)),ar=$n.toString()+"px"),Cn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&($n=1,St+1<mr&&($n=Math.max((mr-St)*pi+a.ya,$n)),ft>fe+1&&($n=Math.max((ft-fe)*pi+a.ya,$n)),Xt+re+1<Ai&&($n=Math.max((Ai-Xt)*pi+a.ya,$n)),Tt=$n.toString()+"px")),$n=ar!=="1px",Cn=Tt!=="1px",$n&&Cn||!$n&&!Cn||(Cn&&(de-=a.Db),$n&&(fe-=a.Db),Di<Mt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,ut+1<oe&&(ee=Math.max((oe-ut)*pi+a.Aa,ee)),vt>de+1&&(ee=Math.max((vt-de)*pi+a.Aa,ee)),Mt+1<Di&&(ee=Math.max((Di-Mt)*pi+a.Aa,ee)),ar=ee.toString()+"px"),$n=ar!=="1px",ee=a.ya,$n!==a.Be&&(ee=$n?a.ya-a.Db:a.ya+a.Db),Ai<Xt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,St+1<mr&&(re=Math.max((mr-St)*pi+ee,re)),ft>fe+1&&(re=Math.max((ft-fe)*pi+ee,re)),Xt+1<Ai&&(re=Math.max((Ai-Xt)*pi+ee,re)),Tt=re.toString()+"px"),Cn=Tt!=="1px"),a.qr&&$n===a.Be&&Cn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if($n!==a.Be&&(ar==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=$n,Ye.style.width=ar,Cn!==a.gf&&(Tt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=qe.alloc(),Cn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),qe.free(re))),z&&bc(a),a.gf=Cn,Ye.style.height=Tt,a.gu=!0,z&&(a.pn=!0),y=De.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Mt+1<Di?y=(a.position.x-ut)*pi:ut+1<oe?y=De.scrollWidth-De.clientWidth:vt>de+1&&(y=a.position.x*pi)),a.tn)switch(a.bu){case"negative":y=-(De.scrollWidth-y-De.clientWidth);break;case"reverse":y=De.scrollWidth-y-De.clientWidth}return De.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Xt+1<Ai?De.scrollTop=(a.position.y-St)*pi:St+1<mr?De.scrollTop=De.scrollHeight-De.clientHeight:ft>fe+1&&(De.scrollTop=a.position.y*pi)),oe=a.Aa,de=a.ya,De.style.width=oe+(a.gf?a.Db:0)+"px",De.style.height=de+(a.Be?a.Db:0)+"px",x!==oe||E!==de||a.animationManager.zb?(x=qt.allocAt(b,Se,Ce,Ne),a.onViewportBoundsChanged(x,a.viewportBounds,pi,z),qt.free(x),!1):!0}Be=Jt.prototype,Be.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&yt("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&&yt('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(fa,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Be.oi=function(a){this.partManager.oi(a);var y=this;Rh(a,function(x){Th(y,x)}),(a instanceof so||a instanceof yr&&a.placeholder!==null)&&a.v(),a.data!==null&&Rh(a,function(x){cy(y.partManager,x)}),cl(a)!==!0&&Xd(a)!==!0||this.De.add(a),GS(a,!0,this),VS(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},Be.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Rh(a,function(x){dy(y.partManager,x,y)}),this.De.remove(a),VS(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},Be.remove=function(a){Bg(this,a,!0)};function Bg(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(ya,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Be.Is=function(a,y){if(y===void 0&&(y=!1),Jn(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new Mn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Be.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Jt.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=If(this)),this.toolManager!==null){var b=new Yt;if(a!==null)if(Jn(a))for(var z=0;z<a.length;z++)Dc(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Dc(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Dc(this,b,a.value,x,E);for(a=this.nodes;a.next();)Dc(this,b,a.value,x,E);for(a=this.links;a.next();)Dc(this,b,a.value,x,E)}Gd(this,b,y,E,x)}};function Dc(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=If(a)),x instanceof vi){if(y.add(x,a.Pd(b,x,x.location)),x instanceof yr&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Dc(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Dc(a,y,ee,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Dc(a,y,x.value,E,b)}else if(x instanceof ei)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Dc(a,y,x.value,E,b);else x instanceof so||y.add(x,a.Pd(b,x,x.location))}function Gd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=qe.alloc(),ee=qe.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||Rf(a,y);for(var re=si(),oe=si(),de=y.iterator,fe=qe.alloc();de.next();){var Se=de.key,Ce=de.value;if(Se.Zc()){var Ne=_g(a,Se,y);Ne!==null?re.push(new ie(Se,Ce,Ne)):(!b||Se.canMove())&&(Ne=Ce.point,z.assign(Ne),a.computeMove(Se,z.add(ee),E,fe),Se.location=fe,Ce.shifted===void 0&&(Ce.shifted=new qe),Ce.shifted.assign(fe.re(Ne)))}else de.key instanceof ei&&oe.push(de.sa)}for(qe.free(fe),b=re.length,de=0;de<b;de++)Se=re[de],z.assign(Se.info.point),Se.Su.shifted===void 0&&(Se.Su.shifted=new qe),Se.node.location=z.add(Se.Su.shifted);for(b=qe.alloc(),de=qe.alloc(),Se=oe.length,Ce=0;Ce<Se;Ce++){var De=oe[Ce];if(Ne=De.key,Ne instanceof ei)if(Ne.suspendsRouting){Ne.Tg=null,fe=Ne.fromNode;var Ye=Ne.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Ye=De.value.point,Ne.dragComputation===null)y.add(Ne,a.Pd(E,Ne,ee)),Td(Ne,ee.x-Ye.x,ee.y-Ye.y);else{De=qe.allocAt(0,0),(fe=Ne.i(0))&&fe.w()&&De.assign(fe);var ft=fe=qe.alloc().assign(De).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(ft=qe.alloc(),Mf(a,Ne,fe,ft,E)),fe.assign(Ne.dragComputation(Ne,fe,ft)).re(De),y.add(Ne,a.Pd(E,Ne,fe)),Td(Ne,fe.x-Ye.x,fe.y-Ye.y),qe.free(De),qe.free(fe),ft!==fe&&qe.free(ft)}else fe!==null&&(b.assign(fe.location),ft=y.I(fe),ft!==null&&b.re(ft.point)),Ye!==null&&(de.assign(Ye.location),ft=y.I(Ye),ft!==null&&de.re(ft.point)),fe!==null&&Ye!==null?b.Xa(de)?(fe=De.value.point,Ye=z,Ye.assign(b),Ye.re(fe),y.add(Ne,a.Pd(E,Ne,b)),Td(Ne,Ye.x,Ye.y)):(Ne.suspendsRouting=!1,Ne.bb()):(De=De.value.point,fe=fe!==null?b:Ye!==null?de:ee,y.add(Ne,a.Pd(E,Ne,fe)),Td(Ne,fe.x-De.x,fe.y-De.y))}else(Ne.fromNode===null||Ne.toNode===null)&&(fe=De.value.point,y.add(Ne,a.Pd(E,Ne,ee)),Td(Ne,ee.x-fe.x,ee.y-fe.y))}qe.free(z),qe.free(ee),qe.free(b),qe.free(de),oi(re),oi(oe),x||(Bs(a),Wd(a,y))}}Jt.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new qe),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=qe.alloc(),Mf(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,de=oe.x;return isNaN(de)&&(de=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(re,Math.min(x.x,de)),Math.max(ee,Math.min(x.y,oe))),b!==y&&qe.free(b),E};function If(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Mf(a,y,x,E,b){if(b===void 0&&(b=If(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ee=b.gridSnapOrigin,re=ee.x;if(ee=ee.y,b=b.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=qe.allocAt(0,0),z.yi(0,0,a,y,b),It.No(x.x,x.y,re+z.x,ee+z.y,a,y,E),qe.free(z)}}function Rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof ei&&(y.suspendsRouting=!0)}function Wd(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof ei&&(x.suspendsRouting=!1,Qv(x)&&x.bb())}a.Mr=!1}}function _g(a,y,x){return y=y.containingGroup,y!==null&&(a=_g(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Be=Jt.prototype,Be.Pd=function(a,y,x){if(x===void 0)return new qc(ai);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new qc(new qe(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new qc(x.copy())};function Ug(a,y,x){if(y.diagram!==null&&y.diagram!==a&&yt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&yt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&yt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&yt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&yt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Be.Al=function(a){Ug(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(fa,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Be.Ww=function(a,y){Ug(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ya,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(fa,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Be.Cy=function(a,y){Ug(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ya,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(fa,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Be.kA=function(a){if(a.diagram!==this&&yt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(ya,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Be.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Be.Yw=function(a){return this.pf===null&&(this.pf=new Pn),this.pf.add(a),this.model.Pe(a),this},Be.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Be.Pe=function(a){return this.zg===null&&(this.zg=new Pn),this.zg.add(a),this},Be.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Be.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==vs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Be.cb=function(a,y,x,E,b,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new ta;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=E,re.oldParam=z,re.newValue=b,re.newParam=ee,this.ds(re)},Be.g=function(a,y,x,E,b){this.cb(Ko,a,this,y,x,E,b)},Jt.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===Ko){var b=a.object;if(sa(b,a.propertyName,a.I(y)),b instanceof Dt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===fa){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Yn)if(typeof re=="number"&&oe instanceof Dt){y?ee.pc(re):ee.Gb(re,oe);var de=ee.part;de!==null&&de.Wb()}else typeof re=="number"&&oe instanceof Qa&&(oe.isRow?pS(ee,re,y?void 0:oe):mS(ee,re,y?void 0:oe));else if(ee instanceof Ss){var fe=a.oldParam===!0;typeof re=="number"&&oe instanceof Qi&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(fe?re:-1,oe,fe)):ee.oi(re,oe,fe))}else ee instanceof Jt?typeof re=="number"&&oe instanceof Ss&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):yt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===ya){var Se=a.object,Ce=a.oldParam,Ne=a.oldValue;if(Se instanceof Yn)typeof Ce=="number"&&Ne instanceof Dt?y?Se.Gb(Ce,Ne):Se.pc(Ce):typeof Ce=="number"&&Ne instanceof Qa&&(Ne.isRow?pS(Se,Ce,y?Ne:void 0):mS(Se,Ce,y?Ne:void 0));else if(Se instanceof Ss){var De=a.newParam===!0;typeof Ce=="number"&&Ne instanceof Qi&&(y?0>Se.Pa.indexOf(Ne)&&Se.oi(Ce,Ne,De):(Ne.isSelected=!1,Ne.isHighlighted=!1,Ne.Wb(),Se.pc(De?Ce:-1,Ne,De)))}else Se instanceof Jt?typeof Ce=="number"&&Ne instanceof Ss&&(y?(Ne.Xe(this),this.Wa.Gb(Ce,Ne)):this.Wa.mb(Ce)):yt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==vs&&yt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Jt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Jt.prototype.eb=function(a){return this.undoManager.eb(a)},Jt.prototype.Kf=function(){return this.undoManager.Kf()},Jt.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Jt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Jt.prototype.rp=function(){this.partManager.rp()};function zg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,bc(a),a.N(),a.Ee=!0,E.zb&&(Vs(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bc(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,de=a.contentAlignment;isNaN(re)&&(de.$c()?de.Hf(fs)?re=0:de.Hf(ia)&&(re=z-1):re=de.sb()?de.x*(z-1):z/2),isNaN(oe)&&(de.$c()?de.Hf(Yo)?oe=0:de.Hf(os)&&(oe=ee-1):oe=de.sb()?de.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=qe.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,qe.free(z),a.Ca=x,bc(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Fu(a,!1),E.zb&&(Vs(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Jt.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==el||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Vo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Lc(b,this)),this.vb||this.invalidateViewport(a,y),Ec(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Ec(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=En.alloc(),b=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var de=ee[oe],fe=Math.abs(de.interval);2>fe||(yv(de.figure)?z=z*fe/It.vx(z,fe):b=b*fe/It.vx(b,fe))}if(ee=x.gridCellSize,E.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=qt.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){qt.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,qt.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=qe.alloc(),It.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),En.free(E),x.part.location=y,qe.free(y)}}Jt.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Jt.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))},Jt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Jn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof Qi||yt("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Qi||yt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Jt.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Be=Jt.prototype,Be.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Be.Jz=function(a){a=new Mn().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 Qi||yt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Be.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=qe.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),qe.free(z);return}yt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):yt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),qe.free(z)},Be.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)},Be.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Be.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)},Be.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,ee=y.m11,re=y.m12,oe=y.m21,de=y.m22,fe=y.dx,Se=y.dy,Ce=x*ee+E*oe+fe;y=x*re+E*de+Se;var Ne=b*ee+E*oe+fe;return a=b*re+E*de+Se,E=x*ee+z*oe+fe,x=x*re+z*de+Se,ee=b*ee+z*oe+fe,b=b*re+z*de+Se,z=Math.min(Ce,Ne),Ce=Math.max(Ce,Ne),Ne=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Ce=Math.max(Ce,E),Ne=Math.min(Ne,x),y=Math.max(y,x),z=Math.min(z,ee),Ce=Math.max(Ce,ee),Ne=Math.min(Ne,b),y=Math.max(y,b),new qt(z,Ne,Ce-z,y-Ne)},Be.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),ti(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Hg(a){return a=Uf.get(a),a!==null?new a:new Io}Jt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===vs&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=b}),a.mouseMoveTools.each(function(oe){return oe.diagram=b}),a.mouseUpTools.each(function(oe){return oe.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===vs){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Bs(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Zl(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(om(this),this.As.clear(),gd(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;or(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Th(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)Vd(a,y[E])}function Vd(a,y){if(y instanceof Ll){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Mn&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function jg(a,y){if(y instanceof Ll){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Mn&&x.Bg.remove(a),qf(E));break}}}}}Jt.prototype.Wd=function(){this.partManager.Wd()},Jt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Jt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Jt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Jt.prototype.Vb=function(a){return this.partManager.Vb(a)},Jt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Be=Jt.prototype,Be.Lc=function(a){return this.partManager.Lc(a)},Be.ii=function(a){return this.partManager.ii(a)},Be.Kc=function(a){return this.partManager.Kc(a)},Be.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:di(bi(y)))},Be.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:di(bi(y)))};function bc(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 Gg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Fu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Be.Va=function(){if(this.Zi){var a=qt.alloc();Gg(this,this.computeBounds(a)),qt.free(a)}},Be.rz=function(){for(var a=new Mn,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},Be.qz=function(){return this.ai.iterator},Be.Uz=function(a){Bs(this),a&&Of(this,!0),this.ld?Wg(this,!1):(this.Jk=!0,bu(this))};function Of(a,y){for(var x=a.ai.iterator;x.next();)am(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)am(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Wg(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||rs(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Vg(a,ee.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Bs(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Zl(z),a.aa=x}}}function Vg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Vg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Jh(a,y),b.isValidLayout=!0):a.xh=!0)}}Be.yz=function(){for(var a=new Pn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function rv(a){function y(b){var z=b.toLowerCase(),ee=new Pn;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new Yt,E=new Yt;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function sm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Df(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;yt("Unknown DiagramEvent name: "+y)}Be.Bj=function(a,y){return a=Df(this,a),a!==null&&a.add(y),this},Be.am=function(a,y){a=Df(this,a),a!==null&&a.remove(y)},Be.R=function(a,y,x){var E=Df(this,a),b=new yu;if(b.diagram=this,a=sm(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function Ff(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Be.Yj=function(a,y){return Bf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Jt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Lg(this,a):a.assign(this.documentBounds)};function Bf(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new xp(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=lm(a,x)),x===null){y=qt.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&_f(a,ee,E,y)}qt.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=qt.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof vi&&_f(a,ee,E,y);qt.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&c1(b);return b}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function _f(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(rg(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(Pd,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Pd}else if(y instanceof yr)for(y=y.memberParts;y.next();)b=y.value,b instanceof vi&&_f(a,b,x,E)}}function md(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Jt.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Yg(this)};function Yg(a){a.vk===-1&&(a.vk=or(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=qt.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Gg(a,y),qt.free(y),a.Fc=!0,a.bd(),Yg(a))}},a.vp))}Jt.prototype.ug=function(){this.vk!==-1&&(mn.clearTimeout(this.vk),this.vk=-1)},Jt.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=qt.allocAt(0,0,E.width*b,E.height*b);var z=qe.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<E.x+x.left/2&&(z.x-=ee),a.x<E.x+x.left/4&&(z.x-=4*ee)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>E.x+E.width-x.right/2&&(z.x+=ee),a.x>E.x+E.width-x.right/4&&(z.x+=4*ee));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<E.y+x.top/2&&(z.y-=ee),a.y<E.y+x.top/4&&(z.y-=4*ee)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>E.y+E.height-x.bottom/2&&(z.y+=ee),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(ai)||(y=new qe(y.x+z.x/b,y.y+z.y/b)),qt.free(E),qe.free(z),y},Be=Jt.prototype,Be.Cs=function(){return null},Be.av=function(){return null},Be.bs=function(a,y){this.pj.add(a,y)},Be.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof yr&&(y.$p=null)})};function qh(a,y,x){function E(){var fe=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||fe-de>oe?y(x,b,re):mn.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,de=+new Date;return mn.requestAnimationFrame(function(){E()}),null}Be.Wz=function(a){return Ca?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Be.Jx=function(a){return a===void 0&&(a={}),qh(this,this.Xz,a)},Be.Xz=function(a,y,x){var E=um(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case kh+"data":b=E.getImageData(0,0,x.width,x.height);break;case kh:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&yt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function um(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&yt("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new En(1/0,1/0):new En(2e3,2e3));var re=y.position||null,oe=y.parts||null,de=y.padding===void 0?1:y.padding,fe=y.background||null,Se=y.omitTemporary;Se===void 0&&(Se=!0);var Ce=y.document||document,Ne=y.elementFinished||null,De=y.showTemporary;De===void 0&&(De=!Se),y=y.showGrid,y===void 0&&(y=De),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof de=="number"?de=new xr(de):de instanceof xr||yt("MakeImage padding must be a Margin or a number."),de.left=Math.max(de.left,0),de.right=Math.max(de.right,0),de.top=Math.max(de.top,0),de.bottom=Math.max(de.bottom,0),a.ib.Vc(!0),Se=new _u(null,Ce,void 0,!0);var Ye=Se.context;if(!(b||z||oe||re))return Se.width=a.Aa+Math.ceil(de.left+de.right),Se.height=a.ya+Math.ceil(de.top+de.bottom),x==="SVG"?E===null?null:(E.resize(Se.width,Se.height,Se.width,Se.height),E.ownerDocument=Ce,E.hs=Ne,Lf(a,E.context,de,new En(Se.width,Se.height),a.Ca,a.pa,oe,fe,De,y),E.context):(a.Xm=!1,Lf(a,Ye,de,new En(Se.width,Se.height),a.Ca,a.pa,oe,fe,De,y),a.Xm=!0,Se.context);var ft=a.Pp,ut=a.documentBounds.copy();if(ut.Fv(a.yb),De)for(var vt=a.Wa.s,St=vt.length,Tt=0;Tt<St;Tt++){var Mt=vt[Tt];if(Mt.visible&&Mt.isTemporary){Mt=Mt.Pa.s;for(var Xt=Mt.length,pi=0;pi<Xt;pi++){var Di=Mt[pi];Di.isInDocumentBounds&&Di.isVisible()&&(Di=Di.actualBounds,Di.w()&&ut.ed(Di))}}}if(vt=new qe(ut.x,ut.y),oe!==null){for(St=new qt(0,0,0,0),Tt=!0,Mt=oe.iterator,Mt.reset();Mt.next();)Xt=Mt.value,Xt instanceof Qi&&(pi=Xt.layer,pi!==null&&!pi.visible||pi!==null&&!De&&pi.isTemporary||!Xt.isVisible()||(Xt=Xt.actualBounds,Xt.w()&&(Tt?(Tt=!1,St.assign(Xt)):St.ed(Xt))));ut.width=St.width,ut.height=St.height,vt.x=St.x,vt.y=St.y}return re!==null&&re.w()&&(vt=re,z||(z=ft)),St=re=0,de!==null&&(re=de.left+de.right,St=de.top+de.bottom),Tt=Mt=0,b!==null&&(Mt=b.width,Tt=b.height,isFinite(Mt)&&(Mt=Math.max(0,Mt-re)),isFinite(Tt)&&(Tt=Math.max(0,Tt-St))),b!==null&&z!==null?(z==="NaN"&&(z=ft),b.w()?(b=Mt,ut=Tt):isNaN(Tt)?(b=Mt,ut=ut.height*z):(b=ut.width*z,ut=Tt)):b!==null?b.w()?(z=Math.min(Mt/ut.width,Tt/ut.height),b=Mt,ut=Tt):isNaN(Tt)?(z=Mt/ut.width,b=Mt,ut=ut.height*z):(z=Tt/ut.height,b=ut.width*z,ut=Tt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/ut.width,(ee.height-St)/ut.height),z>ft?(z=ft,b=ut.width,ut=ut.height):(b=ee.width,ut=ee.height)):(b=ut.width*z,ut=ut.height*z):(z=ft,b=ut.width,ut=ut.height),de!==null?(b+=re,ut+=St):de=new xr(0),ee!==null&&(ft=ee.width,ee=ee.height,isNaN(ft)&&(ft=2e3),isNaN(ee)&&(ee=2e3),isFinite(ft)&&(b=Math.min(b,ft)),isFinite(ee)&&(ut=Math.min(ut,ee))),Se.width=Math.ceil(b),Se.height=Math.ceil(ut),x==="SVG"?E===null?null:(E.resize(Se.width,Se.height,Se.width,Se.height),E.ownerDocument=Ce,E.hs=Ne,Lf(a,E.context,de,new En(Math.ceil(b),Math.ceil(ut)),z,vt,oe,fe,De,y),E.context):(a.Xm=!1,Lf(a,Ye,de,new En(Math.ceil(b),Math.ceil(ut)),z,vt,oe,fe,De,y),a.Xm=!0,Se.context)}wn.Object.defineProperties(Jt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof xe||(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 wc(this,mn.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 wc(this,mn.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(mn,"resize",this.Ov,!1),this.removeEventListener(mn,"wheel",this.$j,!0),Rc===this&&(Rc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),kg(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)&&li(a,"0 <= value <= 1",Jt,"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),Fu(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),Fu(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),Fu(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),Fu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&li(a,">= 0",Jt,"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&&li(a,">= 0",Jt,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else li(a,">= 0",Jt,"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||om(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&&yt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Pg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,rs(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Hg(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(mn,"pointermove",this.dk,!0),this.addEventListener(mn,"pointerdown",this.ui,!0),this.addEventListener(mn,"pointerup",this.fk,!0),this.addEventListener(mn,"pointerout",this.ek,!0),this.addEventListener(mn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(mn,"wheel",this.$j,!0),this.addEventListener(mn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(mn,"pointermove",this.dk,!0),this.removeEventListener(mn,"pointerdown",this.ui,!0),this.removeEventListener(mn,"pointerup",this.fk,!0),this.removeEventListener(mn,"pointerout",this.ek,!0),this.removeEventListener(mn,"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(mn,"wheel",this.$j,!0),this.removeEventListener(mn,"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=qe.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),zd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?bc(this):(this.vb=!0,a=this.scale,Ig(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)}qe.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=tm(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=tm(this)),a.type!==Yn.Grid&&yt("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),Ec(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),bc(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||yt("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 xr(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===vd&&Fu(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,Fu(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,zg(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&&zg(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!==el&&Fu(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()||yt("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()||yt("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)):li(a,"> 0",Jt,"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)):li(a,"> 0",Jt,"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),Fu(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 xr(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&&yt("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();)cp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==yd&&a!==Za&&a!==zf&&yt("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 En(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 xr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),wn.Object.defineProperties(Jt,{licenseKey:{get:function(){return qg.jc()},set:function(a){qg.add(a.replace(/\s/g,""))}},version:{get:function(){return Ph}}}),Jt.prototype.makeImageData=Jt.prototype.Jx,Jt.prototype.makeImage=Jt.prototype.Wz,Jt.prototype.cacheGroupExternalLinks=Jt.prototype.Fu,Jt.prototype.addRenderer=Jt.prototype.bs,Jt.prototype.makeSVG=Jt.prototype.av,Jt.prototype.makeSvg=Jt.prototype.Cs,Jt.prototype.stopAutoScroll=Jt.prototype.ug,Jt.prototype.doAutoScroll=Jt.prototype.gs,Jt.prototype.isUnoccupied=Jt.prototype.Yj,Jt.prototype.raiseDiagramEvent=Jt.prototype.R,Jt.prototype.removeDiagramListener=Jt.prototype.am,Jt.prototype.addDiagramListener=Jt.prototype.Bj,Jt.prototype.findTreeRoots=Jt.prototype.yz,Jt.prototype.layoutDiagram=Jt.prototype.Uz,Jt.prototype.findTopLevelGroups=Jt.prototype.qz,Jt.prototype.findTopLevelNodesAndLinks=Jt.prototype.rz,Jt.prototype.ensureBounds=Jt.prototype.Va,Jt.prototype.findLinksByExample=Jt.prototype.ls,Jt.prototype.findNodesByExample=Jt.prototype.ms,Jt.prototype.findLinkForData=Jt.prototype.Kc,Jt.prototype.findNodeForData=Jt.prototype.ii,Jt.prototype.findPartForData=Jt.prototype.Lc,Jt.prototype.findLinkForKey=Jt.prototype.findLinkForKey,Jt.prototype.findNodeForKey=Jt.prototype.Vb,Jt.prototype.findPartForKey=Jt.prototype.findPartForKey,Jt.prototype.rebuildParts=Jt.prototype.Wd,Jt.prototype.transformViewToDoc=Jt.prototype.Ps,Jt.prototype.transformRectDocToView=Jt.prototype.zA,Jt.prototype.transformDocToView=Jt.prototype.op,Jt.prototype.centerRect=Jt.prototype.es,Jt.prototype.scrollToRect=Jt.prototype.tv,Jt.prototype.scroll=Jt.prototype.scroll,Jt.prototype.highlightCollection=Jt.prototype.Jz,Jt.prototype.highlight=Jt.prototype.Iz,Jt.prototype.selectCollection=Jt.prototype.rA,Jt.prototype.select=Jt.prototype.select,Jt.prototype.updateAllRelationshipsFromData=Jt.prototype.rp,Jt.prototype.updateAllTargetBindings=Jt.prototype.updateAllTargetBindings,Jt.prototype.commit=Jt.prototype.commit,Jt.prototype.rollbackTransaction=Jt.prototype.Kf,Jt.prototype.commitTransaction=Jt.prototype.eb,Jt.prototype.startTransaction=Jt.prototype.Ea,Jt.prototype.raiseChanged=Jt.prototype.g,Jt.prototype.raiseChangedEvent=Jt.prototype.cb,Jt.prototype.removeChangedListener=Jt.prototype.ik,Jt.prototype.addChangedListener=Jt.prototype.Pe,Jt.prototype.removeModelChangedListener=Jt.prototype.mA,Jt.prototype.addModelChangedListener=Jt.prototype.Yw,Jt.prototype.findLayer=Jt.prototype.Qj,Jt.prototype.removeLayer=Jt.prototype.kA,Jt.prototype.addLayerAfter=Jt.prototype.Cy,Jt.prototype.addLayerBefore=Jt.prototype.Ww,Jt.prototype.addLayer=Jt.prototype.Al,Jt.prototype.moveParts=Jt.prototype.moveParts,Jt.prototype.copyParts=Jt.prototype.Kj,Jt.prototype.removeParts=Jt.prototype.Is,Jt.prototype.remove=Jt.prototype.remove,Jt.prototype.add=Jt.prototype.add,Jt.prototype.clearDelayedGeometries=Jt.prototype.bx,Jt.prototype.setProperties=Jt.prototype.nm,Jt.prototype.attach=Jt.prototype.Du,Jt.prototype.set=Jt.prototype.set,Jt.prototype.resetInputOptions=Jt.prototype.Sx,Jt.prototype.setInputOption=Jt.prototype.sA,Jt.prototype.getInputOption=Jt.prototype.Ql,Jt.prototype.resetRenderingHints=Jt.prototype.Tx,Jt.prototype.setRenderingHint=Jt.prototype.Xx,Jt.prototype.getRenderingHint=Jt.prototype.Gf,Jt.prototype.maybeUpdate=Jt.prototype.bd,Jt.prototype.requestUpdate=Jt.prototype.$b,Jt.prototype.delayInitialization=Jt.prototype.Xy,Jt.prototype.isUpdateRequested=Jt.prototype.Pz,Jt.prototype.invalidateDocumentBounds=Jt.prototype.Ya,Jt.prototype.findObjectsNear=Jt.prototype.og,Jt.prototype.findPartsNear=Jt.prototype.mz,Jt.prototype.findObjectsIn=Jt.prototype.Cf,Jt.prototype.findPartsIn=Jt.prototype.ux,Jt.prototype.findObjectsAt=Jt.prototype.ji,Jt.prototype.findPartsAt=Jt.prototype.lz,Jt.prototype.findObjectAt=Jt.prototype.ic,Jt.prototype.findPartAt=Jt.prototype.Ol,Jt.prototype.focusObject=Jt.prototype.zz,Jt.prototype.alignDocument=Jt.prototype.Jy,Jt.prototype.zoomToRect=Jt.prototype.BA,Jt.prototype.zoomToFit=Jt.prototype.zoomToFit,Jt.prototype.diagramScroll=Jt.prototype.kx,Jt.prototype.focus=Jt.prototype.focus;var Uf=new Yt,cm=null,Ca=mn.document!==void 0,Ah=null,Yd="",el=new Gt(Jt,"None",0),du=new Gt(Jt,"Uniform",1),Kd=new Gt(Jt,"UniformToFill",2),$h=new Gt(Jt,"CycleAll",10),Kg=new Gt(Jt,"CycleNotDirected",11),Zg=new Gt(Jt,"CycleNotDirectedFast",12),Xg=new Gt(Jt,"CycleNotUndirected",13),Qg=new Gt(Jt,"CycleDestinationTree",14),Jg=new Gt(Jt,"CycleSourceTree",15),vd=new Gt(Jt,"DocumentScroll",1),ef=new Gt(Jt,"InfiniteScroll",2),yd=new Gt(Jt,"TreeParentCollapsed",21),Za=new Gt(Jt,"AllParentsCollapsed",22),zf=new Gt(Jt,"AnyParentsCollapsed",23),qg=new Pn,Ph="2.3.10",kh="image",tf=null,dm=!1;function Ys(){if(Ca){var a=mn.document.createElement("canvas"),y=a.getContext("2d"),x=Li("7ca11abfd022028846");y[x]=Li("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Rn.Dx+"4ae6247590da4bb21c324ba3a84e385776",$i.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",It.za],b=1;5>b;b++)y[Li("7ca11abfd7330390")](Li(E[b-1]),10,15*b);for(y[x]=Li("39f046ebb36e4b"),x=1;5>x;x++)y[Li("7ca11abfd7330390")](Li(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&($i.prototype.Cd=$i.prototype.Eu),tf=a}}Jt.className="Diagram",Jt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=mn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Jt?y.H:null},Jt.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},Jt.useDOM=function(a){Ca=a?mn.document!==void 0:!1},Jt.isUsingDOM=function(){return Ca},Jt.None=el,Jt.Uniform=du,Jt.UniformToFill=Kd,Jt.CycleAll=$h,Jt.CycleNotDirected=Kg,Jt.CycleNotDirectedFast=Zg,Jt.CycleNotUndirected=Xg,Jt.CycleDestinationTree=Qg,Jt.CycleSourceTree=Jg,Jt.DocumentScroll=vd,Jt.InfiniteScroll=ef,Jt.TreeParentCollapsed=yd,Jt.AllParentsCollapsed=Za,Jt.AnyParentsCollapsed=zf;function hm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Nh(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=mn[Li("76a715b2f73f148a")][Li("72ba13b5")]||"";if(a.Rc=!0,Ca){var E=Jt[Li("76a115b6ed251eaf4692")];if(E)for(var b=qg.iterator;b.next()&&(E=b.value,E=Li(E).split(Li("39e9")),!(6>E.length));){var z=Li(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=Li(Rn[Li("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=mn[Li("74a900bae4370f8b51")][Li("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Li("73a612b6fb191d")](Li("3aad1ab6e022098b4dc4")),z=Li(E[2]),-1<ee&&(re=re[Li("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Li("76ad18b4f73e")],re=x[Li("73a612b6fb191d")](Li("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Li("73a612b6fb191d")](z),0>ee&&z!==Li("7da71ca0ad381e90")&&(ee=y[Li("73a612b6fb191d")](Li("76a715b2ef3e149757"))),0>ee&&(ee=y[Li("73a612b6fb191d")](Li("76a715b2ef3e149757"))),0>ee&&(ee=y[Li("73a612b6fb191d")](Li("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Li("73a612b6fb191d")](Li("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Li("73a612b6fb191d")](Li("35"))||y[Li("73a612b6fb191d")](Li("35"))===-1),!a.Rc||x[Li("73a612b6fb191d")](Li("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Li("73a612b6fb191d")](z)),!a.Rc)||(ee=mn[Li("76a715b2f73f148a")][Li("69ad17a1e03e")],re=ee[Li("73a612b6fb191d")](Li("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Li("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=mn.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[Li("79a417a0f0181a8946")]=E,mn.document[Li("78a712aa")]){mn.document[Li("78a712aa")][Li("7bb806b6ed32388c4a875b")](ee),oe=mn.getComputedStyle(ee).getPropertyValue(Li("78a704b7e62456904c9b12701b6532a8"));var de=mn.getComputedStyle(ee).getPropertyValue(Li("75b817b0ea2202"));if(mn.document[Li("78a712aa")][Li("68ad1bbcf533388c4a875b")](ee),oe){if(ee=mn[Li("77a902b0eb1b1e804a8a")],de==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(Li("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var fe in ee)if(E===ee[fe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(fe=x[Li("76ad18b4f73e")],b=x[Li("73a612b6fb191d")](Li("35e7"))+2;b<fe;b++)y+=x[b];x=y[Li("73a612b6fb191d")](Li("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Li("73a612b6fb191d")](Li("35")))}}}return 0<a.Rc&&a!==a.wy}hm.className="DiagramHelper";function qc(a){this.j=a===void 0?new qe:a,this.o=new qe}wn.Object.defineProperties(qc.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 nf="DraggingInfo";qc.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new En(NaN,NaN).freeze(),this.gridSnapCellSpot=Dr,this.gridSnapOrigin=new qe(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ve(a,y){if(typeof a=="string"||mn.Element&&a instanceof Element)var x=Jt.call(this,a)||this;else x=Jt.call(this)||this,y=a;return me(x),y&&x.nm(y),x}$t(ve,Jt);function me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=to,a.layout=new Ps}ve.prototype.reset=function(){Jt.prototype.reset.call(this),me(this)},ve.className="Palette";function xe(a,y){if(typeof a=="string"||mn.Element&&a instanceof Element)var x=Jt.call(this,a)||this;else x=Jt.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Qi;var b=new kr;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new xr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new pt,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new qe(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){E.Ya(),nt(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&nt(E)},x.autoScale=du,x.vb=!1,y&&Object.assign(x,y),x}$t(xe,Jt),xe.prototype.computePixelRatio=function(){return 1},xe.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(wh(this),this.ql===null){var x=new _u(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),_e(this)}finally{this.ta=a,this.ib=y}}}Jt.prototype.redraw.call(this)},xe.prototype.gc=function(){if(this.Ka===null&&yt("No div specified"),this.ta===null&&yt("No canvas specified"),!(this.ta instanceof wc)&&(_v(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){wh(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?_e(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function _e(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=qt.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Ec(y,b),qt.free(b),Bs(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var de=re.diagram.grid.part;if(!x&&re.isTemporary)E&&de.layer===re&&(re=Jc(re,b),de.gc(b,oe),b.globalAlpha=re);else{for(var fe=Jc(re,b),Se=oe.scale,Ce=qt.alloc(),Ne=re.Pa.s,De=Ne.length,Ye=0;Ye<De;Ye++){var ft=Ne[Ye];(E||ft!==de)&&re.Oj(b,ft,oe,null,Se,Ce,!1)}qt.free(Ce),b.globalAlpha=fe}}}}}function nt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=En.alloc();b.h(x.width,x.height),E.desiredSize=b,En.free(b),a=2/a.scale,E instanceof kr&&(E.strokeWidth=a),y.location=new qe(x.x-a/2,x.y-a/2),y.isSelected=!0}}}xe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ya;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},xe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},xe.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),nt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},wn.Object.defineProperties(xe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xe&&yt("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),nt(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),nt(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)}}}),xe.className="Overview";function pt(){Zo.call(this),this.j=null}$t(pt,Zo),pt.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 qe(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new qe(a.x-this.j.x,a.y-this.j.y)),!0)},pt.prototype.doActivate=function(){this.j=null,Zo.prototype.doActivate.call(this)},pt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},pt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new qe(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new qe(a.x-this.j.x,a.y-this.j.y)}}},pt.className="OverviewDraggingTool";function ht(){tr(this),this.H=Rc,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=Ya,this.hb=!0,this.cg=null,this.ob=200}ht.prototype.toString=function(){return"CommandHandler"},ht.prototype.Xe=function(a){this.H=a},ht.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=br?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},ht.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ht.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Vo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ht.prototype.canStopCommand=function(){return!0},ht.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ht.prototype.canSelectAll=function(){return this.diagram.allowSelect},ht.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 Mn,x=a.selection.iterator;x.next();)Jd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ht.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ht.prototype.copySelection=function(){var a=this.diagram,y=new Mn;for(a=a.selection.iterator;a.next();)Jd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ht.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ht.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ht.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ht.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Ah=null,Yd="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new Pn,x.addAll(z),Ah=x,Yd=y.model.dataFormat}}y.R("ClipboardChanged",x)},ht.prototype.pasteFromClipboard=function(){var a=new Mn,y=Ah;if(y===null)return a;var x=this.diagram;if(Yd!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,ee=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=ee.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},ht.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Gd(y,z,new qe(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ht.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Ah===null||Ah.count===0||Yd!==a.model.dataFormat)},ht.prototype.undo=function(){this.diagram.undoManager.undo()},ht.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ht.prototype.redo=function(){this.diagram.undoManager.redo()},ht.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ht.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===el&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ht.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==el?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ht.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===el&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ht.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==el?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ht.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ht.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ht.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;rs(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Ya):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Zl(y)},ht.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ht.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;rs(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=At(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=b.pop();0<b.length&&oe instanceof vi&&oe.isTreeExpanded&&(!(oe instanceof yr)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof Qi&&y.tv(oe.actualBounds),oe instanceof vi&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof yr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Qi&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){or(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function At(a,y,x){if(y.isVisible())return x;if(y instanceof so)At(a,y.adornedPart,x);else if(y instanceof ei){var E=y.fromNode;E!==null&&At(a,E,x),y=y.toNode,y!==null&&At(a,y,x)}else y instanceof vi&&(E=y.labeledLink,E!==null&&At(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),At(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),At(a,y,x));return x}ht.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Qi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ht.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),rs(y.animationManager,"Collapse Tree");var x=new Pn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof vi&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ht.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof vi&&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 vi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ht.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),rs(y.animationManager,"Expand Tree");var x=new Pn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof vi&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ht.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof vi)||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 vi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ht.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new Pn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new Pn,oe=b.iterator;oe.next();){var de=oe.value;z=!1;for(var fe=b.iterator;fe.next();)if(de.Td(fe.value)){z=!0;break}z||re.add(de)}if(0<re.count){var Se=re.first().containingGroup;if(Se!==null)for(;Se!==null;){b=!1;for(var Ce=re.iterator;Ce.next();)if(!Ce.value.Td(Se)){b=!0;break}if(b)Se=Se.containingGroup;else break}if(x instanceof yr)Uu(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var Ne=y.copyNodeData(x);Rt(Ne)&&(y.xf(Ne),E=a.ii(Ne))}if(E!==null){Se!==null&&this.isValidMember(Se,E)&&(E.containingGroup=Se);for(var De=re.iterator;De.next();){var Ye=De.value;this.isValidMember(E,Ye)&&(Ye.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ht.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 gn(a){var y=si();for(a=a.iterator;a.next();){var x=a.value;x instanceof ei||y.push(x)}a=new Mn,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,ee=0;ee<x;ee++)if(b.Td(y[ee])){z=!1;break}z&&a.add(b)}return oi(y),a}ht.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof ei)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},ht.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new Pn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof yr&&z.canUngroup()&&E.add(z)}var ee=new Pn;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var de=oe.containingGroup,fe=de!==null&&de.data!==null?x.wa(de.data):void 0;ee.addAll(oe.memberParts);for(var Se=ee.iterator;Se.next();){var Ce=Se.value;if(Ce.isSelected=!0,!(Ce instanceof ei)){var Ne=Ce.data;Ne!==null?x.mp(Ne,fe):Ce.containingGroup=de}}y.remove(oe)}}y.R("SelectionUngrouped",E,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ht.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 yr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof yr&&y.canUngroup())return!0;return!1},ht.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=gn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},ht.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),rs(y.animationManager,"Collapse SubGraph");var x=new Pn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof yr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ht.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof yr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof yr&&y.isSubGraphExpanded)return!0;return!1},ht.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),rs(y.animationManager,"Expand SubGraph");var x=new Pn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof yr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ht.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof yr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof yr&&!y.isSubGraphExpanded)return!0;return!1},ht.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Qo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ht.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 Qo))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 Qo&&x.editable}),a!==null))return!0;return!1},ht.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof Dt?b=a.ga(vr):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new qe(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,Fa(x,!1,a)}},ht.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)},ht.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new Yt,a===null)return E;for(var z=a.iterator;z.next();)Dc(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof ei&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},wn.Object.defineProperties(ht.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||yt("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}}}),ht.className="CommandHandler",$p=function(){return new ht};function Dt(){tr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new qe(NaN,NaN).freeze(),this.jd=Co,this.Ab=new $i,this.wh=new $i,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ra,this.uc=new qt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new qt(NaN,NaN,NaN,NaN).freeze(),this.dc=new qt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ka,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 Hn,kn,Bi,ji,nr,Er,Xr,Fr,io,Bo;Dt.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=Ni(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Dt.prototype.Vw=function(a){var y=this.Dh;if(Jn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Dt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Dt.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},Dt.prototype.copy=function(){return this.clone()},Be=Dt.prototype,Be.qb=function(a){a.classType===ei?a.name.indexOf("Orient")===0?this.segmentOrientation=a:yt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Dt&&(this.stretch=a)},Be.toString=function(){return yn(this.constructor)+"#"+Sr(this)},Be.th=function(){this.A!==null&&(this.A.nc=!0)};function Mr(a){a.A===null?a.A=new of:a.A.nc&&(a.A=a.A.copy())}Be.Xc=function(){if(this.ba===null){var a=new $g;a.Xi=dr,a.yj=dr,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Be.cb=function(a,y,x,E,b,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,E,b,z,ee),x===this&&a===Ko&&Is(this)&&ra(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Yt),ee=z.undoManager.transactionLevel===0,a.startCondition===Xl?ee=!0:a.startCondition===Sh&&(ee=!1),ee?(z=new Ei,cu(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(rs(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof Yn&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)re=x[b],re instanceof Yn&&Rh(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function ra(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ee=null;if(z.sourceName!==null){if(ee=M1(z,E,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,E)}else{if(re=E.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,E)}ee===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Be.ks=function(a){return this.bindingId===a?this:null},Be.g=function(a,y,x){this.cb(Ko,a,this,y,x)},Be.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new $i);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function cs(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Be.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?gi(a.x,a.y,0,0,0,E.height)<=y||gi(a.x,a.y,0,E.height,E.width,E.height)<=y||gi(a.x,a.y,E.width,E.height,E.width,0)<=y||gi(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Be.se=function(){return!0},Be.ca=function(a){var y=qe.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return qe.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;E=this.Df()*E.scale;var oe=1/E;if(re.width*E<b&&re.height*E<b)return a=Uo(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),qe.free(y),a}return b=!1,(this instanceof so||this instanceof kr?Uo(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),qe.free(y),b},Be.gh=function(a){var y=this.naturalBounds;return Uo(0,0,y.width,y.height,a.x,a.y)},Be.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=qt.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=qe.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),qe.free(b),qt.free(y),E},Be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=qe.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),qe.free(b),E},Be.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=qe.allocAt(0,0),b=qe.allocAt(0,x.height),z=qe.allocAt(x.width,x.height),ee=qe.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=qt.allocAt(0,0,x.width,x.height);var oe=qe.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),qe.free(oe),qt.free(x),!re&&(It.us(a,E,b)||It.us(a,b,z)||It.us(a,z,ee)||It.us(a,ee,E))&&(re=!0)}return qe.free(E),qe.free(b),qe.free(z),qe.free(ee),re},Be.ga=function(a,y){if(y===void 0&&(y=new qe),a instanceof Pi){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},Be.mi=function(a){a===void 0&&(a=new qt);var y=this.naturalBounds,x=this.oe,E=qe.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),Gr(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),Gr(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),Gr(a,E.x,E.y,0,0),qe.free(E),a},Be.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},Be.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Be.qs=function(a,y){return y===void 0&&(y=new qe),y.assign(a),this.oe.Cd(y),y},Be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Be.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,de=-z.m21*ee,fe=z.m11*ee,Se=ee*(z.m21*z.dy-z.m22*z.dx),Ce=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,It.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ee=a*re+y*de+Se,a=a*oe+y*fe+Ce,y=x*re+E*de+Se,x=x*oe+E*fe+Ce,b.h(0,0),E=this.naturalBounds,x=It.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},Dt.prototype.measure=function(a,y,x,E){if(fu(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=x||0,ee=E||0;var re=this instanceof Yn;switch(kl(this,!0)){case kn:ee=b=0,re&&(y=a=1/0);break;case Hn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ee=y);break;case ji:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case nr:isFinite(y)&&y>E&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(b,oe.width),E=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<E&&(E=Math.min(oe.height,E)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||yt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Xa(this,!1)}},Dt.prototype.Wl=function(){},Dt.prototype.Dd=function(){return!1},Dt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=qt.alloc();z.assign(this.Ib),this.Ib.ka(),cl(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&Ed(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof Qo&&(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()||yt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Fc(this,!1),qt.free(z)},Be=Dt.prototype,Be.eh=function(){};function tl(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,E+=y,b+=ee,y=kl(a,!0),x===E&&z===b&&(y=kn),y){case kn:(x>E||z>b)&&(Xa(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Hn:Xa(a,!0),a.measure(E,b,0,0);break;case ji:Xa(a,!0),a.measure(E,z,0,0);break;case nr:Xa(a,!0),a.measure(x,b,0,0)}}}Be.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Hv(x,!0),this.N(),fr(a,y)||(x.oh(),this.Pn(x)))},Be.Pn=function(a){this.portId!==null&&(Hv(a,!0),a instanceof vi&&XS(a,this))},Be.gc=function(a,y){if(!wu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Yn&&Ed(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,de=this.areaBackground,fe=this.Ma;de===null&&fe===null||a.yc(),de!==null&&(Aa(this,a,de,!0,!0,oe,re),de instanceof ko&&de.type===Au?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(de)):a.fillRect(re.x,re.y,re.width,re.height)),fe!==null&&(Aa(this,a,fe,!0,!1,oe,re),fe instanceof ko&&fe.type===Au?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(fe)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&As(this),de=this.part,oe=!1;var Se=0;de&&y.Gf("drawShadows")&&(oe=de.isShadowed)&&(fe=de.shadowOffset,Se=Math.max(fe.y,fe.x)*y.scale*y.Mb),fe=this.Dd();var Ce;if(!(Ce=y.$i||!fe)){var Ne=this.naturalBounds;Ce=this.wh;var De=Ce.m11,Ye=Ce.m21,ft=Ce.dx,ut=Ce.m12,vt=Ce.m22,St=Ce.dy,Tt,Mt=Tt=0;Ce=Tt*De+Mt*Ye+ft;var Xt=Tt*ut+Mt*vt+St;Tt=Ne.width+Se,Mt=0;var pi=Tt*De+Mt*Ye+ft;Tt=Tt*ut+Mt*vt+St,Mt=Math.min(Ce,pi);var Di=Math.min(Xt,Tt),Ai=Math.max(Ce+0,pi)-Mt,$n=Math.max(Xt+0,Tt)-Di;Ce=Mt,Xt=Di,Tt=Ne.width+Se,Mt=Ne.height+Se,pi=Tt*De+Mt*Ye+ft,Tt=Tt*ut+Mt*vt+St,Mt=Math.min(Ce,pi),Di=Math.min(Xt,Tt),Ai=Math.max(Ce+Ai,pi)-Mt,$n=Math.max(Xt+$n,Tt)-Di,Ce=Mt,Xt=Di,Tt=0,Mt=Ne.height+Se,pi=Tt*De+Mt*Ye+ft,Tt=Tt*ut+Mt*vt+St,Mt=Math.min(Ce,pi),Di=Math.min(Xt,Tt),Ai=Math.max(Ce+Ai,pi)-Mt,$n=Math.max(Xt+$n,Tt)-Di,Ce=Mt,Xt=Di,Se=y.viewportBounds,Ne=Se.x,De=Se.y,Ce=!(Ce>Se.width+Ne||Ne>Ai+Ce||Xt>Se.height+De||De>$n+Xt)}if(Ce){if(Ce=(this.l&256)!==0,a.clipInsteadOfFill&&(Ce=!1),this instanceof Qo&&(a.font=this.font),Ce){if(Xt=re.se()?re.naturalBounds:re.actualBounds,Ai=Math.max(ee.x,Xt.x),$n=Math.max(ee.y,Xt.y),Se=Math.min(ee.right,Xt.right)-Ai,Ne=Math.min(ee.bottom,Xt.bottom)-$n,De=this.tb,De!==null&&(Ai=De.x,$n=De.y,Se=De.width,Ne=De.height),Ai>ee.width+ee.x||ee.x>Xt.width+Xt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ai,$n,Se,Ne),a.clip()}if(fe){if(!de.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(Xt=de.shadowOffset,a.Ev(Xt.x*y.scale*this.scale*y.Mb,Xt.y*y.scale*this.scale*y.Mb,de.shadowBlur),$c(a),a.shadowColor=de.shadowColor)}oe&&this.shadowVisible===!0?$c(a):oe&&this.shadowVisible===!1&&Bc(a),de=this.naturalBounds,this.areaBackground!==null&&(a.yc(),hu(this,a,de,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&xs(this,re)&&this.shadowVisible===null&&Bc(a),this.Ma!==null&&(a.yc(),_l(this,a,de,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||xs(this,re))?(qu(this,!0),this.shadowVisible===null&&Bc(a)):qu(this,!1),this.hh(a,y),oe&&this.l&512&&$c(a),fe&&oe&&Bc(a),Ce&&(a.restore(),a.Vc(this instanceof Yn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function xs(a,y){return y===null?!1:(Ed(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Yn.Auto||y.type===Yn.Spot)&&y.Pb()!==a)}Be.Dv=function(){};function hu(a,y,x,E){Aa(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof ko&&a.areaBackground.type===Au?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function _l(a,y,x,E){var b=a.kq(),z=x.x,ee=x.y,re=x.width+b,oe=x.height+b;Aa(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof ko&&a.Ma.type===Au?(y.beginPath(),y.rect(z-b/2,ee-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,oe)}function Ks(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ee=0;ee<b;ee++)if(E[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Yn.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 wu(a,y,x){if(!(y instanceof Ql))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&Ks(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),$c(y),y.shadowColor=a.shadowColor}a instanceof Qo&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Yn;var re=a instanceof Yn?Ed(a):!1;a.l&4096&&As(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(ep(y,1,0,0,1,0,0),a.svg=y.ad):z?(ep(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):ep(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var de=ee.copy().Vj();y.rb.ha=[de.m11,de.m12,de.m21,de.m22,de.dx,de.dy],hu(a,y,b,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),_l(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],_l(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,b=a.part,re=!1,b&&x.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&$c(y),re&&a.shadowVisible===!0?$c(y):re&&a.shadowVisible===!1&&Bc(y),b=a.panel,re&&xs(a,b)&&a.shadowVisible===null&&Bc(y),y.Il&&(de=x.computePixelRatio(),de="drop-shadow("+y.shadowOffsetX/de+"px "+y.shadowOffsetY/de+"px "+y.shadowBlur/de/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",de),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",de)),re&&(a.Ma!==null||a.areaBackground!==null||xs(a,b))?(qu(a,!0),a.shadowVisible===null&&Bc(y)):qu(a,!1),b=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,de=a.svg,!z&&de!==null&&re!==de&&de.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,E,oe,re),Pl(y,de),!0):(a.svg=re,ee!==null&&re===null&&(gm(y),y.nh.pop()),re===null||(a.$o(y,E,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&$c(y),a.Dd()&&Bc(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):E!==null&&Ks(a,E,re),ee!==null&&ee(a,re)),!0)}Be.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var ee=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,ee=z.width,x=z.height),z=E.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+yo++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:x}),this instanceof Yn&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),Pl(a,E)};function Pl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Zs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=bi(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Be.hh=function(){},Be.lv=function(){this.Uc=!0},Be.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof Yn?Ed(this):!1;if(!(this instanceof Yn&&b))if(this instanceof Ll){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&eS(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",tS(a)):y.setAttributeNS(null,"transform",tS(a))}else if(!x||this instanceof Yn)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof kr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=E.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],hu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof Yn))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),_l(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Be.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 Aa(a,y,x,E,b,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===xd)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var de=a.kq();if(re=z.width,oe=z.height,b?(re=ee.width,oe=ee.height):E||(re+=de,oe+=de),(z=y instanceof Mh)&&x.xe&&(x.type===Kf||x.yk===re&&x.ft===oe))var fe=x.xe;else{var Se=0,Ce=0,Ne=0,De=0,Ye=0,ft=0;if(ft=Ye=0,b?(Ye=ee.x,ft=ee.y):E||(Ye-=de/2,ft-=de/2),Se=x.start.x*re+x.start.offsetX,Ce=x.start.y*oe+x.start.offsetY,Ne=x.end.x*re+x.end.offsetX,De=x.end.y*oe+x.end.offsetY,Se+=Ye,Ne+=Ye,Ce+=ft,De+=ft,x.type===td)fe=y.createLinearGradient(Se,Ce,Ne,De);else if(x.type===Au)ft=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Ye=0,ft=Math.max(re,oe)/2):Ye=x.startRadius,fe=y.createRadialGradient(Se,Ce,Ye,Ne,De,ft);else if(x.type===Kf)try{fe=y.createPattern(x.pattern,"repeat")}catch(vt){fe=null}if(x.type!==Kf&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)fe.addColorStop(b.key,b.value);if(z&&(x.xe=fe,fe!==null&&(x.yk=re,x.ft=oe),fe===null&&x.type===Kf&&x.yk!==-1)){x.yk=-1;var ut=a.diagram;ut!==null&&x.yk===-1&&or(function(){ut.redraw()},600)}}E?y.fillStyle=fe:y.strokeStyle=fe}}}Be.rg=function(a){if(a instanceof Yn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Be.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Be.If=function(){for(var a=this instanceof Yn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function As(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Bu(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)}Bu(a,!1),Cu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Cu(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,Cu(a,!1)))}Be.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=qe.alloc();z.yi(y,x,E,b,vr),a.rotate(this.Kb,z.x,z.y),qe.free(z)}},Be.v=function(a){if(!fu(this)){a===void 0&&(a=!1),Xa(this,!0),Fc(this,!0);var y=this.panel;y===null||a||y.v()}},Be.Uj=function(){fu(this)||(Xa(this,!0),Fc(this,!0))};function ul(a){if(!cl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof vi&&a.Bd(),y.$b())),Fc(a,!0)}}Be.Uk=function(){!(this.l&2048)&&(Bu(this,!0),Cu(this,!0))},Be.Wu=function(){Cu(this,!0)},Be.N=function(){var a=this.part;a!==null&&a.N()};function kl(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===Yn.Table?cc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===Yn.Auto&&E.Pb()===a?Es(a,Hn,y):x===Er?E!==null?E.type===Yn.Spot&&E.Pb()===a?Es(a,Hn,y):(x=E.defaultStretch,x===Er?Es(a,kn,y):Es(a,x,y)):Es(a,kn,y):Es(a,x,y)}function cc(a,y,x,E){var b=a.stretch;if(b!==Er)return Es(a,b,E);var z=b=null;switch(y.stretch){case nr:z=!0;break;case Hn:z=!0}switch(x.stretch){case ji:b=!0;break;case Hn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===ji||y===Hn),z===null&&(z=y===nr||y===Hn),b===!0&&z===!0?Es(a,Hn,E):b===!0?Es(a,ji,E):z===!0?Es(a,nr,E):Es(a,kn,E)}function Es(a,y,x){if(x)return y;if(y===kn||(x=a.desiredSize,x.w()))return kn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===ji)return kn;if(y===Hn)return nr}else{if(y===nr)return kn;if(y===Hn)return ji}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===nr)return kn;if(y===Hn)return ji}else{if(y===ji)return kn;if(y===Hn)return nr}return y}function qu(a,y){a.l=y?a.l|512:a.l&-513}function Is(a){return(a.l&1024)!==0}function rf(a,y){a.l=y?a.l|1024:a.l&-1025}function Bu(a,y){a.l=y?a.l|2048:a.l&-2049}function Cu(a,y){a.l=y?a.l|4096:a.l&-4097}function fu(a){return(a.l&8192)!==0}function Xa(a,y){a.l=y?a.l|8192:a.l&-8193}function cl(a){return(a.l&16384)!==0}function Fc(a,y){a.l=y?a.l|16384:a.l&-16385}Be.Gj=function(){this.svg=null},Be.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Be.Av=function(){},Be.zv=function(a){return this.pa=a,ul(this),!0},Be.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Be.kq=function(){return 0};function Lh(a){var y=a.part;if(y instanceof vi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||XS(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Yn?a instanceof vi?a.Bd():a.qm(a,function(x){Lh(x)}):Lh(a))}Be.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Ha(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&vS(a)&&yt("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new Pn),this.localBindings.add(b),this},Be.set=function(a){return Object.assign(this,a),this},Be.Du=function(a){return ov(this,a),this},Be.apply=function(a){return a(this),this},Be.nm=function(a){return bh(this,a),this},Be.pz=function(){return this.ih()},Be.ih=function(){for(var a=this instanceof Yn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Be.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Yt),this.animationTriggers.add(a.propertyName,a),this};function Tu(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Hf.I(a);typeof z=="function"?(x=Ni(arguments),E=z(x),Rt(E)||yt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=mn.go[a]}if(E===null&&(b!=null&&b.constructor||yt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof Jt&&1<x.length){z=E;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(kg(z,ee),b++)}for(;b<x.length;b++)z=x[b],z===void 0?yt("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):ov(E,z);return E}function ov(a,y){if(typeof y=="string")if(a instanceof Qo)a.text=y;else if(a instanceof kr)a.figure=y;else if(a instanceof Ll)a.source=y;else if(a instanceof Yn)y=$u.I(y),y!==null&&(a.type=y);else if(a instanceof ko){var x=Wi(ko,y);x!==null?a.type=x:yt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Wn?(y=Wi(Wn,y),y!==null&&(a.type=y)):a instanceof qr&&(y=Wi(qr,y),y!==null&&(a.type=y));else if(y instanceof Dt)a instanceof Yn||yt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Qa){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof Qa?Im(E,y):yt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Gt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof $a)a.type=y;else if(y instanceof Ha)a instanceof Dt||a instanceof Qa?a.bind(y):yt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Tl)a instanceof Dt?a.Jv(y):yt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof wa)a instanceof Wn&&a.type===Wn.o?a.figures.add(y):yt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof qr)a instanceof wa?a.segments.add(y):yt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ua)a instanceof Jt||a instanceof yr?a.layout=y:yt("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++)ov(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof ko){x=new Hi;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);bh(a,x)}else if(a instanceof Qa){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&yt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&yt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Hi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);bh(a,b)}else bh(a,y);else yt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Sd(a,y){Hf.add(a,y)}function fm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}wn.Object.defineProperties(Dt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new of),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 of),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 of),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Mr(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&&(Mr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:fl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Zd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===fl&&(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 Zd),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 Zd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ai},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Zd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Er},set:function(a){var y=this.stretch;y!==a&&(Mr(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&&(Mr(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)&&li(a,"0 <= value <= 1",Dt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Fh(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(Fh(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),qy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&sf(a,"GraphObject.areaBackground"),a instanceof ko&&a.freeze(),Mr(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&&sf(a,"GraphObject.background"),a instanceof ko&&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 Qi)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new qe(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&yt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,qy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof kr&&this.qc(),this.g("desiredSize",E,a),Is(this)&&(a=this.part,a!==null&&(ra(this,a,"width"),ra(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 En(a,this.jd.height).freeze(),this.v(),this instanceof kr&&this.qc(),this.g("desiredSize",y,a),Is(this)&&(a=this.part,a!==null&&ra(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 En(this.jd.width,a).freeze(),this.v(),this instanceof kr&&this.qc(),this.g("desiredSize",y,a),Is(this)&&(a=this.part,a!==null&&ra(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ur},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(),Mr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:eo},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(),Mr(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 xr(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&&As(this),this.Ab}},oe:{get:function(){return this.l&4096&&As(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Mr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:kn},set:function(a){this.reshapingBehavior!==a&&(Mr(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()&&yt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),ul(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&&li(a,">= 0",Dt,"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&&li(a,">= 1",Dt,"columnSpan"),Mr(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&&li(a,">= 0",Dt,"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&&li(a,">= 1",Dt,"rowSpan"),Mr(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&&(Mr(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 vi||yt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Vv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,qS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:dr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Lh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",Dt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Lh(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),Lh(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&&li(a,">= 0",Dt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:dr},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Lh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",Dt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Lh(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),Lh(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&&li(a,">= 0",Dt,"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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(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&&(Mr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Dt.prototype.trigger=Dt.prototype.Jv,Dt.prototype.findBindingPanel=Dt.prototype.ih,Dt.prototype.findTemplateBinder=Dt.prototype.pz,Dt.prototype.setProperties=Dt.prototype.nm,Dt.prototype.apply=Dt.prototype.apply,Dt.prototype.attach=Dt.prototype.Du,Dt.prototype.set=Dt.prototype.set,Dt.prototype.isEnabledObject=Dt.prototype.If,Dt.prototype.isVisibleObject=Dt.prototype.Ed,Dt.prototype.isContainedBy=Dt.prototype.rg,Dt.prototype.getNearestIntersectionPoint=Dt.prototype.rs,Dt.prototype.getLocalPoint=Dt.prototype.qs,Dt.prototype.getDocumentScale=Dt.prototype.Df,Dt.prototype.getDocumentAngle=Dt.prototype.li,Dt.prototype.getDocumentBounds=Dt.prototype.mi,Dt.prototype.getDocumentPoint=Dt.prototype.ga,Dt.prototype.intersectsRect=Dt.prototype.Yc,Dt.prototype.containedInRect=Dt.prototype.fh,Dt.prototype.containsRect=Dt.prototype.Re,Dt.prototype.containsPoint=Dt.prototype.ca,Dt.prototype.raiseChanged=Dt.prototype.g,Dt.prototype.raiseChangedEvent=Dt.prototype.cb,Dt.prototype.addCopyProperty=Dt.prototype.Vw;var Hf=null;Dt.className="GraphObject",Hf=new Yt,Sd("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=Tu(Yn,Yn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Yn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Tu(kr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Pi(0,0,2.76142374915397,2.761423749153969),spot2:new Pi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Yn&&(x=E.fb("ButtonBorder"),x instanceof kr)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Yn&&(x=E.fb("ButtonBorder"),x instanceof kr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Yn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof kr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ee,ee=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Yn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof kr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Yn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof kr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Yn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof kr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=E._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=E._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),b.skipsUndoManager=z}}},y}),Sd("TreeExpanderButton",function(){var a=Tu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Tu(kr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:hr},new Ha("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Ha("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof so&&(x=x.adornedPart),x instanceof vi){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Sd("SubGraphExpanderButton",function(){var a=Tu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Tu(kr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:hr},new Ha("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 so&&(x=x.adornedPart),x instanceof yr){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Sd("ToolTip",function(){return Tu(so,Yn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new qe(0,3),shadowBlur:5},Tu(kr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Pi(0,0,4,6),spot2:new Pi(1,1,-4,-4)}))}),Sd("ContextMenu",function(){return Tu(so,Yn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new qe(0,3),shadowBlur:5},new Ha("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Sd("ContextMenuButton",function(){var a=Tu("Button");a.stretch=ji;var y=a.fb("ButtonBorder");return y instanceof kr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Pi(0,0,2,3),y.spot2=new Pi(1,1,-2,-2)),a}),Sd("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=Tu("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},Tu(kr,{name:"ButtonIcon",strokeWidth:2},new Ha("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof kr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Sd("CheckBoxButton",function(a){var y=fm(a);return a=Tu("Button",{desiredSize:new En(14,14)},Tu(kr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Hn,geometryStretch:Bi,visible:!1},y!==""?new Ha("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Yn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Sd("CheckBox",function(a){a=fm(a),a=Tu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new xr(0,1,0,0)});var y=Tu(Yn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new xr(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}),Dt.None=kn=new Gt(Dt,"None",0),Dt.Default=Er=new Gt(Dt,"Default",0),Dt.Vertical=nr=new Gt(Dt,"Vertical",4),Dt.Horizontal=ji=new Gt(Dt,"Horizontal",5),Dt.Fill=Hn=new Gt(Dt,"Fill",3),Dt.Uniform=Bi=new Gt(Dt,"Uniform",1),Dt.UniformToFill=Xr=new Gt(Dt,"UniformToFill",2),Dt.FlipVertical=Fr=new Gt(Dt,"FlipVertical",1),Dt.FlipHorizontal=io=new Gt(Dt,"FlipHorizontal",2),Dt.FlipBoth=Bo=new Gt(Dt,"FlipBoth",3),Dt.make=Tu,Dt.getBuilders=function(){var a=new Yt,y;for(y in Hf)if(y!==y.toLowerCase()){var x=Hf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Dt.defineBuilder=Sd,Dt.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Hf.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof Dt))return y&&E.set(y),E;yt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Dt.takeBuilderArgument=fm;function of(){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=ur,this.o=eo,this.hg=Er,this.ob=this.Bi=1,this.Pf=kn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}of.prototype.copy=function(){var a=new of;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 Zd(){this.u=-1/0,this.o=0,this.F=ai,this.rr=fl,this.j=this.V="None"}Zd.prototype.copy=function(){var a=new Zd;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},Zd.className="LinkElementSettings";function $g(){this.yj=this.Xi=ka,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}$g.prototype.copy=function(){var a=new $g;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},$g.className="LinkSettings";function Ih(){this.ha=[1,0,0,1,0,0]}Ih.prototype.copy=function(){var a=new Ih;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},Ih.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},Ih.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ih.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ee=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-x)}},Ih.className="STransform";function af(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}af.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},af.className="SGradient";function wc(a,y,x){this.ownerDocument=a=y===void 0?mn.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 Ql(this,x)}wc.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},wc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Rt(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},wc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},wc.prototype.focus=function(){this.Oa.focus()},wc.prototype.mx=function(){this.ownerDocument=null},wn.Object.defineProperties(wc.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}}}),wc.className="SVGSurface";function Ql(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 Ih,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=yo++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function $y(a,y,x,E,b,z,ee){a.Nj===void 0?ep(a,y,x,E,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ee+")")}Be=Ql.prototype,Be.arc=function(a,y,x,E,b,z,ee,re){var oe=2*Math.PI,de=oe-1e-6,fe=x*Math.cos(E),Se=x*Math.sin(E),Ce=a+fe,Ne=y+Se,De=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ee-Ce)||1e-6<Math.abs(re-Ne))&&this.path.push(["L",Ce,+Ne]),0>E&&(E=E%oe+oe),E>de?(this.path.push(["A",x,x,0,1,De,a-fe,y-Se]),this.path.push(["A",x,x,0,1,De,Ce,Ne])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),De,a+x*Math.cos(b),y+x*Math.sin(b)])},Be.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Be.Se=function(a){this.addPath(this.path,this.rb,a||0)},Be.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Be.clearRect=function(){},Be.clip=function(){this.Yl.clipPath=!0},Be.closePath=function(){this.path.push(["z"])},Be.createLinearGradient=function(a,y,x,E){var b=new af("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Be.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+yo++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(kh,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Be.createRadialGradient=function(a,y,x,E,b,z){var ee=new af("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=E,ee.y2=b,ee.r2=z,ee};function eS(a,y,x,E,b,z,ee,re,oe){E=re/E,b=oe/b,z===0&&ee===0||a.rb.translate(z,ee),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Be.drawImage=function(a,y,x,E,b,z,ee,re,oe){var de="";a instanceof HTMLCanvasElement&&(de=a.toDataURL()),a instanceof HTMLImageElement&&(de=a.getAttribute("src"));var fe=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ee=x,re=E=fe,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,eS(this,y,x,E,b,z||0,ee||0,re,oe),z={x:0,y:0,width:fe||E,height:a||b,href:de},It.$(E,re)&&It.$(b,oe)?de.toLowerCase().indexOf(".svg")===-1&&de.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==fe||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),jf(this,kh,z,this.rb),this.addElement(kh,z)},Be.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),av(this,this.Yl)},Be.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Be.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},jf(this,"fill",a,this.rb),this.addElement("rect",a)},Be.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},jf(this,"fill",a,this.rb),av(this,a),this.svg.prepend(this.Ud("rect",a))},Be.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},jf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Be.lineTo=function(a,y){this.path.push(["L",a,y])},Be.moveTo=function(a,y){this.path.push(["M",a,y])},Be.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Be.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Be.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},Be.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())},Be.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||ep(this,a,y,x,E,b,z)};function tS(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Be.scale=function(a,y){this.rb.scale(a,y)},Be.translate=function(a,y){this.rb.translate(a,y)},Be.transform=function(){},Be.yc=function(){},Be.stroke=function(){iS(this,this.Yl)},Be.jk=function(){this.clipInsteadOfFill||this.stroke()},Be.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Be.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 jf(a,y,x,E){y==="fill"?av(a,x):y==="stroke"&&iS(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function av(a,y){a.fillStyle instanceof af?y.fill=sv(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 nS(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof af?y.setAttributeNS(null,"fill",sv(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 iS(a,y){if(a.strokeStyle instanceof af)y.stroke=sv(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 sv(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+yo++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],ee=0;ee<y;ee++){var re=b[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(de,fe){return de.offset>fe.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}Be.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=Ni(a[b]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());E.push(ee.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,jf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function ep(a,y,x,E,b,z,ee){var re=new Ih;re.ha=[y,x,E,b,z,ee],y={},jf(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function gm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Bc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function $c(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Be.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Be.fs=function(){this.Ct=!1},Be.Vc=function(){},Be.Wx=function(){},Ql.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Ql.prototype.getImageData=function(){return null},Ql.prototype.measureText=function(){return null};function pm(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()))}Ql.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Ql.className="SVGContext",Jt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new wc(this,mn.document));var y=new wc(this,mn.document,!0);a===void 0&&(a=new Hi);var x=this;return qh(this,function(E,b){return E=um(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},Jt.prototype.makeSvg=Jt.prototype.Cs,Jt.prototype.av=function(a){return this.Cs(a)},Jt.prototype.makeSVG=Jt.prototype.av;function _u(a,y,x,E){this.ownerDocument=y=y===void 0?mn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Mh(y,x,E),y.H=a}_u.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},_u.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},_u.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},_u.prototype.focus=function(){this.Oa.focus()},_u.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},wn.Object.defineProperties(_u.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}}}),_u.className="CanvasSurface";function Mh(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&yt("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 $i,this.isTemporary=!!x}Be=Mh.prototype,Be.Wx=function(a){this.Z.imageSmoothingEnabled=a},Be.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Be.beginPath=function(){this.Z.beginPath()},Be.Se=function(){},Be.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Be.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Be.clip=function(){this.Z.clip()},Be.closePath=function(){this.Z.closePath()},Be.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Be.createPattern=function(a,y){return this.Z.createPattern(a,y)},Be.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Be.drawImage=function(a,y,x,E,b,z,ee,re,oe){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,ee,re,oe)},Be.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Be.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Be.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Be.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Be.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Be.lineTo=function(a,y){this.Z.lineTo(a,y)},Be.measureText=function(a){return this.Z.measureText(a)},Be.moveTo=function(a,y){this.Z.moveTo(a,y)},Be.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Be.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Be.restore=function(){this.Z.restore()},Be.save=function(){this.yc(),this.Z.save()},Mh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Be=Mh.prototype,Be.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Be.scale=function(a,y){this.El.scale(a,y)},Be.translate=function(a,y){this.El.translate(a,y)},Be.stroke=function(){this.Z.stroke()},Be.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*E,x=ee.m12*x+ee.m22*E,ee.dx=ee.m11*b+ee.m21*z+ee.dx,ee.dy=ee.m12*b+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Be.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Be.ng=function(a,y){if(a instanceof ko&&a.type===Au){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)},Be.jk=function(){this.Hm||this.stroke()},Be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Be.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Be.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ax),a.lineDashOffset=0)},Be.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Be.Hs=function(){},wn.Object.defineProperties(Mh.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 Ax=Object.freeze([]);Mh.className="CanvasSurfaceContext";function tp(){this.F=this.o=this.u=this.j=0}tp.className="ColorNumbers";function ko(a,y){Yf||(fv(),Yf=!0),tr(this),this._isFrozen=!1,a===void 0?(this.na=xd,this.xk="black"):typeof a=="string"?(this.na=xd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===td?(this.Qd=to,this.Lk=Ea):this.Lk=a===Au?this.Qd=vr:this.Qd=dr,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ko.prototype.copy=function(){var a=new ko;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},Be=ko.prototype,Be.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Be.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Be.qb=function(a){a.classType===ko&&(this.type=a)},Be.toString=function(){var a="Brush(";if(this.type===xd)a+=this.color;else if(a=this.type===td?a+"Linear ":this.type===Au?a+"Radial ":this.type===Kf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Be.addColorStop=function(a,y){return this._isFrozen&&zt(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&li(a,"0 <= loc <= 1",ko,"addColorStop:loc"),this.we===null&&(this.we=new Yt),this.we.add(a,y),this.na===xd&&(this.type=td),this.xe=null,this},Be.Vz=function(a,y){if(this._isFrozen&&zt(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Zf:y,this.type===xd)ed(this.color),this.color=Wf(a,y);else if((this.type===td||this.type===Au)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)ed(x.value),this.addColorStop(x.key,Wf(a,y));return this};function rS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Zf:x,ed(a),Wf(y,x)}Be.Wy=function(a,y){if(this._isFrozen&&zt(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Zf:y,this.type===xd)ed(this.color),this.color=Wf(-a,y);else if((this.type===td||this.type===Au)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)ed(x.value),this.addColorStop(x.key,Wf(-a,y));return this};function oS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Zf:x,ed(a),Wf(-y,x)}function lv(a,y,x){ed(a),a=$o.j;var E=$o.u,b=$o.o,z=$o.F;return ed(y),x===void 0&&(x=.5),"rgba("+Math.round(($o.j-a)*x+a)+", "+Math.round(($o.u-E)*x+E)+", "+Math.round(($o.o-b)*x+b)+", "+Math.round(($o.F-z)*x+z)+")"}Be.Gx=function(){if(this.type===xd)return Gf(this.color);if((this.type===td||this.type===Au)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Au)return Gf(a.first().value);if(a.get(.5)!==null)return Gf(a.get(.5));if(a.count===2)return a=a.Fa(),Gf(lv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(x=ee,b=re):z>=b&&re<z&&(E=ee,z=re)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Gf(lv(a.get(x),a.get(E),1-z/b))}return!1};function Gf(a){return a?a instanceof ko?a.Gx():(ed(a),128>(299*$o.j+587*$o.u+114*$o.o)/1e3):!1}function Wf(a,y){switch(y){case Zf:y=100*cv($o.j);var x=100*cv($o.u),E=100*cv($o.o);return dl.j=.4124564*y+.3575761*x+.1804375*E,dl.u=.2126729*y+.7151522*x+.072175*E,dl.o=.0193339*y+.119192*x+.9503041*E,dl.F=$o.F,y=hv(dl.j/Vf[0]),x=hv(dl.u/Vf[1]),E=hv(dl.o/Vf[2]),_c.j=116*x-16,_c.u=500*(y-x),_c.o=200*(x-E),_c.F=dl.F,_c.j=Math.min(100,Math.max(0,_c.j+100*a)),a=(_c.j+16)/116,y=a-_c.o/200,dl.j=Vf[0]*aS(_c.u/500+a),dl.u=Vf[1]*(_c.j>mm*gv?Math.pow(a,3):_c.j/mm),dl.o=Vf[2]*aS(y),dl.F=_c.F,a=-.969266*dl.j+1.8760108*dl.u+.041556*dl.o,y=.0556434*dl.j+-.2040259*dl.u+1.0572252*dl.o,$o.j=255*dv((3.2404542*dl.j+-1.5371385*dl.u+-.4985314*dl.o)/100),$o.u=255*dv(a/100),$o.o=255*dv(y/100),$o.F=dl.F,$o.j=Math.round($o.j),255<$o.j?$o.j=255:0>$o.j&&($o.j=0),$o.u=Math.round($o.u),255<$o.u?$o.u=255:0>$o.u&&($o.u=0),$o.o=Math.round($o.o),255<$o.o?$o.o=255:0>$o.o&&($o.o=0),"rgba("+$o.j+", "+$o.u+", "+$o.o+", "+$o.F+")";case sS:return uv(),gu.o=Math.min(100,Math.max(0,gu.o+100*a)),"hsla("+gu.j+", "+gu.u+"%, "+gu.o+"%, "+gu.F+")";default:yt("Unknown color space: "+y)}}function ed(a){Yf||(fv(),Yf=!0);var y=pv;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,$o.j=a[0],$o.u=a[1],$o.o=a[2],$o.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,$o.j=0,$o.u=0,$o.o=0,$o.F=1)}}function uv(){var a=$o.j/255,y=$o.u/255,x=$o.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var ee=a=0;else{switch(E){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}gu.j=Math.round(ee),gu.u=Math.round(100*a),gu.o=Math.round(100*b),gu.F=$o.F}function cv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function dv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>gv?Math.pow(a,1/3):(mm*a+16)/116}function aS(a){var y=a*a*a;return y>gv?y:(116*a-16)/mm}function sf(a,y){typeof a!="string"&&(a instanceof ko||yt("Value for "+y+" must be a color string or a Brush, not "+a))}function fv(){pv=Ca?new _u(null,void 0,{willReadFrequently:!0}).context:null}wn.Object.defineProperties(ko.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&zt(this,a),this.na=a,this.start.Mc()&&(a===td?this.start=to:a===Au&&(this.start=vr)),this.end.Mc()&&(a===td?this.end=Ea:a===Au&&(this.end=vr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&zt(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&zt(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&zt(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&zt(this,a),0>a&&li(a,">= zero",ko,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&zt(this,a),0>a&&li(a,">= zero",ko,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&zt(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&zt(this,a),this.cr=a,this.xe=null}}}),ko.prototype.isDark=ko.prototype.Gx,ko.prototype.darkenBy=ko.prototype.Wy,ko.prototype.lightenBy=ko.prototype.Vz,ko.prototype.addColorStop=ko.prototype.addColorStop;var gv=216/24389,mm=24389/27,Vf=[95.047,100,108.883],pv=null,$o=new tp,gu=new tp,dl=new tp,_c=new tp,Yf=!1;ko.className="Brush";var xd;ko.Solid=xd=new Gt(ko,"Solid",0);var td;ko.Linear=td=new Gt(ko,"Linear",1);var Au;ko.Radial=Au=new Gt(ko,"Radial",2);var Kf;ko.Pattern=Kf=new Gt(ko,"Pattern",4);var Zf;ko.Lab=Zf=new Gt(ko,"Lab",5);var sS;ko.HSL=sS=new Gt(ko,"HSL",6),ko.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},ko.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Yf||(fv(),Yf=!0);var y=pv;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)},ko.lighten=function(a){return rS(a)},ko.lightenBy=rS,ko.darken=function(a){return oS(a)},ko.darkenBy=oS,ko.mix=lv,ko.isDark=Gf;function $a(){this.xa="Base"}$a.prototype.measure=function(){},$a.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},$a.prototype.arrange=function(){},$a.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},$a.prototype.iA=function(a){a.Uj()},$a.prototype.gc=function(){},wn.Object.defineProperties($a.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Yn}}}),$a.prototype.remeasureObject=$a.prototype.iA,$a.prototype.arrangeElement=$a.prototype.Ly,$a.prototype.measureElement=$a.prototype.Yz,$a.className="PanelLayout";function vm(){this.xa="Base"}$t(vm,$a),vm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;a=nd(a);for(var oe=0;oe<re;oe++){var de=E[oe];if(de.visible||de===a){var fe=de.margin,Se=fe.right+fe.left;fe=fe.top+fe.bottom,de.measure(y,x,z,ee);var Ce=de.measuredBounds;Se=Math.max(Ce.width+Se,0),fe=Math.max(Ce.height+fe,0),Ce=de.position.x;var Ne=de.position.y;isFinite(Ce)||(Ce=0),isFinite(Ne)||(Ne=0),de instanceof kr&&de.isGeometryPositioned&&(de=de.strokeWidth/2,Ce-=de,Ne-=de),Gr(b,Ce,Ne,Se,fe)}}},vm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],ee=z.measuredBounds,re=z.margin,oe=z.position.x,de=z.position.y;if(oe=isNaN(oe)?-a:oe-a,de=isNaN(de)?-x:de-x,z instanceof kr&&z.isGeometryPositioned){var fe=z.strokeWidth/2;oe-=fe,de-=fe}z.visible&&z.arrange(oe+re.left,de+re.top,ee.width,ee.height)}};function ym(){this.xa="Base"}$t(ym,$a),ym.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;y=si(),z=nd(a);for(var oe=0;oe<re;oe++){var de=E[oe];if(de.visible||de===z){var fe=kl(de,!1);if(fe!==kn&&fe!==ji)y.push(de);else{de.measure(1/0,x,0,ee),fe=de.margin,de=de.measuredBounds;var Se=Math.max(de.height+fe.top+fe.bottom,0);b.width+=Math.max(de.width+fe.right+fe.left,0),b.height=Math.max(b.height,Se)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)oe=y[a],(oe.visible||oe===z)&&(fe=oe.margin,re=fe.right+fe.left,fe=fe.top+fe.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,fe=Math.max(oe.height+fe,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,fe));oi(y)},ym.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,ee=a.isOpposite,re=ee?x.width:b.left,oe=0;oe<E;oe++){var de=z,fe=y[oe];if(fe.visible){var Se=fe.measuredBounds,Ce=fe.margin,Ne=Ce.top+Ce.bottom,De=z+b.bottom,Ye=Se.height,ft=kl(fe,!1);(isNaN(fe.desiredSize.height)&&ft===Hn||ft===nr)&&(Ye=Math.max(x.height-Ne-De,0)),Ne=Ye+Ne+De,De=fe.alignment,De.Xb()&&(De=a.defaultAlignment),De.sb()||(De=vr),ee&&(re-=Se.width+Ce.left+Ce.right),fe.arrange(re+De.offsetX+Ce.left,de+De.offsetY+Ce.top+(x.height*De.y-Ne*De.y),Se.width,Ye),ee||(re+=Se.width+Ce.left+Ce.right)}}};function Sm(){this.xa="Base"}$t(Sm,$a),Sm.prototype.measure=function(a,y,x,E,b,z){var ee=E.length;x=si();for(var re=nd(a),oe=0;oe<ee;oe++){var de=E[oe];if(de.visible||de===re){var fe=kl(de,!1);if(fe!==kn&&fe!==nr)x.push(de);else{var Se=de.margin;fe=Se.right+Se.left,Se=Se.top+Se.bottom,de.measure(y,1/0,z,0),de=de.measuredBounds,mo(b,Math.max(b.width,Math.max(de.width+fe,0)),b.height+Math.max(de.height+Se,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)oe=x[a],(oe.visible||oe===re)&&(de=oe.margin,ee=de.right+de.left,de=de.top+de.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,de=Math.max(oe.height+de,0),b.width=Math.max(b.width,Math.max(oe.width+ee,0)),b.height+=de);oi(x)}},Sm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,ee=a.isOpposite,re=ee?x.height:b.top,oe=0;oe<E;oe++){var de=z,fe=y[oe];if(fe.visible){var Se=fe.measuredBounds,Ce=fe.margin,Ne=Ce.left+Ce.right,De=z+b.right,Ye=Se.width,ft=kl(fe,!1);(isNaN(fe.desiredSize.width)&&ft===Hn||ft===ji)&&(Ye=Math.max(x.width-Ne-De,0)),Ne=Ye+Ne+De,De=fe.alignment,De.Xb()&&(De=a.defaultAlignment),De.sb()||(De=vr),ee&&(re-=Se.height+Ce.bottom+Ce.top),fe.arrange(de+De.offsetX+Ce.left+(x.width*De.x-Ne*De.x),re+De.offsetY+Ce.top,Ye,Se.height),ee||(re+=Se.height+Ce.bottom+Ce.top)}}};function xm(){this.xa="Base"}$t(xm,$a),xm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),de=oe.margin,fe=de.right+de.left,Se=de.top+de.bottom;oe.measure(y,x,z,ee);var Ce=oe.measuredBounds;z=Ce.width,ee=Ce.height;var Ne=Math.max(z+fe,0),De=Math.max(ee+Se,0),Ye=a.isClipping,ft=qt.allocAt(-de.left,-de.top,Ne,De),ut=qt.allocAt(0,0,z,ee);mv(oe,ut,!0),z=ut.width,ee=ut.height;for(var vt=!0,St=nd(a),Tt=0;Tt<re;Tt++){var Mt=E[Tt];Ce=y;var Xt=x;if(Mt!==oe&&(Mt.visible||Mt===St)){de=Mt.margin;var pi=de.left,Di=de.top;switch(Ne=de.right+de.left,De=de.top+de.bottom,de=kl(Mt,!1),de){case Hn:Ce=z,Xt=ee,Di=pi=De=Ne=0;break;case ji:Ce=z,pi=Ne=0;break;case nr:Xt=ee,Di=De=0}Mt.measure(Ce,Xt,0,0),Ce=Mt.measuredBounds,Ne=Math.max(Ce.width+Ne,0),De=Math.max(Ce.height+De,0),de=Mt.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=vr);var Ai=Mt.alignmentFocus;if(Ai.Xb()&&(Ai=vr),Xt=null,Mt instanceof Yn&&Mt.$e!==""&&(Xt=Mt.fb(Mt.$e),Xt===Mt&&(Xt=null)),pi=ut.x-pi,Di=ut.y-Di,Xt!==null){for(Mt.arrange(0,0,Ce.width,Ce.height),Ce=Xt.actualBounds,Ce=qe.allocAt(Ce.x+(Ai.x*Ce.width-Ai.offsetX),Ce.y+(Ai.y*Ce.height-Ai.offsetY)),Xt=Xt.panel;Xt!==Mt;)Xt.transform.Ga(Ce),Xt=Xt.panel;pi+=de.x*z+de.offsetX-Ce.x,Di+=de.y*ee+de.offsetY-Ce.y,qe.free(Ce)}else pi+=de.x*z+de.offsetX-(Ai.x*Ce.width+Ai.offsetX),Di+=de.y*ee+de.offsetY-(Ai.y*Ce.height+Ai.offsetY);vt?(vt=!1,b.h(pi,Di,Ne,De)):Gr(b,pi,Di,Ne,De)}}switch(vt?b.assign(ft):Ye?b.Uu(ut.x,ut.y,ut.width,ut.height):Gr(b,ft.x,ft.y,ft.width,ft.height),qt.free(ft),qt.free(ut),de=oe.stretch,de===Er&&(de=kl(oe,!1)),de){case kn:return;case Hn:if(!isFinite(y)&&!isFinite(x))return;break;case ji:if(!isFinite(y))return;break;case nr:if(!isFinite(x))return}for(Ce=oe.measuredBounds,z=Ce.width,ee=Ce.height,Ne=Math.max(z+fe,0),De=Math.max(ee+Se,0),de=oe.margin,ut=qt.allocAt(-de.left,-de.top,Ne,De),mv(oe,ut,!0),z=ut.width,ee=ut.height,y=0;y<re;y++)x=E[y],x===oe||!x.visible&&x!==St||(de=x.margin,Ne=de.right+de.left,De=de.top+de.bottom,Ce=x.measuredBounds,Ne=Math.max(Ce.width+Ne,0),De=Math.max(Ce.height+De,0),fe=x.alignment,fe.Xb()&&(fe=a.defaultAlignment),fe.sb()||(fe=vr),x=x.alignmentFocus,x.Xb()&&(x=vr),vt?(vt=!1,b.h(fe.x*z+fe.offsetX-(x.x*Ce.width+x.offsetX)-de.left,fe.y*ee+fe.offsetY-(x.y*Ce.height+x.offsetY)-de.top,Ne,De)):Gr(b,fe.x*z+fe.offsetX-(x.x*Ce.width+x.offsetX)-de.left,fe.y*ee+fe.offsetY-(x.y*Ce.height+x.offsetY)-de.top,Ne,De));vt?b.assign(ft):Ye?b.Uu(ut.x,ut.y,ut.width,ut.height):Gr(b,ft.x,ft.y,ft.width,ft.height),qt.free(ut)},xm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var de=z-x.x,fe=oe-x.y;for(b.arrange(de,fe,ee,re),ee=qt.allocAt(0,0,ee,re),mv(b,ee,!1),re=0;re<E;re++){var Se=y[re];if(Se!==b){de=Se.measuredBounds;var Ce=de.width,Ne=de.height;fe=Se.alignment,fe.Xb()&&(fe=a.defaultAlignment),fe.sb()||(fe=vr);var De=Se.alignmentFocus;if(De.Xb()&&(De=vr),de=null,Se instanceof Yn&&Se.$e!==""&&(de=Se.fb(Se.$e),de===Se&&(de=null)),de!==null){var Ye=de.actualBounds;for(De=qe.allocAt(Ye.x+(De.x*Ye.width-De.offsetX),Ye.y+(De.y*Ye.height-De.offsetY)),de=de.panel;de!==Se;)de.transform.Ga(De),de=de.panel;de=fe.x*ee.width+fe.offsetX-De.x,fe=fe.y*ee.height+fe.offsetY-De.y,qe.free(De)}else de=fe.x*ee.width+fe.offsetX-(De.x*Ce+De.offsetX),fe=fe.y*ee.height+fe.offsetY-(De.y*Ne+De.offsetY);de+=ee.x-x.x,fe+=ee.y-x.y,Se.visible&&Se.arrange(z+de,oe+fe,Ce,Ne)}}qt.free(ee)};function mv(a,y,x){var E=null;if(a instanceof Yn&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function Em(){this.xa="Base"}$t(Em,$a),Em.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),de=oe.margin,fe=y,Se=x,Ce=de.right+de.left,Ne=de.top+de.bottom;oe.measure(y,x,z,ee),de=oe.measuredBounds;var De=0,Ye=null;oe instanceof kr&&(Ye=oe,De=Ye.strokeWidth*Ye.scale);var ft=Math.max(de.width+Ce,0);de=Math.max(de.height+Ne,0);var ut=xv(oe),vt=ut.x*ft+ut.offsetX;ut=ut.y*de+ut.offsetY;var St=Ev(oe),Tt=St.x*ft+St.offsetX;for(St=St.y*de+St.offsetY,isFinite(y)&&(fe=Math.max(Math.abs(vt-Tt)-De,0)),isFinite(x)&&(Se=Math.max(Math.abs(ut-St)-De,0)),De=En.alloc(),De.h(0,0),a=nd(a),St=0;St<re;St++)ut=E[St],ut===oe||!ut.visible&&ut!==a||(de=ut.margin,ft=de.right+de.left,vt=de.top+de.bottom,ut.measure(fe,Se,0,0),de=ut.measuredBounds,ft=Math.max(de.width+ft,0),de=Math.max(de.height+vt,0),De.h(Math.max(ft,De.width),Math.max(de,De.height)));if(re===1)b.width=ft,b.height=de,En.free(De);else{switch(ut=xv(oe),St=Ev(oe),re=E=0,St.x!==ut.x&&St.y!==ut.y&&(E=De.width/Math.abs(St.x-ut.x),re=De.height/Math.abs(St.y-ut.y)),En.free(De),De=0,Ye!==null&&(De=Ye.strokeWidth*Ye.scale,Pv(Ye)===Bi&&(E=re=Math.max(E,re))),E+=Math.abs(ut.offsetX)+Math.abs(St.offsetX)+De,re+=Math.abs(ut.offsetY)+Math.abs(St.offsetY)+De,Ye=oe.stretch,Ye===Er&&(Ye=kl(oe,!1)),Ye){case kn:ee=z=0;break;case Hn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case ji:isFinite(y)&&(E=y),ee=0;break;case nr:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(E,re,z,ee),b.width=oe.measuredBounds.width+Ce,b.height=oe.measuredBounds.height+Ne}},Em.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=qt.alloc();z.h(0,0,1,1);var ee=E.margin,re=ee.left;ee=ee.top;var oe=a.padding,de=oe.left;oe=oe.top,E.arrange(de+re,oe+ee,b.width,b.height);var fe=xv(E),Se=Ev(E),Ce=fe.y*b.height+fe.offsetY,Ne=Se.x*b.width+Se.offsetX;for(Se=Se.y*b.height+Se.offsetY,z.x=fe.x*b.width+fe.offsetX,z.y=Ce,Gr(z,Ne,Se,0,0),z.x+=re+de,z.y+=ee+oe,b=0;b<x;b++)re=y[b],re!==E&&(de=re.measuredBounds,ee=re.margin,oe=Math.max(de.width+ee.right+ee.left,0),fe=Math.max(de.height+ee.top+ee.bottom,0),Ce=re.alignment,Ce.Xb()&&(Ce=a.defaultAlignment),Ce.sb()||(Ce=vr),oe=z.width*Ce.x+Ce.offsetX-oe*Ce.x+ee.left+z.x,ee=z.height*Ce.y+Ce.offsetY-fe*Ce.y+ee.top+z.y,re.visible&&(Uo(z.x,z.y,z.width,z.height,oe,ee,de.width,de.height)?re.arrange(oe,ee,de.width,de.height):re.arrange(oe,ee,de.width,de.height,new qt(z.x,z.y,z.width,z.height))));qt.free(z)};function bm(){this.xa="Base",this.name="Table"}$t(bm,$a),bm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ee=si(),re=si(),oe=0;oe<z;oe++){var de=E[oe],fe=de instanceof Yn?de:null;if(fe!==null&&Ed(fe)&&de.visible){re.push(fe);for(var Se=fe.O.s,Ce=Se.length,Ne=0;Ne<Ce;Ne++){var De=Se[Ne];fe.type===Yn.TableRow?De.row=de.row:fe.type===Yn.TableColumn&&(De.column=de.column),ee.push(De)}}else ee.push(de)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Ye=[],ft=0;ft<z;ft++){var ut=ee[ft];ut.visible&&(Xa(ut,!0),Fc(ut,!0),Ye[ut.row]||(Ye[ut.row]=[]),Ye[ut.row][ut.column]||(Ye[ut.row][ut.column]=[]),Ye[ut.row][ut.column].push(ut))}oi(ee);var vt=si(),St=si(),Tt=si(),Mt={count:0},Xt={count:0},pi=y,Di=x,Ai=a.rowDefs,$n=a.colDefs,Cn=null;z=Ai.length;for(var mr=0;mr<z;mr++)Cn=Ai[mr],Cn!==void 0&&(Cn.actual=0);z=$n.length;for(var ar=0;ar<z;ar++)Cn=$n[ar],Cn!==void 0&&(Cn.actual=0);for(var xo=Ye.length,Xo=0,ds=0;ds<xo;ds++)Ye[ds]&&(Xo=Math.max(Xo,Ye[ds].length));var ps=Math.min(a.topIndex,xo-1),nl=Math.min(a.leftIndex,Xo-1),hs=0;xo=Ye.length;for(var Id=nd(a),ja=0;ja<xo;ja++)if(Ye[ja]){Xo=Ye[ja].length;var pc=a.Fb(ja);pc.actual=0;for(var il=pc.oc=0;il<Xo;il++)if(Ye[ja][il]){var Md=a.Eb(il);vt[il]===void 0&&(Md.actual=0,Md.oc=0,vt[il]=!0);for(var vu=Ye[ja][il],ju=vu.length,$l=0;$l<ju;$l++){var zl=vu[$l];if(zl.visible||zl===Id){var lh=1<zl.rowSpan||1<zl.columnSpan;lh&&(ja<ps||il<nl||St.push(zl));var mc=zl.margin,vg=mc.right+mc.left,eu=mc.top+mc.bottom,rl=cc(zl,pc,Md,!1),jp=zl.desiredSize,Sf=!isNaN(jp.height),Ac=!isNaN(jp.width)&&Sf;if(lh||rl===kn||Ac||ja<ps||il<nl||(Mt[il]!==void 0||rl!==Hn&&rl!==ji||(Mt[il]=-1,Mt.count++),Xt[ja]!==void 0||rl!==Hn&&rl!==nr||(Xt[ja]=-1,Xt.count++),Tt.push(zl)),zl.measure(1/0,1/0,0,0),!(ja<ps||il<nl)){var Hl=zl.measuredBounds,Hh=Math.max(Hl.width+vg,0),tu=Math.max(Hl.height+eu,0);if(zl.rowSpan===1&&(rl===kn||rl===ji)){Cn=a.Fb(ja);var uh=Cn.Wc();hs=Math.max(tu-Cn.actual,0),hs+uh>Di&&(hs=Math.max(Di-uh,0));var V0=Cn.oa===0;Cn.oc=Cn.oc+hs,Cn.actual=Cn.oa+hs,Di=Math.max(Di-(hs+(V0?uh:0)),0)}if(zl.columnSpan===1&&(rl===kn||rl===nr)){Cn=a.Eb(il);var Gp=Cn.Wc();hs=Math.max(Hh-Cn.actual,0),hs+Gp>pi&&(hs=Math.max(pi-Gp,0));var Gy=Cn.oa===0;Cn.oc=Cn.oc+hs,Cn.actual=Cn.oa+hs,pi=Math.max(pi-(hs+(Gy?Gp:0)),0)}lh&&zl.Uj()}}}}}oi(vt);var Kc=0,od=0;z=a.columnCount;for(var xf=0;xf<z;xf++){var ch=$n[xf];ch!==void 0&&(Kc+=isNaN(ch.Hc)?ch.oc:ch.Hc,ch.oc!==0&&(Kc+=ch.Wc()))}z=a.rowCount;for(var yg=0;yg<z;yg++){var dh=Ai[yg];dh!==void 0&&(od+=isNaN(dh.Hc)?dh.oc:dh.Hc,dh.oc!==0&&(od+=dh.Wc()))}pi=Math.max(y-Kc,0);var Zc=Di=Math.max(x-od,0),Rd=pi;z=Tt.length;for(var jl=0;jl<z;jl++){var Pc=Tt[jl],Y0=a.Fb(Pc.row),ad=a.Eb(Pc.column),Sg=Pc.measuredBounds,vc=Pc.margin,jh=vc.right+vc.left,kc=vc.top+vc.bottom;Mt[Pc.column]=ad.oc===0&&Mt[Pc.column]!==void 0?Math.max(Sg.width+jh,Mt[Pc.column]):null,Xt[Pc.row]=Y0.oc===0&&Xt[Pc.row]!==void 0?Math.max(Sg.height+kc,Xt[Pc.row]):null}var Ef=0,xg=0,oc;for(oc in Xt)oc!=="count"&&(Ef+=Xt[oc]);for(oc in Mt)oc!=="count"&&(xg+=Mt[oc]);for(var ks=En.alloc(),Wp=0;Wp<z;Wp++){var yl=Tt[Wp];if(yl.visible||yl===Id){var Ga=a.Fb(yl.row),Sl=a.Eb(yl.column),sd=0;isFinite(Sl.width)?sd=Sl.width:(isFinite(pi)&&Mt[yl.column]!==null?xg===0?sd=Sl.actual+pi:sd=Mt[yl.column]/xg*Rd:Mt[yl.column]!==null?sd=pi:sd=Sl.actual||pi,sd=Math.max(0,sd-Sl.Wc()));var Od=0;switch(isFinite(Ga.height)?Od=Ga.height:(isFinite(Di)&&Xt[yl.row]!==null?Ef===0?Od=Ga.actual+Di:Od=Xt[yl.row]/Ef*Zc:Xt[yl.row]!==null?Od=Di:Od=Ga.actual||Di,Od=Math.max(0,Od-Ga.Wc())),ks.h(Math.max(Sl.minimum,Math.min(sd,Sl.maximum)),Math.max(Ga.minimum,Math.min(Od,Ga.maximum))),rl=cc(yl,Ga,Sl,!1),rl){case ji:ks.height=Math.max(ks.height,Ga.actual+Di);break;case nr:ks.width=Math.max(ks.width,Sl.actual+pi)}var Gh=yl.margin,Wy=Gh.right+Gh.left,K0=Gh.top+Gh.bottom;yl.Uj(),yl.measure(ks.width,ks.height,Sl.minimum,Ga.minimum);var Eg=yl.measuredBounds,Wh=Math.max(Eg.width+Wy,0),bf=Math.max(Eg.height+K0,0);isFinite(pi)&&(Wh=Math.min(Wh,ks.width)),isFinite(Di)&&(bf=Math.min(bf,ks.height));var Gl=0;Gl=Ga.actual,Ga.actual=Math.max(Ga.actual,bf),Ga.oc=Math.max(Ga.oc,bf),hs=Ga.actual-Gl,Di=Math.max(Di-hs,0),Xt[yl.row]===null&&(Zc=Math.max(Zc-hs,0)),Gl=Sl.actual,Sl.actual=Math.max(Sl.actual,Wh),Sl.oc=Math.max(Sl.oc,Wh),hs=Sl.actual-Gl,pi=Math.max(pi-hs,0),Mt[yl.column]===null&&(Rd=Math.max(Rd-hs,0))}}oi(Tt);var ld=En.alloc(),yc=si(),Iu=si();if(z=St.length,z!==0){for(var hh=0;hh<xo;hh++)if(Ye[hh]){Xo=Ye[hh].length;var bg=a.Fb(hh);yc[hh]=bg.actual;for(var fh=0;fh<Xo;fh++)if(Ye[hh][fh]){var Z0=a.Eb(fh);Iu[fh]=Z0.actual}}}for(var wg=0;wg<z;wg++){var Ia=St[wg];if(Ia.visible||Ia===Id){var ac=a.Fb(Ia.row),Gu=a.Eb(Ia.column);switch(ks.h(Math.max(Gu.minimum,Math.min(y,Gu.maximum)),Math.max(ac.minimum,Math.min(x,ac.maximum))),rl=cc(Ia,ac,Gu,!1),rl){case Hn:Iu[Gu.index]!==0&&(ks.width=Math.min(ks.width,Iu[Gu.index])),yc[ac.index]!==0&&(ks.height=Math.min(ks.height,yc[ac.index]));break;case ji:Iu[Gu.index]!==0&&(ks.width=Math.min(ks.width,Iu[Gu.index]));break;case nr:yc[ac.index]!==0&&(ks.height=Math.min(ks.height,yc[ac.index]))}isFinite(Gu.width)&&(ks.width=Gu.width),isFinite(ac.height)&&(ks.height=ac.height),ld.h(0,0);for(var X0=Gu.minimum,nu=ac.minimum,Dd=1;Dd<Ia.rowSpan&&!(Ia.row+Dd>=a.rowCount);Dd++)Cn=a.Fb(Ia.row+Dd),hs=0,hs=rl===Hn||rl===nr?Math.max(Cn.minimum,yc[Ia.row+Dd]===0?Cn.maximum:Math.min(yc[Ia.row+Dd],Cn.maximum)):Math.max(Cn.minimum,isNaN(Cn.Hc)?Cn.maximum:Math.min(Cn.Hc,Cn.maximum)),ld.height+=hs,nu+=Cn.minimum;for(var Wu=1;Wu<Ia.columnSpan&&!(Ia.column+Wu>=a.columnCount);Wu++)Cn=a.Eb(Ia.column+Wu),hs=0,hs=rl===Hn||rl===ji?Math.max(Cn.minimum,Iu[Ia.column+Wu]===0?Cn.maximum:Math.min(Iu[Ia.column+Wu],Cn.maximum)):Math.max(Cn.minimum,isNaN(Cn.Hc)?Cn.maximum:Math.min(Cn.Hc,Cn.maximum)),ld.width+=hs,X0+=Cn.minimum;ks.width+=ld.width,ks.height+=ld.height;var Cg=Ia.margin,gh=Cg.right+Cg.left,Vp=Cg.top+Cg.bottom;Ia.measure(ks.width,ks.height,X0,nu);for(var Tg=Ia.measuredBounds,Nc=Math.max(Tg.width+gh,0),Vh=Math.max(Tg.height+Vp,0),ph=0,Ag=0;Ag<Ia.rowSpan&&!(Ia.row+Ag>=a.rowCount);Ag++)Cn=a.Fb(Ia.row+Ag),ph+=Cn.total||0;if(ph<Vh){var Fd=Vh-ph,Xc=Vh-ph;if(Ia.spanAllocation!==null)for(var Bd=Ia.spanAllocation,ud=0;ud<Ia.rowSpan&&!(0>=Fd)&&!(Ia.row+ud>=a.rowCount);ud++){Cn=a.Fb(Ia.row+ud);var _d=Cn.oa||0,Yh=Bd(Ia,Cn,Xc);Cn.actual=Math.min(Cn.maximum,_d+Yh),Cn.oa!==_d&&(Fd-=Cn.oa-_d)}for(;0<Fd;){var Sc=Cn.oa||0;if(isNaN(Cn.height)&&Cn.maximum>Sc&&(Cn.actual=Math.min(Cn.maximum,Sc+Fd),Cn.oa!==Sc&&(Fd-=Cn.oa-Sc)),Cn.index===0)break;Cn=a.Fb(Cn.index-1)}}for(var wf=0,Ud=0;Ud<Ia.columnSpan&&!(Ia.column+Ud>=a.columnCount);Ud++)Cn=a.Eb(Ia.column+Ud),wf+=Cn.total||0;if(wf<Nc){var Cf=Nc-wf,Vy=Nc-wf;if(Ia.spanAllocation!==null)for(var cd=Ia.spanAllocation,Kh=0;Kh<Ia.columnSpan&&!(0>=Cf)&&!(Ia.column+Kh>=a.columnCount);Kh++){Cn=a.Eb(Ia.column+Kh);var Yp=Cn.oa||0,Yy=cd(Ia,Cn,Vy);Cn.actual=Math.min(Cn.maximum,Yp+Yy),Cn.oa!==Yp&&(Cf-=Cn.oa-Yp)}for(;0<Cf;){var Q0=Cn.oa||0;if(isNaN(Cn.width)&&Cn.maximum>Q0&&(Cn.actual=Math.min(Cn.maximum,Q0+Cf),Cn.oa!==Q0&&(Cf-=Cn.oa-Q0)),Cn.index===0)break;Cn=a.Eb(Cn.index-1)}}}}oi(St),En.free(ld),En.free(ks),yc!==void 0&&oi(yc),Iu!==void 0&&oi(Iu);var Tf=0,Af=0,J0=a.desiredSize,xx=a.maxSize;rl=kl(a,!0);var Kp=od=Kc=0,Zp=0;z=a.columnCount;for(var q0=0;q0<z;q0++)$n[q0]!==void 0&&(Cn=a.Eb(q0),isFinite(Cn.width)?(Kp+=Cn.width,Kp+=Cn.Wc()):Mm(Cn)===op?(Kp+=Cn.oa,Kp+=Cn.Wc()):Cn.oa!==0&&(Kc+=Cn.oa,Kc+=Cn.Wc()));isFinite(J0.width)?Tf=Math.min(J0.width,xx.width):Tf=rl!==kn&&isFinite(y)?y:Kc,Tf=Math.max(Tf,a.minSize.width),Tf=Math.max(Tf-Kp,0);for(var sE=Kc===0?1:Math.max(Tf/Kc,1),$0=0;$0<z;$0++)$n[$0]!==void 0&&(Cn=a.Eb($0),isFinite(Cn.width)||Mm(Cn)===op||(Cn.actual=Cn.oa*sE),Cn.position=b.width,Cn.oa!==0&&(b.width+=Cn.oa,b.width+=Cn.Wc()));z=a.rowCount;for(var ev=0;ev<z;ev++)Ai[ev]!==void 0&&(Cn=a.Fb(ev),isFinite(Cn.height)?(Zp+=Cn.height,Zp+=Cn.Wc()):Mm(Cn)===op?(Zp+=Cn.oa,Zp+=Cn.Wc()):Cn.oa!==0&&(od+=Cn.oa,od+=Cn.Wc()));isFinite(J0.height)?Af=Math.min(J0.height,xx.height):Af=rl!==kn&&isFinite(x)?x:od,Af=Math.max(Af,a.minSize.height),Af=Math.max(Af-Zp,0);for(var lE=od===0?1:Math.max(Af/od,1),tv=0;tv<z;tv++)Ai[tv]!==void 0&&(Cn=a.Fb(tv),isFinite(Cn.height)||Mm(Cn)===op||(Cn.actual=Cn.oa*lE),Cn.position=b.height,Cn.oa!==0&&(b.height+=Cn.oa,b.height+=Cn.Wc()));z=re.length;for(var Ky=0;Ky<z;Ky++){var Xp=re[Ky],Zy=0,Xy=0;Xp.type===Yn.TableRow?(Zy=b.width,Cn=a.Fb(Xp.row),Xy=Cn.actual):(Cn=a.Eb(Xp.column),Zy=Cn.actual,Xy=b.height),Xp.measuredBounds.h(0,0,Zy,Xy),Xa(Xp,!1)}oi(re),a.inRowsCols=Ye},bm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,de=ee.length,fe=0,Se=0;Se<de;Se++)ee[Se]&&(fe=Math.max(fe,ee[Se].length));oe=a.rowDefs,re=a.colDefs;var Ce=Se=0,Ne=Math.min(a.topIndex,de-1);if(0<oe.length){for(;Ne!==de&&(oe[Ne]===void 0||oe[Ne].oa===0);)Ne++;Ne=Math.max(Math.min(Ne,de-1),0),Se=-oe[Ne].position}var De=Math.min(a.leftIndex,fe-1);if(0<re.length){for(;De!==fe&&(re[De]===void 0||re[De].oa===0);)De++;De=Math.max(Math.min(De,fe-1),0),Ce=-re[De].position}for(var Ye=0,ft=0;Ye!==de&&oe[Ye]===void 0;)Ye++;for(;ft!==de&&re[ft]===void 0;)ft++;fe=a.part,a.Fb(Ye),a.Eb(ft);for(var ut=0;ut<y.length;ut++){var vt=y[ut];if(vt instanceof Yn&&vt.visible&&Ed(vt)){if(vt.type===Yn.TableRow){re=a.Fb(vt.row);var St=a.Eb(ft)}else re=a.Fb(Ye),St=a.Eb(vt.column);oe=re.position+Se+b,re.oa!==0&&(oe+=re.Io(Math.max(Ye,Ne))),re=St.position+Ce+z,St.oa!==0&&(re+=St.Io(Math.max(ft,De))),St=vt.measuredBounds,vt.Uk(),vt.actualBounds.ka();var Tt=vt.actualBounds,Mt=qt.allocAt(Tt.x,Tt.y,Tt.width,Tt.height);Tt.x=vt.type===Yn.TableRow?z:re,Tt.y=vt.type===Yn.TableColumn?b:oe,Tt.width=St.width,Tt.height=St.height,vt.actualBounds.freeze(),Fc(vt,!1),fr(Mt,Tt)||fe===null||(fe.oh(),vt.Pn(fe)),qt.free(Mt)}}for(ut=En.alloc(),vt=0;vt<de;vt++)if(ee[vt]){for(fe=ee[vt].length,St=a.Fb(vt),oe=St.position+Se+b,St.oa!==0&&(oe+=St.Io(Math.max(Ye,Ne))),Tt=0;Tt<fe;Tt++)if(ee[vt][Tt]){Mt=a.Eb(Tt),re=Mt.position+Ce+z,Mt.oa!==0&&(re+=Mt.Io(Math.max(ft,De)));for(var Xt=ee[vt][Tt],pi=Xt.length,Di=0;Di<pi;Di++){var Ai=Xt[Di],$n=Ai.measuredBounds;ut.h(0,0);for(var Cn=1;Cn<Ai.rowSpan&&!(vt+Cn>=a.rowCount);Cn++){var mr=a.Fb(vt+Cn);mr.oa!==0&&(ut.height+=mr.total)}for(Cn=1;Cn<Ai.columnSpan&&!(Tt+Cn>=a.columnCount);Cn++)mr=a.Eb(Tt+Cn),mr.oa!==0&&(ut.width+=mr.total);var ar=Mt.oa+ut.width,xo=St.oa+ut.height;Cn=re,mr=oe;var Xo=ar,ds=xo,ps=re,nl=oe,hs=ar,Id=xo;re+ar>x.width&&(hs=Math.max(x.width-re,0)),oe+xo>x.height&&(Id=Math.max(x.height-oe,0));var ja=Ai.alignment;if(ja.Xb()){ja=a.defaultAlignment,ja.sb()||(ja=vr);var pc=ja.x,il=ja.y,Md=ja.offsetX;ja=ja.offsetY;var vu=Mt.alignment,ju=St.alignment;vu.sb()&&(pc=vu.x,Md=vu.offsetX),ju.sb()&&(il=ju.y,ja=ju.offsetY)}else pc=ja.x,il=ja.y,Md=ja.offsetX,ja=ja.offsetY;(isNaN(pc)||isNaN(il))&&(il=pc=.5,ja=Md=0),vu=$n.width,ju=$n.height;var $l=Ai.margin,zl=$l.left+$l.right,lh=$l.top+$l.bottom,mc=cc(Ai,St,Mt,!1);!isNaN(Ai.desiredSize.width)||mc!==Hn&&mc!==ji||(vu=Math.max(ar-zl,0)),!isNaN(Ai.desiredSize.height)||mc!==Hn&&mc!==nr||(ju=Math.max(xo-lh,0)),ar=Ai.maxSize,xo=Ai.minSize,vu=Math.min(ar.width,vu),ju=Math.min(ar.height,ju),vu=Math.max(xo.width,vu),ju=Math.max(xo.height,ju),ar=ju+lh,Cn+=Xo*pc-(vu+zl)*pc+Md+$l.left,mr+=ds*il-ar*il+ja+$l.top,Ai.visible&&(Uo(ps,nl,hs,Id,Cn,mr,$n.width,$n.height)?Ai.arrange(Cn,mr,vu,ju):Ai.arrange(Cn,mr,vu,ju,new qt(ps,nl,hs,Id)))}}}for(En.free(ut),a=0;a<E;a++)x=y[a],z=x instanceof Yn?x:null,z!==null&&Ed(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function wm(){this.xa="Base"}$t(wm,$a),wm.prototype.measure=function(){},wm.prototype.arrange=function(){};function Cm(){this.xa="Base"}$t(Cm,$a),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Tm(){this.xa="Base"}$t(Tm,$a),Tm.prototype.measure=function(a,y,x,E,b,z,ee){1<E.length&&yt("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ee);var re=E.measuredBounds,oe=E.margin,de=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var fe=E.scale,Se=re.width;re=re.height;var Ce=Math.max(y-de,0),Ne=Math.max(x-oe,0),De=1;a.viewboxStretch===Bi?Se!==0&&re!==0&&(De=Math.min(Ce/Se,Ne/re)):Se!==0&&re!==0&&(De=Math.max(Ce/Se,Ne/re)),De===0&&(De=1e-4),E.Ca*=De,fe!==E.scale&&(Xa(E,!0),E.measure(1/0,1/0,z,ee))}re=E.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+de,0),b.height=isFinite(x)?x:Math.max(re.height+oe,0)},Tm.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=vr),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-b*ee.y+ee.offsetY,E.width,E.height)};function np(){this.xa="Base"}$t(np,$a),np.prototype.measure=function(){},np.prototype.arrange=function(){},np.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,de=Math.ceil(re/b),fe=Math.ceil(oe/E),Se=a.gridOrigin,Ce=Se.x;Se=Se.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Ne=[],De=a.O.s,Ye=De.length,ft=0;ft<Ye;ft++){var ut=De[ft],vt=[];if(Ne.push(vt),ut.visible){var St=ut.interval;if(!(0>St)){ut=yv(ut.figure);for(var Tt=0;Tt<Ye;Tt++)if(Tt!==ft){var Mt=De[Tt];Mt.visible&&yv(Mt.figure)===ut&&(Mt=Mt.interval,Mt>St&&vt.push(Mt))}}}}for(De=a.O.s,Ye=De.length,ft=0;ft<Ye;ft++){var Xt=De[ft];if(Xt.visible&&(vt=Xt.interval||1,ut=Math.abs(vt),!(2>b*ut*x))){if(St=Xt.segmentIndex,(!isFinite(St)||isNaN(St))&&(St=0),0>St&&(St=ut-Math.min(-St,ut)),St=Math.round(St%ut),ut=Xt.opacity,Tt=1,ut!==1){if(ut===0)continue;Tt=y.globalAlpha,y.globalAlpha=Tt*ut}Mt=Ne[ft];var pi=!1,Di=Xt.strokeDashArray;if(Di!==null&&(pi=!0,y.js(Di,Xt.strokeDashOffset)),Xt.figure==="LineV"&&Xt.stroke!==null&&0<Xt.strokeWidth){for(y.lineWidth=Xt.strokeWidth,Aa(a,y,Xt.stroke,!1,!1,z,ee),y.beginPath(),Di=Xt=Math.floor((Ce-b)/b);Di<=Xt+de;Di++){var Ai=Di*b+Ce;0<=Ai&&Ai<=re&&Am(Di,vt,St,Mt)&&(y.moveTo(Ai,0),y.lineTo(Ai,oe))}y.stroke(),y.Se()}else if(Xt.figure==="LineH"&&Xt.stroke!==null&&0<Xt.strokeWidth){for(y.lineWidth=Xt.strokeWidth,Aa(a,y,Xt.stroke,!1,!1,z,ee),y.beginPath(),Di=Xt=Math.floor((Se-E)/E);Di<=Xt+fe;Di++)Ai=Di*E+Se,0<=Ai&&Ai<=oe&&Am(Di,vt,St,Mt)&&(y.moveTo(0,Ai),y.lineTo(re,Ai));y.stroke(),y.Se()}else if(Xt.figure==="BarV"&&Xt.fill!==null)for(Aa(a,y,Xt.fill,!0,!1,z,ee),Xt=Xt.width,isNaN(Xt)&&(Xt=b),Ai=Di=Math.floor((Ce-b)/b);Ai<=Di+de;Ai++){var $n=Ai*b+Ce;0<=$n+Xt&&$n<=re&&Am(Ai,vt,St,Mt)&&y.fillRect($n,0,Xt,oe)}else if(Xt.figure==="BarH"&&Xt.fill!==null)for(Aa(a,y,Xt.fill,!0,!1,z,ee),Xt=Xt.height,isNaN(Xt)&&(Xt=E),Ai=Di=Math.floor((Se-E)/E);Ai<=Di+fe;Ai++)$n=Ai*E+Se,0<=$n+Xt&&$n<=oe&&Am(Ai,vt,St,Mt)&&y.fillRect(0,$n,re,Xt);pi&&y.fs(),ut!==1&&(y.globalAlpha=Tt)}}y.restore(),y.Vc(!1)};function Am(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function Pm(){this.xa="Base"}$t(Pm,$a),Pm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof so||a instanceof ei){var ee=null,re=null;if(a instanceof ei&&(ee=a),a instanceof so&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof ei){var oe=ee;if(z===0)mo(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var de=a instanceof so?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var fe=oe.points,Se=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var Ce=y.height,Ne=a.j;if(Ne.length=0,de!==null){lS(a,re,Ce,de);var De=de.measuredBounds;x.ed(De),Ne.push(De)}De=$i.alloc();for(var Ye=qe.alloc(),ft=qe.alloc(),ut=0;ut<z;ut++){var vt=E[ut];if(vt!==de)if(vt.isPanelMain&&vt instanceof kr){lS(a,re,Ce,vt);var St=vt.measuredBounds;x.ed(St),Ne.push(St)}else if(2>Se)vt.measure(1/0,1/0,0,0),St=vt.measuredBounds,x.ed(St),Ne.push(St);else{var Tt=vt.segmentIndex,Mt=vt.segmentFraction,Xt=vt.alignmentFocus;Xt.Mc()&&(Xt=vr);var pi=vt.segmentOrientation,Di=vt.segmentOffset;if(isNaN(Tt)){var Ai=oe.ua;St=si(),Ai.Qu(Mt,St);var $n=qe.allocAt(St[0],St[1]);if($n.add(oe.i(0)),Ai.type===Wn.j?$n.offset(-Ai.startX,-Ai.startY):(Ai=Ai.figures.first(),Ai!==null&&$n.offset(-Ai.startX,-Ai.startY)),Ai=St[2],pi!==fl){var Cn=oe.computeAngle(vt,pi,Ai);vt.Kb=Cn}Cn=$n.x-y.x;var mr=$n.y-y.y;qe.free($n),oi(St)}else if(Tt<-Se||Tt>=Se)St=qe.alloc(),oe.vg(),oe.computeMidPoint(St),Ai=oe.midAngle,pi!==fl&&(Cn=oe.computeAngle(vt,pi,Ai),vt.Kb=Cn),Cn=St.x-y.x,mr=St.y-y.y,qe.free(St);else{if(Cn=0,0<=Tt?(mr=fe.M(Tt),St=Tt<Se-1?fe.M(Tt+1):mr):(Cn=Se+Tt,mr=fe.M(Cn),St=0<Cn?fe.M(Cn-1):mr),mr.Xa(St)){0<=Tt?(Ai=0<Tt?fe.M(Tt-1):mr,Cn=Tt<Se-2?fe.M(Tt+2):St):(Ai=Cn<Se-1?fe.M(Cn+1):mr,Cn=1<Cn?fe.M(Cn-2):St),$n=Ai.Bf(mr);var ar=St.Bf(Cn);Ai=$n>ar+10?0<=Tt?Ai.ab(mr):mr.ab(Ai):ar>$n+10?0<=Tt?St.ab(Cn):Cn.ab(St):0<=Tt?Ai.ab(Cn):Cn.ab(Ai)}else Ai=0<=Tt?mr.ab(St):St.ab(mr);pi!==fl&&(Cn=oe.computeAngle(vt,pi,Ai),vt.Kb=Cn),Cn=mr.x+(St.x-mr.x)*Mt-y.x,mr=mr.y+(St.y-mr.y)*Mt-y.y}vt.measure(1/0,1/0,0,0),St=vt.measuredBounds,$n=vt.naturalBounds;var xo=0;vt instanceof kr&&(xo=vt.strokeWidth),ar=$n.width+xo;var Xo=$n.height+xo;De.reset(),De.translate(-St.x,-St.y),De.scale(vt.scale,vt.scale),De.rotate(pi===fl?vt.angle:Ai,ar/2,Xo/2),pi!==pp&&pi!==vp||De.rotate(90,ar/2,Xo/2),pi!==mp&&pi!==yp||De.rotate(-90,ar/2,Xo/2),pi===i0&&(45<Ai&&135>Ai||225<Ai&&315>Ai)&&De.rotate(-Ai,ar/2,Xo/2),$n=new qt(0,0,ar,Xo),Ye.xi($n,Xt),De.Ga(Ye),Xt=-Ye.x+xo/2*vt.scale,vt=-Ye.y+xo/2*vt.scale,ft.assign(Di),xo=isNaN(Di.x);var ds=isNaN(Di.y);if(xo||ds){ar=ar/2+3,Xo=Xo/2+3;var ps=45<=Ai&&135>=Ai,nl=225<=Ai&&315>=Ai;pi===fl&&(ps||nl)?(ft.x=ds?ar:Di.y,ft.y=xo?Xo:Di.x,ps?0<=Tt||isNaN(Tt)&&.5>Mt||!xo||(ft.y=-Xo):nl&&((0<=Tt||isNaN(Tt)&&.5>Mt)&&xo&&(ft.y=-Xo),ds&&(ft.x=-ar))):(xo&&(ft.x=0<=Tt||isNaN(Tt)&&.5>Mt?ar:-ar),ds&&(ft.y=-Xo),ft.rotate(Ai))}else ft.rotate(Ai);Cn+=ft.x,mr+=ft.y,$n.set(St),$n.h(Cn+Xt,mr+vt,St.width,St.height),Ne.push($n),x.ed($n)}}if(ee!==null)for(E=ee.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),mo(b,x.width||0,x.height||0),$i.free(De),qe.free(Ye),qe.free(ft)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof so||a instanceof ei){var E=a,b=null;a instanceof so&&(b=a,E=b.adornedPart);var z=a instanceof so?null:E.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var de=y[oe];if(de!==z&&re<ee.length){var fe=ee[re];re++,de.arrange(fe.x-a.jg.x,fe.y-a.jg.y,fe.width,fe.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof ei)for(z=a.labelNodes;z.next();){var Se=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var Ce=ee.alignmentFocus;if(de=ee.segmentOrientation,fe=ee.segmentOffset,isNaN(re)){var Ne=Se.ua,De=si();Ne.Qu(oe,De);var Ye=qe.allocAt(De[0],De[1]);Ye.add(Se.i(0)),Ne.type===Wn.j||(Ne=Ne.figures.first()),Ye.offset(-Ne.startX,-Ne.startY),Ne=De[2],de!==fl&&(Se=Se.computeAngle(ee,de,Ne),ee.angle=Se),Se=Ye.x;var ft=Ye.y;qe.free(Ye),oi(De)}else if(re<-x||re>=x)De=qe.alloc(),Ne=Se,ft=De,Ne.vg(),Ne.computeMidPoint(ft),Ne=Se.midAngle,de!==fl&&(Se=Se.computeAngle(ee,de,Ne),ee.angle=Se),Se=De.x,ft=De.y,qe.free(De);else{if(Ye=0,0<=re?(De=y.s[re],ft=re<x-1?y.s[re+1]:De):(Ye=x+re,De=y.s[Ye],ft=0<Ye?y.s[Ye-1]:De),De.Xa(ft)){0<=re?(Ne=0<re?y.s[re-1]:De,Ye=re<x-2?y.s[re+2]:ft):(Ne=Ye<x-1?y.s[Ye+1]:De,Ye=1<Ye?y.s[Ye-2]:ft);var ut=Ne.Bf(De),vt=ft.Bf(Ye);Ne=ut>vt+10?0<=re?Ne.ab(De):De.ab(Ne):vt>ut+10?0<=re?ft.ab(Ye):Ye.ab(ft):0<=re?Ne.ab(Ye):Ye.ab(Ne)}else Ne=0<=re?De.ab(ft):ft.ab(De);de!==fl&&(Se=Se.computeAngle(ee,de,Ne),ee.angle=Se),Se=De.x+(ft.x-De.x)*oe,ft=De.y+(ft.y-De.y)*oe}if(Ce.ys())ee.location=new qe(Se,ft);else{Ce.Mc()&&(Ce=vr),De=$i.alloc(),De.reset(),De.scale(ee.scale,ee.scale),De.rotate(ee.angle,0,0);var St=ee.naturalBounds;Ye=qt.allocAt(0,0,St.width,St.height),ut=qe.alloc(),ut.xi(Ye,Ce),De.Ga(ut),Ce=-ut.x,vt=-ut.y;var Tt=St.width,Mt=St.height;St=qe.alloc(),St.assign(fe);var Xt=isNaN(fe.x),pi=isNaN(fe.y);if(Xt||pi){Tt=Tt/2+3,Mt=Mt/2+3;var Di=45<=Ne&&135>=Ne,Ai=225<=Ne&&315>=Ne;de===fl&&(Di||Ai)?(St.x=pi?Tt:fe.y,St.y=Xt?Mt:fe.x,Di?0<=re||isNaN(re)&&.5>oe||!Xt||(St.y=-Mt):Ai&&((0<=re||isNaN(re)&&.5>oe)&&Xt&&(St.y=-Mt),pi&&(St.x=-Tt))):(Xt&&(St.x=0<=re||isNaN(re)&&.5>oe?Tt:-Tt),pi&&(St.y=-Mt),St.rotate(Ne))}else St.rotate(Ne);Se+=St.x,ft+=St.y,De.pp(Ye),Ce+=Ye.x,vt+=Ye.y,re=qe.allocAt(Se+Ce,ft+vt),ee.move(re),qe.free(re),qe.free(St),qe.free(ut),qt.free(Ye),$i.free(De)}}b!==null?b.Ul(!1):E.Ul(!1),E=_S(a),a.location.h(a.position.x+E.x,a.position.y+E.y),qe.free(E)}};function lS(a,y,x,E){if(fu(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof so&&a.type===Yn.Link&&a.adornedObject instanceof kr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof ei&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof so&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Xa(E,!1)}}function ip(){this.xa="Base"}$t(ip,$a),ip.prototype.measure=function(a,y,x,E,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,de=oe.right+oe.left,fe=oe.top+oe.bottom;re.measure(y,x,z,ee);var Se=re.measuredBounds,Ce=new qt(-oe.left,-oe.top,Math.max(Se.width+de,0),Math.max(Se.height+fe,0));a.graduatedBounds.push(Ce),b.assign(Ce);for(var Ne=re.geometry,De=re.strokeWidth,Ye=Ne.flattenedSegments,ft=Ne.flattenedLengths,ut=Ne.flattenedTotalLength,vt=Ye.length,St=0,Tt=0,Mt=si(),Xt=0;Xt<vt;Xt++){var pi=Ye[Xt],Di=[];Tt=St=0;for(var Ai=pi.length,$n=0;$n<Ai;$n+=2){var Cn=pi[$n],mr=pi[$n+1];if($n!==0){var ar=180*Math.atan2(mr-Tt,Cn-St)/Math.PI;0>ar&&(ar+=360),Di.push(ar)}St=Cn,Tt=mr}Mt.push(Di)}if(a.graduatedIntervals===null){for(var xo=[],Xo=a.O.s,ds=Xo.length,ps=0;ps<ds;ps++){var nl=Xo[ps],hs=[];if(xo.push(hs),nl.visible){var Id=nl.interval;if(!(0>Id)){for(var ja=0;ja<ds;ja++)if(ja!==ps){var pc=Xo[ja];if(pc.visible&&nl.constructor===pc.constructor){var il=pc.interval;il>Id&&hs.push(il)}}}}}a.graduatedIntervals=xo}var Md=a.graduatedIntervals,vu=a.O.s,ju=vu.length,$l=0,zl=0,lh=ut;a.graduatedMarks=[];for(var mc,vg=0;vg<ju;vg++){var eu=vu[vg];if(mc=[],eu.visible&&eu!==re){var rl=Math.abs(eu.interval),jp=a.graduatedTickUnit;if(!(2>jp*rl*ut/a.graduatedRange&&eu.graduatedSkip===null)){var Sf=ft[0][0],Ac=0,Hl=0;zl=ut*eu.graduatedStart-1e-4,lh=ut*eu.graduatedEnd+1e-4;var Hh=jp*rl,tu=a.graduatedTickBase;if(tu<a.graduatedMin){var uh=(a.graduatedMin-tu)/Hh;uh=uh%1===0?uh:Math.floor(uh+1),tu+=uh*Hh}else tu>a.graduatedMin+Hh&&(tu-=Math.floor((tu-a.graduatedMin)/Hh)*Hh);for(var V0=Md[vg],Gp=tu,Gy=1e-6*a.graduatedMax,Kc=1;tu<=a.graduatedMax+Gy;Kc++){e:{for(var od=V0.length,xf=0;xf<od;xf++){var ch=(tu-a.graduatedTickBase)%(V0[xf]*a.graduatedTickUnit),yg=1e-6*a.graduatedTickUnit;if(ch<yg&&ch>-yg){var dh=!1;break e}}dh=!0}if(dh&&(tu>a.graduatedMax&&(tu=a.graduatedMax),eu.graduatedSkip===null||eu instanceof Qo&&!eu.graduatedSkip(tu,eu)||eu instanceof kr&&!eu.graduatedSkip(tu,eu))&&($l=(tu-a.graduatedMin)*ut/a.graduatedRange,$l>ut&&($l=ut),zl<=$l&&$l<=lh)){for(var Zc=Mt[Ac][Hl],Rd=ft[Ac][Hl];Ac<ft.length;){for(;$l>Sf&&Hl<ft[Ac].length-1;)Hl++,Zc=Mt[Ac][Hl],Rd=ft[Ac][Hl],Sf+=Rd;if($l<=Sf)break;Ac++,Hl=0,Zc=Mt[Ac][Hl],Rd=ft[Ac][Hl],Sf+=Rd}var jl=Ye[Ac],Pc=jl[2*Hl],Y0=jl[2*Hl+1],ad=($l-(Sf-Rd))/Rd,Sg=new qe(Pc+(jl[2*Hl+2]-Pc)*ad+De/2-Ne.bounds.x,Y0+(jl[2*Hl+3]-Y0)*ad+De/2-Ne.bounds.y);Sg.scale(re.scale,re.scale);e:{var vc=Zc,jh=Mt[Ac];if(!(.5005>ad&&.4995<ad)){var kc=vc;if(.5>ad?0<Hl?kc=jh[Hl-1]:It.$(jl[0],jl[jl.length-2])&&It.$(jl[1],jl[jl.length-1])&&(kc=jh[jh.length-1]):.5<ad&&(Hl+1<jh.length?kc=jh[Hl+1]:It.$(jl[0],jl[jl.length-2])&&It.$(jl[1],jl[jl.length-1])&&(kc=jh[0])),vc!==kc){var Ef=Math.abs(vc-kc);if(180<Ef&&(vc<kc?vc+=360:kc+=360,Ef=Math.abs(vc-kc)),5e-4>ad||.9995<ad){Zc=(vc+kc)/2%360;break e}if(10>Ef){var xg=1-Math.abs(.5-ad);Zc=(vc*xg+kc*(1-xg))%360;break e}}}Zc=vc}if(eu instanceof Qo){var oc="";eu.graduatedFunction!==null?(oc=eu.graduatedFunction(tu,eu),oc=oc!=null?oc.toString():""):oc=(+tu.toFixed(2)).toString(),oc!==""&&mc.push({$l:Sg,angle:Zc,text:oc})}else mc.push({$l:Sg,angle:Zc})}tu=Gp+Kc*Hh}}}a.graduatedMarks.push(mc)}oi(Mt);var ks=a.graduatedMarks;if(ks!==null)for(var Wp=E.length,yl=0;yl<Wp;yl++){var Ga=E[yl],Sl=ks[yl];if(Ga.visible&&Ga!==re&&Sl.length!==0){if(Ga instanceof kr){var sd=a,Od=b,Gh=Ga.alignmentFocus;Gh.Mc()&&(Gh=to);var Wy=Ga.angle;Ga.Kb=0,Ga.measure(1/0,1/0,0,0),Ga.Kb=Wy;var K0=Ga.measuredBounds,Eg=K0.width,Wh=K0.height,bf=qt.allocAt(0,0,Eg,Wh),Gl=qe.alloc();Gl.xi(bf,Gh),qt.free(bf);for(var ld=-Gl.x,yc=-Gl.y,Iu=new qt,hh=Sl.length,bg=0;bg<hh;bg++)for(var fh=Sl[bg],Z0=fh.$l.x,wg=fh.$l.y,Ia=fh.angle,ac=0;4>ac;ac++){switch(ac){case 0:Gl.h(ld,yc);break;case 1:Gl.h(ld+Eg,yc);break;case 2:Gl.h(ld,yc+Wh);break;case 3:Gl.h(ld+Eg,yc+Wh)}Gl.rotate(Ia+Ga.angle),Gl.offset(Z0,wg),bg===0&&ac===0?Iu.h(Gl.x,Gl.y,0,0):Iu.Ye(Gl),Gl.offset(-Z0,-wg),Gl.rotate(-Ia-Ga.angle)}qe.free(Gl),sd.graduatedBounds!==null&&sd.graduatedBounds.push(Iu),Gr(Od,Iu.x,Iu.y,Iu.width,Iu.height)}else if(Ga instanceof Qo){var Gu=a,X0=b;Gu.temporaryTextBlock===null&&(Gu.temporaryTextBlock=new Qo);var nu=Gu.temporaryTextBlock;wS(nu,Ga);var Dd=Ga.alignmentFocus;Dd.Mc()&&(Dd=to);for(var Wu=Ga.segmentOrientation,Cg=Ga.segmentOffset,gh=new qt,Vp=0,Tg=0,Nc=0,Vh=0,ph=0,Ag=Sl.length,Fd=0;Fd<Ag;Fd++){var Xc=Sl[Fd];Vp=Xc.$l.x,Tg=Xc.$l.y,Nc=Xc.angle,ph=Vh=Ga.angle,Wu!==fl&&(ph=Wu===gp||Wu===n0?Nc+Ga.angle:Nc,Vh=ei.computeAngle(Wu,ph)),nu.Kb=Vh,nu.text=Xc.text||"",nu.measure(1/0,1/0,0,0);var Bd=nu.measuredBounds,ud=nu.naturalBounds,_d=ud.width,Yh=ud.height,Sc=$i.alloc();Sc.reset(),Sc.translate(-Bd.x,-Bd.y),Sc.scale(nu.scale,nu.scale),Sc.rotate(ph,_d/2,Yh/2),Wu!==pp&&Wu!==vp||Sc.rotate(90,_d/2,Yh/2),Wu!==mp&&Wu!==yp||Sc.rotate(-90,_d/2,Yh/2),Wu===i0&&(45<Nc&&135>Nc||225<Nc&&315>Nc)&&Sc.rotate(-Nc,_d/2,Yh/2);var wf=qt.allocAt(0,0,_d,Yh),Ud=qe.alloc();Ud.xi(wf,Dd),Sc.Ga(Ud);var Cf=-Ud.x,Vy=-Ud.y,cd=qe.alloc();cd.assign(Cg),isNaN(cd.x)&&(cd.x=_d/2+3),isNaN(cd.y)&&(cd.y=-(Yh/2+3)),cd.rotate(Nc),Vp+=cd.x+Cf,Tg+=cd.y+Vy;var Kh=new qt(Vp,Tg,Bd.width,Bd.height),Yp=new qt(Bd.x,Bd.y,Bd.width,Bd.height),Yy=new qt(ud.x,ud.y,ud.width,ud.height);Xc.Sz=Vh,Xc.lineCount=nu.lineCount,Xc.lines=[nu.Cb,nu.Ih,nu.df,nu.Le,nu.Qc,nu.Qb,nu.ze],Xc.actualBounds=Kh,Xc.measuredBounds=Yp,Xc.naturalBounds=Yy,Fd===0?gh.assign(Kh):gh.ed(Kh),qe.free(cd),qe.free(Ud),qt.free(wf),$i.free(Sc)}Gu.graduatedBounds!==null&&Gu.graduatedBounds.push(gh),Gr(X0,gh.x,gh.y,gh.width,gh.height)}Xa(Ga,!1)}}},ip.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,de=0;de<oe;de++){var fe=y[de];re=b[de],fe.visible&&fe!==E&&re.length!==0&&(re=z[ee],ee++,fe.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},ip.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,ee=b.height;b=y instanceof Ql,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,de=a.graduatedMarks,fe=oe.length,Se=0;Se<fe;Se++){var Ce=oe[Se],Ne=de[Se],De=Ne.length;if(Ce.visible&&Ce!==z&&Ne.length!==0){if(Ce instanceof kr){if(!(2>a.graduatedTickUnit*Ce.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Ce.graduatedSkip===null)){var Ye=Ce.measuredBounds,ft=Ce.strokeWidth*Ce.scale,ut=Ce.alignmentFocus;ut.Mc()&&(ut=to);for(var vt=0;vt<De;vt++){var St=Ne[vt].$l,Tt=Ne[vt].angle,Mt=ut,Xt=Ce.Ab;Xt.reset(),Xt.translate(St.x+re.x,St.y+re.y),Xt.rotate(Tt+Ce.angle,0,0),Xt.translate(-Ye.width*Mt.x+Mt.offsetX+ft/2,-Ye.height*Mt.y+Mt.offsetY+ft/2),Xt.scale(Ce.scale,Ce.scale),Bu(Ce,!1),Ce.wh.set(Ce.Ab),Ce.Kk=Ce.scale,Cu(Ce,!1),Ce.gc(y,x),b&&(a.svg.appendChild(Ce.svg),Ce.svg=null),Ce.Ab.reset()}}}else if(Ce instanceof Qo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Qo),Ye=a.temporaryTextBlock,wS(Ye,Ce),ft=0;ft<De;ft++)ut=Ne[ft],ut.actualBounds&&ut.measuredBounds&&ut.naturalBounds&&(Ye.ec=ut.text||"",Ye.Kb=ut.Sz||0,Ye.Gc=ut.lineCount||0,vt=ut.lines,vt!==void 0&&(Ye.Cb=vt[0],Ye.Ih=vt[1],Ye.df=vt[2],Ye.Le=vt[3],Ye.Qc=vt[4],Ye.Qb=vt[5],Ye.ze=vt[6]),ut.naturalBounds&&(Ye.dc=ut.naturalBounds),ut.actualBounds&&(vt=ut.actualBounds,Ye.arrange(vt.x,vt.y,vt.width,vt.height)),vt=ut.actualBounds,Ye.arrange(vt.x,vt.y,vt.width,vt.height),St=ut.measuredBounds,ut=ut.naturalBounds,Tt=Ye.Ab,Tt.reset(),Tt.translate(vt.x+re.x,vt.y+re.y),Tt.translate(-St.x,-St.y),Ye.no(Tt,ut.x,ut.y,ut.width,ut.height),Bu(Ye,!1),Ye.wh.set(Ye.Ab),Ye.Kk=Ye.scale,Cu(Ye,!1),Ye.Ng=Ce.part,Ye.Me=Ce.panel,Ye.gc(y,x),Ye.Me=null,Ye.Ng=null,b&&(a.svg.appendChild(Ye.svg),Ye.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function Yn(a,y){if(Dt.call(this),this.na=null,a===void 0)this.na=Yn.Position;else if(typeof a=="string"){var x=$u.I(a);x!==null&&(this.na=x)}else a instanceof $a?this.na=a:a&&(this.na=Yn.Position,y=a);this.na===null&&yt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Yn.Grid?1048576:0),this.O=new Pn,this.yb=Ra,this.Tm=ka,this.Uf=Er,this.$g=null,this.$e="",this.jg=new qt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Bi,this.jn=lo,this.kn=ai,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}$t(Yn,Dt),Yn.prototype.cloneProtected=function(a){Dt.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},Yn.prototype.Af=function(a){Dt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},Yn.prototype.copy=function(){var a=Dt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,ee=z.count;if(z.Gb(ee,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof vi&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(fa,"elements",a,null,b,null,ee)}}return a}return null},Be=Yn.prototype,Be.toString=function(){return"Panel("+this.type.name+")#"+Sr(this)},Be.Pn=function(a){Dt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Be.hh=function(a,y){if(this.na===Yn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Yn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Yn.Table)if(a.yc(),a instanceof Ql){var x=a.yd;a.yd=gm(a,"gojs-ts"),vv(this,a),a.nh.pop(),a.yd=x}else vv(this,a);(x=this.isClipping&&this.na===Yn.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x&&re===E&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function vv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&km(a,y,!0,x,!0),E!==null&&km(a,y,!1,E,!0),x!==null&&uS(a,y,!0,x),E!==null&&uS(a,y,!1,E),x!==null&&km(a,y,!0,x,!1),E!==null&&km(a,y,!1,E,!1)}function uS(a,y,x,E){for(var b=E.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var de=E[oe];if(de!==void 0&&de.actual!==0)if(re)re=!1;else{if(x){if(de.position>ee.height)continue}else if(de.position>ee.width)continue;var fe=de.separatorStrokeWidth;isNaN(fe)&&(fe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Se=de.separatorStroke;if(Se===null&&(Se=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),fe!==0&&Se!==null){Aa(a,y,Se,!1,!1,ee,z),Se=!1;var Ce=de.separatorDashArray;Ce===null&&(Ce=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ce!==null&&(Se=!0,y.js(Ce,0)),y.beginPath(),Ce=de.position+fe,x?Ce>ee.height&&(fe-=Ce-ee.height):Ce>ee.width&&(fe-=Ce-ee.width),de=de.position+fe/2,y.lineWidth=fe,fe=a.yb,x?(de+=fe.top,Ce=ee.width-fe.right,y.moveTo(fe.left,de),y.lineTo(Ce,de)):(de+=fe.left,Ce=ee.height-fe.bottom,y.moveTo(de,fe.top),y.lineTo(de,Ce)),y.stroke(),y.Se(),Se&&y.fs()}}}}function km(a,y,x,E,b){for(var z=E.length,ee=a.actualBounds,re=a.naturalBounds,oe=cS(a,!0),de=cS(a,!1),fe=0;fe<z;fe++){var Se=E[fe];if(Se!==void 0&&Se.background!==null&&Se.coversSeparators!==b&&Se.actual!==0){var Ce=x?ee.height:ee.width;if(!(Se.position>Ce)){var Ne=Se.Wc(),De=Se.separatorStrokeWidth;isNaN(De)&&(De=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ye=Se.separatorStroke;Ye===null&&(Ye=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ye===null||Se.index===(x?oe:de))&&(De=0),Ne-=De,De=Se.position+De,Ne+=Se.actual,De+Ne>Ce&&(Ne=Ce-De),0>=Ne||(Ce=a.yb,Aa(a,y,Se.background,!0,!1,re,ee),x?y.fillRect(Ce.left,De+Ce.top,ee.width-(Ce.left+Ce.right),Ne):y.fillRect(De+Ce.left,Ce.top,Ne,ee.height-(Ce.top+Ce.bottom)))}}}}function cS(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function yv(a){return a==="LineV"||a==="BarV"}Be.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Be.kk=function(a,y,x){if(!Dt.prototype.kk.call(this,a,y,x))return!1;if(this.type===Yn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,vv(this,a),a.yd=null;else if(this.na===Yn.Grid||this.na===Yn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},Be.nk=function(){return!0},Be.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;b=ee===0?re.x:Math.min(re.x,b),z=ee===0?re.y:Math.min(re.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Dt.prototype.$o.call(this,a,y,x,E)},Be.Sj=function(a,y,x,E,b){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,de=-ee.m12*re,fe=-ee.m21*re,Se=ee.m11*re,Ce=re*(ee.m21*ee.dy-ee.m22*ee.dx),Ne=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,It.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,E,b);if(this.background!==null)return z=a*oe+y*fe+Ce,re=a*de+y*Se+Ne,a=x*oe+E*fe+Ce,oe=x*de+E*Se+Ne,b.h(0,0),x=this.naturalBounds,z=It.Ff(0,0,x.width,x.height,z,re,a,oe,b),b.transform(ee),z;z||(oe=1,fe=de=0,Se=1,Ne=Ce=0),re=a*oe+y*fe+Ce,a=a*de+y*Se+Ne,oe=x*oe+E*fe+Ce,x=x*de+E*Se+Ne,b.h(oe,x),E=(oe-re)*(oe-re)+(x-a)*(x-a),de=!1,Se=this.O.s,Ne=Se.length,fe=qe.alloc(),Ce=null,y=1/0;var De=null,Ye=this.isClipping&&this.na===Yn.Spot;Ye&&(De=qe.alloc(),Ce=this.Pb(),(de=Ce.Sj(re,a,oe,x,De))&&(y=(re-De.x)*(re-De.x)+(a-De.y)*(a-De.y)));for(var ft=0;ft<Ne;ft++){var ut=Se[ft];ut.visible&&ut!==Ce&&ut.Sj(re,a,oe,x,fe)&&(de=!0,ut=(re-fe.x)*(re-fe.x)+(a-fe.y)*(a-fe.y),ut<E&&(E=ut,b.set(fe)))}return Ye&&(y>E&&b.set(De),qe.free(De)),qe.free(fe),z&&b.transform(ee),de},Be.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Dt.prototype.Gj.call(this)},Be.v=function(a){if(!fu(this)){Dt.prototype.v.call(this,a),a=null,(this.na===Yn.Auto||this.na===Yn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=kl(b,!1);(b instanceof hl||b instanceof Yn||b instanceof Qo||z!==kn)&&b.v(!0)}}}},Be.Uj=function(){if(!fu(this)){Xa(this,!0),Fc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Be.Uk=function(){if(!(this.l&2048)){Bu(this,!0),Cu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Be.Wu=function(){Cu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Be.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,E=ee.height),x=Math.max(x,ee.width),E=Math.max(E,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(E,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var de=this.O.s;de.length!==0&&this.na.measure(this,a,y,de,b,x,E),a=b.width+oe.left+oe.right,oe=b.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(E,oe),mo(b,a,oe),mo(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Be.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function nd(a){return a.part!==null?a.part.locationObject:null}Be.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=kl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===E&&(a=kn),a){case kn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Hn:this.v(!0),this.measure(x+re,E+ee,0,0);break;case ji:this.v(!0),this.measure(x+re,z+ee,0,0);break;case nr:this.v(!0),this.measure(y+re,E+ee,0,0)}}this.na.arrange(this,b,this.jg)}},Be.gh=function(a){var y=this.naturalBounds,x=nd(this);if(Uo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=qe.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(ti(b.set(a),z.transform),z.ca(b)))return qe.free(b),!0}return qe.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Be.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},Be.qm=function(a,y){if(y(this,a),a instanceof Yn){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Rh(a,y){dS(a,a,y)}function dS(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof Yn&&dS(a,z,x)}}function Px(a,y){hS(a,a,y)}function hS(a,y,x){if(x(y),y instanceof Yn){y=y.O.s;for(var E=y.length,b=0;b<E;b++)hS(a,y[b],x)}}Be.Nl=function(a){return fS(this,this,a)};function fS(a,y,x){if(x(y))return y;if(y instanceof Yn){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=fS(a,y[b],x);if(z!==null)return z}}return null}Be.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=rp(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof Yn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function gS(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof Yn?x=Math.max(x,gS(b)):b instanceof kr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Be.se=function(){return!(this.type===Yn.TableRow||this.type===Yn.TableColumn)};function Ed(a){return a.type===Yn.TableRow||a.type===Yn.TableColumn}Be.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),cl(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:ti(qe.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,de=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),de=oe/2),Uo(-(de*b),-(de*b),E.width+oe*b,E.height+oe*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var fe=b.length;if(re=qe.alloc(),de=(oe=this.isClipping&&this.na===Yn.Spot)?this.Pb():null,oe&&(de.se()?ti(re.set(a),de.transform):re.set(a),!de.ca(re)))return qe.free(re),z||qe.free(ee),null;for(var Se=nd(this);fe--;){var Ce=b[fe];if((Ce.visible||Ce===Se)&&(Ce.se()?ti(re.set(a),Ce.transform):re.set(a),!oe||Ce!==de)){var Ne=null;if(Ce instanceof Yn?Ne=Ce.ic(re,y,x):Ce.pickable===!0&&Ce.ca(re)&&(Ne=Ce),Ne!==null&&(y!==null&&(Ne=y(Ne)),Ne!==null&&(x===null||x(Ne))))return qe.free(re),z||qe.free(ee),Ne}}qe.free(re)}return this.background===null&&this.areaBackground===null?(z||qe.free(ee),null):(a=Uo(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||qe.free(ee),a)}return z||qe.free(ee),null},Be.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),ee=z?a:ti(qe.allocAt(a.x,a.y),this.transform);if(b=Uo(0,0,b.width,b.height,ee.x,ee.y),Ed(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,de=qe.alloc(),fe=nd(this);oe--;){var Se=re[oe];if(Se.visible||Se===fe){Se.se()?ti(de.set(a),Se.transform):de.set(a);var Ce=Se;Se=Se instanceof Yn?Se:null,(Se!==null?Se.ji(de,y,x,E):Ce.ca(de))&&Ce.pickable!==!1&&(y!==null&&(Ce=y(Ce)),Ce===null||x!==null&&!x(Ce)||E.add(Ce))}}qe.free(de)}return z||qe.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||qe.free(ee),!1},Be.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=$i.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,x,b),z===void 0&&$i.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=nd(this),oe=this.O.s,de=oe.length;de--;){var fe=oe[de];if(fe.visible||fe===re){var Se=fe.actualBounds,Ce=this.naturalBounds;Se.x>Ce.width||Se.y>Ce.height||0>Se.x+Se.width||0>Se.y+Se.height||(Se=fe,fe=fe instanceof Yn?fe:null,Ce=$i.alloc(),Ce.set(ee),(fe!==null?fe.Cf(a,y,x,E,b,Ce):cs(Se,a,E,Ce))&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||b.add(Se)),$i.free(Ce))}}return z===void 0&&$i.free(ee),E}return z===void 0&&$i.free(ee),!1};function Sv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Yn&&Sv(ee,y,x,E),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||E.add(ee))}}}Be.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:ti(qe.allocAt(a.x,a.y),this.transform),de=re?y:ti(qe.allocAt(y.x,y.y),this.transform),fe=oe.Bf(de),Se=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||gi(oe.x,oe.y,0,0,0,ee.height)<=fe||gi(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=fe||gi(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=fe||gi(oe.x,oe.y,ee.width,0,0,0)<=fe;if(ee=oe.zd(0,0)<=fe&&oe.zd(0,ee.height)<=fe&&oe.zd(ee.width,0)<=fe&&oe.zd(ee.width,ee.height)<=fe,re||(qe.free(oe),qe.free(de)),Se){if(!this.isAtomic){oe=qe.alloc(),de=qe.alloc(),fe=nd(this);for(var Ce=this.O.s,Ne=Ce.length;Ne--;){var De=Ce[Ne];if(De.visible||De===fe){var Ye=De.actualBounds,ft=this.naturalBounds;(!re||!(Ye.x>ft.width||Ye.y>ft.height||0>Ye.x+Ye.width||0>Ye.y+Ye.height))&&(De.se()?(Ye=De.transform,ti(oe.set(a),Ye),ti(de.set(y),Ye)):(oe.set(a),de.set(y)),Ye=De,De=De instanceof Yn?De:null,(De!==null?De.og(oe,de,x,E,b,z):Ye.tx(oe,de,b))&&(x!==null&&(Ye=x(Ye)),Ye===null||E!==null&&!E(Ye)||z.add(Ye)))}}qe.free(oe),qe.free(de)}return b?Se:ee}return!1};function xv(a){var y=null;return a instanceof kr&&(y=a.spot1,y===ka&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Dr),y}function Ev(a){var y=null;return a instanceof kr&&(y=a.spot2,y===ka&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ho),y}Be.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},Be.M=function(a){return this.O.M(a)},Be.Gb=function(a,y){y instanceof Qi&&yt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&yt("Cannot make a Panel contain itself: "+this.toString()),yt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&yt("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!==Yn.Grid||y instanceof kr||yt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Yn.Graduated||y instanceof kr||y instanceof Qo||yt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new Yt),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else yt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),fu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Yn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Lm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof vi&&(x.Te=!0),x.Te&&x instanceof vi&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(ya,"elements",this,y,null,E,null),x.cb(fa,"elements",this,null,y,null,a)))};function bv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Be.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},Be.mb=function(a){0<=a&&this.pc(a,!0)},Be.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Xa(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof vi&&(E instanceof Yn?E.qm(E,function(ee,re){Vv(z,re,y)}):Vv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ya,"elements",this,E,null,a,null))},Be.Fb=function(a){0>a&&li(a,">= 0",Yn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Qa;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(fa,"rowdefs",this,null,x,null,a)}return y[a]},Be.oA=function(a){if(0>a&&li(a,">= 0",Yn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ya,"rowdefs",this,x,null,a,null),this.v()}}};function pS(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Qa?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Be.Eb=function(a){0>a&&li(a,">= 0",Yn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Qa;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(fa,"coldefs",this,null,x,null,a)}return y[a]},Be.jA=function(a){if(0>a&&li(a,">= 0",Yn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ya,"coldefs",this,x,null,a,null),this.v()}}};function mS(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Qa?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Be.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Im(y,a),this},Be.Hy=function(a,y){return(a=this.Fb(a))&&Im(a,new Qa(y)),this},Be.By=function(a,y){return(a=this.Eb(a))&&Im(a,new Qa(y)),this},Be.nz=function(a){if(0>a||this.type!==Yn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Be.fz=function(a){if(0>a||this.type!==Yn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Be.Fz=function(a,y){if(y===void 0&&(y=new qe(NaN,NaN)),this.type!==Yn.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)},Be.Gz=function(a){if(this.type!==Yn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function vS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Uu(a){var y=a.allBindings;if(y===null)a.data!==null&&yt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Pn;else if(y._isFrozen)return;var x=new Pn;bv(a,!1),a.qm(a,function(de,fe){fe.th();var Se=fe.localBindings;if(Se!==null)for(rf(fe,!1),Se=Se.iterator;Se.next();){var Ce=Se.value;Ce.mode===Ap&&rf(fe,!0);var Ne=Ce.sourceName;Ne!==null&&(Ne==="/"&&bv(de,!0),Ne=M1(Ce,de,fe),Ne!==null&&(x.add(Ne),Ne.srcBindings===null&&(Ne.srcBindings=new Pn),Ne.srcBindings.add(Ce))),y.add(Ce)}if(fe instanceof Yn&&fe.type===Yn.Table){if(0<fe.rowCount){for(de=fe.rowDefs,Se=de.length,Ce=0;Ce<Se;Ce++)if(Ne=de[Ce],Ne!==void 0&&Ne.be!==null)for(var De=Ne.be.iterator;De.next();){var Ye=De.value;Ye.xd=Ne,Ye.to=2,Ye.wl=Ne.index,y.add(Ye)}}if(0<fe.columnCount){for(fe=fe.colDefs,de=fe.length,Se=0;Se<de;Se++)if(Ce=fe[Se],Ce!==void 0&&Ce.be!==null)for(Ne=Ce.be.iterator;Ne.next();)De=Ne.value,De.xd=Ce,De.to=1,De.wl=Ce.index,y.add(De)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){rf(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new Pn),b.localBindings.add(ee)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Yn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):ii('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof Qa?(ee=Sr(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof Dt?(ee=Sr(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):yt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Qi&&a.Zc()&&a.Va()}Be.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Px(y,function(x){x instanceof Yn&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&Uu(y),y},Be.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof Yn))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Be.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function kx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof Yn&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var ee=0;b<x&&ee<E;){if(z=a[b],!(z instanceof Yn)||z.data!==y[ee])return!0;b++,ee++}return!1}function rp(a){if(a.type===Yn.Spot||a.type===Yn.Auto)return Math.min(a.O.length,1);if(a.type===Yn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof kr&&E.isPanelMain))break}return x}return a.type===Yn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Yn&&Ed(a))?1:0}Be.mv=function(){for(var a=rp(this);this.O.length>a;)this.pc(this.O.length-1,!1);yS(this,this.itemArray)};function yS(a,y){var x=rp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)Nm(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],ee=E<a.O.length?a.O.M(E):null;if(ee instanceof Yn){if(ee.data!==z){var re=Cv(a,ee.data),oe=Cv(a,z),de=oe!==re;de||(re=Tv(a,re),de=Tv(a,oe)!==re),de?(a.pc(E,!1),Nm(a,z,b,!1)):ee.data=z}}else Nm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,wv(a,x,0),fu(a)||a.v(),a.graduatedIntervals=null,a.If()||Lm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof vi&&(y.Te=!0),y.Te&&y instanceof vi&&(y.wc=null))}}function Nm(a,y,x,E){if(!(y==null||0>x)){var b=Cv(a,y);if(b=Tv(a,b),b!==null){if(Uu(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&bv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Yt),a.ge.add(y,b)),z=x+rp(a),a.Gb(z,b),E&&(b.ub=y,wv(a,z,x),b.ub=null),b.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof Yn){var b=y,z=x;E.type===Yn.TableRow?E.row=b:E.type===Yn.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function Cv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=_a(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;yt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Tv(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(SS||(SS=!0,ii('No item template Panel found for category "'+y+'" on '+a),ii(" Using default item template."),a=new Yn,y=new Qo,y.bind(new Ha("text","",ir)),a.add(y),xS=a),E=xS)),E}function Lm(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof Yn){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof Yn&&!z.isEnabled||Lm(a,z,x)}}}function Cc(a,y){y.name=a,$u.add(a,y)}wn.Object.defineProperties(Yn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Yn.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&&li(a,">= 0",Yn,"padding"),a=new xr(a)):(0>a.left&&li(a.left,">= 0",Yn,"padding:value.left"),0>a.right&&li(a.right,">= 0",Yn,"padding:value.right"),0>a.top&&li(a.top,">= 0",Yn,"padding:value.top"),0>a.bottom&&li(a.bottom,">= 0",Yn,"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 xr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Pu),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 ko)&&(a instanceof ko&&a.freeze(),this.T===null&&(this.T=new Pu),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 Pu),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||yt("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Pu),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 ko)&&(a instanceof ko&&a.freeze(),this.T===null&&(this.T=new Pu),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 Pu),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||yt("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Pu),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 Pu),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||yt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Ec(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()||yt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Ec(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 id),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Is(this)&&(a=this.part,a!==null&&ra(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 id),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Is(this)&&(a=this.part,a!==null&&ra(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 id),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 id),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 id,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 id,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 id,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 id,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 Pu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Pu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Rm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Pu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Rm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Pu),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)&&yt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Pu),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)&&yt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Pu),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 Qi&&!(this instanceof so);Uu(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof ei?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Qi&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new of),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&kx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&dy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&cy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||yS(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 Yt}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Qi||a.isPanelMain)&&yt("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(););Mr(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&&(Mr(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 yr&&(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&&Lm(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))}}}),wn.Object.defineProperties(Yn,{Position:{get:function(){return $u.I("Position")}},Horizontal:{get:function(){return $u.I("Horizontal")}},Vertical:{get:function(){return $u.I("Vertical")}},Spot:{get:function(){return $u.I("Spot")}},Auto:{get:function(){return $u.I("Auto")}},Table:{get:function(){return $u.I("Table")}},Viewbox:{get:function(){return $u.I("Viewbox")}},TableRow:{get:function(){return $u.I("TableRow")}},TableColumn:{get:function(){return $u.I("TableColumn")}},Link:{get:function(){return $u.I("Link")}},Grid:{get:function(){return $u.I("Grid")}},Graduated:{get:function(){return $u.I("Graduated")}}}),Yn.prototype.rebuildItemElements=Yn.prototype.mv,Yn.prototype.findItemPanelForData=Yn.prototype.sx,Yn.prototype.updateTargetBindings=Yn.prototype.La,Yn.prototype.copyTemplate=Yn.prototype.Uy,Yn.prototype.graduatedValueForPoint=Yn.prototype.Gz,Yn.prototype.graduatedPointForValue=Yn.prototype.Fz,Yn.prototype.findColumnForLocalX=Yn.prototype.fz,Yn.prototype.findRowForLocalY=Yn.prototype.nz,Yn.prototype.addColumnDefinition=Yn.prototype.By,Yn.prototype.addRowDefinition=Yn.prototype.Hy,Yn.prototype.addRowColumnDefinition=Yn.prototype.Gy,Yn.prototype.removeColumnDefinition=Yn.prototype.jA,Yn.prototype.getColumnDefinition=Yn.prototype.Eb,Yn.prototype.removeRowDefinition=Yn.prototype.oA,Yn.prototype.getRowDefinition=Yn.prototype.Fb,Yn.prototype.removeAt=Yn.prototype.mb,Yn.prototype.remove=Yn.prototype.remove,Yn.prototype.insertAt=Yn.prototype.Gb,Yn.prototype.elt=Yn.prototype.M,Yn.prototype.add=Yn.prototype.add,Yn.prototype.findObject=Yn.prototype.fb,Yn.prototype.findInVisualTree=Yn.prototype.Nl,Yn.prototype.walkVisualTreeFrom=Yn.prototype.qm,Yn.prototype.findMainElement=Yn.prototype.Pb;var SS=!1,xS=null,$u=new Yt;Yn.className="Panel",Yn.definePanelLayout=Cc,Cc("Position",new vm),Cc("Vertical",new Sm),Cc("Auto",new Em),Cc("Link",new Pm);function id(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}id.prototype.copy=function(){var a=new id;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},id.className="GradPanelSettings";function Pu(){this.Pc=[],this.Oc=[],this.j=this.ob=Rm,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}Pu.prototype.copy=function(a){for(var y=new Pu,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),b[z]=ee}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),b[z]=ee);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Pu.className="TablePanelSettings";function Qa(a){tr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ka,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Av,this.hg=Er,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))}Qa.prototype.copy=function(){var a=new Qa;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=Ni(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Im(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=Ni(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Be=Qa.prototype,Be.qb=function(a){a.classType===Qa&&(this.sizing=a)},Be.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Sr(this)},Be.wi=function(a){this.Me=a},Be.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)},Be.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===Yn.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ee=E?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Be.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(Ko,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function Mm(a){if(a.sizing===Av){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Be.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Ha(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&vS(y)&&yt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new Pn),this.be.add(b),this},wn.Object.defineProperties(Qa.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&&li(a,">= 0",Qa,"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&&li(a,">= 0",Qa,"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))&&li(a,">= 0",Qa,"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&&li(a,">= 0",Qa,"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 xr(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&&sf(a,"RowColumnDefinition.separatorStroke"),a instanceof ko&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||yt("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&sf(a,"RowColumnDefinition.background"),a instanceof ko&&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}}}),Qa.prototype.computeEffectiveSpacing=Qa.prototype.Wc,Qa.prototype.computeEffectiveSpacingTop=Qa.prototype.Io;var Av=new Gt(Qa,"Default",0),op=new Gt(Qa,"None",1),Rm=new Gt(Qa,"ProportionalExtra",2);Qa.className="RowColumnDefinition",Qa.Default=Av,Qa.None=op,Qa.ProportionalExtra=Rm;function kr(a,y){Dt.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)}$t(kr,Dt),kr.prototype.cloneProtected=function(a){Dt.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=Ni(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 Oh(a){a.Na===null?a.Na=new Nv:a.Na.nc&&(a.Na=a.Na.copy())}Be=kr.prototype,Be.th=function(){Dt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Be.qb=function(a){a===kn||a===Bi||a===Xr||a===Er?this.geometryStretch=a:Dt.prototype.qb.call(this,a)},Be.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Sr(this)};function Xf(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],de,fe,Se,Ce,Ne,De,Ye=0,ft=si(),ut=2;ut<b;ut+=2)de=x[ut],fe=x[ut+1],Se=de-re,re=fe-oe,Se===0&&(Se=.001),Ce=re/Se,Ne=Math.atan2(re,Se),De=Math.sqrt(Se*Se+re*re),ft.push([Se,Ne,Ce,De]),Ye+=De,re=de,oe=fe;re=x[0],oe=x[1],Se=E.measuredBounds.width,E instanceof kr&&(Se-=E.strokeWidth),1>Se&&(Se=1),b=x=Se,de=ee/2,fe=de!==0,ut=0,De=ft[ut],Se=De[0],Ne=De[1],Ce=De[2],De=De[3];for(var vt=0;.1<=Ye;){if(vt===0&&(fe?(b=x,b-=de,Ye-=de,fe=!1):b=x,b===0&&(b=1)),b>Ye){oi(ft);return}b>De?(vt=b-De,b=De):vt=0;var St=Math.sqrt(b*b/(1+Ce*Ce));if(0>Se&&(St=-St),re+=St,oe+=Ce*St,a.translate(re,oe),a.rotate(Ne),a.translate(-(ee/2),-(z/2)),vt===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Ne),a.translate(-re,-oe),Ye-=b,De-=b,vt!==0){if(ut++,ut===ft.length){oi(ft);return}De=ft[ut],Se=De[0],Ne=De[1],Ce=De[2],De=De[3],b=vt}}oi(ft)}}Be.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;E!==null&&Aa(this,a,E,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Yn.Link&&re instanceof so&&re.category==="Selection"&&re.adornedObject instanceof kr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(Aa(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),b.type===Wn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===Wn.u){var de=b.startX;oe=b.startY;var fe=b.endX,Se=b.endY;b=Math.min(de,fe);var Ce=Math.min(oe,Se);de=Math.abs(fe-de),oe=Math.abs(Se-oe),a.beginPath(),a.rect(b,Ce,de,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&Bc(a),a.jk(),re&&z&&$c(a)),a.Se()}else if(b.type===Wn.F)de=b.startX,oe=b.startY,fe=b.endX,Se=b.endY,b=Math.abs(fe-de)/2,Ce=Math.abs(Se-oe)/2,de=Math.min(de,fe)+b,oe=Math.min(oe,Se)+Ce,a.beginPath(),a.moveTo(de,oe-Ce),a.bezierCurveTo(de+It.wg*b,oe-Ce,de+b,oe-It.wg*Ce,de+b,oe),a.bezierCurveTo(de+b,oe+It.wg*Ce,de+It.wg*b,oe+Ce,de,oe+Ce),a.bezierCurveTo(de-It.wg*b,oe+Ce,de-b,oe+It.wg*Ce,de-b,oe),a.bezierCurveTo(de-b,oe-It.wg*Ce,de-It.wg*b,oe-Ce,de,oe-Ce),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&Bc(a),a.jk(),re&&z&&$c(a)),a.Se();else if(b.type===Wn.o)for(b=b.figures,oe=b.length,Ce=0;Ce<oe;Ce++){de=b.s[Ce],a.beginPath(),a.moveTo(de.startX,de.startY),fe=de.segments.s,Se=fe.length;for(var Ne=null,De=0;De<Se;De++){var Ye=fe[De];switch(Ye.type){case qo:a.moveTo(Ye.endX,Ye.endY);break;case Oo:a.lineTo(Ye.endX,Ye.endY);break;case Oa:a.bezierCurveTo(Ye.point1X,Ye.point1Y,Ye.point2X,Ye.point2Y,Ye.endX,Ye.endY);break;case Ws:a.quadraticCurveTo(Ye.point1X,Ye.point1Y,Ye.endX,Ye.endY);break;case xa:if(Ye.radiusX===Ye.radiusY){var ft=Math.PI/180;a.arc(Ye.point1X,Ye.point1Y,Ye.radiusX,Ye.startAngle*ft,(Ye.startAngle+Ye.sweepAngle)*ft,0>Ye.sweepAngle,Ne!==null?Ne.endX:de.startX,Ne!==null?Ne.endY:de.startY)}else if(Ne=ms(Ye,de),ft=Ne.length,ft===0)a.lineTo(Ye.centerX,Ye.centerY);else for(var ut=0;ut<ft;ut++){var vt=Ne[ut];ut===0&&a.lineTo(vt[0],vt[1]),a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7])}break;case Js:if(ut=ft=0,Ne!==null&&Ne.type===xa){if(Ne=ms(Ne,de),vt=Ne.length,vt===0){a.lineTo(Ye.endX,Ye.endY);break}Ne=Ne[vt-1]||null,Ne!==null&&(ft=Ne[6],ut=Ne[7])}else ft=Ne!==null?Ne.endX:de.startX,ut=Ne!==null?Ne.endY:de.startY;if(Ne=Us(Ye,de,ft,ut),ft=Ne.length,ft===0){a.lineTo(Ye.endX,Ye.endY);break}for(ut=0;ut<ft;ut++)vt=Ne[ut],a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7]);break;default:yt("Segment not of valid type: "+Ye.type)}Ye.isClosed&&a.closePath(),Ne=Ye}fe=de.isFilled,z?de.isShadowed?(fe===!0&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),x!==null&&(fe&&re&&Bc(a),a.jk(),fe&&re&&$c(a))):(Bc(a),fe&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),x!==null&&a.jk(),$c(a)):(fe&&E!==null&&a.ng(E,de.isEvenOdd),x!==null&&a.jk()),a.Se(Ce)}if(ee&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=si(),z.type===Wn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Xf(a,y,E,x);else if(z.type===Wn.o)for(z=z.figures.iterator;z.next();){for(re=z.value,E.length=0,E.push(re.startX),E.push(re.startY),ee=re.startX,b=re.startY,oe=ee,Ce=b,de=re.segments.s,fe=de.length,Se=0;Se<fe;Se++){switch(De=de[Se],De.type){case qo:Xf(a,y,E,x),E.length=0,E.push(De.endX),E.push(De.endY),ee=De.endX,b=De.endY,oe=ee,Ce=b;break;case Oo:E.push(De.endX),E.push(De.endY),ee=De.endX,b=De.endY;break;case Oa:It.Qe(ee,b,De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY,.5,E),ee=De.endX,b=De.endY;break;case Ws:It.ep(ee,b,De.point1X,De.point1Y,De.endX,De.endY,.5,E),ee=De.endX,b=De.endY;break;case xa:if(Ye=ms(De,re),Ne=Ye.length,Ne===0){E.push(De.centerX),E.push(De.centerY),ee=De.centerX,b=De.centerY;break}for(ft=0;ft<Ne;ft++)ut=Ye[ft],It.Qe(ee,b,ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],.5,E),ee=ut[6],b=ut[7];break;case Js:if(Ye=Us(De,re,ee,b),Ne=Ye.length,Ne===0){E.push(De.endX),E.push(De.endY),ee=De.endX,b=De.endY;break}for(ft=0;ft<Ne;ft++)ut=Ye[ft],It.Qe(ee,b,ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],.5,E),ee=ut[6],b=ut[7];break;default:yt("Segment not of valid type: "+De.type)}De.isClosed&&(E.push(oe),E.push(Ce),Xf(a,y,E,x))}Xf(a,y,E,x)}else if(z.type===Wn.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Xf(a,y,E,x);else if(z.type===Wn.F){if(b=new wa,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new qr(xa),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ee),z=ms(ee,b),re=z.length,re===0)E.push(ee.centerX),E.push(ee.centerY);else for(ee=b.startX,b=b.startY,oe=0;oe<re;oe++)Ce=z[oe],It.Qe(ee,b,Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,E),ee=Ce[6],b=Ce[7];Xf(a,y,E,x)}oi(E),a.restore(),a.Vc(!1)}}}},Be.kk=function(a,y,x){return!Dt.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)},Be.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Dt.prototype.nk.call(this,a)},Be.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)}},Be.ga=function(a,y){if(y===void 0&&(y=new qe),a instanceof Pi){a.Mc()&&yt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Be.mi=function(a){a===void 0&&(a=new qt);var y=this.naturalBounds,x=this.oe;y=qt.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=qe.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),Gr(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),Gr(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),Gr(a,E.x,E.y,0,0),qt.free(y),qe.free(E),a},Be.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==Wn.j||y||(b+=2);var z=qt.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return qt.free(z),!1;if(E=b+1e-4,x.type===Wn.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(qt.free(z),It.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Wn.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return qt.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),qt.free(z),a}if(x.type===Wn.F){ee=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(b,oe),ee=Math.abs(re-ee)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ee),y=a.y-(y+b),this.fill===null){if(ee-=E,b-=E,0>=ee||0>=b||1>=x*x/(ee*ee)+y*y/(b*b))return qt.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),qt.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===Wn.o)return qt.free(z),this.fill===null?as(x,a.x,a.y,b):Na(x,a,b,1<this.strokeWidth,y);yt("Unknown Geometry type: "+x.type)},Be.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=kv[re];if(oe===void 0){var de=It.Ze[re];typeof de=="string"&&(de=It.Ze[de]),typeof de=="function"?(oe=de(null,100,100),kv[re]=oe):yt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,de=ee.width;var fe=ee.height;switch(kl(this,!0)){case kn:E=x=0;break;case Hn:de=Math.max(a-z,0),fe=Math.max(y-z,0);break;case ji:de=Math.max(a-z,0),E=0;break;case nr:x=0,fe=Math.max(y-z,0)}isFinite(b.width)&&(de=b.width),isFinite(b.height)&&(fe=b.height);var Se=this.maxSize,Ce=this.minSize;switch(x=Math.max(x-z,Ce.width),E=Math.max(E-z,Ce.height),de=Math.min(Se.width,de),fe=Math.min(Se.height,fe),de=isFinite(de)?Math.max(x,de):Math.max(re,x),fe=isFinite(fe)?Math.max(E,fe):Math.max(oe,E),x=Pv(this),x){case kn:break;case Hn:re=de,oe=fe;break;case Bi:x=Math.min(de/re,fe/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:yt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,E=re/ee.width,ee=oe/ee.height,isFinite(E)||(E=1),isFinite(ee)||(ee=1),this.ua=E===1&&ee===1?x:x.copy().scale(E,ee)):this.ua!==null&&It.$(this.ua.Sk,a-z)&&It.$(this.ua.Rk,y-z)||(this.ua=kr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),de+z,fe+z),b.w()?(de=b.width,fe=b.height,de=Math.min(Se.width,de),fe=Math.min(Se.height,fe),de=Math.max(Ce.width,de),fe=Math.max(Ce.height,fe),this.dc.h(0,0,de,fe)):this.dc.assign(ee)};function Pv(a){var y=a.geometryStretch;return a.Rd!==null?y===Er?Hn:y:y===Er?kv[a.figure].defaultStretch:y}Be.eh=function(a,y,x,E){tl(this,a,y,x,E)},Be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Be.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,de=-z.m21*ee,fe=z.m11*ee,Se=ee*(z.m21*z.dy-z.m22*z.dx),Ce=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*de+Se,ee=a*oe+y*fe+Ce,re=x*re+E*de+Se,oe=x*oe+E*fe+Ce,Se=this.ig/2,de=this.ua,de===null&&(this.measure(1/0,1/0),de=this.ua);var Ne=de.bounds;if(fe=!1,de.type===Wn.j)if(1.5>=this.strokeWidth)fe=It.Ve(de.startX,de.startY,de.endX,de.endY,z,ee,re,oe,b);else{if(de.startX===de.endX?(E=Se,fe=0):(y=(de.endY-de.startY)/(de.endX-de.startX),fe=Se/Math.sqrt(1+y*y),E=fe*y),y=si(),a=new qe,It.Ve(de.startX+E,de.startY+fe,de.endX+E,de.endY+fe,z,ee,re,oe,a)&&y.push(a),a=new qe,It.Ve(de.startX-E,de.startY-fe,de.endX-E,de.endY-fe,z,ee,re,oe,a)&&y.push(a),a=new qe,It.Ve(de.startX+E,de.startY+fe,de.startX-E,de.startY-fe,z,ee,re,oe,a)&&y.push(a),a=new qe,It.Ve(de.endX+E,de.endY+fe,de.endX-E,de.endY-fe,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return oi(y),!1;for(fe=!0,oe=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,b.x=a.x,b.y=a.y);oi(y)}else if(de.type===Wn.u)fe=It.Ff(Ne.x-Se,Ne.y-Se,Ne.x+Ne.width+Se,Ne.y+Ne.height+Se,z,ee,re,oe,b);else if(de.type===Wn.F){y=qt.allocAt(Ne.x,Ne.y,Ne.width,Ne.height).Bc(Se,Se);e:if(y.width===0)fe=It.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)fe=It.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,b);else{if(a=y.width/2,de=y.height/2,E=y.x+a,fe=y.y+de,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-fe-x*(z-E),0>a*a*x*x+de*de-oe*oe){b.x=NaN,b.y=NaN,fe=!1;break e}Se=Math.sqrt(a*a*x*x+de*de-oe*oe),re=(-(a*a*x*oe)+a*de*Se)/(de*de+a*a*x*x)+E,a=(-(a*a*x*oe)-a*de*Se)/(de*de+a*a*x*x)+E,de=x*(re-E)+oe+fe,oe=x*(a-E)+oe+fe,Math.abs((z-re)*(z-re))+Math.abs((ee-de)*(ee-de))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(b.x=re,b.y=de):(b.x=a,b.y=oe)}else{if(re=de*de,oe=z-E,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,fe=!1;break e}oe=Math.sqrt(re),re=fe+oe,oe=fe-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}fe=!0}qt.free(y)}else if(de.type===Wn.o){Ce=qe.alloc();var De=re-z,Ye=oe-ee,ft=De*De+Ye*Ye,ut=z,vt=ee;if(0<ft&&Ne.contains(ut,vt)&&(Ce.x=ut,Ce.y=vt,this.ca(Ce)))for(De!==0&&.5>Math.abs(De)?(Ye*=.5/De,De=.5):Ye!==0&&.5>Math.abs(Ye)&&(De*=.5/Ye,Ye=.5),ut-=De,vt-=Ye;Ne.contains(ut,vt);)ut-=De,vt-=Ye;for(b.x=re,b.y=oe,Ye=0;Ye<de.figures.count;Ye++){var St=de.figures.s[Ye],Tt=St.isFilled?ut:z,Mt=St.isFilled?vt:ee,Xt=St.segments;Ne=St.startX,De=St.startY;for(var pi=Ne,Di=De,Ai=0;Ai<Xt.count;Ai++){var $n=Xt.s[Ai],Cn=$n.type,mr=$n.endX,ar=$n.endY,xo=!1;switch(Cn){case qo:pi=mr,Di=ar;break;case Oo:xo=Dm(Ne,De,mr,ar,Tt,Mt,re,oe,Ce);break;case Oa:xo=It.Eo(Ne,De,$n.point1X,$n.point1Y,$n.point2X,$n.point2Y,mr,ar,Tt,Mt,re,oe,.6,Ce);break;case Ws:xo=It.Eo(Ne,De,Ne+2/3*($n.point1X-Ne),De+2/3*($n.point1Y-De),mr+2/3*($n.point1X-mr),ar+2/3*($n.point1Y-ar),mr,ar,Tt,Mt,re,oe,.6,Ce);break;case xa:case Js:Cn=$n.type===xa?ms($n,St):Us($n,St,Ne,De);var Xo=Cn.length;if(Xo===0){xo=Dm(Ne,De,$n.type===xa?$n.centerX:$n.endX,$n.type===xa?$n.centerY:$n.endY,Tt,Mt,re,oe,Ce);break}for(ar=null,mr=0;mr<Xo;mr++){if(ar=Cn[mr],mr===0&&Dm(Ne,De,ar[0],ar[1],Tt,Mt,re,oe,Ce)){var ds=Om(Tt,Mt,Ce,ft,b);ds<ft&&(ft=ds,fe=!0)}It.Eo(ar[0],ar[1],ar[2],ar[3],ar[4],ar[5],ar[6],ar[7],Tt,Mt,re,oe,.6,Ce)&&(ds=Om(Tt,Mt,Ce,ft,b),ds<ft&&(ft=ds,fe=!0))}mr=ar[6],ar=ar[7];break;default:yt("Unknown Segment type: "+Cn)}Ne=mr,De=ar,xo&&(xo=Om(Tt,Mt,Ce,ft,b),xo<ft&&(ft=xo,fe=!0)),$n.isClosed&&(mr=pi,ar=Di,Dm(Ne,De,mr,ar,Tt,Mt,re,oe,Ce)&&($n=Om(Tt,Mt,Ce,ft,b),$n<ft&&(ft=$n,fe=!0)))}}z=x-a,ee=E-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),b.x-=z*Se,b.y-=ee*Se,qe.free(Ce)}else yt("Unknown Geometry type: "+de.type);return fe?(this.transform.Ga(b),!0):!1};function Om(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function Dm(a,y,x,E,b,z,ee,re,oe){if(It.$(a,x)&&It.$(y,E)||It.$(b,ee)&&It.$(z,re))return!1;var de=!1,fe=(b-ee)*(y-E)-(z-re)*(a-x);return fe===0?!1:(oe.x=((b*re-z*ee)*(a-x)-(b-ee)*(a*E-y*x))/fe,oe.y=((b*re-z*ee)*(y-E)-(z-re)*(a*E-y*x))/fe,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(oe.y>a||It.$(oe.y,a))&&(oe.y<y||It.$(oe.y,y))&&(de=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||It.$(oe.x,y))&&(oe.x<a||It.$(oe.x,a))&&(de=!0)),de)}Be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=qe.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),qe.free(z),b},Be.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=$i.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var ee=qe.alloc();if(ee.h(E,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(b,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0)))return qe.free(ee),!0;var re=qe.alloc(),oe=qe.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=b,re.y=z,re.transform(x),ee.x=E,ee.y=z,ee.transform(x),y=!1,Dh(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=a,ee.transform(x),Dh(this,ee,re,oe)?y=!0:(re.x=E,re.y=a,re.transform(x),Dh(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=z,ee.transform(x),Dh(this,ee,re,oe)&&(y=!0)))),qe.free(ee),$i.free(x),qe.free(re),qe.free(oe),y};function Dh(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}Be.tx=function(a,y,x){function E(ft,ut){for(var vt=ft.length,St=0;St<vt;St+=2)if(ut.zd(ft[St],ft[St+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ee=y.bounds,re=ee.x,oe=ee.y,de=ee.x+ee.width;if(ee=ee.y+ee.height,ui(a.x,a.y,re,oe)<=b&&ui(a.x,a.y,de,oe)<=b&&ui(a.x,a.y,re,ee)<=b&&ui(a.x,a.y,de,ee)<=b)return!0}if(re=y.startX,oe=y.startY,de=y.endX,ee=y.endY,y.type===Wn.j){if(x=(re-de)*(a.x-de)+(oe-ee)*(a.y-ee),gi(a.x,a.y,re,oe,de,ee)<=(0<=(de-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?b:z))return!0}else{if(y.type===Wn.u)return y=!1,x&&(y=gi(a.x,a.y,re,oe,re,ee)<=b||gi(a.x,a.y,re,oe,de,oe)<=b||gi(a.x,a.y,de,oe,de,ee)<=b||gi(a.x,a.y,re,ee,de,ee)<=b),y;if(y.type===Wn.F){y=a.x-(re+de)/2,z=a.y-(oe+ee)/2;var fe=Math.abs(de-re)/2,Se=Math.abs(ee-oe)/2;if(fe===0||Se===0)return gi(a.x,a.y,re,oe,de,ee)<=b;if(x){if(a=It.$y(fe,Se,y,z),a*a<=b)return!0}else return!(ui(y,z,-fe,0)>=b||ui(y,z,0,-Se)>=b||ui(y,z,0,Se)>=b||ui(y,z,fe,0)>=b)}else if(y.type===Wn.o){if(de=y.bounds,z=de.x,re=de.y,oe=de.x+de.width,de=de.y+de.height,a.x>oe&&a.x<z&&a.y>de&&a.y<re&&gi(a.x,a.y,z,re,z,de)>b&&gi(a.x,a.y,z,re,oe,re)>b&&gi(a.x,a.y,oe,de,z,de)>b&&gi(a.x,a.y,oe,de,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?as(y,a.x,a.y,z):Na(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,fe=z.startY,a.zd(ee,fe)>b)return!1;for(re=z.segments.s,oe=re.length,de=0;de<oe;de++)switch(Se=re[de],Se.type){case qo:case Oo:if(ee=Se.endX,fe=Se.endY,a.zd(ee,fe)>b)return!1;break;case Oa:var Ce=si();if(It.Qe(ee,fe,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.8,Ce),ee=E(Ce,a),oi(Ce),ee||(ee=Se.endX,fe=Se.endY,a.zd(ee,fe)>b))return!1;break;case Ws:if(Ce=si(),It.ep(ee,fe,Se.point1X,Se.point1Y,Se.endX,Se.endY,.8,Ce),ee=E(Ce,a),oi(Ce),ee||(ee=Se.endX,fe=Se.endY,a.zd(ee,fe)>b))return!1;break;case xa:case Js:Ce=Se.type===xa?ms(Se,z):Us(Se,z,ee,fe);var Ne=Ce.length;if(Ne===0){if(ee=Se.type===xa?Se.centerX:Se.endX,fe=Se.type===xa?Se.centerY:Se.endY,a.zd(ee,fe)>b)return!1;break}Se=null;for(var De=si(),Ye=0;Ye<Ne;Ye++)if(Se=Ce[Ye],De.length=0,It.Qe(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.8,De),E(De,a))return oi(De),!1;oi(De),Se!==null&&(ee=Se[6],fe=Se[7]);break;default:yt("Unknown Segment type: "+Se.type)}}return!0}}}return!1},Be.qc=function(){this.ua=null},Be.kq=function(){return this.ig};function ES(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=gp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Qr):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Pi(1-Qr.x,Qr.y)))}kr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=Uc[a.toArrow];else a.fromArrow!=="None"?E=Uc[a.fromArrow]:(E=It.Ze[a.figure],typeof E=="string"&&(E=It.Ze[E]),E===void 0&&yt("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=It.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function bS(a){var y=Uc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Uc[x],y===void 0){var E=null,b;for(b in It.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=Wn.parse(It.um[E],!1),Uc[E]=a,x!==E&&(Uc[x]=E),E}}return typeof y=="string"?y:y instanceof Wn?a:null}wn.Object.defineProperties(kr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),Is(this)&&(a=this.part,a!==null&&ra(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Wn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=qe.allocAt(-y.x,-y.y),qe.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&&sf(a,"Shape.fill"),a instanceof ko&&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&&sf(a,"Shape.stroke"),a instanceof ko&&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 li(a,"value >= 0",kr,"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"?li(a,'"butt", "round", or "square"',kr,"strokeCap"):(Oh(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"?li(a,'"miter", "bevel", or "round"',kr,"strokeJoin"):(Oh(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){Oh(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||yt("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Oh(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=It.Ze[a];typeof x=="function"?x=a:(x=It.Ze[a.toLowerCase()])||yt("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=bS(a);x===null?yt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Zd),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),ES(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=bS(a);x===null?yt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Zd),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),ES(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ka},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Oh(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ka},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Oh(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&&(Oh(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Er},set:function(a){var y=this.geometryStretch;y!==a&&(Oh(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 zc),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Ec(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 zc),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 zc),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 zc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),kr.prototype.intersectsRect=kr.prototype.Yc,kr.prototype.containedInRect=kr.prototype.fh,kr.prototype.getNearestIntersectionPoint=kr.prototype.rs,kr.prototype.getDocumentBounds=kr.prototype.mi,kr.prototype.getDocumentPoint=kr.prototype.ga;var Uc=new Hi,kv=new Hi;kr.className="Shape",kr.getFigureGenerators=function(){var a=new Yt,y;for(y in It.Ze)y!==y.toLowerCase()&&a.add(y,It.Ze[y]);return a.freeze(),a},kr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=It.Ze;E[a]=y,E[x]=a},kr.getArrowheadGeometries=function(){var a=new Yt;for(E in It.um)if(Uc[E]===void 0){var y=Wn.parse(It.um[E],!1);Uc[E]=y,y=E.toLowerCase(),y!==E&&(Uc[y]=E)}for(var x in Uc)if(x!==x.toLowerCase()){var E=Uc[x];E instanceof Wn&&a.add(x,E)}return a.freeze(),a},kr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Wn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||yt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Uc;E[a]=x,E[y]=a};function Nv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Er,this.gg=this.fg=ka}Nv.prototype.copy=function(){var a=new Nv;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 Qo(a,y){return Dt.call(this),zm||(Nl=Ca?new _u(null).context:null,zm=!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}$t(Qo,Dt),Qo.prototype.cloneProtected=function(a){Dt.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 Tc(a){a.da===null?a.da=new Fv:a.da.nc&&(a.da=a.da.copy())}Be=Qo.prototype,Be.th=function(){Dt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function wS(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}Be.qb=function(a){a.classType===Qo?this.wrap=a:Dt.prototype.qb.call(this,a)},Be.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Be.v=function(){Dt.prototype.v.call(this)},Be.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,ee=sp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var de=this.isStrikethrough;Aa(this,a,this.xc,!0,!1,x,E),(oe||de)&&Aa(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var fe=this.oe,Se=fe.dx-(ee*fe.m21+fe.dx);fe=fe.dy-(ee*fe.m22+fe.dy);var Ce=y.scale;switch(8>(Se*Se+fe*fe)*Ce*Ce&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ql&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Se=this.spacingBelow,this.flip){case io:a.translate(b,0),a.scale(-1,1);break;case Fr:a.translate(0,z),a.scale(1,-1);break;case Bo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),fe=this.Gc,Ce=(y+ee+Se)*fe,z>Ce&&(E=this.verticalAlignment,E=E.y*z-E.y*Ce+E.offsetY),fe===1&&this.ze!==null)Se=this.Cb,Se>b&&(Se=b),this.Oj(this.ze,a,0,E+y,b,ee,Se,x,re,oe,de);else if(this.Qc!==null&&this.Qb!==null)for(Ce=0;Ce<fe;Ce++){var Ne=this.Qc[Ce];Ne>b&&(Ne=b),E+=y,this.Oj(this.Qb[Ce],a,0,E,b,ee,Ne,x,re,oe,de),E+=ee+Se}switch(this.flip){case io:a.scale(-1,1),a.translate(-b,0);break;case Fr:a.scale(1,-1),a.translate(0,-z);break;case Bo:a.scale(-1,-1),a.translate(-b,-z)}}},Be.Oj=function(a,y,x,E,b,z,ee,re,oe,de,fe){var Se=0;if(re)oe==="left"?Se=0:oe==="right"?Se=b-ee:oe==="center"&&(Se=(b-ee)/2),y.fillRect(x+Se,E+.25*z,ee,1);else{if(oe==="left"?Se=0:oe==="right"?Se=b:oe==="center"&&(Se=b/2),b=Fm!==null?Fm(this,z):.75*z,y.fillText(a,x+Se,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?Se-=ee:oe==="center"&&(Se-=ee/2),de){re=Bm!==null?Bm(this,z):.8*z,oe=x+Se,de=E+re,b=x+Se+ee,re=E+re;var Ce=a;y.beginPath(),y.lineWidth=Ce,y.moveTo(oe,de),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Ql&&y.ad.classList.add("gojs-td")}fe&&(fe=E+z-z/2.2|0,a%2!==0&&(fe+=.5),E=x+Se,z=fe,x=x+Se+ee,ee=fe,Se=a,y.beginPath(),y.lineWidth=Se,y.moveTo(E,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof Ql&&y.ad.classList.add("gojs-td"))}},Be.kk=function(a,y,x){if(!Dt.prototype.kk.call(this,a,y,x))return!1;if(Aa(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++)nS(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,nS(a,y,!0);return!0},Be.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Dt.prototype.nk.call(this,a)},Be.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)}},Be.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Nl!==null&&IS!==z&&(IS=Nl.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var de=z.indexOf(`
|
|
|
`,re);de===-1&&(de=z.length,oe=!0),re=z.substr(re,de-re),this.formatting===lp&&(re=re.trim()),ee=Math.max(ee,ec(re)),re=de+1}z=ee}else ee=z.indexOf(`
|
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=ec(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ee=TS(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===_m&&(y=this.Ae,y=this.overflow===_m?CS(y):0,de=this.spacingAbove+this.spacingBelow,de=Math.max(0,sp(this)+de),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/de+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,de=this.Qb[oe],y=Math.max(1,a-y);ec(de)>y&&1<de.length;)de=de.substr(0,de.length-1);de+=up,y=ec(de),this.Qb[oe]=de,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===AS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(E,ee),mo(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Be.eh=function(a,y,x,E){tl(this,a,y,x,E)};function ap(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Lv(a,y,x,E){var b=a.formatting===lp;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,sp(a)+re);var oe=a.overflow===_m?CS(ee):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ee=y,a.wrap===Iv){a.Le=1;var de=ec(y);if(oe===0||de<=x)a.Cb=Math.max(a.Cb,de),ap(a,y,a.Cb),E!==null&&E.h(de,re);else{for(z=Qf(a,ee),ee=ee.substr(z.length),y=Qf(a,ee),de=ec(z+y);0<y.length&&de<=x;)z+=y,ee=ee.substr(y.length),y=Qf(a,ee),de=z+y,b&&(de=de.trim()),de=ec(de);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);ec(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=up;var fe=ec(z);a.Cb=fe,ap(a,z,fe),E!==null&&E.h(fe,re)}}else{for(oe=0,ee.length===0&&(oe=1,ap(a,ee,0));0<ee.length;){for(y=Qf(a,ee),ee=ee.substr(y.length);ec(y)>x;){var Se=1;for(de=ec(y.substr(0,Se)),fe=0;de<=x;)Se++,fe=de,de=ec(y.substr(0,Se));if(Se===1){var Ce=de;z=Math.max(z,de)}else Ce=fe,z=Math.max(z,fe);if(Se--,1>Se&&(Se=1),ap(a,y.substr(0,Se),Ce),oe++,y=y.substr(Se),a.Gc+oe>a.maxLines)break}for(fe=Qf(a,ee),de=ec(y+fe);0<fe.length&&de<=x;)y+=fe,ee=ee.substr(fe.length),fe=Qf(a,ee),de=y+fe,b&&(de=de.trim()),de=ec(de);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),fe.length===0?(Se=de,z=Math.max(z,de)):(Se=fe=ec(y),z=Math.max(z,fe)),ap(a,y,Se),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function Qf(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,E=0,b=Nx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===kS&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function ec(a){return Nl===null?8*a.length:Nl.measureText(a).width}function sp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Nl===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>LS?x=Ov[y]:(x=1.3*Nl.measureText("M").width,Ov[y]=x,LS++),a.df=x}function CS(a){if(Nl===null)return 6;if(Um[a]!==void 0&&5e3>Dv)var y=Um[a];else y=Nl.measureText(up).width,Um[a]=y,Dv++;return y}function TS(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,sp(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
|
|
|
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Iv){a.Le=0;var oe=En.alloc();Lv(a,z,y,oe),b+=oe.height,En.free(oe),a.Gc+=a.Le}else Lv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}wn.Object.defineProperties(Qo.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"||(Tc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:kn},set:function(a){var y=this.flip;y!==a&&(Tc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:xl},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Tc(this),this.da.Yr=a,ul(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=En.alloc();Lv(this,this.ec,999999,a);var y=a.width;En.free(a),a=TS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),mo(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:Mv},set:function(a){var y=this.wrap;y!==a&&(Tc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Rv},set:function(a){var y=this.overflow;y!==a&&(Tc(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&&sf(a,"TextBlock.stroke"),a instanceof ko&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return sp(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&&(Tc(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&&(Tc(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 zc),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 zc),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 zc),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 zc),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 zc),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&&(Tc(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&&(Tc(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&&(Tc(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&&(Tc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:lp},set:function(a){var y=this.formatting;y!==a&&(Tc(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&&li(a,"> 0",Qo,"maxLines"),Tc(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 Fm=null,Bm=null,Iv=new Gt(Qo,"None",0),AS=new Gt(Qo,"WrapFit",1),Mv=new Gt(Qo,"WrapDesiredSize",2),PS=new Gt(Qo,"WrapBreakAll",3),Rv=new Gt(Qo,"OverflowClip",0),_m=new Gt(Qo,"OverflowEllipsis",1),lp=new Gt(Qo,"FormatTrim",0),kS=new Gt(Qo,"FormatNone",0),Nx=/[ \u200b\u00ad]/,Ov=new Hi,LS=0,Um=new Hi,Dv=0,up="...",IS="",Nl=null,zm=!1;Qo.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=kn,this.gq=lp,this.Jq=1/0,this.$q=Rv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=xl,this.$r=Mv}Fv.prototype.copy=function(){var a=new Fv;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},Qo.getEllipsis=function(){return up},Qo.setEllipsis=function(a){up=a,Um=new Hi,Dv=0},Qo.getBaseline=function(){return Fm},Qo.setBaseline=function(a){Fm=a},Qo.getUnderline=function(){return Bm},Qo.setUnderline=function(a){Bm=a},Qo.isValidFont=function(a){if(zm||(Nl=Ca?new _u(null).context:null,zm=!0),Nl===null)return!0;var y=Nl.font;if(a===y||a==="10px sans-serif")return!0;Nl.font="10px sans-serif",Nl.font=a;var x=Nl.font;if(x!=="10px sans-serif")return Nl.font=y,!0;Nl.font="19px serif";var E=Nl.font;return Nl.font=a,x=Nl.font,Nl.font=y,x!==E},Qo.FormatNone=kS,Qo.FormatTrim=lp,Qo.None=Iv,Qo.OverflowClip=Rv,Qo.OverflowEllipsis=_m,Qo.WrapBreakAll=PS,Qo.WrapDesiredSize=Mv,Qo.WrapFit=AS;function zc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}zc.prototype.copy=function(){var a=new zc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},zc.className="GradElementSettings";function Ll(a,y){Dt.call(this),this.Eg=null,this.qo="",this.Xg=bs,this.Nk=Hn,this.Zg=this.Hd=null,this.Mk=vr,this.Xf=kn,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 Jf;$t(Ll,Dt),Ll.prototype.cloneProtected=function(a){Dt.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},Ll.prototype.qb=function(a){a===kn||a===Bi||a===Xr?this.imageStretch=a:Dt.prototype.qb.call(this,a)},Ll.prototype.toString=function(){return"Picture("+this.source+")#"+Sr(this)};function qf(a){a===void 0&&(a=""),a!==""?Jf[a]&&(delete Jf[a],Hm--):(Jf=new Hi,Hm=0)}function MS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Xa(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null){b=ee.length,z=si();for(var re=0;re<b;re++)z.push(ee[re]);if(y.hn)for(re=0;re<b;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);oi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Ll.prototype.hA=function(){if(this.source!==""){qf(this.source);var a=this.source;this.source="",this.source=a}},Ll.prototype.redraw=function(){this.N(),this.Uc=!0},Ll.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Mh)){var b=a instanceof Ql;E=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||E.width,re=re||E.height,oe!==0&&re!==0){var de=oe,fe=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var Se=oe,Ce=re,Ne=this.Nk,De=this.Mk;switch(Ne){case kn:if(this.sourceRect.w())break;Se>=E.width&&(z=z+De.offsetX+(Se*De.x-E.width*De.x)),Ce>=E.height&&(ee=ee+De.offsetY+(Ce*De.y-E.height*De.y)),oe=Math.min(E.width,Se),re=Math.min(E.height,Ce);break;case Hn:Se=E.width,Ce=E.height;break;case Bi:case Xr:Ne===Bi?(Ne=Math.min(E.height/Ce,E.width/Se),Se*=Ne,Ce*=Ne):Ne===Xr&&(Ne=Math.max(E.height/Ce,E.width/Se),Se*=Ne,Ce*=Ne,Se>=E.width&&(z=(z+De.offsetX+(Se*De.x-E.width*De.x)/Se)*oe),Ce>=E.height&&(ee=(ee+De.offsetY+(Ce*De.y-E.height*De.y)/Ce)*re),oe*=1/(Se/E.width),re*=1/(Ce/E.height),Se=E.width,Ce=E.height)}Ne=this.Df()*y.scale;var Ye=Se*Ne*Ce*Ne,ft=oe*re/Ye,ut=x.__goCache;Ne=null;var vt=Lx;if(!b){if(x.sq&&ut!==void 0&&4<Ye&&ft>vt*vt)for(ut.gi===null&&(OS(ut,4,de,fe,x),OS(ut,16,de,fe,x)),b=ut.gi,de=b.length,fe=0;fe<de&&b[fe].ratio*b[fe].ratio<ft;fe++)Ne=b[fe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new _u(null).context;try{b.drawImage(this.Eg,0,0)}catch(St){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(St){this.vl=!0}}if(this.vl)return}}switch(b=Se<E.width?De.offsetX+(E.width*De.x-Se*De.x):0,De=Ce<E.height?De.offsetY+(E.height*De.y-Ce*De.y):0,this.flip){case io:a.translate(Math.min(E.width,Se),0),a.scale(-1,1);break;case Fr:a.translate(0,Math.min(E.height,Ce)),a.scale(1,-1);break;case Bo:a.translate(Math.min(E.width,Se),Math.min(E.height,Ce)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&ut!==void 0&&Ne!==null&&Ne.ratio!==1){a.save(),y=Ne.ratio;try{a.drawImage(Ne.source,z/y,ee/y,Math.min(Ne.source.width,oe/y),Math.min(Ne.source.height,re/y),b,De,Math.min(E.width,Se),Math.min(E.height,Ce)),a instanceof Ql&&(this.bt=[z/y,ee/y,Math.min(Ne.source.width,oe/y),Math.min(Ne.source.height,re/y),b,De,Math.min(E.width,Se),Math.min(E.height,Ce)])}catch(St){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,b,De,Math.min(E.width,Se),Math.min(E.height,Ce)),a instanceof Ql&&(this.bt=[z,ee,oe,re,b,De,Math.min(E.width,Se),Math.min(E.height,Ce)])}catch(St){this.en=!1}switch(this.flip){case io:a.scale(-1,1),a.translate(-Math.min(E.width,Se),0);break;case Fr:a.scale(1,-1),a.translate(0,-Math.min(E.height,Ce));break;case Bo:a.scale(-1,-1),a.translate(-Math.min(E.width,Se),-Math.min(E.height,Ce))}}}}},Ll.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=kl(this,!0),ee=this.Eg,re=this.qn,oe=0,de=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,de=re?+ee.height:ee.naturalHeight),isFinite(b.width)||z===Hn||z===ji?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===Hn||z===nr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=de)),E=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:de),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),mo(this.dc,a,y),this.Ge(0,0,a,y)},Ll.prototype.eh=function(a,y,x,E){tl(this,a,y,x,E)},wn.Object.defineProperties(Ll.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||yt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&jg(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Mn),E!==null&&x&&Vd(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Xa(this,!1),this.v())):x&&MS(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=Jf;if(Ca){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Hm&&(qf(),x=Jf),E=ci("img"),E.hn=!0,MS(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Hm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new RS),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}}}),Ll.prototype.redraw=Ll.prototype.redraw,Ll.prototype.reloadSource=Ll.prototype.hA;var Hm=0,Lx=4;Ll.className="Picture",Jf=new Hi,Ll.clearCache=qf;function RS(){this.gi=null}function OS(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new _u(null),ee=z.context,re=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new DS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(b,0,0),a.gi.push(y))}RS.className="PictureCacheArray";function DS(a,y){this.source=a,this.ratio=y}DS.className="PictureCacheInstance";function $f(){this.os=new Wn,this.mc=null}$f.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Wn,this.mc=null};function eg(a,y,x,E,b,z){a.mc=new wa,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function Ix(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}$f.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new qr(qo);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},$f.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new qr(Oo);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function bd(a,y,x,E,b,z,ee){var re;re===void 0&&(re=!1);var oe=new qr(Oa);oe.point1X=y,oe.point1Y=x,oe.point2X=E,oe.point2Y=b,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function jm(a,y,x,E,b){var z;z===void 0&&(z=!1);var ee=new qr(Ws);ee.point1X=y,ee.point1Y=x,ee.endX=E,ee.endY=b,z&&ee.close(),a.mc.segments.add(ee)}$f.prototype.arcTo=function(a,y,x,E,b,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new qr(xa);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=E,re.radiusX=b,re.radiusY=z!==0?z:b,ee&&re.close(),this.mc.segments.add(re)};function Mx(a,y,x,E,b,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new qr(Js,ee,re,y,x,E,b,z),oe&&y.close(),a.mc.segments.add(y)}function FS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new $f,y.reset(a),y)}var Gm=null;$f.className="StreamGeometryContext";function Xs(a,y){var x=a.toLowerCase(),E=It.Ze;E[a]=y,E[x]=a}Xs("Rectangle",function(a,y,x){a="r"+y+","+x;var E=It.Mf[a];return E!==void 0||(E=new Wn(Wn.u),E.endX=y,E.endY=x,It.Nf<It.vm&&(It.Mf[a]=E,It.Nf++)),E}),Xs("Square",function(a,y,x){a="s"+y+","+x;var E=It.Mf[a];return E!==void 0||(E=new Wn(Wn.u),E.endX=y,E.endY=x,E.defaultStretch=Bi,It.Nf<It.vm&&(It.Mf[a]=E,It.Nf++)),E}),Xs("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=It.Mf[E];if(b!==void 0)return b;var z=a*It.wg;return b=new Wn().add(new wa(a,0,!0).add(new qr(Oo,y-a,0)).add(new qr(Oa,y,a,y-z,0,y,z)).add(new qr(Oo,y,x-a)).add(new qr(Oa,y-a,x,y,x-z,y-z,x)).add(new qr(Oo,a,x)).add(new qr(Oa,0,x-a,z,x,0,x-z)).add(new qr(Oo,0,a)).add(new qr(Oa,a,0,0,z,z,0).close())),1<z&&(b.spot1=new Pi(0,0,z,z),b.spot2=new Pi(1,1,-z,-z)),It.Nf<It.vm&&(It.Mf[E]=b,It.Nf++),b}),Xs("Border","RoundedRectangle"),Xs("Ellipse",function(a,y,x){a="e"+y+","+x;var E=It.Mf[a];return E!==void 0||(E=new Wn(Wn.F),E.endX=y,E.endY=x,E.spot1=Ro,E.spot2=aa,It.Nf<It.vm&&(It.Mf[a]=E,It.Nf++)),E}),Xs("Circle",function(a,y,x){a="c"+y+","+x;var E=It.Mf[a];return E!==void 0||(E=new Wn(Wn.F),E.endX=y,E.endY=x,E.spot1=Ro,E.spot2=aa,E.defaultStretch=Bi,It.Nf<It.vm&&(It.Mf[a]=E,It.Nf++)),E}),Xs("TriangleRight",function(a,y,x){return new Wn().add(new wa(0,0).add(new qr(Oo,y,.5*x)).add(new qr(Oo,0,x).close())).pm(0,.25,.5,.75)}),Xs("TriangleDown",function(a,y,x){return new Wn().add(new wa(0,0).add(new qr(Oo,y,0)).add(new qr(Oo,.5*y,x).close())).pm(.25,0,.75,.5)}),Xs("TriangleLeft",function(a,y,x){return new Wn().add(new wa(y,x).add(new qr(Oo,0,.5*x)).add(new qr(Oo,y,0).close())).pm(.5,.25,1,.75)}),Xs("TriangleUp",function(a,y,x){return new Wn().add(new wa(y,x).add(new qr(Oo,0,x)).add(new qr(Oo,.5*y,0).close())).pm(.25,.5,.75,1)}),Xs("Triangle","TriangleUp"),Xs("Diamond",function(a,y,x){return new Wn().add(new wa(.5*y,0).add(new qr(Oo,0,.5*x)).add(new qr(Oo,.5*y,x)).add(new qr(Oo,y,.5*x).close())).pm(.25,.25,.75,.75)}),Xs("LineH",function(a,y,x){return a=new Wn(Wn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Xs("LineV",function(a,y,x){return a=new Wn(Wn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Xs("None","Rectangle"),Xs("BarH","Rectangle"),Xs("BarV","Rectangle"),Xs("MinusLine","LineH"),Xs("PlusLine",function(a,y,x){return new Wn().add(new wa(0,x/2,!1).add(new qr(Oo,y,x/2)).add(new qr(qo,y/2,0)).add(new qr(Oo,y/2,x)))}),Xs("XLine",function(a,y,x){return new Wn().add(new wa(0,x,!1).add(new qr(Oo,y,0)).add(new qr(qo,0,0)).add(new qr(Oo,y,x)))}),Xs("LineRight",function(a,y,x){return new Wn().add(new wa(.25*y,0,!1).add(new qr(Oo,.75*y,.5*x)).add(new qr(Oo,.25*y,x)))}),Xs("LineDown",function(a,y,x){return new Wn().add(new wa(0,.25*x,!1).add(new qr(Oo,.5*y,.75*x)).add(new qr(Oo,y,.25*x)))}),Xs("LineLeft",function(a,y,x){return new Wn().add(new wa(.75*y,0,!1).add(new qr(Oo,.25*y,.5*x)).add(new qr(Oo,.75*y,x)))}),Xs("LineUp",function(a,y,x){return new Wn().add(new wa(0,.75*x,!1).add(new qr(Oo,.5*y,.25*x)).add(new qr(Oo,y,.75*x)))}),It.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 Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Co,this.ir=null,this.jr="",this.lr=ka,this.Gq="",this.Hq=Dr,this.Pq=yi,this.Kq=Ki,this.Up=null,this.Cq=127,this.zr=_i,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;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 Qi(a,y){a===void 0||a instanceof $a||typeof a=="string"?Yn.call(this,a):(Yn.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 qe(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new qt,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}$t(Qi,Yn),Qi.prototype.cloneProtected=function(a){Yn.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},Be=Qi.prototype,Be.Af=function(a){Yn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Be.toString=function(){var a=yn(this.constructor)+"#"+Sr(this);return this.data!==null&&(a+="("+ir(this.data)+")"),a};function Il(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Be.th=function(){Yn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Be.gk=function(a,y,x,E,b,z,ee){var re=this.diagram;re!==null&&(a===fa&&y==="elements"?b instanceof Yn?Rh(b,function(oe){cy(re.partManager,oe),Th(re,oe)}):Vd(re,b):a===ya&&y==="elements"&&(b instanceof Yn?Rh(b,function(oe){dy(re.partManager,oe,re)}):jg(re,b)),re.cb(a,y,x,E,b,z,ee))},Be.La=function(a){if(Yn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof Yn&&Rh(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Qi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Qi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Qi.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new Yt),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Qi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Qi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=si();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);oi(y)}},Qi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof yr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof so))break e;Uu(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Yn.Link),x.adornedObject=y)}if(x!==null){x.type===Yn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Rx(this,a),y=this.adornments;y.next();)y.value.La()}},Qi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function _v(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Rx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Wm(a){if(Xd(a)===!1){zv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function BS(a){if(a.G|=2097152,Xd(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||zS(a,y,x),x=a.Ib;var E=qt.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),qt.free(E),zv(a,!1)}}Qi.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new $i);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},Qi.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=vr;this.locationSpot.sb()&&(z=this.locationSpot);var ee=qe.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,E,b,z);a.rotate(this.Kb,ee.x,ee.y),qe.free(ee)}},Qi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Qi.prototype.moveTo=function(a,y,x){a=qe.allocAt(a,y),this.move(a,x),qe.free(a)},Qi.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())},Qi.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())},Qi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Yt),y.I(a)!==null)return y.I(a);var x=Yn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function wd(a,y,x,E){E===void 0&&(E=new qe),x=x.Mc()?vr:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}Qi.prototype.mi=function(a){return a===void 0&&(a=new qt),a.assign(this.actualBounds)},Qi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function _S(a){var y=qe.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof kr?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Fh(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=gS(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,E-=ee/2,b-=ee/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}Qi.prototype.arrange=function(){if(cl(this)===!1)BS(this);else{Fc(this,!1);var a=this.Ib,y=qt.alloc();y.assign(a);var x=Qd(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;zS(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||It.B(y.width,a.width)&&It.B(y.height,a.height)||0<=this.vw&&this.C(16),qt.free(y),zv(this,!1)}},Be=Qi.prototype,Be.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=qt.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),qt.free(b)}!(this.G&65536)&&a.D(y)||GS(this,E,x),x.N(),!a.w()&&!y.w()||fr(a,y)||(this instanceof vi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Be.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&US(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new qe(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),Xd(this)===!1&&cl(this)===!1&&(Wm(this),BS(this)),!0};function US(a,y,x,E,b){y===null||a instanceof so||(y=y.animationManager,y.zb&&Ou(y,a,new qe(E,b),x))}Be.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;Xd(this)||cl(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}Wm(this)},Be.Av=function(){this.G&=-2097153,Wm(this)};function zS(a,y,x){var E=_S(a),b=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?HS(a,y,x,b,E):jS(a,y,x,b,E):z?HS(a,y,x,b,E):ee&&jS(a,y,x,b,E),a.G|=2097152,qe.free(E),a.Uk()}function HS(a,y,x,E,b){var z=y.x,ee=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof so||Ou(x,a,new qe(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new qe(z,ee),y.copy()))}function jS(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function GS(a,y,x){Hv(a,!1),a instanceof vi&&md(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?Qd(a)?(dn(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Be.si=function(){return!0},Be.Zc=function(){return!0},Be.ph=function(){return!1},Be.Dd=function(){return!0};function Uv(a,y,x,E){y.constructor===a.constructor||YS||(YS=!0,ii('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),ii(" Old class: "+yn(a.constructor)+", new class: "+yn(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,de=!1;a instanceof vi&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,de=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof vi&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=de?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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 Xd(a){return(a.G&32768)!==0}function zv(a,y){a.G=y?a.G|32768:a.G&-32769}function Hv(a,y){a.G=y?a.G|65536:a.G&-65537}function Qd(a){return(a.G&131072)!==0}Be=Qi.prototype,Be.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Vm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Be.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Be.N=function(){var a=this.diagram;a!==null&&!cl(this)&&!Xd(this)&&this.isVisible()&&this.Ib.w()&&a.N(Fh(this,this.Ib))},Be.v=function(){Yn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof vi&&this.labeledLink!==null&&ul(this.labeledLink),a.$b(!0))},Be.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Be.Wo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},Be.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Be.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof vi&&(y=y.labeledLink,y!==null)?jv(a,y):0}Be.sz=function(){return WS(this,this)};function WS(a,y){var x=y.containingGroup;return x!==null||y instanceof vi&&(x=y.labeledLink,x!==null)?WS(a,x):y}Be.Td=function(a){return a instanceof yr?Gv(this,this,a):!1};function Gv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Gv(a,E,x)?y instanceof vi&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}Be.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof yr&&Vm(y,!0),y instanceof vi){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 vi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof yr&&Vm(y,!1),y instanceof vi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Qi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof vi&&this.isLinkLabel)},Qi.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 vi&&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 VS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Jd(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof so)){if(a.add(y),y instanceof vi){if(x&&y instanceof yr)for(var ee=y.memberParts;ee.next();)Jd(a,ee.value,x,E,b,z);if(b!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,de=re.toNode;oe=oe===null||a.contains(oe),de=de===null||a.contains(de),(b?oe&&de:oe||de)&&Jd(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)Jd(a,y.value,x,E-1,b,z)}else if(y instanceof ei)for(y=y.labelNodes;y.next();)Jd(a,y.value,x,E,b,z)}}wn.Object.defineProperties(Qi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?jr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(ya,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(fa,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Il(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&&kf(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 so?this.type!==Yn.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:yi},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Il(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Ki},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Il(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&&(Il(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:Dr},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Il(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,cl(this)===!1&&(Wm(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),US(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof so)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof so?this instanceof so&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Uu(x),x=x.copy(),x!==null&&Uv(this,x,y,a))):(z!==null&&z.jm(E,a),x=v1(x.partManager,E,a),x!==null&&(Uu(x),x=x.copy(),x===null||x instanceof ei||(E=this.location.copy(),Uv(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){Uv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Il(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&&(Il(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&&(Il(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 ei?(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&&(Il(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&&(Il(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&&(Il(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:Co},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Il(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&&(Il(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&&(Il(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:ka},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Il(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&&yt("Cannot make a Group a member of itself: "+this.toString()),yt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Zv(y,this):this instanceof yr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof yr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof yr){for(x=new Mn,Jd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof vi)for(E=E.linksConnected;E.next();)tg(E.value)}if(this instanceof vi){for(x=this.linksConnected;x.next();)tg(x.value);x=this.labeledLink,x!==null&&tg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&kf(y,-1,a))}}else yt("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&&(Il(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof vi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Il(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&&(Il(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_i},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Il(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&&(Il(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&&(Il(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Qi.prototype.invalidateLayout=Qi.prototype.C,Qi.prototype.findCommonContainingGroup=Qi.prototype.px,Qi.prototype.isMemberOf=Qi.prototype.Td,Qi.prototype.findTopLevelPart=Qi.prototype.sz,Qi.prototype.findSubGraphLevel=Qi.prototype.oz,Qi.prototype.ensureBounds=Qi.prototype.Va,Qi.prototype.getDocumentBounds=Qi.prototype.mi,Qi.prototype.findObject=Qi.prototype.fb,Qi.prototype.moveTo=Qi.prototype.moveTo,Qi.prototype.invalidateAdornments=Qi.prototype.Wb,Qi.prototype.clearAdornments=Qi.prototype.Ej,Qi.prototype.removeAdornment=Qi.prototype.Jf,Qi.prototype.addAdornment=Qi.prototype.bh,Qi.prototype.findAdornment=Qi.prototype.Pj,Qi.prototype.updateTargetBindings=Qi.prototype.La;var YS=!1;Qi.className="Part",Qi.LayoutNone=0,Qi.LayoutAdded=1,Qi.LayoutRemoved=2,Qi.LayoutShown=4,Qi.LayoutHidden=8,Qi.LayoutNodeSized=16,Qi.LayoutGroupLayout=32,Qi.LayoutNodeReplaced=64,Qi.LayoutStandard=127,Qi.LayoutAll=16777215;function so(a,y){a===void 0||a instanceof $a||typeof a=="string"?Qi.call(this,a):(Qi.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)}$t(so,Qi),so.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},so.prototype.updateRelationshipsFromData=function(){},so.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof ei&&y instanceof kr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof kr&&(b.ua=a)}}},so.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!cl(a))},so.prototype.Zc=function(){return!1},so.prototype.gk=function(a,y,x,E,b,z,ee){if(a===fa&&y==="elements"){if(b instanceof hl)this.$a===null&&(this.$a=b);else if(b instanceof Yn){var re=b.Nl(function(oe){return oe instanceof hl});re instanceof hl&&this.$a===null&&(this.$a=re)}}else a===ya&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Yn&&this.$a.rg(E)&&(this.$a=null));Qi.prototype.gk.call(this,a,y,x,E,b,z,ee)},so.prototype.updateAdornments=function(){},so.prototype.Lj=function(){},wn.Object.defineProperties(so.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}}}),so.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=va,this.er=Zm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;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 vi(a,y){a===void 0||a instanceof $a||typeof a=="string"?Qi.call(this,a):(Qi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Pn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}$t(vi,Qi),vi.prototype.cloneProtected=function(a){Qi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Be=vi.prototype,Be.Af=function(a){Qi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Cd(a){a.Ba===null?a.Ba=new Wv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Be.th=function(){Qi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function KS(a,y){y!==null&&(a.af===null&&(a.af=new Mn),a.af.add(y))}function ZS(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}Be.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=ZS(this,a,y,x),a!==null&&a.Sl()},Be.gk=function(a,y,x,E,b,z,ee){a===fa&&y==="elements"?this.wc=null:a===ya&&y==="elements"&&(this.wc=null),Qi.prototype.gk.call(this,a,y,x,E,b,z,ee)},Be.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Jl(x.fromPort),Jl(x.toPort),x.bb())}};function XS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Jl(x.fromPort),Jl(x.toPort),x.bb())}}function Jl(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Jl(y.port)}}Be.si=function(){return!0},vi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},vi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},vi.prototype.isVisible=function(){if(!Qi.prototype.isVisible.call(this))return!1;var a=!0,y=yd,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===yd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Za){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===zf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},vi.prototype.Zb=function(a){Qi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},vi.prototype.qx=function(){var a=new Mn,y=new Mn;return QS(this,this,a,y),y.iterator};function QS(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(b?ee.fromNode===y:ee.toNode===y)&&QS(a,b?ee.toNode:ee.fromNode,x,E):E.add(ee)})}}vi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ur(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Be=vi.prototype,Be.Mo=function(a){a===void 0&&(a=null);var y=new Ur(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Be.Sd=function(a){a===void 0&&(a=null);var y=new Ur(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Be.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Mn,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Mn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new _r(x):jr},Be.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Mn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new _r(x):jr},Be.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Mn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new _r(x):jr},Be.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Ur(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},Be.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Ur(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function Ym(a,y,x){Jl(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,y,x),ee!==null&&(ee.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Km(a,y,x){Jl(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=ee)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):cp(y)))}function cp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}vi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Be=vi.prototype,Be.Vo=function(a){Qi.prototype.Vo.call(this,a),a||(cp(this),a=this.Yk,a!==null&&o1(a,this))},Be.Wo=function(a){Qi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Be.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,Qi.prototype.Lj.call(this)},Be.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;JS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function JS(a){a.wc===null?a.wc=new Yt:a.wc.clear(),a.qm(a,function(y,x){qS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function qS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Vv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=si()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);oi(x)}}}Be.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Be.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Be.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Vm(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;)Vm(y,!1),y=y.pg();return x},Be.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},Be.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof vi)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},Be.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new Mn;return a(this,y),y},Be.uz=function(){return $S(this,this)};function $S(a,y){return y=y.pg(),y===null?0:1+$S(a,y)}Be.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ur(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},Be.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Pn,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Pn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new _r(x):jr},Be.wz=function(a){a===void 0&&(a=1/0);var y=new Mn;return Jd(y,this,!1,a,!0),y},vi.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 Mn;x.add(this),e1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===yd),y.Ue=!1}};function e1(a,y,x,E,b,z,ee){if(1<E)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),e1(oe,y,x,E-1,b,z,ee)))}else t1(a,y,x,b,z,ee)}function t1(a,y,x,E,b,z){for(var ee=b===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var de=re.value;if(de.isTreeLink&&(de=de.To(a),de!==null&&de!==a)){var fe=y.contains(de);if(fe||y.add(de),ee){var Se=x?de.Oo():de.Po();oe.uv=a,Se.all(function(Ce){return function(Ne){return Ne===Ce.uv||!Ne.isTreeExpanded}}(oe))&&E.Aj(de,b),de.oh(),de.Zb(!1)}de.isTreeExpanded&&(de.wasTreeExpanded=de.isTreeExpanded,fe||t1(de,y,x,E,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}vi.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 Mn;x.add(this),n1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===yd),y.Ue=!1}};function n1(a,y,x,E,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),de={};oe.next();){var fe=oe.value;if(fe.isTreeLink&&(re||fe.fd||fe.bb(),fe=fe.To(a),fe!==null&&fe!==a&&!y.contains(fe))){if(y.add(fe),!re){fe.Zb(!0),fe.oh();var Se=x?fe.Oo():fe.Po();de.vv=a,Se.all(function(Ce){return function(Ne){return Ne===Ce.vv||!Ne.isTreeExpanded}}(de))&&b.Cj(fe,z)}(2<E||fe.wasTreeExpanded)&&(fe.wasTreeExpanded=!1,n1(fe,y,x,E-1,b,z,ee))}de={vv:de.vv}}a.isTreeExpanded=!0}wn.Object.defineProperties(vi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Zm},set:function(a){var y=this.portSpreading;y!==a&&(Cd(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&&md(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:va},set:function(a){typeof a=="number"&&(a=new xr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Cd(this),this.Ba.yp=a;var x=this.diagram;x!==null&&md(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&&(Cd(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&&(Cd(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&&(Cd(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var ee=z.wa(E);ee!==void 0&&z.Qx(b,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(o1(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),ul(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&JS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Cd(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))}}}),vi.prototype.expandTree=vi.prototype.expandTree,vi.prototype.collapseTree=vi.prototype.collapseTree,vi.prototype.findTreeParts=vi.prototype.wz,vi.prototype.findTreeChildrenNodes=vi.prototype.Ou,vi.prototype.findTreeChildrenLinks=vi.prototype.Qo,vi.prototype.findTreeLevel=vi.prototype.uz,vi.prototype.findTreeParentChain=vi.prototype.vz,vi.prototype.findTreeParentNode=vi.prototype.pg,vi.prototype.findTreeParentLink=vi.prototype.kh,vi.prototype.findCommonTreeParent=vi.prototype.gz,vi.prototype.findTreeRoot=vi.prototype.xz,vi.prototype.isInTreeOf=vi.prototype.Nz,vi.prototype.findPort=vi.prototype.ns,vi.prototype.findLinksTo=vi.prototype.kz,vi.prototype.findLinksBetween=vi.prototype.jz,vi.prototype.findNodesInto=vi.prototype.Oo,vi.prototype.findNodesOutOf=vi.prototype.Po,vi.prototype.findNodesConnected=vi.prototype.Mu,vi.prototype.findLinksInto=vi.prototype.Sd,vi.prototype.findLinksOutOf=vi.prototype.Mo,vi.prototype.findExternalTreeLinksConnected=vi.prototype.qx,vi.prototype.invalidateConnectedLinks=vi.prototype.Bd,vi.prototype.invalidateLinkBundle=vi.prototype.Lz;var Ox=new Gt(vi,"SpreadingNone",10),Zm=new Gt(vi,"SpreadingEvenly",11),Yv=new Gt(vi,"SpreadingPacked",12);vi.className="Node",vi.SpreadingNone=Ox,vi.SpreadingEvenly=Zm,vi.SpreadingPacked=Yv;function yr(a,y){a===void 0||a instanceof $a||typeof a=="string"?vi.call(this,a):(vi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Mn,this.$a=null,this.Sc=new ua,this.Sc.group=this,this.gl=new Mn,this.tb=this.$p=null,y&&Object.assign(this,y)}$t(yr,vi),yr.prototype.cloneProtected=function(a){vi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof hl});y instanceof hl?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())},Be=yr.prototype,Be.Af=function(a){vi.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 vi)x.Bd(y);else if(x instanceof ei)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Be.gk=function(a,y,x,E,b,z,ee){if(a===fa&&y==="elements"){if(b instanceof hl)this.$a===null?this.$a=b:this.$a!==b&&yt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof Yn){var re=b.Nl(function(oe){return oe instanceof hl});re instanceof hl&&(this.$a===null?this.$a=re:this.$a!==re&&yt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ya&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Yn&&this.$a.rg(E)&&(this.$a=null));vi.prototype.gk.call(this,a,y,x,E,b,z,ee)},Be.Xl=function(a,y){vi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Yn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Yn&&(a=a.Pb()),this.tb===null&&(this.tb=new qt),a.mi(this.tb),a instanceof kr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Be.eh=function(a,y,x,E){this.nf=this.$a,vi.prototype.eh.call(this,a,y,x,E)},Be.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof ei||y.Va()}),vi.prototype.Va.call(this)},Be.si=function(){if(!vi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof vi){if(y.isVisible()&&cl(y))return!1}else if(y instanceof ei&&y.isVisible()&&cl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof yr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Zv(a,y){if(a.Gn.remove(y)){y instanceof yr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Be.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)}vi.prototype.Lj.call(this)},yr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=gn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},yr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=gn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},yr.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))},Be=yr.prototype,Be.Bd=function(a){var y=(this.U&65536)!==0;if(vi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(Jl(x.fromPort),Jl(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Jl(x.fromPort),Jl(x.toPort),x.bb()))}}},Be.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 Mn,E=y.iterator;E.next();){var b=E.value;if(b instanceof vi)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Be.iz=function(){var a=this.Rj();a.add(this);for(var y=new Mn,x=a.iterator;x.next();){var E=x.value;if(E instanceof vi)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},Be.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new Mn;return a(this,y),y},Be.Rj=function(){var a=new Mn;return Jd(a,this,!0,0,!0),a.remove(this),a},Be.Zb=function(a){vi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},yr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();i1(this,y,a,this),a.Ue=!1}};function i1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof yr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,i1(z,y,x,E)),z instanceof vi)z.Bd(y),x.Aj(z,E);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}yr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();r1(this,y,a,this),a.Ue=!1}};function r1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof yr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,r1(z,y,x,E)),z instanceof vi)z.Bd(y),x.Cj(z,E);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}yr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=qe.alloc(),vi.prototype.move.call(this,a,y),a=new Mn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof ei&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof vi&&b.isLinkLabel)){var ee=b.position,re=b.location;ee.w()?(z.x=ee.x+E,z.y=ee.y+x,b.position=z):re.w()&&(z.x=re.x+E,z.y=re.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof ei&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ee=b.position,z.x=ee.x+E,z.y=ee.y+x,z.w()?b.move(z):b.bb(),Qv(b)&&b.bb());qe.free(z)}},wn.Object.defineProperties(yr.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&&yt("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&&(Cd(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&&(Cd(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&&(Cd(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Cd(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)}}}),yr.prototype.expandSubGraph=yr.prototype.expandSubGraph,yr.prototype.collapseSubGraph=yr.prototype.collapseSubGraph,yr.prototype.findSubGraphParts=yr.prototype.Rj,yr.prototype.findContainingGroupChain=yr.prototype.hz,yr.prototype.findExternalNodesConnected=yr.prototype.iz,yr.prototype.findExternalLinksConnected=yr.prototype.Lu,yr.prototype.ensureBounds=yr.prototype.Va,yr.className="Group";function hl(a){Dt.call(this),this.yb=Ra,this.ko=new qt(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}$t(hl,Dt),hl.prototype.cloneProtected=function(a){Dt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},hl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Uo(0,0,y.width,y.height,a.x,a.y)},hl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof yr||a instanceof so)||yt("Placeholder is not inside a Group or Adornment."),a instanceof yr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(mo(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=qe.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),qe.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof kr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,de=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Yn.Link&&(re=z.ga(a.category==="Selection"?Dr:a.locationSpot,qe.alloc()),a.location=re,qe.free(re)),isNaN(de)||isNaN(ee)?(a=z.ga(Dr,qe.alloc()),de=qt.allocAt(a.x,a.y,0,0),de.Ye(z.ga(ho,a)),de.Ye(z.ga(oo,a)),de.Ye(z.ga(ha,a)),mo(y,de.width+E||0,de.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),qe.free(a),qt.free(de)):(mo(y,de+E||0,ee+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},hl.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},hl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof yr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=qt.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof yr&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),qt.free(x),E&&y instanceof yr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},hl.prototype.computeMemberBounds=function(a){if(!(this.part instanceof yr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof ei&&(!y.computesBoundsIncludingLinks||fu(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<E&&(E=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},wn.Object.defineProperties(hl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new xr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),hl.className="Placeholder";function ei(a){Qi.call(this,Yn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=fl,this.Om=0,this.Qm=fl,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new Pn().freeze(),this.Tg=this.Mg=null,this.ml=new qt,this.ua=new Wn,this.u=this.o=this.Sf=this.Wf=null,this.su=new qe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}$t(ei,Qi),ei.prototype.cloneProtected=function(a){Qi.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())},Be=ei.prototype,Be.Af=function(a){Qi.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&&Jl(y),a=a.toPort,a!==null&&Jl(a)},Be.qb=function(a){a.classType===ei?(a.value&2)===2?this.routing=a:a===pu||a===Ad||a===ig?this.curve=a:a===fp||a===e0||a===t0?this.adjusting=a:a!==$v&&a!==fl&&yt("Unknown Link enum value for a Link property: "+a):Qi.prototype.qb.call(this,a)},Be.Xc=function(){this.ba===null&&(this.ba=new $g)},Be.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),cl(a)||Xd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),cl(a)||Xd(a)))},Be.zv=function(){return!1},Be.Av=function(){},Be.Zc=function(){return!1},ei.prototype.computeAngle=function(a,y,x){return ei.computeAngle(y,x)},ei.computeAngle=function(a,y){switch(a){default:case fl:a=0;break;case gp:a=y;break;case pp:a=y+90;break;case mp:a=y-90;break;case ey:a=y+180;break;case n0:a=It.bp(y),90<a&&270>a&&(a-=180);break;case vp:a=It.bp(y+90),90<a&&270>a&&(a-=180);break;case yp:a=It.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=It.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return It.bp(a)};function tg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Zv(x,a),a.Ah=y,y!==null&&Kv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,x,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Be=ei.prototype,Be.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Qi.prototype.oh.call(this)},Be.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Be.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function o1(a,y){a.wd===null&&(a.wd=new Mn),a.wd.add(y),a.v()}Be.Vo=function(a){if(Qi.prototype.Vo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Ym(x,this,E)}dp(this)}},Be.Wo=function(a){if(Qi.prototype.Wo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Km(x,this,E)}hp(this)}},Be.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))},ei.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},ei.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Qi.prototype.move.call(this,a,!1):(a=qe.allocAt(x.x+E,x.y+b),Qi.prototype.move.call(this,a,!1),qe.free(a)),Td(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},ei.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},ei.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},ei.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ii),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===pu))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()===pu){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return It.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),It.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ee=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=ee[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},ei.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()===pu))return this.ua.wx(.5);if(this.computeCurve()===pu&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),It.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Be=ei.prototype,Be.i=function(a){return this.Nb.s[a]},Be.dd=function(a,y){this.Nb.cd(a,y)},Be.L=function(a,y,x){this.Nb.cd(a,new qe(y,x))},Be.Kz=function(a,y){this.Nb.Gb(a,y)},Be.m=function(a,y,x){this.Nb.Gb(a,new qe(y,x))},Be.ne=function(a){this.Nb.add(a)},Be.yf=function(a,y){this.Nb.add(new qe(a,y))},Be.pv=function(a){this.Nb.mb(a)},Be.Fj=function(){this.Nb.clear()};function Td(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Pn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new qe(ee.x+y,ee.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),ul(a)),E?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&ue(ee.animationManager,a,b),a.g("points",z,b)}}Be.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Be.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x=Math.min(re.x,x),E=Math.min(re.y,E)}re=ee=1/0;for(var oe=y.s,de=oe.length,fe=0;fe<de;fe++){var Se=oe[fe];ee=Math.min(Se.x,ee),re=Math.min(Se.y,re),Se.freeze()}if(y.freeze(),de===z){for(z=0;z<de;z++)if(fe=b[z],Se=oe[z],fe.x-x!==Se.x-ee||fe.y-E!==Se.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&ue(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},Be.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(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),$m(a,!1))}Be.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())}},Be.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()}}},ei.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(cf||(cf=new vi,cf.desiredSize=ur,cf.Va()),this.defaultFromPoint&&(cf.location=this.defaultFromPoint,cf.Va(),y=a=cf)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,b=null;if(E===null?(df||(df=new vi,df.desiredSize=ur,df.Va()),this.defaultToPoint&&(df.location=this.defaultToPoint,df.Va(),b=E=df)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var re=ng(ee),oe=ng(x),de=y===b&&y!==null,fe=this.isOrthogonal,Se=this.curve===pu;this.Wf=de&&!fe?Se=!0:!1;var Ce=this.computeAdjusting()===fl||de;if(!fe&&!de&&re&&oe){if(re=!1,!Ce&&3<=z&&(Ce=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,Ce,z-1,oe))&&(Ce=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,Ce,z-1,oe)),!re)if(this.Fj(),Se){z=this.getLinkPoint(a,y,ee,!0,!1,E,b),Ce=this.getLinkPoint(E,b,x,!1,!1,a,y),re=Ce.x-z.x,oe=Ce.y-z.y,de=this.computeCurviness(),Se=fe=0;var Ne=z.x+re/3,De=z.y+oe/3,Ye=Ne,ft=De;It.B(oe,0)?ft=0<re?ft-de:ft+de:(fe=-re/oe,Se=Math.sqrt(de*de/(fe*fe+1)),0>de&&(Se=-Se),Ye=(0>oe?-1:1)*Se+Ne,ft=fe*(Ye-Ne)+De),Ne=z.x+2*re/3,De=z.y+2*oe/3;var ut=Ne,vt=De;It.B(oe,0)?vt=0<re?vt-de:vt+de:(ut=(0>oe?-1:1)*Se+Ne,vt=fe*(ut-Ne)+De),this.Fj(),this.ne(z),this.yf(Ye,ft),this.yf(ut,vt),this.ne(Ce),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,Ce=b,E=this.getLinkPoint(a,y,ee,!0,!1,z,Ce),b=this.getLinkPoint(z,Ce,x,!1,!1,a,y),this.hasCurviness()?(Ce=b.x-E.x,x=b.y-E.y,ee=this.computeCurviness(),a=E.x+Ce/2,y=E.y+x/2,z=a,re=y,It.B(x,0)?re=0<Ce?re-ee:re+ee:(Ce=-Ce/x,z=Math.sqrt(ee*ee/(Ce*Ce+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=Ce*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=qt.alloc(),y.mi(re),oe=re.ca(b),Ce.mi(re),de=re.ca(E),(oe||de)&&(ee=y.ga(Jm(ee),new qe),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=Ce.ga(Jm(x),new qe),this.dd(1,this.getLinkPointFromPoint(z,Ce,x,E,!1,x))),qt.free(re))}else{Se=this.isAvoiding,Ce&&(fe&&Se||de)&&this.Fj();var St=de?this.computeCurviness():0;Se=this.getLinkPoint(a,y,ee,!0,fe,E,b),Ne=Ye=De=0,(fe||!re||de)&&(ft=this.computeEndSegmentLength(a,y,ee,!0),Ne=this.getLinkDirection(a,y,Se,ee,!0,fe,E,b),de&&(re||ee.D(x)||!fe&&ee.x+x.x===1&&ee.y+x.y===1)&&(Ne-=fe?90:30,0>St&&(Ne-=180)),0>Ne?Ne+=360:360<=Ne&&(Ne-=360),de&&(ft+=Math.abs(St)*(fe?1:2)),Ne===0?De=ft:Ne===90?Ye=ft:Ne===180?De=-ft:Ne===270?Ye=-ft:(De=ft*Math.cos(Ne*Math.PI/180),Ye=ft*Math.sin(Ne*Math.PI/180)),ee.Mc()&&de&&(ft=y.ga(vr,qe.alloc()),ut=qe.allocAt(ft.x+1e3*De,ft.y+1e3*Ye),this.getLinkPointFromPoint(a,y,ft,ut,!0,Se),qe.free(ft),qe.free(ut))),ft=this.getLinkPoint(E,b,x,!1,fe,a,y);var Tt=vt=ut=0;if(fe||!oe||de){var Mt=this.computeEndSegmentLength(E,b,x,!1);Tt=this.getLinkDirection(E,b,ft,x,!1,fe,a,y),de&&(oe||ee.D(x)||!fe&&ee.x+x.x===1&&ee.y+x.y===1)&&(Tt+=fe?0:30,0>St&&(Tt+=180)),0>Tt?Tt+=360:360<=Tt&&(Tt-=360),de&&(Mt+=Math.abs(St)*(fe?1:2)),Tt===0?ut=Mt:Tt===90?vt=Mt:Tt===180?ut=-Mt:Tt===270?vt=-Mt:(ut=Mt*Math.cos(Tt*Math.PI/180),vt=Mt*Math.sin(Tt*Math.PI/180)),x.Mc()&&de&&(x=b.ga(vr,qe.alloc()),ee=qe.allocAt(x.x+1e3*ut,x.y+1e3*vt),this.getLinkPointFromPoint(E,b,x,ee,!1,ft),qe.free(x),qe.free(ee))}x=Se,(fe||!re||de)&&(x=new qe(Se.x+De,Se.y+Ye)),ee=ft,(fe||!oe||de)&&(ee=new qe(ft.x+ut,ft.y+vt)),!Ce&&!fe&&re&&3<z&&this.adjustPoints(0,Se,z-2,ee)?this.dd(z-1,ft):!Ce&&!fe&&oe&&3<z&&this.adjustPoints(1,x,z-1,ft)?this.dd(0,Se):!Ce&&(fe?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,Se),this.dd(z-1,ft)):(this.Fj(),this.ne(Se),(fe||!re||de)&&this.ne(x),fe&&this.addOrthoPoints(x,Ne,ee,Tt,a,E),(fe||!oe||de)&&this.ne(ee),this.ne(ft))}return!0};function Xv(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}ei.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new qe),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var ee=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,de=a.m11*b,fe=b*(a.m21*a.dy-a.m22*a.dx),Se=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ee+E.y*oe+fe,E=E.x*re+E.y*de+Se,ee=x.x*ee+x.y*oe+fe,x=x.x*re+x.y*de+Se}return y.Sj(b,E,ee,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new hf,x.port=y,x.node=y.part,y.Zn=x),f1(x,a)}ei.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new qe),x.sb()&&!ng(x))return y.ga(x,re),re;if(x.$c()){var oe=Qm(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===s1){var de=Qm(this,ee);if(de!==null&&oe.Gl<de.Gl){oe=qe.alloc(),de=qe.alloc();var fe=new qt(y.ga(Dr,oe),y.ga(ho,de)),Se=this.computeSpot(!E,ee);a=this.getLinkPoint(z,ee,Se,!E,b,a,y,de),(x.Hf(fs)||x.Hf(ia))&&a.y>=fe.y&&a.y<=fe.y+fe.height?re.y=a.y:(x.Hf(Yo)||x.Hf(os))&&a.x>=fe.x&&a.x<=fe.x+fe.width&&(re.x=a.x),qe.free(oe),qe.free(de)}}return re}}return x=y.ga(Jm(x),qe.alloc()),this.pointsCount>(b?6:2)?(ee=E?this.i(1):this.i(this.pointsCount-2),b&&(ee=Xv(x,ee.copy()))):(oe=this.computeSpot(!E,ee),z=qe.alloc(),ee=ee.ga(Jm(oe),z),b&&(ee=Xv(x,ee)),qe.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),qe.free(x),re},ei.prototype.getLinkDirection=function(a,y,x,E,b,z,ee,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(oe=Qm(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(vr,qe.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Xv(oe,re.copy()):x):(x=qe.alloc(),re=re.ga(vr,x),qe.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,qe.free(oe),oe=x}return E.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),ng(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},ei.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},ei.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=vr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ka?dr:y)):(a=y||this.toPort,a===null?a=vr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ka?dr:y)),a};function ng(a){return a===dr||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:vr}ei.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==fl&&4<this.pointsCount?this.computeMidPoint(new qe):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(vr))},ei.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},ei.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=$i.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,x,b),z===void 0&&$i.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,de=oe.length;de--;){var fe=oe[de];if(fe.visible||fe===this.locationObject){var Se=fe.actualBounds,Ce=this.naturalBounds;if(!(Se.x>Ce.width||Se.y>Ce.height||0>Se.x+Se.width||0>Se.y+Se.height)){if(Se=$i.alloc(),Se.set(ee),fe instanceof Yn)re=fe.Cf(a,y,x,E,b,Se);else if(this.path===fe){if(fe instanceof kr)if(re=a,Ce=E,fe.pickable===!1)re=!1;else if(Se.multiply(fe.transform),Ce)e:{var Ne=re,De=Se;if(fe.fh(Ne,De))re=!0;else{if(De===void 0&&(De=fe.transform,Ne.Re(fe.actualBounds))){re=!0;break e}re=Ne.left,Ce=Ne.right;var Ye=Ne.top;Ne=Ne.bottom;var ft=qe.alloc(),ut=qe.alloc(),vt=qe.alloc(),St=$i.alloc();St.set(De),St.bv(fe.transform),St.Vj(),ut.x=Ce,ut.y=Ye,ut.transform(St),ft.x=re,ft.y=Ye,ft.transform(St),De=!1,Dh(fe,ft,ut,vt)?De=!0:(ft.x=Ce,ft.y=Ne,ft.transform(St),Dh(fe,ft,ut,vt)?De=!0:(ut.x=re,ut.y=Ne,ut.transform(St),Dh(fe,ft,ut,vt)?De=!0:(ft.x=re,ft.y=Ye,ft.transform(St),Dh(fe,ft,ut,vt)&&(De=!0)))),$i.free(St),qe.free(ft),qe.free(ut),qe.free(vt),re=De}}else re=fe.fh(re,Se)}else re=cs(fe,a,E,Se);re&&(Ce=fe,y!==null&&(Ce=y(fe)),Ce&&(x===null||x(Ce))&&b.add(Ce)),$i.free(Se)}}}return z===void 0&&$i.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&$i.free(ee),!1},ei.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?pu:this.curve},ei.prototype.computeCorner=function(){if(this.curve===pu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},ei.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},ei.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=u1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,ee=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===gp||E===n0||E===ey?a=Math.max(a,b):E===mp||E===yp||E===pp||E===vp?a=Math.max(a,ee):(y=y.ga(vr).ab(x.ga(vr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===pu&&(a*=1.333)}}return a},ei.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===fl&&x.bb()}},ei.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=l1;var y=this.Sf;if(y!==null){for(var x=si(),E=0,b=y.links,z=0;z<b.length;z++){var ee=b[z].computeSpacing();x.push(ee),E+=ee}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),oi(x)}}return a},ei.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},ei.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},ei.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===e0)return!1;b===t0&&(b=fp)}switch(b){case e0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(E)){b=z.x,z=z.y;var re=ee.x-b,oe=ee.y-z,de=Math.sqrt(re*re+oe*oe);if(!It.$(de,0)){if(It.$(re,0))var fe=0>oe?-Math.PI/2:Math.PI/2;else fe=Math.atan(oe/Math.abs(re)),0>re&&(fe=Math.PI-fe);ee=y.x;var Se=y.y;re=E.x-ee;var Ce=E.y-Se;for(oe=Math.sqrt(re*re+Ce*Ce),It.$(re,0)?Ce=0>Ce?-Math.PI/2:Math.PI/2:(Ce=Math.atan(Ce/Math.abs(re)),0>re&&(Ce=Math.PI-Ce)),de=oe/de,fe=Ce-fe,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),It.$(y,0)||(It.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+fe,y*=de,this.L(a,ee+y*Math.cos(re),Se+y*Math.sin(re)));this.dd(x,E)}}return!0;case t0:if(z=this.i(a),Se=this.i(x),!z.Xa(y)||!Se.Xa(E)){b=z.x,z=z.y,ee=Se.x,Se=Se.y,de=(ee-b)*(ee-b)+(Se-z)*(Se-z),re=y.x,fe=y.y,oe=E.x,Ce=E.y;var Ne=1;if(oe-re!==0){var De=(Ce-fe)/(oe-re);Ne=Math.sqrt(1+1/(De*De))}else De=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ye=y.x,ft=y.y,ut=.5;de!==0&&(ut=((b-Ye)*(b-ee)+(z-ft)*(z-Se))/de);var vt=b+ut*(ee-b),St=z+ut*(Se-z);y=Math.sqrt((Ye-vt)*(Ye-vt)+(ft-St)*(ft-St)),ft<De*(Ye-vt)+St&&(y=-y),0<De&&(y=-y),Ye=re+ut*(oe-re),ut=fe+ut*(Ce-fe),De!==0?(y=Ye+y/Ne,this.L(a,y,ut-(y-Ye)/De)):this.L(a,Ye,ut+y)}this.dd(x,E)}return!0;case fp:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,fe=z.y,Se=re,de=fe,It.B(b.y,z.y)?It.B(z.x,ee.x)?fe=y.y:It.B(z.y,ee.y)&&(re=y.x):It.B(b.x,z.x)&&(It.B(z.y,ee.y)?re=y.x:It.B(z.x,ee.x)&&(fe=y.y)),this.L(a+1,re,fe),b=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,fe=z.y,oe=re,Ce=fe,It.B(b.y,z.y)?It.B(z.x,ee.x)?fe=E.y:It.B(z.y,ee.y)&&(re=E.x):It.B(b.x,z.x)&&(It.B(z.y,ee.y)?re=E.x:It.B(z.x,ee.x)&&(fe=E.y)),this.L(x-1,re,fe),Qv(this))){this.L(a+1,Se,de),this.L(x-1,oe,Ce),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},ei.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ee=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Sp,Sp),oe.Bc(Sp,Sp),re.Ye(a),oe.Ye(x);var de=qe.alloc(),fe=qe.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&oe.right>a.x||E===90&&x.y>a.y&&oe.right>a.x?(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),E===180?(de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),fe.x=de.x,fe.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(de.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,fe.x=de.x,fe.y=x.y):E===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(de.x=a.x,de.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),fe.y=de.y)):(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?de.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===180||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),fe.x=x.x,fe.y=de.y),de.y>re.top&&de.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(de.h(Math.max((a.x+x.x)/2,a.x),a.y),fe.h(de.x,x.y)):(de.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,oe.bottom)),fe.x=x.x,fe.y=de.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&oe.left<a.x||E===90&&x.y>a.y&&oe.left<a.x?(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),E===0?(de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),fe.x=de.x,fe.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(de.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,fe.x=de.x,fe.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(de.x=a.x,de.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),fe.y=de.y)):(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?de.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===0||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),fe.x=x.x,fe.y=de.y),de.y>re.top&&de.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(de.h(Math.min((a.x+x.x)/2,a.x),a.y),fe.h(de.x,x.y)):(de.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,oe.bottom)),fe.x=x.x,fe.y=de.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&oe.bottom>a.y||E===0&&x.x>a.x&&oe.bottom>a.y?(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),E===270?(de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),fe.x=x.x,fe.y=de.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(de.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,fe.x=x.x,fe.y=de.y):E===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(de.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),de.y=a.y,fe.x=de.x)):(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(oe.ca(a)||re.ca(x))?de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?de.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(de.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),fe.x=de.x,fe.y=x.y),de.x>re.left&&de.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(de.h(a.x,Math.max((a.y+x.y)/2,a.y)),fe.h(x.x,de.y)):(de.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,oe.right)),fe.x=de.x,fe.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&oe.top<a.y||E===0&&x.x>a.x&&oe.top<a.y?(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),E===90?(de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),fe.x=x.x,fe.y=de.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(de.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,fe.x=x.x,fe.y=de.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(de.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),de.y=a.y,fe.x=de.x)):(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(oe.ca(a)||re.ca(x))?de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?de.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(de.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),fe.x=de.x,fe.y=x.y),de.x>re.left&&de.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(de.h(a.x,Math.min((a.y+x.y)/2,a.y)),fe.h(x.x,de.y)):(de.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,oe.right)),fe.x=de.x,fe.y=x.y)));var Se=x;if(this.isAvoiding){var Ce=this.diagram;if(Ce===null||b===z||this.layer.isTemporary||!Ff(Ce)||re.ca(Se)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var Ne=Bf(Ce,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ne.Yj(Math.min(a.x,de.x),Math.min(a.y,de.y),Math.abs(a.x-de.x),Math.abs(a.y-de.y))&&Ne.Yj(Math.min(de.x,fe.x),Math.min(de.y,fe.y),Math.abs(de.x-fe.x),Math.abs(de.y-fe.y))&&Ne.Yj(Math.min(fe.x,Se.x),Math.min(fe.y,Se.y),Math.abs(fe.x-Se.x),Math.abs(fe.y-Se.y)))y=!1;else{b=a,z=Se;var De=x=null;if(Ce.isVirtualized){Ce=Ne.bounds.copy(),Ce.Bc(-Ne.Ho,-Ne.Go);var Ye=qe.alloc();rg(Ne,a.x,a.y)||(It.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,a.x,a.y,de.x,de.y,Ye)?(x=a=Ye.copy(),y=Ye.ab(de)):It.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,de.x,de.y,fe.x,fe.y,Ye)?(x=a=Ye.copy(),y=Ye.ab(fe)):It.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,fe.x,fe.y,Se.x,Se.y,Ye)&&(x=a=Ye.copy(),y=Ye.ab(Se))),rg(Ne,Se.x,Se.y)||(It.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,Se.x,Se.y,fe.x,fe.y,Ye)?(De=Se=Ye.copy(),E=fe.ab(Ye)):It.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,fe.x,fe.y,de.x,de.y,Ye)?(De=Se=Ye.copy(),E=de.ab(Ye)):It.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,de.x,de.y,a.x,a.y,Ye)&&(De=Se=Ye.copy(),E=a.ab(Ye))),qe.free(Ye)}re=re.copy().ed(oe),re.Bc(Ne.Ho*Ne.Os,Ne.Go*Ne.Os),d1(Ne,a,y,Se,E,re,!0),oe=Hc(Ne,Se.x,Se.y),!Ne.abort&&oe>=og&&(c1(Ne),re.Bc(Ne.Ho*Ne.Hx,Ne.Go*Ne.Ix),d1(Ne,a,y,Se,E,re,!1),oe=Hc(Ne,Se.x,Se.y)),!Ne.abort&&oe<og&&Hc(Ne,Se.x,Se.y)!==Pd?(Jv(this,Ne,Se.x,Se.y,E,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=Se.y):(re.x=Se.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?It.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):It.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Ne.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(It.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):It.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Ne.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),De!==null&&(E===0||E===180?this.yf(z.x,De.y):this.yf(De.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(de.copy()),this.ne(fe.copy())),qe.free(de),qe.free(fe)}},ei.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Qv(a){if(a.diagram===null||!a.isAvoiding||!Ff(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Bf(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function Jv(a,y,x,E,b,z,ee){var re=y.Ho,oe=y.Go,de=Hc(y,x,E),fe=x,Se=E;for(b===0?fe+=re:b===90?Se+=oe:b===180?fe-=re:Se-=oe,b!==ee&&de>_h&&Hc(y,fe,Se)!==de-1&&(Hc(y,x-re,E)===de-1?(b=180,fe=x-re,Se=E):Hc(y,x+re,E)===de-1?(b=0,fe=x+re,Se=E):Hc(y,x,E-oe)===de-1?(b=270,fe=x,Se=E-oe):Hc(y,x,E+oe)===de-1&&(b=90,fe=x,Se=E+oe));de>_h&&Hc(y,fe,Se)===de-1;)x=fe,E=Se,b===0?fe+=re:b===90?Se+=oe:b===180?fe-=re:Se-=oe,--de;z?de>_h&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),de>_h&&(z=b,ee=x,fe=E,b===0?(z=90,fe+=oe):b===90?(z=180,ee-=re):b===180?(z=270,fe-=oe):b===270&&(z=0,ee+=re),Hc(y,ee,fe)===de-1?Jv(a,y,ee,fe,z,!1,z):(ee=x,fe=E,b===0?(z=270,fe-=oe):b===90?(z=0,ee+=re):b===180?(z=90,fe+=oe):b===270&&(z=180,ee-=re),Hc(y,ee,fe)===de-1&&Jv(a,y,ee,fe,z,!1,z))),a.yf(x,E)}ei.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=gi(y,a,x.x,x.y,E.x,E.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=gi(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ee,b=re)}return z},ei.prototype.qc=function(){this.lk=!1,this.v()},ei.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof kr&&(b.ua=this.ua)}}},ei.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&Bh(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var ee=this.computeCurve();if(ee===pu&&3<=y&&!It.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,oe=z.y}if(E-=this.su.x,oe-=this.su.y,b.x-=E,b.y-=oe,y!==2||Bh(this)){if(a.type=Wn.o,re=FS(a),this.computeShortLength(!0)!==0&&(b=lf(this,b,!0,z)),eg(re,b.x,b.y,!1),ee===pu&&3<=y&&!It.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-oe,b=this.i(2).copy(),b.x-=E,b.y-=oe,this.computeShortLength(!1)!==0&&(b=lf(this,b,!1,z)),bd(re,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=qe.allocAt(E,oe),x=qe.alloc(),x.assign(this.i(1)),z=qe.allocAt(E,oe),b=qe.allocAt(E,oe),ee=this.i(0);for(var de,fe=this.smoothness/3,Se=1;Se<this.pointsCount-1;Se++){de=this.i(Se);var Ce=ee,Ne=de,De=this.i(qv(this,de,Se,!1));if((!It.$(Ce.x,Ne.x)||!It.$(Ne.x,De.x))&&(!It.$(Ce.y,Ne.y)||!It.$(Ne.y,De.y))){var Ye=fe;isNaN(Ye)&&(Ye=this.smoothness/3);var ft=Ce.x;Ce=Ce.y;var ut=Ne.x;Ne=Ne.y;var vt=De.x;De=De.y;var St=Ye*qm(ft,Ce,ut,Ne);Ye*=qm(ut,Ne,vt,De),It.$(Ce,Ne)&&It.$(ut,vt)&&(ut>ft?De>Ne?(z.x=ut-St,z.y=Ne-St,b.x=ut+Ye,b.y=Ne+Ye):(z.x=ut-St,z.y=Ne+St,b.x=ut+Ye,b.y=Ne-Ye):De>Ne?(z.x=ut+St,z.y=Ne-St,b.x=ut-Ye,b.y=Ne+Ye):(z.x=ut+St,z.y=Ne+St,b.x=ut-Ye,b.y=Ne-Ye)),It.$(ft,ut)&&It.$(Ne,De)&&(Ne>Ce?(vt>ut?(z.x=ut-St,z.y=Ne-St,b.x=ut+Ye):(z.x=ut+St,z.y=Ne-St,b.x=ut-Ye),b.y=Ne+Ye):(vt>ut?(z.x=ut-St,z.y=Ne+St,b.x=ut+Ye):(z.x=ut+St,z.y=Ne+St,b.x=ut-Ye),b.y=Ne-Ye)),(It.$(ft,ut)&&It.$(ut,vt)||It.$(Ce,Ne)&&It.$(Ne,De))&&(ft=.5*(ft+vt),Ce=.5*(Ce+De),z.x=ft,z.y=Ce,b.x=ft,b.y=Ce),(Se===1||Se===2&&It.$(ee.x,this.i(0).x)&&It.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+de.x),x.y=.5*(ee.y+de.y)),bd(re,x.x-E,x.y-oe,z.x-E,z.y-oe,de.x-E,de.y-oe),y.set(z),x.set(b),ee=de}}de=ee.x,ee=ee.y,fe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(fe=lf(this,fe.copy(),!1,ai)),de=.5*(de+fe.x),ee=.5*(ee+fe.y),bd(re,b.x-E,b.y-oe,de-E,ee-oe,fe.x-E,fe.y-oe),qe.free(y),qe.free(x),qe.free(z),qe.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=lf(this,ee.copy(),!1,ai)),bd(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ee.x-E,ee.y-oe);else{for(z=qe.alloc(),z.assign(this.i(0)),b=qe.alloc(),b.assign(z),ee=this.computeCorner(),Se=1,de=0;Se<y;){if(Se=qv(this,z,Se,1<Se),fe=this.i(Se),Se>=y-1){if(!z.D(fe))this.computeShortLength(!1)!==0&&(fe=lf(this,fe.copy(),!1,ai)),uf(this,re,-E,-oe,z,fe,x);else if(de===0)for(Se=1;Se<y;)b.assign(z),fe=this.i(Se++),uf(this,re,-E,-oe,z,fe,x),z.assign(fe);break}if(de=qv(this,fe,Se+1,Se<y-3),Se=-E,ft=-oe,Ce=fe,ut=this.i(de),Ye=x,It.B(z.y,Ce.y)&&It.B(Ce.x,ut.x))if(De=Math.min(ee,Math.abs(Ce.x-b.x)/2),De=St=Math.min(De,Math.abs(ut.y-Ce.y)/2),It.B(De,0))uf(this,re,Se,ft,z,Ce,Ye),z.assign(Ce);else{var Tt=Ce.x,Mt=Ce.y;Ne=Tt,vt=Mt,Ce.x>z.x?Tt=Ce.x-De:Tt=Ce.x+De,ut.y>Ce.y?vt=Ce.y+St:vt=Ce.y-St,ut=qe.allocAt(Tt,Mt),uf(this,re,Se,ft,z,ut,Ye),qe.free(ut),jm(re,Ce.x+Se,Ce.y+ft,Ne+Se,vt+ft),z.h(Ne,vt)}else It.B(z.x,Ce.x)&&It.B(Ce.y,ut.y)?(De=Math.min(ee,Math.abs(Ce.y-b.y)/2),De=St=Math.min(De,Math.abs(ut.x-Ce.x)/2),It.B(St,0)?(uf(this,re,Se,ft,z,Ce,Ye),z.assign(Ce)):(Tt=Ce.x,Mt=Ce.y,Ne=Tt,vt=Mt,Ce.y>z.y?Mt=Ce.y-De:Mt=Ce.y+De,ut.x>Ce.x?Ne=Ce.x+St:Ne=Ce.x-St,ut=qe.allocAt(Tt,Mt),uf(this,re,Se,ft,z,ut,Ye),qe.free(ut),jm(re,Ce.x+Se,Ce.y+ft,Ne+Se,vt+ft),z.h(Ne,vt))):(uf(this,re,Se,ft,z,Ce,Ye),z.assign(Ce));b.assign(fe),Se=de}qe.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=lf(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=lf(this,re,!1,z)),a.type=Wn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),It.$(a,0)?y:It.$(y,0)?a:Math.sqrt(a*a+y*y)))}function lf(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function qv(a,y,x,E){for(var b=a.pointsCount,z=y;It.$(y.x,z.x)&&It.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!It.$(y.x,z.x)&&!It.$(y.y,z.y))return x-1;for(var ee=z;It.$(y.x,z.x)&&It.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||It.$(y.y,z.y)&&It.$(z.y,ee.y)&&(!E||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=b)return b-1;ee=a.i(x++)}return x-2}ei.prototype.computeJumpLength=function(){return 10};function uf(a,y,x,E,b,z,ee){if(!ee&&Bh(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],de=0;if(a.isVisible()&&(de=Dx(a,b,z,oe)),0<de){if(It.B(b.y,z.y))if(b.x<z.x)for(var fe=0;fe<de;){var Se=Math.max(b.x,Math.min(oe[fe++]-re,z.x-ee));y.lineTo(Se+x,z.y+E);for(var Ce=Se+x,Ne=Math.min(Se+ee,z.x);fe<de&&(Se=oe[fe],Se<Ne+ee);)fe++,Ne=Math.min(Se+re,z.x);Se=z.y-ee+E,Ne+=x;var De=z.y+E;a.curve===Ad?eg(y,Ne,De,!1):bd(y,Ce,Se,Ne,Se,Ne,De)}else for(--de;0<=de;){for(fe=Math.min(b.x,Math.max(oe[de--]+re,z.x+ee)),y.lineTo(fe+x,z.y+E),Ce=fe+x,Se=Math.max(fe-ee,z.x);0<=de&&(fe=oe[de],fe>Se-ee);)de--,Se=Math.max(fe-re,z.x);fe=z.y-ee+E,Se+=x,Ne=z.y+E,a.curve===Ad?eg(y,Se,Ne,!1):bd(y,Ce,fe,Se,fe,Se,Ne)}else if(It.B(b.x,z.x))if(b.y<z.y)for(fe=0;fe<de;){for(Se=Math.max(b.y,Math.min(oe[fe++]-re,z.y-ee)),y.lineTo(z.x+x,Se+E),Ce=Se+E,Se=Math.min(Se+ee,z.y);fe<de&&(Ne=oe[fe],Ne<Se+ee);)fe++,Se=Math.min(Ne+re,z.y);Ne=z.x-ee+x,De=z.x+x,Se+=E,a.curve===Ad?eg(y,De,Se,!1):bd(y,Ne,Ce,Ne,Se,De,Se)}else for(--de;0<=de;){for(fe=Math.min(b.y,Math.max(oe[de--]+re,z.y+ee)),y.lineTo(z.x+x,fe+E),Ce=fe+E,fe=Math.max(fe-ee,z.y);0<=de&&(Se=oe[de],Se>fe-ee);)de--,fe=Math.max(Se-re,z.y);Se=z.x-ee+x,Ne=z.x+x,fe+=E,a.curve===Ad?eg(y,Ne,fe,!1):bd(y,Se,Ce,Se,fe,Ne,fe)}}}y.lineTo(z.x+x,z.y+E)}function Dx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof ei){if(oe===a)return 0<E.length&&E.sort(function(fe,Se){return fe-Se}),E.length;if(oe.isVisible()&&Bh(oe)){var de=oe.routeBounds;de.w()&&a.routeBounds.Yc(de)&&!a.usesSamePort(oe)&&(de=oe.path,de!==null&&de.Ed()&&Fx(y,x,E,oe))}}}}}return 0<E.length&&E.sort(function(fe,Se){return fe-Se}),E.length}function Fx(a,y,x,E){for(var b=It.B(a.y,y.y),z=E.pointsCount,ee=E.i(0),re=qe.alloc(),oe=1;oe<z;oe++){var de=E.i(oe);if(oe<z-1){var fe=E.i(oe+1);if(ee.y===de.y&&de.y===fe.y){if(de.x>ee.x&&fe.x>=de.x||de.x<ee.x&&fe.x<=de.x)continue}else if(ee.x===de.x&&de.x===fe.x&&(de.y>ee.y&&fe.y>=de.y||de.y<ee.y&&fe.y<=de.y))continue}e:{fe=a.x;var Se=a.y,Ce=y.x,Ne=y.y,De=ee.x;ee=ee.y;var Ye=de.x,ft=de.y;if(It.B(fe,Ce)){if(!It.B(Se,Ne)&&It.B(ee,ft)&&Math.min(Se,Ne)<ee&&Math.max(Se,Ne)>ee&&Math.min(De,Ye)<fe&&Math.max(De,Ye)>fe&&!It.B(De,Ye)){re.x=fe,re.y=ee,fe=!0;break e}}else if(It.B(Se,Ne)&&It.B(De,Ye)&&Math.min(fe,Ce)<De&&Math.max(fe,Ce)>De&&Math.min(ee,ft)<Se&&Math.max(ee,ft)>Se&&!It.B(ee,ft)){re.x=De,re.y=Se,fe=!0;break e}re.x=0,re.y=0,fe=!1}fe&&(b?x.push(re.x):x.push(re.y)),ee=de}qe.free(re)}function Bh(a){return a=a.curve,a===ig||a===Ad}function $m(a,y){(y||Bh(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()))}ei.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];oe instanceof ei&&(oe===this?z=!0:z&&a1(this,oe,a))}}else if(E)for(z=b.Pa.s,b=z.length,ee=0;ee<b;ee++)re=z[ee],re instanceof ei&&a1(this,re,a)}}}}};function a1(a,y,x){if(y!==null&&y.lk&&y.fd&&Bh(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}ei.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},ei.prototype.isVisible=function(){if(!Qi.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},ei.prototype.Zb=function(a){if(Qi.prototype.Zb.call(this,a),a&&$m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},ei.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?fp:this.qk};function dp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var de=ee[oe];(de.ef===y&&de.ff===E&&de.uf===x&&de.vf===b||de.ef===x&&de.ff===b&&de.uf===y&&de.vf===E)&&(z===null?z=de:(a===null&&(a=[],a.push(z)),a.push(de)))}if(a!==null){for(z=ZS(y,x,E,b),z===null&&(z=new r0(y,E,x,b),KS(y,z),KS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function hp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(ze(y.links,a),y.Sl()))}ei.prototype.ph=function(){return!0},wn.Object.defineProperties(ei.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&&Km(y,this,x),hp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.uf!==a&&Ym(a,this,b),dp(this),this.C(1)),this.g("fromNode",y,a),tg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Jl(x),hp(this),this.ff=a;var E=this.fromPort;E!==null&&Jl(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),dp(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&&Km(y,this,x),hp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.ef!==a&&Ym(a,this,b),dp(this),this.C(1)),this.g("toNode",y,a),tg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Jl(x),hp(this),this.vf=a;var E=this.toPort;E!==null&&Jl(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),dp(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:ka},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&&Jl(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&&li(a,">= 0",ei,"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:ka},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&&Jl(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&&li(a,">= 0",ei,"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?jr: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&&cp(this.fromNode),this.toNode!==null&&cp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof kr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===pu&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),It.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var ee=this.i(z-2);z+3>=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);It.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new qe)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);It.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):It.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new Pn,E=0;E<a.length/2;E++)b=new qe(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!Rt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new Pn,E=0;E<a.length;E++)b=a[E],x.add(new qe(b.x,b.y).freeze())}}else if(a instanceof Pn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else yt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ue(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||!ng(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!ng(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(),$m(this,y===Ad||y===ig||a===Ad||a===ig),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(),$m(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)}}}),ei.prototype.invalidateOtherJumpOvers=ei.prototype.Xo,ei.prototype.findClosestSegment=ei.prototype.ez,ei.prototype.updateRoute=ei.prototype.vg,ei.prototype.invalidateRoute=ei.prototype.bb,ei.prototype.rollbackRoute=ei.prototype.rv,ei.prototype.commitRoute=ei.prototype.zf,ei.prototype.startRoute=ei.prototype.uh,ei.prototype.clearPoints=ei.prototype.Fj,ei.prototype.removePoint=ei.prototype.pv,ei.prototype.addPointAt=ei.prototype.yf,ei.prototype.addPoint=ei.prototype.ne,ei.prototype.insertPointAt=ei.prototype.m,ei.prototype.insertPoint=ei.prototype.Kz,ei.prototype.setPointAt=ei.prototype.L,ei.prototype.setPoint=ei.prototype.dd,ei.prototype.getPoint=ei.prototype.i,ei.prototype.getOtherPort=ei.prototype.Cz,ei.prototype.getOtherNode=ei.prototype.To;var cf=null,df=null,$v=new Gt(ei,"Normal",1),Bx=new Gt(ei,"Orthogonal",2),_x=new Gt(ei,"AvoidsNodes",6),s1=new Gt(ei,"AvoidsNodesStraight",7),fl=new Gt(ei,"None",0),pu=new Gt(ei,"Bezier",9),Ad=new Gt(ei,"JumpGap",10),ig=new Gt(ei,"JumpOver",11),fp=new Gt(ei,"End",17),e0=new Gt(ei,"Scale",18),t0=new Gt(ei,"Stretch",19),gp=new Gt(ei,"OrientAlong",21),pp=new Gt(ei,"OrientPlus90",22),mp=new Gt(ei,"OrientMinus90",23),ey=new Gt(ei,"OrientOpposite",24),n0=new Gt(ei,"OrientUpright",25),vp=new Gt(ei,"OrientPlus90Upright",26),yp=new Gt(ei,"OrientMinus90Upright",27),i0=new Gt(ei,"OrientUpright45",28),l1=16,u1=14,Sp=8;ei.className="Link",ei.Normal=$v,ei.Orthogonal=Bx,ei.AvoidsNodes=_x,ei.AvoidsNodesStraight=s1,ei.None=fl,ei.Bezier=pu,ei.JumpGap=Ad,ei.JumpOver=ig,ei.End=fp,ei.Scale=e0,ei.Stretch=t0,ei.OrientAlong=gp,ei.OrientPlus90=pp,ei.OrientMinus90=mp,ei.OrientOpposite=ey,ei.OrientUpright=n0,ei.OrientPlus90Upright=vp,ei.OrientMinus90Upright=yp,ei.OrientUpright45=i0,ei.EndSegmentStep=8,ei.CurvinessStart=l1,ei.SpacingMin=u1,ei.OrthoShortCut=Sp;function r0(a,y,x,E){tr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}r0.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},r0.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))}},r0.className="LinkBundle";function xp(a){tr(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}xp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=ty,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function rg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Hc(a,y,x){return rg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ty}function c1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=_h&&(x[E]=ty)}xp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Pd)return!1}return!0};function jc(a,y,x,E,b,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var de=y|0,fe=x|0,Se=a.ac[de][fe];if(Se>=_h&&Se<og)for(b?fe+=E:de+=E,Se+=1;z<=de&&de<=ee&&re<=fe&&fe<=oe&&!(Se>=a.ac[de][fe]);)a.ac[de][fe]=Se,Se+=1,b?fe+=E:de+=E;if(de=b?fe:de,b)if(0<E)for(x+=E;x<de;x+=E)jc(a,y,x,1,!b,z,ee,re,oe),jc(a,y,x,-1,!b,z,ee,re,oe);else for(x+=E;x>de;x+=E)jc(a,y,x,1,!b,z,ee,re,oe),jc(a,y,x,-1,!b,z,ee,re,oe);else if(0<E)for(y+=E;y<de;y+=E)jc(a,y,x,1,!b,z,ee,re,oe),jc(a,y,x,-1,!b,z,ee,re,oe);else for(y+=E;y>de;y+=E)jc(a,y,x,1,!b,z,ee,re,oe),jc(a,y,x,-1,!b,z,ee,re,oe)}}function o0(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var de=Pd,fe=_h;for(a.ac[y][x]=fe;de===Pd&&y>z&&y<ee&&x>re&&x<oe;)fe+=1,a.ac[y][x]=fe,b?x+=E:y+=E,de=a.ac[y][x]}function a0(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var de=Pd,fe=og;for(a.ac[y][x]=fe;de===Pd&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=fe,b?x+=E:y+=E,de=a.ac[y][x]}function d1(a,y,x,E,b,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(rg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var de=E.x,fe=E.y;if(rg(a,de,fe))if(de-=a.Nd,de/=a.rc,fe-=a.Od,fe/=a.sc,1>=Math.abs(re-de)&&1>=Math.abs(oe-fe))a.abort=!0;else{var Se=z.x;E=z.y,y=z.x+z.width;var Ce=z.y+z.height;Se-=a.Nd,Se/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Ce-=a.Od,Ce/=a.sc,z=Math.max(0,Math.min(a.di,Se|0)),y=Math.min(a.di,Math.max(0,y|0)),Se=Math.max(0,Math.min(a.ei,E|0)),Ce=Math.min(a.ei,Math.max(0,Ce|0)),E=a.ac,re|=0,oe|=0,de|=0,fe|=0;var Ne=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Pd?(o0(a,re,oe,Ne,x,z,y,Se,Ce),o0(a,re,oe,1,!x,z,y,Se,Ce),o0(a,re,oe,-1,!x,z,y,Se,Ce)):o0(a,re,oe,Ne,x,re,oe,re,oe),E[de][fe]===Pd?(a0(a,de,fe,b===0||b===90?1:-1,b===90||b===270,z,y,Se,Ce),a0(a,de,fe,1,!(b===90||b===270),z,y,Se,Ce),a0(a,de,fe,-1,!(b===90||b===270),z,y,Se,Ce)):a0(a,de,fe,Ne,x,de,fe,de,fe),x=si(),ee&&h1(a,de,fe,b,re,oe,x))for((x[0]!==de||x[1]!==fe)&&(x.unshift(fe),x.unshift(de)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=_h,b=x[x.length-2],ee=x[x.length-1],E[b][ee]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ee=x[z+3],y=x[z],de=x[z+1];y>b?b++:y<b?b--:de>ee?ee++:de<ee&&ee--,E[b][ee]=a++,b!==y||ee!==de;);else jc(a,re,oe,1,!1,z,y,Se,Ce),jc(a,re,oe,-1,!1,z,y,Se,Ce),jc(a,re,oe,1,!0,z,y,Se,Ce),jc(a,re,oe,-1,!0,z,y,Se,Ce);oi(x)}}}}function h1(a,y,x,E,b,z,ee){for(var re=a.ac,oe=y,de=x;;){if(oe===b&&de===z)return!0;var fe=oe,Se=de;if(E===0)if(fe<b)fe++;else break;else if(E===90)if(Se<z)Se++;else break;else if(E===180)if(fe>b)fe--;else break;else if(Se>z)Se--;else break;var Ce=re[fe][Se];if(Ce===0||Ce===ny)break;oe=fe,de=Se}for(;;){if(fe=E,Se=oe,Ce=de,E===0?Ce<z?(fe=90,Ce++):Ce>z&&(fe=270,Ce--):E===90?Se<b?(fe=0,Se++):Se>b&&(fe=180,Se--):E===180?Ce<z?(fe=90,Ce++):Ce>z&&(fe=270,Ce--):Se<b?(fe=0,Se++):Se>b&&(fe=180,Se--),Se=re[Se][Ce],fe!==E&&Se!==0&&Se!==ny){if(ee.push(oe),ee.push(de),h1(a,oe,de,fe,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][de]=ny,E===0){if(oe===y)return!1;oe--}else if(E===90){if(de===x)return!1;de--}else if(E===180){if(oe===y)return!1;oe++}else{if(de===x)return!1;de++}}}wn.Object.defineProperties(xp.prototype,{bounds:{get:function(){return new qt(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 Pd=0,_h=1,og=999999,ty=og+1,ny=og+2;xp.className="PositionArray";function hf(){tr(this),this.port=this.node=null,this.pe=[],this.ap=!1}hf.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
|
|
|
`+E.toString())}return y};function Ux(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}hf.prototype.Sl=function(){this.pe.length=0};function f1(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof yr?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ee=E.Lu()}z=a.pe.length=0;var re=a.port.ga(Dr,qe.alloc()),oe=a.port.ga(ho,qe.alloc());for(b=qt.allocAt(re.x,re.y,0,0),b.Ye(oe),qe.free(re),qe.free(oe),re=qe.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var de=ee.value;if(de.isVisible()&&de.fromPort!==de.toPort){var fe=de.fromPort===a.port||de.fromNode!==null&&de.fromNode.Td(E),Se=de.computeSpot(fe,a.port);if(Se.$c()&&(fe=fe?de.toPort:de.fromPort,fe!==null)){var Ce=fe.part;if(Ce!==null){var Ne=Ce.findVisibleNode();Ne!==null&&Ne!==Ce&&(Ce=Ne,fe=Ce.port),fe=de.computeOtherPoint(Ce,fe),Ce=re.ab(fe),Ce-=oe,0>Ce?Ce+=360:360<=Ce&&(Ce-=360),Se=Ux(b,Se,Ce,de.isOrthogonal),Se===0?(Se=4,180<Ce&&(Ce-=360)):Se===90?(Se=8,270<Ce&&(Ce-=360)):Se===180?Se=2:(Se=1,90>Ce&&(Ce+=360)),Ne=a.pe[z],Ne===void 0?(Ne=new iy(de,Ce,Se),a.pe[z]=Ne):(Ne.link=de,Ne.angle=Ce,Ne.Nc=Se),Ne.hv.set(fe),z++}}}}for(qe.free(re),a.pe.sort(hf.prototype.j),oe=a.pe.length,E=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==E&&(E=ee.Nc,re=0),ee.Uo=re,re++);for(E=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==E&&(E=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,Se=a.port,E=a.node.portSpreading,re=qe.alloc(),oe=qe.alloc(),ee=qe.alloc(),de=qe.alloc(),Se.ga(Dr,re),Se.ga(oo,oe),Se.ga(ho,ee),Se.ga(ha,de),Ne=Ce=fe=Se=0,E===Yv)for(var De=0;De<z.length;De++){var Ye=z[De];if(Ye!==null){var ft=Ye.link.computeThickness();switch(Ye.Nc){case 8:Ce+=ft;break;case 2:Ne+=ft;break;case 1:Se+=ft;break;default:case 4:fe+=ft}}}var ut=De=0,vt=1,St=Ye=0;for(ft=0;ft<z.length;ft++){var Tt=z[ft];if(Tt!==null){if(De!==Tt.Nc){switch(De=Tt.Nc,De){case 8:var Mt=ee;ut=de;break;case 2:Mt=de,ut=re;break;case 1:Mt=re,ut=oe;break;default:case 4:Mt=oe,ut=ee}switch(Ye=ut.x-Mt.x,St=ut.y-Mt.y,De){case 8:Ce>Math.abs(Ye)?(vt=Math.abs(Ye)/Ce,Ce=Math.abs(Ye)):vt=1;break;case 2:Ne>Math.abs(St)?(vt=Math.abs(St)/Ne,Ne=Math.abs(St)):vt=1;break;case 1:Se>Math.abs(Ye)?(vt=Math.abs(Ye)/Se,Se=Math.abs(Ye)):vt=1;break;default:case 4:fe>Math.abs(St)?(vt=Math.abs(St)/fe,fe=Math.abs(St)):vt=1}ut=0}var Xt=Tt.Zo;if(E===Yv){switch(Tt=Tt.link.computeThickness(),Tt*=vt,Xt.set(Mt),De){case 8:Xt.x=Mt.x+Ye/2+Ce/2-ut-Tt/2;break;case 2:Xt.y=Mt.y+St/2+Ne/2-ut-Tt/2;break;case 1:Xt.x=Mt.x+Ye/2-Se/2+ut+Tt/2;break;default:case 4:Xt.y=Mt.y+St/2-fe/2+ut+Tt/2}ut+=Tt}else{var pi=.5;E===Zm&&(pi=(Tt.Uo+1)/(Tt.Gl+1)),Xt.x=Mt.x+Ye*pi,Xt.y=Mt.y+St*pi}}}for(qe.free(re),qe.free(oe),qe.free(ee),qe.free(de),Mt=a.pe,z=0;z<Mt.length;z++)E=Mt[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,qt.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}hf.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},hf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,dr,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},hf.className="Knot";function iy(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new qe,this.Gl=this.Uo=0,this.Zo=new qe,this.Ju=0}iy.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()},iy.className="LinkInfo";function ua(a){tr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new qe(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ua.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},ua.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ua.prototype.qb=function(){},ua.prototype.toString=function(){var a=yn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ua.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())}}},ua.prototype.createNetwork=function(){return new Jo(this)},ua.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Jt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof yr?y.lg(a.memberParts):y.lg(a.iterator),y},ua.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")}},ua.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()}},ua.prototype.doLayout=function(a){var y=new Mn;a instanceof Jt?(qd(this,y,a.nodes,!0,this.rh,!0,!1,!0),qd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof yr?qd(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},ua.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;Ep(re);var oe=re.measuredBounds,de=oe.width;oe=oe.height,re.moveTo(E,b),re instanceof yr&&(re.rh=!1),E+=Math.max(de,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,E=x,b+=ee+20,ee=0):z++}},ua.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof ei)&&(Ep(re),this.rh(re))){var oe=re.measuredBounds,de=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof yr&&(re.rh=!1),x+=Math.max(de,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},ua.prototype.rh=function(a){return!!(!a.location.w()||a instanceof yr&&a.rh)};function qd(a,y,x,E,b,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof vi?oe.isLinkLabel||(oe instanceof yr&&oe.layout===null?qd(a,y,oe.memberParts,!1,b,z,ee,re):(Ep(oe),y.add(oe))):ee&&oe instanceof ei?y.add(oe):!re||!oe.Zc()||oe instanceof vi||(Ep(oe),y.add(oe)))}}function Ep(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}ua.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new qt),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ua.prototype.ex=function(a){var y=new Mn;return a instanceof Jt?(qd(this,y,a.nodes,!0,null,!0,!0,!0),qd(this,y,a.links,!0,null,!0,!0,!0),qd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof yr?qd(this,y,a.memberParts,!1,null,!0,!0,!0):qd(this,y,a.iterator,!1,null,!0,!0,!0),y},ua.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(Dr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},wn.Object.defineProperties(ua.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())}}}),ua.prototype.collectParts=ua.prototype.ex,ua.prototype.getLayoutBounds=ua.prototype.ni,ua.prototype.invalidateLayout=ua.prototype.C,ua.className="Layout";function Jo(a){tr(this),this.Sc=a,this.wf=new Mn,this.ye=new Mn,this.Es=new Yt,this.zs=new Yt}Jo.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 Mn,this.ye=new Mn,this.Es=new Yt,this.zs=new Yt},Jo.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},Jo.prototype.createVertex=function(){return new es(this)},Jo.prototype.createEdge=function(){return new ql(this)},Jo.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof vi)return!ee.isLinkLabel;if(ee instanceof ei){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof vi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof yr&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof ei&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Jo.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},Be=Jo.prototype,Be.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Be.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},Be.Iu=function(a){if(a!==null&&g1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function g1(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}Be.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Be.ki=function(a){return a===null?null:this.Es.I(a)},Be.Bo=function(a){if(a!==null){ry(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ry(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}}Be.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},Be.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),oy(this,a)}};function oy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Be.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Be.Lo=function(a){return a===null?null:this.zs.I(a)},Be.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Be.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))}},Be.Ko=function(){for(var a=si(),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]);oi(a)},Jo.prototype.deleteArtificialVertexes=function(){for(var a=si(),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=si(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);oi(a),oi(y)};function zx(a){for(var y=si(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);oi(y)}Jo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),zx(this),this.Ko()),a=new Pn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),ay(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function ay(a,y,x){if(x!==null&&x.network!==y){g1(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(oy(a,b),ry(y,b),ay(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(oy(a,x),ry(y,x),ay(a,y,x.toVertex))}}Jo.prototype.dz=function(){for(var a=new Mn,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},wn.Object.defineProperties(Jo.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}}}),Jo.prototype.findAllParts=Jo.prototype.dz,Jo.prototype.splitIntoSubNetworks=Jo.prototype.Zx,Jo.prototype.deleteSelfEdges=Jo.prototype.Ko,Jo.prototype.reverseEdge=Jo.prototype.gm,Jo.prototype.linkVertexes=Jo.prototype.Zj,Jo.prototype.findEdge=Jo.prototype.Lo,Jo.prototype.deleteLink=Jo.prototype.Yy,Jo.prototype.deleteEdge=Jo.prototype.Mj,Jo.prototype.addLink=Jo.prototype.Dy,Jo.prototype.addEdge=Jo.prototype.Bo,Jo.prototype.findVertex=Jo.prototype.ki,Jo.prototype.deleteNode=Jo.prototype.Zy,Jo.prototype.deleteVertex=Jo.prototype.Iu,Jo.prototype.addNode=Jo.prototype.Bl,Jo.prototype.addVertex=Jo.prototype.dh,Jo.prototype.addParts=Jo.prototype.lg,Jo.className="LayoutNetwork";function es(a){tr(this),this.ob=a,this.j=new qt(0,0,10,10).freeze(),this.o=new qe(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Pn,this.mg=new Pn}es.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Pn,this.mg=new Pn},es.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Sr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},es.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Rt(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 yr)){x=qt.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(vr);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),qt.free(x);return}qt.free(x)}a.moveTo(y.x,y.y)}},es.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},es.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},es.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},es.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function sy(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}wn.Object.defineProperties(es.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=qt.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),qt.free(x),!(a instanceof yr)&&(a=a.locationObject.ga(vr),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Mn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Mn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Mn,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 Pn,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}}}),es.prototype.deleteDestinationEdge=es.prototype.Jl,es.prototype.addDestinationEdge=es.prototype.zl,es.prototype.deleteSourceEdge=es.prototype.Kl,es.prototype.addSourceEdge=es.prototype.Cl,es.className="LayoutVertex",es.standardComparer=sy,es.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function ql(a){tr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ql.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ql.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Sr(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},ql.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ql.prototype.commit=function(){},ql.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},wn.Object.defineProperties(ql.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)}}}),ql.prototype.getOtherVertex=ql.prototype.Ax,ql.className="LayoutEdge";function Ps(a){ua.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new En(NaN,NaN).freeze(),this.tf=new En(10,10).freeze(),this.Jb=bp,this.Rb=l0,this.nd=wp,this.hd=p1,a&&Object.assign(this,a)}$t(Ps,ua),Ps.prototype.cloneProtected=function(a){ua.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},Ps.prototype.qb=function(a){a.classType===Ps?a===wp||a===c0||a===ly||a===u0?this.sorting=a:a===l0||a===dc?this.arrangement=a:a===bp||a===s0?this.alignment=a:yt("Unknown enum value: "+a):ua.prototype.qb.call(this,a)},Ps.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof yr)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case u0:b.reverse();break;case wp:b.sort(this.comparer);break;case c0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case s0:var re=y,oe=x,de=qt.alloc(),fe=Math.max(this.cellSize.width,1);if(!isFinite(fe))for(var Se=fe=0;Se<b.length;Se++){var Ce=this.ni(b[Se],de);fe=Math.max(fe,Ce.width)}if(fe=Math.max(fe+re,1),Se=Math.max(this.cellSize.height,1),!isFinite(Se))for(Ce=Se=0;Ce<b.length;Ce++){var Ne=this.ni(b[Ce],de);Se=Math.max(Se,Ne.height)}Se=Math.max(Se+oe,1),Ce=this.arrangement;for(var De=Ne=this.arrangementOrigin.x,Ye=this.arrangementOrigin.y,ft=0,ut=0,vt=0;vt<b.length;vt++){var St=b[vt],Tt=this.ni(St,de),Mt=Math.ceil((Tt.width+re)/fe)*fe,Xt=Math.ceil((Tt.height+oe)/Se)*Se;switch(Ce){case dc:var pi=Math.abs(De-Tt.width);break;default:pi=De+Tt.width}switch((0<z&&ft>z-1||0<ee&&0<ft&&pi-Ne>ee)&&(E.push(new qt(0,Ye,ee+re,ut)),ft=0,De=Ne,Ye+=ut,ut=0),ut=Math.max(ut,Xt),Ce){case dc:Tt=-Tt.width;break;default:Tt=0}switch(St.moveTo(De+Tt,Ye),Ce){case dc:De-=Mt;break;default:De+=Mt}ft++}E.push(new qt(0,Ye,ee+re,ut)),qt.free(de);break;case bp:for(oe=ee,fe=z,Se=y,Ce=x,ee=qt.alloc(),Ne=Math.max(this.cellSize.width,1),z=Ye=de=0,re=qe.alloc(),De=0;De<b.length;De++)ut=b[De],ft=this.ni(ut,ee),ut=wd(ut,ut.locationObject,ut.locationSpot,re),de=Math.max(de,ut.x),Ye=Math.max(Ye,ft.width-ut.x),z=Math.max(z,ut.y);switch(De=this.arrangement,De){case dc:de+=Se;break;default:Ye+=Se}Ne=isFinite(Ne)?Math.max(Ne+Se,1):Math.max(de+Ye,1);var Di=ut=this.arrangementOrigin.x;for(vt=this.arrangementOrigin.y,Ye=0,oe>=de&&(oe-=de),de=St=0,Mt=Math.max(this.cellSize.height,1),Tt=z=0,Xt=!0,ft=qe.alloc(),pi=0;pi<b.length;pi++){var Ai=b[pi],$n=this.ni(Ai,ee),Cn=wd(Ai,Ai.locationObject,Ai.locationSpot,re);if(0<Ye)switch(De){case dc:Di=(Di-ut-($n.width-Cn.x))/Ne,Di=It.$(Math.round(Di),Di)?Math.round(Di):Math.floor(Di),Di=Di*Ne+ut;break;default:Di=(Di-ut+Cn.x)/Ne,Di=It.$(Math.round(Di),Di)?Math.round(Di):Math.ceil(Di),Di=Di*Ne+ut}else switch(De){case dc:St=Di+Cn.x+$n.width;break;default:St=Di-Cn.x}switch(De){case dc:var mr=-(Di+Cn.x)+St;break;default:mr=Di+$n.width-Cn.x-St}if(0<fe&&Ye>fe-1||0<oe&&0<Ye&&mr>oe){for(E.push(new qt(0,Xt?vt-z:vt,oe+Se,Tt+z+Ce)),Di=0;Di<Ye&&pi!==Ye;Di++){mr=b[pi-Ye+Di];var ar=wd(mr,mr.locationObject,mr.locationSpot,ft);mr.moveTo(mr.position.x,mr.position.y+z-ar.y)}Tt+=Ce,vt=Xt?vt+Tt:vt+(Tt+z),Ye=Tt=z=0,Di=ut,Xt=!1}switch(Di===ut&&(de=De===dc?Math.max(de,$n.width-Cn.x):Math.min(de,-Cn.x)),z=Math.max(z,Cn.y),Tt=Math.max(Tt,$n.height-Cn.y),isFinite(Mt)&&(Tt=Math.max(Tt,Math.max($n.height,Mt)-Cn.y)),Xt?Ai.moveTo(Di-Cn.x,vt-Cn.y):Ai.moveTo(Di-Cn.x,vt),De){case dc:Di-=Cn.x+Se;break;default:Di+=$n.width-Cn.x+Se}Ye++}if(E.push(new qt(0,vt,oe+Se,(Xt?Tt:Tt+z)+Ce)),b.length!==Ye)for(oe=0;oe<Ye;oe++)fe=b[b.length-Ye+oe],Se=wd(fe,fe.locationObject,fe.locationSpot,re),fe.moveTo(fe.position.x,fe.position.y+z-Se.y);if(qe.free(re),qe.free(ft),De===dc)for(b=0;b<E.length;b++)z=E[b],z.width+=de,z.x-=de;else for(b=0;b<E.length;b++)z=E[b],z.x>de&&(z.width+=z.x-de,z.x=de);qt.free(ee)}for(re=z=ee=b=0;re<E.length;re++)oe=E[re],b=Math.min(b,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===dc?this.commitLayers(E,new qe(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new qe(b-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ps.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}wn.Object.defineProperties(Ps.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!==bp&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==dc||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ly&&a!==u0&&a!==wp&&a!==c0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new Gt(Ps,"Position",0),bp=new Gt(Ps,"Location",1),l0=new Gt(Ps,"LeftToRight",2),dc=new Gt(Ps,"RightToLeft",3),ly=new Gt(Ps,"Forward",4),u0=new Gt(Ps,"Reverse",5),wp=new Gt(Ps,"Ascending",6),c0=new Gt(Ps,"Descending",7);Ps.className="GridLayout",Ps.standardComparer=p1,Ps.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Ps.Position=s0,Ps.Location=bp,Ps.LeftToRight=l0,Ps.RightToLeft=dc,Ps.Forward=ly,Ps.Reverse=u0,Ps.Ascending=wp,Ps.Descending=c0;function Io(){this.On=new Mn,this.Dn=new Mn,this.Pa=new Mn,this.cf=new Yt,this.bf=new Yt,this.aj=new Yt,this.H=null,this.tp=!1}Be=Io.prototype,Be.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Be.Xe=function(a){this.H=a},Be.oi=function(a){if(a instanceof vi){if(this.On.add(a),a instanceof yr){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 ei?this.Dn.add(a):a instanceof so||this.Pa.add(a);y=a.data,y===null||a instanceof so||(a instanceof ei?this.bf.add(y,a):this.cf.add(y,a))},Be.pc=function(a){if(a.Ej(),a instanceof vi){if(this.On.remove(a),a instanceof yr){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 ei?this.Dn.remove(a):a instanceof so||this.Pa.remove(a);y=a.data,y===null||a instanceof so||(a instanceof ei?this.bf.remove(y):this.cf.remove(y))},Be.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof yr)&&yt('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof yr||yt('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof ei||yt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=si(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=si(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=si(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);oi(y),oi(x),oi(a)}},Io.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Io.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&m1(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&Of(this.diagram,!1)};function m1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=v1(a,y,E);if(b!==null&&(Uu(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break e}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}Io.prototype.insertLink=function(){return null},Io.prototype.resolveReferencesForData=function(){},Io.prototype.Ro=function(a){return this.H.model.Ro(a)};function v1(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(x1||(x1=!0,ii('No Group template found for category "'+x+'"'),ii(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(S1||(S1=!0,ii('No Node template found for category "'+x+'"'),ii(" Using default node template")),y=a.ny))),y}Io.prototype.getLinkCategoryForData=function(){return""},Io.prototype.setLinkCategoryForData=function(){},Io.prototype.setFromNodeForLink=function(){},Io.prototype.setToNodeForLink=function(){},Io.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(E1||(E1=!0,ii('No Link template found for category "'+a+'"'),ii(" Using default link template")),x=y.my)),x},Io.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Io.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Io.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Bg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Io.prototype.unresolveReferencesForPart=function(){},Io.prototype.removeDataForLink=function(){},Io.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Io.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof vi?a:null)},Io.prototype.findLinkForKey=function(){return null},Be=Io.prototype,Be.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Be.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof vi?a:null)},Be.Kc=function(a){return a===null?null:this.bf.I(a)},Be.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Mn;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Rt(ee)&&uy(this,b,ee)){y.add(E);break}}}return y.iterator},Be.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Mn;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Rt(ee)&&uy(this,b,ee)){y.add(E);break}}}return y.iterator};function uy(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Jn(z)){if(!Jn(b)||b.length<z.length)return!1;for(var ee=0;ee<b.length;ee++){var re=z[ee];if(re!==void 0&&!y1(a,b[ee],re))return!1}}else if(!y1(a,b,z))return!1}return!0}function y1(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(Rt(y)&&Rt(x)){if(!uy(a,y,x))return!1}else if(y!==x)return!1;return!0}Io.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===Ko){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===fa){var ee=a.newValue;E==="nodeDataArray"&&Rt(ee)&&m1(this,ee),y.isModified=!0}else if(x===ya){var re=a.oldValue;E==="nodeDataArray"&&Rt(re)&&this.ip(re),y.isModified=!0}else x===vs&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===Ko){var oe=a.propertyName,de=a.object;de===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(de,oe),y.isModified=!0}else if(x===fa||x===ya){var fe=a.change===fa,Se=fe?a.newParam:a.oldParam,Ce=fe?a.newValue:a.oldValue,Ne=this.aj.I(a.object);if(Array.isArray(Ne))for(a=0;a<Ne.length;a++){var De=Ne[a];if(fe)Nm(De,Ce,Se,!0);else if(!(0>Se)){var Ye=Se+rp(De);De.pc(Ye,!0),wv(De,Ye,Se)}}y.isModified=!0}}finally{y.aa=!0}}}}},Io.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)},Io.prototype.rp=function(){for(var a=this.H.model,y=new Mn,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),b.forEach(function(ee){L1(a,ee,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&N1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Io.prototype.refreshDataBoundLinks=function(){},Io.prototype.updateRelationshipsFromData=function(){},Io.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var ee=b[z].sx(a);ee!==null&&(x===null&&(x=si()),x.push(ee))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);oi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function cy(a,y){var x=y.Hh;if(Jn(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function dy(a,y,x){Rh(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)jg(x,ee[oe])});var E=y.Hh;if(Jn(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}Io.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new Yt;if(Jn(a))for(var b=0;b<a.length;b++)d0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)d0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new Mn;for(var z=new Yt,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof ei)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof vi&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var de=re.pg();de!==null&&(de=E.I(de),de!==null?(x.qe(oe.data,x.wa(de.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var fe=new Yt;E.each(function(Se){Se.key.data!==null&&fe.add(Se.key.data,Se.value.data)}),x(fe,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function d0(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Qi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof vi){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=E.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof yr&&z instanceof yr)for(y=y.memberParts;y.next();)ee=d0(a,y.value,x,E,b),ee instanceof ei||ee===null||(ee.containingGroup=z)}else if(y instanceof ei&&z instanceof ei)for(ee=y.fromNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=d0(a,y.value,x,E,b),ee!==null&&ee instanceof vi&&(ee.labeledLink=z);return z}Io.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof ei||(E=b.copyNodeData(E),Rt(E)&&(b.xf(E),x=y.Lc(E)))}else Uu(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof ei||(b=y.copyNodeData(E)),Rt(b)&&(x.data=b)));return x},wn.Object.defineProperties(Io.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}}}),Io.prototype.updateAllRelationshipsFromData=Io.prototype.rp,Io.prototype.findLinksByExample=Io.prototype.ls,Io.prototype.findNodesByExample=Io.prototype.ms,Io.prototype.findLinkForData=Io.prototype.Kc,Io.prototype.findNodeForData=Io.prototype.ii,Io.prototype.findPartForData=Io.prototype.Lc,Io.prototype.findNodeForKey=Io.prototype.Vb,Io.prototype.removeModeledPart=Io.prototype.ip,Io.prototype.removeModeledParts=Io.prototype.Gs,Io.prototype.rebuildParts=Io.prototype.Wd;var S1=!1,x1=!1,E1=!1;Io.className="PartManager";function gs(a){Io.apply(this,arguments)}$t(gs,Io),gs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),b1(this,a.linkDataArray)},gs.prototype.addModeledParts=function(a){for(Io.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)tg(a.value);Of(this.diagram,!1)};function b1(a,y){y.forEach(function(x){w1(a,x)}),Of(a.diagram,!1)}function w1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){Uu(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=p0(x,y,!0);z!==""&&(b.fromPortId=z),z=mu(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof vi&&(b.fromNode=z)),z=p0(x,y,!1),z!==""&&(b.toPortId=z),z=mu(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof vi&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}gs.prototype.removeAllModeledParts=function(){var a=this.diagram.model;C1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function C1(a,y){y.forEach(function(x){a.ip(x)})}gs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},gs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},gs.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},gs.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},gs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},gs.prototype.findPartForKey=function(a){var y=Io.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},gs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},gs.prototype.doModelChanged=function(a){var y=this;if(Io.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===Ko){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(b==="linkFromPortId"){var de=this.Kc(a.object);if(de!==null){var fe=a.newValue;typeof fe=="string"&&(de.fromPortId=fe)}}else if(b==="linkToPortId"){var Se=this.Kc(a.object);if(Se!==null){var Ce=a.newValue;typeof Ce=="string"&&(Se.toPortId=Ce)}}else if(b==="nodeGroupKey"){var Ne=this.Lc(a.object);if(Ne!==null){var De=a.newValue;if(De!==void 0){var Ye=this.Vb(De);Ye instanceof yr?Ne.containingGroup=Ye:Ne.containingGroup=null}else Ne.containingGroup=null}}else if(b==="linkLabelKeys"){var ft=this.Kc(a.object);if(ft!==null){var ut=a.oldValue,vt=a.newValue;Array.isArray(ut)&&ut.forEach(function(Cn){0<=vt.indexOf(Cn)||(Cn=y.Vb(Cn),Cn!==null&&(Cn.labeledLink=null))}),Array.isArray(vt)&&vt.forEach(function(Cn){Cn=y.Vb(Cn),Cn!==null&&(Cn.labeledLink=ft)})}}else if(b==="linkCategory"){var St=this.Kc(a.object),Tt=a.newValue;St!==null&&typeof Tt=="string"&&(St.category=Tt)}else b==="linkDataArray"&&(C1(this,a.oldValue),b1(this,a.newValue));x.isModified=!0}else if(E===fa){var Mt=a.newValue;if(b==="linkDataArray"&&typeof Mt=="object"&&Mt!==null)w1(this,Mt);else if(b==="linkLabelKeys"&&eh(Mt)){var Xt=this.Kc(a.object),pi=this.Vb(Mt);Xt!==null&&pi!==null&&(pi.labeledLink=Xt)}x.isModified=!0}else if(E===ya){var Di=a.oldValue;if(b==="linkDataArray"&&typeof Di=="object"&&Di!==null)this.ip(Di);else if(b==="linkLabelKeys"&&eh(Di)){var Ai=this.Vb(Di);Ai!==null&&(Ai.labeledLink=null)}x.isModified=!0}}else if(E===Ko){var $n=a.propertyName;a.object!==x.model||$n!=="linkFromKeyProperty"&&$n!=="linkToKeyProperty"&&$n!=="linkFromPortIdProperty"&&$n!=="linkToPortIdProperty"&&$n!=="linkLabelKeysProperty"&&$n!=="nodeIsGroupProperty"&&$n!=="nodeGroupKeyProperty"&&$n!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},gs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Mn,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){F1(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&D1(y,z,!1)})},gs.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof ei){var b=mu(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=mu(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new Mn().addAll(y);var ee=new Mn;a.labelNodes.each(function(re){re.data!==null&&(re=E.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(b),b=b.copy(),b.hp(ee),(0<y.count||0<b.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof so)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof yr)&&(a.containingGroup=y)}}},gs.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Cp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var ee=E.value;y.lb(ee)?b instanceof yr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof vi&&(mu(y,ee,!0)===x&&(z.link.fromNode=b),mu(y,ee,!1)===x&&(z.link.toNode=b),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}fc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof yr&&(b.containingGroup=a))}},gs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof vi){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)hc(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&hc(y,x,E.data)),a instanceof yr)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&hc(y,x,E)}}},gs.prototype.copyPartData=function(a,y){var x=Io.prototype.copyPartData.call(this,a,y);if(a instanceof ei)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},gs.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,ee=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=ee.archetypeLinkData,E instanceof ei){if(Uu(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,b.add(z),a=ee.archetypeLabelNodeData,a instanceof vi&&(Uu(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&sg(z,E,z.wa(a.data),!0),lg(z,E,re,!0),x!==null&&sg(z,E,z.wa(x.data),!1),lg(z,E,y,!1),z.fi(E),a=ee.archetypeLabelNodeData,a===null||a instanceof vi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},gs.prototype.findLinkForKey=gs.prototype.findLinkForKey,gs.prototype.findPartForKey=gs.prototype.findPartForKey,gs.prototype.removeAllModeledParts=gs.prototype.removeAllModeledParts,gs.prototype.addModeledParts=gs.prototype.addModeledParts,gs.prototype.addAllModeledParts=gs.prototype.addAllModeledParts,gs.className="GraphLinksPartManager";function ku(){Io.apply(this,arguments),this.Sg=null}$t(ku,Io);function h0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!Ds(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Uu(E),E=E.copy(),E!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=ee}}}ku.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},ku.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},ku.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},ku.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},ku.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},ku.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},ku.prototype.doModelChanged=function(a){if(Io.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===Ko){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ee=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:h0(this,z,ee)}}else if(E==="parentLinkCategory"){var oe=this.ii(a.object),de=a.newValue;if(oe!==null&&typeof de=="string"){var fe=oe.kh();fe!==null&&(fe.category=de)}}y.isModified=!0}}else if(x===Ko){var Se=a.propertyName;a.object===y.model&&Se==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},ku.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof vi&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:h0(this,y,a):E!==null&&Bg(x,E,!1)))}}},ku.prototype.updateDataBindings=function(a,y){Io.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},ku.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Cp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof vi&&y.mh(z)===x&&h0(this,b,this.ii(z))}fc(y,x)}a=y.mh(a),a!==void 0&&b instanceof vi&&(a=this.Vb(a),h0(this,a,b))}},ku.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof vi){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(ya,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&hc(y,x,b)}},ku.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},ku.prototype.findLinkForKey=ku.prototype.findLinkForKey,ku.className="TreePartManager";function zi(a,y){this.kl=new Mn,this.il=new Mn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,tr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Yt,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 Yt,this.Lt=new Pn,this.Wg=!1,this.o=null,this.undoManager=new zo,a!==void 0&&(Jn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}zi.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},zi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},zi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},zi.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+ir(b)}}return y},zi.prototype.xA=function(a){a.change!==vs&&yt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ma?(A1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},zi.prototype.Qv=function(a,y){var x=this,E=!1,b=new Mn,z=new Mn,ee=new Mn,re=this.vh;a.changes.each(function(Se){Se.model===x&&(Se.modelChange==="nodeDataArray"?Se.change===fa?b.add(Se.newValue):Se.change===ya&&ee.add(Se.oldValue):x.lb(Se.object)?z.add(Se.object):Se.change!==Ko||x.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(re&&re.contains(Se.object)?re.get(Se.object).each(function(Ce){x.lb(Ce)&&z.add(Ce)}):Se.object instanceof zi||x.ri()&&x.Jc(Se.object)||P1(x,Se.object).each(function(Ce){z.add(Ce)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(Se){oe.add(x.wa(Se)),y||z.add(Se)});var de=this.kl;de.clear(),ee.each(function(Se){de.add(x.wa(Se)),y&&z.add(Se)}),a=x.cloneDeep(z.Fa());var fe=null;return E&&(fe===null&&(fe={}),fe.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(fe===null&&(fe={}),y?fe.removedNodeKeys=oe.Fa():fe.insertedNodeKeys=oe.Fa()),0<a.length&&(fe===null&&(fe={}),fe.modifiedNodeData=a),0<de.count&&(fe===null&&(fe={}),y?fe.insertedNodeKeys=de.Fa():fe.removedNodeKeys=de.Fa()),de.clear(),oe.clear(),fe},zi.prototype.cloneDeep=function(a){return ag(this,a,!0)};function ag(a,y,x,E,b,z){function ee(Se,Ce){re?(Se.__gohashid===void 0&&z.push(Se),E.set(Se,Ce)):(Se=yo++,E.set(Se,Ce),b.set(Se,y))}if(!Rt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new Yt),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new Yt),oe=b.iterator;oe.next();){var de=oe.key;if(oe.value===y&&(de=E.get(de)))return de}if(Array.isArray(y)){oe=[],ee(y,oe);for(var fe=0;fe<y.length;fe++)oe.push(ag(a,y[fe],!1,E,b,z))}else if(y instanceof qe||y instanceof En||y instanceof qt||y instanceof xr||y instanceof Pi)oe=y.copy(),ee(y,oe);else{if(y instanceof ko||y instanceof Wn||y instanceof Gt)return y;if(y instanceof Pn)oe=new Pn().addAll(ag(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Mn)oe=new Mn().addAll(ag(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Yt)oe=new Yt().addAll(ag(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(fe in oe={},ee(y,oe),y)fe!=="__gohashid"&&(oe[fe]=ag(a,y[fe],!1,E,b,z))}return x&&z.forEach(function(Se){delete Se.__gohashid}),oe}Be=zi.prototype,Be.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Be.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},Be.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 T1(a,y){y=y.modelData,Rt(y)&&(a.dm(y),a.modelData=y)}Be.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!k1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+hy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+$d(this,this.nodeDataArray,!0)},Be.kv=function(a){T1(this,a),a=a.nodeDataArray,Jn(a)&&(this.dm(a),this.nodeDataArray=a)};function A1(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ee=E.get(b);ee===null?(ee=new Mn,ee.add(z),E.add(b,ee)):ee.add(z)}}var E=a.vh;E===null&&(E=new Yt,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===Ko?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===fa||z===ya)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function P1(a,y){for(var x=new Mn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];f0(a,y,b,b,x)}return x}function f0(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return b.add(E),!0;if(f0(a,y,ee,E,b))return!0}else if(Rt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return b.add(E),!0;if(f0(a,y,ee,E,b))return!0}return!1}Be.Pv=function(a,y){var x=this,E=!1,b=new Mn,z=new Mn,ee=new Mn,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===fa?b.add(fe.newValue):fe.change===ya&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==Ko||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(Se){x.lb(Se)&&z.add(Se)}):fe.object instanceof zi||x.ri()&&x.Jc(fe.object)||P1(x,fe.object).each(function(Se){z.add(Se)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(fe){oe.add(x.wa(fe)),y||z.add(fe)});var de=this.kl;return de.clear(),ee.each(function(fe){de.add(x.wa(fe)),y&&z.add(fe)}),a="",E&&(a+=`,
|
|
|
"modelData": `+hy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+$d(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+$d(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Wv:this.Yv)+$d(this,de.Fa(),!0)),de.clear(),oe.clear(),a},Be.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)&&yt("applyIncrementalJson cannot change Model properties"),T1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Yt;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],ee=this.wa(z);ee!=null&&E.set(ee,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=E.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var oe in b)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,b[oe]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Be.$x=function(a,y){a.change!==vs&&yt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ma?(y===void 0&&(y=Tp(this,this)),A1(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 }'},Be.yA=function(a,y){return this.$x(a,y)},Be.np=function(a){return a===void 0&&(a=Tp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Be.toJSON=function(a){return this.np(a)},Be.Zw=function(a){var y=null;if(typeof a=="string")try{y=mn.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:yt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&yt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Be.Ky=function(a){return this.Zw(a)},zi.constructGraphLinksModel=function(){return new zi},Be=zi.prototype,Be.dm=function(a){if(Jn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Rt(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:yt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Rt(a)){for(y in a)if(x=a[y],Rt(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new Pn,E=0;E<x.length/2;E++)b.add(new qe(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Hx(a)}return a},Be.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()):Jn(a)?$d(this,a):Rt(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function $d(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new cr;b.add("["),x&&1<E&&b.add(`
|
|
|
`);for(var z=0;z<E;z++){var ee=y[z];ee!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
|
`)),b.add(a.sm(ee)))}return x&&1<E&&b.add(`
|
|
|
`),b.add("]"),b.toString()}function k1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function gl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var x=y;if(x instanceof qe)y={class:"go.Point",x:gl(x.x),y:gl(x.y)};else if(x instanceof En)y={class:"go.Size",width:gl(x.width),height:gl(x.height)};else if(x instanceof qt)y={class:"go.Rect",x:gl(x.x),y:gl(x.y),width:gl(x.width),height:gl(x.height)};else if(x instanceof xr)y={class:"go.Margin",top:gl(x.top),right:gl(x.right),bottom:gl(x.bottom),left:gl(x.left)};else if(x instanceof Pi)x.sb()?y={class:"go.Spot",x:gl(x.x),y:gl(x.y),offsetX:gl(x.offsetX),offsetY:gl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof ko){if(y={class:"go.Brush",type:x.type.name},x.type===xd?y.color=x.color:(x.type===td||x.type===Au)&&(y.start=x.start,y.end=x.end,x.type===Au&&(x.startRadius!==0&&(y.startRadius=gl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=gl(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof Wn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=gl(x.startX)),x.startY!==0&&(y.startY=gl(x.startY)),x.endX!==0&&(y.endX=gl(x.endX)),x.endY!==0&&(y.endY=gl(x.endY)),x.spot1.D(Dr)||(y.spot1=x.spot1),x.spot2.D(ho)||(y.spot2=x.spot2),x.type===Wn.o&&(y.path=Wn.ia(x))):x instanceof Gt&&(y={class:"go.EnumValue",classType:Tp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=_a(y,b);if(!k1(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof Pn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",E+=ee}else E+=a.sm(z)}return E+"}"}function pl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Hx(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 qe(pl(a.x),pl(a.y));else if(y==="Size")x=new En(pl(a.width),pl(a.height));else if(y==="Rect")x=new qt(pl(a.x),pl(a.y),pl(a.width),pl(a.height));else if(y==="Margin")x=new xr(pl(a.top),pl(a.right),pl(a.bottom),pl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=fo(a.enum):x=new Pi(pl(a.x),pl(a.y),pl(a.offsetX),pl(a.offsetY));else if(y==="Brush"){if(x=new ko,x.type=Wi(ko,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Pi&&(x.start=a.start),a.end instanceof Pi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=pl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=pl(a.endRadius)),a=a.colorStops,Rt(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Wn.parse(a.path):x=new Wn,x.type=Wi(Wn,a.type),typeof a.startX=="number"&&(x.startX=pl(a.startX)),typeof a.startY=="number"&&(x.startY=pl(a.startY)),typeof a.endX=="number"&&(x.endX=pl(a.endX)),typeof a.endY=="number"&&(x.endY=pl(a.endY)),a.spot1 instanceof Pi&&(x.spot1=a.spot1),a.spot2 instanceof Pi&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=gy(E),typeof E=="function"&&(x=Wi(E,a.name)));return x}Be.Pe=function(a){return this.Lt.add(a),this},Be.ik=function(a){this.Lt.remove(a)},Be.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},Be.cb=function(a,y,x,E,b,z,ee){Ja(this,"",a,y,x,E,b,z,ee)},Be.g=function(a,y,x,E,b){Ja(this,"",Ko,a,this,y,x,E,b)},Be.Fs=function(a,y,x,E,b,z){Ja(this,"",Ko,y,a,x,E,b,z)};function Ja(a,y,x,E,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var de=new ta;de.model=a,de.change=x,de.modelChange=y,de.propertyName=E,de.object=b,de.oldValue=z,de.oldParam=re,de.newValue=ee,de.newParam=oe,a.ds(de)}zi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Ko){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),sa(x,E,b)}else a.change===fa?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Rt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&ze(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&en(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Jn(E)&&a.propertyName&&(E=_a(a.object,a.propertyName)),Jn(E)&&typeof x=="number"&&(a=a.newValue,y?ze(E,x):en(E,x,a))):yt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ya?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Rt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&en(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&ze(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Jn(E)&&a.propertyName&&(E=_a(a.object,a.propertyName)),Jn(E)&&typeof x=="number"&&(a=a.oldValue,y?en(E,x,a):ze(E,x))):yt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==vs&&yt("unknown ChangedEvent: "+a.toString())},zi.prototype.Ea=function(a){return this.undoManager.Ea(a)},zi.prototype.eb=function(a){return this.undoManager.eb(a)},zi.prototype.Kf=function(){return this.undoManager.Kf()},zi.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Be=zi.prototype,Be.La=function(a,y){y===void 0&&(y=""),Ja(this,"SourceChanged",vs,y,a,null,null)},Be.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=_a(a,y),y!==void 0)){if(eh(y))return y;yt("Key value for node data "+a+" is not a number or a string: "+y)}}},Be.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=_a(a,x);E!==y&&this.hc(y)===null&&(sa(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Ja(this,"nodeKey",Ko,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else sa(a,x,y)}};function eh(a){return typeof a=="number"||typeof a=="string"}Be.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Be.hc=function(a){return a===null&&yt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&eh(a)?this.kb.I(a):null},Be.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){sa(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;sa(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;sa(a,y,x)}}}}},Be.xf=function(a){a!==null&&(wr(a),this.lb(a)||N1(this,a,!0))};function N1(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&yt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,en(a.Tc,E,y)),Ja(a,"nodeDataArray",fa,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Be.Fy=function(a){if(Jn(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)},Be.cm=function(a){a!==null&&L1(this,a,!0)};function L1(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){e:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break e}E=-1}if(0>E)return;ze(a.Tc,E)}Ja(a,"nodeDataArray",ya,"nodeDataArray",a,y,null,E,null),a.qp(y)}Be.nA=function(a){if(Jn(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)},Be.$z=function(a){if(a!==this.nodeDataArray&&Jn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},Be.jp=function(a,y){y!==void 0&&(a=Cp(this,a),a instanceof Mn&&this.Vf.add(y,a))},Be.Lv=function(){},Be.fm=function(){},Be.em=function(){},Be.qp=function(){};function hc(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new Mn,a.Vf.add(y,E)),E.add(x)}}function fc(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof Mn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function Cp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Mn?a:null)}Be.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},zi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),Rt(a)&&tr(a),a};function g0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=g0(a,y[x],a.copiesArrayObjects);E.push(b)}return tr(E),E}if(x&&Rt(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=_a(y,E),ee=Tp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof zi||z instanceof zo||z instanceof Ma||z instanceof ta||(z=g0(a,z,!1)),sa(x,E,z)}return tr(x),x}return y instanceof qe||y instanceof En||y instanceof qt||y instanceof Pi||y instanceof xr?y.copy():y}zi.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!I1&&a instanceof Dt&&(I1=!0,ii('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ii(" Is that really your intent?"));var E=_a(a,y);E!==x&&(sa(a,y,x),this.Fs(a,y,E,x))},Be=zi.prototype,Be.set=function(a,y,x){this.setDataProperty(a,y,x)},Be.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Be.Ay=function(a,y){this.ts(a,-1,y)},Be.ts=function(a,y,x){0>y&&(y=a.length),en(a,y,x),Ja(this,"",fa,"",a,null,x,null,y)},Be.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&yt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];ze(a,y),Ja(this,"",ya,"",a,x,null,y,null)},Be.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=_a(a,y),y===void 0))return"";if(typeof y=="string")return y;yt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Be.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=_a(a,x);E===void 0&&(E=""),E!==y&&(sa(a,x,y),Ja(this,"nodeCategory",Ko,x,a,E,y))}else sa(a,x,y)}},Be.lm=function(a,y){this.jm(y,this.Ro(a))},Be.Tl=function(){return!1},Be.Wj=function(){return!1},Be.ri=function(){return!1},Be.xs=function(){return!1},Be.Xj=function(){return!1};function fy(){return new zi}function Tp(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 Tp(a,y.constructor);return typeof y}function gy(a){return tc[a]?tc[a]:mn.go!==void 0&&mn.go[a]?mn.go[a]:null}function _a(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function sa(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}wn.Object.defineProperties(zi.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===""&&yt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&yt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];Rt(b)||yt("Model.nodeDataArray must only contain Objects, not: "+b),wr(b)}for(this.Tc=a,E=new Pn,b=0;b<x;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?E.add(z):this.kb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(Ja(this,"nodeDataArray",Ko,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),zi.prototype.setCategoryForNodeData=zi.prototype.jm,zi.prototype.getCategoryForNodeData=zi.prototype.Ro,zi.prototype.removeArrayItem=zi.prototype.ov,zi.prototype.insertArrayItem=zi.prototype.ts,zi.prototype.addArrayItem=zi.prototype.Ay,zi.prototype.assignAllDataProperties=zi.prototype.Do,zi.prototype.set=zi.prototype.set,zi.prototype.clearUnresolvedReferences=zi.prototype.Qy,zi.prototype.mergeNodeDataArray=zi.prototype.$z,zi.prototype.removeNodeDataCollection=zi.prototype.nA,zi.prototype.removeNodeData=zi.prototype.cm,zi.prototype.addNodeDataCollection=zi.prototype.Fy,zi.prototype.addNodeData=zi.prototype.xf,zi.prototype.makeNodeDataKeyUnique=zi.prototype.$u,zi.prototype.findNodeDataForKey=zi.prototype.hc,zi.prototype.containsNodeData=zi.prototype.lb,zi.prototype.setKeyForNodeData=zi.prototype.km,zi.prototype.getKeyForNodeData=zi.prototype.wa,zi.prototype.updateTargetBindings=zi.prototype.La,zi.prototype.commit=zi.prototype.commit,zi.prototype.rollbackTransaction=zi.prototype.Kf,zi.prototype.commitTransaction=zi.prototype.eb,zi.prototype.startTransaction=zi.prototype.Ea,zi.prototype.raiseDataChanged=zi.prototype.Fs,zi.prototype.raiseChanged=zi.prototype.g,zi.prototype.raiseChangedEvent=zi.prototype.cb,zi.prototype.removeChangedListener=zi.prototype.ik,zi.prototype.addChangedListener=zi.prototype.Pe,zi.prototype.writeJsonValue=zi.prototype.sm,zi.prototype.replaceJsonObjects=zi.prototype.dm,zi.prototype.applyIncrementalJSON=zi.prototype.Ky,zi.prototype.applyIncrementalJson=zi.prototype.Zw,zi.prototype.toJSON=zi.prototype.toJSON,zi.prototype.toJson=zi.prototype.np,zi.prototype.toIncrementalJSON=zi.prototype.yA,zi.prototype.toIncrementalJson=zi.prototype.$x,zi.prototype.toIncrementalData=zi.prototype.xA,zi.prototype.clear=zi.prototype.clear;var I1=!1,tc={};zi.className="Model",zi.fromJSON=zi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=mn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:yt("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=gy(E)):(b=gy(E),b===null&&(b=mn[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof zi?y=a:yt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=zi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},zi.safePropertyValue=_a,zi.safePropertySet=sa,tc.Brush=ko,tc.ChangedEvent=ta,tc.Geometry=Wn,tc.Margin=xr,tc.Panel=Yn,tc.Point=qe,tc.Rect=qt,tc.Size=En,tc.Spot=Pi,tc.Transaction=Ma,tc.UndoManager=zo;function Ha(a,y,x,E){tr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=R1,this.wk=null):(this.el=Ap,this.wk=E),this.st=new Mn}Ha.prototype.copy=function(){var a=new Ha;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},Be=Ha.prototype,Be.qb=function(a){a.classType===Ha&&(this.mode=a)},Be.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.Kx=function(a){return a===void 0&&(a=null),this.mode=Ap,this.backConverter=a,this},Be.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Be.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function M1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Be.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")ii("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=_a(y,E)),z!==void 0)if(b===null)x!==""&&sa(a,x,z);else try{if(x!==""){var ee=b(z,a);sa(a,x,ee)}else b(z,a)}catch(re){}}}},Be.sp=function(a,y,x,E){if(this.el===Ap){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,ee=a;if(b!==""&&(ee=_a(a,b)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):sa(y,x,ee);else if(oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var de=E.itemIndex,fe=E.panel.itemArray;oe.ov(fe,de),oe.ts(fe,de,ee)}}else try{if(x!==""){var Se=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,Se):sa(y,x,Se)}else{var Ce=z(ee,y,oe);if(Ce!==void 0&&oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Ne=E.itemIndex,De=E.panel.itemArray;oe.ov(De,Ne),oe.ts(De,Ne,Ce)}}}catch(Ye){}}finally{this.st.remove(a)}}}},wn.Object.defineProperties(Ha.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&zt(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&zt(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&zt(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&zt(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&zt(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&zt(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&zt(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&zt(this),this.el=a}}}),Ha.prototype.updateSource=Ha.prototype.sp,Ha.prototype.updateTarget=Ha.prototype.Mv,Ha.prototype.ofModel=Ha.prototype.dA,Ha.prototype.ofObject=Ha.prototype.cp,Ha.prototype.makeTwoWay=Ha.prototype.Kx;var jx="Binding",R1=new Gt(Ha,"OneWay",1),Ap=new Gt(Ha,"TwoWay",2);Ha.className="Binding",Ha.parseEnum=function(a,y){return function(x){return x=Wi(a,x),x===null?y:x}},Ha.toString=ir,Ha.OneWay=R1,Ha.TwoWay=Ap;function Jr(a,y,x){zi.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Mn,this.wb=new Yt,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&&(Jn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}$t(Jr,zi),Jr.constructGraphLinksModel=zi.constructGraphLinksModel,Jr.prototype.cloneProtected=function(a){zi.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},Be=Jr.prototype,Be.clear=function(){zi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Be.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+ir(b)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+mu(this,b,!0)+"-->"+mu(this,b,!1)}return y},Be.Qv=function(a,y){this.linkKeyProperty===""&&yt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=zi.prototype.Qv.call(this,a,y),E=this,b=new Mn,z=new Mn,ee=new Mn,re=this.vh;a.changes.each(function(fe){fe.model===E&&(fe.modelChange==="linkDataArray"?fe.change===fa?b.add(fe.newValue):fe.change===ya&&ee.add(fe.oldValue):E.Jc(fe.object)?z.add(fe.object):fe.object!==null&&(fe.object!==null&&re&&re.contains(fe.object)?re.get(fe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):fe.object instanceof zi||E.lb(fe.object)||O1(E,fe.object).each(function(Se){z.add(Se)})))});var oe=this.il;oe.clear(),b.each(function(fe){oe.add(E.Ac(fe)),y||z.add(fe)});var de=this.kl;return de.clear(),ee.each(function(fe){de.add(E.Ac(fe)),y&&z.add(fe)}),a=E.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<de.count&&(x===null&&(x={}),y?x.insertedLinkKeys=de.Fa():x.removedLinkKeys=de.Fa()),de.clear(),oe.clear(),x},Be.rm=function(){var a=zi.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},Be.gp=function(a){zi.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)},Be.Rv=function(){var a=zi.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+$d(this,this.linkDataArray,!0);return a+y},Be.kv=function(a){zi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function O1(a,y){for(var x=new Mn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];f0(a,y,b,b,x)}return x}Be.Pv=function(a,y){this.linkKeyProperty===""&&yt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=zi.prototype.Pv.call(this,a,y),E=this,b=new Mn,z=new Mn,ee=new Mn,re=this.vh;a.changes.each(function(fe){fe.model===E&&(fe.modelChange==="linkDataArray"?fe.change===fa?b.add(fe.newValue):fe.change===ya&&ee.add(fe.oldValue):E.Jc(fe.object)?z.add(fe.object):fe.object!==null&&(fe.object!==null&&re&&re.contains(fe.object)?re.get(fe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):fe.object instanceof zi||E.lb(fe.object)||O1(E,fe.object).each(function(Se){z.add(Se)})))});var oe=this.il;oe.clear(),b.each(function(fe){oe.add(E.Ac(fe)),y||z.add(fe)});var de=this.kl;return de.clear(),ee.each(function(fe){de.add(E.Ac(fe)),y&&z.add(fe)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+$d(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+$d(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Vv:this.Xv)+$d(this,de.Fa(),!0)),de.clear(),oe.clear(),a},Be.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)&&yt("applyIncrementalJson cannot change Model properties"),zi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var ee in b)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,b[ee]);B1(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Jr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Ko){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),sa(x,E,b);return}}else if(a.change===fa){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Rt(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===ya){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Rt(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}zi.prototype.changeState.call(this,a,y)}},Be=Jr.prototype,Be.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),sa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Be.yx=function(a){return mu(this,a,!0)},Be.wv=function(a,y){sg(this,a,y,!0)},Be.Bx=function(a){return mu(this,a,!1)},Be.Bv=function(a,y){sg(this,a,y,!1)};function mu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=_a(y,a),a!==void 0))){if(eh(a))return a;yt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function sg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=_a(y,b);z!==x&&(fc(a,z,y),sa(y,b,x),a.hc(x)===null&&hc(a,x,y),Ja(a,E?"linkFromKey":"linkToKey",Ko,b,y,z,x),typeof b=="string"&&a.La(y,b))}else sa(y,b,x)}}Be.zx=function(a){return p0(this,a,!0)},Be.xv=function(a,y){lg(this,a,y,!0)},Be.Cx=function(a){return p0(this,a,!1)},Be.Cv=function(a,y){lg(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=_a(y,a),y===void 0?"":y)}function lg(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=_a(y,b);z===void 0&&(z=""),z!==x&&(sa(y,b,x),Ja(a,E?"linkFromPortId":"linkToPortId",Ko,b,y,z,x),typeof b=="string"&&a.La(y,b))}else sa(y,b,x)}}Be.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=_a(a,y),a===void 0?m0:a)},Be.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=_a(a,x);if(E===void 0&&(E=m0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)fc(this,E[z],a);for(sa(a,x,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&hc(this,ee,a)}Ja(this,"linkLabelKeys",Ko,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else sa(a,x,y)}},Be.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=_a(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&hc(this,y,a),Ja(this,"linkLabelKeys",fa,x,a,null,y,null,b)))}else yt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Be.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=_a(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(fc(this,y,a),Ja(this,"linkLabelKeys",ya,x,a,y,null,b,null)))}else E!==void 0&&yt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Be.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=_a(a,y),y!==void 0)){if(eh(y))return y;yt("Key value for link data "+a+" is not a number or a string: "+y)}}},Be.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=_a(a,x);E!==y&&this.jh(y)===null&&(sa(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Ja(this,"linkKey",Ko,x,a,E,y),typeof x=="string"&&this.La(a,x))}else sa(a,x,y)}},Be.jh=function(a){return a===null&&yt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&eh(a)?this.wb.I(a):null},Be.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){sa(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;sa(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;sa(a,y,x)}}}}},Be.Jc=function(a){return a===null?!1:this.$f.contains(a)},Be.fi=function(a){a!==null&&(wr(a),this.Jc(a)||D1(this,a,!0))};function D1(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&yt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Ja(a,"linkDataArray",fa,"linkDataArray",a,null,y,null,E),py(a,y)}Be.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)},Be.bm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(Ja(a,"linkDataArray",ya,"linkDataArray",a,y,null,E,null),x=mu(a,y,!0),fc(a,x,y),x=mu(a,y,!1),fc(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],fc(a,x,y)}Be.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)},Be.Zz=function(a){if(this.linkKeyProperty===""&&yt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Jn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),B1(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function py(a,y){var x=mu(a,y,!0);x=a.Vl(x),a.hc(x)===null&&hc(a,x,y),x=mu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&hc(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&hc(a,x,y)}Be.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),Rt(a)&&(tr(a),this.lf!==""&&sa(a,this.lf,void 0),this.mf!==""&&sa(a,this.mf,void 0),this.je!==""&&sa(a,this.je,[])),a},Be.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!_a(a,y)},Be.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=_a(a,y),y!==void 0)){if(eh(y))return y;yt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Be.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=_a(a,x);E!==y&&(fc(this,E,a),sa(a,x,y),this.hc(y)===null&&hc(this,y,a),Ja(this,"nodeGroupKey",Ko,x,a,E,y),typeof x=="string"&&this.La(a,x))}else sa(a,x,y)}},Jr.prototype.copyNodeData=function(a){return a===null?null:(a=zi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||_a(a,this.Je)===void 0||sa(a,this.Je,void 0),a)},Jr.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){sg(this,a,x,!0);return}if(y===this.linkToKeyProperty){sg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){lg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){lg(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=_a(a,y);E!==x&&(sa(a,y,x),this.Fs(a,y,E,x))},Be=Jr.prototype,Be.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&_a(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Be.jp=function(a,y){zi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(mu(this,E,!0)===b){var ee=this.lf;sa(E,ee,z),Ja(this,"linkFromKey",Ko,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)}if(mu(this,E,!1)===b&&(ee=this.mf,sa(E,ee,z),Ja(this,"linkToKey",Ko,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)),ee=this.Ef(E),Array.isArray(ee))for(var re=ee.length,oe=this.je,de=0;de<re;de++)ee[de]===b&&(ee[de]=z,Ja(this,"linkLabelKeys",fa,oe,E,b,z,de,de))}},Be.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;sa(a,E,x),Ja(this,"nodeGroupKey",Ko,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Be.Lv=function(){zi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)py(this,a[x])},Be.fm=function(a){zi.prototype.fm.call(this,a),a=this.wa(a);var y=Cp(this,a);if(y!==null){var x=si();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Ja(this,"nodeGroupKey",Ko,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(mu(this,E,!0)===a&&(b=this.lf,Ja(this,"linkFromKey",Ko,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),mu(this,E,!1)===a&&(b=this.mf,Ja(this,"linkToKey",Ko,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,ee=this.je,re=0;re<z;re++)b[re]===a&&(Ja(this,"linkLabelKeys",fa,ee,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)fc(this,a,x[y]);oi(x)}},Be.em=function(a){zi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&hc(this,y,a)},Be.qp=function(a){zi.prototype.qp.call(this,a);var y=this.lh(a);fc(this,y,a)},Be.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=_a(a,y),y===void 0))return"";if(typeof y=="string")return y;yt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Jr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Jr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=_a(a,x);E===void 0&&(E=""),E!==y&&(sa(a,x,y),Ja(this,"linkCategory",Ko,x,a,E,y),typeof x=="string"&&this.La(a,x))}else sa(a,x,y)}},Jr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Be=Jr.prototype,Be.lm=function(a,y){zi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function B1(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))}Be.Wj=function(){return!0},Be.ri=function(){return!0},Be.xs=function(){return!0},Be.Xj=function(){return!0},wn.Object.defineProperties(Jr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];Rt(b)||yt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),wr(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new Pn,b=0;b<x;b++){var z=a[b],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?E.add(z):this.wb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new Mn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Ja(this,"linkDataArray",Ko,"linkDataArray",this,y,a),y=0;y<x;y++)py(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Jr.prototype.setCategoryForLinkData=Jr.prototype.lp,Jr.prototype.getCategoryForLinkData=Jr.prototype.ps,Jr.prototype.assignAllDataProperties=Jr.prototype.Do,Jr.prototype.setGroupKeyForNodeData=Jr.prototype.mp,Jr.prototype.getGroupKeyForNodeData=Jr.prototype.lh,Jr.prototype.isGroupForNodeData=Jr.prototype.Yu,Jr.prototype.copyLinkData=Jr.prototype.Jo,Jr.prototype.mergeLinkDataArray=Jr.prototype.Zz,Jr.prototype.removeLinkDataCollection=Jr.prototype.lA,Jr.prototype.removeLinkData=Jr.prototype.bm,Jr.prototype.addLinkDataCollection=Jr.prototype.Ey,Jr.prototype.addLinkData=Jr.prototype.fi,Jr.prototype.containsLinkData=Jr.prototype.Jc,Jr.prototype.makeLinkDataKeyUnique=Jr.prototype.Bs,Jr.prototype.findLinkDataForKey=Jr.prototype.jh,Jr.prototype.setKeyForLinkData=Jr.prototype.Ks,Jr.prototype.getKeyForLinkData=Jr.prototype.Ac,Jr.prototype.removeLabelKeyForLinkData=Jr.prototype.Qx,Jr.prototype.addLabelKeyForLinkData=Jr.prototype.Bu,Jr.prototype.setLabelKeysForLinkData=Jr.prototype.Ls,Jr.prototype.getLabelKeysForLinkData=Jr.prototype.Ef,Jr.prototype.setToPortIdForLinkData=Jr.prototype.Cv,Jr.prototype.getToPortIdForLinkData=Jr.prototype.Cx,Jr.prototype.setFromPortIdForLinkData=Jr.prototype.xv,Jr.prototype.getFromPortIdForLinkData=Jr.prototype.zx,Jr.prototype.setToKeyForLinkData=Jr.prototype.Bv,Jr.prototype.getToKeyForLinkData=Jr.prototype.Bx,Jr.prototype.setFromKeyForLinkData=Jr.prototype.wv,Jr.prototype.getFromKeyForLinkData=Jr.prototype.yx,Jr.prototype.clear=Jr.prototype.clear;var m0=Object.freeze([]);Jr.className="GraphLinksModel",tc.GraphLinksModel=Jr,zi.constructGraphLinksModel=zi.constructGraphLinksModel=function(){return new Jr},zi.initDiagramModel=fy=function(){return new Jr};function ml(a,y){zi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Jn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}$t(ml,zi),ml.constructGraphLinksModel=zi.constructGraphLinksModel,ml.prototype.cloneProtected=function(a){zi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Be=ml.prototype,Be.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+ir(b)}}return y},Be.rm=function(){var a=zi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Be.gp=function(a){zi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Be.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&yt("applyIncrementalJson cannot change Model properties"),zi.prototype.fp.call(this,a)},Be.Vl=function(a){return a},Be.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=_a(a,y),y!==void 0)){if(eh(y))return y;yt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Be.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=_a(a,x);E!==y&&(fc(this,E,a),sa(a,x,y),this.hc(y)===null&&hc(this,y,a),Ja(this,"nodeParentKey",Ko,x,a,E,y),typeof x=="string"&&this.La(a,x))}else sa(a,x,y)}},Be.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=_a(a,y),y===void 0)?"":typeof y=="string"?y:(yt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},ml.prototype.getLinkCategoryForData=function(a){return this.ss(a)},ml.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=_a(a,x);E===void 0&&(E=""),E!==y&&(sa(a,x,y),Ja(this,"parentLinkCategory",Ko,x,a,E,y),typeof x=="string"&&this.La(a,x))}else sa(a,x,y)}},ml.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},ml.prototype.copyNodeData=function(a){return a===null?null:(a=zi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||_a(a,this.Ke)===void 0||sa(a,this.Ke,void 0),a)},ml.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=_a(a,y);E!==x&&(sa(a,y,x),this.Fs(a,y,E,x))},Be=ml.prototype,Be.jp=function(a,y){zi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Be.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;sa(a,E,x),Ja(this,"nodeParentKey",Ko,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Be.fm=function(a){zi.prototype.fm.call(this,a),a=this.wa(a);var y=Cp(this,a);if(y!==null){var x=si();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Ja(this,"nodeParentKey",Ko,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)fc(this,a,x[y]);oi(x)}},Be.em=function(a){zi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&hc(this,y,a)},Be.qp=function(a){zi.prototype.qp.call(this,a);var y=this.mh(a);fc(this,y,a)},Be.lm=function(a,y){zi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Be.Tl=function(){return!0},Be.xs=function(){return!0},wn.Object.defineProperties(ml.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"}}}),ml.prototype.setParentLinkCategoryForNodeData=ml.prototype.Ms,ml.prototype.getParentLinkCategoryForNodeData=ml.prototype.ss,ml.prototype.setParentKeyForNodeData=ml.prototype.qe,ml.prototype.getParentKeyForNodeData=ml.prototype.mh,ml.className="TreeModel",tc.TreeModel=ml;function ma(a){ua.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=nc,this.Ti=0,this.Zv=new qe,this.Jp=this.me=0,this.Xr=new Lp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=nc,this.K=vl,this.nd=cg,this.hd=sy,this.tf=6,this.Nn=w0,a&&Object.assign(this,a)}$t(ma,ua),ma.prototype.cloneProtected=function(a){ua.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},ma.prototype.qb=function(a){a.classType===ma?a===E0||a===b0||a===S0||a===x0||a===cg?this.sorting=a:a===Uh||a===ug||a===vl||a===nh?this.direction=a:a===kd||a===th||a===nc||a===ic?this.arrangement=a:(a===ff||a===w0)&&(this.nodeDiameterFormula=a):ua.prototype.qb.call(this,a)},ma.prototype.createNetwork=function(){return new dg(this)},ma.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 Pn;y.addAll(a.iterator),a=new Pn;var x=new Pn,E=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,de=this.radius;(!isFinite(de)||0>=de)&&(de=NaN);var fe=this.aspectRatio;(!isFinite(fe)||0>=fe)&&(fe=1);var Se=this.startAngle;isFinite(Se)||(Se=0);var Ce=this.sweepAngle;if((!isFinite(Ce)||360<Ce||1>Ce)&&(Ce=360),y=this.spacing,isFinite(y)||(y=NaN),re===ic&&oe===ff?re=nc:re===ic&&oe!==ff&&(re=this.arrangement),(this.direction===Uh||this.direction===ug)&&this.sorting!==cg){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===Uh?(this.arrangement===ic&&a.reverse(),E=new Pn,E.addAll(a),E.addAll(x)):(this.arrangement===ic&&x.reverse(),E=new Pn,E.addAll(x),E.addAll(a))}oe=E.length;for(var Ne=z=b=0;Ne<E.length;Ne++){var De=Se+Ce*z*(this.direction===vl?1:-1)/oe,Ye=E.M(Ne).diameter;isNaN(Ye)&&(Ye=ih(E.M(Ne),De)),360>Ce&&(Ne===0||Ne===E.length-1)&&(Ye/=2),b+=Ye,z++}if(isNaN(de)||re===ic){if(isNaN(y)&&(y=6),re!==nc&&re!==ic){for(z=-1/0,ee=0;ee<oe;ee++)Ne=E.M(ee),b=E.M(ee===oe-1?0:ee+1),isNaN(Ne.diameter)&&ih(Ne,0),isNaN(b.diameter)&&ih(b,0),z=Math.max(z,(Ne.diameter+b.diameter)/2);ee=z+y,re===kd?de=(z+y)/(2*Math.PI/oe):de=v0(this,ee*(360<=Ce?oe:oe-1),fe,Se*Math.PI/180,Ce*Math.PI/180)}else de=v0(this,b+(360<=Ce?oe:oe-1)*(re!==ic?y:1.6*y),fe,Se*Math.PI/180,Ce*Math.PI/180);z=de*fe}else if(z=de*fe,Ne=my(this,de,z,Se*Math.PI/180,Ce*Math.PI/180),isNaN(y))(re===nc||re===ic)&&(y=(Ne-b)/(360<=Ce?oe:oe-1));else if(re===nc||re===ic)Ne=(Ne-b)/(360<=Ce?oe:oe-1),Ne<y?(de=v0(this,b+y*(360<=Ce?oe:oe-1),fe,Se*Math.PI/180,Ce*Math.PI/180),z=de*fe):y=Ne;else{for(ee=-1/0,b=0;b<oe;b++)De=E.M(b),Ye=E.M(b===oe-1?0:b+1),isNaN(De.diameter)&&ih(De,0),isNaN(Ye.diameter)&&ih(Ye,0),ee=Math.max(ee,(De.diameter+Ye.diameter)/2);ee+=y,b=v0(this,ee*(360<=Ce?oe:oe-1),fe,Se*Math.PI/180,Ce*Math.PI/180),b>de?(de=b,z=de*fe):ee=Ne/(360<=Ce?oe:oe-1)}if(this.kw=re,this.lc=de,this.Zm=fe,this.lw=Se,this.Wp=Ce,this.Ti=y,this.me=z,this.Jp=ee,y=E,E=this.kw,re=this.lc,de=this.lw,fe=this.Wp,Se=this.Ti,Ce=this.me,oe=this.Jp,this.direction!==Uh&&this.direction!==ug||E!==ic)if(this.direction===Uh||this.direction===ug){switch(ee=0,E){case th:ee=180*y0(this,re,Ce,de,oe)/Math.PI;break;case nc:oe=y=0,ee=a.first(),ee!==null&&(y=ih(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=ih(ee,Math.PI/2)),ee=180*y0(this,re,Ce,de,Se+(y+oe)/2)/Math.PI;break;case kd:ee=fe/y.length}if(this.direction===Uh){switch(E){case th:Np(this,a,de,nh);break;case nc:kp(this,a,de,nh);break;case kd:Pp(this,a,fe/2,de,nh)}switch(E){case th:Np(this,x,de+ee,vl);break;case nc:kp(this,x,de+ee,vl);break;case kd:Pp(this,x,fe/2,de+ee,vl)}}else{switch(E){case th:Np(this,x,de,nh);break;case nc:kp(this,x,de,nh);break;case kd:Pp(this,x,fe/2,de,nh)}switch(E){case th:Np(this,a,de+ee,vl);break;case nc:kp(this,a,de+ee,vl);break;case kd:Pp(this,a,fe/2,de+ee,vl)}}}else switch(E){case th:Np(this,y,de,this.direction);break;case nc:kp(this,y,de,this.direction);break;case kd:Pp(this,y,fe,de,this.direction);break;case ic:_1(this,y,fe,de,this.direction)}else _1(this,y,fe,de-fe/2,vl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Pp(a,y,x,E,b){var z=a.Wp,ee=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var de=E+(b===vl?oe*x/(360<=z?re:re-1):-(oe*x)/re),fe=y.M(oe),Se=ee*Math.tan(de)/a;Se=Math.sqrt((ee*ee+a*a*Se*Se)/(1+Se*Se)),fe.centerX=Se*Math.cos(de),fe.centerY=Se*Math.sin(de),fe.actualAngle=180*de/Math.PI}}function kp(a,y,x,E){var b=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var de=y.M(oe),fe=y.M(oe===re-1?0:oe+1),Se=z*Math.sin(x);de.centerX=b*Math.cos(x),de.centerY=Se,de.actualAngle=180*x/Math.PI,isNaN(de.diameter)&&ih(de,0),isNaN(fe.diameter)&&ih(fe,0),de=y0(a,b,z,E===vl?x:-x,(de.diameter+fe.diameter)/2+ee),x+=E===vl?de:-de}}function Np(a,y,x,E){var b=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var de=y.M(oe);de.centerX=b*Math.cos(x),de.centerY=z*Math.sin(x),de.actualAngle=180*x/Math.PI,de=y0(a,b,z,E===vl?x:-x,ee),x+=E===vl?de:-de}}function _1(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Lp,360>x){for(z=E+(b===vl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,z1(a,y,x,E,b)}else U1(a,y,x,E,b);a.Xr.commit(y)}function U1(a,y,x,E,b){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),de=a.me*Math.sin(E*Math.PI/180),fe=y.Fa();if(fe.length===3)fe[0].centerX=z,fe[0].centerY=0,fe[1].centerX=fe[0].centerX-fe[0].width/2-fe[1].width/2-ee,fe[1].y=fe[0].y,fe[2].centerX=(fe[0].centerX+fe[1].centerX)/2,fe[2].y=fe[0].y-fe[2].height-ee;else if(fe.length===4)fe[0].centerX=z,fe[0].centerY=0,fe[2].centerX=-fe[0].centerX,fe[2].centerY=fe[0].centerY,fe[1].centerX=0,fe[1].y=Math.min(fe[0].y,fe[2].y)-fe[1].height-ee,fe[3].centerX=0,fe[3].y=Math.max(fe[0].y+fe[0].height+ee,fe[2].y+fe[2].height+ee);else{z=qe.alloc();for(var Se=0;Se<fe.length&&(fe[Se].centerX=oe,fe[Se].centerY=de,!(Se>=fe.length-1));Se++)H1(a,oe,de,fe,Se,b,z)||j1(a,oe,de,fe,Se,b,z),oe=z.x,de=z.y;if(qe.free(z),a.mj++,!(23<a.mj)){oe=fe[0].centerX,de=fe[0].centerY,z=fe[fe.length-1].centerX,Se=fe[fe.length-1].centerY;var Ce=Math.abs(oe-z)-((fe[0].width+fe[fe.length-1].width)/2+ee),Ne=Math.abs(de-Se)-((fe[0].height+fe[fe.length-1].height)/2+ee);ee=0,1>Math.abs(Ne)?Math.abs(oe-z)<(fe[0].width+fe[fe.length-1].width)/2&&(ee=0):ee=0<Ne?Ne:1>Math.abs(Ce)?0:Ce,oe=Math.abs(z)>Math.abs(Se)?0<z!=de>Se:0<Se!=oe<z,(oe=b===vl?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-fe[fe.length-1].width),ee=Math.min(ee,-fe[fe.length-1].height)),a.Xr.compare(ee,fe),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>fe.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,U1(a,y,x,E,b))}}}function z1(a,y,x,E,b){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),de=ee*Math.sin(E*Math.PI/180),fe=qe.alloc(),Se=y.Fa(),Ce=0;Ce<Se.length&&(Se[Ce].centerX=oe,Se[Ce].centerY=de,!(Ce>=Se.length-1));Ce++)H1(a,oe,de,Se,Ce,b,fe)||j1(a,oe,de,Se,Ce,b,fe),oe=fe.x,de=fe.y;if(qe.free(fe),a.mj++,!(23<a.mj)){if(oe=Math.atan2(de,oe),oe=b===vl?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<Se.length;oe++)ee.mk[oe]=Se[oe].bounds.x,ee.tm[oe]=Se[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,z1(a,y,x,E,b))}}function H1(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,de=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var fe=!1;if(0<=x!=(z===vl)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=de,!1;fe=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=de,!1;fe=!0}return de=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==fe&&(de=-de),Math.abs(x-de)>(E[b].height+E[b+1].height)/2?(ee.x=z,ee.y=de,!1):(ee.x=z,ee.y=de,!0)}function j1(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,de=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===vl)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=de,ee.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=de,ee.y=z;return}E=!0}de=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(de=-de),ee.x=de,ee.y=z}ma.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ma.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 qe(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},ma.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function my(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ee=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,de=0;de<=z;de++){E!==void 0&&b!==void 0?oe=E+de*b/z:oe=de*Math.PI/(2*z);var fe=Math.sin(oe);ee+=Math.sqrt(1-a*a*fe*fe)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function v0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?my(a,1,x,E,b):my(a,1,x))}function y0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=b)return re*a}}ma.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case E0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case cg:return this.ak(Gx(a));default:yt("Invalid sorting type.")}return a};function Gx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Pn;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>b&&(b=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>b&&(b=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}ma.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ee=[],re=[];E=[],b=new Pn;for(var oe=0,de=0;de<y.length;de++){var fe=y[de].length;if(fe===1)E.push(de);else if(fe===0)b.add(a.M(de));else{if(oe===0)x.push(de);else{for(var Se=fe=1/0,Ce=-1,Ne=[],De=0;De<x.length;De++)0>y[x[De]].indexOf(x[De===x.length-1?0:De+1])&&Ne.push(De===x.length-1?0:De+1);if(Ne.length===0)for(De=0;De<x.length;De++)Ne.push(De);for(De=0;De<Ne.length;De++){for(var Ye=Ne[De],ft=y[de],ut=0,vt=0;vt<ee.length;vt++){var St=z[ee[vt]],Tt=z[re[vt]];if(St<Tt){var Mt=St;St=Tt}else Mt=Tt;if(Mt<Ye&&Ye<=St)for(Tt=0;Tt<ft.length;Tt++){var Xt=ft[Tt];0>x.indexOf(Xt)||Mt<z[Xt]&&z[Xt]<St||Mt===z[Xt]||St===z[Xt]||ut++}else for(Tt=0;Tt<ft.length;Tt++)Xt=ft[Tt],0>x.indexOf(Xt)||Mt<z[Xt]&&z[Xt]<St&&Mt!==z[Xt]&&St!==z[Xt]&&ut++}for(ft=ut,vt=ut=0;vt<y[de].length;vt++)Mt=x.indexOf(y[de][vt]),0<=Mt&&(Mt=Math.abs(Ye-(Mt>=Ye?Mt+1:Mt)),ut+=Mt<x.length+1-Mt?Mt:x.length+1-Mt);for(vt=0;vt<ee.length;vt++)Mt=z[ee[vt]],St=z[re[vt]],Mt>=Ye&&Mt++,St>=Ye&&St++,Mt>St&&(Tt=St,St=Mt,Mt=Tt),St-Mt<(x.length+2)/2==(Mt<Ye&&Ye<=St)&&ut++;(ft<fe||ft===fe&&ut<Se)&&(fe=ft,Se=ut,Ce=Ye)}for(x.splice(Ce,0,de),fe=0;fe<x.length;fe++)z[x[fe]]=fe;for(fe=0;fe<y[de].length;fe++)Se=y[de][fe],0<=x.indexOf(Se)&&(ee.push(de),re.push(Se))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<E.length;re++)if(oe=E[re],de=y[oe][0],fe=x.indexOf(de),0<=fe){for(Ce=Se=0;Ce<y[de].length;Ce++)Ne=x.indexOf(y[de][Ce]),0>Ne||Ne===fe||(De=Ne>fe?Ne-fe:fe-Ne,Se+=Ne<fe!=De>ee-De?1:-1);x.splice(0>Se?fe:fe+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},wn.Object.defineProperties(ma.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!==ic&&a!==nc&&a!==th&&a!==kd||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==vl&&a!==nh&&a!==Uh&&a!==ug||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==E0&&!b0&&a!==cg||(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!==w0&&a!==ff||(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 nc=new Gt(ma,"ConstantSpacing",0),th=new Gt(ma,"ConstantDistance",1),kd=new Gt(ma,"ConstantAngle",2),ic=new Gt(ma,"Packed",3),vl=new Gt(ma,"Clockwise",4),nh=new Gt(ma,"Counterclockwise",5),Uh=new Gt(ma,"BidirectionalLeft",6),ug=new Gt(ma,"BidirectionalRight",7),S0=new Gt(ma,"Forwards",8),x0=new Gt(ma,"Reverse",9),E0=new Gt(ma,"Ascending",10),b0=new Gt(ma,"Descending",11),cg=new Gt(ma,"Optimized",12),w0=new Gt(ma,"Pythagorean",13),ff=new Gt(ma,"Circular",14);ma.className="CircularLayout",ma.ConstantSpacing=nc,ma.ConstantDistance=th,ma.ConstantAngle=kd,ma.Packed=ic,ma.Clockwise=vl,ma.Counterclockwise=nh,ma.BidirectionalLeft=Uh,ma.BidirectionalRight=ug,ma.Forwards=S0,ma.Reverse=x0,ma.Ascending=E0,ma.Descending=b0,ma.Optimized=cg,ma.Pythagorean=w0,ma.Circular=ff;function Lp(){this.Pl=-1/0,this.tm=this.mk=null}Lp.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},Lp.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]}},Lp.className="VertexArrangement";function dg(a){Jo.call(this,a)}$t(dg,Jo),dg.prototype.createVertex=function(){return new Ip(this)},dg.prototype.createEdge=function(){return new C0(this)},dg.className="CircularNetwork";function Ip(a){es.call(this,a),this.u=this.Si=NaN}$t(Ip,es);function ih(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===ic)if(x.nodeDiameterFormula===ff)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===ff?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}wn.Object.defineProperties(Ip.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)}}}),Ip.className="CircularVertex";function C0(a){ql.call(this,a)}$t(C0,ql),C0.className="CircularEdge";function _s(a){ua.call(this),this.ah=null,this.An=0,this.$d=new En(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)}$t(_s,ua),_s.prototype.cloneProtected=function(a){ua.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},_s.prototype.createNetwork=function(){return new gf(this)},_s.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}G1(this,0,a)}this.network=y;var ee=E=x.iterator;E=this.arrangementSpacing;var re=ee.count,oe=!0;z=b=0;for(var de=si(),fe=0;fe<re+y.vertexes.count+2;fe++)de[fe]=null;re=0,ee.reset();for(var Se=qt.alloc();ee.next();)if(fe=ee.value,this.computeBounds(fe,Se),oe)oe=!1,b=Se.x+Se.width/2,z=Se.y+Se.height/2,de[0]=new qe(Se.x+Se.width+E.width,Se.y),de[1]=new qe(Se.x,Se.y+Se.height+E.height),re=2;else{var Ce=W1(de,re,b,z,Se.width,Se.height,E),Ne=de[Ce],De=new qe(Ne.x+Se.width+E.width,Ne.y),Ye=new qe(Ne.x,Ne.y+Se.height+E.height);for(Ce+1<re&&de.splice(Ce+1,0,null),de[Ce]=De,de[Ce+1]=Ye,re++,Ce=Ne.x-Se.x,Ne=Ne.y-Se.y,fe=fe.vertexes.iterator;fe.next();)De=fe.value,De.centerX+=Ce,De.centerY+=Ne}for(qt.free(Se),fe=y.vertexes.iterator;fe.next();)ee=fe.value,Ce=ee.bounds,2>re?(b=Ce.x+Ce.width/2,z=Ce.y+Ce.height/2,de[0]=new qe(Ce.x+Ce.width+E.width,Ce.y),de[1]=new qe(Ce.x,Ce.y+Ce.height+E.height),re=2):(oe=W1(de,re,b,z,Ce.width,Ce.height,E),Se=de[oe],Ne=new qe(Se.x+Ce.width+E.width,Se.y),Ce=new qe(Se.x,Se.y+Ce.height+E.height),oe+1<re&&de.splice(oe+1,0,null),de[oe]=Ne,de[oe+1]=Ce,re++,ee.centerX=Se.x+ee.width/2,ee.centerY=Se.y+ee.height/2);for(oi(de),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}Y1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},_s.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},_s.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function G1(a,y,x){if(Wx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Vx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,G1(a,y+1,x),Y1(a,z),Yx(a,b),y=b.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Kx(a,y[x]);a.Zf=E}}function Wx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Vx(a,y){for(var x=a.network,E=new gf(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var ee=new K1;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new Pn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ee=re.toVertex,b.network===E&&ee.network===E?E.Bo(re):b.network===E?(re=b.Hj,re===null&&(re=new Pn,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new Pn,ee.Hj=re),re.add(b),ee.Vd--,ee.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,It.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(ee=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ee))){for(var de=re=0,fe=oe.count-ee;fe<oe.count;fe++){var Se=oe.M(fe),Ce=null;for(z=Se.edges.iterator;z.next();){var Ne=z.value;if(Ne.Ax(Se)===b){Ce=Ne;break}}Ce!==null&&(de+=Ce.length,re+=Se.width*Se.height)}z=b.centerX,oe=b.centerY,fe=b.width,Se=b.height,Ce=b.focus,Ne=fe*Se,1>Ne&&(Ne=1),re=It.sqrt((re+Ne+de*de*4/(ee*ee))/Ne),ee=(re-1)*fe/2,re=(re-1)*Se/2,b.bounds=new qt(z-Ce.x-ee,oe-Ce.y-re,fe+2*ee,Se+2*re),b.focus=new qe(Ce.x+ee,Ce.y+re)}}return a.network=E,x}function Yx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,ee=b.Tv;E.bounds=new qt(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new qe(z,ee),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Kx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=It.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,de=0,fe=y.vertexes.iterator;fe.next();){var Se=fe.value;1>=Se.Vd?oe++:(re=!0,de++,ee+=Math.atan2(y.centerY-Se.centerY,y.centerX-Se.centerX))}if(oe!==0){for(0<de&&(ee/=de),de=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(de=y/2),1<x.count&&x.sort(function(Ne,De){return Ne===null||De===null||Ne===De?0:De.width*De.height-Ne.width*Ne.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(fe=null,Se=oe.edges.iterator;Se.next();){fe=Se.value;break}Se=oe.width;var Ce=oe.height;Se=It.sqrt(Se*Se+Ce*Ce)/2,fe=z+fe.length+Se,Se=ee+(y*(re/2>>1)+de)*(re%2===0?1:-1),oe.centerX=E+fe*Math.cos(Se),oe.centerY=b+fe*Math.sin(Se),re++}}}}function W1(a,y,x,E,b,z,ee){var re=9e19,oe=-1,de=0;e:for(;de<y;de++){var fe=a[de],Se=fe.x-x,Ce=fe.y-E;if(Se=Se*Se+Ce*Ce,Se<re){for(Ce=de-1;0<=Ce;Ce--)if(a[Ce].y>fe.y&&a[Ce].x-fe.x<b+ee.width)continue e;for(Ce=de+1;Ce<y;Ce++)if(a[Ce].x>fe.x&&a[Ce].y-fe.y<z+ee.height)continue e;oe=de,re=Se}}return oe}_s.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},_s.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function V1(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,E+b<ee?a>y+z?(x=E+b-ee,a=a-y-z,It.sqrt(x*x+a*a)):a+x<y?(E=E+b-ee,a=a+x-y,It.sqrt(E*E+a*a)):ee-(E+b):E>ee+re?a>y+z?(x=E-ee-re,a=a-y-z,It.sqrt(x*x+a*a)):a+x<y?(E=E-ee-re,a=a+x-y,It.sqrt(E*E+a*a)):E-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function Y1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Zx(a)););a.ah=null}function Zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,E=Math.min(E,oe),b=Math.max(b,oe),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(Ye,ft){return Ye===null||ft===null||Ye===ft?0:Ye.centerX-ft.centerX}):y.sort(function(Ye,ft){return Ye===null||ft===null||Ye===ft?0:Ye.centerY-ft.centerY}),x=a.Zf;var de=E=re=0;for(z=0;z<y.length;z++){ee=y[z],E=ee.bounds,re=ee.focus,oe=E.x+re.x;var fe=E.y+re.y;E=ee.charge*a.electricalFieldX(oe,fe),de=ee.charge*a.electricalFieldY(oe,fe),E+=ee.mass*a.gravitationalFieldX(oe,fe),de+=ee.mass*a.gravitationalFieldY(oe,fe),ee.forceX+=E,ee.forceY+=de;for(var Se=z+1;Se<y.length;Se++){var Ce=y[Se];if(Ce!==ee){E=Ce.bounds,re=Ce.focus,de=E.x+re.x;var Ne=E.y+re.y;if(oe-de>x||de-oe>x){if(b)break}else if(fe-Ne>x||Ne-fe>x){if(!b)break}else{var De=V1(ee,Ce);1>De?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new T0),De=E.random(),re=E.random(),oe>de?(E=Math.abs(Ce.bounds.right-ee.bounds.x),E=(1+E)*De):oe<de?(E=Math.abs(Ce.bounds.x-ee.bounds.right),E=-(1+E)*De):(E=Math.max(Ce.width,ee.width),E=(1+E)*De-E/2),fe>Ne?(de=Math.abs(Ce.bounds.bottom-ee.bounds.y),de=(1+de)*re):oe<de?(de=Math.abs(Ce.bounds.y-ee.bounds.bottom),de=-(1+de)*re):(de=Math.max(Ce.height,ee.height),de=(1+de)*re-de/2)):(re=-(ee.charge*Ce.charge)/(De*De),E=(de-oe)/De*re,de=(Ne-fe)/De*re),ee.forceX+=E,ee.forceY+=de,Ce.forceX-=E,Ce.forceY-=de}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,E=ee.x+oe.x,ee=ee.y+oe.y,fe=z.bounds,Se=z.focus,oe=fe.x+Se.x,fe=fe.y+Se.y,Se=V1(x,z),1>Se?(Se=a.randomNumberGenerator,Se===null&&(a.randomNumberGenerator=Se=new T0),re=Se.random(),Se=Se.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,de=(ee>fe?1:-1)*(1+(z.height>x.height?z.height:x.height))*Se):(re=re.stiffness*(Se-re.length),E=(oe-E)/Se*re,de=(fe-ee)/Se*re),x.forceX+=E,x.forceY+=de,z.forceX-=E,z.forceY-=de;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}_s.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},_s.prototype.moveFixedVertex=function(){},_s.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},_s.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ka,y.toSpot=ka)}},_s.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=qt.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,qt.free(x)}x=qt.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}qt.free(x)},_s.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},_s.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},_s.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},_s.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},_s.prototype.electricalFieldX=function(){return 0},_s.prototype.electricalFieldY=function(){return 0},_s.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},_s.prototype.gravitationalFieldX=function(){return 0},_s.prototype.gravitationalFieldY=function(){return 0},_s.prototype.isFixed=function(a){return a.isFixed},wn.Object.defineProperties(_s.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"&&yt('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())}}}),_s.className="ForceDirectedLayout";function K1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}K1.className="ForceDirectedSubnet";function gf(a){Jo.call(this,a)}$t(gf,Jo),gf.prototype.createVertex=function(){return new Mp(this)},gf.prototype.createEdge=function(){return new Rp(this)},gf.className="ForceDirectedNetwork";function Mp(a){es.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}$t(Mp,es),wn.Object.defineProperties(Mp.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)}}}),Mp.className="ForceDirectedVertex";function Rp(a){ql.call(this,a),this.j=this.o=NaN}$t(Rp,ql),wn.Object.defineProperties(Rp.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)}}}),Rp.className="ForceDirectedEdge";function T0(){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()}T0.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},T0.className="RandomNumberGenerator";function Mo(a){ua.call(this),this.kc=this.ie=25,this.K=0,this.Dk=L0,this.Zk=I0,this.Qk=M0,this.bj=4,this.rk=R0,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 qe,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}$t(Mo,ua),Mo.prototype.cloneProtected=function(a){ua.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},Mo.prototype.qb=function(a){a.classType===Mo?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:yt("Unknown enum value: "+a):ua.prototype.qb.call(this,a)},Mo.prototype.createNetwork=function(){return new fg(this)},Mo.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!==Dp&&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===Dp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var ee=0,re=0,oe=0,de=0;if(E.link!==null){if(re=E.link,re===null)continue;var fe=b.node;if(ee=z.node,fe===null||ee===null)continue;var Se=re.fromNode;oe=re.toNode;for(var Ce=re.fromPort;Ce!==null&&!Ce.Ed();)Ce=Ce.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){de=Se;var Ne=Ce;Se=oe,Ce=re,oe=de,re=Ne}var De=b.focus;de=z.focus;var Ye=E.rev?z.bounds:b.bounds;Ne=qe.alloc(),fe!==Se?Ye.w()&&Se.isVisible()?Se.actualBounds.w()?(wd(Se,Ce,vr,Ne),Ne.x+=Se.actualBounds.x-Ye.x,Ne.y+=Se.actualBounds.y-Ye.y):(wd(Se,Ce,vr,Ne),Ne.w()||Ne.assign(De)):Ne.assign(De):Ye.w()?(wd(Se,Ce,vr,Ne),Ne.w()||Ne.assign(De)):Ne.assign(De),Se=E.rev?b.bounds:z.bounds,fe=qe.alloc(),ee!==oe?Se.w()&&oe.isVisible()?oe.actualBounds.w()?(wd(oe,re,vr,fe),fe.x+=oe.actualBounds.x-Se.x,fe.y+=oe.actualBounds.y-Se.y):(wd(oe,re,vr,fe),fe.w()||fe.assign(de)):fe.assign(de):Se.w()?(wd(oe,re,vr,fe),fe.w()||fe.assign(de)):fe.assign(de),this.K===90||this.K===270?(ee=Math.round((Ne.x-De.x)/this.kc),oe=Ne.x,re=Math.round((fe.x-de.x)/this.kc),de=fe.x):(ee=Math.round((Ne.y-De.y)/this.kc),oe=Ne.y,re=Math.round((fe.y-de.y)/this.kc),de=fe.y),qe.free(Ne),qe.free(fe),E.portFromColOffset=ee,E.portFromPos=oe,E.portToColOffset=re,E.portToPos=de}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Ne=b.layer,fe=z.layer,Se=0,Ye=E.link,Ye!==null){var ft=Ye.fromPort,ut=Ye.toPort;if(ft!==null&&ut!==null){var vt=Ye.fromNode;if(Ce=Ye.toNode,vt!==null&&Ce!==null){var St=N0(this,!0),Tt=N0(this,!1),Mt=this.setsPortSpots?St:Ye.computeSpot(!0,ft);De=this.setsPortSpots?Tt:Ye.computeSpot(!1,ut);var Xt=Ye.isOrthogonal;Mt.$c()&&Mt.Hf(Tt)&&De.$c()&&De.Hf(St)?Se=0:(St=Ye.getLinkPoint(vt,ft,Mt,!0,Xt,Ce,ut,qe.alloc()),Tt=Ye.getLinkDirection(vt,ft,St,Mt,!0,Xt,Ce,ut),qe.free(St),Mt.ys()||Tt!==nx(this,E,!0)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&E.rev&&(Se+=1):Se+=1,Mt=Ye.getLinkPoint(Ce,ut,De,!1,Xt,vt,ft,qe.alloc()),Ye=Ye.getLinkDirection(Ce,ut,Mt,De,!1,Xt,vt,ft),qe.free(Mt),De.ys()||Ye!==nx(this,E,!1)?this.setsPortSpots&&Ce!==null&&Ce.ports.count===1&&E.rev&&(Se+=2):Se+=2)}}}if(Ce=Se,Se=Ce===1||Ce===3,(Ce=Ce===2||Ce===3)&&(De=a.createVertex(),De.node=null,De.Dj=1,De.layer=Ne,De.near=b,a.dh(De),b=a.Zj(b,De,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=De),Ye=1,Se&&Ye--,Ne-fe>Ye&&0<Ne){for(E.valid=!1,De=a.createVertex(),De.node=null,De.Dj=2,De.layer=Ne-1,a.dh(De),b=a.Zj(b,De,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=Ce?0:ee,b.portToColOffset=0,b.portFromPos=Ce?0:oe,b.portToPos=0,b=De,Ne--;Ne-fe>Ye&&0<Ne;)De=a.createVertex(),De.node=null,De.Dj=3,De.layer=Ne-1,a.dh(De),b=a.Zj(b,De,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=De,Ne--;b=a.Zj(De,z,E.link),b.valid=!Se,Se&&(De.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=de}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=rh(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),oh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Mo.prototype.linkMinLength=function(){return 1};function vy(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}Mo.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},Mo.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 Ml(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function Nu(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function Z1(a,y,x){var E=rh(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<b;ee++){var re=0,oe=E[ee],de=oe.near;if(de!==null&&de.layer===oe.layer)if(oe=de.index,oe>ee)for(var fe=ee+1;fe<oe;fe++){var Se=E[fe];Se.near===de&&Se.Dj===de.Dj||re++}else for(fe=ee-1;fe>oe;fe--)Se=E[fe],Se.near===de&&Se.Dj===de.Dj||re++;var Ce;if(0<=x)for(oe=E[ee].sourceEdgesArrayAccess,de=0;de<oe.length;de++){var Ne=oe[de];if(Ne.valid&&Ne.fromVertex.layer!==y)for(Se=Ne.fromVertex.index,fe=Ne.portToPos,Ne=Ne.portFromPos,Ce=de+1;Ce<oe.length;Ce++){var De=oe[Ce];if(De.valid&&De.fromVertex.layer!==y){var Ye=De.fromVertex.index,ft=De.portToPos;De=De.portFromPos,fe<ft&&(Se>Ye||Se===Ye&&Ne>De)&&re++,ft<fe&&(Ye>Se||Ye===Se&&De>Ne)&&re++}}}if(0>=x){for(oe=E[ee].destinationEdgesArrayAccess,de=0;de<oe.length;de++)if(Ne=oe[de],Ne.valid&&Ne.toVertex.layer!==y)for(Se=Ne.toVertex.index,fe=Ne.portToPos,Ne=Ne.portFromPos,Ce=de+1;Ce<oe.length;Ce++)De=oe[Ce],De.valid&&De.toVertex.layer!==y&&(Ye=De.toVertex.index,ft=De.portToPos,De=De.portFromPos,Ne<De&&(Se>Ye||Se===Ye&&fe>ft)&&re++,De<Ne&&(Ye>Se||Ye===Se&&ft>fe)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var ut=0,vt=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var St=E[oe].sourceEdgesArrayAccess;for(de=0;de<re.length;de++)if(Ne=re[de],Ne.valid&&Ne.fromVertex.layer!==y)for(Se=Ne.fromVertex.index,Ne=Ne.portFromPos,Ce=0;Ce<St.length;Ce++)De=St[Ce],De.valid&&De.fromVertex.layer!==y&&(Ye=De.fromVertex.index,De=De.portFromPos,(Se<Ye||Se===Ye&&Ne<De)&&vt++,(Ye<Se||Ye===Se&&De<Ne)&&ut++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,St=E[oe].destinationEdgesArrayAccess,de=0;de<re.length;de++)if(Ne=re[de],Ne.valid&&Ne.toVertex.layer!==y)for(Se=Ne.toVertex.index,fe=Ne.portToPos,Ce=0;Ce<St.length;Ce++)De=St[Ce],De.valid&&De.toVertex.layer!==y&&(Ye=De.toVertex.index,ft=De.portToPos,(Se<Ye||Se===Ye&&fe<ft)&&vt++,(Ye<Se||Ye===Se&&ft<fe)&&ut++)}z[ee*b+oe]=ut,z[oe*b+ee]=vt}}return oh(a,y,E),z}Mo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Z1(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function A0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=rh(E,b),ee=E.tc[b],re=0,oe=0;oe<ee;oe++){var de=z[oe].destinationEdgesArrayAccess;if(de!==null)for(var fe=0;fe<de.length;fe++){var Se=de[fe];if(Se.valid&&Se.toVertex.layer!==b){var Ce=Se.fromVertex.column+Se.portFromColOffset,Ne=Se.toVertex.column+Se.portToColOffset;re+=(Math.abs(Ce-Ne)+1)*vy(Se)}}}oh(E,b,z),y+=re}return y}Mo.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 yy(a,y,x){for(var E=rh(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var de=null;0<=x&&(de=re.destinationEdgesArrayAccess);var fe=0,Se=0,Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(fe+=Ce.column-1,Se++),oe!==null)for(Ce=0;Ce<oe.length;Ce++){re=oe[Ce];var Ne=re.fromVertex;re.valid&&!re.rev&&Ne.layer!==y&&(fe+=Ne.column,Se++)}if(de!==null)for(oe=0;oe<de.length;oe++)re=de[oe],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(fe+=Ce.column,Se++);z[ee]=Se===0?-1:fe/Se}return oh(a,y,E),z}function X1(a,y,x){for(var E=rh(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var de=null;0<=x&&(de=re.destinationEdgesArrayAccess);var fe=0,Se=[],Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(Se[fe]=Ce.column-1,fe++),re=void 0,oe!==null)for(Ce=0;Ce<oe.length;Ce++){re=oe[Ce];var Ne=re.fromVertex;re.valid&&!re.rev&&Ne.layer!==y&&(Se[fe]=Ne.column+re.portFromColOffset,fe++)}if(de!==null)for(oe=0;oe<de.length;oe++)re=de[oe],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(Se[fe]=Ce.column+re.portToColOffset,fe++);fe===0?z[ee]=-1:(Se.sort(function(De,Ye){return De-Ye}),de=fe>>1,z[ee]=fe&1?Se[de]:Se[de-1]+Se[de]>>1)}return oh(a,y,E),z}function Op(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,de=y.layer-oe.layer;re=a.linkMinLength(re),de===re&&Op(a,oe,x,E,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,de=oe.layer-y.layer,re=a.linkMinLength(re),de===re&&Op(a,oe,x,E,b,z)}}function Sy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();)Sy(a,ee.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)Sy(a,y.value.fromVertex,x,E,b,z)}}Mo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case by:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Xx(a)!==null;){for(b=Q1(a);b!==null;)E[x]=b,x--,b.valid=!1,b=Q1(a);for(b=J1(a);b!==null;)E[y]=b,y++,b.valid=!1,b=J1(a);b=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,de=re.destinationEdges;de.next();)de.value.toVertex.valid&&oe++;de=0;for(var fe=re.sourceEdges;fe.next();)fe.value.fromVertex.valid&&de++;(b===null||z<oe-de)&&(b=re,z=oe-de)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case L0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&xy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&xy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case Dp:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Xx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Q1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function xy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,xy(a,b))}y.finish=a.Kn,a.Kn++}Mo.prototype.assignLayers=function(){switch(this.Zk){case wy:q1(this);break;case Cy:for(var a,y=this.network.vertexes.iterator;y.next();)a=ex(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 I0:for(q1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&tx(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 q1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=$1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function $1(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,$1(a,z)+b)}y.layer=x}else x=y.layer;return x}function ex(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,ex(a,z)+b)}y.layer=x}else x=y.layer;return x}function tx(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)tx(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var ee=E[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&Op(a,re,0,-1,!0,!1)}for(Op(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var de=ee.value;if(de.component===1){var fe=0,Se=!1,Ce=de.sourceEdgesArrayAccess;b=Ce.length;for(var Ne=0;Ne<b;Ne++){var De=Ce[Ne],Ye=De.fromVertex;fe+=1,Ye.component!==1&&(z+=1,Ye=Ye.layer-de.layer,De=a.linkMinLength(De),E=Math.min(E,Ye-De))}for(Ce=de.destinationEdgesArrayAccess,b=Ce.length,Ne=0;Ne<b;Ne++)De=Ce[Ne].toVertex,--fe,De.component!==1?--z:Se=!0;(oe===null||fe<re)&&!Se&&(oe=de,re=fe)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Op(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(de=0,fe=!1,Ce=ee.sourceEdgesArrayAccess,Se=Ce.length,Ne=0;Ne<Se;Ne++)De=Ce[Ne].fromVertex,de+=1,De.component!==1?E+=1:fe=!0;for(Ce=ee.destinationEdgesArrayAccess,Se=Ce.length,Ne=0;Ne<Se;Ne++)De=Ce[Ne],Ye=De.toVertex,--de,Ye.component!==1&&(--E,Ye=ee.layer-Ye.layer,De=a.linkMinLength(De),b=Math.min(b,Ye-De));(re===null||de>z)&&!fe&&(re=ee,z=de)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function nx(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}Mo.prototype.initializeIndices=function(){switch(this.Qk){default:case Ay:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case 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&&ix(this,x);break;case Ty: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&&rx(this,x)}};function ix(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&ix(a,E))}function rx(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&rx(a,E))}Mo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ml(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)P0(this,E,1),zu(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=Ml(this)),E=this.Ia;0<=E;E--)P0(this,E,-1),zu(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=Ml(this))}for(Nu(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)P0(this,E,0),zu(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=Ml(this)),E=this.Ia;0<=E;E--)P0(this,E,0),zu(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=Ml(this))}Nu(this,y);var z,ee,re;switch(this.rk){case Py:break;case ky:for(re=a+1;(E=this.countCrossings())<re;)for(re=E,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=zu(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=zu(this,E,1)||z;for(b=this.countCrossings(),b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=zu(this,E,1)||z;for(b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=zu(this,E,-1)||z;for(b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=zu(this,E,0)||z;for(b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=zu(this,E,0)||z;b>=a?Nu(this,y):(a=b,y=Ml(this))}break;default:case R0:for(x=this.Ia,ee=0,re=a+1;(E=this.countCrossings())<re;){for(re=E,z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=zu(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=zu(this,E,1)||z;for(b=this.countCrossings(),b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=zu(this,E,1)||z;for(b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=zu(this,E,-1)||z;for(b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=zu(this,E,0)||z;for(b>=a?Nu(this,y):(a=b,y=Ml(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=zu(this,E,0)||z;b>=a?Nu(this,y):(a=b,y=Ml(this))}}Nu(this,y)};function P0(a,y,x){var E=rh(a,y),b=a.tc[y],z=X1(a,y,x),ee=yy(a,y,x);for(x=0;x<b;x++)ee[x]===-1&&(ee[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=E[x],E[x]=E[x+1],E[x+1]=oe);for(x=z=0;x<b;x++)oe=E[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);oh(a,y,E)}function zu(a,y,x){var E=rh(a,y),b=a.tc[y];x=Z1(a,y,x);var z,ee=[];for(z=0;z<b;z++)ee[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,de=!0;de;)for(de=!1,z=0;z<b-1;z++){var fe=x[E[z].index*b+E[z+1].index],Se=x[E[z+1].index*b+E[z].index],Ce=0,Ne=0,De=E[z].column,Ye=E[z+1].column,ft=a.nodeMinColumnSpace(E[z],!0),ut=a.nodeMinColumnSpace(E[z],!1),vt=a.nodeMinColumnSpace(E[z+1],!0),St=a.nodeMinColumnSpace(E[z+1],!1);ft=De-ft+vt,ut=Ye-ut+St;var Tt=E[z].sourceEdges.iterator;for(Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.fromVertex,vt.valid&&St.layer===y){for(vt=0;E[vt]!==St;)vt++;vt<z&&(Ce+=2*(z-vt),Ne+=2*(z+1-vt)),vt===z+1&&(Ce+=1),vt>z+1&&(Ce+=4*(vt-z),Ne+=4*(vt-(z+1)))}for(Tt=E[z].destinationEdges.iterator,Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;E[vt]!==St;)vt++;vt===z+1&&(Ne+=1)}for(Tt=E[z+1].sourceEdges.iterator,Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.fromVertex,vt.valid&&St.layer===y){for(vt=0;E[vt]!==St;)vt++;vt<z&&(Ce+=2*(z+1-vt),Ne+=2*(z-vt)),vt===z&&(Ne+=1),vt>z+1&&(Ce+=4*(vt-(z+1)),Ne+=4*(vt-z))}for(Tt=E[z+1].destinationEdges.iterator,Tt.reset();Tt.next();)if(vt=Tt.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;E[vt]!==St;)vt++;vt===z&&(Ce+=1)}vt=St=0,Tt=ee[E[z].index];var Mt=re[E[z].index],Xt=ee[E[z+1].index],pi=re[E[z+1].index];Tt!==-1&&(St+=Math.abs(Tt-De),vt+=Math.abs(Tt-ut)),Mt!==-1&&(St+=Math.abs(Mt-De),vt+=Math.abs(Mt-ut)),Xt!==-1&&(St+=Math.abs(Xt-Ye),vt+=Math.abs(Xt-ft)),pi!==-1&&(St+=Math.abs(pi-Ye),vt+=Math.abs(pi-ft)),(Ne<Ce-.5||Ne===Ce&&Se<fe-.5||Ne===Ce&&Se===fe&&vt<St-.5)&&(de=oe=!0,E[z].column=ut,E[z+1].column=ft,fe=E[z],E[z]=E[z+1],E[z+1]=fe)}for(z=0;z<b;z++)E[z].index=z;return oh(a,y,E),oe}Mo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&iE)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=hg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=hg(this,y,-1)||x;x=hg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Ey(this,y,1);for(y=this.Md-1;0<=y;y--)Ey(this,y,-1);Ey(this,this.Md,0)}if(a&&(ox(this,-1),ox(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=hg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=hg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=hg(this,y,0)||x}}else $x(this)};function hg(a,y,x){for(var E=!1;Qx(a,y,x);)E=!0;return E}function Qx(a,y,x){var E,b=rh(a,y),z=a.tc[y],ee=yy(a,y,-1);if(0<x)for(E=0;E<z;E++)ee[E]=-1;var re=yy(a,y,1);if(0>x)for(E=0;E<z;E++)re[E]=-1;for(var oe=!1,de=!0;de;)for(de=!1,E=0;E<z;E++){var fe=b[E].column,Se=a.nodeMinColumnSpace(b[E],!0),Ce=a.nodeMinColumnSpace(b[E],!1),Ne=0;0>E-1||fe-b[E-1].column-1>Se+a.nodeMinColumnSpace(b[E-1],!1)?Ne=fe-1:Ne=fe,Se=E+1>=z||b[E+1].column-fe-1>Ce+a.nodeMinColumnSpace(b[E+1],!0)?fe+1:fe;var De=Ce=0,Ye=0;if(0>=x)for(var ft=b[E].sourceEdges.iterator;ft.next();){var ut=ft.value,vt=ut.fromVertex;if(ut.valid&&vt.layer!==y){var St=vy(ut),Tt=ut.portFromColOffset;ut=ut.portToColOffset,vt=vt.column,Ce+=(Math.abs(fe+ut-(vt+Tt))+1)*St,De+=(Math.abs(Ne+ut-(vt+Tt))+1)*St,Ye+=(Math.abs(Se+ut-(vt+Tt))+1)*St}}if(0<=x)for(ft=b[E].destinationEdges.iterator;ft.next();)ut=ft.value,vt=ut.toVertex,ut.valid&&vt.layer!==y&&(St=vy(ut),Tt=ut.portFromColOffset,ut=ut.portToColOffset,vt=vt.column,Ce+=(Math.abs(fe+Tt-(vt+ut))+1)*St,De+=(Math.abs(Ne+Tt-(vt+ut))+1)*St,Ye+=(Math.abs(Se+Tt-(vt+ut))+1)*St);ut=Tt=St=0,ft=ee[b[E].index],vt=re[b[E].index],ft!==-1&&(St+=Math.abs(ft-fe),Tt+=Math.abs(ft-Ne),ut+=Math.abs(ft-Se)),vt!==-1&&(St+=Math.abs(vt-fe),Tt+=Math.abs(vt-Ne),ut+=Math.abs(vt-Se)),De<Ce||De===Ce&&Tt<St?(de=oe=!0,b[E].column=Ne):(Ye<Ce||Ye===Ce&&ut<St)&&(de=oe=!0,b[E].column=Se)}return oh(a,y,b),a.normalize(),oe}function Ey(a,y,x){var E=rh(a,y),b=a.tc[y],z=X1(a,y,x),ee=[];for(x=0;x<b;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var re=E[x].column,oe=a.nodeMinColumnSpace(E[x],!0),de=a.nodeMinColumnSpace(E[x],!1),fe=0;if(ee[x]===-1)if(x===0&&x===b-1)fe=re;else if(x===0){var Se=E[x+1].column;Se-re===de+a.nodeMinColumnSpace(E[x+1],!0)?fe=re-1:fe=re}else x===b-1?(Se=E[x-1].column,fe=re-Se===oe+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(Se=E[x-1].column,oe=Se+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,Se=E[x+1].column,de=Se-a.nodeMinColumnSpace(E[x+1],!0)-de-1,fe=(oe+de)/2|0);else x===0&&x===b-1?fe=ee[x]:x===0?(Se=E[x+1].column,de=Se-a.nodeMinColumnSpace(E[x+1],!0)-de-1,fe=Math.min(ee[x],de)):x===b-1?(Se=E[x-1].column,oe=Se+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,fe=Math.max(ee[x],oe)):(Se=E[x-1].column,oe=Se+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,Se=E[x+1].column,de=Se-a.nodeMinColumnSpace(E[x+1],!0)-de-1,oe<ee[x]&&ee[x]<de?fe=ee[x]:oe>=ee[x]?fe=oe:de<=ee[x]&&(fe=de));fe!==re&&(z=!0,E[x].column=fe)}oh(a,y,E),a.normalize()}function Jx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function qx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){E=ee.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function ox(a,y){for(var x=0;x<=a.Ra;x++)for(;Jx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;qx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=Ml(a),z=A0(a);for(E=z+1;z<E;){E=z,ax(a,x,1);var ee=A0(a);ee>z?Nu(a,b):ee<z&&(z=ee,b=Ml(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=Ml(a),z=A0(a),E=z+1;z<E;)E=z,ax(a,x,-1),ee=A0(a),ee>z?Nu(a,b):ee<z&&(z=ee,b=Ml(a));a.normalize()}function ax(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(Sy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)b[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee+1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee+1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee-1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee-1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function $x(a){for(var y=si(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Mn,eE(y,x);var z=null,ee=null,re=null,oe=null,de=(a.ve&1)!==0,fe=(a.ve&2)!==0,Se=(a.ve&4)!==0,Ce=(a.ve&8)!==0;for(de&&(a.verticalAlignment(y,x,!0),z=k0(a,y,!0,!1)),y.reverse(),Se&&(a.verticalAlignment(y,x,!1),re=k0(a,y,!1,!1)),E=bi(y),b=E.next();!b.done;b=E.next())b.value.reverse();Ce&&(a.verticalAlignment(y,x,!1),oe=k0(a,y,!1,!0)),y.reverse(),fe&&(a.verticalAlignment(y,x,!0),ee=k0(a,y,!0,!0)),oi(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Ne){var De=si();de&&De.push(z.get(Ne)),fe&&De.push(ee.get(Ne)),Se&&De.push(re.get(Ne)),Ce&&De.push(oe.get(Ne)),De.sort(function(ft,ut){return ft-ut});var Ye=De.length;Ye=(De[Math.floor((Ye-1)/2)]+De[Math.ceil((Ye-1)/2)])/2,oi(De),Ne.zc=Ye})}function eE(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,ee=a[E],re=a[E+1],oe=0;z<re.length;oe++){var de=re[oe];e:{if(de.node===null){var fe=Ny(de);if(0<fe.length){fe=fe[0].node===null;break e}}fe=!1}var Se=fe;if(oe===re.length-1||Se){for(fe=ee.length-1,Se&&(fe=Ny(de)[0].index);z<=oe;){if(de=re[z],!de.bo){Se=[];for(var Ce=bi(de.sourceEdgesArrayAccess),Ne=Ce.next();!Ne.done;Ne=Ce.next())Ne=Ne.value,Ne.valid&&Se.push(Ne);de.bo=Se}for(de=bi(de.bo),Se=de.next();!Se.done;Se=de.next())Se=Se.value,Ce=Se.fromVertex.index,(Ce<b||Ce>fe)&&y.add(Se);z++}b=fe}}}Mo.prototype.verticalAlignment=function(a,y,x){tE(a),a=bi(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=bi(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ee=x?Ny(z):rE(z),re=ee.length;if(0<re){ee.sort(function(Se,Ce){return Se.vi-Ce.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var de=ee[re],fe=void 0;fe=x?O0(de,z):O0(z,de),!y.contains(fe)&&b<de.vi&&(de.align=z,z.root=de.root,z.align=de.root,b=de.vi)}}}}};function tE(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function k0(a,y,x,E){for(var b=a.K===90||a.K===270,z=bi(y),ee=z.next();!ee.done;ee=z.next()){var re=bi(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=bi(y),re=z.next();!re.done;re=z.next()){re=bi(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var de=0,fe=oe;fe.align!==oe;){var Se=fe.align,Ce=ee?fe.width:fe.height,Ne=ee?Se.width:Se.height;if(x){var De=O0(fe,Se),Ye=De.portFromPos,ft=De.portToPos;De.link!==null&&(fe.node&&fe.node!==De.link.fromNode&&(Ye=ee?fe.focusX:fe.focusY),Se.node&&Se.node!==De.link.toNode&&(ft=ee?Se.focusX:Se.focusY))}else De=O0(Se,fe),Ye=De.portToPos,ft=De.portFromPos,De.link!==null&&(fe.node&&fe.node!==De.link.toNode&&(Ye=ee?fe.focusX:fe.focusY),Se.node&&Se.node!==De.link.fromNode&&(ft=ee?Se.focusX:Se.focusY));Ce=E?fe.qg+(Ce-Ye)-(Ne-ft):fe.qg+Ye-ft,Se.qg=Ce,de=Math.min(de,Ce),fe=fe.align}fe=oe;do fe.qg=fe.qg-de,fe=fe.align;while(fe!==oe)}}for(x=bi(y),ee=x.next();!ee.done;ee=x.next())for(z=bi(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&sx(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=lx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new Yt,y=bi(y),ee=y.next();!ee.done;ee=y.next())for(x=bi(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=b?ee.width:ee.height,a.add(ee,E?-ee.zc-z:ee.zc);return a}function sx(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=lx(E,x),z=b.root;sx(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ee-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function lx(a,y){var x=a.Tz;return a=a.vi,1>a&&yt("Could not determine previous vertex in layer"),y[x][a-1]}Mo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=si(),b=si(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=nE(this,y[ee],E,b,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?E[x]-E[ee]:b[x]-b[ee],z.delta!==0&&y[ee].each(function(oe){return function(de){de.value+=oe.delta}}(z)));oi(E),oi(b)};function nE(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[b]=z,E[b]=ee,ee-z}Mo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=N0(this,!0),y=N0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function N0(a,y){return a.K===270?y?gr:wo:a.K===90?y?wo:gr:a.K===180?y?Wr:Qr:y?Qr:Wr}Mo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ee=b=1/0,re=-1/0;a.next();){var oe=a.value,de=oe.layer,fe=oe.column|0;E?(ee=y.x+this.kc*fe,de=this.Kd[de]):(ee=this.Kd[de],de=y.y+this.kc*fe),oe.centerX=ee,oe.centerY=de,x&&isFinite(oe.zc)&&(E?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),b=Math.min(oe.y,b),E?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-b,this.Rf=new qe(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Mo.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new qt(0,0,x,Math.abs(this.Ta[0]))):y.push(new qt(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new qt(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new qt(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new qt(0,0,Math.abs(this.Ta[0]),x)):y.push(new qt(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new qt(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new qt(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Mo.prototype.commitLayers=function(){},Mo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,ee=E.fromPort,re=E.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var de=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var fe=x.fromVertex,Se=x.toVertex;if(x.valid)y.curve===pu&&y.pointsCount===4&&(fe.column===Se.column&&this.alignOption===0?(x=y.getLinkPoint(b,ee,de,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,ee),x.w()||x.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=E=!1,ee!==null&&de===dr&&(E=!0),re!==null&&oe===dr&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(vr),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(vr),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(fe.layer===Se.layer)y.zf();else{var Ce=!1,Ne=!1,De=this.ie,Ye=y.firstPickIndex+1;if(y.isOrthogonal){Ne=!0;var ft=y.pointsCount;4<ft&&y.points.removeRange(2,ft-3)}else if(y.curve===pu)Ce=!0,ft=y.pointsCount,4<ft&&y.points.removeRange(2,ft-3),ft===4&&(Ye=2);else{ft=y.pointsCount;var ut=de===dr,vt=oe===dr;2<ft&&ut&&vt?y.points.removeRange(1,ft-2):3<ft&&ut&&!vt?y.points.removeRange(1,ft-3):3<ft&&!ut&&vt?y.points.removeRange(2,ft-2):4<ft&&!ut&&!vt&&y.points.removeRange(2,ft-3)}if(x.rev){for(;Se!==null&&fe!==Se;){var St=ft=null;for(ut=Se.sourceEdges.iterator;ut.next()&&(vt=ut.value,vt.link!==x.link||(ft=vt.fromVertex,St=vt.toVertex,ft.node!==null)););if(ft===null)break;if(ft!==fe){ut=y.i(Ye-1).x,vt=y.i(Ye-1).y;var Tt=ft.centerX,Mt=ft.centerY;if(Ne)this.K===180||this.K===0?Ye===y.firstPickIndex+1?(y.m(Ye++,ut,vt),y.m(Ye++,ut,Mt)):(St!==null?St.centerY:vt)!==Mt&&(St=this.Ta[ft.layer-1]+this.Rf.x,y.m(Ye++,St,vt),y.m(Ye++,St,Mt)):Ye===y.firstPickIndex+1?(y.m(Ye++,ut,vt),y.m(Ye++,Tt,vt)):(St!==null?St.centerX:ut)!==Tt&&(St=this.Ta[ft.layer-1]+this.Rf.y,y.m(Ye++,ut,St),y.m(Ye++,Tt,St));else if(Ye===y.firstPickIndex+1){St=Math.max(10,this.he[Se.layer]);var Xt=Math.max(10,this.Ld[Se.layer]);if(Ce)this.K===180?Tt<=Se.bounds.x?(Se=Se.bounds.x,y.m(Ye++,Se-St,Mt),y.m(Ye++,Se,Mt),y.m(Ye++,Se+Xt,Mt)):(y.m(Ye++,Tt-St,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt+Xt,Mt)):this.K===90?Mt>=Se.bounds.bottom?(Se=Se.bounds.y+Se.bounds.height,y.m(Ye++,Tt,Se+Xt),y.m(Ye++,Tt,Se),y.m(Ye++,Tt,Se-St)):(y.m(Ye++,Tt,Mt+Xt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt-St)):this.K===270?Mt<=Se.bounds.y?(Se=Se.bounds.y,y.m(Ye++,Tt,Se-St),y.m(Ye++,Tt,Se),y.m(Ye++,Tt,Se+Xt)):(y.m(Ye++,Tt,Mt-St),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt+Xt)):this.K===0&&(Tt>=Se.bounds.right?(Se=Se.bounds.x+Se.bounds.width,y.m(Ye++,Se+Xt,Mt),y.m(Ye++,Se,Mt),y.m(Ye++,Se-St,Mt)):(y.m(Ye++,Tt+Xt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt-St,Mt)));else{y.m(Ye++,ut,vt);var pi=0;this.K===180||this.K===0?((this.K===180?Tt>=Se.bounds.right:Tt<=Se.bounds.x)&&(pi=(this.K===0?-St:Xt)/2),y.m(Ye++,ut+pi,Mt)):((this.K===270?Mt>=Se.bounds.bottom:Mt<=Se.bounds.y)&&(pi=(this.K===90?-St:Xt)/2),y.m(Ye++,Tt,vt+pi)),y.m(Ye++,Tt,Mt)}}else St=Math.max(10,this.he[ft.layer]),Xt=Math.max(10,this.Ld[ft.layer]),Ce?this.K===180?(y.m(Ye++,Tt-St-De,Mt),y.m(Ye++,Math.min(Tt-St+De/2,Tt),Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Math.max(Tt+Xt-De/2,Tt),Mt),y.m(Ye++,Tt+Xt+De,Mt)):this.K===90?(y.m(Ye++,Tt,Mt+Xt+De),y.m(Ye++,Tt,Math.max(Mt+Xt-De/2,Mt)),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Math.min(Mt-St+De/2,Mt)),y.m(Ye++,Tt,Mt-St-De)):this.K===270?(y.m(Ye++,Tt,Mt-St-De),y.m(Ye++,Tt,Math.min(Mt-St+De/2,Mt)),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Math.max(Mt+Xt-De/2,Mt)),y.m(Ye++,Tt,Mt+Xt+De)):(y.m(Ye++,Tt+Xt+De,Mt),y.m(Ye++,Math.max(Tt+Xt-De/2,Tt),Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Math.min(Tt-St+De/2,Tt),Mt),y.m(Ye++,Tt-St-De,Mt)):y.m(Ye++,Tt,Mt)}Se=ft}(re===null||de!==dr||Ne)&&(ut=y.i(Ye-1).x,vt=y.i(Ye-1).y,Tt=y.i(Ye).x,Mt=y.i(Ye).y,Ne?(De=this.Ld[fe.layer],this.K===180||this.K===0?(Ne=vt,Ne>=fe.bounds.y&&Ne<=fe.bounds.bottom&&(this.K===180?Tt>=fe.bounds.x:Tt<=fe.bounds.right)&&(Se=fe.centerX+(this.K===180?-De:De),Ne<fe.bounds.y+fe.bounds.height/2?Ne=fe.bounds.y-this.kc/2:Ne=fe.bounds.bottom+this.kc/2,y.m(Ye++,Se,vt),y.m(Ye++,Se,Ne)),y.m(Ye++,Tt,Ne)):(Ne=ut,Ne>=fe.bounds.x&&Ne<=fe.bounds.right&&(this.K===270?Mt>=fe.bounds.y:Mt<=fe.bounds.bottom)&&(Se=fe.centerY+(this.K===270?-De:De),Ne<fe.bounds.x+fe.bounds.width/2?Ne=fe.bounds.x-this.kc/2:Ne=fe.bounds.right+this.kc/2,y.m(Ye++,ut,Se),y.m(Ye++,Ne,Se)),y.m(Ye++,Ne,Mt)),y.m(Ye++,Tt,Mt)):Ce?(St=Math.max(10,this.he[fe.layer]),Xt=Math.max(10,this.Ld[fe.layer]),this.K===180&&Tt>=fe.bounds.x?(Se=fe.bounds.x+fe.bounds.width,y.L(Ye-2,Se,vt),y.L(Ye-1,Se+Xt,vt)):this.K===90&&Mt<=fe.bounds.bottom?(Se=fe.bounds.y,y.L(Ye-2,ut,Se),y.L(Ye-1,ut,Se-St)):this.K===270&&Mt>=fe.bounds.y?(Se=fe.bounds.y+fe.bounds.height,y.L(Ye-2,ut,Se),y.L(Ye-1,ut,Se+Xt)):this.K===0&&Tt<=fe.bounds.right&&(Se=fe.bounds.x,y.L(Ye-2,Se,vt),y.L(Ye-1,Se-St,vt))):(St=Math.max(10,this.he[fe.layer]),Xt=Math.max(10,this.Ld[fe.layer]),Ne=0,this.K===180||this.K===0?((this.K===180?Tt<=fe.bounds.x:Tt>=fe.bounds.right)&&(Ne=(this.K===0?Xt:-St)/2),y.m(Ye++,Tt+Ne,vt)):((this.K===270?Mt<=fe.bounds.y:Mt>=fe.bounds.bottom)&&(Ne=(this.K===90?Xt:-St)/2),y.m(Ye++,ut,Mt+Ne)),y.m(Ye++,Tt,Mt)))}else{for(;fe!==null&&fe!==Se;){for(St=ft=null,fe=fe.destinationEdges.iterator;fe.next()&&(ut=fe.value,ut.link!==x.link||(ft=ut.toVertex,St=ut.fromVertex,St.node!==null&&(St=null),ft.node!==null)););if(ft===null)break;ft!==Se&&(ut=y.i(Ye-1).x,vt=y.i(Ye-1).y,Tt=ft.centerX,Mt=ft.centerY,Ne?this.K===180||this.K===0?(St!==null?St.centerY:vt)!==Mt&&(St=this.Ta[ft.layer]+this.Rf.x,Ye===y.firstPickIndex+1&&(St=this.K===0?Math.max(St,ut):Math.min(St,ut)),y.m(Ye++,St,vt),y.m(Ye++,St,Mt)):(St!==null?St.centerX:ut)!==Tt&&(St=this.Ta[ft.layer]+this.Rf.y,Ye===y.firstPickIndex+1&&(St=this.K===90?Math.max(St,vt):Math.min(St,vt)),y.m(Ye++,ut,St),y.m(Ye++,Tt,St)):(St=Math.max(10,this.he[ft.layer]),Xt=Math.max(10,this.Ld[ft.layer]),Ce?this.K===180?(y.m(Ye++,Tt+Xt+De,Mt),y.m(Ye++,Math.max(Tt+Xt-De/2,Tt),Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Math.min(Tt-St+De/2,Tt),Mt),y.m(Ye++,Tt-St-De,Mt)):this.K===90?(y.m(Ye++,Tt,Mt-St-De),y.m(Ye++,Tt,Math.min(Mt-St+De/2,Mt)),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Math.max(Mt+Xt-De/2,Mt)),y.m(Ye++,Tt,Mt+Xt+De)):this.K===270?(y.m(Ye++,Tt,Mt+Xt+De),y.m(Ye++,Tt,Math.max(Mt+Xt-De/2,Mt)),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Math.min(Mt-St+De/2,Mt)),y.m(Ye++,Tt,Mt-St-De)):(y.m(Ye++,Tt-St-De,Mt),y.m(Ye++,Math.min(Tt-St+De/2,Tt),Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Tt,Mt),y.m(Ye++,Math.max(Tt+Xt-De/2,Tt),Mt),y.m(Ye++,Tt+Xt+De,Mt)):this.K===180?(y.m(Ye++,Tt+Xt,Mt),y.m(Ye++,Tt-St,Mt)):this.K===90?(y.m(Ye++,Tt,Mt-St),y.m(Ye++,Tt,Mt+Xt)):this.K===270?(y.m(Ye++,Tt,Mt+Xt),y.m(Ye++,Tt,Mt-St)):(y.m(Ye++,Tt-St,Mt),y.m(Ye++,Tt+Xt,Mt)))),fe=ft}Ne&&(ut=y.i(Ye-1).x,vt=y.i(Ye-1).y,Tt=y.i(Ye).x,Mt=y.i(Ye).y,this.K===180||this.K===0?vt!==Mt&&(St=this.K===0?Math.min(Math.max((Tt+ut)/2,this.Ta[Se.layer]+this.Rf.x),Tt):Math.max(Math.min((Tt+ut)/2,this.Ta[Se.layer]+this.Rf.x),Tt),y.m(Ye++,St,vt),y.m(Ye++,St,Mt)):ut!==Tt&&(St=this.K===90?Math.min(Math.max((Mt+vt)/2,this.Ta[Se.layer]+this.Rf.y),Mt):Math.max(Math.min((Mt+vt)/2,this.Ta[Se.layer]+this.Rf.y),Mt),y.m(Ye++,ut,St),y.m(Ye++,Tt,St)))}E!==null&&Ce&&4<=y.pointsCount&&(ee!==null&&(ee=de===dr?y.getLinkPointFromPoint(b,ee,ee.ga(vr),y.i(3),!0):y.i(0),de===dr&&(de=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+de.x)/2,de.y),y.L(2,E.x,(de.y+E.y)/2)):(y.L(1,de.x,(ee.y+de.y)/2),y.L(2,(de.x+E.x)/2,E.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=oe===dr?y.getLinkPointFromPoint(z,re,re.ga(vr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===dr&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Mo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Pn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),ee=E.i(b+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new ah;re.layer=Math.floor(z.y/2);var oe=E.i(0),de=E.i(E.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=de.x*de.x+de.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=b,re.link=E,b+2<E.pointsCount){oe=E.i(b-1),de=E.i(b+2);var fe=0;oe.y<z.y?fe=de.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(fe=de.y>z.y?0:ee.x<z.x?2:1),re.j=fe}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),fe=1,re=x[z].jc,oe=z;oe<b;oe++)de=x[oe],de.jc!==re&&(fe++,re=de.jc);this.zi(x,this.Ux,z,z+ee);var Se=1;for(re=x[z].first,oe=z;oe<b;oe++)de=x[oe],de.first!==re&&(Se++,re=de.first);for(oe=!0,de=Se,fe<Se?(oe=!1,de=fe,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,fe=0,Se=z;Se<b;Se++){var Ce=x[Se];(oe?Ce.first:Ce.jc)!==re&&(fe++,re=oe?Ce.first:Ce.jc);var Ne=Ce.link;z=Ne.i(Ce.index),ee=Ne.i(Ce.index+1);var De=this.linkSpacing*(fe-(de-1)/2);y++,Ne.uh(),Ne.L(Ce.index,z.x,z.y+De),Ne.L(Ce.index+1,ee.x,ee.y+De),Ne.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),ee=E.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new ah,re.layer=Math.floor(z.x/2),oe=E.i(0),de=E.i(E.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=de.x+de.y*de.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=b,re.link=E,b+2<E.pointsCount&&(oe=E.i(b-1),de=E.i(b+2),fe=0,oe.x<z.x?fe=de.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(fe=de.x>z.x?0:ee.y<z.y?2:1),re.j=fe),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),fe=1,re=x[z].jc,oe=z;oe<b;oe++)de=x[oe],de.jc!==re&&(fe++,re=de.jc);for(this.zi(x,this.Ux,z,z+ee),Se=1,re=x[z].first,oe=z;oe<b;oe++)de=x[oe],de.first!==re&&(Se++,re=de.first);for(oe=!0,de=Se,fe<Se?(oe=!1,de=fe,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,fe=0,Se=z;Se<b;Se++)Ce=x[Se],(oe?Ce.first:Ce.jc)!==re&&(fe++,re=oe?Ce.first:Ce.jc),Ne=Ce.link,z=Ne.i(Ce.index),ee=Ne.i(Ce.index+1),De=this.linkSpacing*(fe-(de-1)/2),y++,Ne.uh(),Ne.L(Ce.index,z.x+De,z.y),Ne.L(Ce.index+1,ee.x+De,ee.y),Ne.zf()}z=b}a=E}}}},Be=Mo.prototype,Be.Vx=function(a,y){return a instanceof ah&&y instanceof ah&&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},Be.Ux=function(a,y){return a instanceof ah&&y instanceof ah&&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},Be.Js=function(a,y){return a instanceof ah&&y instanceof ah&&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},Be.B=function(a,y){return a-=y,-1<a&&1>a},Be.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&yt("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function rh(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function oh(a,y,x){a.He[a.tc[y]]=x}wn.Object.defineProperties(Mo.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()):yt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==by&&a!==L0&&a!==Dp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==I0&&a!==wy&&a!==Cy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==M0&&a!==Ty&&a!==Ay||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Py&&a!==R0&&a!==ky||(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 L0=new Gt(Mo,"CycleDepthFirst",0),by=new Gt(Mo,"CycleGreedy",1),Dp=new Gt(Mo,"CycleFromLayers",2),I0=new Gt(Mo,"LayerOptimalLinkLength",0),wy=new Gt(Mo,"LayerLongestPathSink",1),Cy=new Gt(Mo,"LayerLongestPathSource",2),M0=new Gt(Mo,"InitDepthFirstOut",0),Ty=new Gt(Mo,"InitDepthFirstIn",1),Ay=new Gt(Mo,"InitNaive",2),Py=new Gt(Mo,"AggressiveNone",0),R0=new Gt(Mo,"AggressiveLess",1),ky=new Gt(Mo,"AggressiveMore",2),iE=8;Mo.className="LayeredDigraphLayout",Mo.CycleDepthFirst=L0,Mo.CycleGreedy=by,Mo.CycleFromLayers=Dp,Mo.LayerOptimalLinkLength=I0,Mo.LayerLongestPathSink=wy,Mo.LayerLongestPathSource=Cy,Mo.InitDepthFirstOut=M0,Mo.InitDepthFirstIn=Ty,Mo.InitNaive=Ay,Mo.AggressiveNone=Py,Mo.AggressiveLess=R0,Mo.AggressiveMore=ky,Mo.PackNone=0,Mo.PackExpand=1,Mo.PackStraighten=2,Mo.PackMedian=4,Mo.PackAll=15,Mo.AlignNone=0,Mo.AlignUpperLeft=1,Mo.AlignUpperRight=2,Mo.AlignLowerLeft=4,Mo.AlignLowerRight=8,Mo.AlignAll=15;function ah(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ah.className="SegInfo";function fg(a){Jo.call(this,a)}$t(fg,Jo),fg.prototype.createVertex=function(){return new Lu(this)},fg.prototype.createEdge=function(){return new Fp(this)},fg.className="LayeredDigraphNetwork";function Lu(a){es.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}$t(Lu,es);function ux(a,y){return a.index-y.index}function O0(a,y){if(!a.$n){for(var x=[],E=bi(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=bi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;yt("Unable to find destination edge to given vertex")}function Ny(a){if(!a.co){for(var y=[],x=bi(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ux),a.co=y}return a.co}function rE(a){if(!a.ao){for(var y=[],x=bi(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ux),a.ao=y}return a.ao}Lu.prototype.Cl=function(a){es.prototype.Cl.call(this,a),this.bo=this.co=null},Lu.prototype.Kl=function(a){es.prototype.Kl.call(this,a),this.bo=this.co=null},Lu.prototype.zl=function(a){es.prototype.zl.call(this,a),this.$n=this.ao=null},Lu.prototype.Jl=function(a){es.prototype.Jl.call(this,a),this.$n=this.ao=null},wn.Object.defineProperties(Lu.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)}}}),Lu.prototype.deleteDestinationEdge=Lu.prototype.Jl,Lu.prototype.addDestinationEdge=Lu.prototype.zl,Lu.prototype.deleteSourceEdge=Lu.prototype.Kl,Lu.prototype.addSourceEdge=Lu.prototype.Cl,Lu.className="LayeredDigraphVertex";function Fp(a){ql.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}$t(Fp,ql),wn.Object.defineProperties(Fp.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)}}}),Fp.className="LayeredDigraphEdge";function zr(a){ua.call(this),this.Ub=new Mn,this.Wn=_0,this.ud=Gc,this.vo=z0,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new En(10,10).freeze();var y=new yf(this);this.W=new Hu(y),this.Y=new Hu(y),this.ru=[],a&&Object.assign(this,a)}$t(zr,ua),zr.prototype.cloneProtected=function(a){ua.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},zr.prototype.qb=function(a){a.classType===zr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:yt("Unknown enum value: "+a):ua.prototype.qb.call(this,a)},zr.prototype.createNetwork=function(){return new yf(this)},zr.prototype.makeNetwork=function(a){function y(E){if(E instanceof vi)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof ei){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Jt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof yr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},zr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==j0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Jt&&(y=a),this.path===_0&&y!==null?this.ud=y.isTreePathToChildren?Gc:mf:this.ud=this.path===_0?Gc: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 Mn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof vi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Hu&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Ly(this,y));for(y=this.network.vertexes,a=null;a=oE(y),0<a.count;)y=cx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hu&&hx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hu&&fx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hu&&gx(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Hy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Mn,this.isValidLayout=!0};function oE(a){var y=new Mn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}zr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Gc:x.sourceEdges.count===0&&this.Ub.add(x);break;case mf:x.destinationEdges.count===0&&this.Ub.add(x);break;default:yt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cx(this,a),a!==null&&this.Ub.add(a))};function cx(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Gc:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case mf:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:yt("Unhandled path value "+a.ud.toString())}}return E}function Ly(a,y){if(y!==null){switch(a.ud){case Gc:if(0<y.destinationEdges.count){for(var x=new Pn,E=y.destinationVertexes;E.next();){var b=E.value;dx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case mf:if(0<y.sourceEdges.count){for(x=new Pn,E=y.sourceVertexes;E.next();)b=E.value,dx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:yt("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Ly(a,x[y])}}function dx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}zr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function hx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Yc&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];hx(a,oe),x+=oe.descendantCount+1,E=Math.max(E,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function aE(a,y){switch(a.vo){default:case z0:return y.parent!==null?y.parent:a.W;case _y:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Fy:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}zr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(aE(this,a)),a.parent!==null&&a.parent.alignment===Yc){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function fx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)fx(a,y[E])}}zr.prototype.assignTreeVertexValues=function(){};function gx(a,y){if(y!==null){y.alignment!==Yc&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)gx(a,y[E])}}zr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case gg:break;case _p:a.children.reverse();break;case Up:a.children.sort(a.comparer);break;case zp:a.children.sort(a.comparer),a.children.reverse();break;default:yt("Unhandled sorting value "+a.sorting.toString())}},zr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},zr.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=sh(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var de=a.node.Mu();de.next();){var fe=de.value;fe.category==="Comment"&&fe.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(fe),fe.Va(),fe=fe.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,fe.width),ee+=fe.height+Math.abs(re)):(z+=fe.width+Math.abs(re),ee=Math.max(ee,fe.height)),re=oe)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=qt.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,qt.free(b))};function sh(a){return a===Nd||a===Yc||a===Ld||a===rd}function Bp(a){return a===Nd||a===Yc}function Iy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(sh(x)){if(Bp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Ld)return!0}}return!1}zr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=sh(z)),E=E===90||E===270,x=b===90||b===270;for(var ee=a.childrenCount===0,re=Iy(a),oe=0,de=a.comments,fe=de.length,Se=qe.alloc(),Ce=0;Ce<fe;Ce++){var Ne=de[Ce],De=Ne.measuredBounds;if(E&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<b&&!z||x&&re)if(0<=a.commentMargin)for(Se.h(a.bounds.x-a.commentMargin-De.width,a.bounds.y+oe),Ne.move(Se),Ne=Ne.Sd();Ne.next();){var Ye=Ne.value;Ye.fromSpot=Wr,Ye.toSpot=Qr}else for(Se.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Ne.move(Se),Ne=Ne.Sd();Ne.next();)Ye=Ne.value,Ye.fromSpot=Qr,Ye.toSpot=Wr;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Ne.move(Se),Ne=Ne.Sd();Ne.next();)Ye=Ne.value,Ye.fromSpot=Qr,Ye.toSpot=Wr;else for(Se.h(a.bounds.x+a.commentMargin-De.width,a.bounds.y+oe),Ne.move(Se),Ne=Ne.Sd();Ne.next();)Ye=Ne.value,Ye.fromSpot=Wr,Ye.toSpot=Qr;oe=0<=a.commentSpacing?oe+(De.height+a.commentSpacing):oe+(a.commentSpacing-De.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(Se.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-De.height),Ne.move(Se),Ne=Ne.Sd();Ne.next();)Ye=Ne.value,Ye.fromSpot=gr,Ye.toSpot=wo;else for(Se.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Ne.move(Se),Ne=Ne.Sd();Ne.next();)Ye=Ne.value,Ye.fromSpot=wo,Ye.toSpot=gr;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Ne.move(Se),Ne=Ne.Sd();Ne.next();)Ye=Ne.value,Ye.fromSpot=wo,Ye.toSpot=gr;else for(Se.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-De.height),Ne.move(Se),Ne=Ne.Sd();Ne.next();)Ye=Ne.value,Ye.fromSpot=gr,Ye.toSpot=wo;oe=0<=a.commentSpacing?oe+(De.width+a.commentSpacing):oe+(a.commentSpacing-De.width)}}if(qe.free(Se),y=oe-a.commentSpacing-(E?y.height:y.width),this.ud===Gc)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},zr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case U0:px(this,a);break;case Hp:if(a.alignment===Yc)px(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=sh(x)),E=Iy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=rc(a);y=b===90||b===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)E=ee[x],z=Math.max(z,y?E.Da.width:E.Da.height);var oe=a.alignment;E=oe===Wc;var de=oe===Vc,fe=sh(oe),Se=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ce=a.nodeSpacing,Ne=this.computeNodeIndent(a),De=a.rowSpacing,Ye=0;(E||de||a.hm||a.im&&a.maxGenerationCount===1)&&(Ye=Math.max(0,a.rowIndent)),E=a.width;var ft=a.height,ut=0,vt=0,St=0,Tt=null,Mt=null,Xt=0,pi=0,Di=0,Ai=0,$n=0,Cn=0,mr=0,ar=0;if(fe&&!Bp(oe)&&135<b&&ee.reverse(),Bp(oe))if(1<re)for(var xo=0;xo<re;xo++)xo%2===0&&xo!==re-1&&(ar=Math.max(ar,y?ee[xo].Da.width:ee[xo].Da.height));else re===1&&(ar=y?ee[0].Da.width:ee[0].Da.height);if(fe){switch(oe){case Nd:vt=135>b?mx(this,a,ee,ar,ut,vt):vx(this,a,ee,ar,ut,vt),ar=vt.x,ut=vt.width,vt=vt.height;break;case Ld:for(Tt=0;Tt<re;Tt++)Mt=ee[Tt],Se=Mt.Da,St=Cn===0?0:De,y?(Mt.S.h(z-Se.width,Ai+St),ut=Math.max(ut,Se.width),vt=Math.max(vt,Ai+St+Se.height),Ai+=St+Se.height):(Mt.S.h(Di+St,z-Se.height),ut=Math.max(ut,Di+St+Se.width),vt=Math.max(vt,Se.height),Di+=St+Se.width),Cn++;break;case rd:for(Tt=0;Tt<re;Tt++)Mt=ee[Tt],z=Mt.Da,Se=Cn===0?0:De,y?(Mt.S.h(Ce/2+a.focus.x,Ai+Se),ut=Math.max(ut,z.width),vt=Math.max(vt,Ai+Se+z.height),Ai+=Se+z.height):(Mt.S.h(Di+Se,Ce/2+a.focus.y),ut=Math.max(ut,Di+Se+z.width),vt=Math.max(vt,z.height),Di+=Se+z.width),Cn++}Tt=Ul(this,2),Mt=Ul(this,2),y?(Tt[0].h(0,0),Tt[1].h(0,vt),Mt[0].h(ut,0)):(Tt[0].h(0,0),Tt[1].h(ut,0),Mt[0].h(0,vt)),Mt[1].h(ut,vt)}else for(xo=0;xo<re;xo++){var Xo=ee[xo],ds=Xo.Da;if(y){0<Se&&0<Cn&&Di+Ce+ds.width>Se&&(Di<z&&zh(a,oe,z-Di,0,mr,xo-1),$n++,Cn=0,mr=xo,St=vt,Di=0,Ai=135<b?-vt-De:vt+De),F0(this,Xo,0,Ai);var ps=0;if(Cn===0)Tt=Xo.Yo,Mt=Xo.kp,Xt=ds.width,pi=ds.height,(Tt===null||Mt===null||b!==rc(Xo))&&(Tt=Ul(this,2),Mt=Ul(this,2),Tt[0].h(0,0),Tt[1].h(0,pi),Mt[0].h(Xt,0),Mt[1].h(Xt,pi));else{var nl=si();pi=yx(this,a,Xo,Tt,Mt,Xt,pi,nl),ps=pi.x,Tt=nl[0],Mt=nl[1],Xt=pi.width,pi=pi.height,oi(nl),Di<ds.width&&0>ps&&(pf(a,-ps,0,mr,xo-1),B0(Tt,-ps,0),B0(Mt,-ps,0),ps=0)}Xo.S.h(ps,Ai),ut=Math.max(ut,Xt),vt=Math.max(vt,St+($n===0?0:De)+ds.height),Di=Xt}else 0<Se&&0<Cn&&Ai+Ce+ds.height>Se&&(Ai<z&&zh(a,oe,0,z-Ai,mr,xo-1),$n++,Cn=0,mr=xo,St=ut,Ai=0,Di=135<b?-ut-De:ut+De),F0(this,Xo,Di,0),ps=0,Cn===0?(Tt=Xo.Yo,Mt=Xo.kp,Xt=ds.width,pi=ds.height,(Tt===null||Mt===null||b!==rc(Xo))&&(Tt=Ul(this,2),Mt=Ul(this,2),Tt[0].h(0,0),Tt[1].h(Xt,0),Mt[0].h(0,pi),Mt[1].h(Xt,pi))):(nl=si(),pi=yx(this,a,Xo,Tt,Mt,Xt,pi,nl),ps=pi.x,Tt=nl[0],Mt=nl[1],Xt=pi.width,pi=pi.height,oi(nl),Ai<ds.height&&0>ps&&(pf(a,0,-ps,mr,xo-1),B0(Tt,0,-ps),B0(Mt,0,-ps),ps=0)),Xo.S.h(Di,ps),vt=Math.max(vt,pi),ut=Math.max(ut,St+($n===0?0:De)+ds.width),Ai=pi;Cn++}switch(0<$n&&(y?(vt+=Math.max(0,x),Di<ut&&zh(a,oe,ut-Di,0,mr,re-1),0<Ye&&(de||pf(a,Ye,0,0,re-1),ut+=Ye)):(ut+=Math.max(0,x),Ai<vt&&zh(a,oe,0,vt-Ai,mr,re-1),0<Ye&&(de||pf(a,0,Ye,0,re-1),vt+=Ye))),Ye=de=0,oe){case pg:y?de+=ut/2-a.focus.x-Ne/2:Ye+=vt/2-a.focus.y-Ne/2;break;case vf:0<$n?y?de+=ut/2-a.focus.x-Ne/2:Ye+=vt/2-a.focus.y-Ne/2:y?(ar=ee[0].S.x+ee[0].la.x,de+=ar+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-ar)/2-a.focus.x-Ne/2):(ar=ee[0].S.y+ee[0].la.y,Ye+=ar+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-ar)/2-a.focus.y-Ne/2);break;case Wc:y?(de-=Ne,ut+=Ne):(Ye-=Ne,vt+=Ne);break;case Vc:y?(de+=ut-a.width+Ne,ut+=Ne):(Ye+=vt-a.height+Ne,vt+=Ne);break;case Nd:y?1<re?de+=ar+Ce/2-a.focus.x:de+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Ye+=ar+Ce/2-a.focus.y:Ye+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Ld:y?de+=ut+Ce/2-a.focus.x:Ye+=vt+Ce/2-a.focus.y;break;case rd:break;default:vt=this.customAlignment(a,de,Ye,ut,vt),de=vt[0],Ye=vt[1],ut=vt[2],vt=vt[3]}for(Ne=0;Ne<re;Ne++)ar=ee[Ne],y?ar.S.h(ar.S.x+ar.la.x-de,ar.S.y+(135<b?(fe?-vt:-ar.Da.height)+ar.la.y-x:ft+x+ar.la.y)):ar.S.h(ar.S.x+(135<b?(fe?-ut:-ar.Da.width)+ar.la.x-x:E+x+ar.la.x),ar.S.y+ar.la.y-Ye);if(re=ee=0,fe?y?(ut=My(a,ut,de),0>de&&(de=0),135<b&&(Ye+=vt+x),vt+=ft+x,oe===rd&&(ee+=Ce/2+a.focus.x),re+=ft+x):(135<b&&(de+=ut+x),ut+=E+x,vt=Ry(a,vt,Ye),0>Ye&&(Ye=0),oe===rd&&(re+=Ce/2+a.focus.y),ee+=E+x):y?(a.comments===null?E>ut&&(ut=Oy(oe,E-ut,0),ee=ut.x,re=ut.y,ut=E,de=0):ut=My(a,ut,de),0>de&&(ee-=de,de=0),135<b&&(Ye+=vt+x),vt=Math.max(Math.max(vt,ft),vt+ft+x),re+=ft+x):(135<b&&(de+=ut+x),ut=Math.max(Math.max(ut,E),ut+E+x),a.comments===null?ft>vt&&(vt=Oy(oe,0,ft-vt),ee=vt.x,re=vt.y,vt=ft,Ye=0):vt=Ry(a,vt,Ye),0>Ye&&(re-=Ye,Ye=0),ee+=E+x),0<$n)b=Ul(this,4),$n=Ul(this,4),y?(b[2].h(0,ft+x),b[3].h(b[2].x,vt),$n[2].h(ut,b[2].y),$n[3].h($n[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(ut,b[2].y),$n[2].h(b[2].x,vt),$n[3].h(b[3].x,$n[2].y));else{for(b=Ul(this,Tt.length+2),$n=Ul(this,Mt.length+2),oe=0;oe<Tt.length;oe++)fe=Tt[oe],b[oe+2].h(fe.x+ee,fe.y+re);for(oe=0;oe<Mt.length;oe++)fe=Mt[oe],$n[oe+2].h(fe.x+ee,fe.y+re)}y?(b[0].h(de,0),b[1].h(b[0].x,ft),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),$n[0].h(de+E,0),$n[1].h($n[0].x,ft),$n[2].y<$n[1].y&&($n[2].x<$n[0].x?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].y<$n[2].y&&($n[3].x<$n[0].x?$n[3].assign($n[2]):$n[2].assign($n[3])),b[2].y-=x/2,$n[2].y-=x/2):(b[0].h(0,Ye),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),$n[0].h(0,Ye+ft),$n[1].h(E,$n[0].y),$n[2].x<$n[1].x&&($n[2].y<$n[0].y?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].x<$n[2].x&&($n[3].y<$n[0].y?$n[3].assign($n[2]):$n[2].assign($n[3])),b[2].x-=x/2,$n[2].x-=x/2),gc(this,Tt),gc(this,Mt),a.Yo=b,a.kp=$n,a.la.h(de,Ye),a.Da.h(ut,vt)}break;default:yt("Unhandled compaction value "+a.compaction.toString())}}};function px(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=sh(x));var b=Iy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=rc(y),x=E===90||E===270;var z=0;b=y.children;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var de=y.alignment,fe=de===Wc,Se=de===Vc;re=sh(de);var Ce=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Ne=y.nodeSpacing,De=a.computeNodeIndent(y),Ye=fe||Se?0:De/2,ft=y.rowSpacing,ut=0;(fe||Se||y.hm||y.im&&y.maxGenerationCount===1)&&(ut=Math.max(0,y.rowIndent)),fe=y.width;var vt=y.height,St=0,Tt=0,Mt=0,Xt=0,pi=0,Di=0,Ai=0,$n=0,Cn=0,mr=0;if(re&&!Bp(de)&&135<E&&b.reverse(),Bp(de))if(1<ee)for(var ar=0;ar<ee;ar++){var xo=b[ar],Xo=xo.Da;ar%2===0&&ar!==ee-1?Cn=Math.max(Cn,(x?Xo.width:Xo.height)+a.computeBusNodeSpacing(xo)-Ne):ar%2!==0&&(mr=Math.max(mr,(x?Xo.width:Xo.height)+a.computeBusNodeSpacing(xo)-Ne))}else ee===1&&(Cn=x?b[0].Da.width:b[0].Da.height);if(re)switch(de){case Nd:case Yc:Tt=135>E?mx(a,y,b,Cn,St,Tt):vx(a,y,b,Cn,St,Tt),Cn=Tt.x,St=Tt.width,Tt=Tt.height;break;case Ld:for(Ce=0;Ce<ee;Ce++)Ye=b[Ce],Mt=Ye.Da,mr=Ai===0?0:ft,x?(Ye.S.h(z-Mt.width,pi+mr),St=Math.max(St,Mt.width),Tt=Math.max(Tt,pi+mr+Mt.height),pi+=mr+Mt.height):(Ye.S.h(Xt+mr,z-Mt.height),St=Math.max(St,Xt+mr+Mt.width),Tt=Math.max(Tt,Mt.height),Xt+=mr+Mt.width),Ai++;break;case rd:for(z=0;z<ee;z++)Ce=b[z],Ye=Ce.Da,Mt=Ai===0?0:ft,x?(Ce.S.h(Ne/2+y.focus.x,pi+Mt),St=Math.max(St,Ye.width),Tt=Math.max(Tt,pi+Mt+Ye.height),pi+=Mt+Ye.height):(Ce.S.h(Xt+Mt,Ne/2+y.focus.y),St=Math.max(St,Xt+Mt+Ye.width),Tt=Math.max(Tt,Ye.height),Xt+=Mt+Ye.width),Ai++}else for(mr=0;mr<ee;mr++)ar=b[mr],xo=ar.Da,x?(0<Ce&&0<Ai&&Xt+Ne+xo.width>Ce&&(Xt<z&&zh(y,de,z-Xt,0,$n,mr-1),Di++,Ai=0,$n=mr,Mt=Tt,Xt=0,pi=135<E?-Tt-ft:Tt+ft),Xo=Ai===0?Ye:Ne,F0(a,ar,0,pi),ar.S.h(Xt+Xo,pi),St=Math.max(St,Xt+Xo+xo.width),Tt=Math.max(Tt,Mt+(Di===0?0:ft)+xo.height),Xt+=Xo+xo.width):(0<Ce&&0<Ai&&pi+Ne+xo.height>Ce&&(pi<z&&zh(y,de,0,z-pi,$n,mr-1),Di++,Ai=0,$n=mr,Mt=St,pi=0,Xt=135<E?-St-ft:St+ft),Xo=Ai===0?Ye:Ne,F0(a,ar,Xt,0),ar.S.h(Xt,pi+Xo),Tt=Math.max(Tt,pi+Xo+xo.height),St=Math.max(St,Mt+(Di===0?0:ft)+xo.width),pi+=Xo+xo.height),Ai++;switch(0<Di&&(x?(Tt+=Math.max(0,oe),Xt<St&&zh(y,de,St-Xt,0,$n,ee-1),0<ut&&(Se||pf(y,ut,0,0,ee-1),St+=ut)):(St+=Math.max(0,oe),pi<Tt&&zh(y,de,0,Tt-pi,$n,ee-1),0<ut&&(Se||pf(y,0,ut,0,ee-1),Tt+=ut))),ut=Se=0,de){case pg:x?Se+=St/2-y.focus.x-De/2:ut+=Tt/2-y.focus.y-De/2;break;case vf:0<Di?x?Se+=St/2-y.focus.x-De/2:ut+=Tt/2-y.focus.y-De/2:x?(a=b[0].S.x+b[0].la.x,Se+=a+(b[ee-1].S.x+b[ee-1].la.x+2*b[ee-1].focus.x-a)/2-y.focus.x-De/2):(a=b[0].S.y+b[0].la.y,ut+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-De/2);break;case Wc:x?(Se-=De,St+=De):(ut-=De,Tt+=De);break;case Vc:x?(Se+=St-y.width+De,St+=De):(ut+=Tt-y.height+De,Tt+=De);break;case Nd:case Yc:x?1<ee?Se+=Cn+Ne/2-y.focus.x:Se+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?ut+=Cn+Ne/2-y.focus.y:ut+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Ld:x?Se+=St+Ne/2-y.focus.x:ut+=Tt+Ne/2-y.focus.y;break;case rd:break;default:a=a.customAlignment(y,Se,ut,St,Tt),Se=a[0],ut=a[1],St=a[2],Tt=a[3]}for(a=0;a<ee;a++)De=b[a],x?De.S.h(De.S.x+De.la.x-Se,De.S.y+(135<E?(re?-Tt:-De.Da.height)+De.la.y-oe:vt+oe+De.la.y)):De.S.h(De.S.x+(135<E?(re?-St:-De.Da.width)+De.la.x-oe:fe+oe+De.la.x),De.S.y+De.la.y-ut);x?(St=My(y,St,Se),0>Se&&(Se=0),135<E&&(ut+=Tt+oe),Tt=Math.max(Math.max(Tt,vt),Tt+vt+oe)):(135<E&&(Se+=St+oe),St=Math.max(Math.max(St,fe),St+fe+oe),Tt=Ry(y,Tt,ut),0>ut&&(ut=0)),y.la.h(Se,ut),y.Da.h(St,Tt)}}zr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function mx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new qt(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new qt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,de=rc(y)===90,fe=0,Se=0,Ce=0,Ne=0;Ne<ee;Ne++)if(!(Ne%2!==0||1<ee&&Ne===ee-1)){var De=x[Ne],Ye=De.Da,ft=fe===0?0:oe;if(de){var ut=a.computeBusNodeSpacing(De)-re;De.S.h(E-(Ye.width+ut),Ce+ft),b=Math.max(b,Ye.width+ut),z=Math.max(z,Ce+ft+Ye.height),Ce+=ft+Ye.height}else ut=a.computeBusNodeSpacing(De)-re,De.S.h(Se+ft,E-(Ye.height+ut)),z=Math.max(z,Ye.height+ut),b=Math.max(b,Se+ft+Ye.width),Se+=ft+Ye.width;fe++}for(fe=0,De=Se,Ne=Ce,de?(Se=E+re,Ce=0):(Se=0,Ce=E+re),Ye=0;Ye<ee;Ye++)if(Ye%2!==0){ft=x[Ye],ut=ft.Da;var vt=fe===0?0:oe;if(de){var St=a.computeBusNodeSpacing(ft)-re;ft.S.h(Se+St,Ce+vt),b=Math.max(b,Se+ut.width+St),z=Math.max(z,Ce+vt+ut.height),Ce+=vt+ut.height}else St=a.computeBusNodeSpacing(ft)-re,ft.S.h(Se+vt,Ce+St),b=Math.max(b,Se+vt+ut.width),z=Math.max(z,Ce+ut.height+St),Se+=vt+ut.width;fe++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,de?Math.max(Math.abs(Ne),Math.abs(Ce)):Math.max(Math.abs(De),Math.abs(Se))),de?(x.S.h(E+re/2-x.focus.x-x.la.x,z+a),de=E+re/2-x.focus.x-x.la.x,b=Math.max(b,de+ee.width),0>de&&(b-=de),z=Math.max(z,Math.max(Ne,Ce)+a+ee.height),0>x.S.x&&(E=D0(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(De,Se)+a+ee.width),Ce=E+re/2-x.focus.y-x.la.y,z=Math.max(z,Ce+ee.height),0>Ce&&(z-=Ce),0>x.S.y&&(E=D0(y,x.S.y,!0,E,re)))),new qt(E,0,b,z)}function vx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new qt(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new qt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,de=rc(y)===270,fe=0,Se=0,Ce=0,Ne=0;Ne<ee;Ne++)if(!(Ne%2!==0||1<ee&&Ne===ee-1)){var De=x[Ne],Ye=De.Da,ft=fe===0?0:oe;if(de){var ut=a.computeBusNodeSpacing(De)-re;Ce-=ft+Ye.height,De.S.h(E-(Ye.width+ut),Ce),b=Math.max(b,Ye.width+ut),z=Math.max(z,Math.abs(Ce))}else ut=a.computeBusNodeSpacing(De)-re,Se-=ft+Ye.width,De.S.h(Se,E-(Ye.height+ut)),z=Math.max(z,Ye.height+ut),b=Math.max(b,Math.abs(Se));fe++}for(fe=0,De=Se,Ne=Ce,de?(Se=E+re,Ce=0):(Se=0,Ce=E+re),Ye=0;Ye<ee;Ye++)if(Ye%2!==0){ft=x[Ye],ut=ft.Da;var vt=fe===0?0:oe;if(de){var St=a.computeBusNodeSpacing(ft)-re;Ce-=vt+ut.height,ft.S.h(Se+St,Ce),b=Math.max(b,Se+ut.width+St),z=Math.max(z,Math.abs(Ce))}else St=a.computeBusNodeSpacing(ft)-re,Se-=vt+ut.width,ft.S.h(Se,Ce+St),z=Math.max(z,Ce+ut.height+St),b=Math.max(b,Math.abs(Se));fe++}for(1<ee&&ee%2===1&&(oe=x[ee-1],fe=oe.Da,a=a.computeBusLastRowSpacing(oe,de?Math.max(Math.abs(Ne),Math.abs(Ce)):Math.max(Math.abs(De),Math.abs(Se))),de?(oe.S.h(E+re/2-oe.focus.x-oe.la.x,-z-fe.height-a),Se=E+re/2-oe.focus.x-oe.la.x,b=Math.max(b,Se+fe.width),0>Se&&(b-=Se),z=Math.max(z,Math.abs(Math.min(Ne,Ce))+a+fe.height),0>oe.S.x&&(E=D0(y,oe.S.x,!1,E,re))):(oe.S.h(-b-fe.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(De,Se))+a+fe.width),Ce=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Ce+fe.height),0>Ce&&(z-=Ce),0>oe.S.y&&(E=D0(y,oe.S.y,!0,E,re)))),y=0;y<ee;y++)re=x[y],de?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new qt(E,0,b,z)}zr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},zr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function D0(a,y,x,E,b){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function My(a,y,x){switch(a.alignment){case vf:case pg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Wc:return a.width>y?a.width:y;case Vc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Nd:case Yc:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ld:return a.width-a.focus.x+a.nodeSpacing/2+y;case rd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ry(a,y,x){switch(a.alignment){case vf:case pg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Wc:return a.height>y?a.height:y;case Vc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Nd:case Yc:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ld:return a.height-a.focus.y+a.nodeSpacing/2+y;case rd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case pg:y/=2,x/=2;break;case vf:y/=2,x/=2;break;case Wc:x=y=0;break;case Vc:break;default:yt("Unhandled alignment value "+a.toString())}return new qe(y,x)}function zh(a,y,x,E,b,z){y=Oy(y,x,E),pf(a,y.x,y.y,b,z)}function pf(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function F0(a,y,x,E){var b=y.parent;switch(a.ud){case Gc:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case mf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:yt("Unhandled path value "+a.ud.toString())}}function B0(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function yx(a,y,x,E,b,z,ee,re){var oe=rc(y),de=oe===90||oe===270,fe=y.nodeSpacing;y=E;var Se=b;E=z;var Ce=ee,Ne=x.Yo,De=x.kp;ee=x.Da;var Ye=de?Math.max(Ce,ee.height):Math.max(E,ee.width);if((Ne===null||oe!==rc(x))&&(Ne=Ul(a,2),De=Ul(a,2),de?(Ne[0].h(0,0),Ne[1].h(0,ee.height),De[0].h(ee.width,0),De[1].h(De[0].x,Ne[1].y)):(Ne[0].h(0,0),Ne[1].h(ee.width,0),De[0].h(0,ee.height),De[1].h(Ne[1].x,De[0].y))),de){if(Ce=9999999,!(Se===null||2>Se.length||Ne===null||2>Ne.length))for(b=x=0;x<Se.length&&b<Ne.length;){z=Se[x];var ft=Ne[b];oe=ft.x,de=ft.y,oe+=E;var ut=z;x+1<Se.length&&(ut=Se[x+1]);var vt=ft;ft=vt.x,vt=vt.y,b+1<Ne.length&&(vt=Ne[b+1],ft=vt.x,vt=vt.y,ft+=E);var St=Ce;z.y===de?St=oe-z.x:z.y>de&&z.y<vt?St=oe+(z.y-de)/(vt-de)*(ft-oe)-z.x:de>z.y&&de<ut.y&&(St=oe-(z.x+(de-z.y)/(ut.y-z.y)*(ut.x-z.x))),St<Ce&&(Ce=St),ut.y<=z.y?x++:vt<=de?b++:(ut.y<=vt&&x++,vt<=ut.y&&b++)}if(Ce=E-Ce,Ce+=fe,x=Ne,b=Ce,y===null||2>y.length||x===null||2>x.length)E=null;else{for(fe=Ul(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].y<y[0].y;)de=x[z++],fe[E++].h(de.x+b,de.y);for(;oe<y.length;)de=y[oe++],fe[E++].h(de.x,de.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)de=x[z++],fe[E++].h(de.x+b,de.y);for(x=Ul(a,E),oe=0;oe<E;oe++)x[oe].assign(fe[oe]);gc(a,fe),E=x}if(z=De,oe=Ce,Se===null||2>Se.length||z===null||2>z.length)b=null;else{for(fe=Ul(a,Se.length+z.length),b=de=x=0;x<Se.length&&Se[x].y<z[0].y;)ut=Se[x++],fe[b++].h(ut.x,ut.y);for(;de<z.length;)ut=z[de++],fe[b++].h(ut.x+oe,ut.y);for(z=z[z.length-1].y;x<Se.length&&Se[x].y<=z;)x++;for(;x<Se.length&&Se[x].y>z;)oe=Se[x++],fe[b++].h(oe.x,oe.y);for(z=Ul(a,b),x=0;x<b;x++)z[x].assign(fe[x]);gc(a,fe),b=z}return z=Math.max(0,Ce)+ee.width,ee=Ye,gc(a,y),gc(a,Ne),gc(a,Se),gc(a,De),re[0]=E,re[1]=b,new qt(Ce,0,z,ee)}if(E=9999999,!(Se===null||2>Se.length||Ne===null||2>Ne.length))for(b=x=0;x<Se.length&&b<Ne.length;)z=Se[x],ft=Ne[b],oe=ft.x,de=ft.y,de+=Ce,ut=z,x+1<Se.length&&(ut=Se[x+1]),vt=ft,ft=vt.x,vt=vt.y,b+1<Ne.length&&(vt=Ne[b+1],ft=vt.x,vt=vt.y,vt+=Ce),St=E,z.x===oe?St=de-z.y:z.x>oe&&z.x<ft?St=de+(z.x-oe)/(ft-oe)*(vt-de)-z.y:oe>z.x&&oe<ut.x&&(St=de-(z.y+(oe-z.x)/(ut.x-z.x)*(ut.y-z.y))),St<E&&(E=St),ut.x<=z.x?x++:ft<=oe?b++:(ut.x<=ft&&x++,ft<=ut.x&&b++);if(Ce-=E,Ce+=fe,x=Ne,b=Ce,y===null||2>y.length||x===null||2>x.length)E=null;else{for(fe=Ul(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].x<y[0].x;)de=x[z++],fe[E++].h(de.x,de.y+b);for(;oe<y.length;)de=y[oe++],fe[E++].h(de.x,de.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)de=x[z++],fe[E++].h(de.x,de.y+b);for(x=Ul(a,E),oe=0;oe<E;oe++)x[oe].assign(fe[oe]);gc(a,fe),E=x}if(z=De,oe=Ce,Se===null||2>Se.length||z===null||2>z.length)b=null;else{for(fe=Ul(a,Se.length+z.length),b=de=x=0;x<Se.length&&Se[x].x<z[0].x;)ut=Se[x++],fe[b++].h(ut.x,ut.y);for(;de<z.length;)ut=z[de++],fe[b++].h(ut.x,ut.y+oe);for(z=z[z.length-1].x;x<Se.length&&Se[x].x<=z;)x++;for(;x<Se.length&&Se[x].x>z;)oe=Se[x++],fe[b++].h(oe.x,oe.y);for(z=Ul(a,b),x=0;x<b;x++)z[x].assign(fe[x]);gc(a,fe),b=z}return z=Ye,ee=Math.max(0,Ce)+ee.height,gc(a,y),gc(a,Ne),gc(a,Se),gc(a,De),re[0]=E,re[1]=b,new qt(Ce,0,z,ee)}function Ul(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 qe;return a}function gc(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}zr.prototype.arrangeTrees=function(){if(this.Rb===j0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Hu){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),Dy(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Hu&&a.push(x);switch(this.sorting){case gg:break;case _p:a.reverse();break;case Up:a.sort(this.comparer);break;case zp:a.sort(this.comparer),a.reverse();break;default:yt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(Dy(this,b,y+b.la.x,x+b.la.y),this.Rb){case H0:x+=b.Da.height+this.$d.height;break;case Uy:y+=b.Da.width+this.$d.width;break;default:yt("Unhandled arrangement value "+this.Rb.toString())}}}};function Dy(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var ee=y[z];Dy(a,ee,x+ee.S.x,E+ee.S.y)}}}zr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},zr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},zr.prototype.Gu=function(){if(this.layerStyle===G0){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new qe(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new qe(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,b.push(new qt(0,z,x,re))):this.angle===90?(b.push(new qt(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new qt(z,0,re,x))):(b.push(new qt(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},zr.prototype.commitLayers=function(){},zr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},zr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Hu&&Sx(this,y)}};function Sx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)Sx(a,y[E])}}zr.prototype.setPortSpots=function(a){var y=a.alignment;if(sh(y)){var x=this.ud===Gc,E=rc(a);switch(E){case 0:var b=Qr;break;case 90:b=wo;break;case 180:b=Wr;break;default:b=gr}var z=a.children,ee=z.length;switch(y){case Nd:case Yc:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=E===90||E===270?Wr:gr;if(ee===1||y===ee-1&&ee%2===1)switch(E){case 0:oe=Wr;break;case 90:oe=gr;break;case 180:oe=Qr;break;default:oe=wo}else y%2===0&&(oe=E===90||E===270?Qr:wo);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Ld:for(E=E===90||E===270?Qr:wo,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)));break;case rd:for(E=E===90||E===270?Wr:gr,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)))}}else if(x=rc(a),this.ud===Gc){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=Qr;break;case 90:E.fromSpot=wo;break;case 180:E.fromSpot=Wr;break;default:E.fromSpot=gr}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Wr;break;case 90:E.toSpot=gr;break;case 180:E.toSpot=Qr;break;default:E.toSpot=wo}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=Qr;break;case 90:E.toSpot=wo;break;case 180:E.toSpot=Wr;break;default:E.toSpot=gr}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Wr;break;case 90:E.fromSpot=gr;break;case 180:E.fromSpot=Qr;break;default:E.fromSpot=wo}else E.fromSpot=a.childPortSpot}};function rc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}zr.prototype.computeLayerSpacing=function(a){var y=rc(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},zr.prototype.computeNodeIndent=function(a){var y=rc(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},wn.Object.defineProperties(zr.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==z0&&a!==By&&a!==Fy&&a!==_y||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==zy&&a!==Hy&&a!==G0||(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!==H0&&a!==Uy&&a!==j0||(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!==gg&&a!==_p&&a!==Up&&!zp||(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()):yt("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!==U0&&a!==Hp||(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!==gg&&a!==_p&&a!==Up&&!zp||(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!==U0&&a!==Hp||(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 _0=new Gt(zr,"PathDefault",-1),Gc=new Gt(zr,"PathDestination",0),mf=new Gt(zr,"PathSource",1),gg=new Gt(zr,"SortingForwards",10),_p=new Gt(zr,"SortingReverse",11),Up=new Gt(zr,"SortingAscending",12),zp=new Gt(zr,"SortingDescending",13),pg=new Gt(zr,"AlignmentCenterSubtrees",20),vf=new Gt(zr,"AlignmentCenterChildren",21),Wc=new Gt(zr,"AlignmentStart",22),Vc=new Gt(zr,"AlignmentEnd",23),Nd=new Gt(zr,"AlignmentBus",24),Yc=new Gt(zr,"AlignmentBusBranching",25),Ld=new Gt(zr,"AlignmentTopLeftBus",26),rd=new Gt(zr,"AlignmentBottomRightBus",27),U0=new Gt(zr,"CompactionNone",30),Hp=new Gt(zr,"CompactionBlock",31),z0=new Gt(zr,"StyleLayered",40),Fy=new Gt(zr,"StyleLastParents",41),By=new Gt(zr,"StyleAlternating",42),_y=new Gt(zr,"StyleRootOnly",43),H0=new Gt(zr,"ArrangementVertical",50),Uy=new Gt(zr,"ArrangementHorizontal",51),j0=new Gt(zr,"ArrangementFixedRoots",52),zy=new Gt(zr,"LayerIndividual",60),Hy=new Gt(zr,"LayerSiblings",61),G0=new Gt(zr,"LayerUniform",62);zr.className="TreeLayout",zr.PathDefault=_0,zr.PathDestination=Gc,zr.PathSource=mf,zr.SortingForwards=gg,zr.SortingReverse=_p,zr.SortingAscending=Up,zr.SortingDescending=zp,zr.AlignmentCenterSubtrees=pg,zr.AlignmentCenterChildren=vf,zr.AlignmentStart=Wc,zr.AlignmentEnd=Vc,zr.AlignmentBus=Nd,zr.AlignmentBusBranching=Yc,zr.AlignmentTopLeftBus=Ld,zr.AlignmentBottomRightBus=rd,zr.CompactionNone=U0,zr.CompactionBlock=Hp,zr.StyleLayered=z0,zr.StyleLastParents=Fy,zr.StyleAlternating=By,zr.StyleRootOnly=_y,zr.ArrangementVertical=H0,zr.ArrangementHorizontal=Uy,zr.ArrangementFixedRoots=j0,zr.LayerIndividual=zy,zr.LayerSiblings=Hy,zr.LayerUniform=G0;function yf(a){Jo.call(this,a)}$t(yf,Jo),yf.prototype.createVertex=function(){return new Hu(this)},yf.prototype.createEdge=function(){return new mg(this)},yf.className="TreeNetwork";function Hu(a){es.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 qe(0,0),this.Da=new En(0,0),this.la=new qe(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=gg,this.hd=sy,this.Kb=0,this.Jb=vf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Hp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ka,this.wr=!0,this.Dp=ka}$t(Hu,es),Hu.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)},wn.Object.defineProperties(Hu.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)}}}),Hu.className="TreeVertex";function mg(a){ql.call(this,a),this.$t=new qe(0,0)}$t(mg,ql),mg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case Gc:x=this.fromVertex,E=this.toVertex;break;case mf:x=this.toVertex,E=this.fromVertex;break;default:yt("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=rc(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===pu,de=a.isOrthogonal,fe;if(a.uh(),de||oe){for(fe=2;4<a.pointsCount;)a.pv(2);var Se=a.i(1),Ce=a.i(2)}else{for(fe=1;3<a.pointsCount;)a.pv(1);Se=a.i(0),Ce=a.i(a.pointsCount-1)}var Ne=a.i(a.pointsCount-1);z===0?(x.alignment===Vc?(z=E.bottom+b.y,b.y===0&&Se.y>Ne.y+x.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=E.top+b.y,b.y===0&&Se.y<Ne.y-x.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(fe,Se.x,z),fe++,a.m(fe,E.right+ee,z),fe++,a.m(fe,E.right+ee+(b.x-re)/3,z),fe++,a.m(fe,E.right+ee+2*(b.x-re)/3,z),fe++,a.m(fe,E.right+ee+(b.x-re),z),fe++,a.m(fe,Ce.x,z)):(de&&(a.m(fe,E.right+ee/2,Se.y),fe++),a.m(fe,E.right+ee/2,z),fe++,a.m(fe,E.right+ee+b.x-(de?re/2:re),z),fe++,de&&a.m(fe,a.i(fe-1).x,Ce.y))):z===90?(x.alignment===Vc?(z=E.right+b.x,b.x===0&&Se.x>Ne.x+x.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=E.left+b.x,b.x===0&&Se.x<Ne.x-x.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(fe,z,Se.y),fe++,a.m(fe,z,E.bottom+ee),fe++,a.m(fe,z,E.bottom+ee+(b.y-re)/3),fe++,a.m(fe,z,E.bottom+ee+2*(b.y-re)/3),fe++,a.m(fe,z,E.bottom+ee+(b.y-re)),fe++,a.m(fe,z,Ce.y)):(de&&(a.m(fe,Se.x,E.bottom+ee/2),fe++),a.m(fe,z,E.bottom+ee/2),fe++,a.m(fe,z,E.bottom+ee+b.y-(de?re/2:re)),fe++,de&&a.m(fe,Ce.x,a.i(fe-1).y))):z===180?(x.alignment===Vc?(z=E.bottom+b.y,b.y===0&&Se.y>Ne.y+x.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=E.top+b.y,b.y===0&&Se.y<Ne.y-x.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(fe,Se.x,z),fe++,a.m(fe,E.left-ee,z),fe++,a.m(fe,E.left-ee+(b.x+re)/3,z),fe++,a.m(fe,E.left-ee+2*(b.x+re)/3,z),fe++,a.m(fe,E.left-ee+(b.x+re),z),fe++,a.m(fe,Ce.x,z)):(de&&(a.m(fe,E.left-ee/2,Se.y),fe++),a.m(fe,E.left-ee/2,z),fe++,a.m(fe,E.left-ee+b.x+(de?re/2:re),z),fe++,de&&a.m(fe,a.i(fe-1).x,Ce.y))):z===270?(x.alignment===Vc?(z=E.right+b.x,b.x===0&&Se.x>Ne.x+x.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=E.left+b.x,b.x===0&&Se.x<Ne.x-x.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(fe,z,Se.y),fe++,a.m(fe,z,E.top-ee),fe++,a.m(fe,z,E.top-ee+(b.y+re)/3),fe++,a.m(fe,z,E.top-ee+2*(b.y+re)/3),fe++,a.m(fe,z,E.top-ee+(b.y+re)),fe++,a.m(fe,z,Ce.y)):(de&&(a.m(fe,Se.x,E.top-ee/2),fe++),a.m(fe,z,E.top-ee/2),fe++,a.m(fe,z,E.top-ee+b.y+(de?re/2:re)),fe++,de&&a.m(fe,Ce.x,a.i(fe-1).y))):yt("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=rc(x),y!==rc(b)&&(ee=E.computeLayerSpacing(x),re=x.bounds,x=b.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===pu,b=a.isOrthogonal,E=sh(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},wn.Object.defineProperties(mg.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)}}}),mg.className="TreeEdge",Vo.prototype.initializeStandardTools=function(){this.gb("Action",new Sn,this.mouseDownTools),this.gb("Relinking",new al,this.mouseDownTools),this.gb("LinkReshaping",new He,this.mouseDownTools),this.gb("Rotating",new Dn,this.mouseDownTools),this.gb("Resizing",new Zt,this.mouseDownTools),this.gb("Linking",new zs,this.mouseMoveTools),this.gb("Dragging",new Zo,this.mouseMoveTools),this.gb("DragSelecting",new ri,this.mouseMoveTools),this.gb("Panning",new bn,this.mouseMoveTools),this.gb("ContextMenu",new jo,this.mouseUpTools),this.gb("TextEditing",new $r,this.mouseUpTools),this.gb("ClickCreating",new hi,this.mouseUpTools),this.gb("ClickSelecting",new zn,this.mouseUpTools)},Cc("Horizontal",new ym),Cc("Spot",new xm),Cc("Table",new bm),Cc("Viewbox",new Tm),Cc("TableRow",new wm),Cc("TableColumn",new Cm),Cc("Graduated",new ip),Cc("Grid",new np),Uf.add("GraphLinksModel",gs),Uf.add("TreeModel",ku);var W0=mn.go,jy={get licenseKey(){return Jt.licenseKey},set licenseKey(a){Jt.licenseKey=a},get version(){return Jt.version},Group:yr,EnumValue:Gt,List:Pn,Set:Mn,Map:Yt,Point:qe,Size:En,Rect:qt,Margin:xr,Spot:Pi,Geometry:Wn,PathFigure:wa,PathSegment:qr,InputEvent:ss,DiagramEvent:yu,ChangedEvent:ta,Model:zi,GraphLinksModel:Jr,TreeModel:ml,Binding:Ha,Transaction:Ma,UndoManager:zo,CommandHandler:ht,Tool:Zr,DraggingTool:Zo,DraggingInfo:qc,DraggingOptions:ae,LinkingBaseTool:pa,LinkingTool:zs,RelinkingTool:al,LinkReshapingTool:He,ResizingTool:Zt,RotatingTool:Dn,ClickSelectingTool:zn,ActionTool:Sn,ClickCreatingTool:hi,HTMLInfo:no,ContextMenuTool:jo,DragSelectingTool:ri,PanningTool:bn,TextEditingTool:$r,ToolManager:Vo,Animation:Ei,AnimationManager:Fs,AnimationTrigger:Tl,Layer:Ss,Diagram:Jt,Palette:ve,Overview:xe,Brush:ko,GraphObject:Dt,Panel:Yn,RowColumnDefinition:Qa,Shape:kr,TextBlock:Qo,Picture:Ll,Part:Qi,Adornment:so,Node:vi,Link:ei,Placeholder:hl,Layout:ua,LayoutNetwork:Jo,LayoutVertex:es,LayoutEdge:ql,GridLayout:Ps,PanelLayout:$a,CircularLayout:ma,CircularNetwork:dg,CircularVertex:Ip,CircularEdge:C0,ForceDirectedLayout:_s,ForceDirectedNetwork:gf,ForceDirectedVertex:Mp,ForceDirectedEdge:Rp,LayeredDigraphLayout:Mo,LayeredDigraphNetwork:fg,LayeredDigraphVertex:Lu,LayeredDigraphEdge:Fp,TreeLayout:zr,TreeNetwork:yf,TreeVertex:Hu,TreeEdge:mg};typeof W0=="object"&&W0.version&&ii("WARNING: a `go` object on the root object is already defined. "+("Debug"in W0?"debug ":"")+"version: "+W0.version+", replaced with version: "+jy.version),Jt.prototype.go=jy,mn.go=jy,typeof Re.exports=="object"&&(Re.exports=typeof le.g!="undefined"?le.g.go:self.go)}();var ce=typeof le.g!="undefined"?le.g.go:self.go;const Pe=typeof le.g!="undefined"?le.g.go:self.go,Me=Pe.Group,Ie=Pe.EnumValue,je=Pe.List,Te=Pe.Set,Ge=Pe.Map,st=Pe.Point,Qe=Pe.Size,We=Pe.Rect,mt=Pe.Margin,it=Pe.Spot,kt=Pe.Geometry,Fe=Pe.PathFigure,ne=Pe.PathSegment,te=Pe.InputEvent,he=Pe.DiagramEvent,se=Pe.ChangedEvent,ge=Pe.Model,ye=Pe.GraphLinksModel,be=Pe.TreeModel,Ae=Pe.Binding,Le=Pe.Transaction,Ve=Pe.UndoManager,et=Pe.CommandHandler,Je=Pe.Tool,rt=Pe.DraggingTool,at=Pe.DraggingInfo,tt=Pe.LinkingBaseTool,Et=Pe.LinkingTool,Lt=Pe.RelinkingTool,Ut=Pe.LinkReshapingTool,on=Pe.ResizingTool,an=Pe.RotatingTool,Kt=Pe.ClickSelectingTool,fn=Pe.ActionTool,bt=Pe.ClickCreatingTool,dt=Pe.HTMLInfo,ct=Pe.ContextMenuTool,Qt=Pe.DragSelectingTool,un=Pe.PanningTool,Nt=Pe.TextEditingTool,hn=Pe.ToolManager,cn=Pe.Animation,Qn=Pe.AnimationManager,Bt=Pe.AnimationTrigger,Pt=Pe.Layer,Wt=Pe.Diagram,An=Pe.Palette,Nn=Pe.Overview,$e=Pe.Brush,Oe=Pe.GraphObject,ke=Pe.Panel,Ke=Pe.RowColumnDefinition,lt=Pe.Shape,Ue=Pe.TextBlock,gt=Pe.TextBlockMetrics,tn=Pe.Picture,Un=Pe.Part,qn=Pe.Adornment,nn=Pe.Node,Ht=Pe.Link,sn=Pe.Placeholder,vn=Pe.Layout,Ln=Pe.LayoutNetwork,xn=Pe.LayoutVertex,_t=Pe.LayoutEdge,Vn=Pe.GridLayout,Kn=Pe.PanelLayout,Tn=Pe.CircularLayout,jn=Pe.CircularNetwork,Mi=Pe.CircularVertex,Gn=Pe.CircularEdge,wt=Pe.ForceDirectedLayout,Si=Pe.ForceDirectedNetwork,wi=Pe.ForceDirectedVertex,Vt=Pe.ForceDirectedEdge,qi=Pe.LayeredDigraphLayout,lr=Pe.LayeredDigraphNetwork,rr=Pe.LayeredDigraphVertex,In=Pe.LayeredDigraphEdge,Br=Pe.TreeLayout,Tr=Pe.TreeNetwork,Xi=Pe.TreeVertex,Ji=Pe.TreeEdge,Nr=Pe.version},46963:function(Re){"use strict";Re.exports=le;var Ee=/[#.]/g;function le(ce,Pe){for(var Me=ce||"",Ie=Pe||"div",je={},Te=0,Ge,st,Qe;Te<Me.length;)Ee.lastIndex=Te,Qe=Ee.exec(Me),Ge=Me.slice(Te,Qe?Qe.index:Me.length),Ge&&(st?st==="#"?je.id=Ge:je.className?je.className.push(Ge):je.className=[Ge]:Ie=Ge,Te+=Ge.length),Qe&&(st=Qe[0],Te++);return{type:"element",tagName:Ie,properties:je,children:[]}}},5641:function(Re,Ee,le){"use strict";var ce=le(88914),Pe=le(47178),Me=le(46963),Ie=le(92848).Q,je=le(58951).Q;Re.exports=Ge;var Te={}.hasOwnProperty;function Ge(ne,te,he){var se=he?Fe(he):null;return ge;function ge(be,Ae){var Le=Me(be,te),Ve=Array.prototype.slice.call(arguments,2),et=Le.tagName.toLowerCase(),Je;if(Le.tagName=se&&Te.call(se,et)?se[et]:et,Ae&&st(Ae,Le)&&(Ve.unshift(Ae),Ae=null),Ae)for(Je in Ae)ye(Le.properties,Je,Ae[Je]);return We(Le.children,Ve),Le.tagName==="template"&&(Le.content={type:"root",children:Le.children},Le.children=[]),Le}function ye(be,Ae,Le){var Ve,et,Je;Le==null||Le!==Le||(Ve=ce(ne,Ae),et=Ve.property,Je=Le,typeof Je=="string"&&(Ve.spaceSeparated?Je=Ie(Je):Ve.commaSeparated?Je=je(Je):Ve.commaOrSpaceSeparated&&(Je=Ie(je(Je).join(" ")))),et==="style"&&typeof Le!="string"&&(Je=kt(Je)),et==="className"&&be.className&&(Je=be.className.concat(Je)),be[et]=mt(Ve,et,Je))}}function st(ne,te){return typeof ne=="string"||"length"in ne||Qe(te.tagName,ne)}function Qe(ne,te){var he=te.type;return ne==="input"||!he||typeof he!="string"?!1:typeof te.children=="object"&&"length"in te.children?!0:(he=he.toLowerCase(),ne==="button"?he!=="menu"&&he!=="submit"&&he!=="reset"&&he!=="button":"value"in te)}function We(ne,te){var he,se;if(typeof te=="string"||typeof te=="number"){ne.push({type:"text",value:String(te)});return}if(typeof te=="object"&&"length"in te){for(he=-1,se=te.length;++he<se;)We(ne,te[he]);return}if(typeof te!="object"||!("type"in te))throw new Error("Expected node, nodes, or string, got `"+te+"`");ne.push(te)}function mt(ne,te,he){var se,ge,ye;if(typeof he!="object"||!("length"in he))return it(ne,te,he);for(ge=he.length,se=-1,ye=[];++se<ge;)ye[se]=it(ne,te,he[se]);return ye}function it(ne,te,he){var se=he;return ne.number||ne.positiveNumber?!isNaN(se)&&se!==""&&(se=Number(se)):(ne.boolean||ne.overloadedBoolean)&&typeof se=="string"&&(se===""||Pe(he)===Pe(te))&&(se=!0),se}function kt(ne){var te=[],he;for(he in ne)te.push([he,ne[he]].join(": "));return te.join("; ")}function Fe(ne){for(var te=ne.length,he=-1,se={},ge;++he<te;)ge=ne[he],se[ge.toLowerCase()]=ge;return se}},82073:function(Re,Ee,le){"use strict";var ce=le(18795),Pe=le(5641),Me=Pe(ce,"div");Me.displayName="html",Re.exports=Me},43621:function(Re,Ee,le){"use strict";Re.exports=le(82073)},93193:function(Re){var Ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,le=/\n/g,ce=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Me=/^:\s*/,Ie=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,je=/^[;\s]*/,Te=/^\s+|\s+$/g,Ge=`
|
|
|
`,st="/",Qe="*",We="",mt="comment",it="declaration";Re.exports=function(Fe,ne){if(typeof Fe!="string")throw new TypeError("First argument must be a string");if(!Fe)return[];ne=ne||{};var te=1,he=1;function se(tt){var Et=tt.match(le);Et&&(te+=Et.length);var Lt=tt.lastIndexOf(Ge);he=~Lt?tt.length-Lt:he+tt.length}function ge(){var tt={line:te,column:he};return function(Et){return Et.position=new ye(tt),Ve(),Et}}function ye(tt){this.start=tt,this.end={line:te,column:he},this.source=ne.source}ye.prototype.content=Fe;var be=[];function Ae(tt){var Et=new Error(ne.source+":"+te+":"+he+": "+tt);if(Et.reason=tt,Et.filename=ne.source,Et.line=te,Et.column=he,Et.source=Fe,ne.silent)be.push(Et);else throw Et}function Le(tt){var Et=tt.exec(Fe);if(Et){var Lt=Et[0];return se(Lt),Fe=Fe.slice(Lt.length),Et}}function Ve(){Le(ce)}function et(tt){var Et;for(tt=tt||[];Et=Je();)Et!==!1&&tt.push(Et);return tt}function Je(){var tt=ge();if(!(st!=Fe.charAt(0)||Qe!=Fe.charAt(1))){for(var Et=2;We!=Fe.charAt(Et)&&(Qe!=Fe.charAt(Et)||st!=Fe.charAt(Et+1));)++Et;if(Et+=2,We===Fe.charAt(Et-1))return Ae("End of comment missing");var Lt=Fe.slice(2,Et-2);return he+=2,se(Lt),Fe=Fe.slice(Et),he+=2,tt({type:mt,comment:Lt})}}function rt(){var tt=ge(),Et=Le(Pe);if(Et){if(Je(),!Le(Me))return Ae("property missing ':'");var Lt=Le(Ie),Ut=tt({type:it,property:kt(Et[0].replace(Ee,We)),value:Lt?kt(Lt[0].replace(Ee,We)):We});return Le(je),Ut}}function at(){var tt=[];et(tt);for(var Et;Et=rt();)Et!==!1&&(tt.push(Et),et(tt));return tt}return Ve(),at()};function kt(Fe){return Fe?Fe.replace(Te,We):We}},91241:function(Re){"use strict";Re.exports=Ee;function Ee(le){var ce=typeof le=="string"?le.charCodeAt(0):le;return ce>=97&&ce<=122||ce>=65&&ce<=90}},21127:function(Re,Ee,le){"use strict";var ce=le(91241),Pe=le(22347);Re.exports=Me;function Me(Ie){return ce(Ie)||Pe(Ie)}},22347:function(Re){"use strict";Re.exports=Ee;function Ee(le){var ce=typeof le=="string"?le.charCodeAt(0):le;return ce>=48&&ce<=57}},65207:function(Re){"use strict";Re.exports=Ee;function Ee(le){var ce=typeof le=="string"?le.charCodeAt(0):le;return ce>=97&&ce<=102||ce>=65&&ce<=70||ce>=48&&ce<=57}},2859:function(Re,Ee,le){"use strict";le.d(Ee,{hP:function(){return Nn}});var ce=function($e,Oe){return(ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,Ke){ke.__proto__=Ke}||function(ke,Ke){for(var lt in Ke)Object.prototype.hasOwnProperty.call(Ke,lt)&&(ke[lt]=Ke[lt])})($e,Oe)};function Pe($e,Oe){function ke(){this.constructor=$e}ce($e,Oe),$e.prototype=Oe===null?Object.create(Oe):(ke.prototype=Oe.prototype,new ke)}function Me($e,Oe,ke,Ke){return new(ke||(ke=Promise))(function(lt,Ue){function gt(qn){try{Un(Ke.next(qn))}catch(nn){Ue(nn)}}function tn(qn){try{Un(Ke.throw(qn))}catch(nn){Ue(nn)}}function Un(qn){var nn;qn.done?lt(qn.value):(nn=qn.value,nn instanceof ke?nn:new ke(function(Ht){Ht(nn)})).then(gt,tn)}Un((Ke=Ke.apply($e,Oe||[])).next())})}function Ie($e,Oe){var ke,Ke,lt,Ue,gt={label:0,sent:function(){if(1<[0])throw lt[1];return lt[1]},trys:[],ops:[]};return Ue={next:tn(0),throw:tn(1),return:tn(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function tn(Un){return function(qn){return function(nn){if(ke)throw new TypeError("Generator is already executing.");for(;gt;)try{if(ke=1,Ke&&(lt=2&nn[0]?Ke.return:nn[0]?Ke.throw||((lt=Ke.return)&<.call(Ke),0):Ke.next)&&!(lt=lt.call(Ke,nn[1])).done)return lt;switch(Ke=0,lt&&(nn=[2&nn[0],lt.value]),nn[0]){case 0:case 1:lt=nn;break;case 4:return gt.label++,{value:nn[1],done:!1};case 5:gt.label++,Ke=nn[1],nn=[0];continue;case 7:nn=gt.ops.pop(),gt.trys.pop();continue;default:if(lt=gt.trys,!((lt=lt.length>0&<[lt.length-1])||nn[0]!==6&&nn[0]!==2)){gt=0;continue}if(nn[0]===3&&(!lt||nn[1]>lt[0]&&nn[1]<lt[3])){gt.label=nn[1];break}if(nn[0]===6&>.label<lt[1]){gt.label=lt[1],lt=nn;break}if(lt&>.label<lt[2]){gt.label=lt[2],gt.ops.push(nn);break}lt[2]&>.ops.pop(),gt.trys.pop();continue}nn=Oe.call($e,gt)}catch(Ht){nn=[6,Ht],Ke=0}finally{ke=lt=0}if(5&nn[0])throw nn[1];return{value:nn[0]?nn[1]:void 0,done:!0}}([Un,qn])}}}function je(){for(var $e=0,Oe=0,ke=arguments.length;Oe<ke;Oe++)$e+=arguments[Oe].length;var Ke=Array($e),lt=0;for(Oe=0;Oe<ke;Oe++)for(var Ue=arguments[Oe],gt=0,tn=Ue.length;gt<tn;gt++,lt++)Ke[lt]=Ue[gt];return Ke}var Te=function(){function $e(){}return $e.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},$e.setAttributes=function(Oe,ke){for(var Ke=0,lt=ke;Ke<lt.length;Ke++){var Ue=lt[Ke],gt=Ue[0],tn=Ue[1];Oe.setAttribute(gt,tn)}},$e.createRect=function(Oe,ke,Ke){var lt=document.createElementNS("http://www.w3.org/2000/svg","rect");return lt.setAttribute("width",Oe.toString()),lt.setAttribute("height",ke.toString()),Ke&&$e.setAttributes(lt,Ke),lt},$e.createLine=function(Oe,ke,Ke,lt,Ue){var gt=document.createElementNS("http://www.w3.org/2000/svg","line");return gt.setAttribute("x1",Oe.toString()),gt.setAttribute("y1",ke.toString()),gt.setAttribute("x2",Ke.toString()),gt.setAttribute("y2",lt.toString()),Ue&&$e.setAttributes(gt,Ue),gt},$e.createPolygon=function(Oe,ke){var Ke=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ke.setAttribute("points",Oe),ke&&$e.setAttributes(Ke,ke),Ke},$e.createCircle=function(Oe,ke){var Ke=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ke.setAttribute("cx",(Oe/2).toString()),Ke.setAttribute("cy",(Oe/2).toString()),Ke.setAttribute("r",Oe.toString()),ke&&$e.setAttributes(Ke,ke),Ke},$e.createEllipse=function(Oe,ke,Ke){var lt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return lt.setAttribute("cx",(Oe/2).toString()),lt.setAttribute("cy",(ke/2).toString()),lt.setAttribute("rx",(Oe/2).toString()),lt.setAttribute("ry",(ke/2).toString()),Ke&&$e.setAttributes(lt,Ke),lt},$e.createGroup=function(Oe){var ke=document.createElementNS("http://www.w3.org/2000/svg","g");return Oe&&$e.setAttributes(ke,Oe),ke},$e.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},$e.createMarker=function(Oe,ke,Ke,lt,Ue,gt,tn){var Un=document.createElementNS("http://www.w3.org/2000/svg","marker");return $e.setAttributes(Un,[["id",Oe],["orient",ke],["markerWidth",Ke.toString()],["markerHeight",lt.toString()],["refX",Ue.toString()],["refY",gt.toString()]]),Un.appendChild(tn),Un},$e.createText=function(Oe){var ke=document.createElementNS("http://www.w3.org/2000/svg","text");return ke.setAttribute("x","0"),ke.setAttribute("y","0"),Oe&&$e.setAttributes(ke,Oe),ke},$e.createTSpan=function(Oe,ke){var Ke=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ke.textContent=Oe,ke&&$e.setAttributes(Ke,ke),Ke},$e.createImage=function(Oe){var ke=document.createElementNS("http://www.w3.org/2000/svg","image");return Oe&&$e.setAttributes(ke,Oe),ke},$e.createPoint=function(Oe,ke){var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ke.x=Oe,Ke.y=ke,Ke},$e.createPath=function(Oe,ke){var Ke=document.createElementNS("http://www.w3.org/2000/svg","path");return Ke.setAttribute("d",Oe),ke&&$e.setAttributes(Ke,ke),Ke},$e}(),Ge=function(){function $e(){}return $e.addKey=function(Oe){$e.key=Oe},Object.defineProperty($e,"isLicensed",{get:function(){return!!$e.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test($e.key)},enumerable:!1,configurable:!0}),$e}(),st=function(){function $e(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return $e.prototype.rasterize=function(Oe,ke,Ke){var lt=this;return new Promise(function(Ue){var gt=Ke!==void 0?Ke:document.createElement("canvas");Oe===null&&(lt.markersOnly=!0,lt.naturalSize=!1);var tn=document.createElementNS("http://www.w3.org/2000/svg","svg");tn.setAttribute("xmlns","http://www.w3.org/2000/svg"),tn.setAttribute("width",ke.width.baseVal.valueAsString),tn.setAttribute("height",ke.height.baseVal.valueAsString),tn.setAttribute("viewBox","0 0 "+ke.viewBox.baseVal.width.toString()+" "+ke.viewBox.baseVal.height.toString()),tn.innerHTML=ke.innerHTML,lt.naturalSize===!0?(tn.width.baseVal.value=Oe.naturalWidth,tn.height.baseVal.value=Oe.naturalHeight):lt.width!==void 0&<.height!==void 0&&(tn.width.baseVal.value=lt.width,tn.height.baseVal.value=lt.height),gt.width=tn.width.baseVal.value,gt.height=tn.height.baseVal.value;var Un=tn.outerHTML,qn=gt.getContext("2d");lt.markersOnly!==!0&&qn.drawImage(Oe,0,0,gt.width,gt.height);var nn=window.URL,Ht=new Image(gt.width,gt.height);Ht.setAttribute("crossOrigin","anonymous");var sn=new Blob([Un],{type:"image/svg+xml"}),vn=nn.createObjectURL(sn);Ht.onload=function(){qn.drawImage(Ht,0,0),nn.revokeObjectURL(vn);var Ln=gt.toDataURL(lt.imageType,lt.imageQuality);Ue(Ln)},Ht.src=vn})},$e}(),Qe=function(){},We=function(){function $e(Oe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Oe+"_"}return Object.defineProperty($e.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty($e.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($e.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),$e.prototype.addClass=function(Oe){return this.styleSheet===void 0&&this.addStyleSheet(),Oe.name=""+this.classNamePrefix+Oe.localName,this.classes.push(Oe),this.styleSheet.sheet.insertRule("."+Oe.name+" {"+Oe.style+"}",this.styleSheet.sheet.cssRules.length),Oe},$e.prototype.addRule=function(Oe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Oe),this.styleSheet.sheet.insertRule(Oe.selector+" {"+Oe.style+"}",this.styleSheet.sheet.cssRules.length)},$e.prototype.addStyleSheet=function(){var Oe;this.styleSheet=document.createElement("style"),((Oe=this.styleSheetRoot)!==null&&Oe!==void 0?Oe:document.head).appendChild(this.styleSheet),this.addRule(new mt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new mt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new mt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new it("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new it("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},$e.prototype.removeStyleSheet=function(){var Oe;this.styleSheet&&(((Oe=this.styleSheetRoot)!==null&&Oe!==void 0?Oe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},$e}(),mt=function($e,Oe){this.selector=$e,this.style=Oe},it=function($e,Oe){this.localName=$e,this.style=Oe},kt=function(){function $e(Oe,ke,Ke,lt,Ue){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Oe,this.displayMode=ke,this.markerItems=Ke,this.uiStyleSettings=lt,this.styles=Ue,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return $e.prototype.show=function(Oe){var ke=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Oe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ke=document.createElement("div");Ke.className=this.toolbarBlockStyleClass.name,Ke.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ke),this.addActionButton(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ue){var gt=document.createElement("div");gt.className=""+ke.toolbarButtonStyleClass.name,gt.setAttribute("data-type-name",Ue.typeName),gt.innerHTML=Ue.icon,gt.addEventListener("click",function(){ke.markerToolbarButtonClicked(gt,Ue)}),ke.buttons.push(gt),ke.markerButtons.push(gt)}),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 lt=document.createElement("div");lt.className=this.toolbarBlockStyleClass.name,lt.style.whiteSpace="nowrap",lt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(lt),this.addActionButton(lt,'<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(lt,'<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()},$e.prototype.addButtonClickListener=function(Oe){this.buttonClickListeners.push(Oe)},$e.prototype.removeButtonClickListener=function(Oe){this.buttonClickListeners.indexOf(Oe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Oe),1)},$e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},$e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Oe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ke=0;ke<this.markerButtons.length;ke++)ke<Oe||ke===Oe&&this.markerButtons.length-1===Oe?this.markerButtonBlock.appendChild(this.markerButtons[ke]):(ke===Oe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ke]))}},$e.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")},$e.prototype.resetButtonStyles=function(){var Oe=this;this.buttons.forEach(function(ke){ke.className=ke.className.replace(Oe.uiStyleSettings.toolbarButtonStyleColorsClassName?Oe.uiStyleSettings.toolbarButtonStyleColorsClassName:Oe.toolbarButtonStyleColorsClass.name,"").trim(),ke.className=ke.className.replace(Oe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Oe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Oe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ke.className+=" "+(Oe.uiStyleSettings.toolbarButtonStyleColorsClassName?Oe.uiStyleSettings.toolbarButtonStyleColorsClassName:Oe.toolbarButtonStyleColorsClass.name)})},$e.prototype.addActionButton=function(Oe,ke,Ke){var lt=this,Ue=document.createElement("div");switch(Ue.className=""+this.toolbarButtonStyleClass.name,Ue.innerHTML=ke,Ue.setAttribute("data-action",Ke),Ue.addEventListener("click",function(){lt.actionToolbarButtonClicked(Ue,Ke)}),Ke){case"select":Ue.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ue.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ue.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ue.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ue.style.fill=this.uiStyleSettings.closeButtonColor}Oe.appendChild(Ue),this.buttons.push(Ue)},$e.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new it("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 it("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new it("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new it("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 it("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Oe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new it("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Oe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Oe)+`px;
|
|
|
padding: `+Oe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new it("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new it("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new mt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new mt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},$e.prototype.markerToolbarButtonClicked=function(Oe,ke){this.setActiveButton(Oe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ke){return Ke("marker",ke)}),this.markerButtonOverflowBlock.style.display="none"},$e.prototype.actionToolbarButtonClicked=function(Oe,ke){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ke){return Ke("action",ke)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},$e.prototype.setActiveButton=function(Oe){this.resetButtonStyles(),Oe.className=Oe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Oe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},$e.prototype.setActiveMarkerButton=function(Oe){var ke=this.markerButtons.find(function(Ke){return Ke.getAttribute("data-type-name")===Oe});ke&&this.setActiveButton(ke)},$e.prototype.setCurrentMarker=function(Oe){var ke=this;this.currentMarker=Oe,this.buttons.filter(function(Ke){return/delete|notes/.test(Ke.getAttribute("data-action"))}).forEach(function(Ke){ke.currentMarker===void 0?(Ke.style.fillOpacity="0.4",Ke.style.pointerEvents="none"):(Ke.style.fillOpacity="1",Ke.style.pointerEvents="all")})},$e}(),Fe=function(){function $e(Oe,ke,Ke,lt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Oe,this.displayMode=ke,this.uiStyleSettings=Ke,this.styles=lt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return $e.prototype.addStyles=function(){var Oe;this.toolboxStyleClass=this.styles.addClass(new it("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 it("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ke=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new it("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new it("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new it("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 it("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Oe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Oe!==void 0?Oe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new it("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ke)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ke)+`px;
|
|
|
padding: `+ke+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new it("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new it("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new mt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new mt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},$e.prototype.show=function(Oe){var ke;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Oe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ke=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ke!==void 0?ke:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},$e.prototype.setPanelButtons=function(Oe){var ke,Ke,lt=this;this.panels=Oe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ke=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ke!==void 0?ke:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ke=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ke!==void 0?Ke:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ue){var gt;Ue.uiStyleSettings=lt.uiStyleSettings;var tn=document.createElement("div");tn.className=lt.toolboxButtonStyleClass.name+" "+((gt=lt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&>!==void 0?gt:lt.toolboxButtonStyleColorsClass.name),tn.innerHTML=Ue.icon,tn.title=Ue.title,tn.addEventListener("click",function(){lt.panelButtonClick(Ue)}),lt.panelButtons.push(tn),lt.buttonRow.appendChild(tn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},$e.prototype.panelButtonClick=function(Oe){var ke=this,Ke=-1;if(Oe!==this.activePanel){Ke=this.panels.indexOf(Oe),this.panelRow.innerHTML="";var lt=Oe.getUi();lt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(lt),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=Oe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ke.displayMode==="inline"?ke.panelRow.style.display="none":ke.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ue,gt){var tn,Un;Ue.className=ke.toolboxButtonStyleClass.name+" "+(gt===Ke?""+((tn=ke.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&tn!==void 0?tn:ke.toolboxActiveButtonStyleColorsClass.name):""+((Un=ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Un!==void 0?Un:ke.toolboxButtonStyleColorsClass.name))})},$e}(),ne=function($e,Oe){this.title=$e,this.icon=Oe},te=function($e){function Oe(ke,Ke,lt,Ue){var gt=$e.call(this,ke,Ue||'<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 gt.colors=[],gt.addTransparent=!1,gt.colorBoxes=[],gt.colors=Ke,gt.currentColor=lt,gt.setCurrentColor=gt.setCurrentColor.bind(gt),gt.getColorBox=gt.getColorBox.bind(gt),gt}return Pe(Oe,$e),Oe.prototype.getUi=function(){var ke=this,Ke=document.createElement("div");return Ke.style.overflow="hidden",Ke.style.whiteSpace="nowrap",this.colors.forEach(function(lt){var Ue=ke.getColorBox(lt);Ke.appendChild(Ue),ke.colorBoxes.push(Ue)}),Ke},Oe.prototype.getColorBox=function(ke){var Ke=this,lt=this.uiStyleSettings.toolbarHeight/4,Ue=this.uiStyleSettings.toolbarHeight-lt,gt=document.createElement("div");gt.style.display="inline-block",gt.style.boxSizing="content-box",gt.style.width=Ue-2+"px",gt.style.height=Ue-2+"px",gt.style.padding="1px",gt.style.marginRight="2px",gt.style.marginBottom="2px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderRadius=(Ue+2)/2+"px",gt.style.borderColor=ke===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){Ke.setCurrentColor(ke,gt)});var tn=document.createElement("div");return tn.style.display="inline-block",tn.style.width=Ue-2+"px",tn.style.height=Ue-2+"px",tn.style.backgroundColor=ke,tn.style.borderRadius=Ue/2+"px",ke==="transparent"&&(tn.style.fill=this.uiStyleSettings.toolboxAccentColor,tn.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>`),gt.appendChild(tn),gt},Oe.prototype.setCurrentColor=function(ke,Ke){var lt=this;this.currentColor=ke,this.colorBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Ke?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ke)},Oe}(ne),he=function(){function $e(Oe,ke,Ke){this._state="new",this._isSelected=!1,this._container=Oe,this._overlayContainer=ke,this.globalSettings=Ke,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty($e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),$e.prototype.ownsTarget=function(Oe){return!1},Object.defineProperty($e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),$e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},$e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},$e.prototype.pointerDown=function(Oe,ke){},$e.prototype.dblClick=function(Oe,ke){},$e.prototype.manipulate=function(Oe){},$e.prototype.pointerUp=function(Oe){this.stateChanged()},$e.prototype.dispose=function(){},$e.prototype.addMarkerVisualToContainer=function(Oe){this.container.childNodes.length>0?this.container.insertBefore(Oe,this.container.childNodes[0]):this.container.appendChild(Oe)},$e.prototype.getState=function(){return{typeName:$e.typeName,state:this.state,notes:this.notes}},$e.prototype.restoreState=function(Oe){this._state=Oe.state,this.notes=Oe.notes},$e.prototype.scale=function(Oe,ke){},$e.prototype.colorChanged=function(Oe){this.onColorChanged&&this.onColorChanged(Oe),this.stateChanged()},$e.prototype.fillColorChanged=function(Oe){this.onFillColorChanged&&this.onFillColorChanged(Oe),this.stateChanged()},$e.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Oe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Oe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Oe)&&this.onStateChanged(this)}},$e.typeName="MarkerBase",$e}(),se=function(){function $e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return $e.prototype.findGripByVisual=function(Oe){return this.topLeft.ownsTarget(Oe)?this.topLeft:this.topCenter.ownsTarget(Oe)?this.topCenter:this.topRight.ownsTarget(Oe)?this.topRight:this.centerLeft.ownsTarget(Oe)?this.centerLeft:this.centerRight.ownsTarget(Oe)?this.centerRight:this.bottomLeft.ownsTarget(Oe)?this.bottomLeft:this.bottomCenter.ownsTarget(Oe)?this.bottomCenter:this.bottomRight.ownsTarget(Oe)?this.bottomRight:void 0},$e}(),ge=function(){function $e(){this.GRIP_SIZE=10,this.visual=Te.createGroup(),this.visual.appendChild(Te.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Te.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return $e.prototype.ownsTarget=function(Oe){return Oe===this.visual||Oe===this.visual.childNodes[0]||Oe===this.visual.childNodes[1]},$e}(),ye=function(){function $e(){}return $e.toITransformMatrix=function(Oe){return{a:Oe.a,b:Oe.b,c:Oe.c,d:Oe.d,e:Oe.e,f:Oe.f}},$e.toSVGMatrix=function(Oe,ke){return Oe.a=ke.a,Oe.b=ke.b,Oe.c=ke.c,Oe.d=ke.d,Oe.e=ke.e,Oe.f=ke.f,Oe},$e}(),be=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.left=0,Ue.top=0,Ue.width=0,Ue.height=0,Ue.defaultSize={x:50,y:20},Ue.offsetX=0,Ue.offsetY=0,Ue.rotationAngle=0,Ue.CB_DISTANCE=10,Ue._suppressMarkerCreateEvent=!1,Ue.container.transform.baseVal.appendItem(Te.createTransform()),Ue.setupControlBox(),Ue}return Pe(Oe,$e),Object.defineProperty(Oe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"visual",{get:function(){return this._visual},set:function(ke){this._visual=ke;var Ke=Te.createTransform();this._visual.transform.baseVal.appendItem(Ke)},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(ke){return!!$e.prototype.ownsTarget.call(this,ke)||!!(this.controlGrips.findGripByVisual(ke)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ke))},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.state==="new"&&(this.left=ke.x,this.top=ke.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var lt=this.unrotatePoint(ke);if(this.manipulationStartX=lt.x,this.manipulationStartY=lt.y,this.offsetX=lt.x-this.left,this.offsetY=lt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ke),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ke)){this.activeGrip=this.rotatorGrip;var Ue=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ue.x-this.width/2,this.top=Ue.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var gt=this.container.transform.baseVal.getItem(0);gt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(gt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Oe.prototype.pointerUp=function(ke){var Ke=this.state;$e.prototype.pointerUp.call(this,ke),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ke),this._state="select",Ke==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Oe.prototype.moveVisual=function(ke){this.visual.style.transform="translate("+ke.x+"px, "+ke.y+"px)"},Oe.prototype.manipulate=function(ke){var Ke=this.unrotatePoint(ke);this.state==="creating"?this.resize(ke):this.state==="move"?(this.left=this.manipulationStartLeft+(Ke.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ke.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ke):this.state==="rotate"&&this.rotate(ke)},Oe.prototype.resize=function(ke){var Ke=this.manipulationStartLeft,lt=this.manipulationStartWidth,Ue=this.manipulationStartTop,gt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ke=this.manipulationStartLeft+ke.x-this.manipulationStartX,lt=this.manipulationStartWidth+this.manipulationStartLeft-Ke;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:lt=this.manipulationStartWidth+ke.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ue=this.manipulationStartTop+ke.y-this.manipulationStartY,gt=this.manipulationStartHeight+this.manipulationStartTop-Ue;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:gt=this.manipulationStartHeight+ke.y-this.manipulationStartY}lt>=0?(this.left=Ke,this.width=lt):(this.left=Ke+lt,this.width=-lt),gt>=0?(this.top=Ue,this.height=gt):(this.top=Ue+gt,this.height=-gt),this.setSize()},Oe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Oe.prototype.rotate=function(ke){if(Math.abs(ke.x-this.centerX)>.1){var Ke=Math.sign(ke.x-this.centerX);this.rotationAngle=180*Math.atan((ke.y-this.centerY)/(ke.x-this.centerX))/Math.PI+90*Ke,this.applyRotation()}},Oe.prototype.applyRotation=function(){var ke=this.container.transform.baseVal.getItem(0);ke.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ke,0)},Oe.prototype.rotatePoint=function(ke){if(this.rotationAngle===0)return ke;var Ke=this.container.getCTM(),lt=Te.createPoint(ke.x,ke.y);return{x:(lt=lt.matrixTransform(Ke)).x,y:lt.y}},Oe.prototype.unrotatePoint=function(ke){if(this.rotationAngle===0)return ke;var Ke=this.container.getCTM();Ke=Ke.inverse();var lt=Te.createPoint(ke.x,ke.y);return{x:(lt=lt.matrixTransform(Ke)).x,y:lt.y}},Oe.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Oe.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},Oe.prototype.setupControlBox=function(){this.controlBox=Te.createGroup();var ke=Te.createTransform();ke.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ke),this.container.appendChild(this.controlBox),this.controlRect=Te.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=Te.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new se,this.addControlGrips(),this.controlBox.style.display="none"},Oe.prototype.adjustControlBox=function(){var ke=this.controlBox.transform.baseVal.getItem(0);ke.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ke,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()},Oe.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()},Oe.prototype.createGrip=function(){var ke=new ge;return ke.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(ke.visual),ke},Oe.prototype.positionGrips=function(){var ke=this.controlGrips.topLeft.GRIP_SIZE,Ke=-ke/2,lt=Ke,Ue=(this.width+this.CB_DISTANCE)/2-ke/2,gt=(this.height+this.CB_DISTANCE)/2-ke/2,tn=this.height+this.CB_DISTANCE-ke/2,Un=this.width+this.CB_DISTANCE-ke/2;this.positionGrip(this.controlGrips.topLeft.visual,Ke,lt),this.positionGrip(this.controlGrips.topCenter.visual,Ue,lt),this.positionGrip(this.controlGrips.topRight.visual,Un,lt),this.positionGrip(this.controlGrips.centerLeft.visual,Ke,gt),this.positionGrip(this.controlGrips.centerRight.visual,Un,gt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ke,tn),this.positionGrip(this.controlGrips.bottomCenter.visual,Ue,tn),this.positionGrip(this.controlGrips.bottomRight.visual,Un,tn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ue,lt-3*this.CB_DISTANCE)},Oe.prototype.positionGrip=function(ke,Ke,lt){var Ue=ke.transform.baseVal.getItem(0);Ue.setTranslate(Ke,lt),ke.transform.baseVal.replaceItem(Ue,0)},Oe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Oe.prototype.showControlBox=function(){this.controlBox.style.display=""},Oe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ye.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ye.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},$e.prototype.getState.call(this))},Oe.prototype.restoreState=function(ke){$e.prototype.restoreState.call(this,ke);var Ke=ke;this.left=Ke.left,this.top=Ke.top,this.width=Ke.width,this.height=Ke.height,this.rotationAngle=Ke.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ke.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ke.containerTransformMatrix))},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke);var lt=this.rotatePoint({x:this.left,y:this.top}),Ue=this.unrotatePoint({x:lt.x*ke,y:lt.y*Ke});this.left=Ue.x,this.top=Ue.y,this.width=this.width*ke,this.height=this.height*Ke,this.adjustControlBox()},Oe}(he),Ae=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.fillColor="transparent",Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.opacity=1,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setFillColor=Ue.setFillColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.createVisual=Ue.createVisual.bind(Ue),Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.visual)},Oe.prototype.createVisual=function(){this.visual=Te.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)},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},Oe.prototype.manipulate=function(ke){$e.prototype.manipulate.call(this,ke)},Oe.prototype.resize=function(ke){$e.prototype.resize.call(this,ke),this.setSize()},Oe.prototype.setSize=function(){$e.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Oe.prototype.pointerUp=function(ke){$e.prototype.pointerUp.call(this,ke),this.setSize()},Oe.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ke),this.stateChanged()},Oe.prototype.setFillColor=function(ke){this.fillColor=ke,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Oe.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Oe.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Oe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this))},Oe.prototype.restoreState=function(ke){var Ke=ke;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.opacity=Ke.opacity,this.createVisual(),$e.prototype.restoreState.call(this,ke),this.setSize()},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke),this.setSize()},Oe.title="Rectangle marker",Oe}(be),Le=function($e){function Oe(ke,Ke,lt,Ue){var gt=$e.call(this,ke,Ue||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return gt.widths=[],gt.widthBoxes=[],gt.widths=Ke,gt.currentWidth=lt,gt.setCurrentWidth=gt.setCurrentWidth.bind(gt),gt}return Pe(Oe,$e),Oe.prototype.getUi=function(){var ke=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.widths.forEach(function(lt){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.flexGrow="2",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=lt===ke.currentWidth?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentWidth(lt,Ue)}),Ke.appendChild(Ue);var gt=document.createElement("div");gt.innerText=lt.toString(),gt.style.marginRight="5px",Ue.appendChild(gt);var tn=document.createElement("div");tn.style.minHeight="20px",tn.style.flexGrow="2",tn.style.display="flex",tn.style.alignItems="center";var Un=document.createElement("hr");Un.style.minWidth="20px",Un.style.border="0px",Un.style.borderTop=lt+"px solid "+ke.uiStyleSettings.toolboxColor,Un.style.flexGrow="2",tn.appendChild(Un),Ue.appendChild(tn),ke.widthBoxes.push(Ue)}),Ke},Oe.prototype.setCurrentWidth=function(ke,Ke){var lt=this;this.currentWidth=ke,this.widthBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Ke?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Oe}(ne),Ve=function($e){function Oe(ke,Ke,lt,Ue){var gt=$e.call(this,ke,Ue||'<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 gt.styles=[],gt.styleBoxes=[],gt.styles=Ke,gt.currentStyle=lt,gt.setCurrentStyle=gt.setCurrentStyle.bind(gt),gt}return Pe(Oe,$e),Oe.prototype.getUi=function(){var ke=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.styles.forEach(function(lt){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.overflow="hidden",Ue.style.maxWidth=100/ke.styles.length-5+"%",Ue.style.borderColor=lt===ke.currentStyle?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentStyle(lt,Ue)}),Ke.appendChild(Ue);var gt=document.createElement("div");gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.overflow="hidden";var tn=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ke.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(lt!==""?'stroke-dasharray="'+lt+'"':"")+` />
|
|
|
</svg>`;gt.innerHTML=tn,Ue.appendChild(gt),ke.styleBoxes.push(Ue)}),Ke},Oe.prototype.setCurrentStyle=function(ke,Ke){var lt=this;this.currentStyle=ke,this.styleBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Ke?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Oe}(ne),et=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.strokeColor=lt.defaultColor,Ue.strokeWidth=lt.defaultStrokeWidth,Ue.strokeDasharray=lt.defaultStrokeDasharray,Ue.strokePanel=new te("Line color",lt.defaultColorSet,lt.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.strokeWidthPanel=new Le("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new Ve("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue}return Pe(Oe,$e),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=$e.prototype.getState.call(this);return ke.typeName=Oe.typeName,ke},Oe.typeName="FrameMarker",Oe.title="Frame marker",Oe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Oe}(Ae),Je=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"},rt=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.x1=0,Ue.y1=0,Ue.x2=0,Ue.y2=0,Ue.defaultLength=50,Ue.manipulationStartX=0,Ue.manipulationStartY=0,Ue.manipulationStartX1=0,Ue.manipulationStartY1=0,Ue.manipulationStartX2=0,Ue.manipulationStartY2=0,Ue.setupControlBox(),Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!!$e.prototype.ownsTarget.call(this,ke)||!(!this.grip1.ownsTarget(ke)&&!this.grip2.ownsTarget(ke))},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.manipulationStartX=ke.x,this.manipulationStartY=ke.y,this.state==="new"&&(this.x1=ke.x,this.y1=ke.y,this.x2=ke.x,this.y2=ke.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(Ke)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ke)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Oe.prototype.pointerUp=function(ke){var Ke=this.state;$e.prototype.pointerUp.call(this,ke),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(ke),this._state="select",Ke==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Oe.prototype.adjustVisual=function(){},Oe.prototype.manipulate=function(ke){this.state==="creating"?this.resize(ke):this.state==="move"?(this.x1=this.manipulationStartX1+ke.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ke.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ke.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ke.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ke)},Oe.prototype.resize=function(ke){switch(this.activeGrip){case this.grip1:this.x1=ke.x,this.y1=ke.y;break;case this.grip2:case void 0:this.x2=ke.x,this.y2=ke.y}this.adjustVisual(),this.adjustControlBox()},Oe.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Oe.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},Oe.prototype.setupControlBox=function(){this.controlBox=Te.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Oe.prototype.adjustControlBox=function(){this.positionGrips()},Oe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Oe.prototype.createGrip=function(){var ke=new ge;return ke.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(ke.visual),ke},Oe.prototype.positionGrips=function(){var ke=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ke/2,this.y1-ke/2),this.positionGrip(this.grip2.visual,this.x2-ke/2,this.y2-ke/2)},Oe.prototype.positionGrip=function(ke,Ke,lt){var Ue=ke.transform.baseVal.getItem(0);Ue.setTranslate(Ke,lt),ke.transform.baseVal.replaceItem(Ue,0)},Oe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},$e.prototype.getState.call(this))},Oe.prototype.restoreState=function(ke){$e.prototype.restoreState.call(this,ke);var Ke=ke;this.x1=Ke.x1,this.y1=Ke.y1,this.x2=Ke.x2,this.y2=Ke.y2},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke),this.x1=this.x1*ke,this.y1=this.y1*Ke,this.x2=this.x2*ke,this.y2=this.y2*Ke,this.adjustVisual(),this.adjustControlBox()},Oe}(he),at=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.strokeColor=lt.defaultColor,Ue.strokeWidth=lt.defaultStrokeWidth,Ue.strokeDasharray=lt.defaultStrokeDasharray,Ue.strokePanel=new te("Line color",lt.defaultColorSet,lt.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.strokeWidthPanel=new Le("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new Ve("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.selectorLine&&ke!==this.visibleLine)},Oe.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorLine=Te.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Te.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)},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Oe.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()),Te.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Oe.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.adjustVisual(),this.colorChanged(ke)},Oe.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.adjustVisual()},Oe.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},$e.prototype.getState.call(this));return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){$e.prototype.restoreState.call(this,ke);var Ke=ke;this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.createVisual(),this.adjustVisual()},Oe.typeName="LineMarker",Oe.title="Line marker",Oe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Oe}(rt),tt=function($e){function Oe(ke,Ke,lt,Ue){var gt=$e.call(this,ke,Ue||'<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 gt.fonts=[],gt.fontBoxes=[],gt.fonts=Ke,gt.currentFont=lt,gt.setCurrentFont=gt.setCurrentFont.bind(gt),gt}return Pe(Oe,$e),Oe.prototype.getUi=function(){var ke=this,Ke=document.createElement("div");return Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.fonts.forEach(function(lt){var Ue=document.createElement("div");Ue.style.display="inline-block",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.overflow="hidden",Ue.style.maxWidth=100/ke.fonts.length-5+"%",Ue.style.borderColor=lt===ke.currentFont?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentFont(lt,Ue)}),Ke.appendChild(Ue);var gt=document.createElement("div");gt.style.display="flex",gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.fontFamily=lt,gt.style.overflow="hidden";var tn=document.createElement("div");tn.style.whiteSpace="nowrap",tn.style.overflow="hidden",tn.style.textOverflow="ellipsis",tn.innerHTML="The quick brown fox jumps over the lazy dog",gt.appendChild(tn),Ue.appendChild(gt),ke.fontBoxes.push(Ue)}),Ke},Oe.prototype.setCurrentFont=function(ke,Ke){var lt=this;this.currentFont=ke,this.fontBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Ke?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Oe}(ne),Et=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.color="transparent",Ue.padding=5,Ue.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ue.text=Ue.DEFAULT_TEXT,Ue.isMoved=!1,Ue.color=lt.defaultColor,Ue.fontFamily=lt.defaultFontFamily,Ue.defaultSize={x:100,y:30},Ue.setColor=Ue.setColor.bind(Ue),Ue.setFont=Ue.setFont.bind(Ue),Ue.renderText=Ue.renderText.bind(Ue),Ue.sizeText=Ue.sizeText.bind(Ue),Ue.textEditDivClicked=Ue.textEditDivClicked.bind(Ue),Ue.showTextEditor=Ue.showTextEditor.bind(Ue),Ue.setSize=Ue.setSize.bind(Ue),Ue.positionTextEditor=Ue.positionTextEditor.bind(Ue),Ue.colorPanel=new te("Color",lt.defaultColorSet,lt.defaultColor),Ue.colorPanel.onColorChanged=Ue.setColor,Ue.fontFamilyPanel=new tt("Font",lt.defaultFontFamilies,lt.defaultFontFamily),Ue.fontFamilyPanel.onFontChanged=Ue.setFont,Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){if($e.prototype.ownsTarget.call(this,ke)||ke===this.visual||ke===this.textElement||ke===this.bgRectangle)return!0;var Ke=!1;return this.textElement.childNodes.forEach(function(lt){lt===ke&&(Ke=!0)}),Ke},Oe.prototype.createVisual=function(){this.visual=Te.createGroup(),this.bgRectangle=Te.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Te.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.isMoved=!1,this.pointerDownPoint=ke,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},Oe.prototype.renderText=function(){var ke=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(Ke){ke.textElement.appendChild(Te.createTSpan(Ke.trim()===""?" ":Ke.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Oe.prototype.getTextScale=function(){var ke=this.textElement.getBBox(),Ke=1;if(ke.width>0&&ke.height>0){var lt=(1*this.width-this.width*this.padding*2/100)/ke.width,Ue=(1*this.height-this.height*this.padding*2/100)/ke.height;Ke=Math.min(lt,Ue)}return Ke},Oe.prototype.getTextPosition=function(ke){var Ke=this.textElement.getBBox(),lt=0,Ue=0;return Ke.width>0&&Ke.height>0&&(lt=(this.width-Ke.width*ke)/2,Ue=this.height/2-Ke.height*ke/2),{x:lt,y:Ue}},Oe.prototype.sizeText=function(){var ke=this.textElement.getBBox(),Ke=this.getTextScale(),lt=this.getTextPosition(Ke);lt.y-=ke.y*Ke,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+lt.x+"px, "+lt.y+"px) scale("+Ke+", "+Ke+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(lt.x,lt.y),this.textElement.transform.baseVal.getItem(1).setScale(Ke,Ke))},Oe.prototype.manipulate=function(ke){$e.prototype.manipulate.call(this,ke),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ke.x-this.pointerDownPoint.x)>5||Math.abs(ke.y-this.pointerDownPoint.y)>5)},Oe.prototype.resize=function(ke){$e.prototype.resize.call(this,ke),this.isMoved=!0,this.setSize(),this.sizeText()},Oe.prototype.setSize=function(){$e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Oe.prototype.pointerUp=function(ke){var Ke=this.state;Ke==="creating"&&(this._suppressMarkerCreateEvent=!0),$e.prototype.pointerUp.call(this,ke),this.setSize(),(Ke==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Oe.prototype.showTextEditor=function(){var ke=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(Ke){Ke.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ke=Number.parseFloat(ke.textEditor.style.fontSize);ke.textEditor.clientWidth>=Number.parseInt(ke.textEditor.style.maxWidth)&&Ke>.9;)Ke-=.1,ke.textEditor.style.fontSize=Math.max(Ke,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ke){Ke.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ke){if(Ke.clipboardData){var lt=Ke.clipboardData.getData("text"),Ue=window.getSelection();if(!Ue.rangeCount)return!1;Ue.deleteFromDocument(),Ue.getRangeAt(0).insertNode(document.createTextNode(lt)),Ke.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ke.textEditDivClicked(ke.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Oe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ke=this.getTextScale(),Ke=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),lt=this.textElement.getBBox(),Ue={x:lt.width*ke,y:lt.height*ke};Ke.x-=Ue.x/2,Ke.y-=Ue.y/2,this.textEditor.style.top=Ke.y+"px",this.textEditor.style.left=Ke.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ke.x+"px",this.textEditor.style.fontSize=Math.max(16*ke,12)+"px",this.textElement.style.display="none"}},Oe.prototype.textEditDivClicked=function(ke){this.text=ke.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Oe.prototype.select=function(){$e.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Oe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),$e.prototype.deselect.call(this)},Oe.prototype.dblClick=function(ke,Ke){$e.prototype.dblClick.call(this,ke,Ke),this.showTextEditor()},Oe.prototype.setColor=function(ke){this.textElement&&Te.setAttributes(this.textElement,[["fill",ke]]),this.color=ke,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ke)},Oe.prototype.setFont=function(ke){this.textElement&&Te.setAttributes(this.textElement,[["font-family",ke]]),this.fontFamily=ke,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Oe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Oe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},$e.prototype.getState.call(this));return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){var Ke=ke;this.color=Ke.color,this.fontFamily=Ke.fontFamily,this.padding=Ke.padding,this.text=Ke.text,this.createVisual(),$e.prototype.restoreState.call(this,ke),this.setSize()},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke),this.setSize(),this.sizeText(),this.positionTextEditor()},Oe.typeName="TextMarker",Oe.title="Text marker",Oe.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>',Oe}(be),Lt=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.color="transparent",Ue.lineWidth=3,Ue.drawing=!1,Ue.pixelRatio=1,Ue.color=lt.defaultColor,Ue.lineWidth=lt.defaultStrokeWidth,Ue.pixelRatio=lt.freehandPixelRatio,Ue.setColor=Ue.setColor.bind(Ue),Ue.addCanvas=Ue.addCanvas.bind(Ue),Ue.finishCreation=Ue.finishCreation.bind(Ue),Ue.setLineWidth=Ue.setLineWidth.bind(Ue),Ue.colorPanel=new te("Color",lt.defaultColorSet,lt.defaultColor),Ue.colorPanel.onColorChanged=Ue.setColor,Ue.lineWidthPanel=new Le("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Ue.lineWidthPanel.onWidthChanged=Ue.setLineWidth,Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.drawingImage)},Oe.prototype.createVisual=function(){this.visual=Te.createGroup(),this.drawingImage=Te.createImage(),this.visual.appendChild(this.drawingImage);var ke=Te.createTransform();this.visual.transform.baseVal.appendItem(ke),this.addMarkerVisualToContainer(this.visual)},Oe.prototype.pointerDown=function(ke,Ke){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(ke.x,ke.y),this.drawing=!0):$e.prototype.pointerDown.call(this,ke,Ke)},Oe.prototype.manipulate=function(ke){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ke.x,ke.y),this.canvasContext.stroke()):$e.prototype.manipulate.call(this,ke)},Oe.prototype.resize=function(ke){$e.prototype.resize.call(this,ke),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Oe.prototype.pointerUp=function(ke){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):$e.prototype.pointerUp.call(this,ke)},Oe.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)},Oe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.select.call(this)},Oe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.deselect.call(this)},Oe.prototype.finishCreation=function(){for(var ke=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ke=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],lt=Ke[0],Ue=Ke[1],gt=Ke[2],tn=Ke[3],Un=!1,qn=0;qn<this.canvasElement.height;qn++)for(var nn=0;nn<this.canvasElement.width;nn++)ke.data[qn*this.canvasElement.width*4+4*nn+3]>0&&(Un=!0,qn<Ue&&(Ue=qn),nn<lt&&(lt=nn),qn>tn&&(tn=qn),nn>gt&&(gt=nn));if(Un){this.left=lt/this.pixelRatio,this.top=Ue/this.pixelRatio,this.width=(gt-lt)/this.pixelRatio,this.height=(tn-Ue)/this.pixelRatio;var Ht=document.createElement("canvas");Ht.width=gt-lt,Ht.height=tn-Ue,Ht.getContext("2d").putImageData(this.canvasContext.getImageData(lt,Ue,gt-lt,tn-Ue),0,0),this.drawingImgUrl=Ht.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Oe.prototype.setDrawingImage=function(){Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Oe.prototype.setColor=function(ke){this.color=ke,this.colorChanged(ke)},Oe.prototype.setLineWidth=function(ke){this.lineWidth=ke},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=Object.assign({drawingImgUrl:this.drawingImgUrl},$e.prototype.getState.call(this));return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){this.createVisual(),$e.prototype.restoreState.call(this,ke),this.drawingImgUrl=ke.drawingImgUrl,this.setDrawingImage()},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke),this.setDrawingImage()},Oe.typeName="FreehandMarker",Oe.title="Freehand marker",Oe.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>',Oe}(be),Ut=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,lt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ue.typeBoxes=[],Ue.currentType=Ke,Ue.setCurrentType=Ue.setCurrentType.bind(Ue),Ue}return Pe(Oe,$e),Oe.prototype.getUi=function(){var ke=this,Ke=document.createElement("div");Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2";for(var lt=function(tn){var Un="both";switch(tn){case 0:Un="both";break;case 1:Un="start";break;case 2:Un="end";break;case 3:Un="none"}var qn=document.createElement("div");if(qn.style.display="flex",qn.style.flexGrow="2",qn.style.alignItems="center",qn.style.justifyContent="space-between",qn.style.padding="5px",qn.style.borderWidth="2px",qn.style.borderStyle="solid",qn.style.borderColor=Un===Ue.currentType?Ue.uiStyleSettings.toolboxAccentColor:"transparent",qn.addEventListener("click",function(){ke.setCurrentType(Un,qn)}),Ke.appendChild(qn),Un==="both"||Un==="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="`+(Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,nn.style.marginLeft="5px",qn.appendChild(nn)}var Ht=document.createElement("div");Ht.style.display="flex",Ht.style.alignItems="center",Ht.style.minHeight="20px",Ht.style.flexGrow="2";var sn=document.createElement("hr");if(sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop="3px solid "+(Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxColor:"#eeeeee"),sn.style.flexGrow="2",Ht.appendChild(sn),qn.appendChild(Ht),Un==="both"||Un==="end"){var vn=document.createElement("div");vn.style.display="flex",vn.style.alignItems="center",vn.style.minHeight="20px",vn.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="`+(Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,vn.style.marginRight="5px",qn.appendChild(vn)}Ue.typeBoxes.push(qn)},Ue=this,gt=0;gt<4;gt++)lt(gt);return Ke},Oe.prototype.setCurrentType=function(ke,Ke){var lt=this;this.currentType=ke,this.typeBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Ke?lt.uiStyleSettings!==void 0?lt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Oe}(ne),on=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.arrowType="end",Ue.arrowBaseHeight=10,Ue.arrowBaseWidth=10,Ue.getArrowPoints=Ue.getArrowPoints.bind(Ue),Ue.setArrowType=Ue.setArrowType.bind(Ue),Ue.arrowTypePanel=new Ut("Arrow type","end"),Ue.arrowTypePanel.onArrowTypeChanged=Ue.setArrowType,Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.arrow1&&ke!==this.arrow2)},Oe.prototype.getArrowPoints=function(ke,Ke){var lt=this.arrowBaseWidth+2*this.strokeWidth,Ue=this.arrowBaseHeight+2*this.strokeWidth;return ke-lt/2+","+(Ke+Ue/2)+" "+ke+","+(Ke-Ue/2)+" "+(ke+lt/2)+","+(Ke+Ue/2)},Oe.prototype.createTips=function(){this.arrow1=Te.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Te.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow2)},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.state==="creating"&&this.createTips()},Oe.prototype.adjustVisual=function(){if($e.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",Te.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Te.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ke=0;Math.abs(this.x1-this.x2)>.1&&(ke=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ke=this.arrow1.transform.baseVal.getItem(0);Ke.setRotate(ke,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ke,0);var lt=this.arrow2.transform.baseVal.getItem(0);lt.setRotate(ke+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(lt,0)}},Oe.prototype.setArrowType=function(ke){this.arrowType=ke,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=Object.assign({arrowType:this.arrowType},$e.prototype.getState.call(this));return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){$e.prototype.restoreState.call(this,ke);var Ke=ke;this.arrowType=Ke.arrowType,this.createTips(),this.adjustVisual()},Oe.typeName="ArrowMarker",Oe.title="Arrow marker",Oe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Oe}(at),an=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.fillColor=lt.defaultFillColor,Ue.strokeWidth=0,Ue.fillPanel=new te("Color",lt.defaultColorSet,lt.defaultFillColor),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue}return Pe(Oe,$e),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=$e.prototype.getState.call(this);return ke.typeName=Oe.typeName,ke},Oe.typeName="CoverMarker",Oe.title="Cover marker",Oe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Oe}(Ae),Kt=function($e){function Oe(ke,Ke,lt,Ue){var gt=$e.call(this,ke,Ue||'<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 gt.opacities=[],gt.opacityBoxes=[],gt.opacities=Ke,gt.currentOpacity=lt,gt.setCurrentOpacity=gt.setCurrentOpacity.bind(gt),gt}return Pe(Oe,$e),Oe.prototype.getUi=function(){var ke=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",Ke.style.justifyContent="space-between",this.opacities.forEach(function(lt){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.justifyContent="center",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=lt===ke.currentOpacity?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentOpacity(lt,Ue)}),Ke.appendChild(Ue);var gt=document.createElement("div");gt.innerText=100*lt+"%",Ue.appendChild(gt),ke.opacityBoxes.push(Ue)}),Ke},Oe.prototype.setCurrentOpacity=function(ke,Ke){var lt=this;this.currentOpacity=ke,this.opacityBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Ke?lt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Oe}(ne),fn=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.setOpacity=Ue.setOpacity.bind(Ue),Ue.fillColor=lt.defaultHighlightColor,Ue.strokeWidth=0,Ue.opacity=lt.defaultHighlightOpacity,Ue.fillPanel=new te("Color",lt.defaultColorSet,Ue.fillColor),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue.opacityPanel=new Kt("Opacity",lt.defaultOpacitySteps,Ue.opacity),Ue.opacityPanel.onOpacityChanged=Ue.setOpacity,Ue}return Pe(Oe,$e),Oe.prototype.setOpacity=function(ke){this.opacity=ke,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=$e.prototype.getState.call(this);return ke.typeName=Oe.typeName,ke},Oe.typeName="HighlightMarker",Oe.title="Highlight marker",Oe.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>',Oe}(an),bt='<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>',dt='<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>',ct=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.bgColor="transparent",Ue.tipPosition={x:0,y:0},Ue.tipBase1Position={x:0,y:0},Ue.tipBase2Position={x:0,y:0},Ue.tipMoving=!1,Ue.color=lt.defaultStrokeColor,Ue.bgColor=lt.defaultFillColor,Ue.fontFamily=lt.defaultFontFamily,Ue.defaultSize={x:100,y:30},Ue.setBgColor=Ue.setBgColor.bind(Ue),Ue.getTipPoints=Ue.getTipPoints.bind(Ue),Ue.positionTip=Ue.positionTip.bind(Ue),Ue.setTipPoints=Ue.setTipPoints.bind(Ue),Ue.colorPanel=new te("Text color",lt.defaultColorSet,Ue.color,bt),Ue.colorPanel.onColorChanged=Ue.setColor,Ue.bgColorPanel=new te("Fill color",lt.defaultColorSet,Ue.bgColor,dt),Ue.bgColorPanel.onColorChanged=Ue.setBgColor,Ue.fontFamilyPanel=new tt("Font",lt.defaultFontFamilies,lt.defaultFontFamily),Ue.fontFamilyPanel.onFontChanged=Ue.setFont,Ue.tipGrip=new ge,Ue.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),Ue.controlBox.appendChild(Ue.tipGrip.visual),Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return $e.prototype.ownsTarget.call(this,ke)||this.tipGrip.ownsTarget(ke)||this.tip===ke},Oe.prototype.createTip=function(){Te.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Te.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Oe.prototype.pointerDown=function(ke,Ke){this.state==="new"&&$e.prototype.pointerDown.call(this,ke,Ke),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ke)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$e.prototype.pointerDown.call(this,ke,Ke)},Oe.prototype.pointerUp=function(ke){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$e.prototype.pointerUp.call(this,ke);else{var Ke=this.state==="creating";$e.prototype.pointerUp.call(this,ke),this.setTipPoints(Ke),this.positionTip()}},Oe.prototype.manipulate=function(ke){if(this.tipMoving){var Ke=this.unrotatePoint(ke);this.tipPosition={x:Ke.x-this.manipulationStartLeft,y:Ke.y-this.manipulationStartTop},this.positionTip()}else $e.prototype.manipulate.call(this,ke)},Oe.prototype.setBgColor=function(ke){this.bgRectangle&&this.tip&&(Te.setAttributes(this.bgRectangle,[["fill",ke]]),Te.setAttributes(this.tip,[["fill",ke]])),this.bgColor=ke,this.fillColorChanged(ke)},Oe.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},Oe.prototype.setTipPoints=function(ke){ke===void 0&&(ke=!1);var Ke=Math.min(this.height/2,15),lt=this.height/5;ke&&(this.tipPosition={x:Ke+lt/2,y:this.height+20});var Ue=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ue<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(lt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:Ke,y:0},this.tipBase2Position={x:Ke+lt,y:0}):(this.tipBase1Position={x:0,y:Ke},this.tipBase2Position={x:0,y:Ke+lt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ue<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(lt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ke-lt,y:0},this.tipBase2Position={x:this.width-Ke,y:0}):(this.tipBase1Position={x:this.width,y:Ke},this.tipBase2Position={x:this.width,y:Ke+lt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ue<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(lt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ke-lt,y:this.height},this.tipBase2Position={x:this.width-Ke,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ke-lt},this.tipBase2Position={x:this.width,y:this.height-Ke}):Ue<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(lt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:Ke,y:this.height},this.tipBase2Position={x:Ke+lt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ke},this.tipBase2Position={x:0,y:this.height-Ke-lt})},Oe.prototype.resize=function(ke){$e.prototype.resize.call(this,ke),this.positionTip()},Oe.prototype.positionTip=function(){Te.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ke=this.tipGrip.visual.transform.baseVal.getItem(0);ke.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ke,0)},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Oe.prototype.select=function(){this.positionTip(),$e.prototype.select.call(this)},Oe.prototype.getState=function(){var ke=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},$e.prototype.getState.call(this));return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){var Ke=ke;this.bgColor=Ke.bgColor,this.tipPosition=Ke.tipPosition,$e.prototype.restoreState.call(this,ke),this.createTip(),this.setTipPoints()},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke),this.tipPosition={x:this.tipPosition.x*ke,y:this.tipPosition.y*Ke},this.positionTip()},Oe.typeName="CalloutMarker",Oe.title="Callout marker",Oe.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>',Oe}(Et),Qt=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.fillColor="transparent",Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.opacity=1,Ue.strokeColor=lt.defaultColor,Ue.strokeWidth=lt.defaultStrokeWidth,Ue.strokeDasharray=lt.defaultStrokeDasharray,Ue.fillColor=lt.defaultFillColor,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setFillColor=Ue.setFillColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.setOpacity=Ue.setOpacity.bind(Ue),Ue.createVisual=Ue.createVisual.bind(Ue),Ue.strokePanel=new te("Line color",je(lt.defaultColorSet,["transparent"]),lt.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.fillPanel=new te("Fill color",je(lt.defaultColorSet,["transparent"]),Ue.fillColor,dt),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue.strokeWidthPanel=new Le("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new Ve("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue.opacityPanel=new Kt("Opacity",lt.defaultOpacitySteps,Ue.opacity),Ue.opacityPanel.onOpacityChanged=Ue.setOpacity,Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.visual)},Oe.prototype.createVisual=function(){this.visual=Te.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)},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},Oe.prototype.manipulate=function(ke){$e.prototype.manipulate.call(this,ke)},Oe.prototype.resize=function(ke){$e.prototype.resize.call(this,ke),this.setSize()},Oe.prototype.setSize=function(){$e.prototype.setSize.call(this),Te.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Oe.prototype.pointerUp=function(ke){$e.prototype.pointerUp.call(this,ke),this.setSize()},Oe.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ke),this.stateChanged()},Oe.prototype.setFillColor=function(ke){this.fillColor=ke,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ke),this.stateChanged()},Oe.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Oe.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Oe.prototype.setOpacity=function(ke){this.opacity=ke,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this));return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){var Ke=ke;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.opacity=Ke.opacity,this.createVisual(),$e.prototype.restoreState.call(this,ke),this.setSize()},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke),this.setSize()},Oe.typeName="EllipseMarker",Oe.title="Ellipse marker",Oe.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>',Oe}(be),un=function($e){function Oe(ke,Ke,lt){return $e.call(this,ke,Ke,lt)||this}return Pe(Oe,$e),Object.defineProperty(Oe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.tip1&&ke!==this.tip2)},Oe.prototype.createTips=function(){this.tip1=Te.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(Te.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Te.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(Te.createTransform()),this.visual.appendChild(this.tip2)},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.state==="creating"&&this.createTips()},Oe.prototype.adjustVisual=function(){if($e.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Te.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()]]),Te.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 ke=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ke=this.tip1.transform.baseVal.getItem(0);Ke.setRotate(ke,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ke,0);var lt=this.tip2.transform.baseVal.getItem(0);lt.setRotate(ke+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(lt,0)}},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=$e.prototype.getState.call(this);return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){$e.prototype.restoreState.call(this,ke),this.createTips(),this.adjustVisual()},Oe.typeName="MeasurementMarker",Oe.title="Measurement marker",Oe.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>',Oe}(at),Nt=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.strokePanel.colors=lt.defaultColorSet,Ue.fillColor="transparent",Ue}return Pe(Oe,$e),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=$e.prototype.getState.call(this);return ke.typeName=Oe.typeName,ke},Oe.typeName="EllipseFrameMarker",Oe.title="Ellipse frame marker",Oe.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>',Oe}(Qt),hn=function(){function $e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$e.prototype.addUndoStep=function(Oe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Oe)||(this.undoStack.push(Oe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Oe)&&this.redoStack.splice(0,this.redoStack.length))},$e.prototype.replaceLastUndoStep=function(Oe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Oe)},$e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$e.prototype.undo=function(){if(this.undoStack.length>1){var Oe=this.undoStack.pop();return Oe!==void 0&&this.redoStack.push(Oe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$e}(),cn=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.curveX=0,Ue.curveY=0,Ue.manipulationStartCurveX=0,Ue.manipulationStartCurveY=0,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.positionGrips=Ue.positionGrips.bind(Ue),Ue.addControlGrips=Ue.addControlGrips.bind(Ue),Ue.adjustVisual=Ue.adjustVisual.bind(Ue),Ue.setupControlBox=Ue.setupControlBox.bind(Ue),Ue.resize=Ue.resize.bind(Ue),Ue.strokeColor=lt.defaultColor,Ue.strokeWidth=lt.defaultStrokeWidth,Ue.strokeDasharray=lt.defaultStrokeDasharray,Ue.strokePanel=new te("Line color",lt.defaultColorSet,lt.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.strokeWidthPanel=new Le("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new Ve("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.selectorCurve&&ke!==this.visibleCurve&&!this.curveGrip.ownsTarget(ke))},Oe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Oe.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorCurve=Te.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Te.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)},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ke.x,this.curveY=ke.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ke)&&(this.activeGrip=this.curveGrip,this._state="resize")},Oe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Te.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Oe.prototype.setupControlBox=function(){$e.prototype.setupControlBox.call(this),this.curveControlLine1=Te.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Te.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)},Oe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$e.prototype.addControlGrips.call(this)},Oe.prototype.positionGrips=function(){$e.prototype.positionGrips.call(this);var ke=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ke/2,this.curveY-ke/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()))},Oe.prototype.manipulate=function(ke){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ke.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ke.y-this.manipulationStartY),$e.prototype.manipulate.call(this,ke)},Oe.prototype.resize=function(ke){this.activeGrip===this.curveGrip&&(this.curveX=ke.x,this.curveY=ke.y),$e.prototype.resize.call(this,ke),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Oe.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.adjustVisual(),this.colorChanged(ke)},Oe.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.adjustVisual()},Oe.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.adjustVisual()},Oe.prototype.scale=function(ke,Ke){this.curveX=this.curveX*ke,this.curveY=this.curveY*Ke,$e.prototype.scale.call(this,ke,Ke)},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$e.prototype.getState.call(this));return ke.typeName=Oe.typeName,ke},Oe.prototype.restoreState=function(ke){$e.prototype.restoreState.call(this,ke);var Ke=ke;this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.curveX=Ke.curveX,this.curveY=Ke.curveY,this.createVisual(),this.adjustVisual()},Oe.typeName="CurveMarker",Oe.title="Curve marker",Oe.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>',Oe}(rt),Qn=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,Ke,lt)||this;return Ue.fillColor="transparent",Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.textColor="transparent",Ue.fontSize="1rem",Ue.isMoved=!1,Ue.captionText="Caption",Ue.PADDING=5,Ue.captionBoxWidth=0,Ue.captionBoxHeight=0,Ue.strokeColor=lt.defaultColor,Ue.strokeWidth=lt.defaultStrokeWidth,Ue.strokeDasharray=lt.defaultStrokeDasharray,Ue.fillColor=lt.defaultFillColor,Ue.textColor=lt.defaultStrokeColor,Ue.fontFamily=lt.defaultFontFamily,Ue.fontSize=lt.defaultCaptionFontSize,Ue.captionText=lt.defaultCaptionText,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setFillColor=Ue.setFillColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.createVisual=Ue.createVisual.bind(Ue),Ue.sizeCaption=Ue.sizeCaption.bind(Ue),Ue.setCaptionText=Ue.setCaptionText.bind(Ue),Ue.showTextEditor=Ue.showTextEditor.bind(Ue),Ue.positionTextEditor=Ue.positionTextEditor.bind(Ue),Ue.finishTextEditing=Ue.finishTextEditing.bind(Ue),Ue.setFont=Ue.setFont.bind(Ue),Ue.setTextColor=Ue.setTextColor.bind(Ue),Ue.strokePanel=new te("Line color",je(lt.defaultColorSet,["transparent"]),Ue.strokeColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.fillPanel=new te("Fill color",je(lt.defaultColorSet,["transparent"]),Ue.fillColor,dt),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue.strokeWidthPanel=new Le("Line width",lt.defaultStrokeWidths,lt.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new Ve("Line style",lt.defaultStrokeDasharrays,lt.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue.fontFamilyPanel=new tt("Font",lt.defaultFontFamilies,lt.defaultFontFamily),Ue.fontFamilyPanel.onFontChanged=Ue.setFont,Ue.textColorPanel=new te("Text color",lt.defaultColorSet,Ue.textColor,bt),Ue.textColorPanel.onColorChanged=Ue.setTextColor,Ue}return Pe(Oe,$e),Oe.prototype.ownsTarget=function(ke){return!(!$e.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.frame&&ke!==this.captionBg&&ke!==this.captionElement)},Oe.prototype.createVisual=function(){this.visual=Te.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Te.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Te.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=Te.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()},Oe.prototype.setCaptionText=function(ke){this.captionText=ke,this.captionElement.textContent=this.captionText,this.sizeCaption()},Oe.prototype.pointerDown=function(ke,Ke){$e.prototype.pointerDown.call(this,ke,Ke),this.isMoved=!1,this.pointerDownPoint=ke,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},Oe.prototype.manipulate=function(ke){$e.prototype.manipulate.call(this,ke),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ke.x-this.pointerDownPoint.x)>5||Math.abs(ke.y-this.pointerDownPoint.y)>5)},Oe.prototype.resize=function(ke){$e.prototype.resize.call(this,ke),this.setSize()},Oe.prototype.sizeCaption=function(){var ke=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ke.width+2*this.PADDING,this.captionBoxHeight=ke.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Te.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')"]]),Te.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')"]])},Oe.prototype.showTextEditor=function(){var ke=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(Ke){Ke.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ke){Ke.key==="Enter"&&ke.finishTextEditing(ke.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ke){Ke.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ke.finishTextEditing(ke.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ke.finishTextEditing(ke.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Oe.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"))},Oe.prototype.finishTextEditing=function(ke){this.setCaptionText(ke.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Oe.prototype.setFont=function(ke){this.captionElement&&Te.setAttributes(this.captionElement,[["font-family",ke]]),this.fontFamily=ke,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Oe.prototype.setTextColor=function(ke){this.captionElement&&Te.setAttributes(this.captionElement,[["fill",ke]]),this.textColor=ke,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Oe.prototype.setSize=function(){$e.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Oe.prototype.pointerUp=function(ke){$e.prototype.pointerUp.call(this,ke),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Oe.prototype.dblClick=function(ke,Ke){$e.prototype.dblClick.call(this,ke,Ke),this.showTextEditor()},Oe.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ke),this.stateChanged()},Oe.prototype.setFillColor=function(ke){this.fillColor=ke,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ke),this.stateChanged()},Oe.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Oe.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.frame&&Te.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var ke=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},$e.prototype.getState.call(this));return ke.typeName=this.typeName,ke},Oe.prototype.restoreState=function(ke){var Ke=ke;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.textColor=Ke.textColor,this.fontFamily=Ke.fontFamily,this.captionText=Ke.captionText,this.fontSize=Ke.fontSize,this.createVisual(),$e.prototype.restoreState.call(this,ke),this.setSize()},Oe.prototype.scale=function(ke,Ke){$e.prototype.scale.call(this,ke,Ke),this.setSize()},Oe.typeName="CaptionFrameMarker",Oe.title="Caption frame marker",Oe.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>',Oe}(be),Bt=function(){function $e(Oe,ke){ke===void 0&&(ke=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Oe,this.cancelable=ke}return Object.defineProperty($e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$e.prototype.preventDefault=function(){this._defaultPrevented=!0},$e}(),Pt=function($e){function Oe(ke,Ke,lt){var Ue=$e.call(this,ke,!1)||this;return Ue.dataUrl=Ke,Ue.state=lt,Ue}return Pe(Oe,$e),Oe}(Bt),Wt=function($e){function Oe(ke,Ke,lt){lt===void 0&&(lt=!1);var Ue=$e.call(this,ke,lt)||this;return Ue.marker=Ke,Ue}return Pe(Oe,$e),Oe}(Bt),An=function(){function $e(){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 $e.prototype.addEventListener=function(Oe,ke){this[Oe].push(ke)},$e.prototype.removeEventListener=function(Oe,ke){var Ke=this[Oe].indexOf(ke);Ke>-1&&this[Oe].splice(Ke,1)},$e}(),Nn=function(){function $e(Oe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Je,this._isOpen=!1,this.undoRedoManager=new hn,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 An,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$e.instanceCounter++,this.styles=new We(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Oe,this.targetRoot=document.body,this.width=Oe.clientWidth,this.height=Oe.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($e.prototype,"ALL_MARKER_TYPES",{get:function(){return[et,Lt,on,Et,Nt,Qt,fn,ct,un,an,at,cn,Qn]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[et,Lt,on,Et,Qt,fn,ct]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[et,Lt,on,Et,fn]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Oe){var ke=this;this._availableMarkerTypes.splice(0),Oe.forEach(function(Ke){if(typeof Ke=="string"){var lt=ke.ALL_MARKER_TYPES.find(function(Ue){return Ue.typeName===Ke});lt!==void 0&&ke._availableMarkerTypes.push(lt)}else ke._availableMarkerTypes.push(Ke)})},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Oe){this._zoomLevel=Oe,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($e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$e.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ge.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$e.prototype.show=function(){var Oe=this;this.styles.styleSheetRoot===void 0&&Qe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Qe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ke){return ke(new Bt(Oe))})},$e.prototype.render=function(){return Me(this,void 0,void 0,function(){var Oe;return Ie(this,function(ke){switch(ke.label){case 0:return this.setCurrentMarker(),(Oe=new st).naturalSize=this.renderAtNaturalSize,Oe.imageType=this.renderImageType,Oe.imageQuality=this.renderImageQuality,Oe.markersOnly=this.renderMarkersOnly,Oe.width=this.renderWidth,Oe.height=this.renderHeight,[4,Oe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ke.sent(),[4,Oe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ke.sent()]}})})},$e.prototype.close=function(Oe){var ke=this;if(Oe===void 0&&(Oe=!1),this.isOpen){var Ke=!1;Oe||this.eventListeners.beforeclose.forEach(function(lt){var Ue=new Bt(ke,!0);lt(Ue),Ue.defaultPrevented&&(Ke=!0)}),Ke||(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(lt){return lt(new Bt(ke))}),this.detachEvents(),this._isOpen=!1)}},$e.prototype.addMarkersToToolbar=function(){for(var Oe,ke=[],Ke=0;Ke<arguments.length;Ke++)ke[Ke]=arguments[Ke];(Oe=this._availableMarkerTypes).push.apply(Oe,ke)},$e.prototype.addRenderEventListener=function(Oe){this.addEventListener("render",function(ke){Oe(ke.dataUrl,ke.state)})},$e.prototype.removeRenderEventListener=function(Oe){},$e.prototype.addCloseEventListener=function(Oe){this.addEventListener("close",function(){Oe()})},$e.prototype.removeCloseEventListener=function(Oe){},$e.prototype.setupResizeObserver=function(){var Oe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Oe.resize(Oe.target.clientWidth,Oe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Oe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},$e.prototype.onPopupTargetResize=function(){var Oe=1*this.target.clientWidth/this.target.clientHeight,ke=this.editorCanvas.clientWidth/Oe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Oe:this.editorCanvas.clientWidth,Ke=ke<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Oe;this.resize(ke,Ke)},$e.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},$e.prototype.resize=function(Oe,ke){this._isResizing=!0;var Ke=Oe/this.imageWidth,lt=ke/this.imageHeight;this.imageWidth=Math.round(Oe),this.imageHeight=Math.round(ke),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(Ke,lt),this._isResizing=!1},$e.prototype.scaleMarkers=function(Oe,ke){var Ke,lt=this;this._currentMarker&&this._currentMarker instanceof Et?this._currentMarker.scale(Oe,ke):(Ke=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ue){Ue!==lt._currentMarker&&Ue.scale(Oe,ke)}),Ke!==void 0&&this.setCurrentMarker(Ke)},$e.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"},$e.prototype.setTopLeft=function(){var Oe=this.editingTarget.getBoundingClientRect(),ke=this.editorCanvas.getBoundingClientRect();this.left=Oe.left-ke.left,this.top=Oe.top-ke.top},$e.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)},$e.prototype.addDefs=function(){for(var Oe,ke=[],Ke=0;Ke<arguments.length;Ke++)ke[Ke]=arguments[Ke];this.defs=Te.createDefs(),this.addDefsToImage(),(Oe=this.defs).append.apply(Oe,ke)},$e.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},$e.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)},$e.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},$e.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},$e.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)},$e.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},$e.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)},$e.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 Oe=document.createElement("a");Oe.href="https://markerjs.com/",Oe.target="_blank",Oe.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>',Oe.title="Powered by marker.js",Oe.style.display="grid",Oe.style.alignItems="center",Oe.style.justifyItems="center",Oe.style.padding="3px",Oe.style.width="20px",Oe.style.height="20px",this.logoUI.appendChild(Oe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$e.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")},$e.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"},$e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$e.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 Oe=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=Oe+"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 kt(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 Fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},$e.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},$e.prototype.removeMarker=function(Oe){this.markerImage.removeChild(Oe.container),this.markers.indexOf(Oe)>-1&&this.markers.splice(this.markers.indexOf(Oe),1),Oe.dispose()},$e.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())},$e.prototype.toolbarButtonClicked=function(Oe,ke){if(Oe==="marker"&&ke!==void 0)this.createNewMarker(ke);else if(Oe==="action")switch(ke){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()}},$e.prototype.deleteSelectedMarker=function(){var Oe=this;if(this._currentMarker!==void 0){var ke=!1;if(this.eventListeners.markerbeforedelete.forEach(function(lt){var Ue=new Wt(Oe,Oe._currentMarker,!0);lt(Ue),Ue.defaultPrevented&&(ke=!0)}),!ke){var Ke=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(lt){return lt(new Wt(Oe,Ke))})}}},$e.prototype.clear=function(){var Oe=this,ke=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(gt){var tn=new Wt(Oe,void 0,!0);gt(tn),tn.defaultPrevented&&(ke=!0)}),!ke)){this.setCurrentMarker();for(var Ke=function(gt){var tn=lt.markers[gt];lt.setCurrentMarker(lt.markers[gt]),lt._currentMarker.dispose(),lt.markerImage.removeChild(lt._currentMarker.container),lt.markers.splice(lt.markers.indexOf(lt._currentMarker),1),lt.eventListeners.markerdelete.forEach(function(Un){return Un(new Wt(Oe,tn))})},lt=this,Ue=this.markers.length-1;Ue>=0;Ue--)Ke(Ue);this.addUndoStep()}},Object.defineProperty($e.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$e.prototype.showNotesEditor=function(){var Oe;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=(Oe=this._currentMarker.notes)!==null&&Oe!==void 0?Oe:"",this.overlayContainer.appendChild(this.notesArea))},$e.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)},$e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$e.prototype.addUndoStep=function(){var Oe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ke=this.getState(),Ke=this.undoRedoManager.getLastUndoStep();if(!Ke||Ke.width===ke.width&&Ke.height===ke.height){var lt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ke),lt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ue){return Ue(new Bt(Oe))})}else this.undoRedoManager.replaceLastUndoStep(ke),this.eventListeners.statechange.forEach(function(Ue){return Ue(new Bt(Oe))})}},$e.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},$e.prototype.undoStep=function(){var Oe=this,ke=this.undoRedoManager.undo();ke!==void 0&&(this.restoreState(ke),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ke){return Ke(new Bt(Oe))}))},$e.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},$e.prototype.redoStep=function(){var Oe=this,ke=this.undoRedoManager.redo();ke!==void 0&&(this.restoreState(ke),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ke){return Ke(new Bt(Oe))}))},$e.prototype.stepZoom=function(){var Oe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Oe<this.zoomSteps.length-1?this.zoomSteps[Oe+1]:this.zoomSteps[0]},$e.prototype.panTo=function(Oe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Oe.x,top:this.prevPanPoint.y-Oe.y}),this.prevPanPoint=Oe},$e.prototype.startRenderAndClose=function(){return Me(this,void 0,void 0,function(){var Oe,ke,Ke=this;return Ie(this,function(lt){switch(lt.label){case 0:return[4,this.render()];case 1:return Oe=lt.sent(),ke=this.getState(),this.eventListeners.render.forEach(function(Ue){return Ue(new Pt(Ke,Oe,ke))}),this.close(!0),[2]}})})},$e.prototype.getState=function(Oe){Oe===!0&&this.setCurrentMarker();var ke={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ke){return ke.markers.push(Ke.getState())}),ke},$e.prototype.restoreState=function(Oe){var ke=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Oe.markers.forEach(function(Ke){var lt=ke._availableMarkerTypes.find(function(gt){return gt.typeName===Ke.typeName});if(lt!==void 0){var Ue=ke.addNewMarker(lt);Ue.restoreState(Ke),ke.markers.push(Ue)}}),Oe.width&&Oe.height&&(Oe.width!==this.imageWidth||Oe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Oe.width,this.imageHeight/Oe.height),this.eventListeners.restorestate.forEach(function(Ke){return Ke(new Bt(ke))})},$e.prototype.addNewMarker=function(Oe){var ke=Te.createGroup();return this.markerImage.appendChild(ke),new Oe(ke,this.overlayContainer,this.settings)},$e.prototype.createNewMarker=function(Oe){var ke,Ke=this;(ke=typeof Oe=="string"?this._availableMarkerTypes.find(function(lt){return lt.typeName===Oe}):Oe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ke),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(ke.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(lt){return lt(new Wt(Ke,Ke._currentMarker))}))},$e.prototype.markerCreated=function(Oe){var ke=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Oe),this.setCurrentMarker(Oe),Oe instanceof Lt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Lt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ke){return Ke(new Wt(ke,ke._currentMarker))})},$e.prototype.colorChanged=function(Oe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Oe,this.settings.defaultStrokeColor=Oe)},$e.prototype.fillColorChanged=function(Oe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Oe)},$e.prototype.markerStateChanged=function(Oe){var ke=this;this.eventListeners.markerchange.forEach(function(Ke){return Ke(new Wt(ke,Oe))})},$e.prototype.setCurrentMarker=function(Oe){var ke=this;this._currentMarker!==Oe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ke){return Ke(new Wt(ke,ke._currentMarker))})),this._currentMarker=Oe,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(Ke){return Ke(new Wt(ke,ke._currentMarker))}))},$e.prototype.onPointerDown=function(Oe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Oe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ke=this.markers.find(function(Ke){return Ke.ownsTarget(Oe.target)});ke!==void 0?(this.setCurrentMarker(ke),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Oe.clientX,Oe.clientY),Oe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Oe.clientX,y:Oe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Oe.clientX,Oe.clientY))},$e.prototype.onDblClick=function(Oe){if(this._isFocused||this.focus(),this.mode==="select"){var ke=this.markers.find(function(Ke){return Ke.ownsTarget(Oe.target)});ke!==void 0&&ke!==this._currentMarker&&this.setCurrentMarker(ke),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Oe.clientX,Oe.clientY),Oe.target):this.setCurrentMarker()}},$e.prototype.onPointerMove=function(Oe){this.touchPoints!==1&&Oe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Oe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Oe.clientX,Oe.clientY)):this.zoomLevel>1&&this.panTo({x:Oe.clientX,y:Oe.clientY}))},$e.prototype.onPointerUp=function(Oe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Oe.clientX,Oe.clientY)),this.isDragging=!1,this.addUndoStep()},$e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$e.prototype.onKeyUp=function(Oe){this._currentMarker===void 0||this.notesArea!==void 0||Oe.key!=="Delete"&&Oe.key!=="Backspace"||this.deleteSelectedMarker()},$e.prototype.clientToLocalCoordinates=function(Oe,ke){var Ke=this.markerImage.getBoundingClientRect();return{x:(Oe-Ke.left)/this.zoomLevel,y:(ke-Ke.top)/this.zoomLevel}},$e.prototype.onWindowResize=function(){this.positionUI()},$e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Oe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Oe+"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()},$e.prototype.addLicenseKey=function(Oe){Ge.addKey(Oe)},$e.prototype.addEventListener=function(Oe,ke){this.eventListeners.addEventListener(Oe,ke)},$e.prototype.removeEventListener=function(Oe,ke){this.eventListeners.removeEventListener(Oe,ke)},$e.prototype.renderState=function(Oe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Oe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$e.prototype.focus=function(){var Oe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ke){return ke(new Bt(Oe))}))},$e.prototype.blur=function(){var Oe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ke){return ke(new Bt(Oe))}))},$e.instanceCounter=0,$e}()},67842:function(Re){"use strict";var Ee,le=59;Re.exports=ce;function ce(Pe){var Me="&"+Pe+";",Ie;return Ee=Ee||document.createElement("i"),Ee.innerHTML=Me,Ie=Ee.textContent,Ie.charCodeAt(Ie.length-1)===le&&Pe!=="semi"||Ie===Me?!1:Ie}},12256:function(Re,Ee,le){"use strict";var ce=le(47854),Pe=le(80501),Me=le(22347),Ie=le(65207),je=le(21127),Te=le(67842);Re.exports=fn;var Ge={}.hasOwnProperty,st=String.fromCharCode,Qe=Function.prototype,We={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},mt=9,it=10,kt=12,Fe=32,ne=38,te=59,he=60,se=61,ge=35,ye=88,be=120,Ae=65533,Le="named",Ve="hexadecimal",et="decimal",Je={};Je[Ve]=16,Je[et]=10;var rt={};rt[Le]=je,rt[et]=Me,rt[Ve]=Ie;var at=1,tt=2,Et=3,Lt=4,Ut=5,on=6,an=7,Kt={};Kt[at]="Named character references must be terminated by a semicolon",Kt[tt]="Numeric character references must be terminated by a semicolon",Kt[Et]="Named character references cannot be empty",Kt[Lt]="Numeric character references cannot be empty",Kt[Ut]="Named character references must be known",Kt[on]="Numeric character references cannot be disallowed",Kt[an]="Numeric character references cannot be outside the permissible Unicode range";function fn(Qt,un){var Nt={},hn,cn;un||(un={});for(cn in We)hn=un[cn],Nt[cn]=hn==null?We[cn]:hn;return(Nt.position.indent||Nt.position.start)&&(Nt.indent=Nt.position.indent||[],Nt.position=Nt.position.start),bt(Qt,Nt)}function bt(Qt,un){var Nt=un.additional,hn=un.nonTerminated,cn=un.text,Qn=un.reference,Bt=un.warning,Pt=un.textContext,Wt=un.referenceContext,An=un.warningContext,Nn=un.position,$e=un.indent||[],Oe=Qt.length,ke=0,Ke=-1,lt=Nn.column||1,Ue=Nn.line||1,gt="",tn=[],Un,qn,nn,Ht,sn,vn,Ln,xn,_t,Vn,Kn,Tn,jn,Mi,Gn,wt,Si,wi,Vt;for(typeof Nt=="string"&&(Nt=Nt.charCodeAt(0)),wt=qi(),xn=Bt?lr:Qe,ke--,Oe++;++ke<Oe;)if(sn===it&&(lt=$e[Ke]||1),sn=Qt.charCodeAt(ke),sn===ne){if(Ln=Qt.charCodeAt(ke+1),Ln===mt||Ln===it||Ln===kt||Ln===Fe||Ln===ne||Ln===he||Ln!==Ln||Nt&&Ln===Nt){gt+=st(sn),lt++;continue}for(jn=ke+1,Tn=jn,Vt=jn,Ln===ge?(Vt=++Tn,Ln=Qt.charCodeAt(Vt),Ln===ye||Ln===be?(Mi=Ve,Vt=++Tn):Mi=et):Mi=Le,Un="",Kn="",Ht="",Gn=rt[Mi],Vt--;++Vt<Oe&&(Ln=Qt.charCodeAt(Vt),!!Gn(Ln));)Ht+=st(Ln),Mi===Le&&Ge.call(ce,Ht)&&(Un=Ht,Kn=ce[Ht]);nn=Qt.charCodeAt(Vt)===te,nn&&(Vt++,qn=Mi===Le?Te(Ht):!1,qn&&(Un=Ht,Kn=qn)),wi=1+Vt-jn,!nn&&!hn||(Ht?Mi===Le?(nn&&!Kn?xn(Ut,1):(Un!==Ht&&(Vt=Tn+Un.length,wi=1+Vt-Tn,nn=!1),nn||(_t=Un?at:Et,un.attribute?(Ln=Qt.charCodeAt(Vt),Ln===se?(xn(_t,wi),Kn=null):je(Ln)?Kn=null:xn(_t,wi)):xn(_t,wi))),vn=Kn):(nn||xn(tt,wi),vn=parseInt(Ht,Je[Mi]),dt(vn)?(xn(an,wi),vn=st(Ae)):vn in Pe?(xn(on,wi),vn=Pe[vn]):(Vn="",ct(vn)&&xn(on,wi),vn>65535&&(vn-=65536,Vn+=st(vn>>>10|55296),vn=56320|vn&1023),vn=Vn+st(vn))):Mi!==Le&&xn(Lt,wi)),vn?(rr(),wt=qi(),ke=Vt-1,lt+=Vt-jn+1,tn.push(vn),Si=qi(),Si.offset++,Qn&&Qn.call(Wt,vn,{start:wt,end:Si},Qt.slice(jn-1,Vt)),wt=Si):(Ht=Qt.slice(jn-1,Vt),gt+=Ht,lt+=Ht.length,ke=Vt-1)}else sn===10&&(Ue++,Ke++,lt=0),sn===sn?(gt+=st(sn),lt++):rr();return tn.join("");function qi(){return{line:Ue,column:lt,offset:ke+(Nn.offset||0)}}function lr(In,Br){var Tr=qi();Tr.column+=Br,Tr.offset+=Br,Bt.call(An,Kt[In],Tr,In)}function rr(){gt&&(tn.push(gt),cn&&cn.call(Pt,gt,{start:wt,end:qi()}),gt="")}}function dt(Qt){return Qt>=55296&&Qt<=57343||Qt>1114111}function ct(Qt){return Qt>=1&&Qt<=8||Qt===11||Qt>=13&&Qt<=31||Qt>=127&&Qt<=159||Qt>=64976&&Qt<=65007||(Qt&65535)===65535||(Qt&65535)===65534}},68398:function(Re,Ee,le){var ce=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Pe=function(Me){var Ie=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,je=0,Te={},Ge={manual:Me.Prism&&Me.Prism.manual,disableWorkerMessageHandler:Me.Prism&&Me.Prism.disableWorkerMessageHandler,util:{encode:function se(ge){return ge instanceof st?new st(ge.type,se(ge.content),ge.alias):Array.isArray(ge)?ge.map(se):ge.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(se){return Object.prototype.toString.call(se).slice(8,-1)},objId:function(se){return se.__id||Object.defineProperty(se,"__id",{value:++je}),se.__id},clone:function se(ge,ye){ye=ye||{};var be,Ae;switch(Ge.util.type(ge)){case"Object":if(Ae=Ge.util.objId(ge),ye[Ae])return ye[Ae];be={},ye[Ae]=be;for(var Le in ge)ge.hasOwnProperty(Le)&&(be[Le]=se(ge[Le],ye));return be;case"Array":return Ae=Ge.util.objId(ge),ye[Ae]?ye[Ae]:(be=[],ye[Ae]=be,ge.forEach(function(Ve,et){be[et]=se(Ve,ye)}),be);default:return ge}},getLanguage:function(se){for(;se;){var ge=Ie.exec(se.className);if(ge)return ge[1].toLowerCase();se=se.parentElement}return"none"},setLanguage:function(se,ge){se.className=se.className.replace(RegExp(Ie,"gi"),""),se.classList.add("language-"+ge)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(be){var se=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(be.stack)||[])[1];if(se){var ge=document.getElementsByTagName("script");for(var ye in ge)if(ge[ye].src==se)return ge[ye]}return null}},isActive:function(se,ge,ye){for(var be="no-"+ge;se;){var Ae=se.classList;if(Ae.contains(ge))return!0;if(Ae.contains(be))return!1;se=se.parentElement}return!!ye}},languages:{plain:Te,plaintext:Te,text:Te,txt:Te,extend:function(se,ge){var ye=Ge.util.clone(Ge.languages[se]);for(var be in ge)ye[be]=ge[be];return ye},insertBefore:function(se,ge,ye,be){be=be||Ge.languages;var Ae=be[se],Le={};for(var Ve in Ae)if(Ae.hasOwnProperty(Ve)){if(Ve==ge)for(var et in ye)ye.hasOwnProperty(et)&&(Le[et]=ye[et]);ye.hasOwnProperty(Ve)||(Le[Ve]=Ae[Ve])}var Je=be[se];return be[se]=Le,Ge.languages.DFS(Ge.languages,function(rt,at){at===Je&&rt!=se&&(this[rt]=Le)}),Le},DFS:function se(ge,ye,be,Ae){Ae=Ae||{};var Le=Ge.util.objId;for(var Ve in ge)if(ge.hasOwnProperty(Ve)){ye.call(ge,Ve,ge[Ve],be||Ve);var et=ge[Ve],Je=Ge.util.type(et);Je==="Object"&&!Ae[Le(et)]?(Ae[Le(et)]=!0,se(et,ye,null,Ae)):Je==="Array"&&!Ae[Le(et)]&&(Ae[Le(et)]=!0,se(et,ye,Ve,Ae))}}},plugins:{},highlightAll:function(se,ge){Ge.highlightAllUnder(document,se,ge)},highlightAllUnder:function(se,ge,ye){var be={callback:ye,container:se,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Ge.hooks.run("before-highlightall",be),be.elements=Array.prototype.slice.apply(be.container.querySelectorAll(be.selector)),Ge.hooks.run("before-all-elements-highlight",be);for(var Ae=0,Le;Le=be.elements[Ae++];)Ge.highlightElement(Le,ge===!0,be.callback)},highlightElement:function(se,ge,ye){var be=Ge.util.getLanguage(se),Ae=Ge.languages[be];Ge.util.setLanguage(se,be);var Le=se.parentElement;Le&&Le.nodeName.toLowerCase()==="pre"&&Ge.util.setLanguage(Le,be);var Ve=se.textContent,et={element:se,language:be,grammar:Ae,code:Ve};function Je(at){et.highlightedCode=at,Ge.hooks.run("before-insert",et),et.element.innerHTML=et.highlightedCode,Ge.hooks.run("after-highlight",et),Ge.hooks.run("complete",et),ye&&ye.call(et.element)}if(Ge.hooks.run("before-sanity-check",et),Le=et.element.parentElement,Le&&Le.nodeName.toLowerCase()==="pre"&&!Le.hasAttribute("tabindex")&&Le.setAttribute("tabindex","0"),!et.code){Ge.hooks.run("complete",et),ye&&ye.call(et.element);return}if(Ge.hooks.run("before-highlight",et),!et.grammar){Je(Ge.util.encode(et.code));return}if(ge&&Me.Worker){var rt=new Worker(Ge.filename);rt.onmessage=function(at){Je(at.data)},rt.postMessage(JSON.stringify({language:et.language,code:et.code,immediateClose:!0}))}else Je(Ge.highlight(et.code,et.grammar,et.language))},highlight:function(se,ge,ye){var be={code:se,grammar:ge,language:ye};if(Ge.hooks.run("before-tokenize",be),!be.grammar)throw new Error('The language "'+be.language+'" has no grammar.');return be.tokens=Ge.tokenize(be.code,be.grammar),Ge.hooks.run("after-tokenize",be),st.stringify(Ge.util.encode(be.tokens),be.language)},tokenize:function(se,ge){var ye=ge.rest;if(ye){for(var be in ye)ge[be]=ye[be];delete ge.rest}var Ae=new mt;return it(Ae,Ae.head,se),We(se,Ae,ge,Ae.head,0),Fe(Ae)},hooks:{all:{},add:function(se,ge){var ye=Ge.hooks.all;ye[se]=ye[se]||[],ye[se].push(ge)},run:function(se,ge){var ye=Ge.hooks.all[se];if(!(!ye||!ye.length))for(var be=0,Ae;Ae=ye[be++];)Ae(ge)}},Token:st};Me.Prism=Ge;function st(se,ge,ye,be){this.type=se,this.content=ge,this.alias=ye,this.length=(be||"").length|0}st.stringify=function se(ge,ye){if(typeof ge=="string")return ge;if(Array.isArray(ge)){var be="";return ge.forEach(function(Je){be+=se(Je,ye)}),be}var Ae={type:ge.type,content:se(ge.content,ye),tag:"span",classes:["token",ge.type],attributes:{},language:ye},Le=ge.alias;Le&&(Array.isArray(Le)?Array.prototype.push.apply(Ae.classes,Le):Ae.classes.push(Le)),Ge.hooks.run("wrap",Ae);var Ve="";for(var et in Ae.attributes)Ve+=" "+et+'="'+(Ae.attributes[et]||"").replace(/"/g,""")+'"';return"<"+Ae.tag+' class="'+Ae.classes.join(" ")+'"'+Ve+">"+Ae.content+"</"+Ae.tag+">"};function Qe(se,ge,ye,be){se.lastIndex=ge;var Ae=se.exec(ye);if(Ae&&be&&Ae[1]){var Le=Ae[1].length;Ae.index+=Le,Ae[0]=Ae[0].slice(Le)}return Ae}function We(se,ge,ye,be,Ae,Le){for(var Ve in ye)if(!(!ye.hasOwnProperty(Ve)||!ye[Ve])){var et=ye[Ve];et=Array.isArray(et)?et:[et];for(var Je=0;Je<et.length;++Je){if(Le&&Le.cause==Ve+","+Je)return;var rt=et[Je],at=rt.inside,tt=!!rt.lookbehind,Et=!!rt.greedy,Lt=rt.alias;if(Et&&!rt.pattern.global){var Ut=rt.pattern.toString().match(/[imsuy]*$/)[0];rt.pattern=RegExp(rt.pattern.source,Ut+"g")}for(var on=rt.pattern||rt,an=be.next,Kt=Ae;an!==ge.tail&&!(Le&&Kt>=Le.reach);Kt+=an.value.length,an=an.next){var fn=an.value;if(ge.length>se.length)return;if(!(fn instanceof st)){var bt=1,dt;if(Et){if(dt=Qe(on,Kt,se,tt),!dt||dt.index>=se.length)break;var Nt=dt.index,ct=dt.index+dt[0].length,Qt=Kt;for(Qt+=an.value.length;Nt>=Qt;)an=an.next,Qt+=an.value.length;if(Qt-=an.value.length,Kt=Qt,an.value instanceof st)continue;for(var un=an;un!==ge.tail&&(Qt<ct||typeof un.value=="string");un=un.next)bt++,Qt+=un.value.length;bt--,fn=se.slice(Kt,Qt),dt.index-=Kt}else if(dt=Qe(on,0,fn,tt),!dt)continue;var Nt=dt.index,hn=dt[0],cn=fn.slice(0,Nt),Qn=fn.slice(Nt+hn.length),Bt=Kt+fn.length;Le&&Bt>Le.reach&&(Le.reach=Bt);var Pt=an.prev;cn&&(Pt=it(ge,Pt,cn),Kt+=cn.length),kt(ge,Pt,bt);var Wt=new st(Ve,at?Ge.tokenize(hn,at):hn,Lt,hn);if(an=it(ge,Pt,Wt),Qn&&it(ge,an,Qn),bt>1){var An={cause:Ve+","+Je,reach:Bt};We(se,ge,ye,an.prev,Kt,An),Le&&An.reach>Le.reach&&(Le.reach=An.reach)}}}}}}function mt(){var se={value:null,prev:null,next:null},ge={value:null,prev:se,next:null};se.next=ge,this.head=se,this.tail=ge,this.length=0}function it(se,ge,ye){var be=ge.next,Ae={value:ye,prev:ge,next:be};return ge.next=Ae,be.prev=Ae,se.length++,Ae}function kt(se,ge,ye){for(var be=ge.next,Ae=0;Ae<ye&&be!==se.tail;Ae++)be=be.next;ge.next=be,be.prev=ge,se.length-=Ae}function Fe(se){for(var ge=[],ye=se.head.next;ye!==se.tail;)ge.push(ye.value),ye=ye.next;return ge}if(!Me.document)return Me.addEventListener&&(Ge.disableWorkerMessageHandler||Me.addEventListener("message",function(se){var ge=JSON.parse(se.data),ye=ge.language,be=ge.code,Ae=ge.immediateClose;Me.postMessage(Ge.highlight(be,Ge.languages[ye],ye)),Ae&&Me.close()},!1)),Ge;var ne=Ge.util.currentScript();ne&&(Ge.filename=ne.src,ne.hasAttribute("data-manual")&&(Ge.manual=!0));function te(){Ge.manual||Ge.highlightAll()}if(!Ge.manual){var he=document.readyState;he==="loading"||he==="interactive"&&ne&&ne.defer?document.addEventListener("DOMContentLoaded",te):window.requestAnimationFrame?window.requestAnimationFrame(te):window.setTimeout(te,16)}return Ge}(ce);Re.exports&&(Re.exports=Pe),typeof le.g!="undefined"&&(le.g.Prism=Pe)},88914:function(Re,Ee,le){"use strict";var ce=le(47178),Pe=le(19095),Me=le(1969),Ie="data";Re.exports=st;var je=/^data[-\w.:]+$/i,Te=/-[a-z]/g,Ge=/[A-Z]/g;function st(kt,Fe){var ne=ce(Fe),te=Fe,he=Me;return ne in kt.normal?kt.property[kt.normal[ne]]:(ne.length>4&&ne.slice(0,4)===Ie&&je.test(Fe)&&(Fe.charAt(4)==="-"?te=Qe(Fe):Fe=We(Fe),he=Pe),new he(te,Fe))}function Qe(kt){var Fe=kt.slice(5).replace(Te,it);return Ie+Fe.charAt(0).toUpperCase()+Fe.slice(1)}function We(kt){var Fe=kt.slice(4);return Te.test(Fe)?kt:(Fe=Fe.replace(Ge,mt),Fe.charAt(0)!=="-"&&(Fe="-"+Fe),Ie+Fe)}function mt(kt){return"-"+kt.toLowerCase()}function it(kt){return kt.charAt(1).toUpperCase()}},18795:function(Re,Ee,le){"use strict";var ce=le(83576),Pe=le(8179),Me=le(59780),Ie=le(68244),je=le(20019),Te=le(38567);Re.exports=ce([Me,Pe,Ie,je,Te])},20019:function(Re,Ee,le){"use strict";var ce=le(70167),Pe=le(79318),Me=ce.booleanish,Ie=ce.number,je=ce.spaceSeparated;Re.exports=Pe({transform:Te,properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:Ie,ariaColIndex:Ie,ariaColSpan:Ie,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:je,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:Ie,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:Ie,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:je,ariaRowCount:Ie,ariaRowIndex:Ie,ariaRowSpan:Ie,ariaSelected:Me,ariaSetSize:Ie,ariaSort:null,ariaValueMax:Ie,ariaValueMin:Ie,ariaValueNow:Ie,ariaValueText:null,role:null}});function Te(Ge,st){return st==="role"?st:"aria-"+st.slice(4).toLowerCase()}},38567:function(Re,Ee,le){"use strict";var ce=le(70167),Pe=le(79318),Me=le(85804),Ie=ce.boolean,je=ce.overloadedBoolean,Te=ce.booleanish,Ge=ce.number,st=ce.spaceSeparated,Qe=ce.commaSeparated;Re.exports=Pe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Me,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qe,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:st,autoFocus:Ie,autoPlay:Ie,capture:Ie,charSet:null,checked:Ie,cite:null,className:st,cols:Ge,colSpan:null,content:null,contentEditable:Te,controls:Ie,controlsList:st,coords:Ge|Qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:je,draggable:Te,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:st,height:Ge,hidden:Ie,high:Ge,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:Qe,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:st,itemRef:st,itemScope:Ie,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:Ge,manifest:null,max:null,maxLength:Ge,media:null,method:null,min:null,minLength:Ge,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ie,optimum:Ge,pattern:null,ping:st,placeholder:null,playsInline:Ie,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:st,required:Ie,reversed:Ie,rows:Ge,rowSpan:Ge,sandbox:st,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shape:null,size:Ge,sizes:null,slot:null,span:Ge,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:Qe,start:Ge,step:null,style:null,tabIndex:Ge,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Te,width:Ge,wrap:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:Ge,borderColor:null,bottomMargin:Ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:Ge,leftMargin:Ge,link:null,longDesc:null,lowSrc:null,marginHeight:Ge,marginWidth:Ge,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:Ge,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:Ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:Ge,security:null,unselectable:null}})},85804:function(Re,Ee,le){"use strict";var ce=le(56432);Re.exports=Pe;function Pe(Me,Ie){return ce(Me,Ie.toLowerCase())}},56432:function(Re){"use strict";Re.exports=Ee;function Ee(le,ce){return ce in le?le[ce]:ce}},79318:function(Re,Ee,le){"use strict";var ce=le(47178),Pe=le(44347),Me=le(19095);Re.exports=Ie;function Ie(je){var Te=je.space,Ge=je.mustUseProperty||[],st=je.attributes||{},Qe=je.properties,We=je.transform,mt={},it={},kt,Fe;for(kt in Qe)Fe=new Me(kt,We(st,kt),Qe[kt],Te),Ge.indexOf(kt)!==-1&&(Fe.mustUseProperty=!0),mt[kt]=Fe,it[ce(kt)]=kt,it[ce(Fe.attribute)]=kt;return new Pe(mt,it,Te)}},19095:function(Re,Ee,le){"use strict";var ce=le(1969),Pe=le(70167);Re.exports=je,je.prototype=new ce,je.prototype.defined=!0;var Me=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ie=Me.length;function je(Ge,st,Qe,We){var mt=-1,it;for(Te(this,"space",We),ce.call(this,Ge,st);++mt<Ie;)it=Me[mt],Te(this,it,(Qe&Pe[it])===Pe[it])}function Te(Ge,st,Qe){Qe&&(Ge[st]=Qe)}},1969:function(Re){"use strict";Re.exports=le;var Ee=le.prototype;Ee.space=null,Ee.attribute=null,Ee.property=null,Ee.boolean=!1,Ee.booleanish=!1,Ee.overloadedBoolean=!1,Ee.number=!1,Ee.commaSeparated=!1,Ee.spaceSeparated=!1,Ee.commaOrSpaceSeparated=!1,Ee.mustUseProperty=!1,Ee.defined=!1;function le(ce,Pe){this.property=ce,this.attribute=Pe}},83576:function(Re,Ee,le){"use strict";var ce=le(97270),Pe=le(44347);Re.exports=Me;function Me(Ie){for(var je=Ie.length,Te=[],Ge=[],st=-1,Qe,We;++st<je;)Qe=Ie[st],Te.push(Qe.property),Ge.push(Qe.normal),We=Qe.space;return new Pe(ce.apply(null,Te),ce.apply(null,Ge),We)}},44347:function(Re){"use strict";Re.exports=le;var Ee=le.prototype;Ee.space=null,Ee.normal={},Ee.property={};function le(ce,Pe,Me){this.property=ce,this.normal=Pe,Me&&(this.space=Me)}},70167:function(Re,Ee){"use strict";var le=0;Ee.boolean=ce(),Ee.booleanish=ce(),Ee.overloadedBoolean=ce(),Ee.number=ce(),Ee.spaceSeparated=ce(),Ee.commaSeparated=ce(),Ee.commaOrSpaceSeparated=ce();function ce(){return Math.pow(2,++le)}},8179:function(Re,Ee,le){"use strict";var ce=le(79318);Re.exports=ce({space:"xlink",transform:Pe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Pe(Me,Ie){return"xlink:"+Ie.slice(5).toLowerCase()}},59780:function(Re,Ee,le){"use strict";var ce=le(79318);Re.exports=ce({space:"xml",transform:Pe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pe(Me,Ie){return"xml:"+Ie.slice(3).toLowerCase()}},68244:function(Re,Ee,le){"use strict";var ce=le(79318),Pe=le(85804);Re.exports=ce({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pe,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Re){"use strict";Re.exports=Ee;function Ee(le){return le.toLowerCase()}},66042:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Et}});var ce=le(98506),Pe=le(16886),Me=le(43403),Ie=le(34280),je=le(59301),Te=je.createContext(null),Ge=je.createContext({}),st=Te,Qe=le(52873),We=le(67711),mt=le(92310),it=le.n(mt),kt=le(77900),Fe=le(10228),ne=le(26112),te=le(33346),he=le(8654),se=["prefixCls","className","containerRef"],ge=function(Ut){var on=Ut.prefixCls,an=Ut.className,Kt=Ut.containerRef,fn=(0,te.Z)(Ut,se),bt=je.useContext(Ge),dt=bt.panel,ct=(0,he.x1)(dt,Kt);return je.createElement("div",(0,We.Z)({className:it()("".concat(on,"-content"),an),role:"dialog",ref:ct},(0,ne.Z)(Ut,{aria:!0}),{"aria-modal":"true"},fn))},ye=ge,be=le(48736);function Ae(Lt){return typeof Lt=="string"&&String(Number(Lt))===Lt?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Lt)):Lt}function Le(Lt){warning(!("wrapperClassName"in Lt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Lt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ve={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function et(Lt,Ut){var on,an,Kt,fn=Lt.prefixCls,bt=Lt.open,dt=Lt.placement,ct=Lt.inline,Qt=Lt.push,un=Lt.forceRender,Nt=Lt.autoFocus,hn=Lt.keyboard,cn=Lt.classNames,Qn=Lt.rootClassName,Bt=Lt.rootStyle,Pt=Lt.zIndex,Wt=Lt.className,An=Lt.id,Nn=Lt.style,$e=Lt.motion,Oe=Lt.width,ke=Lt.height,Ke=Lt.children,lt=Lt.mask,Ue=Lt.maskClosable,gt=Lt.maskMotion,tn=Lt.maskClassName,Un=Lt.maskStyle,qn=Lt.afterOpenChange,nn=Lt.onClose,Ht=Lt.onMouseEnter,sn=Lt.onMouseOver,vn=Lt.onMouseLeave,Ln=Lt.onClick,xn=Lt.onKeyDown,_t=Lt.onKeyUp,Vn=Lt.styles,Kn=Lt.drawerRender,Tn=je.useRef(),jn=je.useRef(),Mi=je.useRef();je.useImperativeHandle(Ut,function(){return Tn.current});var Gn=function(bi){var di=bi.keyCode,Ri=bi.shiftKey;switch(di){case Fe.Z.TAB:{if(di===Fe.Z.TAB){if(!Ri&&document.activeElement===Mi.current){var Fi;(Fi=jn.current)===null||Fi===void 0||Fi.focus({preventScroll:!0})}else if(Ri&&document.activeElement===jn.current){var Ti;(Ti=Mi.current)===null||Ti===void 0||Ti.focus({preventScroll:!0})}}break}case Fe.Z.ESC:{nn&&hn&&(bi.stopPropagation(),nn(bi));break}}};je.useEffect(function(){if(bt&&Nt){var Vi;(Vi=Tn.current)===null||Vi===void 0||Vi.focus({preventScroll:!0})}},[bt]);var wt=je.useState(!1),Si=(0,Pe.Z)(wt,2),wi=Si[0],Vt=Si[1],qi=je.useContext(st),lr;typeof Qt=="boolean"?lr=Qt?{}:{distance:0}:lr=Qt||{};var rr=(on=(an=(Kt=lr)===null||Kt===void 0?void 0:Kt.distance)!==null&&an!==void 0?an:qi==null?void 0:qi.pushDistance)!==null&&on!==void 0?on:180,In=je.useMemo(function(){return{pushDistance:rr,push:function(){Vt(!0)},pull:function(){Vt(!1)}}},[rr]);je.useEffect(function(){if(bt){var Vi;qi==null||(Vi=qi.push)===null||Vi===void 0||Vi.call(qi)}else{var bi;qi==null||(bi=qi.pull)===null||bi===void 0||bi.call(qi)}},[bt]),je.useEffect(function(){return function(){var Vi;qi==null||(Vi=qi.pull)===null||Vi===void 0||Vi.call(qi)}},[]);var Br=lt&&je.createElement(kt.default,(0,We.Z)({key:"mask"},gt,{visible:bt}),function(Vi,bi){var di=Vi.className,Ri=Vi.style;return je.createElement("div",{className:it()("".concat(fn,"-mask"),di,cn==null?void 0:cn.mask,tn),style:(0,ce.Z)((0,ce.Z)((0,ce.Z)({},Ri),Un),Vn==null?void 0:Vn.mask),onClick:Ue&&bt?nn:void 0,ref:bi})}),Tr=typeof $e=="function"?$e(dt):$e,Xi={};if(wi&&rr)switch(dt){case"top":Xi.transform="translateY(".concat(rr,"px)");break;case"bottom":Xi.transform="translateY(".concat(-rr,"px)");break;case"left":Xi.transform="translateX(".concat(rr,"px)");break;default:Xi.transform="translateX(".concat(-rr,"px)");break}dt==="left"||dt==="right"?Xi.width=Ae(Oe):Xi.height=Ae(ke);var Ji={onMouseEnter:Ht,onMouseOver:sn,onMouseLeave:vn,onClick:Ln,onKeyDown:xn,onKeyUp:_t},Nr=je.createElement(kt.default,(0,We.Z)({key:"panel"},Tr,{visible:bt,forceRender:un,onVisibleChanged:function(bi){qn==null||qn(bi)},removeOnLeave:!1,leavedClassName:"".concat(fn,"-content-wrapper-hidden")}),function(Vi,bi){var di=Vi.className,Ri=Vi.style,Fi=je.createElement(ye,(0,We.Z)({id:An,containerRef:bi,prefixCls:fn,className:it()(Wt,cn==null?void 0:cn.content),style:(0,ce.Z)((0,ce.Z)({},Nn),Vn==null?void 0:Vn.content)},(0,ne.Z)(Lt,{aria:!0}),Ji),Ke);return je.createElement("div",(0,We.Z)({className:it()("".concat(fn,"-content-wrapper"),cn==null?void 0:cn.wrapper,di),style:(0,ce.Z)((0,ce.Z)((0,ce.Z)({},Xi),Ri),Vn==null?void 0:Vn.wrapper)},(0,ne.Z)(Lt,{data:!0})),Kn?Kn(Fi):Fi)}),Be=(0,ce.Z)({},Bt);return Pt&&(Be.zIndex=Pt),je.createElement(st.Provider,{value:In},je.createElement("div",{className:it()(fn,"".concat(fn,"-").concat(dt),Qn,(0,Qe.Z)((0,Qe.Z)({},"".concat(fn,"-open"),bt),"".concat(fn,"-inline"),ct)),style:Be,tabIndex:-1,ref:Tn,onKeyDown:Gn},Br,je.createElement("div",{tabIndex:0,ref:jn,style:Ve,"aria-hidden":"true","data-sentinel":"start"}),Nr,je.createElement("div",{tabIndex:0,ref:Mi,style:Ve,"aria-hidden":"true","data-sentinel":"end"})))}var Je=je.forwardRef(et),rt=Je,at=function(Ut){var on=Ut.open,an=on===void 0?!1:on,Kt=Ut.prefixCls,fn=Kt===void 0?"rc-drawer":Kt,bt=Ut.placement,dt=bt===void 0?"right":bt,ct=Ut.autoFocus,Qt=ct===void 0?!0:ct,un=Ut.keyboard,Nt=un===void 0?!0:un,hn=Ut.width,cn=hn===void 0?378:hn,Qn=Ut.mask,Bt=Qn===void 0?!0:Qn,Pt=Ut.maskClosable,Wt=Pt===void 0?!0:Pt,An=Ut.getContainer,Nn=Ut.forceRender,$e=Ut.afterOpenChange,Oe=Ut.destroyOnClose,ke=Ut.onMouseEnter,Ke=Ut.onMouseOver,lt=Ut.onMouseLeave,Ue=Ut.onClick,gt=Ut.onKeyDown,tn=Ut.onKeyUp,Un=Ut.panelRef,qn=je.useState(!1),nn=(0,Pe.Z)(qn,2),Ht=nn[0],sn=nn[1],vn=je.useState(!1),Ln=(0,Pe.Z)(vn,2),xn=Ln[0],_t=Ln[1];(0,Ie.Z)(function(){_t(!0)},[]);var Vn=xn?an:!1,Kn=je.useRef(),Tn=je.useRef();(0,Ie.Z)(function(){Vn&&(Tn.current=document.activeElement)},[Vn]);var jn=function(wi){var Vt;if(sn(wi),$e==null||$e(wi),!wi&&Tn.current&&!((Vt=Kn.current)!==null&&Vt!==void 0&&Vt.contains(Tn.current))){var qi;(qi=Tn.current)===null||qi===void 0||qi.focus({preventScroll:!0})}},Mi=je.useMemo(function(){return{panel:Un}},[Un]);if(!Nn&&!Ht&&!Vn&&Oe)return null;var Gn={onMouseEnter:ke,onMouseOver:Ke,onMouseLeave:lt,onClick:Ue,onKeyDown:gt,onKeyUp:tn},wt=(0,ce.Z)((0,ce.Z)({},Ut),{},{open:Vn,prefixCls:fn,placement:dt,autoFocus:Qt,keyboard:Nt,width:cn,mask:Bt,maskClosable:Wt,inline:An===!1,afterOpenChange:jn,ref:Kn},Gn);return je.createElement(Ge.Provider,{value:Mi},je.createElement(Me.Z,{open:Vn||Nn||Ht,autoDestroy:!1,getContainer:An,autoLock:Bt&&(Vn||Ht)},je.createElement(rt,wt)))},tt=at,Et=tt},91574:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Ln}});var ce=le(67711),Pe=le(98506),Me=le(52873),Ie=le(16886),je=le(26420),Te=le(33346),Ge=le(92310),st=le.n(Ge),Qe=/margin|padding|width|height|max|min|offset/,We={left:!0,top:!0},mt={cssFloat:1,styleFloat:1,float:1};function it(xn){return xn.nodeType===1?xn.ownerDocument.defaultView.getComputedStyle(xn,null):{}}function kt(xn,_t,Vn){if(_t=_t.toLowerCase(),Vn==="auto"){if(_t==="height")return xn.offsetHeight;if(_t==="width")return xn.offsetWidth}return _t in We||(We[_t]=Qe.test(_t)),We[_t]?parseFloat(Vn)||0:Vn}function Fe(xn,_t){var Vn=arguments.length,Kn=it(xn);return _t=mt[_t]?"cssFloat"in xn.style?"cssFloat":"styleFloat":_t,Vn===1?Kn:kt(xn,_t,Kn[_t]||xn.style[_t])}function ne(xn,_t,Vn){var Kn=arguments.length;if(_t=mt[_t]?"cssFloat"in xn.style?"cssFloat":"styleFloat":_t,Kn===3)return typeof Vn=="number"&&Qe.test(_t)&&(Vn="".concat(Vn,"px")),xn.style[_t]=Vn,Vn;for(var Tn in _t)_t.hasOwnProperty(Tn)&&ne(xn,Tn,_t[Tn]);return it(xn)}function te(xn){return xn===document.body?document.documentElement.clientWidth:xn.offsetWidth}function he(xn){return xn===document.body?window.innerHeight||document.documentElement.clientHeight:xn.offsetHeight}function se(){var xn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:xn,height:_t}}function ge(){var xn=document.documentElement.clientWidth,_t=window.innerHeight||document.documentElement.clientHeight;return{width:xn,height:_t}}function ye(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(xn){var _t=xn.getBoundingClientRect(),Vn=document.documentElement;return{left:_t.left+(window.pageXOffset||Vn.scrollLeft)-(Vn.clientLeft||document.body.clientLeft||0),top:_t.top+(window.pageYOffset||Vn.scrollTop)-(Vn.clientTop||document.body.clientTop||0)}}var Ae=le(18929),Le=le(59301),Ve=le(55311),et=le(8224),Je=le(10228),rt=le(43403),at=le(77900),tt=Le.createContext(null),Et=function(_t){var Vn=_t.visible,Kn=_t.maskTransitionName,Tn=_t.getContainer,jn=_t.prefixCls,Mi=_t.rootClassName,Gn=_t.icons,wt=_t.countRender,Si=_t.showSwitch,wi=_t.showProgress,Vt=_t.current,qi=_t.transform,lr=_t.count,rr=_t.scale,In=_t.minScale,Br=_t.maxScale,Tr=_t.closeIcon,Xi=_t.onActive,Ji=_t.onClose,Nr=_t.onZoomIn,Be=_t.onZoomOut,Vi=_t.onRotateRight,bi=_t.onRotateLeft,di=_t.onFlipX,Ri=_t.onFlipY,Fi=_t.onReset,Ti=_t.toolbarRender,Lr=_t.zIndex,ln=_t.image,pn=(0,Le.useContext)(tt),$t=Gn.rotateLeft,wn=Gn.rotateRight,Gi=Gn.zoomIn,Ci=Gn.zoomOut,Yi=Gn.close,mn=Gn.left,Rn=Gn.right,Ui=Gn.flipX,or=Gn.flipY,ci="".concat(jn,"-operations-operation");Le.useEffect(function(){var yn=function(Zi){Zi.keyCode===Je.Z.ESC&&Ji()};return Vn&&window.addEventListener("keydown",yn),function(){window.removeEventListener("keydown",yn)}},[Vn]);var yt=function(ir,Zi){ir.preventDefault(),ir.stopPropagation(),Xi(Zi)},zt=Le.useCallback(function(yn){var ir=yn.type,Zi=yn.disabled,Fn=yn.onClick,Li=yn.icon;return Le.createElement("div",{key:ir,className:st()(ci,"".concat(jn,"-operations-operation-").concat(ir),(0,Me.Z)({},"".concat(jn,"-operations-operation-disabled"),!!Zi)),onClick:Fn},Li)},[ci,jn]),li=Si?zt({icon:mn,onClick:function(ir){return yt(ir,-1)},type:"prev",disabled:Vt===0}):void 0,ii=Si?zt({icon:Rn,onClick:function(ir){return yt(ir,1)},type:"next",disabled:Vt===lr-1}):void 0,Rt=zt({icon:or,onClick:Ri,type:"flipY"}),Jn=zt({icon:Ui,onClick:di,type:"flipX"}),Ni=zt({icon:$t,onClick:bi,type:"rotateLeft"}),en=zt({icon:wn,onClick:Vi,type:"rotateRight"}),ze=zt({icon:Ci,onClick:Be,type:"zoomOut",disabled:rr<=In}),si=zt({icon:Gi,onClick:Nr,type:"zoomIn",disabled:rr===Br}),oi=Le.createElement("div",{className:"".concat(jn,"-operations")},Rt,Jn,Ni,en,ze,si);return Le.createElement(at.default,{visible:Vn,motionName:Kn},function(yn){var ir=yn.className,Zi=yn.style;return Le.createElement(rt.Z,{open:!0,getContainer:Tn!=null?Tn:document.body},Le.createElement("div",{className:st()("".concat(jn,"-operations-wrapper"),ir,Mi),style:(0,Pe.Z)((0,Pe.Z)({},Zi),{},{zIndex:Lr})},Tr===null?null:Le.createElement("button",{className:"".concat(jn,"-close"),onClick:Ji},Tr||Yi),Si&&Le.createElement(Le.Fragment,null,Le.createElement("div",{className:st()("".concat(jn,"-switch-left"),(0,Me.Z)({},"".concat(jn,"-switch-left-disabled"),Vt===0)),onClick:function(Li){return yt(Li,-1)}},mn),Le.createElement("div",{className:st()("".concat(jn,"-switch-right"),(0,Me.Z)({},"".concat(jn,"-switch-right-disabled"),Vt===lr-1)),onClick:function(Li){return yt(Li,1)}},Rn)),Le.createElement("div",{className:"".concat(jn,"-footer")},wi&&Le.createElement("div",{className:"".concat(jn,"-progress")},wt?wt(Vt+1,lr):"".concat(Vt+1," / ").concat(lr)),Ti?Ti(oi,(0,Pe.Z)((0,Pe.Z)({icons:{prevIcon:li,nextIcon:ii,flipYIcon:Rt,flipXIcon:Jn,rotateLeftIcon:Ni,rotateRightIcon:en,zoomOutIcon:ze,zoomInIcon:si},actions:{onActive:Xi,onFlipY:Ri,onFlipX:di,onRotateLeft:bi,onRotateRight:Vi,onZoomOut:Be,onZoomIn:Nr,onReset:Fi,onClose:Ji},transform:qi},pn?{current:Vt,total:lr}:{}),{},{image:ln})):oi)))})},Lt=Et,Ut=le(13697),on=le(16089),an={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Kt(xn,_t,Vn,Kn){var Tn=(0,Le.useRef)(null),jn=(0,Le.useRef)([]),Mi=(0,Le.useState)(an),Gn=(0,Ie.Z)(Mi,2),wt=Gn[0],Si=Gn[1],wi=function(rr){Si(an),(0,Ut.Z)(an,wt)||Kn==null||Kn({transform:an,action:rr})},Vt=function(rr,In){Tn.current===null&&(jn.current=[],Tn.current=(0,on.Z)(function(){Si(function(Br){var Tr=Br;return jn.current.forEach(function(Xi){Tr=(0,Pe.Z)((0,Pe.Z)({},Tr),Xi)}),Tn.current=null,Kn==null||Kn({transform:Tr,action:In}),Tr})})),jn.current.push((0,Pe.Z)((0,Pe.Z)({},wt),rr))},qi=function(rr,In,Br,Tr,Xi){var Ji=xn.current,Nr=Ji.width,Be=Ji.height,Vi=Ji.offsetWidth,bi=Ji.offsetHeight,di=Ji.offsetLeft,Ri=Ji.offsetTop,Fi=rr,Ti=wt.scale*rr;Ti>Vn?(Ti=Vn,Fi=Vn/wt.scale):Ti<_t&&(Ti=Xi?Ti:_t,Fi=Ti/wt.scale);var Lr=Br!=null?Br:innerWidth/2,ln=Tr!=null?Tr:innerHeight/2,pn=Fi-1,$t=pn*Nr*.5,wn=pn*Be*.5,Gi=pn*(Lr-wt.x-di),Ci=pn*(ln-wt.y-Ri),Yi=wt.x-(Gi-$t),mn=wt.y-(Ci-wn);if(rr<1&&Ti===1){var Rn=Vi*Ti,Ui=bi*Ti,or=ge(),ci=or.width,yt=or.height;Rn<=ci&&Ui<=yt&&(Yi=0,mn=0)}Vt({x:Yi,y:mn,scale:Ti},In)};return{transform:wt,resetTransform:wi,updateTransform:Vt,dispatchZoomChange:qi}}var fn=le(48736);function bt(xn,_t,Vn,Kn){var Tn=_t+Vn,jn=(Vn-Kn)/2;if(Vn>Kn){if(_t>0)return(0,Me.Z)({},xn,jn);if(_t<0&&Tn<Kn)return(0,Me.Z)({},xn,-jn)}else if(_t<0||Tn>Kn)return(0,Me.Z)({},xn,_t<0?jn:-jn);return{}}function dt(xn,_t,Vn,Kn){var Tn=ge(),jn=Tn.width,Mi=Tn.height,Gn=null;return xn<=jn&&_t<=Mi?Gn={x:0,y:0}:(xn>jn||_t>Mi)&&(Gn=(0,Pe.Z)((0,Pe.Z)({},bt("x",Vn,xn,jn)),bt("y",Kn,_t,Mi))),Gn}var ct=1,Qt=1;function un(xn,_t,Vn,Kn,Tn,jn,Mi){var Gn=Tn.rotate,wt=Tn.scale,Si=Tn.x,wi=Tn.y,Vt=(0,Le.useState)(!1),qi=(0,Ie.Z)(Vt,2),lr=qi[0],rr=qi[1],In=(0,Le.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Br=function(Be){!_t||Be.button!==0||(Be.preventDefault(),Be.stopPropagation(),In.current={diffX:Be.pageX-Si,diffY:Be.pageY-wi,transformX:Si,transformY:wi},rr(!0))},Tr=function(Be){Vn&&lr&&jn({x:Be.pageX-In.current.diffX,y:Be.pageY-In.current.diffY},"move")},Xi=function(){if(Vn&&lr){rr(!1);var Be=In.current,Vi=Be.transformX,bi=Be.transformY,di=Si!==Vi&&wi!==bi;if(!di)return;var Ri=xn.current.offsetWidth*wt,Fi=xn.current.offsetHeight*wt,Ti=xn.current.getBoundingClientRect(),Lr=Ti.left,ln=Ti.top,pn=Gn%180!==0,$t=dt(pn?Fi:Ri,pn?Ri:Fi,Lr,ln);$t&&jn((0,Pe.Z)({},$t),"dragRebound")}},Ji=function(Be){if(!(!Vn||Be.deltaY==0)){var Vi=Math.abs(Be.deltaY/100),bi=Math.min(Vi,Qt),di=ct+bi*Kn;Be.deltaY>0&&(di=ct/di),Mi(di,"wheel",Be.clientX,Be.clientY)}};return(0,Le.useEffect)(function(){var Nr,Be,Vi,bi;if(_t){Vi=(0,et.Z)(window,"mouseup",Xi,!1),bi=(0,et.Z)(window,"mousemove",Tr,!1);try{window.top!==window.self&&(Nr=(0,et.Z)(window.top,"mouseup",Xi,!1),Be=(0,et.Z)(window.top,"mousemove",Tr,!1))}catch(di){(0,fn.Kp)(!1,"[rc-image] ".concat(di))}}return function(){var di,Ri,Fi,Ti;(di=Vi)===null||di===void 0||di.remove(),(Ri=bi)===null||Ri===void 0||Ri.remove(),(Fi=Nr)===null||Fi===void 0||Fi.remove(),(Ti=Be)===null||Ti===void 0||Ti.remove()}},[Vn,lr,Si,wi,Gn,_t]),{isMoving:lr,onMouseDown:Br,onMouseMove:Tr,onMouseUp:Xi,onWheel:Ji}}function Nt(xn){return new Promise(function(_t){if(!xn){_t(!1);return}var Vn=document.createElement("img");Vn.onerror=function(){return _t(!1)},Vn.onload=function(){return _t(!0)},Vn.src=xn})}function hn(xn){var _t=xn.src,Vn=xn.isCustomPlaceholder,Kn=xn.fallback,Tn=(0,Le.useState)(Vn?"loading":"normal"),jn=(0,Ie.Z)(Tn,2),Mi=jn[0],Gn=jn[1],wt=(0,Le.useRef)(!1),Si=Mi==="error";(0,Le.useEffect)(function(){var lr=!0;return Nt(_t).then(function(rr){!rr&&lr&&Gn("error")}),function(){lr=!1}},[_t]),(0,Le.useEffect)(function(){Vn&&!wt.current?Gn("loading"):Si&&Gn("normal")},[_t]);var wi=function(){Gn("normal")},Vt=function(rr){wt.current=!1,Mi==="loading"&&rr!==null&&rr!==void 0&&rr.complete&&(rr.naturalWidth||rr.naturalHeight)&&(wt.current=!0,wi())},qi=Si&&Kn?{src:Kn}:{onLoad:wi,src:_t};return[Vt,qi,Mi]}function cn(xn,_t){var Vn=xn.x-_t.x,Kn=xn.y-_t.y;return Math.hypot(Vn,Kn)}function Qn(xn,_t,Vn,Kn){var Tn=cn(xn,Vn),jn=cn(_t,Kn);if(Tn===0&&jn===0)return[xn.x,xn.y];var Mi=Tn/(Tn+jn),Gn=xn.x+Mi*(_t.x-xn.x),wt=xn.y+Mi*(_t.y-xn.y);return[Gn,wt]}function Bt(xn,_t,Vn,Kn,Tn,jn,Mi){var Gn=Tn.rotate,wt=Tn.scale,Si=Tn.x,wi=Tn.y,Vt=(0,Le.useState)(!1),qi=(0,Ie.Z)(Vt,2),lr=qi[0],rr=qi[1],In=(0,Le.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Br=function(Be){In.current=(0,Pe.Z)((0,Pe.Z)({},In.current),Be)},Tr=function(Be){if(_t){Be.stopPropagation(),rr(!0);var Vi=Be.touches,bi=Vi===void 0?[]:Vi;bi.length>1?Br({point1:{x:bi[0].clientX,y:bi[0].clientY},point2:{x:bi[1].clientX,y:bi[1].clientY},eventType:"touchZoom"}):Br({point1:{x:bi[0].clientX-Si,y:bi[0].clientY-wi},eventType:"move"})}},Xi=function(Be){var Vi=Be.touches,bi=Vi===void 0?[]:Vi,di=In.current,Ri=di.point1,Fi=di.point2,Ti=di.eventType;if(bi.length>1&&Ti==="touchZoom"){var Lr={x:bi[0].clientX,y:bi[0].clientY},ln={x:bi[1].clientX,y:bi[1].clientY},pn=Qn(Ri,Fi,Lr,ln),$t=(0,Ie.Z)(pn,2),wn=$t[0],Gi=$t[1],Ci=cn(Lr,ln)/cn(Ri,Fi);Mi(Ci,"touchZoom",wn,Gi,!0),Br({point1:Lr,point2:ln,eventType:"touchZoom"})}else Ti==="move"&&(jn({x:bi[0].clientX-Ri.x,y:bi[0].clientY-Ri.y},"move"),Br({eventType:"move"}))},Ji=function(){if(Vn){if(lr&&rr(!1),Br({eventType:"none"}),Kn>wt)return jn({x:0,y:0,scale:Kn},"touchZoom");var Be=xn.current.offsetWidth*wt,Vi=xn.current.offsetHeight*wt,bi=xn.current.getBoundingClientRect(),di=bi.left,Ri=bi.top,Fi=Gn%180!==0,Ti=dt(Fi?Vi:Be,Fi?Be:Vi,di,Ri);Ti&&jn((0,Pe.Z)({},Ti),"dragRebound")}};return(0,Le.useEffect)(function(){var Nr;return Vn&&_t&&(Nr=(0,et.Z)(window,"touchmove",function(Be){return Be.preventDefault()},{passive:!1})),function(){var Be;(Be=Nr)===null||Be===void 0||Be.remove()}},[Vn,_t]),{isTouching:lr,onTouchStart:Tr,onTouchMove:Xi,onTouchEnd:Ji}}var Pt=["fallback","src","imgRef"],Wt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],An=function(_t){var Vn=_t.fallback,Kn=_t.src,Tn=_t.imgRef,jn=(0,Te.Z)(_t,Pt),Mi=hn({src:Kn,fallback:Vn}),Gn=(0,Ie.Z)(Mi,2),wt=Gn[0],Si=Gn[1];return Le.createElement("img",(0,ce.Z)({ref:function(Vt){Tn.current=Vt,wt(Vt)}},jn,Si))},Nn=function(_t){var Vn=_t.prefixCls,Kn=_t.src,Tn=_t.alt,jn=_t.imageInfo,Mi=_t.fallback,Gn=_t.movable,wt=Gn===void 0?!0:Gn,Si=_t.onClose,wi=_t.visible,Vt=_t.icons,qi=Vt===void 0?{}:Vt,lr=_t.rootClassName,rr=_t.closeIcon,In=_t.getContainer,Br=_t.current,Tr=Br===void 0?0:Br,Xi=_t.count,Ji=Xi===void 0?1:Xi,Nr=_t.countRender,Be=_t.scaleStep,Vi=Be===void 0?.5:Be,bi=_t.minScale,di=bi===void 0?1:bi,Ri=_t.maxScale,Fi=Ri===void 0?50:Ri,Ti=_t.transitionName,Lr=Ti===void 0?"zoom":Ti,ln=_t.maskTransitionName,pn=ln===void 0?"fade":ln,$t=_t.imageRender,wn=_t.imgCommonProps,Gi=_t.toolbarRender,Ci=_t.onTransform,Yi=_t.onChange,mn=(0,Te.Z)(_t,Wt),Rn=(0,Le.useRef)(),Ui=(0,Le.useContext)(tt),or=Ui&&Ji>1,ci=Ui&&Ji>=1,yt=(0,Le.useState)(!0),zt=(0,Ie.Z)(yt,2),li=zt[0],ii=zt[1],Rt=Kt(Rn,di,Fi,Ci),Jn=Rt.transform,Ni=Rt.resetTransform,en=Rt.updateTransform,ze=Rt.dispatchZoomChange,si=un(Rn,wt,wi,Vi,Jn,en,ze),oi=si.isMoving,yn=si.onMouseDown,ir=si.onWheel,Zi=Bt(Rn,wt,wi,di,Jn,en,ze),Fn=Zi.isTouching,Li=Zi.onTouchStart,jt=Zi.onTouchMove,br=Zi.onTouchEnd,Eo=Jn.rotate,Gt=Jn.scale,Wi=st()((0,Me.Z)({},"".concat(Vn,"-moving"),oi));(0,Le.useEffect)(function(){li||ii(!0)},[li]);var cr=function(){Ni("close")},Hi=function(){ze(ct+Vi,"zoomIn")},Hr=function(){ze(ct/(ct+Vi),"zoomOut")},Rr=function(){en({rotate:Eo+90},"rotateRight")},jr=function(){en({rotate:Eo-90},"rotateLeft")},_r=function(){en({flipX:!Jn.flipX},"flipX")},Ur=function(){en({flipY:!Jn.flipY},"flipY")},po=function(){Ni("reset")},Pn=function(yo){var Or=Tr+yo;!Number.isInteger(Or)||Or<0||Or>Ji-1||(ii(!1),Ni(yo<0?"prev":"next"),Yi==null||Yi(Or,Tr))},bo=function(yo){!wi||!or||(yo.keyCode===Je.Z.LEFT?Pn(-1):yo.keyCode===Je.Z.RIGHT&&Pn(1))},Mn=function(yo){wi&&(Gt!==1?en({x:0,y:0,scale:1},"doubleClick"):ze(ct+Vi,"doubleClick",yo.clientX,yo.clientY))};(0,Le.useEffect)(function(){var Sr=(0,et.Z)(window,"keydown",bo,!1);return function(){Sr.remove()}},[wi,or,Tr]);var tr=Le.createElement(An,(0,ce.Z)({},wn,{width:_t.width,height:_t.height,imgRef:Rn,className:"".concat(Vn,"-img"),alt:Tn,style:{transform:"translate3d(".concat(Jn.x,"px, ").concat(Jn.y,"px, 0) scale3d(").concat(Jn.flipX?"-":"").concat(Gt,", ").concat(Jn.flipY?"-":"").concat(Gt,", 1) rotate(").concat(Eo,"deg)"),transitionDuration:(!li||Fn)&&"0s"},fallback:Mi,src:Kn,onWheel:ir,onMouseDown:yn,onDoubleClick:Mn,onTouchStart:Li,onTouchMove:jt,onTouchEnd:br,onTouchCancel:br})),wr=(0,Pe.Z)({url:Kn,alt:Tn},jn);return Le.createElement(Le.Fragment,null,Le.createElement(Ve.Z,(0,ce.Z)({transitionName:Lr,maskTransitionName:pn,closable:!1,keyboard:!0,prefixCls:Vn,onClose:Si,visible:wi,classNames:{wrapper:Wi},rootClassName:lr,getContainer:In},mn,{afterClose:cr}),Le.createElement("div",{className:"".concat(Vn,"-img-wrapper")},$t?$t(tr,(0,Pe.Z)({transform:Jn,image:wr},Ui?{current:Tr}:{})):tr)),Le.createElement(Lt,{visible:wi,transform:Jn,maskTransitionName:pn,closeIcon:rr,getContainer:In,prefixCls:Vn,rootClassName:lr,icons:qi,countRender:Nr,showSwitch:or,showProgress:ci,current:Tr,count:Ji,scale:Gt,minScale:di,maxScale:Fi,toolbarRender:Gi,onActive:Pn,onZoomIn:Hi,onZoomOut:Hr,onRotateRight:Rr,onRotateLeft:jr,onFlipX:_r,onFlipY:Ur,onClose:Si,onReset:po,zIndex:mn.zIndex!==void 0?mn.zIndex+1:void 0,image:wr}))},$e=Nn,Oe=le(15142),ke=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Ke(xn){var _t=Le.useState({}),Vn=(0,Ie.Z)(_t,2),Kn=Vn[0],Tn=Vn[1],jn=Le.useCallback(function(Gn,wt){return Tn(function(Si){return(0,Pe.Z)((0,Pe.Z)({},Si),{},(0,Me.Z)({},Gn,wt))}),function(){Tn(function(Si){var wi=(0,Pe.Z)({},Si);return delete wi[Gn],wi})}},[]),Mi=Le.useMemo(function(){return xn?xn.map(function(Gn){if(typeof Gn=="string")return{data:{src:Gn}};var wt={};return Object.keys(Gn).forEach(function(Si){["src"].concat((0,Oe.Z)(ke)).includes(Si)&&(wt[Si]=Gn[Si])}),{data:wt}}):Object.keys(Kn).reduce(function(Gn,wt){var Si=Kn[wt],wi=Si.canPreview,Vt=Si.data;return wi&&Gn.push({data:Vt,id:wt}),Gn},[])},[xn,Kn]);return[Mi,jn,!!xn]}var lt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ue=["src"],gt=function(_t){var Vn,Kn=_t.previewPrefixCls,Tn=Kn===void 0?"rc-image-preview":Kn,jn=_t.children,Mi=_t.icons,Gn=Mi===void 0?{}:Mi,wt=_t.items,Si=_t.preview,wi=_t.fallback,Vt=(0,je.Z)(Si)==="object"?Si:{},qi=Vt.visible,lr=Vt.onVisibleChange,rr=Vt.getContainer,In=Vt.current,Br=Vt.movable,Tr=Vt.minScale,Xi=Vt.maxScale,Ji=Vt.countRender,Nr=Vt.closeIcon,Be=Vt.onChange,Vi=Vt.onTransform,bi=Vt.toolbarRender,di=Vt.imageRender,Ri=(0,Te.Z)(Vt,lt),Fi=Ke(wt),Ti=(0,Ie.Z)(Fi,3),Lr=Ti[0],ln=Ti[1],pn=Ti[2],$t=(0,Ae.Z)(0,{value:In}),wn=(0,Ie.Z)($t,2),Gi=wn[0],Ci=wn[1],Yi=(0,Le.useState)(!1),mn=(0,Ie.Z)(Yi,2),Rn=mn[0],Ui=mn[1],or=((Vn=Lr[Gi])===null||Vn===void 0?void 0:Vn.data)||{},ci=or.src,yt=(0,Te.Z)(or,Ue),zt=(0,Ae.Z)(!!qi,{value:qi,onChange:function(Fn,Li){lr==null||lr(Fn,Li,Gi)}}),li=(0,Ie.Z)(zt,2),ii=li[0],Rt=li[1],Jn=(0,Le.useState)(null),Ni=(0,Ie.Z)(Jn,2),en=Ni[0],ze=Ni[1],si=Le.useCallback(function(Zi,Fn,Li,jt){var br=pn?Lr.findIndex(function(Eo){return Eo.data.src===Fn}):Lr.findIndex(function(Eo){return Eo.id===Zi});Ci(br<0?0:br),Rt(!0),ze({x:Li,y:jt}),Ui(!0)},[Lr,pn]);Le.useEffect(function(){ii?Rn||Ci(0):Ui(!1)},[ii]);var oi=function(Fn,Li){Ci(Fn),Be==null||Be(Fn,Li)},yn=function(){Rt(!1),ze(null)},ir=Le.useMemo(function(){return{register:ln,onPreview:si}},[ln,si]);return Le.createElement(tt.Provider,{value:ir},jn,Le.createElement($e,(0,ce.Z)({"aria-hidden":!ii,movable:Br,visible:ii,prefixCls:Tn,closeIcon:Nr,onClose:yn,mousePosition:en,imgCommonProps:yt,src:ci,fallback:wi,icons:Gn,minScale:Tr,maxScale:Xi,getContainer:rr,current:Gi,count:Lr.length,countRender:Ji,onTransform:Vi,toolbarRender:bi,imageRender:di,onChange:oi},Ri)))},tn=gt,Un=0;function qn(xn,_t){var Vn=Le.useState(function(){return Un+=1,String(Un)}),Kn=(0,Ie.Z)(Vn,1),Tn=Kn[0],jn=Le.useContext(tt),Mi={data:_t,canPreview:xn};return Le.useEffect(function(){if(jn)return jn.register(Tn,Mi)},[]),Le.useEffect(function(){jn&&jn.register(Tn,Mi)},[xn,_t]),Tn}var nn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Ht=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],sn=function(_t){var Vn=_t.src,Kn=_t.alt,Tn=_t.onPreviewClose,jn=_t.prefixCls,Mi=jn===void 0?"rc-image":jn,Gn=_t.previewPrefixCls,wt=Gn===void 0?"".concat(Mi,"-preview"):Gn,Si=_t.placeholder,wi=_t.fallback,Vt=_t.width,qi=_t.height,lr=_t.style,rr=_t.preview,In=rr===void 0?!0:rr,Br=_t.className,Tr=_t.onClick,Xi=_t.onError,Ji=_t.wrapperClassName,Nr=_t.wrapperStyle,Be=_t.rootClassName,Vi=(0,Te.Z)(_t,nn),bi=Si&&Si!==!0,di=(0,je.Z)(In)==="object"?In:{},Ri=di.src,Fi=di.visible,Ti=Fi===void 0?void 0:Fi,Lr=di.onVisibleChange,ln=Lr===void 0?Tn:Lr,pn=di.getContainer,$t=pn===void 0?void 0:pn,wn=di.mask,Gi=di.maskClassName,Ci=di.movable,Yi=di.icons,mn=di.scaleStep,Rn=di.minScale,Ui=di.maxScale,or=di.imageRender,ci=di.toolbarRender,yt=(0,Te.Z)(di,Ht),zt=Ri!=null?Ri:Vn,li=(0,Ae.Z)(!!Ti,{value:Ti,onChange:ln}),ii=(0,Ie.Z)(li,2),Rt=ii[0],Jn=ii[1],Ni=hn({src:Vn,isCustomPlaceholder:bi,fallback:wi}),en=(0,Ie.Z)(Ni,3),ze=en[0],si=en[1],oi=en[2],yn=(0,Le.useState)(null),ir=(0,Ie.Z)(yn,2),Zi=ir[0],Fn=ir[1],Li=(0,Le.useContext)(tt),jt=!!In,br=function(){Jn(!1),Fn(null)},Eo=st()(Mi,Ji,Be,(0,Me.Z)({},"".concat(Mi,"-error"),oi==="error")),Gt=(0,Le.useMemo)(function(){var Hr={};return ke.forEach(function(Rr){_t[Rr]!==void 0&&(Hr[Rr]=_t[Rr])}),Hr},ke.map(function(Hr){return _t[Hr]})),Wi=(0,Le.useMemo)(function(){return(0,Pe.Z)((0,Pe.Z)({},Gt),{},{src:zt})},[zt,Gt]),cr=qn(jt,Wi),Hi=function(Rr){var jr=be(Rr.target),_r=jr.left,Ur=jr.top;Li?Li.onPreview(cr,zt,_r,Ur):(Fn({x:_r,y:Ur}),Jn(!0)),Tr==null||Tr(Rr)};return Le.createElement(Le.Fragment,null,Le.createElement("div",(0,ce.Z)({},Vi,{className:Eo,onClick:jt?Hi:Tr,style:(0,Pe.Z)({width:Vt,height:qi},Nr)}),Le.createElement("img",(0,ce.Z)({},Gt,{className:st()("".concat(Mi,"-img"),(0,Me.Z)({},"".concat(Mi,"-img-placeholder"),Si===!0),Br),style:(0,Pe.Z)({height:qi},lr),ref:ze},si,{width:Vt,height:qi,onError:Xi})),oi==="loading"&&Le.createElement("div",{"aria-hidden":"true",className:"".concat(Mi,"-placeholder")},Si),wn&&jt&&Le.createElement("div",{className:st()("".concat(Mi,"-mask"),Gi),style:{display:(lr==null?void 0:lr.display)==="none"?"none":void 0}},wn)),!Li&&jt&&Le.createElement($e,(0,ce.Z)({"aria-hidden":!Rt,visible:Rt,prefixCls:wt,onClose:br,mousePosition:Zi,src:zt,alt:Kn,imageInfo:{width:Vt,height:qi},fallback:wi,getContainer:$t,icons:Yi,movable:Ci,scaleStep:mn,minScale:Rn,maxScale:Ui,rootClassName:Be,imageRender:or,imgCommonProps:Gt,toolbarRender:ci},yt)))};sn.PreviewGroup=tn;var vn=sn,Ln=vn},23425:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Ve}});var ce=le(52873),Pe=le(67711),Me=le(26420),Ie=le(98506),je=le(16886),Te=le(92310),Ge=le.n(Te),st=le(18929),Qe=le(10228),We=le(26112),mt=le(48736),it=le(59301),kt=le(17119),Fe=[10,20,50,100],ne=function(Je){var rt=Je.pageSizeOptions,at=rt===void 0?Fe:rt,tt=Je.locale,Et=Je.changeSize,Lt=Je.pageSize,Ut=Je.goButton,on=Je.quickGo,an=Je.rootPrefixCls,Kt=Je.disabled,fn=Je.buildOptionText,bt=Je.showSizeChanger,dt=Je.sizeChangerRender,ct=it.useState(""),Qt=(0,je.Z)(ct,2),un=Qt[0],Nt=Qt[1],hn=function(){return!un||Number.isNaN(un)?void 0:Number(un)},cn=typeof fn=="function"?fn:function(ke){return"".concat(ke," ").concat(tt.items_per_page)},Qn=function(Ke){Nt(Ke.target.value)},Bt=function(Ke){Ut||un===""||(Nt(""),!(Ke.relatedTarget&&(Ke.relatedTarget.className.indexOf("".concat(an,"-item-link"))>=0||Ke.relatedTarget.className.indexOf("".concat(an,"-item"))>=0))&&(on==null||on(hn())))},Pt=function(Ke){un!==""&&(Ke.keyCode===Qe.Z.ENTER||Ke.type==="click")&&(Nt(""),on==null||on(hn()))},Wt=function(){return at.some(function(Ke){return Ke.toString()===Lt.toString()})?at:at.concat([Lt]).sort(function(Ke,lt){var Ue=Number.isNaN(Number(Ke))?0:Number(Ke),gt=Number.isNaN(Number(lt))?0:Number(lt);return Ue-gt})},An="".concat(an,"-options");if(!bt&&!on)return null;var Nn=null,$e=null,Oe=null;return bt&&dt&&(Nn=dt({disabled:Kt,size:Lt,onSizeChange:function(Ke){Et==null||Et(Number(Ke))},"aria-label":tt.page_size,className:"".concat(An,"-size-changer"),options:Wt().map(function(ke){return{label:cn(ke),value:ke}})})),on&&(Ut&&(Oe=typeof Ut=="boolean"?it.createElement("button",{type:"button",onClick:Pt,onKeyUp:Pt,disabled:Kt,className:"".concat(An,"-quick-jumper-button")},tt.jump_to_confirm):it.createElement("span",{onClick:Pt,onKeyUp:Pt},Ut)),$e=it.createElement("div",{className:"".concat(An,"-quick-jumper")},tt.jump_to,it.createElement("input",{disabled:Kt,type:"text",value:un,onChange:Qn,onKeyUp:Pt,onBlur:Bt,"aria-label":tt.page}),tt.page,Oe)),it.createElement("li",{className:An},Nn,$e)},te=ne,he=function(Je){var rt=Je.rootPrefixCls,at=Je.page,tt=Je.active,Et=Je.className,Lt=Je.showTitle,Ut=Je.onClick,on=Je.onKeyPress,an=Je.itemRender,Kt="".concat(rt,"-item"),fn=Ge()(Kt,"".concat(Kt,"-").concat(at),(0,ce.Z)((0,ce.Z)({},"".concat(Kt,"-active"),tt),"".concat(Kt,"-disabled"),!at),Et),bt=function(){Ut(at)},dt=function(un){on(un,Ut,at)},ct=an(at,"page",it.createElement("a",{rel:"nofollow"},at));return ct?it.createElement("li",{title:Lt?String(at):null,className:fn,onClick:bt,onKeyDown:dt,tabIndex:0},ct):null},se=he,ge=function(Je,rt,at){return at};function ye(){}function be(et){var Je=Number(et);return typeof Je=="number"&&!Number.isNaN(Je)&&isFinite(Je)&&Math.floor(Je)===Je}function Ae(et,Je,rt){var at=typeof et=="undefined"?Je:et;return Math.floor((rt-1)/at)+1}var Le=function(Je){var rt=Je.prefixCls,at=rt===void 0?"rc-pagination":rt,tt=Je.selectPrefixCls,Et=tt===void 0?"rc-select":tt,Lt=Je.className,Ut=Je.current,on=Je.defaultCurrent,an=on===void 0?1:on,Kt=Je.total,fn=Kt===void 0?0:Kt,bt=Je.pageSize,dt=Je.defaultPageSize,ct=dt===void 0?10:dt,Qt=Je.onChange,un=Qt===void 0?ye:Qt,Nt=Je.hideOnSinglePage,hn=Je.align,cn=Je.showPrevNextJumpers,Qn=cn===void 0?!0:cn,Bt=Je.showQuickJumper,Pt=Je.showLessItems,Wt=Je.showTitle,An=Wt===void 0?!0:Wt,Nn=Je.onShowSizeChange,$e=Nn===void 0?ye:Nn,Oe=Je.locale,ke=Oe===void 0?kt.Z:Oe,Ke=Je.style,lt=Je.totalBoundaryShowSizeChanger,Ue=lt===void 0?50:lt,gt=Je.disabled,tn=Je.simple,Un=Je.showTotal,qn=Je.showSizeChanger,nn=qn===void 0?fn>Ue:qn,Ht=Je.sizeChangerRender,sn=Je.pageSizeOptions,vn=Je.itemRender,Ln=vn===void 0?ge:vn,xn=Je.jumpPrevIcon,_t=Je.jumpNextIcon,Vn=Je.prevIcon,Kn=Je.nextIcon,Tn=it.useRef(null),jn=(0,st.Z)(10,{value:bt,defaultValue:ct}),Mi=(0,je.Z)(jn,2),Gn=Mi[0],wt=Mi[1],Si=(0,st.Z)(1,{value:Ut,defaultValue:an,postState:function(wr){return Math.max(1,Math.min(wr,Ae(void 0,Gn,fn)))}}),wi=(0,je.Z)(Si,2),Vt=wi[0],qi=wi[1],lr=it.useState(Vt),rr=(0,je.Z)(lr,2),In=rr[0],Br=rr[1];(0,it.useEffect)(function(){Br(Vt)},[Vt]);var Tr=un!==ye,Xi="current"in Je,Ji=Math.max(1,Vt-(Pt?3:5)),Nr=Math.min(Ae(void 0,Gn,fn),Vt+(Pt?3:5));function Be(tr,wr){var Sr=tr||it.createElement("button",{type:"button","aria-label":wr,className:"".concat(at,"-item-link")});return typeof tr=="function"&&(Sr=it.createElement(tr,(0,Ie.Z)({},Je))),Sr}function Vi(tr){var wr=tr.target.value,Sr=Ae(void 0,Gn,fn),yo;return wr===""?yo=wr:Number.isNaN(Number(wr))?yo=In:wr>=Sr?yo=Sr:yo=Number(wr),yo}function bi(tr){return be(tr)&&tr!==Vt&&be(fn)&&fn>0}var di=fn>Gn?Bt:!1;function Ri(tr){(tr.keyCode===Qe.Z.UP||tr.keyCode===Qe.Z.DOWN)&&tr.preventDefault()}function Fi(tr){var wr=Vi(tr);switch(wr!==In&&Br(wr),tr.keyCode){case Qe.Z.ENTER:ln(wr);break;case Qe.Z.UP:ln(wr-1);break;case Qe.Z.DOWN:ln(wr+1);break;default:break}}function Ti(tr){ln(Vi(tr))}function Lr(tr){var wr=Ae(tr,Gn,fn),Sr=Vt>wr&&wr!==0?wr:Vt;wt(tr),Br(Sr),$e==null||$e(Vt,tr),qi(Sr),un==null||un(Sr,tr)}function ln(tr){if(bi(tr)&&!gt){var wr=Ae(void 0,Gn,fn),Sr=tr;return tr>wr?Sr=wr:tr<1&&(Sr=1),Sr!==In&&Br(Sr),qi(Sr),un==null||un(Sr,Gn),Sr}return Vt}var pn=Vt>1,$t=Vt<Ae(void 0,Gn,fn);function wn(){pn&&ln(Vt-1)}function Gi(){$t&&ln(Vt+1)}function Ci(){ln(Ji)}function Yi(){ln(Nr)}function mn(tr,wr){if(tr.key==="Enter"||tr.charCode===Qe.Z.ENTER||tr.keyCode===Qe.Z.ENTER){for(var Sr=arguments.length,yo=new Array(Sr>2?Sr-2:0),Or=2;Or<Sr;Or++)yo[Or-2]=arguments[Or];wr.apply(void 0,yo)}}function Rn(tr){mn(tr,wn)}function Ui(tr){mn(tr,Gi)}function or(tr){mn(tr,Ci)}function ci(tr){mn(tr,Yi)}function yt(tr){var wr=Ln(tr,"prev",Be(Vn,"prev page"));return it.isValidElement(wr)?it.cloneElement(wr,{disabled:!pn}):wr}function zt(tr){var wr=Ln(tr,"next",Be(Kn,"next page"));return it.isValidElement(wr)?it.cloneElement(wr,{disabled:!$t}):wr}function li(tr){(tr.type==="click"||tr.keyCode===Qe.Z.ENTER)&&ln(In)}var ii=null,Rt=(0,We.Z)(Je,{aria:!0,data:!0}),Jn=Un&&it.createElement("li",{className:"".concat(at,"-total-text")},Un(fn,[fn===0?0:(Vt-1)*Gn+1,Vt*Gn>fn?fn:Vt*Gn])),Ni=null,en=Ae(void 0,Gn,fn);if(Nt&&fn<=Gn)return null;var ze=[],si={rootPrefixCls:at,onClick:ln,onKeyPress:mn,showTitle:An,itemRender:Ln,page:-1},oi=Vt-1>0?Vt-1:0,yn=Vt+1<en?Vt+1:en,ir=Bt&&Bt.goButton,Zi=(0,Me.Z)(tn)==="object"?tn.readOnly:!tn,Fn=ir,Li=null;tn&&(ir&&(typeof ir=="boolean"?Fn=it.createElement("button",{type:"button",onClick:li,onKeyUp:li},ke.jump_to_confirm):Fn=it.createElement("span",{onClick:li,onKeyUp:li},ir),Fn=it.createElement("li",{title:An?"".concat(ke.jump_to).concat(Vt,"/").concat(en):null,className:"".concat(at,"-simple-pager")},Fn)),Li=it.createElement("li",{title:An?"".concat(Vt,"/").concat(en):null,className:"".concat(at,"-simple-pager")},Zi?In:it.createElement("input",{type:"text","aria-label":ke.jump_to,value:In,disabled:gt,onKeyDown:Ri,onKeyUp:Fi,onChange:Fi,onBlur:Ti,size:3}),it.createElement("span",{className:"".concat(at,"-slash")},"/"),en));var jt=Pt?1:2;if(en<=3+jt*2){en||ze.push(it.createElement(se,(0,Pe.Z)({},si,{key:"noPager",page:1,className:"".concat(at,"-item-disabled")})));for(var br=1;br<=en;br+=1)ze.push(it.createElement(se,(0,Pe.Z)({},si,{key:br,page:br,active:Vt===br})))}else{var Eo=Pt?ke.prev_3:ke.prev_5,Gt=Pt?ke.next_3:ke.next_5,Wi=Ln(Ji,"jump-prev",Be(xn,"prev page")),cr=Ln(Nr,"jump-next",Be(_t,"next page"));Qn&&(ii=Wi?it.createElement("li",{title:An?Eo:null,key:"prev",onClick:Ci,tabIndex:0,onKeyDown:or,className:Ge()("".concat(at,"-jump-prev"),(0,ce.Z)({},"".concat(at,"-jump-prev-custom-icon"),!!xn))},Wi):null,Ni=cr?it.createElement("li",{title:An?Gt:null,key:"next",onClick:Yi,tabIndex:0,onKeyDown:ci,className:Ge()("".concat(at,"-jump-next"),(0,ce.Z)({},"".concat(at,"-jump-next-custom-icon"),!!_t))},cr):null);var Hi=Math.max(1,Vt-jt),Hr=Math.min(Vt+jt,en);Vt-1<=jt&&(Hr=1+jt*2),en-Vt<=jt&&(Hi=en-jt*2);for(var Rr=Hi;Rr<=Hr;Rr+=1)ze.push(it.createElement(se,(0,Pe.Z)({},si,{key:Rr,page:Rr,active:Vt===Rr})));if(Vt-1>=jt*2&&Vt!==3&&(ze[0]=it.cloneElement(ze[0],{className:Ge()("".concat(at,"-item-after-jump-prev"),ze[0].props.className)}),ze.unshift(ii)),en-Vt>=jt*2&&Vt!==en-2){var jr=ze[ze.length-1];ze[ze.length-1]=it.cloneElement(jr,{className:Ge()("".concat(at,"-item-before-jump-next"),jr.props.className)}),ze.push(Ni)}Hi!==1&&ze.unshift(it.createElement(se,(0,Pe.Z)({},si,{key:1,page:1}))),Hr!==en&&ze.push(it.createElement(se,(0,Pe.Z)({},si,{key:en,page:en})))}var _r=yt(oi);if(_r){var Ur=!pn||!en;_r=it.createElement("li",{title:An?ke.prev_page:null,onClick:wn,tabIndex:Ur?null:0,onKeyDown:Rn,className:Ge()("".concat(at,"-prev"),(0,ce.Z)({},"".concat(at,"-disabled"),Ur)),"aria-disabled":Ur},_r)}var po=zt(yn);if(po){var Pn,bo;tn?(Pn=!$t,bo=pn?0:null):(Pn=!$t||!en,bo=Pn?null:0),po=it.createElement("li",{title:An?ke.next_page:null,onClick:Gi,tabIndex:bo,onKeyDown:Ui,className:Ge()("".concat(at,"-next"),(0,ce.Z)({},"".concat(at,"-disabled"),Pn)),"aria-disabled":Pn},po)}var Mn=Ge()(at,Lt,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(at,"-start"),hn==="start"),"".concat(at,"-center"),hn==="center"),"".concat(at,"-end"),hn==="end"),"".concat(at,"-simple"),tn),"".concat(at,"-disabled"),gt));return it.createElement("ul",(0,Pe.Z)({className:Mn,style:Ke,ref:Tn},Rt),Jn,_r,tn?Li:ze,po,it.createElement(te,{locale:ke,rootPrefixCls:at,disabled:gt,selectPrefixCls:Et,changeSize:Lr,pageSize:Gn,pageSizeOptions:sn,quickGo:di?ln:null,goButton:Fn,showSizeChanger:nn,sizeChangerRender:Ht}))},Ve=Le},25930:function(Re,Ee,le){"use strict";le.d(Ee,{Cd:function(){return at}});var ce=le(67711),Pe=le(98506),Me=le(33346),Ie=le(59301),je=le(92310),Te=le.n(je),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},st=function(){var Lt=(0,Ie.useRef)([]),Ut=(0,Ie.useRef)(null);return(0,Ie.useEffect)(function(){var on=Date.now(),an=!1;Lt.current.forEach(function(Kt){if(Kt){an=!0;var fn=Kt.style;fn.transitionDuration=".3s, .3s, .3s, .06s",Ut.current&&on-Ut.current<100&&(fn.transitionDuration="0s, 0s")}}),an&&(Ut.current=Date.now())}),Lt.current},Qe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],We=function(Lt){var Ut=(0,Pe.Z)((0,Pe.Z)({},Ge),Lt),on=Ut.className,an=Ut.percent,Kt=Ut.prefixCls,fn=Ut.strokeColor,bt=Ut.strokeLinecap,dt=Ut.strokeWidth,ct=Ut.style,Qt=Ut.trailColor,un=Ut.trailWidth,Nt=Ut.transition,hn=(0,Me.Z)(Ut,Qe);delete hn.gapPosition;var cn=Array.isArray(an)?an:[an],Qn=Array.isArray(fn)?fn:[fn],Bt=st(),Pt=dt/2,Wt=100-dt/2,An="M ".concat(bt==="round"?Pt:0,",").concat(Pt,`
|
|
|
L `).concat(bt==="round"?Wt:100,",").concat(Pt),Nn="0 0 100 ".concat(dt),$e=0;return Ie.createElement("svg",(0,ce.Z)({className:Te()("".concat(Kt,"-line"),on),viewBox:Nn,preserveAspectRatio:"none",style:ct},hn),Ie.createElement("path",{className:"".concat(Kt,"-line-trail"),d:An,strokeLinecap:bt,stroke:Qt,strokeWidth:un||dt,fillOpacity:"0"}),cn.map(function(Oe,ke){var Ke=1;switch(bt){case"round":Ke=1-dt/100;break;case"square":Ke=1-dt/2/100;break;default:Ke=1;break}var lt={strokeDasharray:"".concat(Oe*Ke,"px, 100px"),strokeDashoffset:"-".concat($e,"px"),transition:Nt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=Qn[ke]||Qn[Qn.length-1];return $e+=Oe,Ie.createElement("path",{key:ke,className:"".concat(Kt,"-line-path"),d:An,strokeLinecap:bt,stroke:Ue,strokeWidth:dt,fillOpacity:"0",ref:function(tn){Bt[ke]=tn},style:lt})}))},mt=We,it=le(26420),kt=le(16886),Fe=le(47273),ne=0,te=(0,Fe.Z)();function he(){var Et;return te?(Et=ne,ne+=1):Et="TEST_OR_SSR",Et}var se=function(Et){var Lt=Ie.useState(),Ut=(0,kt.Z)(Lt,2),on=Ut[0],an=Ut[1];return Ie.useEffect(function(){an("rc_progress_".concat(he()))},[]),Et||on},ge=function(Lt){var Ut=Lt.bg,on=Lt.children;return Ie.createElement("div",{style:{width:"100%",height:"100%",background:Ut}},on)};function ye(Et,Lt){return Object.keys(Et).map(function(Ut){var on=parseFloat(Ut),an="".concat(Math.floor(on*Lt),"%");return"".concat(Et[Ut]," ").concat(an)})}var be=Ie.forwardRef(function(Et,Lt){var Ut=Et.prefixCls,on=Et.color,an=Et.gradientId,Kt=Et.radius,fn=Et.style,bt=Et.ptg,dt=Et.strokeLinecap,ct=Et.strokeWidth,Qt=Et.size,un=Et.gapDegree,Nt=on&&(0,it.Z)(on)==="object",hn=Nt?"#FFF":void 0,cn=Qt/2,Qn=Ie.createElement("circle",{className:"".concat(Ut,"-circle-path"),r:Kt,cx:cn,cy:cn,stroke:hn,strokeLinecap:dt,strokeWidth:ct,opacity:bt===0?0:1,style:fn,ref:Lt});if(!Nt)return Qn;var Bt="".concat(an,"-conic"),Pt=un?"".concat(180+un/2,"deg"):"0deg",Wt=ye(on,(360-un)/360),An=ye(on,1),Nn="conic-gradient(from ".concat(Pt,", ").concat(Wt.join(", "),")"),$e="linear-gradient(to ".concat(un?"bottom":"top",", ").concat(An.join(", "),")");return Ie.createElement(Ie.Fragment,null,Ie.createElement("mask",{id:Bt},Qn),Ie.createElement("foreignObject",{x:0,y:0,width:Qt,height:Qt,mask:"url(#".concat(Bt,")")},Ie.createElement(ge,{bg:$e},Ie.createElement(ge,{bg:Nn}))))}),Ae=be,Le=100,Ve=function(Lt,Ut,on,an,Kt,fn,bt,dt,ct,Qt){var un=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Nt=on/100*360*((360-fn)/360),hn=fn===0?0:{bottom:0,top:180,left:90,right:-90}[bt],cn=(100-an)/100*Ut;ct==="round"&&an!==100&&(cn+=Qt/2,cn>=Ut&&(cn=Ut-.01));var Qn=Le/2;return{stroke:typeof dt=="string"?dt:void 0,strokeDasharray:"".concat(Ut,"px ").concat(Lt),strokeDashoffset:cn+un,transform:"rotate(".concat(Kt+Nt+hn,"deg)"),transformOrigin:"".concat(Qn,"px ").concat(Qn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},et=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Je(Et){var Lt=Et!=null?Et:[];return Array.isArray(Lt)?Lt:[Lt]}var rt=function(Lt){var Ut=(0,Pe.Z)((0,Pe.Z)({},Ge),Lt),on=Ut.id,an=Ut.prefixCls,Kt=Ut.steps,fn=Ut.strokeWidth,bt=Ut.trailWidth,dt=Ut.gapDegree,ct=dt===void 0?0:dt,Qt=Ut.gapPosition,un=Ut.trailColor,Nt=Ut.strokeLinecap,hn=Ut.style,cn=Ut.className,Qn=Ut.strokeColor,Bt=Ut.percent,Pt=(0,Me.Z)(Ut,et),Wt=Le/2,An=se(on),Nn="".concat(An,"-gradient"),$e=Wt-fn/2,Oe=Math.PI*2*$e,ke=ct>0?90+ct/2:-90,Ke=Oe*((360-ct)/360),lt=(0,it.Z)(Kt)==="object"?Kt:{count:Kt,gap:2},Ue=lt.count,gt=lt.gap,tn=Je(Bt),Un=Je(Qn),qn=Un.find(function(_t){return _t&&(0,it.Z)(_t)==="object"}),nn=qn&&(0,it.Z)(qn)==="object",Ht=nn?"butt":Nt,sn=Ve(Oe,Ke,0,100,ke,ct,Qt,un,Ht,fn),vn=st(),Ln=function(){var Vn=0;return tn.map(function(Kn,Tn){var jn=Un[Tn]||Un[Un.length-1],Mi=Ve(Oe,Ke,Vn,Kn,ke,ct,Qt,jn,Ht,fn);return Vn+=Kn,Ie.createElement(Ae,{key:Tn,color:jn,ptg:Kn,radius:$e,prefixCls:an,gradientId:Nn,style:Mi,strokeLinecap:Ht,strokeWidth:fn,gapDegree:ct,ref:function(wt){vn[Tn]=wt},size:Le})}).reverse()},xn=function(){var Vn=Math.round(Ue*(tn[0]/100)),Kn=100/Ue,Tn=0;return new Array(Ue).fill(null).map(function(jn,Mi){var Gn=Mi<=Vn-1?Un[0]:un,wt=Gn&&(0,it.Z)(Gn)==="object"?"url(#".concat(Nn,")"):void 0,Si=Ve(Oe,Ke,Tn,Kn,ke,ct,Qt,Gn,"butt",fn,gt);return Tn+=(Ke-Si.strokeDashoffset+gt)*100/Ke,Ie.createElement("circle",{key:Mi,className:"".concat(an,"-circle-path"),r:$e,cx:Wt,cy:Wt,stroke:wt,strokeWidth:fn,opacity:1,style:Si,ref:function(Vt){vn[Mi]=Vt}})})};return Ie.createElement("svg",(0,ce.Z)({className:Te()("".concat(an,"-circle"),cn),viewBox:"0 0 ".concat(Le," ").concat(Le),style:hn,id:on,role:"presentation"},Pt),!Ue&&Ie.createElement("circle",{className:"".concat(an,"-circle-trail"),r:$e,cx:Wt,cy:Wt,stroke:un,strokeLinecap:Ht,strokeWidth:bt||fn,style:sn}),Ue?xn():Ln())},at=rt,tt={Line:mt,Circle:at}},738:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return ye}});var ce=le(67711),Pe=le(52873),Me=le(16886),Ie=le(33346),je=le(92310),Te=le.n(je),Ge=le(18929),st=le(10228),Qe=le(26112),We=le(59301);function mt(be,Ae){var Le=be.disabled,Ve=be.prefixCls,et=be.character,Je=be.characterRender,rt=be.index,at=be.count,tt=be.value,Et=be.allowHalf,Lt=be.focused,Ut=be.onHover,on=be.onClick,an=function(Nt){Ut(Nt,rt)},Kt=function(Nt){on(Nt,rt)},fn=function(Nt){Nt.keyCode===st.Z.ENTER&&on(Nt,rt)},bt=rt+1,dt=new Set([Ve]);tt===0&&rt===0&&Lt?dt.add("".concat(Ve,"-focused")):Et&&tt+.5>=bt&&tt<bt?(dt.add("".concat(Ve,"-half")),dt.add("".concat(Ve,"-active")),Lt&&dt.add("".concat(Ve,"-focused"))):(bt<=tt?dt.add("".concat(Ve,"-full")):dt.add("".concat(Ve,"-zero")),bt===tt&&Lt&&dt.add("".concat(Ve,"-focused")));var ct=typeof et=="function"?et(be):et,Qt=We.createElement("li",{className:Te()(Array.from(dt)),ref:Ae},We.createElement("div",{onClick:Le?null:Kt,onKeyDown:Le?null:fn,onMouseMove:Le?null:an,role:"radio","aria-checked":tt>rt?"true":"false","aria-posinset":rt+1,"aria-setsize":at,tabIndex:Le?-1:0},We.createElement("div",{className:"".concat(Ve,"-first")},ct),We.createElement("div",{className:"".concat(Ve,"-second")},ct)));return Je&&(Qt=Je(Qt,be)),Qt}var it=We.forwardRef(mt);function kt(){var be=We.useRef({});function Ae(Ve){return be.current[Ve]}function Le(Ve){return function(et){be.current[Ve]=et}}return[Ae,Le]}function Fe(be){var Ae=be.pageXOffset,Le="scrollLeft";if(typeof Ae!="number"){var Ve=be.document;Ae=Ve.documentElement[Le],typeof Ae!="number"&&(Ae=Ve.body[Le])}return Ae}function ne(be){var Ae,Le,Ve=be.ownerDocument,et=Ve.body,Je=Ve&&Ve.documentElement,rt=be.getBoundingClientRect();return Ae=rt.left,Le=rt.top,Ae-=Je.clientLeft||et.clientLeft||0,Le-=Je.clientTop||et.clientTop||0,{left:Ae,top:Le}}function te(be){var Ae=ne(be),Le=be.ownerDocument,Ve=Le.defaultView||Le.parentWindow;return Ae.left+=Fe(Ve),Ae.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(be,Ae){var Le=be.prefixCls,Ve=Le===void 0?"rc-rate":Le,et=be.className,Je=be.defaultValue,rt=be.value,at=be.count,tt=at===void 0?5:at,Et=be.allowHalf,Lt=Et===void 0?!1:Et,Ut=be.allowClear,on=Ut===void 0?!0:Ut,an=be.keyboard,Kt=an===void 0?!0:an,fn=be.character,bt=fn===void 0?"\u2605":fn,dt=be.characterRender,ct=be.disabled,Qt=be.direction,un=Qt===void 0?"ltr":Qt,Nt=be.tabIndex,hn=Nt===void 0?0:Nt,cn=be.autoFocus,Qn=be.onHoverChange,Bt=be.onChange,Pt=be.onFocus,Wt=be.onBlur,An=be.onKeyDown,Nn=be.onMouseLeave,$e=(0,Ie.Z)(be,he),Oe=kt(),ke=(0,Me.Z)(Oe,2),Ke=ke[0],lt=ke[1],Ue=We.useRef(null),gt=function(){if(!ct){var Ji;(Ji=Ue.current)===null||Ji===void 0||Ji.focus()}};We.useImperativeHandle(Ae,function(){return{focus:gt,blur:function(){if(!ct){var Ji;(Ji=Ue.current)===null||Ji===void 0||Ji.blur()}}}});var tn=(0,Ge.Z)(Je||0,{value:rt}),Un=(0,Me.Z)(tn,2),qn=Un[0],nn=Un[1],Ht=(0,Ge.Z)(null),sn=(0,Me.Z)(Ht,2),vn=sn[0],Ln=sn[1],xn=function(Ji,Nr){var Be=un==="rtl",Vi=Ji+1;if(Lt){var bi=Ke(Ji),di=te(bi),Ri=bi.clientWidth;(Be&&Nr-di>Ri/2||!Be&&Nr-di<Ri/2)&&(Vi-=.5)}return Vi},_t=function(Ji){nn(Ji),Bt==null||Bt(Ji)},Vn=We.useState(!1),Kn=(0,Me.Z)(Vn,2),Tn=Kn[0],jn=Kn[1],Mi=function(){jn(!0),Pt==null||Pt()},Gn=function(){jn(!1),Wt==null||Wt()},wt=We.useState(null),Si=(0,Me.Z)(wt,2),wi=Si[0],Vt=Si[1],qi=function(Ji,Nr){var Be=xn(Nr,Ji.pageX);Be!==vn&&(Vt(Be),Ln(null)),Qn==null||Qn(Be)},lr=function(Ji){ct||(Vt(null),Ln(null),Qn==null||Qn(void 0)),Ji&&(Nn==null||Nn(Ji))},rr=function(Ji,Nr){var Be=xn(Nr,Ji.pageX),Vi=!1;on&&(Vi=Be===qn),lr(),_t(Vi?0:Be),Ln(Vi?Be:null)},In=function(Ji){var Nr=Ji.keyCode,Be=un==="rtl",Vi=Lt?.5:1;Kt&&(Nr===st.Z.RIGHT&&qn<tt&&!Be?(_t(qn+Vi),Ji.preventDefault()):Nr===st.Z.LEFT&&qn>0&&!Be||Nr===st.Z.RIGHT&&qn>0&&Be?(_t(qn-Vi),Ji.preventDefault()):Nr===st.Z.LEFT&&qn<tt&&Be&&(_t(qn+Vi),Ji.preventDefault())),An==null||An(Ji)};We.useEffect(function(){cn&&!ct&>()},[]);var Br=new Array(tt).fill(0).map(function(Xi,Ji){return We.createElement(it,{ref:lt(Ji),index:Ji,count:tt,disabled:ct,prefixCls:"".concat(Ve,"-star"),allowHalf:Lt,value:wi===null?qn:wi,onClick:rr,onHover:qi,key:Xi||Ji,character:bt,characterRender:dt,focused:Tn})}),Tr=Te()(Ve,et,(0,Pe.Z)((0,Pe.Z)({},"".concat(Ve,"-disabled"),ct),"".concat(Ve,"-rtl"),un==="rtl"));return We.createElement("ul",(0,ce.Z)({className:Tr,onMouseLeave:lr,tabIndex:ct?-1:hn,onFocus:ct?null:Mi,onBlur:ct?null:Gn,onKeyDown:ct?null:In,ref:Ue},(0,Qe.Z)($e,{aria:!0,data:!0,attr:!0})),Br)}var ge=We.forwardRef(se),ye=ge},6551:function(Re,Ee,le){"use strict";le.d(Ee,{ZP:function(){return Ge}});var ce=le(16886),Pe=le(59301),Me=le(47273),Ie=0,je=(0,Me.Z)();function Te(){var st;return je?(st=Ie,Ie+=1):st="TEST_OR_SSR",st}function Ge(st){var Qe=Pe.useState(),We=(0,ce.Z)(Qe,2),mt=We[0],it=We[1];return Pe.useEffect(function(){it("rc_select_".concat(Te()))},[]),st||mt}},37463:function(Re,Ee,le){"use strict";le.d(Ee,{Ac:function(){return jn},Xo:function(){return Gn},Wx:function(){return Si},ZP:function(){return ci},lk:function(){return ye}});var ce=le(67711),Pe=le(15142),Me=le(52873),Ie=le(98506),je=le(16886),Te=le(33346),Ge=le(26420),st=le(18929),Qe=le(48736),We=le(59301),mt=le(92310),it=le.n(mt),kt=le(34280),Fe=le(49658),ne=le(8654),te=function(zt){var li=zt.className,ii=zt.customizeIcon,Rt=zt.customizeIconProps,Jn=zt.children,Ni=zt.onMouseDown,en=zt.onClick,ze=typeof ii=="function"?ii(Rt):ii;return We.createElement("span",{className:li,onMouseDown:function(oi){oi.preventDefault(),Ni==null||Ni(oi)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:en,"aria-hidden":!0},ze!==void 0?ze:We.createElement("span",{className:it()(li.split(/\s+/).map(function(si){return"".concat(si,"-icon")}))},Jn))},he=te,se=function(zt,li,ii,Rt,Jn){var Ni=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,en=arguments.length>6?arguments[6]:void 0,ze=arguments.length>7?arguments[7]:void 0,si=We.useMemo(function(){if((0,Ge.Z)(Rt)==="object")return Rt.clearIcon;if(Jn)return Jn},[Rt,Jn]),oi=We.useMemo(function(){return!!(!Ni&&Rt&&(ii.length||en)&&!(ze==="combobox"&&en===""))},[Rt,Ni,ii.length,en,ze]);return{allowClear:oi,clearIcon:We.createElement(he,{className:"".concat(zt,"-clear"),onMouseDown:li,customizeIcon:si},"\xD7")}},ge=We.createContext(null);function ye(){return We.useContext(ge)}function be(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,zt=We.useState(!1),li=(0,je.Z)(zt,2),ii=li[0],Rt=li[1],Jn=We.useRef(null),Ni=function(){window.clearTimeout(Jn.current)};We.useEffect(function(){return Ni},[]);var en=function(si,oi){Ni(),Jn.current=window.setTimeout(function(){Rt(si),oi&&oi()},yt)};return[ii,en,Ni]}function Ae(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,zt=We.useRef(null),li=We.useRef(null);We.useEffect(function(){return function(){window.clearTimeout(li.current)}},[]);function ii(Rt){(Rt||zt.current===null)&&(zt.current=Rt),window.clearTimeout(li.current),li.current=window.setTimeout(function(){zt.current=null},yt)}return[function(){return zt.current},ii]}function Le(yt,zt,li,ii){var Rt=We.useRef(null);Rt.current={open:zt,triggerOpen:li,customizedTrigger:ii},We.useEffect(function(){function Jn(Ni){var en;if(!((en=Rt.current)!==null&&en!==void 0&&en.customizedTrigger)){var ze=Ni.target;ze.shadowRoot&&Ni.composed&&(ze=Ni.composedPath()[0]||ze),Rt.current.open&&yt().filter(function(si){return si}).every(function(si){return!si.contains(ze)&&si!==ze})&&Rt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Jn),function(){return window.removeEventListener("mousedown",Jn)}},[])}var Ve=le(10228);function et(yt){return yt&&![Ve.Z.ESC,Ve.Z.SHIFT,Ve.Z.BACKSPACE,Ve.Z.TAB,Ve.Z.WIN_KEY,Ve.Z.ALT,Ve.Z.META,Ve.Z.WIN_KEY_RIGHT,Ve.Z.CTRL,Ve.Z.SEMICOLON,Ve.Z.EQUALS,Ve.Z.CAPS_LOCK,Ve.Z.CONTEXT_MENU,Ve.Z.F1,Ve.Z.F2,Ve.Z.F3,Ve.Z.F4,Ve.Z.F5,Ve.Z.F6,Ve.Z.F7,Ve.Z.F8,Ve.Z.F9,Ve.Z.F10,Ve.Z.F11,Ve.Z.F12].includes(yt)}var Je=le(26112),rt=le(11780);function at(yt,zt,li){var ii=(0,Ie.Z)((0,Ie.Z)({},yt),li?zt:{});return Object.keys(zt).forEach(function(Rt){var Jn=zt[Rt];typeof Jn=="function"&&(ii[Rt]=function(){for(var Ni,en=arguments.length,ze=new Array(en),si=0;si<en;si++)ze[si]=arguments[si];return Jn.apply(void 0,ze),(Ni=yt[Rt])===null||Ni===void 0?void 0:Ni.call.apply(Ni,[yt].concat(ze))})}),ii}var tt=at,Et=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Lt=function(zt,li){var ii=zt.prefixCls,Rt=zt.id,Jn=zt.inputElement,Ni=zt.autoFocus,en=zt.autoComplete,ze=zt.editable,si=zt.activeDescendantId,oi=zt.value,yn=zt.open,ir=zt.attrs,Zi=(0,Te.Z)(zt,Et),Fn=Jn||We.createElement("input",null),Li=Fn,jt=Li.ref,br=Li.props;return(0,Qe.Kp)(!("maxLength"in Fn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Fn=We.cloneElement(Fn,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},tt(Zi,br,!0)),{},{id:Rt,ref:(0,ne.sQ)(li,jt),autoComplete:en||"off",autoFocus:Ni,className:it()("".concat(ii,"-selection-search-input"),br==null?void 0:br.className),role:"combobox","aria-expanded":yn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Rt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Rt,"_list"),"aria-activedescendant":yn?si:void 0},ir),{},{value:ze?oi:"",readOnly:!ze,unselectable:ze?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},br.style),{},{opacity:ze?null:0})})),Fn},Ut=We.forwardRef(Lt),on=Ut;function an(yt){return Array.isArray(yt)?yt:yt!==void 0?[yt]:[]}var Kt=typeof window!="undefined"&&window.document&&window.document.documentElement,fn=Kt;function bt(yt){return yt!=null}function dt(yt){return!yt&&yt!==0}function ct(yt){return["string","number"].includes((0,Ge.Z)(yt))}function Qt(yt){var zt=void 0;return yt&&(ct(yt.title)?zt=yt.title.toString():ct(yt.label)&&(zt=yt.label.toString())),zt}function un(yt,zt){fn?We.useLayoutEffect(yt,zt):We.useEffect(yt,zt)}function Nt(yt){var zt;return(zt=yt.key)!==null&&zt!==void 0?zt:yt.value}var hn=function(zt){zt.preventDefault(),zt.stopPropagation()},cn=function(zt){var li=zt.id,ii=zt.prefixCls,Rt=zt.values,Jn=zt.open,Ni=zt.searchValue,en=zt.autoClearSearchValue,ze=zt.inputRef,si=zt.placeholder,oi=zt.disabled,yn=zt.mode,ir=zt.showSearch,Zi=zt.autoFocus,Fn=zt.autoComplete,Li=zt.activeDescendantId,jt=zt.tabIndex,br=zt.removeIcon,Eo=zt.maxTagCount,Gt=zt.maxTagTextLength,Wi=zt.maxTagPlaceholder,cr=Wi===void 0?function(mi){return"+ ".concat(mi.length," ...")}:Wi,Hi=zt.tagRender,Hr=zt.onToggleOpen,Rr=zt.onRemove,jr=zt.onInputChange,_r=zt.onInputPaste,Ur=zt.onInputKeyDown,po=zt.onInputMouseDown,Pn=zt.onInputCompositionStart,bo=zt.onInputCompositionEnd,Mn=zt.onInputBlur,tr=We.useRef(null),wr=(0,We.useState)(0),Sr=(0,je.Z)(wr,2),yo=Sr[0],Or=Sr[1],Ar=(0,We.useState)(!1),To=(0,je.Z)(Ar,2),rn=To[0],_n=To[1],Yt="".concat(ii,"-selection"),qe=Jn||yn==="multiple"&&en===!1||yn==="tags"?Ni:"",ai=yn==="tags"||yn==="multiple"&&en===!1||ir&&(Jn||rn);un(function(){Or(tr.current.scrollWidth)},[qe]);var yi=function(ti,gi,ui,xi,Oi){return We.createElement("span",{title:Qt(ti),className:it()("".concat(Yt,"-item"),(0,Me.Z)({},"".concat(Yt,"-item-disabled"),ui))},We.createElement("span",{className:"".concat(Yt,"-item-content")},gi),xi&&We.createElement(he,{className:"".concat(Yt,"-item-remove"),onMouseDown:hn,onClick:Oi,customizeIcon:br},"\xD7"))},Ki=function(ti,gi,ui,xi,Oi,En){var ur=function(Yr){hn(Yr),Hr(!Jn)};return We.createElement("span",{onMouseDown:ur},Hi({label:gi,value:ti,disabled:ui,closable:xi,onClose:Oi,isMaxTag:!!En}))},_i=function(ti){var gi=ti.disabled,ui=ti.label,xi=ti.value,Oi=!oi&&!gi,En=ui;if(typeof Gt=="number"&&(typeof ui=="string"||typeof ui=="number")){var ur=String(En);ur.length>Gt&&(En="".concat(ur.slice(0,Gt),"..."))}var sr=function(hr){hr&&hr.stopPropagation(),Rr(ti)};return typeof Hi=="function"?Ki(xi,En,gi,Oi,sr):yi(ti,En,gi,Oi,sr)},Ii=function(ti){if(!Rt.length)return null;var gi=typeof cr=="function"?cr(ti):cr;return typeof Hi=="function"?Ki(void 0,gi,!1,!1,void 0,!0):yi({title:gi},gi,!1)},On=We.createElement("div",{className:"".concat(Yt,"-search"),style:{width:yo},onFocus:function(){_n(!0)},onBlur:function(){_n(!1)}},We.createElement(on,{ref:ze,open:Jn,prefixCls:ii,id:li,inputElement:null,disabled:oi,autoFocus:Zi,autoComplete:Fn,editable:ai,activeDescendantId:Li,value:qe,onKeyDown:Ur,onMouseDown:po,onChange:jr,onPaste:_r,onCompositionStart:Pn,onCompositionEnd:bo,onBlur:Mn,tabIndex:jt,attrs:(0,Je.Z)(zt,!0)}),We.createElement("span",{ref:tr,className:"".concat(Yt,"-search-mirror"),"aria-hidden":!0},qe,"\xA0")),fi=We.createElement(rt.Z,{prefixCls:"".concat(Yt,"-overflow"),data:Rt,renderItem:_i,renderRest:Ii,suffix:On,itemKey:Nt,maxCount:Eo});return We.createElement("span",{className:"".concat(Yt,"-wrap")},fi,!Rt.length&&!qe&&We.createElement("span",{className:"".concat(Yt,"-placeholder")},si))},Qn=cn,Bt=function(zt){var li=zt.inputElement,ii=zt.prefixCls,Rt=zt.id,Jn=zt.inputRef,Ni=zt.disabled,en=zt.autoFocus,ze=zt.autoComplete,si=zt.activeDescendantId,oi=zt.mode,yn=zt.open,ir=zt.values,Zi=zt.placeholder,Fn=zt.tabIndex,Li=zt.showSearch,jt=zt.searchValue,br=zt.activeValue,Eo=zt.maxLength,Gt=zt.onInputKeyDown,Wi=zt.onInputMouseDown,cr=zt.onInputChange,Hi=zt.onInputPaste,Hr=zt.onInputCompositionStart,Rr=zt.onInputCompositionEnd,jr=zt.onInputBlur,_r=zt.title,Ur=We.useState(!1),po=(0,je.Z)(Ur,2),Pn=po[0],bo=po[1],Mn=oi==="combobox",tr=Mn||Li,wr=ir[0],Sr=jt||"";Mn&&br&&!Pn&&(Sr=br),We.useEffect(function(){Mn&&bo(!1)},[Mn,br]);var yo=oi!=="combobox"&&!yn&&!Li?!1:!!Sr,Or=_r===void 0?Qt(wr):_r,Ar=We.useMemo(function(){return wr?null:We.createElement("span",{className:"".concat(ii,"-selection-placeholder"),style:yo?{visibility:"hidden"}:void 0},Zi)},[wr,yo,Zi,ii]);return We.createElement("span",{className:"".concat(ii,"-selection-wrap")},We.createElement("span",{className:"".concat(ii,"-selection-search")},We.createElement(on,{ref:Jn,prefixCls:ii,id:Rt,open:yn,inputElement:li,disabled:Ni,autoFocus:en,autoComplete:ze,editable:tr,activeDescendantId:si,value:Sr,onKeyDown:Gt,onMouseDown:Wi,onChange:function(rn){bo(!0),cr(rn)},onPaste:Hi,onCompositionStart:Hr,onCompositionEnd:Rr,onBlur:jr,tabIndex:Fn,attrs:(0,Je.Z)(zt,!0),maxLength:Mn?Eo:void 0})),!Mn&&wr?We.createElement("span",{className:"".concat(ii,"-selection-item"),title:Or,style:yo?{visibility:"hidden"}:void 0},wr.label):null,Ar)},Pt=Bt,Wt=function(zt,li){var ii=(0,We.useRef)(null),Rt=(0,We.useRef)(!1),Jn=zt.prefixCls,Ni=zt.open,en=zt.mode,ze=zt.showSearch,si=zt.tokenWithEnter,oi=zt.disabled,yn=zt.prefix,ir=zt.autoClearSearchValue,Zi=zt.onSearch,Fn=zt.onSearchSubmit,Li=zt.onToggleOpen,jt=zt.onInputKeyDown,br=zt.onInputBlur,Eo=zt.domRef;We.useImperativeHandle(li,function(){return{focus:function(Or){ii.current.focus(Or)},blur:function(){ii.current.blur()}}});var Gt=Ae(0),Wi=(0,je.Z)(Gt,2),cr=Wi[0],Hi=Wi[1],Hr=function(Or){var Ar=Or.which,To=ii.current instanceof HTMLTextAreaElement;!To&&Ni&&(Ar===Ve.Z.UP||Ar===Ve.Z.DOWN)&&Or.preventDefault(),jt&&jt(Or),Ar===Ve.Z.ENTER&&en==="tags"&&!Rt.current&&!Ni&&(Fn==null||Fn(Or.target.value)),!(To&&!Ni&&~[Ve.Z.UP,Ve.Z.DOWN,Ve.Z.LEFT,Ve.Z.RIGHT].indexOf(Ar))&&et(Ar)&&Li(!0)},Rr=function(){Hi(!0)},jr=(0,We.useRef)(null),_r=function(Or){Zi(Or,!0,Rt.current)!==!1&&Li(!0)},Ur=function(){Rt.current=!0},po=function(Or){Rt.current=!1,en!=="combobox"&&_r(Or.target.value)},Pn=function(Or){var Ar=Or.target.value;if(si&&jr.current&&/[\r\n]/.test(jr.current)){var To=jr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ar=Ar.replace(To,jr.current)}jr.current=null,_r(Ar)},bo=function(Or){var Ar=Or.clipboardData,To=Ar==null?void 0:Ar.getData("text");jr.current=To||""},Mn=function(Or){var Ar=Or.target;if(Ar!==ii.current){var To=document.body.style.msTouchAction!==void 0;To?setTimeout(function(){ii.current.focus()}):ii.current.focus()}},tr=function(Or){var Ar=cr();Or.target!==ii.current&&!Ar&&!(en==="combobox"&&oi)&&Or.preventDefault(),(en!=="combobox"&&(!ze||!Ar)||!Ni)&&(Ni&&ir!==!1&&Zi("",!0,!1),Li())},wr={inputRef:ii,onInputKeyDown:Hr,onInputMouseDown:Rr,onInputChange:Pn,onInputPaste:bo,onInputCompositionStart:Ur,onInputCompositionEnd:po,onInputBlur:br},Sr=en==="multiple"||en==="tags"?We.createElement(Qn,(0,ce.Z)({},zt,wr)):We.createElement(Pt,(0,ce.Z)({},zt,wr));return We.createElement("div",{ref:Eo,className:"".concat(Jn,"-selector"),onClick:Mn,onMouseDown:tr},yn&&We.createElement("div",{className:"".concat(Jn,"-prefix")},yn),Sr)},An=We.forwardRef(Wt),Nn=An,$e=le(65030),Oe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ke=function(zt){var li=zt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"}}},Ke=function(zt,li){var ii=zt.prefixCls,Rt=zt.disabled,Jn=zt.visible,Ni=zt.children,en=zt.popupElement,ze=zt.animation,si=zt.transitionName,oi=zt.dropdownStyle,yn=zt.dropdownClassName,ir=zt.direction,Zi=ir===void 0?"ltr":ir,Fn=zt.placement,Li=zt.builtinPlacements,jt=zt.dropdownMatchSelectWidth,br=zt.dropdownRender,Eo=zt.dropdownAlign,Gt=zt.getPopupContainer,Wi=zt.empty,cr=zt.getTriggerDOMNode,Hi=zt.onPopupVisibleChange,Hr=zt.onPopupMouseEnter,Rr=(0,Te.Z)(zt,Oe),jr="".concat(ii,"-dropdown"),_r=en;br&&(_r=br(en));var Ur=We.useMemo(function(){return Li||ke(jt)},[Li,jt]),po=ze?"".concat(jr,"-").concat(ze):si,Pn=typeof jt=="number",bo=We.useMemo(function(){return Pn?null:jt===!1?"minWidth":"width"},[jt,Pn]),Mn=oi;Pn&&(Mn=(0,Ie.Z)((0,Ie.Z)({},Mn),{},{width:jt}));var tr=We.useRef(null);return We.useImperativeHandle(li,function(){return{getPopupElement:function(){var Sr;return(Sr=tr.current)===null||Sr===void 0?void 0:Sr.popupElement}}}),We.createElement($e.Z,(0,ce.Z)({},Rr,{showAction:Hi?["click"]:[],hideAction:Hi?["click"]:[],popupPlacement:Fn||(Zi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ur,prefixCls:jr,popupTransitionName:po,popup:We.createElement("div",{onMouseEnter:Hr},_r),ref:tr,stretch:bo,popupAlign:Eo,popupVisible:Jn,getPopupContainer:Gt,popupClassName:it()(yn,(0,Me.Z)({},"".concat(jr,"-empty"),Wi)),popupStyle:Mn,getTriggerDOMNode:cr,onPopupVisibleChange:Hi}),Ni)},lt=We.forwardRef(Ke),Ue=lt,gt=le(57879);function tn(yt,zt){var li=yt.key,ii;return"value"in yt&&(ii=yt.value),li!=null?li:ii!==void 0?ii:"rc-index-key-".concat(zt)}function Un(yt){return typeof yt!="undefined"&&!Number.isNaN(yt)}function qn(yt,zt){var li=yt||{},ii=li.label,Rt=li.value,Jn=li.options,Ni=li.groupLabel,en=ii||(zt?"children":"label");return{label:en,value:Rt||"value",options:Jn||"options",groupLabel:Ni||en}}function nn(yt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},li=zt.fieldNames,ii=zt.childrenAsData,Rt=[],Jn=qn(li,!1),Ni=Jn.label,en=Jn.value,ze=Jn.options,si=Jn.groupLabel;function oi(yn,ir){Array.isArray(yn)&&yn.forEach(function(Zi){if(ir||!(ze in Zi)){var Fn=Zi[en];Rt.push({key:tn(Zi,Rt.length),groupOption:ir,data:Zi,label:Zi[Ni],value:Fn})}else{var Li=Zi[si];Li===void 0&&ii&&(Li=Zi.label),Rt.push({key:tn(Zi,Rt.length),group:!0,data:Zi,label:Li}),oi(Zi[ze],!0)}})}return oi(yt,!1),Rt}function Ht(yt){var zt=(0,Ie.Z)({},yt);return"props"in zt||Object.defineProperty(zt,"props",{get:function(){return(0,Qe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),zt}}),zt}var sn=function(zt,li,ii){if(!li||!li.length)return null;var Rt=!1,Jn=function en(ze,si){var oi=(0,gt.Z)(si),yn=oi[0],ir=oi.slice(1);if(!yn)return[ze];var Zi=ze.split(yn);return Rt=Rt||Zi.length>1,Zi.reduce(function(Fn,Li){return[].concat((0,Pe.Z)(Fn),(0,Pe.Z)(en(Li,ir)))},[]).filter(Boolean)},Ni=Jn(zt,li);return Rt?typeof ii!="undefined"?Ni.slice(0,ii):Ni:null},vn=We.createContext(null),Ln=vn;function xn(yt){var zt=yt.visible,li=yt.values;if(!zt)return null;var ii=50;return We.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(li.slice(0,ii).map(function(Rt){var Jn=Rt.label,Ni=Rt.value;return["number","string"].includes((0,Ge.Z)(Jn))?Jn:Ni}).join(", ")),li.length>ii?", ...":null)}var _t=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Vn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Kn=function(zt){return zt==="tags"||zt==="multiple"},Tn=We.forwardRef(function(yt,zt){var li,ii=yt.id,Rt=yt.prefixCls,Jn=yt.className,Ni=yt.showSearch,en=yt.tagRender,ze=yt.direction,si=yt.omitDomProps,oi=yt.displayValues,yn=yt.onDisplayValuesChange,ir=yt.emptyOptions,Zi=yt.notFoundContent,Fn=Zi===void 0?"Not Found":Zi,Li=yt.onClear,jt=yt.mode,br=yt.disabled,Eo=yt.loading,Gt=yt.getInputElement,Wi=yt.getRawInputElement,cr=yt.open,Hi=yt.defaultOpen,Hr=yt.onDropdownVisibleChange,Rr=yt.activeValue,jr=yt.onActiveValueChange,_r=yt.activeDescendantId,Ur=yt.searchValue,po=yt.autoClearSearchValue,Pn=yt.onSearch,bo=yt.onSearchSplit,Mn=yt.tokenSeparators,tr=yt.allowClear,wr=yt.prefix,Sr=yt.suffixIcon,yo=yt.clearIcon,Or=yt.OptionList,Ar=yt.animation,To=yt.transitionName,rn=yt.dropdownStyle,_n=yt.dropdownClassName,Yt=yt.dropdownMatchSelectWidth,qe=yt.dropdownRender,ai=yt.dropdownAlign,yi=yt.placement,Ki=yt.builtinPlacements,_i=yt.getPopupContainer,Ii=yt.showAction,On=Ii===void 0?[]:Ii,fi=yt.onFocus,mi=yt.onBlur,ti=yt.onKeyUp,gi=yt.onKeyDown,ui=yt.onMouseDown,xi=(0,Te.Z)(yt,_t),Oi=Kn(jt),En=(Ni!==void 0?Ni:Oi)||jt==="combobox",ur=(0,Ie.Z)({},xi);Vn.forEach(function(fo){delete ur[fo]}),si==null||si.forEach(function(fo){delete ur[fo]});var sr=We.useState(!1),Yr=(0,je.Z)(sr,2),hr=Yr[0],lo=Yr[1];We.useEffect(function(){lo((0,Fe.Z)())},[]);var eo=We.useRef(null),Co=We.useRef(null),uo=We.useRef(null),Ao=We.useRef(null),No=We.useRef(null),qt=We.useRef(!1),mo=be(),Kr=(0,je.Z)(mo,3),Pr=Kr[0],fr=Kr[1],co=Kr[2];We.useImperativeHandle(zt,function(){var fo,Vr;return{focus:(fo=Ao.current)===null||fo===void 0?void 0:fo.focus,blur:(Vr=Ao.current)===null||Vr===void 0?void 0:Vr.blur,scrollTo:function($i){var Ta;return(Ta=No.current)===null||Ta===void 0?void 0:Ta.scrollTo($i)},nativeElement:eo.current||Co.current}});var Lo=We.useMemo(function(){var fo;if(jt!=="combobox")return Ur;var Vr=(fo=oi[0])===null||fo===void 0?void 0:fo.value;return typeof Vr=="string"||typeof Vr=="number"?String(Vr):""},[Ur,jt,oi]),dn=jt==="combobox"&&typeof Gt=="function"&&Gt()||null,Gr=typeof Wi=="function"&&Wi(),Uo=(0,ne.x1)(Co,Gr==null||(li=Gr.props)===null||li===void 0?void 0:li.ref),Sa=We.useState(!1),Ya=(0,je.Z)(Sa,2),bs=Ya[0],ts=Ya[1];(0,kt.Z)(function(){ts(!0)},[]);var xr=(0,st.Z)(!1,{defaultValue:Hi,value:cr}),ca=(0,je.Z)(xr,2),da=ca[0],Ra=ca[1],va=bs?da:!1,Pa=!Fn&&ir;(br||Pa&&va&&jt==="combobox")&&(va=!1);var Pi=Pa?!1:va,dr=We.useCallback(function(fo){var Vr=fo!==void 0?fo:!va;br||(Ra(Vr),va!==Vr&&(Hr==null||Hr(Vr)))},[br,va,Ra,Hr]),Dr=We.useMemo(function(){return(Mn||[]).some(function(fo){return[`
|
|
|
`,`\r
|
|
|
`].includes(fo)})},[Mn]),to=We.useContext(Ln)||{},oo=to.maxCount,Wo=to.rawValues,vr=function(Vr,ea,$i){if(!(Oi&&Un(oo)&&(Wo==null?void 0:Wo.size)>=oo)){var Ta=!0,It=Vr;jr==null||jr(null);var Wn=sn(Vr,Mn,Un(oo)?oo-Wo.size:void 0),Cs=$i?null:Wn;return jt!=="combobox"&&Cs&&(It="",bo==null||bo(Cs),dr(!1),Ta=!1),Pn&&Lo!==It&&Pn(It,{source:ea?"typing":"effect"}),Ta}},Ua=function(Vr){!Vr||!Vr.trim()||Pn(Vr,{source:"submit"})};We.useEffect(function(){!va&&!Oi&&jt!=="combobox"&&vr("",!1,!1)},[va]),We.useEffect(function(){da&&br&&Ra(!1),br&&!qt.current&&fr(!1)},[br]);var ha=Ae(),Ea=(0,je.Z)(ha,2),ho=Ea[0],Yo=Ea[1],fs=We.useRef(!1),ia=function(Vr){var ea=ho(),$i=Vr.key,Ta=$i==="Enter";if(Ta&&(jt!=="combobox"&&Vr.preventDefault(),va||dr(!0)),Yo(!!Lo),$i==="Backspace"&&!ea&&Oi&&!Lo&&oi.length){for(var It=(0,Pe.Z)(oi),Wn=null,Cs=It.length-1;Cs>=0;Cs-=1){var Gs=It[Cs];if(!Gs.disabled){It.splice(Cs,1),Wn=Gs;break}}Wn&&yn(It,{type:"remove",values:[Wn]})}for(var Na=arguments.length,Wa=new Array(Na>1?Na-1:0),as=1;as<Na;as++)Wa[as-1]=arguments[as];if(va&&(!Ta||!fs.current)){var qa;Ta&&(fs.current=!0),(qa=No.current)===null||qa===void 0||qa.onKeyDown.apply(qa,[Vr].concat(Wa))}gi==null||gi.apply(void 0,[Vr].concat(Wa))},os=function(Vr){for(var ea=arguments.length,$i=new Array(ea>1?ea-1:0),Ta=1;Ta<ea;Ta++)$i[Ta-1]=arguments[Ta];if(va){var It;(It=No.current)===null||It===void 0||It.onKeyUp.apply(It,[Vr].concat($i))}Vr.key==="Enter"&&(fs.current=!1),ti==null||ti.apply(void 0,[Vr].concat($i))},Ns=function(Vr){var ea=oi.filter(function($i){return $i!==Vr});yn(ea,{type:"remove",values:[Vr]})},ws=function(){fs.current=!1},ba=We.useRef(!1),Qs=function(){fr(!0),br||(fi&&!ba.current&&fi.apply(void 0,arguments),On.includes("focus")&&dr(!0)),ba.current=!0},Wl=function(){qt.current=!0,fr(!1,function(){ba.current=!1,qt.current=!1,dr(!1)}),!br&&(Lo&&(jt==="tags"?Pn(Lo,{source:"submit"}):jt==="multiple"&&Pn("",{source:"blur"})),mi&&mi.apply(void 0,arguments))},Ms=[];We.useEffect(function(){return function(){Ms.forEach(function(fo){return clearTimeout(fo)}),Ms.splice(0,Ms.length)}},[]);var js=function(Vr){var ea,$i=Vr.target,Ta=(ea=uo.current)===null||ea===void 0?void 0:ea.getPopupElement();if(Ta&&Ta.contains($i)){var It=setTimeout(function(){var Na=Ms.indexOf(It);if(Na!==-1&&Ms.splice(Na,1),co(),!hr&&!Ta.contains(document.activeElement)){var Wa;(Wa=Ao.current)===null||Wa===void 0||Wa.focus()}});Ms.push(It)}for(var Wn=arguments.length,Cs=new Array(Wn>1?Wn-1:0),Gs=1;Gs<Wn;Gs++)Cs[Gs-1]=arguments[Gs];ui==null||ui.apply(void 0,[Vr].concat(Cs))},Rs=We.useState({}),Rl=(0,je.Z)(Rs,2),iu=Rl[1];function ru(){iu({})}var ka;Gr&&(ka=function(Vr){dr(Vr)}),Le(function(){var fo;return[eo.current,(fo=uo.current)===null||fo===void 0?void 0:fo.getPopupElement()]},Pi,dr,!!Gr);var ou=We.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},yt),{},{notFoundContent:Fn,open:va,triggerOpen:Pi,id:ii,showSearch:En,multiple:Oi,toggleOpen:dr})},[yt,Fn,Pi,va,ii,En,Oi,dr]),Mu=!!Sr||Eo,xl;Mu&&(xl=We.createElement(he,{className:it()("".concat(Rt,"-arrow"),(0,Me.Z)({},"".concat(Rt,"-arrow-loading"),Eo)),customizeIcon:Sr,customizeIconProps:{loading:Eo,searchValue:Lo,open:va,focused:Pr,showSearch:En}}));var Zn=function(){var Vr;Li==null||Li(),(Vr=Ao.current)===null||Vr===void 0||Vr.focus(),yn([],{type:"clear",values:oi}),vr("",!1,!1)},gr=se(Rt,Zn,oi,tr,yo,br,Lo,jt),Wr=gr.allowClear,Qr=gr.clearIcon,wo=We.createElement(Or,{ref:No}),Ro=it()(Rt,Jn,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Rt,"-focused"),Pr),"".concat(Rt,"-multiple"),Oi),"".concat(Rt,"-single"),!Oi),"".concat(Rt,"-allow-clear"),tr),"".concat(Rt,"-show-arrow"),Mu),"".concat(Rt,"-disabled"),br),"".concat(Rt,"-loading"),Eo),"".concat(Rt,"-open"),va),"".concat(Rt,"-customize-input"),dn),"".concat(Rt,"-show-search"),En)),aa=We.createElement(Ue,{ref:uo,disabled:br,prefixCls:Rt,visible:Pi,popupElement:wo,animation:Ar,transitionName:To,dropdownStyle:rn,dropdownClassName:_n,direction:ze,dropdownMatchSelectWidth:Yt,dropdownRender:qe,dropdownAlign:ai,placement:yi,builtinPlacements:Ki,getPopupContainer:_i,empty:ir,getTriggerDOMNode:function(Vr){return Co.current||Vr},onPopupVisibleChange:ka,onPopupMouseEnter:ru},Gr?We.cloneElement(Gr,{ref:Uo}):We.createElement(Nn,(0,ce.Z)({},yt,{domRef:Co,prefixCls:Rt,inputElement:dn,ref:Ao,id:ii,prefix:wr,showSearch:En,autoClearSearchValue:po,mode:jt,activeDescendantId:_r,tagRender:en,values:oi,open:va,onToggleOpen:dr,activeValue:Rr,searchValue:Lo,onSearch:vr,onSearchSubmit:Ua,onRemove:Ns,tokenWithEnter:Dr,onInputBlur:ws}))),vo;return Gr?vo=aa:vo=We.createElement("div",(0,ce.Z)({className:Ro},ur,{ref:eo,onMouseDown:js,onKeyDown:ia,onKeyUp:os,onFocus:Qs,onBlur:Wl}),We.createElement(xn,{visible:Pr&&!va,values:oi}),aa,xl,Wr&&Qr),We.createElement(ge.Provider,{value:ou},vo)}),jn=Tn,Mi=function(){return null};Mi.isSelectOptGroup=!0;var Gn=Mi,wt=function(){return null};wt.isSelectOption=!0;var Si=wt,wi=le(80547),Vt=le(2738),qi=le(6790);function lr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var rr=["disabled","title","children","style","className"];function In(yt){return typeof yt=="string"||typeof yt=="number"}var Br=function(zt,li){var ii=ye(),Rt=ii.prefixCls,Jn=ii.id,Ni=ii.open,en=ii.multiple,ze=ii.mode,si=ii.searchValue,oi=ii.toggleOpen,yn=ii.notFoundContent,ir=ii.onPopupScroll,Zi=We.useContext(Ln),Fn=Zi.maxCount,Li=Zi.flattenOptions,jt=Zi.onActiveValue,br=Zi.defaultActiveFirstOption,Eo=Zi.onSelect,Gt=Zi.menuItemSelectedIcon,Wi=Zi.rawValues,cr=Zi.fieldNames,Hi=Zi.virtual,Hr=Zi.direction,Rr=Zi.listHeight,jr=Zi.listItemHeight,_r=Zi.optionRender,Ur="".concat(Rt,"-item"),po=(0,wi.Z)(function(){return Li},[Ni,Li],function(Ii,On){return On[0]&&Ii[1]!==On[1]}),Pn=We.useRef(null),bo=We.useMemo(function(){return en&&Un(Fn)&&(Wi==null?void 0:Wi.size)>=Fn},[en,Fn,Wi==null?void 0:Wi.size]),Mn=function(On){On.preventDefault()},tr=function(On){var fi;(fi=Pn.current)===null||fi===void 0||fi.scrollTo(typeof On=="number"?{index:On}:On)},wr=We.useCallback(function(Ii){return ze==="combobox"?!1:Wi.has(Ii)},[ze,(0,Pe.Z)(Wi).toString(),Wi.size]),Sr=function(On){for(var fi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,mi=po.length,ti=0;ti<mi;ti+=1){var gi=(On+ti*fi+mi)%mi,ui=po[gi]||{},xi=ui.group,Oi=ui.data;if(!xi&&!(Oi!=null&&Oi.disabled)&&(wr(Oi.value)||!bo))return gi}return-1},yo=We.useState(function(){return Sr(0)}),Or=(0,je.Z)(yo,2),Ar=Or[0],To=Or[1],rn=function(On){var fi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;To(On);var mi={source:fi?"keyboard":"mouse"},ti=po[On];if(!ti){jt(null,-1,mi);return}jt(ti.value,On,mi)};(0,We.useEffect)(function(){rn(br!==!1?Sr(0):-1)},[po.length,si]);var _n=We.useCallback(function(Ii){return ze==="combobox"?String(Ii).toLowerCase()===si.toLowerCase():Wi.has(Ii)},[ze,si,(0,Pe.Z)(Wi).toString(),Wi.size]);(0,We.useEffect)(function(){var Ii=setTimeout(function(){if(!en&&Ni&&Wi.size===1){var fi=Array.from(Wi)[0],mi=po.findIndex(function(ti){var gi=ti.data;return si?String(gi.value).startsWith(si):gi.value===fi});mi!==-1&&(rn(mi),tr(mi))}});if(Ni){var On;(On=Pn.current)===null||On===void 0||On.scrollTo(void 0)}return function(){return clearTimeout(Ii)}},[Ni,si]);var Yt=function(On){On!==void 0&&Eo(On,{selected:!Wi.has(On)}),en||oi(!1)};if(We.useImperativeHandle(li,function(){return{onKeyDown:function(On){var fi=On.which,mi=On.ctrlKey;switch(fi){case Ve.Z.N:case Ve.Z.P:case Ve.Z.UP:case Ve.Z.DOWN:{var ti=0;if(fi===Ve.Z.UP?ti=-1:fi===Ve.Z.DOWN?ti=1:lr()&&mi&&(fi===Ve.Z.N?ti=1:fi===Ve.Z.P&&(ti=-1)),ti!==0){var gi=Sr(Ar+ti,ti);tr(gi),rn(gi,!0)}break}case Ve.Z.TAB:case Ve.Z.ENTER:{var ui,xi=po[Ar];xi&&!(xi!=null&&(ui=xi.data)!==null&&ui!==void 0&&ui.disabled)&&!bo?Yt(xi.value):Yt(void 0),Ni&&On.preventDefault();break}case Ve.Z.ESC:oi(!1),Ni&&On.stopPropagation()}},onKeyUp:function(){},scrollTo:function(On){tr(On)}}}),po.length===0)return We.createElement("div",{role:"listbox",id:"".concat(Jn,"_list"),className:"".concat(Ur,"-empty"),onMouseDown:Mn},yn);var qe=Object.keys(cr).map(function(Ii){return cr[Ii]}),ai=function(On){return On.label};function yi(Ii,On){var fi=Ii.group;return{role:fi?"presentation":"option",id:"".concat(Jn,"_list_").concat(On)}}var Ki=function(On){var fi=po[On];if(!fi)return null;var mi=fi.data||{},ti=mi.value,gi=fi.group,ui=(0,Je.Z)(mi,!0),xi=ai(fi);return fi?We.createElement("div",(0,ce.Z)({"aria-label":typeof xi=="string"&&!gi?xi:null},ui,{key:On},yi(fi,On),{"aria-selected":_n(ti)}),ti):null},_i={role:"listbox",id:"".concat(Jn,"_list")};return We.createElement(We.Fragment,null,Hi&&We.createElement("div",(0,ce.Z)({},_i,{style:{height:0,width:0,overflow:"hidden"}}),Ki(Ar-1),Ki(Ar),Ki(Ar+1)),We.createElement(qi.Z,{itemKey:"key",ref:Pn,data:po,height:Rr,itemHeight:jr,fullHeight:!1,onMouseDown:Mn,onScroll:ir,virtual:Hi,direction:Hr,innerProps:Hi?null:_i},function(Ii,On){var fi=Ii.group,mi=Ii.groupOption,ti=Ii.data,gi=Ii.label,ui=Ii.value,xi=ti.key;if(fi){var Oi,En=(Oi=ti.title)!==null&&Oi!==void 0?Oi:In(gi)?gi.toString():void 0;return We.createElement("div",{className:it()(Ur,"".concat(Ur,"-group"),ti.className),title:En},gi!==void 0?gi:xi)}var ur=ti.disabled,sr=ti.title,Yr=ti.children,hr=ti.style,lo=ti.className,eo=(0,Te.Z)(ti,rr),Co=(0,Vt.Z)(eo,qe),uo=wr(ui),Ao=ur||!uo&&bo,No="".concat(Ur,"-option"),qt=it()(Ur,No,lo,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(No,"-grouped"),mi),"".concat(No,"-active"),Ar===On&&!Ao),"".concat(No,"-disabled"),Ao),"".concat(No,"-selected"),uo)),mo=ai(Ii),Kr=!Gt||typeof Gt=="function"||uo,Pr=typeof mo=="number"?mo:mo||ui,fr=In(Pr)?Pr.toString():void 0;return sr!==void 0&&(fr=sr),We.createElement("div",(0,ce.Z)({},(0,Je.Z)(Co),Hi?{}:yi(Ii,On),{"aria-selected":_n(ui),className:qt,title:fr,onMouseMove:function(){Ar===On||Ao||rn(On)},onClick:function(){Ao||Yt(ui)},style:hr}),We.createElement("div",{className:"".concat(No,"-content")},typeof _r=="function"?_r(Ii,{index:On}):Pr),We.isValidElement(Gt)||uo,Kr&&We.createElement(he,{className:"".concat(Ur,"-option-state"),customizeIcon:Gt,customizeIconProps:{value:ui,disabled:Ao,isSelected:uo}},uo?"\u2713":null))}))},Tr=We.forwardRef(Br),Xi=Tr,Ji=function(yt,zt){var li=We.useRef({values:new Map,options:new Map}),ii=We.useMemo(function(){var Jn=li.current,Ni=Jn.values,en=Jn.options,ze=yt.map(function(yn){if(yn.label===void 0){var ir;return(0,Ie.Z)((0,Ie.Z)({},yn),{},{label:(ir=Ni.get(yn.value))===null||ir===void 0?void 0:ir.label})}return yn}),si=new Map,oi=new Map;return ze.forEach(function(yn){si.set(yn.value,yn),oi.set(yn.value,zt.get(yn.value)||en.get(yn.value))}),li.current.values=si,li.current.options=oi,ze},[yt,zt]),Rt=We.useCallback(function(Jn){return zt.get(Jn)||li.current.options.get(Jn)},[zt]);return[ii,Rt]};function Nr(yt,zt){return an(yt).join("").toUpperCase().includes(zt)}var Be=function(yt,zt,li,ii,Rt){return We.useMemo(function(){if(!li||ii===!1)return yt;var Jn=zt.options,Ni=zt.label,en=zt.value,ze=[],si=typeof ii=="function",oi=li.toUpperCase(),yn=si?ii:function(Zi,Fn){return Rt?Nr(Fn[Rt],oi):Fn[Jn]?Nr(Fn[Ni!=="children"?Ni:"label"],oi):Nr(Fn[en],oi)},ir=si?function(Zi){return Ht(Zi)}:function(Zi){return Zi};return yt.forEach(function(Zi){if(Zi[Jn]){var Fn=yn(li,ir(Zi));if(Fn)ze.push(Zi);else{var Li=Zi[Jn].filter(function(jt){return yn(li,ir(jt))});Li.length&&ze.push((0,Ie.Z)((0,Ie.Z)({},Zi),{},(0,Me.Z)({},Jn,Li)))}return}yn(li,ir(Zi))&&ze.push(Zi)}),ze},[yt,ii,Rt,li,zt])},Vi=le(6551),bi=le(11592),di=["children","value"],Ri=["children"];function Fi(yt){var zt=yt,li=zt.key,ii=zt.props,Rt=ii.children,Jn=ii.value,Ni=(0,Te.Z)(ii,di);return(0,Ie.Z)({key:li,value:Jn!==void 0?Jn:li,children:Rt},Ni)}function Ti(yt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,bi.Z)(yt).map(function(li,ii){if(!We.isValidElement(li)||!li.type)return null;var Rt=li,Jn=Rt.type.isSelectOptGroup,Ni=Rt.key,en=Rt.props,ze=en.children,si=(0,Te.Z)(en,Ri);return zt||!Jn?Fi(li):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(Ni===null?ii:Ni,"__"),label:Ni},si),{},{options:Ti(ze)})}).filter(function(li){return li})}var Lr=function(zt,li,ii,Rt,Jn){return We.useMemo(function(){var Ni=zt,en=!zt;en&&(Ni=Ti(li));var ze=new Map,si=new Map,oi=function(Zi,Fn,Li){Li&&typeof Li=="string"&&Zi.set(Fn[Li],Fn)},yn=function ir(Zi){for(var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Li=0;Li<Zi.length;Li+=1){var jt=Zi[Li];!jt[ii.options]||Fn?(ze.set(jt[ii.value],jt),oi(si,jt,ii.label),oi(si,jt,Rt),oi(si,jt,Jn)):ir(jt[ii.options],!0)}};return yn(Ni),{options:Ni,valueOptions:ze,labelOptions:si}},[zt,li,ii,Rt,Jn])},ln=Lr;function pn(yt){var zt=We.useRef();zt.current=yt;var li=We.useCallback(function(){return zt.current.apply(zt,arguments)},[]);return li}function $t(yt){var zt=yt.mode,li=yt.options,ii=yt.children,Rt=yt.backfill,Jn=yt.allowClear,Ni=yt.placeholder,en=yt.getInputElement,ze=yt.showSearch,si=yt.onSearch,oi=yt.defaultOpen,yn=yt.autoFocus,ir=yt.labelInValue,Zi=yt.value,Fn=yt.inputValue,Li=yt.optionLabelProp,jt=isMultiple(zt),br=ze!==void 0?ze:jt||zt==="combobox",Eo=li||convertChildrenToData(ii);if(warning(zt!=="tags"||Eo.every(function(Hi){return!Hi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),zt==="tags"||zt==="combobox"){var Gt=Eo.some(function(Hi){return Hi.options?Hi.options.some(function(Hr){return typeof("value"in Hr?Hr.value:Hr.key)=="number"}):typeof("value"in Hi?Hi.value:Hi.key)=="number"});warning(!Gt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(zt!=="combobox"||!Li,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(zt==="combobox"||!Rt,"`backfill` only works with `combobox` mode."),warning(zt==="combobox"||!en,"`getInputElement` only work with `combobox` mode."),noteOnce(zt!=="combobox"||!en||!Jn||!Ni,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),si&&!br&&zt!=="combobox"&&zt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!oi||yn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Zi!=null){var Wi=toArray(Zi);warning(!ir||Wi.every(function(Hi){return _typeof(Hi)==="object"&&("key"in Hi||"value"in Hi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!jt||Array.isArray(Zi),"`value` should be array when `mode` is `multiple` or `tags`")}if(ii){var cr=null;toNodeArray(ii).some(function(Hi){if(!React.isValidElement(Hi)||!Hi.type)return!1;var Hr=Hi,Rr=Hr.type;if(Rr.isSelectOption)return!1;if(Rr.isSelectOptGroup){var jr=toNodeArray(Hi.props.children).every(function(_r){return!React.isValidElement(_r)||!Hi.type||_r.type.isSelectOption?!0:(cr=_r.type,!1)});return!jr}return cr=Rr,!0}),cr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(cr.displayName||cr.name||cr,"`.")),warning(Fn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function wn(yt,zt){if(yt){var li=function ii(Rt){for(var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ni=0;Ni<Rt.length;Ni++){var en=Rt[Ni];if(en[zt==null?void 0:zt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Jn&&Array.isArray(en[zt==null?void 0:zt.options])&&ii(en[zt==null?void 0:zt.options],!0))break}};li(yt)}}var Gi=null,Ci=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Yi=["inputValue"];function mn(yt){return!yt||(0,Ge.Z)(yt)!=="object"}var Rn=We.forwardRef(function(yt,zt){var li=yt.id,ii=yt.mode,Rt=yt.prefixCls,Jn=Rt===void 0?"rc-select":Rt,Ni=yt.backfill,en=yt.fieldNames,ze=yt.inputValue,si=yt.searchValue,oi=yt.onSearch,yn=yt.autoClearSearchValue,ir=yn===void 0?!0:yn,Zi=yt.onSelect,Fn=yt.onDeselect,Li=yt.dropdownMatchSelectWidth,jt=Li===void 0?!0:Li,br=yt.filterOption,Eo=yt.filterSort,Gt=yt.optionFilterProp,Wi=yt.optionLabelProp,cr=yt.options,Hi=yt.optionRender,Hr=yt.children,Rr=yt.defaultActiveFirstOption,jr=yt.menuItemSelectedIcon,_r=yt.virtual,Ur=yt.direction,po=yt.listHeight,Pn=po===void 0?200:po,bo=yt.listItemHeight,Mn=bo===void 0?20:bo,tr=yt.labelRender,wr=yt.value,Sr=yt.defaultValue,yo=yt.labelInValue,Or=yt.onChange,Ar=yt.maxCount,To=(0,Te.Z)(yt,Ci),rn=(0,Vi.ZP)(li),_n=Kn(ii),Yt=!!(!cr&&Hr),qe=We.useMemo(function(){return br===void 0&&ii==="combobox"?!1:br},[br,ii]),ai=We.useMemo(function(){return qn(en,Yt)},[JSON.stringify(en),Yt]),yi=(0,st.Z)("",{value:si!==void 0?si:ze,postState:function(Dr){return Dr||""}}),Ki=(0,je.Z)(yi,2),_i=Ki[0],Ii=Ki[1],On=ln(cr,Hr,ai,Gt,Wi),fi=On.valueOptions,mi=On.labelOptions,ti=On.options,gi=We.useCallback(function(dr){var Dr=an(dr);return Dr.map(function(to){var oo,Wo,vr,Ua,ha;if(mn(to))oo=to;else{var Ea;vr=to.key,Wo=to.label,oo=(Ea=to.value)!==null&&Ea!==void 0?Ea:vr}var ho=fi.get(oo);if(ho){var Yo;if(Wo===void 0&&(Wo=ho==null?void 0:ho[Wi||ai.label]),vr===void 0&&(vr=(Yo=ho==null?void 0:ho.key)!==null&&Yo!==void 0?Yo:oo),Ua=ho==null?void 0:ho.disabled,ha=ho==null?void 0:ho.title,0)var fs}return{label:Wo,value:oo,key:vr,disabled:Ua,title:ha}})},[ai,Wi,fi]),ui=(0,st.Z)(Sr,{value:wr}),xi=(0,je.Z)(ui,2),Oi=xi[0],En=xi[1],ur=We.useMemo(function(){var dr,Dr=_n&&Oi===null?[]:Oi,to=gi(Dr);return ii==="combobox"&&dt((dr=to[0])===null||dr===void 0?void 0:dr.value)?[]:to},[Oi,gi,ii,_n]),sr=Ji(ur,fi),Yr=(0,je.Z)(sr,2),hr=Yr[0],lo=Yr[1],eo=We.useMemo(function(){if(!ii&&hr.length===1){var dr=hr[0];if(dr.value===null&&(dr.label===null||dr.label===void 0))return[]}return hr.map(function(Dr){var to;return(0,Ie.Z)((0,Ie.Z)({},Dr),{},{label:(to=typeof tr=="function"?tr(Dr):Dr.label)!==null&&to!==void 0?to:Dr.value})})},[ii,hr,tr]),Co=We.useMemo(function(){return new Set(hr.map(function(dr){return dr.value}))},[hr]);We.useEffect(function(){if(ii==="combobox"){var dr,Dr=(dr=hr[0])===null||dr===void 0?void 0:dr.value;Ii(bt(Dr)?String(Dr):"")}},[hr]);var uo=pn(function(dr,Dr){var to=Dr!=null?Dr:dr;return(0,Me.Z)((0,Me.Z)({},ai.value,dr),ai.label,to)}),Ao=We.useMemo(function(){if(ii!=="tags")return ti;var dr=(0,Pe.Z)(ti),Dr=function(oo){return fi.has(oo)};return(0,Pe.Z)(hr).sort(function(to,oo){return to.value<oo.value?-1:1}).forEach(function(to){var oo=to.value;Dr(oo)||dr.push(uo(oo,to.label))}),dr},[uo,ti,fi,hr,ii]),No=Be(Ao,ai,_i,qe,Gt),qt=We.useMemo(function(){return ii!=="tags"||!_i||No.some(function(dr){return dr[Gt||"value"]===_i})||No.some(function(dr){return dr[ai.value]===_i})?No:[uo(_i)].concat((0,Pe.Z)(No))},[uo,Gt,ii,No,_i,ai]),mo=function dr(Dr){var to=(0,Pe.Z)(Dr).sort(function(oo,Wo){return Eo(oo,Wo,{searchValue:_i})});return to.map(function(oo){return Array.isArray(oo.options)?(0,Ie.Z)((0,Ie.Z)({},oo),{},{options:oo.options.length>0?dr(oo.options):oo.options}):oo})},Kr=We.useMemo(function(){return Eo?mo(qt):qt},[qt,Eo,_i]),Pr=We.useMemo(function(){return nn(Kr,{fieldNames:ai,childrenAsData:Yt})},[Kr,ai,Yt]),fr=function(Dr){var to=gi(Dr);if(En(to),Or&&(to.length!==hr.length||to.some(function(vr,Ua){var ha;return((ha=hr[Ua])===null||ha===void 0?void 0:ha.value)!==(vr==null?void 0:vr.value)}))){var oo=yo?to:to.map(function(vr){return vr.value}),Wo=to.map(function(vr){return Ht(lo(vr.value))});Or(_n?oo:oo[0],_n?Wo:Wo[0])}},co=We.useState(null),Lo=(0,je.Z)(co,2),dn=Lo[0],Gr=Lo[1],Uo=We.useState(0),Sa=(0,je.Z)(Uo,2),Ya=Sa[0],bs=Sa[1],ts=Rr!==void 0?Rr:ii!=="combobox",xr=We.useCallback(function(dr,Dr){var to=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oo=to.source,Wo=oo===void 0?"keyboard":oo;bs(Dr),Ni&&ii==="combobox"&&dr!==null&&Wo==="keyboard"&&Gr(String(dr))},[Ni,ii]),ca=function(Dr,to,oo){var Wo=function(){var Ns,ws=lo(Dr);return[yo?{label:ws==null?void 0:ws[ai.label],value:Dr,key:(Ns=ws==null?void 0:ws.key)!==null&&Ns!==void 0?Ns:Dr}:Dr,Ht(ws)]};if(to&&Zi){var vr=Wo(),Ua=(0,je.Z)(vr,2),ha=Ua[0],Ea=Ua[1];Zi(ha,Ea)}else if(!to&&Fn&&oo!=="clear"){var ho=Wo(),Yo=(0,je.Z)(ho,2),fs=Yo[0],ia=Yo[1];Fn(fs,ia)}},da=pn(function(dr,Dr){var to,oo=_n?Dr.selected:!0;oo?to=_n?[].concat((0,Pe.Z)(hr),[dr]):[dr]:to=hr.filter(function(Wo){return Wo.value!==dr}),fr(to),ca(dr,oo),ii==="combobox"?Gr(""):(!Kn||ir)&&(Ii(""),Gr(""))}),Ra=function(Dr,to){fr(Dr);var oo=to.type,Wo=to.values;(oo==="remove"||oo==="clear")&&Wo.forEach(function(vr){ca(vr.value,!1,oo)})},va=function(Dr,to){if(Ii(Dr),Gr(null),to.source==="submit"){var oo=(Dr||"").trim();if(oo){var Wo=Array.from(new Set([].concat((0,Pe.Z)(Co),[oo])));fr(Wo),ca(oo,!0),Ii("")}return}to.source!=="blur"&&(ii==="combobox"&&fr(Dr),oi==null||oi(Dr))},Pa=function(Dr){var to=Dr;ii!=="tags"&&(to=Dr.map(function(Wo){var vr=mi.get(Wo);return vr==null?void 0:vr.value}).filter(function(Wo){return Wo!==void 0}));var oo=Array.from(new Set([].concat((0,Pe.Z)(Co),(0,Pe.Z)(to))));fr(oo),oo.forEach(function(Wo){ca(Wo,!0)})},Pi=We.useMemo(function(){var dr=_r!==!1&&jt!==!1;return(0,Ie.Z)((0,Ie.Z)({},On),{},{flattenOptions:Pr,onActiveValue:xr,defaultActiveFirstOption:ts,onSelect:da,menuItemSelectedIcon:jr,rawValues:Co,fieldNames:ai,virtual:dr,direction:Ur,listHeight:Pn,listItemHeight:Mn,childrenAsData:Yt,maxCount:Ar,optionRender:Hi})},[Ar,On,Pr,xr,ts,da,jr,Co,ai,_r,jt,Ur,Pn,Mn,Yt,Hi]);return We.createElement(Ln.Provider,{value:Pi},We.createElement(jn,(0,ce.Z)({},To,{id:rn,prefixCls:Jn,ref:zt,omitDomProps:Yi,mode:ii,displayValues:eo,onDisplayValuesChange:Ra,direction:Ur,searchValue:_i,onSearch:va,autoClearSearchValue:ir,onSearchSplit:Pa,dropdownMatchSelectWidth:jt,OptionList:Xi,emptyOptions:!Pr.length,activeValue:dn,activeDescendantId:"".concat(rn,"_list_").concat(Ya)})))}),Ui=Rn;Ui.Option=Si,Ui.OptGroup=Gn;var or=Ui,ci=or},63158:function(Re,Ee,le){"use strict";var ce=le(67711),Pe=le(52873),Me=le(16886),Ie=le(33346),je=le(59301),Te=le(92310),Ge=le.n(Te),st=le(18929),Qe=le(10228),We=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],mt=je.forwardRef(function(it,kt){var Fe,ne=it.prefixCls,te=ne===void 0?"rc-switch":ne,he=it.className,se=it.checked,ge=it.defaultChecked,ye=it.disabled,be=it.loadingIcon,Ae=it.checkedChildren,Le=it.unCheckedChildren,Ve=it.onClick,et=it.onChange,Je=it.onKeyDown,rt=(0,Ie.Z)(it,We),at=(0,st.Z)(!1,{value:se,defaultValue:ge}),tt=(0,Me.Z)(at,2),Et=tt[0],Lt=tt[1];function Ut(fn,bt){var dt=Et;return ye||(dt=fn,Lt(dt),et==null||et(dt,bt)),dt}function on(fn){fn.which===Qe.Z.LEFT?Ut(!1,fn):fn.which===Qe.Z.RIGHT&&Ut(!0,fn),Je==null||Je(fn)}function an(fn){var bt=Ut(!Et,fn);Ve==null||Ve(bt,fn)}var Kt=Ge()(te,he,(Fe={},(0,Pe.Z)(Fe,"".concat(te,"-checked"),Et),(0,Pe.Z)(Fe,"".concat(te,"-disabled"),ye),Fe));return je.createElement("button",(0,ce.Z)({},rt,{type:"button",role:"switch","aria-checked":Et,disabled:ye,className:Kt,ref:kt,onKeyDown:on,onClick:an}),be,je.createElement("span",{className:"".concat(te,"-inner")},je.createElement("span",{className:"".concat(te,"-inner-checked")},Ae),je.createElement("span",{className:"".concat(te,"-inner-unchecked")},Le)))});mt.displayName="Switch",Ee.Z=mt},86351:function(Re,Ee,le){"use strict";le.d(Ee,{R:function(){return Pe},w:function(){return ce}});var ce={},Pe="rc-table-internal-hook"},97347:function(Re,Ee,le){"use strict";le.d(Ee,{L:function(){return te},Z:function(){return be}});var ce=le(16886),Pe=le(52873),Me=le(15142),Ie=le(26420),je=le(98506),Te=le(33346),Ge=le(11592),st=le(48736),Qe=le(59301),We=le(86351),mt=le(54451);function it(Ae){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Le=="number"?Le:Le.endsWith("%")?Ae*parseFloat(Le)/100:null}function kt(Ae,Le,Ve){return Qe.useMemo(function(){if(Le&&Le>0){var et=0,Je=0;Ae.forEach(function(an){var Kt=it(Le,an.width);Kt?et+=Kt:Je+=1});var rt=Math.max(Le,Ve),at=Math.max(rt-et,Je),tt=Je,Et=at/Je,Lt=0,Ut=Ae.map(function(an){var Kt=(0,je.Z)({},an),fn=it(Le,Kt.width);if(fn)Kt.width=fn;else{var bt=Math.floor(Et);Kt.width=tt===1?at:bt,at-=bt,tt-=1}return Lt+=Kt.width,Kt});if(Lt<rt){var on=rt/Lt;at=rt,Ut.forEach(function(an,Kt){var fn=Math.floor(an.width*on);an.width=Kt===Ut.length-1?at:fn,at-=fn})}return[Ut,Math.max(Lt,rt)]}return[Ae,Le]},[Ae,Le,Ve])}var Fe=["children"],ne=["fixed"];function te(Ae){return(0,Ge.Z)(Ae).filter(function(Le){return Qe.isValidElement(Le)}).map(function(Le){var Ve=Le.key,et=Le.props,Je=et.children,rt=(0,Te.Z)(et,Fe),at=(0,je.Z)({key:Ve},rt);return Je&&(at.children=te(Je)),at})}function he(Ae){return Ae.filter(function(Le){return Le&&(0,Ie.Z)(Le)==="object"&&!Le.hidden}).map(function(Le){var Ve=Le.children;return Ve&&Ve.length>0?(0,je.Z)((0,je.Z)({},Le),{},{children:he(Ve)}):Le})}function se(Ae){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.filter(function(Ve){return Ve&&(0,Ie.Z)(Ve)==="object"}).reduce(function(Ve,et,Je){var rt=et.fixed,at=rt===!0?"left":rt,tt="".concat(Le,"-").concat(Je),Et=et.children;return Et&&Et.length>0?[].concat((0,Me.Z)(Ve),(0,Me.Z)(se(Et,tt).map(function(Lt){return(0,je.Z)({fixed:at},Lt)}))):[].concat((0,Me.Z)(Ve),[(0,je.Z)((0,je.Z)({key:tt},et),{},{fixed:at})])},[])}function ge(Ae){return Ae.map(function(Le){var Ve=Le.fixed,et=(0,Te.Z)(Le,ne),Je=Ve;return Ve==="left"?Je="right":Ve==="right"&&(Je="left"),(0,je.Z)({fixed:Je},et)})}function ye(Ae,Le){var Ve=Ae.prefixCls,et=Ae.columns,Je=Ae.children,rt=Ae.expandable,at=Ae.expandedKeys,tt=Ae.columnTitle,Et=Ae.getRowKey,Lt=Ae.onTriggerExpand,Ut=Ae.expandIcon,on=Ae.rowExpandable,an=Ae.expandIconColumnIndex,Kt=Ae.direction,fn=Ae.expandRowByClick,bt=Ae.columnWidth,dt=Ae.fixed,ct=Ae.scrollWidth,Qt=Ae.clientWidth,un=Qe.useMemo(function(){var Nn=et||te(Je)||[];return he(Nn.slice())},[et,Je]),Nt=Qe.useMemo(function(){if(rt){var Nn=un.slice();if(!Nn.includes(We.w)){var $e=an||0;$e>=0&&($e||dt==="left"||!dt)&&Nn.splice($e,0,We.w),dt==="right"&&Nn.splice(un.length,0,We.w)}var Oe=Nn.indexOf(We.w);Nn=Nn.filter(function(Ue,gt){return Ue!==We.w||gt===Oe});var ke=un[Oe],Ke;dt?Ke=dt:Ke=ke?ke.fixed:null;var lt=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},mt.v,{className:"".concat(Ve,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",tt),"fixed",Ke),"className","".concat(Ve,"-row-expand-icon-cell")),"width",bt),"render",function(gt,tn,Un){var qn=Et(tn,Un),nn=at.has(qn),Ht=on?on(tn):!0,sn=Ut({prefixCls:Ve,expanded:nn,expandable:Ht,record:tn,onExpand:Lt});return fn?Qe.createElement("span",{onClick:function(Ln){return Ln.stopPropagation()}},sn):sn});return Nn.map(function(Ue){return Ue===We.w?lt:Ue})}return un.filter(function(Ue){return Ue!==We.w})},[rt,un,Et,at,Ut,Kt]),hn=Qe.useMemo(function(){var Nn=Nt;return Le&&(Nn=Le(Nn)),Nn.length||(Nn=[{render:function(){return null}}]),Nn},[Le,Nt,Kt]),cn=Qe.useMemo(function(){return Kt==="rtl"?ge(se(hn)):se(hn)},[hn,Kt,ct]),Qn=Qe.useMemo(function(){for(var Nn=-1,$e=cn.length-1;$e>=0;$e-=1){var Oe=cn[$e].fixed;if(Oe==="left"||Oe===!0){Nn=$e;break}}if(Nn>=0)for(var ke=0;ke<=Nn;ke+=1){var Ke=cn[ke].fixed;if(Ke!=="left"&&Ke!==!0)return!0}var lt=cn.findIndex(function(tn){var Un=tn.fixed;return Un==="right"});if(lt>=0)for(var Ue=lt;Ue<cn.length;Ue+=1){var gt=cn[Ue].fixed;if(gt!=="right")return!0}return!1},[cn]),Bt=kt(cn,ct,Qt),Pt=(0,ce.Z)(Bt,2),Wt=Pt[0],An=Pt[1];return[hn,Wt,An,Qn]}var be=ye},4030:function(Re,Ee,le){"use strict";le.d(Ee,{w2:function(){return ce.w},vP:function(){return In.v},RQ:function(){return ce.R},ER:function(){return qn},Q$:function(){return br},TN:function(){return Or}});var ce=le(86351),Pe=le(16886),Me=le(6089),Ie=le(34280),je=le(13697),Te=le(59301),Ge=le(4676);function st(rn){var _n=Te.createContext(void 0),Yt=function(ai){var yi=ai.value,Ki=ai.children,_i=Te.useRef(yi);_i.current=yi;var Ii=Te.useState(function(){return{getValue:function(){return _i.current},listeners:new Set}}),On=(0,Pe.Z)(Ii,1),fi=On[0];return(0,Ie.Z)(function(){(0,Ge.unstable_batchedUpdates)(function(){fi.listeners.forEach(function(mi){mi(yi)})})},[yi]),Te.createElement(_n.Provider,{value:fi},Ki)};return{Context:_n,Provider:Yt,defaultValue:rn}}function Qe(rn,_n){var Yt=(0,Me.Z)(typeof _n=="function"?_n:function(mi){if(_n===void 0)return mi;if(!Array.isArray(_n))return mi[_n];var ti={};return _n.forEach(function(gi){ti[gi]=mi[gi]}),ti}),qe=Te.useContext(rn==null?void 0:rn.Context),ai=qe||{},yi=ai.listeners,Ki=ai.getValue,_i=Te.useRef();_i.current=Yt(qe?Ki():rn==null?void 0:rn.defaultValue);var Ii=Te.useState({}),On=(0,Pe.Z)(Ii,2),fi=On[1];return(0,Ie.Z)(function(){if(!qe)return;function mi(ti){var gi=Yt(ti);(0,je.Z)(_i.current,gi,!0)||fi({})}return yi.add(mi),function(){yi.delete(mi)}},[qe]),_i.current}var We=le(67711),mt=le(8654);function it(){var rn=Te.createContext(null);function _n(){return Te.useContext(rn)}function Yt(ai,yi){var Ki=(0,mt.Yr)(ai),_i=function(On,fi){var mi=Ki?{ref:fi}:{},ti=Te.useRef(0),gi=Te.useRef(On),ui=_n();return ui!==null?Te.createElement(ai,(0,We.Z)({},On,mi)):((!yi||yi(gi.current,On))&&(ti.current+=1),gi.current=On,Te.createElement(rn.Provider,{value:ti.current},Te.createElement(ai,(0,We.Z)({},On,mi))))};return Ki?Te.forwardRef(_i):_i}function qe(ai,yi){var Ki=(0,mt.Yr)(ai),_i=function(On,fi){var mi=Ki?{ref:fi}:{};return _n(),Te.createElement(ai,(0,We.Z)({},On,mi))};return Ki?Te.memo(Te.forwardRef(_i),yi):Te.memo(_i,yi)}return{makeImmutable:Yt,responseImmutable:qe,useImmutableMark:_n}}var kt=it(),Fe=kt.makeImmutable,ne=kt.responseImmutable,te=kt.useImmutableMark,he=it(),se=he.makeImmutable,ge=he.responseImmutable,ye=he.useImmutableMark,be=st(),Ae=be;function Le(rn,_n){var Yt=React.useRef(0);Yt.current+=1;var qe=React.useRef(rn),ai=[];Object.keys(rn||{}).map(function(Ki){var _i;(rn==null?void 0:rn[Ki])!==((_i=qe.current)===null||_i===void 0?void 0:_i[Ki])&&ai.push(Ki)}),qe.current=rn;var yi=React.useRef([]);return ai.length&&(yi.current=ai),React.useDebugValue(Yt.current),React.useDebugValue(yi.current.join(", ")),_n&&console.log("".concat(_n,":"),Yt.current,yi.current),Yt.current}var Ve=null,et=null,Je=le(26420),rt=le(98506),at=le(52873),tt=le(92310),Et=le.n(tt),Lt=le(80547),Ut=le(97938),on=le(48736),an=Te.createContext({renderWithProps:!1}),Kt=an,fn="RC_TABLE_KEY";function bt(rn){return rn==null?[]:Array.isArray(rn)?rn:[rn]}function dt(rn){var _n=[],Yt={};return rn.forEach(function(qe){for(var ai=qe||{},yi=ai.key,Ki=ai.dataIndex,_i=yi||bt(Ki).join("-")||fn;Yt[_i];)_i="".concat(_i,"_next");Yt[_i]=!0,_n.push(_i)}),_n}function ct(rn){return rn!=null}function Qt(rn){return typeof rn=="number"&&!Number.isNaN(rn)}function un(rn){return rn&&(0,Je.Z)(rn)==="object"&&!Array.isArray(rn)&&!Te.isValidElement(rn)}function Nt(rn,_n,Yt,qe,ai,yi){var Ki=Te.useContext(Kt),_i=ye(),Ii=(0,Lt.Z)(function(){if(ct(qe))return[qe];var On=_n==null||_n===""?[]:Array.isArray(_n)?_n:[_n],fi=(0,Ut.Z)(rn,On),mi=fi,ti=void 0;if(ai){var gi=ai(fi,rn,Yt);un(gi)?(mi=gi.children,ti=gi.props,Ki.renderWithProps=!0):mi=gi}return[mi,ti]},[_i,rn,qe,_n,ai,Yt],function(On,fi){if(yi){var mi=(0,Pe.Z)(On,2),ti=mi[1],gi=(0,Pe.Z)(fi,2),ui=gi[1];return yi(ui,ti)}return Ki.renderWithProps?!0:!(0,je.Z)(On,fi,!0)});return Ii}function hn(rn,_n,Yt,qe){var ai=rn+_n-1;return rn<=qe&&ai>=Yt}function cn(rn,_n){return Qe(Ae,function(Yt){var qe=hn(rn,_n||1,Yt.hoverStartRow,Yt.hoverEndRow);return[qe,Yt.onHover]})}var Qn=le(70425),Bt=function(_n){var Yt=_n.ellipsis,qe=_n.rowType,ai=_n.children,yi,Ki=Yt===!0?{showTitle:!0}:Yt;return Ki&&(Ki.showTitle||qe==="header")&&(typeof ai=="string"||typeof ai=="number"?yi=ai.toString():Te.isValidElement(ai)&&typeof ai.props.children=="string"&&(yi=ai.props.children)),yi};function Pt(rn){var _n,Yt,qe,ai,yi,Ki,_i,Ii,On=rn.component,fi=rn.children,mi=rn.ellipsis,ti=rn.scope,gi=rn.prefixCls,ui=rn.className,xi=rn.align,Oi=rn.record,En=rn.render,ur=rn.dataIndex,sr=rn.renderIndex,Yr=rn.shouldCellUpdate,hr=rn.index,lo=rn.rowType,eo=rn.colSpan,Co=rn.rowSpan,uo=rn.fixLeft,Ao=rn.fixRight,No=rn.firstFixLeft,qt=rn.lastFixLeft,mo=rn.firstFixRight,Kr=rn.lastFixRight,Pr=rn.appendNode,fr=rn.additionalProps,co=fr===void 0?{}:fr,Lo=rn.isSticky,dn="".concat(gi,"-cell"),Gr=Qe(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Uo=Gr.supportSticky,Sa=Gr.allColumnsFixedLeft,Ya=Gr.rowHoverable,bs=Nt(Oi,ur,sr,fi,En,Yr),ts=(0,Pe.Z)(bs,2),xr=ts[0],ca=ts[1],da={},Ra=typeof uo=="number"&&Uo,va=typeof Ao=="number"&&Uo;Ra&&(da.position="sticky",da.left=uo),va&&(da.position="sticky",da.right=Ao);var Pa=(_n=(Yt=(qe=ca==null?void 0:ca.colSpan)!==null&&qe!==void 0?qe:co.colSpan)!==null&&Yt!==void 0?Yt:eo)!==null&&_n!==void 0?_n:1,Pi=(ai=(yi=(Ki=ca==null?void 0:ca.rowSpan)!==null&&Ki!==void 0?Ki:co.rowSpan)!==null&&yi!==void 0?yi:Co)!==null&&ai!==void 0?ai:1,dr=cn(hr,Pi),Dr=(0,Pe.Z)(dr,2),to=Dr[0],oo=Dr[1],Wo=(0,Qn.zX)(function(fs){var ia;Oi&&oo(hr,hr+Pi-1),co==null||(ia=co.onMouseEnter)===null||ia===void 0||ia.call(co,fs)}),vr=(0,Qn.zX)(function(fs){var ia;Oi&&oo(-1,-1),co==null||(ia=co.onMouseLeave)===null||ia===void 0||ia.call(co,fs)});if(Pa===0||Pi===0)return null;var Ua=(_i=co.title)!==null&&_i!==void 0?_i:Bt({rowType:lo,ellipsis:mi,children:xr}),ha=Et()(dn,ui,(Ii={},(0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)(Ii,"".concat(dn,"-fix-left"),Ra&&Uo),"".concat(dn,"-fix-left-first"),No&&Uo),"".concat(dn,"-fix-left-last"),qt&&Uo),"".concat(dn,"-fix-left-all"),qt&&Sa&&Uo),"".concat(dn,"-fix-right"),va&&Uo),"".concat(dn,"-fix-right-first"),mo&&Uo),"".concat(dn,"-fix-right-last"),Kr&&Uo),"".concat(dn,"-ellipsis"),mi),"".concat(dn,"-with-append"),Pr),"".concat(dn,"-fix-sticky"),(Ra||va)&&Lo&&Uo),(0,at.Z)(Ii,"".concat(dn,"-row-hover"),!ca&&to)),co.className,ca==null?void 0:ca.className),Ea={};xi&&(Ea.textAlign=xi);var ho=(0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)({},ca==null?void 0:ca.style),da),Ea),co.style),Yo=xr;return(0,Je.Z)(Yo)==="object"&&!Array.isArray(Yo)&&!Te.isValidElement(Yo)&&(Yo=null),mi&&(qt||mo)&&(Yo=Te.createElement("span",{className:"".concat(dn,"-content")},Yo)),Te.createElement(On,(0,We.Z)({},ca,co,{className:ha,style:ho,title:Ua,scope:ti,onMouseEnter:Ya?Wo:void 0,onMouseLeave:Ya?vr:void 0,colSpan:Pa!==1?Pa:null,rowSpan:Pi!==1?Pi:null}),Pr,Yo)}var Wt=Te.memo(Pt);function An(rn,_n,Yt,qe,ai){var yi=Yt[rn]||{},Ki=Yt[_n]||{},_i,Ii;yi.fixed==="left"?_i=qe.left[ai==="rtl"?_n:rn]:Ki.fixed==="right"&&(Ii=qe.right[ai==="rtl"?rn:_n]);var On=!1,fi=!1,mi=!1,ti=!1,gi=Yt[_n+1],ui=Yt[rn-1],xi=gi&&!gi.fixed||ui&&!ui.fixed||Yt.every(function(Yr){return Yr.fixed==="left"});if(ai==="rtl"){if(_i!==void 0){var Oi=ui&&ui.fixed==="left";ti=!Oi&&xi}else if(Ii!==void 0){var En=gi&&gi.fixed==="right";mi=!En&&xi}}else if(_i!==void 0){var ur=gi&&gi.fixed==="left";On=!ur&&xi}else if(Ii!==void 0){var sr=ui&&ui.fixed==="right";fi=!sr&&xi}return{fixLeft:_i,fixRight:Ii,lastFixLeft:On,firstFixRight:fi,lastFixRight:mi,firstFixLeft:ti,isSticky:qe.isSticky}}var Nn=Te.createContext({}),$e=Nn;function Oe(rn){var _n=rn.className,Yt=rn.index,qe=rn.children,ai=rn.colSpan,yi=ai===void 0?1:ai,Ki=rn.rowSpan,_i=rn.align,Ii=Qe(Ae,["prefixCls","direction"]),On=Ii.prefixCls,fi=Ii.direction,mi=Te.useContext($e),ti=mi.scrollColumnIndex,gi=mi.stickyOffsets,ui=mi.flattenColumns,xi=Yt+yi-1,Oi=xi+1===ti?yi+1:yi,En=An(Yt,Yt+Oi-1,ui,gi,fi);return Te.createElement(Wt,(0,We.Z)({className:_n,index:Yt,component:"td",prefixCls:On,record:null,dataIndex:null,align:_i,colSpan:Oi,rowSpan:Ki,render:function(){return qe}},En))}var ke=le(33346),Ke=["children"];function lt(rn){var _n=rn.children,Yt=(0,ke.Z)(rn,Ke);return Te.createElement("tr",Yt,_n)}function Ue(rn){var _n=rn.children;return _n}Ue.Row=lt,Ue.Cell=Oe;var gt=Ue;function tn(rn){var _n=rn.children,Yt=rn.stickyOffsets,qe=rn.flattenColumns,ai=Qe(Ae,"prefixCls"),yi=qe.length-1,Ki=qe[yi],_i=Te.useMemo(function(){return{stickyOffsets:Yt,flattenColumns:qe,scrollColumnIndex:Ki!=null&&Ki.scrollbar?yi:null}},[Ki,qe,yi,Yt]);return Te.createElement($e.Provider,{value:_i},Te.createElement("tfoot",{className:"".concat(ai,"-summary")},_n))}var Un=ge(tn),qn=gt,nn=le(29301),Ht=le(24514),sn=le(75152),vn=le(26112);function Ln(rn,_n,Yt,qe,ai,yi,Ki){rn.push({record:_n,indent:Yt,index:Ki});var _i=yi(_n),Ii=ai==null?void 0:ai.has(_i);if(_n&&Array.isArray(_n[qe])&&Ii)for(var On=0;On<_n[qe].length;On+=1)Ln(rn,_n[qe][On],Yt+1,qe,ai,yi,On)}function xn(rn,_n,Yt,qe){var ai=Te.useMemo(function(){if(Yt!=null&&Yt.size){for(var yi=[],Ki=0;Ki<(rn==null?void 0:rn.length);Ki+=1){var _i=rn[Ki];Ln(yi,_i,0,_n,Yt,qe,Ki)}return yi}return rn==null?void 0:rn.map(function(Ii,On){return{record:Ii,indent:0,index:On}})},[rn,_n,Yt,qe]);return ai}function _t(rn,_n,Yt,qe){var ai=Qe(Ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),yi=ai.flattenColumns,Ki=ai.expandableType,_i=ai.expandedKeys,Ii=ai.childrenColumnName,On=ai.onTriggerExpand,fi=ai.rowExpandable,mi=ai.onRow,ti=ai.expandRowByClick,gi=ai.rowClassName,ui=Ki==="nest",xi=Ki==="row"&&(!fi||fi(rn)),Oi=xi||ui,En=_i&&_i.has(_n),ur=Ii&&rn&&rn[Ii],sr=(0,Qn.zX)(On),Yr=mi==null?void 0:mi(rn,Yt),hr=Yr==null?void 0:Yr.onClick,lo=function(Ao){ti&&Oi&&On(rn,Ao);for(var No=arguments.length,qt=new Array(No>1?No-1:0),mo=1;mo<No;mo++)qt[mo-1]=arguments[mo];hr==null||hr.apply(void 0,[Ao].concat(qt))},eo;typeof gi=="string"?eo=gi:typeof gi=="function"&&(eo=gi(rn,Yt,qe));var Co=dt(yi);return(0,rt.Z)((0,rt.Z)({},ai),{},{columnsKey:Co,nestExpandable:ui,expanded:En,hasNestChildren:ur,record:rn,onTriggerExpand:sr,rowSupportExpand:xi,expandable:Oi,rowProps:(0,rt.Z)((0,rt.Z)({},Yr),{},{className:Et()(eo,Yr==null?void 0:Yr.className),onClick:lo})})}function Vn(rn){var _n=rn.prefixCls,Yt=rn.children,qe=rn.component,ai=rn.cellComponent,yi=rn.className,Ki=rn.expanded,_i=rn.colSpan,Ii=rn.isEmpty,On=Qe(Ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),fi=On.scrollbarSize,mi=On.fixHeader,ti=On.fixColumn,gi=On.componentWidth,ui=On.horizonScroll,xi=Yt;return(Ii?ui&&gi:ti)&&(xi=Te.createElement("div",{style:{width:gi-(mi&&!Ii?fi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(_n,"-expanded-row-fixed")},xi)),Te.createElement(qe,{className:yi,style:{display:Ki?null:"none"}},Te.createElement(Wt,{component:ai,prefixCls:_n,colSpan:_i},xi))}var Kn=Vn;function Tn(rn){var _n=rn.prefixCls,Yt=rn.record,qe=rn.onExpand,ai=rn.expanded,yi=rn.expandable,Ki="".concat(_n,"-row-expand-icon");if(!yi)return Te.createElement("span",{className:Et()(Ki,"".concat(_n,"-row-spaced"))});var _i=function(On){qe(Yt,On),On.stopPropagation()};return Te.createElement("span",{className:Et()(Ki,(0,at.Z)((0,at.Z)({},"".concat(_n,"-row-expanded"),ai),"".concat(_n,"-row-collapsed"),!ai)),onClick:_i})}function jn(rn,_n,Yt){var qe=[];function ai(yi){(yi||[]).forEach(function(Ki,_i){qe.push(_n(Ki,_i)),ai(Ki[Yt])})}return ai(rn),qe}function Mi(rn,_n,Yt,qe){return typeof rn=="string"?rn:typeof rn=="function"?rn(_n,Yt,qe):""}function Gn(rn,_n,Yt,qe,ai){var yi=rn.record,Ki=rn.prefixCls,_i=rn.columnsKey,Ii=rn.fixedInfoList,On=rn.expandIconColumnIndex,fi=rn.nestExpandable,mi=rn.indentSize,ti=rn.expandIcon,gi=rn.expanded,ui=rn.hasNestChildren,xi=rn.onTriggerExpand,Oi=_i[Yt],En=Ii[Yt],ur;Yt===(On||0)&&fi&&(ur=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(mi*qe,"px")},className:"".concat(Ki,"-row-indent indent-level-").concat(qe)}),ti({prefixCls:Ki,expanded:gi,expandable:ui,record:yi,onExpand:xi})));var sr;return _n.onCell&&(sr=_n.onCell(yi,ai)),{key:Oi,fixedInfo:En,appendCellNode:ur,additionalCellProps:sr||{}}}function wt(rn){var _n=rn.className,Yt=rn.style,qe=rn.record,ai=rn.index,yi=rn.renderIndex,Ki=rn.rowKey,_i=rn.indent,Ii=_i===void 0?0:_i,On=rn.rowComponent,fi=rn.cellComponent,mi=rn.scopeCellComponent,ti=_t(qe,Ki,ai,Ii),gi=ti.prefixCls,ui=ti.flattenColumns,xi=ti.expandedRowClassName,Oi=ti.expandedRowRender,En=ti.rowProps,ur=ti.expanded,sr=ti.rowSupportExpand,Yr=Te.useRef(!1);Yr.current||(Yr.current=ur);var hr=Mi(xi,qe,ai,Ii),lo=Te.createElement(On,(0,We.Z)({},En,{"data-row-key":Ki,className:Et()(_n,"".concat(gi,"-row"),"".concat(gi,"-row-level-").concat(Ii),En==null?void 0:En.className,(0,at.Z)({},hr,Ii>=1)),style:(0,rt.Z)((0,rt.Z)({},Yt),En==null?void 0:En.style)}),ui.map(function(uo,Ao){var No=uo.render,qt=uo.dataIndex,mo=uo.className,Kr=Gn(ti,uo,Ao,Ii,ai),Pr=Kr.key,fr=Kr.fixedInfo,co=Kr.appendCellNode,Lo=Kr.additionalCellProps;return Te.createElement(Wt,(0,We.Z)({className:mo,ellipsis:uo.ellipsis,align:uo.align,scope:uo.rowScope,component:uo.rowScope?mi:fi,prefixCls:gi,key:Pr,record:qe,index:ai,renderIndex:yi,dataIndex:qt,render:No,shouldCellUpdate:uo.shouldCellUpdate},fr,{appendNode:co,additionalProps:Lo}))})),eo;if(sr&&(Yr.current||ur)){var Co=Oi(qe,ai,Ii+1,ur);eo=Te.createElement(Kn,{expanded:ur,className:Et()("".concat(gi,"-expanded-row"),"".concat(gi,"-expanded-row-level-").concat(Ii+1),hr),prefixCls:gi,component:On,cellComponent:fi,colSpan:ui.length,isEmpty:!1},Co)}return Te.createElement(Te.Fragment,null,lo,eo)}var Si=ge(wt);function wi(rn){var _n=rn.columnKey,Yt=rn.onColumnResize,qe=Te.useRef();return(0,Ie.Z)(function(){qe.current&&Yt(_n,qe.current.offsetWidth)},[]),Te.createElement(nn.Z,{data:_n},Te.createElement("td",{ref:qe,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Vt=le(29194);function qi(rn){var _n=rn.prefixCls,Yt=rn.columnsKey,qe=rn.onColumnResize,ai=Te.useRef(null);return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(_n,"-measure-row"),style:{height:0,fontSize:0},ref:ai},Te.createElement(nn.Z.Collection,{onBatchResize:function(Ki){(0,Vt.Z)(ai.current)&&Ki.forEach(function(_i){var Ii=_i.data,On=_i.size;qe(Ii,On.offsetWidth)})}},Yt.map(function(yi){return Te.createElement(wi,{key:yi,columnKey:yi,onColumnResize:qe})})))}function lr(rn){var _n=rn.data,Yt=rn.measureColumnWidth,qe=Qe(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ai=qe.prefixCls,yi=qe.getComponent,Ki=qe.onColumnResize,_i=qe.flattenColumns,Ii=qe.getRowKey,On=qe.expandedKeys,fi=qe.childrenColumnName,mi=qe.emptyNode,ti=xn(_n,fi,On,Ii),gi=Te.useRef({renderWithProps:!1}),ui=yi(["body","wrapper"],"tbody"),xi=yi(["body","row"],"tr"),Oi=yi(["body","cell"],"td"),En=yi(["body","cell"],"th"),ur;_n.length?ur=ti.map(function(Yr,hr){var lo=Yr.record,eo=Yr.indent,Co=Yr.index,uo=Ii(lo,hr);return Te.createElement(Si,{key:uo,rowKey:uo,record:lo,index:hr,renderIndex:Co,rowComponent:xi,cellComponent:Oi,scopeCellComponent:En,indent:eo})}):ur=Te.createElement(Kn,{expanded:!0,className:"".concat(ai,"-placeholder"),prefixCls:ai,component:xi,cellComponent:Oi,colSpan:_i.length,isEmpty:!0},mi);var sr=dt(_i);return Te.createElement(Kt.Provider,{value:gi.current},Te.createElement(ui,{className:"".concat(ai,"-tbody")},Yt&&Te.createElement(qi,{prefixCls:ai,columnsKey:sr,onColumnResize:Ki}),ur))}var rr=ge(lr),In=le(54451),Br=["columnType"];function Tr(rn){for(var _n=rn.colWidths,Yt=rn.columns,qe=rn.columCount,ai=Qe(Ae,["tableLayout"]),yi=ai.tableLayout,Ki=[],_i=qe||Yt.length,Ii=!1,On=_i-1;On>=0;On-=1){var fi=_n[On],mi=Yt&&Yt[On],ti=void 0,gi=void 0;if(mi&&(ti=mi[In.v],yi==="auto"&&(gi=mi.minWidth)),fi||gi||ti||Ii){var ui=ti||{},xi=ui.columnType,Oi=(0,ke.Z)(ui,Br);Ki.unshift(Te.createElement("col",(0,We.Z)({key:On,style:{width:fi,minWidth:gi}},Oi))),Ii=!0}}return Te.createElement("colgroup",null,Ki)}var Xi=Tr,Ji=le(15142),Nr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Be(rn,_n){return(0,Te.useMemo)(function(){for(var Yt=[],qe=0;qe<_n;qe+=1){var ai=rn[qe];if(ai!==void 0)Yt[qe]=ai;else return null}return Yt},[rn.join("_"),_n])}var Vi=Te.forwardRef(function(rn,_n){var Yt=rn.className,qe=rn.noData,ai=rn.columns,yi=rn.flattenColumns,Ki=rn.colWidths,_i=rn.columCount,Ii=rn.stickyOffsets,On=rn.direction,fi=rn.fixHeader,mi=rn.stickyTopOffset,ti=rn.stickyBottomOffset,gi=rn.stickyClassName,ui=rn.onScroll,xi=rn.maxContentScroll,Oi=rn.children,En=(0,ke.Z)(rn,Nr),ur=Qe(Ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),sr=ur.prefixCls,Yr=ur.scrollbarSize,hr=ur.isSticky,lo=ur.getComponent,eo=lo(["header","table"],"table"),Co=hr&&!fi?0:Yr,uo=Te.useRef(null),Ao=Te.useCallback(function(Lo){(0,mt.mH)(_n,Lo),(0,mt.mH)(uo,Lo)},[]);Te.useEffect(function(){var Lo;function dn(Gr){var Uo=Gr,Sa=Uo.currentTarget,Ya=Uo.deltaX;Ya&&(ui({currentTarget:Sa,scrollLeft:Sa.scrollLeft+Ya}),Gr.preventDefault())}return(Lo=uo.current)===null||Lo===void 0||Lo.addEventListener("wheel",dn,{passive:!1}),function(){var Gr;(Gr=uo.current)===null||Gr===void 0||Gr.removeEventListener("wheel",dn)}},[]);var No=Te.useMemo(function(){return yi.every(function(Lo){return Lo.width})},[yi]),qt=yi[yi.length-1],mo={fixed:qt?qt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(sr,"-cell-scrollbar")}}},Kr=(0,Te.useMemo)(function(){return Co?[].concat((0,Ji.Z)(ai),[mo]):ai},[Co,ai]),Pr=(0,Te.useMemo)(function(){return Co?[].concat((0,Ji.Z)(yi),[mo]):yi},[Co,yi]),fr=(0,Te.useMemo)(function(){var Lo=Ii.right,dn=Ii.left;return(0,rt.Z)((0,rt.Z)({},Ii),{},{left:On==="rtl"?[].concat((0,Ji.Z)(dn.map(function(Gr){return Gr+Co})),[0]):dn,right:On==="rtl"?Lo:[].concat((0,Ji.Z)(Lo.map(function(Gr){return Gr+Co})),[0]),isSticky:hr})},[Co,Ii,hr]),co=Be(Ki,_i);return Te.createElement("div",{style:(0,rt.Z)({overflow:"hidden"},hr?{top:mi,bottom:ti}:{}),ref:Ao,className:Et()(Yt,(0,at.Z)({},gi,!!gi))},Te.createElement(eo,{style:{tableLayout:"fixed",visibility:qe||co?null:"hidden"}},(!qe||!xi||No)&&Te.createElement(Xi,{colWidths:co?[].concat((0,Ji.Z)(co),[Co]):[],columCount:_i+1,columns:Pr}),Oi((0,rt.Z)((0,rt.Z)({},En),{},{stickyOffsets:fr,columns:Kr,flattenColumns:Pr}))))}),bi=Te.memo(Vi),di=function(_n){var Yt=_n.cells,qe=_n.stickyOffsets,ai=_n.flattenColumns,yi=_n.rowComponent,Ki=_n.cellComponent,_i=_n.onHeaderRow,Ii=_n.index,On=Qe(Ae,["prefixCls","direction"]),fi=On.prefixCls,mi=On.direction,ti;_i&&(ti=_i(Yt.map(function(ui){return ui.column}),Ii));var gi=dt(Yt.map(function(ui){return ui.column}));return Te.createElement(yi,ti,Yt.map(function(ui,xi){var Oi=ui.column,En=An(ui.colStart,ui.colEnd,ai,qe,mi),ur;return Oi&&Oi.onHeaderCell&&(ur=ui.column.onHeaderCell(Oi)),Te.createElement(Wt,(0,We.Z)({},ui,{scope:Oi.title?ui.colSpan>1?"colgroup":"col":null,ellipsis:Oi.ellipsis,align:Oi.align,component:Ki,prefixCls:fi,key:gi[xi]},En,{additionalProps:ur,rowType:"header"}))}))},Ri=di;function Fi(rn){var _n=[];function Yt(Ki,_i){var Ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;_n[Ii]=_n[Ii]||[];var On=_i,fi=Ki.filter(Boolean).map(function(mi){var ti={key:mi.key,className:mi.className||"",children:mi.title,column:mi,colStart:On},gi=1,ui=mi.children;return ui&&ui.length>0&&(gi=Yt(ui,On,Ii+1).reduce(function(xi,Oi){return xi+Oi},0),ti.hasSubColumns=!0),"colSpan"in mi&&(gi=mi.colSpan),"rowSpan"in mi&&(ti.rowSpan=mi.rowSpan),ti.colSpan=gi,ti.colEnd=ti.colStart+gi-1,_n[Ii].push(ti),On+=gi,gi});return fi}Yt(rn,0);for(var qe=_n.length,ai=function(_i){_n[_i].forEach(function(Ii){!("rowSpan"in Ii)&&!Ii.hasSubColumns&&(Ii.rowSpan=qe-_i)})},yi=0;yi<qe;yi+=1)ai(yi);return _n}var Ti=function(_n){var Yt=_n.stickyOffsets,qe=_n.columns,ai=_n.flattenColumns,yi=_n.onHeaderRow,Ki=Qe(Ae,["prefixCls","getComponent"]),_i=Ki.prefixCls,Ii=Ki.getComponent,On=Te.useMemo(function(){return Fi(qe)},[qe]),fi=Ii(["header","wrapper"],"thead"),mi=Ii(["header","row"],"tr"),ti=Ii(["header","cell"],"th");return Te.createElement(fi,{className:"".concat(_i,"-thead")},On.map(function(gi,ui){var xi=Te.createElement(Ri,{key:ui,flattenColumns:ai,cells:gi,stickyOffsets:Yt,rowComponent:mi,cellComponent:ti,onHeaderRow:yi,index:ui});return xi}))},Lr=ge(Ti),ln=le(97347);function pn(rn,_n,Yt){var qe=(0,In.g)(rn),ai=qe.expandIcon,yi=qe.expandedRowKeys,Ki=qe.defaultExpandedRowKeys,_i=qe.defaultExpandAllRows,Ii=qe.expandedRowRender,On=qe.onExpand,fi=qe.onExpandedRowsChange,mi=qe.childrenColumnName,ti=ai||Tn,gi=mi||"children",ui=Te.useMemo(function(){return Ii?"row":rn.expandable&&rn.internalHooks===ce.R&&rn.expandable.__PARENT_RENDER_ICON__||_n.some(function(hr){return hr&&(0,Je.Z)(hr)==="object"&&hr[gi]})?"nest":!1},[!!Ii,_n]),xi=Te.useState(function(){return Ki||(_i?jn(_n,Yt,gi):[])}),Oi=(0,Pe.Z)(xi,2),En=Oi[0],ur=Oi[1],sr=Te.useMemo(function(){return new Set(yi||En||[])},[yi,En]),Yr=Te.useCallback(function(hr){var lo=Yt(hr,_n.indexOf(hr)),eo,Co=sr.has(lo);Co?(sr.delete(lo),eo=(0,Ji.Z)(sr)):eo=[].concat((0,Ji.Z)(sr),[lo]),ur(eo),On&&On(!Co,hr),fi&&fi(eo)},[Yt,sr,_n,On,fi]);return[qe,ui,sr,ti,gi,Yr]}function $t(rn,_n,Yt){var qe=rn.map(function(ai,yi){return An(yi,yi,rn,_n,Yt)});return(0,Lt.Z)(function(){return qe},[qe],function(ai,yi){return!(0,je.Z)(ai,yi)})}function wn(rn){var _n=(0,Te.useRef)(rn),Yt=(0,Te.useState)({}),qe=(0,Pe.Z)(Yt,2),ai=qe[1],yi=(0,Te.useRef)(null),Ki=(0,Te.useRef)([]);function _i(Ii){Ki.current.push(Ii);var On=Promise.resolve();yi.current=On,On.then(function(){if(yi.current===On){var fi=Ki.current,mi=_n.current;Ki.current=[],fi.forEach(function(ti){_n.current=ti(_n.current)}),yi.current=null,mi!==_n.current&&ai({})}})}return(0,Te.useEffect)(function(){return function(){yi.current=null}},[]),[_n.current,_i]}function Gi(rn){var _n=(0,Te.useRef)(rn||null),Yt=(0,Te.useRef)();function qe(){window.clearTimeout(Yt.current)}function ai(Ki){_n.current=Ki,qe(),Yt.current=window.setTimeout(function(){_n.current=null,Yt.current=void 0},100)}function yi(){return _n.current}return(0,Te.useEffect)(function(){return qe},[]),[ai,yi]}function Ci(){var rn=Te.useState(-1),_n=(0,Pe.Z)(rn,2),Yt=_n[0],qe=_n[1],ai=Te.useState(-1),yi=(0,Pe.Z)(ai,2),Ki=yi[0],_i=yi[1],Ii=Te.useCallback(function(On,fi){qe(On),_i(fi)},[]);return[Yt,Ki,Ii]}var Yi=le(47273),mn=(0,Yi.Z)()?window:null;function Rn(rn,_n){var Yt=(0,Je.Z)(rn)==="object"?rn:{},qe=Yt.offsetHeader,ai=qe===void 0?0:qe,yi=Yt.offsetSummary,Ki=yi===void 0?0:yi,_i=Yt.offsetScroll,Ii=_i===void 0?0:_i,On=Yt.getContainer,fi=On===void 0?function(){return mn}:On,mi=fi()||mn,ti=!!rn;return Te.useMemo(function(){return{isSticky:ti,stickyClassName:ti?"".concat(_n,"-sticky-holder"):"",offsetHeader:ai,offsetSummary:Ki,offsetScroll:Ii,container:mi}},[ti,Ii,ai,Ki,_n,mi])}function Ui(rn,_n,Yt){var qe=(0,Te.useMemo)(function(){var ai=_n.length,yi=function(On,fi,mi){for(var ti=[],gi=0,ui=On;ui!==fi;ui+=mi)ti.push(gi),_n[ui].fixed&&(gi+=rn[ui]||0);return ti},Ki=yi(0,ai,1),_i=yi(ai-1,-1,-1).reverse();return Yt==="rtl"?{left:_i,right:Ki}:{left:Ki,right:_i}},[rn,_n,Yt]);return qe}var or=Ui;function ci(rn){var _n=rn.className,Yt=rn.children;return Te.createElement("div",{className:_n},Yt)}var yt=ci,zt=le(8224),li=le(16089),ii=le(76846);function Rt(rn){var _n=(0,ii.bn)(rn),Yt=_n.getBoundingClientRect(),qe=document.documentElement;return{left:Yt.left+(window.pageXOffset||qe.scrollLeft)-(qe.clientLeft||document.body.clientLeft||0),top:Yt.top+(window.pageYOffset||qe.scrollTop)-(qe.clientTop||document.body.clientTop||0)}}var Jn=function(_n,Yt){var qe,ai,yi=_n.scrollBodyRef,Ki=_n.onScroll,_i=_n.offsetScroll,Ii=_n.container,On=_n.direction,fi=Qe(Ae,"prefixCls"),mi=((qe=yi.current)===null||qe===void 0?void 0:qe.scrollWidth)||0,ti=((ai=yi.current)===null||ai===void 0?void 0:ai.clientWidth)||0,gi=mi&&ti*(ti/mi),ui=Te.useRef(),xi=wn({scrollLeft:0,isHiddenScrollBar:!0}),Oi=(0,Pe.Z)(xi,2),En=Oi[0],ur=Oi[1],sr=Te.useRef({delta:0,x:0}),Yr=Te.useState(!1),hr=(0,Pe.Z)(Yr,2),lo=hr[0],eo=hr[1],Co=Te.useRef(null);Te.useEffect(function(){return function(){li.Z.cancel(Co.current)}},[]);var uo=function(){eo(!1)},Ao=function(Pr){Pr.persist(),sr.current.delta=Pr.pageX-En.scrollLeft,sr.current.x=0,eo(!0),Pr.preventDefault()},No=function(Pr){var fr,co=Pr||((fr=window)===null||fr===void 0?void 0:fr.event),Lo=co.buttons;if(!lo||Lo===0){lo&&eo(!1);return}var dn=sr.current.x+Pr.pageX-sr.current.x-sr.current.delta,Gr=On==="rtl";dn=Math.max(Gr?gi-ti:0,Math.min(Gr?0:ti-gi,dn));var Uo=!Gr||Math.abs(dn)+Math.abs(gi)<ti;Uo&&(Ki({scrollLeft:dn/ti*(mi+2)}),sr.current.x=Pr.pageX)},qt=function(){li.Z.cancel(Co.current),Co.current=(0,li.Z)(function(){if(yi.current){var Pr=Rt(yi.current).top,fr=Pr+yi.current.offsetHeight,co=Ii===window?document.documentElement.scrollTop+window.innerHeight:Rt(Ii).top+Ii.clientHeight;fr-(0,sn.Z)()<=co||Pr>=co-_i?ur(function(Lo){return(0,rt.Z)((0,rt.Z)({},Lo),{},{isHiddenScrollBar:!0})}):ur(function(Lo){return(0,rt.Z)((0,rt.Z)({},Lo),{},{isHiddenScrollBar:!1})})}})},mo=function(Pr){ur(function(fr){return(0,rt.Z)((0,rt.Z)({},fr),{},{scrollLeft:Pr/mi*ti||0})})};return Te.useImperativeHandle(Yt,function(){return{setScrollLeft:mo,checkScrollBarVisible:qt}}),Te.useEffect(function(){var Kr=(0,zt.Z)(document.body,"mouseup",uo,!1),Pr=(0,zt.Z)(document.body,"mousemove",No,!1);return qt(),function(){Kr.remove(),Pr.remove()}},[gi,lo]),Te.useEffect(function(){if(yi.current){for(var Kr=[],Pr=(0,ii.bn)(yi.current);Pr;)Kr.push(Pr),Pr=Pr.parentElement;return Kr.forEach(function(fr){return fr.addEventListener("scroll",qt,!1)}),window.addEventListener("resize",qt,!1),window.addEventListener("scroll",qt,!1),Ii.addEventListener("scroll",qt,!1),function(){Kr.forEach(function(fr){return fr.removeEventListener("scroll",qt)}),window.removeEventListener("resize",qt),window.removeEventListener("scroll",qt),Ii.removeEventListener("scroll",qt)}}},[Ii]),Te.useEffect(function(){En.isHiddenScrollBar||ur(function(Kr){var Pr=yi.current;return Pr?(0,rt.Z)((0,rt.Z)({},Kr),{},{scrollLeft:Pr.scrollLeft/Pr.scrollWidth*Pr.clientWidth}):Kr})},[En.isHiddenScrollBar]),mi<=ti||!gi||En.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,sn.Z)(),width:ti,bottom:_i},className:"".concat(fi,"-sticky-scroll")},Te.createElement("div",{onMouseDown:Ao,ref:ui,className:Et()("".concat(fi,"-sticky-scroll-bar"),(0,at.Z)({},"".concat(fi,"-sticky-scroll-bar-active"),lo)),style:{width:"".concat(gi,"px"),transform:"translate3d(".concat(En.scrollLeft,"px, 0, 0)")}}))},Ni=Te.forwardRef(Jn);function en(rn){return null}var ze=en;function si(rn){return null}var oi=si,yn="rc-table",ir=[],Zi={};function Fn(){return"No Data"}function Li(rn,_n){var Yt=(0,rt.Z)({rowKey:"key",prefixCls:yn,emptyText:Fn},rn),qe=Yt.prefixCls,ai=Yt.className,yi=Yt.rowClassName,Ki=Yt.style,_i=Yt.data,Ii=Yt.rowKey,On=Yt.scroll,fi=Yt.tableLayout,mi=Yt.direction,ti=Yt.title,gi=Yt.footer,ui=Yt.summary,xi=Yt.caption,Oi=Yt.id,En=Yt.showHeader,ur=Yt.components,sr=Yt.emptyText,Yr=Yt.onRow,hr=Yt.onHeaderRow,lo=Yt.onScroll,eo=Yt.internalHooks,Co=Yt.transformColumns,uo=Yt.internalRefs,Ao=Yt.tailor,No=Yt.getContainerWidth,qt=Yt.sticky,mo=Yt.rowHoverable,Kr=mo===void 0?!0:mo,Pr=_i||ir,fr=!!Pr.length,co=eo===ce.R,Lo=Te.useCallback(function(Ho,na){return(0,Ut.Z)(ur,Ho)||na},[ur]),dn=Te.useMemo(function(){return typeof Ii=="function"?Ii:function(Ho){var na=Ho&&Ho[Ii];return na}},[Ii]),Gr=Lo(["body"]),Uo=Ci(),Sa=(0,Pe.Z)(Uo,3),Ya=Sa[0],bs=Sa[1],ts=Sa[2],xr=pn(Yt,Pr,dn),ca=(0,Pe.Z)(xr,6),da=ca[0],Ra=ca[1],va=ca[2],Pa=ca[3],Pi=ca[4],dr=ca[5],Dr=On==null?void 0:On.x,to=Te.useState(0),oo=(0,Pe.Z)(to,2),Wo=oo[0],vr=oo[1],Ua=(0,ln.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)({},Yt),da),{},{expandable:!!da.expandedRowRender,columnTitle:da.columnTitle,expandedKeys:va,getRowKey:dn,onTriggerExpand:dr,expandIcon:Pa,expandIconColumnIndex:da.expandIconColumnIndex,direction:mi,scrollWidth:co&&Ao&&typeof Dr=="number"?Dr:null,clientWidth:Wo}),co?Co:null),ha=(0,Pe.Z)(Ua,4),Ea=ha[0],ho=ha[1],Yo=ha[2],fs=ha[3],ia=Yo!=null?Yo:Dr,os=Te.useMemo(function(){return{columns:Ea,flattenColumns:ho}},[Ea,ho]),Ns=Te.useRef(),ws=Te.useRef(),ba=Te.useRef(),Qs=Te.useRef();Te.useImperativeHandle(_n,function(){return{nativeElement:Ns.current,scrollTo:function(na){var Da;if(ba.current instanceof HTMLElement){var ys=na.index,ls=na.top,bl=na.key;if(Qt(ls)){var wl;(wl=ba.current)===null||wl===void 0||wl.scrollTo({top:ls})}else{var Cl,ol=bl!=null?bl:dn(Pr[ys]);(Cl=ba.current.querySelector('[data-row-key="'.concat(ol,'"]')))===null||Cl===void 0||Cl.scrollIntoView()}}else(Da=ba.current)!==null&&Da!==void 0&&Da.scrollTo&&ba.current.scrollTo(na)}}});var Wl=Te.useRef(),Ms=Te.useState(!1),js=(0,Pe.Z)(Ms,2),Rs=js[0],Rl=js[1],iu=Te.useState(!1),ru=(0,Pe.Z)(iu,2),ka=ru[0],ou=ru[1],Mu=Te.useState(new Map),xl=(0,Pe.Z)(Mu,2),Zn=xl[0],gr=xl[1],Wr=dt(ho),Qr=Wr.map(function(Ho){return Zn.get(Ho)}),wo=Te.useMemo(function(){return Qr},[Qr.join("_")]),Ro=or(wo,ho,mi),aa=On&&ct(On.y),vo=On&&ct(ia)||!!da.fixed,fo=vo&&ho.some(function(Ho){var na=Ho.fixed;return na}),Vr=Te.useRef(),ea=Rn(qt,qe),$i=ea.isSticky,Ta=ea.offsetHeader,It=ea.offsetSummary,Wn=ea.offsetScroll,Cs=ea.stickyClassName,Gs=ea.container,Na=Te.useMemo(function(){return ui==null?void 0:ui(Pr)},[ui,Pr]),Wa=(aa||$i)&&Te.isValidElement(Na)&&Na.type===gt&&Na.props.fixed,as,qa,El;aa&&(qa={overflowY:fr?"scroll":"auto",maxHeight:On.y}),vo&&(as={overflowX:"auto"},aa||(qa={overflowY:"hidden"}),El={width:ia===!0?"auto":ia,minWidth:"100%"});var wa=Te.useCallback(function(Ho,na){gr(function(Da){if(Da.get(Ho)!==na){var ys=new Map(Da);return ys.set(Ho,na),ys}return Da})},[]),qr=Gi(null),ms=(0,Pe.Z)(qr,2),Us=ms[0],qo=ms[1];function Oo(Ho,na){na&&(typeof na=="function"?na(Ho):na.scrollLeft!==Ho&&(na.scrollLeft=Ho,na.scrollLeft!==Ho&&setTimeout(function(){na.scrollLeft=Ho},0)))}var Oa=(0,Me.Z)(function(Ho){var na=Ho.currentTarget,Da=Ho.scrollLeft,ys=mi==="rtl",ls=typeof Da=="number"?Da:na.scrollLeft,bl=na||Zi;if(!qo()||qo()===bl){var wl;Us(bl),Oo(ls,ws.current),Oo(ls,ba.current),Oo(ls,Wl.current),Oo(ls,(wl=Vr.current)===null||wl===void 0?void 0:wl.setScrollLeft)}var Cl=na||ws.current;if(Cl){var ol=co&&Ao&&typeof ia=="number"?ia:Cl.scrollWidth,Yl=Cl.clientWidth;if(ol===Yl){Rl(!1),ou(!1);return}ys?(Rl(-ls<ol-Yl),ou(-ls>0)):(Rl(ls>0),ou(ls<ol-Yl))}}),Ws=(0,Me.Z)(function(Ho){Oa(Ho),lo==null||lo(Ho)}),xa=function(){if(vo&&ba.current){var na;Oa({currentTarget:(0,ii.bn)(ba.current),scrollLeft:(na=ba.current)===null||na===void 0?void 0:na.scrollLeft})}else Rl(!1),ou(!1)},Js=function(na){var Da,ys=na.width;(Da=Vr.current)===null||Da===void 0||Da.checkScrollBarVisible();var ls=Ns.current?Ns.current.offsetWidth:ys;co&&No&&Ns.current&&(ls=No(Ns.current,ls)||ls),ls!==Wo&&(xa(),vr(ls))},ss=Te.useRef(!1);Te.useEffect(function(){ss.current&&xa()},[vo,_i,Ea.length]),Te.useEffect(function(){ss.current=!0},[]);var yu=Te.useState(0),ta=(0,Pe.Z)(yu,2),vs=ta[0],Ko=ta[1],fa=Te.useState(!0),ya=(0,Pe.Z)(fa,2),Ma=ya[0],zo=ya[1];(0,Ie.Z)(function(){(!Ao||!co)&&(ba.current instanceof Element?Ko((0,sn.o)(ba.current).width):Ko((0,sn.o)(Qs.current).width)),zo((0,Ht.G)("position","sticky"))},[]),Te.useEffect(function(){co&&uo&&(uo.body.current=ba.current)});var Vu=Te.useCallback(function(Ho){return Te.createElement(Te.Fragment,null,Te.createElement(Lr,Ho),Wa==="top"&&Te.createElement(Un,Ho,Na))},[Wa,Na]),Zr=Te.useCallback(function(Ho){return Te.createElement(Un,Ho,Na)},[Na]),Qc=Lo(["table"],"table"),Vo=Te.useMemo(function(){return fi||(fo?ia==="max-content"?"auto":"fixed":aa||$i||ho.some(function(Ho){var na=Ho.ellipsis;return na})?"fixed":"auto")},[aa,fo,ho,fi,$i]),Lc,Ru={colWidths:wo,columCount:ho.length,stickyOffsets:Ro,onHeaderRow:hr,fixHeader:aa,scroll:On},au=Te.useMemo(function(){return fr?null:typeof sr=="function"?sr():sr},[fr,sr]),Ic=Te.createElement(rr,{data:Pr,measureColumnWidth:aa||vo||$i}),xc=Te.createElement(Xi,{colWidths:ho.map(function(Ho){var na=Ho.width;return na}),columns:ho}),Ol=xi!=null?Te.createElement("caption",{className:"".concat(qe,"-caption")},xi):void 0,Dl=(0,vn.Z)(Yt,{data:!0}),Zo=(0,vn.Z)(Yt,{aria:!0});if(aa||$i){var Os;typeof Gr=="function"?(Os=Gr(Pr,{scrollbarSize:vs,ref:ba,onScroll:Oa}),Ru.colWidths=ho.map(function(Ho,na){var Da=Ho.width,ys=na===ho.length-1?Da-vs:Da;return typeof ys=="number"&&!Number.isNaN(ys)?ys:0})):Os=Te.createElement("div",{style:(0,rt.Z)((0,rt.Z)({},as),qa),onScroll:Ws,ref:ba,className:Et()("".concat(qe,"-body"))},Te.createElement(Qc,(0,We.Z)({style:(0,rt.Z)((0,rt.Z)({},El),{},{tableLayout:Vo})},Zo),Ol,xc,Ic,!Wa&&Na&&Te.createElement(Un,{stickyOffsets:Ro,flattenColumns:ho},Na)));var Yu=(0,rt.Z)((0,rt.Z)((0,rt.Z)({noData:!Pr.length,maxContentScroll:vo&&ia==="max-content"},Ru),os),{},{direction:mi,stickyClassName:Cs,onScroll:Oa});Lc=Te.createElement(Te.Fragment,null,En!==!1&&Te.createElement(bi,(0,We.Z)({},Yu,{stickyTopOffset:Ta,className:"".concat(qe,"-header"),ref:ws}),Vu),Os,Wa&&Wa!=="top"&&Te.createElement(bi,(0,We.Z)({},Yu,{stickyBottomOffset:It,className:"".concat(qe,"-summary"),ref:Wl}),Zr),$i&&ba.current&&ba.current instanceof Element&&Te.createElement(Ni,{ref:Vr,offsetScroll:Wn,scrollBodyRef:ba,onScroll:Oa,container:Gs,direction:mi}))}else Lc=Te.createElement("div",{style:(0,rt.Z)((0,rt.Z)({},as),qa),className:Et()("".concat(qe,"-content")),onScroll:Oa,ref:ba},Te.createElement(Qc,(0,We.Z)({style:(0,rt.Z)((0,rt.Z)({},El),{},{tableLayout:Vo})},Zo),Ol,xc,En!==!1&&Te.createElement(Lr,(0,We.Z)({},Ru,os)),Ic,Na&&Te.createElement(Un,{stickyOffsets:Ro,flattenColumns:ho},Na)));var Fl=Te.createElement("div",(0,We.Z)({className:Et()(qe,ai,(0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},"".concat(qe,"-rtl"),mi==="rtl"),"".concat(qe,"-ping-left"),Rs),"".concat(qe,"-ping-right"),ka),"".concat(qe,"-layout-fixed"),fi==="fixed"),"".concat(qe,"-fixed-header"),aa),"".concat(qe,"-fixed-column"),fo),"".concat(qe,"-fixed-column-gapped"),fo&&fs),"".concat(qe,"-scroll-horizontal"),vo),"".concat(qe,"-has-fix-left"),ho[0]&&ho[0].fixed),"".concat(qe,"-has-fix-right"),ho[ho.length-1]&&ho[ho.length-1].fixed==="right")),style:Ki,id:Oi,ref:Ns},Dl),ti&&Te.createElement(yt,{className:"".concat(qe,"-title")},ti(Pr)),Te.createElement("div",{ref:Qs,className:"".concat(qe,"-container")},Lc),gi&&Te.createElement(yt,{className:"".concat(qe,"-footer")},gi(Pr)));vo&&(Fl=Te.createElement(nn.Z,{onResize:Js},Fl));var su=$t(ho,Ro,mi),Vl=Te.useMemo(function(){return{scrollX:ia,prefixCls:qe,getComponent:Lo,scrollbarSize:vs,direction:mi,fixedInfoList:su,isSticky:$i,supportSticky:Ma,componentWidth:Wo,fixHeader:aa,fixColumn:fo,horizonScroll:vo,tableLayout:Vo,rowClassName:yi,expandedRowClassName:da.expandedRowClassName,expandIcon:Pa,expandableType:Ra,expandRowByClick:da.expandRowByClick,expandedRowRender:da.expandedRowRender,onTriggerExpand:dr,expandIconColumnIndex:da.expandIconColumnIndex,indentSize:da.indentSize,allColumnsFixedLeft:ho.every(function(Ho){return Ho.fixed==="left"}),emptyNode:au,columns:Ea,flattenColumns:ho,onColumnResize:wa,hoverStartRow:Ya,hoverEndRow:bs,onHover:ts,rowExpandable:da.rowExpandable,onRow:Yr,getRowKey:dn,expandedKeys:va,childrenColumnName:Pi,rowHoverable:Kr}},[ia,qe,Lo,vs,mi,su,$i,Ma,Wo,aa,fo,vo,Vo,yi,da.expandedRowClassName,Pa,Ra,da.expandRowByClick,da.expandedRowRender,dr,da.expandIconColumnIndex,da.indentSize,au,Ea,ho,wa,Ya,bs,ts,da.rowExpandable,Yr,dn,va,Pi,Kr]);return Te.createElement(Ae.Provider,{value:Vl},Fl)}var jt=Te.forwardRef(Li);function br(rn){return se(jt,rn)}var Eo=br();Eo.EXPAND_COLUMN=ce.w,Eo.INTERNAL_HOOKS=ce.R,Eo.Column=ze,Eo.ColumnGroup=oi,Eo.Summary=qn;var Gt=Eo,Wi=le(6790),cr=st(null),Hi=st(null);function Hr(rn,_n,Yt){var qe=_n||1;return Yt[rn+qe]-(Yt[rn]||0)}function Rr(rn){var _n=rn.rowInfo,Yt=rn.column,qe=rn.colIndex,ai=rn.indent,yi=rn.index,Ki=rn.component,_i=rn.renderIndex,Ii=rn.record,On=rn.style,fi=rn.className,mi=rn.inverse,ti=rn.getHeight,gi=Yt.render,ui=Yt.dataIndex,xi=Yt.className,Oi=Yt.width,En=Qe(Hi,["columnsOffset"]),ur=En.columnsOffset,sr=Gn(_n,Yt,qe,ai,yi),Yr=sr.key,hr=sr.fixedInfo,lo=sr.appendCellNode,eo=sr.additionalCellProps,Co=eo.style,uo=eo.colSpan,Ao=uo===void 0?1:uo,No=eo.rowSpan,qt=No===void 0?1:No,mo=qe-1,Kr=Hr(mo,Ao,ur),Pr=Ao>1?Oi-Kr:0,fr=(0,rt.Z)((0,rt.Z)((0,rt.Z)({},Co),On),{},{flex:"0 0 ".concat(Kr,"px"),width:"".concat(Kr,"px"),marginRight:Pr,pointerEvents:"auto"}),co=Te.useMemo(function(){return mi?qt<=1:Ao===0||qt===0||qt>1},[qt,Ao,mi]);co?fr.visibility="hidden":mi&&(fr.height=ti==null?void 0:ti(qt));var Lo=co?function(){return null}:gi,dn={};return(qt===0||Ao===0)&&(dn.rowSpan=1,dn.colSpan=1),Te.createElement(Wt,(0,We.Z)({className:Et()(xi,fi),ellipsis:Yt.ellipsis,align:Yt.align,scope:Yt.rowScope,component:Ki,prefixCls:_n.prefixCls,key:Yr,record:Ii,index:yi,renderIndex:_i,dataIndex:ui,render:Lo,shouldCellUpdate:Yt.shouldCellUpdate},hr,{appendNode:lo,additionalProps:(0,rt.Z)((0,rt.Z)({},eo),{},{style:fr},dn)}))}var jr=Rr,_r=["data","index","className","rowKey","style","extra","getHeight"],Ur=Te.forwardRef(function(rn,_n){var Yt=rn.data,qe=rn.index,ai=rn.className,yi=rn.rowKey,Ki=rn.style,_i=rn.extra,Ii=rn.getHeight,On=(0,ke.Z)(rn,_r),fi=Yt.record,mi=Yt.indent,ti=Yt.index,gi=Qe(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ui=gi.scrollX,xi=gi.flattenColumns,Oi=gi.prefixCls,En=gi.fixColumn,ur=gi.componentWidth,sr=Qe(cr,["getComponent"]),Yr=sr.getComponent,hr=_t(fi,yi,qe,mi),lo=Yr(["body","row"],"div"),eo=Yr(["body","cell"],"div"),Co=hr.rowSupportExpand,uo=hr.expanded,Ao=hr.rowProps,No=hr.expandedRowRender,qt=hr.expandedRowClassName,mo;if(Co&&uo){var Kr=No(fi,qe,mi+1,uo),Pr=Mi(qt,fi,qe,mi),fr={};En&&(fr={style:(0,at.Z)({},"--virtual-width","".concat(ur,"px"))});var co="".concat(Oi,"-expanded-row-cell");mo=Te.createElement(lo,{className:Et()("".concat(Oi,"-expanded-row"),"".concat(Oi,"-expanded-row-level-").concat(mi+1),Pr)},Te.createElement(Wt,{component:eo,prefixCls:Oi,className:Et()(co,(0,at.Z)({},"".concat(co,"-fixed"),En)),additionalProps:fr},Kr))}var Lo=(0,rt.Z)((0,rt.Z)({},Ki),{},{width:ui});_i&&(Lo.position="absolute",Lo.pointerEvents="none");var dn=Te.createElement(lo,(0,We.Z)({},Ao,On,{"data-row-key":yi,ref:Co?null:_n,className:Et()(ai,"".concat(Oi,"-row"),Ao==null?void 0:Ao.className,(0,at.Z)({},"".concat(Oi,"-row-extra"),_i)),style:(0,rt.Z)((0,rt.Z)({},Lo),Ao==null?void 0:Ao.style)}),xi.map(function(Gr,Uo){return Te.createElement(jr,{key:Uo,component:eo,rowInfo:hr,column:Gr,colIndex:Uo,indent:mi,index:qe,renderIndex:ti,record:fi,inverse:_i,getHeight:Ii})}));return Co?Te.createElement("div",{ref:_n},dn,mo):dn}),po=ge(Ur),Pn=po,bo=Te.forwardRef(function(rn,_n){var Yt=rn.data,qe=rn.onScroll,ai=Qe(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),yi=ai.flattenColumns,Ki=ai.onColumnResize,_i=ai.getRowKey,Ii=ai.expandedKeys,On=ai.prefixCls,fi=ai.childrenColumnName,mi=ai.scrollX,ti=ai.direction,gi=Qe(cr),ui=gi.sticky,xi=gi.scrollY,Oi=gi.listItemHeight,En=gi.getComponent,ur=gi.onScroll,sr=Te.useRef(),Yr=xn(Yt,fi,Ii,_i),hr=Te.useMemo(function(){var mo=0;return yi.map(function(Kr){var Pr=Kr.width,fr=Kr.key;return mo+=Pr,[fr,Pr,mo]})},[yi]),lo=Te.useMemo(function(){return hr.map(function(mo){return mo[2]})},[hr]);Te.useEffect(function(){hr.forEach(function(mo){var Kr=(0,Pe.Z)(mo,2),Pr=Kr[0],fr=Kr[1];Ki(Pr,fr)})},[hr]),Te.useImperativeHandle(_n,function(){var mo,Kr={scrollTo:function(fr){var co;(co=sr.current)===null||co===void 0||co.scrollTo(fr)},nativeElement:(mo=sr.current)===null||mo===void 0?void 0:mo.nativeElement};return Object.defineProperty(Kr,"scrollLeft",{get:function(){var fr;return((fr=sr.current)===null||fr===void 0?void 0:fr.getScrollInfo().x)||0},set:function(fr){var co;(co=sr.current)===null||co===void 0||co.scrollTo({left:fr})}}),Kr});var eo=function(Kr,Pr){var fr,co=(fr=Yr[Pr])===null||fr===void 0?void 0:fr.record,Lo=Kr.onCell;if(Lo){var dn,Gr=Lo(co,Pr);return(dn=Gr==null?void 0:Gr.rowSpan)!==null&&dn!==void 0?dn:1}return 1},Co=function(Kr){var Pr=Kr.start,fr=Kr.end,co=Kr.getSize,Lo=Kr.offsetY;if(fr<0)return null;for(var dn=yi.filter(function(Pa){return eo(Pa,Pr)===0}),Gr=Pr,Uo=function(Pi){if(dn=dn.filter(function(dr){return eo(dr,Pi)===0}),!dn.length)return Gr=Pi,1},Sa=Pr;Sa>=0&&!Uo(Sa);Sa-=1);for(var Ya=yi.filter(function(Pa){return eo(Pa,fr)!==1}),bs=fr,ts=function(Pi){if(Ya=Ya.filter(function(dr){return eo(dr,Pi)!==1}),!Ya.length)return bs=Math.max(Pi-1,fr),1},xr=fr;xr<Yr.length&&!ts(xr);xr+=1);for(var ca=[],da=function(Pi){var dr=Yr[Pi];if(!dr)return 1;yi.some(function(Dr){return eo(Dr,Pi)>1})&&ca.push(Pi)},Ra=Gr;Ra<=bs;Ra+=1)da(Ra);var va=ca.map(function(Pa){var Pi=Yr[Pa],dr=_i(Pi.record,Pa),Dr=function(Wo){var vr=Pa+Wo-1,Ua=_i(Yr[vr].record,vr),ha=co(dr,Ua);return ha.bottom-ha.top},to=co(dr);return Te.createElement(Pn,{key:Pa,data:Pi,rowKey:dr,index:Pa,style:{top:-Lo+to.top},extra:!0,getHeight:Dr})});return va},uo=Te.useMemo(function(){return{columnsOffset:lo}},[lo]),Ao="".concat(On,"-tbody"),No=En(["body","wrapper"]),qt={};return ui&&(qt.position="sticky",qt.bottom=0,(0,Je.Z)(ui)==="object"&&ui.offsetScroll&&(qt.bottom=ui.offsetScroll)),Te.createElement(Hi.Provider,{value:uo},Te.createElement(Wi.Z,{fullHeight:!1,ref:sr,prefixCls:"".concat(Ao,"-virtual"),styles:{horizontalScrollBar:qt},className:Ao,height:xi,itemHeight:Oi||24,data:Yr,itemKey:function(Kr){return _i(Kr.record)},component:No,scrollWidth:mi,direction:ti,onVirtualScroll:function(Kr){var Pr,fr=Kr.x;qe({currentTarget:(Pr=sr.current)===null||Pr===void 0?void 0:Pr.nativeElement,scrollLeft:fr})},onScroll:ur,extraRender:Co},function(mo,Kr,Pr){var fr=_i(mo.record,Kr);return Te.createElement(Pn,{data:mo,rowKey:fr,index:Kr,style:Pr.style})}))}),Mn=ge(bo),tr=Mn,wr=function(_n,Yt){var qe=Yt.ref,ai=Yt.onScroll;return Te.createElement(tr,{ref:qe,data:_n,onScroll:ai})};function Sr(rn,_n){var Yt=rn.data,qe=rn.columns,ai=rn.scroll,yi=rn.sticky,Ki=rn.prefixCls,_i=Ki===void 0?yn:Ki,Ii=rn.className,On=rn.listItemHeight,fi=rn.components,mi=rn.onScroll,ti=ai||{},gi=ti.x,ui=ti.y;typeof gi!="number"&&(gi=1),typeof ui!="number"&&(ui=500);var xi=(0,Qn.zX)(function(ur,sr){return(0,Ut.Z)(fi,ur)||sr}),Oi=(0,Qn.zX)(mi),En=Te.useMemo(function(){return{sticky:yi,scrollY:ui,listItemHeight:On,getComponent:xi,onScroll:Oi}},[yi,ui,On,xi,Oi]);return Te.createElement(cr.Provider,{value:En},Te.createElement(Gt,(0,We.Z)({},rn,{className:Et()(Ii,"".concat(_i,"-virtual")),scroll:(0,rt.Z)((0,rt.Z)({},ai),{},{x:gi}),components:(0,rt.Z)((0,rt.Z)({},fi),{},{body:Yt!=null&&Yt.length?wr:void 0}),columns:qe,internalHooks:ce.R,tailor:!0,ref:_n})))}var yo=Te.forwardRef(Sr);function Or(rn){return se(yo,rn)}var Ar=Or(),To=null},54451:function(Re,Ee,le){"use strict";le.d(Ee,{g:function(){return Te},v:function(){return je}});var ce=le(98506),Pe=le(33346),Me=le(48736),Ie=["expandable"],je="RC_TABLE_INTERNAL_COL_DEFINE";function Te(Ge){var st=Ge.expandable,Qe=(0,Pe.Z)(Ge,Ie),We;return"expandable"in Ge?We=(0,ce.Z)((0,ce.Z)({},Qe),st):We=Qe,We.showExpandColumn===!1&&(We.expandIconColumnIndex=-1),We}},22711:function(Re,Ee,le){"use strict";le.r(Ee),le.d(Ee,{ResizableTextArea:function(){return tt},default:function(){return on}});var ce=le(67711),Pe=le(52873),Me=le(98506),Ie=le(15142),je=le(16886),Te=le(33346),Ge=le(92310),st=le.n(Ge),Qe=le(36901),We=le(66003),mt=le(30292),it=le(18929),kt=le(59301),Fe=le(26420),ne=le(29301),te=le(34280),he=le(16089),se=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,ge=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ye={},be;function Ae(an){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn=an.getAttribute("id")||an.getAttribute("data-reactid")||an.getAttribute("name");if(Kt&&ye[fn])return ye[fn];var bt=window.getComputedStyle(an),dt=bt.getPropertyValue("box-sizing")||bt.getPropertyValue("-moz-box-sizing")||bt.getPropertyValue("-webkit-box-sizing"),ct=parseFloat(bt.getPropertyValue("padding-bottom"))+parseFloat(bt.getPropertyValue("padding-top")),Qt=parseFloat(bt.getPropertyValue("border-bottom-width"))+parseFloat(bt.getPropertyValue("border-top-width")),un=ge.map(function(hn){return"".concat(hn,":").concat(bt.getPropertyValue(hn))}).join(";"),Nt={sizingStyle:un,paddingSize:ct,borderSize:Qt,boxSizing:dt};return Kt&&fn&&(ye[fn]=Nt),Nt}function Le(an){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),an.getAttribute("wrap")?be.setAttribute("wrap",an.getAttribute("wrap")):be.removeAttribute("wrap");var dt=Ae(an,Kt),ct=dt.paddingSize,Qt=dt.borderSize,un=dt.boxSizing,Nt=dt.sizingStyle;be.setAttribute("style","".concat(Nt,";").concat(se)),be.value=an.value||an.placeholder||"";var hn=void 0,cn=void 0,Qn,Bt=be.scrollHeight;if(un==="border-box"?Bt+=Qt:un==="content-box"&&(Bt-=ct),fn!==null||bt!==null){be.value=" ";var Pt=be.scrollHeight-ct;fn!==null&&(hn=Pt*fn,un==="border-box"&&(hn=hn+ct+Qt),Bt=Math.max(hn,Bt)),bt!==null&&(cn=Pt*bt,un==="border-box"&&(cn=cn+ct+Qt),Qn=Bt>cn?"":"hidden",Bt=Math.min(cn,Bt))}var Wt={height:Bt,overflowY:Qn,resize:"none"};return hn&&(Wt.minHeight=hn),cn&&(Wt.maxHeight=cn),Wt}var Ve=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],et=0,Je=1,rt=2,at=kt.forwardRef(function(an,Kt){var fn=an,bt=fn.prefixCls,dt=fn.defaultValue,ct=fn.value,Qt=fn.autoSize,un=fn.onResize,Nt=fn.className,hn=fn.style,cn=fn.disabled,Qn=fn.onChange,Bt=fn.onInternalAutoSize,Pt=(0,Te.Z)(fn,Ve),Wt=(0,it.Z)(dt,{value:ct,postState:function(Si){return Si!=null?Si:""}}),An=(0,je.Z)(Wt,2),Nn=An[0],$e=An[1],Oe=function(Si){$e(Si.target.value),Qn==null||Qn(Si)},ke=kt.useRef();kt.useImperativeHandle(Kt,function(){return{textArea:ke.current}});var Ke=kt.useMemo(function(){return Qt&&(0,Fe.Z)(Qt)==="object"?[Qt.minRows,Qt.maxRows]:[]},[Qt]),lt=(0,je.Z)(Ke,2),Ue=lt[0],gt=lt[1],tn=!!Qt,Un=function(){try{if(document.activeElement===ke.current){var Si=ke.current,wi=Si.selectionStart,Vt=Si.selectionEnd,qi=Si.scrollTop;ke.current.setSelectionRange(wi,Vt),ke.current.scrollTop=qi}}catch(lr){}},qn=kt.useState(rt),nn=(0,je.Z)(qn,2),Ht=nn[0],sn=nn[1],vn=kt.useState(),Ln=(0,je.Z)(vn,2),xn=Ln[0],_t=Ln[1],Vn=function(){sn(et)};(0,te.Z)(function(){tn&&Vn()},[ct,Ue,gt,tn]),(0,te.Z)(function(){if(Ht===et)sn(Je);else if(Ht===Je){var wt=Le(ke.current,!1,Ue,gt);sn(rt),_t(wt)}else Un()},[Ht]);var Kn=kt.useRef(),Tn=function(){he.Z.cancel(Kn.current)},jn=function(Si){Ht===rt&&(un==null||un(Si),Qt&&(Tn(),Kn.current=(0,he.Z)(function(){Vn()})))};kt.useEffect(function(){return Tn},[]);var Mi=tn?xn:null,Gn=(0,Me.Z)((0,Me.Z)({},hn),Mi);return(Ht===et||Ht===Je)&&(Gn.overflowY="hidden",Gn.overflowX="hidden"),kt.createElement(ne.Z,{onResize:jn,disabled:!(Qt||un)},kt.createElement("textarea",(0,ce.Z)({},Pt,{ref:ke,style:Gn,className:st()(bt,Nt,(0,Pe.Z)({},"".concat(bt,"-disabled"),cn)),disabled:cn,value:Nn,onChange:Oe})))}),tt=at,Et=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Lt=kt.forwardRef(function(an,Kt){var fn,bt=an.defaultValue,dt=an.value,ct=an.onFocus,Qt=an.onBlur,un=an.onChange,Nt=an.allowClear,hn=an.maxLength,cn=an.onCompositionStart,Qn=an.onCompositionEnd,Bt=an.suffix,Pt=an.prefixCls,Wt=Pt===void 0?"rc-textarea":Pt,An=an.showCount,Nn=an.count,$e=an.className,Oe=an.style,ke=an.disabled,Ke=an.hidden,lt=an.classNames,Ue=an.styles,gt=an.onResize,tn=an.onClear,Un=an.onPressEnter,qn=an.readOnly,nn=an.autoSize,Ht=an.onKeyDown,sn=(0,Te.Z)(an,Et),vn=(0,it.Z)(bt,{value:dt,defaultValue:bt}),Ln=(0,je.Z)(vn,2),xn=Ln[0],_t=Ln[1],Vn=xn==null?"":String(xn),Kn=kt.useState(!1),Tn=(0,je.Z)(Kn,2),jn=Tn[0],Mi=Tn[1],Gn=kt.useRef(!1),wt=kt.useState(null),Si=(0,je.Z)(wt,2),wi=Si[0],Vt=Si[1],qi=(0,kt.useRef)(null),lr=(0,kt.useRef)(null),rr=function(){var Ui;return(Ui=lr.current)===null||Ui===void 0?void 0:Ui.textArea},In=function(){rr().focus()};(0,kt.useImperativeHandle)(Kt,function(){var Rn;return{resizableTextArea:lr.current,focus:In,blur:function(){rr().blur()},nativeElement:((Rn=qi.current)===null||Rn===void 0?void 0:Rn.nativeElement)||rr()}}),(0,kt.useEffect)(function(){Mi(function(Rn){return!ke&&Rn})},[ke]);var Br=kt.useState(null),Tr=(0,je.Z)(Br,2),Xi=Tr[0],Ji=Tr[1];kt.useEffect(function(){if(Xi){var Rn;(Rn=rr()).setSelectionRange.apply(Rn,(0,Ie.Z)(Xi))}},[Xi]);var Nr=(0,We.Z)(Nn,An),Be=(fn=Nr.max)!==null&&fn!==void 0?fn:hn,Vi=Number(Be)>0,bi=Nr.strategy(Vn),di=!!Be&&bi>Be,Ri=function(Ui,or){var ci=or;!Gn.current&&Nr.exceedFormatter&&Nr.max&&Nr.strategy(or)>Nr.max&&(ci=Nr.exceedFormatter(or,{max:Nr.max}),or!==ci&&Ji([rr().selectionStart||0,rr().selectionEnd||0])),_t(ci),(0,mt.rJ)(Ui.currentTarget,Ui,un,ci)},Fi=function(Ui){Gn.current=!0,cn==null||cn(Ui)},Ti=function(Ui){Gn.current=!1,Ri(Ui,Ui.currentTarget.value),Qn==null||Qn(Ui)},Lr=function(Ui){Ri(Ui,Ui.target.value)},ln=function(Ui){Ui.key==="Enter"&&Un&&Un(Ui),Ht==null||Ht(Ui)},pn=function(Ui){Mi(!0),ct==null||ct(Ui)},$t=function(Ui){Mi(!1),Qt==null||Qt(Ui)},wn=function(Ui){_t(""),In(),(0,mt.rJ)(rr(),Ui,un)},Gi=Bt,Ci;Nr.show&&(Nr.showFormatter?Ci=Nr.showFormatter({value:Vn,count:bi,maxLength:Be}):Ci="".concat(bi).concat(Vi?" / ".concat(Be):""),Gi=kt.createElement(kt.Fragment,null,Gi,kt.createElement("span",{className:st()("".concat(Wt,"-data-count"),lt==null?void 0:lt.count),style:Ue==null?void 0:Ue.count},Ci)));var Yi=function(Ui){var or;gt==null||gt(Ui),(or=rr())!==null&&or!==void 0&&or.style.height&&Vt(!0)},mn=!nn&&!An&&!Nt;return kt.createElement(Qe.BaseInput,{ref:qi,value:Vn,allowClear:Nt,handleReset:wn,suffix:Gi,prefixCls:Wt,classNames:(0,Me.Z)((0,Me.Z)({},lt),{},{affixWrapper:st()(lt==null?void 0:lt.affixWrapper,(0,Pe.Z)((0,Pe.Z)({},"".concat(Wt,"-show-count"),An),"".concat(Wt,"-textarea-allow-clear"),Nt))}),disabled:ke,focused:jn,className:st()($e,di&&"".concat(Wt,"-out-of-range")),style:(0,Me.Z)((0,Me.Z)({},Oe),wi&&!mn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ci=="string"?Ci:void 0}},hidden:Ke,readOnly:qn,onClear:tn},kt.createElement(tt,(0,ce.Z)({},sn,{autoSize:nn,maxLength:hn,onKeyDown:ln,onChange:Lr,onFocus:pn,onBlur:$t,onCompositionStart:Fi,onCompositionEnd:Ti,className:st()(lt==null?void 0:lt.textarea),style:(0,Me.Z)((0,Me.Z)({},Ue==null?void 0:Ue.textarea),{},{resize:Oe==null?void 0:Oe.resize}),disabled:ke,prefixCls:Wt,onResize:Yi,ref:lr,readOnly:qn})))}),Ut=Lt,on=Ut},639:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return ye}});var ce=le(67711),Pe=le(52873),Me=le(98506),Ie=le(16886),je=le(33346),Te=le(59301),Ge=le(92310),st=le.n(Ge),Qe=le(26112),We=le(30699),mt=function(Ae){for(var Le=Ae.prefixCls,Ve=Ae.level,et=Ae.isStart,Je=Ae.isEnd,rt="".concat(Le,"-indent-unit"),at=[],tt=0;tt<Ve;tt+=1)at.push(Te.createElement("span",{key:tt,className:st()(rt,(0,Pe.Z)((0,Pe.Z)({},"".concat(rt,"-start"),et[tt]),"".concat(rt,"-end"),Je[tt]))}));return Te.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},at)},it=Te.memo(mt),kt=le(65065),Fe=le(34061),ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",he="close",se="---",ge=function(Ae){var Le,Ve,et,Je=Ae.eventKey,rt=Ae.className,at=Ae.style,tt=Ae.dragOver,Et=Ae.dragOverGapTop,Lt=Ae.dragOverGapBottom,Ut=Ae.isLeaf,on=Ae.isStart,an=Ae.isEnd,Kt=Ae.expanded,fn=Ae.selected,bt=Ae.checked,dt=Ae.halfChecked,ct=Ae.loading,Qt=Ae.domRef,un=Ae.active,Nt=Ae.data,hn=Ae.onMouseMove,cn=Ae.selectable,Qn=(0,je.Z)(Ae,ne),Bt=Te.useContext(We.k),Pt=Te.useContext(We.y),Wt=Te.useRef(null),An=Te.useState(!1),Nn=(0,Ie.Z)(An,2),$e=Nn[0],Oe=Nn[1],ke=!!(Bt.disabled||Ae.disabled||(Le=Pt.nodeDisabled)!==null&&Le!==void 0&&Le.call(Pt,Nt)),Ke=Te.useMemo(function(){return!Bt.checkable||Ae.checkable===!1?!1:Bt.checkable},[Bt.checkable,Ae.checkable]),lt=function(bi){ke||Bt.onNodeSelect(bi,(0,Fe.F)(Ae))},Ue=function(bi){ke||!Ke||Ae.disableCheckbox||Bt.onNodeCheck(bi,(0,Fe.F)(Ae),!bt)},gt=Te.useMemo(function(){return typeof cn=="boolean"?cn:Bt.selectable},[cn,Bt.selectable]),tn=function(bi){Bt.onNodeClick(bi,(0,Fe.F)(Ae)),gt?lt(bi):Ue(bi)},Un=function(bi){Bt.onNodeDoubleClick(bi,(0,Fe.F)(Ae))},qn=function(bi){Bt.onNodeMouseEnter(bi,(0,Fe.F)(Ae))},nn=function(bi){Bt.onNodeMouseLeave(bi,(0,Fe.F)(Ae))},Ht=function(bi){Bt.onNodeContextMenu(bi,(0,Fe.F)(Ae))},sn=Te.useMemo(function(){return!!(Bt.draggable&&(!Bt.draggable.nodeDraggable||Bt.draggable.nodeDraggable(Nt)))},[Bt.draggable,Nt]),vn=function(bi){bi.stopPropagation(),Oe(!0),Bt.onNodeDragStart(bi,Ae);try{bi.dataTransfer.setData("text/plain","")}catch(di){}},Ln=function(bi){bi.preventDefault(),bi.stopPropagation(),Bt.onNodeDragEnter(bi,Ae)},xn=function(bi){bi.preventDefault(),bi.stopPropagation(),Bt.onNodeDragOver(bi,Ae)},_t=function(bi){bi.stopPropagation(),Bt.onNodeDragLeave(bi,Ae)},Vn=function(bi){bi.stopPropagation(),Oe(!1),Bt.onNodeDragEnd(bi,Ae)},Kn=function(bi){bi.preventDefault(),bi.stopPropagation(),Oe(!1),Bt.onNodeDrop(bi,Ae)},Tn=function(bi){ct||Bt.onNodeExpand(bi,(0,Fe.F)(Ae))},jn=Te.useMemo(function(){var Vi=(0,kt.Z)(Bt.keyEntities,Je)||{},bi=Vi.children;return!!(bi||[]).length},[Bt.keyEntities,Je]),Mi=Te.useMemo(function(){return Ut===!1?!1:Ut||!Bt.loadData&&!jn||Bt.loadData&&Ae.loaded&&!jn},[Ut,Bt.loadData,jn,Ae.loaded]);Te.useEffect(function(){ct||typeof Bt.loadData=="function"&&Kt&&!Mi&&!Ae.loaded&&Bt.onNodeLoad((0,Fe.F)(Ae))},[ct,Bt.loadData,Bt.onNodeLoad,Kt,Mi,Ae]);var Gn=Te.useMemo(function(){var Vi;return(Vi=Bt.draggable)!==null&&Vi!==void 0&&Vi.icon?Te.createElement("span",{className:"".concat(Bt.prefixCls,"-draggable-icon")},Bt.draggable.icon):null},[Bt.draggable]),wt=function(bi){var di=Ae.switcherIcon||Bt.switcherIcon;return typeof di=="function"?di((0,Me.Z)((0,Me.Z)({},Ae),{},{isLeaf:bi})):di},Si=function(){if(Mi){var bi=wt(!0);return bi!==!1?Te.createElement("span",{className:st()("".concat(Bt.prefixCls,"-switcher"),"".concat(Bt.prefixCls,"-switcher-noop"))},bi):null}var di=wt(!1);return di!==!1?Te.createElement("span",{onClick:Tn,className:st()("".concat(Bt.prefixCls,"-switcher"),"".concat(Bt.prefixCls,"-switcher_").concat(Kt?te:he))},di):null},wi=Te.useMemo(function(){if(!Ke)return null;var Vi=typeof Ke!="boolean"?Ke:null;return Te.createElement("span",{className:st()("".concat(Bt.prefixCls,"-checkbox"),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Bt.prefixCls,"-checkbox-checked"),bt),"".concat(Bt.prefixCls,"-checkbox-indeterminate"),!bt&&dt),"".concat(Bt.prefixCls,"-checkbox-disabled"),ke||Ae.disableCheckbox)),onClick:Ue,role:"checkbox","aria-checked":dt?"mixed":bt,"aria-disabled":ke||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},Vi)},[Ke,bt,dt,ke,Ae.disableCheckbox,Ae.title]),Vt=Te.useMemo(function(){return Mi?null:Kt?te:he},[Mi,Kt]),qi=Te.useMemo(function(){return Te.createElement("span",{className:st()("".concat(Bt.prefixCls,"-iconEle"),"".concat(Bt.prefixCls,"-icon__").concat(Vt||"docu"),(0,Pe.Z)({},"".concat(Bt.prefixCls,"-icon_loading"),ct))})},[Bt.prefixCls,Vt,ct]),lr=Te.useMemo(function(){var Vi=!!Bt.draggable,bi=!Ae.disabled&&Vi&&Bt.dragOverNodeKey===Je;return bi?Bt.dropIndicatorRender({dropPosition:Bt.dropPosition,dropLevelOffset:Bt.dropLevelOffset,indent:Bt.indent,prefixCls:Bt.prefixCls,direction:Bt.direction}):null},[Bt.dropPosition,Bt.dropLevelOffset,Bt.indent,Bt.prefixCls,Bt.direction,Bt.draggable,Bt.dragOverNodeKey,Bt.dropIndicatorRender]),rr=Te.useMemo(function(){var Vi=Ae.title,bi=Vi===void 0?se:Vi,di="".concat(Bt.prefixCls,"-node-content-wrapper"),Ri;if(Bt.showIcon){var Fi=Ae.icon||Bt.icon;Ri=Fi?Te.createElement("span",{className:st()("".concat(Bt.prefixCls,"-iconEle"),"".concat(Bt.prefixCls,"-icon__customize"))},typeof Fi=="function"?Fi(Ae):Fi):qi}else Bt.loadData&&ct&&(Ri=qi);var Ti;return typeof bi=="function"?Ti=bi(Nt):Bt.titleRender?Ti=Bt.titleRender(Nt):Ti=bi,Te.createElement("span",{ref:Wt,title:typeof bi=="string"?bi:"",className:st()(di,"".concat(di,"-").concat(Vt||"normal"),(0,Pe.Z)({},"".concat(Bt.prefixCls,"-node-selected"),!ke&&(fn||$e))),onMouseEnter:qn,onMouseLeave:nn,onContextMenu:Ht,onClick:tn,onDoubleClick:Un},Ri,Te.createElement("span",{className:"".concat(Bt.prefixCls,"-title")},Ti),lr)},[Bt.prefixCls,Bt.showIcon,Ae,Bt.icon,qi,Bt.titleRender,Nt,Vt,qn,nn,Ht,tn,Un]),In=(0,Qe.Z)(Qn,{aria:!0,data:!0}),Br=(0,kt.Z)(Bt.keyEntities,Je)||{},Tr=Br.level,Xi=an[an.length-1],Ji=!ke&&sn,Nr=Bt.draggingNodeKey===Je,Be=cn!==void 0?{"aria-selected":!!cn}:void 0;return Te.createElement("div",(0,ce.Z)({ref:Qt,role:"treeitem","aria-expanded":Ut?void 0:Kt,className:st()(rt,"".concat(Bt.prefixCls,"-treenode"),(et={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(et,"".concat(Bt.prefixCls,"-treenode-disabled"),ke),"".concat(Bt.prefixCls,"-treenode-switcher-").concat(Kt?"open":"close"),!Ut),"".concat(Bt.prefixCls,"-treenode-checkbox-checked"),bt),"".concat(Bt.prefixCls,"-treenode-checkbox-indeterminate"),dt),"".concat(Bt.prefixCls,"-treenode-selected"),fn),"".concat(Bt.prefixCls,"-treenode-loading"),ct),"".concat(Bt.prefixCls,"-treenode-active"),un),"".concat(Bt.prefixCls,"-treenode-leaf-last"),Xi),"".concat(Bt.prefixCls,"-treenode-draggable"),sn),"dragging",Nr),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(et,"drop-target",Bt.dropTargetKey===Je),"drop-container",Bt.dropContainerKey===Je),"drag-over",!ke&&tt),"drag-over-gap-top",!ke&&Et),"drag-over-gap-bottom",!ke&&Lt),"filter-node",(Ve=Bt.filterTreeNode)===null||Ve===void 0?void 0:Ve.call(Bt,(0,Fe.F)(Ae))),"".concat(Bt.prefixCls,"-treenode-leaf"),Mi))),style:at,draggable:Ji,onDragStart:Ji?vn:void 0,onDragEnter:sn?Ln:void 0,onDragOver:sn?xn:void 0,onDragLeave:sn?_t:void 0,onDrop:sn?Kn:void 0,onDragEnd:sn?Vn:void 0,onMouseMove:hn},Be,In),Te.createElement(it,{prefixCls:Bt.prefixCls,level:Tr,isStart:on,isEnd:an}),Gn,Si(),wi,rr)};ge.isTreeNode=1;var ye=ge},30699:function(Re,Ee,le){"use strict";le.d(Ee,{k:function(){return Pe},y:function(){return Me}});var ce=le(59301),Pe=ce.createContext(null),Me=ce.createContext({})},71598:function(Re,Ee,le){"use strict";le.d(Ee,{OF:function(){return Je.Z},y6:function(){return he.y},ZP:function(){return ke}});var ce=le(67711),Pe=le(26420),Me=le(98506),Ie=le(15142),je=le(42573),Te=le(58698),Ge=le(62437),st=le(74700),Qe=le(45080),We=le(52873),mt=le(92310),it=le.n(mt),kt=le(10228),Fe=le(26112),ne=le(48736),te=le(59301),he=le(30699),se=function(lt){var Ue=lt.dropPosition,gt=lt.dropLevelOffset,tn=lt.indent,Un={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ue){case-1:Un.top=0,Un.left=-gt*tn;break;case 1:Un.bottom=0,Un.left=-gt*tn;break;case 0:Un.bottom=0,Un.left=tn;break}return te.createElement("div",{style:Un})},ge=se;function ye(Ke){if(Ke==null)throw new TypeError("Cannot destructure "+Ke)}var be=le(16886),Ae=le(33346),Le=le(34280),Ve=le(6790),et=le(77900),Je=le(639);function rt(Ke,lt){var Ue=te.useState(!1),gt=(0,be.Z)(Ue,2),tn=gt[0],Un=gt[1];(0,Le.Z)(function(){if(tn)return Ke(),function(){lt()}},[tn]),(0,Le.Z)(function(){return Un(!0),function(){Un(!1)}},[])}var at=rt,tt=le(34061),Et=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Lt=te.forwardRef(function(Ke,lt){var Ue=Ke.className,gt=Ke.style,tn=Ke.motion,Un=Ke.motionNodes,qn=Ke.motionType,nn=Ke.onMotionStart,Ht=Ke.onMotionEnd,sn=Ke.active,vn=Ke.treeNodeRequiredProps,Ln=(0,Ae.Z)(Ke,Et),xn=te.useState(!0),_t=(0,be.Z)(xn,2),Vn=_t[0],Kn=_t[1],Tn=te.useContext(he.k),jn=Tn.prefixCls,Mi=Un&&qn!=="hide";(0,Le.Z)(function(){Un&&Mi!==Vn&&Kn(Mi)},[Un]);var Gn=function(){Un&&nn()},wt=te.useRef(!1),Si=function(){Un&&!wt.current&&(wt.current=!0,Ht())};at(Gn,Si);var wi=function(qi){Mi===qi&&Si()};return Un?te.createElement(et.default,(0,ce.Z)({ref:lt,visible:Vn},tn,{motionAppear:qn==="show",onVisibleChanged:wi}),function(Vt,qi){var lr=Vt.className,rr=Vt.style;return te.createElement("div",{ref:qi,className:it()("".concat(jn,"-treenode-motion"),lr),style:rr},Un.map(function(In){var Br=Object.assign({},(ye(In.data),In.data)),Tr=In.title,Xi=In.key,Ji=In.isStart,Nr=In.isEnd;delete Br.children;var Be=(0,tt.H8)(Xi,vn);return te.createElement(Je.Z,(0,ce.Z)({},Br,Be,{title:Tr,active:sn,data:In.data,key:Xi,isStart:Ji,isEnd:Nr}))}))}):te.createElement(Je.Z,(0,ce.Z)({domRef:lt,className:Ue,style:gt},Ln,{active:sn}))}),Ut=Lt;function on(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ue=Ke.length,gt=lt.length;if(Math.abs(Ue-gt)!==1)return{add:!1,key:null};function tn(Un,qn){var nn=new Map;Un.forEach(function(sn){nn.set(sn,!0)});var Ht=qn.filter(function(sn){return!nn.has(sn)});return Ht.length===1?Ht[0]:null}return Ue<gt?{add:!0,key:tn(Ke,lt)}:{add:!1,key:tn(lt,Ke)}}function an(Ke,lt,Ue){var gt=Ke.findIndex(function(nn){return nn.key===Ue}),tn=Ke[gt+1],Un=lt.findIndex(function(nn){return nn.key===Ue});if(tn){var qn=lt.findIndex(function(nn){return nn.key===tn.key});return lt.slice(Un+1,qn)}return lt.slice(Un+1)}var Kt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],fn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},bt=function(){},dt="RC_TREE_MOTION_".concat(Math.random()),ct={key:dt},Qt={key:dt,level:0,index:0,pos:"0",node:ct,nodes:[ct]},un={parent:null,children:[],pos:Qt.pos,data:ct,title:null,key:dt,isStart:[],isEnd:[]};function Nt(Ke,lt,Ue,gt){return lt===!1||!Ue?Ke:Ke.slice(0,Math.ceil(Ue/gt)+1)}function hn(Ke){var lt=Ke.key,Ue=Ke.pos;return(0,tt.km)(lt,Ue)}function cn(Ke){for(var lt=String(Ke.data.key),Ue=Ke;Ue.parent;)Ue=Ue.parent,lt="".concat(Ue.data.key," > ").concat(lt);return lt}var Qn=te.forwardRef(function(Ke,lt){var Ue=Ke.prefixCls,gt=Ke.data,tn=Ke.selectable,Un=Ke.checkable,qn=Ke.expandedKeys,nn=Ke.selectedKeys,Ht=Ke.checkedKeys,sn=Ke.loadedKeys,vn=Ke.loadingKeys,Ln=Ke.halfCheckedKeys,xn=Ke.keyEntities,_t=Ke.disabled,Vn=Ke.dragging,Kn=Ke.dragOverNodeKey,Tn=Ke.dropPosition,jn=Ke.motion,Mi=Ke.height,Gn=Ke.itemHeight,wt=Ke.virtual,Si=Ke.scrollWidth,wi=Ke.focusable,Vt=Ke.activeItem,qi=Ke.focused,lr=Ke.tabIndex,rr=Ke.onKeyDown,In=Ke.onFocus,Br=Ke.onBlur,Tr=Ke.onActiveChange,Xi=Ke.onListChangeStart,Ji=Ke.onListChangeEnd,Nr=(0,Ae.Z)(Ke,Kt),Be=te.useRef(null),Vi=te.useRef(null);te.useImperativeHandle(lt,function(){return{scrollTo:function(en){Be.current.scrollTo(en)},getIndentWidth:function(){return Vi.current.offsetWidth}}});var bi=te.useState(qn),di=(0,be.Z)(bi,2),Ri=di[0],Fi=di[1],Ti=te.useState(gt),Lr=(0,be.Z)(Ti,2),ln=Lr[0],pn=Lr[1],$t=te.useState(gt),wn=(0,be.Z)($t,2),Gi=wn[0],Ci=wn[1],Yi=te.useState([]),mn=(0,be.Z)(Yi,2),Rn=mn[0],Ui=mn[1],or=te.useState(null),ci=(0,be.Z)(or,2),yt=ci[0],zt=ci[1],li=te.useRef(gt);li.current=gt;function ii(){var Ni=li.current;pn(Ni),Ci(Ni),Ui([]),zt(null),Ji()}(0,Le.Z)(function(){Fi(qn);var Ni=on(Ri,qn);if(Ni.key!==null)if(Ni.add){var en=ln.findIndex(function(Zi){var Fn=Zi.key;return Fn===Ni.key}),ze=Nt(an(ln,gt,Ni.key),wt,Mi,Gn),si=ln.slice();si.splice(en+1,0,un),Ci(si),Ui(ze),zt("show")}else{var oi=gt.findIndex(function(Zi){var Fn=Zi.key;return Fn===Ni.key}),yn=Nt(an(gt,ln,Ni.key),wt,Mi,Gn),ir=gt.slice();ir.splice(oi+1,0,un),Ci(ir),Ui(yn),zt("hide")}else ln!==gt&&(pn(gt),Ci(gt))},[qn,gt]),te.useEffect(function(){Vn||ii()},[Vn]);var Rt=jn?Gi:gt,Jn={expandedKeys:qn,selectedKeys:nn,loadedKeys:sn,loadingKeys:vn,checkedKeys:Ht,halfCheckedKeys:Ln,dragOverNodeKey:Kn,dropPosition:Tn,keyEntities:xn};return te.createElement(te.Fragment,null,qi&&Vt&&te.createElement("span",{style:fn,"aria-live":"assertive"},cn(Vt)),te.createElement("div",null,te.createElement("input",{style:fn,disabled:wi===!1||_t,tabIndex:wi!==!1?lr:null,onKeyDown:rr,onFocus:In,onBlur:Br,value:"",onChange:bt,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(Ue,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(Ue,"-indent")},te.createElement("div",{ref:Vi,className:"".concat(Ue,"-indent-unit")}))),te.createElement(Ve.Z,(0,ce.Z)({},Nr,{data:Rt,itemKey:hn,height:Mi,fullHeight:!1,virtual:wt,itemHeight:Gn,scrollWidth:Si,prefixCls:"".concat(Ue,"-list"),ref:Be,role:"tree",onVisibleChange:function(en){en.every(function(ze){return hn(ze)!==dt})&&ii()}}),function(Ni){var en=Ni.pos,ze=Object.assign({},(ye(Ni.data),Ni.data)),si=Ni.title,oi=Ni.key,yn=Ni.isStart,ir=Ni.isEnd,Zi=(0,tt.km)(oi,en);delete ze.key,delete ze.children;var Fn=(0,tt.H8)(Zi,Jn);return te.createElement(Ut,(0,ce.Z)({},ze,Fn,{title:si,active:!!Vt&&oi===Vt.key,pos:en,data:Ni.data,isStart:yn,isEnd:ir,motion:jn,motionNodes:oi===dt?Rn:null,motionType:yt,onMotionStart:Xi,onMotionEnd:ii,treeNodeRequiredProps:Jn,onMouseMove:function(){Tr(null)}}))}))}),Bt=Qn,Pt=le(82661),Wt=le(34643),An=le(65065),Nn=10,$e=function(Ke){(0,st.Z)(Ue,Ke);var lt=(0,Qe.Z)(Ue);function Ue(){var gt;(0,je.Z)(this,Ue);for(var tn=arguments.length,Un=new Array(tn),qn=0;qn<tn;qn++)Un[qn]=arguments[qn];return gt=lt.call.apply(lt,[this].concat(Un)),(0,We.Z)((0,Ge.Z)(gt),"destroyed",!1),(0,We.Z)((0,Ge.Z)(gt),"delayedDragEnterLogic",void 0),(0,We.Z)((0,Ge.Z)(gt),"loadingRetryTimes",{}),(0,We.Z)((0,Ge.Z)(gt),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,tt.w$)()}),(0,We.Z)((0,Ge.Z)(gt),"dragStartMousePosition",null),(0,We.Z)((0,Ge.Z)(gt),"dragNodeProps",null),(0,We.Z)((0,Ge.Z)(gt),"currentMouseOverDroppableNodeKey",null),(0,We.Z)((0,Ge.Z)(gt),"listRef",te.createRef()),(0,We.Z)((0,Ge.Z)(gt),"onNodeDragStart",function(nn,Ht){var sn=gt.state,vn=sn.expandedKeys,Ln=sn.keyEntities,xn=gt.props.onDragStart,_t=Ht.eventKey;gt.dragNodeProps=Ht,gt.dragStartMousePosition={x:nn.clientX,y:nn.clientY};var Vn=(0,Pt._5)(vn,_t);gt.setState({draggingNodeKey:_t,dragChildrenKeys:(0,Pt.wA)(_t,Ln),indent:gt.listRef.current.getIndentWidth()}),gt.setExpandedKeys(Vn),window.addEventListener("dragend",gt.onWindowDragEnd),xn==null||xn({event:nn,node:(0,tt.F)(Ht)})}),(0,We.Z)((0,Ge.Z)(gt),"onNodeDragEnter",function(nn,Ht){var sn=gt.state,vn=sn.expandedKeys,Ln=sn.keyEntities,xn=sn.dragChildrenKeys,_t=sn.flattenNodes,Vn=sn.indent,Kn=gt.props,Tn=Kn.onDragEnter,jn=Kn.onExpand,Mi=Kn.allowDrop,Gn=Kn.direction,wt=Ht.pos,Si=Ht.eventKey;if(gt.currentMouseOverDroppableNodeKey!==Si&&(gt.currentMouseOverDroppableNodeKey=Si),!gt.dragNodeProps){gt.resetDragState();return}var wi=(0,Pt.OM)(nn,gt.dragNodeProps,Ht,Vn,gt.dragStartMousePosition,Mi,_t,Ln,vn,Gn),Vt=wi.dropPosition,qi=wi.dropLevelOffset,lr=wi.dropTargetKey,rr=wi.dropContainerKey,In=wi.dropTargetPos,Br=wi.dropAllowed,Tr=wi.dragOverNodeKey;if(xn.includes(lr)||!Br){gt.resetDragState();return}if(gt.delayedDragEnterLogic||(gt.delayedDragEnterLogic={}),Object.keys(gt.delayedDragEnterLogic).forEach(function(Xi){clearTimeout(gt.delayedDragEnterLogic[Xi])}),gt.dragNodeProps.eventKey!==Ht.eventKey&&(nn.persist(),gt.delayedDragEnterLogic[wt]=window.setTimeout(function(){if(gt.state.draggingNodeKey!==null){var Xi=(0,Ie.Z)(vn),Ji=(0,An.Z)(Ln,Ht.eventKey);Ji&&(Ji.children||[]).length&&(Xi=(0,Pt.L0)(vn,Ht.eventKey)),gt.props.hasOwnProperty("expandedKeys")||gt.setExpandedKeys(Xi),jn==null||jn(Xi,{node:(0,tt.F)(Ht),expanded:!0,nativeEvent:nn.nativeEvent})}},800)),gt.dragNodeProps.eventKey===lr&&qi===0){gt.resetDragState();return}gt.setState({dragOverNodeKey:Tr,dropPosition:Vt,dropLevelOffset:qi,dropTargetKey:lr,dropContainerKey:rr,dropTargetPos:In,dropAllowed:Br}),Tn==null||Tn({event:nn,node:(0,tt.F)(Ht),expandedKeys:vn})}),(0,We.Z)((0,Ge.Z)(gt),"onNodeDragOver",function(nn,Ht){var sn=gt.state,vn=sn.dragChildrenKeys,Ln=sn.flattenNodes,xn=sn.keyEntities,_t=sn.expandedKeys,Vn=sn.indent,Kn=gt.props,Tn=Kn.onDragOver,jn=Kn.allowDrop,Mi=Kn.direction;if(gt.dragNodeProps){var Gn=(0,Pt.OM)(nn,gt.dragNodeProps,Ht,Vn,gt.dragStartMousePosition,jn,Ln,xn,_t,Mi),wt=Gn.dropPosition,Si=Gn.dropLevelOffset,wi=Gn.dropTargetKey,Vt=Gn.dropContainerKey,qi=Gn.dropTargetPos,lr=Gn.dropAllowed,rr=Gn.dragOverNodeKey;vn.includes(wi)||!lr||(gt.dragNodeProps.eventKey===wi&&Si===0?gt.state.dropPosition===null&>.state.dropLevelOffset===null&>.state.dropTargetKey===null&>.state.dropContainerKey===null&>.state.dropTargetPos===null&>.state.dropAllowed===!1&>.state.dragOverNodeKey===null||gt.resetDragState():wt===gt.state.dropPosition&&Si===gt.state.dropLevelOffset&&wi===gt.state.dropTargetKey&&Vt===gt.state.dropContainerKey&&qi===gt.state.dropTargetPos&&lr===gt.state.dropAllowed&&rr===gt.state.dragOverNodeKey||gt.setState({dropPosition:wt,dropLevelOffset:Si,dropTargetKey:wi,dropContainerKey:Vt,dropTargetPos:qi,dropAllowed:lr,dragOverNodeKey:rr}),Tn==null||Tn({event:nn,node:(0,tt.F)(Ht)}))}}),(0,We.Z)((0,Ge.Z)(gt),"onNodeDragLeave",function(nn,Ht){gt.currentMouseOverDroppableNodeKey===Ht.eventKey&&!nn.currentTarget.contains(nn.relatedTarget)&&(gt.resetDragState(),gt.currentMouseOverDroppableNodeKey=null);var sn=gt.props.onDragLeave;sn==null||sn({event:nn,node:(0,tt.F)(Ht)})}),(0,We.Z)((0,Ge.Z)(gt),"onWindowDragEnd",function(nn){gt.onNodeDragEnd(nn,null,!0),window.removeEventListener("dragend",gt.onWindowDragEnd)}),(0,We.Z)((0,Ge.Z)(gt),"onNodeDragEnd",function(nn,Ht){var sn=gt.props.onDragEnd;gt.setState({dragOverNodeKey:null}),gt.cleanDragState(),sn==null||sn({event:nn,node:(0,tt.F)(Ht)}),gt.dragNodeProps=null,window.removeEventListener("dragend",gt.onWindowDragEnd)}),(0,We.Z)((0,Ge.Z)(gt),"onNodeDrop",function(nn,Ht){var sn,vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ln=gt.state,xn=Ln.dragChildrenKeys,_t=Ln.dropPosition,Vn=Ln.dropTargetKey,Kn=Ln.dropTargetPos,Tn=Ln.dropAllowed;if(Tn){var jn=gt.props.onDrop;if(gt.setState({dragOverNodeKey:null}),gt.cleanDragState(),Vn!==null){var Mi=(0,Me.Z)((0,Me.Z)({},(0,tt.H8)(Vn,gt.getTreeNodeRequiredProps())),{},{active:((sn=gt.getActiveItem())===null||sn===void 0?void 0:sn.key)===Vn,data:(0,An.Z)(gt.state.keyEntities,Vn).node}),Gn=xn.includes(Vn);(0,ne.ZP)(!Gn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var wt=(0,Pt.yx)(Kn),Si={event:nn,node:(0,tt.F)(Mi),dragNode:gt.dragNodeProps?(0,tt.F)(gt.dragNodeProps):null,dragNodesKeys:[gt.dragNodeProps.eventKey].concat(xn),dropToGap:_t!==0,dropPosition:_t+Number(wt[wt.length-1])};vn||jn==null||jn(Si),gt.dragNodeProps=null}}}),(0,We.Z)((0,Ge.Z)(gt),"cleanDragState",function(){var nn=gt.state.draggingNodeKey;nn!==null&>.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),gt.dragStartMousePosition=null,gt.currentMouseOverDroppableNodeKey=null}),(0,We.Z)((0,Ge.Z)(gt),"triggerExpandActionExpand",function(nn,Ht){var sn=gt.state,vn=sn.expandedKeys,Ln=sn.flattenNodes,xn=Ht.expanded,_t=Ht.key,Vn=Ht.isLeaf;if(!(Vn||nn.shiftKey||nn.metaKey||nn.ctrlKey)){var Kn=Ln.filter(function(jn){return jn.key===_t})[0],Tn=(0,tt.F)((0,Me.Z)((0,Me.Z)({},(0,tt.H8)(_t,gt.getTreeNodeRequiredProps())),{},{data:Kn.data}));gt.setExpandedKeys(xn?(0,Pt._5)(vn,_t):(0,Pt.L0)(vn,_t)),gt.onNodeExpand(nn,Tn)}}),(0,We.Z)((0,Ge.Z)(gt),"onNodeClick",function(nn,Ht){var sn=gt.props,vn=sn.onClick,Ln=sn.expandAction;Ln==="click"&>.triggerExpandActionExpand(nn,Ht),vn==null||vn(nn,Ht)}),(0,We.Z)((0,Ge.Z)(gt),"onNodeDoubleClick",function(nn,Ht){var sn=gt.props,vn=sn.onDoubleClick,Ln=sn.expandAction;Ln==="doubleClick"&>.triggerExpandActionExpand(nn,Ht),vn==null||vn(nn,Ht)}),(0,We.Z)((0,Ge.Z)(gt),"onNodeSelect",function(nn,Ht){var sn=gt.state.selectedKeys,vn=gt.state,Ln=vn.keyEntities,xn=vn.fieldNames,_t=gt.props,Vn=_t.onSelect,Kn=_t.multiple,Tn=Ht.selected,jn=Ht[xn.key],Mi=!Tn;Mi?Kn?sn=(0,Pt.L0)(sn,jn):sn=[jn]:sn=(0,Pt._5)(sn,jn);var Gn=sn.map(function(wt){var Si=(0,An.Z)(Ln,wt);return Si?Si.node:null}).filter(Boolean);gt.setUncontrolledState({selectedKeys:sn}),Vn==null||Vn(sn,{event:"select",selected:Mi,node:Ht,selectedNodes:Gn,nativeEvent:nn.nativeEvent})}),(0,We.Z)((0,Ge.Z)(gt),"onNodeCheck",function(nn,Ht,sn){var vn=gt.state,Ln=vn.keyEntities,xn=vn.checkedKeys,_t=vn.halfCheckedKeys,Vn=gt.props,Kn=Vn.checkStrictly,Tn=Vn.onCheck,jn=Ht.key,Mi,Gn={event:"check",node:Ht,checked:sn,nativeEvent:nn.nativeEvent};if(Kn){var wt=sn?(0,Pt.L0)(xn,jn):(0,Pt._5)(xn,jn),Si=(0,Pt._5)(_t,jn);Mi={checked:wt,halfChecked:Si},Gn.checkedNodes=wt.map(function(In){return(0,An.Z)(Ln,In)}).filter(Boolean).map(function(In){return In.node}),gt.setUncontrolledState({checkedKeys:wt})}else{var wi=(0,Wt.S)([].concat((0,Ie.Z)(xn),[jn]),!0,Ln),Vt=wi.checkedKeys,qi=wi.halfCheckedKeys;if(!sn){var lr=new Set(Vt);lr.delete(jn);var rr=(0,Wt.S)(Array.from(lr),{checked:!1,halfCheckedKeys:qi},Ln);Vt=rr.checkedKeys,qi=rr.halfCheckedKeys}Mi=Vt,Gn.checkedNodes=[],Gn.checkedNodesPositions=[],Gn.halfCheckedKeys=qi,Vt.forEach(function(In){var Br=(0,An.Z)(Ln,In);if(Br){var Tr=Br.node,Xi=Br.pos;Gn.checkedNodes.push(Tr),Gn.checkedNodesPositions.push({node:Tr,pos:Xi})}}),gt.setUncontrolledState({checkedKeys:Vt},!1,{halfCheckedKeys:qi})}Tn==null||Tn(Mi,Gn)}),(0,We.Z)((0,Ge.Z)(gt),"onNodeLoad",function(nn){var Ht,sn=nn.key,vn=gt.state.keyEntities,Ln=(0,An.Z)(vn,sn);if(!(Ln!=null&&(Ht=Ln.children)!==null&&Ht!==void 0&&Ht.length)){var xn=new Promise(function(_t,Vn){gt.setState(function(Kn){var Tn=Kn.loadedKeys,jn=Tn===void 0?[]:Tn,Mi=Kn.loadingKeys,Gn=Mi===void 0?[]:Mi,wt=gt.props,Si=wt.loadData,wi=wt.onLoad;if(!Si||jn.includes(sn)||Gn.includes(sn))return null;var Vt=Si(nn);return Vt.then(function(){var qi=gt.state.loadedKeys,lr=(0,Pt.L0)(qi,sn);wi==null||wi(lr,{event:"load",node:nn}),gt.setUncontrolledState({loadedKeys:lr}),gt.setState(function(rr){return{loadingKeys:(0,Pt._5)(rr.loadingKeys,sn)}}),_t()}).catch(function(qi){if(gt.setState(function(rr){return{loadingKeys:(0,Pt._5)(rr.loadingKeys,sn)}}),gt.loadingRetryTimes[sn]=(gt.loadingRetryTimes[sn]||0)+1,gt.loadingRetryTimes[sn]>=Nn){var lr=gt.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),gt.setUncontrolledState({loadedKeys:(0,Pt.L0)(lr,sn)}),_t()}Vn(qi)}),{loadingKeys:(0,Pt.L0)(Gn,sn)}})});return xn.catch(function(){}),xn}}),(0,We.Z)((0,Ge.Z)(gt),"onNodeMouseEnter",function(nn,Ht){var sn=gt.props.onMouseEnter;sn==null||sn({event:nn,node:Ht})}),(0,We.Z)((0,Ge.Z)(gt),"onNodeMouseLeave",function(nn,Ht){var sn=gt.props.onMouseLeave;sn==null||sn({event:nn,node:Ht})}),(0,We.Z)((0,Ge.Z)(gt),"onNodeContextMenu",function(nn,Ht){var sn=gt.props.onRightClick;sn&&(nn.preventDefault(),sn({event:nn,node:Ht}))}),(0,We.Z)((0,Ge.Z)(gt),"onFocus",function(){var nn=gt.props.onFocus;gt.setState({focused:!0});for(var Ht=arguments.length,sn=new Array(Ht),vn=0;vn<Ht;vn++)sn[vn]=arguments[vn];nn==null||nn.apply(void 0,sn)}),(0,We.Z)((0,Ge.Z)(gt),"onBlur",function(){var nn=gt.props.onBlur;gt.setState({focused:!1}),gt.onActiveChange(null);for(var Ht=arguments.length,sn=new Array(Ht),vn=0;vn<Ht;vn++)sn[vn]=arguments[vn];nn==null||nn.apply(void 0,sn)}),(0,We.Z)((0,Ge.Z)(gt),"getTreeNodeRequiredProps",function(){var nn=gt.state,Ht=nn.expandedKeys,sn=nn.selectedKeys,vn=nn.loadedKeys,Ln=nn.loadingKeys,xn=nn.checkedKeys,_t=nn.halfCheckedKeys,Vn=nn.dragOverNodeKey,Kn=nn.dropPosition,Tn=nn.keyEntities;return{expandedKeys:Ht||[],selectedKeys:sn||[],loadedKeys:vn||[],loadingKeys:Ln||[],checkedKeys:xn||[],halfCheckedKeys:_t||[],dragOverNodeKey:Vn,dropPosition:Kn,keyEntities:Tn}}),(0,We.Z)((0,Ge.Z)(gt),"setExpandedKeys",function(nn){var Ht=gt.state,sn=Ht.treeData,vn=Ht.fieldNames,Ln=(0,tt.oH)(sn,nn,vn);gt.setUncontrolledState({expandedKeys:nn,flattenNodes:Ln},!0)}),(0,We.Z)((0,Ge.Z)(gt),"onNodeExpand",function(nn,Ht){var sn=gt.state.expandedKeys,vn=gt.state,Ln=vn.listChanging,xn=vn.fieldNames,_t=gt.props,Vn=_t.onExpand,Kn=_t.loadData,Tn=Ht.expanded,jn=Ht[xn.key];if(!Ln){var Mi=sn.includes(jn),Gn=!Tn;if((0,ne.ZP)(Tn&&Mi||!Tn&&!Mi,"Expand state not sync with index check"),sn=Gn?(0,Pt.L0)(sn,jn):(0,Pt._5)(sn,jn),gt.setExpandedKeys(sn),Vn==null||Vn(sn,{node:Ht,expanded:Gn,nativeEvent:nn.nativeEvent}),Gn&&Kn){var wt=gt.onNodeLoad(Ht);wt&&wt.then(function(){var Si=(0,tt.oH)(gt.state.treeData,sn,xn);gt.setUncontrolledState({flattenNodes:Si})}).catch(function(){var Si=gt.state.expandedKeys,wi=(0,Pt._5)(Si,jn);gt.setExpandedKeys(wi)})}}}),(0,We.Z)((0,Ge.Z)(gt),"onListChangeStart",function(){gt.setUncontrolledState({listChanging:!0})}),(0,We.Z)((0,Ge.Z)(gt),"onListChangeEnd",function(){setTimeout(function(){gt.setUncontrolledState({listChanging:!1})})}),(0,We.Z)((0,Ge.Z)(gt),"onActiveChange",function(nn){var Ht=gt.state.activeKey,sn=gt.props,vn=sn.onActiveChange,Ln=sn.itemScrollOffset,xn=Ln===void 0?0:Ln;Ht!==nn&&(gt.setState({activeKey:nn}),nn!==null&>.scrollTo({key:nn,offset:xn}),vn==null||vn(nn))}),(0,We.Z)((0,Ge.Z)(gt),"getActiveItem",function(){var nn=gt.state,Ht=nn.activeKey,sn=nn.flattenNodes;return Ht===null?null:sn.find(function(vn){var Ln=vn.key;return Ln===Ht})||null}),(0,We.Z)((0,Ge.Z)(gt),"offsetActiveKey",function(nn){var Ht=gt.state,sn=Ht.flattenNodes,vn=Ht.activeKey,Ln=sn.findIndex(function(Vn){var Kn=Vn.key;return Kn===vn});Ln===-1&&nn<0&&(Ln=sn.length),Ln=(Ln+nn+sn.length)%sn.length;var xn=sn[Ln];if(xn){var _t=xn.key;gt.onActiveChange(_t)}else gt.onActiveChange(null)}),(0,We.Z)((0,Ge.Z)(gt),"onKeyDown",function(nn){var Ht=gt.state,sn=Ht.activeKey,vn=Ht.expandedKeys,Ln=Ht.checkedKeys,xn=Ht.fieldNames,_t=gt.props,Vn=_t.onKeyDown,Kn=_t.checkable,Tn=_t.selectable;switch(nn.which){case kt.Z.UP:{gt.offsetActiveKey(-1),nn.preventDefault();break}case kt.Z.DOWN:{gt.offsetActiveKey(1),nn.preventDefault();break}}var jn=gt.getActiveItem();if(jn&&jn.data){var Mi=gt.getTreeNodeRequiredProps(),Gn=jn.data.isLeaf===!1||!!(jn.data[xn.children]||[]).length,wt=(0,tt.F)((0,Me.Z)((0,Me.Z)({},(0,tt.H8)(sn,Mi)),{},{data:jn.data,active:!0}));switch(nn.which){case kt.Z.LEFT:{Gn&&vn.includes(sn)?gt.onNodeExpand({},wt):jn.parent&>.onActiveChange(jn.parent.key),nn.preventDefault();break}case kt.Z.RIGHT:{Gn&&!vn.includes(sn)?gt.onNodeExpand({},wt):jn.children&&jn.children.length&>.onActiveChange(jn.children[0].key),nn.preventDefault();break}case kt.Z.ENTER:case kt.Z.SPACE:{Kn&&!wt.disabled&&wt.checkable!==!1&&!wt.disableCheckbox?gt.onNodeCheck({},wt,!Ln.includes(sn)):!Kn&&Tn&&!wt.disabled&&wt.selectable!==!1&>.onNodeSelect({},wt);break}}}Vn==null||Vn(nn)}),(0,We.Z)((0,Ge.Z)(gt),"setUncontrolledState",function(nn){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!gt.destroyed){var vn=!1,Ln=!0,xn={};Object.keys(nn).forEach(function(_t){if(gt.props.hasOwnProperty(_t)){Ln=!1;return}vn=!0,xn[_t]=nn[_t]}),vn&&(!Ht||Ln)&>.setState((0,Me.Z)((0,Me.Z)({},xn),sn))}}),(0,We.Z)((0,Ge.Z)(gt),"scrollTo",function(nn){gt.listRef.current.scrollTo(nn)}),gt}return(0,Te.Z)(Ue,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var tn=this.props,Un=tn.activeKey,qn=tn.itemScrollOffset,nn=qn===void 0?0:qn;Un!==void 0&&Un!==this.state.activeKey&&(this.setState({activeKey:Un}),Un!==null&&this.scrollTo({key:Un,offset:nn}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var tn=this.state,Un=tn.focused,qn=tn.flattenNodes,nn=tn.keyEntities,Ht=tn.draggingNodeKey,sn=tn.activeKey,vn=tn.dropLevelOffset,Ln=tn.dropContainerKey,xn=tn.dropTargetKey,_t=tn.dropPosition,Vn=tn.dragOverNodeKey,Kn=tn.indent,Tn=this.props,jn=Tn.prefixCls,Mi=Tn.className,Gn=Tn.style,wt=Tn.showLine,Si=Tn.focusable,wi=Tn.tabIndex,Vt=wi===void 0?0:wi,qi=Tn.selectable,lr=Tn.showIcon,rr=Tn.icon,In=Tn.switcherIcon,Br=Tn.draggable,Tr=Tn.checkable,Xi=Tn.checkStrictly,Ji=Tn.disabled,Nr=Tn.motion,Be=Tn.loadData,Vi=Tn.filterTreeNode,bi=Tn.height,di=Tn.itemHeight,Ri=Tn.scrollWidth,Fi=Tn.virtual,Ti=Tn.titleRender,Lr=Tn.dropIndicatorRender,ln=Tn.onContextMenu,pn=Tn.onScroll,$t=Tn.direction,wn=Tn.rootClassName,Gi=Tn.rootStyle,Ci=(0,Fe.Z)(this.props,{aria:!0,data:!0}),Yi;Br&&((0,Pe.Z)(Br)==="object"?Yi=Br:typeof Br=="function"?Yi={nodeDraggable:Br}:Yi={});var mn={prefixCls:jn,selectable:qi,showIcon:lr,icon:rr,switcherIcon:In,draggable:Yi,draggingNodeKey:Ht,checkable:Tr,checkStrictly:Xi,disabled:Ji,keyEntities:nn,dropLevelOffset:vn,dropContainerKey:Ln,dropTargetKey:xn,dropPosition:_t,dragOverNodeKey:Vn,indent:Kn,direction:$t,dropIndicatorRender:Lr,loadData:Be,filterTreeNode:Vi,titleRender:Ti,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return te.createElement(he.k.Provider,{value:mn},te.createElement("div",{className:it()(jn,Mi,wn,(0,We.Z)((0,We.Z)((0,We.Z)({},"".concat(jn,"-show-line"),wt),"".concat(jn,"-focused"),Un),"".concat(jn,"-active-focused"),sn!==null)),style:Gi},te.createElement(Bt,(0,ce.Z)({ref:this.listRef,prefixCls:jn,style:Gn,data:qn,disabled:Ji,selectable:qi,checkable:!!Tr,motion:Nr,dragging:Ht!==null,height:bi,itemHeight:di,virtual:Fi,focusable:Si,focused:Un,tabIndex:Vt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ln,onScroll:pn,scrollWidth:Ri},this.getTreeNodeRequiredProps(),Ci))))}}],[{key:"getDerivedStateFromProps",value:function(tn,Un){var qn=Un.prevProps,nn={prevProps:tn};function Ht(Vt){return!qn&&tn.hasOwnProperty(Vt)||qn&&qn[Vt]!==tn[Vt]}var sn,vn=Un.fieldNames;if(Ht("fieldNames")&&(vn=(0,tt.w$)(tn.fieldNames),nn.fieldNames=vn),Ht("treeData")?sn=tn.treeData:Ht("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),sn=(0,tt.zn)(tn.children)),sn){nn.treeData=sn;var Ln=(0,tt.I8)(sn,{fieldNames:vn});nn.keyEntities=(0,Me.Z)((0,We.Z)({},dt,Qt),Ln.keyEntities)}var xn=nn.keyEntities||Un.keyEntities;if(Ht("expandedKeys")||qn&&Ht("autoExpandParent"))nn.expandedKeys=tn.autoExpandParent||!qn&&tn.defaultExpandParent?(0,Pt.r7)(tn.expandedKeys,xn):tn.expandedKeys;else if(!qn&&tn.defaultExpandAll){var _t=(0,Me.Z)({},xn);delete _t[dt];var Vn=[];Object.keys(_t).forEach(function(Vt){var qi=_t[Vt];qi.children&&qi.children.length&&Vn.push(qi.key)}),nn.expandedKeys=Vn}else!qn&&tn.defaultExpandedKeys&&(nn.expandedKeys=tn.autoExpandParent||tn.defaultExpandParent?(0,Pt.r7)(tn.defaultExpandedKeys,xn):tn.defaultExpandedKeys);if(nn.expandedKeys||delete nn.expandedKeys,sn||nn.expandedKeys){var Kn=(0,tt.oH)(sn||Un.treeData,nn.expandedKeys||Un.expandedKeys,vn);nn.flattenNodes=Kn}if(tn.selectable&&(Ht("selectedKeys")?nn.selectedKeys=(0,Pt.BT)(tn.selectedKeys,tn):!qn&&tn.defaultSelectedKeys&&(nn.selectedKeys=(0,Pt.BT)(tn.defaultSelectedKeys,tn))),tn.checkable){var Tn;if(Ht("checkedKeys")?Tn=(0,Pt.E6)(tn.checkedKeys)||{}:!qn&&tn.defaultCheckedKeys?Tn=(0,Pt.E6)(tn.defaultCheckedKeys)||{}:sn&&(Tn=(0,Pt.E6)(tn.checkedKeys)||{checkedKeys:Un.checkedKeys,halfCheckedKeys:Un.halfCheckedKeys}),Tn){var jn=Tn,Mi=jn.checkedKeys,Gn=Mi===void 0?[]:Mi,wt=jn.halfCheckedKeys,Si=wt===void 0?[]:wt;if(!tn.checkStrictly){var wi=(0,Wt.S)(Gn,!0,xn);Gn=wi.checkedKeys,Si=wi.halfCheckedKeys}nn.checkedKeys=Gn,nn.halfCheckedKeys=Si}}return Ht("loadedKeys")&&(nn.loadedKeys=tn.loadedKeys),nn}}]),Ue}(te.Component);(0,We.Z)($e,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ge,allowDrop:function(){return!0},expandAction:!1}),(0,We.Z)($e,"TreeNode",Je.Z);var Oe=$e,ke=Oe},82661:function(Re,Ee,le){"use strict";le.d(Ee,{BT:function(){return te},E6:function(){return ge},L0:function(){return We},OM:function(){return ne},_5:function(){return Qe},r7:function(){return ye},wA:function(){return it},yx:function(){return mt}});var ce=le(15142),Pe=le(26420),Me=le(48736),Ie=le(59301),je=le(639),Te=le(65065),Ge=le(34061),st=null;function Qe(be,Ae){if(!be)return[];var Le=be.slice(),Ve=Le.indexOf(Ae);return Ve>=0&&Le.splice(Ve,1),Le}function We(be,Ae){var Le=(be||[]).slice();return Le.indexOf(Ae)===-1&&Le.push(Ae),Le}function mt(be){return be.split("-")}function it(be,Ae){var Le=[],Ve=(0,Te.Z)(Ae,be);function et(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Je.forEach(function(rt){var at=rt.key,tt=rt.children;Le.push(at),et(tt)})}return et(Ve.children),Le}function kt(be){if(be.parent){var Ae=mt(be.pos);return Number(Ae[Ae.length-1])===be.parent.children.length-1}return!1}function Fe(be){var Ae=mt(be.pos);return Number(Ae[Ae.length-1])===0}function ne(be,Ae,Le,Ve,et,Je,rt,at,tt,Et){var Lt,Ut=be.clientX,on=be.clientY,an=be.target.getBoundingClientRect(),Kt=an.top,fn=an.height,bt=(Et==="rtl"?-1:1)*(((et==null?void 0:et.x)||0)-Ut),dt=(bt-12)/Ve,ct=tt.filter(function(ke){var Ke;return(Ke=at[ke])===null||Ke===void 0||(Ke=Ke.children)===null||Ke===void 0?void 0:Ke.length}),Qt=(0,Te.Z)(at,Le.eventKey);if(on<Kt+fn/2){var un=rt.findIndex(function(ke){return ke.key===Qt.key}),Nt=un<=0?0:un-1,hn=rt[Nt].key;Qt=(0,Te.Z)(at,hn)}var cn=Qt.key,Qn=Qt,Bt=Qt.key,Pt=0,Wt=0;if(!ct.includes(cn))for(var An=0;An<dt&&kt(Qt);An+=1)Qt=Qt.parent,Wt+=1;var Nn=Ae.data,$e=Qt.node,Oe=!0;return Fe(Qt)&&Qt.level===0&&on<Kt+fn/2&&Je({dragNode:Nn,dropNode:$e,dropPosition:-1})&&Qt.key===Le.eventKey?Pt=-1:(Qn.children||[]).length&&ct.includes(Bt)?Je({dragNode:Nn,dropNode:$e,dropPosition:0})?Pt=0:Oe=!1:Wt===0?dt>-1.5?Je({dragNode:Nn,dropNode:$e,dropPosition:1})?Pt=1:Oe=!1:Je({dragNode:Nn,dropNode:$e,dropPosition:0})?Pt=0:Je({dragNode:Nn,dropNode:$e,dropPosition:1})?Pt=1:Oe=!1:Je({dragNode:Nn,dropNode:$e,dropPosition:1})?Pt=1:Oe=!1,{dropPosition:Pt,dropLevelOffset:Wt,dropTargetKey:Qt.key,dropTargetPos:Qt.pos,dragOverNodeKey:Bt,dropContainerKey:Pt===0?null:((Lt=Qt.parent)===null||Lt===void 0?void 0:Lt.key)||null,dropAllowed:Oe}}function te(be,Ae){if(be){var Le=Ae.multiple;return Le?be.slice():be.length?[be[0]]:be}}var he=function(Ae){return Ae};function se(be,Ae){if(!be)return[];var Le=Ae||{},Ve=Le.processProps,et=Ve===void 0?he:Ve,Je=Array.isArray(be)?be:[be];return Je.map(function(rt){var at=rt.children,tt=_objectWithoutProperties(rt,st),Et=se(at,Ae);return React.createElement(TreeNode,_extends({key:tt.key},et(tt)),Et)})}function ge(be){if(!be)return null;var Ae;if(Array.isArray(be))Ae={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Pe.Z)(be)==="object")Ae={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,Me.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function ye(be,Ae){var Le=new Set;function Ve(et){if(!Le.has(et)){var Je=(0,Te.Z)(Ae,et);if(Je){Le.add(et);var rt=Je.parent,at=Je.node;at.disabled||rt&&Ve(rt.key)}}}return(be||[]).forEach(function(et){Ve(et)}),(0,ce.Z)(Le)}},34643:function(Re,Ee,le){"use strict";le.d(Ee,{S:function(){return Ge}});var ce=le(48736),Pe=le(65065);function Me(st,Qe){var We=new Set;return st.forEach(function(mt){Qe.has(mt)||We.add(mt)}),We}function Ie(st){var Qe=st||{},We=Qe.disabled,mt=Qe.disableCheckbox,it=Qe.checkable;return!!(We||mt)||it===!1}function je(st,Qe,We,mt){for(var it=new Set(st),kt=new Set,Fe=0;Fe<=We;Fe+=1){var ne=Qe.get(Fe)||new Set;ne.forEach(function(ge){var ye=ge.key,be=ge.node,Ae=ge.children,Le=Ae===void 0?[]:Ae;it.has(ye)&&!mt(be)&&Le.filter(function(Ve){return!mt(Ve.node)}).forEach(function(Ve){it.add(Ve.key)})})}for(var te=new Set,he=We;he>=0;he-=1){var se=Qe.get(he)||new Set;se.forEach(function(ge){var ye=ge.parent,be=ge.node;if(!(mt(be)||!ge.parent||te.has(ge.parent.key))){if(mt(ge.parent.node)){te.add(ye.key);return}var Ae=!0,Le=!1;(ye.children||[]).filter(function(Ve){return!mt(Ve.node)}).forEach(function(Ve){var et=Ve.key,Je=it.has(et);Ae&&!Je&&(Ae=!1),!Le&&(Je||kt.has(et))&&(Le=!0)}),Ae&&it.add(ye.key),Le&&kt.add(ye.key),te.add(ye.key)}})}return{checkedKeys:Array.from(it),halfCheckedKeys:Array.from(Me(kt,it))}}function Te(st,Qe,We,mt,it){for(var kt=new Set(st),Fe=new Set(Qe),ne=0;ne<=mt;ne+=1){var te=We.get(ne)||new Set;te.forEach(function(ye){var be=ye.key,Ae=ye.node,Le=ye.children,Ve=Le===void 0?[]:Le;!kt.has(be)&&!Fe.has(be)&&!it(Ae)&&Ve.filter(function(et){return!it(et.node)}).forEach(function(et){kt.delete(et.key)})})}Fe=new Set;for(var he=new Set,se=mt;se>=0;se-=1){var ge=We.get(se)||new Set;ge.forEach(function(ye){var be=ye.parent,Ae=ye.node;if(!(it(Ae)||!ye.parent||he.has(ye.parent.key))){if(it(ye.parent.node)){he.add(be.key);return}var Le=!0,Ve=!1;(be.children||[]).filter(function(et){return!it(et.node)}).forEach(function(et){var Je=et.key,rt=kt.has(Je);Le&&!rt&&(Le=!1),!Ve&&(rt||Fe.has(Je))&&(Ve=!0)}),Le||kt.delete(be.key),Ve&&Fe.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(kt),halfCheckedKeys:Array.from(Me(Fe,kt))}}function Ge(st,Qe,We,mt){var it=[],kt;mt?kt=mt:kt=Ie;var Fe=new Set(st.filter(function(se){var ge=!!(0,Pe.Z)(We,se);return ge||it.push(se),ge})),ne=new Map,te=0;Object.keys(We).forEach(function(se){var ge=We[se],ye=ge.level,be=ne.get(ye);be||(be=new Set,ne.set(ye,be)),be.add(ge),te=Math.max(te,ye)}),(0,ce.ZP)(!it.length,"Tree missing follow keys: ".concat(it.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var he;return Qe===!0?he=je(Fe,ne,te,kt):he=Te(Fe,Qe.halfCheckedKeys,ne,te,kt),he}},65065:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return ce}});function ce(Pe,Me){return Pe[Me]}},34061:function(Re,Ee,le){"use strict";le.d(Ee,{F:function(){return ye},H8:function(){return ge},I8:function(){return se},km:function(){return it},oH:function(){return te},w$:function(){return kt},zn:function(){return ne}});var ce=le(26420),Pe=le(15142),Me=le(98506),Ie=le(33346),je=le(11592),Te=le(2738),Ge=le(48736),st=le(65065),Qe=["children"];function We(be,Ae){return"".concat(be,"-").concat(Ae)}function mt(be){return be&&be.type&&be.type.isTreeNode}function it(be,Ae){return be!=null?be:Ae}function kt(be){var Ae=be||{},Le=Ae.title,Ve=Ae._title,et=Ae.key,Je=Ae.children,rt=Le||"title";return{title:rt,_title:Ve||[rt],key:et||"key",children:Je||"children"}}function Fe(be,Ae){var Le=new Map;function Ve(et){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(et||[]).forEach(function(rt){var at=rt[Ae.key],tt=rt[Ae.children];warning(at!=null,"Tree node must have a certain key: [".concat(Je).concat(at,"]"));var Et=String(at);warning(!Le.has(Et)||at===null||at===void 0,"Same 'key' exist in the Tree: ".concat(Et)),Le.set(Et,!0),Ve(tt,"".concat(Je).concat(Et," > "))})}Ve(be)}function ne(be){function Ae(Le){var Ve=(0,je.Z)(Le);return Ve.map(function(et){if(!mt(et))return(0,Ge.ZP)(!et,"Tree/TreeNode can only accept TreeNode as children."),null;var Je=et.key,rt=et.props,at=rt.children,tt=(0,Ie.Z)(rt,Qe),Et=(0,Me.Z)({key:Je},tt),Lt=Ae(at);return Lt.length&&(Et.children=Lt),Et}).filter(function(et){return et})}return Ae(be)}function te(be,Ae,Le){var Ve=kt(Le),et=Ve._title,Je=Ve.key,rt=Ve.children,at=new Set(Ae===!0?[]:Ae),tt=[];function Et(Lt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Lt.map(function(on,an){for(var Kt=We(Ut?Ut.pos:"0",an),fn=it(on[Je],Kt),bt,dt=0;dt<et.length;dt+=1){var ct=et[dt];if(on[ct]!==void 0){bt=on[ct];break}}var Qt=Object.assign((0,Te.Z)(on,[].concat((0,Pe.Z)(et),[Je,rt])),{title:bt,key:fn,parent:Ut,pos:Kt,children:null,data:on,isStart:[].concat((0,Pe.Z)(Ut?Ut.isStart:[]),[an===0]),isEnd:[].concat((0,Pe.Z)(Ut?Ut.isEnd:[]),[an===Lt.length-1])});return tt.push(Qt),Ae===!0||at.has(fn)?Qt.children=Et(on[rt]||[],Qt):Qt.children=[],Qt})}return Et(be),tt}function he(be,Ae,Le){var Ve={};(0,ce.Z)(Le)==="object"?Ve=Le:Ve={externalGetKey:Le},Ve=Ve||{};var et=Ve,Je=et.childrenPropName,rt=et.externalGetKey,at=et.fieldNames,tt=kt(at),Et=tt.key,Lt=tt.children,Ut=Je||Lt,on;rt?typeof rt=="string"?on=function(fn){return fn[rt]}:typeof rt=="function"&&(on=function(fn){return rt(fn)}):on=function(fn,bt){return it(fn[Et],bt)};function an(Kt,fn,bt,dt){var ct=Kt?Kt[Ut]:be,Qt=Kt?We(bt.pos,fn):"0",un=Kt?[].concat((0,Pe.Z)(dt),[Kt]):[];if(Kt){var Nt=on(Kt,Qt),hn={node:Kt,index:fn,pos:Qt,key:Nt,parentPos:bt.node?bt.pos:null,level:bt.level+1,nodes:un};Ae(hn)}ct&&ct.forEach(function(cn,Qn){an(cn,Qn,{node:Kt,pos:Qt,level:bt?bt.level+1:-1},un)})}an(null)}function se(be){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Le=Ae.initWrapper,Ve=Ae.processEntity,et=Ae.onProcessFinished,Je=Ae.externalGetKey,rt=Ae.childrenPropName,at=Ae.fieldNames,tt=arguments.length>2?arguments[2]:void 0,Et=Je||tt,Lt={},Ut={},on={posEntities:Lt,keyEntities:Ut};return Le&&(on=Le(on)||on),he(be,function(an){var Kt=an.node,fn=an.index,bt=an.pos,dt=an.key,ct=an.parentPos,Qt=an.level,un=an.nodes,Nt={node:Kt,nodes:un,index:fn,key:dt,pos:bt,level:Qt},hn=it(dt,bt);Lt[bt]=Nt,Ut[hn]=Nt,Nt.parent=Lt[ct],Nt.parent&&(Nt.parent.children=Nt.parent.children||[],Nt.parent.children.push(Nt)),Ve&&Ve(Nt,on)},{externalGetKey:Et,childrenPropName:rt,fieldNames:at}),et&&et(on),on}function ge(be,Ae){var Le=Ae.expandedKeys,Ve=Ae.selectedKeys,et=Ae.loadedKeys,Je=Ae.loadingKeys,rt=Ae.checkedKeys,at=Ae.halfCheckedKeys,tt=Ae.dragOverNodeKey,Et=Ae.dropPosition,Lt=Ae.keyEntities,Ut=(0,st.Z)(Lt,be),on={eventKey:be,expanded:Le.indexOf(be)!==-1,selected:Ve.indexOf(be)!==-1,loaded:et.indexOf(be)!==-1,loading:Je.indexOf(be)!==-1,checked:rt.indexOf(be)!==-1,halfChecked:at.indexOf(be)!==-1,pos:String(Ut?Ut.pos:""),dragOver:tt===be&&Et===0,dragOverGapTop:tt===be&&Et===-1,dragOverGapBottom:tt===be&&Et===1};return on}function ye(be){var Ae=be.data,Le=be.expanded,Ve=be.selected,et=be.checked,Je=be.loaded,rt=be.loading,at=be.halfChecked,tt=be.dragOver,Et=be.dragOverGapTop,Lt=be.dragOverGapBottom,Ut=be.pos,on=be.active,an=be.eventKey,Kt=(0,Me.Z)((0,Me.Z)({},Ae),{},{expanded:Le,selected:Ve,checked:et,loaded:Je,loading:rt,halfChecked:at,dragOver:tt,dragOverGapTop:Et,dragOverGapBottom:Lt,pos:Ut,active:on,key:an});return"props"in Kt||Object.defineProperty(Kt,"props",{get:function(){return(0,Ge.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Kt}},90472:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return an}});var ce=le(67711),Pe=le(42573),Me=le(58698),Ie=le(62437),je=le(74700),Te=le(45080),Ge=le(52873),st=le(59301),Qe=le(98506),We=le(33346),mt=le(26420),it=le(77910),kt=le(51343),Fe=le(15142),ne=le(92310),te=le.n(ne),he=le(26112),se=le(48736),ge=function(Kt,fn){if(Kt&&fn){var bt=Array.isArray(fn)?fn:fn.split(","),dt=Kt.name||"",ct=Kt.type||"",Qt=ct.replace(/\/.*$/,"");return bt.some(function(un){var Nt=un.trim();if(/^\*(\/\*)?$/.test(un))return!0;if(Nt.charAt(0)==="."){var hn=dt.toLowerCase(),cn=Nt.toLowerCase(),Qn=[cn];return(cn===".jpg"||cn===".jpeg")&&(Qn=[".jpg",".jpeg"]),Qn.some(function(Bt){return hn.endsWith(Bt)})}return/\/\*$/.test(Nt)?Qt===Nt.replace(/\/.*$/,""):ct===Nt?!0:/^\w+$/.test(Nt)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Nt,"'.Skip for check.")),!0):!1})}return!0};function ye(Kt,fn){var bt="cannot ".concat(Kt.method," ").concat(Kt.action," ").concat(fn.status,"'"),dt=new Error(bt);return dt.status=fn.status,dt.method=Kt.method,dt.url=Kt.action,dt}function be(Kt){var fn=Kt.responseText||Kt.response;if(!fn)return fn;try{return JSON.parse(fn)}catch(bt){return fn}}function Ae(Kt){var fn=new XMLHttpRequest;Kt.onProgress&&fn.upload&&(fn.upload.onprogress=function(Qt){Qt.total>0&&(Qt.percent=Qt.loaded/Qt.total*100),Kt.onProgress(Qt)});var bt=new FormData;Kt.data&&Object.keys(Kt.data).forEach(function(ct){var Qt=Kt.data[ct];if(Array.isArray(Qt)){Qt.forEach(function(un){bt.append("".concat(ct,"[]"),un)});return}bt.append(ct,Qt)}),Kt.file instanceof Blob?bt.append(Kt.filename,Kt.file,Kt.file.name):bt.append(Kt.filename,Kt.file),fn.onerror=function(Qt){Kt.onError(Qt)},fn.onload=function(){return fn.status<200||fn.status>=300?Kt.onError(ye(Kt,fn),be(fn)):Kt.onSuccess(be(fn),fn)},fn.open(Kt.method,Kt.action,!0),Kt.withCredentials&&"withCredentials"in fn&&(fn.withCredentials=!0);var dt=Kt.headers||{};return dt["X-Requested-With"]!==null&&fn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(dt).forEach(function(ct){dt[ct]!==null&&fn.setRequestHeader(ct,dt[ct])}),fn.send(bt),{abort:function(){fn.abort()}}}var Le=function(){var Kt=(0,kt.Z)((0,it.Z)().mark(function fn(bt,dt){var ct,Qt,un,Nt,hn,cn,Qn,Bt;return(0,it.Z)().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:cn=function(){return cn=(0,kt.Z)((0,it.Z)().mark(function Nn($e){return(0,it.Z)().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.abrupt("return",new Promise(function(Ke){$e.file(function(lt){dt(lt)?($e.fullPath&&!lt.webkitRelativePath&&(Object.defineProperties(lt,{webkitRelativePath:{writable:!0}}),lt.webkitRelativePath=$e.fullPath.replace(/^\//,""),Object.defineProperties(lt,{webkitRelativePath:{writable:!1}})),Ke(lt)):Ke(null)})}));case 1:case"end":return ke.stop()}},Nn)})),cn.apply(this,arguments)},hn=function(Nn){return cn.apply(this,arguments)},Nt=function(){return Nt=(0,kt.Z)((0,it.Z)().mark(function Nn($e){var Oe,ke,Ke,lt,Ue;return(0,it.Z)().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:Oe=$e.createReader(),ke=[];case 2:return tn.next=5,new Promise(function(Un){Oe.readEntries(Un,function(){return Un([])})});case 5:if(Ke=tn.sent,lt=Ke.length,lt){tn.next=9;break}return tn.abrupt("break",12);case 9:for(Ue=0;Ue<lt;Ue++)ke.push(Ke[Ue]);tn.next=2;break;case 12:return tn.abrupt("return",ke);case 13:case"end":return tn.stop()}},Nn)})),Nt.apply(this,arguments)},un=function(Nn){return Nt.apply(this,arguments)},ct=[],Qt=[],bt.forEach(function(An){return Qt.push(An.webkitGetAsEntry())}),Qn=function(){var An=(0,kt.Z)((0,it.Z)().mark(function Nn($e,Oe){var ke,Ke;return(0,it.Z)().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if($e){Ue.next=2;break}return Ue.abrupt("return");case 2:if($e.path=Oe||"",!$e.isFile){Ue.next=10;break}return Ue.next=6,hn($e);case 6:ke=Ue.sent,ke&&ct.push(ke),Ue.next=15;break;case 10:if(!$e.isDirectory){Ue.next=15;break}return Ue.next=13,un($e);case 13:Ke=Ue.sent,Qt.push.apply(Qt,(0,Fe.Z)(Ke));case 15:case"end":return Ue.stop()}},Nn)}));return function($e,Oe){return An.apply(this,arguments)}}(),Bt=0;case 9:if(!(Bt<Qt.length)){Wt.next=15;break}return Wt.next=12,Qn(Qt[Bt]);case 12:Bt++,Wt.next=9;break;case 15:return Wt.abrupt("return",ct);case 16:case"end":return Wt.stop()}},fn)}));return function(bt,dt){return Kt.apply(this,arguments)}}(),Ve=Le,et=+new Date,Je=0;function rt(){return"rc-upload-".concat(et,"-").concat(++Je)}var at=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],tt=function(Kt){(0,je.Z)(bt,Kt);var fn=(0,Te.Z)(bt);function bt(){var dt;(0,Pe.Z)(this,bt);for(var ct=arguments.length,Qt=new Array(ct),un=0;un<ct;un++)Qt[un]=arguments[un];return dt=fn.call.apply(fn,[this].concat(Qt)),(0,Ge.Z)((0,Ie.Z)(dt),"state",{uid:rt()}),(0,Ge.Z)((0,Ie.Z)(dt),"reqs",{}),(0,Ge.Z)((0,Ie.Z)(dt),"fileInput",void 0),(0,Ge.Z)((0,Ie.Z)(dt),"_isMounted",void 0),(0,Ge.Z)((0,Ie.Z)(dt),"onChange",function(Nt){var hn=dt.props,cn=hn.accept,Qn=hn.directory,Bt=Nt.target.files,Pt=(0,Fe.Z)(Bt).filter(function(Wt){return!Qn||ge(Wt,cn)});dt.uploadFiles(Pt),dt.reset()}),(0,Ge.Z)((0,Ie.Z)(dt),"onClick",function(Nt){var hn=dt.fileInput;if(hn){var cn=Nt.target,Qn=dt.props.onClick;if(cn&&cn.tagName==="BUTTON"){var Bt=hn.parentNode;Bt.focus(),cn.blur()}hn.click(),Qn&&Qn(Nt)}}),(0,Ge.Z)((0,Ie.Z)(dt),"onKeyDown",function(Nt){Nt.key==="Enter"&&dt.onClick(Nt)}),(0,Ge.Z)((0,Ie.Z)(dt),"onFileDrop",function(){var Nt=(0,kt.Z)((0,it.Z)().mark(function hn(cn){var Qn,Bt,Pt;return(0,it.Z)().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(Qn=dt.props.multiple,cn.preventDefault(),cn.type!=="dragover"){An.next=4;break}return An.abrupt("return");case 4:if(!dt.props.directory){An.next=11;break}return An.next=7,Ve(Array.prototype.slice.call(cn.dataTransfer.items),function(Nn){return ge(Nn,dt.props.accept)});case 7:Bt=An.sent,dt.uploadFiles(Bt),An.next=14;break;case 11:Pt=(0,Fe.Z)(cn.dataTransfer.files).filter(function(Nn){return ge(Nn,dt.props.accept)}),Qn===!1&&(Pt=Pt.slice(0,1)),dt.uploadFiles(Pt);case 14:case"end":return An.stop()}},hn)}));return function(hn){return Nt.apply(this,arguments)}}()),(0,Ge.Z)((0,Ie.Z)(dt),"uploadFiles",function(Nt){var hn=(0,Fe.Z)(Nt),cn=hn.map(function(Qn){return Qn.uid=rt(),dt.processFile(Qn,hn)});Promise.all(cn).then(function(Qn){var Bt=dt.props.onBatchStart;Bt==null||Bt(Qn.map(function(Pt){var Wt=Pt.origin,An=Pt.parsedFile;return{file:Wt,parsedFile:An}})),Qn.filter(function(Pt){return Pt.parsedFile!==null}).forEach(function(Pt){dt.post(Pt)})})}),(0,Ge.Z)((0,Ie.Z)(dt),"processFile",function(){var Nt=(0,kt.Z)((0,it.Z)().mark(function hn(cn,Qn){var Bt,Pt,Wt,An,Nn,$e,Oe,ke,Ke;return(0,it.Z)().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Bt=dt.props.beforeUpload,Pt=cn,!Bt){Ue.next=14;break}return Ue.prev=3,Ue.next=6,Bt(cn,Qn);case 6:Pt=Ue.sent,Ue.next=12;break;case 9:Ue.prev=9,Ue.t0=Ue.catch(3),Pt=!1;case 12:if(Pt!==!1){Ue.next=14;break}return Ue.abrupt("return",{origin:cn,parsedFile:null,action:null,data:null});case 14:if(Wt=dt.props.action,typeof Wt!="function"){Ue.next=21;break}return Ue.next=18,Wt(cn);case 18:An=Ue.sent,Ue.next=22;break;case 21:An=Wt;case 22:if(Nn=dt.props.data,typeof Nn!="function"){Ue.next=29;break}return Ue.next=26,Nn(cn);case 26:$e=Ue.sent,Ue.next=30;break;case 29:$e=Nn;case 30:return Oe=((0,mt.Z)(Pt)==="object"||typeof Pt=="string")&&Pt?Pt:cn,Oe instanceof File?ke=Oe:ke=new File([Oe],cn.name,{type:cn.type}),Ke=ke,Ke.uid=cn.uid,Ue.abrupt("return",{origin:cn,data:$e,parsedFile:Ke,action:An});case 35:case"end":return Ue.stop()}},hn,null,[[3,9]])}));return function(hn,cn){return Nt.apply(this,arguments)}}()),(0,Ge.Z)((0,Ie.Z)(dt),"saveFileInput",function(Nt){dt.fileInput=Nt}),dt}return(0,Me.Z)(bt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ct){var Qt=this,un=ct.data,Nt=ct.origin,hn=ct.action,cn=ct.parsedFile;if(this._isMounted){var Qn=this.props,Bt=Qn.onStart,Pt=Qn.customRequest,Wt=Qn.name,An=Qn.headers,Nn=Qn.withCredentials,$e=Qn.method,Oe=Nt.uid,ke=Pt||Ae,Ke={action:hn,filename:Wt,data:un,file:cn,headers:An,withCredentials:Nn,method:$e||"post",onProgress:function(Ue){var gt=Qt.props.onProgress;gt==null||gt(Ue,cn)},onSuccess:function(Ue,gt){var tn=Qt.props.onSuccess;tn==null||tn(Ue,cn,gt),delete Qt.reqs[Oe]},onError:function(Ue,gt){var tn=Qt.props.onError;tn==null||tn(Ue,gt,cn),delete Qt.reqs[Oe]}};Bt(Nt),this.reqs[Oe]=ke(Ke)}}},{key:"reset",value:function(){this.setState({uid:rt()})}},{key:"abort",value:function(ct){var Qt=this.reqs;if(ct){var un=ct.uid?ct.uid:ct;Qt[un]&&Qt[un].abort&&Qt[un].abort(),delete Qt[un]}else Object.keys(Qt).forEach(function(Nt){Qt[Nt]&&Qt[Nt].abort&&Qt[Nt].abort(),delete Qt[Nt]})}},{key:"render",value:function(){var ct=this.props,Qt=ct.component,un=ct.prefixCls,Nt=ct.className,hn=ct.classNames,cn=hn===void 0?{}:hn,Qn=ct.disabled,Bt=ct.id,Pt=ct.name,Wt=ct.style,An=ct.styles,Nn=An===void 0?{}:An,$e=ct.multiple,Oe=ct.accept,ke=ct.capture,Ke=ct.children,lt=ct.directory,Ue=ct.openFileDialogOnClick,gt=ct.onMouseEnter,tn=ct.onMouseLeave,Un=ct.hasControlInside,qn=(0,We.Z)(ct,at),nn=te()((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},un,!0),"".concat(un,"-disabled"),Qn),Nt,Nt)),Ht=lt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},sn=Qn?{}:{onClick:Ue?this.onClick:function(){},onKeyDown:Ue?this.onKeyDown:function(){},onMouseEnter:gt,onMouseLeave:tn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Un?void 0:"0"};return st.createElement(Qt,(0,ce.Z)({},sn,{className:nn,role:Un?void 0:"button",style:Wt}),st.createElement("input",(0,ce.Z)({},(0,he.Z)(qn,{aria:!0,data:!0}),{id:Bt,name:Pt,disabled:Qn,type:"file",ref:this.saveFileInput,onClick:function(Ln){return Ln.stopPropagation()},key:this.state.uid,style:(0,Qe.Z)({display:"none"},Nn.input),className:cn.input,accept:Oe},Ht,{multiple:$e,onChange:this.onChange},ke!=null?{capture:ke}:{})),Ke)}}]),bt}(st.Component),Et=tt;function Lt(){}var Ut=function(Kt){(0,je.Z)(bt,Kt);var fn=(0,Te.Z)(bt);function bt(){var dt;(0,Pe.Z)(this,bt);for(var ct=arguments.length,Qt=new Array(ct),un=0;un<ct;un++)Qt[un]=arguments[un];return dt=fn.call.apply(fn,[this].concat(Qt)),(0,Ge.Z)((0,Ie.Z)(dt),"uploader",void 0),(0,Ge.Z)((0,Ie.Z)(dt),"saveUploader",function(Nt){dt.uploader=Nt}),dt}return(0,Me.Z)(bt,[{key:"abort",value:function(ct){this.uploader.abort(ct)}},{key:"render",value:function(){return st.createElement(Et,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),bt}(st.Component);(0,Ge.Z)(Ut,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Lt,onError:Lt,onSuccess:Lt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var on=Ut,an=on},8224:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Pe}});var ce=le(4676);function Pe(Me,Ie,je,Te){var Ge=ce.unstable_batchedUpdates?function(Qe){ce.unstable_batchedUpdates(je,Qe)}:je;return Me!=null&&Me.addEventListener&&Me.addEventListener(Ie,Ge,Te),{remove:function(){Me!=null&&Me.removeEventListener&&Me.removeEventListener(Ie,Ge,Te)}}}},24514:function(Re,Ee,le){"use strict";le.d(Ee,{G:function(){return Ie}});var ce=le(47273),Pe=function(Te){if((0,ce.Z)()&&window.document.documentElement){var Ge=Array.isArray(Te)?Te:[Te],st=window.document.documentElement;return Ge.some(function(Qe){return Qe in st.style})}return!1},Me=function(Te,Ge){if(!Pe(Te))return!1;var st=document.createElement("div"),Qe=st.style[Te];return st.style[Te]=Ge,st.style[Te]!==Qe};function Ie(je,Te){return!Array.isArray(je)&&Te!==void 0?Me(je,Te):Pe(je)}},6790:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return Nn}});var ce=le(67711),Pe=le(26420),Me=le(98506),Ie=le(52873),je=le(16886),Te=le(33346),Ge=le(92310),st=le.n(Ge),Qe=le(29301),We=le(70425),mt=le(34280),it=le(59301),kt=le(4676),Fe=it.forwardRef(function($e,Oe){var ke=$e.height,Ke=$e.offsetY,lt=$e.offsetX,Ue=$e.children,gt=$e.prefixCls,tn=$e.onInnerResize,Un=$e.innerProps,qn=$e.rtl,nn=$e.extra,Ht={},sn={display:"flex",flexDirection:"column"};return Ke!==void 0&&(Ht={height:ke,position:"relative",overflow:"hidden"},sn=(0,Me.Z)((0,Me.Z)({},sn),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(Ke,"px)")},qn?"marginRight":"marginLeft",-lt),"position","absolute"),"left",0),"right",0),"top",0))),it.createElement("div",{style:Ht},it.createElement(Qe.Z,{onResize:function(Ln){var xn=Ln.offsetHeight;xn&&tn&&tn()}},it.createElement("div",(0,ce.Z)({style:sn,className:st()((0,Ie.Z)({},"".concat(gt,"-holder-inner"),gt)),ref:Oe},Un),Ue,nn)))});Fe.displayName="Filler";var ne=Fe;function te($e){var Oe=$e.children,ke=$e.setRef,Ke=it.useCallback(function(lt){ke(lt)},[]);return it.cloneElement(Oe,{ref:Ke})}function he($e,Oe,ke,Ke,lt,Ue,gt,tn){var Un=tn.getKey;return $e.slice(Oe,ke+1).map(function(qn,nn){var Ht=Oe+nn,sn=gt(qn,Ht,{style:{width:Ke},offsetX:lt}),vn=Un(qn);return it.createElement(te,{key:vn,setRef:function(xn){return Ue(qn,xn)}},sn)})}function se($e,Oe,ke,Ke){var lt=ke-$e,Ue=Oe-ke,gt=Math.min(lt,Ue)*2;if(Ke<=gt){var tn=Math.floor(Ke/2);return Ke%2?ke+tn+1:ke-tn}return lt>Ue?ke-(Ke-Ue):ke+(Ke-lt)}function ge($e,Oe,ke){var Ke=$e.length,lt=Oe.length,Ue,gt;if(Ke===0&<===0)return null;Ke<lt?(Ue=$e,gt=Oe):(Ue=Oe,gt=$e);var tn={__EMPTY_ITEM__:!0};function Un(Ln){return Ln!==void 0?ke(Ln):tn}for(var qn=null,nn=Math.abs(Ke-lt)!==1,Ht=0;Ht<gt.length;Ht+=1){var sn=Un(Ue[Ht]),vn=Un(gt[Ht]);if(sn!==vn){qn=Ht,nn=nn||sn!==Un(gt[Ht+1]);break}}return qn===null?null:{index:qn,multiple:nn}}function ye($e,Oe,ke){var Ke=it.useState($e),lt=(0,je.Z)(Ke,2),Ue=lt[0],gt=lt[1],tn=it.useState(null),Un=(0,je.Z)(tn,2),qn=Un[0],nn=Un[1];return it.useEffect(function(){var Ht=ge(Ue||[],$e||[],Oe);(Ht==null?void 0:Ht.index)!==void 0&&(ke==null||ke(Ht.index),nn($e[Ht.index])),gt($e)},[$e]),[qn]}var be=le(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Le=Ae,Ve=function($e,Oe,ke,Ke){var lt=(0,it.useRef)(!1),Ue=(0,it.useRef)(null);function gt(){clearTimeout(Ue.current),lt.current=!0,Ue.current=setTimeout(function(){lt.current=!1},50)}var tn=(0,it.useRef)({top:$e,bottom:Oe,left:ke,right:Ke});return tn.current.top=$e,tn.current.bottom=Oe,tn.current.left=ke,tn.current.right=Ke,function(Un,qn){var nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ht=Un?qn<0&&tn.current.left||qn>0&&tn.current.right:qn<0&&tn.current.top||qn>0&&tn.current.bottom;return nn&&Ht?(clearTimeout(Ue.current),lt.current=!1):(!Ht||lt.current)&>(),!lt.current&&Ht}};function et($e,Oe,ke,Ke,lt,Ue,gt){var tn=(0,it.useRef)(0),Un=(0,it.useRef)(null),qn=(0,it.useRef)(null),nn=(0,it.useRef)(!1),Ht=Ve(Oe,ke,Ke,lt);function sn(Kn,Tn){if(be.Z.cancel(Un.current),!Ht(!1,Tn)){var jn=Kn;if(!jn._virtualHandled)jn._virtualHandled=!0;else return;tn.current+=Tn,qn.current=Tn,Le||jn.preventDefault(),Un.current=(0,be.Z)(function(){var Mi=nn.current?10:1;gt(tn.current*Mi,!1),tn.current=0})}}function vn(Kn,Tn){gt(Tn,!0),Le||Kn.preventDefault()}var Ln=(0,it.useRef)(null),xn=(0,it.useRef)(null);function _t(Kn){if($e){be.Z.cancel(xn.current),xn.current=(0,be.Z)(function(){Ln.current=null},2);var Tn=Kn.deltaX,jn=Kn.deltaY,Mi=Kn.shiftKey,Gn=Tn,wt=jn;(Ln.current==="sx"||!Ln.current&&Mi&&jn&&!Tn)&&(Gn=jn,wt=0,Ln.current="sx");var Si=Math.abs(Gn),wi=Math.abs(wt);Ln.current===null&&(Ln.current=Ue&&Si>wi?"x":"y"),Ln.current==="y"?sn(Kn,wt):vn(Kn,Gn)}}function Vn(Kn){$e&&(nn.current=Kn.detail===qn.current)}return[_t,Vn]}function Je($e,Oe,ke,Ke){var lt=it.useMemo(function(){return[new Map,[]]},[$e,ke.id,Ke]),Ue=(0,je.Z)(lt,2),gt=Ue[0],tn=Ue[1],Un=function(nn){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nn,sn=gt.get(nn),vn=gt.get(Ht);if(sn===void 0||vn===void 0)for(var Ln=$e.length,xn=tn.length;xn<Ln;xn+=1){var _t,Vn=$e[xn],Kn=Oe(Vn);gt.set(Kn,xn);var Tn=(_t=ke.get(Kn))!==null&&_t!==void 0?_t:Ke;if(tn[xn]=(tn[xn-1]||0)+Tn,Kn===nn&&(sn=xn),Kn===Ht&&(vn=xn),sn!==void 0&&vn!==void 0)break}return{top:tn[sn-1]||0,bottom:tn[vn]}};return Un}var rt=le(42573),at=le(58698),tt=function(){function $e(){(0,rt.Z)(this,$e),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,at.Z)($e,[{key:"set",value:function(ke,Ke){this.diffRecords.set(ke,this.maps[ke]),this.maps[ke]=Ke,this.id+=1}},{key:"get",value:function(ke){return this.maps[ke]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),$e}(),Et=tt;function Lt($e){var Oe=parseFloat($e);return isNaN(Oe)?0:Oe}function Ut($e,Oe,ke){var Ke=it.useState(0),lt=(0,je.Z)(Ke,2),Ue=lt[0],gt=lt[1],tn=(0,it.useRef)(new Map),Un=(0,it.useRef)(new Et),qn=(0,it.useRef)(0);function nn(){qn.current+=1}function Ht(){var vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;nn();var Ln=function(){var Vn=!1;tn.current.forEach(function(Kn,Tn){if(Kn&&Kn.offsetParent){var jn=Kn.offsetHeight,Mi=getComputedStyle(Kn),Gn=Mi.marginTop,wt=Mi.marginBottom,Si=Lt(Gn),wi=Lt(wt),Vt=jn+Si+wi;Un.current.get(Tn)!==Vt&&(Un.current.set(Tn,Vt),Vn=!0)}}),Vn&>(function(Kn){return Kn+1})};if(vn)Ln();else{qn.current+=1;var xn=qn.current;Promise.resolve().then(function(){xn===qn.current&&Ln()})}}function sn(vn,Ln){var xn=$e(vn),_t=tn.current.get(xn);Ln?(tn.current.set(xn,Ln),Ht()):tn.current.delete(xn),!_t!=!Ln&&(Ln?Oe==null||Oe(vn):ke==null||ke(vn))}return(0,it.useEffect)(function(){return nn},[]),[sn,Ht,Un.current,Ue]}var on=14/15;function an($e,Oe,ke){var Ke=(0,it.useRef)(!1),lt=(0,it.useRef)(0),Ue=(0,it.useRef)(0),gt=(0,it.useRef)(null),tn=(0,it.useRef)(null),Un,qn=function(vn){if(Ke.current){var Ln=Math.ceil(vn.touches[0].pageX),xn=Math.ceil(vn.touches[0].pageY),_t=lt.current-Ln,Vn=Ue.current-xn,Kn=Math.abs(_t)>Math.abs(Vn);Kn?lt.current=Ln:Ue.current=xn;var Tn=ke(Kn,Kn?_t:Vn,!1,vn);Tn&&vn.preventDefault(),clearInterval(tn.current),Tn&&(tn.current=setInterval(function(){Kn?_t*=on:Vn*=on;var jn=Math.floor(Kn?_t:Vn);(!ke(Kn,jn,!0)||Math.abs(jn)<=.1)&&clearInterval(tn.current)},16))}},nn=function(){Ke.current=!1,Un()},Ht=function(vn){Un(),vn.touches.length===1&&!Ke.current&&(Ke.current=!0,lt.current=Math.ceil(vn.touches[0].pageX),Ue.current=Math.ceil(vn.touches[0].pageY),gt.current=vn.target,gt.current.addEventListener("touchmove",qn,{passive:!1}),gt.current.addEventListener("touchend",nn,{passive:!0}))};Un=function(){gt.current&&(gt.current.removeEventListener("touchmove",qn),gt.current.removeEventListener("touchend",nn))},(0,mt.Z)(function(){return $e&&Oe.current.addEventListener("touchstart",Ht,{passive:!0}),function(){var sn;(sn=Oe.current)===null||sn===void 0||sn.removeEventListener("touchstart",Ht),Un(),clearInterval(tn.current)}},[$e])}function Kt($e){return Math.floor(Math.pow($e,.5))}function fn($e,Oe){var ke="touches"in $e?$e.touches[0]:$e;return ke[Oe?"pageX":"pageY"]-window[Oe?"scrollX":"scrollY"]}function bt($e,Oe,ke){it.useEffect(function(){var Ke=Oe.current;if($e&&Ke){var lt=!1,Ue,gt,tn=function(){be.Z.cancel(Ue)},Un=function sn(){tn(),Ue=(0,be.Z)(function(){ke(gt),sn()})},qn=function(vn){if(!(vn.target.draggable||vn.button!==0)){var Ln=vn;Ln._virtualHandled||(Ln._virtualHandled=!0,lt=!0)}},nn=function(){lt=!1,tn()},Ht=function(vn){if(lt){var Ln=fn(vn,!1),xn=Ke.getBoundingClientRect(),_t=xn.top,Vn=xn.bottom;if(Ln<=_t){var Kn=_t-Ln;gt=-Kt(Kn),Un()}else if(Ln>=Vn){var Tn=Ln-Vn;gt=Kt(Tn),Un()}else tn()}};return Ke.addEventListener("mousedown",qn),Ke.ownerDocument.addEventListener("mouseup",nn),Ke.ownerDocument.addEventListener("mousemove",Ht),function(){Ke.removeEventListener("mousedown",qn),Ke.ownerDocument.removeEventListener("mouseup",nn),Ke.ownerDocument.removeEventListener("mousemove",Ht),tn()}}},[$e])}var dt=10;function ct($e,Oe,ke,Ke,lt,Ue,gt,tn){var Un=it.useRef(),qn=it.useState(null),nn=(0,je.Z)(qn,2),Ht=nn[0],sn=nn[1];return(0,mt.Z)(function(){if(Ht&&Ht.times<dt){if(!$e.current){sn(function(Nr){return(0,Me.Z)({},Nr)});return}Ue();var vn=Ht.targetAlign,Ln=Ht.originAlign,xn=Ht.index,_t=Ht.offset,Vn=$e.current.clientHeight,Kn=!1,Tn=vn,jn=null;if(Vn){for(var Mi=vn||Ln,Gn=0,wt=0,Si=0,wi=Math.min(Oe.length-1,xn),Vt=0;Vt<=wi;Vt+=1){var qi=lt(Oe[Vt]);wt=Gn;var lr=ke.get(qi);Si=wt+(lr===void 0?Ke:lr),Gn=Si}for(var rr=Mi==="top"?_t:Vn-_t,In=wi;In>=0;In-=1){var Br=lt(Oe[In]),Tr=ke.get(Br);if(Tr===void 0){Kn=!0;break}if(rr-=Tr,rr<=0)break}switch(Mi){case"top":jn=wt-_t;break;case"bottom":jn=Si-Vn+_t;break;default:{var Xi=$e.current.scrollTop,Ji=Xi+Vn;wt<Xi?Tn="top":Si>Ji&&(Tn="bottom")}}jn!==null&>(jn),jn!==Ht.lastTop&&(Kn=!0)}Kn&&sn((0,Me.Z)((0,Me.Z)({},Ht),{},{times:Ht.times+1,targetAlign:Tn,lastTop:jn}))}},[Ht,$e.current]),function(vn){if(vn==null){tn();return}if(be.Z.cancel(Un.current),typeof vn=="number")gt(vn);else if(vn&&(0,Pe.Z)(vn)==="object"){var Ln,xn=vn.align;"index"in vn?Ln=vn.index:Ln=Oe.findIndex(function(Kn){return lt(Kn)===vn.key});var _t=vn.offset,Vn=_t===void 0?0:_t;sn({times:0,index:Ln,offset:Vn,originAlign:xn})}}}var Qt=it.forwardRef(function($e,Oe){var ke=$e.prefixCls,Ke=$e.rtl,lt=$e.scrollOffset,Ue=$e.scrollRange,gt=$e.onStartMove,tn=$e.onStopMove,Un=$e.onScroll,qn=$e.horizontal,nn=$e.spinSize,Ht=$e.containerSize,sn=$e.style,vn=$e.thumbStyle,Ln=$e.showScrollBar,xn=it.useState(!1),_t=(0,je.Z)(xn,2),Vn=_t[0],Kn=_t[1],Tn=it.useState(null),jn=(0,je.Z)(Tn,2),Mi=jn[0],Gn=jn[1],wt=it.useState(null),Si=(0,je.Z)(wt,2),wi=Si[0],Vt=Si[1],qi=!Ke,lr=it.useRef(),rr=it.useRef(),In=it.useState(Ln),Br=(0,je.Z)(In,2),Tr=Br[0],Xi=Br[1],Ji=it.useRef(),Nr=function(){Ln===!0||Ln===!1||(clearTimeout(Ji.current),Xi(!0),Ji.current=setTimeout(function(){Xi(!1)},3e3))},Be=Ue-Ht||0,Vi=Ht-nn||0,bi=it.useMemo(function(){if(lt===0||Be===0)return 0;var wn=lt/Be;return wn*Vi},[lt,Be,Vi]),di=function(Gi){Gi.stopPropagation(),Gi.preventDefault()},Ri=it.useRef({top:bi,dragging:Vn,pageY:Mi,startTop:wi});Ri.current={top:bi,dragging:Vn,pageY:Mi,startTop:wi};var Fi=function(Gi){Kn(!0),Gn(fn(Gi,qn)),Vt(Ri.current.top),gt(),Gi.stopPropagation(),Gi.preventDefault()};it.useEffect(function(){var wn=function(mn){mn.preventDefault()},Gi=lr.current,Ci=rr.current;return Gi.addEventListener("touchstart",wn,{passive:!1}),Ci.addEventListener("touchstart",Fi,{passive:!1}),function(){Gi.removeEventListener("touchstart",wn),Ci.removeEventListener("touchstart",Fi)}},[]);var Ti=it.useRef();Ti.current=Be;var Lr=it.useRef();Lr.current=Vi,it.useEffect(function(){if(Vn){var wn,Gi=function(mn){var Rn=Ri.current,Ui=Rn.dragging,or=Rn.pageY,ci=Rn.startTop;be.Z.cancel(wn);var yt=lr.current.getBoundingClientRect(),zt=Ht/(qn?yt.width:yt.height);if(Ui){var li=(fn(mn,qn)-or)*zt,ii=ci;!qi&&qn?ii-=li:ii+=li;var Rt=Ti.current,Jn=Lr.current,Ni=Jn?ii/Jn:0,en=Math.ceil(Ni*Rt);en=Math.max(en,0),en=Math.min(en,Rt),wn=(0,be.Z)(function(){Un(en,qn)})}},Ci=function(){Kn(!1),tn()};return window.addEventListener("mousemove",Gi,{passive:!0}),window.addEventListener("touchmove",Gi,{passive:!0}),window.addEventListener("mouseup",Ci,{passive:!0}),window.addEventListener("touchend",Ci,{passive:!0}),function(){window.removeEventListener("mousemove",Gi),window.removeEventListener("touchmove",Gi),window.removeEventListener("mouseup",Ci),window.removeEventListener("touchend",Ci),be.Z.cancel(wn)}}},[Vn]),it.useEffect(function(){return Nr(),function(){clearTimeout(Ji.current)}},[lt]),it.useImperativeHandle(Oe,function(){return{delayHidden:Nr}});var ln="".concat(ke,"-scrollbar"),pn={position:"absolute",visibility:Tr?null:"hidden"},$t={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return qn?(Object.assign(pn,{height:8,left:0,right:0,bottom:0}),Object.assign($t,(0,Ie.Z)({height:"100%",width:nn},qi?"left":"right",bi))):(Object.assign(pn,(0,Ie.Z)({width:8,top:0,bottom:0},qi?"right":"left",0)),Object.assign($t,{width:"100%",height:nn,top:bi})),it.createElement("div",{ref:lr,className:st()(ln,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(ln,"-horizontal"),qn),"".concat(ln,"-vertical"),!qn),"".concat(ln,"-visible"),Tr)),style:(0,Me.Z)((0,Me.Z)({},pn),sn),onMouseDown:di,onMouseMove:Nr},it.createElement("div",{ref:rr,className:st()("".concat(ln,"-thumb"),(0,Ie.Z)({},"".concat(ln,"-thumb-moving"),Vn)),style:(0,Me.Z)((0,Me.Z)({},$t),vn),onMouseDown:Fi}))}),un=Qt,Nt=20;function hn(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ke=$e/Oe*$e;return isNaN(ke)&&(ke=0),ke=Math.max(ke,Nt),Math.floor(ke)}var cn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Qn=[],Bt={overflowY:"auto",overflowAnchor:"none"};function Pt($e,Oe){var ke=$e.prefixCls,Ke=ke===void 0?"rc-virtual-list":ke,lt=$e.className,Ue=$e.height,gt=$e.itemHeight,tn=$e.fullHeight,Un=tn===void 0?!0:tn,qn=$e.style,nn=$e.data,Ht=$e.children,sn=$e.itemKey,vn=$e.virtual,Ln=$e.direction,xn=$e.scrollWidth,_t=$e.component,Vn=_t===void 0?"div":_t,Kn=$e.onScroll,Tn=$e.onVirtualScroll,jn=$e.onVisibleChange,Mi=$e.innerProps,Gn=$e.extraRender,wt=$e.styles,Si=$e.showScrollBar,wi=Si===void 0?"optional":Si,Vt=(0,Te.Z)($e,cn),qi=it.useCallback(function(On){return typeof sn=="function"?sn(On):On==null?void 0:On[sn]},[sn]),lr=Ut(qi,null,null),rr=(0,je.Z)(lr,4),In=rr[0],Br=rr[1],Tr=rr[2],Xi=rr[3],Ji=!!(vn!==!1&&Ue&>),Nr=it.useMemo(function(){return Object.values(Tr.maps).reduce(function(On,fi){return On+fi},0)},[Tr.id,Tr.maps]),Be=Ji&&nn&&(Math.max(gt*nn.length,Nr)>Ue||!!xn),Vi=Ln==="rtl",bi=st()(Ke,(0,Ie.Z)({},"".concat(Ke,"-rtl"),Vi),lt),di=nn||Qn,Ri=(0,it.useRef)(),Fi=(0,it.useRef)(),Ti=(0,it.useRef)(),Lr=(0,it.useState)(0),ln=(0,je.Z)(Lr,2),pn=ln[0],$t=ln[1],wn=(0,it.useState)(0),Gi=(0,je.Z)(wn,2),Ci=Gi[0],Yi=Gi[1],mn=(0,it.useState)(!1),Rn=(0,je.Z)(mn,2),Ui=Rn[0],or=Rn[1],ci=function(){or(!0)},yt=function(){or(!1)},zt={getKey:qi};function li(On){$t(function(fi){var mi;typeof On=="function"?mi=On(fi):mi=On;var ti=Rr(mi);return Ri.current.scrollTop=ti,ti})}var ii=(0,it.useRef)({start:0,end:di.length}),Rt=(0,it.useRef)(),Jn=ye(di,qi),Ni=(0,je.Z)(Jn,1),en=Ni[0];Rt.current=en;var ze=it.useMemo(function(){if(!Ji)return{scrollHeight:void 0,start:0,end:di.length-1,offset:void 0};if(!Be){var On;return{scrollHeight:((On=Fi.current)===null||On===void 0?void 0:On.offsetHeight)||0,start:0,end:di.length-1,offset:void 0}}for(var fi=0,mi,ti,gi,ui=di.length,xi=0;xi<ui;xi+=1){var Oi=di[xi],En=qi(Oi),ur=Tr.get(En),sr=fi+(ur===void 0?gt:ur);sr>=pn&&mi===void 0&&(mi=xi,ti=fi),sr>pn+Ue&&gi===void 0&&(gi=xi),fi=sr}return mi===void 0&&(mi=0,ti=0,gi=Math.ceil(Ue/gt)),gi===void 0&&(gi=di.length-1),gi=Math.min(gi+1,di.length-1),{scrollHeight:fi,start:mi,end:gi,offset:ti}},[Be,Ji,pn,di,Xi,Ue]),si=ze.scrollHeight,oi=ze.start,yn=ze.end,ir=ze.offset;ii.current.start=oi,ii.current.end=yn,it.useLayoutEffect(function(){var On=Tr.getRecord();if(On.size===1){var fi=Array.from(On.keys())[0],mi=On.get(fi),ti=di[oi];if(ti&&mi===void 0){var gi=qi(ti);if(gi===fi){var ui=Tr.get(fi),xi=ui-gt;li(function(Oi){return Oi+xi})}}}Tr.resetRecord()},[si]);var Zi=it.useState({width:0,height:Ue}),Fn=(0,je.Z)(Zi,2),Li=Fn[0],jt=Fn[1],br=function(fi){jt({width:fi.offsetWidth,height:fi.offsetHeight})},Eo=(0,it.useRef)(),Gt=(0,it.useRef)(),Wi=it.useMemo(function(){return hn(Li.width,xn)},[Li.width,xn]),cr=it.useMemo(function(){return hn(Li.height,si)},[Li.height,si]),Hi=si-Ue,Hr=(0,it.useRef)(Hi);Hr.current=Hi;function Rr(On){var fi=On;return Number.isNaN(Hr.current)||(fi=Math.min(fi,Hr.current)),fi=Math.max(fi,0),fi}var jr=pn<=0,_r=pn>=Hi,Ur=Ci<=0,po=Ci>=xn,Pn=Ve(jr,_r,Ur,po),bo=function(){return{x:Vi?-Ci:Ci,y:pn}},Mn=(0,it.useRef)(bo()),tr=(0,We.zX)(function(On){if(Tn){var fi=(0,Me.Z)((0,Me.Z)({},bo()),On);(Mn.current.x!==fi.x||Mn.current.y!==fi.y)&&(Tn(fi),Mn.current=fi)}});function wr(On,fi){var mi=On;fi?((0,kt.flushSync)(function(){Yi(mi)}),tr()):li(mi)}function Sr(On){var fi=On.currentTarget.scrollTop;fi!==pn&&li(fi),Kn==null||Kn(On),tr()}var yo=function(fi){var mi=fi,ti=xn?xn-Li.width:0;return mi=Math.max(mi,0),mi=Math.min(mi,ti),mi},Or=(0,We.zX)(function(On,fi){fi?((0,kt.flushSync)(function(){Yi(function(mi){var ti=mi+(Vi?-On:On);return yo(ti)})}),tr()):li(function(mi){var ti=mi+On;return ti})}),Ar=et(Ji,jr,_r,Ur,po,!!xn,Or),To=(0,je.Z)(Ar,2),rn=To[0],_n=To[1];an(Ji,Ri,function(On,fi,mi,ti){var gi=ti;return Pn(On,fi,mi)?!1:!gi||!gi._virtualHandled?(gi&&(gi._virtualHandled=!0),rn({preventDefault:function(){},deltaX:On?fi:0,deltaY:On?0:fi}),!0):!1}),bt(Be,Ri,function(On){li(function(fi){return fi+On})}),(0,mt.Z)(function(){function On(mi){var ti=jr&&mi.detail<0,gi=_r&&mi.detail>0;Ji&&!ti&&!gi&&mi.preventDefault()}var fi=Ri.current;return fi.addEventListener("wheel",rn,{passive:!1}),fi.addEventListener("DOMMouseScroll",_n,{passive:!0}),fi.addEventListener("MozMousePixelScroll",On,{passive:!1}),function(){fi.removeEventListener("wheel",rn),fi.removeEventListener("DOMMouseScroll",_n),fi.removeEventListener("MozMousePixelScroll",On)}},[Ji,jr,_r]),(0,mt.Z)(function(){if(xn){var On=yo(Ci);Yi(On),tr({x:On})}},[Li.width,xn]);var Yt=function(){var fi,mi;(fi=Eo.current)===null||fi===void 0||fi.delayHidden(),(mi=Gt.current)===null||mi===void 0||mi.delayHidden()},qe=ct(Ri,di,Tr,gt,qi,function(){return Br(!0)},li,Yt);it.useImperativeHandle(Oe,function(){return{nativeElement:Ti.current,getScrollInfo:bo,scrollTo:function(fi){function mi(ti){return ti&&(0,Pe.Z)(ti)==="object"&&("left"in ti||"top"in ti)}mi(fi)?(fi.left!==void 0&&Yi(yo(fi.left)),qe(fi.top)):qe(fi)}}}),(0,mt.Z)(function(){if(jn){var On=di.slice(oi,yn+1);jn(On,di)}},[oi,yn,di]);var ai=Je(di,qi,Tr,gt),yi=Gn==null?void 0:Gn({start:oi,end:yn,virtual:Be,offsetX:Ci,offsetY:ir,rtl:Vi,getSize:ai}),Ki=he(di,oi,yn,xn,Ci,In,Ht,zt),_i=null;Ue&&(_i=(0,Me.Z)((0,Ie.Z)({},Un?"height":"maxHeight",Ue),Bt),Ji&&(_i.overflowY="hidden",xn&&(_i.overflowX="hidden"),Ui&&(_i.pointerEvents="none")));var Ii={};return Vi&&(Ii.dir="rtl"),it.createElement("div",(0,ce.Z)({ref:Ti,style:(0,Me.Z)((0,Me.Z)({},qn),{},{position:"relative"}),className:bi},Ii,Vt),it.createElement(Qe.Z,{onResize:br},it.createElement(Vn,{className:"".concat(Ke,"-holder"),style:_i,ref:Ri,onScroll:Sr,onMouseEnter:Yt},it.createElement(ne,{prefixCls:Ke,height:si,offsetX:Ci,offsetY:ir,scrollWidth:xn,onInnerResize:Br,ref:Fi,innerProps:Mi,rtl:Vi,extra:yi},Ki))),Be&&si>Ue&&it.createElement(un,{ref:Eo,prefixCls:Ke,scrollOffset:pn,scrollRange:si,rtl:Vi,onScroll:wr,onStartMove:ci,onStopMove:yt,spinSize:cr,containerSize:Li.height,style:wt==null?void 0:wt.verticalScrollBar,thumbStyle:wt==null?void 0:wt.verticalScrollBarThumb,showScrollBar:wi}),Be&&xn>Li.width&&it.createElement(un,{ref:Gt,prefixCls:Ke,scrollOffset:Ci,scrollRange:xn,rtl:Vi,onScroll:wr,onStartMove:ci,onStopMove:yt,spinSize:Wi,containerSize:Li.width,horizontal:!0,style:wt==null?void 0:wt.horizontalScrollBar,thumbStyle:wt==null?void 0:wt.horizontalScrollBarThumb,showScrollBar:wi}))}var Wt=it.forwardRef(Pt);Wt.displayName="List";var An=Wt,Nn=An},77596:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return dt}});var ce=le(33346),Pe=le(15142),Me=le(52873),Ie=le(59301),je=le(67711);function Te(ct,Qt){var un=Object.keys(ct);if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(ct);Qt&&(Nt=Nt.filter(function(hn){return Object.getOwnPropertyDescriptor(ct,hn).enumerable})),un.push.apply(un,Nt)}return un}function Ge(ct){for(var Qt=1;Qt<arguments.length;Qt++){var un=arguments[Qt]!=null?arguments[Qt]:{};Qt%2?Te(Object(un),!0).forEach(function(Nt){(0,Me.Z)(ct,Nt,un[Nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(un)):Te(Object(un)).forEach(function(Nt){Object.defineProperty(ct,Nt,Object.getOwnPropertyDescriptor(un,Nt))})}return ct}function st(ct){var Qt=ct.length;if(Qt===0||Qt===1)return ct;if(Qt===2)return[ct[0],ct[1],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0])];if(Qt===3)return[ct[0],ct[1],ct[2],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0])];if(Qt>=4)return[ct[0],ct[1],ct[2],ct[3],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3]),"".concat(ct[3],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1],".").concat(ct[0])]}var Qe={};function We(ct){if(ct.length===0||ct.length===1)return ct;var Qt=ct.join(".");return Qe[Qt]||(Qe[Qt]=st(ct)),Qe[Qt]}function mt(ct){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=arguments.length>2?arguments[2]:void 0,Nt=ct.filter(function(cn){return cn!=="token"}),hn=We(Nt);return hn.reduce(function(cn,Qn){return Ge(Ge({},cn),un[Qn])},Qt)}function it(ct){return ct.join(" ")}function kt(ct,Qt){var un=0;return function(Nt){return un+=1,Nt.map(function(hn,cn){return Fe({node:hn,stylesheet:ct,useInlineStyles:Qt,key:"code-segment-".concat(un,"-").concat(cn)})})}}function Fe(ct){var Qt=ct.node,un=ct.stylesheet,Nt=ct.style,hn=Nt===void 0?{}:Nt,cn=ct.useInlineStyles,Qn=ct.key,Bt=Qt.properties,Pt=Qt.type,Wt=Qt.tagName,An=Qt.value;if(Pt==="text")return An;if(Wt){var Nn=kt(un,cn),$e;if(!cn)$e=Ge(Ge({},Bt),{},{className:it(Bt.className)});else{var Oe=Object.keys(un).reduce(function(Ue,gt){return gt.split(".").forEach(function(tn){Ue.includes(tn)||Ue.push(tn)}),Ue},[]),ke=Bt.className&&Bt.className.includes("token")?["token"]:[],Ke=Bt.className&&ke.concat(Bt.className.filter(function(Ue){return!Oe.includes(Ue)}));$e=Ge(Ge({},Bt),{},{className:it(Ke)||void 0,style:mt(Bt.className,Object.assign({},Bt.style,hn),un)})}var lt=Nn(Qt.children);return Ie.createElement(Wt,(0,je.Z)({key:Qn},$e),lt)}}var ne=function(ct,Qt){var un=ct.listLanguages();return un.indexOf(Qt)!==-1},te=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(ct,Qt){var un=Object.keys(ct);if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(ct);Qt&&(Nt=Nt.filter(function(hn){return Object.getOwnPropertyDescriptor(ct,hn).enumerable})),un.push.apply(un,Nt)}return un}function se(ct){for(var Qt=1;Qt<arguments.length;Qt++){var un=arguments[Qt]!=null?arguments[Qt]:{};Qt%2?he(Object(un),!0).forEach(function(Nt){(0,Me.Z)(ct,Nt,un[Nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(un)):he(Object(un)).forEach(function(Nt){Object.defineProperty(ct,Nt,Object.getOwnPropertyDescriptor(un,Nt))})}return ct}var ge=/\n/g;function ye(ct){return ct.match(ge)}function be(ct){var Qt=ct.lines,un=ct.startingLineNumber,Nt=ct.style;return Qt.map(function(hn,cn){var Qn=cn+un;return Ie.createElement("span",{key:"line-".concat(cn),className:"react-syntax-highlighter-line-number",style:typeof Nt=="function"?Nt(Qn):Nt},"".concat(Qn,`
|
|
|
`))})}function Ae(ct){var Qt=ct.codeString,un=ct.codeStyle,Nt=ct.containerStyle,hn=Nt===void 0?{float:"left",paddingRight:"10px"}:Nt,cn=ct.numberStyle,Qn=cn===void 0?{}:cn,Bt=ct.startingLineNumber;return Ie.createElement("code",{style:Object.assign({},un,hn)},be({lines:Qt.replace(/\n$/,"").split(`
|
|
|
`),style:Qn,startingLineNumber:Bt}))}function Le(ct){return"".concat(ct.toString().length,".25em")}function Ve(ct,Qt){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ct),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Qt},children:[{type:"text",value:ct}]}}function et(ct,Qt,un){var Nt={display:"inline-block",minWidth:Le(un),paddingRight:"1em",textAlign:"right",userSelect:"none"},hn=typeof ct=="function"?ct(Qt):ct,cn=se(se({},Nt),hn);return cn}function Je(ct){var Qt=ct.children,un=ct.lineNumber,Nt=ct.lineNumberStyle,hn=ct.largestLineNumber,cn=ct.showInlineLineNumbers,Qn=ct.lineProps,Bt=Qn===void 0?{}:Qn,Pt=ct.className,Wt=Pt===void 0?[]:Pt,An=ct.showLineNumbers,Nn=ct.wrapLongLines,$e=ct.wrapLines,Oe=$e===void 0?!1:$e,ke=Oe?se({},typeof Bt=="function"?Bt(un):Bt):{};if(ke.className=ke.className?[].concat((0,Pe.Z)(ke.className.trim().split(/\s+/)),(0,Pe.Z)(Wt)):Wt,un&&cn){var Ke=et(Nt,un,hn);Qt.unshift(Ve(un,Ke))}return Nn&An&&(ke.style=se({display:"flex"},ke.style)),{type:"element",tagName:"span",properties:ke,children:Qt}}function rt(ct){for(var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Nt=0;Nt<ct.length;Nt++){var hn=ct[Nt];if(hn.type==="text")un.push(Je({children:[hn],className:(0,Pe.Z)(new Set(Qt))}));else if(hn.children){var cn=Qt.concat(hn.properties.className);rt(hn.children,cn).forEach(function(Qn){return un.push(Qn)})}}return un}function at(ct,Qt,un,Nt,hn,cn,Qn,Bt,Pt){var Wt,An=rt(ct.value),Nn=[],$e=-1,Oe=0;function ke(qn,nn){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Je({children:qn,lineNumber:nn,lineNumberStyle:Bt,largestLineNumber:Qn,showInlineLineNumbers:hn,lineProps:un,className:Ht,showLineNumbers:Nt,wrapLongLines:Pt,wrapLines:Qt})}function Ke(qn,nn){if(Nt&&nn&&hn){var Ht=et(Bt,nn,Qn);qn.unshift(Ve(nn,Ht))}return qn}function lt(qn,nn){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Qt||Ht.length>0?ke(qn,nn,Ht):Ke(qn,nn)}for(var Ue=function(){var nn=An[Oe],Ht=nn.children[0].value,sn=ye(Ht);if(sn){var vn=Ht.split(`
|
|
|
`);vn.forEach(function(Ln,xn){var _t=Nt&&Nn.length+cn,Vn={type:"text",value:"".concat(Ln,`
|
|
|
`)};if(xn===0){var Kn=An.slice($e+1,Oe).concat(Je({children:[Vn],className:nn.properties.className})),Tn=lt(Kn,_t);Nn.push(Tn)}else if(xn===vn.length-1){var jn=An[Oe+1]&&An[Oe+1].children&&An[Oe+1].children[0],Mi={type:"text",value:"".concat(Ln)};if(jn){var Gn=Je({children:[Mi],className:nn.properties.className});An.splice(Oe+1,0,Gn)}else{var wt=[Mi],Si=lt(wt,_t,nn.properties.className);Nn.push(Si)}}else{var wi=[Vn],Vt=lt(wi,_t,nn.properties.className);Nn.push(Vt)}}),$e=Oe}Oe++};Oe<An.length;)Ue();if($e!==An.length-1){var gt=An.slice($e+1,An.length);if(gt&>.length){var tn=Nt&&Nn.length+cn,Un=lt(gt,tn);Nn.push(Un)}}return Qt?Nn:(Wt=[]).concat.apply(Wt,Nn)}function tt(ct){var Qt=ct.rows,un=ct.stylesheet,Nt=ct.useInlineStyles;return Qt.map(function(hn,cn){return Fe({node:hn,stylesheet:un,useInlineStyles:Nt,key:"code-segement".concat(cn)})})}function Et(ct){return ct&&typeof ct.highlightAuto!="undefined"}function Lt(ct){var Qt=ct.astGenerator,un=ct.language,Nt=ct.code,hn=ct.defaultCodeValue;if(Et(Qt)){var cn=ne(Qt,un);return un==="text"?{value:hn,language:"text"}:cn?Qt.highlight(un,Nt):Qt.highlightAuto(Nt)}try{return un&&un!=="text"?{value:Qt.highlight(Nt,un)}:{value:hn}}catch(Qn){return{value:hn}}}function Ut(ct,Qt){return function(Nt){var hn=Nt.language,cn=Nt.children,Qn=Nt.style,Bt=Qn===void 0?Qt:Qn,Pt=Nt.customStyle,Wt=Pt===void 0?{}:Pt,An=Nt.codeTagProps,Nn=An===void 0?{className:hn?"language-".concat(hn):void 0,style:se(se({},Bt['code[class*="language-"]']),Bt['code[class*="language-'.concat(hn,'"]')])}:An,$e=Nt.useInlineStyles,Oe=$e===void 0?!0:$e,ke=Nt.showLineNumbers,Ke=ke===void 0?!1:ke,lt=Nt.showInlineLineNumbers,Ue=lt===void 0?!0:lt,gt=Nt.startingLineNumber,tn=gt===void 0?1:gt,Un=Nt.lineNumberContainerStyle,qn=Nt.lineNumberStyle,nn=qn===void 0?{}:qn,Ht=Nt.wrapLines,sn=Nt.wrapLongLines,vn=sn===void 0?!1:sn,Ln=Nt.lineProps,xn=Ln===void 0?{}:Ln,_t=Nt.renderer,Vn=Nt.PreTag,Kn=Vn===void 0?"pre":Vn,Tn=Nt.CodeTag,jn=Tn===void 0?"code":Tn,Mi=Nt.code,Gn=Mi===void 0?(Array.isArray(cn)?cn[0]:cn)||"":Mi,wt=Nt.astGenerator,Si=(0,ce.Z)(Nt,te);wt=wt||ct;var wi=Ke?Ie.createElement(Ae,{containerStyle:Un,codeStyle:Nn.style||{},numberStyle:nn,startingLineNumber:tn,codeString:Gn}):null,Vt=Bt.hljs||Bt['pre[class*="language-"]']||{backgroundColor:"#fff"},qi=Et(wt)?"hljs":"prismjs",lr=Oe?Object.assign({},Si,{style:Object.assign({},Vt,Wt)}):Object.assign({},Si,{className:Si.className?"".concat(qi," ").concat(Si.className):qi,style:Object.assign({},Wt)});if(vn?Nn.style=se({whiteSpace:"pre-wrap"},Nn.style):Nn.style=se({whiteSpace:"pre"},Nn.style),!wt)return Ie.createElement(Kn,lr,wi,Ie.createElement(jn,Nn,Gn));(Ht===void 0&&_t||vn)&&(Ht=!0),_t=_t||tt;var rr=[{type:"text",value:Gn}],In=Lt({astGenerator:wt,language:hn,code:Gn,defaultCodeValue:rr});In.language===null&&(In.value=rr);var Br=In.value.length;Br===1&&In.value[0].type==="text"&&(Br=In.value[0].value.split(`
|
|
|
`).length);var Tr=Br+tn,Xi=at(In,Ht,xn,Ke,Ue,tn,Tr,nn,vn);return Ie.createElement(Kn,lr,Ie.createElement(jn,Nn,!Ue&&wi,_t({rows:Xi,stylesheet:Bt,useInlineStyles:Oe})))}}var on={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},an=le(11594),Kt=le.n(an),fn=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],bt=Ut(Kt(),on);bt.supportedLanguages=fn;var dt=bt},14179:function(Re,Ee){"use strict";Ee.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(Re,Ee,le){"use strict";le(84126);var ce=le(59301),Pe=60103;if(Ee.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Me=Symbol.for;Pe=Me("react.element"),Ee.Fragment=Me("react.fragment")}var Ie=ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,je=Object.prototype.hasOwnProperty,Te={key:!0,ref:!0,__self:!0,__source:!0};function Ge(st,Qe,We){var mt,it={},kt=null,Fe=null;We!==void 0&&(kt=""+We),Qe.key!==void 0&&(kt=""+Qe.key),Qe.ref!==void 0&&(Fe=Qe.ref);for(mt in Qe)je.call(Qe,mt)&&!Te.hasOwnProperty(mt)&&(it[mt]=Qe[mt]);if(st&&st.defaultProps)for(mt in Qe=st.defaultProps,Qe)it[mt]===void 0&&(it[mt]=Qe[mt]);return{$$typeof:Pe,type:st,key:kt,ref:Fe,props:it,_owner:Ie.current}}Ee.jsx=Ge,Ee.jsxs=Ge},37712:function(Re,Ee,le){"use strict";Re.exports=le(19524)},95489:function(Re,Ee,le){"use strict";var ce=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof le.g=="object"?le.g:{},Pe=Ae();ce.Prism={manual:!0,disableWorkerMessageHandler:!0};var Me=le(43621),Ie=le(12256),je=le(68398),Te=le(70614),Ge=le(54212),st=le(9720),Qe=le(88786);Pe();var We={}.hasOwnProperty;function mt(){}mt.prototype=je;var it=new mt;Re.exports=it,it.highlight=ne,it.register=kt,it.alias=Fe,it.registered=te,it.listLanguages=he,kt(Te),kt(Ge),kt(st),kt(Qe),it.util.encode=ye,it.Token.stringify=se;function kt(Le){if(typeof Le!="function"||!Le.displayName)throw new Error("Expected `function` for `grammar`, got `"+Le+"`");it.languages[Le.displayName]===void 0&&Le(it)}function Fe(Le,Ve){var et=it.languages,Je=Le,rt,at,tt,Et;Ve&&(Je={},Je[Le]=Ve);for(rt in Je)for(at=Je[rt],at=typeof at=="string"?[at]:at,tt=at.length,Et=-1;++Et<tt;)et[at[Et]]=et[rt]}function ne(Le,Ve){var et=je.highlight,Je;if(typeof Le!="string")throw new Error("Expected `string` for `value`, got `"+Le+"`");if(it.util.type(Ve)==="Object")Je=Ve,Ve=null;else{if(typeof Ve!="string")throw new Error("Expected `string` for `name`, got `"+Ve+"`");if(We.call(it.languages,Ve))Je=it.languages[Ve];else throw new Error("Unknown language: `"+Ve+"` is not registered")}return et.call(this,Le,Je,Ve)}function te(Le){if(typeof Le!="string")throw new Error("Expected `string` for `language`, got `"+Le+"`");return We.call(it.languages,Le)}function he(){var Le=it.languages,Ve=[],et;for(et in Le)We.call(Le,et)&&typeof Le[et]=="object"&&Ve.push(et);return Ve}function se(Le,Ve,et){var Je;return typeof Le=="string"?{type:"text",value:Le}:it.util.type(Le)==="Array"?ge(Le,Ve):(Je={type:Le.type,content:it.Token.stringify(Le.content,Ve,et),tag:"span",classes:["token",Le.type],attributes:{},language:Ve,parent:et},Le.alias&&(Je.classes=Je.classes.concat(Le.alias)),it.hooks.run("wrap",Je),Me(Je.tag+"."+Je.classes.join("."),be(Je.attributes),Je.content))}function ge(Le,Ve){for(var et=[],Je=Le.length,rt=-1,at;++rt<Je;)at=Le[rt],at!==""&&at!==null&&at!==void 0&&et.push(at);for(rt=-1,Je=et.length;++rt<Je;)at=et[rt],et[rt]=it.Token.stringify(at,Ve,et);return et}function ye(Le){return Le}function be(Le){var Ve;for(Ve in Le)Le[Ve]=Ie(Le[Ve]);return Le}function Ae(){var Le="Prism"in ce,Ve=Le?ce.Prism:void 0;return et;function et(){Le?ce.Prism=Ve:delete ce.Prism,Le=void 0,Ve=void 0}}},11594:function(Re,Ee,le){"use strict";var ce=le(95489);Re.exports=ce,ce.register(le(79007)),ce.register(le(15465)),ce.register(le(42746)),ce.register(le(93281)),ce.register(le(95143)),ce.register(le(65924)),ce.register(le(65043)),ce.register(le(43556)),ce.register(le(14901)),ce.register(le(4248)),ce.register(le(17758)),ce.register(le(33335)),ce.register(le(17427)),ce.register(le(22956)),ce.register(le(56007)),ce.register(le(45652)),ce.register(le(33819)),ce.register(le(84230)),ce.register(le(20803)),ce.register(le(65235)),ce.register(le(52406)),ce.register(le(79571)),ce.register(le(3058)),ce.register(le(51422)),ce.register(le(1618)),ce.register(le(2505)),ce.register(le(51274)),ce.register(le(23796)),ce.register(le(13979)),ce.register(le(87994)),ce.register(le(47035)),ce.register(le(36142)),ce.register(le(85290)),ce.register(le(7407)),ce.register(le(79440)),ce.register(le(7110)),ce.register(le(73435)),ce.register(le(91372)),ce.register(le(63663)),ce.register(le(92987)),ce.register(le(91657)),ce.register(le(34367)),ce.register(le(35348)),ce.register(le(26841)),ce.register(le(87071)),ce.register(le(13652)),ce.register(le(87648)),ce.register(le(10617)),ce.register(le(5348)),ce.register(le(71053)),ce.register(le(69820)),ce.register(le(41929)),ce.register(le(51837)),ce.register(le(4182)),ce.register(le(22117)),ce.register(le(95627)),ce.register(le(34265)),ce.register(le(50618)),ce.register(le(32126)),ce.register(le(26737)),ce.register(le(90134)),ce.register(le(51348)),ce.register(le(60841)),ce.register(le(42857)),ce.register(le(81269)),ce.register(le(31134)),ce.register(le(83125)),ce.register(le(9438)),ce.register(le(27771)),ce.register(le(86549)),ce.register(le(37079)),ce.register(le(59250)),ce.register(le(81226)),ce.register(le(65245)),ce.register(le(25040)),ce.register(le(40284)),ce.register(le(39187)),ce.register(le(34302)),ce.register(le(90515)),ce.register(le(33534)),ce.register(le(9885)),ce.register(le(76364)),ce.register(le(56452)),ce.register(le(8477)),ce.register(le(58230)),ce.register(le(66192)),ce.register(le(81084)),ce.register(le(50318)),ce.register(le(95769)),ce.register(le(14155)),ce.register(le(92823)),ce.register(le(63092)),ce.register(le(21550)),ce.register(le(29710)),ce.register(le(2050)),ce.register(le(67967)),ce.register(le(29138)),ce.register(le(67915)),ce.register(le(54853)),ce.register(le(68330)),ce.register(le(76823)),ce.register(le(86712)),ce.register(le(72252)),ce.register(le(78634)),ce.register(le(43583)),ce.register(le(23328)),ce.register(le(74494)),ce.register(le(46745)),ce.register(le(22152)),ce.register(le(83698)),ce.register(le(26619)),ce.register(le(53990)),ce.register(le(7093)),ce.register(le(4005)),ce.register(le(53510)),ce.register(le(24799)),ce.register(le(97443)),ce.register(le(80746)),ce.register(le(17015)),ce.register(le(89246)),ce.register(le(487)),ce.register(le(79539)),ce.register(le(15628)),ce.register(le(14320)),ce.register(le(73222)),ce.register(le(92486)),ce.register(le(24103)),ce.register(le(40604)),ce.register(le(23109)),ce.register(le(32082)),ce.register(le(77674)),ce.register(le(37524)),ce.register(le(6658)),ce.register(le(24824)),ce.register(le(22776)),ce.register(le(89700)),ce.register(le(99296)),ce.register(le(39940)),ce.register(le(34973)),ce.register(le(98135)),ce.register(le(36907)),ce.register(le(3567)),ce.register(le(23763)),ce.register(le(33978)),ce.register(le(40472)),ce.register(le(44695)),ce.register(le(53885)),ce.register(le(51478)),ce.register(le(16928)),ce.register(le(13586)),ce.register(le(37164)),ce.register(le(25153)),ce.register(le(33245)),ce.register(le(32218)),ce.register(le(65626)),ce.register(le(60090)),ce.register(le(40722)),ce.register(le(37783)),ce.register(le(41224)),ce.register(le(71365)),ce.register(le(42846)),ce.register(le(32964)),ce.register(le(78830)),ce.register(le(88799)),ce.register(le(66791)),ce.register(le(41735)),ce.register(le(13490)),ce.register(le(7383)),ce.register(le(66894)),ce.register(le(45779)),ce.register(le(27734)),ce.register(le(91889)),ce.register(le(55965)),ce.register(le(37326)),ce.register(le(92949)),ce.register(le(5681)),ce.register(le(70696)),ce.register(le(35790)),ce.register(le(25777)),ce.register(le(65889)),ce.register(le(53852)),ce.register(le(97719)),ce.register(le(63839)),ce.register(le(67623)),ce.register(le(32530)),ce.register(le(8938)),ce.register(le(55259)),ce.register(le(67411)),ce.register(le(15375)),ce.register(le(12093)),ce.register(le(83588)),ce.register(le(94127)),ce.register(le(21294)),ce.register(le(38709)),ce.register(le(15008)),ce.register(le(96549)),ce.register(le(5221)),ce.register(le(27447)),ce.register(le(73191)),ce.register(le(75542)),ce.register(le(50323)),ce.register(le(44298)),ce.register(le(9634)),ce.register(le(75266)),ce.register(le(48139)),ce.register(le(97534)),ce.register(le(90826)),ce.register(le(63919)),ce.register(le(68862)),ce.register(le(39523)),ce.register(le(31207)),ce.register(le(75308)),ce.register(le(45315)),ce.register(le(13794)),ce.register(le(41299)),ce.register(le(98177)),ce.register(le(48780)),ce.register(le(79793)),ce.register(le(52085)),ce.register(le(65411)),ce.register(le(84750)),ce.register(le(88216)),ce.register(le(66433)),ce.register(le(34855)),ce.register(le(12998)),ce.register(le(10202)),ce.register(le(41186)),ce.register(le(68963)),ce.register(le(5569)),ce.register(le(69435)),ce.register(le(42766)),ce.register(le(46449)),ce.register(le(89032)),ce.register(le(40241)),ce.register(le(24812)),ce.register(le(16747)),ce.register(le(73584)),ce.register(le(79243)),ce.register(le(31788)),ce.register(le(60871)),ce.register(le(21023)),ce.register(le(14693)),ce.register(le(8743)),ce.register(le(1689)),ce.register(le(69210)),ce.register(le(58710)),ce.register(le(60452)),ce.register(le(92784)),ce.register(le(36489)),ce.register(le(78380)),ce.register(le(10409)),ce.register(le(6539)),ce.register(le(82028)),ce.register(le(62282)),ce.register(le(55686)),ce.register(le(70889)),ce.register(le(37116)),ce.register(le(66963)),ce.register(le(21078)),ce.register(le(96198)),ce.register(le(17723)),ce.register(le(67771)),ce.register(le(30307)),ce.register(le(8921)),ce.register(le(13429)),ce.register(le(65197)),ce.register(le(88904)),ce.register(le(35)),ce.register(le(86095)),ce.register(le(76998)),ce.register(le(14409)),ce.register(le(33460)),ce.register(le(28108))},79007:function(Re){"use strict";Re.exports=Ee,Ee.displayName="abap",Ee.aliases=[];function Ee(le){le.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(Re){"use strict";Re.exports=Ee,Ee.displayName="abnf",Ee.aliases=[];function Ee(le){(function(ce){var Pe="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";ce.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+Pe+"|<"+Pe+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(le)}},42746:function(Re){"use strict";Re.exports=Ee,Ee.displayName="actionscript",Ee.aliases=[];function Ee(le){le.languages.actionscript=le.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),le.languages.actionscript["class-name"].alias="function",delete le.languages.actionscript.parameter,delete le.languages.actionscript["literal-property"],le.languages.markup&&le.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:le.languages.markup}})}},93281:function(Re){"use strict";Re.exports=Ee,Ee.displayName="ada",Ee.aliases=[];function Ee(le){le.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(Re){"use strict";Re.exports=Ee,Ee.displayName="agda",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(le)}},65924:function(Re){"use strict";Re.exports=Ee,Ee.displayName="al",Ee.aliases=[];function Ee(le){le.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(Re){"use strict";Re.exports=Ee,Ee.displayName="antlr4",Ee.aliases=["g4"];function Ee(le){le.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},le.languages.g4=le.languages.antlr4}},43556:function(Re){"use strict";Re.exports=Ee,Ee.displayName="apacheconf",Ee.aliases=[];function Ee(le){le.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(Re,Ee,le){"use strict";var ce=le(69435);Re.exports=Pe,Pe.displayName="apex",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){var je=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Te=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return je.source});function Ge(Qe){return RegExp(Qe.replace(/<CLASS-NAME>/g,function(){return Te}),"i")}var st={keyword:je,punctuation:/[()\[\]{};,:.<>]/};Ie.languages.apex={comment:Ie.languages.clike.comment,string:Ie.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Ie.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ge(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:st},{pattern:Ge(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:st},{pattern:Ge(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:st}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:je,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(Me)}},4248:function(Re){"use strict";Re.exports=Ee,Ee.displayName="apl",Ee.aliases=[];function Ee(le){le.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(Re){"use strict";Re.exports=Ee,Ee.displayName="applescript",Ee.aliases=[];function Ee(le){le.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(Re){"use strict";Re.exports=Ee,Ee.displayName="aql",Ee.aliases=[];function Ee(le){le.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(Re,Ee,le){"use strict";var ce=le(87071);Re.exports=Pe,Pe.displayName="arduino",Pe.aliases=["ino"];function Pe(Me){Me.register(ce),Me.languages.arduino=Me.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),Me.languages.ino=Me.languages.arduino}},22956:function(Re){"use strict";Re.exports=Ee,Ee.displayName="arff",Ee.aliases=[];function Ee(le){le.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(Re){"use strict";Re.exports=Ee,Ee.displayName="asciidoc",Ee.aliases=["adoc"];function Ee(le){(function(ce){var Pe={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},Me=ce.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:Pe,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Pe.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Pe,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function Ie(je){je=je.split(" ");for(var Te={},Ge=0,st=je.length;Ge<st;Ge++)Te[je[Ge]]=Me[je[Ge]];return Te}Pe.inside.interpreted.inside.rest=Ie("macro inline replacement entity"),Me["passthrough-block"].inside.rest=Ie("macro"),Me["literal-block"].inside.rest=Ie("callout"),Me.table.inside.rest=Ie("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),Me["other-block"].inside.rest=Ie("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),Me.title.inside.rest=Ie("macro inline replacement entity"),ce.hooks.add("wrap",function(je){je.type==="entity"&&(je.attributes.title=je.content.value.replace(/&/,"&"))}),ce.languages.adoc=ce.languages.asciidoc})(le)}},45652:function(Re){"use strict";Re.exports=Ee,Ee.displayName="asm6502",Ee.aliases=[];function Ee(le){le.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(Re){"use strict";Re.exports=Ee,Ee.displayName="asmatmel",Ee.aliases=[];function Ee(le){le.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(Re,Ee,le){"use strict";var ce=le(87648);Re.exports=Pe,Pe.displayName="aspnet",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.aspnet=Me.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:Me.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Me.languages.csharp}}}),Me.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Me.languages.insertBefore("inside","punctuation",{directive:Me.languages.aspnet.directive},Me.languages.aspnet.tag.inside["attr-value"]),Me.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Me.languages.insertBefore("aspnet",Me.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Me.languages.csharp||{}}})}},20803:function(Re){"use strict";Re.exports=Ee,Ee.displayName="autohotkey",Ee.aliases=[];function Ee(le){le.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(Re){"use strict";Re.exports=Ee,Ee.displayName="autoit",Ee.aliases=[];function Ee(le){le.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(Re){"use strict";Re.exports=Ee,Ee.displayName="avisynth",Ee.aliases=["avs"];function Ee(le){(function(ce){function Pe(Qe,We){return Qe.replace(/<<(\d+)>>/g,function(mt,it){return We[+it]})}function Me(Qe,We,mt){return RegExp(Pe(Qe,We),mt||"")}var Ie=/bool|clip|float|int|string|val/.source,je=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Te=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),Ge=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),st=[je,Te,Ge].join("|");ce.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Me(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Ie],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:Me(/\b(?:<<0>>)\b/.source,[st],"i"),alias:"function"},"type-cast":{pattern:Me(/\b(?:<<0>>)(?=\s*\()/.source,[Ie],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},ce.languages.avs=ce.languages.avisynth})(le)}},79571:function(Re){"use strict";Re.exports=Ee,Ee.displayName="avroIdl",Ee.aliases=[];function Ee(le){le.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},le.languages.avdl=le.languages["avro-idl"]}},3058:function(Re){"use strict";Re.exports=Ee,Ee.displayName="bash",Ee.aliases=["shell"];function Ee(le){(function(ce){var Pe="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Me={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Ie={bash:Me,environment:{pattern:RegExp("\\$"+Pe),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Pe),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};ce.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Pe),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Ie},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Me}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Ie},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Ie.entity}}],environment:{pattern:RegExp("\\$?"+Pe),alias:"constant"},variable:Ie.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},Me.inside=ce.languages.bash;for(var je=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Te=Ie.variable[1].inside,Ge=0;Ge<je.length;Ge++)Te[je[Ge]]=ce.languages.bash[je[Ge]];ce.languages.shell=ce.languages.bash})(le)}},51422:function(Re){"use strict";Re.exports=Ee,Ee.displayName="basic",Ee.aliases=[];function Ee(le){le.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(Re){"use strict";Re.exports=Ee,Ee.displayName="batch",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/%%?[~:\w]+%?|!\S+!/,Me={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Ie=/"(?:[\\"]"|[^"])*"(?!")/,je=/(?:\b|-)\d+\b/;ce.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:Ie,parameter:Me,variable:Pe,number:je,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:Ie,parameter:Me,variable:Pe,number:je,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:Ie,parameter:Me,variable:[Pe,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:je,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Ie,parameter:Me,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Pe,number:je,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(le)}},2505:function(Re){"use strict";Re.exports=Ee,Ee.displayName="bbcode",Ee.aliases=["shortcode"];function Ee(le){le.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},le.languages.shortcode=le.languages.bbcode}},51274:function(Re){"use strict";Re.exports=Ee,Ee.displayName="bicep",Ee.aliases=[];function Ee(le){le.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},le.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=le.languages.bicep}},23796:function(Re){"use strict";Re.exports=Ee,Ee.displayName="birb",Ee.aliases=[];function Ee(le){le.languages.birb=le.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),le.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(Re,Ee,le){"use strict";var ce=le(79440);Re.exports=Pe,Pe.displayName="bison",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.bison=Me.languages.extend("c",{}),Me.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:Me.languages.c}},comment:Me.languages.c.comment,string:Me.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(Re){"use strict";Re.exports=Ee,Ee.displayName="bnf",Ee.aliases=["rbnf"];function Ee(le){le.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},le.languages.rbnf=le.languages.bnf}},47035:function(Re){"use strict";Re.exports=Ee,Ee.displayName="brainfuck",Ee.aliases=[];function Ee(le){le.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(Re){"use strict";Re.exports=Ee,Ee.displayName="brightscript",Ee.aliases=[];function Ee(le){le.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},le.languages.brightscript["directive-statement"].inside.expression.inside=le.languages.brightscript}},85290:function(Re){"use strict";Re.exports=Ee,Ee.displayName="bro",Ee.aliases=[];function Ee(le){le.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(Re){"use strict";Re.exports=Ee,Ee.displayName="bsl",Ee.aliases=[];function Ee(le){le.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},le.languages.oscript=le.languages.bsl}},79440:function(Re){"use strict";Re.exports=Ee,Ee.displayName="c",Ee.aliases=[];function Ee(le){le.languages.c=le.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),le.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),le.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},le.languages.c.string],char:le.languages.c.char,comment:le.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:le.languages.c}}}}),le.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete le.languages.c.boolean}},7110:function(Re){"use strict";Re.exports=Ee,Ee.displayName="cfscript",Ee.aliases=[];function Ee(le){le.languages.cfscript=le.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),le.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete le.languages.cfscript["class-name"],le.languages.cfc=le.languages.cfscript}},73435:function(Re,Ee,le){"use strict";var ce=le(87071);Re.exports=Pe,Pe.displayName="chaiscript",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.chaiscript=Me.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[Me.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),Me.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),Me.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:Me.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(Re){"use strict";Re.exports=Ee,Ee.displayName="cil",Ee.aliases=[];function Ee(le){le.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(Re){"use strict";Re.exports=Ee,Ee.displayName="clike",Ee.aliases=[];function Ee(le){le.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(Re){"use strict";Re.exports=Ee,Ee.displayName="clojure",Ee.aliases=[];function Ee(le){le.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(Re){"use strict";Re.exports=Ee,Ee.displayName="cmake",Ee.aliases=[];function Ee(le){le.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(Re){"use strict";Re.exports=Ee,Ee.displayName="cobol",Ee.aliases=[];function Ee(le){le.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(Re){"use strict";Re.exports=Ee,Ee.displayName="coffeescript",Ee.aliases=["coffee"];function Ee(le){(function(ce){var Pe=/#(?!\{).+/,Me={pattern:/#\{[^}]+\}/,alias:"variable"};ce.languages.coffeescript=ce.languages.extend("javascript",{comment:Pe,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Me}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),ce.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Pe,interpolation:Me}}}),ce.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:ce.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Me}}]}),ce.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete ce.languages.coffeescript["template-string"],ce.languages.coffee=ce.languages.coffeescript})(le)}},35348:function(Re){"use strict";Re.exports=Ee,Ee.displayName="concurnas",Ee.aliases=["conc"];function Ee(le){le.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},le.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:le.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:le.languages.concurnas},string:/[\s\S]+/}}}),le.languages.conc=le.languages.concurnas}},26841:function(Re){"use strict";Re.exports=Ee,Ee.displayName="coq",Ee.aliases=[];function Ee(le){(function(ce){for(var Pe=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,Me=0;Me<2;Me++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,"[]"),ce.languages.coq={comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Pe})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(le)}},87071:function(Re,Ee,le){"use strict";var ce=le(79440);Re.exports=Pe,Pe.displayName="cpp",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){var je=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Te=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return je.source});Ie.languages.cpp=Ie.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return je.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:je,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),Ie.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Te})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Ie.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Ie.languages.cpp}}}}),Ie.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Ie.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Ie.languages.extend("cpp",{})}}),Ie.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Ie.languages.cpp["base-clause"])}(Me)}},13652:function(Re,Ee,le){"use strict";var ce=le(75308);Re.exports=Pe,Pe.displayName="crystal",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.crystal=Ie.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,Ie.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Ie.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:Ie.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Ie.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(Me)}},87648:function(Re){"use strict";Re.exports=Ee,Ee.displayName="csharp",Ee.aliases=["dotnet","cs"];function Ee(le){(function(ce){function Pe(fn,bt){return fn.replace(/<<(\d+)>>/g,function(dt,ct){return"(?:"+bt[+ct]+")"})}function Me(fn,bt,dt){return RegExp(Pe(fn,bt),dt||"")}function Ie(fn,bt){for(var dt=0;dt<bt;dt++)fn=fn.replace(/<<self>>/g,function(){return"(?:"+fn+")"});return fn.replace(/<<self>>/g,"[^\\s\\S]")}var je={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Te(fn){return"\\b(?:"+fn.trim().replace(/ /g,"|")+")\\b"}var Ge=Te(je.typeDeclaration),st=RegExp(Te(je.type+" "+je.typeDeclaration+" "+je.contextual+" "+je.other)),Qe=Te(je.typeDeclaration+" "+je.contextual+" "+je.other),We=Te(je.type+" "+je.typeDeclaration+" "+je.other),mt=Ie(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),it=Ie(/\((?:[^()]|<<self>>)*\)/.source,2),kt=/@?\b[A-Za-z_]\w*\b/.source,Fe=Pe(/<<0>>(?:\s*<<1>>)?/.source,[kt,mt]),ne=Pe(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Qe,Fe]),te=/\[\s*(?:,\s*)*\]/.source,he=Pe(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[ne,te]),se=Pe(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[mt,it,te]),ge=Pe(/\(<<0>>+(?:,<<0>>+)+\)/.source,[se]),ye=Pe(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[ge,ne,te]),be={keyword:st,punctuation:/[<>()?,.:[\]]/},Ae=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Le=/"(?:\\.|[^\\"\r\n])*"/.source,Ve=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;ce.languages.csharp=ce.languages.extend("clike",{string:[{pattern:Me(/(^|[^$\\])<<0>>/.source,[Ve]),lookbehind:!0,greedy:!0},{pattern:Me(/(^|[^@$\\])<<0>>/.source,[Le]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Me(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[ne]),lookbehind:!0,inside:be},{pattern:Me(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[kt,ye]),lookbehind:!0,inside:be},{pattern:Me(/(\busing\s+)<<0>>(?=\s*=)/.source,[kt]),lookbehind:!0},{pattern:Me(/(\b<<0>>\s+)<<1>>/.source,[Ge,Fe]),lookbehind:!0,inside:be},{pattern:Me(/(\bcatch\s*\(\s*)<<0>>/.source,[ne]),lookbehind:!0,inside:be},{pattern:Me(/(\bwhere\s+)<<0>>/.source,[kt]),lookbehind:!0},{pattern:Me(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:be},{pattern:Me(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[ye,We,kt]),inside:be}],keyword:st,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),ce.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),ce.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Me(/([(,]\s*)<<0>>(?=\s*:)/.source,[kt]),lookbehind:!0,alias:"punctuation"}}),ce.languages.insertBefore("csharp","class-name",{namespace:{pattern:Me(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[kt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Me(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[it]),lookbehind:!0,alias:"class-name",inside:be},"return-type":{pattern:Me(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[ye,ne]),inside:be,alias:"class-name"},"constructor-invocation":{pattern:Me(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[ye]),lookbehind:!0,inside:be,alias:"class-name"},"generic-method":{pattern:Me(/<<0>>\s*<<1>>(?=\s*\()/.source,[kt,mt]),inside:{function:Me(/^<<0>>/.source,[kt]),generic:{pattern:RegExp(mt),alias:"class-name",inside:be}}},"type-list":{pattern:Me(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[Ge,Fe,kt,ye,st.source,it,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Me(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Fe,it]),lookbehind:!0,greedy:!0,inside:ce.languages.csharp},keyword:st,"class-name":{pattern:RegExp(ye),greedy:!0,inside:be},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var et=Le+"|"+Ae,Je=Pe(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[et]),rt=Ie(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Je]),2),at=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,tt=Pe(/<<0>>(?:\s*\(<<1>>*\))?/.source,[ne,rt]);ce.languages.insertBefore("csharp","class-name",{attribute:{pattern:Me(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[at,tt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Me(/^<<0>>(?=\s*:)/.source,[at]),alias:"keyword"},"attribute-arguments":{pattern:Me(/\(<<0>>*\)/.source,[rt]),inside:ce.languages.csharp},"class-name":{pattern:RegExp(ne),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Et=/:[^}\r\n]+/.source,Lt=Ie(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Je]),2),Ut=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Lt,Et]),on=Ie(Pe(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[et]),2),an=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[on,Et]);function Kt(fn,bt){return{interpolation:{pattern:Me(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[fn]),lookbehind:!0,inside:{"format-string":{pattern:Me(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[bt,Et]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:ce.languages.csharp}}},string:/[\s\S]+/}}ce.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Me(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Ut]),lookbehind:!0,greedy:!0,inside:Kt(Ut,Lt)},{pattern:Me(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[an]),lookbehind:!0,greedy:!0,inside:Kt(an,on)}],char:{pattern:RegExp(Ae),greedy:!0}}),ce.languages.dotnet=ce.languages.cs=ce.languages.csharp})(le)}},10617:function(Re,Ee,le){"use strict";var ce=le(87648);Re.exports=Pe,Pe.displayName="cshtml",Pe.aliases=["razor"];function Pe(Me){Me.register(ce),function(Ie){var je=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Te=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ge(he,se){for(var ge=0;ge<se;ge++)he=he.replace(/<self>/g,function(){return"(?:"+he+")"});return he.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Te+")").replace(/<comment>/g,"(?:"+je+")")}var st=Ge(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Qe=Ge(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),We=Ge(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),mt=Ge(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),it=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,kt=/(?!\d)[^\s>\/=$<%]+/.source+it+/\s*\/?>/.source,Fe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+it+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+kt+"|"+Ge(/<\1/.source+it+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+kt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+kt+")";Ie.languages.cshtml=Ie.languages.extend("markup",{});var ne=Ie.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Fe),greedy:!0,inside:Ie.languages.cshtml}},{csharp:Ie.languages.extend("csharp",{})}),te={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:ne};Ie.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[We,/(?:code|functions)\s*/.source+We,/(?:for|foreach|lock|switch|using|while)\s*/.source+st+/\s*/.source+We,/do\s*/.source+We+/\s*while\s*/.source+st+/(?:\s*;)?/.source,/try\s*/.source+We+/\s*catch\s*/.source+st+/\s*/.source+We+/\s*finally\s*/.source+We,/if\s*/.source+st+/\s*/.source+We+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+st+")?"+/\s*/.source+We+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:te}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:te}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+st+")(?:"+/[?!]?\.\w+\b/.source+"|"+st+"|"+Qe+"|"+mt+st+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:te}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Ie.languages.razor=Ie.languages.cshtml}(Me)}},5348:function(Re){"use strict";Re.exports=Ee,Ee.displayName="csp",Ee.aliases=[];function Ee(le){(function(ce){function Pe(Me){return RegExp(/([ \t])/.source+"(?:"+Me+")"+/(?=[\s;]|$)/.source,"i")}ce.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:Pe(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Pe(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Pe(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Pe(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Pe(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Pe(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Pe(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(le)}},71053:function(Re){"use strict";Re.exports=Ee,Ee.displayName="cssExtras",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Me;ce.languages.css.selector={pattern:ce.languages.css.selector.pattern,lookbehind:!0,inside:Me={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Pe.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Pe,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},ce.languages.css.atrule.inside["selector-function-argument"].inside=Me,ce.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Ie={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},je={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};ce.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Ie,number:je,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ie,number:je})})(le)}},54212:function(Re){"use strict";Re.exports=Ee,Ee.displayName="css",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;ce.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Pe.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Pe.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Pe.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Pe,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},ce.languages.css.atrule.inside.rest=ce.languages.css;var Me=ce.languages.markup;Me&&(Me.tag.addInlined("style","css"),Me.tag.addAttribute("style","css"))})(le)}},69820:function(Re){"use strict";Re.exports=Ee,Ee.displayName="csv",Ee.aliases=[];function Ee(le){le.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Re){"use strict";Re.exports=Ee,Ee.displayName="cypher",Ee.aliases=[];function Ee(le){le.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(Re){"use strict";Re.exports=Ee,Ee.displayName="d",Ee.aliases=[];function Ee(le){le.languages.d=le.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),le.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),le.languages.insertBefore("d","keyword",{property:/\B@\w*/}),le.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(Re){"use strict";Re.exports=Ee,Ee.displayName="dart",Ee.aliases=[];function Ee(le){(function(ce){var Pe=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],Me=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(Me+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};ce.languages.dart=ce.languages.extend("clike",{"class-name":[Ie,{pattern:RegExp(Me+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Pe,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),ce.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:ce.languages.dart}}},string:/[\s\S]+/}},string:void 0}),ce.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),ce.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Ie,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(le)}},22117:function(Re){"use strict";Re.exports=Ee,Ee.displayName="dataweave",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(le)}},95627:function(Re){"use strict";Re.exports=Ee,Ee.displayName="dax",Ee.aliases=[];function Ee(le){le.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(Re){"use strict";Re.exports=Ee,Ee.displayName="dhall",Ee.aliases=[];function Ee(le){le.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},le.languages.dhall.string.inside.interpolation.inside.expression.inside=le.languages.dhall}},50618:function(Re){"use strict";Re.exports=Ee,Ee.displayName="diff",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Pe={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Pe).forEach(function(Me){var Ie=Pe[Me],je=[];/^\w+$/.test(Me)||je.push(/\w+/.exec(Me)[0]),Me==="diff"&&je.push("bold"),ce.languages.diff[Me]={pattern:RegExp("^(?:["+Ie+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:je,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Me)[0]}}}}),Object.defineProperty(ce.languages.diff,"PREFIXES",{value:Pe})})(le)}},32126:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="django",Pe.aliases=["jinja2"];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var je=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Te=Ie.languages["markup-templating"];Ie.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"django",je)}),Ie.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"django")}),Ie.languages.jinja2=Ie.languages.django,Ie.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"jinja2",je)}),Ie.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"jinja2")})}(Me)}},26737:function(Re){"use strict";Re.exports=Ee,Ee.displayName="dnsZoneFile",Ee.aliases=[];function Ee(le){le.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},le.languages["dns-zone"]=le.languages["dns-zone-file"]}},90134:function(Re){"use strict";Re.exports=Ee,Ee.displayName="docker",Ee.aliases=["dockerfile"];function Ee(le){(function(ce){var Pe=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Me=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Pe}),Ie=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,je=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Ie}),Te={pattern:RegExp(Ie),greedy:!0},Ge={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function st(Qe,We){return Qe=Qe.replace(/<OPT>/g,function(){return je}).replace(/<SP>/g,function(){return Me}),RegExp(Qe,We)}ce.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:st(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Te,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:st(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:st(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:st(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ge,string:Te,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Ge},ce.languages.dockerfile=ce.languages.docker})(le)}},51348:function(Re){"use strict";Re.exports=Ee,Ee.displayName="dot",Ee.aliases=["gv"];function Ee(le){(function(ce){var Pe="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",Me={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:ce.languages.markup}};function Ie(je,Te){return RegExp(je.replace(/<ID>/g,function(){return Pe}),Te)}ce.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Ie(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Me},"attr-value":{pattern:Ie(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:Me},"attr-name":{pattern:Ie(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Me},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Ie(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:Me},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},ce.languages.gv=ce.languages.dot})(le)}},60841:function(Re){"use strict";Re.exports=Ee,Ee.displayName="ebnf",Ee.aliases=[];function Ee(le){le.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(Re){"use strict";Re.exports=Ee,Ee.displayName="editorconfig",Ee.aliases=[];function Ee(le){le.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(Re){"use strict";Re.exports=Ee,Ee.displayName="eiffel",Ee.aliases=[];function Ee(le){le.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="ejs",Pe.aliases=["eta"];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Ie.languages.javascript}},Ie.hooks.add("before-tokenize",function(je){var Te=/<%(?!%)[\s\S]+?%>/g;Ie.languages["markup-templating"].buildPlaceholders(je,"ejs",Te)}),Ie.hooks.add("after-tokenize",function(je){Ie.languages["markup-templating"].tokenizePlaceholders(je,"ejs")}),Ie.languages.eta=Ie.languages.ejs}(Me)}},83125:function(Re){"use strict";Re.exports=Ee,Ee.displayName="elixir",Ee.aliases=[];function Ee(le){le.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},le.languages.elixir.string.forEach(function(ce){ce.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:le.languages.elixir}}}})}},9438:function(Re){"use strict";Re.exports=Ee,Ee.displayName="elm",Ee.aliases=[];function Ee(le){le.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(Re,Ee,le){"use strict";var ce=le(75308),Pe=le(51478);Re.exports=Me,Me.displayName="erb",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),function(je){je.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:je.languages.ruby}},je.hooks.add("before-tokenize",function(Te){var Ge=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;je.languages["markup-templating"].buildPlaceholders(Te,"erb",Ge)}),je.hooks.add("after-tokenize",function(Te){je.languages["markup-templating"].tokenizePlaceholders(Te,"erb")})}(Ie)}},86549:function(Re){"use strict";Re.exports=Ee,Ee.displayName="erlang",Ee.aliases=[];function Ee(le){le.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(Re,Ee,le){"use strict";var ce=le(33978),Pe=le(51478);Re.exports=Me,Me.displayName="etlua",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),function(je){je.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:je.languages.lua}},je.hooks.add("before-tokenize",function(Te){var Ge=/<%[\s\S]+?%>/g;je.languages["markup-templating"].buildPlaceholders(Te,"etlua",Ge)}),je.hooks.add("after-tokenize",function(Te){je.languages["markup-templating"].tokenizePlaceholders(Te,"etlua")})}(Ie)}},59250:function(Re){"use strict";Re.exports=Ee,Ee.displayName="excelFormula",Ee.aliases=[];function Ee(le){le.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},le.languages.xlsx=le.languages.xls=le.languages["excel-formula"]}},81226:function(Re){"use strict";Re.exports=Ee,Ee.displayName="factor",Ee.aliases=[];function Ee(le){(function(ce){var Pe={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Me={number:/\\[^\s']|%\w/},Ie={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Pe},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:Me.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Me},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Me}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:Me}},je=function(Qe){return(Qe+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Te=function(Qe){return new RegExp("(^|\\s)(?:"+Qe.map(je).join("|")+")(?=\\s|$)")},Ge={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(Ge).forEach(function(Qe){Ie[Qe].pattern=Te(Ge[Qe])});var st=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];Ie.combinators.pattern=Te(st),ce.languages.factor=Ie})(le)}},65245:function(Re){"use strict";Re.exports=Ee,Ee.displayName="$false",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(le)}},25040:function(Re){"use strict";Re.exports=Ee,Ee.displayName="firestoreSecurityRules",Ee.aliases=[];function Ee(le){le.languages["firestore-security-rules"]=le.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete le.languages["firestore-security-rules"]["class-name"],le.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(Re){"use strict";Re.exports=Ee,Ee.displayName="flow",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.flow=ce.languages.extend("javascript",{}),ce.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),ce.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete ce.languages.flow.parameter,ce.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(ce.languages.flow.keyword)||(ce.languages.flow.keyword=[ce.languages.flow.keyword]),ce.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(le)}},39187:function(Re){"use strict";Re.exports=Ee,Ee.displayName="fortran",Ee.aliases=[];function Ee(le){le.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(Re){"use strict";Re.exports=Ee,Ee.displayName="fsharp",Ee.aliases=[];function Ee(le){le.languages.fsharp=le.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),le.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),le.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),le.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:le.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="ftl",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){for(var je=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Te=0;Te<2;Te++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var Ge={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return je})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return je})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ge.string[1].inside.interpolation.inside.rest=Ge,Ie.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}}},Ie.hooks.add("before-tokenize",function(st){var Qe=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return je}),"gi");Ie.languages["markup-templating"].buildPlaceholders(st,"ftl",Qe)}),Ie.hooks.add("after-tokenize",function(st){Ie.languages["markup-templating"].tokenizePlaceholders(st,"ftl")})}(Me)}},33534:function(Re){"use strict";Re.exports=Ee,Ee.displayName="gap",Ee.aliases=[];function Ee(le){le.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},le.languages.gap.shell.inside.gap.inside=le.languages.gap}},9885:function(Re){"use strict";Re.exports=Ee,Ee.displayName="gcode",Ee.aliases=[];function Ee(le){le.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(Re){"use strict";Re.exports=Ee,Ee.displayName="gdscript",Ee.aliases=[];function Ee(le){le.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(Re){"use strict";Re.exports=Ee,Ee.displayName="gedcom",Ee.aliases=[];function Ee(le){le.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(Re){"use strict";Re.exports=Ee,Ee.displayName="gherkin",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;ce.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+Pe+")(?:"+Pe+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Pe),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(le)}},58230:function(Re){"use strict";Re.exports=Ee,Ee.displayName="git",Ee.aliases=[];function Ee(le){le.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(Re,Ee,le){"use strict";var ce=le(79440);Re.exports=Pe,Pe.displayName="glsl",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.glsl=Me.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(Re){"use strict";Re.exports=Ee,Ee.displayName="gml",Ee.aliases=[];function Ee(le){le.languages.gamemakerlanguage=le.languages.gml=le.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(Re){"use strict";Re.exports=Ee,Ee.displayName="gn",Ee.aliases=["gni"];function Ee(le){le.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},le.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=le.languages.gn,le.languages.gni=le.languages.gn}},95769:function(Re){"use strict";Re.exports=Ee,Ee.displayName="goModule",Ee.aliases=[];function Ee(le){le.languages["go-mod"]=le.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(Re){"use strict";Re.exports=Ee,Ee.displayName="go",Ee.aliases=[];function Ee(le){le.languages.go=le.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),le.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete le.languages.go["class-name"]}},92823:function(Re){"use strict";Re.exports=Ee,Ee.displayName="graphql",Ee.aliases=[];function Ee(le){le.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:le.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},le.hooks.add("after-tokenize",function(Pe){if(Pe.language!=="graphql")return;var Me=Pe.tokens.filter(function(te){return typeof te!="string"&&te.type!=="comment"&&te.type!=="scalar"}),Ie=0;function je(te){return Me[Ie+te]}function Te(te,he){he=he||0;for(var se=0;se<te.length;se++){var ge=je(se+he);if(!ge||ge.type!==te[se])return!1}return!0}function Ge(te,he){for(var se=1,ge=Ie;ge<Me.length;ge++){var ye=Me[ge],be=ye.content;if(ye.type==="punctuation"&&typeof be=="string"){if(te.test(be))se++;else if(he.test(be)&&(se--,se===0))return ge}}return-1}function st(te,he){var se=te.alias;se?Array.isArray(se)||(te.alias=se=[se]):te.alias=se=[],se.push(he)}for(;Ie<Me.length;){var Qe=Me[Ie++];if(Qe.type==="keyword"&&Qe.content==="mutation"){var We=[];if(Te(["definition-mutation","punctuation"])&&je(1).content==="("){Ie+=2;var mt=Ge(/^\($/,/^\)$/);if(mt===-1)continue;for(;Ie<mt;Ie++){var it=je(0);it.type==="variable"&&(st(it,"variable-input"),We.push(it.content))}Ie=mt+1}if(Te(["punctuation","property-query"])&&je(0).content==="{"&&(Ie++,st(je(0),"property-mutation"),We.length>0)){var kt=Ge(/^\{$/,/^\}$/);if(kt===-1)continue;for(var Fe=Ie;Fe<kt;Fe++){var ne=Me[Fe];ne.type==="variable"&&We.indexOf(ne.content)>=0&&st(ne,"variable-input")}}}}})}},63092:function(Re){"use strict";Re.exports=Ee,Ee.displayName="groovy",Ee.aliases=[];function Ee(le){le.languages.groovy=le.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),le.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),le.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),le.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),le.hooks.add("wrap",function(ce){if(ce.language==="groovy"&&ce.type==="string"){var Pe=ce.content.value[0];if(Pe!="'"){var Me=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Pe==="$"&&(Me=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),ce.content.value=ce.content.value.replace(/</g,"<").replace(/&/g,"&"),ce.content=le.highlight(ce.content.value,{expression:{pattern:Me,lookbehind:!0,inside:le.languages.groovy}}),ce.classes.push(Pe==="/"?"regex":"gstring")}}})}},21550:function(Re,Ee,le){"use strict";var ce=le(75308);Re.exports=Pe,Pe.displayName="haml",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:Ie.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Ie.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:Ie.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:Ie.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Ie.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Ie.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Ie.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var je="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Te=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ge={},st=0,Qe=Te.length;st<Qe;st++){var We=Te[st];We=typeof We=="string"?{filter:We,language:We}:We,Ie.languages[We.language]&&(Ge["filter-"+We.filter]={pattern:RegExp(je.replace("{{filter_name}}",function(){return We.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[We.language,"language-"+We.language],inside:Ie.languages[We.language]}}})}Ie.languages.insertBefore("haml","filter",Ge)}(Me)}},29710:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="handlebars",Pe.aliases=["hbs"];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},Ie.hooks.add("before-tokenize",function(je){var Te=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Ie.languages["markup-templating"].buildPlaceholders(je,"handlebars",Te)}),Ie.hooks.add("after-tokenize",function(je){Ie.languages["markup-templating"].tokenizePlaceholders(je,"handlebars")}),Ie.languages.hbs=Ie.languages.handlebars}(Me)}},2050:function(Re){"use strict";Re.exports=Ee,Ee.displayName="haskell",Ee.aliases=["hs"];function Ee(le){le.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},le.languages.hs=le.languages.haskell}},67967:function(Re){"use strict";Re.exports=Ee,Ee.displayName="haxe",Ee.aliases=[];function Ee(le){le.languages.haxe=le.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),le.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:le.languages.haxe}}},string:/[\s\S]+/}}}),le.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:le.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),le.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(Re){"use strict";Re.exports=Ee,Ee.displayName="hcl",Ee.aliases=[];function Ee(le){le.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(Re,Ee,le){"use strict";var ce=le(79440);Re.exports=Pe,Pe.displayName="hlsl",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.hlsl=Me.languages.extend("c",{"class-name":[Me.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(Re){"use strict";Re.exports=Ee,Ee.displayName="hoon",Ee.aliases=[];function Ee(le){le.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(Re){"use strict";Re.exports=Ee,Ee.displayName="hpkp",Ee.aliases=[];function Ee(le){le.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(Re){"use strict";Re.exports=Ee,Ee.displayName="hsts",Ee.aliases=[];function Ee(le){le.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Re){"use strict";Re.exports=Ee,Ee.displayName="http",Ee.aliases=[];function Ee(le){(function(ce){function Pe(We){return RegExp("(^(?:"+We+"):[ ]*(?![ ]))[^]+","i")}ce.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:ce.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:Pe(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:ce.languages.csp},{pattern:Pe(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:ce.languages.hpkp},{pattern:Pe(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:ce.languages.hsts},{pattern:Pe(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Me=ce.languages,Ie={"application/javascript":Me.javascript,"application/json":Me.json||Me.javascript,"application/xml":Me.xml,"text/xml":Me.xml,"text/html":Me.html,"text/css":Me.css,"text/plain":Me.plain},je={"application/json":!0,"application/xml":!0};function Te(We){var mt=We.replace(/^[a-z]+\//,""),it="\\w+/(?:[\\w.-]+\\+)+"+mt+"(?![+\\w.-])";return"(?:"+We+"|"+it+")"}var Ge;for(var st in Ie)if(Ie[st]){Ge=Ge||{};var Qe=je[st]?Te(st):st;Ge[st.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Qe+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Ie[st]}}Ge&&ce.languages.insertBefore("http","header",Ge)})(le)}},72252:function(Re){"use strict";Re.exports=Ee,Ee.displayName="ichigojam",Ee.aliases=[];function Ee(le){le.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(Re){"use strict";Re.exports=Ee,Ee.displayName="icon",Ee.aliases=[];function Ee(le){le.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(Re){"use strict";Re.exports=Ee,Ee.displayName="icuMessageFormat",Ee.aliases=[];function Ee(le){(function(ce){function Pe(st,Qe){return Qe<=0?/[]/.source:st.replace(/<SELF>/g,function(){return Pe(st,Qe-1)})}var Me=/'[{}:=,](?:[^']|'')*'(?!')/,Ie={pattern:/''/,greedy:!0,alias:"operator"},je={pattern:Me,greedy:!0,inside:{escape:Ie}},Te=Pe(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return Me.source}),8),Ge={pattern:RegExp(Te),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};ce.languages["icu-message-format"]={argument:{pattern:RegExp(Te),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":Ge,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":Ge,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+Pe(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Ie,string:je},Ge.inside.message.inside=ce.languages["icu-message-format"],ce.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=ce.languages["icu-message-format"]})(le)}},23328:function(Re,Ee,le){"use strict";var ce=le(2050);Re.exports=Pe,Pe.displayName="idris",Pe.aliases=["idr"];function Pe(Me){Me.register(ce),Me.languages.idris=Me.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),Me.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),Me.languages.idr=Me.languages.idris}},74494:function(Re){"use strict";Re.exports=Ee,Ee.displayName="iecst",Ee.aliases=[];function Ee(le){le.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(Re){"use strict";Re.exports=Ee,Ee.displayName="ignore",Ee.aliases=["gitignore","hgignore","npmignore"];function Ee(le){(function(ce){ce.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},ce.languages.gitignore=ce.languages.ignore,ce.languages.hgignore=ce.languages.ignore,ce.languages.npmignore=ce.languages.ignore})(le)}},22152:function(Re){"use strict";Re.exports=Ee,Ee.displayName="inform7",Ee.aliases=[];function Ee(le){le.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},le.languages.inform7.string.inside.substitution.inside.rest=le.languages.inform7,le.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(Re){"use strict";Re.exports=Ee,Ee.displayName="ini",Ee.aliases=[];function Ee(le){le.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(Re){"use strict";Re.exports=Ee,Ee.displayName="io",Ee.aliases=[];function Ee(le){le.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(Re){"use strict";Re.exports=Ee,Ee.displayName="j",Ee.aliases=[];function Ee(le){le.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(Re){"use strict";Re.exports=Ee,Ee.displayName="java",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Me=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(Me+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};ce.languages.java=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Ie,{pattern:RegExp(Me+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Pe,function:[ce.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),ce.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),ce.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":Ie,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Pe.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(le)}},4005:function(Re,Ee,le){"use strict";var ce=le(7093),Pe=le(53510);Re.exports=Me,Me.displayName="javadoc",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),function(je){var Te=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ge=/#\s*\w+(?:\s*\([^()]*\))?/.source,st=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Ge});je.languages.javadoc=je.languages.extend("javadoclike",{}),je.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+st+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:je.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Te,lookbehind:!0,inside:je.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Te,lookbehind:!0,inside:{tag:je.languages.markup.tag,entity:je.languages.markup.entity,code:{pattern:/.+/,inside:je.languages.java,alias:"language-java"}}}}}],tag:je.languages.markup.tag,entity:je.languages.markup.entity}),je.languages.javadoclike.addSupport("java",je.languages.javadoc)}(Ie)}},53510:function(Re){"use strict";Re.exports=Ee,Ee.displayName="javadoclike",Ee.aliases=[];function Ee(le){(function(ce){var Pe=ce.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function Me(je,Te){var Ge="doc-comment",st=ce.languages[je];if(st){var Qe=st[Ge];if(!Qe){var We={};We[Ge]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},st=ce.languages.insertBefore(je,"comment",We),Qe=st[Ge]}if(Qe instanceof RegExp&&(Qe=st[Ge]={pattern:Qe}),Array.isArray(Qe))for(var mt=0,it=Qe.length;mt<it;mt++)Qe[mt]instanceof RegExp&&(Qe[mt]={pattern:Qe[mt]}),Te(Qe[mt]);else Te(Qe)}}function Ie(je,Te){typeof je=="string"&&(je=[je]),je.forEach(function(Ge){Me(Ge,function(st){st.inside||(st.inside={}),st.inside.rest=Te})})}Object.defineProperty(Pe,"addSupport",{value:Ie}),Pe.addSupport(["java","javascript","php"],Pe)})(le)}},88786:function(Re){"use strict";Re.exports=Ee,Ee.displayName="javascript",Ee.aliases=["js"];function Ee(le){le.languages.javascript=le.languages.extend("clike",{"class-name":[le.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),le.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,le.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:le.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:le.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:le.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:le.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:le.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),le.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:le.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),le.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),le.languages.markup&&(le.languages.markup.tag.addInlined("script","javascript"),le.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),le.languages.js=le.languages.javascript}},24799:function(Re){"use strict";Re.exports=Ee,Ee.displayName="javastacktrace",Ee.aliases=[];function Ee(le){le.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(Re){"use strict";Re.exports=Ee,Ee.displayName="jexl",Ee.aliases=[];function Ee(le){le.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(Re){"use strict";Re.exports=Ee,Ee.displayName="jolie",Ee.aliases=[];function Ee(le){le.languages.jolie=le.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),le.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(Re){"use strict";Re.exports=Ee,Ee.displayName="jq",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\\\((?:[^()]|\([^()]*\))*\)/.source,Me=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Pe})),Ie={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Pe),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},je=ce.languages.jq={comment:/#.*/,property:{pattern:RegExp(Me.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Ie},string:{pattern:Me,lookbehind:!0,greedy:!0,inside:Ie},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};Ie.interpolation.inside.content.inside=je})(le)}},89246:function(Re){"use strict";Re.exports=Ee,Ee.displayName="jsExtras",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+ce.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),ce.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+ce.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),ce.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function Pe(st,Qe){return RegExp(st.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Qe)}ce.languages.insertBefore("javascript","keyword",{imports:{pattern:Pe(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:ce.languages.javascript},exports:{pattern:Pe(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:ce.languages.javascript}}),ce.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),ce.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),ce.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Pe(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Me=["function","function-variable","method","method-variable","property-access"],Ie=0;Ie<Me.length;Ie++){var je=Me[Ie],Te=ce.languages.javascript[je];ce.util.type(Te)==="RegExp"&&(Te=ce.languages.javascript[je]={pattern:Te});var Ge=Te.inside||{};Te.inside=Ge,Ge["maybe-class-name"]=/^[A-Z][\s\S]*/}})(le)}},487:function(Re){"use strict";Re.exports=Ee,Ee.displayName="jsTemplates",Ee.aliases=[];function Ee(le){(function(ce){var Pe=ce.languages.javascript["template-string"],Me=Pe.pattern.source,Ie=Pe.inside.interpolation,je=Ie.inside["interpolation-punctuation"],Te=Ie.pattern.source;function Ge(Fe,ne){if(ce.languages[Fe])return{pattern:RegExp("((?:"+ne+")\\s*)"+Me),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Fe}}}}ce.languages.javascript["template-string"]=[Ge("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Ge("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Ge("svg",/\bsvg/.source),Ge("markdown",/\b(?:markdown|md)/.source),Ge("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Ge("sql",/\bsql/.source),Pe].filter(Boolean);function st(Fe,ne){return"___"+ne.toUpperCase()+"_"+Fe+"___"}function Qe(Fe,ne,te){var he={code:Fe,grammar:ne,language:te};return ce.hooks.run("before-tokenize",he),he.tokens=ce.tokenize(he.code,he.grammar),ce.hooks.run("after-tokenize",he),he.tokens}function We(Fe){var ne={};ne["interpolation-punctuation"]=je;var te=ce.tokenize(Fe,ne);if(te.length===3){var he=[1,1];he.push.apply(he,Qe(te[1],ce.languages.javascript,"javascript")),te.splice.apply(te,he)}return new ce.Token("interpolation",te,Ie.alias,Fe)}function mt(Fe,ne,te){var he=ce.tokenize(Fe,{interpolation:{pattern:RegExp(Te),lookbehind:!0}}),se=0,ge={},ye=he.map(function(Ve){if(typeof Ve=="string")return Ve;for(var et=Ve.content,Je;Fe.indexOf(Je=st(se++,te))!==-1;);return ge[Je]=et,Je}).join(""),be=Qe(ye,ne,te),Ae=Object.keys(ge);se=0;function Le(Ve){for(var et=0;et<Ve.length;et++){if(se>=Ae.length)return;var Je=Ve[et];if(typeof Je=="string"||typeof Je.content=="string"){var rt=Ae[se],at=typeof Je=="string"?Je:Je.content,tt=at.indexOf(rt);if(tt!==-1){++se;var Et=at.substring(0,tt),Lt=We(ge[rt]),Ut=at.substring(tt+rt.length),on=[];if(Et&&on.push(Et),on.push(Lt),Ut){var an=[Ut];Le(an),on.push.apply(on,an)}typeof Je=="string"?(Ve.splice.apply(Ve,[et,1].concat(on)),et+=on.length-1):Je.content=on}}else{var Kt=Je.content;Array.isArray(Kt)?Le(Kt):Le([Kt])}}}return Le(be),new ce.Token(te,be,"language-"+te,Fe)}var it={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};ce.hooks.add("after-tokenize",function(Fe){if(!(Fe.language in it))return;function ne(te){for(var he=0,se=te.length;he<se;he++){var ge=te[he];if(typeof ge!="string"){var ye=ge.content;if(!Array.isArray(ye)){typeof ye!="string"&&ne([ye]);continue}if(ge.type==="template-string"){var be=ye[1];if(ye.length===3&&typeof be!="string"&&be.type==="embedded-code"){var Ae=kt(be),Le=be.alias,Ve=Array.isArray(Le)?Le[0]:Le,et=ce.languages[Ve];if(!et)continue;ye[1]=mt(Ae,et,Ve)}}else ne(ye)}}}ne(Fe.tokens)});function kt(Fe){return typeof Fe=="string"?Fe:Array.isArray(Fe)?Fe.map(kt).join(""):kt(Fe.content)}})(le)}},79539:function(Re,Ee,le){"use strict";var ce=le(53510),Pe=le(92784);Re.exports=Me,Me.displayName="jsdoc",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),function(je){var Te=je.languages.javascript,Ge=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,st="(@(?:arg|argument|param|property)\\s+(?:"+Ge+"\\s+)?)";je.languages.jsdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp(st+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),je.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(st+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Te,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return Ge})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ge),lookbehind:!0,inside:{string:Te.string,number:Te.number,boolean:Te.boolean,keyword:je.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Te,alias:"language-javascript"}}}}),je.languages.javadoclike.addSupport("javascript",je.languages.jsdoc)}(Ie)}},15628:function(Re){"use strict";Re.exports=Ee,Ee.displayName="json",Ee.aliases=["webmanifest"];function Ee(le){le.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},le.languages.webmanifest=le.languages.json}},14320:function(Re,Ee,le){"use strict";var ce=le(15628);Re.exports=Pe,Pe.displayName="json5",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){var je=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Ie.languages.json5=Ie.languages.extend("json",{property:[{pattern:RegExp(je.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:je,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Me)}},73222:function(Re,Ee,le){"use strict";var ce=le(15628);Re.exports=Pe,Pe.displayName="jsonp",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.jsonp=Me.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Me.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(Re){"use strict";Re.exports=Ee,Ee.displayName="jsstacktrace",Ee.aliases=[];function Ee(le){le.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(Re){"use strict";Re.exports=Ee,Ee.displayName="jsx",Ee.aliases=[];function Ee(le){(function(ce){var Pe=ce.util.clone(ce.languages.javascript),Me=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Ie=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,je=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Te(Qe,We){return Qe=Qe.replace(/<S>/g,function(){return Me}).replace(/<BRACES>/g,function(){return Ie}).replace(/<SPREAD>/g,function(){return je}),RegExp(Qe,We)}je=Te(je).source,ce.languages.jsx=ce.languages.extend("markup",Pe),ce.languages.jsx.tag.pattern=Te(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),ce.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,ce.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,ce.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,ce.languages.jsx.tag.inside.comment=Pe.comment,ce.languages.insertBefore("inside","attr-name",{spread:{pattern:Te(/<SPREAD>/.source),inside:ce.languages.jsx}},ce.languages.jsx.tag),ce.languages.insertBefore("inside","special-attr",{script:{pattern:Te(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:ce.languages.jsx}}},ce.languages.jsx.tag);var Ge=function(Qe){return Qe?typeof Qe=="string"?Qe:typeof Qe.content=="string"?Qe.content:Qe.content.map(Ge).join(""):""},st=function(Qe){for(var We=[],mt=0;mt<Qe.length;mt++){var it=Qe[mt],kt=!1;if(typeof it!="string"&&(it.type==="tag"&&it.content[0]&&it.content[0].type==="tag"?it.content[0].content[0].content==="</"?We.length>0&&We[We.length-1].tagName===Ge(it.content[0].content[1])&&We.pop():it.content[it.content.length-1].content==="/>"||We.push({tagName:Ge(it.content[0].content[1]),openedBraces:0}):We.length>0&&it.type==="punctuation"&&it.content==="{"?We[We.length-1].openedBraces++:We.length>0&&We[We.length-1].openedBraces>0&&it.type==="punctuation"&&it.content==="}"?We[We.length-1].openedBraces--:kt=!0),(kt||typeof it=="string")&&We.length>0&&We[We.length-1].openedBraces===0){var Fe=Ge(it);mt<Qe.length-1&&(typeof Qe[mt+1]=="string"||Qe[mt+1].type==="plain-text")&&(Fe+=Ge(Qe[mt+1]),Qe.splice(mt+1,1)),mt>0&&(typeof Qe[mt-1]=="string"||Qe[mt-1].type==="plain-text")&&(Fe=Ge(Qe[mt-1])+Fe,Qe.splice(mt-1,1),mt--),Qe[mt]=new ce.Token("plain-text",Fe,null,Fe)}it.content&&typeof it.content!="string"&&st(it.content)}};ce.hooks.add("after-tokenize",function(Qe){Qe.language!=="jsx"&&Qe.language!=="tsx"||st(Qe.tokens)})})(le)}},40604:function(Re){"use strict";Re.exports=Ee,Ee.displayName="julia",Ee.aliases=[];function Ee(le){le.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(Re){"use strict";Re.exports=Ee,Ee.displayName="keepalived",Ee.aliases=[];function Ee(le){le.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(Re){"use strict";Re.exports=Ee,Ee.displayName="keyman",Ee.aliases=[];function Ee(le){le.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(Re){"use strict";Re.exports=Ee,Ee.displayName="kotlin",Ee.aliases=["kt","kts"];function Ee(le){(function(ce){ce.languages.kotlin=ce.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete ce.languages.kotlin["class-name"];var Pe={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:ce.languages.kotlin}};ce.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Pe},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Pe},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete ce.languages.kotlin.string,ce.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),ce.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),ce.languages.kt=ce.languages.kotlin,ce.languages.kts=ce.languages.kotlin})(le)}},37524:function(Re){"use strict";Re.exports=Ee,Ee.displayName="kumir",Ee.aliases=["kum"];function Ee(le){(function(ce){var Pe=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Me(Ie,je){return RegExp(Ie.replace(/<nonId>/g,Pe),je)}ce.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Me(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:Me(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Me(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Me(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Me(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Me(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:Me(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:Me(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},ce.languages.kum=ce.languages.kumir})(le)}},6658:function(Re){"use strict";Re.exports=Ee,Ee.displayName="kusto",Ee.aliases=[];function Ee(le){le.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(Re){"use strict";Re.exports=Ee,Ee.displayName="latex",Ee.aliases=["tex","context"];function Ee(le){(function(ce){var Pe=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Me={"equation-command":{pattern:Pe,alias:"regex"}};ce.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:Me,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Me,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:Pe,alias:"selector"},punctuation:/[[\]{}&]/},ce.languages.tex=ce.languages.latex,ce.languages.context=ce.languages.latex})(le)}},22776:function(Re,Ee,le){"use strict";var ce=le(51478),Pe=le(53852);Re.exports=Me,Me.displayName="latte",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),function(je){je.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:je.languages.php}};var Te=je.languages.extend("markup",{});je.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:je.languages.php}}}}}},Te.tag),je.hooks.add("before-tokenize",function(Ge){if(Ge.language==="latte"){var st=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;je.languages["markup-templating"].buildPlaceholders(Ge,"latte",st),Ge.grammar=Te}}),je.hooks.add("after-tokenize",function(Ge){je.languages["markup-templating"].tokenizePlaceholders(Ge,"latte")})}(Ie)}},89700:function(Re){"use strict";Re.exports=Ee,Ee.displayName="less",Ee.aliases=[];function Ee(le){le.languages.less=le.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),le.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(Re,Ee,le){"use strict";var ce=le(48780);Re.exports=Pe,Pe.displayName="lilypond",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){for(var je=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Te=5,Ge=0;Ge<Te;Ge++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var st=Ie.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return je}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:Ie.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};st["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=st,Ie.languages.ly=st}(Me)}},39940:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="liquid",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},Me.hooks.add("before-tokenize",function(Ie){var je=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Te=!1;Me.languages["markup-templating"].buildPlaceholders(Ie,"liquid",je,function(Ge){var st=/^\{%-?\s*(\w+)/.exec(Ge);if(st){var Qe=st[1];if(Qe==="raw"&&!Te)return Te=!0,!0;if(Qe==="endraw")return Te=!1,!0}return!Te})}),Me.hooks.add("after-tokenize",function(Ie){Me.languages["markup-templating"].tokenizePlaceholders(Ie,"liquid")})}},34973:function(Re){"use strict";Re.exports=Ee,Ee.displayName="lisp",Ee.aliases=[];function Ee(le){(function(ce){function Pe(Fe){return RegExp(/(\()/.source+"(?:"+Fe+")"+/(?=[\s\)])/.source)}function Me(Fe){return RegExp(/([\s([])/.source+"(?:"+Fe+")"+/(?=[\s)])/.source)}var Ie=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,je="&"+Ie,Te="(\\()",Ge="(?=\\))",st="(?=\\s)",Qe=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,We={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Ie+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Ie),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Ie),alias:"property"},splice:{pattern:RegExp(",@?"+Ie),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Te+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+st),lookbehind:!0},{pattern:RegExp(Te+"(?:append|by|collect|concat|do|finally|for|in|return)"+st),lookbehind:!0}],declare:{pattern:Pe(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Pe(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Me(/nil|t/.source),lookbehind:!0},number:{pattern:Me(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Te+"def(?:const|custom|group|var)\\s+"+Ie),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Ie)}},defun:{pattern:RegExp(Te+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Ie+/\s+\(/.source+Qe+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Ie),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Te+"lambda\\s+\\(\\s*(?:&?"+Ie+"(?:\\s+&?"+Ie+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Te+Ie),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},mt={"lisp-marker":RegExp(je),varform:{pattern:RegExp(/\(/.source+Ie+/\s+(?=\S)/.source+Qe+/\)/.source),inside:We},argument:{pattern:RegExp(/(^|[\s(])/.source+Ie),lookbehind:!0,alias:"variable"},rest:We},it="\\S+(?:\\s+\\S+)*",kt={pattern:RegExp(Te+Qe+Ge),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+it),inside:mt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+it),inside:mt},keys:{pattern:RegExp("&key\\s+"+it+"(?:\\s+&allow-other-keys)?"),inside:mt},argument:{pattern:RegExp(Ie),alias:"variable"},punctuation:/[()]/}};We.lambda.inside.arguments=kt,We.defun.inside.arguments=ce.util.clone(kt),We.defun.inside.arguments.inside.sublist=kt,ce.languages.lisp=We,ce.languages.elisp=We,ce.languages.emacs=We,ce.languages["emacs-lisp"]=We})(le)}},98135:function(Re){"use strict";Re.exports=Ee,Ee.displayName="livescript",Ee.aliases=[];function Ee(le){le.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},le.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=le.languages.livescript}},36907:function(Re){"use strict";Re.exports=Ee,Ee.displayName="llvm",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(le)}},3567:function(Re){"use strict";Re.exports=Ee,Ee.displayName="log",Ee.aliases=[];function Ee(le){le.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:le.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(Re){"use strict";Re.exports=Ee,Ee.displayName="lolcode",Ee.aliases=[];function Ee(le){le.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},33978:function(Re){"use strict";Re.exports=Ee,Ee.displayName="lua",Ee.aliases=[];function Ee(le){le.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(Re){"use strict";Re.exports=Ee,Ee.displayName="magma",Ee.aliases=[];function Ee(le){le.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(Re){"use strict";Re.exports=Ee,Ee.displayName="makefile",Ee.aliases=[];function Ee(le){le.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(Re){"use strict";Re.exports=Ee,Ee.displayName="markdown",Ee.aliases=["md"];function Ee(le){(function(ce){var Pe=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Me(mt){return mt=mt.replace(/<inner>/g,function(){return Pe}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+mt+")")}var Ie=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,je=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Ie}),Te=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;ce.languages.markdown=ce.languages.extend("markup",{}),ce.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:ce.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+je+Te+"(?:"+je+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+je+Te+")(?:"+je+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Ie),inside:ce.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+je+")"+Te+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+je+"$"),inside:{"table-header":{pattern:RegExp(Ie),alias:"important",inside:ce.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Me(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Me(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Me(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Me(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(mt){["url","bold","italic","strike","code-snippet"].forEach(function(it){mt!==it&&(ce.languages.markdown[mt].inside.content.inside[it]=ce.languages.markdown[it])})}),ce.hooks.add("after-tokenize",function(mt){if(mt.language!=="markdown"&&mt.language!=="md")return;function it(kt){if(!(!kt||typeof kt=="string"))for(var Fe=0,ne=kt.length;Fe<ne;Fe++){var te=kt[Fe];if(te.type!=="code"){it(te.content);continue}var he=te.content[1],se=te.content[3];if(he&&se&&he.type==="code-language"&&se.type==="code-block"&&typeof he.content=="string"){var ge=he.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");ge=(/[a-z][\w-]*/i.exec(ge)||[""])[0].toLowerCase();var ye="language-"+ge;se.alias?typeof se.alias=="string"?se.alias=[se.alias,ye]:se.alias.push(ye):se.alias=[ye]}}}it(mt.tokens)}),ce.hooks.add("wrap",function(mt){if(mt.type==="code-block"){for(var it="",kt=0,Fe=mt.classes.length;kt<Fe;kt++){var ne=mt.classes[kt],te=/language-(.+)/.exec(ne);if(te){it=te[1];break}}var he=ce.languages[it];if(he)mt.content=ce.highlight(We(mt.content.value),he,it);else if(it&&it!=="none"&&ce.plugins.autoloader){var se="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);mt.attributes.id=se,ce.plugins.autoloader.loadLanguages(it,function(){var ge=document.getElementById(se);ge&&(ge.innerHTML=ce.highlight(ge.textContent,ce.languages[it],it))})}}});var Ge=RegExp(ce.languages.markup.tag.pattern.source,"gi"),st={amp:"&",lt:"<",gt:">",quot:'"'},Qe=String.fromCodePoint||String.fromCharCode;function We(mt){var it=mt.replace(Ge,"");return it=it.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(kt,Fe){if(Fe=Fe.toLowerCase(),Fe[0]==="#"){var ne;return Fe[1]==="x"?ne=parseInt(Fe.slice(2),16):ne=Number(Fe.slice(1)),Qe(ne)}else{var te=st[Fe];return te||kt}}),it}ce.languages.md=ce.languages.markdown})(le)}},51478:function(Re){"use strict";Re.exports=Ee,Ee.displayName="markupTemplating",Ee.aliases=[];function Ee(le){(function(ce){function Pe(Me,Ie){return"___"+Me.toUpperCase()+Ie+"___"}Object.defineProperties(ce.languages["markup-templating"]={},{buildPlaceholders:{value:function(Me,Ie,je,Te){if(Me.language===Ie){var Ge=Me.tokenStack=[];Me.code=Me.code.replace(je,function(st){if(typeof Te=="function"&&!Te(st))return st;for(var Qe=Ge.length,We;Me.code.indexOf(We=Pe(Ie,Qe))!==-1;)++Qe;return Ge[Qe]=st,We}),Me.grammar=ce.languages.markup}}},tokenizePlaceholders:{value:function(Me,Ie){if(Me.language!==Ie||!Me.tokenStack)return;Me.grammar=ce.languages[Ie];var je=0,Te=Object.keys(Me.tokenStack);function Ge(st){for(var Qe=0;Qe<st.length&&!(je>=Te.length);Qe++){var We=st[Qe];if(typeof We=="string"||We.content&&typeof We.content=="string"){var mt=Te[je],it=Me.tokenStack[mt],kt=typeof We=="string"?We:We.content,Fe=Pe(Ie,mt),ne=kt.indexOf(Fe);if(ne>-1){++je;var te=kt.substring(0,ne),he=new ce.Token(Ie,ce.tokenize(it,Me.grammar),"language-"+Ie,it),se=kt.substring(ne+Fe.length),ge=[];te&&ge.push.apply(ge,Ge([te])),ge.push(he),se&&ge.push.apply(ge,Ge([se])),typeof We=="string"?st.splice.apply(st,[Qe,1].concat(ge)):We.content=ge}}else We.content&&Ge(We.content)}return st}Ge(Me.tokens)}}})})(le)}},70614:function(Re){"use strict";Re.exports=Ee,Ee.displayName="markup",Ee.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Ee(le){le.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},le.languages.markup.tag.inside["attr-value"].inside.entity=le.languages.markup.entity,le.languages.markup.doctype.inside["internal-subset"].inside=le.languages.markup,le.hooks.add("wrap",function(ce){ce.type==="entity"&&(ce.attributes.title=ce.content.value.replace(/&/,"&"))}),Object.defineProperty(le.languages.markup.tag,"addInlined",{value:function(Pe,Me){var Ie={};Ie["language-"+Me]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:le.languages[Me]},Ie.cdata=/^<!\[CDATA\[|\]\]>$/i;var je={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Ie}};je["language-"+Me]={pattern:/[\s\S]+/,inside:le.languages[Me]};var Te={};Te[Pe]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Pe}),"i"),lookbehind:!0,greedy:!0,inside:je},le.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(le.languages.markup.tag,"addAttribute",{value:function(ce,Pe){le.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+ce+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Pe,"language-"+Pe],inside:le.languages[Pe]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),le.languages.html=le.languages.markup,le.languages.mathml=le.languages.markup,le.languages.svg=le.languages.markup,le.languages.xml=le.languages.extend("markup",{}),le.languages.ssml=le.languages.xml,le.languages.atom=le.languages.xml,le.languages.rss=le.languages.xml}},16928:function(Re){"use strict";Re.exports=Ee,Ee.displayName="matlab",Ee.aliases=[];function Ee(le){le.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(Re){"use strict";Re.exports=Ee,Ee.displayName="maxscript",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;ce.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+Pe.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Pe.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Pe,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(le)}},37164:function(Re){"use strict";Re.exports=Ee,Ee.displayName="mel",Ee.aliases=[];function Ee(le){le.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},le.languages.mel.code.inside.rest=le.languages.mel}},25153:function(Re){"use strict";Re.exports=Ee,Ee.displayName="mermaid",Ee.aliases=[];function Ee(le){le.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(Re){"use strict";Re.exports=Ee,Ee.displayName="mizar",Ee.aliases=[];function Ee(le){le.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(Re){"use strict";Re.exports=Ee,Ee.displayName="mongodb",Ee.aliases=[];function Ee(le){(function(ce){var Pe=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],Me=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Pe=Pe.map(function(je){return je.replace("$","\\$")});var Ie="(?:"+Pe.join("|")+")\\b";ce.languages.mongodb=ce.languages.extend("javascript",{}),ce.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+Ie+"(?:\\1)?$")}}}),ce.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},ce.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Me.join("|")+")\\b"),alias:"keyword"}})})(le)}},65626:function(Re){"use strict";Re.exports=Ee,Ee.displayName="monkey",Ee.aliases=[];function Ee(le){le.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(Re){"use strict";Re.exports=Ee,Ee.displayName="moonscript",Ee.aliases=["moon"];function Ee(le){le.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},le.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=le.languages.moonscript,le.languages.moon=le.languages.moonscript}},40722:function(Re){"use strict";Re.exports=Ee,Ee.displayName="n1ql",Ee.aliases=[];function Ee(le){le.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(Re){"use strict";Re.exports=Ee,Ee.displayName="n4js",Ee.aliases=["n4jsd"];function Ee(le){le.languages.n4js=le.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),le.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),le.languages.n4jsd=le.languages.n4js}},41224:function(Re){"use strict";Re.exports=Ee,Ee.displayName="nand2tetrisHdl",Ee.aliases=[];function Ee(le){le.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(Re){"use strict";Re.exports=Ee,Ee.displayName="naniscript",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\{[^\r\n\[\]{}]*\}/,Me={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Pe,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};ce.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:Pe,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Me}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Pe,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:Me},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},ce.languages.nani=ce.languages.naniscript,ce.hooks.add("after-tokenize",function(Te){var Ge=Te.tokens;Ge.forEach(function(st){if(typeof st!="string"&&st.type==="generic-text"){var Qe=je(st);Ie(Qe)||(st.type="bad-line",st.content=Qe)}})});function Ie(Te){for(var Ge="[]{}",st=[],Qe=0;Qe<Te.length;Qe++){var We=Te[Qe],mt=Ge.indexOf(We);if(mt!==-1){if(mt%2===0)st.push(mt+1);else if(st.pop()!==mt)return!1}}return st.length===0}function je(Te){return typeof Te=="string"?Te:Array.isArray(Te)?Te.map(je).join(""):je(Te.content)}})(le)}},42846:function(Re){"use strict";Re.exports=Ee,Ee.displayName="nasm",Ee.aliases=[];function Ee(le){le.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(Re){"use strict";Re.exports=Ee,Ee.displayName="neon",Ee.aliases=[];function Ee(le){le.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(Re){"use strict";Re.exports=Ee,Ee.displayName="nevod",Ee.aliases=[];function Ee(le){le.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(Re){"use strict";Re.exports=Ee,Ee.displayName="nginx",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;ce.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:Pe}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Pe}},punctuation:/[{};]/}})(le)}},66791:function(Re){"use strict";Re.exports=Ee,Ee.displayName="nim",Ee.aliases=[];function Ee(le){le.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(Re){"use strict";Re.exports=Ee,Ee.displayName="nix",Ee.aliases=[];function Ee(le){le.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},le.languages.nix.string.inside.interpolation.inside=le.languages.nix}},13490:function(Re){"use strict";Re.exports=Ee,Ee.displayName="nsis",Ee.aliases=[];function Ee(le){le.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(Re,Ee,le){"use strict";var ce=le(79440);Re.exports=Pe,Pe.displayName="objectivec",Pe.aliases=["objc"];function Pe(Me){Me.register(ce),Me.languages.objectivec=Me.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Me.languages.objectivec["class-name"],Me.languages.objc=Me.languages.objectivec}},66894:function(Re){"use strict";Re.exports=Ee,Ee.displayName="ocaml",Ee.aliases=[];function Ee(le){le.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(Re,Ee,le){"use strict";var ce=le(79440);Re.exports=Pe,Pe.displayName="opencl",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.opencl=Ie.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),Ie.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var je={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};Ie.languages.insertBefore("c","keyword",je),Ie.languages.cpp&&(je["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},Ie.languages.insertBefore("cpp","keyword",je))}(Me)}},27734:function(Re){"use strict";Re.exports=Ee,Ee.displayName="openqasm",Ee.aliases=["qasm"];function Ee(le){le.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},le.languages.qasm=le.languages.openqasm}},91889:function(Re){"use strict";Re.exports=Ee,Ee.displayName="oz",Ee.aliases=[];function Ee(le){le.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(Re){"use strict";Re.exports=Ee,Ee.displayName="parigp",Ee.aliases=[];function Ee(le){le.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var ce=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return ce=ce.map(function(Pe){return Pe.split("").join(" *")}).join("|"),RegExp("\\b(?:"+ce+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(Re){"use strict";Re.exports=Ee,Ee.displayName="parser",Ee.aliases=[];function Ee(le){(function(ce){var Pe=ce.languages.parser=ce.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});Pe=ce.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Pe.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Pe.punctuation}}}),ce.languages.insertBefore("inside","punctuation",{expression:Pe.expression,keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,escape:Pe.escape,"parser-punctuation":{pattern:Pe.punctuation,alias:"punctuation"}},Pe.tag.inside["attr-value"])})(le)}},92949:function(Re){"use strict";Re.exports=Ee,Ee.displayName="pascal",Ee.aliases=["objectpascal"];function Ee(le){le.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},le.languages.pascal.asm.inside=le.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),le.languages.objectpascal=le.languages.pascal}},5681:function(Re){"use strict";Re.exports=Ee,Ee.displayName="pascaligo",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Me=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Pe}),Ie=ce.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return Me}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return Me}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return Me})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},je=["comment","keyword","builtin","operator","punctuation"].reduce(function(Te,Ge){return Te[Ge]=Ie[Ge],Te},{});Ie["class-name"].forEach(function(Te){Te.inside=je})})(le)}},70696:function(Re){"use strict";Re.exports=Ee,Ee.displayName="pcaxis",Ee.aliases=["px"];function Ee(le){le.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},le.languages.px=le.languages.pcaxis}},35790:function(Re){"use strict";Re.exports=Ee,Ee.displayName="peoplecode",Ee.aliases=["pcode"];function Ee(le){le.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},le.languages.pcode=le.languages.peoplecode}},25777:function(Re){"use strict";Re.exports=Ee,Ee.displayName="perl",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;ce.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Pe].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Pe].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Pe+/\s*/.source+Pe].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(le)}},65889:function(Re,Ee,le){"use strict";var ce=le(53852);Re.exports=Pe,Pe.displayName="phpExtras",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="php",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){var je=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Te=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Ge=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,st=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Qe=/[{}\[\](),:;]/;Ie.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:je,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ge,operator:st,punctuation:Qe};var We={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Ie.languages.php},mt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:We}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:We}}];Ie.languages.insertBefore("php","variable",{string:mt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:je,string:mt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,number:Ge,operator:st,punctuation:Qe}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Ie.hooks.add("before-tokenize",function(it){if(/<\?/.test(it.code)){var kt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Ie.languages["markup-templating"].buildPlaceholders(it,"php",kt)}}),Ie.hooks.add("after-tokenize",function(it){Ie.languages["markup-templating"].tokenizePlaceholders(it,"php")})}(Me)}},97719:function(Re,Ee,le){"use strict";var ce=le(53852),Pe=le(53510);Re.exports=Me,Me.displayName="phpdoc",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),function(je){var Te=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;je.languages.phpdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Te+"\\s+)?)\\$\\w+"),lookbehind:!0}}),je.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Te),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),je.languages.javadoclike.addSupport("php",je.languages.phpdoc)}(Ie)}},63839:function(Re,Ee,le){"use strict";var ce=le(69435);Re.exports=Pe,Pe.displayName="plsql",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.plsql=Me.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Me.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(Re){"use strict";Re.exports=Ee,Ee.displayName="powerquery",Ee.aliases=[];function Ee(le){le.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},le.languages.pq=le.languages.powerquery,le.languages.mscript=le.languages.powerquery}},32530:function(Re){"use strict";Re.exports=Ee,Ee.displayName="powershell",Ee.aliases=[];function Ee(le){(function(ce){var Pe=ce.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};Pe.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Pe},boolean:Pe.boolean,variable:Pe.variable}})(le)}},8938:function(Re){"use strict";Re.exports=Ee,Ee.displayName="processing",Ee.aliases=[];function Ee(le){le.languages.processing=le.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),le.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(Re){"use strict";Re.exports=Ee,Ee.displayName="prolog",Ee.aliases=[];function Ee(le){le.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(Re){"use strict";Re.exports=Ee,Ee.displayName="promql",Ee.aliases=[];function Ee(le){(function(ce){var Pe=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Me=["on","ignoring","group_right","group_left","by","without"],Ie=["offset"],je=Pe.concat(Me,Ie);ce.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Me.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+je.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(le)}},15375:function(Re){"use strict";Re.exports=Ee,Ee.displayName="properties",Ee.aliases=[];function Ee(le){le.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(Re){"use strict";Re.exports=Ee,Ee.displayName="protobuf",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;ce.languages.protobuf=ce.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),ce.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:Pe}},builtin:Pe,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(le)}},83588:function(Re){"use strict";Re.exports=Ee,Ee.displayName="psl",Ee.aliases=[];function Ee(le){le.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(Re){"use strict";Re.exports=Ee,Ee.displayName="pug",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:ce.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:ce.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:ce.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:ce.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:ce.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:ce.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:ce.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:ce.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Pe=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Me=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Ie={},je=0,Te=Me.length;je<Te;je++){var Ge=Me[je];Ge=typeof Ge=="string"?{filter:Ge,language:Ge}:Ge,ce.languages[Ge.language]&&(Ie["filter-"+Ge.filter]={pattern:RegExp(Pe.replace("<filter_name>",function(){return Ge.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Ge.language,"language-"+Ge.language],inside:ce.languages[Ge.language]}}})}ce.languages.insertBefore("pug","filter",Ie)})(le)}},21294:function(Re){"use strict";Re.exports=Ee,Ee.displayName="puppet",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var Pe=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:ce.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];ce.languages.puppet.heredoc[0].inside.interpolation=Pe,ce.languages.puppet.string.inside["double-quoted"].inside.interpolation=Pe})(le)}},38709:function(Re){"use strict";Re.exports=Ee,Ee.displayName="pure",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var Pe=["c",{lang:"c++",alias:"cpp"},"fortran"],Me=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Pe.forEach(function(Ie){var je=Ie;if(typeof Ie!="string"&&(je=Ie.alias,Ie=Ie.lang),ce.languages[je]){var Te={};Te["inline-lang-"+je]={pattern:RegExp(Me.replace("<lang>",Ie.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:ce.util.clone(ce.languages.pure["inline-lang"].inside)},Te["inline-lang-"+je].inside.rest=ce.util.clone(ce.languages[je]),ce.languages.insertBefore("pure","inline-lang",Te)}}),ce.languages.c&&(ce.languages.pure["inline-lang"].inside.rest=ce.util.clone(ce.languages.c))})(le)}},15008:function(Re){"use strict";Re.exports=Ee,Ee.displayName="purebasic",Ee.aliases=[];function Ee(le){le.languages.purebasic=le.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),le.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete le.languages.purebasic["class-name"],delete le.languages.purebasic.boolean,le.languages.pbfasm=le.languages.purebasic}},96549:function(Re,Ee,le){"use strict";var ce=le(2050);Re.exports=Pe,Pe.displayName="purescript",Pe.aliases=["purs"];function Pe(Me){Me.register(ce),Me.languages.purescript=Me.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[Me.languages.haskell.operator[0],Me.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),Me.languages.purs=Me.languages.purescript}},5221:function(Re){"use strict";Re.exports=Ee,Ee.displayName="python",Ee.aliases=["py"];function Ee(le){le.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},le.languages.python["string-interpolation"].inside.interpolation.inside.rest=le.languages.python,le.languages.py=le.languages.python}},27447:function(Re){"use strict";Re.exports=Ee,Ee.displayName="q",Ee.aliases=[];function Ee(le){le.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(Re){"use strict";Re.exports=Ee,Ee.displayName="qml",Ee.aliases=[];function Ee(le){(function(ce){for(var Pe=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Me=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Ie=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Pe}).replace(/<comment>/g,function(){return Me}),je=0;je<2;je++)Ie=Ie.replace(/<expr>/g,function(){return Ie});Ie=Ie.replace(/<expr>/g,"[^\\s\\S]"),ce.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return Ie}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:ce.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return Ie}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:ce.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(le)}},75542:function(Re){"use strict";Re.exports=Ee,Ee.displayName="qore",Ee.aliases=[];function Ee(le){le.languages.qore=le.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(Re){"use strict";Re.exports=Ee,Ee.displayName="qsharp",Ee.aliases=["qs"];function Ee(le){(function(ce){function Pe(kt,Fe){return kt.replace(/<<(\d+)>>/g,function(ne,te){return"(?:"+Fe[+te]+")"})}function Me(kt,Fe,ne){return RegExp(Pe(kt,Fe),ne||"")}function Ie(kt,Fe){for(var ne=0;ne<Fe;ne++)kt=kt.replace(/<<self>>/g,function(){return"(?:"+kt+")"});return kt.replace(/<<self>>/g,"[^\\s\\S]")}var je={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Te(kt){return"\\b(?:"+kt.trim().replace(/ /g,"|")+")\\b"}var Ge=RegExp(Te(je.type+" "+je.other)),st=/\b[A-Za-z_]\w*\b/.source,Qe=Pe(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[st]),We={keyword:Ge,punctuation:/[<>()?,.:[\]]/},mt=/"(?:\\.|[^\\"])*"/.source;ce.languages.qsharp=ce.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Me(/(^|[^$\\])<<0>>/.source,[mt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Me(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Qe]),lookbehind:!0,inside:We},{pattern:Me(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Qe]),lookbehind:!0,inside:We}],keyword:Ge,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),ce.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var it=Ie(Pe(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[mt]),2);ce.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Me(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[it]),greedy:!0,inside:{interpolation:{pattern:Me(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[it]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:ce.languages.qsharp}}},string:/[\s\S]+/}}})})(le),le.languages.qs=le.languages.qsharp}},44298:function(Re){"use strict";Re.exports=Ee,Ee.displayName="r",Ee.aliases=[];function Ee(le){le.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(Re,Ee,le){"use strict";var ce=le(48780);Re.exports=Pe,Pe.displayName="racket",Pe.aliases=["rkt"];function Pe(Me){Me.register(ce),Me.languages.racket=Me.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),Me.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),Me.languages.rkt=Me.languages.racket}},75266:function(Re){"use strict";Re.exports=Ee,Ee.displayName="reason",Ee.aliases=[];function Ee(le){le.languages.reason=le.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),le.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete le.languages.reason.function}},48139:function(Re){"use strict";Re.exports=Ee,Ee.displayName="regex",Ee.aliases=[];function Ee(le){(function(ce){var Pe={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Me=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Ie={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},je={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Te="(?:[^\\\\-]|"+Me.source+")",Ge=RegExp(Te+"-"+Te),st={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};ce.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:Ge,inside:{escape:Me,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Pe,"char-set":je,escape:Me}},"special-escape":Pe,"char-set":Ie,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":st}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Me,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":st}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(le)}},97534:function(Re){"use strict";Re.exports=Ee,Ee.displayName="rego",Ee.aliases=[];function Ee(le){le.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(Re){"use strict";Re.exports=Ee,Ee.displayName="renpy",Ee.aliases=["rpy"];function Ee(le){le.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},le.languages.rpy=le.languages.renpy}},63919:function(Re){"use strict";Re.exports=Ee,Ee.displayName="rest",Ee.aliases=[];function Ee(le){le.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(Re){"use strict";Re.exports=Ee,Ee.displayName="rip",Ee.aliases=[];function Ee(le){le.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(Re){"use strict";Re.exports=Ee,Ee.displayName="roboconf",Ee.aliases=[];function Ee(le){le.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(Re){"use strict";Re.exports=Ee,Ee.displayName="robotframework",Ee.aliases=[];function Ee(le){(function(ce){var Pe={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Me={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Ie(st,Qe){var We={};We["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var mt in Qe)We[mt]=Qe[mt];return We.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},We.variable=Me,We.comment=Pe,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return st}),"im"),alias:"section",inside:We}}var je={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Te={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Me}},Ge={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Me}};ce.languages.robotframework={settings:Ie("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:Ie("Variables"),"test-cases":Ie("Test Cases",{"test-name":Te,documentation:je,property:Ge}),keywords:Ie("Keywords",{"keyword-name":Te,documentation:je,property:Ge}),tasks:Ie("Tasks",{"task-name":Te,documentation:je,property:Ge}),comment:Pe},ce.languages.robot=ce.languages.robotframework})(le)}},75308:function(Re){"use strict";Re.exports=Ee,Ee.displayName="ruby",Ee.aliases=["rb"];function Ee(le){(function(ce){ce.languages.ruby=ce.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),ce.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Pe={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:ce.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete ce.languages.ruby.function;var Me="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Ie=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;ce.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Me+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Ie),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Ie+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),ce.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Me),greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Me),greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete ce.languages.ruby.string,ce.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),ce.languages.rb=ce.languages.ruby})(le)}},45315:function(Re){"use strict";Re.exports=Ee,Ee.displayName="rust",Ee.aliases=[];function Ee(le){(function(ce){for(var Pe=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,Me=0;Me<2;Me++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,function(){return/[^\s\S]/.source}),ce.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Pe),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},ce.languages.rust["closure-params"].inside.rest=ce.languages.rust,ce.languages.rust.attribute.inside.string=ce.languages.rust.string})(le)}},13794:function(Re){"use strict";Re.exports=Ee,Ee.displayName="sas",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Me=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Ie={pattern:RegExp(Pe+"[bx]"),alias:"number"},je={pattern:/&[a-z_]\w*/i},Te={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},Ge={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},st=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Qe={pattern:RegExp(Pe),greedy:!0},We=/[$%@.(){}\[\];,\\]/,mt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},it={function:mt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":je,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Me,"numeric-constant":Ie,punctuation:We,string:Qe},kt={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Fe={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},ne={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},te={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},he=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,se={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return he}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return he}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:st,function:mt,"arg-value":it["arg-value"],operator:it.operator,argument:it.arg,number:Me,"numeric-constant":Ie,punctuation:We,string:Qe}},ge={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};ce.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return Pe}),"im"),alias:"language-sql",inside:ce.languages.sql},"global-statements":ne,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:Me,"numeric-constant":Ie,punctuation:We,string:Qe}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:st,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-groovy",inside:ce.languages.groovy},keyword:ge,"submit-statement":te,"global-statements":ne,number:Me,"numeric-constant":Ie,punctuation:We,string:Qe}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:st,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-lua",inside:ce.languages.lua},keyword:ge,"submit-statement":te,"global-statements":ne,number:Me,"numeric-constant":Ie,punctuation:We,string:Qe}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:st,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:it}},"cas-actions":se,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:it},step:Ge,keyword:ge,function:mt,format:kt,altformat:Fe,"global-statements":ne,number:Me,"numeric-constant":Ie,punctuation:We,string:Qe}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,inside:it},"macro-keyword":Te,"macro-variable":je,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Te,"macro-variable":je,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:We}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:st,number:Me,"numeric-constant":Ie}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:it},"cas-actions":se,comment:st,function:mt,format:kt,altformat:Fe,"numeric-constant":Ie,datetime:{pattern:RegExp(Pe+"(?:dt?|t)"),alias:"number"},string:Qe,step:Ge,keyword:ge,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Me,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:We}})(le)}},41299:function(Re){"use strict";Re.exports=Ee,Ee.displayName="sass",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.sass=ce.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),ce.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete ce.languages.sass.atrule;var Pe=/\$[-\w]+|#\{\$[-\w]+\}/,Me=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];ce.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Pe,operator:Me}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Pe,operator:Me,important:ce.languages.sass.important}}}),delete ce.languages.sass.property,delete ce.languages.sass.important,ce.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(le)}},98177:function(Re,Ee,le){"use strict";var ce=le(7093);Re.exports=Pe,Pe.displayName="scala",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.scala=Me.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Me.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Me.languages.scala}}},string:/[\s\S]+/}}}),delete Me.languages.scala["class-name"],delete Me.languages.scala.function}},48780:function(Re){"use strict";Re.exports=Ee,Ee.displayName="scheme",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(Pe({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Pe(Me){for(var Ie in Me)Me[Ie]=Me[Ie].replace(/<[\w\s]+>/g,function(je){return"(?:"+Me[je].trim()+")"});return Me[Ie]}})(le)}},79793:function(Re){"use strict";Re.exports=Ee,Ee.displayName="scss",Ee.aliases=[];function Ee(le){le.languages.scss=le.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),le.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),le.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),le.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),le.languages.scss.atrule.inside.rest=le.languages.scss}},52085:function(Re,Ee,le){"use strict";var ce=le(3058);Re.exports=Pe,Pe.displayName="shellSession",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){var je=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Ie.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return je}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:Ie.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Ie.languages["sh-session"]=Ie.languages.shellsession=Ie.languages["shell-session"]}(Me)}},65411:function(Re){"use strict";Re.exports=Ee,Ee.displayName="smali",Ee.aliases=[];function Ee(le){le.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(Re){"use strict";Re.exports=Ee,Ee.displayName="smalltalk",Ee.aliases=[];function Ee(le){le.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="smarty",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:Ie.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},Ie.languages.smarty["embedded-php"].inside.smarty.inside=Ie.languages.smarty,Ie.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Ie.languages.smarty;var je=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Te=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return je.source}),"g");Ie.hooks.add("before-tokenize",function(Ge){var st="{literal}",Qe="{/literal}",We=!1;Ie.languages["markup-templating"].buildPlaceholders(Ge,"smarty",Te,function(mt){return mt===Qe&&(We=!1),We?!1:(mt===st&&(We=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ge){Ie.languages["markup-templating"].tokenizePlaceholders(Ge,"smarty")})}(Me)}},66433:function(Re){"use strict";Re.exports=Ee,Ee.displayName="sml",Ee.aliases=["smlnj"];function Ee(le){(function(ce){var Pe=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;ce.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return Pe.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Pe,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},ce.languages.sml["class-name"][0].inside=ce.languages.sml,ce.languages.smlnj=ce.languages.sml})(le)}},34855:function(Re){"use strict";Re.exports=Ee,Ee.displayName="solidity",Ee.aliases=["sol"];function Ee(le){le.languages.solidity=le.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),le.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),le.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),le.languages.sol=le.languages.solidity}},12998:function(Re){"use strict";Re.exports=Ee,Ee.displayName="solutionFile",Ee.aliases=[];function Ee(le){(function(ce){var Pe={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};ce.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Pe}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Pe}},guid:Pe,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},ce.languages.sln=ce.languages["solution-file"]})(le)}},10202:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="soy",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){var je=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Te=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Ie.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:je,greedy:!0},number:Te,punctuation:/[\[\].?]/}},string:{pattern:je,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Te,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Ie.hooks.add("before-tokenize",function(Ge){var st=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Qe="{literal}",We="{/literal}",mt=!1;Ie.languages["markup-templating"].buildPlaceholders(Ge,"soy",st,function(it){return it===We&&(mt=!1),mt?!1:(it===Qe&&(mt=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ge){Ie.languages["markup-templating"].tokenizePlaceholders(Ge,"soy")})}(Me)}},41186:function(Re,Ee,le){"use strict";var ce=le(58710);Re.exports=Pe,Pe.displayName="sparql",Pe.aliases=["rq"];function Pe(Me){Me.register(ce),Me.languages.sparql=Me.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),Me.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),Me.languages.rq=Me.languages.sparql}},68963:function(Re){"use strict";Re.exports=Ee,Ee.displayName="splunkSpl",Ee.aliases=[];function Ee(le){le.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(Re){"use strict";Re.exports=Ee,Ee.displayName="sqf",Ee.aliases=[];function Ee(le){le.languages.sqf=le.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),le.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:le.languages.sqf.comment}}}),delete le.languages.sqf["class-name"]}},69435:function(Re){"use strict";Re.exports=Ee,Ee.displayName="sql",Ee.aliases=[];function Ee(le){le.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(Re){"use strict";Re.exports=Ee,Ee.displayName="squirrel",Ee.aliases=[];function Ee(le){le.languages.squirrel=le.languages.extend("clike",{comment:[le.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),le.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),le.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(Re){"use strict";Re.exports=Ee,Ee.displayName="stan",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;ce.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+Pe.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Pe],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},ce.languages.stan.constraint.inside.expression.inside=ce.languages.stan})(le)}},89032:function(Re){"use strict";Re.exports=Ee,Ee.displayName="stylus",Ee.aliases=[];function Ee(le){(function(ce){var Pe={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Me={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Ie={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Pe,number:Me,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Pe,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Me,punctuation:/[{}()\[\];:,]/};Ie.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Ie}},Ie.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Ie}},ce.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Ie}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Ie}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Ie}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:Ie.interpolation}},rest:Ie}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:Ie.interpolation,comment:Ie.comment,punctuation:/[{},]/}},func:Ie.func,string:Ie.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Ie.interpolation,punctuation:/[{}()\[\];:.]/}})(le)}},40241:function(Re){"use strict";Re.exports=Ee,Ee.displayName="swift",Ee.aliases=[];function Ee(le){le.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},le.languages.swift["string-literal"].forEach(function(ce){ce.inside.interpolation.inside=le.languages.swift})}},24812:function(Re){"use strict";Re.exports=Ee,Ee.displayName="systemd",Ee.aliases=[];function Ee(le){(function(ce){var Pe={pattern:/^[;#].*/m,greedy:!0},Me=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;ce.languages.systemd={comment:Pe,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+Me+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Me+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Pe,quoted:{pattern:RegExp(/(^|\s)/.source+Me),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(le)}},16747:function(Re,Ee,le){"use strict";var ce=le(73584),Pe=le(87648);Re.exports=Me,Me.displayName="t4Cs",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),Ie.languages.t4=Ie.languages["t4-cs"]=Ie.languages["t4-templating"].createT4("csharp")}},73584:function(Re){"use strict";Re.exports=Ee,Ee.displayName="t4Templating",Ee.aliases=[];function Ee(le){(function(ce){function Pe(Ie,je,Te){return{pattern:RegExp("<#"+Ie+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Ie+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:je,alias:Te}}}}function Me(Ie){var je=ce.languages[Ie],Te="language-"+Ie;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Pe("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Pe("=",je,Te),"class-feature":Pe("\\+",je,Te),standard:Pe("",je,Te)}}}}ce.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Me})})(le)}},79243:function(Re,Ee,le){"use strict";var ce=le(73584),Pe=le(55686);Re.exports=Me,Me.displayName="t4Vb",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),Ie.languages["t4-vb"]=Ie.languages["t4-templating"].createT4("vbnet")}},31788:function(Re,Ee,le){"use strict";var ce=le(14409);Re.exports=Pe,Pe.displayName="tap",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:Me.languages.yaml,alias:"language-yaml"}}}},60871:function(Re){"use strict";Re.exports=Ee,Ee.displayName="tcl",Ee.aliases=[];function Ee(le){le.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(Re){"use strict";Re.exports=Ee,Ee.displayName="textile",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Me=/\)|\((?![^|()\n]+\))/.source;function Ie(mt,it){return RegExp(mt.replace(/<MOD>/g,function(){return"(?:"+Pe+")"}).replace(/<PAR>/g,function(){return"(?:"+Me+")"}),it||"")}var je={css:{pattern:/\{[^{}]+\}/,inside:{rest:ce.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Te=ce.languages.textile=ce.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Ie(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Ie(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:je},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Ie(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Ie(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/^[*#]+/}},table:{pattern:Ie(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Ie(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:je},punctuation:/\||^\./}},inline:{pattern:Ie(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Ie(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Ie(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Ie(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Ie(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Ie(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Ie(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Ie(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Ie(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Ie(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Ie(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Ie(/(^")<MOD>+/.source),lookbehind:!0,inside:je},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Ie(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Ie(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Ie(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:je},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),Ge=Te.phrase.inside,st={inline:Ge.inline,link:Ge.link,image:Ge.image,footnote:Ge.footnote,acronym:Ge.acronym,mark:Ge.mark};Te.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Qe=Ge.inline.inside;Qe.bold.inside=st,Qe.italic.inside=st,Qe.inserted.inside=st,Qe.deleted.inside=st,Qe.span.inside=st;var We=Ge.table.inside;We.inline=st.inline,We.link=st.link,We.image=st.image,We.footnote=st.footnote,We.acronym=st.acronym,We.mark=st.mark})(le)}},14693:function(Re){"use strict";Re.exports=Ee,Ee.displayName="toml",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Me(Ie){return Ie.replace(/__/g,function(){return Pe})}ce.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Me(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Me(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(le)}},8743:function(Re){"use strict";Re.exports=Ee,Ee.displayName="tremor",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var Pe=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;ce.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Pe+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Pe+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Pe),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:ce.languages.tremor}}},string:/[\s\S]+/}},ce.languages.troy=ce.languages.tremor,ce.languages.trickle=ce.languages.tremor})(le)}},1689:function(Re,Ee,le){"use strict";var ce=le(24103),Pe=le(92784);Re.exports=Me,Me.displayName="tsx",Me.aliases=[];function Me(Ie){Ie.register(ce),Ie.register(Pe),function(je){var Te=je.util.clone(je.languages.typescript);je.languages.tsx=je.languages.extend("jsx",Te),delete je.languages.tsx.parameter,delete je.languages.tsx["literal-property"];var Ge=je.languages.tsx.tag;Ge.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ge.pattern.source+")",Ge.pattern.flags),Ge.lookbehind=!0}(Ie)}},69210:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="tt2",Pe.aliases=[];function Pe(Me){Me.register(ce),function(Ie){Ie.languages.tt2=Ie.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),Ie.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Ie.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Ie.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete Ie.languages.tt2.string,Ie.hooks.add("before-tokenize",function(je){var Te=/\[%[\s\S]+?%\]/g;Ie.languages["markup-templating"].buildPlaceholders(je,"tt2",Te)}),Ie.hooks.add("after-tokenize",function(je){Ie.languages["markup-templating"].tokenizePlaceholders(je,"tt2")})}(Me)}},58710:function(Re){"use strict";Re.exports=Ee,Ee.displayName="turtle",Ee.aliases=[];function Ee(le){le.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},le.languages.trig=le.languages.turtle}},60452:function(Re,Ee,le){"use strict";var ce=le(51478);Re.exports=Pe,Pe.displayName="twig",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},Me.hooks.add("before-tokenize",function(Ie){if(Ie.language==="twig"){var je=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;Me.languages["markup-templating"].buildPlaceholders(Ie,"twig",je)}}),Me.hooks.add("after-tokenize",function(Ie){Me.languages["markup-templating"].tokenizePlaceholders(Ie,"twig")})}},92784:function(Re){"use strict";Re.exports=Ee,Ee.displayName="typescript",Ee.aliases=["ts"];function Ee(le){(function(ce){ce.languages.typescript=ce.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),ce.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete ce.languages.typescript.parameter,delete ce.languages.typescript["literal-property"];var Pe=ce.languages.extend("typescript",{});delete Pe["class-name"],ce.languages.typescript["class-name"].inside=Pe,ce.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Pe}}}}),ce.languages.ts=ce.languages.typescript})(le)}},36489:function(Re){"use strict";Re.exports=Ee,Ee.displayName="typoscript",Ee.aliases=["tsconfig"];function Ee(le){(function(ce){var Pe=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;ce.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:Pe}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Pe,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Pe,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},ce.languages.tsconfig=ce.languages.typoscript})(le)}},78380:function(Re){"use strict";Re.exports=Ee,Ee.displayName="unrealscript",Ee.aliases=["uc","uscript"];function Ee(le){le.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},le.languages.uc=le.languages.uscript=le.languages.unrealscript}},10409:function(Re){"use strict";Re.exports=Ee,Ee.displayName="uorazor",Ee.aliases=[];function Ee(le){le.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(Re){"use strict";Re.exports=Ee,Ee.displayName="uri",Ee.aliases=["url"];function Ee(le){le.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},le.languages.url=le.languages.uri}},82028:function(Re){"use strict";Re.exports=Ee,Ee.displayName="v",Ee.aliases=[];function Ee(le){(function(ce){var Pe={pattern:/[\s\S]+/,inside:null};ce.languages.v=ce.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":Pe}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Pe.inside=ce.languages.v,ce.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),ce.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),ce.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:ce.languages.v.generic.inside}}}})})(le)}},62282:function(Re){"use strict";Re.exports=Ee,Ee.displayName="vala",Ee.aliases=[];function Ee(le){le.languages.vala=le.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),le.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:le.languages.vala}},string:/[\s\S]+/}}}),le.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:le.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(Re,Ee,le){"use strict";var ce=le(51422);Re.exports=Pe,Pe.displayName="vbnet",Pe.aliases=[];function Pe(Me){Me.register(ce),Me.languages.vbnet=Me.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(Re){"use strict";Re.exports=Ee,Ee.displayName="velocity",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.velocity=ce.languages.extend("markup",{});var Pe={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Pe.variable.inside={string:Pe.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Pe.number,boolean:Pe.boolean,punctuation:Pe.punctuation},ce.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:Pe}},variable:Pe.variable}),ce.languages.velocity.tag.inside["attr-value"].inside.rest=ce.languages.velocity})(le)}},37116:function(Re){"use strict";Re.exports=Ee,Ee.displayName="verilog",Ee.aliases=[];function Ee(le){le.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(Re){"use strict";Re.exports=Ee,Ee.displayName="vhdl",Ee.aliases=[];function Ee(le){le.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(Re){"use strict";Re.exports=Ee,Ee.displayName="vim",Ee.aliases=[];function Ee(le){le.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(Re){"use strict";Re.exports=Ee,Ee.displayName="visualBasic",Ee.aliases=[];function Ee(le){le.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},le.languages.vb=le.languages["visual-basic"],le.languages.vba=le.languages["visual-basic"]}},17723:function(Re){"use strict";Re.exports=Ee,Ee.displayName="warpscript",Ee.aliases=[];function Ee(le){le.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(Re){"use strict";Re.exports=Ee,Ee.displayName="wasm",Ee.aliases=[];function Ee(le){le.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(Re){"use strict";Re.exports=Ee,Ee.displayName="webIdl",Ee.aliases=[];function Ee(le){(function(ce){var Pe=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Me="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Pe+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Ie={};ce.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Pe),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Me),lookbehind:!0,inside:Ie},{pattern:RegExp("("+/\bcallback\s+/.source+Pe+/\s*=\s*/.source+")"+Me),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\btypedef\b\s*)/.source+Me),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Pe),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Pe),lookbehind:!0},RegExp(Pe+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Pe),lookbehind:!0},{pattern:RegExp(Me+"(?="+/\s*(?:\.{3}\s*)?/.source+Pe+/\s*[(),;=]/.source+")"),inside:Ie}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var je in ce.languages["web-idl"])je!=="class-name"&&(Ie[je]=ce.languages["web-idl"][je]);ce.languages.webidl=ce.languages["web-idl"]})(le)}},8921:function(Re){"use strict";Re.exports=Ee,Ee.displayName="wiki",Ee.aliases=[];function Ee(le){le.languages.wiki=le.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:le.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),le.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:le.languages.markup.tag.inside}}}})}},13429:function(Re){"use strict";Re.exports=Ee,Ee.displayName="wolfram",Ee.aliases=["mathematica","wl","nb"];function Ee(le){le.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},le.languages.mathematica=le.languages.wolfram,le.languages.wl=le.languages.wolfram,le.languages.nb=le.languages.wolfram}},65197:function(Re){"use strict";Re.exports=Ee,Ee.displayName="wren",Ee.aliases=[];function Ee(le){le.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},le.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:le.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(Re){"use strict";Re.exports=Ee,Ee.displayName="xeora",Ee.aliases=["xeoracube"];function Ee(le){(function(ce){ce.languages.xeora=ce.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),ce.languages.insertBefore("inside","punctuation",{variable:ce.languages.xeora["function-inline"].inside.variable},ce.languages.xeora["function-block"]),ce.languages.xeoracube=ce.languages.xeora})(le)}},35:function(Re){"use strict";Re.exports=Ee,Ee.displayName="xmlDoc",Ee.aliases=[];function Ee(le){(function(ce){function Pe(Te,Ge){ce.languages[Te]&&ce.languages.insertBefore(Te,"comment",{"doc-comment":Ge})}var Me=ce.languages.markup.tag,Ie={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Me}},je={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Me}};Pe("csharp",Ie),Pe("fsharp",Ie),Pe("vbnet",je)})(le)}},86095:function(Re){"use strict";Re.exports=Ee,Ee.displayName="xojo",Ee.aliases=[];function Ee(le){le.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(Re){"use strict";Re.exports=Ee,Ee.displayName="xquery",Ee.aliases=[];function Ee(le){(function(ce){ce.languages.xquery=ce.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),ce.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,ce.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,ce.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,ce.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:ce.languages.xquery,alias:"language-xquery"};var Pe=function(Ie){return typeof Ie=="string"?Ie:typeof Ie.content=="string"?Ie.content:Ie.content.map(Pe).join("")},Me=function(Ie){for(var je=[],Te=0;Te<Ie.length;Te++){var Ge=Ie[Te],st=!1;if(typeof Ge!="string"&&(Ge.type==="tag"&&Ge.content[0]&&Ge.content[0].type==="tag"?Ge.content[0].content[0].content==="</"?je.length>0&&je[je.length-1].tagName===Pe(Ge.content[0].content[1])&&je.pop():Ge.content[Ge.content.length-1].content==="/>"||je.push({tagName:Pe(Ge.content[0].content[1]),openedBraces:0}):je.length>0&&Ge.type==="punctuation"&&Ge.content==="{"&&(!Ie[Te+1]||Ie[Te+1].type!=="punctuation"||Ie[Te+1].content!=="{")&&(!Ie[Te-1]||Ie[Te-1].type!=="plain-text"||Ie[Te-1].content!=="{")?je[je.length-1].openedBraces++:je.length>0&&je[je.length-1].openedBraces>0&&Ge.type==="punctuation"&&Ge.content==="}"?je[je.length-1].openedBraces--:Ge.type!=="comment"&&(st=!0)),(st||typeof Ge=="string")&&je.length>0&&je[je.length-1].openedBraces===0){var Qe=Pe(Ge);Te<Ie.length-1&&(typeof Ie[Te+1]=="string"||Ie[Te+1].type==="plain-text")&&(Qe+=Pe(Ie[Te+1]),Ie.splice(Te+1,1)),Te>0&&(typeof Ie[Te-1]=="string"||Ie[Te-1].type==="plain-text")&&(Qe=Pe(Ie[Te-1])+Qe,Ie.splice(Te-1,1),Te--),/^\s+$/.test(Qe)?Ie[Te]=Qe:Ie[Te]=new ce.Token("plain-text",Qe,null,Qe)}Ge.content&&typeof Ge.content!="string"&&Me(Ge.content)}};ce.hooks.add("after-tokenize",function(Ie){Ie.language==="xquery"&&Me(Ie.tokens)})})(le)}},14409:function(Re){"use strict";Re.exports=Ee,Ee.displayName="yaml",Ee.aliases=["yml"];function Ee(le){(function(ce){var Pe=/[*&][^\s[\]{},]+/,Me=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Ie="(?:"+Me.source+"(?:[ ]+"+Pe.source+")?|"+Pe.source+"(?:[ ]+"+Me.source+")?)",je=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Te=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ge(st,Qe){Qe=(Qe||"").replace(/m/g,"")+"m";var We=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<value>>/g,function(){return st});return RegExp(We,Qe)}ce.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return Ie})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<key>>/g,function(){return"(?:"+je+"|"+Te+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Ge(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Ge(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Ge(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Ge(Te),lookbehind:!0,greedy:!0},number:{pattern:Ge(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Me,important:Pe,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},ce.languages.yml=ce.languages.yaml})(le)}},33460:function(Re){"use strict";Re.exports=Ee,Ee.displayName="yang",Ee.aliases=[];function Ee(le){le.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(Re){"use strict";Re.exports=Ee,Ee.displayName="zig",Ee.aliases=[];function Ee(le){(function(ce){function Pe(Qe){return function(){return Qe}}var Me=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,Ie="\\b(?!"+Me.source+")(?!\\d)\\w+\\b",je=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Te=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Pe(je)),Ge=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Pe(Ie)),st="(?!\\s)(?:!?\\s*(?:"+Te+"\\s*)*"+Ge+")+";ce.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,Pe(st)).replace(/<ALIGN>/g,Pe(je))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Pe(st)).replace(/<ALIGN>/g,Pe(je))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:Me,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},ce.languages.zig["class-name"].forEach(function(Qe){Qe.inside===null&&(Qe.inside=ce.languages.zig)})})(le)}},92848:function(Re,Ee){"use strict";var le;Ee.Q=Ie,le=je;var ce="",Pe=" ",Me=/[ \t\n\r\f]+/g;function Ie(Te){var Ge=String(Te||ce).trim();return Ge===ce?[]:Ge.split(Me)}function je(Te){return Te.join(Pe).trim()}},6526:function(Re,Ee,le){"use strict";var ce=this&&this.__importDefault||function(je){return je&&je.__esModule?je:{default:je}},Pe=ce(le(78846)),Me=le(11160);function Ie(je,Te){var Ge={};return!je||typeof je!="string"||(0,Pe.default)(je,function(st,Qe){st&&Qe&&(Ge[(0,Me.camelCase)(st,Te)]=Qe)}),Ge}Ie.default=Ie,Re.exports=Ie},11160:function(Re,Ee){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.camelCase=void 0;var le=/^--[a-zA-Z0-9_-]+$/,ce=/-([a-z])/g,Pe=/^[^-]+$/,Me=/^-(webkit|moz|ms|o|khtml)-/,Ie=/^-(ms)-/,je=function(Qe){return!Qe||Pe.test(Qe)||le.test(Qe)},Te=function(Qe,We){return We.toUpperCase()},Ge=function(Qe,We){return"".concat(We,"-")},st=function(Qe,We){return We===void 0&&(We={}),je(Qe)?Qe:(Qe=Qe.toLowerCase(),We.reactCompat?Qe=Qe.replace(Ie,Ge):Qe=Qe.replace(Me,Ge),Qe.replace(ce,Te))};Ee.camelCase=st},78846:function(Re,Ee,le){"use strict";var ce=this&&this.__importDefault||function(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=Me;var Pe=ce(le(93193));function Me(Ie,je){var Te=null;if(!Ie||typeof Ie!="string")return Te;var Ge=(0,Pe.default)(Ie),st=typeof je=="function";return Ge.forEach(function(Qe){if(Qe.type==="declaration"){var We=Qe.property,mt=Qe.value;st?je(We,mt,Qe):mt&&(Te=Te||{},Te[We]=mt)}}),Te}},97270:function(Re){Re.exports=le;var Ee=Object.prototype.hasOwnProperty;function le(){for(var ce={},Pe=0;Pe<arguments.length;Pe++){var Me=arguments[Pe];for(var Ie in Me)Ee.call(Me,Ie)&&(ce[Ie]=Me[Ie])}return ce}},20441:function(Re,Ee,le){var ce={"./aac.svg":16772,"./amr.svg":537,"./avi.svg":86682,"./bmp.svg":86476,"./default.svg":58335,"./doc.svg":36092,"./docx.svg":11588,"./flv.svg":36117,"./gif.svg":96769,"./jpeg.svg":11595,"./jpg.svg":3081,"./m4a.svg":91339,"./md.svg":3914,"./mkv.svg":72378,"./mov.svg":21307,"./mp3.svg":83306,"./mp4.svg":96392,"./mpeg.svg":85021,"./ogg.svg":79253,"./opus.svg":92481,"./pdf.svg":14080,"./png.svg":92357,"./ppt.svg":48036,"./pptx.svg":56741,"./txt.svg":73810,"./wav.svg":93878,"./webm.svg":39795,"./wma.svg":46381,"./wmv.svg":65016,"./wps.svg":3624,"./xls.svg":88446,"./xlsx.svg":42623};function Pe(Ie){var je=Me(Ie);return le(je)}function Me(Ie){if(!le.o(ce,Ie)){var je=new Error("Cannot find module '"+Ie+"'");throw je.code="MODULE_NOT_FOUND",je}return ce[Ie]}Pe.keys=function(){return Object.keys(ce)},Pe.resolve=Me,Re.exports=Pe,Pe.id=20441},90034:function(Re,Ee,le){var ce={"./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 Pe(Ie){var je=Me(Ie);return le(je)}function Me(Ie){if(!le.o(ce,Ie)){var je=new Error("Cannot find module '"+Ie+"'");throw je.code="MODULE_NOT_FOUND",je}return ce[Ie]}Pe.keys=function(){return Object.keys(ce)},Pe.resolve=Me,Re.exports=Pe,Pe.id=90034},16772:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/aac.b3e9a3ba.svg"},537:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/amr.ce411d51.svg"},86682:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/avi.d7b8adf7.svg"},86476:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/bmp.c62f88c4.svg"},58335:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/default.f48aef2c.svg"},36092:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/doc.e6c75d4c.svg"},11588:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/docx.150535e3.svg"},36117:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/flv.43967063.svg"},96769:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/gif.b2122741.svg"},11595:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/jpeg.fffee469.svg"},3081:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/jpg.2fb4a360.svg"},91339:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/m4a.7994dbc0.svg"},3914:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/md.1f56aa84.svg"},72378:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/mkv.f43ec502.svg"},21307:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/mov.1e1eebb7.svg"},83306:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/mp3.a7e45c91.svg"},96392:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/mp4.31a2d9d7.svg"},85021:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/mpeg.9a0dfa86.svg"},79253:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/ogg.0394dc54.svg"},92481:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/opus.faad335c.svg"},14080:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/pdf.5d12b224.svg"},92357:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/png.eacc8c1c.svg"},48036:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/ppt.d710530e.svg"},56741:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/pptx.d78add0d.svg"},73810:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/txt.53f7213d.svg"},93878:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/wav.a76e7dde.svg"},39795:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/webm.3a7e6ebc.svg"},46381:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/wma.a57b430b.svg"},65016:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/wmv.f22ee4a1.svg"},3624:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/wps.f48aef2c.svg"},88446:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/xls.0db636e2.svg"},42623:function(Re,Ee,le){"use strict";Re.exports=le.p+"static/xlsx.5d09490a.svg"},93314:function(Re){"use strict";Re.exports="data:image/png;base64,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"},71986:function(Re){"use strict";Re.exports="data:image/png;base64,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"},37166:function(Re){"use strict";Re.exports="data:image/png;base64,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"},28984:function(Re){"use strict";Re.exports="data:image/png;base64,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"},63604:function(Re){"use strict";Re.exports="data:image/png;base64,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"},30045:function(Re){"use strict";Re.exports="data:image/png;base64,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"},13740:function(Re){"use strict";Re.exports="data:image/png;base64,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"},58881:function(Re){"use strict";Re.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(Re){"use strict";Re.exports="data:image/png;base64,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"},2487:function(Re){"use strict";Re.exports="data:image/png;base64,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"},3164:function(Re){"use strict";Re.exports="data:image/png;base64,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"},88745:function(Re){"use strict";Re.exports="data:image/png;base64,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"},49321:function(Re){"use strict";Re.exports="data:image/png;base64,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"},96908:function(Re){"use strict";Re.exports="data:image/png;base64,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"},57177:function(Re){"use strict";Re.exports="data:image/png;base64,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"},81378:function(Re){"use strict";Re.exports="data:image/png;base64,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"},90302:function(Re,Ee,le){"use strict";le.d(Ee,{ZP:function(){return be}});const ce=-1,Pe=0,Me=1,Ie=2,je=3,Te=4,Ge=5,st=6,Qe=7,We=8,mt=typeof self=="object"?self:globalThis,it=(Ae,Le)=>{const Ve=(Je,rt)=>(Ae.set(rt,Je),Je),et=Je=>{if(Ae.has(Je))return Ae.get(Je);const[rt,at]=Le[Je];switch(rt){case Pe:case ce:return Ve(at,Je);case Me:{const tt=Ve([],Je);for(const Et of at)tt.push(et(Et));return tt}case Ie:{const tt=Ve({},Je);for(const[Et,Lt]of at)tt[et(Et)]=et(Lt);return tt}case je:return Ve(new Date(at),Je);case Te:{const{source:tt,flags:Et}=at;return Ve(new RegExp(tt,Et),Je)}case Ge:{const tt=Ve(new Map,Je);for(const[Et,Lt]of at)tt.set(et(Et),et(Lt));return tt}case st:{const tt=Ve(new Set,Je);for(const Et of at)tt.add(et(Et));return tt}case Qe:{const{name:tt,message:Et}=at;return Ve(new mt[tt](Et),Je)}case We:return Ve(BigInt(at),Je);case"BigInt":return Ve(Object(BigInt(at)),Je);case"ArrayBuffer":return Ve(new Uint8Array(at).buffer,at);case"DataView":{const{buffer:tt}=new Uint8Array(at);return Ve(new DataView(tt),at)}}return Ve(new mt[rt](at),Je)};return et},kt=Ae=>it(new Map,Ae)(0),Fe="",{toString:ne}={},{keys:te}=Object,he=Ae=>{const Le=typeof Ae;if(Le!=="object"||!Ae)return[Pe,Le];const Ve=ne.call(Ae).slice(8,-1);switch(Ve){case"Array":return[Me,Fe];case"Object":return[Ie,Fe];case"Date":return[je,Fe];case"RegExp":return[Te,Fe];case"Map":return[Ge,Fe];case"Set":return[st,Fe];case"DataView":return[Me,Ve]}return Ve.includes("Array")?[Me,Ve]:Ve.includes("Error")?[Qe,Ve]:[Ie,Ve]},se=([Ae,Le])=>Ae===Pe&&(Le==="function"||Le==="symbol"),ge=(Ae,Le,Ve,et)=>{const Je=(at,tt)=>{const Et=et.push(at)-1;return Ve.set(tt,Et),Et},rt=at=>{if(Ve.has(at))return Ve.get(at);let[tt,Et]=he(at);switch(tt){case Pe:{let Ut=at;switch(Et){case"bigint":tt=We,Ut=at.toString();break;case"function":case"symbol":if(Ae)throw new TypeError("unable to serialize "+Et);Ut=null;break;case"undefined":return Je([ce],at)}return Je([tt,Ut],at)}case Me:{if(Et){let an=at;return Et==="DataView"?an=new Uint8Array(at.buffer):Et==="ArrayBuffer"&&(an=new Uint8Array(at)),Je([Et,[...an]],at)}const Ut=[],on=Je([tt,Ut],at);for(const an of at)Ut.push(rt(an));return on}case Ie:{if(Et)switch(Et){case"BigInt":return Je([Et,at.toString()],at);case"Boolean":case"Number":case"String":return Je([Et,at.valueOf()],at)}if(Le&&"toJSON"in at)return rt(at.toJSON());const Ut=[],on=Je([tt,Ut],at);for(const an of te(at))(Ae||!se(he(at[an])))&&Ut.push([rt(an),rt(at[an])]);return on}case je:return Je([tt,at.toISOString()],at);case Te:{const{source:Ut,flags:on}=at;return Je([tt,{source:Ut,flags:on}],at)}case Ge:{const Ut=[],on=Je([tt,Ut],at);for(const[an,Kt]of at)(Ae||!(se(he(an))||se(he(Kt))))&&Ut.push([rt(an),rt(Kt)]);return on}case st:{const Ut=[],on=Je([tt,Ut],at);for(const an of at)(Ae||!se(he(an)))&&Ut.push(rt(an));return on}}const{message:Lt}=at;return Je([tt,{name:Et,message:Lt}],at)};return rt},ye=(Ae,{json:Le,lossy:Ve}={})=>{const et=[];return ge(!(Le||Ve),!!Le,new Map,et)(Ae),et};var be=typeof structuredClone=="function"?(Ae,Le)=>Le&&("json"in Le||"lossy"in Le)?kt(ye(Ae,Le)):structuredClone(Ae):(Ae,Le)=>kt(ye(Ae,Le))},11630:function(Re,Ee,le){"use strict";le.d(Ee,{P:function(){return Pe},Q:function(){return ce}});function ce(Me){const Ie=[],je=String(Me||"");let Te=je.indexOf(","),Ge=0,st=!1;for(;!st;){Te===-1&&(Te=je.length,st=!0);const Qe=je.slice(Ge,Te).trim();(Qe||!st)&&Ie.push(Qe),Ge=Te+1,Te=je.indexOf(",",Ge)}return Ie}function Pe(Me,Ie){const je=Ie||{};return(Me[Me.length-1]===""?[...Me,""]:Me).join((je.padRight?" ":"")+","+(je.padLeft===!1?"":" ")).trim()}},87342:function(Re,Ee,le){"use strict";le.d(Ee,{ok:function(){return Me},t1:function(){return Ie}});function ce(je){return je}function Pe(){}function Me(){}function Ie(){}},40797:function(Re,Ee,le){"use strict";le.d(Ee,{N:function(){return kt}});var ce=le(81994),Pe=le(43309);function Me(ne,te){return Ie(ne,te||{})||{type:"root",children:[]}}function Ie(ne,te){const he=je(ne,te);return he&&te.afterTransform&&te.afterTransform(ne,he),he}function je(ne,te){switch(ne.nodeType){case 1:return We(ne,te);case 3:return st(ne);case 8:return Qe(ne);case 9:return Te(ne,te);case 10:return Ge();case 11:return Te(ne,te);default:return}}function Te(ne,te){return{type:"root",children:mt(ne,te)}}function Ge(){return{type:"doctype"}}function st(ne){return{type:"text",value:ne.nodeValue||""}}function Qe(ne){return{type:"comment",value:ne.nodeValue||""}}function We(ne,te){const he=ne.namespaceURI,se=he===Pe.t.svg?ce.s:ce.h,ge=he===Pe.t.html?ne.tagName.toLowerCase():ne.tagName,ye=he===Pe.t.html&&ge==="template"?ne.content:ne,be=ne.getAttributeNames(),Ae={};let Le=-1;for(;++Le<be.length;)Ae[be[Le]]=ne.getAttribute(be[Le])||"";return se(ge,Ae,mt(ye,te))}function mt(ne,te){const he=ne.childNodes,se=[];let ge=-1;for(;++ge<he.length;){const ye=Ie(he[ge],te);ye!==void 0&&se.push(ye)}return se}const it=new DOMParser;function kt(ne,te){const he=te!=null&&te.fragment?Fe(ne):it.parseFromString(ne,"text/html");return Me(he)}function Fe(ne){const te=document.createElement("template");return te.innerHTML=ne,te.content}},91378:function(Re,Ee,le){"use strict";le.d(Ee,{l:function(){return se}});var ce=le(10502);const Pe=function(at,tt,Et){const Lt=(0,ce.O)(Et);if(!at||!at.type||!at.children)throw new Error("Expected parent node");if(typeof tt=="number"){if(tt<0||tt===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(tt=at.children.indexOf(tt),tt<0)throw new Error("Expected child node or index");for(;++tt<at.children.length;)if(Lt(at.children[tt],tt,at))return at.children[tt]},Me=function(at,tt,Et,Lt,Ut){const on=Ie(tt);if(Et!=null&&(typeof Et!="number"||Et<0||Et===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(Lt!=null&&(!Lt.type||!Lt.children))throw new Error("Expected valid `parent`");if(Et==null!=(Lt==null))throw new Error("Expected both `index` and `parent`");return Qe(at)?on.call(Ut,at,Et,Lt):!1},Ie=function(at){if(at==null)return st;if(typeof at=="string")return Te(at);if(typeof at=="object")return je(at);if(typeof at=="function")return Ge(at);throw new Error("Expected function, string, or array as `test`")};function je(at){const tt=[];let Et=-1;for(;++Et<at.length;)tt[Et]=Ie(at[Et]);return Ge(Lt);function Lt(...Ut){let on=-1;for(;++on<tt.length;)if(tt[on].apply(this,Ut))return!0;return!1}}function Te(at){return Ge(tt);function tt(Et){return Et.tagName===at}}function Ge(at){return tt;function tt(Et,Lt,Ut){return!!(Qe(Et)&&at.call(this,Et,typeof Lt=="number"?Lt:void 0,Ut||void 0))}}function st(at){return!!(at&&typeof at=="object"&&"type"in at&&at.type==="element"&&"tagName"in at&&typeof at.tagName=="string")}function Qe(at){return at!==null&&typeof at=="object"&&"type"in at&&"tagName"in at}const We=/\n/g,mt=/[\t ]+/g,it=Ie("br"),kt=Ie(Je),Fe=Ie("p"),ne=Ie("tr"),te=Ie(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",et,rt]),he=Ie(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function se(at,tt){const Et=tt||{},Lt="children"in at?at.children:[],Ut=he(at),on=Ve(at,{whitespace:Et.whitespace||"normal",breakBefore:!1,breakAfter:!1}),an=[];(at.type==="text"||at.type==="comment")&&an.push(...be(at,{whitespace:on,breakBefore:!0,breakAfter:!0}));let Kt=-1;for(;++Kt<Lt.length;)an.push(...ge(Lt[Kt],at,{whitespace:on,breakBefore:Kt?void 0:Ut,breakAfter:Kt<Lt.length-1?it(Lt[Kt+1]):Ut}));const fn=[];let bt;for(Kt=-1;++Kt<an.length;){const dt=an[Kt];typeof dt=="number"?bt!==void 0&&dt>bt&&(bt=dt):dt&&(bt!==void 0&&bt>-1&&fn.push(`
|
|
|
`.repeat(bt)||" "),bt=-1,fn.push(dt))}return fn.join("")}function ge(at,tt,Et){return at.type==="element"?ye(at,tt,Et):at.type==="text"?Et.whitespace==="normal"?be(at,Et):Ae(at):[]}function ye(at,tt,Et){const Lt=Ve(at,Et),Ut=at.children||[];let on=-1,an=[];if(te(at))return an;let Kt,fn;for(it(at)||ne(at)&&Pe(tt,at,ne)?fn=`
|
|
|
`:Fe(at)?(Kt=2,fn=2):he(at)&&(Kt=1,fn=1);++on<Ut.length;)an=an.concat(ge(Ut[on],at,{whitespace:Lt,breakBefore:on?void 0:Kt,breakAfter:on<Ut.length-1?it(Ut[on+1]):fn}));return kt(at)&&Pe(tt,at,kt)&&an.push(" "),Kt&&an.unshift(Kt),fn&&an.push(fn),an}function be(at,tt){const Et=String(at.value),Lt=[],Ut=[];let on=0;for(;on<=Et.length;){We.lastIndex=on;const fn=We.exec(Et),bt=fn&&"index"in fn?fn.index:Et.length;Lt.push(Le(Et.slice(on,bt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),on===0?tt.breakBefore:!0,bt===Et.length?tt.breakAfter:!0)),on=bt+1}let an=-1,Kt;for(;++an<Lt.length;)Lt[an].charCodeAt(Lt[an].length-1)===8203||an<Lt.length-1&&Lt[an+1].charCodeAt(0)===8203?(Ut.push(Lt[an]),Kt=void 0):Lt[an]?(typeof Kt=="number"&&Ut.push(Kt),Ut.push(Lt[an]),Kt=0):(an===0||an===Lt.length-1)&&Ut.push(0);return Ut}function Ae(at){return[String(at.value)]}function Le(at,tt,Et){const Lt=[];let Ut=0,on;for(;Ut<at.length;){mt.lastIndex=Ut;const an=mt.exec(at);on=an?an.index:at.length,!Ut&&!on&&an&&!tt&&Lt.push(""),Ut!==on&&Lt.push(at.slice(Ut,on)),Ut=an?on+an[0].length:on}return Ut!==on&&!Et&&Lt.push(""),Lt.join(" ")}function Ve(at,tt){if(at.type==="element"){const Et=at.properties||{};switch(at.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return Et.wrap?"pre-wrap":"pre";case"td":case"th":return Et.noWrap?"nowrap":tt.whitespace;case"textarea":return"pre-wrap";default:}}return tt.whitespace}function et(at){return!!(at.properties||{}).hidden}function Je(at){return at.tagName==="td"||at.tagName==="th"}function rt(at){return at.tagName==="dialog"&&!(at.properties||{}).open}},81994:function(Re,Ee,le){"use strict";le.d(Ee,{h:function(){return te},s:function(){return he}});var ce=le(14470),Pe=le(11630);const Me=/[#.]/g;function Ie(se,ge){const ye=se||"",be={};let Ae=0,Le,Ve;for(;Ae<ye.length;){Me.lastIndex=Ae;const et=Me.exec(ye),Je=ye.slice(Ae,et?et.index:ye.length);Je&&(Le?Le==="#"?be.id=Je:Array.isArray(be.className)?be.className.push(Je):be.className=[Je]:Ve=Je,Ae+=Je.length),et&&(Le=et[0],Ae++)}return{type:"element",tagName:Ve||ge||"div",properties:be,children:[]}}var je=le(86825),Te=le(13830),Ge=le(71523);function st(se,ge,ye){const be=ye?Fe(ye):void 0;function Ae(Le,Ve,...et){let Je;if(Le==null){Je={type:"root",children:[]};const rt=Ve;et.unshift(rt)}else{Je=Ie(Le,ge);const rt=Je.tagName.toLowerCase(),at=be?be.get(rt):void 0;if(Je.tagName=at||rt,Qe(Ve))et.unshift(Ve);else for(const[tt,Et]of Object.entries(Ve))We(se,Je.properties,tt,Et)}for(const rt of et)mt(Je.children,rt);return Je.type==="element"&&Je.tagName==="template"&&(Je.content={type:"root",children:Je.children},Je.children=[]),Je}return Ae}function Qe(se){if(se===null||typeof se!="object"||Array.isArray(se))return!0;if(typeof se.type!="string")return!1;const ge=se,ye=Object.keys(se);for(const be of ye){const Ae=ge[be];if(Ae&&typeof Ae=="object"){if(!Array.isArray(Ae))return!0;const Le=Ae;for(const Ve of Le)if(typeof Ve!="number"&&typeof Ve!="string")return!0}}return!!("children"in se&&Array.isArray(se.children))}function We(se,ge,ye,be){const Ae=(0,je.s)(se,ye);let Le;if(be!=null){if(typeof be=="number"){if(Number.isNaN(be))return;Le=be}else typeof be=="boolean"?Le=be:typeof be=="string"?Ae.spaceSeparated?Le=(0,Ge.Q)(be):Ae.commaSeparated?Le=(0,Pe.Q)(be):Ae.commaOrSpaceSeparated?Le=(0,Ge.Q)((0,Pe.Q)(be).join(" ")):Le=it(Ae,Ae.property,be):Array.isArray(be)?Le=[...be]:Le=Ae.property==="style"?kt(be):String(be);if(Array.isArray(Le)){const Ve=[];for(const et of Le)Ve.push(it(Ae,Ae.property,et));Le=Ve}Ae.property==="className"&&Array.isArray(ge.className)&&(Le=ge.className.concat(Le)),ge[Ae.property]=Le}}function mt(se,ge){if(ge!=null)if(typeof ge=="number"||typeof ge=="string")se.push({type:"text",value:String(ge)});else if(Array.isArray(ge))for(const ye of ge)mt(se,ye);else if(typeof ge=="object"&&"type"in ge)ge.type==="root"?mt(se,ge.children):se.push(ge);else throw new Error("Expected node, nodes, or string, got `"+ge+"`")}function it(se,ge,ye){if(typeof ye=="string"){if(se.number&&ye&&!Number.isNaN(Number(ye)))return Number(ye);if((se.boolean||se.overloadedBoolean)&&(ye===""||(0,Te.F)(ye)===(0,Te.F)(ge)))return!0}return ye}function kt(se){const ge=[];for(const[ye,be]of Object.entries(se))ge.push([ye,be].join(": "));return ge.join("; ")}function Fe(se){const ge=new Map;for(const ye of se)ge.set(ye.toLowerCase(),ye);return ge}const ne=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],te=st(ce.dy,"div"),he=st(ce.YP,"g",ne)},26735:function(Re,Ee,le){"use strict";le.d(Ee,{f:function(){return Pe}});var ce=le(80722);function Pe(Me,Ie,je,Te){const Ge=Te?Te-1:Number.POSITIVE_INFINITY;let st=0;return Qe;function Qe(mt){return(0,ce.xz)(mt)?(Me.enter(je),We(mt)):Ie(mt)}function We(mt){return(0,ce.xz)(mt)&&st++<Ge?(Me.consume(mt),We):(Me.exit(je),Ie(mt))}}},80722:function(Re,Ee,le){"use strict";le.d(Ee,{AF:function(){return Te},Av:function(){return Ie},B8:function(){return it},Ch:function(){return st},H$:function(){return Pe},Xh:function(){return mt},jv:function(){return ce},n9:function(){return Me},pY:function(){return je},sR:function(){return Ge},xz:function(){return We},z3:function(){return Qe}});const ce=kt(/[A-Za-z]/),Pe=kt(/[\dA-Za-z]/),Me=kt(/[#-'*+\--9=?A-Z^-~]/);function Ie(Fe){return Fe!==null&&(Fe<32||Fe===127)}const je=kt(/\d/),Te=kt(/[\dA-Fa-f]/),Ge=kt(/[!-/:-@[-`{-~]/);function st(Fe){return Fe!==null&&Fe<-2}function Qe(Fe){return Fe!==null&&(Fe<0||Fe===32)}function We(Fe){return Fe===-2||Fe===-1||Fe===32}const mt=kt(new RegExp("\\p{P}|\\p{S}","u")),it=kt(/\s/);function kt(Fe){return ne;function ne(te){return te!==null&&te>-1&&Fe.test(String.fromCharCode(te))}}},14470:function(Re,Ee,le){"use strict";le.d(Ee,{dy:function(){return ne},YP:function(){return te}});class ce{constructor(se,ge,ye){this.normal=ge,this.property=se,ye&&(this.space=ye)}}ce.prototype.normal={},ce.prototype.property={},ce.prototype.space=void 0;function Pe(he,se){const ge={},ye={};for(const be of he)Object.assign(ge,be.property),Object.assign(ye,be.normal);return new ce(ge,ye,se)}var Me=le(13830),Ie=le(53538);function je(he){const se={},ge={};for(const[ye,be]of Object.entries(he.properties)){const Ae=new Ie.I(ye,he.transform(he.attributes||{},ye),be,he.space);he.mustUseProperty&&he.mustUseProperty.includes(ye)&&(Ae.mustUseProperty=!0),se[ye]=Ae,ge[(0,Me.F)(ye)]=ye,ge[(0,Me.F)(Ae.attribute)]=ye}return new ce(se,ge,he.space)}var Te=le(71337);const Ge=je({properties:{ariaActiveDescendant:null,ariaAtomic:Te.booleanish,ariaAutoComplete:null,ariaBusy:Te.booleanish,ariaChecked:Te.booleanish,ariaColCount:Te.number,ariaColIndex:Te.number,ariaColSpan:Te.number,ariaControls:Te.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Te.spaceSeparated,ariaDetails:null,ariaDisabled:Te.booleanish,ariaDropEffect:Te.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Te.booleanish,ariaFlowTo:Te.spaceSeparated,ariaGrabbed:Te.booleanish,ariaHasPopup:null,ariaHidden:Te.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te.spaceSeparated,ariaLevel:Te.number,ariaLive:null,ariaModal:Te.booleanish,ariaMultiLine:Te.booleanish,ariaMultiSelectable:Te.booleanish,ariaOrientation:null,ariaOwns:Te.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Te.number,ariaPressed:Te.booleanish,ariaReadOnly:Te.booleanish,ariaRelevant:null,ariaRequired:Te.booleanish,ariaRoleDescription:Te.spaceSeparated,ariaRowCount:Te.number,ariaRowIndex:Te.number,ariaRowSpan:Te.number,ariaSelected:Te.booleanish,ariaSetSize:Te.number,ariaSort:null,ariaValueMax:Te.number,ariaValueMin:Te.number,ariaValueNow:Te.number,ariaValueText:null,role:null},transform(he,se){return se==="role"?se:"aria-"+se.slice(4).toLowerCase()}});function st(he,se){return se in he?he[se]:se}function Qe(he,se){return st(he,se.toLowerCase())}const We=je({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te.commaSeparated,acceptCharset:Te.spaceSeparated,accessKey:Te.spaceSeparated,action:null,allow:null,allowFullScreen:Te.boolean,allowPaymentRequest:Te.boolean,allowUserMedia:Te.boolean,alt:null,as:null,async:Te.boolean,autoCapitalize:null,autoComplete:Te.spaceSeparated,autoFocus:Te.boolean,autoPlay:Te.boolean,blocking:Te.spaceSeparated,capture:null,charSet:null,checked:Te.boolean,cite:null,className:Te.spaceSeparated,cols:Te.number,colSpan:null,content:null,contentEditable:Te.booleanish,controls:Te.boolean,controlsList:Te.spaceSeparated,coords:Te.number|Te.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te.boolean,defer:Te.boolean,dir:null,dirName:null,disabled:Te.boolean,download:Te.overloadedBoolean,draggable:Te.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te.boolean,formTarget:null,headers:Te.spaceSeparated,height:Te.number,hidden:Te.overloadedBoolean,high:Te.number,href:null,hrefLang:null,htmlFor:Te.spaceSeparated,httpEquiv:Te.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Te.boolean,inputMode:null,integrity:null,is:null,isMap:Te.boolean,itemId:null,itemProp:Te.spaceSeparated,itemRef:Te.spaceSeparated,itemScope:Te.boolean,itemType:Te.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te.boolean,low:Te.number,manifest:null,max:null,maxLength:Te.number,media:null,method:null,min:null,minLength:Te.number,multiple:Te.boolean,muted:Te.boolean,name:null,nonce:null,noModule:Te.boolean,noValidate:Te.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te.boolean,optimum:Te.number,pattern:null,ping:Te.spaceSeparated,placeholder:null,playsInline:Te.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te.boolean,referrerPolicy:null,rel:Te.spaceSeparated,required:Te.boolean,reversed:Te.boolean,rows:Te.number,rowSpan:Te.number,sandbox:Te.spaceSeparated,scope:null,scoped:Te.boolean,seamless:Te.boolean,selected:Te.boolean,shadowRootClonable:Te.boolean,shadowRootDelegatesFocus:Te.boolean,shadowRootMode:null,shape:null,size:Te.number,sizes:null,slot:null,span:Te.number,spellCheck:Te.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te.number,step:null,style:null,tabIndex:Te.number,target:null,title:null,translate:null,type:null,typeMustMatch:Te.boolean,useMap:null,value:Te.booleanish,width:Te.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te.spaceSeparated,axis:null,background:null,bgColor:null,border:Te.number,borderColor:null,bottomMargin:Te.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te.boolean,declare:Te.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Te.number,leftMargin:Te.number,link:null,longDesc:null,lowSrc:null,marginHeight:Te.number,marginWidth:Te.number,noResize:Te.boolean,noHref:Te.boolean,noShade:Te.boolean,noWrap:Te.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Te.number,rules:null,scheme:null,scrolling:Te.booleanish,standby:null,summary:null,text:null,topMargin:Te.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te.boolean,disableRemotePlayback:Te.boolean,prefix:null,property:null,results:Te.number,security:null,unselectable:null},space:"html",transform:Qe}),mt=je({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Te.commaOrSpaceSeparated,accentHeight:Te.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te.number,amplitude:Te.number,arabicForm:null,ascent:Te.number,attributeName:null,attributeType:null,azimuth:Te.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te.number,by:null,calcMode:null,capHeight:Te.number,className:Te.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Te.number,diffuseConstant:Te.number,direction:null,display:null,dur:null,divisor:Te.number,dominantBaseline:null,download:Te.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te.number,enableBackground:null,end:null,event:null,exponent:Te.number,externalResourcesRequired:null,fill:null,fillOpacity:Te.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Te.commaSeparated,g2:Te.commaSeparated,glyphName:Te.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te.number,horizOriginX:Te.number,horizOriginY:Te.number,id:null,ideographic:Te.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te.number,k:Te.number,k1:Te.number,k2:Te.number,k3:Te.number,k4:Te.number,kernelMatrix:Te.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Te.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Te.number,overlineThickness:Te.number,paintOrder:null,panose1:null,path:null,pathLength:Te.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te.number,pointsAtY:Te.number,pointsAtZ:Te.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Te.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Te.commaOrSpaceSeparated,rev:Te.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Te.commaOrSpaceSeparated,requiredFeatures:Te.commaOrSpaceSeparated,requiredFonts:Te.commaOrSpaceSeparated,requiredFormats:Te.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Te.number,specularExponent:Te.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te.number,strikethroughThickness:Te.number,string:null,stroke:null,strokeDashArray:Te.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te.number,strokeOpacity:Te.number,strokeWidth:null,style:null,surfaceScale:Te.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Te.commaOrSpaceSeparated,tabIndex:Te.number,tableValues:null,target:null,targetX:Te.number,targetY:Te.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Te.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te.number,underlineThickness:Te.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te.number,values:null,vAlphabetic:Te.number,vMathematical:Te.number,vectorEffect:null,vHanging:Te.number,vIdeographic:Te.number,version:null,vertAdvY:Te.number,vertOriginX:Te.number,vertOriginY:Te.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:st}),it=je({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(he,se){return"xlink:"+se.slice(5).toLowerCase()}}),kt=je({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Qe}),Fe=je({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,se){return"xml:"+se.slice(3).toLowerCase()}}),ne=Pe([Ge,We,it,kt,Fe],"html"),te=Pe([Ge,mt,it,kt,Fe],"svg")},86825:function(Re,Ee,le){"use strict";le.d(Ee,{s:function(){return Ge}});var ce=le(53538),Pe=le(25629),Me=le(13830);const Ie=/[A-Z]/g,je=/-[a-z]/g,Te=/^data[-\w.:]+$/i;function Ge(We,mt){const it=(0,Me.F)(mt);let kt=mt,Fe=Pe.k;if(it in We.normal)return We.property[We.normal[it]];if(it.length>4&&it.slice(0,4)==="data"&&Te.test(mt)){if(mt.charAt(4)==="-"){const ne=mt.slice(5).replace(je,Qe);kt="data"+ne.charAt(0).toUpperCase()+ne.slice(1)}else{const ne=mt.slice(4);if(!je.test(ne)){let te=ne.replace(Ie,st);te.charAt(0)!=="-"&&(te="-"+te),mt="data"+te}}Fe=ce.I}return new Fe(kt,mt)}function st(We){return"-"+We.toLowerCase()}function Qe(We){return We.charAt(1).toUpperCase()}},13830:function(Re,Ee,le){"use strict";le.d(Ee,{F:function(){return ce}});function ce(Pe){return Pe.toLowerCase()}},53538:function(Re,Ee,le){"use strict";le.d(Ee,{I:function(){return Ie}});var ce=le(25629),Pe=le(71337);const Me=Object.keys(Pe);class Ie extends ce.k{constructor(Ge,st,Qe,We){let mt=-1;if(super(Ge,st),je(this,"space",We),typeof Qe=="number")for(;++mt<Me.length;){const it=Me[mt];je(this,Me[mt],(Qe&Pe[it])===Pe[it])}}}Ie.prototype.defined=!0;function je(Te,Ge,st){st&&(Te[Ge]=st)}},25629:function(Re,Ee,le){"use strict";le.d(Ee,{k:function(){return ce}});class ce{constructor(Me,Ie){this.attribute=Ie,this.property=Me}}ce.prototype.attribute="",ce.prototype.booleanish=!1,ce.prototype.boolean=!1,ce.prototype.commaOrSpaceSeparated=!1,ce.prototype.commaSeparated=!1,ce.prototype.defined=!1,ce.prototype.mustUseProperty=!1,ce.prototype.number=!1,ce.prototype.overloadedBoolean=!1,ce.prototype.property="",ce.prototype.spaceSeparated=!1,ce.prototype.space=void 0},71337:function(Re,Ee,le){"use strict";le.r(Ee),le.d(Ee,{boolean:function(){return Pe},booleanish:function(){return Me},commaOrSpaceSeparated:function(){return st},commaSeparated:function(){return Ge},number:function(){return je},overloadedBoolean:function(){return Ie},spaceSeparated:function(){return Te}});let ce=0;const Pe=Qe(),Me=Qe(),Ie=Qe(),je=Qe(),Te=Qe(),Ge=Qe(),st=Qe();function Qe(){return Qy(2,++ce)}},72460:function(Re,Ee,le){"use strict";le.d(Ee,{UG:function(){return Ls}});var ce={};le.r(ce),le.d(ce,{attentionMarkers:function(){return da},contentInitial:function(){return Sa},disable:function(){return Ra},document:function(){return Uo},flow:function(){return bs},flowInitial:function(){return Ya},insideSpan:function(){return ca},string:function(){return ts},text:function(){return xr}});var Pe=le(87342),Me=le(11630);const Ie=/[$_\p{ID_Start}]/u,je=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Te=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ge=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,st=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qe={};function We(we){return we?Ie.test(String.fromCodePoint(we)):!1}function mt(we,He){const ot=(He||Qe).jsx?Te:je;return we?ot.test(String.fromCodePoint(we)):!1}function it(we,He){return((He||Qe).jsx?st:Ge).test(we)}const kt=/[ \t\n\f\r]/g;function Fe(we){return typeof we=="object"?we.type==="text"?ne(we.value):!1:ne(we)}function ne(we){return we.replace(kt,"")===""}var te=le(14470),he=le(86825);const se={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ge=le(71523),ye=le(6526),be=le(17970);function Ae(we){return!we||typeof we!="object"?"":"position"in we||"type"in we?Ve(we.position):"start"in we||"end"in we?Ve(we):"line"in we||"column"in we?Le(we):""}function Le(we){return et(we&&we.line)+":"+et(we&&we.column)}function Ve(we){return Le(we&&we.start)+"-"+Le(we&&we.end)}function et(we){return we&&typeof we=="number"?we:1}class Je extends Error{constructor(He,Xe,ot){super(),typeof Xe=="string"&&(ot=Xe,Xe=void 0);let xt="",Ct={},Ft=!1;if(Xe&&("line"in Xe&&"column"in Xe?Ct={place:Xe}:"start"in Xe&&"end"in Xe?Ct={place:Xe}:"type"in Xe?Ct={ancestors:[Xe],place:Xe.position}:Ct=oa({},Xe)),typeof He=="string"?xt=He:!Ct.cause&&He&&(Ft=!0,xt=He.message,Ct.cause=He),!Ct.ruleId&&!Ct.source&&typeof ot=="string"){const Dn=ot.indexOf(":");Dn===-1?Ct.ruleId=ot:(Ct.source=ot.slice(0,Dn),Ct.ruleId=ot.slice(Dn+1))}if(!Ct.place&&Ct.ancestors&&Ct.ancestors){const Dn=Ct.ancestors[Ct.ancestors.length-1];Dn&&(Ct.place=Dn.position)}const Zt=Ct.place&&"start"in Ct.place?Ct.place.start:Ct.place;this.ancestors=Ct.ancestors||void 0,this.cause=Ct.cause||void 0,this.column=Zt?Zt.column:void 0,this.fatal=void 0,this.file,this.message=xt,this.line=Zt?Zt.line:void 0,this.name=Ae(Ct.place)||"1:1",this.place=Ct.place||void 0,this.reason=this.message,this.ruleId=Ct.ruleId||void 0,this.source=Ct.source||void 0,this.stack=Ft&&Ct.cause&&typeof Ct.cause.stack=="string"?Ct.cause.stack:"",this.actual,this.expected,this.note,this.url}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const rt={}.hasOwnProperty,at=new Map,tt=/[A-Z]/g,Et=new Set(["table","tbody","thead","tfoot","tr"]),Lt=new Set(["td","th"]),Ut="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function on(we,He){if(!He||He.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Xe=He.filePath||void 0;let ot;if(He.development){if(typeof He.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");ot=cn(Xe,He.jsxDEV)}else{if(typeof He.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof He.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");ot=hn(Xe,He.jsx,He.jsxs)}const xt={Fragment:He.Fragment,ancestors:[],components:He.components||{},create:ot,elementAttributeNameCase:He.elementAttributeNameCase||"react",evaluater:He.createEvaluater?He.createEvaluater():void 0,filePath:Xe,ignoreInvalidStyle:He.ignoreInvalidStyle||!1,passKeys:He.passKeys!==!1,passNode:He.passNode||!1,schema:He.space==="svg"?te.YP:te.dy,stylePropertyNameCase:He.stylePropertyNameCase||"dom",tableCellAlignToStyle:He.tableCellAlignToStyle!==!1},Ct=an(xt,we,void 0);return Ct&&typeof Ct!="string"?Ct:xt.create(we,xt.Fragment,{children:Ct||void 0},void 0)}function an(we,He,Xe){if(He.type==="element")return Kt(we,He,Xe);if(He.type==="mdxFlowExpression"||He.type==="mdxTextExpression")return fn(we,He);if(He.type==="mdxJsxFlowElement"||He.type==="mdxJsxTextElement")return dt(we,He,Xe);if(He.type==="mdxjsEsm")return bt(we,He);if(He.type==="root")return ct(we,He,Xe);if(He.type==="text")return Qt(we,He)}function Kt(we,He,Xe){const ot=we.schema;let xt=ot;He.tagName.toLowerCase()==="svg"&&ot.space==="html"&&(xt=te.YP,we.schema=xt),we.ancestors.push(He);const Ct=Nn(we,He.tagName,!1),Ft=Qn(we,He);let Zt=Pt(we,He);return Et.has(He.tagName)&&(Zt=Zt.filter(function(Dn){return typeof Dn=="string"?!Fe(Dn):!0})),un(we,Ft,Ct,He),Nt(Ft,Zt),we.ancestors.pop(),we.schema=ot,we.create(He,Ct,Ft,Xe)}function fn(we,He){if(He.data&&He.data.estree&&we.evaluater){const ot=He.data.estree.body[0];return(0,Pe.ok)(ot.type==="ExpressionStatement"),we.evaluater.evaluateExpression(ot.expression)}$e(we,He.position)}function bt(we,He){if(He.data&&He.data.estree&&we.evaluater)return we.evaluater.evaluateProgram(He.data.estree);$e(we,He.position)}function dt(we,He,Xe){const ot=we.schema;let xt=ot;He.name==="svg"&&ot.space==="html"&&(xt=te.YP,we.schema=xt),we.ancestors.push(He);const Ct=He.name===null?we.Fragment:Nn(we,He.name,!0),Ft=Bt(we,He),Zt=Pt(we,He);return un(we,Ft,Ct,He),Nt(Ft,Zt),we.ancestors.pop(),we.schema=ot,we.create(He,Ct,Ft,Xe)}function ct(we,He,Xe){const ot={};return Nt(ot,Pt(we,He)),we.create(He,we.Fragment,ot,Xe)}function Qt(we,He){return He.value}function un(we,He,Xe,ot){typeof Xe!="string"&&Xe!==we.Fragment&&we.passNode&&(He.node=ot)}function Nt(we,He){if(He.length>0){const Xe=He.length>1?He:He[0];Xe&&(we.children=Xe)}}function hn(we,He,Xe){return ot;function ot(xt,Ct,Ft,Zt){const zn=Array.isArray(Ft.children)?Xe:He;return Zt?zn(Ct,Ft,Zt):zn(Ct,Ft)}}function cn(we,He){return Xe;function Xe(ot,xt,Ct,Ft){const Zt=Array.isArray(Ct.children),Dn=(0,be.Pk)(ot);return He(xt,Ct,Ft,Zt,{columnNumber:Dn?Dn.column-1:void 0,fileName:we,lineNumber:Dn?Dn.line:void 0},void 0)}}function Qn(we,He){const Xe={};let ot,xt;for(xt in He.properties)if(xt!=="children"&&rt.call(He.properties,xt)){const Ct=Wt(we,xt,He.properties[xt]);if(Ct){const[Ft,Zt]=Ct;we.tableCellAlignToStyle&&Ft==="align"&&typeof Zt=="string"&&Lt.has(He.tagName)?ot=Zt:Xe[Ft]=Zt}}if(ot){const Ct=Xe.style||(Xe.style={});Ct[we.stylePropertyNameCase==="css"?"text-align":"textAlign"]=ot}return Xe}function Bt(we,He){const Xe={};for(const ot of He.attributes)if(ot.type==="mdxJsxExpressionAttribute")if(ot.data&&ot.data.estree&&we.evaluater){const Ct=ot.data.estree.body[0];(0,Pe.ok)(Ct.type==="ExpressionStatement");const Ft=Ct.expression;(0,Pe.ok)(Ft.type==="ObjectExpression");const Zt=Ft.properties[0];(0,Pe.ok)(Zt.type==="SpreadElement"),Object.assign(Xe,we.evaluater.evaluateExpression(Zt.argument))}else $e(we,He.position);else{const xt=ot.name;let Ct;if(ot.value&&typeof ot.value=="object")if(ot.value.data&&ot.value.data.estree&&we.evaluater){const Zt=ot.value.data.estree.body[0];(0,Pe.ok)(Zt.type==="ExpressionStatement"),Ct=we.evaluater.evaluateExpression(Zt.expression)}else $e(we,He.position);else Ct=ot.value===null?!0:ot.value;Xe[xt]=Ct}return Xe}function Pt(we,He){const Xe=[];let ot=-1;const xt=we.passKeys?new Map:at;for(;++ot<He.children.length;){const Ct=He.children[ot];let Ft;if(we.passKeys){const Dn=Ct.type==="element"?Ct.tagName:Ct.type==="mdxJsxFlowElement"||Ct.type==="mdxJsxTextElement"?Ct.name:void 0;if(Dn){const zn=xt.get(Dn)||0;Ft=Dn+"-"+zn,xt.set(Dn,zn+1)}}const Zt=an(we,Ct,Ft);Zt!==void 0&&Xe.push(Zt)}return Xe}function Wt(we,He,Xe){const ot=(0,he.s)(we.schema,He);if(!(Xe==null||typeof Xe=="number"&&Number.isNaN(Xe))){if(Array.isArray(Xe)&&(Xe=ot.commaSeparated?(0,Me.P)(Xe):(0,ge.P)(Xe)),ot.property==="style"){let xt=typeof Xe=="object"?Xe:An(we,String(Xe));return we.stylePropertyNameCase==="css"&&(xt=Oe(xt)),["style",xt]}return[we.elementAttributeNameCase==="react"&&ot.space?se[ot.property]||ot.property:ot.attribute,Xe]}}function An(we,He){try{return ye(He,{reactCompat:!0})}catch(Xe){if(we.ignoreInvalidStyle)return{};const ot=Xe,xt=new Je("Cannot parse `style` attribute",{ancestors:we.ancestors,cause:ot,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw xt.file=we.filePath||void 0,xt.url=Ut+"#cannot-parse-style-attribute",xt}}function Nn(we,He,Xe){let ot;if(!Xe)ot={type:"Literal",value:He};else if(He.includes(".")){const xt=He.split(".");let Ct=-1,Ft;for(;++Ct<xt.length;){const Zt=it(xt[Ct])?{type:"Identifier",name:xt[Ct]}:{type:"Literal",value:xt[Ct]};Ft=Ft?{type:"MemberExpression",object:Ft,property:Zt,computed:!!(Ct&&Zt.type==="Literal"),optional:!1}:Zt}(0,Pe.ok)(Ft,"always a result"),ot=Ft}else ot=it(He)&&!/^[a-z]/.test(He)?{type:"Identifier",name:He}:{type:"Literal",value:He};if(ot.type==="Literal"){const xt=ot.value;return rt.call(we.components,xt)?we.components[xt]:xt}if(we.evaluater)return we.evaluater.evaluateExpression(ot);$e(we)}function $e(we,He){const Xe=new Je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:we.ancestors,place:He,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Xe.file=we.filePath||void 0,Xe.url=Ut+"#cannot-handle-mdx-estrees-without-createevaluater",Xe}function Oe(we){const He={};let Xe;for(Xe in we)rt.call(we,Xe)&&(He[ke(Xe)]=we[Xe]);return He}function ke(we){let He=we.replace(tt,Ke);return He.slice(0,3)==="ms-"&&(He="-"+He),He}function Ke(we){return"-"+we.toLowerCase()}const lt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Ue=le(37712),gt=le(59301);const tn={};function Un(we,He){const Xe=He||tn,ot=typeof Xe.includeImageAlt=="boolean"?Xe.includeImageAlt:!0,xt=typeof Xe.includeHtml=="boolean"?Xe.includeHtml:!0;return qn(we,ot,xt)}function qn(we,He,Xe){if(Ht(we)){if("value"in we)return we.type==="html"&&!Xe?"":we.value;if(He&&"alt"in we&&we.alt)return we.alt;if("children"in we)return nn(we.children,He,Xe)}return Array.isArray(we)?nn(we,He,Xe):""}function nn(we,He,Xe){const ot=[];let xt=-1;for(;++xt<we.length;)ot[xt]=qn(we[xt],He,Xe);return ot.join("")}function Ht(we){return!!(we&&typeof we=="object")}function sn(we,He,Xe,ot){const xt=we.length;let Ct=0,Ft;if(He<0?He=-He>xt?0:xt+He:He=He>xt?xt:He,Xe=Xe>0?Xe:0,ot.length<1e4)Ft=Array.from(ot),Ft.unshift(He,Xe),we.splice(...Ft);else for(Xe&&we.splice(He,Xe);Ct<ot.length;)Ft=ot.slice(Ct,Ct+1e4),Ft.unshift(He,0),we.splice(...Ft),Ct+=1e4,He+=1e4}function vn(we,He){return we.length>0?(sn(we,we.length,0,He),we):He}class Ln{constructor(He){this.left=He?[...He]:[],this.right=[]}get(He){if(He<0||He>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+He+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return He<this.left.length?this.left[He]:this.right[this.right.length-He+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(He,Xe){const ot=Xe==null?Number.POSITIVE_INFINITY:Xe;return ot<this.left.length?this.left.slice(He,ot):He>this.left.length?this.right.slice(this.right.length-ot+this.left.length,this.right.length-He+this.left.length).reverse():this.left.slice(He).concat(this.right.slice(this.right.length-ot+this.left.length).reverse())}splice(He,Xe,ot){const xt=Xe||0;this.setCursor(Math.trunc(He));const Ct=this.right.splice(this.right.length-xt,Number.POSITIVE_INFINITY);return ot&&xn(this.left,ot),Ct.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(He){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(He)}pushMany(He){this.setCursor(Number.POSITIVE_INFINITY),xn(this.left,He)}unshift(He){this.setCursor(0),this.right.push(He)}unshiftMany(He){this.setCursor(0),xn(this.right,He.reverse())}setCursor(He){if(!(He===this.left.length||He>this.left.length&&this.right.length===0||He<0&&this.left.length===0))if(He<this.left.length){const Xe=this.left.splice(He,Number.POSITIVE_INFINITY);xn(this.right,Xe.reverse())}else{const Xe=this.right.splice(this.left.length+this.right.length-He,Number.POSITIVE_INFINITY);xn(this.left,Xe.reverse())}}}function xn(we,He){let Xe=0;if(He.length<1e4)we.push(...He);else for(;Xe<He.length;)we.push(...He.slice(Xe,Xe+1e4)),Xe+=1e4}function _t(we){const He={};let Xe=-1,ot,xt,Ct,Ft,Zt,Dn,zn;const Sn=new Ln(we);for(;++Xe<Sn.length;){for(;Xe in He;)Xe=He[Xe];if(ot=Sn.get(Xe),Xe&&ot[1].type==="chunkFlow"&&Sn.get(Xe-1)[1].type==="listItemPrefix"&&(Dn=ot[1]._tokenizer.events,Ct=0,Ct<Dn.length&&Dn[Ct][1].type==="lineEndingBlank"&&(Ct+=2),Ct<Dn.length&&Dn[Ct][1].type==="content"))for(;++Ct<Dn.length&&Dn[Ct][1].type!=="content";)Dn[Ct][1].type==="chunkText"&&(Dn[Ct][1]._isInFirstContentOfListItem=!0,Ct++);if(ot[0]==="enter")ot[1].contentType&&(Object.assign(He,Vn(Sn,Xe)),Xe=He[Xe],zn=!0);else if(ot[1]._container){for(Ct=Xe,xt=void 0;Ct--;)if(Ft=Sn.get(Ct),Ft[1].type==="lineEnding"||Ft[1].type==="lineEndingBlank")Ft[0]==="enter"&&(xt&&(Sn.get(xt)[1].type="lineEndingBlank"),Ft[1].type="lineEnding",xt=Ct);else if(!(Ft[1].type==="linePrefix"||Ft[1].type==="listItemIndent"))break;xt&&(ot[1].end=oa({},Sn.get(xt)[1].start),Zt=Sn.slice(xt,Xe),Zt.unshift(ot),Sn.splice(xt,Xe-xt+1,Zt))}}return sn(we,0,Number.POSITIVE_INFINITY,Sn.slice(0)),!zn}function Vn(we,He){const Xe=we.get(He)[1],ot=we.get(He)[2];let xt=He-1;const Ct=[];let Ft=Xe._tokenizer;Ft||(Ft=ot.parser[Xe.contentType](Xe.start),Xe._contentTypeTextTrailing&&(Ft._contentTypeTextTrailing=!0));const Zt=Ft.events,Dn=[],zn={};let Sn,hi,ri=-1,bn=Xe,no=0,Po=0;const jo=[Po];for(;bn;){for(;we.get(++xt)[1]!==bn;);Ct.push(xt),bn._tokenizer||(Sn=ot.sliceStream(bn),bn.next||Sn.push(null),hi&&Ft.defineSkip(bn.start),bn._isInFirstContentOfListItem&&(Ft._gfmTasklistFirstContentOfListItem=!0),Ft.write(Sn),bn._isInFirstContentOfListItem&&(Ft._gfmTasklistFirstContentOfListItem=void 0)),hi=bn,bn=bn.next}for(bn=Xe;++ri<Zt.length;)Zt[ri][0]==="exit"&&Zt[ri-1][0]==="enter"&&Zt[ri][1].type===Zt[ri-1][1].type&&Zt[ri][1].start.line!==Zt[ri][1].end.line&&(Po=ri+1,jo.push(Po),bn._tokenizer=void 0,bn.previous=void 0,bn=bn.next);for(Ft.events=[],bn?(bn._tokenizer=void 0,bn.previous=void 0):jo.pop(),ri=jo.length;ri--;){const Ir=Zt.slice(jo[ri],jo[ri+1]),ro=Ct.pop();Dn.push([ro,ro+Ir.length-1]),we.splice(ro,2,Ir)}for(Dn.reverse(),ri=-1;++ri<Dn.length;)zn[no+Dn[ri][0]]=no+Dn[ri][1],no+=Dn[ri][1]-Dn[ri][0]-1;return zn}function Kn(we){for(;!_t(we););return we}const Tn={}.hasOwnProperty;function jn(we){const He={};let Xe=-1;for(;++Xe<we.length;)Mi(He,we[Xe]);return He}function Mi(we,He){let Xe;for(Xe in He){const xt=(Tn.call(we,Xe)?we[Xe]:void 0)||(we[Xe]={}),Ct=He[Xe];let Ft;if(Ct)for(Ft in Ct){Tn.call(xt,Ft)||(xt[Ft]=[]);const Zt=Ct[Ft];Gn(xt[Ft],Array.isArray(Zt)?Zt:Zt?[Zt]:[])}}}function Gn(we,He){let Xe=-1;const ot=[];for(;++Xe<He.length;)(He[Xe].add==="after"?we:ot).push(He[Xe]);sn(we,0,0,ot)}function wt(we){const He={};let Xe=-1;for(;++Xe<we.length;)Si(He,we[Xe]);return He}function Si(we,He){let Xe;for(Xe in He){const xt=(Tn.call(we,Xe)?we[Xe]:void 0)||(we[Xe]={}),Ct=He[Xe];let Ft;if(Ct)for(Ft in Ct)xt[Ft]=Ct[Ft]}}var wi=le(26735),Vt=le(80722);const qi={tokenize:lr};function lr(we){const He=we.attempt(this.parser.constructs.contentInitial,ot,xt);let Xe;return He;function ot(Zt){if(Zt===null){we.consume(Zt);return}return we.enter("lineEnding"),we.consume(Zt),we.exit("lineEnding"),(0,wi.f)(we,He,"linePrefix")}function xt(Zt){return we.enter("paragraph"),Ct(Zt)}function Ct(Zt){const Dn=we.enter("chunkText",{contentType:"text",previous:Xe});return Xe&&(Xe.next=Dn),Xe=Dn,Ft(Zt)}function Ft(Zt){if(Zt===null){we.exit("chunkText"),we.exit("paragraph"),we.consume(Zt);return}return(0,Vt.Ch)(Zt)?(we.consume(Zt),we.exit("chunkText"),Ct):(we.consume(Zt),Ft)}}const rr={tokenize:Br},In={tokenize:Tr};function Br(we){const He=this,Xe=[];let ot=0,xt,Ct,Ft;return Zt;function Zt(So){if(ot<Xe.length){const Fa=Xe[ot];return He.containerState=Fa[1],we.attempt(Fa[0].continuation,Dn,zn)(So)}return zn(So)}function Dn(So){if(ot++,He.containerState._closeFlow){He.containerState._closeFlow=void 0,xt&&ro();const Fa=He.events.length;let Ba=Fa,pr;for(;Ba--;)if(He.events[Ba][0]==="exit"&&He.events[Ba][1].type==="chunkFlow"){pr=He.events[Ba][1].end;break}Ir(ot);let za=Fa;for(;za<He.events.length;)He.events[za][1].end=oa({},pr),za++;return sn(He.events,Ba+1,0,He.events.slice(Fa)),He.events.length=za,zn(So)}return Zt(So)}function zn(So){if(ot===Xe.length){if(!xt)return ri(So);if(xt.currentConstruct&&xt.currentConstruct.concrete)return no(So);He.interrupt=!!(xt.currentConstruct&&!xt._gfmTableDynamicInterruptHack)}return He.containerState={},we.check(In,Sn,hi)(So)}function Sn(So){return xt&&ro(),Ir(ot),ri(So)}function hi(So){return He.parser.lazy[He.now().line]=ot!==Xe.length,Ft=He.now().offset,no(So)}function ri(So){return He.containerState={},we.attempt(In,bn,no)(So)}function bn(So){return ot++,Xe.push([He.currentConstruct,He.containerState]),ri(So)}function no(So){if(So===null){xt&&ro(),Ir(0),we.consume(So);return}return xt=xt||He.parser.flow(He.now()),we.enter("chunkFlow",{_tokenizer:xt,contentType:"flow",previous:Ct}),Po(So)}function Po(So){if(So===null){jo(we.exit("chunkFlow"),!0),Ir(0),we.consume(So);return}return(0,Vt.Ch)(So)?(we.consume(So),jo(we.exit("chunkFlow")),ot=0,He.interrupt=void 0,Zt):(we.consume(So),Po)}function jo(So,Fa){const Ba=He.sliceStream(So);if(Fa&&Ba.push(null),So.previous=Ct,Ct&&(Ct.next=So),Ct=So,xt.defineSkip(So.start),xt.write(Ba),He.parser.lazy[So.start.line]){let pr=xt.events.length;for(;pr--;)if(xt.events[pr][1].start.offset<Ft&&(!xt.events[pr][1].end||xt.events[pr][1].end.offset>Ft))return;const za=He.events.length;let us=za,La,$r;for(;us--;)if(He.events[us][0]==="exit"&&He.events[us][1].type==="chunkFlow"){if(La){$r=He.events[us][1].end;break}La=!0}for(Ir(ot),pr=za;pr<He.events.length;)He.events[pr][1].end=oa({},$r),pr++;sn(He.events,us+1,0,He.events.slice(za)),He.events.length=pr}}function Ir(So){let Fa=Xe.length;for(;Fa-- >So;){const Ba=Xe[Fa];He.containerState=Ba[1],Ba[0].exit.call(He,we)}Xe.length=So}function ro(){xt.write([null]),Ct=void 0,xt=void 0,He.containerState._closeFlow=void 0}}function Tr(we,He,Xe){return(0,wi.f)(we,we.attempt(this.parser.constructs.document,He,Xe),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Xi={partial:!0,tokenize:Ji};function Ji(we,He,Xe){return ot;function ot(Ct){return(0,Vt.xz)(Ct)?(0,wi.f)(we,xt,"linePrefix")(Ct):xt(Ct)}function xt(Ct){return Ct===null||(0,Vt.Ch)(Ct)?He(Ct):Xe(Ct)}}const Nr={resolve:Vi,tokenize:bi},Be={partial:!0,tokenize:di};function Vi(we){return _t(we),we}function bi(we,He){let Xe;return ot;function ot(Zt){return we.enter("content"),Xe=we.enter("chunkContent",{contentType:"content"}),xt(Zt)}function xt(Zt){return Zt===null?Ct(Zt):(0,Vt.Ch)(Zt)?we.check(Be,Ft,Ct)(Zt):(we.consume(Zt),xt)}function Ct(Zt){return we.exit("chunkContent"),we.exit("content"),He(Zt)}function Ft(Zt){return we.consume(Zt),we.exit("chunkContent"),Xe.next=we.enter("chunkContent",{contentType:"content",previous:Xe}),Xe=Xe.next,xt}}function di(we,He,Xe){const ot=this;return xt;function xt(Ft){return we.exit("chunkContent"),we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),(0,wi.f)(we,Ct,"linePrefix")}function Ct(Ft){if(Ft===null||(0,Vt.Ch)(Ft))return Xe(Ft);const Zt=ot.events[ot.events.length-1];return!ot.parser.constructs.disable.null.includes("codeIndented")&&Zt&&Zt[1].type==="linePrefix"&&Zt[2].sliceSerialize(Zt[1],!0).length>=4?He(Ft):we.interrupt(ot.parser.constructs.flow,Xe,He)(Ft)}}const Ri={tokenize:Fi};function Fi(we){const He=this,Xe=we.attempt(Xi,ot,we.attempt(this.parser.constructs.flowInitial,xt,(0,wi.f)(we,we.attempt(this.parser.constructs.flow,xt,we.attempt(Nr,xt)),"linePrefix")));return Xe;function ot(Ct){if(Ct===null){we.consume(Ct);return}return we.enter("lineEndingBlank"),we.consume(Ct),we.exit("lineEndingBlank"),He.currentConstruct=void 0,Xe}function xt(Ct){if(Ct===null){we.consume(Ct);return}return we.enter("lineEnding"),we.consume(Ct),we.exit("lineEnding"),He.currentConstruct=void 0,Xe}}const Ti={resolveAll:$t()},Lr=pn("string"),ln=pn("text");function pn(we){return{resolveAll:$t(we==="text"?wn:void 0),tokenize:He};function He(Xe){const ot=this,xt=this.parser.constructs[we],Ct=Xe.attempt(xt,Ft,Zt);return Ft;function Ft(Sn){return zn(Sn)?Ct(Sn):Zt(Sn)}function Zt(Sn){if(Sn===null){Xe.consume(Sn);return}return Xe.enter("data"),Xe.consume(Sn),Dn}function Dn(Sn){return zn(Sn)?(Xe.exit("data"),Ct(Sn)):(Xe.consume(Sn),Dn)}function zn(Sn){if(Sn===null)return!0;const hi=xt[Sn];let ri=-1;if(hi)for(;++ri<hi.length;){const bn=hi[ri];if(!bn.previous||bn.previous.call(ot,ot.previous))return!0}return!1}}}function $t(we){return He;function He(Xe,ot){let xt=-1,Ct;for(;++xt<=Xe.length;)Ct===void 0?Xe[xt]&&Xe[xt][1].type==="data"&&(Ct=xt,xt++):(!Xe[xt]||Xe[xt][1].type!=="data")&&(xt!==Ct+2&&(Xe[Ct][1].end=Xe[xt-1][1].end,Xe.splice(Ct+2,xt-Ct-2),xt=Ct+2),Ct=void 0);return we?we(Xe,ot):Xe}}function wn(we,He){let Xe=0;for(;++Xe<=we.length;)if((Xe===we.length||we[Xe][1].type==="lineEnding")&&we[Xe-1][1].type==="data"){const ot=we[Xe-1][1],xt=He.sliceStream(ot);let Ct=xt.length,Ft=-1,Zt=0,Dn;for(;Ct--;){const zn=xt[Ct];if(typeof zn=="string"){for(Ft=zn.length;zn.charCodeAt(Ft-1)===32;)Zt++,Ft--;if(Ft)break;Ft=-1}else if(zn===-2)Dn=!0,Zt++;else if(zn!==-1){Ct++;break}}if(He._contentTypeTextTrailing&&Xe===we.length&&(Zt=0),Zt){const zn={type:Xe===we.length||Dn||Zt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Ct?Ft:ot.start._bufferIndex+Ft,_index:ot.start._index+Ct,line:ot.end.line,column:ot.end.column-Zt,offset:ot.end.offset-Zt},end:oa({},ot.end)};ot.end=oa({},zn.start),ot.start.offset===ot.end.offset?Object.assign(ot,zn):(we.splice(Xe,0,["enter",zn,He],["exit",zn,He]),Xe+=2)}Xe++}return we}const Gi={name:"thematicBreak",tokenize:Ci};function Ci(we,He,Xe){let ot=0,xt;return Ct;function Ct(zn){return we.enter("thematicBreak"),Ft(zn)}function Ft(zn){return xt=zn,Zt(zn)}function Zt(zn){return zn===xt?(we.enter("thematicBreakSequence"),Dn(zn)):ot>=3&&(zn===null||(0,Vt.Ch)(zn))?(we.exit("thematicBreak"),He(zn)):Xe(zn)}function Dn(zn){return zn===xt?(we.consume(zn),ot++,Dn):(we.exit("thematicBreakSequence"),(0,Vt.xz)(zn)?(0,wi.f)(we,Zt,"whitespace")(zn):Zt(zn))}}const Yi={continuation:{tokenize:or},exit:yt,name:"list",tokenize:Ui},mn={partial:!0,tokenize:zt},Rn={partial:!0,tokenize:ci};function Ui(we,He,Xe){const ot=this,xt=ot.events[ot.events.length-1];let Ct=xt&&xt[1].type==="linePrefix"?xt[2].sliceSerialize(xt[1],!0).length:0,Ft=0;return Zt;function Zt(bn){const no=ot.containerState.type||(bn===42||bn===43||bn===45?"listUnordered":"listOrdered");if(no==="listUnordered"?!ot.containerState.marker||bn===ot.containerState.marker:(0,Vt.pY)(bn)){if(ot.containerState.type||(ot.containerState.type=no,we.enter(no,{_container:!0})),no==="listUnordered")return we.enter("listItemPrefix"),bn===42||bn===45?we.check(Gi,Xe,zn)(bn):zn(bn);if(!ot.interrupt||bn===49)return we.enter("listItemPrefix"),we.enter("listItemValue"),Dn(bn)}return Xe(bn)}function Dn(bn){return(0,Vt.pY)(bn)&&++Ft<10?(we.consume(bn),Dn):(!ot.interrupt||Ft<2)&&(ot.containerState.marker?bn===ot.containerState.marker:bn===41||bn===46)?(we.exit("listItemValue"),zn(bn)):Xe(bn)}function zn(bn){return we.enter("listItemMarker"),we.consume(bn),we.exit("listItemMarker"),ot.containerState.marker=ot.containerState.marker||bn,we.check(Xi,ot.interrupt?Xe:Sn,we.attempt(mn,ri,hi))}function Sn(bn){return ot.containerState.initialBlankLine=!0,Ct++,ri(bn)}function hi(bn){return(0,Vt.xz)(bn)?(we.enter("listItemPrefixWhitespace"),we.consume(bn),we.exit("listItemPrefixWhitespace"),ri):Xe(bn)}function ri(bn){return ot.containerState.size=Ct+ot.sliceSerialize(we.exit("listItemPrefix"),!0).length,He(bn)}}function or(we,He,Xe){const ot=this;return ot.containerState._closeFlow=void 0,we.check(Xi,xt,Ct);function xt(Zt){return ot.containerState.furtherBlankLines=ot.containerState.furtherBlankLines||ot.containerState.initialBlankLine,(0,wi.f)(we,He,"listItemIndent",ot.containerState.size+1)(Zt)}function Ct(Zt){return ot.containerState.furtherBlankLines||!(0,Vt.xz)(Zt)?(ot.containerState.furtherBlankLines=void 0,ot.containerState.initialBlankLine=void 0,Ft(Zt)):(ot.containerState.furtherBlankLines=void 0,ot.containerState.initialBlankLine=void 0,we.attempt(Rn,He,Ft)(Zt))}function Ft(Zt){return ot.containerState._closeFlow=!0,ot.interrupt=void 0,(0,wi.f)(we,we.attempt(Yi,He,Xe),"linePrefix",ot.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Zt)}}function ci(we,He,Xe){const ot=this;return(0,wi.f)(we,xt,"listItemIndent",ot.containerState.size+1);function xt(Ct){const Ft=ot.events[ot.events.length-1];return Ft&&Ft[1].type==="listItemIndent"&&Ft[2].sliceSerialize(Ft[1],!0).length===ot.containerState.size?He(Ct):Xe(Ct)}}function yt(we){we.exit(this.containerState.type)}function zt(we,He,Xe){const ot=this;return(0,wi.f)(we,xt,"listItemPrefixWhitespace",ot.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function xt(Ct){const Ft=ot.events[ot.events.length-1];return!(0,Vt.xz)(Ct)&&Ft&&Ft[1].type==="listItemPrefixWhitespace"?He(Ct):Xe(Ct)}}const li={continuation:{tokenize:Rt},exit:Jn,name:"blockQuote",tokenize:ii};function ii(we,He,Xe){const ot=this;return xt;function xt(Ft){if(Ft===62){const Zt=ot.containerState;return Zt.open||(we.enter("blockQuote",{_container:!0}),Zt.open=!0),we.enter("blockQuotePrefix"),we.enter("blockQuoteMarker"),we.consume(Ft),we.exit("blockQuoteMarker"),Ct}return Xe(Ft)}function Ct(Ft){return(0,Vt.xz)(Ft)?(we.enter("blockQuotePrefixWhitespace"),we.consume(Ft),we.exit("blockQuotePrefixWhitespace"),we.exit("blockQuotePrefix"),He):(we.exit("blockQuotePrefix"),He(Ft))}}function Rt(we,He,Xe){const ot=this;return xt;function xt(Ft){return(0,Vt.xz)(Ft)?(0,wi.f)(we,Ct,"linePrefix",ot.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ft):Ct(Ft)}function Ct(Ft){return we.attempt(li,He,Xe)(Ft)}}function Jn(we){we.exit("blockQuote")}function Ni(we,He,Xe,ot,xt,Ct,Ft,Zt,Dn){const zn=Dn||Number.POSITIVE_INFINITY;let Sn=0;return hi;function hi(Ir){return Ir===60?(we.enter(ot),we.enter(xt),we.enter(Ct),we.consume(Ir),we.exit(Ct),ri):Ir===null||Ir===32||Ir===41||(0,Vt.Av)(Ir)?Xe(Ir):(we.enter(ot),we.enter(Ft),we.enter(Zt),we.enter("chunkString",{contentType:"string"}),Po(Ir))}function ri(Ir){return Ir===62?(we.enter(Ct),we.consume(Ir),we.exit(Ct),we.exit(xt),we.exit(ot),He):(we.enter(Zt),we.enter("chunkString",{contentType:"string"}),bn(Ir))}function bn(Ir){return Ir===62?(we.exit("chunkString"),we.exit(Zt),ri(Ir)):Ir===null||Ir===60||(0,Vt.Ch)(Ir)?Xe(Ir):(we.consume(Ir),Ir===92?no:bn)}function no(Ir){return Ir===60||Ir===62||Ir===92?(we.consume(Ir),bn):bn(Ir)}function Po(Ir){return!Sn&&(Ir===null||Ir===41||(0,Vt.z3)(Ir))?(we.exit("chunkString"),we.exit(Zt),we.exit(Ft),we.exit(ot),He(Ir)):Sn<zn&&Ir===40?(we.consume(Ir),Sn++,Po):Ir===41?(we.consume(Ir),Sn--,Po):Ir===null||Ir===32||Ir===40||(0,Vt.Av)(Ir)?Xe(Ir):(we.consume(Ir),Ir===92?jo:Po)}function jo(Ir){return Ir===40||Ir===41||Ir===92?(we.consume(Ir),Po):Po(Ir)}}function en(we,He,Xe,ot,xt,Ct){const Ft=this;let Zt=0,Dn;return zn;function zn(bn){return we.enter(ot),we.enter(xt),we.consume(bn),we.exit(xt),we.enter(Ct),Sn}function Sn(bn){return Zt>999||bn===null||bn===91||bn===93&&!Dn||bn===94&&!Zt&&"_hiddenFootnoteSupport"in Ft.parser.constructs?Xe(bn):bn===93?(we.exit(Ct),we.enter(xt),we.consume(bn),we.exit(xt),we.exit(ot),He):(0,Vt.Ch)(bn)?(we.enter("lineEnding"),we.consume(bn),we.exit("lineEnding"),Sn):(we.enter("chunkString",{contentType:"string"}),hi(bn))}function hi(bn){return bn===null||bn===91||bn===93||(0,Vt.Ch)(bn)||Zt++>999?(we.exit("chunkString"),Sn(bn)):(we.consume(bn),Dn||(Dn=!(0,Vt.xz)(bn)),bn===92?ri:hi)}function ri(bn){return bn===91||bn===92||bn===93?(we.consume(bn),Zt++,hi):hi(bn)}}function ze(we,He,Xe,ot,xt,Ct){let Ft;return Zt;function Zt(ri){return ri===34||ri===39||ri===40?(we.enter(ot),we.enter(xt),we.consume(ri),we.exit(xt),Ft=ri===40?41:ri,Dn):Xe(ri)}function Dn(ri){return ri===Ft?(we.enter(xt),we.consume(ri),we.exit(xt),we.exit(ot),He):(we.enter(Ct),zn(ri))}function zn(ri){return ri===Ft?(we.exit(Ct),Dn(Ft)):ri===null?Xe(ri):(0,Vt.Ch)(ri)?(we.enter("lineEnding"),we.consume(ri),we.exit("lineEnding"),(0,wi.f)(we,zn,"linePrefix")):(we.enter("chunkString",{contentType:"string"}),Sn(ri))}function Sn(ri){return ri===Ft||ri===null||(0,Vt.Ch)(ri)?(we.exit("chunkString"),zn(ri)):(we.consume(ri),ri===92?hi:Sn)}function hi(ri){return ri===Ft||ri===92?(we.consume(ri),Sn):Sn(ri)}}function si(we,He){let Xe;return ot;function ot(xt){return(0,Vt.Ch)(xt)?(we.enter("lineEnding"),we.consume(xt),we.exit("lineEnding"),Xe=!0,ot):(0,Vt.xz)(xt)?(0,wi.f)(we,ot,Xe?"linePrefix":"lineSuffix")(xt):He(xt)}}function oi(we){return we.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yn={name:"definition",tokenize:Zi},ir={partial:!0,tokenize:Fn};function Zi(we,He,Xe){const ot=this;let xt;return Ct;function Ct(bn){return we.enter("definition"),Ft(bn)}function Ft(bn){return en.call(ot,we,Zt,Xe,"definitionLabel","definitionLabelMarker","definitionLabelString")(bn)}function Zt(bn){return xt=oi(ot.sliceSerialize(ot.events[ot.events.length-1][1]).slice(1,-1)),bn===58?(we.enter("definitionMarker"),we.consume(bn),we.exit("definitionMarker"),Dn):Xe(bn)}function Dn(bn){return(0,Vt.z3)(bn)?si(we,zn)(bn):zn(bn)}function zn(bn){return Ni(we,Sn,Xe,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(bn)}function Sn(bn){return we.attempt(ir,hi,hi)(bn)}function hi(bn){return(0,Vt.xz)(bn)?(0,wi.f)(we,ri,"whitespace")(bn):ri(bn)}function ri(bn){return bn===null||(0,Vt.Ch)(bn)?(we.exit("definition"),ot.parser.defined.push(xt),He(bn)):Xe(bn)}}function Fn(we,He,Xe){return ot;function ot(Zt){return(0,Vt.z3)(Zt)?si(we,xt)(Zt):Xe(Zt)}function xt(Zt){return ze(we,Ct,Xe,"definitionTitle","definitionTitleMarker","definitionTitleString")(Zt)}function Ct(Zt){return(0,Vt.xz)(Zt)?(0,wi.f)(we,Ft,"whitespace")(Zt):Ft(Zt)}function Ft(Zt){return Zt===null||(0,Vt.Ch)(Zt)?He(Zt):Xe(Zt)}}const Li={name:"codeIndented",tokenize:br},jt={partial:!0,tokenize:Eo};function br(we,He,Xe){const ot=this;return xt;function xt(zn){return we.enter("codeIndented"),(0,wi.f)(we,Ct,"linePrefix",5)(zn)}function Ct(zn){const Sn=ot.events[ot.events.length-1];return Sn&&Sn[1].type==="linePrefix"&&Sn[2].sliceSerialize(Sn[1],!0).length>=4?Ft(zn):Xe(zn)}function Ft(zn){return zn===null?Dn(zn):(0,Vt.Ch)(zn)?we.attempt(jt,Ft,Dn)(zn):(we.enter("codeFlowValue"),Zt(zn))}function Zt(zn){return zn===null||(0,Vt.Ch)(zn)?(we.exit("codeFlowValue"),Ft(zn)):(we.consume(zn),Zt)}function Dn(zn){return we.exit("codeIndented"),He(zn)}}function Eo(we,He,Xe){const ot=this;return xt;function xt(Ft){return ot.parser.lazy[ot.now().line]?Xe(Ft):(0,Vt.Ch)(Ft)?(we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),xt):(0,wi.f)(we,Ct,"linePrefix",5)(Ft)}function Ct(Ft){const Zt=ot.events[ot.events.length-1];return Zt&&Zt[1].type==="linePrefix"&&Zt[2].sliceSerialize(Zt[1],!0).length>=4?He(Ft):(0,Vt.Ch)(Ft)?xt(Ft):Xe(Ft)}}const Gt={name:"headingAtx",resolve:Wi,tokenize:cr};function Wi(we,He){let Xe=we.length-2,ot=3,xt,Ct;return we[ot][1].type==="whitespace"&&(ot+=2),Xe-2>ot&&we[Xe][1].type==="whitespace"&&(Xe-=2),we[Xe][1].type==="atxHeadingSequence"&&(ot===Xe-1||Xe-4>ot&&we[Xe-2][1].type==="whitespace")&&(Xe-=ot+1===Xe?2:4),Xe>ot&&(xt={type:"atxHeadingText",start:we[ot][1].start,end:we[Xe][1].end},Ct={type:"chunkText",start:we[ot][1].start,end:we[Xe][1].end,contentType:"text"},sn(we,ot,Xe-ot+1,[["enter",xt,He],["enter",Ct,He],["exit",Ct,He],["exit",xt,He]])),we}function cr(we,He,Xe){let ot=0;return xt;function xt(Sn){return we.enter("atxHeading"),Ct(Sn)}function Ct(Sn){return we.enter("atxHeadingSequence"),Ft(Sn)}function Ft(Sn){return Sn===35&&ot++<6?(we.consume(Sn),Ft):Sn===null||(0,Vt.z3)(Sn)?(we.exit("atxHeadingSequence"),Zt(Sn)):Xe(Sn)}function Zt(Sn){return Sn===35?(we.enter("atxHeadingSequence"),Dn(Sn)):Sn===null||(0,Vt.Ch)(Sn)?(we.exit("atxHeading"),He(Sn)):(0,Vt.xz)(Sn)?(0,wi.f)(we,Zt,"whitespace")(Sn):(we.enter("atxHeadingText"),zn(Sn))}function Dn(Sn){return Sn===35?(we.consume(Sn),Dn):(we.exit("atxHeadingSequence"),Zt(Sn))}function zn(Sn){return Sn===null||Sn===35||(0,Vt.z3)(Sn)?(we.exit("atxHeadingText"),Zt(Sn)):(we.consume(Sn),zn)}}const Hi={name:"setextUnderline",resolveTo:Hr,tokenize:Rr};function Hr(we,He){let Xe=we.length,ot,xt,Ct;for(;Xe--;)if(we[Xe][0]==="enter"){if(we[Xe][1].type==="content"){ot=Xe;break}we[Xe][1].type==="paragraph"&&(xt=Xe)}else we[Xe][1].type==="content"&&we.splice(Xe,1),!Ct&&we[Xe][1].type==="definition"&&(Ct=Xe);const Ft={type:"setextHeading",start:oa({},we[ot][1].start),end:oa({},we[we.length-1][1].end)};return we[xt][1].type="setextHeadingText",Ct?(we.splice(xt,0,["enter",Ft,He]),we.splice(Ct+1,0,["exit",we[ot][1],He]),we[ot][1].end=oa({},we[Ct][1].end)):we[ot][1]=Ft,we.push(["exit",Ft,He]),we}function Rr(we,He,Xe){const ot=this;let xt;return Ct;function Ct(zn){let Sn=ot.events.length,hi;for(;Sn--;)if(ot.events[Sn][1].type!=="lineEnding"&&ot.events[Sn][1].type!=="linePrefix"&&ot.events[Sn][1].type!=="content"){hi=ot.events[Sn][1].type==="paragraph";break}return!ot.parser.lazy[ot.now().line]&&(ot.interrupt||hi)?(we.enter("setextHeadingLine"),xt=zn,Ft(zn)):Xe(zn)}function Ft(zn){return we.enter("setextHeadingLineSequence"),Zt(zn)}function Zt(zn){return zn===xt?(we.consume(zn),Zt):(we.exit("setextHeadingLineSequence"),(0,Vt.xz)(zn)?(0,wi.f)(we,Dn,"lineSuffix")(zn):Dn(zn))}function Dn(zn){return zn===null||(0,Vt.Ch)(zn)?(we.exit("setextHeadingLine"),He(zn)):Xe(zn)}}const jr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_r=["pre","script","style","textarea"],Ur={concrete:!0,name:"htmlFlow",resolveTo:bo,tokenize:Mn},po={partial:!0,tokenize:wr},Pn={partial:!0,tokenize:tr};function bo(we){let He=we.length;for(;He--&&!(we[He][0]==="enter"&&we[He][1].type==="htmlFlow"););return He>1&&we[He-2][1].type==="linePrefix"&&(we[He][1].start=we[He-2][1].start,we[He+1][1].start=we[He-2][1].start,we.splice(He-2,2)),we}function Mn(we,He,Xe){const ot=this;let xt,Ct,Ft,Zt,Dn;return zn;function zn(ni){return Sn(ni)}function Sn(ni){return we.enter("htmlFlow"),we.enter("htmlFlowData"),we.consume(ni),hi}function hi(ni){return ni===33?(we.consume(ni),ri):ni===47?(we.consume(ni),Ct=!0,Po):ni===63?(we.consume(ni),xt=3,ot.interrupt?He:Xn):(0,Vt.jv)(ni)?(we.consume(ni),Ft=String.fromCharCode(ni),jo):Xe(ni)}function ri(ni){return ni===45?(we.consume(ni),xt=2,bn):ni===91?(we.consume(ni),xt=5,Zt=0,no):(0,Vt.jv)(ni)?(we.consume(ni),xt=4,ot.interrupt?He:Xn):Xe(ni)}function bn(ni){return ni===45?(we.consume(ni),ot.interrupt?He:Xn):Xe(ni)}function no(ni){const $s="CDATA[";return ni===$s.charCodeAt(Zt++)?(we.consume(ni),Zt===$s.length?ot.interrupt?He:Ka:no):Xe(ni)}function Po(ni){return(0,Vt.jv)(ni)?(we.consume(ni),Ft=String.fromCharCode(ni),jo):Xe(ni)}function jo(ni){if(ni===null||ni===47||ni===62||(0,Vt.z3)(ni)){const $s=ni===47,lu=Ft.toLowerCase();return!$s&&!Ct&&_r.includes(lu)?(xt=1,ot.interrupt?He(ni):Ka(ni)):jr.includes(Ft.toLowerCase())?(xt=6,$s?(we.consume(ni),Ir):ot.interrupt?He(ni):Ka(ni)):(xt=7,ot.interrupt&&!ot.parser.lazy[ot.now().line]?Xe(ni):Ct?ro(ni):So(ni))}return ni===45||(0,Vt.H$)(ni)?(we.consume(ni),Ft+=String.fromCharCode(ni),jo):Xe(ni)}function Ir(ni){return ni===62?(we.consume(ni),ot.interrupt?He:Ka):Xe(ni)}function ro(ni){return(0,Vt.xz)(ni)?(we.consume(ni),ro):$r(ni)}function So(ni){return ni===47?(we.consume(ni),$r):ni===58||ni===95||(0,Vt.jv)(ni)?(we.consume(ni),Fa):(0,Vt.xz)(ni)?(we.consume(ni),So):$r(ni)}function Fa(ni){return ni===45||ni===46||ni===58||ni===95||(0,Vt.H$)(ni)?(we.consume(ni),Fa):Ba(ni)}function Ba(ni){return ni===61?(we.consume(ni),pr):(0,Vt.xz)(ni)?(we.consume(ni),Ba):So(ni)}function pr(ni){return ni===null||ni===60||ni===61||ni===62||ni===96?Xe(ni):ni===34||ni===39?(we.consume(ni),Dn=ni,za):(0,Vt.xz)(ni)?(we.consume(ni),pr):us(ni)}function za(ni){return ni===Dn?(we.consume(ni),Dn=null,La):ni===null||(0,Vt.Ch)(ni)?Xe(ni):(we.consume(ni),za)}function us(ni){return ni===null||ni===34||ni===39||ni===47||ni===60||ni===61||ni===62||ni===96||(0,Vt.z3)(ni)?Ba(ni):(we.consume(ni),us)}function La(ni){return ni===47||ni===62||(0,Vt.xz)(ni)?So(ni):Xe(ni)}function $r(ni){return ni===62?(we.consume(ni),sl):Xe(ni)}function sl(ni){return ni===null||(0,Vt.Ch)(ni)?Ka(ni):(0,Vt.xz)(ni)?(we.consume(ni),sl):Xe(ni)}function Ka(ni){return ni===45&&xt===2?(we.consume(ni),is):ni===60&&xt===1?(we.consume(ni),Hs):ni===62&&xt===4?(we.consume(ni),ll):ni===63&&xt===3?(we.consume(ni),Xn):ni===93&&xt===5?(we.consume(ni),Bl):(0,Vt.Ch)(ni)&&(xt===6||xt===7)?(we.exit("htmlFlowData"),we.check(po,Kl,_o)(ni)):ni===null||(0,Vt.Ch)(ni)?(we.exit("htmlFlowData"),_o(ni)):(we.consume(ni),Ka)}function _o(ni){return we.check(Pn,Do,Kl)(ni)}function Do(ni){return we.enter("lineEnding"),we.consume(ni),we.exit("lineEnding"),la}function la(ni){return ni===null||(0,Vt.Ch)(ni)?_o(ni):(we.enter("htmlFlowData"),Ka(ni))}function is(ni){return ni===45?(we.consume(ni),Xn):Ka(ni)}function Hs(ni){return ni===47?(we.consume(ni),Ft="",qs):Ka(ni)}function qs(ni){if(ni===62){const $s=Ft.toLowerCase();return _r.includes($s)?(we.consume(ni),ll):Ka(ni)}return(0,Vt.jv)(ni)&&Ft.length<8?(we.consume(ni),Ft+=String.fromCharCode(ni),qs):Ka(ni)}function Bl(ni){return ni===93?(we.consume(ni),Xn):Ka(ni)}function Xn(ni){return ni===62?(we.consume(ni),ll):ni===45&&xt===2?(we.consume(ni),Xn):Ka(ni)}function ll(ni){return ni===null||(0,Vt.Ch)(ni)?(we.exit("htmlFlowData"),Kl(ni)):(we.consume(ni),ll)}function Kl(ni){return we.exit("htmlFlow"),He(ni)}}function tr(we,He,Xe){const ot=this;return xt;function xt(Ft){return(0,Vt.Ch)(Ft)?(we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),Ct):Xe(Ft)}function Ct(Ft){return ot.parser.lazy[ot.now().line]?Xe(Ft):He(Ft)}}function wr(we,He,Xe){return ot;function ot(xt){return we.enter("lineEnding"),we.consume(xt),we.exit("lineEnding"),we.attempt(Xi,He,Xe)}}const Sr={partial:!0,tokenize:Ar},yo={concrete:!0,name:"codeFenced",tokenize:Or};function Or(we,He,Xe){const ot=this,xt={partial:!0,tokenize:Ba};let Ct=0,Ft=0,Zt;return Dn;function Dn(pr){return zn(pr)}function zn(pr){const za=ot.events[ot.events.length-1];return Ct=za&&za[1].type==="linePrefix"?za[2].sliceSerialize(za[1],!0).length:0,Zt=pr,we.enter("codeFenced"),we.enter("codeFencedFence"),we.enter("codeFencedFenceSequence"),Sn(pr)}function Sn(pr){return pr===Zt?(Ft++,we.consume(pr),Sn):Ft<3?Xe(pr):(we.exit("codeFencedFenceSequence"),(0,Vt.xz)(pr)?(0,wi.f)(we,hi,"whitespace")(pr):hi(pr))}function hi(pr){return pr===null||(0,Vt.Ch)(pr)?(we.exit("codeFencedFence"),ot.interrupt?He(pr):we.check(Sr,Po,Fa)(pr)):(we.enter("codeFencedFenceInfo"),we.enter("chunkString",{contentType:"string"}),ri(pr))}function ri(pr){return pr===null||(0,Vt.Ch)(pr)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),hi(pr)):(0,Vt.xz)(pr)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),(0,wi.f)(we,bn,"whitespace")(pr)):pr===96&&pr===Zt?Xe(pr):(we.consume(pr),ri)}function bn(pr){return pr===null||(0,Vt.Ch)(pr)?hi(pr):(we.enter("codeFencedFenceMeta"),we.enter("chunkString",{contentType:"string"}),no(pr))}function no(pr){return pr===null||(0,Vt.Ch)(pr)?(we.exit("chunkString"),we.exit("codeFencedFenceMeta"),hi(pr)):pr===96&&pr===Zt?Xe(pr):(we.consume(pr),no)}function Po(pr){return we.attempt(xt,Fa,jo)(pr)}function jo(pr){return we.enter("lineEnding"),we.consume(pr),we.exit("lineEnding"),Ir}function Ir(pr){return Ct>0&&(0,Vt.xz)(pr)?(0,wi.f)(we,ro,"linePrefix",Ct+1)(pr):ro(pr)}function ro(pr){return pr===null||(0,Vt.Ch)(pr)?we.check(Sr,Po,Fa)(pr):(we.enter("codeFlowValue"),So(pr))}function So(pr){return pr===null||(0,Vt.Ch)(pr)?(we.exit("codeFlowValue"),ro(pr)):(we.consume(pr),So)}function Fa(pr){return we.exit("codeFenced"),He(pr)}function Ba(pr,za,us){let La=0;return $r;function $r(la){return pr.enter("lineEnding"),pr.consume(la),pr.exit("lineEnding"),sl}function sl(la){return pr.enter("codeFencedFence"),(0,Vt.xz)(la)?(0,wi.f)(pr,Ka,"linePrefix",ot.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(la):Ka(la)}function Ka(la){return la===Zt?(pr.enter("codeFencedFenceSequence"),_o(la)):us(la)}function _o(la){return la===Zt?(La++,pr.consume(la),_o):La>=Ft?(pr.exit("codeFencedFenceSequence"),(0,Vt.xz)(la)?(0,wi.f)(pr,Do,"whitespace")(la):Do(la)):us(la)}function Do(la){return la===null||(0,Vt.Ch)(la)?(pr.exit("codeFencedFence"),za(la)):us(la)}}}function Ar(we,He,Xe){const ot=this;return xt;function xt(Ft){return Ft===null?Xe(Ft):(we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),Ct)}function Ct(Ft){return ot.parser.lazy[ot.now().line]?Xe(Ft):He(Ft)}}const To=document.createElement("i");function rn(we){const He="&"+we+";";To.innerHTML=He;const Xe=To.textContent;return Xe.charCodeAt(Xe.length-1)===59&&we!=="semi"||Xe===He?!1:Xe}const _n={name:"characterReference",tokenize:Yt};function Yt(we,He,Xe){const ot=this;let xt=0,Ct,Ft;return Zt;function Zt(hi){return we.enter("characterReference"),we.enter("characterReferenceMarker"),we.consume(hi),we.exit("characterReferenceMarker"),Dn}function Dn(hi){return hi===35?(we.enter("characterReferenceMarkerNumeric"),we.consume(hi),we.exit("characterReferenceMarkerNumeric"),zn):(we.enter("characterReferenceValue"),Ct=31,Ft=Vt.H$,Sn(hi))}function zn(hi){return hi===88||hi===120?(we.enter("characterReferenceMarkerHexadecimal"),we.consume(hi),we.exit("characterReferenceMarkerHexadecimal"),we.enter("characterReferenceValue"),Ct=6,Ft=Vt.AF,Sn):(we.enter("characterReferenceValue"),Ct=7,Ft=Vt.pY,Sn(hi))}function Sn(hi){if(hi===59&&xt){const ri=we.exit("characterReferenceValue");return Ft===Vt.H$&&!rn(ot.sliceSerialize(ri))?Xe(hi):(we.enter("characterReferenceMarker"),we.consume(hi),we.exit("characterReferenceMarker"),we.exit("characterReference"),He)}return Ft(hi)&&xt++<Ct?(we.consume(hi),Sn):Xe(hi)}}const qe={name:"characterEscape",tokenize:ai};function ai(we,He,Xe){return ot;function ot(Ct){return we.enter("characterEscape"),we.enter("escapeMarker"),we.consume(Ct),we.exit("escapeMarker"),xt}function xt(Ct){return(0,Vt.sR)(Ct)?(we.enter("characterEscapeValue"),we.consume(Ct),we.exit("characterEscapeValue"),we.exit("characterEscape"),He):Xe(Ct)}}const yi={name:"lineEnding",tokenize:Ki};function Ki(we,He){return Xe;function Xe(ot){return we.enter("lineEnding"),we.consume(ot),we.exit("lineEnding"),(0,wi.f)(we,He,"linePrefix")}}function _i(we,He,Xe){const ot=[];let xt=-1;for(;++xt<we.length;){const Ct=we[xt].resolveAll;Ct&&!ot.includes(Ct)&&(He=Ct(He,Xe),ot.push(Ct))}return He}const Ii={name:"labelEnd",resolveAll:ti,resolveTo:gi,tokenize:ui},On={tokenize:xi},fi={tokenize:Oi},mi={tokenize:En};function ti(we){let He=-1;const Xe=[];for(;++He<we.length;){const ot=we[He][1];if(Xe.push(we[He]),ot.type==="labelImage"||ot.type==="labelLink"||ot.type==="labelEnd"){const xt=ot.type==="labelImage"?4:2;ot.type="data",He+=xt}}return we.length!==Xe.length&&sn(we,0,we.length,Xe),we}function gi(we,He){let Xe=we.length,ot=0,xt,Ct,Ft,Zt;for(;Xe--;)if(xt=we[Xe][1],Ct){if(xt.type==="link"||xt.type==="labelLink"&&xt._inactive)break;we[Xe][0]==="enter"&&xt.type==="labelLink"&&(xt._inactive=!0)}else if(Ft){if(we[Xe][0]==="enter"&&(xt.type==="labelImage"||xt.type==="labelLink")&&!xt._balanced&&(Ct=Xe,xt.type!=="labelLink")){ot=2;break}}else xt.type==="labelEnd"&&(Ft=Xe);const Dn={type:we[Ct][1].type==="labelLink"?"link":"image",start:oa({},we[Ct][1].start),end:oa({},we[we.length-1][1].end)},zn={type:"label",start:oa({},we[Ct][1].start),end:oa({},we[Ft][1].end)},Sn={type:"labelText",start:oa({},we[Ct+ot+2][1].end),end:oa({},we[Ft-2][1].start)};return Zt=[["enter",Dn,He],["enter",zn,He]],Zt=vn(Zt,we.slice(Ct+1,Ct+ot+3)),Zt=vn(Zt,[["enter",Sn,He]]),Zt=vn(Zt,_i(He.parser.constructs.insideSpan.null,we.slice(Ct+ot+4,Ft-3),He)),Zt=vn(Zt,[["exit",Sn,He],we[Ft-2],we[Ft-1],["exit",zn,He]]),Zt=vn(Zt,we.slice(Ft+1)),Zt=vn(Zt,[["exit",Dn,He]]),sn(we,Ct,we.length,Zt),we}function ui(we,He,Xe){const ot=this;let xt=ot.events.length,Ct,Ft;for(;xt--;)if((ot.events[xt][1].type==="labelImage"||ot.events[xt][1].type==="labelLink")&&!ot.events[xt][1]._balanced){Ct=ot.events[xt][1];break}return Zt;function Zt(ri){return Ct?Ct._inactive?hi(ri):(Ft=ot.parser.defined.includes(oi(ot.sliceSerialize({start:Ct.end,end:ot.now()}))),we.enter("labelEnd"),we.enter("labelMarker"),we.consume(ri),we.exit("labelMarker"),we.exit("labelEnd"),Dn):Xe(ri)}function Dn(ri){return ri===40?we.attempt(On,Sn,Ft?Sn:hi)(ri):ri===91?we.attempt(fi,Sn,Ft?zn:hi)(ri):Ft?Sn(ri):hi(ri)}function zn(ri){return we.attempt(mi,Sn,hi)(ri)}function Sn(ri){return He(ri)}function hi(ri){return Ct._balanced=!0,Xe(ri)}}function xi(we,He,Xe){return ot;function ot(hi){return we.enter("resource"),we.enter("resourceMarker"),we.consume(hi),we.exit("resourceMarker"),xt}function xt(hi){return(0,Vt.z3)(hi)?si(we,Ct)(hi):Ct(hi)}function Ct(hi){return hi===41?Sn(hi):Ni(we,Ft,Zt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(hi)}function Ft(hi){return(0,Vt.z3)(hi)?si(we,Dn)(hi):Sn(hi)}function Zt(hi){return Xe(hi)}function Dn(hi){return hi===34||hi===39||hi===40?ze(we,zn,Xe,"resourceTitle","resourceTitleMarker","resourceTitleString")(hi):Sn(hi)}function zn(hi){return(0,Vt.z3)(hi)?si(we,Sn)(hi):Sn(hi)}function Sn(hi){return hi===41?(we.enter("resourceMarker"),we.consume(hi),we.exit("resourceMarker"),we.exit("resource"),He):Xe(hi)}}function Oi(we,He,Xe){const ot=this;return xt;function xt(Zt){return en.call(ot,we,Ct,Ft,"reference","referenceMarker","referenceString")(Zt)}function Ct(Zt){return ot.parser.defined.includes(oi(ot.sliceSerialize(ot.events[ot.events.length-1][1]).slice(1,-1)))?He(Zt):Xe(Zt)}function Ft(Zt){return Xe(Zt)}}function En(we,He,Xe){return ot;function ot(Ct){return we.enter("reference"),we.enter("referenceMarker"),we.consume(Ct),we.exit("referenceMarker"),xt}function xt(Ct){return Ct===93?(we.enter("referenceMarker"),we.consume(Ct),we.exit("referenceMarker"),we.exit("reference"),He):Xe(Ct)}}const ur={name:"labelStartImage",resolveAll:Ii.resolveAll,tokenize:sr};function sr(we,He,Xe){const ot=this;return xt;function xt(Zt){return we.enter("labelImage"),we.enter("labelImageMarker"),we.consume(Zt),we.exit("labelImageMarker"),Ct}function Ct(Zt){return Zt===91?(we.enter("labelMarker"),we.consume(Zt),we.exit("labelMarker"),we.exit("labelImage"),Ft):Xe(Zt)}function Ft(Zt){return Zt===94&&"_hiddenFootnoteSupport"in ot.parser.constructs?Xe(Zt):He(Zt)}}function Yr(we){if(we===null||(0,Vt.z3)(we)||(0,Vt.B8)(we))return 1;if((0,Vt.Xh)(we))return 2}const hr={name:"attention",resolveAll:lo,tokenize:eo};function lo(we,He){let Xe=-1,ot,xt,Ct,Ft,Zt,Dn,zn,Sn;for(;++Xe<we.length;)if(we[Xe][0]==="enter"&&we[Xe][1].type==="attentionSequence"&&we[Xe][1]._close){for(ot=Xe;ot--;)if(we[ot][0]==="exit"&&we[ot][1].type==="attentionSequence"&&we[ot][1]._open&&He.sliceSerialize(we[ot][1]).charCodeAt(0)===He.sliceSerialize(we[Xe][1]).charCodeAt(0)){if((we[ot][1]._close||we[Xe][1]._open)&&(we[Xe][1].end.offset-we[Xe][1].start.offset)%3&&!((we[ot][1].end.offset-we[ot][1].start.offset+we[Xe][1].end.offset-we[Xe][1].start.offset)%3))continue;Dn=we[ot][1].end.offset-we[ot][1].start.offset>1&&we[Xe][1].end.offset-we[Xe][1].start.offset>1?2:1;const hi=oa({},we[ot][1].end),ri=oa({},we[Xe][1].start);Co(hi,-Dn),Co(ri,Dn),Ft={type:Dn>1?"strongSequence":"emphasisSequence",start:hi,end:oa({},we[ot][1].end)},Zt={type:Dn>1?"strongSequence":"emphasisSequence",start:oa({},we[Xe][1].start),end:ri},Ct={type:Dn>1?"strongText":"emphasisText",start:oa({},we[ot][1].end),end:oa({},we[Xe][1].start)},xt={type:Dn>1?"strong":"emphasis",start:oa({},Ft.start),end:oa({},Zt.end)},we[ot][1].end=oa({},Ft.start),we[Xe][1].start=oa({},Zt.end),zn=[],we[ot][1].end.offset-we[ot][1].start.offset&&(zn=vn(zn,[["enter",we[ot][1],He],["exit",we[ot][1],He]])),zn=vn(zn,[["enter",xt,He],["enter",Ft,He],["exit",Ft,He],["enter",Ct,He]]),zn=vn(zn,_i(He.parser.constructs.insideSpan.null,we.slice(ot+1,Xe),He)),zn=vn(zn,[["exit",Ct,He],["enter",Zt,He],["exit",Zt,He],["exit",xt,He]]),we[Xe][1].end.offset-we[Xe][1].start.offset?(Sn=2,zn=vn(zn,[["enter",we[Xe][1],He],["exit",we[Xe][1],He]])):Sn=0,sn(we,ot-1,Xe-ot+3,zn),Xe=ot+zn.length-Sn-2;break}}for(Xe=-1;++Xe<we.length;)we[Xe][1].type==="attentionSequence"&&(we[Xe][1].type="data");return we}function eo(we,He){const Xe=this.parser.constructs.attentionMarkers.null,ot=this.previous,xt=Yr(ot);let Ct;return Ft;function Ft(Dn){return Ct=Dn,we.enter("attentionSequence"),Zt(Dn)}function Zt(Dn){if(Dn===Ct)return we.consume(Dn),Zt;const zn=we.exit("attentionSequence"),Sn=Yr(Dn),hi=!Sn||Sn===2&&xt||Xe.includes(Dn),ri=!xt||xt===2&&Sn||Xe.includes(ot);return zn._open=!!(Ct===42?hi:hi&&(xt||!ri)),zn._close=!!(Ct===42?ri:ri&&(Sn||!hi)),He(Dn)}}function Co(we,He){we.column+=He,we.offset+=He,we._bufferIndex+=He}const uo={name:"autolink",tokenize:Ao};function Ao(we,He,Xe){let ot=0;return xt;function xt(bn){return we.enter("autolink"),we.enter("autolinkMarker"),we.consume(bn),we.exit("autolinkMarker"),we.enter("autolinkProtocol"),Ct}function Ct(bn){return(0,Vt.jv)(bn)?(we.consume(bn),Ft):bn===64?Xe(bn):zn(bn)}function Ft(bn){return bn===43||bn===45||bn===46||(0,Vt.H$)(bn)?(ot=1,Zt(bn)):zn(bn)}function Zt(bn){return bn===58?(we.consume(bn),ot=0,Dn):(bn===43||bn===45||bn===46||(0,Vt.H$)(bn))&&ot++<32?(we.consume(bn),Zt):(ot=0,zn(bn))}function Dn(bn){return bn===62?(we.exit("autolinkProtocol"),we.enter("autolinkMarker"),we.consume(bn),we.exit("autolinkMarker"),we.exit("autolink"),He):bn===null||bn===32||bn===60||(0,Vt.Av)(bn)?Xe(bn):(we.consume(bn),Dn)}function zn(bn){return bn===64?(we.consume(bn),Sn):(0,Vt.n9)(bn)?(we.consume(bn),zn):Xe(bn)}function Sn(bn){return(0,Vt.H$)(bn)?hi(bn):Xe(bn)}function hi(bn){return bn===46?(we.consume(bn),ot=0,Sn):bn===62?(we.exit("autolinkProtocol").type="autolinkEmail",we.enter("autolinkMarker"),we.consume(bn),we.exit("autolinkMarker"),we.exit("autolink"),He):ri(bn)}function ri(bn){if((bn===45||(0,Vt.H$)(bn))&&ot++<63){const no=bn===45?ri:hi;return we.consume(bn),no}return Xe(bn)}}const No={name:"htmlText",tokenize:qt};function qt(we,He,Xe){const ot=this;let xt,Ct,Ft;return Zt;function Zt(Xn){return we.enter("htmlText"),we.enter("htmlTextData"),we.consume(Xn),Dn}function Dn(Xn){return Xn===33?(we.consume(Xn),zn):Xn===47?(we.consume(Xn),Ba):Xn===63?(we.consume(Xn),So):(0,Vt.jv)(Xn)?(we.consume(Xn),us):Xe(Xn)}function zn(Xn){return Xn===45?(we.consume(Xn),Sn):Xn===91?(we.consume(Xn),Ct=0,no):(0,Vt.jv)(Xn)?(we.consume(Xn),ro):Xe(Xn)}function Sn(Xn){return Xn===45?(we.consume(Xn),bn):Xe(Xn)}function hi(Xn){return Xn===null?Xe(Xn):Xn===45?(we.consume(Xn),ri):(0,Vt.Ch)(Xn)?(Ft=hi,Hs(Xn)):(we.consume(Xn),hi)}function ri(Xn){return Xn===45?(we.consume(Xn),bn):hi(Xn)}function bn(Xn){return Xn===62?is(Xn):Xn===45?ri(Xn):hi(Xn)}function no(Xn){const ll="CDATA[";return Xn===ll.charCodeAt(Ct++)?(we.consume(Xn),Ct===ll.length?Po:no):Xe(Xn)}function Po(Xn){return Xn===null?Xe(Xn):Xn===93?(we.consume(Xn),jo):(0,Vt.Ch)(Xn)?(Ft=Po,Hs(Xn)):(we.consume(Xn),Po)}function jo(Xn){return Xn===93?(we.consume(Xn),Ir):Po(Xn)}function Ir(Xn){return Xn===62?is(Xn):Xn===93?(we.consume(Xn),Ir):Po(Xn)}function ro(Xn){return Xn===null||Xn===62?is(Xn):(0,Vt.Ch)(Xn)?(Ft=ro,Hs(Xn)):(we.consume(Xn),ro)}function So(Xn){return Xn===null?Xe(Xn):Xn===63?(we.consume(Xn),Fa):(0,Vt.Ch)(Xn)?(Ft=So,Hs(Xn)):(we.consume(Xn),So)}function Fa(Xn){return Xn===62?is(Xn):So(Xn)}function Ba(Xn){return(0,Vt.jv)(Xn)?(we.consume(Xn),pr):Xe(Xn)}function pr(Xn){return Xn===45||(0,Vt.H$)(Xn)?(we.consume(Xn),pr):za(Xn)}function za(Xn){return(0,Vt.Ch)(Xn)?(Ft=za,Hs(Xn)):(0,Vt.xz)(Xn)?(we.consume(Xn),za):is(Xn)}function us(Xn){return Xn===45||(0,Vt.H$)(Xn)?(we.consume(Xn),us):Xn===47||Xn===62||(0,Vt.z3)(Xn)?La(Xn):Xe(Xn)}function La(Xn){return Xn===47?(we.consume(Xn),is):Xn===58||Xn===95||(0,Vt.jv)(Xn)?(we.consume(Xn),$r):(0,Vt.Ch)(Xn)?(Ft=La,Hs(Xn)):(0,Vt.xz)(Xn)?(we.consume(Xn),La):is(Xn)}function $r(Xn){return Xn===45||Xn===46||Xn===58||Xn===95||(0,Vt.H$)(Xn)?(we.consume(Xn),$r):sl(Xn)}function sl(Xn){return Xn===61?(we.consume(Xn),Ka):(0,Vt.Ch)(Xn)?(Ft=sl,Hs(Xn)):(0,Vt.xz)(Xn)?(we.consume(Xn),sl):La(Xn)}function Ka(Xn){return Xn===null||Xn===60||Xn===61||Xn===62||Xn===96?Xe(Xn):Xn===34||Xn===39?(we.consume(Xn),xt=Xn,_o):(0,Vt.Ch)(Xn)?(Ft=Ka,Hs(Xn)):(0,Vt.xz)(Xn)?(we.consume(Xn),Ka):(we.consume(Xn),Do)}function _o(Xn){return Xn===xt?(we.consume(Xn),xt=void 0,la):Xn===null?Xe(Xn):(0,Vt.Ch)(Xn)?(Ft=_o,Hs(Xn)):(we.consume(Xn),_o)}function Do(Xn){return Xn===null||Xn===34||Xn===39||Xn===60||Xn===61||Xn===96?Xe(Xn):Xn===47||Xn===62||(0,Vt.z3)(Xn)?La(Xn):(we.consume(Xn),Do)}function la(Xn){return Xn===47||Xn===62||(0,Vt.z3)(Xn)?La(Xn):Xe(Xn)}function is(Xn){return Xn===62?(we.consume(Xn),we.exit("htmlTextData"),we.exit("htmlText"),He):Xe(Xn)}function Hs(Xn){return we.exit("htmlTextData"),we.enter("lineEnding"),we.consume(Xn),we.exit("lineEnding"),qs}function qs(Xn){return(0,Vt.xz)(Xn)?(0,wi.f)(we,Bl,"linePrefix",ot.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Xn):Bl(Xn)}function Bl(Xn){return we.enter("htmlTextData"),Ft(Xn)}}const mo={name:"labelStartLink",resolveAll:Ii.resolveAll,tokenize:Kr};function Kr(we,He,Xe){const ot=this;return xt;function xt(Ft){return we.enter("labelLink"),we.enter("labelMarker"),we.consume(Ft),we.exit("labelMarker"),we.exit("labelLink"),Ct}function Ct(Ft){return Ft===94&&"_hiddenFootnoteSupport"in ot.parser.constructs?Xe(Ft):He(Ft)}}const Pr={name:"hardBreakEscape",tokenize:fr};function fr(we,He,Xe){return ot;function ot(Ct){return we.enter("hardBreakEscape"),we.consume(Ct),xt}function xt(Ct){return(0,Vt.Ch)(Ct)?(we.exit("hardBreakEscape"),He(Ct)):Xe(Ct)}}const co={name:"codeText",previous:dn,resolve:Lo,tokenize:Gr};function Lo(we){let He=we.length-4,Xe=3,ot,xt;if((we[Xe][1].type==="lineEnding"||we[Xe][1].type==="space")&&(we[He][1].type==="lineEnding"||we[He][1].type==="space")){for(ot=Xe;++ot<He;)if(we[ot][1].type==="codeTextData"){we[Xe][1].type="codeTextPadding",we[He][1].type="codeTextPadding",Xe+=2,He-=2;break}}for(ot=Xe-1,He++;++ot<=He;)xt===void 0?ot!==He&&we[ot][1].type!=="lineEnding"&&(xt=ot):(ot===He||we[ot][1].type==="lineEnding")&&(we[xt][1].type="codeTextData",ot!==xt+2&&(we[xt][1].end=we[ot-1][1].end,we.splice(xt+2,ot-xt-2),He-=ot-xt-2,ot=xt+2),xt=void 0);return we}function dn(we){return we!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Gr(we,He,Xe){const ot=this;let xt=0,Ct,Ft;return Zt;function Zt(ri){return we.enter("codeText"),we.enter("codeTextSequence"),Dn(ri)}function Dn(ri){return ri===96?(we.consume(ri),xt++,Dn):(we.exit("codeTextSequence"),zn(ri))}function zn(ri){return ri===null?Xe(ri):ri===32?(we.enter("space"),we.consume(ri),we.exit("space"),zn):ri===96?(Ft=we.enter("codeTextSequence"),Ct=0,hi(ri)):(0,Vt.Ch)(ri)?(we.enter("lineEnding"),we.consume(ri),we.exit("lineEnding"),zn):(we.enter("codeTextData"),Sn(ri))}function Sn(ri){return ri===null||ri===32||ri===96||(0,Vt.Ch)(ri)?(we.exit("codeTextData"),zn(ri)):(we.consume(ri),Sn)}function hi(ri){return ri===96?(we.consume(ri),Ct++,hi):Ct===xt?(we.exit("codeTextSequence"),we.exit("codeText"),He(ri)):(Ft.type="codeTextData",Sn(ri))}}const Uo={42:Yi,43:Yi,45:Yi,48:Yi,49:Yi,50:Yi,51:Yi,52:Yi,53:Yi,54:Yi,55:Yi,56:Yi,57:Yi,62:li},Sa={91:yn},Ya={[-2]:Li,[-1]:Li,32:Li},bs={35:Gt,42:Gi,45:[Hi,Gi],60:Ur,61:Hi,95:Gi,96:yo,126:yo},ts={38:_n,92:qe},xr={[-5]:yi,[-4]:yi,[-3]:yi,33:ur,38:_n,42:hr,60:[uo,No],91:mo,92:[Pr,qe],93:Ii,95:hr,96:co},ca={null:[hr,Ti]},da={null:[42,95]},Ra={null:[]};function va(we,He,Xe){let ot={_bufferIndex:-1,_index:0,line:Xe&&Xe.line||1,column:Xe&&Xe.column||1,offset:Xe&&Xe.offset||0};const xt={},Ct=[];let Ft=[],Zt=[],Dn=!0;const zn={attempt:La(za),check:La(us),consume:Fa,enter:Ba,exit:pr,interrupt:La(us,{interrupt:!0})},Sn={code:null,containerState:{},defineSkip:Ir,events:[],now:jo,parser:we,previous:null,sliceSerialize:no,sliceStream:Po,write:bn};let hi=He.tokenize.call(Sn,zn),ri;return He.resolveAll&&Ct.push(He),Sn;function bn(_o){return Ft=vn(Ft,_o),ro(),Ft[Ft.length-1]!==null?[]:($r(He,0),Sn.events=_i(Ct,Sn.events,Sn),Sn.events)}function no(_o,Do){return Pi(Po(_o),Do)}function Po(_o){return Pa(Ft,_o)}function jo(){const{_bufferIndex:_o,_index:Do,line:la,column:is,offset:Hs}=ot;return{_bufferIndex:_o,_index:Do,line:la,column:is,offset:Hs}}function Ir(_o){xt[_o.line]=_o.column,Ka()}function ro(){let _o;for(;ot._index<Ft.length;){const Do=Ft[ot._index];if(typeof Do=="string")for(_o=ot._index,ot._bufferIndex<0&&(ot._bufferIndex=0);ot._index===_o&&ot._bufferIndex<Do.length;)So(Do.charCodeAt(ot._bufferIndex));else So(Do)}}function So(_o){Dn=void 0,ri=_o,hi=hi(_o)}function Fa(_o){(0,Vt.Ch)(_o)?(ot.line++,ot.column=1,ot.offset+=_o===-3?2:1,Ka()):_o!==-1&&(ot.column++,ot.offset++),ot._bufferIndex<0?ot._index++:(ot._bufferIndex++,ot._bufferIndex===Ft[ot._index].length&&(ot._bufferIndex=-1,ot._index++)),Sn.previous=_o,Dn=!0}function Ba(_o,Do){const la=Do||{};return la.type=_o,la.start=jo(),Sn.events.push(["enter",la,Sn]),Zt.push(la),la}function pr(_o){const Do=Zt.pop();return Do.end=jo(),Sn.events.push(["exit",Do,Sn]),Do}function za(_o,Do){$r(_o,Do.from)}function us(_o,Do){Do.restore()}function La(_o,Do){return la;function la(is,Hs,qs){let Bl,Xn,ll,Kl;return Array.isArray(is)?$s(is):"tokenize"in is?$s([is]):ni(is);function ni(rs){return Zl;function Zl(Vs){const Ou=Vs!==null&&rs[Vs],Xu=Vs!==null&&rs.null,gd=[...Array.isArray(Ou)?Ou:Ou?[Ou]:[],...Array.isArray(Xu)?Xu:Xu?[Xu]:[]];return $s(gd)(Vs)}}function $s(rs){return Bl=rs,Xn=0,rs.length===0?qs:lu(rs[Xn])}function lu(rs){return Zl;function Zl(Vs){return Kl=sl(),ll=rs,rs.partial||(Sn.currentConstruct=rs),rs.name&&Sn.parser.constructs.disable.null.includes(rs.name)?Fs(Vs):rs.tokenize.call(Do?Object.assign(Object.create(Sn),Do):Sn,zn,Su,Fs)(Vs)}}function Su(rs){return Dn=!0,_o(ll,Kl),Hs}function Fs(rs){return Dn=!0,Kl.restore(),++Xn<Bl.length?lu(Bl[Xn]):qs}}}function $r(_o,Do){_o.resolveAll&&!Ct.includes(_o)&&Ct.push(_o),_o.resolve&&sn(Sn.events,Do,Sn.events.length-Do,_o.resolve(Sn.events.slice(Do),Sn)),_o.resolveTo&&(Sn.events=_o.resolveTo(Sn.events,Sn))}function sl(){const _o=jo(),Do=Sn.previous,la=Sn.currentConstruct,is=Sn.events.length,Hs=Array.from(Zt);return{from:is,restore:qs};function qs(){ot=_o,Sn.previous=Do,Sn.currentConstruct=la,Sn.events.length=is,Zt=Hs,Ka()}}function Ka(){ot.line in xt&&ot.column<2&&(ot.column=xt[ot.line],ot.offset+=xt[ot.line]-1)}}function Pa(we,He){const Xe=He.start._index,ot=He.start._bufferIndex,xt=He.end._index,Ct=He.end._bufferIndex;let Ft;if(Xe===xt)Ft=[we[Xe].slice(ot,Ct)];else{if(Ft=we.slice(Xe,xt),ot>-1){const Zt=Ft[0];typeof Zt=="string"?Ft[0]=Zt.slice(ot):Ft.shift()}Ct>0&&Ft.push(we[xt].slice(0,Ct))}return Ft}function Pi(we,He){let Xe=-1;const ot=[];let xt;for(;++Xe<we.length;){const Ct=we[Xe];let Ft;if(typeof Ct=="string")Ft=Ct;else switch(Ct){case-5:{Ft="\r";break}case-4:{Ft=`
|
|
|
`;break}case-3:{Ft=`\r
|
|
|
`;break}case-2:{Ft=He?" ":" ";break}case-1:{if(!He&&xt)continue;Ft=" ";break}default:Ft=String.fromCharCode(Ct)}xt=Ct===-2,ot.push(Ft)}return ot.join("")}function dr(we){const ot={constructs:jn([ce,...(we||{}).extensions||[]]),content:xt(qi),defined:[],document:xt(rr),flow:xt(Ri),lazy:{},string:xt(Lr),text:xt(ln)};return ot;function xt(Ct){return Ft;function Ft(Zt){return va(ot,Ct,Zt)}}}const Dr=/[\0\t\n\r]/g;function to(){let we=1,He="",Xe=!0,ot;return xt;function xt(Ct,Ft,Zt){const Dn=[];let zn,Sn,hi,ri,bn;for(Ct=He+(typeof Ct=="string"?Ct.toString():new TextDecoder(Ft||void 0).decode(Ct)),hi=0,He="",Xe&&(Ct.charCodeAt(0)===65279&&hi++,Xe=void 0);hi<Ct.length;){if(Dr.lastIndex=hi,zn=Dr.exec(Ct),ri=zn&&zn.index!==void 0?zn.index:Ct.length,bn=Ct.charCodeAt(ri),!zn){He=Ct.slice(hi);break}if(bn===10&&hi===ri&&ot)Dn.push(-3),ot=void 0;else switch(ot&&(Dn.push(-5),ot=void 0),hi<ri&&(Dn.push(Ct.slice(hi,ri)),we+=ri-hi),bn){case 0:{Dn.push(65533),we++;break}case 9:{for(Sn=Math.ceil(we/4)*4,Dn.push(-2);we++<Sn;)Dn.push(-1);break}case 10:{Dn.push(-4),we=1;break}default:ot=!0,we=1}hi=ri+1}return Zt&&(ot&&Dn.push(-5),He&&Dn.push(He),Dn.push(null)),Dn}}function oo(we,He){const Xe=Number.parseInt(we,He);return Xe<9||Xe===11||Xe>13&&Xe<32||Xe>126&&Xe<160||Xe>55295&&Xe<57344||Xe>64975&&Xe<65008||(Xe&65535)===65535||(Xe&65535)===65534||Xe>1114111?"\uFFFD":String.fromCodePoint(Xe)}const Wo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vr(we){return we.replace(Wo,Ua)}function Ua(we,He,Xe){if(He)return He;if(Xe.charCodeAt(0)===35){const xt=Xe.charCodeAt(1),Ct=xt===120||xt===88;return oo(Xe.slice(Ct?2:1),Ct?16:10)}return rn(Xe)||we}const ha={}.hasOwnProperty;function Ea(we,He,Xe){return typeof He!="string"&&(Xe=He,He=void 0),ho(Xe)(Kn(dr(Xe).document().write(to()(we,He,!0))))}function ho(we){const He={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Ct(Ze),autolinkProtocol:La,autolinkEmail:La,atxHeading:Ct(lc),blockQuote:Ct(Vs),characterEscape:La,characterReference:La,codeFenced:Ct(Ou),codeFencedFenceInfo:Ft,codeFencedFenceMeta:Ft,codeIndented:Ct(Ou,Ft),codeText:Ct(Xu,Ft),codeTextData:La,data:La,codeFlowValue:La,definition:Ct(gd),definitionDestinationString:Ft,definitionLabelString:Ft,definitionTitleString:Ft,emphasis:Ct(uu),hardBreakEscape:Ct(zd),hardBreakTrailing:Ct(zd),htmlFlow:Ct(ue,Ft),htmlFlowData:La,htmlText:Ct(ue,Ft),htmlTextData:La,image:Ct(pe),label:Ft,link:Ct(Ze),listItem:Ct(Bn),listItemValue:ri,listOrdered:Ct(Ot,hi),listUnordered:Ct(Ot),paragraph:Ct(ki),reference:ni,referenceString:Ft,resourceDestinationString:Ft,resourceTitleString:Ft,setextHeading:Ct(lc),strong:Ct(er),thematicBreak:Ct(Fo)},exit:{atxHeading:Dn(),atxHeadingSequence:Ba,autolink:Dn(),autolinkEmail:Zl,autolinkProtocol:rs,blockQuote:Dn(),characterEscapeValue:$r,characterReferenceMarkerHexadecimal:lu,characterReferenceMarkerNumeric:lu,characterReferenceValue:Su,characterReference:Fs,codeFenced:Dn(jo),codeFencedFence:Po,codeFencedFenceInfo:bn,codeFencedFenceMeta:no,codeFlowValue:$r,codeIndented:Dn(Ir),codeText:Dn(la),codeTextData:$r,data:$r,definition:Dn(),definitionDestinationString:Fa,definitionLabelString:ro,definitionTitleString:So,emphasis:Dn(),hardBreakEscape:Dn(Ka),hardBreakTrailing:Dn(Ka),htmlFlow:Dn(_o),htmlFlowData:$r,htmlText:Dn(Do),htmlTextData:$r,image:Dn(Hs),label:Bl,labelText:qs,lineEnding:sl,link:Dn(is),listItem:Dn(),listOrdered:Dn(),listUnordered:Dn(),paragraph:Dn(),referenceString:$s,resourceDestinationString:Xn,resourceTitleString:ll,resource:Kl,setextHeading:Dn(us),setextHeadingLineSequence:za,setextHeadingText:pr,strong:Dn(),thematicBreak:Dn()}};fs(He,(we||{}).mdastExtensions||[]);const Xe={};return ot;function ot(Ei){let Cr={type:"root",children:[]};const Go={stack:[Cr],tokenStack:[],config:He,enter:Zt,exit:zn,buffer:Ft,resume:Sn,data:Xe},ga=[];let Va=-1;for(;++Va<Ei.length;)if(Ei[Va][1].type==="listOrdered"||Ei[Va][1].type==="listUnordered")if(Ei[Va][0]==="enter")ga.push(Va);else{const xu=ga.pop();Va=xt(Ei,xu,Va)}for(Va=-1;++Va<Ei.length;){const xu=He[Ei[Va][0]];ha.call(xu,Ei[Va][1].type)&&xu[Ei[Va][1].type].call(Object.assign({sliceSerialize:Ei[Va][2].sliceSerialize},Go),Ei[Va][1])}if(Go.tokenStack.length>0){const xu=Go.tokenStack[Go.tokenStack.length-1];(xu[1]||os).call(Go,void 0,xu[0])}for(Cr.position={start:Yo(Ei.length>0?Ei[0][1].start:{line:1,column:1,offset:0}),end:Yo(Ei.length>0?Ei[Ei.length-2][1].end:{line:1,column:1,offset:0})},Va=-1;++Va<He.transforms.length;)Cr=He.transforms[Va](Cr)||Cr;return Cr}function xt(Ei,Cr,Go){let ga=Cr-1,Va=-1,xu=!1,Du,uc,Qu,Tl;for(;++ga<=Go;){const cu=Ei[ga];switch(cu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{cu[0]==="enter"?Va++:Va--,Tl=void 0;break}case"lineEndingBlank":{cu[0]==="enter"&&(Du&&!Tl&&!Va&&!Qu&&(Qu=ga),Tl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tl=void 0}if(!Va&&cu[0]==="enter"&&cu[1].type==="listItemPrefix"||Va===-1&&cu[0]==="exit"&&(cu[1].type==="listUnordered"||cu[1].type==="listOrdered")){if(Du){let Mc=ga;for(uc=void 0;Mc--;){const Xl=Ei[Mc];if(Xl[1].type==="lineEnding"||Xl[1].type==="lineEndingBlank"){if(Xl[0]==="exit")continue;uc&&(Ei[uc][1].type="lineEndingBlank",xu=!0),Xl[1].type="lineEnding",uc=Mc}else if(!(Xl[1].type==="linePrefix"||Xl[1].type==="blockQuotePrefix"||Xl[1].type==="blockQuotePrefixWhitespace"||Xl[1].type==="blockQuoteMarker"||Xl[1].type==="listItemIndent"))break}Qu&&(!uc||Qu<uc)&&(Du._spread=!0),Du.end=Object.assign({},uc?Ei[uc][1].start:cu[1].end),Ei.splice(uc||ga,0,["exit",Du,cu[2]]),ga++,Go++}if(cu[1].type==="listItemPrefix"){const Mc={type:"listItem",_spread:!1,start:Object.assign({},cu[1].start),end:void 0};Du=Mc,Ei.splice(ga,0,["enter",Mc,cu[2]]),ga++,Go++,Qu=void 0,Tl=!0}}}return Ei[Cr][1]._spread=xu,Go}function Ct(Ei,Cr){return Go;function Go(ga){Zt.call(this,Ei(ga),ga),Cr&&Cr.call(this,ga)}}function Ft(){this.stack.push({type:"fragment",children:[]})}function Zt(Ei,Cr,Go){this.stack[this.stack.length-1].children.push(Ei),this.stack.push(Ei),this.tokenStack.push([Cr,Go||void 0]),Ei.position={start:Yo(Cr.start),end:void 0}}function Dn(Ei){return Cr;function Cr(Go){Ei&&Ei.call(this,Go),zn.call(this,Go)}}function zn(Ei,Cr){const Go=this.stack.pop(),ga=this.tokenStack.pop();if(ga)ga[0].type!==Ei.type&&(Cr?Cr.call(this,Ei,ga[0]):(ga[1]||os).call(this,Ei,ga[0]));else throw new Error("Cannot close `"+Ei.type+"` ("+Ae({start:Ei.start,end:Ei.end})+"): it\u2019s not open");Go.position.end=Yo(Ei.end)}function Sn(){return Un(this.stack.pop())}function hi(){this.data.expectingFirstListItemValue=!0}function ri(Ei){if(this.data.expectingFirstListItemValue){const Cr=this.stack[this.stack.length-2];Cr.start=Number.parseInt(this.sliceSerialize(Ei),10),this.data.expectingFirstListItemValue=void 0}}function bn(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.lang=Ei}function no(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.meta=Ei}function Po(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function jo(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.value=Ei.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Ir(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.value=Ei.replace(/(\r?\n|\r)$/g,"")}function ro(Ei){const Cr=this.resume(),Go=this.stack[this.stack.length-1];Go.label=Cr,Go.identifier=oi(this.sliceSerialize(Ei)).toLowerCase()}function So(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.title=Ei}function Fa(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.url=Ei}function Ba(Ei){const Cr=this.stack[this.stack.length-1];if(!Cr.depth){const Go=this.sliceSerialize(Ei).length;Cr.depth=Go}}function pr(){this.data.setextHeadingSlurpLineEnding=!0}function za(Ei){const Cr=this.stack[this.stack.length-1];Cr.depth=this.sliceSerialize(Ei).codePointAt(0)===61?1:2}function us(){this.data.setextHeadingSlurpLineEnding=void 0}function La(Ei){const Go=this.stack[this.stack.length-1].children;let ga=Go[Go.length-1];(!ga||ga.type!=="text")&&(ga=ao(),ga.position={start:Yo(Ei.start),end:void 0},Go.push(ga)),this.stack.push(ga)}function $r(Ei){const Cr=this.stack.pop();Cr.value+=this.sliceSerialize(Ei),Cr.position.end=Yo(Ei.end)}function sl(Ei){const Cr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Go=Cr.children[Cr.children.length-1];Go.position.end=Yo(Ei.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&He.canContainEols.includes(Cr.type)&&(La.call(this,Ei),$r.call(this,Ei))}function Ka(){this.data.atHardBreak=!0}function _o(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.value=Ei}function Do(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.value=Ei}function la(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.value=Ei}function is(){const Ei=this.stack[this.stack.length-1];if(this.data.inReference){const Cr=this.data.referenceType||"shortcut";Ei.type+="Reference",Ei.referenceType=Cr,delete Ei.url,delete Ei.title}else delete Ei.identifier,delete Ei.label;this.data.referenceType=void 0}function Hs(){const Ei=this.stack[this.stack.length-1];if(this.data.inReference){const Cr=this.data.referenceType||"shortcut";Ei.type+="Reference",Ei.referenceType=Cr,delete Ei.url,delete Ei.title}else delete Ei.identifier,delete Ei.label;this.data.referenceType=void 0}function qs(Ei){const Cr=this.sliceSerialize(Ei),Go=this.stack[this.stack.length-2];Go.label=vr(Cr),Go.identifier=oi(Cr).toLowerCase()}function Bl(){const Ei=this.stack[this.stack.length-1],Cr=this.resume(),Go=this.stack[this.stack.length-1];if(this.data.inReference=!0,Go.type==="link"){const ga=Ei.children;Go.children=ga}else Go.alt=Cr}function Xn(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.url=Ei}function ll(){const Ei=this.resume(),Cr=this.stack[this.stack.length-1];Cr.title=Ei}function Kl(){this.data.inReference=void 0}function ni(){this.data.referenceType="collapsed"}function $s(Ei){const Cr=this.resume(),Go=this.stack[this.stack.length-1];Go.label=Cr,Go.identifier=oi(this.sliceSerialize(Ei)).toLowerCase(),this.data.referenceType="full"}function lu(Ei){this.data.characterReferenceType=Ei.type}function Su(Ei){const Cr=this.sliceSerialize(Ei),Go=this.data.characterReferenceType;let ga;Go?(ga=oo(Cr,Go==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ga=rn(Cr);const Va=this.stack[this.stack.length-1];Va.value+=ga}function Fs(Ei){const Cr=this.stack.pop();Cr.position.end=Yo(Ei.end)}function rs(Ei){$r.call(this,Ei);const Cr=this.stack[this.stack.length-1];Cr.url=this.sliceSerialize(Ei)}function Zl(Ei){$r.call(this,Ei);const Cr=this.stack[this.stack.length-1];Cr.url="mailto:"+this.sliceSerialize(Ei)}function Vs(){return{type:"blockquote",children:[]}}function Ou(){return{type:"code",lang:null,meta:null,value:""}}function Xu(){return{type:"inlineCode",value:""}}function gd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function uu(){return{type:"emphasis",children:[]}}function lc(){return{type:"heading",depth:0,children:[]}}function zd(){return{type:"break"}}function ue(){return{type:"html",value:""}}function pe(){return{type:"image",title:null,url:"",alt:null}}function Ze(){return{type:"link",title:null,url:"",children:[]}}function Ot(Ei){return{type:"list",ordered:Ei.type==="listOrdered",start:null,spread:Ei._spread,children:[]}}function Bn(Ei){return{type:"listItem",spread:Ei._spread,checked:null,children:[]}}function ki(){return{type:"paragraph",children:[]}}function er(){return{type:"strong",children:[]}}function ao(){return{type:"text",value:""}}function Fo(){return{type:"thematicBreak"}}}function Yo(we){return{line:we.line,column:we.column,offset:we.offset}}function fs(we,He){let Xe=-1;for(;++Xe<He.length;){const ot=He[Xe];Array.isArray(ot)?fs(we,ot):ia(we,ot)}}function ia(we,He){let Xe;for(Xe in He)if(ha.call(He,Xe))switch(Xe){case"canContainEols":{const ot=He[Xe];ot&&we[Xe].push(...ot);break}case"transforms":{const ot=He[Xe];ot&&we[Xe].push(...ot);break}case"enter":case"exit":{const ot=He[Xe];ot&&Object.assign(we[Xe],ot);break}}}function os(we,He){throw we?new Error("Cannot close `"+we.type+"` ("+Ae({start:we.start,end:we.end})+"): a different token (`"+He.type+"`, "+Ae({start:He.start,end:He.end})+") is open"):new Error("Cannot close document, a token (`"+He.type+"`, "+Ae({start:He.start,end:He.end})+") is still open")}function Ns(we){const He=this;He.parser=Xe;function Xe(ot){return Ea(ot,Pf(oa(oa({},He.data("settings")),we),{extensions:He.data("micromarkExtensions")||[],mdastExtensions:He.data("fromMarkdownExtensions")||[]}))}}var ws=le(90302);function ba(we,He){const Xe=encode(Qs(we||""));if(!He)return Xe;const ot=Xe.indexOf(":"),xt=Xe.indexOf("?"),Ct=Xe.indexOf("#"),Ft=Xe.indexOf("/");return ot<0||Ft>-1&&ot>Ft||xt>-1&&ot>xt||Ct>-1&&ot>Ct||He.test(Xe.slice(0,ot))?Xe:""}function Qs(we){const He=[];let Xe=-1,ot=0,xt=0;for(;++Xe<we.length;){const Ct=we.charCodeAt(Xe);let Ft="";if(Ct===37&&(0,Vt.H$)(we.charCodeAt(Xe+1))&&(0,Vt.H$)(we.charCodeAt(Xe+2)))xt=2;else if(Ct<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Ct))||(Ft=String.fromCharCode(Ct));else if(Ct>55295&&Ct<57344){const Zt=we.charCodeAt(Xe+1);Ct<56320&&Zt>56319&&Zt<57344?(Ft=String.fromCharCode(Ct,Zt),xt=1):Ft="\uFFFD"}else Ft=String.fromCharCode(Ct);Ft&&(He.push(we.slice(ot,Xe),encodeURIComponent(Ft)),ot=Xe+xt+1,Ft=""),xt&&(Xe+=xt,xt=0)}return He.join("")+we.slice(ot)}function Wl(we,He){const Xe=[{type:"text",value:"\u21A9"}];return He>1&&Xe.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(He)}]}),Xe}function Ms(we,He){return"Back to reference "+(we+1)+(He>1?"-"+He:"")}function js(we){const He=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",Xe=we.options.footnoteBackContent||Wl,ot=we.options.footnoteBackLabel||Ms,xt=we.options.footnoteLabel||"Footnotes",Ct=we.options.footnoteLabelTagName||"h2",Ft=we.options.footnoteLabelProperties||{className:["sr-only"]},Zt=[];let Dn=-1;for(;++Dn<we.footnoteOrder.length;){const zn=we.footnoteById.get(we.footnoteOrder[Dn]);if(!zn)continue;const Sn=we.all(zn),hi=String(zn.identifier).toUpperCase(),ri=Qs(hi.toLowerCase());let bn=0;const no=[],Po=we.footnoteCounts.get(hi);for(;Po!==void 0&&++bn<=Po;){no.length>0&&no.push({type:"text",value:" "});let ro=typeof Xe=="string"?Xe:Xe(Dn,bn);typeof ro=="string"&&(ro={type:"text",value:ro}),no.push({type:"element",tagName:"a",properties:{href:"#"+He+"fnref-"+ri+(bn>1?"-"+bn:""),dataFootnoteBackref:"",ariaLabel:typeof ot=="string"?ot:ot(Dn,bn),className:["data-footnote-backref"]},children:Array.isArray(ro)?ro:[ro]})}const jo=Sn[Sn.length-1];if(jo&&jo.type==="element"&&jo.tagName==="p"){const ro=jo.children[jo.children.length-1];ro&&ro.type==="text"?ro.value+=" ":jo.children.push({type:"text",value:" "}),jo.children.push(...no)}else Sn.push(...no);const Ir={type:"element",tagName:"li",properties:{id:He+"fn-"+ri},children:we.wrap(Sn,!0)};we.patch(zn,Ir),Zt.push(Ir)}if(Zt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Ct,properties:Pf(oa({},(0,ws.ZP)(Ft)),{id:"footnote-label"}),children:[{type:"text",value:xt}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:we.wrap(Zt,!0)},{type:"text",value:`
|
|
|
`}]}}var Rs=le(10528);function Rl(we,He){const Xe={type:"element",tagName:"blockquote",properties:{},children:we.wrap(we.all(He),!0)};return we.patch(He,Xe),we.applyData(He,Xe)}function iu(we,He){const Xe={type:"element",tagName:"br",properties:{},children:[]};return we.patch(He,Xe),[we.applyData(He,Xe),{type:"text",value:`
|
|
|
`}]}function ru(we,He){const Xe=He.value?He.value+`
|
|
|
`:"",ot={};He.lang&&(ot.className=["language-"+He.lang]);let xt={type:"element",tagName:"code",properties:ot,children:[{type:"text",value:Xe}]};return He.meta&&(xt.data={meta:He.meta}),we.patch(He,xt),xt=we.applyData(He,xt),xt={type:"element",tagName:"pre",properties:{},children:[xt]},we.patch(He,xt),xt}function ka(we,He){const Xe={type:"element",tagName:"del",properties:{},children:we.all(He)};return we.patch(He,Xe),we.applyData(He,Xe)}function ou(we,He){const Xe={type:"element",tagName:"em",properties:{},children:we.all(He)};return we.patch(He,Xe),we.applyData(He,Xe)}function Mu(we,He){const Xe=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",ot=String(He.identifier).toUpperCase(),xt=Qs(ot.toLowerCase()),Ct=we.footnoteOrder.indexOf(ot);let Ft,Zt=we.footnoteCounts.get(ot);Zt===void 0?(Zt=0,we.footnoteOrder.push(ot),Ft=we.footnoteOrder.length):Ft=Ct+1,Zt+=1,we.footnoteCounts.set(ot,Zt);const Dn={type:"element",tagName:"a",properties:{href:"#"+Xe+"fn-"+xt,id:Xe+"fnref-"+xt+(Zt>1?"-"+Zt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(Ft)}]};we.patch(He,Dn);const zn={type:"element",tagName:"sup",properties:{},children:[Dn]};return we.patch(He,zn),we.applyData(He,zn)}function xl(we,He){const Xe={type:"element",tagName:"h"+He.depth,properties:{},children:we.all(He)};return we.patch(He,Xe),we.applyData(He,Xe)}function Zn(we,He){if(we.options.allowDangerousHtml){const Xe={type:"raw",value:He.value};return we.patch(He,Xe),we.applyData(He,Xe)}}function gr(we,He){const Xe=He.referenceType;let ot="]";if(Xe==="collapsed"?ot+="[]":Xe==="full"&&(ot+="["+(He.label||He.identifier)+"]"),He.type==="imageReference")return[{type:"text",value:"!["+He.alt+ot}];const xt=we.all(He),Ct=xt[0];Ct&&Ct.type==="text"?Ct.value="["+Ct.value:xt.unshift({type:"text",value:"["});const Ft=xt[xt.length-1];return Ft&&Ft.type==="text"?Ft.value+=ot:xt.push({type:"text",value:ot}),xt}function Wr(we,He){const Xe=String(He.identifier).toUpperCase(),ot=we.definitionById.get(Xe);if(!ot)return gr(we,He);const xt={src:Qs(ot.url||""),alt:He.alt};ot.title!==null&&ot.title!==void 0&&(xt.title=ot.title);const Ct={type:"element",tagName:"img",properties:xt,children:[]};return we.patch(He,Ct),we.applyData(He,Ct)}function Qr(we,He){const Xe={src:Qs(He.url)};He.alt!==null&&He.alt!==void 0&&(Xe.alt=He.alt),He.title!==null&&He.title!==void 0&&(Xe.title=He.title);const ot={type:"element",tagName:"img",properties:Xe,children:[]};return we.patch(He,ot),we.applyData(He,ot)}function wo(we,He){const Xe={type:"text",value:He.value.replace(/\r?\n|\r/g," ")};we.patch(He,Xe);const ot={type:"element",tagName:"code",properties:{},children:[Xe]};return we.patch(He,ot),we.applyData(He,ot)}function Ro(we,He){const Xe=String(He.identifier).toUpperCase(),ot=we.definitionById.get(Xe);if(!ot)return gr(we,He);const xt={href:Qs(ot.url||"")};ot.title!==null&&ot.title!==void 0&&(xt.title=ot.title);const Ct={type:"element",tagName:"a",properties:xt,children:we.all(He)};return we.patch(He,Ct),we.applyData(He,Ct)}function aa(we,He){const Xe={href:Qs(He.url)};He.title!==null&&He.title!==void 0&&(Xe.title=He.title);const ot={type:"element",tagName:"a",properties:Xe,children:we.all(He)};return we.patch(He,ot),we.applyData(He,ot)}function vo(we,He,Xe){const ot=we.all(He),xt=Xe?fo(Xe):Vr(He),Ct={},Ft=[];if(typeof He.checked=="boolean"){const Sn=ot[0];let hi;Sn&&Sn.type==="element"&&Sn.tagName==="p"?hi=Sn:(hi={type:"element",tagName:"p",properties:{},children:[]},ot.unshift(hi)),hi.children.length>0&&hi.children.unshift({type:"text",value:" "}),hi.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:He.checked,disabled:!0},children:[]}),Ct.className=["task-list-item"]}let Zt=-1;for(;++Zt<ot.length;){const Sn=ot[Zt];(xt||Zt!==0||Sn.type!=="element"||Sn.tagName!=="p")&&Ft.push({type:"text",value:`
|
|
|
`}),Sn.type==="element"&&Sn.tagName==="p"&&!xt?Ft.push(...Sn.children):Ft.push(Sn)}const Dn=ot[ot.length-1];Dn&&(xt||Dn.type!=="element"||Dn.tagName!=="p")&&Ft.push({type:"text",value:`
|
|
|
`});const zn={type:"element",tagName:"li",properties:Ct,children:Ft};return we.patch(He,zn),we.applyData(He,zn)}function fo(we){let He=!1;if(we.type==="list"){He=we.spread||!1;const Xe=we.children;let ot=-1;for(;!He&&++ot<Xe.length;)He=Vr(Xe[ot])}return He}function Vr(we){const He=we.spread;return He==null?we.children.length>1:He}function ea(we,He){const Xe={},ot=we.all(He);let xt=-1;for(typeof He.start=="number"&&He.start!==1&&(Xe.start=He.start);++xt<ot.length;){const Ft=ot[xt];if(Ft.type==="element"&&Ft.tagName==="li"&&Ft.properties&&Array.isArray(Ft.properties.className)&&Ft.properties.className.includes("task-list-item")){Xe.className=["contains-task-list"];break}}const Ct={type:"element",tagName:He.ordered?"ol":"ul",properties:Xe,children:we.wrap(ot,!0)};return we.patch(He,Ct),we.applyData(He,Ct)}function $i(we,He){const Xe={type:"element",tagName:"p",properties:{},children:we.all(He)};return we.patch(He,Xe),we.applyData(He,Xe)}function Ta(we,He){const Xe={type:"root",children:we.wrap(we.all(He))};return we.patch(He,Xe),we.applyData(He,Xe)}function It(we,He){const Xe={type:"element",tagName:"strong",properties:{},children:we.all(He)};return we.patch(He,Xe),we.applyData(He,Xe)}function Wn(we,He){const Xe=we.all(He),ot=Xe.shift(),xt=[];if(ot){const Ft={type:"element",tagName:"thead",properties:{},children:we.wrap([ot],!0)};we.patch(He.children[0],Ft),xt.push(Ft)}if(Xe.length>0){const Ft={type:"element",tagName:"tbody",properties:{},children:we.wrap(Xe,!0)},Zt=(0,be.Pk)(He.children[1]),Dn=(0,be.rb)(He.children[He.children.length-1]);Zt&&Dn&&(Ft.position={start:Zt,end:Dn}),xt.push(Ft)}const Ct={type:"element",tagName:"table",properties:{},children:we.wrap(xt,!0)};return we.patch(He,Ct),we.applyData(He,Ct)}function Cs(we,He,Xe){const ot=Xe?Xe.children:void 0,Ct=(ot?ot.indexOf(He):1)===0?"th":"td",Ft=Xe&&Xe.type==="table"?Xe.align:void 0,Zt=Ft?Ft.length:He.children.length;let Dn=-1;const zn=[];for(;++Dn<Zt;){const hi=He.children[Dn],ri={},bn=Ft?Ft[Dn]:void 0;bn&&(ri.align=bn);let no={type:"element",tagName:Ct,properties:ri,children:[]};hi&&(no.children=we.all(hi),we.patch(hi,no),no=we.applyData(hi,no)),zn.push(no)}const Sn={type:"element",tagName:"tr",properties:{},children:we.wrap(zn,!0)};return we.patch(He,Sn),we.applyData(He,Sn)}function Gs(we,He){const Xe={type:"element",tagName:"td",properties:{},children:we.all(He)};return we.patch(He,Xe),we.applyData(He,Xe)}const Na=9,Wa=32;function as(we){const He=String(we),Xe=/\r?\n|\r/g;let ot=Xe.exec(He),xt=0;const Ct=[];for(;ot;)Ct.push(qa(He.slice(xt,ot.index),xt>0,!0),ot[0]),xt=ot.index+ot[0].length,ot=Xe.exec(He);return Ct.push(qa(He.slice(xt),xt>0,!1)),Ct.join("")}function qa(we,He,Xe){let ot=0,xt=we.length;if(He){let Ct=we.codePointAt(ot);for(;Ct===Na||Ct===Wa;)ot++,Ct=we.codePointAt(ot)}if(Xe){let Ct=we.codePointAt(xt-1);for(;Ct===Na||Ct===Wa;)xt--,Ct=we.codePointAt(xt-1)}return xt>ot?we.slice(ot,xt):""}function El(we,He){const Xe={type:"text",value:as(String(He.value))};return we.patch(He,Xe),we.applyData(He,Xe)}function wa(we,He){const Xe={type:"element",tagName:"hr",properties:{},children:[]};return we.patch(He,Xe),we.applyData(He,Xe)}const qr={blockquote:Rl,break:iu,code:ru,delete:ka,emphasis:ou,footnoteReference:Mu,heading:xl,html:Zn,imageReference:Wr,image:Qr,inlineCode:wo,linkReference:Ro,link:aa,listItem:vo,list:ea,paragraph:$i,root:Ta,strong:It,table:Wn,tableCell:Gs,tableRow:Cs,text:El,thematicBreak:wa,toml:ms,yaml:ms,definition:ms,footnoteDefinition:ms};function ms(){}const Us={}.hasOwnProperty,qo={};function Oo(we,He){const Xe=He||qo,ot=new Map,xt=new Map,Ct=new Map,Ft=oa(oa({},qr),Xe.handlers),Zt={all:zn,applyData:Ws,definitionById:ot,footnoteById:xt,footnoteCounts:Ct,footnoteOrder:[],handlers:Ft,one:Dn,options:Xe,patch:Oa,wrap:Js};return(0,Rs.Vn)(we,function(Sn){if(Sn.type==="definition"||Sn.type==="footnoteDefinition"){const hi=Sn.type==="definition"?ot:xt,ri=String(Sn.identifier).toUpperCase();hi.has(ri)||hi.set(ri,Sn)}}),Zt;function Dn(Sn,hi){const ri=Sn.type,bn=Zt.handlers[ri];if(Us.call(Zt.handlers,ri)&&bn)return bn(Zt,Sn,hi);if(Zt.options.passThrough&&Zt.options.passThrough.includes(ri)){if("children"in Sn){const Po=Sn,{children:jo}=Po,Ir=Cx(Po,["children"]),ro=(0,ws.ZP)(Ir);return ro.children=Zt.all(Sn),ro}return(0,ws.ZP)(Sn)}return(Zt.options.unknownHandler||xa)(Zt,Sn,hi)}function zn(Sn){const hi=[];if("children"in Sn){const ri=Sn.children;let bn=-1;for(;++bn<ri.length;){const no=Zt.one(ri[bn],Sn);if(no){if(bn&&ri[bn-1].type==="break"&&(!Array.isArray(no)&&no.type==="text"&&(no.value=ss(no.value)),!Array.isArray(no)&&no.type==="element")){const Po=no.children[0];Po&&Po.type==="text"&&(Po.value=ss(Po.value))}Array.isArray(no)?hi.push(...no):hi.push(no)}}}return hi}}function Oa(we,He){we.position&&(He.position=(0,be.FK)(we))}function Ws(we,He){let Xe=He;if(we&&we.data){const ot=we.data.hName,xt=we.data.hChildren,Ct=we.data.hProperties;if(typeof ot=="string")if(Xe.type==="element")Xe.tagName=ot;else{const Ft="children"in Xe?Xe.children:[Xe];Xe={type:"element",tagName:ot,properties:{},children:Ft}}Xe.type==="element"&&Ct&&Object.assign(Xe.properties,(0,ws.ZP)(Ct)),"children"in Xe&&Xe.children&&xt!==null&&xt!==void 0&&(Xe.children=xt)}return Xe}function xa(we,He){const Xe=He.data||{},ot="value"in He&&!(Us.call(Xe,"hProperties")||Us.call(Xe,"hChildren"))?{type:"text",value:He.value}:{type:"element",tagName:"div",properties:{},children:we.all(He)};return we.patch(He,ot),we.applyData(He,ot)}function Js(we,He){const Xe=[];let ot=-1;for(He&&Xe.push({type:"text",value:`
|
|
|
`});++ot<we.length;)ot&&Xe.push({type:"text",value:`
|
|
|
`}),Xe.push(we[ot]);return He&&we.length>0&&Xe.push({type:"text",value:`
|
|
|
`}),Xe}function ss(we){let He=0,Xe=we.charCodeAt(He);for(;Xe===9||Xe===32;)He++,Xe=we.charCodeAt(He);return we.slice(He)}function yu(we,He){const Xe=Oo(we,He),ot=Xe.one(we,void 0),xt=js(Xe),Ct=Array.isArray(ot)?{type:"root",children:ot}:ot||{type:"root",children:[]};return xt&&((0,Pe.ok)("children"in Ct),Ct.children.push({type:"text",value:`
|
|
|
`},xt)),Ct}function ta(we,He){return we&&"run"in we?function(Xe,ot){return Jy(this,null,function*(){const xt=yu(Xe,oa({file:ot},He));yield we.run(xt,ot)})}:function(Xe,ot){return yu(Xe,oa({file:ot},we||He))}}function vs(we){if(we)throw we}var Ko=le(58847);function fa(we){if(typeof we!="object"||we===null)return!1;const He=Object.getPrototypeOf(we);return(He===null||He===Object.prototype||Object.getPrototypeOf(He)===null)&&!(Symbol.toStringTag in we)&&!(Symbol.iterator in we)}function ya(){const we=[],He={run:Xe,use:ot};return He;function Xe(...xt){let Ct=-1;const Ft=xt.pop();if(typeof Ft!="function")throw new TypeError("Expected function as last argument, not "+Ft);Zt(null,...xt);function Zt(Dn,...zn){const Sn=we[++Ct];let hi=-1;if(Dn){Ft(Dn);return}for(;++hi<xt.length;)(zn[hi]===null||zn[hi]===void 0)&&(zn[hi]=xt[hi]);xt=zn,Sn?Ma(Sn,Zt)(...zn):Ft(null,...zn)}}function ot(xt){if(typeof xt!="function")throw new TypeError("Expected `middelware` to be a function, not "+xt);return we.push(xt),He}}function Ma(we,He){let Xe;return ot;function ot(...Ft){const Zt=we.length>Ft.length;let Dn;Zt&&Ft.push(xt);try{Dn=we.apply(this,Ft)}catch(zn){const Sn=zn;if(Zt&&Xe)throw Sn;return xt(Sn)}Zt||(Dn&&Dn.then&&typeof Dn.then=="function"?Dn.then(Ct,xt):Dn instanceof Error?xt(Dn):Ct(Dn))}function xt(Ft,...Zt){Xe||(Xe=!0,He(Ft,...Zt))}function Ct(Ft){xt(null,Ft)}}const zo={basename:Vu,dirname:Zr,extname:Qc,join:Vo,sep:"/"};function Vu(we,He){if(He!==void 0&&typeof He!="string")throw new TypeError('"ext" argument must be a string');au(we);let Xe=0,ot=-1,xt=we.length,Ct;if(He===void 0||He.length===0||He.length>we.length){for(;xt--;)if(we.codePointAt(xt)===47){if(Ct){Xe=xt+1;break}}else ot<0&&(Ct=!0,ot=xt+1);return ot<0?"":we.slice(Xe,ot)}if(He===we)return"";let Ft=-1,Zt=He.length-1;for(;xt--;)if(we.codePointAt(xt)===47){if(Ct){Xe=xt+1;break}}else Ft<0&&(Ct=!0,Ft=xt+1),Zt>-1&&(we.codePointAt(xt)===He.codePointAt(Zt--)?Zt<0&&(ot=xt):(Zt=-1,ot=Ft));return Xe===ot?ot=Ft:ot<0&&(ot=we.length),we.slice(Xe,ot)}function Zr(we){if(au(we),we.length===0)return".";let He=-1,Xe=we.length,ot;for(;--Xe;)if(we.codePointAt(Xe)===47){if(ot){He=Xe;break}}else ot||(ot=!0);return He<0?we.codePointAt(0)===47?"/":".":He===1&&we.codePointAt(0)===47?"//":we.slice(0,He)}function Qc(we){au(we);let He=we.length,Xe=-1,ot=0,xt=-1,Ct=0,Ft;for(;He--;){const Zt=we.codePointAt(He);if(Zt===47){if(Ft){ot=He+1;break}continue}Xe<0&&(Ft=!0,Xe=He+1),Zt===46?xt<0?xt=He:Ct!==1&&(Ct=1):xt>-1&&(Ct=-1)}return xt<0||Xe<0||Ct===0||Ct===1&&xt===Xe-1&&xt===ot+1?"":we.slice(xt,Xe)}function Vo(...we){let He=-1,Xe;for(;++He<we.length;)au(we[He]),we[He]&&(Xe=Xe===void 0?we[He]:Xe+"/"+we[He]);return Xe===void 0?".":Lc(Xe)}function Lc(we){au(we);const He=we.codePointAt(0)===47;let Xe=Ru(we,!He);return Xe.length===0&&!He&&(Xe="."),Xe.length>0&&we.codePointAt(we.length-1)===47&&(Xe+="/"),He?"/"+Xe:Xe}function Ru(we,He){let Xe="",ot=0,xt=-1,Ct=0,Ft=-1,Zt,Dn;for(;++Ft<=we.length;){if(Ft<we.length)Zt=we.codePointAt(Ft);else{if(Zt===47)break;Zt=47}if(Zt===47){if(!(xt===Ft-1||Ct===1))if(xt!==Ft-1&&Ct===2){if(Xe.length<2||ot!==2||Xe.codePointAt(Xe.length-1)!==46||Xe.codePointAt(Xe.length-2)!==46){if(Xe.length>2){if(Dn=Xe.lastIndexOf("/"),Dn!==Xe.length-1){Dn<0?(Xe="",ot=0):(Xe=Xe.slice(0,Dn),ot=Xe.length-1-Xe.lastIndexOf("/")),xt=Ft,Ct=0;continue}}else if(Xe.length>0){Xe="",ot=0,xt=Ft,Ct=0;continue}}He&&(Xe=Xe.length>0?Xe+"/..":"..",ot=2)}else Xe.length>0?Xe+="/"+we.slice(xt+1,Ft):Xe=we.slice(xt+1,Ft),ot=Ft-xt-1;xt=Ft,Ct=0}else Zt===46&&Ct>-1?Ct++:Ct=-1}return Xe}function au(we){if(typeof we!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(we))}const Ic={cwd:xc};function xc(){return"/"}function Ol(we){return!!(we!==null&&typeof we=="object"&&"href"in we&&we.href&&"protocol"in we&&we.protocol&&we.auth===void 0)}function Dl(we){if(typeof we=="string")we=new URL(we);else if(!Ol(we)){const He=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+we+"`");throw He.code="ERR_INVALID_ARG_TYPE",He}if(we.protocol!=="file:"){const He=new TypeError("The URL must be of scheme file");throw He.code="ERR_INVALID_URL_SCHEME",He}return Zo(we)}function Zo(we){if(we.hostname!==""){const ot=new TypeError('File URL host must be "localhost" or empty on darwin');throw ot.code="ERR_INVALID_FILE_URL_HOST",ot}const He=we.pathname;let Xe=-1;for(;++Xe<He.length;)if(He.codePointAt(Xe)===37&&He.codePointAt(Xe+1)===50){const ot=He.codePointAt(Xe+2);if(ot===70||ot===102){const xt=new TypeError("File URL path must not include encoded / characters");throw xt.code="ERR_INVALID_FILE_URL_PATH",xt}}return decodeURIComponent(He)}const Os=["history","path","basename","stem","extname","dirname"];class Yu{constructor(He){let Xe;He?Ol(He)?Xe={path:He}:typeof He=="string"||Ho(He)?Xe={value:He}:Xe=He:Xe={},this.cwd="cwd"in Xe?"":Ic.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let ot=-1;for(;++ot<Os.length;){const Ct=Os[ot];Ct in Xe&&Xe[Ct]!==void 0&&Xe[Ct]!==null&&(this[Ct]=Ct==="history"?[...Xe[Ct]]:Xe[Ct])}let xt;for(xt in Xe)Os.includes(xt)||(this[xt]=Xe[xt])}get basename(){return typeof this.path=="string"?zo.basename(this.path):void 0}set basename(He){su(He,"basename"),Fl(He,"basename"),this.path=zo.join(this.dirname||"",He)}get dirname(){return typeof this.path=="string"?zo.dirname(this.path):void 0}set dirname(He){Vl(this.basename,"dirname"),this.path=zo.join(He||"",this.basename)}get extname(){return typeof this.path=="string"?zo.extname(this.path):void 0}set extname(He){if(Fl(He,"extname"),Vl(this.dirname,"extname"),He){if(He.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(He.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zo.join(this.dirname,this.stem+(He||""))}get path(){return this.history[this.history.length-1]}set path(He){Ol(He)&&(He=Dl(He)),su(He,"path"),this.path!==He&&this.history.push(He)}get stem(){return typeof this.path=="string"?zo.basename(this.path,this.extname):void 0}set stem(He){su(He,"stem"),Fl(He,"stem"),this.path=zo.join(this.dirname||"",He+(this.extname||""))}fail(He,Xe,ot){const xt=this.message(He,Xe,ot);throw xt.fatal=!0,xt}info(He,Xe,ot){const xt=this.message(He,Xe,ot);return xt.fatal=void 0,xt}message(He,Xe,ot){const xt=new Je(He,Xe,ot);return this.path&&(xt.name=this.path+":"+xt.name,xt.file=this.path),xt.fatal=!1,this.messages.push(xt),xt}toString(He){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(He||void 0).decode(this.value)}}function Fl(we,He){if(we&&we.includes(zo.sep))throw new Error("`"+He+"` cannot be a path: did not expect `"+zo.sep+"`")}function su(we,He){if(!we)throw new Error("`"+He+"` cannot be empty")}function Vl(we,He){if(!we)throw new Error("Setting `"+He+"` requires `path` to be set too")}function Ho(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const na=function(we){const ot=this.constructor.prototype,xt=ot[we],Ct=function(){return xt.apply(Ct,arguments)};return Object.setPrototypeOf(Ct,ot),Ct},Da={}.hasOwnProperty;class ys extends na{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ya()}copy(){const He=new ys;let Xe=-1;for(;++Xe<this.attachers.length;){const ot=this.attachers[Xe];He.use(...ot)}return He.data(Ko(!0,{},this.namespace)),He}data(He,Xe){return typeof He=="string"?arguments.length===2?(Cl("data",this.frozen),this.namespace[He]=Xe,this):Da.call(this.namespace,He)&&this.namespace[He]||void 0:He?(Cl("data",this.frozen),this.namespace=He,this):this.namespace}freeze(){if(this.frozen)return this;const He=this;for(;++this.freezeIndex<this.attachers.length;){const[Xe,...ot]=this.attachers[this.freezeIndex];if(ot[0]===!1)continue;ot[0]===!0&&(ot[0]=void 0);const xt=Xe.call(He,...ot);typeof xt=="function"&&this.transformers.use(xt)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(He){this.freeze();const Xe=dd(He),ot=this.parser||this.Parser;return bl("parse",ot),ot(String(Xe),Xe)}process(He,Xe){const ot=this;return this.freeze(),bl("process",this.parser||this.Parser),wl("process",this.compiler||this.Compiler),Xe?xt(void 0,Xe):new Promise(xt);function xt(Ct,Ft){const Zt=dd(He),Dn=ot.parse(Zt);ot.run(Dn,Zt,function(Sn,hi,ri){if(Sn||!hi||!ri)return zn(Sn);const bn=hi,no=ot.stringify(bn,ri);vh(no)?ri.value=no:ri.result=no,zn(Sn,ri)});function zn(Sn,hi){Sn||!hi?Ft(Sn):Ct?Ct(hi):((0,Pe.ok)(Xe,"`done` is defined if `resolve` is not"),Xe(void 0,hi))}}}processSync(He){let Xe=!1,ot;return this.freeze(),bl("processSync",this.parser||this.Parser),wl("processSync",this.compiler||this.Compiler),this.process(He,xt),Yl("processSync","process",Xe),(0,Pe.ok)(ot,"we either bailed on an error or have a tree"),ot;function xt(Ct,Ft){Xe=!0,vs(Ct),ot=Ft}}run(He,Xe,ot){ol(He),this.freeze();const xt=this.transformers;return!ot&&typeof Xe=="function"&&(ot=Xe,Xe=void 0),ot?Ct(void 0,ot):new Promise(Ct);function Ct(Ft,Zt){(0,Pe.ok)(typeof Xe!="function","`file` can\u2019t be a `done` anymore, we checked");const Dn=dd(Xe);xt.run(He,Dn,zn);function zn(Sn,hi,ri){const bn=hi||He;Sn?Zt(Sn):Ft?Ft(bn):((0,Pe.ok)(ot,"`done` is defined if `resolve` is not"),ot(void 0,bn,ri))}}}runSync(He,Xe){let ot=!1,xt;return this.run(He,Xe,Ct),Yl("runSync","run",ot),(0,Pe.ok)(xt,"we either bailed on an error or have a tree"),xt;function Ct(Ft,Zt){vs(Ft),xt=Zt,ot=!0}}stringify(He,Xe){this.freeze();const ot=dd(Xe),xt=this.compiler||this.Compiler;return wl("stringify",xt),ol(He),xt(He,ot)}use(He,...Xe){const ot=this.attachers,xt=this.namespace;if(Cl("use",this.frozen),He!=null)if(typeof He=="function")Dn(He,Xe);else if(typeof He=="object")Array.isArray(He)?Zt(He):Ft(He);else throw new TypeError("Expected usable value, not `"+He+"`");return this;function Ct(zn){if(typeof zn=="function")Dn(zn,[]);else if(typeof zn=="object")if(Array.isArray(zn)){const[Sn,...hi]=zn;Dn(Sn,hi)}else Ft(zn);else throw new TypeError("Expected usable value, not `"+zn+"`")}function Ft(zn){if(!("plugins"in zn)&&!("settings"in zn))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");Zt(zn.plugins),zn.settings&&(xt.settings=Ko(!0,xt.settings,zn.settings))}function Zt(zn){let Sn=-1;if(zn!=null)if(Array.isArray(zn))for(;++Sn<zn.length;){const hi=zn[Sn];Ct(hi)}else throw new TypeError("Expected a list of plugins, not `"+zn+"`")}function Dn(zn,Sn){let hi=-1,ri=-1;for(;++hi<ot.length;)if(ot[hi][0]===zn){ri=hi;break}if(ri===-1)ot.push([zn,...Sn]);else if(Sn.length>0){let[bn,...no]=Sn;const Po=ot[ri][1];fa(Po)&&fa(bn)&&(bn=Ko(!0,Po,bn)),ot[ri]=[zn,bn,...no]}}}}const ls=new ys().freeze();function bl(we,He){if(typeof He!="function")throw new TypeError("Cannot `"+we+"` without `parser`")}function wl(we,He){if(typeof He!="function")throw new TypeError("Cannot `"+we+"` without `compiler`")}function Cl(we,He){if(He)throw new Error("Cannot call `"+we+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ol(we){if(!fa(we)||typeof we.type!="string")throw new TypeError("Expected node, got `"+we+"`")}function Yl(we,He,Xe){if(!Xe)throw new Error("`"+we+"` finished async. Use `"+He+"` instead")}function dd(we){return mh(we)?we:new Yu(we)}function mh(we){return!!(we&&typeof we=="object"&&"message"in we&&"messages"in we)}function vh(we){return typeof we=="string"||yh(we)}function yh(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const ns="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ku=[],pa={allowDangerousHtml:!0},Ts=/^(https?|ircs?|mailto|xmpp)$/i,Ds=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ls(we){const He=Zu(we),Xe=hd(we);return fd(He.runSync(He.parse(Xe),Xe),we)}function sc(we){return Jy(this,null,function*(){const He=Zu(we),Xe=hd(we),ot=yield He.run(He.parse(Xe),Xe);return fd(ot,we)})}function zs(we){const He=Zu(we),[Xe,ot]=useState(void 0),[xt,Ct]=useState(void 0);if(useEffect(function(){const Ft=hd(we);He.run(He.parse(Ft),Ft,function(Zt,Dn){ot(Zt),Ct(Dn)})},[we.children,we.rehypePlugins,we.remarkPlugins,we.remarkRehypeOptions]),Xe)throw Xe;return xt?fd(xt,we):createElement(Fragment)}function Zu(we){const He=we.rehypePlugins||Ku,Xe=we.remarkPlugins||Ku,ot=we.remarkRehypeOptions?oa(oa({},we.remarkRehypeOptions),pa):pa;return ls().use(Ns).use(Xe).use(ta,ot).use(He)}function hd(we){const He=we.children||"",Xe=new Yu;return typeof He=="string"?Xe.value=He:(0,Pe.t1)("Unexpected value `"+He+"` for `children` prop, expected `string`"),Xe}function fd(we,He){const Xe=He.allowedElements,ot=He.allowElement,xt=He.components,Ct=He.disallowedElements,Ft=He.skipHtml,Zt=He.unwrapDisallowed,Dn=He.urlTransform||al;for(const Sn of Ds)Object.hasOwn(He,Sn.from)&&(0,Pe.t1)("Unexpected `"+Sn.from+"` prop, "+(Sn.to?"use `"+Sn.to+"` instead":"remove it")+" (see <"+ns+"#"+Sn.id+"> for more info)");return Xe&&Ct&&(0,Pe.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),He.className&&(we={type:"element",tagName:"div",properties:{className:He.className},children:we.type==="root"?we.children:[we]}),(0,Rs.Vn)(we,zn),on(we,{Fragment:Ue.Fragment,components:xt,ignoreInvalidStyle:!0,jsx:Ue.jsx,jsxs:Ue.jsxs,passKeys:!0,passNode:!0});function zn(Sn,hi,ri){if(Sn.type==="raw"&&ri&&typeof hi=="number")return Ft?ri.children.splice(hi,1):ri.children[hi]={type:"text",value:Sn.value},hi;if(Sn.type==="element"){let bn;for(bn in lt)if(Object.hasOwn(lt,bn)&&Object.hasOwn(Sn.properties,bn)){const no=Sn.properties[bn],Po=lt[bn];(Po===null||Po.includes(Sn.tagName))&&(Sn.properties[bn]=Dn(String(no||""),bn,Sn))}}if(Sn.type==="element"){let bn=Xe?!Xe.includes(Sn.tagName):Ct?Ct.includes(Sn.tagName):!1;if(!bn&&ot&&typeof hi=="number"&&(bn=!ot(Sn,hi,ri)),bn&&ri&&typeof hi=="number")return Zt&&Sn.children?ri.children.splice(hi,1,...Sn.children):ri.children.splice(hi,1),hi}}}function al(we){const He=we.indexOf(":"),Xe=we.indexOf("?"),ot=we.indexOf("#"),xt=we.indexOf("/");return He===-1||xt!==-1&&He>xt||Xe!==-1&&He>Xe||ot!==-1&&He>ot||Ts.test(we.slice(0,He))?we:""}},3977:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return zd}});var ce={};le.r(ce),le.d(ce,{boolean:function(){return Je},booleanish:function(){return rt},commaOrSpaceSeparated:function(){return Ut},commaSeparated:function(){return Lt},number:function(){return tt},overloadedBoolean:function(){return at},spaceSeparated:function(){return Et}});var Pe=le(90302),Me=le(87342),Ie=le(81994),je=le(14470),Te=le(86825);function Ge(ue){const pe=String(ue),Ze=[];return{toOffset:Bn,toPoint:Ot};function Ot(ki){if(typeof ki=="number"&&ki>-1&&ki<=pe.length){let er=0;for(;;){let ao=Ze[er];if(ao===void 0){const Fo=st(pe,Ze[er-1]);ao=Fo===-1?pe.length+1:Fo+1,Ze[er]=ao}if(ao>ki)return{line:er+1,column:ki-(er>0?Ze[er-1]:0)+1,offset:ki};er++}}}function Bn(ki){if(ki&&typeof ki.line=="number"&&typeof ki.column=="number"&&!Number.isNaN(ki.line)&&!Number.isNaN(ki.column)){for(;Ze.length<ki.line;){const ao=Ze[Ze.length-1],Fo=st(pe,ao),Ei=Fo===-1?pe.length+1:Fo+1;if(ao===Ei)break;Ze.push(Ei)}const er=(ki.line>1?Ze[ki.line-2]:0)+ki.column-1;if(er<Ze[ki.line-1])return er}}}function st(ue,pe){const Ze=ue.indexOf("\r",pe),Ot=ue.indexOf(`
|
|
|
`,pe);return Ot===-1?Ze:Ze===-1||Ze+1===Ot?Ot:Ze<Ot?Ze:Ot}var Qe=le(43309);const We={}.hasOwnProperty,mt=Object.prototype;function it(ue,pe){const Ze=pe||{};return kt({file:Ze.file||void 0,location:!1,schema:Ze.space==="svg"?je.YP:je.dy,verbose:Ze.verbose||!1},ue)}function kt(ue,pe){let Ze;switch(pe.nodeName){case"#comment":{const Ot=pe;return Ze={type:"comment",value:Ot.data},te(ue,Ot,Ze),Ze}case"#document":case"#document-fragment":{const Ot=pe,Bn="mode"in Ot?Ot.mode==="quirks"||Ot.mode==="limited-quirks":!1;if(Ze={type:"root",children:Fe(ue,pe.childNodes),data:{quirksMode:Bn}},ue.file&&ue.location){const ki=String(ue.file),er=Ge(ki),ao=er.toPoint(0),Fo=er.toPoint(ki.length);(0,Me.ok)(ao,"expected `start`"),(0,Me.ok)(Fo,"expected `end`"),Ze.position={start:ao,end:Fo}}return Ze}case"#documentType":{const Ot=pe;return Ze={type:"doctype"},te(ue,Ot,Ze),Ze}case"#text":{const Ot=pe;return Ze={type:"text",value:Ot.value},te(ue,Ot,Ze),Ze}default:return Ze=ne(ue,pe),Ze}}function Fe(ue,pe){let Ze=-1;const Ot=[];for(;++Ze<pe.length;){const Bn=kt(ue,pe[Ze]);Ot.push(Bn)}return Ot}function ne(ue,pe){const Ze=ue.schema;ue.schema=pe.namespaceURI===Qe.t.svg?je.YP:je.dy;let Ot=-1;const Bn={};for(;++Ot<pe.attrs.length;){const ao=pe.attrs[Ot],Fo=(ao.prefix?ao.prefix+":":"")+ao.name;We.call(mt,Fo)||(Bn[Fo]=ao.value)}const er=(ue.schema.space==="svg"?Ie.s:Ie.h)(pe.tagName,Bn,Fe(ue,pe.childNodes));if(te(ue,pe,er),er.tagName==="template"){const ao=pe,Fo=ao.sourceCodeLocation,Ei=Fo&&Fo.startTag&&se(Fo.startTag),Cr=Fo&&Fo.endTag&&se(Fo.endTag),Go=kt(ue,ao.content);Ei&&Cr&&ue.file&&(Go.position={start:Ei.end,end:Cr.start}),er.content=Go}return ue.schema=Ze,er}function te(ue,pe,Ze){if("sourceCodeLocation"in pe&&pe.sourceCodeLocation&&ue.file){const Ot=he(ue,Ze,pe.sourceCodeLocation);Ot&&(ue.location=!0,Ze.position=Ot)}}function he(ue,pe,Ze){const Ot=se(Ze);if(pe.type==="element"){const Bn=pe.children[pe.children.length-1];if(Ot&&!Ze.endTag&&Bn&&Bn.position&&Bn.position.end&&(Ot.end=Object.assign({},Bn.position.end)),ue.verbose){const ki={};let er;if(Ze.attrs)for(er in Ze.attrs)We.call(Ze.attrs,er)&&(ki[(0,Te.s)(ue.schema,er).property]=se(Ze.attrs[er]));(0,Me.ok)(Ze.startTag,"a start tag should exist");const ao=se(Ze.startTag),Fo=Ze.endTag?se(Ze.endTag):void 0,Ei={opening:ao};Fo&&(Ei.closing=Fo),Ei.properties=ki,pe.data={position:Ei}}}return Ot}function se(ue){const pe=ge({line:ue.startLine,column:ue.startCol,offset:ue.startOffset}),Ze=ge({line:ue.endLine,column:ue.endCol,offset:ue.endOffset});return pe||Ze?{start:pe,end:Ze}:void 0}function ge(ue){return ue.line&&ue.column?ue:void 0}var ye=le(11630);class be{constructor(pe,Ze,Ot){this.property=pe,this.normal=Ze,Ot&&(this.space=Ot)}}be.prototype.property={},be.prototype.normal={},be.prototype.space=null;function Ae(ue,pe){const Ze={},Ot={};let Bn=-1;for(;++Bn<ue.length;)Object.assign(Ze,ue[Bn].property),Object.assign(Ot,ue[Bn].normal);return new be(Ze,Ot,pe)}function Le(ue){return ue.toLowerCase()}class Ve{constructor(pe,Ze){this.property=pe,this.attribute=Ze}}Ve.prototype.space=null,Ve.prototype.boolean=!1,Ve.prototype.booleanish=!1,Ve.prototype.overloadedBoolean=!1,Ve.prototype.number=!1,Ve.prototype.commaSeparated=!1,Ve.prototype.spaceSeparated=!1,Ve.prototype.commaOrSpaceSeparated=!1,Ve.prototype.mustUseProperty=!1,Ve.prototype.defined=!1;let et=0;const Je=on(),rt=on(),at=on(),tt=on(),Et=on(),Lt=on(),Ut=on();function on(){return Qy(2,++et)}const an=Object.keys(ce);class Kt extends Ve{constructor(pe,Ze,Ot,Bn){let ki=-1;if(super(pe,Ze),fn(this,"space",Bn),typeof Ot=="number")for(;++ki<an.length;){const er=an[ki];fn(this,an[ki],(Ot&ce[er])===ce[er])}}}Kt.prototype.defined=!0;function fn(ue,pe,Ze){Ze&&(ue[pe]=Ze)}const bt={}.hasOwnProperty;function dt(ue){const pe={},Ze={};let Ot;for(Ot in ue.properties)if(bt.call(ue.properties,Ot)){const Bn=ue.properties[Ot],ki=new Kt(Ot,ue.transform(ue.attributes||{},Ot),Bn,ue.space);ue.mustUseProperty&&ue.mustUseProperty.includes(Ot)&&(ki.mustUseProperty=!0),pe[Ot]=ki,Ze[Le(Ot)]=Ot,Ze[Le(ki.attribute)]=Ot}return new be(pe,Ze,ue.space)}const ct=dt({space:"xlink",transform(ue,pe){return"xlink:"+pe.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Qt=dt({space:"xml",transform(ue,pe){return"xml:"+pe.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function un(ue,pe){return pe in ue?ue[pe]:pe}function Nt(ue,pe){return un(ue,pe.toLowerCase())}const hn=dt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Nt,properties:{xmlns:null,xmlnsXLink:null}}),cn=dt({transform(ue,pe){return pe==="role"?pe:"aria-"+pe.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:tt,ariaColIndex:tt,ariaColSpan:tt,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Et,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:tt,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:tt,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Et,ariaRowCount:tt,ariaRowIndex:tt,ariaRowSpan:tt,ariaSelected:rt,ariaSetSize:tt,ariaSort:null,ariaValueMax:tt,ariaValueMin:tt,ariaValueNow:tt,ariaValueText:null,role:null}}),Qn=dt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Nt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Lt,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Je,allowPaymentRequest:Je,allowUserMedia:Je,alt:null,as:null,async:Je,autoCapitalize:null,autoComplete:Et,autoFocus:Je,autoPlay:Je,blocking:Et,capture:null,charSet:null,checked:Je,cite:null,className:Et,cols:tt,colSpan:null,content:null,contentEditable:rt,controls:Je,controlsList:Et,coords:tt|Lt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:at,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:Et,height:tt,hidden:Je,high:tt,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Je,inputMode:null,integrity:null,is:null,isMap:Je,itemId:null,itemProp:Et,itemRef:Et,itemScope:Je,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Je,low:tt,manifest:null,max:null,maxLength:tt,media:null,method:null,min:null,minLength:tt,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Je,optimum:tt,pattern:null,ping:Et,placeholder:null,playsInline:Je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Je,referrerPolicy:null,rel:Et,required:Je,reversed:Je,rows:tt,rowSpan:tt,sandbox:Et,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:tt,sizes:null,slot:null,span:tt,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tt,step:null,style:null,tabIndex:tt,target:null,title:null,translate:null,type:null,typeMustMatch:Je,useMap:null,value:rt,width:tt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Et,axis:null,background:null,bgColor:null,border:tt,borderColor:null,bottomMargin:tt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:tt,leftMargin:tt,link:null,longDesc:null,lowSrc:null,marginHeight:tt,marginWidth:tt,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:tt,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:tt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Je,disableRemotePlayback:Je,prefix:null,property:null,results:tt,security:null,unselectable:null}}),Bt=dt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:un,properties:{about:Ut,accentHeight:tt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tt,amplitude:tt,arabicForm:null,ascent:tt,attributeName:null,attributeType:null,azimuth:tt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tt,by:null,calcMode:null,capHeight:tt,className:Et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tt,diffuseConstant:tt,direction:null,display:null,dur:null,divisor:tt,dominantBaseline:null,download:Je,dx:null,dy:null,edgeMode:null,editable:null,elevation:tt,enableBackground:null,end:null,event:null,exponent:tt,externalResourcesRequired:null,fill:null,fillOpacity:tt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Lt,g2:Lt,glyphName:Lt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tt,horizOriginX:tt,horizOriginY:tt,id:null,ideographic:tt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tt,k:tt,k1:tt,k2:tt,k3:tt,k4:tt,kernelMatrix:Ut,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tt,overlineThickness:tt,paintOrder:null,panose1:null,path:null,pathLength:tt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tt,pointsAtY:tt,pointsAtZ:tt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ut,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ut,rev:Ut,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ut,requiredFeatures:Ut,requiredFonts:Ut,requiredFormats:Ut,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tt,specularExponent:tt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tt,strikethroughThickness:tt,string:null,stroke:null,strokeDashArray:Ut,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tt,strokeOpacity:tt,strokeWidth:null,style:null,surfaceScale:tt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ut,tabIndex:tt,tableValues:null,target:null,targetX:tt,targetY:tt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ut,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tt,underlineThickness:tt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tt,values:null,vAlphabetic:tt,vMathematical:tt,vectorEffect:null,vHanging:tt,vIdeographic:tt,version:null,vertAdvY:tt,vertOriginX:tt,vertOriginY:tt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Pt=Ae([Qt,ct,hn,cn,Qn],"html"),Wt=Ae([Qt,ct,hn,cn,Bt],"svg"),An=/^data[-\w.:]+$/i,Nn=/-[a-z]/g,$e=/[A-Z]/g;function Oe(ue,pe){const Ze=Le(pe);let Ot=pe,Bn=Ve;if(Ze in ue.normal)return ue.property[ue.normal[Ze]];if(Ze.length>4&&Ze.slice(0,4)==="data"&&An.test(pe)){if(pe.charAt(4)==="-"){const ki=pe.slice(5).replace(Nn,Ke);Ot="data"+ki.charAt(0).toUpperCase()+ki.slice(1)}else{const ki=pe.slice(4);if(!Nn.test(ki)){let er=ki.replace($e,ke);er.charAt(0)!=="-"&&(er="-"+er),pe="data"+er}}Bn=Kt}return new Bn(Ot,pe)}function ke(ue){return"-"+ue.toLowerCase()}function Ke(ue){return ue.charAt(1).toUpperCase()}var lt=le(71523);const Ue={}.hasOwnProperty;function gt(ue,pe){const Ze=pe||{};function Ot(Bn,...ki){let er=Ot.invalid;const ao=Ot.handlers;if(Bn&&Ue.call(Bn,ue)){const Fo=String(Bn[ue]);er=Ue.call(ao,Fo)?ao[Fo]:Ot.unknown}if(er)return er.call(this,Bn,...ki)}return Ot.handlers=Ze.handlers||{},Ot.invalid=Ze.invalid,Ot.unknown=Ze.unknown,Ot}const tn={},Un={}.hasOwnProperty,qn=gt("type",{handlers:{root:Ht,element:_t,text:Ln,comment:xn,doctype:vn}});function nn(ue,pe){const Ot=(pe||tn).space;return qn(ue,Ot==="svg"?Wt:Pt)}function Ht(ue,pe){const Ze={nodeName:"#document",mode:(ue.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ze.childNodes=Kn(ue.children,Ze,pe),Tn(ue,Ze),Ze}function sn(ue,pe){const Ze={nodeName:"#document-fragment",childNodes:[]};return Ze.childNodes=Kn(ue.children,Ze,pe),Tn(ue,Ze),Ze}function vn(ue){const pe={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Tn(ue,pe),pe}function Ln(ue){const pe={nodeName:"#text",value:ue.value,parentNode:null};return Tn(ue,pe),pe}function xn(ue){const pe={nodeName:"#comment",data:ue.value,parentNode:null};return Tn(ue,pe),pe}function _t(ue,pe){const Ze=pe;let Ot=Ze;ue.type==="element"&&ue.tagName.toLowerCase()==="svg"&&Ze.space==="html"&&(Ot=Wt);const Bn=[];let ki;if(ue.properties){for(ki in ue.properties)if(ki!=="children"&&Un.call(ue.properties,ki)){const Fo=Vn(Ot,ki,ue.properties[ki]);Fo&&Bn.push(Fo)}}const er=Ot.space;(0,Me.ok)(er);const ao={nodeName:ue.tagName,tagName:ue.tagName,attrs:Bn,namespaceURI:Qe.t[er],childNodes:[],parentNode:null};return ao.childNodes=Kn(ue.children,ao,Ot),Tn(ue,ao),ue.tagName==="template"&&ue.content&&(ao.content=sn(ue.content,Ot)),ao}function Vn(ue,pe,Ze){const Ot=Oe(ue,pe);if(Ze===!1||Ze===null||Ze===void 0||typeof Ze=="number"&&Number.isNaN(Ze)||!Ze&&Ot.boolean)return;Array.isArray(Ze)&&(Ze=Ot.commaSeparated?(0,ye.P)(Ze):(0,lt.P)(Ze));const Bn={name:Ot.attribute,value:Ze===!0?"":String(Ze)};if(Ot.space&&Ot.space!=="html"&&Ot.space!=="svg"){const ki=Bn.name.indexOf(":");ki<0?Bn.prefix="":(Bn.name=Bn.name.slice(ki+1),Bn.prefix=Ot.attribute.slice(0,ki)),Bn.namespace=Qe.t[Ot.space]}return Bn}function Kn(ue,pe,Ze){let Ot=-1;const Bn=[];if(ue)for(;++Ot<ue.length;){const ki=qn(ue[Ot],Ze);ki.parentNode=pe,Bn.push(ki)}return Bn}function Tn(ue,pe){const Ze=ue.position;Ze&&Ze.start&&Ze.end&&((0,Me.ok)(typeof Ze.start.offset=="number"),(0,Me.ok)(typeof Ze.end.offset=="number"),pe.sourceCodeLocation={startLine:Ze.start.line,startCol:Ze.start.column,startOffset:Ze.start.offset,endLine:Ze.end.line,endCol:Ze.end.column,endOffset:Ze.end.offset})}const jn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Mi=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Gn="\uFFFD";var wt;(function(ue){ue[ue.EOF=-1]="EOF",ue[ue.NULL=0]="NULL",ue[ue.TABULATION=9]="TABULATION",ue[ue.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",ue[ue.LINE_FEED=10]="LINE_FEED",ue[ue.FORM_FEED=12]="FORM_FEED",ue[ue.SPACE=32]="SPACE",ue[ue.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",ue[ue.QUOTATION_MARK=34]="QUOTATION_MARK",ue[ue.AMPERSAND=38]="AMPERSAND",ue[ue.APOSTROPHE=39]="APOSTROPHE",ue[ue.HYPHEN_MINUS=45]="HYPHEN_MINUS",ue[ue.SOLIDUS=47]="SOLIDUS",ue[ue.DIGIT_0=48]="DIGIT_0",ue[ue.DIGIT_9=57]="DIGIT_9",ue[ue.SEMICOLON=59]="SEMICOLON",ue[ue.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",ue[ue.EQUALS_SIGN=61]="EQUALS_SIGN",ue[ue.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",ue[ue.QUESTION_MARK=63]="QUESTION_MARK",ue[ue.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",ue[ue.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",ue[ue.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",ue[ue.GRAVE_ACCENT=96]="GRAVE_ACCENT",ue[ue.LATIN_SMALL_A=97]="LATIN_SMALL_A",ue[ue.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(wt||(wt={}));const Si={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function wi(ue){return ue>=55296&&ue<=57343}function Vt(ue){return ue>=56320&&ue<=57343}function qi(ue,pe){return(ue-55296)*1024+9216+pe}function lr(ue){return ue!==32&&ue!==10&&ue!==13&&ue!==9&&ue!==12&&ue>=1&&ue<=31||ue>=127&&ue<=159}function rr(ue){return ue>=64976&&ue<=65007||Mi.has(ue)}var In;(function(ue){ue.controlCharacterInInputStream="control-character-in-input-stream",ue.noncharacterInInputStream="noncharacter-in-input-stream",ue.surrogateInInputStream="surrogate-in-input-stream",ue.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",ue.endTagWithAttributes="end-tag-with-attributes",ue.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",ue.unexpectedSolidusInTag="unexpected-solidus-in-tag",ue.unexpectedNullCharacter="unexpected-null-character",ue.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",ue.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",ue.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",ue.missingEndTagName="missing-end-tag-name",ue.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",ue.unknownNamedCharacterReference="unknown-named-character-reference",ue.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",ue.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",ue.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",ue.eofBeforeTagName="eof-before-tag-name",ue.eofInTag="eof-in-tag",ue.missingAttributeValue="missing-attribute-value",ue.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",ue.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",ue.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",ue.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",ue.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",ue.missingDoctypePublicIdentifier="missing-doctype-public-identifier",ue.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",ue.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",ue.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",ue.cdataInHtmlContent="cdata-in-html-content",ue.incorrectlyOpenedComment="incorrectly-opened-comment",ue.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",ue.eofInDoctype="eof-in-doctype",ue.nestedComment="nested-comment",ue.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",ue.eofInComment="eof-in-comment",ue.incorrectlyClosedComment="incorrectly-closed-comment",ue.eofInCdata="eof-in-cdata",ue.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",ue.nullCharacterReference="null-character-reference",ue.surrogateCharacterReference="surrogate-character-reference",ue.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",ue.controlCharacterReference="control-character-reference",ue.noncharacterCharacterReference="noncharacter-character-reference",ue.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",ue.missingDoctypeName="missing-doctype-name",ue.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",ue.duplicateAttribute="duplicate-attribute",ue.nonConformingDoctype="non-conforming-doctype",ue.missingDoctype="missing-doctype",ue.misplacedDoctype="misplaced-doctype",ue.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",ue.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",ue.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",ue.openElementsLeftAfterEof="open-elements-left-after-eof",ue.abandonedHeadElementChild="abandoned-head-element-child",ue.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",ue.nestedNoscriptInHead="nested-noscript-in-head",ue.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(In||(In={}));const Br=65536;class Tr{constructor(pe){this.handler=pe,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Br,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(pe,Ze){const{line:Ot,col:Bn,offset:ki}=this,er=Bn+Ze,ao=ki+Ze;return{code:pe,startLine:Ot,endLine:Ot,startCol:er,endCol:er,startOffset:ao,endOffset:ao}}_err(pe){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(pe,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(pe){if(this.pos!==this.html.length-1){const Ze=this.html.charCodeAt(this.pos+1);if(Vt(Ze))return this.pos++,this._addGap(),qi(pe,Ze)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,wt.EOF;return this._err(In.surrogateInInputStream),pe}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(pe,Ze){this.html.length>0?this.html+=pe:this.html=pe,this.endOfChunkHit=!1,this.lastChunkWritten=Ze}insertHtmlAtCurrentPos(pe){this.html=this.html.substring(0,this.pos+1)+pe+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(pe,Ze){if(this.pos+pe.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(Ze)return this.html.startsWith(pe,this.pos);for(let Ot=0;Ot<pe.length;Ot++)if((this.html.charCodeAt(this.pos+Ot)|32)!==pe.charCodeAt(Ot))return!1;return!0}peek(pe){const Ze=this.pos+pe;if(Ze>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,wt.EOF;const Ot=this.html.charCodeAt(Ze);return Ot===wt.CARRIAGE_RETURN?wt.LINE_FEED:Ot}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,wt.EOF;let pe=this.html.charCodeAt(this.pos);return pe===wt.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,wt.LINE_FEED):pe===wt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,wi(pe)&&(pe=this._processSurrogate(pe)),this.handler.onParseError===null||pe>31&&pe<127||pe===wt.LINE_FEED||pe===wt.CARRIAGE_RETURN||pe>159&&pe<64976||this._checkForProblematicCharacters(pe),pe)}_checkForProblematicCharacters(pe){lr(pe)?this._err(In.controlCharacterInInputStream):rr(pe)&&this._err(In.noncharacterInInputStream)}retreat(pe){for(this.pos-=pe;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Xi;(function(ue){ue[ue.CHARACTER=0]="CHARACTER",ue[ue.NULL_CHARACTER=1]="NULL_CHARACTER",ue[ue.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",ue[ue.START_TAG=3]="START_TAG",ue[ue.END_TAG=4]="END_TAG",ue[ue.COMMENT=5]="COMMENT",ue[ue.DOCTYPE=6]="DOCTYPE",ue[ue.EOF=7]="EOF",ue[ue.HIBERNATION=8]="HIBERNATION"})(Xi||(Xi={}));function Ji(ue,pe){for(let Ze=ue.attrs.length-1;Ze>=0;Ze--)if(ue.attrs[Ze].name===pe)return ue.attrs[Ze].value;return null}const Nr=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(ue=>ue.charCodeAt(0))),Be=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ue=>ue.charCodeAt(0)));var Vi;const bi=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),di=(Vi=String.fromCodePoint)!==null&&Vi!==void 0?Vi:function(ue){let pe="";return ue>65535&&(ue-=65536,pe+=String.fromCharCode(ue>>>10&1023|55296),ue=56320|ue&1023),pe+=String.fromCharCode(ue),pe};function Ri(ue){var pe;return ue>=55296&&ue<=57343||ue>1114111?65533:(pe=bi.get(ue))!==null&&pe!==void 0?pe:ue}function Fi(ue){return di(Ri(ue))}var Ti;(function(ue){ue[ue.NUM=35]="NUM",ue[ue.SEMI=59]="SEMI",ue[ue.EQUALS=61]="EQUALS",ue[ue.ZERO=48]="ZERO",ue[ue.NINE=57]="NINE",ue[ue.LOWER_A=97]="LOWER_A",ue[ue.LOWER_F=102]="LOWER_F",ue[ue.LOWER_X=120]="LOWER_X",ue[ue.LOWER_Z=122]="LOWER_Z",ue[ue.UPPER_A=65]="UPPER_A",ue[ue.UPPER_F=70]="UPPER_F",ue[ue.UPPER_Z=90]="UPPER_Z"})(Ti||(Ti={}));const Lr=32;var ln;(function(ue){ue[ue.VALUE_LENGTH=49152]="VALUE_LENGTH",ue[ue.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ue[ue.JUMP_TABLE=127]="JUMP_TABLE"})(ln||(ln={}));function pn(ue){return ue>=Ti.ZERO&&ue<=Ti.NINE}function $t(ue){return ue>=Ti.UPPER_A&&ue<=Ti.UPPER_F||ue>=Ti.LOWER_A&&ue<=Ti.LOWER_F}function wn(ue){return ue>=Ti.UPPER_A&&ue<=Ti.UPPER_Z||ue>=Ti.LOWER_A&&ue<=Ti.LOWER_Z||pn(ue)}function Gi(ue){return ue===Ti.EQUALS||wn(ue)}var Ci;(function(ue){ue[ue.EntityStart=0]="EntityStart",ue[ue.NumericStart=1]="NumericStart",ue[ue.NumericDecimal=2]="NumericDecimal",ue[ue.NumericHex=3]="NumericHex",ue[ue.NamedEntity=4]="NamedEntity"})(Ci||(Ci={}));var Yi;(function(ue){ue[ue.Legacy=0]="Legacy",ue[ue.Strict=1]="Strict",ue[ue.Attribute=2]="Attribute"})(Yi||(Yi={}));class mn{constructor(pe,Ze,Ot){this.decodeTree=pe,this.emitCodePoint=Ze,this.errors=Ot,this.state=Ci.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Yi.Strict}startEntity(pe){this.decodeMode=pe,this.state=Ci.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(pe,Ze){switch(this.state){case Ci.EntityStart:return pe.charCodeAt(Ze)===Ti.NUM?(this.state=Ci.NumericStart,this.consumed+=1,this.stateNumericStart(pe,Ze+1)):(this.state=Ci.NamedEntity,this.stateNamedEntity(pe,Ze));case Ci.NumericStart:return this.stateNumericStart(pe,Ze);case Ci.NumericDecimal:return this.stateNumericDecimal(pe,Ze);case Ci.NumericHex:return this.stateNumericHex(pe,Ze);case Ci.NamedEntity:return this.stateNamedEntity(pe,Ze)}}stateNumericStart(pe,Ze){return Ze>=pe.length?-1:(pe.charCodeAt(Ze)|Lr)===Ti.LOWER_X?(this.state=Ci.NumericHex,this.consumed+=1,this.stateNumericHex(pe,Ze+1)):(this.state=Ci.NumericDecimal,this.stateNumericDecimal(pe,Ze))}addToNumericResult(pe,Ze,Ot,Bn){if(Ze!==Ot){const ki=Ot-Ze;this.result=this.result*Math.pow(Bn,ki)+Number.parseInt(pe.substr(Ze,ki),Bn),this.consumed+=ki}}stateNumericHex(pe,Ze){const Ot=Ze;for(;Ze<pe.length;){const Bn=pe.charCodeAt(Ze);if(pn(Bn)||$t(Bn))Ze+=1;else return this.addToNumericResult(pe,Ot,Ze,16),this.emitNumericEntity(Bn,3)}return this.addToNumericResult(pe,Ot,Ze,16),-1}stateNumericDecimal(pe,Ze){const Ot=Ze;for(;Ze<pe.length;){const Bn=pe.charCodeAt(Ze);if(pn(Bn))Ze+=1;else return this.addToNumericResult(pe,Ot,Ze,10),this.emitNumericEntity(Bn,2)}return this.addToNumericResult(pe,Ot,Ze,10),-1}emitNumericEntity(pe,Ze){var Ot;if(this.consumed<=Ze)return(Ot=this.errors)===null||Ot===void 0||Ot.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(pe===Ti.SEMI)this.consumed+=1;else if(this.decodeMode===Yi.Strict)return 0;return this.emitCodePoint(Ri(this.result),this.consumed),this.errors&&(pe!==Ti.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(pe,Ze){const{decodeTree:Ot}=this;let Bn=Ot[this.treeIndex],ki=(Bn&ln.VALUE_LENGTH)>>14;for(;Ze<pe.length;Ze++,this.excess++){const er=pe.charCodeAt(Ze);if(this.treeIndex=Ui(Ot,Bn,this.treeIndex+Math.max(1,ki),er),this.treeIndex<0)return this.result===0||this.decodeMode===Yi.Attribute&&(ki===0||Gi(er))?0:this.emitNotTerminatedNamedEntity();if(Bn=Ot[this.treeIndex],ki=(Bn&ln.VALUE_LENGTH)>>14,ki!==0){if(er===Ti.SEMI)return this.emitNamedEntityData(this.treeIndex,ki,this.consumed+this.excess);this.decodeMode!==Yi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var pe;const{result:Ze,decodeTree:Ot}=this,Bn=(Ot[Ze]&ln.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Ze,Bn,this.consumed),(pe=this.errors)===null||pe===void 0||pe.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(pe,Ze,Ot){const{decodeTree:Bn}=this;return this.emitCodePoint(Ze===1?Bn[pe]&~ln.VALUE_LENGTH:Bn[pe+1],Ot),Ze===3&&this.emitCodePoint(Bn[pe+2],Ot),Ot}end(){var pe;switch(this.state){case Ci.NamedEntity:return this.result!==0&&(this.decodeMode!==Yi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ci.NumericDecimal:return this.emitNumericEntity(0,2);case Ci.NumericHex:return this.emitNumericEntity(0,3);case Ci.NumericStart:return(pe=this.errors)===null||pe===void 0||pe.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ci.EntityStart:return 0}}}function Rn(ue){let pe="";const Ze=new mn(ue,Ot=>pe+=fromCodePoint(Ot));return function(Bn,ki){let er=0,ao=0;for(;(ao=Bn.indexOf("&",ao))>=0;){pe+=Bn.slice(er,ao),Ze.startEntity(ki);const Ei=Ze.write(Bn,ao+1);if(Ei<0){er=ao+Ze.end();break}er=ao+Ei,ao=Ei===0?er+1:er}const Fo=pe+Bn.slice(er);return pe="",Fo}}function Ui(ue,pe,Ze,Ot){const Bn=(pe&ln.BRANCH_LENGTH)>>7,ki=pe&ln.JUMP_TABLE;if(Bn===0)return ki!==0&&Ot===ki?Ze:-1;if(ki){const Fo=Ot-ki;return Fo<0||Fo>=Bn?-1:ue[Ze+Fo]-1}let er=Ze,ao=er+Bn-1;for(;er<=ao;){const Fo=er+ao>>>1,Ei=ue[Fo];if(Ei<Ot)er=Fo+1;else if(Ei>Ot)ao=Fo-1;else return ue[Fo+Bn]}return-1}const or=null,ci=null;function yt(ue,pe=Yi.Legacy){return or(ue,pe)}function zt(ue){return or(ue,Yi.Attribute)}function li(ue){return or(ue,Yi.Strict)}function ii(ue){return ci(ue,Yi.Strict)}var Rt;(function(ue){ue.HTML="http://www.w3.org/1999/xhtml",ue.MATHML="http://www.w3.org/1998/Math/MathML",ue.SVG="http://www.w3.org/2000/svg",ue.XLINK="http://www.w3.org/1999/xlink",ue.XML="http://www.w3.org/XML/1998/namespace",ue.XMLNS="http://www.w3.org/2000/xmlns/"})(Rt||(Rt={}));var Jn;(function(ue){ue.TYPE="type",ue.ACTION="action",ue.ENCODING="encoding",ue.PROMPT="prompt",ue.NAME="name",ue.COLOR="color",ue.FACE="face",ue.SIZE="size"})(Jn||(Jn={}));var Ni;(function(ue){ue.NO_QUIRKS="no-quirks",ue.QUIRKS="quirks",ue.LIMITED_QUIRKS="limited-quirks"})(Ni||(Ni={}));var en;(function(ue){ue.A="a",ue.ADDRESS="address",ue.ANNOTATION_XML="annotation-xml",ue.APPLET="applet",ue.AREA="area",ue.ARTICLE="article",ue.ASIDE="aside",ue.B="b",ue.BASE="base",ue.BASEFONT="basefont",ue.BGSOUND="bgsound",ue.BIG="big",ue.BLOCKQUOTE="blockquote",ue.BODY="body",ue.BR="br",ue.BUTTON="button",ue.CAPTION="caption",ue.CENTER="center",ue.CODE="code",ue.COL="col",ue.COLGROUP="colgroup",ue.DD="dd",ue.DESC="desc",ue.DETAILS="details",ue.DIALOG="dialog",ue.DIR="dir",ue.DIV="div",ue.DL="dl",ue.DT="dt",ue.EM="em",ue.EMBED="embed",ue.FIELDSET="fieldset",ue.FIGCAPTION="figcaption",ue.FIGURE="figure",ue.FONT="font",ue.FOOTER="footer",ue.FOREIGN_OBJECT="foreignObject",ue.FORM="form",ue.FRAME="frame",ue.FRAMESET="frameset",ue.H1="h1",ue.H2="h2",ue.H3="h3",ue.H4="h4",ue.H5="h5",ue.H6="h6",ue.HEAD="head",ue.HEADER="header",ue.HGROUP="hgroup",ue.HR="hr",ue.HTML="html",ue.I="i",ue.IMG="img",ue.IMAGE="image",ue.INPUT="input",ue.IFRAME="iframe",ue.KEYGEN="keygen",ue.LABEL="label",ue.LI="li",ue.LINK="link",ue.LISTING="listing",ue.MAIN="main",ue.MALIGNMARK="malignmark",ue.MARQUEE="marquee",ue.MATH="math",ue.MENU="menu",ue.META="meta",ue.MGLYPH="mglyph",ue.MI="mi",ue.MO="mo",ue.MN="mn",ue.MS="ms",ue.MTEXT="mtext",ue.NAV="nav",ue.NOBR="nobr",ue.NOFRAMES="noframes",ue.NOEMBED="noembed",ue.NOSCRIPT="noscript",ue.OBJECT="object",ue.OL="ol",ue.OPTGROUP="optgroup",ue.OPTION="option",ue.P="p",ue.PARAM="param",ue.PLAINTEXT="plaintext",ue.PRE="pre",ue.RB="rb",ue.RP="rp",ue.RT="rt",ue.RTC="rtc",ue.RUBY="ruby",ue.S="s",ue.SCRIPT="script",ue.SEARCH="search",ue.SECTION="section",ue.SELECT="select",ue.SOURCE="source",ue.SMALL="small",ue.SPAN="span",ue.STRIKE="strike",ue.STRONG="strong",ue.STYLE="style",ue.SUB="sub",ue.SUMMARY="summary",ue.SUP="sup",ue.TABLE="table",ue.TBODY="tbody",ue.TEMPLATE="template",ue.TEXTAREA="textarea",ue.TFOOT="tfoot",ue.TD="td",ue.TH="th",ue.THEAD="thead",ue.TITLE="title",ue.TR="tr",ue.TRACK="track",ue.TT="tt",ue.U="u",ue.UL="ul",ue.SVG="svg",ue.VAR="var",ue.WBR="wbr",ue.XMP="xmp"})(en||(en={}));var ze;(function(ue){ue[ue.UNKNOWN=0]="UNKNOWN",ue[ue.A=1]="A",ue[ue.ADDRESS=2]="ADDRESS",ue[ue.ANNOTATION_XML=3]="ANNOTATION_XML",ue[ue.APPLET=4]="APPLET",ue[ue.AREA=5]="AREA",ue[ue.ARTICLE=6]="ARTICLE",ue[ue.ASIDE=7]="ASIDE",ue[ue.B=8]="B",ue[ue.BASE=9]="BASE",ue[ue.BASEFONT=10]="BASEFONT",ue[ue.BGSOUND=11]="BGSOUND",ue[ue.BIG=12]="BIG",ue[ue.BLOCKQUOTE=13]="BLOCKQUOTE",ue[ue.BODY=14]="BODY",ue[ue.BR=15]="BR",ue[ue.BUTTON=16]="BUTTON",ue[ue.CAPTION=17]="CAPTION",ue[ue.CENTER=18]="CENTER",ue[ue.CODE=19]="CODE",ue[ue.COL=20]="COL",ue[ue.COLGROUP=21]="COLGROUP",ue[ue.DD=22]="DD",ue[ue.DESC=23]="DESC",ue[ue.DETAILS=24]="DETAILS",ue[ue.DIALOG=25]="DIALOG",ue[ue.DIR=26]="DIR",ue[ue.DIV=27]="DIV",ue[ue.DL=28]="DL",ue[ue.DT=29]="DT",ue[ue.EM=30]="EM",ue[ue.EMBED=31]="EMBED",ue[ue.FIELDSET=32]="FIELDSET",ue[ue.FIGCAPTION=33]="FIGCAPTION",ue[ue.FIGURE=34]="FIGURE",ue[ue.FONT=35]="FONT",ue[ue.FOOTER=36]="FOOTER",ue[ue.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",ue[ue.FORM=38]="FORM",ue[ue.FRAME=39]="FRAME",ue[ue.FRAMESET=40]="FRAMESET",ue[ue.H1=41]="H1",ue[ue.H2=42]="H2",ue[ue.H3=43]="H3",ue[ue.H4=44]="H4",ue[ue.H5=45]="H5",ue[ue.H6=46]="H6",ue[ue.HEAD=47]="HEAD",ue[ue.HEADER=48]="HEADER",ue[ue.HGROUP=49]="HGROUP",ue[ue.HR=50]="HR",ue[ue.HTML=51]="HTML",ue[ue.I=52]="I",ue[ue.IMG=53]="IMG",ue[ue.IMAGE=54]="IMAGE",ue[ue.INPUT=55]="INPUT",ue[ue.IFRAME=56]="IFRAME",ue[ue.KEYGEN=57]="KEYGEN",ue[ue.LABEL=58]="LABEL",ue[ue.LI=59]="LI",ue[ue.LINK=60]="LINK",ue[ue.LISTING=61]="LISTING",ue[ue.MAIN=62]="MAIN",ue[ue.MALIGNMARK=63]="MALIGNMARK",ue[ue.MARQUEE=64]="MARQUEE",ue[ue.MATH=65]="MATH",ue[ue.MENU=66]="MENU",ue[ue.META=67]="META",ue[ue.MGLYPH=68]="MGLYPH",ue[ue.MI=69]="MI",ue[ue.MO=70]="MO",ue[ue.MN=71]="MN",ue[ue.MS=72]="MS",ue[ue.MTEXT=73]="MTEXT",ue[ue.NAV=74]="NAV",ue[ue.NOBR=75]="NOBR",ue[ue.NOFRAMES=76]="NOFRAMES",ue[ue.NOEMBED=77]="NOEMBED",ue[ue.NOSCRIPT=78]="NOSCRIPT",ue[ue.OBJECT=79]="OBJECT",ue[ue.OL=80]="OL",ue[ue.OPTGROUP=81]="OPTGROUP",ue[ue.OPTION=82]="OPTION",ue[ue.P=83]="P",ue[ue.PARAM=84]="PARAM",ue[ue.PLAINTEXT=85]="PLAINTEXT",ue[ue.PRE=86]="PRE",ue[ue.RB=87]="RB",ue[ue.RP=88]="RP",ue[ue.RT=89]="RT",ue[ue.RTC=90]="RTC",ue[ue.RUBY=91]="RUBY",ue[ue.S=92]="S",ue[ue.SCRIPT=93]="SCRIPT",ue[ue.SEARCH=94]="SEARCH",ue[ue.SECTION=95]="SECTION",ue[ue.SELECT=96]="SELECT",ue[ue.SOURCE=97]="SOURCE",ue[ue.SMALL=98]="SMALL",ue[ue.SPAN=99]="SPAN",ue[ue.STRIKE=100]="STRIKE",ue[ue.STRONG=101]="STRONG",ue[ue.STYLE=102]="STYLE",ue[ue.SUB=103]="SUB",ue[ue.SUMMARY=104]="SUMMARY",ue[ue.SUP=105]="SUP",ue[ue.TABLE=106]="TABLE",ue[ue.TBODY=107]="TBODY",ue[ue.TEMPLATE=108]="TEMPLATE",ue[ue.TEXTAREA=109]="TEXTAREA",ue[ue.TFOOT=110]="TFOOT",ue[ue.TD=111]="TD",ue[ue.TH=112]="TH",ue[ue.THEAD=113]="THEAD",ue[ue.TITLE=114]="TITLE",ue[ue.TR=115]="TR",ue[ue.TRACK=116]="TRACK",ue[ue.TT=117]="TT",ue[ue.U=118]="U",ue[ue.UL=119]="UL",ue[ue.SVG=120]="SVG",ue[ue.VAR=121]="VAR",ue[ue.WBR=122]="WBR",ue[ue.XMP=123]="XMP"})(ze||(ze={}));const si=new Map([[en.A,ze.A],[en.ADDRESS,ze.ADDRESS],[en.ANNOTATION_XML,ze.ANNOTATION_XML],[en.APPLET,ze.APPLET],[en.AREA,ze.AREA],[en.ARTICLE,ze.ARTICLE],[en.ASIDE,ze.ASIDE],[en.B,ze.B],[en.BASE,ze.BASE],[en.BASEFONT,ze.BASEFONT],[en.BGSOUND,ze.BGSOUND],[en.BIG,ze.BIG],[en.BLOCKQUOTE,ze.BLOCKQUOTE],[en.BODY,ze.BODY],[en.BR,ze.BR],[en.BUTTON,ze.BUTTON],[en.CAPTION,ze.CAPTION],[en.CENTER,ze.CENTER],[en.CODE,ze.CODE],[en.COL,ze.COL],[en.COLGROUP,ze.COLGROUP],[en.DD,ze.DD],[en.DESC,ze.DESC],[en.DETAILS,ze.DETAILS],[en.DIALOG,ze.DIALOG],[en.DIR,ze.DIR],[en.DIV,ze.DIV],[en.DL,ze.DL],[en.DT,ze.DT],[en.EM,ze.EM],[en.EMBED,ze.EMBED],[en.FIELDSET,ze.FIELDSET],[en.FIGCAPTION,ze.FIGCAPTION],[en.FIGURE,ze.FIGURE],[en.FONT,ze.FONT],[en.FOOTER,ze.FOOTER],[en.FOREIGN_OBJECT,ze.FOREIGN_OBJECT],[en.FORM,ze.FORM],[en.FRAME,ze.FRAME],[en.FRAMESET,ze.FRAMESET],[en.H1,ze.H1],[en.H2,ze.H2],[en.H3,ze.H3],[en.H4,ze.H4],[en.H5,ze.H5],[en.H6,ze.H6],[en.HEAD,ze.HEAD],[en.HEADER,ze.HEADER],[en.HGROUP,ze.HGROUP],[en.HR,ze.HR],[en.HTML,ze.HTML],[en.I,ze.I],[en.IMG,ze.IMG],[en.IMAGE,ze.IMAGE],[en.INPUT,ze.INPUT],[en.IFRAME,ze.IFRAME],[en.KEYGEN,ze.KEYGEN],[en.LABEL,ze.LABEL],[en.LI,ze.LI],[en.LINK,ze.LINK],[en.LISTING,ze.LISTING],[en.MAIN,ze.MAIN],[en.MALIGNMARK,ze.MALIGNMARK],[en.MARQUEE,ze.MARQUEE],[en.MATH,ze.MATH],[en.MENU,ze.MENU],[en.META,ze.META],[en.MGLYPH,ze.MGLYPH],[en.MI,ze.MI],[en.MO,ze.MO],[en.MN,ze.MN],[en.MS,ze.MS],[en.MTEXT,ze.MTEXT],[en.NAV,ze.NAV],[en.NOBR,ze.NOBR],[en.NOFRAMES,ze.NOFRAMES],[en.NOEMBED,ze.NOEMBED],[en.NOSCRIPT,ze.NOSCRIPT],[en.OBJECT,ze.OBJECT],[en.OL,ze.OL],[en.OPTGROUP,ze.OPTGROUP],[en.OPTION,ze.OPTION],[en.P,ze.P],[en.PARAM,ze.PARAM],[en.PLAINTEXT,ze.PLAINTEXT],[en.PRE,ze.PRE],[en.RB,ze.RB],[en.RP,ze.RP],[en.RT,ze.RT],[en.RTC,ze.RTC],[en.RUBY,ze.RUBY],[en.S,ze.S],[en.SCRIPT,ze.SCRIPT],[en.SEARCH,ze.SEARCH],[en.SECTION,ze.SECTION],[en.SELECT,ze.SELECT],[en.SOURCE,ze.SOURCE],[en.SMALL,ze.SMALL],[en.SPAN,ze.SPAN],[en.STRIKE,ze.STRIKE],[en.STRONG,ze.STRONG],[en.STYLE,ze.STYLE],[en.SUB,ze.SUB],[en.SUMMARY,ze.SUMMARY],[en.SUP,ze.SUP],[en.TABLE,ze.TABLE],[en.TBODY,ze.TBODY],[en.TEMPLATE,ze.TEMPLATE],[en.TEXTAREA,ze.TEXTAREA],[en.TFOOT,ze.TFOOT],[en.TD,ze.TD],[en.TH,ze.TH],[en.THEAD,ze.THEAD],[en.TITLE,ze.TITLE],[en.TR,ze.TR],[en.TRACK,ze.TRACK],[en.TT,ze.TT],[en.U,ze.U],[en.UL,ze.UL],[en.SVG,ze.SVG],[en.VAR,ze.VAR],[en.WBR,ze.WBR],[en.XMP,ze.XMP]]);function oi(ue){var pe;return(pe=si.get(ue))!==null&&pe!==void 0?pe:ze.UNKNOWN}const yn=ze,ir={[Rt.HTML]:new Set([yn.ADDRESS,yn.APPLET,yn.AREA,yn.ARTICLE,yn.ASIDE,yn.BASE,yn.BASEFONT,yn.BGSOUND,yn.BLOCKQUOTE,yn.BODY,yn.BR,yn.BUTTON,yn.CAPTION,yn.CENTER,yn.COL,yn.COLGROUP,yn.DD,yn.DETAILS,yn.DIR,yn.DIV,yn.DL,yn.DT,yn.EMBED,yn.FIELDSET,yn.FIGCAPTION,yn.FIGURE,yn.FOOTER,yn.FORM,yn.FRAME,yn.FRAMESET,yn.H1,yn.H2,yn.H3,yn.H4,yn.H5,yn.H6,yn.HEAD,yn.HEADER,yn.HGROUP,yn.HR,yn.HTML,yn.IFRAME,yn.IMG,yn.INPUT,yn.LI,yn.LINK,yn.LISTING,yn.MAIN,yn.MARQUEE,yn.MENU,yn.META,yn.NAV,yn.NOEMBED,yn.NOFRAMES,yn.NOSCRIPT,yn.OBJECT,yn.OL,yn.P,yn.PARAM,yn.PLAINTEXT,yn.PRE,yn.SCRIPT,yn.SECTION,yn.SELECT,yn.SOURCE,yn.STYLE,yn.SUMMARY,yn.TABLE,yn.TBODY,yn.TD,yn.TEMPLATE,yn.TEXTAREA,yn.TFOOT,yn.TH,yn.THEAD,yn.TITLE,yn.TR,yn.TRACK,yn.UL,yn.WBR,yn.XMP]),[Rt.MATHML]:new Set([yn.MI,yn.MO,yn.MN,yn.MS,yn.MTEXT,yn.ANNOTATION_XML]),[Rt.SVG]:new Set([yn.TITLE,yn.FOREIGN_OBJECT,yn.DESC]),[Rt.XLINK]:new Set,[Rt.XML]:new Set,[Rt.XMLNS]:new Set},Zi=new Set([yn.H1,yn.H2,yn.H3,yn.H4,yn.H5,yn.H6]),Fn=new Set([en.STYLE,en.SCRIPT,en.XMP,en.IFRAME,en.NOEMBED,en.NOFRAMES,en.PLAINTEXT]);function Li(ue,pe){return Fn.has(ue)||pe&&ue===en.NOSCRIPT}var jt;(function(ue){ue[ue.DATA=0]="DATA",ue[ue.RCDATA=1]="RCDATA",ue[ue.RAWTEXT=2]="RAWTEXT",ue[ue.SCRIPT_DATA=3]="SCRIPT_DATA",ue[ue.PLAINTEXT=4]="PLAINTEXT",ue[ue.TAG_OPEN=5]="TAG_OPEN",ue[ue.END_TAG_OPEN=6]="END_TAG_OPEN",ue[ue.TAG_NAME=7]="TAG_NAME",ue[ue.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",ue[ue.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",ue[ue.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",ue[ue.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",ue[ue.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",ue[ue.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",ue[ue.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",ue[ue.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",ue[ue.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",ue[ue.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",ue[ue.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",ue[ue.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",ue[ue.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",ue[ue.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",ue[ue.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",ue[ue.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",ue[ue.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",ue[ue.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",ue[ue.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",ue[ue.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",ue[ue.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",ue[ue.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",ue[ue.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",ue[ue.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",ue[ue.BOGUS_COMMENT=40]="BOGUS_COMMENT",ue[ue.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",ue[ue.COMMENT_START=42]="COMMENT_START",ue[ue.COMMENT_START_DASH=43]="COMMENT_START_DASH",ue[ue.COMMENT=44]="COMMENT",ue[ue.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",ue[ue.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",ue[ue.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",ue[ue.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",ue[ue.COMMENT_END_DASH=49]="COMMENT_END_DASH",ue[ue.COMMENT_END=50]="COMMENT_END",ue[ue.COMMENT_END_BANG=51]="COMMENT_END_BANG",ue[ue.DOCTYPE=52]="DOCTYPE",ue[ue.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",ue[ue.DOCTYPE_NAME=54]="DOCTYPE_NAME",ue[ue.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",ue[ue.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",ue[ue.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",ue[ue.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",ue[ue.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",ue[ue.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",ue[ue.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",ue[ue.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",ue[ue.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",ue[ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",ue[ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",ue[ue.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",ue[ue.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",ue[ue.CDATA_SECTION=68]="CDATA_SECTION",ue[ue.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",ue[ue.CDATA_SECTION_END=70]="CDATA_SECTION_END",ue[ue.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",ue[ue.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(jt||(jt={}));const br={DATA:jt.DATA,RCDATA:jt.RCDATA,RAWTEXT:jt.RAWTEXT,SCRIPT_DATA:jt.SCRIPT_DATA,PLAINTEXT:jt.PLAINTEXT,CDATA_SECTION:jt.CDATA_SECTION};function Eo(ue){return ue>=wt.DIGIT_0&&ue<=wt.DIGIT_9}function Gt(ue){return ue>=wt.LATIN_CAPITAL_A&&ue<=wt.LATIN_CAPITAL_Z}function Wi(ue){return ue>=wt.LATIN_SMALL_A&&ue<=wt.LATIN_SMALL_Z}function cr(ue){return Wi(ue)||Gt(ue)}function Hi(ue){return cr(ue)||Eo(ue)}function Hr(ue){return ue+32}function Rr(ue){return ue===wt.SPACE||ue===wt.LINE_FEED||ue===wt.TABULATION||ue===wt.FORM_FEED}function jr(ue){return Rr(ue)||ue===wt.SOLIDUS||ue===wt.GREATER_THAN_SIGN}function _r(ue){return ue===wt.NULL?In.nullCharacterReference:ue>1114111?In.characterReferenceOutsideUnicodeRange:wi(ue)?In.surrogateCharacterReference:rr(ue)?In.noncharacterCharacterReference:lr(ue)||ue===wt.CARRIAGE_RETURN?In.controlCharacterReference:null}class Ur{constructor(pe,Ze){this.options=pe,this.handler=Ze,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=jt.DATA,this.returnState=jt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Tr(Ze),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new mn(Nr,(Ot,Bn)=>{this.preprocessor.pos=this.entityStartPos+Bn-1,this._flushCodePointConsumedAsCharacterReference(Ot)},Ze.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(In.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Ot=>{this._err(In.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Ot)},validateNumericCharacterReference:Ot=>{const Bn=_r(Ot);Bn&&this._err(Bn,1)}}:void 0)}_err(pe,Ze=0){var Ot,Bn;(Bn=(Ot=this.handler).onParseError)===null||Bn===void 0||Bn.call(Ot,this.preprocessor.getError(pe,Ze))}getCurrentLocation(pe){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-pe,startOffset:this.preprocessor.offset-pe,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const pe=this._consume();this._ensureHibernation()||this._callState(pe)}this.inLoop=!1}}pause(){this.paused=!0}resume(pe){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||pe==null||pe())}write(pe,Ze,Ot){this.active=!0,this.preprocessor.write(pe,Ze),this._runParsingLoop(),this.paused||Ot==null||Ot()}insertHtmlAtCurrentPos(pe){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(pe),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(pe){this.consumedAfterSnapshot+=pe;for(let Ze=0;Ze<pe;Ze++)this.preprocessor.advance()}_consumeSequenceIfMatch(pe,Ze){return this.preprocessor.startsWith(pe,Ze)?(this._advanceBy(pe.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Xi.START_TAG,tagName:"",tagID:ze.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Xi.END_TAG,tagName:"",tagID:ze.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(pe){this.currentToken={type:Xi.COMMENT,data:"",location:this.getCurrentLocation(pe)}}_createDoctypeToken(pe){this.currentToken={type:Xi.DOCTYPE,name:pe,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(pe,Ze){this.currentCharacterToken={type:pe,chars:Ze,location:this.currentLocation}}_createAttr(pe){this.currentAttr={name:pe,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var pe,Ze;const Ot=this.currentToken;if(Ji(Ot,this.currentAttr.name)===null){if(Ot.attrs.push(this.currentAttr),Ot.location&&this.currentLocation){const Bn=(pe=(Ze=Ot.location).attrs)!==null&&pe!==void 0?pe:Ze.attrs=Object.create(null);Bn[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(In.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(pe){this._emitCurrentCharacterToken(pe.location),this.currentToken=null,pe.location&&(pe.location.endLine=this.preprocessor.line,pe.location.endCol=this.preprocessor.col+1,pe.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const pe=this.currentToken;this.prepareToken(pe),pe.tagID=oi(pe.tagName),pe.type===Xi.START_TAG?(this.lastStartTagName=pe.tagName,this.handler.onStartTag(pe)):(pe.attrs.length>0&&this._err(In.endTagWithAttributes),pe.selfClosing&&this._err(In.endTagWithTrailingSolidus),this.handler.onEndTag(pe)),this.preprocessor.dropParsedChunk()}emitCurrentComment(pe){this.prepareToken(pe),this.handler.onComment(pe),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(pe){this.prepareToken(pe),this.handler.onDoctype(pe),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(pe){if(this.currentCharacterToken){switch(pe&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=pe.startLine,this.currentCharacterToken.location.endCol=pe.startCol,this.currentCharacterToken.location.endOffset=pe.startOffset),this.currentCharacterToken.type){case Xi.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Xi.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Xi.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const pe=this.getCurrentLocation(0);pe&&(pe.endLine=pe.startLine,pe.endCol=pe.startCol,pe.endOffset=pe.startOffset),this._emitCurrentCharacterToken(pe),this.handler.onEof({type:Xi.EOF,location:pe}),this.active=!1}_appendCharToCurrentCharacterToken(pe,Ze){if(this.currentCharacterToken)if(this.currentCharacterToken.type===pe){this.currentCharacterToken.chars+=Ze;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(pe,Ze)}_emitCodePoint(pe){const Ze=Rr(pe)?Xi.WHITESPACE_CHARACTER:pe===wt.NULL?Xi.NULL_CHARACTER:Xi.CHARACTER;this._appendCharToCurrentCharacterToken(Ze,String.fromCodePoint(pe))}_emitChars(pe){this._appendCharToCurrentCharacterToken(Xi.CHARACTER,pe)}_startCharacterReference(){this.returnState=this.state,this.state=jt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Yi.Attribute:Yi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===jt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===jt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(pe){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(pe):this._emitCodePoint(pe)}_callState(pe){switch(this.state){case jt.DATA:{this._stateData(pe);break}case jt.RCDATA:{this._stateRcdata(pe);break}case jt.RAWTEXT:{this._stateRawtext(pe);break}case jt.SCRIPT_DATA:{this._stateScriptData(pe);break}case jt.PLAINTEXT:{this._statePlaintext(pe);break}case jt.TAG_OPEN:{this._stateTagOpen(pe);break}case jt.END_TAG_OPEN:{this._stateEndTagOpen(pe);break}case jt.TAG_NAME:{this._stateTagName(pe);break}case jt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(pe);break}case jt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(pe);break}case jt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(pe);break}case jt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(pe);break}case jt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(pe);break}case jt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(pe);break}case jt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(pe);break}case jt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(pe);break}case jt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(pe);break}case jt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(pe);break}case jt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(pe);break}case jt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(pe);break}case jt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(pe);break}case jt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(pe);break}case jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(pe);break}case jt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(pe);break}case jt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(pe);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(pe);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(pe);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(pe);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(pe);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(pe);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(pe);break}case jt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(pe);break}case jt.ATTRIBUTE_NAME:{this._stateAttributeName(pe);break}case jt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(pe);break}case jt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(pe);break}case jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(pe);break}case jt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(pe);break}case jt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(pe);break}case jt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(pe);break}case jt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(pe);break}case jt.BOGUS_COMMENT:{this._stateBogusComment(pe);break}case jt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(pe);break}case jt.COMMENT_START:{this._stateCommentStart(pe);break}case jt.COMMENT_START_DASH:{this._stateCommentStartDash(pe);break}case jt.COMMENT:{this._stateComment(pe);break}case jt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(pe);break}case jt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(pe);break}case jt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(pe);break}case jt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(pe);break}case jt.COMMENT_END_DASH:{this._stateCommentEndDash(pe);break}case jt.COMMENT_END:{this._stateCommentEnd(pe);break}case jt.COMMENT_END_BANG:{this._stateCommentEndBang(pe);break}case jt.DOCTYPE:{this._stateDoctype(pe);break}case jt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(pe);break}case jt.DOCTYPE_NAME:{this._stateDoctypeName(pe);break}case jt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(pe);break}case jt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(pe);break}case jt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(pe);break}case jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(pe);break}case jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(pe);break}case jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(pe);break}case jt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(pe);break}case jt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(pe);break}case jt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(pe);break}case jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(pe);break}case jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(pe);break}case jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(pe);break}case jt.BOGUS_DOCTYPE:{this._stateBogusDoctype(pe);break}case jt.CDATA_SECTION:{this._stateCdataSection(pe);break}case jt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(pe);break}case jt.CDATA_SECTION_END:{this._stateCdataSectionEnd(pe);break}case jt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case jt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(pe);break}default:throw new Error("Unknown state")}}_stateData(pe){switch(pe){case wt.LESS_THAN_SIGN:{this.state=jt.TAG_OPEN;break}case wt.AMPERSAND:{this._startCharacterReference();break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this._emitCodePoint(pe);break}case wt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateRcdata(pe){switch(pe){case wt.AMPERSAND:{this._startCharacterReference();break}case wt.LESS_THAN_SIGN:{this.state=jt.RCDATA_LESS_THAN_SIGN;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this._emitChars(Gn);break}case wt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateRawtext(pe){switch(pe){case wt.LESS_THAN_SIGN:{this.state=jt.RAWTEXT_LESS_THAN_SIGN;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this._emitChars(Gn);break}case wt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptData(pe){switch(pe){case wt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_LESS_THAN_SIGN;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this._emitChars(Gn);break}case wt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_statePlaintext(pe){switch(pe){case wt.NULL:{this._err(In.unexpectedNullCharacter),this._emitChars(Gn);break}case wt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateTagOpen(pe){if(cr(pe))this._createStartTagToken(),this.state=jt.TAG_NAME,this._stateTagName(pe);else switch(pe){case wt.EXCLAMATION_MARK:{this.state=jt.MARKUP_DECLARATION_OPEN;break}case wt.SOLIDUS:{this.state=jt.END_TAG_OPEN;break}case wt.QUESTION_MARK:{this._err(In.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=jt.BOGUS_COMMENT,this._stateBogusComment(pe);break}case wt.EOF:{this._err(In.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(In.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=jt.DATA,this._stateData(pe)}}_stateEndTagOpen(pe){if(cr(pe))this._createEndTagToken(),this.state=jt.TAG_NAME,this._stateTagName(pe);else switch(pe){case wt.GREATER_THAN_SIGN:{this._err(In.missingEndTagName),this.state=jt.DATA;break}case wt.EOF:{this._err(In.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(In.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=jt.BOGUS_COMMENT,this._stateBogusComment(pe)}}_stateTagName(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this.state=jt.BEFORE_ATTRIBUTE_NAME;break}case wt.SOLIDUS:{this.state=jt.SELF_CLOSING_START_TAG;break}case wt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentTagToken();break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.tagName+=Gn;break}case wt.EOF:{this._err(In.eofInTag),this._emitEOFToken();break}default:Ze.tagName+=String.fromCodePoint(Gt(pe)?Hr(pe):pe)}}_stateRcdataLessThanSign(pe){pe===wt.SOLIDUS?this.state=jt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=jt.RCDATA,this._stateRcdata(pe))}_stateRcdataEndTagOpen(pe){cr(pe)?(this.state=jt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(pe)):(this._emitChars("</"),this.state=jt.RCDATA,this._stateRcdata(pe))}handleSpecialEndTag(pe){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const Ze=this.currentToken;switch(Ze.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=jt.BEFORE_ATTRIBUTE_NAME,!1;case wt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=jt.SELF_CLOSING_START_TAG,!1;case wt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=jt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=jt.RCDATA,this._stateRcdata(pe))}_stateRawtextLessThanSign(pe){pe===wt.SOLIDUS?this.state=jt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=jt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagOpen(pe){cr(pe)?(this.state=jt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(pe)):(this._emitChars("</"),this.state=jt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=jt.RAWTEXT,this._stateRawtext(pe))}_stateScriptDataLessThanSign(pe){switch(pe){case wt.SOLIDUS:{this.state=jt.SCRIPT_DATA_END_TAG_OPEN;break}case wt.EXCLAMATION_MARK:{this.state=jt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=jt.SCRIPT_DATA,this._stateScriptData(pe)}}_stateScriptDataEndTagOpen(pe){cr(pe)?(this.state=jt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(pe)):(this._emitChars("</"),this.state=jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStart(pe){pe===wt.HYPHEN_MINUS?(this.state=jt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStartDash(pe){pe===wt.HYPHEN_MINUS?(this.state=jt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=jt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscaped(pe){switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case wt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this._emitChars(Gn);break}case wt.EOF:{this._err(In.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataEscapedDash(pe){switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case wt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_ESCAPED,this._emitChars(Gn);break}case wt.EOF:{this._err(In.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedDashDash(pe){switch(pe){case wt.HYPHEN_MINUS:{this._emitChars("-");break}case wt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case wt.GREATER_THAN_SIGN:{this.state=jt.SCRIPT_DATA,this._emitChars(">");break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_ESCAPED,this._emitChars(Gn);break}case wt.EOF:{this._err(In.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedLessThanSign(pe){pe===wt.SOLIDUS?this.state=jt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:cr(pe)?(this._emitChars("<"),this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(pe)):(this._emitChars("<"),this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagOpen(pe){cr(pe)?(this.state=jt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(pe)):(this._emitChars("</"),this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscapeStart(pe){if(this.preprocessor.startsWith(Si.SCRIPT,!1)&&jr(this.preprocessor.peek(Si.SCRIPT.length))){this._emitCodePoint(pe);for(let Ze=0;Ze<Si.SCRIPT.length;Ze++)this._emitCodePoint(this._consume());this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscaped(pe){switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case wt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this._emitChars(Gn);break}case wt.EOF:{this._err(In.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedDash(pe){switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case wt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Gn);break}case wt.EOF:{this._err(In.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedDashDash(pe){switch(pe){case wt.HYPHEN_MINUS:{this._emitChars("-");break}case wt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case wt.GREATER_THAN_SIGN:{this.state=jt.SCRIPT_DATA,this._emitChars(">");break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Gn);break}case wt.EOF:{this._err(In.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedLessThanSign(pe){pe===wt.SOLIDUS?(this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(pe))}_stateScriptDataDoubleEscapeEnd(pe){if(this.preprocessor.startsWith(Si.SCRIPT,!1)&&jr(this.preprocessor.peek(Si.SCRIPT.length))){this._emitCodePoint(pe);for(let Ze=0;Ze<Si.SCRIPT.length;Ze++)this._emitCodePoint(this._consume());this.state=jt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(pe))}_stateBeforeAttributeName(pe){switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.SOLIDUS:case wt.GREATER_THAN_SIGN:case wt.EOF:{this.state=jt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case wt.EQUALS_SIGN:{this._err(In.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=jt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=jt.ATTRIBUTE_NAME,this._stateAttributeName(pe)}}_stateAttributeName(pe){switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:case wt.SOLIDUS:case wt.GREATER_THAN_SIGN:case wt.EOF:{this._leaveAttrName(),this.state=jt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case wt.EQUALS_SIGN:{this._leaveAttrName(),this.state=jt.BEFORE_ATTRIBUTE_VALUE;break}case wt.QUOTATION_MARK:case wt.APOSTROPHE:case wt.LESS_THAN_SIGN:{this._err(In.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(pe);break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.currentAttr.name+=Gn;break}default:this.currentAttr.name+=String.fromCodePoint(Gt(pe)?Hr(pe):pe)}}_stateAfterAttributeName(pe){switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.SOLIDUS:{this.state=jt.SELF_CLOSING_START_TAG;break}case wt.EQUALS_SIGN:{this.state=jt.BEFORE_ATTRIBUTE_VALUE;break}case wt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentTagToken();break}case wt.EOF:{this._err(In.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=jt.ATTRIBUTE_NAME,this._stateAttributeName(pe)}}_stateBeforeAttributeValue(pe){switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.QUOTATION_MARK:{this.state=jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case wt.APOSTROPHE:{this.state=jt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case wt.GREATER_THAN_SIGN:{this._err(In.missingAttributeValue),this.state=jt.DATA,this.emitCurrentTagToken();break}default:this.state=jt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(pe)}}_stateAttributeValueDoubleQuoted(pe){switch(pe){case wt.QUOTATION_MARK:{this.state=jt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case wt.AMPERSAND:{this._startCharacterReference();break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.currentAttr.value+=Gn;break}case wt.EOF:{this._err(In.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAttributeValueSingleQuoted(pe){switch(pe){case wt.APOSTROPHE:{this.state=jt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case wt.AMPERSAND:{this._startCharacterReference();break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.currentAttr.value+=Gn;break}case wt.EOF:{this._err(In.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAttributeValueUnquoted(pe){switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this._leaveAttrValue(),this.state=jt.BEFORE_ATTRIBUTE_NAME;break}case wt.AMPERSAND:{this._startCharacterReference();break}case wt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=jt.DATA,this.emitCurrentTagToken();break}case wt.NULL:{this._err(In.unexpectedNullCharacter),this.currentAttr.value+=Gn;break}case wt.QUOTATION_MARK:case wt.APOSTROPHE:case wt.LESS_THAN_SIGN:case wt.EQUALS_SIGN:case wt.GRAVE_ACCENT:{this._err(In.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(pe);break}case wt.EOF:{this._err(In.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAfterAttributeValueQuoted(pe){switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this._leaveAttrValue(),this.state=jt.BEFORE_ATTRIBUTE_NAME;break}case wt.SOLIDUS:{this._leaveAttrValue(),this.state=jt.SELF_CLOSING_START_TAG;break}case wt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=jt.DATA,this.emitCurrentTagToken();break}case wt.EOF:{this._err(In.eofInTag),this._emitEOFToken();break}default:this._err(In.missingWhitespaceBetweenAttributes),this.state=jt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateSelfClosingStartTag(pe){switch(pe){case wt.GREATER_THAN_SIGN:{const Ze=this.currentToken;Ze.selfClosing=!0,this.state=jt.DATA,this.emitCurrentTagToken();break}case wt.EOF:{this._err(In.eofInTag),this._emitEOFToken();break}default:this._err(In.unexpectedSolidusInTag),this.state=jt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateBogusComment(pe){const Ze=this.currentToken;switch(pe){case wt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentComment(Ze);break}case wt.EOF:{this.emitCurrentComment(Ze),this._emitEOFToken();break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.data+=Gn;break}default:Ze.data+=String.fromCodePoint(pe)}}_stateMarkupDeclarationOpen(pe){this._consumeSequenceIfMatch(Si.DASH_DASH,!0)?(this._createCommentToken(Si.DASH_DASH.length+1),this.state=jt.COMMENT_START):this._consumeSequenceIfMatch(Si.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Si.DOCTYPE.length+1),this.state=jt.DOCTYPE):this._consumeSequenceIfMatch(Si.CDATA_START,!0)?this.inForeignNode?this.state=jt.CDATA_SECTION:(this._err(In.cdataInHtmlContent),this._createCommentToken(Si.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=jt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(In.incorrectlyOpenedComment),this._createCommentToken(2),this.state=jt.BOGUS_COMMENT,this._stateBogusComment(pe))}_stateCommentStart(pe){switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.COMMENT_START_DASH;break}case wt.GREATER_THAN_SIGN:{this._err(In.abruptClosingOfEmptyComment),this.state=jt.DATA;const Ze=this.currentToken;this.emitCurrentComment(Ze);break}default:this.state=jt.COMMENT,this._stateComment(pe)}}_stateCommentStartDash(pe){const Ze=this.currentToken;switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.COMMENT_END;break}case wt.GREATER_THAN_SIGN:{this._err(In.abruptClosingOfEmptyComment),this.state=jt.DATA,this.emitCurrentComment(Ze);break}case wt.EOF:{this._err(In.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="-",this.state=jt.COMMENT,this._stateComment(pe)}}_stateComment(pe){const Ze=this.currentToken;switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.COMMENT_END_DASH;break}case wt.LESS_THAN_SIGN:{Ze.data+="<",this.state=jt.COMMENT_LESS_THAN_SIGN;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.data+=Gn;break}case wt.EOF:{this._err(In.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+=String.fromCodePoint(pe)}}_stateCommentLessThanSign(pe){const Ze=this.currentToken;switch(pe){case wt.EXCLAMATION_MARK:{Ze.data+="!",this.state=jt.COMMENT_LESS_THAN_SIGN_BANG;break}case wt.LESS_THAN_SIGN:{Ze.data+="<";break}default:this.state=jt.COMMENT,this._stateComment(pe)}}_stateCommentLessThanSignBang(pe){pe===wt.HYPHEN_MINUS?this.state=jt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=jt.COMMENT,this._stateComment(pe))}_stateCommentLessThanSignBangDash(pe){pe===wt.HYPHEN_MINUS?this.state=jt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=jt.COMMENT_END_DASH,this._stateCommentEndDash(pe))}_stateCommentLessThanSignBangDashDash(pe){pe!==wt.GREATER_THAN_SIGN&&pe!==wt.EOF&&this._err(In.nestedComment),this.state=jt.COMMENT_END,this._stateCommentEnd(pe)}_stateCommentEndDash(pe){const Ze=this.currentToken;switch(pe){case wt.HYPHEN_MINUS:{this.state=jt.COMMENT_END;break}case wt.EOF:{this._err(In.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="-",this.state=jt.COMMENT,this._stateComment(pe)}}_stateCommentEnd(pe){const Ze=this.currentToken;switch(pe){case wt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentComment(Ze);break}case wt.EXCLAMATION_MARK:{this.state=jt.COMMENT_END_BANG;break}case wt.HYPHEN_MINUS:{Ze.data+="-";break}case wt.EOF:{this._err(In.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="--",this.state=jt.COMMENT,this._stateComment(pe)}}_stateCommentEndBang(pe){const Ze=this.currentToken;switch(pe){case wt.HYPHEN_MINUS:{Ze.data+="--!",this.state=jt.COMMENT_END_DASH;break}case wt.GREATER_THAN_SIGN:{this._err(In.incorrectlyClosedComment),this.state=jt.DATA,this.emitCurrentComment(Ze);break}case wt.EOF:{this._err(In.eofInComment),this.emitCurrentComment(Ze),this._emitEOFToken();break}default:Ze.data+="--!",this.state=jt.COMMENT,this._stateComment(pe)}}_stateDoctype(pe){switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this.state=jt.BEFORE_DOCTYPE_NAME;break}case wt.GREATER_THAN_SIGN:{this.state=jt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe);break}case wt.EOF:{this._err(In.eofInDoctype),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.missingWhitespaceBeforeDoctypeName),this.state=jt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe)}}_stateBeforeDoctypeName(pe){if(Gt(pe))this._createDoctypeToken(String.fromCharCode(Hr(pe))),this.state=jt.DOCTYPE_NAME;else switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.NULL:{this._err(In.unexpectedNullCharacter),this._createDoctypeToken(Gn),this.state=jt.DOCTYPE_NAME;break}case wt.GREATER_THAN_SIGN:{this._err(In.missingDoctypeName),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.EOF:{this._err(In.eofInDoctype),this._createDoctypeToken(null);const Ze=this.currentToken;Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(pe)),this.state=jt.DOCTYPE_NAME}}_stateDoctypeName(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this.state=jt.AFTER_DOCTYPE_NAME;break}case wt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentDoctype(Ze);break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.name+=Gn;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.name+=String.fromCodePoint(Gt(pe)?Hr(pe):pe)}}_stateAfterDoctypeName(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentDoctype(Ze);break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Si.PUBLIC,!1)?this.state=jt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Si.SYSTEM,!1)?this.state=jt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(In.invalidCharacterSequenceAfterDoctypeName),Ze.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe))}}_stateAfterDoctypePublicKeyword(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this.state=jt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case wt.QUOTATION_MARK:{this._err(In.missingWhitespaceAfterDoctypePublicKeyword),Ze.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case wt.APOSTROPHE:{this._err(In.missingWhitespaceAfterDoctypePublicKeyword),Ze.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case wt.GREATER_THAN_SIGN:{this._err(In.missingDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(Ze);break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.missingQuoteBeforeDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBeforeDoctypePublicIdentifier(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.QUOTATION_MARK:{Ze.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case wt.APOSTROPHE:{Ze.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case wt.GREATER_THAN_SIGN:{this._err(In.missingDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(Ze);break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.missingQuoteBeforeDoctypePublicIdentifier),Ze.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypePublicIdentifierDoubleQuoted(pe){const Ze=this.currentToken;switch(pe){case wt.QUOTATION_MARK:{this.state=jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.publicId+=Gn;break}case wt.GREATER_THAN_SIGN:{this._err(In.abruptDoctypePublicIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.publicId+=String.fromCodePoint(pe)}}_stateDoctypePublicIdentifierSingleQuoted(pe){const Ze=this.currentToken;switch(pe){case wt.APOSTROPHE:{this.state=jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.publicId+=Gn;break}case wt.GREATER_THAN_SIGN:{this._err(In.abruptDoctypePublicIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.publicId+=String.fromCodePoint(pe)}}_stateAfterDoctypePublicIdentifier(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this.state=jt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case wt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentDoctype(Ze);break}case wt.QUOTATION_MARK:{this._err(In.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case wt.APOSTROPHE:{this._err(In.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBetweenDoctypePublicAndSystemIdentifiers(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.QUOTATION_MARK:{Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case wt.APOSTROPHE:{Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateAfterDoctypeSystemKeyword(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:{this.state=jt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case wt.QUOTATION_MARK:{this._err(In.missingWhitespaceAfterDoctypeSystemKeyword),Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case wt.APOSTROPHE:{this._err(In.missingWhitespaceAfterDoctypeSystemKeyword),Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case wt.GREATER_THAN_SIGN:{this._err(In.missingDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(Ze);break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBeforeDoctypeSystemIdentifier(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.QUOTATION_MARK:{Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case wt.APOSTROPHE:{Ze.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case wt.GREATER_THAN_SIGN:{this._err(In.missingDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(Ze);break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.missingQuoteBeforeDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypeSystemIdentifierDoubleQuoted(pe){const Ze=this.currentToken;switch(pe){case wt.QUOTATION_MARK:{this.state=jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.systemId+=Gn;break}case wt.GREATER_THAN_SIGN:{this._err(In.abruptDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.systemId+=String.fromCodePoint(pe)}}_stateDoctypeSystemIdentifierSingleQuoted(pe){const Ze=this.currentToken;switch(pe){case wt.APOSTROPHE:{this.state=jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case wt.NULL:{this._err(In.unexpectedNullCharacter),Ze.systemId+=Gn;break}case wt.GREATER_THAN_SIGN:{this._err(In.abruptDoctypeSystemIdentifier),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:Ze.systemId+=String.fromCodePoint(pe)}}_stateAfterDoctypeSystemIdentifier(pe){const Ze=this.currentToken;switch(pe){case wt.SPACE:case wt.LINE_FEED:case wt.TABULATION:case wt.FORM_FEED:break;case wt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.EOF:{this._err(In.eofInDoctype),Ze.forceQuirks=!0,this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:this._err(In.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBogusDoctype(pe){const Ze=this.currentToken;switch(pe){case wt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ze),this.state=jt.DATA;break}case wt.NULL:{this._err(In.unexpectedNullCharacter);break}case wt.EOF:{this.emitCurrentDoctype(Ze),this._emitEOFToken();break}default:}}_stateCdataSection(pe){switch(pe){case wt.RIGHT_SQUARE_BRACKET:{this.state=jt.CDATA_SECTION_BRACKET;break}case wt.EOF:{this._err(In.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateCdataSectionBracket(pe){pe===wt.RIGHT_SQUARE_BRACKET?this.state=jt.CDATA_SECTION_END:(this._emitChars("]"),this.state=jt.CDATA_SECTION,this._stateCdataSection(pe))}_stateCdataSectionEnd(pe){switch(pe){case wt.GREATER_THAN_SIGN:{this.state=jt.DATA;break}case wt.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=jt.CDATA_SECTION,this._stateCdataSection(pe)}}_stateCharacterReference(){let pe=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(pe<0)if(this.preprocessor.lastChunkWritten)pe=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}pe===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(wt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Hi(this.preprocessor.peek(1))?jt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(pe){Hi(pe)?this._flushCodePointConsumedAsCharacterReference(pe):(pe===wt.SEMICOLON&&this._err(In.unknownNamedCharacterReference),this.state=this.returnState,this._callState(pe))}}const po=new Set([ze.DD,ze.DT,ze.LI,ze.OPTGROUP,ze.OPTION,ze.P,ze.RB,ze.RP,ze.RT,ze.RTC]),Pn=new Set([...po,ze.CAPTION,ze.COLGROUP,ze.TBODY,ze.TD,ze.TFOOT,ze.TH,ze.THEAD,ze.TR]),bo=new Set([ze.APPLET,ze.CAPTION,ze.HTML,ze.MARQUEE,ze.OBJECT,ze.TABLE,ze.TD,ze.TEMPLATE,ze.TH]),Mn=new Set([...bo,ze.OL,ze.UL]),tr=new Set([...bo,ze.BUTTON]),wr=new Set([ze.ANNOTATION_XML,ze.MI,ze.MN,ze.MO,ze.MS,ze.MTEXT]),Sr=new Set([ze.DESC,ze.FOREIGN_OBJECT,ze.TITLE]),yo=new Set([ze.TR,ze.TEMPLATE,ze.HTML]),Or=new Set([ze.TBODY,ze.TFOOT,ze.THEAD,ze.TEMPLATE,ze.HTML]),Ar=new Set([ze.TABLE,ze.TEMPLATE,ze.HTML]),To=new Set([ze.TD,ze.TH]);class rn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(pe,Ze,Ot){this.treeAdapter=Ze,this.handler=Ot,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=ze.UNKNOWN,this.current=pe}_indexOf(pe){return this.items.lastIndexOf(pe,this.stackTop)}_isInTemplate(){return this.currentTagId===ze.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Rt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(pe,Ze){this.stackTop++,this.items[this.stackTop]=pe,this.current=pe,this.tagIDs[this.stackTop]=Ze,this.currentTagId=Ze,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(pe,Ze,!0)}pop(){const pe=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(pe,!0)}replace(pe,Ze){const Ot=this._indexOf(pe);this.items[Ot]=Ze,Ot===this.stackTop&&(this.current=Ze)}insertAfter(pe,Ze,Ot){const Bn=this._indexOf(pe)+1;this.items.splice(Bn,0,Ze),this.tagIDs.splice(Bn,0,Ot),this.stackTop++,Bn===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,Bn===this.stackTop)}popUntilTagNamePopped(pe){let Ze=this.stackTop+1;do Ze=this.tagIDs.lastIndexOf(pe,Ze-1);while(Ze>0&&this.treeAdapter.getNamespaceURI(this.items[Ze])!==Rt.HTML);this.shortenToLength(Math.max(Ze,0))}shortenToLength(pe){for(;this.stackTop>=pe;){const Ze=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(Ze,this.stackTop<pe)}}popUntilElementPopped(pe){const Ze=this._indexOf(pe);this.shortenToLength(Math.max(Ze,0))}popUntilPopped(pe,Ze){const Ot=this._indexOfTagNames(pe,Ze);this.shortenToLength(Math.max(Ot,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Zi,Rt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(To,Rt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(pe,Ze){for(let Ot=this.stackTop;Ot>=0;Ot--)if(pe.has(this.tagIDs[Ot])&&this.treeAdapter.getNamespaceURI(this.items[Ot])===Ze)return Ot;return-1}clearBackTo(pe,Ze){const Ot=this._indexOfTagNames(pe,Ze);this.shortenToLength(Ot+1)}clearBackToTableContext(){this.clearBackTo(Ar,Rt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Or,Rt.HTML)}clearBackToTableRowContext(){this.clearBackTo(yo,Rt.HTML)}remove(pe){const Ze=this._indexOf(pe);Ze>=0&&(Ze===this.stackTop?this.pop():(this.items.splice(Ze,1),this.tagIDs.splice(Ze,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(pe,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ze.BODY?this.items[1]:null}contains(pe){return this._indexOf(pe)>-1}getCommonAncestor(pe){const Ze=this._indexOf(pe)-1;return Ze>=0?this.items[Ze]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===ze.HTML}hasInDynamicScope(pe,Ze){for(let Ot=this.stackTop;Ot>=0;Ot--){const Bn=this.tagIDs[Ot];switch(this.treeAdapter.getNamespaceURI(this.items[Ot])){case Rt.HTML:{if(Bn===pe)return!0;if(Ze.has(Bn))return!1;break}case Rt.SVG:{if(Sr.has(Bn))return!1;break}case Rt.MATHML:{if(wr.has(Bn))return!1;break}}}return!0}hasInScope(pe){return this.hasInDynamicScope(pe,bo)}hasInListItemScope(pe){return this.hasInDynamicScope(pe,Mn)}hasInButtonScope(pe){return this.hasInDynamicScope(pe,tr)}hasNumberedHeaderInScope(){for(let pe=this.stackTop;pe>=0;pe--){const Ze=this.tagIDs[pe];switch(this.treeAdapter.getNamespaceURI(this.items[pe])){case Rt.HTML:{if(Zi.has(Ze))return!0;if(bo.has(Ze))return!1;break}case Rt.SVG:{if(Sr.has(Ze))return!1;break}case Rt.MATHML:{if(wr.has(Ze))return!1;break}}}return!0}hasInTableScope(pe){for(let Ze=this.stackTop;Ze>=0;Ze--)if(this.treeAdapter.getNamespaceURI(this.items[Ze])===Rt.HTML)switch(this.tagIDs[Ze]){case pe:return!0;case ze.TABLE:case ze.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let pe=this.stackTop;pe>=0;pe--)if(this.treeAdapter.getNamespaceURI(this.items[pe])===Rt.HTML)switch(this.tagIDs[pe]){case ze.TBODY:case ze.THEAD:case ze.TFOOT:return!0;case ze.TABLE:case ze.HTML:return!1}return!0}hasInSelectScope(pe){for(let Ze=this.stackTop;Ze>=0;Ze--)if(this.treeAdapter.getNamespaceURI(this.items[Ze])===Rt.HTML)switch(this.tagIDs[Ze]){case pe:return!0;case ze.OPTION:case ze.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&po.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Pn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(pe){for(;this.currentTagId!==void 0&&this.currentTagId!==pe&&Pn.has(this.currentTagId);)this.pop()}}const _n=3;var Yt;(function(ue){ue[ue.Marker=0]="Marker",ue[ue.Element=1]="Element"})(Yt||(Yt={}));const qe={type:Yt.Marker};class ai{constructor(pe){this.treeAdapter=pe,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(pe,Ze){const Ot=[],Bn=Ze.length,ki=this.treeAdapter.getTagName(pe),er=this.treeAdapter.getNamespaceURI(pe);for(let ao=0;ao<this.entries.length;ao++){const Fo=this.entries[ao];if(Fo.type===Yt.Marker)break;const{element:Ei}=Fo;if(this.treeAdapter.getTagName(Ei)===ki&&this.treeAdapter.getNamespaceURI(Ei)===er){const Cr=this.treeAdapter.getAttrList(Ei);Cr.length===Bn&&Ot.push({idx:ao,attrs:Cr})}}return Ot}_ensureNoahArkCondition(pe){if(this.entries.length<_n)return;const Ze=this.treeAdapter.getAttrList(pe),Ot=this._getNoahArkConditionCandidates(pe,Ze);if(Ot.length<_n)return;const Bn=new Map(Ze.map(er=>[er.name,er.value]));let ki=0;for(let er=0;er<Ot.length;er++){const ao=Ot[er];ao.attrs.every(Fo=>Bn.get(Fo.name)===Fo.value)&&(ki+=1,ki>=_n&&this.entries.splice(ao.idx,1))}}insertMarker(){this.entries.unshift(qe)}pushElement(pe,Ze){this._ensureNoahArkCondition(pe),this.entries.unshift({type:Yt.Element,element:pe,token:Ze})}insertElementAfterBookmark(pe,Ze){const Ot=this.entries.indexOf(this.bookmark);this.entries.splice(Ot,0,{type:Yt.Element,element:pe,token:Ze})}removeEntry(pe){const Ze=this.entries.indexOf(pe);Ze!==-1&&this.entries.splice(Ze,1)}clearToLastMarker(){const pe=this.entries.indexOf(qe);pe===-1?this.entries.length=0:this.entries.splice(0,pe+1)}getElementEntryInScopeWithTagName(pe){const Ze=this.entries.find(Ot=>Ot.type===Yt.Marker||this.treeAdapter.getTagName(Ot.element)===pe);return Ze&&Ze.type===Yt.Element?Ze:null}getElementEntry(pe){return this.entries.find(Ze=>Ze.type===Yt.Element&&Ze.element===pe)}}const yi={createDocument(){return{nodeName:"#document",mode:Ni.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(ue,pe,Ze){return{nodeName:ue,tagName:ue,attrs:Ze,namespaceURI:pe,childNodes:[],parentNode:null}},createCommentNode(ue){return{nodeName:"#comment",data:ue,parentNode:null}},createTextNode(ue){return{nodeName:"#text",value:ue,parentNode:null}},appendChild(ue,pe){ue.childNodes.push(pe),pe.parentNode=ue},insertBefore(ue,pe,Ze){const Ot=ue.childNodes.indexOf(Ze);ue.childNodes.splice(Ot,0,pe),pe.parentNode=ue},setTemplateContent(ue,pe){ue.content=pe},getTemplateContent(ue){return ue.content},setDocumentType(ue,pe,Ze,Ot){const Bn=ue.childNodes.find(ki=>ki.nodeName==="#documentType");if(Bn)Bn.name=pe,Bn.publicId=Ze,Bn.systemId=Ot;else{const ki={nodeName:"#documentType",name:pe,publicId:Ze,systemId:Ot,parentNode:null};yi.appendChild(ue,ki)}},setDocumentMode(ue,pe){ue.mode=pe},getDocumentMode(ue){return ue.mode},detachNode(ue){if(ue.parentNode){const pe=ue.parentNode.childNodes.indexOf(ue);ue.parentNode.childNodes.splice(pe,1),ue.parentNode=null}},insertText(ue,pe){if(ue.childNodes.length>0){const Ze=ue.childNodes[ue.childNodes.length-1];if(yi.isTextNode(Ze)){Ze.value+=pe;return}}yi.appendChild(ue,yi.createTextNode(pe))},insertTextBefore(ue,pe,Ze){const Ot=ue.childNodes[ue.childNodes.indexOf(Ze)-1];Ot&&yi.isTextNode(Ot)?Ot.value+=pe:yi.insertBefore(ue,yi.createTextNode(pe),Ze)},adoptAttributes(ue,pe){const Ze=new Set(ue.attrs.map(Ot=>Ot.name));for(let Ot=0;Ot<pe.length;Ot++)Ze.has(pe[Ot].name)||ue.attrs.push(pe[Ot])},getFirstChild(ue){return ue.childNodes[0]},getChildNodes(ue){return ue.childNodes},getParentNode(ue){return ue.parentNode},getAttrList(ue){return ue.attrs},getTagName(ue){return ue.tagName},getNamespaceURI(ue){return ue.namespaceURI},getTextNodeContent(ue){return ue.value},getCommentNodeContent(ue){return ue.data},getDocumentTypeNodeName(ue){return ue.name},getDocumentTypeNodePublicId(ue){return ue.publicId},getDocumentTypeNodeSystemId(ue){return ue.systemId},isTextNode(ue){return ue.nodeName==="#text"},isCommentNode(ue){return ue.nodeName==="#comment"},isDocumentTypeNode(ue){return ue.nodeName==="#documentType"},isElementNode(ue){return Object.prototype.hasOwnProperty.call(ue,"tagName")},setNodeSourceCodeLocation(ue,pe){ue.sourceCodeLocation=pe},getNodeSourceCodeLocation(ue){return ue.sourceCodeLocation},updateNodeSourceCodeLocation(ue,pe){ue.sourceCodeLocation=oa(oa({},ue.sourceCodeLocation),pe)}},Ki="html",_i="about:legacy-compat",Ii="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",On=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],fi=[...On,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],mi=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ti=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],gi=[...ti,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ui(ue,pe){return pe.some(Ze=>ue.startsWith(Ze))}function xi(ue){return ue.name===Ki&&ue.publicId===null&&(ue.systemId===null||ue.systemId===_i)}function Oi(ue){if(ue.name!==Ki)return Ni.QUIRKS;const{systemId:pe}=ue;if(pe&&pe.toLowerCase()===Ii)return Ni.QUIRKS;let{publicId:Ze}=ue;if(Ze!==null){if(Ze=Ze.toLowerCase(),mi.has(Ze))return Ni.QUIRKS;let Ot=pe===null?fi:On;if(ui(Ze,Ot))return Ni.QUIRKS;if(Ot=pe===null?ti:gi,ui(Ze,Ot))return Ni.LIMITED_QUIRKS}return Ni.NO_QUIRKS}const En={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ur="definitionurl",sr="definitionURL",Yr=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(ue=>[ue.toLowerCase(),ue])),hr=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Rt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Rt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Rt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Rt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Rt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Rt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Rt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Rt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Rt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Rt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Rt.XMLNS}]]),lo=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(ue=>[ue.toLowerCase(),ue])),eo=new Set([ze.B,ze.BIG,ze.BLOCKQUOTE,ze.BODY,ze.BR,ze.CENTER,ze.CODE,ze.DD,ze.DIV,ze.DL,ze.DT,ze.EM,ze.EMBED,ze.H1,ze.H2,ze.H3,ze.H4,ze.H5,ze.H6,ze.HEAD,ze.HR,ze.I,ze.IMG,ze.LI,ze.LISTING,ze.MENU,ze.META,ze.NOBR,ze.OL,ze.P,ze.PRE,ze.RUBY,ze.S,ze.SMALL,ze.SPAN,ze.STRONG,ze.STRIKE,ze.SUB,ze.SUP,ze.TABLE,ze.TT,ze.U,ze.UL,ze.VAR]);function Co(ue){const pe=ue.tagID;return pe===ze.FONT&&ue.attrs.some(({name:Ot})=>Ot===Jn.COLOR||Ot===Jn.SIZE||Ot===Jn.FACE)||eo.has(pe)}function uo(ue){for(let pe=0;pe<ue.attrs.length;pe++)if(ue.attrs[pe].name===ur){ue.attrs[pe].name=sr;break}}function Ao(ue){for(let pe=0;pe<ue.attrs.length;pe++){const Ze=Yr.get(ue.attrs[pe].name);Ze!=null&&(ue.attrs[pe].name=Ze)}}function No(ue){for(let pe=0;pe<ue.attrs.length;pe++){const Ze=hr.get(ue.attrs[pe].name);Ze&&(ue.attrs[pe].prefix=Ze.prefix,ue.attrs[pe].name=Ze.name,ue.attrs[pe].namespace=Ze.namespace)}}function qt(ue){const pe=lo.get(ue.tagName);pe!=null&&(ue.tagName=pe,ue.tagID=oi(ue.tagName))}function mo(ue,pe){return pe===Rt.MATHML&&(ue===ze.MI||ue===ze.MO||ue===ze.MN||ue===ze.MS||ue===ze.MTEXT)}function Kr(ue,pe,Ze){if(pe===Rt.MATHML&&ue===ze.ANNOTATION_XML){for(let Ot=0;Ot<Ze.length;Ot++)if(Ze[Ot].name===Jn.ENCODING){const Bn=Ze[Ot].value.toLowerCase();return Bn===En.TEXT_HTML||Bn===En.APPLICATION_XML}}return pe===Rt.SVG&&(ue===ze.FOREIGN_OBJECT||ue===ze.DESC||ue===ze.TITLE)}function Pr(ue,pe,Ze,Ot){return(!Ot||Ot===Rt.HTML)&&Kr(ue,pe,Ze)||(!Ot||Ot===Rt.MATHML)&&mo(ue,pe)}const fr="hidden",co=8,Lo=3;var dn;(function(ue){ue[ue.INITIAL=0]="INITIAL",ue[ue.BEFORE_HTML=1]="BEFORE_HTML",ue[ue.BEFORE_HEAD=2]="BEFORE_HEAD",ue[ue.IN_HEAD=3]="IN_HEAD",ue[ue.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ue[ue.AFTER_HEAD=5]="AFTER_HEAD",ue[ue.IN_BODY=6]="IN_BODY",ue[ue.TEXT=7]="TEXT",ue[ue.IN_TABLE=8]="IN_TABLE",ue[ue.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",ue[ue.IN_CAPTION=10]="IN_CAPTION",ue[ue.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ue[ue.IN_TABLE_BODY=12]="IN_TABLE_BODY",ue[ue.IN_ROW=13]="IN_ROW",ue[ue.IN_CELL=14]="IN_CELL",ue[ue.IN_SELECT=15]="IN_SELECT",ue[ue.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",ue[ue.IN_TEMPLATE=17]="IN_TEMPLATE",ue[ue.AFTER_BODY=18]="AFTER_BODY",ue[ue.IN_FRAMESET=19]="IN_FRAMESET",ue[ue.AFTER_FRAMESET=20]="AFTER_FRAMESET",ue[ue.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",ue[ue.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(dn||(dn={}));const Gr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Uo=new Set([ze.TABLE,ze.TBODY,ze.TFOOT,ze.THEAD,ze.TR]),Sa={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:yi,onParseError:null};class Ya{constructor(pe,Ze,Ot=null,Bn=null){this.fragmentContext=Ot,this.scriptHandler=Bn,this.currentToken=null,this.stopped=!1,this.insertionMode=dn.INITIAL,this.originalInsertionMode=dn.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=oa(oa({},Sa),pe),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=Ze!=null?Ze:this.treeAdapter.createDocument(),this.tokenizer=new Ur(this.options,this),this.activeFormattingElements=new ai(this.treeAdapter),this.fragmentContextID=Ot?oi(this.treeAdapter.getTagName(Ot)):ze.UNKNOWN,this._setContextModes(Ot!=null?Ot:this.document,this.fragmentContextID),this.openElements=new rn(this.document,this.treeAdapter,this)}static parse(pe,Ze){const Ot=new this(Ze);return Ot.tokenizer.write(pe,!0),Ot.document}static getFragmentParser(pe,Ze){const Ot=oa(oa({},Sa),Ze);pe!=null||(pe=Ot.treeAdapter.createElement(en.TEMPLATE,Rt.HTML,[]));const Bn=Ot.treeAdapter.createElement("documentmock",Rt.HTML,[]),ki=new this(Ot,Bn,pe);return ki.fragmentContextID===ze.TEMPLATE&&ki.tmplInsertionModeStack.unshift(dn.IN_TEMPLATE),ki._initTokenizerForFragmentParsing(),ki._insertFakeRootElement(),ki._resetInsertionMode(),ki._findFormInFragmentContext(),ki}getFragment(){const pe=this.treeAdapter.getFirstChild(this.document),Ze=this.treeAdapter.createDocumentFragment();return this._adoptNodes(pe,Ze),Ze}_err(pe,Ze,Ot){var Bn;if(!this.onParseError)return;const ki=(Bn=pe.location)!==null&&Bn!==void 0?Bn:Gr,er={code:Ze,startLine:ki.startLine,startCol:ki.startCol,startOffset:ki.startOffset,endLine:Ot?ki.startLine:ki.endLine,endCol:Ot?ki.startCol:ki.endCol,endOffset:Ot?ki.startOffset:ki.endOffset};this.onParseError(er)}onItemPush(pe,Ze,Ot){var Bn,ki;(ki=(Bn=this.treeAdapter).onItemPush)===null||ki===void 0||ki.call(Bn,pe),Ot&&this.openElements.stackTop>0&&this._setContextModes(pe,Ze)}onItemPop(pe,Ze){var Ot,Bn;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(pe,this.currentToken),(Bn=(Ot=this.treeAdapter).onItemPop)===null||Bn===void 0||Bn.call(Ot,pe,this.openElements.current),Ze){let ki,er;this.openElements.stackTop===0&&this.fragmentContext?(ki=this.fragmentContext,er=this.fragmentContextID):{current:ki,currentTagId:er}=this.openElements,this._setContextModes(ki,er)}}_setContextModes(pe,Ze){const Ot=pe===this.document||pe&&this.treeAdapter.getNamespaceURI(pe)===Rt.HTML;this.currentNotInHTML=!Ot,this.tokenizer.inForeignNode=!Ot&&pe!==void 0&&Ze!==void 0&&!this._isIntegrationPoint(Ze,pe)}_switchToTextParsing(pe,Ze){this._insertElement(pe,Rt.HTML),this.tokenizer.state=Ze,this.originalInsertionMode=this.insertionMode,this.insertionMode=dn.TEXT}switchToPlaintextParsing(){this.insertionMode=dn.TEXT,this.originalInsertionMode=dn.IN_BODY,this.tokenizer.state=br.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let pe=this.fragmentContext;for(;pe;){if(this.treeAdapter.getTagName(pe)===en.FORM){this.formElement=pe;break}pe=this.treeAdapter.getParentNode(pe)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Rt.HTML))switch(this.fragmentContextID){case ze.TITLE:case ze.TEXTAREA:{this.tokenizer.state=br.RCDATA;break}case ze.STYLE:case ze.XMP:case ze.IFRAME:case ze.NOEMBED:case ze.NOFRAMES:case ze.NOSCRIPT:{this.tokenizer.state=br.RAWTEXT;break}case ze.SCRIPT:{this.tokenizer.state=br.SCRIPT_DATA;break}case ze.PLAINTEXT:{this.tokenizer.state=br.PLAINTEXT;break}default:}}_setDocumentType(pe){const Ze=pe.name||"",Ot=pe.publicId||"",Bn=pe.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ze,Ot,Bn),pe.location){const er=this.treeAdapter.getChildNodes(this.document).find(ao=>this.treeAdapter.isDocumentTypeNode(ao));er&&this.treeAdapter.setNodeSourceCodeLocation(er,pe.location)}}_attachElementToTree(pe,Ze){if(this.options.sourceCodeLocationInfo){const Ot=Ze&&Pf(oa({},Ze),{startTag:Ze});this.treeAdapter.setNodeSourceCodeLocation(pe,Ot)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(pe);else{const Ot=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Ot!=null?Ot:this.document,pe)}}_appendElement(pe,Ze){const Ot=this.treeAdapter.createElement(pe.tagName,Ze,pe.attrs);this._attachElementToTree(Ot,pe.location)}_insertElement(pe,Ze){const Ot=this.treeAdapter.createElement(pe.tagName,Ze,pe.attrs);this._attachElementToTree(Ot,pe.location),this.openElements.push(Ot,pe.tagID)}_insertFakeElement(pe,Ze){const Ot=this.treeAdapter.createElement(pe,Rt.HTML,[]);this._attachElementToTree(Ot,null),this.openElements.push(Ot,Ze)}_insertTemplate(pe){const Ze=this.treeAdapter.createElement(pe.tagName,Rt.HTML,pe.attrs),Ot=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ze,Ot),this._attachElementToTree(Ze,pe.location),this.openElements.push(Ze,pe.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ot,null)}_insertFakeRootElement(){const pe=this.treeAdapter.createElement(en.HTML,Rt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(pe,null),this.treeAdapter.appendChild(this.openElements.current,pe),this.openElements.push(pe,ze.HTML)}_appendCommentNode(pe,Ze){const Ot=this.treeAdapter.createCommentNode(pe.data);this.treeAdapter.appendChild(Ze,Ot),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ot,pe.location)}_insertCharacters(pe){let Ze,Ot;if(this._shouldFosterParentOnInsertion()?({parent:Ze,beforeElement:Ot}=this._findFosterParentingLocation(),Ot?this.treeAdapter.insertTextBefore(Ze,pe.chars,Ot):this.treeAdapter.insertText(Ze,pe.chars)):(Ze=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ze,pe.chars)),!pe.location)return;const Bn=this.treeAdapter.getChildNodes(Ze),ki=Ot?Bn.lastIndexOf(Ot):Bn.length,er=Bn[ki-1];if(this.treeAdapter.getNodeSourceCodeLocation(er)){const{endLine:Fo,endCol:Ei,endOffset:Cr}=pe.location;this.treeAdapter.updateNodeSourceCodeLocation(er,{endLine:Fo,endCol:Ei,endOffset:Cr})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(er,pe.location)}_adoptNodes(pe,Ze){for(let Ot=this.treeAdapter.getFirstChild(pe);Ot;Ot=this.treeAdapter.getFirstChild(pe))this.treeAdapter.detachNode(Ot),this.treeAdapter.appendChild(Ze,Ot)}_setEndLocation(pe,Ze){if(this.treeAdapter.getNodeSourceCodeLocation(pe)&&Ze.location){const Ot=Ze.location,Bn=this.treeAdapter.getTagName(pe),ki=Ze.type===Xi.END_TAG&&Bn===Ze.tagName?{endTag:oa({},Ot),endLine:Ot.endLine,endCol:Ot.endCol,endOffset:Ot.endOffset}:{endLine:Ot.startLine,endCol:Ot.startCol,endOffset:Ot.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(pe,ki)}}shouldProcessStartTagTokenInForeignContent(pe){if(!this.currentNotInHTML)return!1;let Ze,Ot;return this.openElements.stackTop===0&&this.fragmentContext?(Ze=this.fragmentContext,Ot=this.fragmentContextID):{current:Ze,currentTagId:Ot}=this.openElements,pe.tagID===ze.SVG&&this.treeAdapter.getTagName(Ze)===en.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ze)===Rt.MATHML?!1:this.tokenizer.inForeignNode||(pe.tagID===ze.MGLYPH||pe.tagID===ze.MALIGNMARK)&&Ot!==void 0&&!this._isIntegrationPoint(Ot,Ze,Rt.HTML)}_processToken(pe){switch(pe.type){case Xi.CHARACTER:{this.onCharacter(pe);break}case Xi.NULL_CHARACTER:{this.onNullCharacter(pe);break}case Xi.COMMENT:{this.onComment(pe);break}case Xi.DOCTYPE:{this.onDoctype(pe);break}case Xi.START_TAG:{this._processStartTag(pe);break}case Xi.END_TAG:{this.onEndTag(pe);break}case Xi.EOF:{this.onEof(pe);break}case Xi.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(pe);break}}}_isIntegrationPoint(pe,Ze,Ot){const Bn=this.treeAdapter.getNamespaceURI(Ze),ki=this.treeAdapter.getAttrList(Ze);return Pr(pe,Bn,ki,Ot)}_reconstructActiveFormattingElements(){const pe=this.activeFormattingElements.entries.length;if(pe){const Ze=this.activeFormattingElements.entries.findIndex(Bn=>Bn.type===Yt.Marker||this.openElements.contains(Bn.element)),Ot=Ze===-1?pe-1:Ze-1;for(let Bn=Ot;Bn>=0;Bn--){const ki=this.activeFormattingElements.entries[Bn];this._insertElement(ki.token,this.treeAdapter.getNamespaceURI(ki.element)),ki.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=dn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ze.P),this.openElements.popUntilTagNamePopped(ze.P)}_resetInsertionMode(){for(let pe=this.openElements.stackTop;pe>=0;pe--)switch(pe===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[pe]){case ze.TR:{this.insertionMode=dn.IN_ROW;return}case ze.TBODY:case ze.THEAD:case ze.TFOOT:{this.insertionMode=dn.IN_TABLE_BODY;return}case ze.CAPTION:{this.insertionMode=dn.IN_CAPTION;return}case ze.COLGROUP:{this.insertionMode=dn.IN_COLUMN_GROUP;return}case ze.TABLE:{this.insertionMode=dn.IN_TABLE;return}case ze.BODY:{this.insertionMode=dn.IN_BODY;return}case ze.FRAMESET:{this.insertionMode=dn.IN_FRAMESET;return}case ze.SELECT:{this._resetInsertionModeForSelect(pe);return}case ze.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case ze.HTML:{this.insertionMode=this.headElement?dn.AFTER_HEAD:dn.BEFORE_HEAD;return}case ze.TD:case ze.TH:{if(pe>0){this.insertionMode=dn.IN_CELL;return}break}case ze.HEAD:{if(pe>0){this.insertionMode=dn.IN_HEAD;return}break}}this.insertionMode=dn.IN_BODY}_resetInsertionModeForSelect(pe){if(pe>0)for(let Ze=pe-1;Ze>0;Ze--){const Ot=this.openElements.tagIDs[Ze];if(Ot===ze.TEMPLATE)break;if(Ot===ze.TABLE){this.insertionMode=dn.IN_SELECT_IN_TABLE;return}}this.insertionMode=dn.IN_SELECT}_isElementCausesFosterParenting(pe){return Uo.has(pe)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let pe=this.openElements.stackTop;pe>=0;pe--){const Ze=this.openElements.items[pe];switch(this.openElements.tagIDs[pe]){case ze.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ze)===Rt.HTML)return{parent:this.treeAdapter.getTemplateContent(Ze),beforeElement:null};break}case ze.TABLE:{const Ot=this.treeAdapter.getParentNode(Ze);return Ot?{parent:Ot,beforeElement:Ze}:{parent:this.openElements.items[pe-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(pe){const Ze=this._findFosterParentingLocation();Ze.beforeElement?this.treeAdapter.insertBefore(Ze.parent,pe,Ze.beforeElement):this.treeAdapter.appendChild(Ze.parent,pe)}_isSpecialElement(pe,Ze){const Ot=this.treeAdapter.getNamespaceURI(pe);return ir[Ot].has(Ze)}onCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ot(this,pe);return}switch(this.insertionMode){case dn.INITIAL:{oo(this,pe);break}case dn.BEFORE_HTML:{Ua(this,pe);break}case dn.BEFORE_HEAD:{ho(this,pe);break}case dn.IN_HEAD:{os(this,pe);break}case dn.IN_HEAD_NO_SCRIPT:{ba(this,pe);break}case dn.AFTER_HEAD:{Ms(this,pe);break}case dn.IN_BODY:case dn.IN_CAPTION:case dn.IN_CELL:case dn.IN_TEMPLATE:{Rl(this,pe);break}case dn.TEXT:case dn.IN_SELECT:case dn.IN_SELECT_IN_TABLE:{this._insertCharacters(pe);break}case dn.IN_TABLE:case dn.IN_TABLE_BODY:case dn.IN_ROW:{Zr(this,pe);break}case dn.IN_TABLE_TEXT:{Fl(this,pe);break}case dn.IN_COLUMN_GROUP:{ls(this,pe);break}case dn.AFTER_BODY:{sc(this,pe);break}case dn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onNullCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Xe(this,pe);return}switch(this.insertionMode){case dn.INITIAL:{oo(this,pe);break}case dn.BEFORE_HTML:{Ua(this,pe);break}case dn.BEFORE_HEAD:{ho(this,pe);break}case dn.IN_HEAD:{os(this,pe);break}case dn.IN_HEAD_NO_SCRIPT:{ba(this,pe);break}case dn.AFTER_HEAD:{Ms(this,pe);break}case dn.TEXT:{this._insertCharacters(pe);break}case dn.IN_TABLE:case dn.IN_TABLE_BODY:case dn.IN_ROW:{Zr(this,pe);break}case dn.IN_COLUMN_GROUP:{ls(this,pe);break}case dn.AFTER_BODY:{sc(this,pe);break}case dn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onComment(pe){if(this.skipNextNewLine=!1,this.currentNotInHTML){Pa(this,pe);return}switch(this.insertionMode){case dn.INITIAL:case dn.BEFORE_HTML:case dn.BEFORE_HEAD:case dn.IN_HEAD:case dn.IN_HEAD_NO_SCRIPT:case dn.AFTER_HEAD:case dn.IN_BODY:case dn.IN_TABLE:case dn.IN_CAPTION:case dn.IN_COLUMN_GROUP:case dn.IN_TABLE_BODY:case dn.IN_ROW:case dn.IN_CELL:case dn.IN_SELECT:case dn.IN_SELECT_IN_TABLE:case dn.IN_TEMPLATE:case dn.IN_FRAMESET:case dn.AFTER_FRAMESET:{Pa(this,pe);break}case dn.IN_TABLE_TEXT:{su(this,pe);break}case dn.AFTER_BODY:{Pi(this,pe);break}case dn.AFTER_AFTER_BODY:case dn.AFTER_AFTER_FRAMESET:{dr(this,pe);break}default:}}onDoctype(pe){switch(this.skipNextNewLine=!1,this.insertionMode){case dn.INITIAL:{to(this,pe);break}case dn.BEFORE_HEAD:case dn.IN_HEAD:case dn.IN_HEAD_NO_SCRIPT:case dn.AFTER_HEAD:{this._err(pe,In.misplacedDoctype);break}case dn.IN_TABLE_TEXT:{su(this,pe);break}default:}}onStartTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this._processStartTag(pe),pe.selfClosing&&!pe.ackSelfClosing&&this._err(pe,In.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(pe){this.shouldProcessStartTagTokenInForeignContent(pe)?Ct(this,pe):this._startTagOutsideForeignContent(pe)}_startTagOutsideForeignContent(pe){switch(this.insertionMode){case dn.INITIAL:{oo(this,pe);break}case dn.BEFORE_HTML:{Wo(this,pe);break}case dn.BEFORE_HEAD:{ha(this,pe);break}case dn.IN_HEAD:{Yo(this,pe);break}case dn.IN_HEAD_NO_SCRIPT:{Ns(this,pe);break}case dn.AFTER_HEAD:{Qs(this,pe);break}case dn.IN_BODY:{qo(this,pe);break}case dn.IN_TABLE:{Dl(this,pe);break}case dn.IN_TABLE_TEXT:{su(this,pe);break}case dn.IN_CAPTION:{Ho(this,pe);break}case dn.IN_COLUMN_GROUP:{Da(this,pe);break}case dn.IN_TABLE_BODY:{bl(this,pe);break}case dn.IN_ROW:{Cl(this,pe);break}case dn.IN_CELL:{Yl(this,pe);break}case dn.IN_SELECT:{mh(this,pe);break}case dn.IN_SELECT_IN_TABLE:{yh(this,pe);break}case dn.IN_TEMPLATE:{Ku(this,pe);break}case dn.AFTER_BODY:{Ds(this,pe);break}case dn.IN_FRAMESET:{zs(this,pe);break}case dn.AFTER_FRAMESET:{hd(this,pe);break}case dn.AFTER_AFTER_BODY:{al(this,pe);break}case dn.AFTER_AFTER_FRAMESET:{He(this,pe);break}default:}}onEndTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this.currentNotInHTML?Ft(this,pe):this._endTagOutsideForeignContent(pe)}_endTagOutsideForeignContent(pe){switch(this.insertionMode){case dn.INITIAL:{oo(this,pe);break}case dn.BEFORE_HTML:{vr(this,pe);break}case dn.BEFORE_HEAD:{Ea(this,pe);break}case dn.IN_HEAD:{fs(this,pe);break}case dn.IN_HEAD_NO_SCRIPT:{ws(this,pe);break}case dn.AFTER_HEAD:{Wl(this,pe);break}case dn.IN_BODY:{ya(this,pe);break}case dn.TEXT:{zo(this,pe);break}case dn.IN_TABLE:{Zo(this,pe);break}case dn.IN_TABLE_TEXT:{su(this,pe);break}case dn.IN_CAPTION:{na(this,pe);break}case dn.IN_COLUMN_GROUP:{ys(this,pe);break}case dn.IN_TABLE_BODY:{wl(this,pe);break}case dn.IN_ROW:{ol(this,pe);break}case dn.IN_CELL:{dd(this,pe);break}case dn.IN_SELECT:{vh(this,pe);break}case dn.IN_SELECT_IN_TABLE:{ns(this,pe);break}case dn.IN_TEMPLATE:{pa(this,pe);break}case dn.AFTER_BODY:{Ls(this,pe);break}case dn.IN_FRAMESET:{Zu(this,pe);break}case dn.AFTER_FRAMESET:{fd(this,pe);break}case dn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onEof(pe){switch(this.insertionMode){case dn.INITIAL:{oo(this,pe);break}case dn.BEFORE_HTML:{Ua(this,pe);break}case dn.BEFORE_HEAD:{ho(this,pe);break}case dn.IN_HEAD:{os(this,pe);break}case dn.IN_HEAD_NO_SCRIPT:{ba(this,pe);break}case dn.AFTER_HEAD:{Ms(this,pe);break}case dn.IN_BODY:case dn.IN_TABLE:case dn.IN_CAPTION:case dn.IN_COLUMN_GROUP:case dn.IN_TABLE_BODY:case dn.IN_ROW:case dn.IN_CELL:case dn.IN_SELECT:case dn.IN_SELECT_IN_TABLE:{Ma(this,pe);break}case dn.TEXT:{Vu(this,pe);break}case dn.IN_TABLE_TEXT:{su(this,pe);break}case dn.IN_TEMPLATE:{Ts(this,pe);break}case dn.AFTER_BODY:case dn.IN_FRAMESET:case dn.AFTER_FRAMESET:case dn.AFTER_AFTER_BODY:case dn.AFTER_AFTER_FRAMESET:{Dr(this,pe);break}default:}}onWhitespaceCharacter(pe){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,pe.chars.charCodeAt(0)===wt.LINE_FEED)){if(pe.chars.length===1)return;pe.chars=pe.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(pe);return}switch(this.insertionMode){case dn.IN_HEAD:case dn.IN_HEAD_NO_SCRIPT:case dn.AFTER_HEAD:case dn.TEXT:case dn.IN_COLUMN_GROUP:case dn.IN_SELECT:case dn.IN_SELECT_IN_TABLE:case dn.IN_FRAMESET:case dn.AFTER_FRAMESET:{this._insertCharacters(pe);break}case dn.IN_BODY:case dn.IN_CAPTION:case dn.IN_CELL:case dn.IN_TEMPLATE:case dn.AFTER_BODY:case dn.AFTER_AFTER_BODY:case dn.AFTER_AFTER_FRAMESET:{Rs(this,pe);break}case dn.IN_TABLE:case dn.IN_TABLE_BODY:case dn.IN_ROW:{Zr(this,pe);break}case dn.IN_TABLE_TEXT:{Yu(this,pe);break}default:}}}function bs(ue,pe){let Ze=ue.activeFormattingElements.getElementEntryInScopeWithTagName(pe.tagName);return Ze?ue.openElements.contains(Ze.element)?ue.openElements.hasInScope(pe.tagID)||(Ze=null):(ue.activeFormattingElements.removeEntry(Ze),Ze=null):fa(ue,pe),Ze}function ts(ue,pe){let Ze=null,Ot=ue.openElements.stackTop;for(;Ot>=0;Ot--){const Bn=ue.openElements.items[Ot];if(Bn===pe.element)break;ue._isSpecialElement(Bn,ue.openElements.tagIDs[Ot])&&(Ze=Bn)}return Ze||(ue.openElements.shortenToLength(Math.max(Ot,0)),ue.activeFormattingElements.removeEntry(pe)),Ze}function xr(ue,pe,Ze){let Ot=pe,Bn=ue.openElements.getCommonAncestor(pe);for(let ki=0,er=Bn;er!==Ze;ki++,er=Bn){Bn=ue.openElements.getCommonAncestor(er);const ao=ue.activeFormattingElements.getElementEntry(er),Fo=ao&&ki>=Lo;!ao||Fo?(Fo&&ue.activeFormattingElements.removeEntry(ao),ue.openElements.remove(er)):(er=ca(ue,ao),Ot===pe&&(ue.activeFormattingElements.bookmark=ao),ue.treeAdapter.detachNode(Ot),ue.treeAdapter.appendChild(er,Ot),Ot=er)}return Ot}function ca(ue,pe){const Ze=ue.treeAdapter.getNamespaceURI(pe.element),Ot=ue.treeAdapter.createElement(pe.token.tagName,Ze,pe.token.attrs);return ue.openElements.replace(pe.element,Ot),pe.element=Ot,Ot}function da(ue,pe,Ze){const Ot=ue.treeAdapter.getTagName(pe),Bn=oi(Ot);if(ue._isElementCausesFosterParenting(Bn))ue._fosterParentElement(Ze);else{const ki=ue.treeAdapter.getNamespaceURI(pe);Bn===ze.TEMPLATE&&ki===Rt.HTML&&(pe=ue.treeAdapter.getTemplateContent(pe)),ue.treeAdapter.appendChild(pe,Ze)}}function Ra(ue,pe,Ze){const Ot=ue.treeAdapter.getNamespaceURI(Ze.element),{token:Bn}=Ze,ki=ue.treeAdapter.createElement(Bn.tagName,Ot,Bn.attrs);ue._adoptNodes(pe,ki),ue.treeAdapter.appendChild(pe,ki),ue.activeFormattingElements.insertElementAfterBookmark(ki,Bn),ue.activeFormattingElements.removeEntry(Ze),ue.openElements.remove(Ze.element),ue.openElements.insertAfter(pe,ki,Bn.tagID)}function va(ue,pe){for(let Ze=0;Ze<co;Ze++){const Ot=bs(ue,pe);if(!Ot)break;const Bn=ts(ue,Ot);if(!Bn)break;ue.activeFormattingElements.bookmark=Ot;const ki=xr(ue,Bn,Ot.element),er=ue.openElements.getCommonAncestor(Ot.element);ue.treeAdapter.detachNode(ki),er&&da(ue,er,ki),Ra(ue,Bn,Ot)}}function Pa(ue,pe){ue._appendCommentNode(pe,ue.openElements.currentTmplContentOrNode)}function Pi(ue,pe){ue._appendCommentNode(pe,ue.openElements.items[0])}function dr(ue,pe){ue._appendCommentNode(pe,ue.document)}function Dr(ue,pe){if(ue.stopped=!0,pe.location){const Ze=ue.fragmentContext?0:2;for(let Ot=ue.openElements.stackTop;Ot>=Ze;Ot--)ue._setEndLocation(ue.openElements.items[Ot],pe);if(!ue.fragmentContext&&ue.openElements.stackTop>=0){const Ot=ue.openElements.items[0],Bn=ue.treeAdapter.getNodeSourceCodeLocation(Ot);if(Bn&&!Bn.endTag&&(ue._setEndLocation(Ot,pe),ue.openElements.stackTop>=1)){const ki=ue.openElements.items[1],er=ue.treeAdapter.getNodeSourceCodeLocation(ki);er&&!er.endTag&&ue._setEndLocation(ki,pe)}}}}function to(ue,pe){ue._setDocumentType(pe);const Ze=pe.forceQuirks?Ni.QUIRKS:Oi(pe);xi(pe)||ue._err(pe,In.nonConformingDoctype),ue.treeAdapter.setDocumentMode(ue.document,Ze),ue.insertionMode=dn.BEFORE_HTML}function oo(ue,pe){ue._err(pe,In.missingDoctype,!0),ue.treeAdapter.setDocumentMode(ue.document,Ni.QUIRKS),ue.insertionMode=dn.BEFORE_HTML,ue._processToken(pe)}function Wo(ue,pe){pe.tagID===ze.HTML?(ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.BEFORE_HEAD):Ua(ue,pe)}function vr(ue,pe){const Ze=pe.tagID;(Ze===ze.HTML||Ze===ze.HEAD||Ze===ze.BODY||Ze===ze.BR)&&Ua(ue,pe)}function Ua(ue,pe){ue._insertFakeRootElement(),ue.insertionMode=dn.BEFORE_HEAD,ue._processToken(pe)}function ha(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.HEAD:{ue._insertElement(pe,Rt.HTML),ue.headElement=ue.openElements.current,ue.insertionMode=dn.IN_HEAD;break}default:ho(ue,pe)}}function Ea(ue,pe){const Ze=pe.tagID;Ze===ze.HEAD||Ze===ze.BODY||Ze===ze.HTML||Ze===ze.BR?ho(ue,pe):ue._err(pe,In.endTagWithoutMatchingOpenElement)}function ho(ue,pe){ue._insertFakeElement(en.HEAD,ze.HEAD),ue.headElement=ue.openElements.current,ue.insertionMode=dn.IN_HEAD,ue._processToken(pe)}function Yo(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.BASE:case ze.BASEFONT:case ze.BGSOUND:case ze.LINK:case ze.META:{ue._appendElement(pe,Rt.HTML),pe.ackSelfClosing=!0;break}case ze.TITLE:{ue._switchToTextParsing(pe,br.RCDATA);break}case ze.NOSCRIPT:{ue.options.scriptingEnabled?ue._switchToTextParsing(pe,br.RAWTEXT):(ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_HEAD_NO_SCRIPT);break}case ze.NOFRAMES:case ze.STYLE:{ue._switchToTextParsing(pe,br.RAWTEXT);break}case ze.SCRIPT:{ue._switchToTextParsing(pe,br.SCRIPT_DATA);break}case ze.TEMPLATE:{ue._insertTemplate(pe),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1,ue.insertionMode=dn.IN_TEMPLATE,ue.tmplInsertionModeStack.unshift(dn.IN_TEMPLATE);break}case ze.HEAD:{ue._err(pe,In.misplacedStartTagForHeadElement);break}default:os(ue,pe)}}function fs(ue,pe){switch(pe.tagID){case ze.HEAD:{ue.openElements.pop(),ue.insertionMode=dn.AFTER_HEAD;break}case ze.BODY:case ze.BR:case ze.HTML:{os(ue,pe);break}case ze.TEMPLATE:{ia(ue,pe);break}default:ue._err(pe,In.endTagWithoutMatchingOpenElement)}}function ia(ue,pe){ue.openElements.tmplCount>0?(ue.openElements.generateImpliedEndTagsThoroughly(),ue.openElements.currentTagId!==ze.TEMPLATE&&ue._err(pe,In.closingOfElementWithOpenChildElements),ue.openElements.popUntilTagNamePopped(ze.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode()):ue._err(pe,In.endTagWithoutMatchingOpenElement)}function os(ue,pe){ue.openElements.pop(),ue.insertionMode=dn.AFTER_HEAD,ue._processToken(pe)}function Ns(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.BASEFONT:case ze.BGSOUND:case ze.HEAD:case ze.LINK:case ze.META:case ze.NOFRAMES:case ze.STYLE:{Yo(ue,pe);break}case ze.NOSCRIPT:{ue._err(pe,In.nestedNoscriptInHead);break}default:ba(ue,pe)}}function ws(ue,pe){switch(pe.tagID){case ze.NOSCRIPT:{ue.openElements.pop(),ue.insertionMode=dn.IN_HEAD;break}case ze.BR:{ba(ue,pe);break}default:ue._err(pe,In.endTagWithoutMatchingOpenElement)}}function ba(ue,pe){const Ze=pe.type===Xi.EOF?In.openElementsLeftAfterEof:In.disallowedContentInNoscriptInHead;ue._err(pe,Ze),ue.openElements.pop(),ue.insertionMode=dn.IN_HEAD,ue._processToken(pe)}function Qs(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.BODY:{ue._insertElement(pe,Rt.HTML),ue.framesetOk=!1,ue.insertionMode=dn.IN_BODY;break}case ze.FRAMESET:{ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_FRAMESET;break}case ze.BASE:case ze.BASEFONT:case ze.BGSOUND:case ze.LINK:case ze.META:case ze.NOFRAMES:case ze.SCRIPT:case ze.STYLE:case ze.TEMPLATE:case ze.TITLE:{ue._err(pe,In.abandonedHeadElementChild),ue.openElements.push(ue.headElement,ze.HEAD),Yo(ue,pe),ue.openElements.remove(ue.headElement);break}case ze.HEAD:{ue._err(pe,In.misplacedStartTagForHeadElement);break}default:Ms(ue,pe)}}function Wl(ue,pe){switch(pe.tagID){case ze.BODY:case ze.HTML:case ze.BR:{Ms(ue,pe);break}case ze.TEMPLATE:{ia(ue,pe);break}default:ue._err(pe,In.endTagWithoutMatchingOpenElement)}}function Ms(ue,pe){ue._insertFakeElement(en.BODY,ze.BODY),ue.insertionMode=dn.IN_BODY,js(ue,pe)}function js(ue,pe){switch(pe.type){case Xi.CHARACTER:{Rl(ue,pe);break}case Xi.WHITESPACE_CHARACTER:{Rs(ue,pe);break}case Xi.COMMENT:{Pa(ue,pe);break}case Xi.START_TAG:{qo(ue,pe);break}case Xi.END_TAG:{ya(ue,pe);break}case Xi.EOF:{Ma(ue,pe);break}default:}}function Rs(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertCharacters(pe)}function Rl(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertCharacters(pe),ue.framesetOk=!1}function iu(ue,pe){ue.openElements.tmplCount===0&&ue.treeAdapter.adoptAttributes(ue.openElements.items[0],pe.attrs)}function ru(ue,pe){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();Ze&&ue.openElements.tmplCount===0&&(ue.framesetOk=!1,ue.treeAdapter.adoptAttributes(Ze,pe.attrs))}function ka(ue,pe){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();ue.framesetOk&&Ze&&(ue.treeAdapter.detachNode(Ze),ue.openElements.popAllUpToHtmlElement(),ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_FRAMESET)}function ou(ue,pe){ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._insertElement(pe,Rt.HTML)}function Mu(ue,pe){ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue.openElements.currentTagId!==void 0&&Zi.has(ue.openElements.currentTagId)&&ue.openElements.pop(),ue._insertElement(pe,Rt.HTML)}function xl(ue,pe){ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._insertElement(pe,Rt.HTML),ue.skipNextNewLine=!0,ue.framesetOk=!1}function Zn(ue,pe){const Ze=ue.openElements.tmplCount>0;(!ue.formElement||Ze)&&(ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._insertElement(pe,Rt.HTML),Ze||(ue.formElement=ue.openElements.current))}function gr(ue,pe){ue.framesetOk=!1;const Ze=pe.tagID;for(let Ot=ue.openElements.stackTop;Ot>=0;Ot--){const Bn=ue.openElements.tagIDs[Ot];if(Ze===ze.LI&&Bn===ze.LI||(Ze===ze.DD||Ze===ze.DT)&&(Bn===ze.DD||Bn===ze.DT)){ue.openElements.generateImpliedEndTagsWithExclusion(Bn),ue.openElements.popUntilTagNamePopped(Bn);break}if(Bn!==ze.ADDRESS&&Bn!==ze.DIV&&Bn!==ze.P&&ue._isSpecialElement(ue.openElements.items[Ot],Bn))break}ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._insertElement(pe,Rt.HTML)}function Wr(ue,pe){ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._insertElement(pe,Rt.HTML),ue.tokenizer.state=br.PLAINTEXT}function Qr(ue,pe){ue.openElements.hasInScope(ze.BUTTON)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(ze.BUTTON)),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Rt.HTML),ue.framesetOk=!1}function wo(ue,pe){const Ze=ue.activeFormattingElements.getElementEntryInScopeWithTagName(en.A);Ze&&(va(ue,pe),ue.openElements.remove(Ze.element),ue.activeFormattingElements.removeEntry(Ze)),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Rt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function Ro(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Rt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function aa(ue,pe){ue._reconstructActiveFormattingElements(),ue.openElements.hasInScope(ze.NOBR)&&(va(ue,pe),ue._reconstructActiveFormattingElements()),ue._insertElement(pe,Rt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,pe)}function vo(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Rt.HTML),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1}function fo(ue,pe){ue.treeAdapter.getDocumentMode(ue.document)!==Ni.QUIRKS&&ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._insertElement(pe,Rt.HTML),ue.framesetOk=!1,ue.insertionMode=dn.IN_TABLE}function Vr(ue,pe){ue._reconstructActiveFormattingElements(),ue._appendElement(pe,Rt.HTML),ue.framesetOk=!1,pe.ackSelfClosing=!0}function ea(ue){const pe=Ji(ue,Jn.TYPE);return pe!=null&&pe.toLowerCase()===fr}function $i(ue,pe){ue._reconstructActiveFormattingElements(),ue._appendElement(pe,Rt.HTML),ea(pe)||(ue.framesetOk=!1),pe.ackSelfClosing=!0}function Ta(ue,pe){ue._appendElement(pe,Rt.HTML),pe.ackSelfClosing=!0}function It(ue,pe){ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._appendElement(pe,Rt.HTML),ue.framesetOk=!1,pe.ackSelfClosing=!0}function Wn(ue,pe){pe.tagName=en.IMG,pe.tagID=ze.IMG,Vr(ue,pe)}function Cs(ue,pe){ue._insertElement(pe,Rt.HTML),ue.skipNextNewLine=!0,ue.tokenizer.state=br.RCDATA,ue.originalInsertionMode=ue.insertionMode,ue.framesetOk=!1,ue.insertionMode=dn.TEXT}function Gs(ue,pe){ue.openElements.hasInButtonScope(ze.P)&&ue._closePElement(),ue._reconstructActiveFormattingElements(),ue.framesetOk=!1,ue._switchToTextParsing(pe,br.RAWTEXT)}function Na(ue,pe){ue.framesetOk=!1,ue._switchToTextParsing(pe,br.RAWTEXT)}function Wa(ue,pe){ue._switchToTextParsing(pe,br.RAWTEXT)}function as(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Rt.HTML),ue.framesetOk=!1,ue.insertionMode=ue.insertionMode===dn.IN_TABLE||ue.insertionMode===dn.IN_CAPTION||ue.insertionMode===dn.IN_TABLE_BODY||ue.insertionMode===dn.IN_ROW||ue.insertionMode===dn.IN_CELL?dn.IN_SELECT_IN_TABLE:dn.IN_SELECT}function qa(ue,pe){ue.openElements.currentTagId===ze.OPTION&&ue.openElements.pop(),ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Rt.HTML)}function El(ue,pe){ue.openElements.hasInScope(ze.RUBY)&&ue.openElements.generateImpliedEndTags(),ue._insertElement(pe,Rt.HTML)}function wa(ue,pe){ue.openElements.hasInScope(ze.RUBY)&&ue.openElements.generateImpliedEndTagsWithExclusion(ze.RTC),ue._insertElement(pe,Rt.HTML)}function qr(ue,pe){ue._reconstructActiveFormattingElements(),uo(pe),No(pe),pe.selfClosing?ue._appendElement(pe,Rt.MATHML):ue._insertElement(pe,Rt.MATHML),pe.ackSelfClosing=!0}function ms(ue,pe){ue._reconstructActiveFormattingElements(),Ao(pe),No(pe),pe.selfClosing?ue._appendElement(pe,Rt.SVG):ue._insertElement(pe,Rt.SVG),pe.ackSelfClosing=!0}function Us(ue,pe){ue._reconstructActiveFormattingElements(),ue._insertElement(pe,Rt.HTML)}function qo(ue,pe){switch(pe.tagID){case ze.I:case ze.S:case ze.B:case ze.U:case ze.EM:case ze.TT:case ze.BIG:case ze.CODE:case ze.FONT:case ze.SMALL:case ze.STRIKE:case ze.STRONG:{Ro(ue,pe);break}case ze.A:{wo(ue,pe);break}case ze.H1:case ze.H2:case ze.H3:case ze.H4:case ze.H5:case ze.H6:{Mu(ue,pe);break}case ze.P:case ze.DL:case ze.OL:case ze.UL:case ze.DIV:case ze.DIR:case ze.NAV:case ze.MAIN:case ze.MENU:case ze.ASIDE:case ze.CENTER:case ze.FIGURE:case ze.FOOTER:case ze.HEADER:case ze.HGROUP:case ze.DIALOG:case ze.DETAILS:case ze.ADDRESS:case ze.ARTICLE:case ze.SEARCH:case ze.SECTION:case ze.SUMMARY:case ze.FIELDSET:case ze.BLOCKQUOTE:case ze.FIGCAPTION:{ou(ue,pe);break}case ze.LI:case ze.DD:case ze.DT:{gr(ue,pe);break}case ze.BR:case ze.IMG:case ze.WBR:case ze.AREA:case ze.EMBED:case ze.KEYGEN:{Vr(ue,pe);break}case ze.HR:{It(ue,pe);break}case ze.RB:case ze.RTC:{El(ue,pe);break}case ze.RT:case ze.RP:{wa(ue,pe);break}case ze.PRE:case ze.LISTING:{xl(ue,pe);break}case ze.XMP:{Gs(ue,pe);break}case ze.SVG:{ms(ue,pe);break}case ze.HTML:{iu(ue,pe);break}case ze.BASE:case ze.LINK:case ze.META:case ze.STYLE:case ze.TITLE:case ze.SCRIPT:case ze.BGSOUND:case ze.BASEFONT:case ze.TEMPLATE:{Yo(ue,pe);break}case ze.BODY:{ru(ue,pe);break}case ze.FORM:{Zn(ue,pe);break}case ze.NOBR:{aa(ue,pe);break}case ze.MATH:{qr(ue,pe);break}case ze.TABLE:{fo(ue,pe);break}case ze.INPUT:{$i(ue,pe);break}case ze.PARAM:case ze.TRACK:case ze.SOURCE:{Ta(ue,pe);break}case ze.IMAGE:{Wn(ue,pe);break}case ze.BUTTON:{Qr(ue,pe);break}case ze.APPLET:case ze.OBJECT:case ze.MARQUEE:{vo(ue,pe);break}case ze.IFRAME:{Na(ue,pe);break}case ze.SELECT:{as(ue,pe);break}case ze.OPTION:case ze.OPTGROUP:{qa(ue,pe);break}case ze.NOEMBED:case ze.NOFRAMES:{Wa(ue,pe);break}case ze.FRAMESET:{ka(ue,pe);break}case ze.TEXTAREA:{Cs(ue,pe);break}case ze.NOSCRIPT:{ue.options.scriptingEnabled?Wa(ue,pe):Us(ue,pe);break}case ze.PLAINTEXT:{Wr(ue,pe);break}case ze.COL:case ze.TH:case ze.TD:case ze.TR:case ze.HEAD:case ze.FRAME:case ze.TBODY:case ze.TFOOT:case ze.THEAD:case ze.CAPTION:case ze.COLGROUP:break;default:Us(ue,pe)}}function Oo(ue,pe){if(ue.openElements.hasInScope(ze.BODY)&&(ue.insertionMode=dn.AFTER_BODY,ue.options.sourceCodeLocationInfo)){const Ze=ue.openElements.tryPeekProperlyNestedBodyElement();Ze&&ue._setEndLocation(Ze,pe)}}function Oa(ue,pe){ue.openElements.hasInScope(ze.BODY)&&(ue.insertionMode=dn.AFTER_BODY,Ls(ue,pe))}function Ws(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze))}function xa(ue){const pe=ue.openElements.tmplCount>0,{formElement:Ze}=ue;pe||(ue.formElement=null),(Ze||pe)&&ue.openElements.hasInScope(ze.FORM)&&(ue.openElements.generateImpliedEndTags(),pe?ue.openElements.popUntilTagNamePopped(ze.FORM):Ze&&ue.openElements.remove(Ze))}function Js(ue){ue.openElements.hasInButtonScope(ze.P)||ue._insertFakeElement(en.P,ze.P),ue._closePElement()}function ss(ue){ue.openElements.hasInListItemScope(ze.LI)&&(ue.openElements.generateImpliedEndTagsWithExclusion(ze.LI),ue.openElements.popUntilTagNamePopped(ze.LI))}function yu(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTagsWithExclusion(Ze),ue.openElements.popUntilTagNamePopped(Ze))}function ta(ue){ue.openElements.hasNumberedHeaderInScope()&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilNumberedHeaderPopped())}function vs(ue,pe){const Ze=pe.tagID;ue.openElements.hasInScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze),ue.activeFormattingElements.clearToLastMarker())}function Ko(ue){ue._reconstructActiveFormattingElements(),ue._insertFakeElement(en.BR,ze.BR),ue.openElements.pop(),ue.framesetOk=!1}function fa(ue,pe){const Ze=pe.tagName,Ot=pe.tagID;for(let Bn=ue.openElements.stackTop;Bn>0;Bn--){const ki=ue.openElements.items[Bn],er=ue.openElements.tagIDs[Bn];if(Ot===er&&(Ot!==ze.UNKNOWN||ue.treeAdapter.getTagName(ki)===Ze)){ue.openElements.generateImpliedEndTagsWithExclusion(Ot),ue.openElements.stackTop>=Bn&&ue.openElements.shortenToLength(Bn);break}if(ue._isSpecialElement(ki,er))break}}function ya(ue,pe){switch(pe.tagID){case ze.A:case ze.B:case ze.I:case ze.S:case ze.U:case ze.EM:case ze.TT:case ze.BIG:case ze.CODE:case ze.FONT:case ze.NOBR:case ze.SMALL:case ze.STRIKE:case ze.STRONG:{va(ue,pe);break}case ze.P:{Js(ue);break}case ze.DL:case ze.UL:case ze.OL:case ze.DIR:case ze.DIV:case ze.NAV:case ze.PRE:case ze.MAIN:case ze.MENU:case ze.ASIDE:case ze.BUTTON:case ze.CENTER:case ze.FIGURE:case ze.FOOTER:case ze.HEADER:case ze.HGROUP:case ze.DIALOG:case ze.ADDRESS:case ze.ARTICLE:case ze.DETAILS:case ze.SEARCH:case ze.SECTION:case ze.SUMMARY:case ze.LISTING:case ze.FIELDSET:case ze.BLOCKQUOTE:case ze.FIGCAPTION:{Ws(ue,pe);break}case ze.LI:{ss(ue);break}case ze.DD:case ze.DT:{yu(ue,pe);break}case ze.H1:case ze.H2:case ze.H3:case ze.H4:case ze.H5:case ze.H6:{ta(ue);break}case ze.BR:{Ko(ue);break}case ze.BODY:{Oo(ue,pe);break}case ze.HTML:{Oa(ue,pe);break}case ze.FORM:{xa(ue);break}case ze.APPLET:case ze.OBJECT:case ze.MARQUEE:{vs(ue,pe);break}case ze.TEMPLATE:{ia(ue,pe);break}default:fa(ue,pe)}}function Ma(ue,pe){ue.tmplInsertionModeStack.length>0?Ts(ue,pe):Dr(ue,pe)}function zo(ue,pe){var Ze;pe.tagID===ze.SCRIPT&&((Ze=ue.scriptHandler)===null||Ze===void 0||Ze.call(ue,ue.openElements.current)),ue.openElements.pop(),ue.insertionMode=ue.originalInsertionMode}function Vu(ue,pe){ue._err(pe,In.eofInElementThatCanContainOnlyText),ue.openElements.pop(),ue.insertionMode=ue.originalInsertionMode,ue.onEof(pe)}function Zr(ue,pe){if(ue.openElements.currentTagId!==void 0&&Uo.has(ue.openElements.currentTagId))switch(ue.pendingCharacterTokens.length=0,ue.hasNonWhitespacePendingCharacterToken=!1,ue.originalInsertionMode=ue.insertionMode,ue.insertionMode=dn.IN_TABLE_TEXT,pe.type){case Xi.CHARACTER:{Fl(ue,pe);break}case Xi.WHITESPACE_CHARACTER:{Yu(ue,pe);break}}else Os(ue,pe)}function Qc(ue,pe){ue.openElements.clearBackToTableContext(),ue.activeFormattingElements.insertMarker(),ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_CAPTION}function Vo(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_COLUMN_GROUP}function Lc(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(en.COLGROUP,ze.COLGROUP),ue.insertionMode=dn.IN_COLUMN_GROUP,Da(ue,pe)}function Ru(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_TABLE_BODY}function au(ue,pe){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(en.TBODY,ze.TBODY),ue.insertionMode=dn.IN_TABLE_BODY,bl(ue,pe)}function Ic(ue,pe){ue.openElements.hasInTableScope(ze.TABLE)&&(ue.openElements.popUntilTagNamePopped(ze.TABLE),ue._resetInsertionMode(),ue._processStartTag(pe))}function xc(ue,pe){ea(pe)?ue._appendElement(pe,Rt.HTML):Os(ue,pe),pe.ackSelfClosing=!0}function Ol(ue,pe){!ue.formElement&&ue.openElements.tmplCount===0&&(ue._insertElement(pe,Rt.HTML),ue.formElement=ue.openElements.current,ue.openElements.pop())}function Dl(ue,pe){switch(pe.tagID){case ze.TD:case ze.TH:case ze.TR:{au(ue,pe);break}case ze.STYLE:case ze.SCRIPT:case ze.TEMPLATE:{Yo(ue,pe);break}case ze.COL:{Lc(ue,pe);break}case ze.FORM:{Ol(ue,pe);break}case ze.TABLE:{Ic(ue,pe);break}case ze.TBODY:case ze.TFOOT:case ze.THEAD:{Ru(ue,pe);break}case ze.INPUT:{xc(ue,pe);break}case ze.CAPTION:{Qc(ue,pe);break}case ze.COLGROUP:{Vo(ue,pe);break}default:Os(ue,pe)}}function Zo(ue,pe){switch(pe.tagID){case ze.TABLE:{ue.openElements.hasInTableScope(ze.TABLE)&&(ue.openElements.popUntilTagNamePopped(ze.TABLE),ue._resetInsertionMode());break}case ze.TEMPLATE:{ia(ue,pe);break}case ze.BODY:case ze.CAPTION:case ze.COL:case ze.COLGROUP:case ze.HTML:case ze.TBODY:case ze.TD:case ze.TFOOT:case ze.TH:case ze.THEAD:case ze.TR:break;default:Os(ue,pe)}}function Os(ue,pe){const Ze=ue.fosterParentingEnabled;ue.fosterParentingEnabled=!0,js(ue,pe),ue.fosterParentingEnabled=Ze}function Yu(ue,pe){ue.pendingCharacterTokens.push(pe)}function Fl(ue,pe){ue.pendingCharacterTokens.push(pe),ue.hasNonWhitespacePendingCharacterToken=!0}function su(ue,pe){let Ze=0;if(ue.hasNonWhitespacePendingCharacterToken)for(;Ze<ue.pendingCharacterTokens.length;Ze++)Os(ue,ue.pendingCharacterTokens[Ze]);else for(;Ze<ue.pendingCharacterTokens.length;Ze++)ue._insertCharacters(ue.pendingCharacterTokens[Ze]);ue.insertionMode=ue.originalInsertionMode,ue._processToken(pe)}const Vl=new Set([ze.CAPTION,ze.COL,ze.COLGROUP,ze.TBODY,ze.TD,ze.TFOOT,ze.TH,ze.THEAD,ze.TR]);function Ho(ue,pe){const Ze=pe.tagID;Vl.has(Ze)?ue.openElements.hasInTableScope(ze.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(ze.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=dn.IN_TABLE,Dl(ue,pe)):qo(ue,pe)}function na(ue,pe){const Ze=pe.tagID;switch(Ze){case ze.CAPTION:case ze.TABLE:{ue.openElements.hasInTableScope(ze.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(ze.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=dn.IN_TABLE,Ze===ze.TABLE&&Zo(ue,pe));break}case ze.BODY:case ze.COL:case ze.COLGROUP:case ze.HTML:case ze.TBODY:case ze.TD:case ze.TFOOT:case ze.TH:case ze.THEAD:case ze.TR:break;default:ya(ue,pe)}}function Da(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.COL:{ue._appendElement(pe,Rt.HTML),pe.ackSelfClosing=!0;break}case ze.TEMPLATE:{Yo(ue,pe);break}default:ls(ue,pe)}}function ys(ue,pe){switch(pe.tagID){case ze.COLGROUP:{ue.openElements.currentTagId===ze.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE);break}case ze.TEMPLATE:{ia(ue,pe);break}case ze.COL:break;default:ls(ue,pe)}}function ls(ue,pe){ue.openElements.currentTagId===ze.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE,ue._processToken(pe))}function bl(ue,pe){switch(pe.tagID){case ze.TR:{ue.openElements.clearBackToTableBodyContext(),ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_ROW;break}case ze.TH:case ze.TD:{ue.openElements.clearBackToTableBodyContext(),ue._insertFakeElement(en.TR,ze.TR),ue.insertionMode=dn.IN_ROW,Cl(ue,pe);break}case ze.CAPTION:case ze.COL:case ze.COLGROUP:case ze.TBODY:case ze.TFOOT:case ze.THEAD:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE,Dl(ue,pe));break}default:Dl(ue,pe)}}function wl(ue,pe){const Ze=pe.tagID;switch(pe.tagID){case ze.TBODY:case ze.TFOOT:case ze.THEAD:{ue.openElements.hasInTableScope(Ze)&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE);break}case ze.TABLE:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE,Zo(ue,pe));break}case ze.BODY:case ze.CAPTION:case ze.COL:case ze.COLGROUP:case ze.HTML:case ze.TD:case ze.TH:case ze.TR:break;default:Zo(ue,pe)}}function Cl(ue,pe){switch(pe.tagID){case ze.TH:case ze.TD:{ue.openElements.clearBackToTableRowContext(),ue._insertElement(pe,Rt.HTML),ue.insertionMode=dn.IN_CELL,ue.activeFormattingElements.insertMarker();break}case ze.CAPTION:case ze.COL:case ze.COLGROUP:case ze.TBODY:case ze.TFOOT:case ze.THEAD:case ze.TR:{ue.openElements.hasInTableScope(ze.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE_BODY,bl(ue,pe));break}default:Dl(ue,pe)}}function ol(ue,pe){switch(pe.tagID){case ze.TR:{ue.openElements.hasInTableScope(ze.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE_BODY);break}case ze.TABLE:{ue.openElements.hasInTableScope(ze.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE_BODY,wl(ue,pe));break}case ze.TBODY:case ze.TFOOT:case ze.THEAD:{(ue.openElements.hasInTableScope(pe.tagID)||ue.openElements.hasInTableScope(ze.TR))&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=dn.IN_TABLE_BODY,wl(ue,pe));break}case ze.BODY:case ze.CAPTION:case ze.COL:case ze.COLGROUP:case ze.HTML:case ze.TD:case ze.TH:break;default:Zo(ue,pe)}}function Yl(ue,pe){const Ze=pe.tagID;Vl.has(Ze)?(ue.openElements.hasInTableScope(ze.TD)||ue.openElements.hasInTableScope(ze.TH))&&(ue._closeTableCell(),Cl(ue,pe)):qo(ue,pe)}function dd(ue,pe){const Ze=pe.tagID;switch(Ze){case ze.TD:case ze.TH:{ue.openElements.hasInTableScope(Ze)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ze),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=dn.IN_ROW);break}case ze.TABLE:case ze.TBODY:case ze.TFOOT:case ze.THEAD:case ze.TR:{ue.openElements.hasInTableScope(Ze)&&(ue._closeTableCell(),ol(ue,pe));break}case ze.BODY:case ze.CAPTION:case ze.COL:case ze.COLGROUP:case ze.HTML:break;default:ya(ue,pe)}}function mh(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.OPTION:{ue.openElements.currentTagId===ze.OPTION&&ue.openElements.pop(),ue._insertElement(pe,Rt.HTML);break}case ze.OPTGROUP:{ue.openElements.currentTagId===ze.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===ze.OPTGROUP&&ue.openElements.pop(),ue._insertElement(pe,Rt.HTML);break}case ze.HR:{ue.openElements.currentTagId===ze.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===ze.OPTGROUP&&ue.openElements.pop(),ue._appendElement(pe,Rt.HTML),pe.ackSelfClosing=!0;break}case ze.INPUT:case ze.KEYGEN:case ze.TEXTAREA:case ze.SELECT:{ue.openElements.hasInSelectScope(ze.SELECT)&&(ue.openElements.popUntilTagNamePopped(ze.SELECT),ue._resetInsertionMode(),pe.tagID!==ze.SELECT&&ue._processStartTag(pe));break}case ze.SCRIPT:case ze.TEMPLATE:{Yo(ue,pe);break}default:}}function vh(ue,pe){switch(pe.tagID){case ze.OPTGROUP:{ue.openElements.stackTop>0&&ue.openElements.currentTagId===ze.OPTION&&ue.openElements.tagIDs[ue.openElements.stackTop-1]===ze.OPTGROUP&&ue.openElements.pop(),ue.openElements.currentTagId===ze.OPTGROUP&&ue.openElements.pop();break}case ze.OPTION:{ue.openElements.currentTagId===ze.OPTION&&ue.openElements.pop();break}case ze.SELECT:{ue.openElements.hasInSelectScope(ze.SELECT)&&(ue.openElements.popUntilTagNamePopped(ze.SELECT),ue._resetInsertionMode());break}case ze.TEMPLATE:{ia(ue,pe);break}default:}}function yh(ue,pe){const Ze=pe.tagID;Ze===ze.CAPTION||Ze===ze.TABLE||Ze===ze.TBODY||Ze===ze.TFOOT||Ze===ze.THEAD||Ze===ze.TR||Ze===ze.TD||Ze===ze.TH?(ue.openElements.popUntilTagNamePopped(ze.SELECT),ue._resetInsertionMode(),ue._processStartTag(pe)):mh(ue,pe)}function ns(ue,pe){const Ze=pe.tagID;Ze===ze.CAPTION||Ze===ze.TABLE||Ze===ze.TBODY||Ze===ze.TFOOT||Ze===ze.THEAD||Ze===ze.TR||Ze===ze.TD||Ze===ze.TH?ue.openElements.hasInTableScope(Ze)&&(ue.openElements.popUntilTagNamePopped(ze.SELECT),ue._resetInsertionMode(),ue.onEndTag(pe)):vh(ue,pe)}function Ku(ue,pe){switch(pe.tagID){case ze.BASE:case ze.BASEFONT:case ze.BGSOUND:case ze.LINK:case ze.META:case ze.NOFRAMES:case ze.SCRIPT:case ze.STYLE:case ze.TEMPLATE:case ze.TITLE:{Yo(ue,pe);break}case ze.CAPTION:case ze.COLGROUP:case ze.TBODY:case ze.TFOOT:case ze.THEAD:{ue.tmplInsertionModeStack[0]=dn.IN_TABLE,ue.insertionMode=dn.IN_TABLE,Dl(ue,pe);break}case ze.COL:{ue.tmplInsertionModeStack[0]=dn.IN_COLUMN_GROUP,ue.insertionMode=dn.IN_COLUMN_GROUP,Da(ue,pe);break}case ze.TR:{ue.tmplInsertionModeStack[0]=dn.IN_TABLE_BODY,ue.insertionMode=dn.IN_TABLE_BODY,bl(ue,pe);break}case ze.TD:case ze.TH:{ue.tmplInsertionModeStack[0]=dn.IN_ROW,ue.insertionMode=dn.IN_ROW,Cl(ue,pe);break}default:ue.tmplInsertionModeStack[0]=dn.IN_BODY,ue.insertionMode=dn.IN_BODY,qo(ue,pe)}}function pa(ue,pe){pe.tagID===ze.TEMPLATE&&ia(ue,pe)}function Ts(ue,pe){ue.openElements.tmplCount>0?(ue.openElements.popUntilTagNamePopped(ze.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode(),ue.onEof(pe)):Dr(ue,pe)}function Ds(ue,pe){pe.tagID===ze.HTML?qo(ue,pe):sc(ue,pe)}function Ls(ue,pe){var Ze;if(pe.tagID===ze.HTML){if(ue.fragmentContext||(ue.insertionMode=dn.AFTER_AFTER_BODY),ue.options.sourceCodeLocationInfo&&ue.openElements.tagIDs[0]===ze.HTML){ue._setEndLocation(ue.openElements.items[0],pe);const Ot=ue.openElements.items[1];Ot&&!(!((Ze=ue.treeAdapter.getNodeSourceCodeLocation(Ot))===null||Ze===void 0)&&Ze.endTag)&&ue._setEndLocation(Ot,pe)}}else sc(ue,pe)}function sc(ue,pe){ue.insertionMode=dn.IN_BODY,js(ue,pe)}function zs(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.FRAMESET:{ue._insertElement(pe,Rt.HTML);break}case ze.FRAME:{ue._appendElement(pe,Rt.HTML),pe.ackSelfClosing=!0;break}case ze.NOFRAMES:{Yo(ue,pe);break}default:}}function Zu(ue,pe){pe.tagID===ze.FRAMESET&&!ue.openElements.isRootHtmlElementCurrent()&&(ue.openElements.pop(),!ue.fragmentContext&&ue.openElements.currentTagId!==ze.FRAMESET&&(ue.insertionMode=dn.AFTER_FRAMESET))}function hd(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.NOFRAMES:{Yo(ue,pe);break}default:}}function fd(ue,pe){pe.tagID===ze.HTML&&(ue.insertionMode=dn.AFTER_AFTER_FRAMESET)}function al(ue,pe){pe.tagID===ze.HTML?qo(ue,pe):we(ue,pe)}function we(ue,pe){ue.insertionMode=dn.IN_BODY,js(ue,pe)}function He(ue,pe){switch(pe.tagID){case ze.HTML:{qo(ue,pe);break}case ze.NOFRAMES:{Yo(ue,pe);break}default:}}function Xe(ue,pe){pe.chars=Gn,ue._insertCharacters(pe)}function ot(ue,pe){ue._insertCharacters(pe),ue.framesetOk=!1}function xt(ue){for(;ue.treeAdapter.getNamespaceURI(ue.openElements.current)!==Rt.HTML&&ue.openElements.currentTagId!==void 0&&!ue._isIntegrationPoint(ue.openElements.currentTagId,ue.openElements.current);)ue.openElements.pop()}function Ct(ue,pe){if(Co(pe))xt(ue),ue._startTagOutsideForeignContent(pe);else{const Ze=ue._getAdjustedCurrentElement(),Ot=ue.treeAdapter.getNamespaceURI(Ze);Ot===Rt.MATHML?uo(pe):Ot===Rt.SVG&&(qt(pe),Ao(pe)),No(pe),pe.selfClosing?ue._appendElement(pe,Ot):ue._insertElement(pe,Ot),pe.ackSelfClosing=!0}}function Ft(ue,pe){if(pe.tagID===ze.P||pe.tagID===ze.BR){xt(ue),ue._endTagOutsideForeignContent(pe);return}for(let Ze=ue.openElements.stackTop;Ze>0;Ze--){const Ot=ue.openElements.items[Ze];if(ue.treeAdapter.getNamespaceURI(Ot)===Rt.HTML){ue._endTagOutsideForeignContent(pe);break}const Bn=ue.treeAdapter.getTagName(Ot);if(Bn.toLowerCase()===pe.tagName){pe.tagName=Bn,ue.openElements.shortenToLength(Ze);break}}}const Zt=/["$&'<>\u0080-\uFFFF]/g,Dn=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),zn=String.prototype.codePointAt==null?(ue,pe)=>(ue.charCodeAt(pe)&64512)===55296?(ue.charCodeAt(pe)-55296)*1024+ue.charCodeAt(pe+1)-56320+65536:ue.charCodeAt(pe):(ue,pe)=>ue.codePointAt(pe);function Sn(ue){let pe="",Ze=0,Ot;for(;(Ot=Zt.exec(ue))!==null;){const{index:Bn}=Ot,ki=ue.charCodeAt(Bn),er=Dn.get(ki);er===void 0?(pe+=`${ue.substring(Ze,Bn)}&#x${zn(ue,Bn).toString(16)};`,Ze=Zt.lastIndex+=+((ki&64512)===55296)):(pe+=ue.substring(Ze,Bn)+er,Ze=Bn+1)}return pe+ue.substr(Ze)}const hi=null;function ri(ue,pe){return function(Ot){let Bn,ki=0,er="";for(;Bn=ue.exec(Ot);)ki!==Bn.index&&(er+=Ot.substring(ki,Bn.index)),er+=pe.get(Bn[0].charCodeAt(0)),ki=Bn.index+1;return er+Ot.substring(ki)}}const bn=null,no=ri(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Po=ri(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),jo=new Set([en.AREA,en.BASE,en.BASEFONT,en.BGSOUND,en.BR,en.COL,en.EMBED,en.FRAME,en.HR,en.IMG,en.INPUT,en.KEYGEN,en.LINK,en.META,en.PARAM,en.SOURCE,en.TRACK,en.WBR]);function Ir(ue,pe){return pe.treeAdapter.isElementNode(ue)&&pe.treeAdapter.getNamespaceURI(ue)===NS.HTML&&jo.has(pe.treeAdapter.getTagName(ue))}const ro={treeAdapter:yi,scriptingEnabled:!0};function So(ue,pe){const Ze=oa(oa({},ro),pe);return Ir(ue,Ze)?"":Ba(ue,Ze)}function Fa(ue,pe){const Ze=oa(oa({},ro),pe);return pr(ue,Ze)}function Ba(ue,pe){let Ze="";const Ot=pe.treeAdapter.isElementNode(ue)&&pe.treeAdapter.getTagName(ue)===$.TEMPLATE&&pe.treeAdapter.getNamespaceURI(ue)===NS.HTML?pe.treeAdapter.getTemplateContent(ue):ue,Bn=pe.treeAdapter.getChildNodes(Ot);if(Bn)for(const ki of Bn)Ze+=pr(ki,pe);return Ze}function pr(ue,pe){return pe.treeAdapter.isElementNode(ue)?za(ue,pe):pe.treeAdapter.isTextNode(ue)?La(ue,pe):pe.treeAdapter.isCommentNode(ue)?$r(ue,pe):pe.treeAdapter.isDocumentTypeNode(ue)?sl(ue,pe):""}function za(ue,pe){const Ze=pe.treeAdapter.getTagName(ue);return`<${Ze}${us(ue,pe)}>${Ir(ue,pe)?"":`${Ba(ue,pe)}</${Ze}>`}`}function us(ue,{treeAdapter:pe}){let Ze="";for(const Ot of pe.getAttrList(ue)){if(Ze+=" ",Ot.namespace)switch(Ot.namespace){case NS.XML:{Ze+=`xml:${Ot.name}`;break}case NS.XMLNS:{Ot.name!=="xmlns"&&(Ze+="xmlns:"),Ze+=Ot.name;break}case NS.XLINK:{Ze+=`xlink:${Ot.name}`;break}default:Ze+=`${Ot.prefix}:${Ot.name}`}else Ze+=Ot.name;Ze+=`="${escapeAttribute(Ot.value)}"`}return Ze}function La(ue,pe){const{treeAdapter:Ze}=pe,Ot=Ze.getTextNodeContent(ue),Bn=Ze.getParentNode(ue),ki=Bn&&Ze.isElementNode(Bn)&&Ze.getTagName(Bn);return ki&&Ze.getNamespaceURI(Bn)===NS.HTML&&hasUnescapedText(ki,pe.scriptingEnabled)?Ot:escapeText(Ot)}function $r(ue,{treeAdapter:pe}){return`<!--${pe.getCommentNodeContent(ue)}-->`}function sl(ue,{treeAdapter:pe}){return`<!DOCTYPE ${pe.getDocumentTypeNodeName(ue)}>`}function Ka(ue,pe){return Parser.parse(ue,pe)}function _o(ue,pe,Ze){typeof ue=="string"&&(Ze=pe,pe=ue,ue=null);const Ot=Parser.getFragmentParser(ue,Ze);return Ot.tokenizer.write(pe,!0),Ot.getFragment()}var Do=le(17970),la=le(10528);const is=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),qs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Bl(ue,pe){const Ze=gd(ue),Ot=gt("type",{handlers:{root:ll,element:Kl,text:ni,comment:Su,doctype:$s,raw:Fs},unknown:rs}),Bn={parser:Ze?new Ya(qs):Ya.getFragmentParser(void 0,qs),handle(ao){Ot(ao,Bn)},stitches:!1,options:pe||{}};Ot(ue,Bn),Zl(Bn,(0,Do.Pk)());const ki=Ze?Bn.parser.document:Bn.parser.getFragment(),er=it(ki,{file:Bn.options.file});return Bn.stitches&&(0,la.Vn)(er,"comment",function(ao,Fo,Ei){const Cr=ao;if(Cr.value.stitch&&Ei&&Fo!==void 0){const Go=Ei.children;return Go[Fo]=Cr.value.stitch,Fo}}),er.type==="root"&&er.children.length===1&&er.children[0].type===ue.type?er.children[0]:er}function Xn(ue,pe){let Ze=-1;if(ue)for(;++Ze<ue.length;)pe.handle(ue[Ze])}function ll(ue,pe){Xn(ue.children,pe)}function Kl(ue,pe){Ou(ue,pe),Xn(ue.children,pe),Xu(ue,pe)}function ni(ue,pe){pe.parser.tokenizer.state>4&&(pe.parser.tokenizer.state=0);const Ze={type:Xi.CHARACTER,chars:ue.value,location:uu(ue)};Zl(pe,(0,Do.Pk)(ue)),pe.parser.currentToken=Ze,pe.parser._processToken(pe.parser.currentToken)}function $s(ue,pe){const Ze={type:Xi.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:uu(ue)};Zl(pe,(0,Do.Pk)(ue)),pe.parser.currentToken=Ze,pe.parser._processToken(pe.parser.currentToken)}function lu(ue,pe){pe.stitches=!0;const Ze=lc(ue);if("children"in ue&&"children"in Ze){const Ot=Bl({type:"root",children:ue.children},pe.options);Ze.children=Ot.children}Su({type:"comment",value:{stitch:Ze}},pe)}function Su(ue,pe){const Ze=ue.value,Ot={type:Xi.COMMENT,data:Ze,location:uu(ue)};Zl(pe,(0,Do.Pk)(ue)),pe.parser.currentToken=Ot,pe.parser._processToken(pe.parser.currentToken)}function Fs(ue,pe){if(pe.parser.tokenizer.preprocessor.html="",pe.parser.tokenizer.preprocessor.pos=-1,pe.parser.tokenizer.preprocessor.lastGapPos=-2,pe.parser.tokenizer.preprocessor.gapStack=[],pe.parser.tokenizer.preprocessor.skipNextNewLine=!1,pe.parser.tokenizer.preprocessor.lastChunkWritten=!1,pe.parser.tokenizer.preprocessor.endOfChunkHit=!1,pe.parser.tokenizer.preprocessor.isEol=!1,Vs(pe,(0,Do.Pk)(ue)),pe.parser.tokenizer.write(pe.options.tagfilter?ue.value.replace(is,"<$1$2"):ue.value,!1),pe.parser.tokenizer._runParsingLoop(),pe.parser.tokenizer.state===72||pe.parser.tokenizer.state===78){pe.parser.tokenizer.preprocessor.lastChunkWritten=!0;const Ze=pe.parser.tokenizer._consume();pe.parser.tokenizer._callState(Ze)}}function rs(ue,pe){const Ze=ue;if(pe.options.passThrough&&pe.options.passThrough.includes(Ze.type))lu(Ze,pe);else{let Ot="";throw Hs.has(Ze.type)&&(Ot=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+Ze.type+"` node"+Ot)}}function Zl(ue,pe){Vs(ue,pe);const Ze=ue.parser.tokenizer.currentCharacterToken;Ze&&Ze.location&&(Ze.location.endLine=ue.parser.tokenizer.preprocessor.line,Ze.location.endCol=ue.parser.tokenizer.preprocessor.col+1,Ze.location.endOffset=ue.parser.tokenizer.preprocessor.offset+1,ue.parser.currentToken=Ze,ue.parser._processToken(ue.parser.currentToken)),ue.parser.tokenizer.paused=!1,ue.parser.tokenizer.inLoop=!1,ue.parser.tokenizer.active=!1,ue.parser.tokenizer.returnState=br.DATA,ue.parser.tokenizer.charRefCode=-1,ue.parser.tokenizer.consumedAfterSnapshot=-1,ue.parser.tokenizer.currentLocation=null,ue.parser.tokenizer.currentCharacterToken=null,ue.parser.tokenizer.currentToken=null,ue.parser.tokenizer.currentAttr={name:"",value:""}}function Vs(ue,pe){if(pe&&pe.offset!==void 0){const Ze={startLine:pe.line,startCol:pe.column,startOffset:pe.offset,endLine:-1,endCol:-1,endOffset:-1};ue.parser.tokenizer.preprocessor.lineStartPos=-pe.column+1,ue.parser.tokenizer.preprocessor.droppedBufferSize=pe.offset,ue.parser.tokenizer.preprocessor.line=pe.line,ue.parser.tokenizer.currentLocation=Ze}}function Ou(ue,pe){const Ze=ue.tagName.toLowerCase();if(pe.parser.tokenizer.state===br.PLAINTEXT)return;Zl(pe,(0,Do.Pk)(ue));const Ot=pe.parser.openElements.current;let Bn="namespaceURI"in Ot?Ot.namespaceURI:Qe.t.html;Bn===Qe.t.html&&Ze==="svg"&&(Bn=Qe.t.svg);const ki=nn(Pf(oa({},ue),{children:[]}),{space:Bn===Qe.t.svg?"svg":"html"}),er={type:Xi.START_TAG,tagName:Ze,tagID:oi(Ze),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in ki?ki.attrs:[],location:uu(ue)};pe.parser.currentToken=er,pe.parser._processToken(pe.parser.currentToken),pe.parser.tokenizer.lastStartTagName=Ze}function Xu(ue,pe){const Ze=ue.tagName.toLowerCase();if(!pe.parser.tokenizer.inForeignNode&&jn.includes(Ze)||pe.parser.tokenizer.state===br.PLAINTEXT)return;Zl(pe,(0,Do.rb)(ue));const Ot={type:Xi.END_TAG,tagName:Ze,tagID:oi(Ze),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:uu(ue)};pe.parser.currentToken=Ot,pe.parser._processToken(pe.parser.currentToken),Ze===pe.parser.tokenizer.lastStartTagName&&(pe.parser.tokenizer.state===br.RCDATA||pe.parser.tokenizer.state===br.RAWTEXT||pe.parser.tokenizer.state===br.SCRIPT_DATA)&&(pe.parser.tokenizer.state=br.DATA)}function gd(ue){const pe=ue.type==="root"?ue.children[0]:ue;return!!(pe&&(pe.type==="doctype"||pe.type==="element"&&pe.tagName.toLowerCase()==="html"))}function uu(ue){const pe=(0,Do.Pk)(ue)||{line:void 0,column:void 0,offset:void 0},Ze=(0,Do.rb)(ue)||{line:void 0,column:void 0,offset:void 0};return{startLine:pe.line,startCol:pe.column,startOffset:pe.offset,endLine:Ze.line,endCol:Ze.column,endOffset:Ze.offset}}function lc(ue){return"children"in ue?(0,Pe.ZP)(Pf(oa({},ue),{children:[]})):(0,Pe.ZP)(ue)}function zd(ue){return function(pe,Ze){return Bl(pe,Pf(oa({},ue),{file:Ze}))}}},10787:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return We}});function ce(mt){if(typeof mt!="string")throw new TypeError("Expected a string");return mt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Pe=le(2348),Me=le(10502);function Ie(mt,it,kt){const Fe=kt||{},ne=(0,Me.O)(Fe.ignore||[]),te=je(it);let he=-1;for(;++he<te.length;)(0,Pe.S4)(mt,"text",se);function se(ye,be){let Ae=-1,Le;for(;++Ae<be.length;){const Ve=be[Ae],et=Le?Le.children:void 0;if(ne(Ve,et?et.indexOf(Ve):void 0,Le))return;Le=Ve}if(Le)return ge(ye,be)}function ge(ye,be){const Ae=be[be.length-1],Le=te[he][0],Ve=te[he][1];let et=0;const rt=Ae.children.indexOf(ye);let at=!1,tt=[];Le.lastIndex=0;let Et=Le.exec(ye.value);for(;Et;){const Lt=Et.index,Ut={index:Et.index,input:Et.input,stack:[...be,ye]};let on=Ve(...Et,Ut);if(typeof on=="string"&&(on=on.length>0?{type:"text",value:on}:void 0),on===!1?Le.lastIndex=Lt+1:(et!==Lt&&tt.push({type:"text",value:ye.value.slice(et,Lt)}),Array.isArray(on)?tt.push(...on):on&&tt.push(on),et=Lt+Et[0].length,at=!0),!Le.global)break;Et=Le.exec(ye.value)}return at?(et<ye.value.length&&tt.push({type:"text",value:ye.value.slice(et)}),Ae.children.splice(rt,1,...tt)):tt=[ye],rt+tt.length}}function je(mt){const it=[];if(!Array.isArray(mt))throw new TypeError("Expected find and replace tuple or list of tuples");const kt=!mt[0]||Array.isArray(mt[0])?mt:[mt];let Fe=-1;for(;++Fe<kt.length;){const ne=kt[Fe];it.push([Te(ne[0]),Ge(ne[1])])}return it}function Te(mt){return typeof mt=="string"?new RegExp(ce(mt),"g"):mt}function Ge(mt){return typeof mt=="function"?mt:function(){return mt}}function st(mt){Ie(mt,[/\r?\n|\r/g,Qe])}function Qe(){return{type:"break"}}function We(){return function(mt){st(mt)}}},30084:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return te}});var ce=le(87342);function Pe(he,se){const ge=String(he);let ye=ge.indexOf(se),be=ye,Ae=0,Le=0;if(typeof se!="string")throw new TypeError("Expected substring");for(;ye!==-1;)ye===be?++Ae>Le&&(Le=Ae):Ae=1,be=ye+se.length,ye=ge.indexOf(se,be);return Le}function Me(){return{enter:{mathFlow:he,mathFlowFenceMeta:se,mathText:Ae},exit:{mathFlow:be,mathFlowFence:ye,mathFlowFenceMeta:ge,mathFlowValue:Ve,mathText:Le,mathTextData:Ve}};function he(et){const Je={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[Je]}},et)}function se(){this.buffer()}function ge(){const et=this.resume(),Je=this.stack[this.stack.length-1];(0,ce.ok)(Je.type==="math"),Je.meta=et}function ye(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function be(et){const Je=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),rt=this.stack[this.stack.length-1];(0,ce.ok)(rt.type==="math"),this.exit(et),rt.value=Je;const at=rt.data.hChildren[0];(0,ce.ok)(at.type==="element"),(0,ce.ok)(at.tagName==="code"),at.children.push({type:"text",value:Je}),this.data.mathFlowInside=void 0}function Ae(et){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},et),this.buffer()}function Le(et){const Je=this.resume(),rt=this.stack[this.stack.length-1];(0,ce.ok)(rt.type==="inlineMath"),this.exit(et),rt.value=Je,rt.data.hChildren.push({type:"text",value:Je})}function Ve(et){this.config.enter.data.call(this,et),this.config.exit.data.call(this,et)}}function Ie(he){let se=(he||{}).singleDollarTextMath;return se==null&&(se=!0),ye.peek=be,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:se?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:ge,inlineMath:ye}};function ge(Ae,Le,Ve,et){const Je=Ae.value||"",rt=Ve.createTracker(et),at="$".repeat(Math.max(Pe(Je,"$")+1,2)),tt=Ve.enter("mathFlow");let Et=rt.move(at);if(Ae.meta){const Lt=Ve.enter("mathFlowMeta");Et+=rt.move(Ve.safe(Ae.meta,oa({after:`
|
|
|
`,before:Et,encode:["$"]},rt.current()))),Lt()}return Et+=rt.move(`
|
|
|
`),Je&&(Et+=rt.move(Je+`
|
|
|
`)),Et+=rt.move(at),tt(),Et}function ye(Ae,Le,Ve){let et=Ae.value||"",Je=1;for(se||Je++;new RegExp("(^|[^$])"+"\\$".repeat(Je)+"([^$]|$)").test(et);)Je++;const rt="$".repeat(Je);/[^ \r\n]/.test(et)&&(/^[ \r\n]/.test(et)&&/[ \r\n]$/.test(et)||/^\$|\$$/.test(et))&&(et=" "+et+" ");let at=-1;for(;++at<Ve.unsafe.length;){const tt=Ve.unsafe[at];if(!tt.atBreak)continue;const Et=Ve.compilePattern(tt);let Lt;for(;Lt=Et.exec(et);){let Ut=Lt.index;et.codePointAt(Ut)===10&&et.codePointAt(Ut-1)===13&&Ut--,et=et.slice(0,Ut)+" "+et.slice(Lt.index+1)}}return rt+et+rt}function be(){return"$"}}var je=le(26735),Te=le(80722);const Ge={tokenize:Qe,concrete:!0,name:"mathFlow"},st={tokenize:We,partial:!0};function Qe(he,se,ge){const ye=this,be=ye.events[ye.events.length-1],Ae=be&&be[1].type==="linePrefix"?be[2].sliceSerialize(be[1],!0).length:0;let Le=0;return Ve;function Ve(Kt){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),et(Kt)}function et(Kt){return Kt===36?(he.consume(Kt),Le++,et):Le<2?ge(Kt):(he.exit("mathFlowFenceSequence"),(0,je.f)(he,Je,"whitespace")(Kt))}function Je(Kt){return Kt===null||(0,Te.Ch)(Kt)?at(Kt):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),rt(Kt))}function rt(Kt){return Kt===null||(0,Te.Ch)(Kt)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),at(Kt)):Kt===36?ge(Kt):(he.consume(Kt),rt)}function at(Kt){return he.exit("mathFlowFence"),ye.interrupt?se(Kt):he.attempt(st,tt,on)(Kt)}function tt(Kt){return he.attempt({tokenize:an,partial:!0},on,Et)(Kt)}function Et(Kt){return(Ae?(0,je.f)(he,Lt,"linePrefix",Ae+1):Lt)(Kt)}function Lt(Kt){return Kt===null?on(Kt):(0,Te.Ch)(Kt)?he.attempt(st,tt,on)(Kt):(he.enter("mathFlowValue"),Ut(Kt))}function Ut(Kt){return Kt===null||(0,Te.Ch)(Kt)?(he.exit("mathFlowValue"),Lt(Kt)):(he.consume(Kt),Ut)}function on(Kt){return he.exit("mathFlow"),se(Kt)}function an(Kt,fn,bt){let dt=0;return(0,je.f)(Kt,ct,"linePrefix",ye.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ct(Nt){return Kt.enter("mathFlowFence"),Kt.enter("mathFlowFenceSequence"),Qt(Nt)}function Qt(Nt){return Nt===36?(dt++,Kt.consume(Nt),Qt):dt<Le?bt(Nt):(Kt.exit("mathFlowFenceSequence"),(0,je.f)(Kt,un,"whitespace")(Nt))}function un(Nt){return Nt===null||(0,Te.Ch)(Nt)?(Kt.exit("mathFlowFence"),fn(Nt)):bt(Nt)}}}function We(he,se,ge){const ye=this;return be;function be(Le){return Le===null?se(Le):(he.enter("lineEnding"),he.consume(Le),he.exit("lineEnding"),Ae)}function Ae(Le){return ye.parser.lazy[ye.now().line]?ge(Le):se(Le)}}function mt(he){let ge=(he||{}).singleDollarTextMath;return ge==null&&(ge=!0),{tokenize:ye,resolve:it,previous:kt,name:"mathText"};function ye(be,Ae,Le){const Ve=this;let et=0,Je,rt;return at;function at(on){return be.enter("mathText"),be.enter("mathTextSequence"),tt(on)}function tt(on){return on===36?(be.consume(on),et++,tt):et<2&&!ge?Le(on):(be.exit("mathTextSequence"),Et(on))}function Et(on){return on===null?Le(on):on===36?(rt=be.enter("mathTextSequence"),Je=0,Ut(on)):on===32?(be.enter("space"),be.consume(on),be.exit("space"),Et):(0,Te.Ch)(on)?(be.enter("lineEnding"),be.consume(on),be.exit("lineEnding"),Et):(be.enter("mathTextData"),Lt(on))}function Lt(on){return on===null||on===32||on===36||(0,Te.Ch)(on)?(be.exit("mathTextData"),Et(on)):(be.consume(on),Lt)}function Ut(on){return on===36?(be.consume(on),Je++,Ut):Je===et?(be.exit("mathTextSequence"),be.exit("mathText"),Ae(on)):(rt.type="mathTextData",Lt(on))}}}function it(he){let se=he.length-4,ge=3,ye,be;if((he[ge][1].type==="lineEnding"||he[ge][1].type==="space")&&(he[se][1].type==="lineEnding"||he[se][1].type==="space")){for(ye=ge;++ye<se;)if(he[ye][1].type==="mathTextData"){he[se][1].type="mathTextPadding",he[ge][1].type="mathTextPadding",ge+=2,se-=2;break}}for(ye=ge-1,se++;++ye<=se;)be===void 0?ye!==se&&he[ye][1].type!=="lineEnding"&&(be=ye):(ye===se||he[ye][1].type==="lineEnding")&&(he[be][1].type="mathTextData",ye!==be+2&&(he[be][1].end=he[ye-1][1].end,he.splice(be+2,ye-be-2),se-=ye-be-2,ye=be+2),be=void 0);return he}function kt(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fe(he){return{flow:{36:Ge},text:{36:mt(he)}}}const ne={};function te(he){const se=this,ge=he||ne,ye=se.data(),be=ye.micromarkExtensions||(ye.micromarkExtensions=[]),Ae=ye.fromMarkdownExtensions||(ye.fromMarkdownExtensions=[]),Le=ye.toMarkdownExtensions||(ye.toMarkdownExtensions=[]);be.push(Fe(ge)),Ae.push(Me()),Le.push(Ie(ge))}},16722:function(Re,Ee,le){"use strict";le.d(Ee,{Z:function(){return st}});const ce=Qe=>typeof Qe=="object"&&Qe!=null&&Qe.nodeType===1,Pe=(Qe,We)=>(!We||Qe!=="hidden")&&Qe!=="visible"&&Qe!=="clip",Me=(Qe,We)=>{if(Qe.clientHeight<Qe.scrollHeight||Qe.clientWidth<Qe.scrollWidth){const mt=getComputedStyle(Qe,null);return Pe(mt.overflowY,We)||Pe(mt.overflowX,We)||(it=>{const kt=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(ne){return null}})(it);return!!kt&&(kt.clientHeight<it.scrollHeight||kt.clientWidth<it.scrollWidth)})(Qe)}return!1},Ie=(Qe,We,mt,it,kt,Fe,ne,te)=>Fe<Qe&&ne>We||Fe>Qe&&ne<We?0:Fe<=Qe&&te<=mt||ne>=We&&te>=mt?Fe-Qe-it:ne>We&&te<mt||Fe<Qe&&te>mt?ne-We+kt:0,je=Qe=>{const We=Qe.parentElement;return We==null?Qe.getRootNode().host||null:We},Te=(Qe,We)=>{var mt,it,kt,Fe;if(typeof document=="undefined")return[];const{scrollMode:ne,block:te,inline:he,boundary:se,skipOverflowHiddenElements:ge}=We,ye=typeof se=="function"?se:un=>un!==se;if(!ce(Qe))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Ae=[];let Le=Qe;for(;ce(Le)&&ye(Le);){if(Le=je(Le),Le===be){Ae.push(Le);break}Le!=null&&Le===document.body&&Me(Le)&&!Me(document.documentElement)||Le!=null&&Me(Le,ge)&&Ae.push(Le)}const Ve=(it=(mt=window.visualViewport)==null?void 0:mt.width)!=null?it:innerWidth,et=(Fe=(kt=window.visualViewport)==null?void 0:kt.height)!=null?Fe:innerHeight,{scrollX:Je,scrollY:rt}=window,{height:at,width:tt,top:Et,right:Lt,bottom:Ut,left:on}=Qe.getBoundingClientRect(),{top:an,right:Kt,bottom:fn,left:bt}=(un=>{const Nt=window.getComputedStyle(un);return{top:parseFloat(Nt.scrollMarginTop)||0,right:parseFloat(Nt.scrollMarginRight)||0,bottom:parseFloat(Nt.scrollMarginBottom)||0,left:parseFloat(Nt.scrollMarginLeft)||0}})(Qe);let dt=te==="start"||te==="nearest"?Et-an:te==="end"?Ut+fn:Et+at/2-an+fn,ct=he==="center"?on+tt/2-bt+Kt:he==="end"?Lt+Kt:on-bt;const Qt=[];for(let un=0;un<Ae.length;un++){const Nt=Ae[un],{height:hn,width:cn,top:Qn,right:Bt,bottom:Pt,left:Wt}=Nt.getBoundingClientRect();if(ne==="if-needed"&&Et>=0&&on>=0&&Ut<=et&&Lt<=Ve&&(Nt===be&&!Me(Nt)||Et>=Qn&&Ut<=Pt&&on>=Wt&&Lt<=Bt))return Qt;const An=getComputedStyle(Nt),Nn=parseInt(An.borderLeftWidth,10),$e=parseInt(An.borderTopWidth,10),Oe=parseInt(An.borderRightWidth,10),ke=parseInt(An.borderBottomWidth,10);let Ke=0,lt=0;const Ue="offsetWidth"in Nt?Nt.offsetWidth-Nt.clientWidth-Nn-Oe:0,gt="offsetHeight"in Nt?Nt.offsetHeight-Nt.clientHeight-$e-ke:0,tn="offsetWidth"in Nt?Nt.offsetWidth===0?0:cn/Nt.offsetWidth:0,Un="offsetHeight"in Nt?Nt.offsetHeight===0?0:hn/Nt.offsetHeight:0;if(be===Nt)Ke=te==="start"?dt:te==="end"?dt-et:te==="nearest"?Ie(rt,rt+et,et,$e,ke,rt+dt,rt+dt+at,at):dt-et/2,lt=he==="start"?ct:he==="center"?ct-Ve/2:he==="end"?ct-Ve:Ie(Je,Je+Ve,Ve,Nn,Oe,Je+ct,Je+ct+tt,tt),Ke=Math.max(0,Ke+rt),lt=Math.max(0,lt+Je);else{Ke=te==="start"?dt-Qn-$e:te==="end"?dt-Pt+ke+gt:te==="nearest"?Ie(Qn,Pt,hn,$e,ke+gt,dt,dt+at,at):dt-(Qn+hn/2)+gt/2,lt=he==="start"?ct-Wt-Nn:he==="center"?ct-(Wt+cn/2)+Ue/2:he==="end"?ct-Bt+Oe+Ue:Ie(Wt,Bt,cn,Nn,Oe+Ue,ct,ct+tt,tt);const{scrollLeft:qn,scrollTop:nn}=Nt;Ke=Un===0?0:Math.max(0,Math.min(nn+Ke/Un,Nt.scrollHeight-hn/Un+gt)),lt=tn===0?0:Math.max(0,Math.min(qn+lt/tn,Nt.scrollWidth-cn/tn+Ue)),dt+=nn-Ke,ct+=qn-lt}Qt.push({el:Nt,top:Ke,left:lt})}return Qt},Ge=Qe=>Qe===!1?{block:"end",inline:"nearest"}:(We=>We===Object(We)&&Object.keys(We).length!==0)(Qe)?Qe:{block:"start",inline:"nearest"};function st(Qe,We){if(!Qe.isConnected||!(kt=>{let Fe=kt;for(;Fe&&Fe.parentNode;){if(Fe.parentNode===document)return!0;Fe=Fe.parentNode instanceof ShadowRoot?Fe.parentNode.host:Fe.parentNode}return!1})(Qe))return;const mt=(kt=>{const Fe=window.getComputedStyle(kt);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Qe);if((kt=>typeof kt=="object"&&typeof kt.behavior=="function")(We))return We.behavior(Te(Qe,We));const it=typeof We=="boolean"||We==null?void 0:We.behavior;for(const{el:kt,top:Fe,left:ne}of Te(Qe,Ge(We))){const te=Fe-mt.top+mt.bottom,he=ne-mt.left+mt.right;kt.scroll({top:te,left:he,behavior:it})}}},71523:function(Re,Ee,le){"use strict";le.d(Ee,{P:function(){return Pe},Q:function(){return ce}});function ce(Me){const Ie=String(Me||"").trim();return Ie?Ie.split(/[ \t\n\r\f]+/g):[]}function Pe(Me){return Me.join(" ").trim()}},10502:function(Re,Ee,le){"use strict";le.d(Ee,{O:function(){return Pe}});const ce=function(Qe,We,mt,it,kt){const Fe=Pe(We);if(mt!=null&&(typeof mt!="number"||mt<0||mt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(it!=null&&(!ce(it)||!it.children))throw new Error("Expected parent node");if(it==null!=(mt==null))throw new Error("Expected both parent and index");return st(Qe)?Fe.call(kt,Qe,mt,it):!1},Pe=function(Qe){if(Qe==null)return Ge;if(typeof Qe=="function")return Te(Qe);if(typeof Qe=="object")return Array.isArray(Qe)?Me(Qe):Ie(Qe);if(typeof Qe=="string")return je(Qe);throw new Error("Expected function, string, or object as test")};function Me(Qe){const We=[];let mt=-1;for(;++mt<Qe.length;)We[mt]=Pe(Qe[mt]);return Te(it);function it(...kt){let Fe=-1;for(;++Fe<We.length;)if(We[Fe].apply(this,kt))return!0;return!1}}function Ie(Qe){const We=Qe;return Te(mt);function mt(it){const kt=it;let Fe;for(Fe in Qe)if(kt[Fe]!==We[Fe])return!1;return!0}}function je(Qe){return Te(We);function We(mt){return mt&&mt.type===Qe}}function Te(Qe){return We;function We(mt,it,kt){return!!(st(mt)&&Qe.call(this,mt,typeof it=="number"?it:void 0,kt||void 0))}}function Ge(){return!0}function st(Qe){return Qe!==null&&typeof Qe=="object"&&"type"in Qe}},17970:function(Re,Ee,le){"use strict";le.d(Ee,{FK:function(){return Ie},Pk:function(){return Pe},rb:function(){return ce}});const ce=Me("end"),Pe=Me("start");function Me(je){return Te;function Te(Ge){const st=Ge&&Ge.position&&Ge.position[je]||{};if(typeof st.line=="number"&&st.line>0&&typeof st.column=="number"&&st.column>0)return{line:st.line,column:st.column,offset:typeof st.offset=="number"&&st.offset>-1?st.offset:void 0}}}function Ie(je){const Te=Pe(je),Ge=ce(je);if(Te&&Ge)return{start:Te,end:Ge}}},2348:function(Re,Ee,le){"use strict";le.d(Ee,{AM:function(){return Te},S4:function(){return Ge}});var ce=le(10502);function Pe(Qe){return Qe}const Me=[],Ie=!0,je=!1,Te="skip";function Ge(Qe,We,mt,it){let kt;typeof We=="function"&&typeof mt!="function"?(it=mt,mt=We):kt=We;const Fe=(0,ce.O)(kt),ne=it?-1:1;te(Qe,void 0,[])();function te(he,se,ge){const ye=he&&typeof he=="object"?he:{};if(typeof ye.type=="string"){const Ae=typeof ye.tagName=="string"?ye.tagName:typeof ye.name=="string"?ye.name:void 0;Object.defineProperty(be,"name",{value:"node ("+(he.type+(Ae?"<"+Ae+">":""))+")"})}return be;function be(){let Ae=Me,Le,Ve,et;if((!We||Fe(he,se,ge[ge.length-1]||void 0))&&(Ae=st(mt(he,ge)),Ae[0]===je))return Ae;if("children"in he&&he.children){const Je=he;if(Je.children&&Ae[0]!==Te)for(Ve=(it?Je.children.length:-1)+ne,et=ge.concat(Je);Ve>-1&&Ve<Je.children.length;){const rt=Je.children[Ve];if(Le=te(rt,Ve,et)(),Le[0]===je)return Le;Ve=typeof Le[1]=="number"?Le[1]:Ve+ne}}return Ae}}}function st(Qe){return Array.isArray(Qe)?Qe:typeof Qe=="number"?[Ie,Qe]:Qe==null?Me:[Qe]}},10528:function(Re,Ee,le){"use strict";le.d(Ee,{Vn:function(){return Pe}});var ce=le(2348);function Pe(Me,Ie,je,Te){let Ge,st,Qe;typeof Ie=="function"&&typeof je!="function"?(st=void 0,Qe=Ie,Ge=je):(st=Ie,Qe=je,Ge=Te),(0,ce.S4)(Me,st,We,Ge);function We(mt,it){const kt=it[it.length-1],Fe=kt?kt.children.indexOf(mt):void 0;return Qe(mt,Fe,kt)}}},43309:function(Re,Ee,le){"use strict";le.d(Ee,{t:function(){return ce}});const ce={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},47854:function(Re){"use strict";Re.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(Re){"use strict";Re.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
|
|
|
}()); |